diff --git a/docs/bundle.css b/docs/bundle.css index 1adfb240..fd92ed1c 100644 --- a/docs/bundle.css +++ b/docs/bundle.css @@ -1,65 +1,78 @@ -#error.svelte-ardmue{background:darkred;color:white;flex:1;padding:10px}.invisible.svelte-ardmue{display:none}.visible.svelte-ardmue{display:block} +#error.svelte-1af9dx4 { + background: darkred; + color: white; + flex: 1; + padding: 10px; +} +.invisible.svelte-1af9dx4 { + display: none; +} +.visible.svelte-1af9dx4 { + display: block; +} /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-custom-checkbox { - margin-left: 2px; - float: left; - cursor: pointer; - overflow: hidden; - opacity: 0.7; - width: 20px; - height: 20px; - border: 1px solid transparent; - padding: 1px; + margin-left: 2px; + float: left; + cursor: pointer; + overflow: hidden; + opacity: 0.7; + width: 20px; + height: 20px; + border: 1px solid transparent; + padding: 1px; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - -ms-user-select: none; - user-select: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + -ms-user-select: none; + user-select: none; } .monaco-custom-checkbox:hover, .monaco-custom-checkbox.checked { - opacity: 1; + opacity: 1; } .hc-black .monaco-custom-checkbox { - background: none; + background: none; } .hc-black .monaco-custom-checkbox:hover { - background: none; + background: none; } .monaco-custom-checkbox.monaco-simple-checkbox { - height: 18px; - width: 18px; - border: 1px solid transparent; - border-radius: 3px; - margin-right: 9px; - margin-left: 0px; - padding: 0px; - opacity: 1; - background-size: 16px !important; + height: 18px; + width: 18px; + border: 1px solid transparent; + border-radius: 3px; + margin-right: 9px; + margin-left: 0px; + padding: 0px; + opacity: 1; + background-size: 16px !important; } .monaco-custom-checkbox.monaco-simple-checkbox.checked { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=') + center center no-repeat; } .monaco-custom-checkbox.monaco-simple-checkbox.checked { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNSAzLjc2MzQ1TDUuODA2ODcgMTEuOTM1MUw1LjA4NTg0IDExLjg5MjdMMSA3LjI5NjE0TDEuNzYzNDUgNi42MTc1Mkw1LjUwOTk3IDEwLjgzMjRMMTQuMzIxNCAzTDE1IDMuNzYzNDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=') + center center no-repeat; } /*--------------------------------------------------------------------------------------------- @@ -68,55 +81,67 @@ *--------------------------------------------------------------------------------------------*/ .vs .monaco-custom-checkbox.monaco-case-sensitive { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==') + center center no-repeat; } .vs-dark .monaco-custom-checkbox.monaco-case-sensitive { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + center center no-repeat; } .hc-black .monaco-custom-checkbox.monaco-case-sensitive, .hc-black .monaco-custom-checkbox.monaco-case-sensitive:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03LjQ5NSA5LjA1Mkw4LjM4NiAxMS40MDJIOS40NzdMNi4yMzcgM0g1LjIxN0wyIDExLjQwMkgzLjA5NUwzLjkzMyA5LjA1Mkg3LjQ5NVpNNS44MTEgNC40NTNMNS44NTUgNC41ODhMNy4xNzMgOC4xNjJINC4yNTVMNS41NjIgNC41ODhMNS42MDYgNC40NTNMNS42NDQgNC4yOTdMNS42NzYgNC4xNDVMNS42OTcgNC4wMTlINS43Mkw1Ljc0NCA0LjE0NUw1Ljc3MyA0LjI5N0w1LjgxMSA0LjQ1M1pNMTMuNzk1IDEwLjQ2NFYxMS40SDE0Ljc1NVY3LjQ5OEMxNC43NTUgNi43NzkgMTQuNTc1IDYuMjI2IDE0LjIxNiA1LjgzN0MxMy44NTcgNS40NDggMTMuMzI3IDUuMjU0IDEyLjYyOCA1LjI1NEMxMi40MjkgNS4yNTQgMTIuMjI3IDUuMjczIDEyLjAyMiA1LjMxQzExLjgxNyA1LjM0NyAxMS42MjIgNS4zOTQgMTEuNDM5IDUuNDUxQzExLjI1NiA1LjUwOCAxMS4wOTEgNS41NjkgMTAuOTQ0IDUuNjM2QzEwLjc5NyA1LjcwMyAxMC42ODMgNS43NjUgMTAuNjAxIDUuODI0VjYuODA4QzEwLjg2NyA2LjU3OCAxMS4xNjcgNi4zOTcgMTEuNTA1IDYuMjY4QzExLjg0MyA2LjEzOSAxMi4xOTQgNi4wNzUgMTIuNTU3IDYuMDc1QzEyLjc0NSA2LjA3NSAxMi45MTUgNi4xMDMgMTMuMDcgNi4xNkMxMy4yMjUgNi4yMTcgMTMuMzU3IDYuMzA2IDEzLjQ2NiA2LjQyN0MxMy41NzUgNi41NDggMTMuNjU5IDYuNzA2IDEzLjcxOCA2Ljg5OUMxMy43NzcgNy4wOTIgMTMuODA2IDcuMzI2IDEzLjgwNiA3LjU5OUwxMS45OTUgNy44NTFDMTEuNjUxIDcuODk4IDExLjM1NSA3Ljk3NyAxMS4xMDcgOC4wODhDMTAuODU5IDguMTk5IDEwLjY1NCA4LjMzOSAxMC40OTIgOC41MDdDMTAuMzMgOC42NzUgMTAuMjEgOC44NjggMTAuMTMyIDkuMDg3QzEwLjA1NCA5LjMwNiAxMC4wMTUgOS41NDYgMTAuMDE1IDkuODA4QzEwLjAxNSAxMC4wNTQgMTAuMDU3IDEwLjI4MyAxMC4xMzkgMTAuNDk2QzEwLjIyMSAxMC43MDkgMTAuMzQyIDEwLjg5MyAxMC41MDIgMTEuMDQ3QzEwLjY2MiAxMS4yMDEgMTAuODYyIDExLjMyMyAxMS4xIDExLjQxM0MxMS4zMzggMTEuNTAzIDExLjYxMyAxMS41NDggMTEuOTI2IDExLjU0OEMxMi4zMjggMTEuNTQ4IDEyLjY4NiAxMS40NTYgMTMuMDAxIDExLjI3QzEzLjMxNiAxMS4wODQgMTMuNTczIDEwLjgxNiAxMy43NzIgMTAuNDY0SDEzLjc5NVpNMTEuNjY3IDguNzIxQzExLjg0MyA4LjY1NyAxMi4wNjggOC42MDcgMTIuMzQxIDguNTcyTDEzLjgwNiA4LjM2N1Y4Ljk3NkMxMy44MDYgOS4yMjIgMTMuNzY1IDkuNDUxIDEzLjY4MyA5LjY2NEMxMy42MDEgOS44NzcgMTMuNDg2IDEwLjA2MyAxMy4zNCAxMC4yMjFDMTMuMTk0IDEwLjM3OSAxMy4wMTkgMTAuNTAzIDEyLjgxNiAxMC41OTNDMTIuNjEzIDEwLjY4MyAxMi4zOSAxMC43MjggMTIuMTQ4IDEwLjcyOEMxMS45NjEgMTAuNzI4IDExLjc5NSAxMC43MDMgMTEuNjUzIDEwLjY1MkMxMS41MTEgMTAuNjAxIDExLjM5MiAxMC41MyAxMS4yOTYgMTAuNDQxQzExLjIgMTAuMzUyIDExLjEyNyAxMC4yNDcgMTEuMDc2IDEwLjEyNUMxMS4wMjUgMTAuMDAzIDExIDkuODczIDExIDkuNzMyQzExIDkuNTY4IDExLjAxOCA5LjQyMSAxMS4wNTUgOS4yOTJDMTEuMDkyIDkuMTYzIDExLjE2IDkuMDUxIDExLjI1NyA4Ljk1OEMxMS4zNTQgOC44NjUgMTEuNDkxIDguNzg1IDExLjY2NyA4LjcyMVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=') + center center no-repeat; } .vs .monaco-custom-checkbox.monaco-preserve-case { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjNDI0MjQyIi8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjNDI0MjQyIi8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==') + center center no-repeat; } .vs-dark .monaco-custom-checkbox.monaco-preserve-case { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05Ljc4NjE3IDEyLjQ2NzNWNEgxMi4xOTUzQzEyLjkyNzUgNCAxMy41MDgxIDQuMTc5MTEgMTMuOTM3MiA0LjUzNzMzQzE0LjM2NjIgNC44OTU1NCAxNC41ODA4IDUuMzYyMDEgMTQuNTgwOCA1LjkzNjc0QzE0LjU4MDggNi40MTY5OCAxNC40NTA5IDYuODM0MjUgMTQuMTkxMSA3LjE4ODUzQzEzLjkzMTMgNy41NDI4MSAxMy41NzMgNy43OTQ3NCAxMy4xMTY0IDcuOTQ0MzNWNy45Njc5NUMxMy42ODcyIDguMDM0ODcgMTQuMTQzOCA4LjI1MTM3IDE0LjQ4NjMgOC42MTc0NkMxNC44Mjg4IDguOTc5NjEgMTUgOS40NTE5OSAxNSAxMC4wMzQ2QzE1IDEwLjc1ODkgMTQuNzQwMiAxMS4zNDU0IDE0LjIyMDYgMTEuNzk0MkMxMy43MDEgMTIuMjQyOSAxMy4wNDU2IDEyLjQ2NzMgMTIuMjU0MyAxMi40NjczSDkuNzg2MTdaTTEwLjc3ODIgNC44OTc1MVY3LjYzMTM4SDExLjc5MzhDMTIuMzM3IDcuNjMxMzggMTIuNzY0MSA3LjUwMTQ4IDEzLjA3NTEgNy4yNDE2N0MxMy4zODYxIDYuOTc3OTMgMTMuNTQxNSA2LjYwNzkgMTMuNTQxNSA2LjEzMTU5QzEzLjU0MTUgNS4zMDg4NyAxMy4wMDAzIDQuODk3NTEgMTEuOTE3OCA0Ljg5NzUxSDEwLjc3ODJaTTEwLjc3ODIgOC41MjI5OVYxMS41Njk4SDEyLjEyNDRDMTIuNzA3IDExLjU2OTggMTMuMTU3NyAxMS40MzIgMTMuNDc2NiAxMS4xNTY1QzEzLjc5OTQgMTAuODgwOSAxMy45NjA4IDEwLjUwMyAxMy45NjA4IDEwLjAyMjhDMTMuOTYwOCA5LjAyMjkyIDEzLjI3OTggOC41MjI5OSAxMS45MTc4IDguNTIyOTlIMTAuNzc4MloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + center center no-repeat; } .hc-black .monaco-custom-checkbox.monaco-preserve-case, .hc-black .monaco-custom-checkbox.monaco-preserve-case:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNOS43ODYxNyAxMi40NjczVjRIMTIuMTk1M0MxMi45Mjc1IDQgMTMuNTA4MSA0LjE3OTExIDEzLjkzNzIgNC41MzczM0MxNC4zNjYyIDQuODk1NTQgMTQuNTgwOCA1LjM2MjAxIDE0LjU4MDggNS45MzY3NEMxNC41ODA4IDYuNDE2OTggMTQuNDUwOSA2LjgzNDI1IDE0LjE5MTEgNy4xODg1M0MxMy45MzEzIDcuNTQyODEgMTMuNTczIDcuNzk0NzQgMTMuMTE2NCA3Ljk0NDMzVjcuOTY3OTVDMTMuNjg3MiA4LjAzNDg3IDE0LjE0MzggOC4yNTEzNyAxNC40ODYzIDguNjE3NDZDMTQuODI4OCA4Ljk3OTYxIDE1IDkuNDUxOTkgMTUgMTAuMDM0NkMxNSAxMC43NTg5IDE0Ljc0MDIgMTEuMzQ1NCAxNC4yMjA2IDExLjc5NDJDMTMuNzAxIDEyLjI0MjkgMTMuMDQ1NiAxMi40NjczIDEyLjI1NDMgMTIuNDY3M0g5Ljc4NjE3Wk0xMC43NzgyIDQuODk3NTFWNy42MzEzOEgxMS43OTM4QzEyLjMzNyA3LjYzMTM4IDEyLjc2NDEgNy41MDE0OCAxMy4wNzUxIDcuMjQxNjdDMTMuMzg2MSA2Ljk3NzkzIDEzLjU0MTUgNi42MDc5IDEzLjU0MTUgNi4xMzE1OUMxMy41NDE1IDUuMzA4ODcgMTMuMDAwMyA0Ljg5NzUxIDExLjkxNzggNC44OTc1MUgxMC43NzgyWk0xMC43NzgyIDguNTIyOTlWMTEuNTY5OEgxMi4xMjQ0QzEyLjcwNyAxMS41Njk4IDEzLjE1NzcgMTEuNDMyIDEzLjQ3NjYgMTEuMTU2NUMxMy43OTk0IDEwLjg4MDkgMTMuOTYwOCAxMC41MDMgMTMuOTYwOCAxMC4wMjI4QzEzLjk2MDggOS4wMjI5MiAxMy4yNzk4IDguNTIyOTkgMTEuOTE3OCA4LjUyMjk5SDEwLjc3ODJaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNTM0MzcgMTIuNDY3M0g3LjQzNjFMNi41Mzg1OSAxMC4wOTM2SDIuOTQ4NTRMMi4xMDQxOCAxMi40NjczSDFMNC4yNDc1NyA0SDUuMjc0OTlMOC41MzQzNyAxMi40NjczWk02LjIxMzgzIDkuMjAyMDJMNC44ODUyOCA1LjU5NDI2QzQuODQxOTggNS40NzYxNyA0Ljc5ODY4IDUuMjg3MjIgNC43NTUzOCA1LjAyNzQxSDQuNzMxNzZDNC42OTIzOSA1LjI2NzU0IDQuNjQ3MTMgNS40NTY0OSA0LjU5NTk1IDUuNTk0MjZMMy4yNzkyMSA5LjIwMjAySDYuMjEzODNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNOS43ODYxNyAxMi40NjczVjRIMTIuMTk1M0MxMi45Mjc1IDQgMTMuNTA4MSA0LjE3OTExIDEzLjkzNzIgNC41MzczM0MxNC4zNjYyIDQuODk1NTQgMTQuNTgwOCA1LjM2MjAxIDE0LjU4MDggNS45MzY3NEMxNC41ODA4IDYuNDE2OTggMTQuNDUwOSA2LjgzNDI1IDE0LjE5MTEgNy4xODg1M0MxMy45MzEzIDcuNTQyODEgMTMuNTczIDcuNzk0NzQgMTMuMTE2NCA3Ljk0NDMzVjcuOTY3OTVDMTMuNjg3MiA4LjAzNDg3IDE0LjE0MzggOC4yNTEzNyAxNC40ODYzIDguNjE3NDZDMTQuODI4OCA4Ljk3OTYxIDE1IDkuNDUxOTkgMTUgMTAuMDM0NkMxNSAxMC43NTg5IDE0Ljc0MDIgMTEuMzQ1NCAxNC4yMjA2IDExLjc5NDJDMTMuNzAxIDEyLjI0MjkgMTMuMDQ1NiAxMi40NjczIDEyLjI1NDMgMTIuNDY3M0g5Ljc4NjE3Wk0xMC43NzgyIDQuODk3NTFWNy42MzEzOEgxMS43OTM4QzEyLjMzNyA3LjYzMTM4IDEyLjc2NDEgNy41MDE0OCAxMy4wNzUxIDcuMjQxNjdDMTMuMzg2MSA2Ljk3NzkzIDEzLjU0MTUgNi42MDc5IDEzLjU0MTUgNi4xMzE1OUMxMy41NDE1IDUuMzA4ODcgMTMuMDAwMyA0Ljg5NzUxIDExLjkxNzggNC44OTc1MUgxMC43NzgyWk0xMC43NzgyIDguNTIyOTlWMTEuNTY5OEgxMi4xMjQ0QzEyLjcwNyAxMS41Njk4IDEzLjE1NzcgMTEuNDMyIDEzLjQ3NjYgMTEuMTU2NUMxMy43OTk0IDEwLjg4MDkgMTMuOTYwOCAxMC41MDMgMTMuOTYwOCAxMC4wMjI4QzEzLjk2MDggOS4wMjI5MiAxMy4yNzk4IDguNTIyOTkgMTEuOTE3OCA4LjUyMjk5SDEwLjc3ODJaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K') + center center no-repeat; } .vs .monaco-custom-checkbox.monaco-whole-word { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=') + center center no-repeat; } .vs-dark .monaco-custom-checkbox.monaco-whole-word { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo=') + center center no-repeat; } .hc-black .monaco-custom-checkbox.monaco-whole-word, .hc-black .monaco-custom-checkbox.monaco-whole-word:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xIDJIMTVWM0gxVjJaTTE0IDRIMTNWMTJIMTRWNFpNMTEuMjcyIDguMzg3QzExLjE5NCA4LjA4OCAxMS4wNzMgNy44MjUgMTAuOTEyIDcuNjAxQzEwLjc1MSA3LjM3NyAxMC41NDcgNy4yIDEwLjMwMyA3LjA3MUMxMC4wNTkgNi45NDIgOS43NjkgNi44NzggOS40MzcgNi44NzhDOS4yMzkgNi44NzggOS4wNTcgNi45MDIgOC44OSA2Ljk1MUM4LjcyNSA3IDguNTc0IDcuMDY4IDguNDM3IDcuMTU2QzguMzAxIDcuMjQ0IDguMTggNy4zNSA4LjA3MiA3LjQ3NEw3Ljg5MyA3LjczMlY0LjU3OEg3VjEySDcuODkzVjExLjQyNUw4LjAxOSAxMS42QzguMTA2IDExLjcwMiA4LjIwOCAxMS43OSA4LjMyMyAxMS44NjlDOC40NCAxMS45NDcgOC41NzIgMTIuMDA5IDguNzIxIDEyLjA1NUM4Ljg3IDEyLjEwMSA5LjAzNSAxMi4xMjMgOS4yMTkgMTIuMTIzQzkuNTcyIDEyLjEyMyA5Ljg4NSAxMi4wNTIgMTAuMTU2IDExLjkxMUMxMC40MjggMTEuNzY4IDEwLjY1NSAxMS41NzMgMTAuODM4IDExLjMyNUMxMS4wMjEgMTEuMDc1IDExLjE1OSAxMC43ODIgMTEuMjUyIDEwLjQ0NkMxMS4zNDUgMTAuMTA4IDExLjM5MiA5Ljc0MyAxMS4zOTIgOS4zNDlDMTEuMzkxIDkuMDA3IDExLjM1MiA4LjY4NiAxMS4yNzIgOC4zODdaTTkuNzkzIDcuNzhDOS45NDQgNy44NTEgMTAuMDc1IDcuOTU2IDEwLjE4MyA4LjA5NEMxMC4yOTIgOC4yMzQgMTAuMzc3IDguNDA3IDEwLjQzOCA4LjYxMUMxMC40ODkgOC43ODUgMTAuNTIgOC45ODIgMTAuNTI3IDkuMTk4TDEwLjUyIDkuMzIzQzEwLjUyIDkuNjUgMTAuNDg3IDkuOTQzIDEwLjQyIDEwLjE5MkMxMC4zNTMgMTAuNDM4IDEwLjI1OSAxMC42NDUgMTAuMTQyIDEwLjgwNkMxMC4wMjUgMTAuOTY4IDkuODgyIDExLjA5MSA5LjcyMSAxMS4xNzJDOS4zOTkgMTEuMzM0IDguOTYxIDExLjMzOCA4LjY1MiAxMS4xODdDOC40OTkgMTEuMTEyIDguMzY2IDExLjAxMiA4LjI1OSAxMC44OTFDOC4xNzQgMTAuNzk1IDguMTAzIDEwLjY3NSA4LjA0MSAxMC41MjRDOC4wNDEgMTAuNTI0IDcuODYyIDEwLjA3NyA3Ljg2MiA5LjU3N0M3Ljg2MiA5LjA3NyA4LjA0MSA4LjU3NSA4LjA0MSA4LjU3NUM4LjEwMyA4LjM5OCA4LjE3NyA4LjI1NyA4LjI2NSA4LjE0NUM4LjM3OSA4LjAwMiA4LjUyMSA3Ljg4NiA4LjY4OSA3LjhDOC44NTcgNy43MTQgOS4wNTQgNy42NzEgOS4yNzYgNy42NzFDOS40NjYgNy42NzEgOS42NCA3LjcwOCA5Ljc5MyA3Ljc4Wk0xNSAxM0gxVjE0SDE1VjEzWk0yLjgxMyAxMEwyLjA4NSAxMi4wMzFIMUwxLjAyNSAxMS45NTlMMy40NjYgNC44NzMwNUg0LjQwN0w2Ljg5MiAxMi4wMzFINS44MUw1LjAzMiAxMEgyLjgxM1pNMy45MzQgNi40MjIwNUgzLjkxMkwzLjAwNyA5LjE3NTA1SDQuODQ4TDMuOTM0IDYuNDIyMDVaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K') + center center no-repeat; } .vs .monaco-custom-checkbox.monaco-regex { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg==') + center center no-repeat; } .vs-dark .monaco-custom-checkbox.monaco-regex { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + center center no-repeat; } .hc-black .monaco-custom-checkbox.monaco-regex, .hc-black .monaco-custom-checkbox.monaco-regex:hover { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wMTIyIDJIMTAuOTg3OVY1LjExMzQ2TDEzLjU0ODkgMy41NTYwOUwxNC4wMzQgNC40NDA5NUwxMS40NzAyIDZMMTQuMDM0IDcuNTU5MDVMMTMuNTQ4OSA4LjQ0MzkxTDEwLjk4NzkgNi44ODY1NFYxMEgxMC4wMTIyVjYuODg2NTRMNy40NTExNCA4LjQ0MzkxTDYuOTY2MDYgNy41NTkwNUw5LjUyOTkgNkw2Ljk2NjA2IDQuNDQwOTVMNy40NTExNCAzLjU1NjA5TDEwLjAxMjIgNS4xMTM0NlYyWk0yIDEwSDZWMTRIMlYxMFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=') + center center no-repeat; } /*--------------------------------------------------------------------------------------------- @@ -127,386 +152,420 @@ /* Checkbox */ .monaco-checkbox .label { - width: 12px; - height: 12px; - border: 1px solid black; - background-color: transparent; - display: inline-block; + width: 12px; + height: 12px; + border: 1px solid black; + background-color: transparent; + display: inline-block; } .monaco-checkbox .checkbox { - position: absolute; - overflow: hidden; - clip: rect(0 0 0 0); - height: 1px; - width: 1px; - margin: -1px; - padding: 0; - border: 0; + position: absolute; + overflow: hidden; + clip: rect(0 0 0 0); + height: 1px; + width: 1px; + margin: -1px; + padding: 0; + border: 0; } .monaco-checkbox .checkbox:checked + .label { - background-color: black; + background-color: black; } /* Find widget */ .monaco-editor .find-widget { - position: absolute; - z-index: 10; - top: -44px; - height: 33px; - overflow: hidden; - line-height: 19px; - transition: top 200ms linear; - padding: 0 4px; - box-sizing: border-box; + position: absolute; + z-index: 10; + top: -44px; + height: 33px; + overflow: hidden; + line-height: 19px; + transition: top 200ms linear; + padding: 0 4px; + box-sizing: border-box; } .monaco-editor .find-widget.hiddenEditor { - display: none; + display: none; } /* Find widget when replace is toggled on */ .monaco-editor .find-widget.replaceToggled { - top: -74px; /* find input height + replace input height + shadow (10px) */ + top: -74px; /* find input height + replace input height + shadow (10px) */ } .monaco-editor .find-widget.replaceToggled > .replace-part { - display: flex; - display: -webkit-flex; + display: flex; + display: -webkit-flex; } .monaco-editor .find-widget.visible, .monaco-editor .find-widget.replaceToggled.visible { - top: 0; + top: 0; } /* Multiple line find widget */ .monaco-editor .find-widget.multipleline { - top: unset; - bottom: 10px; + top: unset; + bottom: 10px; } .monaco-editor .find-widget.multipleline.visible, .monaco-editor .find-widget.multipleline.replaceToggled.visible { - top: 0px; - bottom: unset; + top: 0px; + bottom: unset; } .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { - outline: 1px solid -webkit-focus-ring-color; - outline-offset: -1px; + outline: 1px solid -webkit-focus-ring-color; + outline-offset: -1px; } .monaco-editor .find-widget .monaco-inputbox .input { - background-color: transparent; - /* Style to compensate for //winjs */ - min-height: 0; + background-color: transparent; + /* Style to compensate for //winjs */ + min-height: 0; } .monaco-editor .find-widget .monaco-findInput .input { - font-size: 13px; + font-size: 13px; } .monaco-editor .find-widget > .find-part, .monaco-editor .find-widget > .replace-part { - margin: 4px 0 0 17px; - font-size: 12px; - display: flex; - display: -webkit-flex; + margin: 4px 0 0 17px; + font-size: 12px; + display: flex; + display: -webkit-flex; } .monaco-editor .find-widget > .find-part .monaco-inputbox, .monaco-editor .find-widget > .replace-part .monaco-inputbox { - min-height: 25px; + min-height: 25px; } - -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror { - padding-right: 22px; +.monaco-editor + .find-widget + > .replace-part + .monaco-inputbox + > .wrapper + > .mirror { + padding-right: 22px; } .monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input, .monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .mirror, -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input, -.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .mirror { - padding-top: 2px; - padding-bottom: 2px; +.monaco-editor + .find-widget + > .replace-part + .monaco-inputbox + > .wrapper + > .input, +.monaco-editor + .find-widget + > .replace-part + .monaco-inputbox + > .wrapper + > .mirror { + padding-top: 2px; + padding-bottom: 2px; } .monaco-editor .find-widget > .find-part .find-actions { - height: 25px; - display: flex; - align-items: center; + height: 25px; + display: flex; + align-items: center; } .monaco-editor .find-widget > .replace-part .replace-actions { - height: 25px; - display: flex; - align-items: center; + height: 25px; + display: flex; + align-items: center; } .monaco-editor .find-widget .monaco-findInput { - vertical-align: middle; - display: flex; - display: -webkit-flex; - flex:1; + vertical-align: middle; + display: flex; + display: -webkit-flex; + flex: 1; } .monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element { - /* Make sure textarea inherits the width correctly */ - width: 100%; + /* Make sure textarea inherits the width correctly */ + width: 100%; } -.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical { - /* Hide vertical scrollbar */ - opacity: 0; +.monaco-editor + .find-widget + .monaco-findInput + .monaco-scrollable-element + .scrollbar.vertical { + /* Hide vertical scrollbar */ + opacity: 0; } .monaco-editor .find-widget .matchesCount { - display: flex; - display: -webkit-flex; - flex: initial; - margin: 0 0 0 3px; - padding: 2px 0 0 2px; - height: 25px; - vertical-align: middle; - box-sizing: border-box; - text-align: center; - line-height: 23px; + display: flex; + display: -webkit-flex; + flex: initial; + margin: 0 0 0 3px; + padding: 2px 0 0 2px; + height: 25px; + vertical-align: middle; + box-sizing: border-box; + text-align: center; + line-height: 23px; } .monaco-editor .find-widget .button { - min-width: 20px; - width: 20px; - height: 20px; - display: flex; - display: -webkit-flex; - flex: initial; - margin-left: 3px; - background-position: center center; - background-repeat: no-repeat; - cursor: pointer; + min-width: 20px; + width: 20px; + height: 20px; + display: flex; + display: -webkit-flex; + flex: initial; + margin-left: 3px; + background-position: center center; + background-repeat: no-repeat; + cursor: pointer; } .monaco-editor .find-widget .button:not(.disabled):hover { - background-color: rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.1); } .monaco-editor .find-widget .button.left { - margin-left: 0; - margin-right: 3px; + margin-left: 0; + margin-right: 3px; } .monaco-editor .find-widget .button.wide { - width: auto; - padding: 1px 6px; - top: -1px; + width: auto; + padding: 1px 6px; + top: -1px; } .monaco-editor .find-widget .button.toggle { - position: absolute; - top: 0; - left: 0; - width: 18px; - height: 100%; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; + position: absolute; + top: 0; + left: 0; + width: 18px; + height: 100%; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; } .monaco-editor .find-widget .button.toggle.disabled { - display: none; + display: none; } .monaco-editor .find-widget .previous { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=='); } .monaco-editor .find-widget .next { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); } .monaco-editor .find-widget .disabled { - opacity: 0.3; - cursor: default; + opacity: 0.3; + cursor: default; } .monaco-editor .find-widget .monaco-checkbox { - width: 20px; - height: 20px; - display: inline-block; - vertical-align: middle; - margin-left: 3px; + width: 20px; + height: 20px; + display: inline-block; + vertical-align: middle; + margin-left: 3px; } .monaco-editor .find-widget .monaco-checkbox .label { - content: ''; - display: inline-block; - background-repeat: no-repeat; - background-position: center; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); - width: 20px; - height: 20px; - border: none; + content: ''; + display: inline-block; + background-repeat: no-repeat; + background-position: center; + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); + width: 20px; + height: 20px; + border: none; } .monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label { - opacity: 0.3; - cursor: default; + opacity: 0.3; + cursor: default; } .monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label { - cursor: pointer; + cursor: pointer; } -.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label { - background-color: #DDD; +.monaco-editor + .find-widget + .monaco-checkbox + .checkbox:not(:disabled):hover:before + + .label { + background-color: #ddd; } .monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { - background-color: rgba(100, 100, 100, 0.2); + background-color: rgba(100, 100, 100, 0.2); } .monaco-editor .find-widget .close-fw { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo='); } .monaco-editor .find-widget .expand { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); } .monaco-editor .find-widget .collapse { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo='); } .monaco-editor .find-widget .replace { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMyIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMyIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo='); } .monaco-editor .find-widget .replace-all { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); } .monaco-editor .find-widget > .replace-part { - display: none; + display: none; } .monaco-editor .find-widget > .replace-part > .monaco-findInput { - position: relative; - display: flex; - display: -webkit-flex; - vertical-align: middle; - flex: auto; - flex-grow: 0; - flex-shrink: 0; + position: relative; + display: flex; + display: -webkit-flex; + vertical-align: middle; + flex: auto; + flex-grow: 0; + flex-shrink: 0; } .monaco-editor .find-widget > .replace-part > .monaco-findInput > .controls { - position: absolute; - top: 3px; - right: 2px; + position: absolute; + top: 3px; + right: 2px; } /* REDUCED */ .monaco-editor .find-widget.reduced-find-widget .matchesCount, .monaco-editor .find-widget.reduced-find-widget .monaco-checkbox { - display:none; + display: none; } /* NARROW (SMALLER THAN REDUCED) */ .monaco-editor .find-widget.narrow-find-widget { - max-width: 257px !important; + max-width: 257px !important; } /* COLLAPSED (SMALLER THAN NARROW) */ .monaco-editor .find-widget.collapsed-find-widget { - max-width: 170px !important; + max-width: 170px !important; } .monaco-editor .find-widget.collapsed-find-widget .button.previous, .monaco-editor .find-widget.collapsed-find-widget .button.next, .monaco-editor .find-widget.collapsed-find-widget .button.replace, .monaco-editor .find-widget.collapsed-find-widget .button.replace-all, -.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls { - display:none; +.monaco-editor + .find-widget.collapsed-find-widget + > .find-part + .monaco-findInput + .controls { + display: none; } .monaco-editor .findMatch { - -webkit-animation-duration: 0; - -webkit-animation-name: inherit !important; - -moz-animation-duration: 0; - -moz-animation-name: inherit !important; - -ms-animation-duration: 0; - -ms-animation-name: inherit !important; - animation-duration: 0; - animation-name: inherit !important; + -webkit-animation-duration: 0; + -webkit-animation-name: inherit !important; + -moz-animation-duration: 0; + -moz-animation-name: inherit !important; + -ms-animation-duration: 0; + -ms-animation-name: inherit !important; + animation-duration: 0; + animation-name: inherit !important; } .monaco-editor .find-widget .monaco-sash { - width: 2px !important; - margin-left: -4px; + width: 2px !important; + margin-left: -4px; } .monaco-editor.hc-black .find-widget .previous, .monaco-editor.vs-dark .find-widget .previous { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMy44NTM1IDYuMjkyODRMOC44NTM1NiAxLjI5Mjg1SDguMTQ2NDVMMy4xNDY0NSA2LjI5Mjg0TDMuODUzNTYgNi45OTk5NUw4IDIuODUzNTFWMTUuMDYwNkg5VjIuODUzNTFMMTMuMTQ2NCA2Ljk5OTk1TDEzLjg1MzUgNi4yOTI4NFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=='); } .monaco-editor.hc-black .find-widget .next, .monaco-editor.vs-dark .find-widget .next { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjE0NjQ2IDkuNzY3ODNMOC4xNDY0NCAxNC43Njc4TDguODUzNTUgMTQuNzY3OEwxMy44NTM1IDkuNzY3ODNMMTMuMTQ2NCA5LjA2MDcyTDkgMTMuMjA3Mkw5IDEuMDAwMDZMOCAxLjAwMDA2TDggMTMuMjA3MkwzLjg1MzU2IDkuMDYwNzJMMy4xNDY0NiA5Ljc2NzgzWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .monaco-editor.hc-black .find-widget .monaco-checkbox .label, .monaco-editor.vs-dark .find-widget .monaco-checkbox .label { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } -.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label { - background-color: rgba(255, 255, 255, 0.1); +.monaco-editor.vs-dark + .find-widget + .monaco-checkbox + .checkbox:not(:disabled):hover:before + + .label { + background-color: rgba(255, 255, 255, 0.1); } .monaco-editor.hc-black .find-widget .close-fw, .monaco-editor.vs-dark .find-widget .close-fw { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04IDguNzA3MTRMMTEuNjQ2NCAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjQgMy42NDY0OEw4IDcuMjkyOTNMNC4zNTM1NSAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5Mjg5IDguMDAwMDRMMy42NDY0NSAxMS42NDY1TDQuMzUzNTUgMTIuMzUzNkw4IDguNzA3MTRaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo='); } .monaco-editor.hc-black .find-widget .replace, .monaco-editor.vs-dark .find-widget .replace { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMzIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zLjIyMSAzLjczOUw1LjQ4MiA2LjAwOEw3LjcgMy43ODRMNyAzLjA4NEw1Ljk4OCA0LjA5MUw1Ljk4IDIuNDkxQzUuOTc5MDkgMi4zNTU2NyA2LjAzMDY4IDIuMjI1MjUgNi4xMjM5MiAyLjEyNzE2QzYuMjE3MTYgMi4wMjkwOCA2LjM0NDggMS45NzA5NSA2LjQ4IDEuOTY1SDhWMUg2LjQ4QzYuMjg0OTYgMS4wMDAyNiA2LjA5MTg5IDEuMDM5MDIgNS45MTE4NiAxLjExNDA1QzUuNzMxODMgMS4xODkwOCA1LjU2ODM4IDEuMjk4OTIgNS40MzA4OCAxLjQzNzI1QzUuMjkzMzggMS41NzU1OCA1LjE4NDU1IDEuNzM5NjkgNS4xMTA2MSAxLjkyMDE4QzUuMDM2NjcgMi4xMDA2NiA0Ljk5OTA4IDIuMjkzOTYgNSAyLjQ4OVY0LjFMMy45MjcgMy4wMzNMMy4yMjEgMy43MzlaTTkuODkwMTQgNS41MzI3N0g5LjkwMTQxQzEwLjA4MzYgNS44NDQyNiAxMC4zNTIxIDYgMTAuNzA3IDZDMTEuMDk5NSA2IDExLjQxMzEgNS44MzIzNiAxMS42NDc5IDUuNDk3MDhDMTEuODgyNiA1LjE2MTggMTIgNC43MTcyOCAxMiA0LjE2MzUzQzEyIDMuNjUzMDQgMTEuODk5NSAzLjI1MDcgMTEuNjk4NiAyLjk1NjUyQzExLjQ5NzcgMi42NjIzNCAxMS4yMTEzIDIuNTE1MjUgMTAuODM5NCAyLjUxNTI1QzEwLjQzMzggMi41MTUyNSAxMC4xMjExIDIuNzA4ODUgOS45MDE0MSAzLjA5NjA0SDkuODkwMTRWMUg5VjUuOTE4ODhIOS44OTAxNFY1LjUzMjc3Wk05Ljg3NjA2IDQuNDcxNzdWNC4xMzEwOEM5Ljg3NjA2IDMuODg0NDkgOS45MzQyNyAzLjY4NDQgMTAuMDUwNyAzLjUzMDgyQzEwLjE2OSAzLjM3NzI0IDEwLjMxNzQgMy4zMDA0NSAxMC40OTU4IDMuMzAwNDVDMTAuNjg1NCAzLjMwMDQ1IDEwLjgzMSAzLjM3ODMzIDEwLjkzMjQgMy41MzQwN0MxMS4wMzU3IDMuNjg3NjUgMTEuMDg3MyAzLjkwMTggMTEuMDg3MyA0LjE3NjUxQzExLjA4NzMgNC41MDc0NiAxMS4wMzEgNC43NjM3OSAxMC45MTgzIDQuOTQ1NDlDMTAuODA3NSA1LjEyNTAzIDEwLjY1MDcgNS4yMTQ4IDEwLjQ0NzkgNS4yMTQ4QzEwLjI4MDggNS4yMTQ4IDEwLjE0MzcgNS4xNDQ0OSAxMC4wMzY2IDUuMDAzODlDOS45Mjk1OCA0Ljg2MzI5IDkuODc2MDYgNC42ODU5MiA5Ljg3NjA2IDQuNDcxNzdaTTkgMTIuNzY5MUM4Ljc0NDMzIDEyLjkyMyA4LjM3NTE1IDEzIDcuODkyNDcgMTNDNy4zMjg1NSAxMyA2Ljg3MjE2IDEyLjgyMjUgNi41MjMzIDEyLjQ2NzRDNi4xNzQ0MyAxMi4xMTI0IDYgMTEuNjU0MyA2IDExLjA5MzFDNiAxMC40NDUxIDYuMTg2MzggOS45MzQ4NCA2LjU1OTE0IDkuNTYyNEM2LjkzNDI5IDkuMTg3NDcgNy40MzQ4OSA5LjAwMDAxIDguMDYwOTMgOS4wMDAwMUM4LjQ5MzQzIDkuMDAwMDEgOC44MDY0NSA5LjA1OTYgOSA5LjE3ODc4VjEwLjE3NjlDOC43NjM0NCA5Ljk5MzE5IDguNDk5NCA5LjkwMTMyIDguMjA3ODkgOS45MDEzMkM3Ljg4MjkyIDkuOTAxMzIgNy42MjQ4NSAxMC4wMDA2IDcuNDMzNjkgMTAuMTk5M0M3LjI0NDkyIDEwLjM5NTQgNy4xNTA1NCAxMC42NjczIDcuMTUwNTQgMTEuMDE0OUM3LjE1MDU0IDExLjM1MjYgNy4yNDEzNCAxMS42MTgzIDcuNDIyOTQgMTEuODExOUM3LjYwNDU0IDEyLjAwMzEgNy44NTQyNCAxMi4wOTg3IDguMTcyMDQgMTIuMDk4N0M4LjQ1NCAxMi4wOTg3IDguNzI5OTkgMTIuMDA2OCA5IDExLjgyMzFWMTIuNzY5MVpNNCA3TDMgOFYxNEw0IDE1SDExTDEyIDE0VjhMMTEgN0g0Wk00IDhINUgxMEgxMVY5VjEzVjE0SDEwSDVINFYxM1Y5VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo='); } .monaco-editor.hc-black .find-widget .replace-all, .monaco-editor.vs-dark .find-widget .replace-all { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42MDA5IDIuNjc2ODNDMTEuNzQ3NCAyLjM2NzA4IDExLjk1NTkgMi4yMTIyIDEyLjIyNjMgMi4yMTIyQzEyLjQ3NDIgMi4yMTIyIDEyLjY2NTEgMi4zMjk4NyAxMi43OTkxIDIuNTY1MjJDMTIuOTMzIDIuODAwNTYgMTMgMy4xMjI0MyAxMyAzLjUzMDgyQzEzIDMuOTczODMgMTIuOTIxOCA0LjMyOTQ0IDEyLjc2NTMgNC41OTc2NkMxMi42MDg4IDQuODY1ODkgMTIuMzk5NyA1IDEyLjEzOCA1QzExLjkwMTQgNSAxMS43MjI0IDQuODc1NDEgMTEuNjAwOSA0LjYyNjIySDExLjU5MzRWNC45MzUxMUgxMVYxSDExLjU5MzRWMi42NzY4M0gxMS42MDA5Wk0xMS41ODQgMy43Nzc0MkMxMS41ODQgMy45NDg3MyAxMS42MTk3IDQuMDkwNjMgMTEuNjkxMSA0LjIwMzExQzExLjc2MjQgNC4zMTU2IDExLjg1MzggNC4zNzE4NCAxMS45NjUzIDQuMzcxODRDMTIuMTAwNSA0LjM3MTg0IDEyLjIwNSA0LjMwMDAyIDEyLjI3ODkgNC4xNTYzOUMxMi4zNTQgNC4wMTEwMyAxMi4zOTE1IDMuODA1OTcgMTIuMzkxNSAzLjU0MTIxQzEyLjM5MTUgMy4zMjE0NCAxMi4zNTcxIDMuMTUwMTIgMTIuMjg4MyAzLjAyNzI2QzEyLjIyMDcgMi45MDI2NiAxMi4xMjM2IDIuODQwMzYgMTEuOTk3MiAyLjg0MDM2QzExLjg3ODIgMi44NDAzNiAxMS43NzkzIDIuOTAxOCAxMS43MDA1IDMuMDI0NjZDMTEuNjIyOCAzLjE0NzUyIDExLjU4NCAzLjMwNzU5IDExLjU4NCAzLjUwNDg3VjMuNzc3NDJaTTQuMTE5NjkgNy42OTVMMiA1LjU2NzgxTDIuNjYxODggNC45MDU5NEwzLjY2NzgxIDUuOTA2MjVWNC4zOTU5NEMzLjY2Njk1IDQuMjEzMDkgMy43MDIxOSA0LjAzMTg3IDMuNzcxNSAzLjg2MjY2QzMuODQwODIgMy42OTM0NiAzLjk0Mjg2IDMuNTM5NjEgNC4wNzE3NiAzLjQwOTkyQzQuMjAwNjYgMy4yODAyMyA0LjM1MzkgMy4xNzcyNyA0LjUyMjY4IDMuMTA2OTJDNC42OTE0NiAzLjAzNjU4IDQuODcyNDYgMy4wMDAyNCA1LjA1NTMxIDNINy4zOTkwNlYzLjkwNDY5SDUuMDU1MzFDNC45Mjg1NiAzLjkxMDI2IDQuODA4OSAzLjk2NDc2IDQuNzIxNDkgNC4wNTY3MkM0LjYzNDA4IDQuMTQ4NjggNC41ODU3MSA0LjI3MDk0IDQuNTg2NTYgNC4zOTc4MUw0LjU5NDA2IDUuODk3ODFMNS41NDI4MSA0Ljk1Mzc1TDYuMTk5MDYgNS42MUw0LjExOTY5IDcuNjk1Wk05LjM1NTYgNC45MzAxN0gxMFYzLjIyMDY3QzEwIDIuNDA2ODkgOS42ODUzNCAyIDkuMDU2MDMgMkM4LjkyMDk4IDIgOC43NzA4MyAyLjAyNDIxIDguNjA1NiAyLjA3MjYzQzguNDQxODEgMi4xMjEwNCA4LjMxMjUgMi4xNzY5MSA4LjIxNzY3IDIuMjQwMjJWMi45MDUwM0M4LjQ1NDc0IDIuNzAyMDUgOC43MDQ3NCAyLjYwMDU2IDguOTY3NjcgMi42MDA1NkM5LjIyOTE3IDIuNjAwNTYgOS4zNTk5MSAyLjc1Njk4IDkuMzU5OTEgMy4wNjk4M0w4Ljc2MDc4IDMuMTczMThDOC4yNTM1OSAzLjI1ODg1IDggMy41NzkxNCA4IDQuMTM0MDhDOCA0LjM5NjY1IDguMDYxMDYgNC42MDcwOCA4LjE4MzE5IDQuNzY1MzZDOC4zMDY3NSA0LjkyMTc5IDguNDc1NTcgNSA4LjY4OTY2IDVDOC45Nzk4OSA1IDkuMTk4OTkgNC44Mzk4NSA5LjM0Njk4IDQuNTE5NTVIOS4zNTU2VjQuOTMwMTdaTTkuMzU5OTEgMy41NzU0MlYzLjc2ODE2QzkuMzU5OTEgMy45NDMyIDkuMzE5NjggNC4wODg0NSA5LjIzOTIyIDQuMjAzOTFDOS4xNTg3NiA0LjMxNzUgOS4wNTQ2IDQuMzc0MyA4LjkyNjcyIDQuMzc0M0M4LjgzNDc3IDQuMzc0MyA4Ljc2MTQ5IDQuMzQyNjQgOC43MDY5IDQuMjc5MzNDOC42NTM3NCA0LjIxNDE1IDguNjI3MTYgNC4xMzEyOCA4LjYyNzE2IDQuMDMwNzNDOC42MjcxNiAzLjgwOTEyIDguNzM3NzkgMy42Nzk3IDguOTU5MDUgMy42NDI0Nkw5LjM1OTkxIDMuNTc1NDJaTTcgMTIuOTMwMkg2LjM1NTZWMTIuNTE5Nkg2LjM0Njk4QzYuMTk4OTkgMTIuODM5OSA1Ljk3OTg5IDEzIDUuNjg5NjYgMTNDNS40NzU1NyAxMyA1LjMwNjc1IDEyLjkyMTggNS4xODMxOSAxMi43NjU0QzUuMDYxMDYgMTIuNjA3MSA1IDEyLjM5NjYgNSAxMi4xMzQxQzUgMTEuNTc5MSA1LjI1MzU5IDExLjI1ODggNS43NjA3OCAxMS4xNzMyTDYuMzU5OTEgMTEuMDY5OEM2LjM1OTkxIDEwLjc1NyA2LjIyOTE3IDEwLjYwMDYgNS45Njc2NyAxMC42MDA2QzUuNzA0NzQgMTAuNjAwNiA1LjQ1NDc0IDEwLjcwMiA1LjIxNzY3IDEwLjkwNVYxMC4yNDAyQzUuMzEyNSAxMC4xNzY5IDUuNDQxODEgMTAuMTIxIDUuNjA1NiAxMC4wNzI2QzUuNzcwODMgMTAuMDI0MiA1LjkyMDk4IDEwIDYuMDU2MDMgMTBDNi42ODUzNCAxMCA3IDEwLjQwNjkgNyAxMS4yMjA3VjEyLjkzMDJaTTYuMzU5OTEgMTEuNzY4MlYxMS41NzU0TDUuOTU5MDUgMTEuNjQyNUM1LjczNzc5IDExLjY3OTcgNS42MjcxNiAxMS44MDkxIDUuNjI3MTYgMTIuMDMwN0M1LjYyNzE2IDEyLjEzMTMgNS42NTM3NCAxMi4yMTQyIDUuNzA2OSAxMi4yNzkzQzUuNzYxNDkgMTIuMzQyNiA1LjgzNDc3IDEyLjM3NDMgNS45MjY3MiAxMi4zNzQzQzYuMDU0NiAxMi4zNzQzIDYuMTU4NzYgMTIuMzE3NSA2LjIzOTIyIDEyLjIwMzlDNi4zMTk2OCAxMi4wODg1IDYuMzU5OTEgMTEuOTQzMiA2LjM1OTkxIDExLjc2ODJaTTkuMjYxNjUgMTNDOS41ODM0MyAxMyA5LjgyOTU1IDEyLjk0MjMgMTAgMTIuODI2OFYxMi4xMTczQzkuODE5OTkgMTIuMjU1MSA5LjYzNiAxMi4zMjQgOS40NDgwMyAxMi4zMjRDOS4yMzYxNiAxMi4zMjQgOS4wNjk2OSAxMi4yNTIzIDguOTQ4NjMgMTIuMTA4OUM4LjgyNzU2IDExLjk2MzcgOC43NjcwMiAxMS43NjQ0IDguNzY3MDIgMTEuNTExMkM4Ljc2NzAyIDExLjI1MDUgOC44Mjk5NSAxMS4wNDY2IDguOTU1NzkgMTAuODk5NEM5LjA4MzIzIDEwLjc1MDUgOS4yNTUyOCAxMC42NzYgOS40NzE5MiAxMC42NzZDOS42NjYyNyAxMC42NzYgOS44NDIyOSAxMC43NDQ5IDEwIDEwLjg4MjdWMTAuMTM0MUM5Ljg3MDk3IDEwLjA0NDcgOS42NjIyOSAxMCA5LjM3Mzk1IDEwQzguOTU2NTkgMTAgOC42MjI4NiAxMC4xNDA2IDguMzcyNzYgMTAuNDIxOEM4LjEyNDI1IDEwLjcwMTEgOCAxMS4wODM4IDggMTEuNTY5OEM4IDExLjk5MDcgOC4xMTYyOSAxMi4zMzQzIDguMzQ4ODcgMTIuNjAwNkM4LjU4MTQ0IDEyLjg2NjkgOC44ODU3IDEzIDkuMjYxNjUgMTNaTTIgOUwzIDhIMTJMMTMgOVYxNEwxMiAxNUgzTDIgMTRWOVpNMyA5VjE0SDEyVjlIM1pNNiA3TDcgNkgxNEwxNSA3VjEyTDE0IDEzVjEyVjdIN0g2WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .monaco-editor.hc-black .find-widget .expand, .monaco-editor.vs-dark .find-widget .expand { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDZMMTIuOTUyMSA2LjMzMzMyTDguMjg1MzkgMTFMNy42NjY2NyAxMUwzIDYuMzMzMzJMMy42MTg3MiA1LjcxNDZMNy45NzYwMyAxMC4wNzE5WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .monaco-editor.hc-black .find-widget .collapse, .monaco-editor.vs-dark .find-widget .collapse { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDguMDAwMDVMNS43MTQ2MSAxMi4zNTc0TDYuMzMzMzMgMTIuOTc2MUwxMSA4LjMwOTQxVjcuNjkwNjlMNi4zMzMzMyAzLjAyNDAyTDUuNzE0NjEgMy42NDI3NEwxMC4wNzE5IDguMDAwMDVaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo='); } .monaco-editor.hc-black .find-widget .button:not(.disabled):hover, .monaco-editor.vs-dark .find-widget .button:not(.disabled):hover { - background-color: rgba(255, 255, 255, 0.1); + background-color: rgba(255, 255, 255, 0.1); } .monaco-editor.hc-black .find-widget .button:before { - position: relative; - top: 1px; - left: 2px; + position: relative; + top: 1px; + left: 2px; } -.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label { - background-color: rgba(255, 255, 255, 0.1); +.monaco-editor.hc-black + .find-widget + .monaco-checkbox + .checkbox:checked + + .label { + background-color: rgba(255, 255, 255, 0.1); } /*--------------------------------------------------------------------------------------------- @@ -515,8 +574,8 @@ *--------------------------------------------------------------------------------------------*/ .monaco-aria-container { - position: absolute; /* try to hide from window but not from screen readers */ - left:-999em; + position: absolute; /* try to hide from window but not from screen readers */ + left: -999em; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -524,112 +583,112 @@ *--------------------------------------------------------------------------------------------*/ .monaco-sash { - position: absolute; - z-index: 35; - touch-action: none; + position: absolute; + z-index: 35; + touch-action: none; } .monaco-sash.disabled { - pointer-events: none; + pointer-events: none; } .monaco-sash.vertical { - cursor: ew-resize; - top: 0; - width: 4px; - height: 100%; + cursor: ew-resize; + top: 0; + width: 4px; + height: 100%; } .monaco-sash.mac.vertical { - cursor: col-resize; + cursor: col-resize; } .monaco-sash.vertical.minimum { - cursor: e-resize; + cursor: e-resize; } .monaco-sash.vertical.maximum { - cursor: w-resize; + cursor: w-resize; } .monaco-sash.horizontal { - cursor: ns-resize; - left: 0; - width: 100%; - height: 4px; + cursor: ns-resize; + left: 0; + width: 100%; + height: 4px; } .monaco-sash.mac.horizontal { - cursor: row-resize; + cursor: row-resize; } .monaco-sash.horizontal.minimum { - cursor: s-resize; + cursor: s-resize; } .monaco-sash.horizontal.maximum { - cursor: n-resize; + cursor: n-resize; } .monaco-sash:not(.disabled).orthogonal-start::before, .monaco-sash:not(.disabled).orthogonal-end::after { - content: ' '; - height: 8px; - width: 8px; - z-index: 100; - display: block; - cursor: all-scroll; - position: absolute; + content: ' '; + height: 8px; + width: 8px; + z-index: 100; + display: block; + cursor: all-scroll; + position: absolute; } .monaco-sash.orthogonal-start.vertical::before { - left: -2px; - top: -4px; + left: -2px; + top: -4px; } .monaco-sash.orthogonal-end.vertical::after { - left: -2px; - bottom: -4px; + left: -2px; + bottom: -4px; } .monaco-sash.orthogonal-start.horizontal::before { - top: -2px; - left: -4px; + top: -2px; + left: -4px; } .monaco-sash.orthogonal-end.horizontal::after { - top: -2px; - right: -4px; + top: -2px; + right: -4px; } .monaco-sash.disabled { - cursor: default !important; - pointer-events: none !important; + cursor: default !important; + pointer-events: none !important; } /** Touch **/ .monaco-sash.touch.vertical { - width: 20px; + width: 20px; } .monaco-sash.touch.horizontal { - height: 20px; + height: 20px; } /** Debug **/ .monaco-sash.debug { - background: cyan; + background: cyan; } .monaco-sash.debug.disabled { - background: rgba(0, 255, 255, 0.2); + background: rgba(0, 255, 255, 0.2); } .monaco-sash.debug:not(.disabled).orthogonal-start::before, .monaco-sash.debug:not(.disabled).orthogonal-end::after { - background: red; + background: red; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -638,63 +697,79 @@ /* ---------- Find input ---------- */ .monaco-findInput { - position: relative; + position: relative; } .monaco-findInput .monaco-inputbox { - font-size: 13px; - width: 100%; + font-size: 13px; + width: 100%; } .monaco-findInput > .controls { - position: absolute; - top: 3px; - right: 2px; + position: absolute; + top: 3px; + right: 2px; } .vs .monaco-findInput.disabled { - background-color: #E1E1E1; + background-color: #e1e1e1; } /* Theming */ .vs-dark .monaco-findInput.disabled { - background-color: #333; + background-color: #333; } /* Highlighting */ .monaco-findInput.highlight-0 .controls { - animation: monaco-findInput-highlight-0 100ms linear 0s; + animation: monaco-findInput-highlight-0 100ms linear 0s; } .monaco-findInput.highlight-1 .controls { - animation: monaco-findInput-highlight-1 100ms linear 0s; + animation: monaco-findInput-highlight-1 100ms linear 0s; } .hc-black .monaco-findInput.highlight-0 .controls, -.vs-dark .monaco-findInput.highlight-0 .controls { - animation: monaco-findInput-highlight-dark-0 100ms linear 0s; +.vs-dark .monaco-findInput.highlight-0 .controls { + animation: monaco-findInput-highlight-dark-0 100ms linear 0s; } .hc-black .monaco-findInput.highlight-1 .controls, -.vs-dark .monaco-findInput.highlight-1 .controls { - animation: monaco-findInput-highlight-dark-1 100ms linear 0s; +.vs-dark .monaco-findInput.highlight-1 .controls { + animation: monaco-findInput-highlight-dark-1 100ms linear 0s; } @keyframes monaco-findInput-highlight-0 { - 0% { background: rgba(253, 255, 0, 0.8); } - 100% { background: transparent; } + 0% { + background: rgba(253, 255, 0, 0.8); + } + 100% { + background: transparent; + } } @keyframes monaco-findInput-highlight-1 { - 0% { background: rgba(253, 255, 0, 0.8); } - /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ - 99% { background: transparent; } + 0% { + background: rgba(253, 255, 0, 0.8); + } + /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ + 99% { + background: transparent; + } } @keyframes monaco-findInput-highlight-dark-0 { - 0% { background: rgba(255, 255, 255, 0.44); } - 100% { background: transparent; } + 0% { + background: rgba(255, 255, 255, 0.44); + } + 100% { + background: transparent; + } } @keyframes monaco-findInput-highlight-dark-1 { - 0% { background: rgba(255, 255, 255, 0.44); } - /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ - 99% { background: transparent; } + 0% { + background: rgba(255, 255, 255, 0.44); + } + /* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/ + 99% { + background: transparent; + } } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -702,125 +777,124 @@ *--------------------------------------------------------------------------------------------*/ .monaco-inputbox { - position: relative; - display: block; - padding: 0; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - line-height: auto !important; + position: relative; + display: block; + padding: 0; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + line-height: auto !important; - /* Customizable */ - font-size: inherit; + /* Customizable */ + font-size: inherit; } .monaco-inputbox.idle { - border: 1px solid transparent; + border: 1px solid transparent; } .monaco-inputbox > .wrapper > .input, .monaco-inputbox > .wrapper > .mirror { - - /* Customizable */ - padding: 4px; + /* Customizable */ + padding: 4px; } .monaco-inputbox > .wrapper { - position: relative; - width: 100%; - height: 100%; + position: relative; + width: 100%; + height: 100%; } .monaco-inputbox > .wrapper > .input { - display: inline-block; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - width: 100%; - height: 100%; - line-height: inherit; - border: none; - font-family: inherit; - font-size: inherit; - resize: none; - color: inherit; + display: inline-block; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + height: 100%; + line-height: inherit; + border: none; + font-family: inherit; + font-size: inherit; + resize: none; + color: inherit; } .monaco-inputbox > .wrapper > input { - text-overflow: ellipsis; + text-overflow: ellipsis; } .monaco-inputbox > .wrapper > textarea.input { - display: block; - -ms-overflow-style: none; /* IE 10+ */ - overflow: -moz-scrollbars-none; /* Firefox */ - scrollbar-width: none; /* Firefox ^64 */ - outline: none; + display: block; + -ms-overflow-style: none; /* IE 10+ */ + overflow: -moz-scrollbars-none; /* Firefox */ + scrollbar-width: none; /* Firefox ^64 */ + outline: none; } .monaco-inputbox > .wrapper > textarea.input::-webkit-scrollbar { - display: none; + display: none; } .monaco-inputbox > .wrapper > .mirror { - position: absolute; - display: inline-block; - width: 100%; - top: 0; - left: 0; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - white-space: pre-wrap; - visibility: hidden; - word-wrap: break-word; + position: absolute; + display: inline-block; + width: 100%; + top: 0; + left: 0; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + white-space: pre-wrap; + visibility: hidden; + word-wrap: break-word; } /* Context view */ .monaco-inputbox-container { - text-align: right; + text-align: right; } .monaco-inputbox-container .monaco-inputbox-message { - display: inline-block; - overflow: hidden; - text-align: left; - width: 100%; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - padding: 0.4em; - font-size: 12px; - line-height: 17px; - min-height: 34px; - margin-top: -1px; - word-wrap: break-word; + display: inline-block; + overflow: hidden; + text-align: left; + width: 100%; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + padding: 0.4em; + font-size: 12px; + line-height: 17px; + min-height: 34px; + margin-top: -1px; + word-wrap: break-word; } /* Action bar support */ .monaco-inputbox .monaco-action-bar { - position: absolute; - right: 2px; - top: 4px; + position: absolute; + right: 2px; + top: 4px; } .monaco-inputbox .monaco-action-bar .action-item { - margin-left: 2px; + margin-left: 2px; } .monaco-inputbox .monaco-action-bar .action-item .icon { - background-repeat: no-repeat; - width: 16px; - height: 16px; + background-repeat: no-repeat; + width: 16px; + height: 16px; } /*--------------------------------------------------------------------------------------------- @@ -829,97 +903,97 @@ *--------------------------------------------------------------------------------------------*/ .monaco-action-bar { - text-align: right; - overflow: hidden; - white-space: nowrap; + text-align: right; + overflow: hidden; + white-space: nowrap; } .monaco-action-bar .actions-container { - display: flex; - margin: 0 auto; - padding: 0; - width: 100%; - justify-content: flex-end; + display: flex; + margin: 0 auto; + padding: 0; + width: 100%; + justify-content: flex-end; } .monaco-action-bar.vertical .actions-container { - display: inline-block; + display: inline-block; } .monaco-action-bar.reverse .actions-container { - flex-direction: row-reverse; + flex-direction: row-reverse; } .monaco-action-bar .action-item { - cursor: pointer; - display: inline-block; - transition: transform 50ms ease; - position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ + cursor: pointer; + display: inline-block; + transition: transform 50ms ease; + position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */ } .monaco-action-bar .action-item.disabled { - cursor: default; + cursor: default; } .monaco-action-bar.animated .action-item.active { - transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */ + transform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */ } .monaco-action-bar .action-item .icon { - display: inline-block; + display: inline-block; } .monaco-action-bar .action-label { - font-size: 11px; - margin-right: 4px; + font-size: 11px; + margin-right: 4px; } .monaco-action-bar .action-label.octicon { - font-size: 15px; - line-height: 35px; - text-align: center; + font-size: 15px; + line-height: 35px; + text-align: center; } .monaco-action-bar .action-item.disabled .action-label, .monaco-action-bar .action-item.disabled .action-label:hover { - opacity: 0.4; + opacity: 0.4; } /* Vertical actions */ .monaco-action-bar.vertical { - text-align: left; + text-align: left; } .monaco-action-bar.vertical .action-item { - display: block; + display: block; } .monaco-action-bar.vertical .action-label.separator { - display: block; - border-bottom: 1px solid #bbb; - padding-top: 1px; - margin-left: .8em; - margin-right: .8em; + display: block; + border-bottom: 1px solid #bbb; + padding-top: 1px; + margin-left: 0.8em; + margin-right: 0.8em; } .monaco-action-bar.animated.vertical .action-item.active { - transform: translate(5px, 0); + transform: translate(5px, 0); } .secondary-actions .monaco-action-bar .action-label { - margin-left: 6px; + margin-left: 6px; } /* Action Items */ .monaco-action-bar .action-item.select-container { - overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ - flex: 1; - max-width: 170px; - min-width: 60px; - display: flex; - align-items: center; - justify-content: center; + overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */ + flex: 1; + max-width: 170px; + min-width: 60px; + display: flex; + align-items: center; + justify-content: center; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -928,381 +1002,414 @@ /* Arrows */ .monaco-scrollable-element > .scrollbar > .up-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4="); - cursor: pointer; + background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4='); + cursor: pointer; } .monaco-scrollable-element > .scrollbar > .down-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4="); - cursor: pointer; + background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4='); + cursor: pointer; } .monaco-scrollable-element > .scrollbar > .left-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); - cursor: pointer; + background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+'); + cursor: pointer; } .monaco-scrollable-element > .scrollbar > .right-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); - cursor: pointer; + background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+'); + cursor: pointer; } .hc-black .monaco-scrollable-element > .scrollbar > .up-arrow, .vs-dark .monaco-scrollable-element > .scrollbar > .up-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiNFOEU4RTgiLz48L3N2Zz4="); + background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiNFOEU4RTgiLz48L3N2Zz4='); } .hc-black .monaco-scrollable-element > .scrollbar > .down-arrow, .vs-dark .monaco-scrollable-element > .scrollbar > .down-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4="); + background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4='); } .hc-black .monaco-scrollable-element > .scrollbar > .left-arrow, .vs-dark .monaco-scrollable-element > .scrollbar > .left-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); + background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+'); } .hc-black .monaco-scrollable-element > .scrollbar > .right-arrow, .vs-dark .monaco-scrollable-element > .scrollbar > .right-arrow { - background: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+"); + background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+'); } .monaco-scrollable-element > .visible { - opacity: 1; + opacity: 1; - /* Background rule added for IE9 - to allow clicks on dom node */ - background:rgba(0,0,0,0); + /* Background rule added for IE9 - to allow clicks on dom node */ + background: rgba(0, 0, 0, 0); - transition: opacity 100ms linear; + transition: opacity 100ms linear; } .monaco-scrollable-element > .invisible { - opacity: 0; - pointer-events: none; + opacity: 0; + pointer-events: none; } .monaco-scrollable-element > .invisible.fade { - transition: opacity 800ms linear; + transition: opacity 800ms linear; } /* Scrollable Content Inset Shadow */ .monaco-scrollable-element > .shadow { - position: absolute; - display: none; + position: absolute; + display: none; } .monaco-scrollable-element > .shadow.top { - display: block; - top: 0; - left: 3px; - height: 3px; - width: 100%; - box-shadow: #DDD 0 6px 6px -6px inset; + display: block; + top: 0; + left: 3px; + height: 3px; + width: 100%; + box-shadow: #ddd 0 6px 6px -6px inset; } .monaco-scrollable-element > .shadow.left { - display: block; - top: 3px; - left: 0; - height: 100%; - width: 3px; - box-shadow: #DDD 6px 0 6px -6px inset; + display: block; + top: 3px; + left: 0; + height: 100%; + width: 3px; + box-shadow: #ddd 6px 0 6px -6px inset; } .monaco-scrollable-element > .shadow.top-left-corner { - display: block; - top: 0; - left: 0; - height: 3px; - width: 3px; + display: block; + top: 0; + left: 0; + height: 3px; + width: 3px; } .monaco-scrollable-element > .shadow.top.left { - box-shadow: #DDD 6px 6px 6px -6px inset; + box-shadow: #ddd 6px 6px 6px -6px inset; } /* ---------- Default Style ---------- */ .vs .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(100, 100, 100, .4); + background: rgba(100, 100, 100, 0.4); } .vs-dark .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(121, 121, 121, .4); + background: rgba(121, 121, 121, 0.4); } .hc-black .monaco-scrollable-element > .scrollbar > .slider { - background: rgba(111, 195, 223, .6); + background: rgba(111, 195, 223, 0.6); } .monaco-scrollable-element > .scrollbar > .slider:hover { - background: rgba(100, 100, 100, .7); + background: rgba(100, 100, 100, 0.7); } .hc-black .monaco-scrollable-element > .scrollbar > .slider:hover { - background: rgba(111, 195, 223, .8); + background: rgba(111, 195, 223, 0.8); } .monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(0, 0, 0, .6); + background: rgba(0, 0, 0, 0.6); } .vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(191, 191, 191, .4); + background: rgba(191, 191, 191, 0.4); } .hc-black .monaco-scrollable-element > .scrollbar > .slider.active { - background: rgba(111, 195, 223, 1); + background: rgba(111, 195, 223, 1); } .vs-dark .monaco-scrollable-element .shadow.top { - box-shadow: none; + box-shadow: none; } .vs-dark .monaco-scrollable-element .shadow.left { - box-shadow: #000 6px 0 6px -6px inset; + box-shadow: #000 6px 0 6px -6px inset; } .vs-dark .monaco-scrollable-element .shadow.top.left { - box-shadow: #000 6px 6px 6px -6px inset; + box-shadow: #000 6px 6px 6px -6px inset; } .hc-black .monaco-scrollable-element .shadow.top { - box-shadow: none; + box-shadow: none; } .hc-black .monaco-scrollable-element .shadow.left { - box-shadow: none; + box-shadow: none; } .hc-black .monaco-scrollable-element .shadow.top.left { - box-shadow: none; + box-shadow: none; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ - /* Default standalone editor font */ .monaco-editor { - font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif; + font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', + 'HelveticaNeue-Light', 'Ubuntu', 'Droid Sans', sans-serif; } -.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label { - stroke-width: 1.2px; +.monaco-menu + .monaco-action-bar.vertical + .action-item + .action-menu-item:focus + .action-label { + stroke-width: 1.2px; } -.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, -.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - stroke-width: 1.2px; +.monaco-editor.vs-dark + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:focus + .action-label, +.monaco-editor.hc-black + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:focus + .action-label { + stroke-width: 1.2px; } .monaco-editor-hover p { - margin: 0; + margin: 0; } /* The hc-black theme is already high contrast optimized */ .monaco-editor.hc-black { - -ms-high-contrast-adjust: none; + -ms-high-contrast-adjust: none; } /* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */ -@media screen and (-ms-high-contrast:active) { +@media screen and (-ms-high-contrast: active) { + /* current line highlight */ + .monaco-editor.vs .view-overlays .current-line, + .monaco-editor.vs-dark .view-overlays .current-line { + border-color: windowtext !important; + border-left: 0; + border-right: 0; + } - /* current line highlight */ - .monaco-editor.vs .view-overlays .current-line, - .monaco-editor.vs-dark .view-overlays .current-line { - border-color: windowtext !important; - border-left: 0; - border-right: 0; - } + /* view cursors */ + .monaco-editor.vs .cursor, + .monaco-editor.vs-dark .cursor { + background-color: windowtext !important; + } + /* dnd target */ + .monaco-editor.vs .dnd-target, + .monaco-editor.vs-dark .dnd-target { + border-color: windowtext !important; + } - /* view cursors */ - .monaco-editor.vs .cursor, - .monaco-editor.vs-dark .cursor { - background-color: windowtext !important; - } - /* dnd target */ - .monaco-editor.vs .dnd-target, - .monaco-editor.vs-dark .dnd-target { - border-color: windowtext !important; - } + /* selected text background */ + .monaco-editor.vs .selected-text, + .monaco-editor.vs-dark .selected-text { + background-color: highlight !important; + } - /* selected text background */ - .monaco-editor.vs .selected-text, - .monaco-editor.vs-dark .selected-text { - background-color: highlight !important; - } + /* allow the text to have a transparent background. */ + .monaco-editor.vs .view-line, + .monaco-editor.vs-dark .view-line { + -ms-high-contrast-adjust: none; + } - /* allow the text to have a transparent background. */ - .monaco-editor.vs .view-line, - .monaco-editor.vs-dark .view-line { - -ms-high-contrast-adjust: none; - } + /* text color */ + .monaco-editor.vs .view-line span, + .monaco-editor.vs-dark .view-line span { + color: windowtext !important; + } + /* selected text color */ + .monaco-editor.vs .view-line span.inline-selected-text, + .monaco-editor.vs-dark .view-line span.inline-selected-text { + color: highlighttext !important; + } - /* text color */ - .monaco-editor.vs .view-line span, - .monaco-editor.vs-dark .view-line span { - color: windowtext !important; - } - /* selected text color */ - .monaco-editor.vs .view-line span.inline-selected-text, - .monaco-editor.vs-dark .view-line span.inline-selected-text { - color: highlighttext !important; - } + /* allow decorations */ + .monaco-editor.vs .view-overlays, + .monaco-editor.vs-dark .view-overlays { + -ms-high-contrast-adjust: none; + } - /* allow decorations */ - .monaco-editor.vs .view-overlays, - .monaco-editor.vs-dark .view-overlays { - -ms-high-contrast-adjust: none; - } + /* various decorations */ + .monaco-editor.vs .selectionHighlight, + .monaco-editor.vs-dark .selectionHighlight, + .monaco-editor.vs .wordHighlight, + .monaco-editor.vs-dark .wordHighlight, + .monaco-editor.vs .wordHighlightStrong, + .monaco-editor.vs-dark .wordHighlightStrong, + .monaco-editor.vs .reference-decoration, + .monaco-editor.vs-dark .reference-decoration { + border: 2px dotted highlight !important; + background: transparent !important; + box-sizing: border-box; + } + .monaco-editor.vs .rangeHighlight, + .monaco-editor.vs-dark .rangeHighlight { + background: transparent !important; + border: 1px dotted activeborder !important; + box-sizing: border-box; + } + .monaco-editor.vs .bracket-match, + .monaco-editor.vs-dark .bracket-match { + border-color: windowtext !important; + background: transparent !important; + } - /* various decorations */ - .monaco-editor.vs .selectionHighlight, - .monaco-editor.vs-dark .selectionHighlight, - .monaco-editor.vs .wordHighlight, - .monaco-editor.vs-dark .wordHighlight, - .monaco-editor.vs .wordHighlightStrong, - .monaco-editor.vs-dark .wordHighlightStrong, - .monaco-editor.vs .reference-decoration, - .monaco-editor.vs-dark .reference-decoration { - border: 2px dotted highlight !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .rangeHighlight, - .monaco-editor.vs-dark .rangeHighlight { - background: transparent !important; - border: 1px dotted activeborder !important; - box-sizing: border-box; - } - .monaco-editor.vs .bracket-match, - .monaco-editor.vs-dark .bracket-match { - border-color: windowtext !important; - background: transparent !important; - } + /* find widget */ + .monaco-editor.vs .findMatch, + .monaco-editor.vs-dark .findMatch, + .monaco-editor.vs .currentFindMatch, + .monaco-editor.vs-dark .currentFindMatch { + border: 2px dotted activeborder !important; + background: transparent !important; + box-sizing: border-box; + } + .monaco-editor.vs .find-widget, + .monaco-editor.vs-dark .find-widget { + border: 1px solid windowtext; + } - /* find widget */ - .monaco-editor.vs .findMatch, - .monaco-editor.vs-dark .findMatch, - .monaco-editor.vs .currentFindMatch, - .monaco-editor.vs-dark .currentFindMatch { - border: 2px dotted activeborder !important; - background: transparent !important; - box-sizing: border-box; - } - .monaco-editor.vs .find-widget, - .monaco-editor.vs-dark .find-widget { - border: 1px solid windowtext; - } + /* list - used by suggest widget */ + .monaco-editor.vs .monaco-list .monaco-list-row, + .monaco-editor.vs-dark .monaco-list .monaco-list-row { + -ms-high-contrast-adjust: none; + color: windowtext !important; + } + .monaco-editor.vs .monaco-list .monaco-list-row.focused, + .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused { + color: highlighttext !important; + background-color: highlight !important; + } + .monaco-editor.vs .monaco-list .monaco-list-row:hover, + .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover { + background: transparent !important; + border: 1px solid highlight; + box-sizing: border-box; + } - /* list - used by suggest widget */ - .monaco-editor.vs .monaco-list .monaco-list-row, - .monaco-editor.vs-dark .monaco-list .monaco-list-row { - -ms-high-contrast-adjust: none; - color: windowtext !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row.focused, - .monaco-editor.vs-dark .monaco-list .monaco-list-row.focused { - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-list .monaco-list-row:hover, - .monaco-editor.vs-dark .monaco-list .monaco-list-row:hover { - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } + /* tree */ + .monaco-editor.vs .monaco-tree .monaco-tree-row, + .monaco-editor.vs-dark .monaco-tree .monaco-tree-row { + -ms-high-contrast-adjust: none; + color: windowtext !important; + } + .monaco-editor.vs .monaco-tree .monaco-tree-row.selected, + .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.selected, + .monaco-editor.vs .monaco-tree .monaco-tree-row.focused, + .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.focused { + color: highlighttext !important; + background-color: highlight !important; + } + .monaco-editor.vs .monaco-tree .monaco-tree-row:hover, + .monaco-editor.vs-dark .monaco-tree .monaco-tree-row:hover { + background: transparent !important; + border: 1px solid highlight; + box-sizing: border-box; + } - /* tree */ - .monaco-editor.vs .monaco-tree .monaco-tree-row, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row { - -ms-high-contrast-adjust: none; - color: windowtext !important; - } - .monaco-editor.vs .monaco-tree .monaco-tree-row.selected, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.selected, - .monaco-editor.vs .monaco-tree .monaco-tree-row.focused, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row.focused { - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-tree .monaco-tree-row:hover, - .monaco-editor.vs-dark .monaco-tree .monaco-tree-row:hover { - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } + /* scrollbars */ + .monaco-editor.vs .monaco-scrollable-element > .scrollbar, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar { + -ms-high-contrast-adjust: none; + background: background !important; + border: 1px solid windowtext; + box-sizing: border-box; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider, + .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider { + background: windowtext !important; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover, + .monaco-editor.vs-dark + .monaco-scrollable-element + > .scrollbar + > .slider:hover { + background: highlight !important; + } + .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active, + .monaco-editor.vs-dark + .monaco-scrollable-element + > .scrollbar + > .slider.active { + background: highlight !important; + } - /* scrollbars */ - .monaco-editor.vs .monaco-scrollable-element > .scrollbar, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar { - -ms-high-contrast-adjust: none; - background: background !important; - border: 1px solid windowtext; - box-sizing: border-box; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider { - background: windowtext !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover { - background: highlight !important; - } - .monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active, - .monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active { - background: highlight !important; - } + /* overview ruler */ + .monaco-editor.vs .decorationsOverviewRuler, + .monaco-editor.vs-dark .decorationsOverviewRuler { + opacity: 0; + } - /* overview ruler */ - .monaco-editor.vs .decorationsOverviewRuler, - .monaco-editor.vs-dark .decorationsOverviewRuler { - opacity: 0; - } + /* minimap */ + .monaco-editor.vs .minimap, + .monaco-editor.vs-dark .minimap { + display: none; + } - /* minimap */ - .monaco-editor.vs .minimap, - .monaco-editor.vs-dark .minimap { - display: none; - } + /* squiggles */ + .monaco-editor.vs .squiggly-d-error, + .monaco-editor.vs-dark .squiggly-d-error { + background: transparent !important; + border-bottom: 4px double #e47777; + } + .monaco-editor.vs .squiggly-c-warning, + .monaco-editor.vs-dark .squiggly-c-warning { + border-bottom: 4px double #71b771; + } + .monaco-editor.vs .squiggly-b-info, + .monaco-editor.vs-dark .squiggly-b-info { + border-bottom: 4px double #71b771; + } + .monaco-editor.vs .squiggly-a-hint, + .monaco-editor.vs-dark .squiggly-a-hint { + border-bottom: 4px double #6c6c6c; + } - /* squiggles */ - .monaco-editor.vs .squiggly-d-error, - .monaco-editor.vs-dark .squiggly-d-error { - background: transparent !important; - border-bottom: 4px double #E47777; - } - .monaco-editor.vs .squiggly-c-warning, - .monaco-editor.vs-dark .squiggly-c-warning { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-b-info, - .monaco-editor.vs-dark .squiggly-b-info { - border-bottom: 4px double #71B771; - } - .monaco-editor.vs .squiggly-a-hint, - .monaco-editor.vs-dark .squiggly-a-hint { - border-bottom: 4px double #6c6c6c; - } + /* contextmenu */ + .monaco-editor.vs + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:focus + .action-label, + .monaco-editor.vs-dark + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:focus + .action-label { + -ms-high-contrast-adjust: none; + color: highlighttext !important; + background-color: highlight !important; + } + .monaco-editor.vs + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:hover + .action-label, + .monaco-editor.vs-dark + .monaco-menu + .monaco-action-bar.vertical + .action-menu-item:hover + .action-label { + -ms-high-contrast-adjust: none; + background: transparent !important; + border: 1px solid highlight; + box-sizing: border-box; + } - /* contextmenu */ - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label { - -ms-high-contrast-adjust: none; - color: highlighttext !important; - background-color: highlight !important; - } - .monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label, - .monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label { - -ms-high-contrast-adjust: none; - background: transparent !important; - border: 1px solid highlight; - box-sizing: border-box; - } - - /* diff editor */ - .monaco-diff-editor.vs .diffOverviewRuler, - .monaco-diff-editor.vs-dark .diffOverviewRuler { - display: none; - } - .monaco-editor.vs .line-insert, - .monaco-editor.vs-dark .line-insert, - .monaco-editor.vs .line-delete, - .monaco-editor.vs-dark .line-delete { - background: transparent !important; - border: 1px solid highlight !important; - box-sizing: border-box; - } - .monaco-editor.vs .char-insert, - .monaco-editor.vs-dark .char-insert, - .monaco-editor.vs .char-delete, - .monaco-editor.vs-dark .char-delete { - background: transparent !important; - } + /* diff editor */ + .monaco-diff-editor.vs .diffOverviewRuler, + .monaco-diff-editor.vs-dark .diffOverviewRuler { + display: none; + } + .monaco-editor.vs .line-insert, + .monaco-editor.vs-dark .line-insert, + .monaco-editor.vs .line-delete, + .monaco-editor.vs-dark .line-delete { + background: transparent !important; + border: 1px solid highlight !important; + box-sizing: border-box; + } + .monaco-editor.vs .char-insert, + .monaco-editor.vs-dark .char-insert, + .monaco-editor.vs .char-delete, + .monaco-editor.vs-dark .char-delete { + background: transparent !important; + } } /*.monaco-editor.vs [tabindex="0"]:focus { @@ -1325,39 +1432,39 @@ /* -------------------- IE10 remove auto clear button -------------------- */ ::-ms-clear { - display: none; + display: none; } /* All widgets */ /* I am not a big fan of this rule */ .monaco-editor .editor-widget input { - color: inherit; + color: inherit; } /* -------------------- Editor -------------------- */ .monaco-editor { - position: relative; - overflow: visible; - -webkit-text-size-adjust: 100%; - -webkit-font-feature-settings: "liga" off, "calt" off; - font-feature-settings: "liga" off, "calt" off; + position: relative; + overflow: visible; + -webkit-text-size-adjust: 100%; + -webkit-font-feature-settings: 'liga' off, 'calt' off; + font-feature-settings: 'liga' off, 'calt' off; } .monaco-editor.enable-ligatures { - -webkit-font-feature-settings: "liga" on, "calt" on; - font-feature-settings: "liga" on, "calt" on; + -webkit-font-feature-settings: 'liga' on, 'calt' on; + font-feature-settings: 'liga' on, 'calt' on; } /* -------------------- Misc -------------------- */ .monaco-editor .overflow-guard { - position: relative; - overflow: hidden; + position: relative; + overflow: hidden; } .monaco-editor .view-overlays { - position: absolute; - top: 0; + position: absolute; + top: 0; } /* @@ -1372,27 +1479,26 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .vs-whitespace { - display:inline-block; + display: inline-block; } - /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .inputarea { - min-width: 0; - min-height: 0; - margin: 0; - padding: 0; - position: absolute; - outline: none !important; - resize: none; - border: none; - overflow: hidden; - color: transparent; - background-color: transparent; + min-width: 0; + min-height: 0; + margin: 0; + padding: 0; + position: absolute; + outline: none !important; + resize: none; + border: none; + overflow: hidden; + color: transparent; + background-color: transparent; } /*.monaco-editor .inputarea { position: fixed !important; @@ -1408,7 +1514,7 @@ font-size: 14px !important; }*/ .monaco-editor .inputarea.ime-input { - z-index: 10; + z-index: 10; } /*--------------------------------------------------------------------------------------------- @@ -1417,37 +1523,45 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .line-numbers { - position: absolute; - text-align: right; - display: inline-block; - vertical-align: middle; - box-sizing: border-box; - cursor: default; - height: 100%; + position: absolute; + text-align: right; + display: inline-block; + vertical-align: middle; + box-sizing: border-box; + cursor: default; + height: 100%; } .monaco-editor .relative-current-line-number { - text-align: left; - display: inline-block; - width: 100%; + text-align: left; + display: inline-block; + width: 100%; } .monaco-editor .margin-view-overlays .line-numbers { - cursor: -webkit-image-set( - url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyNSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjU7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcsMTMuOCAzLjIsMjEuNSA2LjMsMjIuNSAxMC4xLDE0LjkgMTQuNSwxOCIvPjwvc3ZnPg==") 1x, - url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAzMCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNTA7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQsMjcuNiA2LjQsNDMgMTIuNiw0NSAyMC4yLDI5LjggMjksMzYiLz48L3N2Zz4K") 2x - ) 30 0, default; + cursor: -webkit-image-set( + url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyNSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjU7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcsMTMuOCAzLjIsMjEuNSA2LjMsMjIuNSAxMC4xLDE0LjkgMTQuNSwxOCIvPjwvc3ZnPg==') + 1x, + url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNTAiIHZpZXdCb3g9IjAgMCAzMCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNTA7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQsMjcuNiA2LjQsNDMgMTIuNiw0NSAyMC4yLDI5LjggMjksMzYiLz48L3N2Zz4K') + 2x + ) + 30 0, + default; } .monaco-editor.mac .margin-view-overlays .line-numbers { - cursor: -webkit-image-set( - url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTMgMTkiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEzIDE5OyIgd2lkdGg9IjEzIiBoZWlnaHQ9IjE5Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fTwvc3R5bGU+PHRpdGxlPmZsaXBwZWQtY3Vyc29yLW1hYzwvdGl0bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTUuMywxNi42bDEuNi00LjdIMi4xTDEyLjUsMS4ydjE0LjRMOS43LDEzbC0xLjYsNC42Yy0wLjIsMC41LTAuOCwwLjgtMS4zLDAuNkw2LDE3LjkgQzUuNCwxNy43LDUuMSwxNy4yLDUuMywxNi42eiIvPjwvc3ZnPgo=") 1x, - url("data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDI2IDM4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNiAzODsiIHdpZHRoPSIyNiIgaGVpZ2h0PSIzOCI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe3N0cm9rZTojRkZGRkZGO3N0cm9rZS1taXRlcmxpbWl0OjEwO308L3N0eWxlPgk8dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTAuNiwzMy4ybDMuMi05LjRINC4yTDI1LDIuNHYyOC44TDE5LjQsMjZsLTMuMiw5LjJjLTAuNCwxLTEuNiwxLjYtMi42LDEuMkwxMiwzNS44IEMxMC44LDM1LjQsMTAuMiwzNC40LDEwLjYsMzMuMnoiLz48L3N2Zz4K") 2x - ) 24 3, default; + cursor: -webkit-image-set( + url('data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMTMgMTkiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDEzIDE5OyIgd2lkdGg9IjEzIiBoZWlnaHQ9IjE5Ij48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7c3Ryb2tlOiNGRkZGRkY7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fTwvc3R5bGU+PHRpdGxlPmZsaXBwZWQtY3Vyc29yLW1hYzwvdGl0bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTUuMywxNi42bDEuNi00LjdIMi4xTDEyLjUsMS4ydjE0LjRMOS43LDEzbC0xLjYsNC42Yy0wLjIsMC41LTAuOCwwLjgtMS4zLDAuNkw2LDE3LjkgQzUuNCwxNy43LDUuMSwxNy4yLDUuMywxNi42eiIvPjwvc3ZnPgo=') + 1x, + url('data:image/svg+xml;base64,CjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDI2IDM4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNiAzODsiIHdpZHRoPSIyNiIgaGVpZ2h0PSIzOCI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe3N0cm9rZTojRkZGRkZGO3N0cm9rZS1taXRlcmxpbWl0OjEwO308L3N0eWxlPgk8dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTAuNiwzMy4ybDMuMi05LjRINC4yTDI1LDIuNHYyOC44TDE5LjQsMjZsLTMuMiw5LjJjLTAuNCwxLTEuNiwxLjYtMi42LDEuMkwxMiwzNS44IEMxMC44LDM1LjQsMTAuMiwzNC40LDEwLjYsMzMuMnoiLz48L3N2Zz4K') + 2x + ) + 24 3, + default; } .monaco-editor .margin-view-overlays .line-numbers.lh-odd { - margin-top: 1px; + margin-top: 1px; } /*--------------------------------------------------------------------------------------------- @@ -1456,11 +1570,11 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .view-overlays .current-line { - display: block; - position: absolute; - left: 0; - top: 0; - box-sizing: border-box; + display: block; + position: absolute; + left: 0; + top: 0; + box-sizing: border-box; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1468,15 +1582,17 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .margin-view-overlays .current-line { - display: block; - position: absolute; - left: 0; - top: 0; - box-sizing: border-box; + display: block; + position: absolute; + left: 0; + top: 0; + box-sizing: border-box; } -.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both { - border-right: 0; +.monaco-editor + .margin-view-overlays + .current-line.current-line-margin.current-line-margin-both { + border-right: 0; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1488,7 +1604,7 @@ cdr = core decorations rendering (div) */ .monaco-editor .lines-content .cdr { - position: absolute; + position: absolute; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1496,8 +1612,8 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .glyph-margin { - position: absolute; - top: 0; + position: absolute; + top: 0; } /* @@ -1505,7 +1621,7 @@ cgmr = core glyph margin rendering (div) */ .monaco-editor .margin-view-overlays .cgmr { - position: absolute; + position: absolute; } /*--------------------------------------------------------------------------------------------- @@ -1518,10 +1634,10 @@ cigr = core ident guides rendering (div) */ .monaco-editor .lines-content .cigr { - position: absolute; + position: absolute; } .monaco-editor .lines-content .cigra { - position: absolute; + position: absolute; } /*--------------------------------------------------------------------------------------------- @@ -1543,27 +1659,34 @@ .monaco-editor.no-user-select .lines-content, .monaco-editor.no-user-select .view-line, .monaco-editor.no-user-select .view-lines { - -webkit-user-select: none; - -ms-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; } .monaco-editor .view-lines { - cursor: text; - white-space: nowrap; + cursor: text; + white-space: nowrap; } .monaco-editor.vs-dark.mac .view-lines, .monaco-editor.hc-black.mac .view-lines { - cursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text; + cursor: -webkit-image-set( + url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) + 1x, + url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) + 2x + ) + 5 8, + text; } .monaco-editor .view-line { - position: absolute; - width: 100%; + position: absolute; + width: 100%; } /* TODO@tokenization bootstrap fix */ @@ -1577,9 +1700,9 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .lines-decorations { - position: absolute; - top: 0; - background: white; + position: absolute; + top: 0; + background: white; } /* @@ -1587,8 +1710,8 @@ cldr = core lines decorations rendering (div) */ .monaco-editor .margin-view-overlays .cldr { - position: absolute; - height: 100%; + position: absolute; + height: 100%; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1600,10 +1723,10 @@ cmdr = core margin decorations rendering (div) */ .monaco-editor .margin-view-overlays .cmdr { - position: absolute; - left: 0; - width: 100%; - height: 100%; + position: absolute; + left: 0; + width: 100%; + height: 100%; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1612,25 +1735,25 @@ /* START cover the case that slider is visible on mouseover */ .monaco-editor .minimap.slider-mouseover .minimap-slider { - opacity: 0; - transition: opacity 100ms linear; + opacity: 0; + transition: opacity 100ms linear; } .monaco-editor .minimap.slider-mouseover:hover .minimap-slider { - opacity: 1; + opacity: 1; } .monaco-editor .minimap.slider-mouseover .minimap-slider.active { - opacity: 1; + opacity: 1; } /* END cover the case that slider is visible on mouseover */ .monaco-editor .minimap-shadow-hidden { - position: absolute; - width: 0; + position: absolute; + width: 0; } .monaco-editor .minimap-shadow-visible { - position: absolute; - left: -6px; - width: 6px; + position: absolute; + left: -6px; + width: 6px; } /*--------------------------------------------------------------------------------------------- @@ -1638,9 +1761,9 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .overlayWidgets { - position: absolute; - top: 0; - left:0; + position: absolute; + top: 0; + left: 0; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1648,8 +1771,8 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .view-ruler { - position: absolute; - top: 0; + position: absolute; + top: 0; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1657,10 +1780,10 @@ *--------------------------------------------------------------------------------------------*/ .monaco-editor .scroll-decoration { - position: absolute; - top: 0; - left: 0; - height: 6px; + position: absolute; + top: 0; + left: 0; + height: 6px; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1672,106 +1795,122 @@ cslr = core selections layer rendering (div) */ .monaco-editor .lines-content .cslr { - position: absolute; + position: absolute; } -.monaco-editor .top-left-radius { border-top-left-radius: 3px; } -.monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; } -.monaco-editor .top-right-radius { border-top-right-radius: 3px; } -.monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; } +.monaco-editor .top-left-radius { + border-top-left-radius: 3px; +} +.monaco-editor .bottom-left-radius { + border-bottom-left-radius: 3px; +} +.monaco-editor .top-right-radius { + border-top-right-radius: 3px; +} +.monaco-editor .bottom-right-radius { + border-bottom-right-radius: 3px; +} -.monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; } -.monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; } -.monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; } -.monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; } +.monaco-editor.hc-black .top-left-radius { + border-top-left-radius: 0; +} +.monaco-editor.hc-black .bottom-left-radius { + border-bottom-left-radius: 0; +} +.monaco-editor.hc-black .top-right-radius { + border-top-right-radius: 0; +} +.monaco-editor.hc-black .bottom-right-radius { + border-bottom-right-radius: 0; +} /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ .monaco-editor .cursors-layer { - position: absolute; - top: 0; + position: absolute; + top: 0; } .monaco-editor .cursors-layer > .cursor { - position: absolute; - cursor: text; - overflow: hidden; + position: absolute; + cursor: text; + overflow: hidden; } /* -- smooth-caret-animation -- */ .monaco-editor .cursors-layer.cursor-smooth-caret-animation > .cursor { - transition: 80ms; + transition: 80ms; } /* -- block-outline-style -- */ .monaco-editor .cursors-layer.cursor-block-outline-style > .cursor { - box-sizing: border-box; - background: transparent !important; - border-style: solid; - border-width: 1px; + box-sizing: border-box; + background: transparent !important; + border-style: solid; + border-width: 1px; } /* -- underline-style -- */ .monaco-editor .cursors-layer.cursor-underline-style > .cursor { - border-bottom-width: 2px; - border-bottom-style: solid; - background: transparent !important; - box-sizing: border-box; + border-bottom-width: 2px; + border-bottom-style: solid; + background: transparent !important; + box-sizing: border-box; } /* -- underline-thin-style -- */ .monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor { - border-bottom-width: 1px; - border-bottom-style: solid; - background: transparent !important; - box-sizing: border-box; + border-bottom-width: 1px; + border-bottom-style: solid; + background: transparent !important; + box-sizing: border-box; } @keyframes monaco-cursor-smooth { - 0%, - 20% { - opacity: 1; - } - 60%, - 100% { - opacity: 0; - } + 0%, + 20% { + opacity: 1; + } + 60%, + 100% { + opacity: 0; + } } @keyframes monaco-cursor-phase { - 0%, - 20% { - opacity: 1; - } - 90%, - 100% { - opacity: 0; - } + 0%, + 20% { + opacity: 1; + } + 90%, + 100% { + opacity: 0; + } } @keyframes monaco-cursor-expand { - 0%, - 20% { - transform: scaleY(1); - } - 80%, - 100% { - transform: scaleY(0); - } + 0%, + 20% { + transform: scaleY(1); + } + 80%, + 100% { + transform: scaleY(0); + } } .cursor-smooth { - animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate; + animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate; } .cursor-phase { - animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate; + animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate; } .cursor-expand > .cursor { - animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate; + animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1780,31 +1919,45 @@ /* ---------- DiffEditor ---------- */ .monaco-diff-editor .diffOverview { - z-index: 9; + z-index: 9; } /* colors not externalized: using transparancy on background */ -.monaco-diff-editor.vs .diffOverview { background: rgba(0, 0, 0, 0.03); } -.monaco-diff-editor.vs-dark .diffOverview { background: rgba(255, 255, 255, 0.01); } +.monaco-diff-editor.vs .diffOverview { + background: rgba(0, 0, 0, 0.03); +} +.monaco-diff-editor.vs-dark .diffOverview { + background: rgba(255, 255, 255, 0.01); +} .monaco-diff-editor .diffViewport { - box-shadow: inset 0px 0px 1px 0px #B9B9B9; - background: rgba(0, 0, 0, 0.10); + box-shadow: inset 0px 0px 1px 0px #b9b9b9; + background: rgba(0, 0, 0, 0.1); } .monaco-diff-editor.vs-dark .diffViewport, .monaco-diff-editor.hc-black .diffViewport { - background: rgba(255, 255, 255, 0.10); + background: rgba(255, 255, 255, 0.1); +} +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { + background: rgba(0, 0, 0, 0); +} +.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { + background: rgba(0, 0, 0, 0); +} +.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { + background: none; } -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar { background: rgba(0,0,0,0); } -.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar { background: none; } .monaco-scrollable-element.modified-in-monaco-diff-editor .slider { - z-index: 10; + z-index: 10; +} +.modified-in-monaco-diff-editor .slider.active { + background: rgba(171, 171, 171, 0.4); +} +.modified-in-monaco-diff-editor.hc-black .slider.active { + background: none; } -.modified-in-monaco-diff-editor .slider.active { background: rgba(171, 171, 171, .4); } -.modified-in-monaco-diff-editor.hc-black .slider.active { background: none; } /* ---------- Diff ---------- */ @@ -1812,74 +1965,85 @@ .monaco-diff-editor .insert-sign, .monaco-editor .delete-sign, .monaco-diff-editor .delete-sign { - background-size: 60%; - opacity: 0.7; - background-repeat: no-repeat; - background-position: 75% center; - background-size: 11px 11px; + background-size: 60%; + opacity: 0.7; + background-repeat: no-repeat; + background-position: 75% center; + background-size: 11px 11px; } .monaco-editor.hc-black .insert-sign, .monaco-diff-editor.hc-black .insert-sign, .monaco-editor.hc-black .delete-sign, .monaco-diff-editor.hc-black .delete-sign { - opacity: 1; + opacity: 1; } .monaco-editor .insert-sign, .monaco-diff-editor .insert-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=='); } .monaco-editor .delete-sign, .monaco-diff-editor .delete-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo='); } .monaco-editor.vs-dark .insert-sign, .monaco-diff-editor.vs-dark .insert-sign, .monaco-editor.hc-black .insert-sign, .monaco-diff-editor.hc-black .insert-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0IDdWOEg4VjE0SDdWOEgxVjdIN1YxSDhWN0gxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=='); } .monaco-editor.vs-dark .delete-sign, .monaco-diff-editor.vs-dark .delete-sign, .monaco-editor.hc-black .delete-sign, .monaco-diff-editor.hc-black .delete-sign { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1IDhIMVY3SDE1VjhaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo='); } .monaco-editor .inline-deleted-margin-view-zone { - text-align: right; + text-align: right; } .monaco-editor .inline-added-margin-view-zone { - text-align: right; + text-align: right; } .monaco-editor .diagonal-fill { - background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII="); + background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII='); } .monaco-editor.vs-dark .diagonal-fill { - opacity: 0.2; + opacity: 0.2; } .monaco-editor.hc-black .diagonal-fill { - background: none; + background: none; } /* ---------- Inline Diff ---------- */ .monaco-editor .view-zones .view-lines .view-line span { - display: inline-block; + display: inline-block; } -.monaco-editor .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iIzQyNDI0MiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjY3MDggOC42NTgwNkMxMS4zMzE5IDguOTkxNiAxMS4wNzE2IDkuMzYyNzggMTAuODg4NiA5Ljc3MTcyQzEwLjcxMDUgMTAuMTc5MiAxMC42MjEgMTAuNjIxOSAxMC42MjEgMTEuMTAwOVYxMi43MDEyQzEwLjYyMSAxMi44ODA3IDEwLjU4NzIgMTMuMDUwMyAxMC41MTg5IDEzLjIwOTFDMTAuNDUxMyAxMy4zNjYxIDEwLjM1ODYgMTMuNTAzOCAxMC4yNDA3IDEzLjYyMTNDMTAuMTIyOCAxMy43Mzg4IDkuOTg0NjQgMTMuODMxMSA5LjgyNzIzIDEzLjg5ODRDOS42NjgwNiAxMy45NjYzIDkuNDk4MDYgMTQgOS4zMTgyMyAxNEg3LjcxMjA1QzcuNTMyMjMgMTQgNy4zNjIyMyAxMy45NjYzIDcuMjAzMDYgMTMuODk4NEM3LjA0NTY0IDEzLjgzMTEgNi45MDc1MyAxMy43Mzg4IDYuNzg5NjEgMTMuNjIxM0M2LjY3MTY4IDEzLjUwMzggNi41Nzg5NSAxMy4zNjYxIDYuNTExNDEgMTMuMjA5MUM2LjQ0MzExIDEzLjA1MDMgNi40MDkyNyAxMi44ODA3IDYuNDA5MjcgMTIuNzAxMlYxMS4xMDA5QzYuNDA5MjcgMTAuNjIyIDYuMzE3NzIgMTAuMTc5NSA2LjEzNTUzIDkuNzcyMDlDNS45NTY4MyA5LjM2MzM2IDUuNjk4MzIgOC45OTE1NiA1LjM1OTUzIDguNjU4MDZDNC45MjQ2OCA4LjIyOTAzIDQuNTg4OTYgNy43NTAwMyA0LjM1MzYxIDcuMjIxMzRDNC4xMTc1NiA2LjY5MTA3IDQgNi4xMTY3MiA0IDUuNDk5NTNDNCA1LjA4NjY0IDQuMDUzNDIgNC42ODgwMiA0LjE2MDQ4IDQuMzAzOTdDNC4yNjcyOCAzLjkyMDg5IDQuNDE5MDcgMy41NjI4NiA0LjYxNTk1IDMuMjMwMThDNC44MTI1NyAyLjg5Mzc3IDUuMDQ3NzcgMi41ODkxMSA1LjMyMTQ2IDIuMzE2NDFDNS41OTUwMyAyLjA0MzgzIDUuODk4NTggMS44MDk1MyA2LjIzMTk1IDEuNjEzNjRDNi41Njk3OSAxLjQxNzY0IDYuOTMxNDYgMS4yNjYyIDcuMzE1NzggMS4xNTk4M0M3LjcwMTA2IDEuMDUzMiA4LjEwMDk0IDEgOC41MTUxNCAxQzguOTI5MzQgMSA5LjMyOTIzIDEuMDUzMiA5LjcxNDUxIDEuMTU5ODNDMTAuMDk4OCAxLjI2NjIgMTAuNDU4IDEuNDE3MzkgMTAuNzkxOCAxLjYxMzUxQzExLjEyOTQgMS44MDkzOCAxMS40MzUxIDIuMDQzNyAxMS43MDg4IDIuMzE2NDFDMTEuOTgyNSAyLjU4OTEgMTIuMjE3NyAyLjg5Mzc2IDEyLjQxNDMgMy4yMzAxNkMxMi42MTEyIDMuNTYyODUgMTIuNzYzIDMuOTIwODggMTIuODY5OCA0LjMwMzk3QzEyLjk3NjkgNC42ODgwMiAxMy4wMzAzIDUuMDg2NjQgMTMuMDMwMyA1LjQ5OTUzQzEzLjAzMDMgNi4xMTY3MiAxMi45MTI3IDYuNjkxMDcgMTIuNjc2NyA3LjIyMTM0QzEyLjQ0MTMgNy43NTAwMyAxMi4xMDU2IDguMjI5MDMgMTEuNjcwOCA4LjY1ODA2Wk05LjYyMTYyIDEwLjVINy40MDg2N1YxMi43MDEyQzcuNDA4NjcgMTIuNzgyMyA3LjQzNzIgMTIuODUxMiA3LjQ5ODg4IDEyLjkxMjdDNy41NjA1OCAxMi45NzQxIDcuNjMwMDcgMTMuMDAyOCA3LjcxMjA1IDEzLjAwMjhIOS4zMTgyM0M5LjQwMDIyIDEzLjAwMjggOS40Njk3MSAxMi45NzQxIDkuNTMxNCAxMi45MTI3QzkuNTkzMDkgMTIuODUxMiA5LjYyMTYyIDEyLjc4MjMgOS42MjE2MiAxMi43MDEyVjEwLjVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=") center center no-repeat; +.monaco-editor + .margin-view-zones + .inline-deleted-margin-view-zone + .lightbulb-glyph { + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iIzQyNDI0MiIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjY3MDggOC42NTgwNkMxMS4zMzE5IDguOTkxNiAxMS4wNzE2IDkuMzYyNzggMTAuODg4NiA5Ljc3MTcyQzEwLjcxMDUgMTAuMTc5MiAxMC42MjEgMTAuNjIxOSAxMC42MjEgMTEuMTAwOVYxMi43MDEyQzEwLjYyMSAxMi44ODA3IDEwLjU4NzIgMTMuMDUwMyAxMC41MTg5IDEzLjIwOTFDMTAuNDUxMyAxMy4zNjYxIDEwLjM1ODYgMTMuNTAzOCAxMC4yNDA3IDEzLjYyMTNDMTAuMTIyOCAxMy43Mzg4IDkuOTg0NjQgMTMuODMxMSA5LjgyNzIzIDEzLjg5ODRDOS42NjgwNiAxMy45NjYzIDkuNDk4MDYgMTQgOS4zMTgyMyAxNEg3LjcxMjA1QzcuNTMyMjMgMTQgNy4zNjIyMyAxMy45NjYzIDcuMjAzMDYgMTMuODk4NEM3LjA0NTY0IDEzLjgzMTEgNi45MDc1MyAxMy43Mzg4IDYuNzg5NjEgMTMuNjIxM0M2LjY3MTY4IDEzLjUwMzggNi41Nzg5NSAxMy4zNjYxIDYuNTExNDEgMTMuMjA5MUM2LjQ0MzExIDEzLjA1MDMgNi40MDkyNyAxMi44ODA3IDYuNDA5MjcgMTIuNzAxMlYxMS4xMDA5QzYuNDA5MjcgMTAuNjIyIDYuMzE3NzIgMTAuMTc5NSA2LjEzNTUzIDkuNzcyMDlDNS45NTY4MyA5LjM2MzM2IDUuNjk4MzIgOC45OTE1NiA1LjM1OTUzIDguNjU4MDZDNC45MjQ2OCA4LjIyOTAzIDQuNTg4OTYgNy43NTAwMyA0LjM1MzYxIDcuMjIxMzRDNC4xMTc1NiA2LjY5MTA3IDQgNi4xMTY3MiA0IDUuNDk5NTNDNCA1LjA4NjY0IDQuMDUzNDIgNC42ODgwMiA0LjE2MDQ4IDQuMzAzOTdDNC4yNjcyOCAzLjkyMDg5IDQuNDE5MDcgMy41NjI4NiA0LjYxNTk1IDMuMjMwMThDNC44MTI1NyAyLjg5Mzc3IDUuMDQ3NzcgMi41ODkxMSA1LjMyMTQ2IDIuMzE2NDFDNS41OTUwMyAyLjA0MzgzIDUuODk4NTggMS44MDk1MyA2LjIzMTk1IDEuNjEzNjRDNi41Njk3OSAxLjQxNzY0IDYuOTMxNDYgMS4yNjYyIDcuMzE1NzggMS4xNTk4M0M3LjcwMTA2IDEuMDUzMiA4LjEwMDk0IDEgOC41MTUxNCAxQzguOTI5MzQgMSA5LjMyOTIzIDEuMDUzMiA5LjcxNDUxIDEuMTU5ODNDMTAuMDk4OCAxLjI2NjIgMTAuNDU4IDEuNDE3MzkgMTAuNzkxOCAxLjYxMzUxQzExLjEyOTQgMS44MDkzOCAxMS40MzUxIDIuMDQzNyAxMS43MDg4IDIuMzE2NDFDMTEuOTgyNSAyLjU4OTEgMTIuMjE3NyAyLjg5Mzc2IDEyLjQxNDMgMy4yMzAxNkMxMi42MTEyIDMuNTYyODUgMTIuNzYzIDMuOTIwODggMTIuODY5OCA0LjMwMzk3QzEyLjk3NjkgNC42ODgwMiAxMy4wMzAzIDUuMDg2NjQgMTMuMDMwMyA1LjQ5OTUzQzEzLjAzMDMgNi4xMTY3MiAxMi45MTI3IDYuNjkxMDcgMTIuNjc2NyA3LjIyMTM0QzEyLjQ0MTMgNy43NTAwMyAxMi4xMDU2IDguMjI5MDMgMTEuNjcwOCA4LjY1ODA2Wk05LjYyMTYyIDEwLjVINy40MDg2N1YxMi43MDEyQzcuNDA4NjcgMTIuNzgyMyA3LjQzNzIgMTIuODUxMiA3LjQ5ODg4IDEyLjkxMjdDNy41NjA1OCAxMi45NzQxIDcuNjMwMDcgMTMuMDAyOCA3LjcxMjA1IDEzLjAwMjhIOS4zMTgyM0M5LjQwMDIyIDEzLjAwMjggOS40Njk3MSAxMi45NzQxIDkuNTMxNCAxMi45MTI3QzkuNTkzMDkgMTIuODUxMiA5LjYyMTYyIDEyLjc4MjMgOS42MjE2MiAxMi43MDEyVjEwLjVaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo=') + center center no-repeat; } -.monaco-editor.vs-dark .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph, -.monaco-editor.hc-dark .margin-view-zones .inline-deleted-margin-view-zone .lightbulb-glyph { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iI0MyQzJDMiIvPgo8L3N2Zz4K") center center no-repeat; +.monaco-editor.vs-dark + .margin-view-zones + .inline-deleted-margin-view-zone + .lightbulb-glyph, +.monaco-editor.hc-dark + .margin-view-zones + .inline-deleted-margin-view-zone + .lightbulb-glyph { + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMS42NzA4IDguNjU4MDZDMTEuMzMxOSA4Ljk5MTYgMTEuMDcxNiA5LjM2Mjc4IDEwLjg4ODYgOS43NzE3MkMxMC43MTA1IDEwLjE3OTIgMTAuNjIxIDEwLjYyMTkgMTAuNjIxIDExLjEwMDlWMTIuNzAxMkMxMC42MjEgMTIuODgwNyAxMC41ODcyIDEzLjA1MDMgMTAuNTE4OSAxMy4yMDkxQzEwLjQ1MTMgMTMuMzY2MSAxMC4zNTg2IDEzLjUwMzggMTAuMjQwNyAxMy42MjEzQzEwLjEyMjggMTMuNzM4OCA5Ljk4NDY0IDEzLjgzMTEgOS44MjcyMyAxMy44OTg0QzkuNjY4MDYgMTMuOTY2MyA5LjQ5ODA2IDE0IDkuMzE4MjMgMTRINy43MTIwNUM3LjUzMjIzIDE0IDcuMzYyMjMgMTMuOTY2MyA3LjIwMzA2IDEzLjg5ODRDNy4wNDU2NCAxMy44MzExIDYuOTA3NTMgMTMuNzM4OCA2Ljc4OTYxIDEzLjYyMTNDNi42NzE2OCAxMy41MDM4IDYuNTc4OTUgMTMuMzY2MSA2LjUxMTQxIDEzLjIwOTFDNi40NDMxMSAxMy4wNTAzIDYuNDA5MjcgMTIuODgwNyA2LjQwOTI3IDEyLjcwMTJWMTEuMTAwOUM2LjQwOTI3IDEwLjYyMiA2LjMxNzcyIDEwLjE3OTUgNi4xMzU1MyA5Ljc3MjA5QzUuOTU2ODMgOS4zNjMzNiA1LjY5ODMyIDguOTkxNTYgNS4zNTk1MyA4LjY1ODA2QzQuOTI0NjggOC4yMjkwMyA0LjU4ODk2IDcuNzUwMDMgNC4zNTM2MSA3LjIyMTM0QzQuMTE3NTYgNi42OTEwNyA0IDYuMTE2NzIgNCA1LjQ5OTUzQzQgNS4wODY2NCA0LjA1MzQyIDQuNjg4MDIgNC4xNjA0OCA0LjMwMzk3QzQuMjY3MjggMy45MjA4OSA0LjQxOTA3IDMuNTYyODYgNC42MTU5NSAzLjIzMDE4QzQuODEyNTcgMi44OTM3NyA1LjA0Nzc3IDIuNTg5MTEgNS4zMjE0NiAyLjMxNjQxQzUuNTk1MDMgMi4wNDM4MyA1Ljg5ODU4IDEuODA5NTMgNi4yMzE5NSAxLjYxMzY0QzYuNTY5NzkgMS40MTc2NCA2LjkzMTQ2IDEuMjY2MiA3LjMxNTc4IDEuMTU5ODNDNy43MDEwNiAxLjA1MzIgOC4xMDA5NCAxIDguNTE1MTQgMUM4LjkyOTM0IDEgOS4zMjkyMyAxLjA1MzIgOS43MTQ1MSAxLjE1OTgzQzEwLjA5ODggMS4yNjYyIDEwLjQ1OCAxLjQxNzM5IDEwLjc5MTggMS42MTM1MUMxMS4xMjk0IDEuODA5MzggMTEuNDM1MSAyLjA0MzcgMTEuNzA4OCAyLjMxNjQxQzExLjk4MjUgMi41ODkxIDEyLjIxNzcgMi44OTM3NiAxMi40MTQzIDMuMjMwMTZDMTIuNjExMiAzLjU2Mjg1IDEyLjc2MyAzLjkyMDg4IDEyLjg2OTggNC4zMDM5N0MxMi45NzY5IDQuNjg4MDIgMTMuMDMwMyA1LjA4NjY0IDEzLjAzMDMgNS40OTk1M0MxMy4wMzAzIDYuMTE2NzIgMTIuOTEyNyA2LjY5MTA3IDEyLjY3NjcgNy4yMjEzNEMxMi40NDEzIDcuNzUwMDMgMTIuMTA1NiA4LjIyOTAzIDExLjY3MDggOC42NTgwNlpNOS42MjE2MiAxMC41SDcuNDA4NjdWMTIuNzAxMkM3LjQwODY3IDEyLjc4MjMgNy40MzcyIDEyLjg1MTIgNy40OTg4OCAxMi45MTI3QzcuNTYwNTggMTIuOTc0MSA3LjYzMDA3IDEzLjAwMjggNy43MTIwNSAxMy4wMDI4SDkuMzE4MjNDOS40MDAyMiAxMy4wMDI4IDkuNDY5NzEgMTIuOTc0MSA5LjUzMTQgMTIuOTEyN0M5LjU5MzA5IDEyLjg1MTIgOS42MjE2MiAxMi43ODIzIDkuNjIxNjIgMTIuNzAxMlYxMC41WiIgZmlsbD0iI0MyQzJDMiIvPgo8L3N2Zz4K') + center center no-repeat; } .monaco-editor .margin-view-zones .lightbulb-glyph:hover { - cursor: pointer; + cursor: pointer; } /*--------------------------------------------------------------------------------------------- @@ -1888,69 +2052,71 @@ *--------------------------------------------------------------------------------------------*/ .monaco-diff-editor .diff-review-line-number { - text-align: right; - display: inline-block; + text-align: right; + display: inline-block; } .monaco-diff-editor .diff-review { - position: absolute; - -webkit-user-select: none; - -ms-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -o-user-select: none; - user-select: none; + position: absolute; + -webkit-user-select: none; + -ms-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -o-user-select: none; + user-select: none; } .monaco-diff-editor .diff-review-summary { - padding-left: 10px; + padding-left: 10px; } .monaco-diff-editor .diff-review-shadow { - position: absolute; + position: absolute; } .monaco-diff-editor .diff-review-row { - white-space: pre; + white-space: pre; } .monaco-diff-editor .diff-review-table { - display: table; - min-width: 100%; + display: table; + min-width: 100%; } .monaco-diff-editor .diff-review-row { - display: table-row; - width: 100%; + display: table-row; + width: 100%; } .monaco-diff-editor .diff-review-cell { - display: table-cell; + display: table-cell; } .monaco-diff-editor .diff-review-spacer { - display: inline-block; - width: 10px; + display: inline-block; + width: 10px; } .monaco-diff-editor .diff-review-actions { - display: inline-block; - position: absolute; - right: 10px; - top: 2px; + display: inline-block; + position: absolute; + right: 10px; + top: 2px; } .monaco-diff-editor .diff-review-actions .action-label { - width: 16px; - height: 16px; - margin: 2px 0; + width: 16px; + height: 16px; + margin: 2px 0; } .monaco-diff-editor .action-label.icon.close-diff-review { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K') + center center no-repeat; } .monaco-diff-editor.hc-black .action-label.icon.close-diff-review, .monaco-diff-editor.vs-dark .action-label.icon.close-diff-review { - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K") center center no-repeat; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTFMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDFMMTIuMzUzNiA0LjM1MzU2TDExLjY0NjUgMy42NDY0NUw4LjAwMDAxIDcuMjkyOUw0LjM1MzU2IDMuNjQ2NDVMMy42NDY0NSA0LjM1MzU2TDcuMjkyOSA4LjAwMDAxTDMuNjQ2NDUgMTEuNjQ2NUw0LjM1MzU2IDEyLjM1MzZMOC4wMDAwMSA4LjcwNzExWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K') + center center no-repeat; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1958,16 +2124,16 @@ *--------------------------------------------------------------------------------------------*/ .context-view .monaco-menu { - min-width: 130px; + min-width: 130px; } .context-view-block { - position: fixed; - left:0; - top:0; - z-index: -1; - width: 100%; - height: 100%; + position: fixed; + left: 0; + top: 0; + z-index: -1; + width: 100%; + height: 100%; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -1975,204 +2141,214 @@ *--------------------------------------------------------------------------------------------*/ .monaco-menu .monaco-action-bar.vertical { - margin-left: 0; - overflow: visible; + margin-left: 0; + overflow: visible; } .monaco-menu .monaco-action-bar.vertical .actions-container { - display: block; + display: block; } .monaco-menu .monaco-action-bar.vertical .action-item { - padding: 0; - transform: none; - display: -ms-flexbox; - display: flex; + padding: 0; + transform: none; + display: -ms-flexbox; + display: flex; } .monaco-menu .monaco-action-bar.vertical .action-item.active { - transform: none; + transform: none; } .monaco-menu .monaco-action-bar.vertical .action-menu-item { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - display: -ms-flexbox; - display: flex; - height: 2em; - align-items: center; - position: relative; + -ms-flex: 1 1 auto; + flex: 1 1 auto; + display: -ms-flexbox; + display: flex; + height: 2em; + align-items: center; + position: relative; } .monaco-menu .monaco-action-bar.vertical .action-label { - -ms-flex: 1 1 auto; - flex: 1 1 auto; - text-decoration: none; - padding: 0 1em; - background: none; - font-size: 12px; - line-height: 1; + -ms-flex: 1 1 auto; + flex: 1 1 auto; + text-decoration: none; + padding: 0 1em; + background: none; + font-size: 12px; + line-height: 1; } .monaco-menu .monaco-action-bar.vertical .keybinding, .monaco-menu .monaco-action-bar.vertical .submenu-indicator { - display: inline-block; - -ms-flex: 2 1 auto; - flex: 2 1 auto; - padding: 0 1em; - text-align: right; - font-size: 12px; - line-height: 1; + display: inline-block; + -ms-flex: 2 1 auto; + flex: 2 1 auto; + padding: 0 1em; + text-align: right; + font-size: 12px; + line-height: 1; } .monaco-menu .monaco-action-bar.vertical .submenu-indicator { - height: 100%; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=") no-repeat 90% 50%/13px 13px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=") no-repeat 90% 50%/13px 13px; + height: 100%; + -webkit-mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=') + no-repeat 90% 50%/13px 13px; + mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNTIwNTEgMTIuMzY0M0w5Ljg3NzkzIDdMNC41MjA1MSAxLjYzNTc0Mkw1LjEzNTc0IDEuMDIwNTA3OEwxMS4xMjIxIDdMNS4xMzU3NCAxMi45Nzk1TDQuNTIwNTEgMTIuMzY0M1oiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPgo=') + no-repeat 90% 50%/13px 13px; } .monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding, -.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator { - opacity: 0.4; +.monaco-menu + .monaco-action-bar.vertical + .action-item.disabled + .submenu-indicator { + opacity: 0.4; } .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) { - display: inline-block; - -webkit-box-sizing: border-box; - -o-box-sizing: border-box; - -moz-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - margin: 0; + display: inline-block; + -webkit-box-sizing: border-box; + -o-box-sizing: border-box; + -moz-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + margin: 0; } .monaco-menu .monaco-action-bar.vertical .action-item { - position: static; - overflow: visible; + position: static; + overflow: visible; } - .monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu { - position: absolute; + position: absolute; } .monaco-menu .monaco-action-bar.vertical .action-label.separator { - padding: 0.5em 0 0 0; - margin-bottom: 0.5em; - width: 100%; + padding: 0.5em 0 0 0; + margin-bottom: 0.5em; + width: 100%; } .monaco-menu .monaco-action-bar.vertical .action-label.separator.text { - padding: 0.7em 1em 0.1em 1em; - font-weight: bold; - opacity: 1; + padding: 0.7em 1em 0.1em 1em; + font-weight: bold; + opacity: 1; } .monaco-menu .monaco-action-bar.vertical .action-label:hover { - color: inherit; + color: inherit; } .monaco-menu .monaco-action-bar.vertical .menu-item-check { - position: absolute; - visibility: hidden; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 56%/15px 15px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 56%/15px 15px; - width: 1em; - height: 100%; + position: absolute; + visibility: hidden; + -webkit-mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + no-repeat 50% 56%/15px 15px; + mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNC40MzE1IDMuMzIzMkw1Ljk2MTUxIDEzLjMyMzJMNS4xNzA4IDEzLjI4NzRMMS44MjA4IDguNTE3NEwyLjYzOTE1IDcuOTQyNjhMNS42MTY5NyAxMi4xODI3TDEzLjY2ODQgMi42NzY4OEwxNC40MzE1IDMuMzIzMloiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + no-repeat 50% 56%/15px 15px; + width: 1em; + height: 100%; } -.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check { - visibility: visible; +.monaco-menu + .monaco-action-bar.vertical + .action-menu-item.checked + .menu-item-check { + visibility: visible; } /* Context Menu */ .context-view.monaco-menu-container { - outline: 0; - border: none; - -webkit-animation: fadeIn 0.083s linear; - -o-animation: fadeIn 0.083s linear; - -moz-animation: fadeIn 0.083s linear; - -ms-animation: fadeIn 0.083s linear; - animation: fadeIn 0.083s linear; + outline: 0; + border: none; + -webkit-animation: fadeIn 0.083s linear; + -o-animation: fadeIn 0.083s linear; + -moz-animation: fadeIn 0.083s linear; + -ms-animation: fadeIn 0.083s linear; + animation: fadeIn 0.083s linear; } .context-view.monaco-menu-container :focus, .context-view.monaco-menu-container .monaco-action-bar.vertical:focus, .context-view.monaco-menu-container .monaco-action-bar.vertical :focus { - outline: 0; + outline: 0; } .monaco-menu .monaco-action-bar.vertical .action-item { - border: thin solid transparent; /* prevents jumping behaviour on hover or focus */ + border: thin solid transparent; /* prevents jumping behaviour on hover or focus */ } - /* High Contrast Theming */ .hc-black .context-view.monaco-menu-container { - box-shadow: none; + box-shadow: none; } .hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused { - background: none; + background: none; } /* Menubar styles */ .menubar { - display: flex; - flex-shrink: 1; - box-sizing: border-box; - height: 30px; - overflow: hidden; - flex-wrap: wrap; + display: flex; + flex-shrink: 1; + box-sizing: border-box; + height: 30px; + overflow: hidden; + flex-wrap: wrap; } .fullscreen .menubar { - margin: 0px; - padding: 0px 5px; + margin: 0px; + padding: 0px 5px; } .menubar > .menubar-menu-button { - align-items: center; - box-sizing: border-box; - padding: 0px 8px; - cursor: default; - -webkit-app-region: no-drag; - zoom: 1; - white-space: nowrap; - outline: 0; + align-items: center; + box-sizing: border-box; + padding: 0px 8px; + cursor: default; + -webkit-app-region: no-drag; + zoom: 1; + white-space: nowrap; + outline: 0; } .menubar .menubar-menu-items-holder { - position: absolute; - left: 0px; - opacity: 1; - z-index: 2000; + position: absolute; + left: 0px; + opacity: 1; + z-index: 2000; } .menubar .menubar-menu-items-holder.monaco-menu-container { - outline: 0; - border: none; + outline: 0; + border: none; } .menubar .menubar-menu-items-holder.monaco-menu-container :focus { - outline: 0; + outline: 0; } .menubar .toolbar-toggle-more { - background-position: center; - background-repeat: no-repeat; - background-size: 14px; - width: 20px; - height: 100%; + background-position: center; + background-repeat: no-repeat; + background-size: 14px; + width: 20px; + height: 100%; } .menubar .toolbar-toggle-more { - display: inline-block; - padding: 0; - -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 55%/14px 14px; - mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==") no-repeat 50% 55%/14px 14px; + display: inline-block; + padding: 0; + -webkit-mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + no-repeat 50% 55%/14px 14px; + mask: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQgOEM0IDguMTk3NzggMy45NDEzNSA4LjM5MTEyIDMuODMxNDcgOC41NTU1N0MzLjcyMTU5IDguNzIwMDIgMy41NjU0MSA4Ljg0ODE5IDMuMzgyNjggOC45MjM4OEMzLjE5OTk2IDguOTk5NTcgMi45OTg4OSA5LjAxOTM3IDIuODA0OTEgOC45ODA3OUMyLjYxMDkzIDguOTQyMiAyLjQzMjc1IDguODQ2OTYgMi4yOTI4OSA4LjcwNzExQzIuMTUzMDQgOC41NjcyNSAyLjA1NzggOC4zODkwNyAyLjAxOTIyIDguMTk1MDlDMS45ODA2MyA4LjAwMTExIDIuMDAwNDMgNy44MDAwNCAyLjA3NjEyIDcuNjE3MzJDMi4xNTE4MSA3LjQzNDU5IDIuMjc5OTggNy4yNzg0MSAyLjQ0NDQzIDcuMTY4NTNDMi42MDg4OCA3LjA1ODY1IDIuODAyMjIgNyAzIDdDMy4yNjUyMiA3IDMuNTE5NTcgNy4xMDUzNiAzLjcwNzExIDcuMjkyODlDMy44OTQ2NCA3LjQ4MDQzIDQgNy43MzQ3OCA0IDhaIiBmaWxsPSIjQzVDNUM1Ii8+CjxwYXRoIGQ9Ik05IDhDOSA4LjE5Nzc4IDguOTQxMzUgOC4zOTExMiA4LjgzMTQ3IDguNTU1NTdDOC43MjE1OSA4LjcyMDAyIDguNTY1NDEgOC44NDgxOSA4LjM4MjY4IDguOTIzODhDOC4xOTk5NiA4Ljk5OTU3IDcuOTk4ODkgOS4wMTkzNyA3LjgwNDkxIDguOTgwNzlDNy42MTA5MyA4Ljk0MjIgNy40MzI3NSA4Ljg0Njk2IDcuMjkyODkgOC43MDcxMUM3LjE1MzA0IDguNTY3MjUgNy4wNTc4IDguMzg5MDcgNy4wMTkyMiA4LjE5NTA5QzYuOTgwNjMgOC4wMDExMSA3LjAwMDQzIDcuODAwMDQgNy4wNzYxMiA3LjYxNzMyQzcuMTUxODEgNy40MzQ1OSA3LjI3OTk4IDcuMjc4NDEgNy40NDQ0MyA3LjE2ODUzQzcuNjA4ODggNy4wNTg2NSA3LjgwMjIyIDcgOCA3QzguMjY1MjIgNyA4LjUxOTU3IDcuMTA1MzYgOC43MDcxMSA3LjI5Mjg5QzguODk0NjQgNy40ODA0MyA5IDcuNzM0NzggOSA4WiIgZmlsbD0iI0M1QzVDNSIvPgo8cGF0aCBkPSJNMTQgOEMxNCA4LjE5Nzc4IDEzLjk0MTQgOC4zOTExMiAxMy44MzE1IDguNTU1NTdDMTMuNzIxNiA4LjcyMDAyIDEzLjU2NTQgOC44NDgxOSAxMy4zODI3IDguOTIzODhDMTMuMiA4Ljk5OTU3IDEyLjk5ODkgOS4wMTkzNyAxMi44MDQ5IDguOTgwNzlDMTIuNjEwOSA4Ljk0MjIgMTIuNDMyNyA4Ljg0Njk2IDEyLjI5MjkgOC43MDcxMUMxMi4xNTMgOC41NjcyNSAxMi4wNTc4IDguMzg5MDcgMTIuMDE5MiA4LjE5NTA5QzExLjk4MDYgOC4wMDExMSAxMi4wMDA0IDcuODAwMDQgMTIuMDc2MSA3LjYxNzMyQzEyLjE1MTggNy40MzQ1OSAxMi4yOCA3LjI3ODQxIDEyLjQ0NDQgNy4xNjg1M0MxMi42MDg5IDcuMDU4NjUgMTIuODAyMiA3IDEzIDdDMTMuMjY1MiA3IDEzLjUxOTYgNy4xMDUzNiAxMy43MDcxIDcuMjkyODlDMTMuODk0NiA3LjQ4MDQzIDE0IDcuNzM0NzggMTQgOFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg==') + no-repeat 50% 55%/14px 14px; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -2180,8 +2356,8 @@ *--------------------------------------------------------------------------------------------*/ .context-view { - position: absolute; - z-index: 2000; + position: absolute; + z-index: 2000; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -2189,193 +2365,195 @@ *--------------------------------------------------------------------------------------------*/ .monaco-list { - position: relative; - height: 100%; - width: 100%; - white-space: nowrap; + position: relative; + height: 100%; + width: 100%; + white-space: nowrap; } .monaco-list.mouse-support { - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: -moz-none; - -ms-user-select: none; - -o-user-select: none; - user-select: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: -moz-none; + -ms-user-select: none; + -o-user-select: none; + user-select: none; } .monaco-list > .monaco-scrollable-element { - height: 100%; + height: 100%; } .monaco-list-rows { - position: relative; - width: 100%; - height: 100%; + position: relative; + width: 100%; + height: 100%; } .monaco-list.horizontal-scrolling .monaco-list-rows { - width: auto; - min-width: 100%; + width: auto; + min-width: 100%; } .monaco-list-row { - position: absolute; - -moz-box-sizing: border-box; - -o-box-sizing: border-box; - -ms-box-sizing: border-box; - box-sizing: border-box; - overflow: hidden; - width: 100%; + position: absolute; + -moz-box-sizing: border-box; + -o-box-sizing: border-box; + -ms-box-sizing: border-box; + box-sizing: border-box; + overflow: hidden; + width: 100%; } .monaco-list.mouse-support .monaco-list-row { - cursor: pointer; - touch-action: none; + cursor: pointer; + touch-action: none; } /* for OS X ballistic scrolling */ .monaco-list-row.scrolling { - display: none !important; + display: none !important; } /* Focus */ -.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple { - outline: 0 !important; +.monaco-list.element-focused, +.monaco-list.selection-single, +.monaco-list.selection-multiple { + outline: 0 !important; } /* Dnd */ .monaco-drag-image { - display: inline-block; - padding: 1px 7px; - border-radius: 10px; - font-size: 12px; - position: absolute; + display: inline-block; + padding: 1px 7px; + border-radius: 10px; + font-size: 12px; + position: absolute; } /* Type filter */ .monaco-list-type-filter { - display: flex; - align-items: center; - position: absolute; - border-radius: 2px; - padding: 0px 3px; - max-width: calc(100% - 10px); - text-overflow: ellipsis; - overflow: hidden; - text-align: right; - box-sizing: border-box; - cursor: all-scroll; - font-size: 13px; - line-height: 18px; - height: 20px; - z-index: 1; - top: 4px; + display: flex; + align-items: center; + position: absolute; + border-radius: 2px; + padding: 0px 3px; + max-width: calc(100% - 10px); + text-overflow: ellipsis; + overflow: hidden; + text-align: right; + box-sizing: border-box; + cursor: all-scroll; + font-size: 13px; + line-height: 18px; + height: 20px; + z-index: 1; + top: 4px; } .monaco-list-type-filter.dragging { - transition: top 0.2s, left 0.2s; + transition: top 0.2s, left 0.2s; } .monaco-list-type-filter.ne { - right: 4px; + right: 4px; } .monaco-list-type-filter.nw { - left: 4px; + left: 4px; } .monaco-list-type-filter > .controls { - display: flex; - align-items: center; - box-sizing: border-box; - transition: width 0.2s; - width: 0; + display: flex; + align-items: center; + box-sizing: border-box; + transition: width 0.2s; + width: 0; } .monaco-list-type-filter.dragging > .controls, .monaco-list-type-filter:hover > .controls { - width: 36px; + width: 36px; } .monaco-list-type-filter > .controls > * { - box-sizing: border-box; - width: 16px; - height: 16px; - margin: 0 0 0 2px; - flex-shrink: 0; + box-sizing: border-box; + width: 16px; + height: 16px; + margin: 0 0 0 2px; + flex-shrink: 0; } .monaco-list-type-filter > .controls > .filter { - -webkit-appearance: none; - width: 16px; - height: 16px; - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); - background-position: 50% 50%; - cursor: pointer; + -webkit-appearance: none; + width: 16px; + height: 16px; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); + background-position: 50% 50%; + cursor: pointer; } .monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iIzQyNDI0MiIvPgo8L3N2Zz4K'); } .vs-dark .monaco-list-type-filter > .controls > .filter { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .vs-dark .monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .hc-black .monaco-list-type-filter > .controls > .filter { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEgMTJMMSAxMUgxMFYxMkgxWk0xIDdIMTVWOEgxTDEgN1pNMTIgM1Y0SDFMMSAzSDEyWiIgZmlsbD0iI0M1QzVDNSIvPgo8L3N2Zz4K'); } .hc-black .monaco-list-type-filter > .controls > .filter:checked { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYgMTJWMTFIMTBWMTJINlpNNCA3SDEyVjhINFY3Wk0xNCAzVjRIMlYzSDE0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=='); } .monaco-list-type-filter > .controls > .clear { - border: none; - background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); - cursor: pointer; + border: none; + background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=='); + cursor: pointer; } .vs-dark .monaco-list-type-filter > .controls > .clear { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=='); } .hc-black .monaco-list-type-filter > .controls > .clear { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04LjAwMDAxIDguNzA3MTRMMTEuNjQ2NSAxMi4zNTM2TDEyLjM1MzYgMTEuNjQ2NUw4LjcwNzExIDguMDAwMDRMMTIuMzUzNiA0LjM1MzU5TDExLjY0NjUgMy42NDY0OEw4LjAwMDAxIDcuMjkyOTNMNC4zNTM1NiAzLjY0NjQ4TDMuNjQ2NDUgNC4zNTM1OUw3LjI5MjkgOC4wMDAwNEwzLjY0NjQ1IDExLjY0NjVMNC4zNTM1NiAxMi4zNTM2TDguMDAwMDEgOC43MDcxNFoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=='); } .monaco-list-type-filter-message { - position: absolute; - box-sizing: border-box; - width: 100%; - height: 100%; - top: 0; - left: 0; - padding: 40px 1em 1em 1em; - text-align: center; - white-space: normal; - opacity: 0.7; - pointer-events: none; + position: absolute; + box-sizing: border-box; + width: 100%; + height: 100%; + top: 0; + left: 0; + padding: 40px 1em 1em 1em; + text-align: center; + white-space: normal; + opacity: 0.7; + pointer-events: none; } .monaco-list-type-filter-message:empty { - display: none; + display: none; } /* Electron */ .monaco-list-type-filter { - cursor: grab; + cursor: grab; } .monaco-list-type-filter.dragging { - cursor: grabbing; + cursor: grabbing; } /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. @@ -2383,99 +2561,273 @@ *--------------------------------------------------------------------------------------------*/ .monaco-tl-row { - display: flex; - height: 100%; - align-items: center; - position: relative; + display: flex; + height: 100%; + align-items: center; + position: relative; } .monaco-tl-indent { - height: 100%; - position: absolute; - top: 0; - left: 18px; - pointer-events: none; + height: 100%; + position: absolute; + top: 0; + left: 18px; + pointer-events: none; } .hide-arrows .monaco-tl-indent { - left: 12px; + left: 12px; } .monaco-tl-indent > .indent-guide { - display: inline-block; - box-sizing: border-box; - height: 100%; - border-left: 1px solid transparent; + display: inline-block; + box-sizing: border-box; + height: 100%; + border-left: 1px solid transparent; } .monaco-tl-indent > .indent-guide { - transition: border-color 0.1s linear; + transition: border-color 0.1s linear; } .monaco-tl-twistie, .monaco-tl-contents { - height: 100%; + height: 100%; } .monaco-tl-twistie { - font-size: 10px; - text-align: right; - margin-right: 6px; - flex-shrink: 0; - width: 16px; + font-size: 10px; + text-align: right; + margin-right: 6px; + flex-shrink: 0; + width: 16px; } .monaco-tl-contents { - flex: 1; - overflow: hidden; + flex: 1; + overflow: hidden; } .monaco-tl-twistie.collapsible { - background-size: 16px; - background-position: 3px 50%; - background-repeat: no-repeat; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo="); + background-size: 16px; + background-position: 3px 50%; + background-repeat: no-repeat; + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjNDI0MjQyIi8+Cjwvc3ZnPgo='); } .monaco-tl-twistie.collapsible.collapsed:not(.loading) { - display: inline-block; - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=="); + display: inline-block; + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiM0MjQyNDIiLz4KPC9zdmc+Cg=='); } .vs-dark .monaco-tl-twistie.collapsible:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSIjQzVDNUM1Ii8+Cjwvc3ZnPgo='); } .vs-dark .monaco-tl-twistie.collapsible.collapsed:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2NEw2LjMzMzMzIDMuMDIzOTdMNS43MTQ2MSAzLjY0MjY5TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2NEw2LjMzMzMzIDMuMDIzOTdMNS43MTQ2MSAzLjY0MjY5TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IiNDNUM1QzUiLz4KPC9zdmc+Cg=='); } .hc-black .monaco-tl-twistie.collapsible:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik03Ljk3NjAzIDEwLjA3MTlMMTIuMzMzMyA1LjcxNDYxTDEyLjk1MjEgNi4zMzMzM0w4LjI4NTM5IDExTDcuNjY2NjcgMTFMMyA2LjMzMzMzTDMuNjE4NzIgNS43MTQ2MUw3Ljk3NjAzIDEwLjA3MTlaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K'); } .hc-black .monaco-tl-twistie.collapsible.collapsed:not(.loading) { - background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4wNzE5IDcuOTk5OTlMNS43MTQ2MSAxMi4zNTczTDYuMzMzMzMgMTIuOTc2TDExIDguMzA5MzVWNy42OTA2M0w2LjMzMzMzIDMuMDIzOTZMNS43MTQ2MSAzLjY0MjY4TDEwLjA3MTkgNy45OTk5OVoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo='); } .monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg=="); - background-position: 0 center; + background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg=='); + background-position: 0 center; } .vs-dark .monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo="); + background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo='); } .hc-black .monaco-tl-twistie.loading { - background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K"); + background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K'); } -#editor.svelte-19z36gs{width:100%;height:400px;max-height:300px;flex:1} -#editor-conf.svelte-4auqqc{width:100%;height:200px;max-height:300px;flex:1} -#view.svelte-de7j0c{border:1px solor darkred;flex:1}#container.svelte-de7j0c{overflow-x:auto}.error.svelte-de7j0c{opacity:0.5} -#card.svelte-1f4byul{border:1px solid lightgray;margin-bottom:16px}#title.svelte-1f4byul{font-family:"Playfair Display", serif;font-weight:400;border-bottom:1px solid lightgray;font-size:1.25rem;background-color:#1e60ab;color:#eaebef}#content.svelte-1f4byul{padding-top:8px}.padding.svelte-1f4byul{padding:8px} -#tag.svelte-kzz8td{height:auto;margin:0 8px 0 0;padding:0 7px;font-size:12px;line-height:20px;white-space:nowrap;border:1px solid #d9d9d9;border-radius:4px;cursor:default;font-size:smaller;color:#52c41a;background:#f6ffed;border-color:#b7eb8f;margin-left:8px} -#links.svelte-vfpbl8{margin-bottom:1rem;padding-bottom:0.5rem;border-bottom:1px solid lightgray}#markdown.svelte-vfpbl8{padding:7px;font-family:monospace;font-size:14px;width:95%;margin:1rem 0;border:1px solid lightgray}label[for="markdown"].svelte-vfpbl8{cursor:pointer;margin:0 auto}.button-style.svelte-vfpbl8{background-color:#a2d9e2;color:#33a2c4;border-radius:0.25rem;padding:0.5rem;border:1px solid #a2d9e2;margin:0.25rem}.button-style.svelte-vfpbl8:hover{background-color:#fff;color:#33a2c4;border:1px solid #33a2c4}.button-style.svelte-vfpbl8:focus{outline:none}.link-style.svelte-vfpbl8{text-decoration:none;color:#33a2c4}#copy-section.svelte-vfpbl8{padding-top:1rem;text-align:center} -#body.svelte-g5aiet{font-family:"Roboto", sans-serif;background-color:#fcfbfc}#editor-root.svelte-g5aiet{display:flex;height:100%}#col1.svelte-g5aiet{width:35%}#col2.svelte-g5aiet{width:65%;padding-left:32px}#link-root.svelte-g5aiet{display:flex;height:fit-content}#link-col1.svelte-g5aiet{width:50%}#link-col2.svelte-g5aiet{width:50%;padding-left:32px}#app-title.svelte-g5aiet{font-family:"Playfair Display", serif;font-size:32px;font-weight:700;margin:0;color:#1e60ab;opacity:0.8}#title-container.svelte-g5aiet{width:fit-content;margin:0 auto 8px}#power.svelte-g5aiet{width:100%;display:flex;justify-content:flex-end;align-items:center;height:4rem}#sampleLoader.svelte-g5aiet{padding-left:10px;border-bottom:1px solid lightgray}#historyLoaderSubTitle.svelte-g5aiet{display:inline-block;color:#33a2c4;font-size:small;font-style:italic}.button-container.svelte-g5aiet{display:flex;align-items:center}.button-style.svelte-g5aiet{background-color:#a2d9e2;color:#33a2c4;border-radius:0.25rem;padding:0.5rem;border:1px solid #a2d9e2;margin:0.25rem}.button-style.svelte-g5aiet:hover{background-color:#fff;color:#33a2c4;border:1px solid #33a2c4}.button-style.svelte-g5aiet:focus{outline:none}.link-style.svelte-g5aiet{text-decoration:none;color:#33a2c4} -#view-page.svelte-ylwsal{display:flex;height:100%} +#editor.svelte-14zu5tj { + width: 100%; + height: 400px; + max-height: 300px; + flex: 1; +} +#editor-conf.svelte-e1y9ss { + width: 100%; + height: 200px; + max-height: 300px; + flex: 1; +} +#view.svelte-adxv1m { + border: 1px solor darkred; + flex: 1; +} +#container.svelte-adxv1m { + overflow-x: auto; +} +.error.svelte-adxv1m { + opacity: 0.5; +} +#card.svelte-m2i2uf { + border: 1px solid lightgray; + margin-bottom: 16px; +} +#title.svelte-m2i2uf { + font-family: 'Playfair Display', serif; + font-weight: 400; + border-bottom: 1px solid lightgray; + font-size: 1.25rem; + background-color: #1e60ab; + color: #eaebef; +} +#content.svelte-m2i2uf { + padding-top: 8px; +} +.padding.svelte-m2i2uf { + padding: 8px; +} +#tag.svelte-1m053ch { + height: auto; + margin: 0 8px 0 0; + padding: 0 7px; + font-size: 12px; + line-height: 20px; + white-space: nowrap; + border: 1px solid #d9d9d9; + border-radius: 4px; + cursor: default; + font-size: smaller; + color: #52c41a; + background: #f6ffed; + border-color: #b7eb8f; + margin-left: 8px; +} +#links.svelte-187ys3m { + margin-bottom: 1rem; + padding-bottom: 0.5rem; + border-bottom: 1px solid lightgray; +} +#markdown.svelte-187ys3m { + padding: 7px; + font-family: monospace; + font-size: 14px; + width: 95%; + margin: 1rem 0; + border: 1px solid lightgray; +} +label[for='markdown'].svelte-187ys3m { + cursor: pointer; + margin: 0 auto; +} +.button-style.svelte-187ys3m { + background-color: #a2d9e2; + color: #33a2c4; + border-radius: 0.25rem; + padding: 0.5rem; + border: 1px solid #a2d9e2; + margin: 0.25rem; +} +.button-style.svelte-187ys3m:hover { + background-color: #fff; + color: #33a2c4; + border: 1px solid #33a2c4; +} +.button-style.svelte-187ys3m:focus { + outline: none; +} +.link-style.svelte-187ys3m { + text-decoration: none; + color: #33a2c4; +} +#copy-section.svelte-187ys3m { + padding-top: 1rem; + text-align: center; +} +#body.svelte-mx8k4g { + font-family: 'Roboto', sans-serif; + background-color: #fcfbfc; +} +#editor-root.svelte-mx8k4g { + display: flex; + height: 100%; +} +#col1.svelte-mx8k4g { + width: 35%; +} +#col2.svelte-mx8k4g { + width: 65%; + padding-left: 32px; +} +#link-root.svelte-mx8k4g { + display: flex; + height: fit-content; +} +#link-col1.svelte-mx8k4g { + width: 50%; +} +#link-col2.svelte-mx8k4g { + width: 50%; + padding-left: 32px; +} +#app-title.svelte-mx8k4g { + font-family: 'Playfair Display', serif; + font-size: 32px; + font-weight: 700; + margin: 0; + color: #1e60ab; + opacity: 0.8; +} +#title-container.svelte-mx8k4g { + width: fit-content; + margin: 0 auto 8px; +} +#power.svelte-mx8k4g { + width: 100%; + display: flex; + justify-content: flex-end; + align-items: center; + height: 4rem; +} +#sampleLoader.svelte-mx8k4g { + padding-left: 10px; + border-bottom: 1px solid lightgray; +} +#historyLoaderSubTitle.svelte-mx8k4g { + display: inline-block; + color: #33a2c4; + font-size: small; + font-style: italic; +} +.button-container.svelte-mx8k4g { + display: flex; + align-items: center; + flex-direction: row; + flex-wrap: wrap; +} +.button-style.svelte-mx8k4g { + background-color: #a2d9e2; + color: #33a2c4; + border-radius: 0.25rem; + padding: 0.5rem; + border: 1px solid #a2d9e2; + margin: 0.25rem; +} +.button-style.svelte-mx8k4g:hover { + background-color: #fff; + color: #33a2c4; + border: 1px solid #33a2c4; +} +.button-style.svelte-mx8k4g:focus { + outline: none; +} +.link-style.svelte-mx8k4g { + text-decoration: none; + color: #33a2c4; +} +#view-page.svelte-clxwlp { + display: flex; + height: 100%; +} diff --git a/docs/bundle.js b/docs/bundle.js index 9ebd8eea..5c3cf0ae 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1,419 +1,153557 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=316)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n<_.length;n++)a(i=t[r=_[n]])||(e[r]=i);return e}var v=!1;function b(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(e){return e instanceof b||null!=e&&null!=e._isAMomentObject}function C(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=C(t)),n}function x(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},V={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return j(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(t=q(t,e.localeData()),H[t]=H[t]||function(e){var t,n,r,i=e.match(B);for(t=0,n=i.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var K=/\d/,G=/\d\d/,$=/\d{3}/,Z=/\d{4}/,X=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,oe=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ae=/Z|[+-]\d\d(?::?\d\d)?/gi,ue=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,le={};function ce(e,t,n){le[e]=T(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(le,e)?le[e](t._strict,t._locale):new RegExp(he(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function he(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var fe={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=S(e)}),n=0;n68?1900:2e3)};var De,Ee=Te("FullYear",!0);function Te(e,t){return function(n){return null!=n?(Oe(this,e,n),i.updateOffset(this,t),this):Ne(this,e)}}function Ne(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Me(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Me(e)?29:28:31-r%7%2}De=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function ze(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Ue(e,t,n){var r=7+t-n;return-(7+ze(e,0,r).getUTCDay()-t)%7+r-1}function qe(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+Ue(e,r,i);return a<=0?s=ke(o=e-1)+a:a>ke(e)?(o=e+1,s=a-ke(e)):(o=e,s=a),{year:o,dayOfYear:s}}function Ke(e,t,n){var r,i,o=Ue(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ge(i=e.year()-1,t,n):s>Ge(e.year(),t,n)?(r=s-Ge(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ge(e,t,n){var r=Ue(e,t,n),i=Ue(e+1,t,n);return(ke(e)-r+i)/7}function $e(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",J),ce("ww",J,G),ce("W",J),ce("WW",J,G),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,r){t[r]=S(e)}));var Ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Je="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Qe(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=De.call(this._shortWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._minWeekdaysParse,s))?i:null:-1!==(i=De.call(this._minWeekdaysParse,s))?i:-1!==(i=De.call(this._weekdaysParse,s))?i:-1!==(i=De.call(this._shortWeekdaysParse,s))?i:null}var et=ue,tt=ue,nt=ue;function rt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=he(a[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,it),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+it.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+it.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),ot("a",!0),ot("A",!1),I("hour","h"),Y("hour",13),ce("a",st),ce("A",st),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,G),ce("hh",J,G),ce("kk",J,G),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),pe(["H","HH"],be),pe(["k","kk"],(function(e,t,n){var r=S(e);t[be]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[be]=S(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r,2)),t[Ce]=S(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[be]=S(e.substr(0,r)),t[we]=S(e.substr(r,2)),t[Ce]=S(e.substr(i))}));var at,ut=Te("Hours",!0),lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Pe,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ze,weekdaysMin:Je,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},ct={},dt={};function ht(e){return e?e.toLowerCase().replace("_","-"):e}function ft(t){var r=null;if(!ct[t]&&void 0!==e&&e&&e.exports)try{r=at._abbr,n(598)("./"+t),pt(r)}catch(e){}return ct[t]}function pt(e,t){var n;return e&&((n=a(t)?mt(e):gt(e,t))?at=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function gt(e,t){if(null!==t){var n,r=lt;if(t.abbr=e,null!=ct[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ct[e]._config;else if(null!=t.parentLocale)if(null!=ct[t.parentLocale])r=ct[t.parentLocale]._config;else{if(null==(n=ft(t.parentLocale)))return dt[t.parentLocale]||(dt[t.parentLocale]=[]),dt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ct[e]=new O(N(r,t)),dt[e]&&dt[e].forEach((function(e){gt(e.name,e.config)})),pt(e),ct[e]}return delete ct[e],null}function mt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return at;if(!o(e)){if(t=ft(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o0;){if(r=ft(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(i,n,!0)>=t-1)break;t--}o++}return at}(e)}function _t(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[ye]<0||n[ye]>11?ye:n[ve]<1||n[ve]>Ae(n[_e],n[ye])?ve:n[be]<0||n[be]>24||24===n[be]&&(0!==n[we]||0!==n[Ce]||0!==n[Se])?be:n[we]<0||n[we]>59?we:n[Ce]<0||n[Ce]>59?Ce:n[Se]<0||n[Se]>999?Se:-1,p(e)._overflowDayOfYear&&(t<_e||t>ve)&&(t=ve),p(e)._overflowWeeks&&-1===t&&(t=xe),p(e)._overflowWeekday&&-1===t&&(t=Le),p(e).overflow=t),e}function yt(e,t,n){return null!=e?e:null!=t?t:n}function vt(e){var t,n,r,o,s,a=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ve]&&null==e._a[ye]&&function(e){var t,n,r,i,o,s,a,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)o=1,s=4,n=yt(t.GG,e._a[_e],Ke(It(),1,4).year),r=yt(t.W,1),((i=yt(t.E,1))<1||i>7)&&(u=!0);else{o=e._locale._week.dow,s=e._locale._week.doy;var l=Ke(It(),o,s);n=yt(t.gg,e._a[_e],l.year),r=yt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o}r<1||r>Ge(n,o,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(a=qe(n,r,i,o,s),e._a[_e]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=yt(e._a[_e],r[_e]),(e._dayOfYear>ke(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=ze(s,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[be]&&0===e._a[we]&&0===e._a[Ce]&&0===e._a[Se]&&(e._nextDay=!0,e._a[be]=0),e._d=(e._useUTC?ze:Ve).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[be]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var bt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ct=/Z|[+-]\d\d(?::?\d\d)?/,St=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],xt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Lt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,i,o,s,a=e._i,u=bt.exec(a)||wt.exec(a);if(u){for(p(e).iso=!0,t=0,n=St.length;t0&&p(e).unusedInput.push(s),a=a.slice(a.indexOf(n)+n.length),l+=n.length),V[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),me(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=u-l,a.length>0&&p(e).unusedInput.push(a),e._a[be]<=12&&!0===p(e).bigHour&&e._a[be]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[be]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[be],e._meridiem),vt(e),_t(e)}else Tt(e);else kt(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||mt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new b(_t(t)):(l(t)?e._d=t:o(n)?function(e){var t,n,r,i,o;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:m()}));function Ft(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-dn:new Date(e,t,n).valueOf()}function pn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-dn:Date.UTC(e,t,n)}function gn(e,t){z(0,[e,e.length],0,t)}function mn(e,t,n,r,i){var o;return null==e?Ke(this,r,i).year:(t>(o=Ge(e,r,i))&&(t=o),_n.call(this,e,t,n,r,i))}function _n(e,t,n,r,i){var o=qe(e,t,n,r,i),s=ze(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),gn("gggg","weekYear"),gn("ggggg","weekYear"),gn("GGGG","isoWeekYear"),gn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",oe),ce("g",oe),ce("GG",J,G),ce("gg",J,G),ce("GGGG",ne,Z),ce("gggg",ne,Z),ce("GGGGG",re,X),ce("ggggg",re,X),ge(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=S(e)})),ge(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),I("quarter","Q"),Y("quarter",7),ce("Q",K),pe("Q",(function(e,t){t[ye]=3*(S(e)-1)})),z("D",["DD",2],"Do","date"),I("date","D"),Y("date",9),ce("D",J),ce("DD",J,G),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],ve),pe("Do",(function(e,t){t[ve]=S(e.match(J)[0])}));var yn=Te("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",$),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=S(e)})),z("m",["mm",2],0,"minute"),I("minute","m"),Y("minute",14),ce("m",J),ce("mm",J,G),pe(["m","mm"],we);var vn=Te("Minutes",!1);z("s",["ss",2],0,"second"),I("second","s"),Y("second",15),ce("s",J),ce("ss",J,G),pe(["s","ss"],Ce);var bn,wn=Te("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),Y("millisecond",16),ce("S",te,K),ce("SS",te,G),ce("SSS",te,$),bn="SSSS";bn.length<=9;bn+="S")ce(bn,ie);function Cn(e,t){t[Se]=S(1e3*("0."+e))}for(bn="S";bn.length<=9;bn+="S")pe(bn,Cn);var Sn=Te("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var xn=b.prototype;function Ln(e){return e}xn.add=tn,xn.calendar=function(e,t){var n=e||It(),r=Ut(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",s=t&&(T(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,It(n)))},xn.clone=function(){return new b(this)},xn.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=P(t)){case"year":o=rn(this,r)/12;break;case"month":o=rn(this,r);break;case"quarter":o=rn(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:C(o)},xn.endOf=function(e){var t;if(void 0===(e=P(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?pn:fn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=cn-hn(t+(this._isUTC?0:this.utcOffset()*ln),cn)-1;break;case"minute":t=this._d.valueOf(),t+=ln-hn(t,ln)-1;break;case"second":t=this._d.valueOf(),t+=un-hn(t,un)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},xn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=U(this,e);return this.localeData().postformat(t)},xn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||It(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.fromNow=function(e){return this.from(It(),e)},xn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||It(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},xn.toNow=function(e){return this.to(It(),e)},xn.get=function(e){return T(this[e=P(e)])?this[e]():this},xn.invalidAt=function(){return p(this).overflow},xn.isAfter=function(e,t){var n=w(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=P(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},xn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},xn.toJSON=function(){return this.isValid()?this.toISOString():null},xn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},xn.unix=function(){return Math.floor(this.valueOf()/1e3)},xn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},xn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},xn.year=Ee,xn.isLeapYear=function(){return Me(this.year())},xn.weekYear=function(e){return mn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},xn.isoWeekYear=function(e){return mn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},xn.quarter=xn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},xn.month=je,xn.daysInMonth=function(){return Ae(this.year(),this.month())},xn.week=xn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},xn.isoWeek=xn.isoWeeks=function(e){var t=Ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},xn.weeksInYear=function(){var e=this.localeData()._week;return Ge(this.year(),e.dow,e.doy)},xn.isoWeeksInYear=function(){return Ge(this.year(),1,4)},xn.date=yn,xn.day=xn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},xn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},xn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},xn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},xn.hour=xn.hours=ut,xn.minute=xn.minutes=vn,xn.second=xn.seconds=wn,xn.millisecond=xn.milliseconds=Sn,xn.utcOffset=function(e,t,n){var r,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=zt(ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=qt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==e&&(!t||this._changeInProgress?en(this,Zt(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:qt(this)},xn.utc=function(e){return this.utcOffset(0,e)},xn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(qt(this),"m")),this},xn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=zt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},xn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60==0)},xn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},xn.isLocal=function(){return!!this.isValid()&&!this._isUTC},xn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},xn.isUtc=Kt,xn.isUTC=Kt,xn.zoneAbbr=function(){return this._isUTC?"UTC":""},xn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},xn.dates=k("dates accessor is deprecated. Use date instead.",yn),xn.months=k("months accessor is deprecated. Use month instead",je),xn.years=k("years accessor is deprecated. Use year instead",Ee),xn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),xn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=Ot(e))._a){var t=e._isUTC?f(e._a):It(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var kn=O.prototype;function Mn(e,t,n,r){var i=mt(),o=f().set(r,t);return i[n](o,e)}function Dn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return Mn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Mn(e,r,n,"month");return i}function En(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var i,o=mt(),s=e?o._week.dow:0;if(null!=n)return Mn(t,(n+s)%7,r,"day");var a=[];for(i=0;i<7;i++)a[i]=Mn(t,(i+s)%7,r,"day");return a}kn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return T(r)?r.call(t,n):r},kn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},kn.invalidDate=function(){return this._invalidDate},kn.ordinal=function(e){return this._ordinal.replace("%d",e)},kn.preparse=Ln,kn.postformat=Ln,kn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return T(i)?i(e,t,n,r):i.replace(/%d/i,e)},kn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},kn.set=function(e){var t,n;for(n in e)T(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},kn.months=function(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ie).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone},kn.monthsShort=function(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ie.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},kn.monthsParse=function(e,t,n){var r,i,o;if(this._monthsParseExact)return Fe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},kn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},kn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||He.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Be),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},kn.week=function(e){return Ke(e,this._week.dow,this._week.doy).week},kn.firstDayOfYear=function(){return this._week.doy},kn.firstDayOfWeek=function(){return this._week.dow},kn.weekdays=function(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?$e(n,this._week.dow):e?n[e.day()]:n},kn.weekdaysMin=function(e){return!0===e?$e(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},kn.weekdaysShort=function(e){return!0===e?$e(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},kn.weekdaysParse=function(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},kn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},kn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},kn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},kn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},kn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},pt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=k("moment.lang is deprecated. Use moment.locale instead.",pt),i.langData=k("moment.langData is deprecated. Use moment.localeData instead.",mt);var Tn=Math.abs;function Nn(e,t,n,r){var i=Zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function On(e){return e<0?Math.floor(e):Math.ceil(e)}function An(e){return 4800*e/146097}function In(e){return 146097*e/4800}function Pn(e){return function(){return this.as(e)}}var Rn=Pn("ms"),Fn=Pn("s"),Yn=Pn("m"),jn=Pn("h"),Bn=Pn("d"),Wn=Pn("w"),Hn=Pn("M"),Vn=Pn("Q"),zn=Pn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var qn=Un("milliseconds"),Kn=Un("seconds"),Gn=Un("minutes"),$n=Un("hours"),Zn=Un("days"),Xn=Un("months"),Jn=Un("years"),Qn=Math.round,er={ss:44,s:45,m:45,h:22,d:26,M:11};function tr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var nr=Math.abs;function rr(e){return(e>0)-(e<0)||+e}function ir(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=nr(this._milliseconds)/1e3,r=nr(this._days),i=nr(this._months);e=C(n/60),t=C(e/60),n%=60,e%=60;var o=C(i/12),s=i%=12,a=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=rr(this._months)!==rr(d)?"-":"",p=rr(this._days)!==rr(d)?"-":"",g=rr(this._milliseconds)!==rr(d)?"-":"";return h+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(u||l||c?"T":"")+(u?g+u+"H":"")+(l?g+l+"M":"")+(c?g+c+"S":"")}var or=jt.prototype;return or.isValid=function(){return this._isValid},or.abs=function(){var e=this._data;return this._milliseconds=Tn(this._milliseconds),this._days=Tn(this._days),this._months=Tn(this._months),e.milliseconds=Tn(e.milliseconds),e.seconds=Tn(e.seconds),e.minutes=Tn(e.minutes),e.hours=Tn(e.hours),e.months=Tn(e.months),e.years=Tn(e.years),this},or.add=function(e,t){return Nn(this,e,t,1)},or.subtract=function(e,t){return Nn(this,e,t,-1)},or.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=P(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+An(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(In(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},or.asMilliseconds=Rn,or.asSeconds=Fn,or.asMinutes=Yn,or.asHours=jn,or.asDays=Bn,or.asWeeks=Wn,or.asMonths=Hn,or.asQuarters=Vn,or.asYears=zn,or.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},or._bubble=function(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*On(In(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=C(o/1e3),u.seconds=e%60,t=C(e/60),u.minutes=t%60,n=C(t/60),u.hours=n%24,s+=C(n/24),i=C(An(s)),a+=i,s-=On(In(i)),r=C(a/12),a%=12,u.days=s,u.months=a,u.years=r,this},or.clone=function(){return Zt(this)},or.get=function(e){return e=P(e),this.isValid()?this[e+"s"]():NaN},or.milliseconds=qn,or.seconds=Kn,or.minutes=Gn,or.hours=$n,or.days=Zn,or.weeks=function(){return C(this.days()/7)},or.months=Xn,or.years=Jn,or.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Zt(e).abs(),i=Qn(r.as("s")),o=Qn(r.as("m")),s=Qn(r.as("h")),a=Qn(r.as("d")),u=Qn(r.as("M")),l=Qn(r.as("y")),c=i<=er.ss&&["s",i]||i0,c[4]=n,tr.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},or.toISOString=ir,or.toString=ir,or.toJSON=ir,or.locale=on,or.localeData=an,or.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ir),or.lang=sn,z("X",0,0,"unix"),z("x",0,0,"valueOf"),ce("x",oe),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(S(e))})),i.version="2.24.0",t=It,i.fn=xn,i.min=function(){return Ft("isBefore",[].slice.call(arguments,0))},i.max=function(){return Ft("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(e){return It(1e3*e)},i.months=function(e,t){return Dn(e,t,"months")},i.isDate=l,i.locale=pt,i.invalid=m,i.duration=Zt,i.isMoment=w,i.weekdays=function(e,t,n){return En(e,t,n,"weekdays")},i.parseZone=function(){return It.apply(null,arguments).parseZone()},i.localeData=mt,i.isDuration=Bt,i.monthsShort=function(e,t){return Dn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return En(e,t,n,"weekdaysMin")},i.defineLocale=gt,i.updateLocale=function(e,t){if(null!=t){var n,r,i=lt;null!=(r=ft(e))&&(i=r._config),t=N(i,t),(n=new O(t)).parentLocale=ct[e],ct[e]=n,pt(e)}else null!=ct[e]&&(null!=ct[e].parentLocale?ct[e]=ct[e].parentLocale:null!=ct[e]&&delete ct[e]);return ct[e]},i.locales=function(){return M(ct)},i.weekdaysShort=function(e,t,n){return En(e,t,n,"weekdaysShort")},i.normalizeUnits=P,i.relativeTimeRounding=function(e){return void 0===e?Qn:"function"==typeof e&&(Qn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==er[e]&&(void 0===t?er[e]:(er[e]=t,"s"===e&&(er.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=xn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(40)(e))},function(e,t,n){"use strict";(function(e,r){n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return g})),n.d(t,"c",(function(){return m})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return y})),n.d(t,"b",(function(){return v})),n.d(t,"h",(function(){return w})),n.d(t,"a",(function(){return C}));var i=!1,o=!1,s=!1,a=!1,u=!1,l=void 0,c=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||c){if("object"==typeof e){i="win32"===e.platform,o="darwin"===e.platform,s="linux"===e.platform,"en","en";var d=e.env.VSCODE_NLS_CONFIG;if(d)try{var h=JSON.parse(d),f=h.availableLanguages["*"];h.locale,f||"en",h._translationsConfigFile}catch(e){}a=!0}}else i=(l=navigator.userAgent).indexOf("Windows")>=0,o=l.indexOf("Macintosh")>=0,s=l.indexOf("Linux")>=0,u=!0,navigator.language;var p=i,g=o,m=s,_=a,y=u,v="object"==typeof self?self:"object"==typeof r?r:{},b=null;function w(t){return null===b&&(b=v.setImmediate?v.setImmediate.bind(v):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):v.setTimeout.bind(v)),b(t)}var C=o?2:i?1:3}).call(this,n(72),n(30))},function(e,t,n){var r;try{r={cloneDeep:n(146),constant:n(42),defaults:n(90),each:n(43),filter:n(59),find:n(147),flatten:n(91),forEach:n(83),forIn:n(149),has:n(45),isUndefined:n(62),last:n(150),map:n(63),mapValues:n(151),max:n(152),merge:n(153),min:n(157),minBy:n(159),now:n(160),pick:n(93),range:n(94),reduce:n(64),sortBy:n(161),uniqueId:n(95),values:n(66),zipObject:n(162)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r;try{r={cloneDeep:n(146),constant:n(42),defaults:n(90),each:n(43),filter:n(59),find:n(147),flatten:n(91),forEach:n(83),forIn:n(149),has:n(45),isUndefined:n(62),last:n(150),map:n(63),mapValues:n(151),max:n(152),merge:n(153),min:n(157),minBy:n(159),now:n(160),pick:n(93),range:n(94),reduce:n(64),sortBy:n(161),uniqueId:n(95),values:n(66),zipObject:n(162)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(2),i=n(14).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=l*s/a,r=l):(s<0&&(u=-u),n=u,r=u*a/s);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){"use strict";var r=n(3),i=n(16).Graph;function o(e,t,n,i){var o;do{o=r.uniqueId(i)}while(e.hasNode(o));return n.dummy=t,e.setNode(o,n),o}function s(e){return r.max(r.map(e.nodes(),(function(t){var n=e.node(t).rank;if(!r.isUndefined(n))return n})))}e.exports={addDummyNode:o,simplify:function(e){var t=(new i).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),t},asNonCompoundGraph:function(e){var t=new i({multigraph:e.isMultigraph()}).setGraph(e.graph());return r.forEach(e.nodes(),(function(n){e.children(n).length||t.setNode(n,e.node(n))})),r.forEach(e.edges(),(function(n){t.setEdge(n,e.edge(n))})),t},successorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.outEdges(t),(function(t){n[t.w]=(n[t.w]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},predecessorWeights:function(e){var t=r.map(e.nodes(),(function(t){var n={};return r.forEach(e.inEdges(t),(function(t){n[t.v]=(n[t.v]||0)+e.edge(t).weight})),n}));return r.zipObject(e.nodes(),t)},intersectRect:function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;if(!s&&!a)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=l*s/a,r=l):(s<0&&(u=-u),n=u,r=u*a/s);return{x:i+n,y:o+r}},buildLayerMatrix:function(e){var t=r.map(r.range(s(e)+1),(function(){return[]}));return r.forEach(e.nodes(),(function(n){var i=e.node(n),o=i.rank;r.isUndefined(o)||(t[o][i.order]=n)})),t},normalizeRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank})));r.forEach(e.nodes(),(function(n){var i=e.node(n);r.has(i,"rank")&&(i.rank-=t)}))},removeEmptyRanks:function(e){var t=r.min(r.map(e.nodes(),(function(t){return e.node(t).rank}))),n=[];r.forEach(e.nodes(),(function(r){var i=e.node(r).rank-t;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,o=e.graph().nodeRankFactor;r.forEach(n,(function(t,n){r.isUndefined(t)&&n%o!=0?--i:i&&r.forEach(t,(function(t){e.node(t).rank+=i}))}))},addBorderNode:function(e,t,n,r){var i={width:0,height:0};arguments.length>=4&&(i.rank=n,i.order=r);return o(e,"border",i,t)},maxRank:s,partition:function(e,t){var n={lhs:[],rhs:[]};return r.forEach(e,(function(e){t(e)?n.lhs.push(e):n.rhs.push(e)})),n},time:function(e,t){var n=r.now();try{return t()}finally{console.log(e+" time: "+(r.now()-n)+"ms")}},notime:function(e,t){return t()}}},function(e,t,n){var r;try{r={clone:n(102),constant:n(42),each:n(43),filter:n(59),has:n(45),isArray:n(4),isEmpty:n(132),isFunction:n(26),isUndefined:n(62),keys:n(19),map:n(63),reduce:n(64),size:n(134),transform:n(135),union:n(136),values:n(66)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r;try{r={clone:n(102),constant:n(42),each:n(43),filter:n(59),has:n(45),isArray:n(4),isEmpty:n(132),isFunction:n(26),isUndefined:n(62),keys:n(19),map:n(63),reduce:n(64),size:n(134),transform:n(135),union:n(136),values:n(66)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(37);e.exports={isSubgraph:function(e,t){return!!e.children(t).length},edgeToId:function(e){return o(e.v)+":"+o(e.w)+":"+o(e.name)},applyStyle:function(e,t){t&&e.attr("style",t)},applyClass:function(e,t,n){t&&e.attr("class",t).attr("class",n+" "+e.attr("class"))},applyTransition:function(e,t){var n=t.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(e)}return e}};var i=/:/g;function o(e){return e?String(e).replace(i,"\\:"):""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(565),i=n(566),o=n(567),s={channel:r.default,lang:i.default,unit:o.default};t.default=s},function(module,exports,__webpack_require__){(function(global){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;!function(e,t){module.exports=t(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global?global:this,(function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.1",buffer;if(module.exports)try{buffer=eval("require('buffer').Buffer")}catch(e){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(e){for(var t={},n=0,r=e.length;n>>6)+fromCharCode(128|63&t):fromCharCode(224|t>>>12&15)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return fromCharCode(240|t>>>18&7)+fromCharCode(128|t>>>12&63)+fromCharCode(128|t>>>6&63)+fromCharCode(128|63&t)},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(e){return e.replace(re_utob,cb_utob)},cb_encode=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[b64chars.charAt(n>>>18),b64chars.charAt(n>>>12&63),t>=2?"=":b64chars.charAt(n>>>6&63),t>=1?"=":b64chars.charAt(63&n)].join("")},btoa=global.btoa?function(e){return global.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e)).toString("base64")}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e)).toString("base64")}:function(e){return btoa(utob(e))},encode=function(e,t){return t?_encode(String(e)).replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,""):_encode(String(e))},encodeURI=function(e){return encode(e,!0)},re_btou=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),cb_btou=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return fromCharCode(55296+(t>>>10))+fromCharCode(56320+(1023&t));case 3:return fromCharCode((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return fromCharCode((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},btou=function(e){return e.replace(re_btou,cb_btou)},cb_decode=function(e){var t=e.length,n=t%4,r=(t>0?b64tab[e.charAt(0)]<<18:0)|(t>1?b64tab[e.charAt(1)]<<12:0)|(t>2?b64tab[e.charAt(2)]<<6:0)|(t>3?b64tab[e.charAt(3)]:0),i=[fromCharCode(r>>>16),fromCharCode(r>>>8&255),fromCharCode(255&r)];return i.length-=[0,0,2,1][n],i.join("")},_atob=global.atob?function(e){return global.atob(e)}:function(e){return e.replace(/\S{1,4}/g,cb_decode)},atob=function(e){return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(e){return(e.constructor===buffer.constructor?e:buffer.from(e,"base64")).toString()}:function(e){return(e.constructor===buffer.constructor?e:new buffer(e,"base64")).toString()}:function(e){return btou(_atob(e))},decode=function(e){return _decode(String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var e=global.Base64;return global.Base64=_Base64,e};if(global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict,__buffer__:buffer},"function"==typeof Object.defineProperty){var noEnum=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum((function(){return decode(this)}))),Object.defineProperty(String.prototype,"toBase64",noEnum((function(e){return encode(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",noEnum((function(){return encode(this,!0)})))}}return global.Meteor&&(Base64=global.Base64),module.exports?module.exports.Base64=global.Base64:(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return global.Base64}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)),{Base64:global.Base64}}))}).call(this,__webpack_require__(30))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return a}));var r=n(1),i=void 0===e?{cwd:function(){return"/"},env:Object.create(null),get platform(){return r.g?"win32":r.d?"darwin":"linux"},nextTick:function(e){return Object(r.h)(e)}}:e,o=i.cwd,s=i.env,a=i.platform}).call(this,n(72))},function(e,t,n){var r;try{r=n(101)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){var r=n(104),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r;try{r=n(164)}catch(e){}r||(r=window.graphlib),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),i=n(177),o=n(571),s=n(572),a=n(573),u={format:{keyword:o.default,hex:i.default,rgb:s.default,rgba:s.default,hsl:a.default,hsla:a.default},parse:function(e){if("string"!=typeof e)return e;var t=i.default.parse(e)||s.default.parse(e)||a.default.parse(e)||o.default.parse(e);if(t)return t;throw new Error('Unsupported color format: "'+e+'"')},stringify:function(e){return!e.changed&&e.color?e.color:e.type.is(r.TYPE.HSL)||void 0===e.data.r?a.default.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?s.default.stringify(e):i.default.stringify(e)}};t.default=u},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(107),i=n(79),o=n(20);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(26),i=n(77);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(413),i=n(423),o=n(28),s=n(4),a=n(430);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?s(e)?i(e[0],e[1]):r(e):a(e)}},function(e,t,n){var r;if(!r)try{r=n(314)}catch(e){}r||(r=window.d3),e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(17);t.default=function(e,t){return r.default.lang.round(i.default.parse(e)[t])}},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/mermaid.js")}({"./node_modules/node-libs-browser/mock/empty.js": -/*!******************************************************!*\ +!(function (e) { + var t = {}; + function n(r) { + if (t[r]) return t[r].exports; + var i = (t[r] = { i: r, l: !1, exports: {} }); + return e[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports; + } + (n.m = e), + (n.c = t), + (n.d = function (e, t, r) { + n.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: r }); + }), + (n.r = function (e) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(e, Symbol.toStringTag, { value: 'Module' }), + Object.defineProperty(e, '__esModule', { value: !0 }); + }), + (n.t = function (e, t) { + if ((1 & t && (e = n(e)), 8 & t)) return e; + if (4 & t && 'object' == typeof e && e && e.__esModule) return e; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { enumerable: !0, value: e }), + 2 & t && 'string' != typeof e) + ) + for (var i in e) + n.d( + r, + i, + function (t) { + return e[t]; + }.bind(null, i) + ); + return r; + }), + (n.n = function (e) { + var t = + e && e.__esModule + ? function () { + return e.default; + } + : function () { + return e; + }; + return n.d(t, 'a', t), t; + }), + (n.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (n.p = ''), + n((n.s = 319)); +})([ + function (e, t, n) { + (function (e) { + e.exports = (function () { + 'use strict'; + var t, r; + function i() { + return t.apply(null, arguments); + } + function o(e) { + return ( + e instanceof Array || + '[object Array]' === Object.prototype.toString.call(e) + ); + } + function s(e) { + return ( + null != e && '[object Object]' === Object.prototype.toString.call(e) + ); + } + function a(e) { + return void 0 === e; + } + function u(e) { + return ( + 'number' == typeof e || + '[object Number]' === Object.prototype.toString.call(e) + ); + } + function l(e) { + return ( + e instanceof Date || + '[object Date]' === Object.prototype.toString.call(e) + ); + } + function c(e, t) { + var n, + r = []; + for (n = 0; n < e.length; ++n) r.push(t(e[n], n)); + return r; + } + function d(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + } + function h(e, t) { + for (var n in t) d(t, n) && (e[n] = t[n]); + return ( + d(t, 'toString') && (e.toString = t.toString), + d(t, 'valueOf') && (e.valueOf = t.valueOf), + e + ); + } + function f(e, t, n, r) { + return At(e, t, n, r, !0).utc(); + } + function p(e) { + return ( + null == e._pf && + (e._pf = { + empty: !1, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: !1, + invalidMonth: null, + invalidFormat: !1, + userInvalidated: !1, + iso: !1, + parsedDateParts: [], + meridiem: null, + rfc2822: !1, + weekdayMismatch: !1, + }), + e._pf + ); + } + function g(e) { + if (null == e._isValid) { + var t = p(e), + n = r.call(t.parsedDateParts, function (e) { + return null != e; + }), + i = + !isNaN(e._d.getTime()) && + t.overflow < 0 && + !t.empty && + !t.invalidMonth && + !t.invalidWeekday && + !t.weekdayMismatch && + !t.nullInput && + !t.invalidFormat && + !t.userInvalidated && + (!t.meridiem || (t.meridiem && n)); + if ( + (e._strict && + (i = + i && + 0 === t.charsLeftOver && + 0 === t.unusedTokens.length && + void 0 === t.bigHour), + null != Object.isFrozen && Object.isFrozen(e)) + ) + return i; + e._isValid = i; + } + return e._isValid; + } + function m(e) { + var t = f(NaN); + return null != e ? h(p(t), e) : (p(t).userInvalidated = !0), t; + } + r = Array.prototype.some + ? Array.prototype.some + : function (e) { + for (var t = Object(this), n = t.length >>> 0, r = 0; r < n; r++) + if (r in t && e.call(this, t[r], r, t)) return !0; + return !1; + }; + var _ = (i.momentProperties = []); + function y(e, t) { + var n, r, i; + if ( + (a(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), + a(t._i) || (e._i = t._i), + a(t._f) || (e._f = t._f), + a(t._l) || (e._l = t._l), + a(t._strict) || (e._strict = t._strict), + a(t._tzm) || (e._tzm = t._tzm), + a(t._isUTC) || (e._isUTC = t._isUTC), + a(t._offset) || (e._offset = t._offset), + a(t._pf) || (e._pf = p(t)), + a(t._locale) || (e._locale = t._locale), + _.length > 0) + ) + for (n = 0; n < _.length; n++) a((i = t[(r = _[n])])) || (e[r] = i); + return e; + } + var v = !1; + function b(e) { + y(this, e), + (this._d = new Date(null != e._d ? e._d.getTime() : NaN)), + this.isValid() || (this._d = new Date(NaN)), + !1 === v && ((v = !0), i.updateOffset(this), (v = !1)); + } + function w(e) { + return e instanceof b || (null != e && null != e._isAMomentObject); + } + function C(e) { + return e < 0 ? Math.ceil(e) || 0 : Math.floor(e); + } + function S(e) { + var t = +e, + n = 0; + return 0 !== t && isFinite(t) && (n = C(t)), n; + } + function x(e, t, n) { + var r, + i = Math.min(e.length, t.length), + o = Math.abs(e.length - t.length), + s = 0; + for (r = 0; r < i; r++) + ((n && e[r] !== t[r]) || (!n && S(e[r]) !== S(t[r]))) && s++; + return s + o; + } + function L(e) { + !1 === i.suppressDeprecationWarnings && + 'undefined' != typeof console && + console.warn && + console.warn('Deprecation warning: ' + e); + } + function k(e, t) { + var n = !0; + return h(function () { + if ( + (null != i.deprecationHandler && i.deprecationHandler(null, e), n) + ) { + for (var r, o = [], s = 0; s < arguments.length; s++) { + if (((r = ''), 'object' == typeof arguments[s])) { + for (var a in ((r += '\n[' + s + '] '), arguments[0])) + r += a + ': ' + arguments[0][a] + ', '; + r = r.slice(0, -2); + } else r = arguments[s]; + o.push(r); + } + L( + e + + '\nArguments: ' + + Array.prototype.slice.call(o).join('') + + '\n' + + new Error().stack + ), + (n = !1); + } + return t.apply(this, arguments); + }, t); + } + var M, + D = {}; + function E(e, t) { + null != i.deprecationHandler && i.deprecationHandler(e, t), + D[e] || (L(t), (D[e] = !0)); + } + function T(e) { + return ( + e instanceof Function || + '[object Function]' === Object.prototype.toString.call(e) + ); + } + function N(e, t) { + var n, + r = h({}, e); + for (n in t) + d(t, n) && + (s(e[n]) && s(t[n]) + ? ((r[n] = {}), h(r[n], e[n]), h(r[n], t[n])) + : null != t[n] + ? (r[n] = t[n]) + : delete r[n]); + for (n in e) d(e, n) && !d(t, n) && s(e[n]) && (r[n] = h({}, r[n])); + return r; + } + function O(e) { + null != e && this.set(e); + } + (i.suppressDeprecationWarnings = !1), + (i.deprecationHandler = null), + (M = Object.keys + ? Object.keys + : function (e) { + var t, + n = []; + for (t in e) d(e, t) && n.push(t); + return n; + }); + var A = {}; + function I(e, t) { + var n = e.toLowerCase(); + A[n] = A[n + 's'] = A[t] = e; + } + function P(e) { + return 'string' == typeof e ? A[e] || A[e.toLowerCase()] : void 0; + } + function R(e) { + var t, + n, + r = {}; + for (n in e) d(e, n) && (t = P(n)) && (r[t] = e[n]); + return r; + } + var F = {}; + function Y(e, t) { + F[e] = t; + } + function j(e, t, n) { + var r = '' + Math.abs(e), + i = t - r.length; + return ( + (e >= 0 ? (n ? '+' : '') : '-') + + Math.pow(10, Math.max(0, i)).toString().substr(1) + + r + ); + } + var B = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + W = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + H = {}, + V = {}; + function z(e, t, n, r) { + var i = r; + 'string' == typeof r && + (i = function () { + return this[r](); + }), + e && (V[e] = i), + t && + (V[t[0]] = function () { + return j(i.apply(this, arguments), t[1], t[2]); + }), + n && + (V[n] = function () { + return this.localeData().ordinal(i.apply(this, arguments), e); + }); + } + function U(e, t) { + return e.isValid() + ? ((t = q(t, e.localeData())), + (H[t] = + H[t] || + (function (e) { + var t, + n, + r, + i = e.match(B); + for (t = 0, n = i.length; t < n; t++) + V[i[t]] + ? (i[t] = V[i[t]]) + : (i[t] = (r = i[t]).match(/\[[\s\S]/) + ? r.replace(/^\[|\]$/g, '') + : r.replace(/\\/g, '')); + return function (t) { + var r, + o = ''; + for (r = 0; r < n; r++) + o += T(i[r]) ? i[r].call(t, e) : i[r]; + return o; + }; + })(t)), + H[t](e)) + : e.localeData().invalidDate(); + } + function q(e, t) { + var n = 5; + function r(e) { + return t.longDateFormat(e) || e; + } + for (W.lastIndex = 0; n >= 0 && W.test(e); ) + (e = e.replace(W, r)), (W.lastIndex = 0), (n -= 1); + return e; + } + var K = /\d/, + G = /\d\d/, + $ = /\d{3}/, + Z = /\d{4}/, + X = /[+-]?\d{6}/, + J = /\d\d?/, + Q = /\d\d\d\d?/, + ee = /\d\d\d\d\d\d?/, + te = /\d{1,3}/, + ne = /\d{1,4}/, + re = /[+-]?\d{1,6}/, + ie = /\d+/, + oe = /[+-]?\d+/, + se = /Z|[+-]\d\d:?\d\d/gi, + ae = /Z|[+-]\d\d(?::?\d\d)?/gi, + ue = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, + le = {}; + function ce(e, t, n) { + le[e] = T(t) + ? t + : function (e, r) { + return e && n ? n : t; + }; + } + function de(e, t) { + return d(le, e) + ? le[e](t._strict, t._locale) + : new RegExp( + he( + e + .replace('\\', '') + .replace( + /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, + function (e, t, n, r, i) { + return t || n || r || i; + } + ) + ) + ); + } + function he(e) { + return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } + var fe = {}; + function pe(e, t) { + var n, + r = t; + for ( + 'string' == typeof e && (e = [e]), + u(t) && + (r = function (e, n) { + n[t] = S(e); + }), + n = 0; + n < e.length; + n++ + ) + fe[e[n]] = r; + } + function ge(e, t) { + pe(e, function (e, n, r, i) { + (r._w = r._w || {}), t(e, r._w, r, i); + }); + } + function me(e, t, n) { + null != t && d(fe, e) && fe[e](t, n._a, n, e); + } + var _e = 0, + ye = 1, + ve = 2, + be = 3, + we = 4, + Ce = 5, + Se = 6, + xe = 7, + Le = 8; + function ke(e) { + return Me(e) ? 366 : 365; + } + function Me(e) { + return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0; + } + z('Y', 0, 0, function () { + var e = this.year(); + return e <= 9999 ? '' + e : '+' + e; + }), + z(0, ['YY', 2], 0, function () { + return this.year() % 100; + }), + z(0, ['YYYY', 4], 0, 'year'), + z(0, ['YYYYY', 5], 0, 'year'), + z(0, ['YYYYYY', 6, !0], 0, 'year'), + I('year', 'y'), + Y('year', 1), + ce('Y', oe), + ce('YY', J, G), + ce('YYYY', ne, Z), + ce('YYYYY', re, X), + ce('YYYYYY', re, X), + pe(['YYYYY', 'YYYYYY'], _e), + pe('YYYY', function (e, t) { + t[_e] = 2 === e.length ? i.parseTwoDigitYear(e) : S(e); + }), + pe('YY', function (e, t) { + t[_e] = i.parseTwoDigitYear(e); + }), + pe('Y', function (e, t) { + t[_e] = parseInt(e, 10); + }), + (i.parseTwoDigitYear = function (e) { + return S(e) + (S(e) > 68 ? 1900 : 2e3); + }); + var De, + Ee = Te('FullYear', !0); + function Te(e, t) { + return function (n) { + return null != n + ? (Oe(this, e, n), i.updateOffset(this, t), this) + : Ne(this, e); + }; + } + function Ne(e, t) { + return e.isValid() + ? e._d['get' + (e._isUTC ? 'UTC' : '') + t]() + : NaN; + } + function Oe(e, t, n) { + e.isValid() && + !isNaN(n) && + ('FullYear' === t && + Me(e.year()) && + 1 === e.month() && + 29 === e.date() + ? e._d['set' + (e._isUTC ? 'UTC' : '') + t]( + n, + e.month(), + Ae(n, e.month()) + ) + : e._d['set' + (e._isUTC ? 'UTC' : '') + t](n)); + } + function Ae(e, t) { + if (isNaN(e) || isNaN(t)) return NaN; + var n, + r = ((t % (n = 12)) + n) % n; + return ( + (e += (t - r) / 12), + 1 === r ? (Me(e) ? 29 : 28) : 31 - ((r % 7) % 2) + ); + } + (De = Array.prototype.indexOf + ? Array.prototype.indexOf + : function (e) { + var t; + for (t = 0; t < this.length; ++t) if (this[t] === e) return t; + return -1; + }), + z('M', ['MM', 2], 'Mo', function () { + return this.month() + 1; + }), + z('MMM', 0, 0, function (e) { + return this.localeData().monthsShort(this, e); + }), + z('MMMM', 0, 0, function (e) { + return this.localeData().months(this, e); + }), + I('month', 'M'), + Y('month', 8), + ce('M', J), + ce('MM', J, G), + ce('MMM', function (e, t) { + return t.monthsShortRegex(e); + }), + ce('MMMM', function (e, t) { + return t.monthsRegex(e); + }), + pe(['M', 'MM'], function (e, t) { + t[ye] = S(e) - 1; + }), + pe(['MMM', 'MMMM'], function (e, t, n, r) { + var i = n._locale.monthsParse(e, r, n._strict); + null != i ? (t[ye] = i) : (p(n).invalidMonth = e); + }); + var Ie = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + Pe = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + Re = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); + function Fe(e, t, n) { + var r, + i, + o, + s = e.toLocaleLowerCase(); + if (!this._monthsParse) + for ( + this._monthsParse = [], + this._longMonthsParse = [], + this._shortMonthsParse = [], + r = 0; + r < 12; + ++r + ) + (o = f([2e3, r])), + (this._shortMonthsParse[r] = this.monthsShort( + o, + '' + ).toLocaleLowerCase()), + (this._longMonthsParse[r] = this.months( + o, + '' + ).toLocaleLowerCase()); + return n + ? 'MMM' === t + ? -1 !== (i = De.call(this._shortMonthsParse, s)) + ? i + : null + : -1 !== (i = De.call(this._longMonthsParse, s)) + ? i + : null + : 'MMM' === t + ? -1 !== (i = De.call(this._shortMonthsParse, s)) + ? i + : -1 !== (i = De.call(this._longMonthsParse, s)) + ? i + : null + : -1 !== (i = De.call(this._longMonthsParse, s)) + ? i + : -1 !== (i = De.call(this._shortMonthsParse, s)) + ? i + : null; + } + function Ye(e, t) { + var n; + if (!e.isValid()) return e; + if ('string' == typeof t) + if (/^\d+$/.test(t)) t = S(t); + else if (!u((t = e.localeData().monthsParse(t)))) return e; + return ( + (n = Math.min(e.date(), Ae(e.year(), t))), + e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, n), + e + ); + } + function je(e) { + return null != e + ? (Ye(this, e), i.updateOffset(this, !0), this) + : Ne(this, 'Month'); + } + var Be = ue, + We = ue; + function He() { + function e(e, t) { + return t.length - e.length; + } + var t, + n, + r = [], + i = [], + o = []; + for (t = 0; t < 12; t++) + (n = f([2e3, t])), + r.push(this.monthsShort(n, '')), + i.push(this.months(n, '')), + o.push(this.months(n, '')), + o.push(this.monthsShort(n, '')); + for (r.sort(e), i.sort(e), o.sort(e), t = 0; t < 12; t++) + (r[t] = he(r[t])), (i[t] = he(i[t])); + for (t = 0; t < 24; t++) o[t] = he(o[t]); + (this._monthsRegex = new RegExp('^(' + o.join('|') + ')', 'i')), + (this._monthsShortRegex = this._monthsRegex), + (this._monthsStrictRegex = new RegExp( + '^(' + i.join('|') + ')', + 'i' + )), + (this._monthsShortStrictRegex = new RegExp( + '^(' + r.join('|') + ')', + 'i' + )); + } + function Ve(e, t, n, r, i, o, s) { + var a; + return ( + e < 100 && e >= 0 + ? ((a = new Date(e + 400, t, n, r, i, o, s)), + isFinite(a.getFullYear()) && a.setFullYear(e)) + : (a = new Date(e, t, n, r, i, o, s)), + a + ); + } + function ze(e) { + var t; + if (e < 100 && e >= 0) { + var n = Array.prototype.slice.call(arguments); + (n[0] = e + 400), + (t = new Date(Date.UTC.apply(null, n))), + isFinite(t.getUTCFullYear()) && t.setUTCFullYear(e); + } else t = new Date(Date.UTC.apply(null, arguments)); + return t; + } + function Ue(e, t, n) { + var r = 7 + t - n; + return (-(7 + ze(e, 0, r).getUTCDay() - t) % 7) + r - 1; + } + function qe(e, t, n, r, i) { + var o, + s, + a = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + Ue(e, r, i); + return ( + a <= 0 + ? (s = ke((o = e - 1)) + a) + : a > ke(e) + ? ((o = e + 1), (s = a - ke(e))) + : ((o = e), (s = a)), + { year: o, dayOfYear: s } + ); + } + function Ke(e, t, n) { + var r, + i, + o = Ue(e.year(), t, n), + s = Math.floor((e.dayOfYear() - o - 1) / 7) + 1; + return ( + s < 1 + ? (r = s + Ge((i = e.year() - 1), t, n)) + : s > Ge(e.year(), t, n) + ? ((r = s - Ge(e.year(), t, n)), (i = e.year() + 1)) + : ((i = e.year()), (r = s)), + { week: r, year: i } + ); + } + function Ge(e, t, n) { + var r = Ue(e, t, n), + i = Ue(e + 1, t, n); + return (ke(e) - r + i) / 7; + } + function $e(e, t) { + return e.slice(t, 7).concat(e.slice(0, t)); + } + z('w', ['ww', 2], 'wo', 'week'), + z('W', ['WW', 2], 'Wo', 'isoWeek'), + I('week', 'w'), + I('isoWeek', 'W'), + Y('week', 5), + Y('isoWeek', 5), + ce('w', J), + ce('ww', J, G), + ce('W', J), + ce('WW', J, G), + ge(['w', 'ww', 'W', 'WW'], function (e, t, n, r) { + t[r.substr(0, 1)] = S(e); + }), + z('d', 0, 'do', 'day'), + z('dd', 0, 0, function (e) { + return this.localeData().weekdaysMin(this, e); + }), + z('ddd', 0, 0, function (e) { + return this.localeData().weekdaysShort(this, e); + }), + z('dddd', 0, 0, function (e) { + return this.localeData().weekdays(this, e); + }), + z('e', 0, 0, 'weekday'), + z('E', 0, 0, 'isoWeekday'), + I('day', 'd'), + I('weekday', 'e'), + I('isoWeekday', 'E'), + Y('day', 11), + Y('weekday', 11), + Y('isoWeekday', 11), + ce('d', J), + ce('e', J), + ce('E', J), + ce('dd', function (e, t) { + return t.weekdaysMinRegex(e); + }), + ce('ddd', function (e, t) { + return t.weekdaysShortRegex(e); + }), + ce('dddd', function (e, t) { + return t.weekdaysRegex(e); + }), + ge(['dd', 'ddd', 'dddd'], function (e, t, n, r) { + var i = n._locale.weekdaysParse(e, r, n._strict); + null != i ? (t.d = i) : (p(n).invalidWeekday = e); + }), + ge(['d', 'e', 'E'], function (e, t, n, r) { + t[r] = S(e); + }); + var Ze = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + Xe = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + Je = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); + function Qe(e, t, n) { + var r, + i, + o, + s = e.toLocaleLowerCase(); + if (!this._weekdaysParse) + for ( + this._weekdaysParse = [], + this._shortWeekdaysParse = [], + this._minWeekdaysParse = [], + r = 0; + r < 7; + ++r + ) + (o = f([2e3, 1]).day(r)), + (this._minWeekdaysParse[r] = this.weekdaysMin( + o, + '' + ).toLocaleLowerCase()), + (this._shortWeekdaysParse[r] = this.weekdaysShort( + o, + '' + ).toLocaleLowerCase()), + (this._weekdaysParse[r] = this.weekdays( + o, + '' + ).toLocaleLowerCase()); + return n + ? 'dddd' === t + ? -1 !== (i = De.call(this._weekdaysParse, s)) + ? i + : null + : 'ddd' === t + ? -1 !== (i = De.call(this._shortWeekdaysParse, s)) + ? i + : null + : -1 !== (i = De.call(this._minWeekdaysParse, s)) + ? i + : null + : 'dddd' === t + ? -1 !== (i = De.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._shortWeekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._minWeekdaysParse, s)) + ? i + : null + : 'ddd' === t + ? -1 !== (i = De.call(this._shortWeekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._minWeekdaysParse, s)) + ? i + : null + : -1 !== (i = De.call(this._minWeekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = De.call(this._shortWeekdaysParse, s)) + ? i + : null; + } + var et = ue, + tt = ue, + nt = ue; + function rt() { + function e(e, t) { + return t.length - e.length; + } + var t, + n, + r, + i, + o, + s = [], + a = [], + u = [], + l = []; + for (t = 0; t < 7; t++) + (n = f([2e3, 1]).day(t)), + (r = this.weekdaysMin(n, '')), + (i = this.weekdaysShort(n, '')), + (o = this.weekdays(n, '')), + s.push(r), + a.push(i), + u.push(o), + l.push(r), + l.push(i), + l.push(o); + for (s.sort(e), a.sort(e), u.sort(e), l.sort(e), t = 0; t < 7; t++) + (a[t] = he(a[t])), (u[t] = he(u[t])), (l[t] = he(l[t])); + (this._weekdaysRegex = new RegExp('^(' + l.join('|') + ')', 'i')), + (this._weekdaysShortRegex = this._weekdaysRegex), + (this._weekdaysMinRegex = this._weekdaysRegex), + (this._weekdaysStrictRegex = new RegExp( + '^(' + u.join('|') + ')', + 'i' + )), + (this._weekdaysShortStrictRegex = new RegExp( + '^(' + a.join('|') + ')', + 'i' + )), + (this._weekdaysMinStrictRegex = new RegExp( + '^(' + s.join('|') + ')', + 'i' + )); + } + function it() { + return this.hours() % 12 || 12; + } + function ot(e, t) { + z(e, 0, 0, function () { + return this.localeData().meridiem(this.hours(), this.minutes(), t); + }); + } + function st(e, t) { + return t._meridiemParse; + } + z('H', ['HH', 2], 0, 'hour'), + z('h', ['hh', 2], 0, it), + z('k', ['kk', 2], 0, function () { + return this.hours() || 24; + }), + z('hmm', 0, 0, function () { + return '' + it.apply(this) + j(this.minutes(), 2); + }), + z('hmmss', 0, 0, function () { + return ( + '' + it.apply(this) + j(this.minutes(), 2) + j(this.seconds(), 2) + ); + }), + z('Hmm', 0, 0, function () { + return '' + this.hours() + j(this.minutes(), 2); + }), + z('Hmmss', 0, 0, function () { + return ( + '' + this.hours() + j(this.minutes(), 2) + j(this.seconds(), 2) + ); + }), + ot('a', !0), + ot('A', !1), + I('hour', 'h'), + Y('hour', 13), + ce('a', st), + ce('A', st), + ce('H', J), + ce('h', J), + ce('k', J), + ce('HH', J, G), + ce('hh', J, G), + ce('kk', J, G), + ce('hmm', Q), + ce('hmmss', ee), + ce('Hmm', Q), + ce('Hmmss', ee), + pe(['H', 'HH'], be), + pe(['k', 'kk'], function (e, t, n) { + var r = S(e); + t[be] = 24 === r ? 0 : r; + }), + pe(['a', 'A'], function (e, t, n) { + (n._isPm = n._locale.isPM(e)), (n._meridiem = e); + }), + pe(['h', 'hh'], function (e, t, n) { + (t[be] = S(e)), (p(n).bigHour = !0); + }), + pe('hmm', function (e, t, n) { + var r = e.length - 2; + (t[be] = S(e.substr(0, r))), + (t[we] = S(e.substr(r))), + (p(n).bigHour = !0); + }), + pe('hmmss', function (e, t, n) { + var r = e.length - 4, + i = e.length - 2; + (t[be] = S(e.substr(0, r))), + (t[we] = S(e.substr(r, 2))), + (t[Ce] = S(e.substr(i))), + (p(n).bigHour = !0); + }), + pe('Hmm', function (e, t, n) { + var r = e.length - 2; + (t[be] = S(e.substr(0, r))), (t[we] = S(e.substr(r))); + }), + pe('Hmmss', function (e, t, n) { + var r = e.length - 4, + i = e.length - 2; + (t[be] = S(e.substr(0, r))), + (t[we] = S(e.substr(r, 2))), + (t[Ce] = S(e.substr(i))); + }); + var at, + ut = Te('Hours', !0), + lt = { + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + longDateFormat: { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + invalidDate: 'Invalid date', + ordinal: '%d', + dayOfMonthOrdinalParse: /\d{1,2}/, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + months: Pe, + monthsShort: Re, + week: { dow: 0, doy: 6 }, + weekdays: Ze, + weekdaysMin: Je, + weekdaysShort: Xe, + meridiemParse: /[ap]\.?m?\.?/i, + }, + ct = {}, + dt = {}; + function ht(e) { + return e ? e.toLowerCase().replace('_', '-') : e; + } + function ft(t) { + var r = null; + if (!ct[t] && void 0 !== e && e && e.exports) + try { + (r = at._abbr), n(611)('./' + t), pt(r); + } catch (e) {} + return ct[t]; + } + function pt(e, t) { + var n; + return ( + e && + ((n = a(t) ? mt(e) : gt(e, t)) + ? (at = n) + : 'undefined' != typeof console && + console.warn && + console.warn( + 'Locale ' + e + ' not found. Did you forget to load it?' + )), + at._abbr + ); + } + function gt(e, t) { + if (null !== t) { + var n, + r = lt; + if (((t.abbr = e), null != ct[e])) + E( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ), + (r = ct[e]._config); + else if (null != t.parentLocale) + if (null != ct[t.parentLocale]) r = ct[t.parentLocale]._config; + else { + if (null == (n = ft(t.parentLocale))) + return ( + dt[t.parentLocale] || (dt[t.parentLocale] = []), + dt[t.parentLocale].push({ name: e, config: t }), + null + ); + r = n._config; + } + return ( + (ct[e] = new O(N(r, t))), + dt[e] && + dt[e].forEach(function (e) { + gt(e.name, e.config); + }), + pt(e), + ct[e] + ); + } + return delete ct[e], null; + } + function mt(e) { + var t; + if ((e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)) + return at; + if (!o(e)) { + if ((t = ft(e))) return t; + e = [e]; + } + return (function (e) { + for (var t, n, r, i, o = 0; o < e.length; ) { + for ( + t = (i = ht(e[o]).split('-')).length, + n = (n = ht(e[o + 1])) ? n.split('-') : null; + t > 0; + + ) { + if ((r = ft(i.slice(0, t).join('-')))) return r; + if (n && n.length >= t && x(i, n, !0) >= t - 1) break; + t--; + } + o++; + } + return at; + })(e); + } + function _t(e) { + var t, + n = e._a; + return ( + n && + -2 === p(e).overflow && + ((t = + n[ye] < 0 || n[ye] > 11 + ? ye + : n[ve] < 1 || n[ve] > Ae(n[_e], n[ye]) + ? ve + : n[be] < 0 || + n[be] > 24 || + (24 === n[be] && + (0 !== n[we] || 0 !== n[Ce] || 0 !== n[Se])) + ? be + : n[we] < 0 || n[we] > 59 + ? we + : n[Ce] < 0 || n[Ce] > 59 + ? Ce + : n[Se] < 0 || n[Se] > 999 + ? Se + : -1), + p(e)._overflowDayOfYear && (t < _e || t > ve) && (t = ve), + p(e)._overflowWeeks && -1 === t && (t = xe), + p(e)._overflowWeekday && -1 === t && (t = Le), + (p(e).overflow = t)), + e + ); + } + function yt(e, t, n) { + return null != e ? e : null != t ? t : n; + } + function vt(e) { + var t, + n, + r, + o, + s, + a = []; + if (!e._d) { + for ( + r = (function (e) { + var t = new Date(i.now()); + return e._useUTC + ? [t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate()] + : [t.getFullYear(), t.getMonth(), t.getDate()]; + })(e), + e._w && + null == e._a[ve] && + null == e._a[ye] && + (function (e) { + var t, n, r, i, o, s, a, u; + if (null != (t = e._w).GG || null != t.W || null != t.E) + (o = 1), + (s = 4), + (n = yt(t.GG, e._a[_e], Ke(It(), 1, 4).year)), + (r = yt(t.W, 1)), + ((i = yt(t.E, 1)) < 1 || i > 7) && (u = !0); + else { + (o = e._locale._week.dow), (s = e._locale._week.doy); + var l = Ke(It(), o, s); + (n = yt(t.gg, e._a[_e], l.year)), + (r = yt(t.w, l.week)), + null != t.d + ? ((i = t.d) < 0 || i > 6) && (u = !0) + : null != t.e + ? ((i = t.e + o), (t.e < 0 || t.e > 6) && (u = !0)) + : (i = o); + } + r < 1 || r > Ge(n, o, s) + ? (p(e)._overflowWeeks = !0) + : null != u + ? (p(e)._overflowWeekday = !0) + : ((a = qe(n, r, i, o, s)), + (e._a[_e] = a.year), + (e._dayOfYear = a.dayOfYear)); + })(e), + null != e._dayOfYear && + ((s = yt(e._a[_e], r[_e])), + (e._dayOfYear > ke(s) || 0 === e._dayOfYear) && + (p(e)._overflowDayOfYear = !0), + (n = ze(s, 0, e._dayOfYear)), + (e._a[ye] = n.getUTCMonth()), + (e._a[ve] = n.getUTCDate())), + t = 0; + t < 3 && null == e._a[t]; + ++t + ) + e._a[t] = a[t] = r[t]; + for (; t < 7; t++) + e._a[t] = a[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t]; + 24 === e._a[be] && + 0 === e._a[we] && + 0 === e._a[Ce] && + 0 === e._a[Se] && + ((e._nextDay = !0), (e._a[be] = 0)), + (e._d = (e._useUTC ? ze : Ve).apply(null, a)), + (o = e._useUTC ? e._d.getUTCDay() : e._d.getDay()), + null != e._tzm && + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + e._nextDay && (e._a[be] = 24), + e._w && + void 0 !== e._w.d && + e._w.d !== o && + (p(e).weekdayMismatch = !0); + } + } + var bt = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + wt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + Ct = /Z|[+-]\d\d(?::?\d\d)?/, + St = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, !1], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, !1], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, !1], + ['YYYYDDD', /\d{7}/], + ], + xt = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + Lt = /^\/?Date\((\-?\d+)/i; + function kt(e) { + var t, + n, + r, + i, + o, + s, + a = e._i, + u = bt.exec(a) || wt.exec(a); + if (u) { + for (p(e).iso = !0, t = 0, n = St.length; t < n; t++) + if (St[t][1].exec(u[1])) { + (i = St[t][0]), (r = !1 !== St[t][2]); + break; + } + if (null == i) return void (e._isValid = !1); + if (u[3]) { + for (t = 0, n = xt.length; t < n; t++) + if (xt[t][1].exec(u[3])) { + o = (u[2] || ' ') + xt[t][0]; + break; + } + if (null == o) return void (e._isValid = !1); + } + if (!r && null != o) return void (e._isValid = !1); + if (u[4]) { + if (!Ct.exec(u[4])) return void (e._isValid = !1); + s = 'Z'; + } + (e._f = i + (o || '') + (s || '')), Nt(e); + } else e._isValid = !1; + } + var Mt = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/; + function Dt(e) { + var t = parseInt(e, 10); + return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t; + } + var Et = { + UT: 0, + GMT: 0, + EDT: -240, + EST: -300, + CDT: -300, + CST: -360, + MDT: -360, + MST: -420, + PDT: -420, + PST: -480, + }; + function Tt(e) { + var t, + n, + r, + i, + o, + s, + a, + u = Mt.exec( + e._i + .replace(/\([^)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .replace(/^\s\s*/, '') + .replace(/\s\s*$/, '') + ); + if (u) { + var l = + ((t = u[4]), + (n = u[3]), + (r = u[2]), + (i = u[5]), + (o = u[6]), + (s = u[7]), + (a = [ + Dt(t), + Re.indexOf(n), + parseInt(r, 10), + parseInt(i, 10), + parseInt(o, 10), + ]), + s && a.push(parseInt(s, 10)), + a); + if ( + !(function (e, t, n) { + return ( + !e || + Xe.indexOf(e) === new Date(t[0], t[1], t[2]).getDay() || + ((p(n).weekdayMismatch = !0), (n._isValid = !1), !1) + ); + })(u[1], l, e) + ) + return; + (e._a = l), + (e._tzm = (function (e, t, n) { + if (e) return Et[e]; + if (t) return 0; + var r = parseInt(n, 10), + i = r % 100; + return ((r - i) / 100) * 60 + i; + })(u[8], u[9], u[10])), + (e._d = ze.apply(null, e._a)), + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + (p(e).rfc2822 = !0); + } else e._isValid = !1; + } + function Nt(e) { + if (e._f !== i.ISO_8601) + if (e._f !== i.RFC_2822) { + (e._a = []), (p(e).empty = !0); + var t, + n, + r, + o, + s, + a = '' + e._i, + u = a.length, + l = 0; + for ( + r = q(e._f, e._locale).match(B) || [], t = 0; + t < r.length; + t++ + ) + (o = r[t]), + (n = (a.match(de(o, e)) || [])[0]) && + ((s = a.substr(0, a.indexOf(n))).length > 0 && + p(e).unusedInput.push(s), + (a = a.slice(a.indexOf(n) + n.length)), + (l += n.length)), + V[o] + ? (n ? (p(e).empty = !1) : p(e).unusedTokens.push(o), + me(o, n, e)) + : e._strict && !n && p(e).unusedTokens.push(o); + (p(e).charsLeftOver = u - l), + a.length > 0 && p(e).unusedInput.push(a), + e._a[be] <= 12 && + !0 === p(e).bigHour && + e._a[be] > 0 && + (p(e).bigHour = void 0), + (p(e).parsedDateParts = e._a.slice(0)), + (p(e).meridiem = e._meridiem), + (e._a[be] = (function (e, t, n) { + var r; + return null == n + ? t + : null != e.meridiemHour + ? e.meridiemHour(t, n) + : null != e.isPM + ? ((r = e.isPM(n)) && t < 12 && (t += 12), + r || 12 !== t || (t = 0), + t) + : t; + })(e._locale, e._a[be], e._meridiem)), + vt(e), + _t(e); + } else Tt(e); + else kt(e); + } + function Ot(e) { + var t = e._i, + n = e._f; + return ( + (e._locale = e._locale || mt(e._l)), + null === t || (void 0 === n && '' === t) + ? m({ nullInput: !0 }) + : ('string' == typeof t && (e._i = t = e._locale.preparse(t)), + w(t) + ? new b(_t(t)) + : (l(t) + ? (e._d = t) + : o(n) + ? (function (e) { + var t, n, r, i, o; + if (0 === e._f.length) + return ( + (p(e).invalidFormat = !0), + void (e._d = new Date(NaN)) + ); + for (i = 0; i < e._f.length; i++) + (o = 0), + (t = y({}, e)), + null != e._useUTC && (t._useUTC = e._useUTC), + (t._f = e._f[i]), + Nt(t), + g(t) && + ((o += p(t).charsLeftOver), + (o += 10 * p(t).unusedTokens.length), + (p(t).score = o), + (null == r || o < r) && ((r = o), (n = t))); + h(e, n || t); + })(e) + : n + ? Nt(e) + : (function (e) { + var t = e._i; + a(t) + ? (e._d = new Date(i.now())) + : l(t) + ? (e._d = new Date(t.valueOf())) + : 'string' == typeof t + ? (function (e) { + var t = Lt.exec(e._i); + null === t + ? (kt(e), + !1 === e._isValid && + (delete e._isValid, + Tt(e), + !1 === e._isValid && + (delete e._isValid, + i.createFromInputFallback(e)))) + : (e._d = new Date(+t[1])); + })(e) + : o(t) + ? ((e._a = c(t.slice(0), function (e) { + return parseInt(e, 10); + })), + vt(e)) + : s(t) + ? (function (e) { + if (!e._d) { + var t = R(e._i); + (e._a = c( + [ + t.year, + t.month, + t.day || t.date, + t.hour, + t.minute, + t.second, + t.millisecond, + ], + function (e) { + return e && parseInt(e, 10); + } + )), + vt(e); + } + })(e) + : u(t) + ? (e._d = new Date(t)) + : i.createFromInputFallback(e); + })(e), + g(e) || (e._d = null), + e)) + ); + } + function At(e, t, n, r, i) { + var a, + u = {}; + return ( + (!0 !== n && !1 !== n) || ((r = n), (n = void 0)), + ((s(e) && + (function (e) { + if (Object.getOwnPropertyNames) + return 0 === Object.getOwnPropertyNames(e).length; + var t; + for (t in e) if (e.hasOwnProperty(t)) return !1; + return !0; + })(e)) || + (o(e) && 0 === e.length)) && + (e = void 0), + (u._isAMomentObject = !0), + (u._useUTC = u._isUTC = i), + (u._l = n), + (u._i = e), + (u._f = t), + (u._strict = r), + (a = new b(_t(Ot(u))))._nextDay && + (a.add(1, 'd'), (a._nextDay = void 0)), + a + ); + } + function It(e, t, n, r) { + return At(e, t, n, r, !1); + } + (i.createFromInputFallback = k( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (e) { + e._d = new Date(e._i + (e._useUTC ? ' UTC' : '')); + } + )), + (i.ISO_8601 = function () {}), + (i.RFC_2822 = function () {}); + var Pt = k( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = It.apply(null, arguments); + return this.isValid() && e.isValid() + ? e < this + ? this + : e + : m(); + } + ), + Rt = k( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = It.apply(null, arguments); + return this.isValid() && e.isValid() + ? e > this + ? this + : e + : m(); + } + ); + function Ft(e, t) { + var n, r; + if ((1 === t.length && o(t[0]) && (t = t[0]), !t.length)) return It(); + for (n = t[0], r = 1; r < t.length; ++r) + (t[r].isValid() && !t[r][e](n)) || (n = t[r]); + return n; + } + var Yt = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ]; + function jt(e) { + var t = R(e), + n = t.year || 0, + r = t.quarter || 0, + i = t.month || 0, + o = t.week || t.isoWeek || 0, + s = t.day || 0, + a = t.hour || 0, + u = t.minute || 0, + l = t.second || 0, + c = t.millisecond || 0; + (this._isValid = (function (e) { + for (var t in e) + if (-1 === De.call(Yt, t) || (null != e[t] && isNaN(e[t]))) + return !1; + for (var n = !1, r = 0; r < Yt.length; ++r) + if (e[Yt[r]]) { + if (n) return !1; + parseFloat(e[Yt[r]]) !== S(e[Yt[r]]) && (n = !0); + } + return !0; + })(t)), + (this._milliseconds = +c + 1e3 * l + 6e4 * u + 1e3 * a * 60 * 60), + (this._days = +s + 7 * o), + (this._months = +i + 3 * r + 12 * n), + (this._data = {}), + (this._locale = mt()), + this._bubble(); + } + function Bt(e) { + return e instanceof jt; + } + function Wt(e) { + return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e); + } + function Ht(e, t) { + z(e, 0, 0, function () { + var e = this.utcOffset(), + n = '+'; + return ( + e < 0 && ((e = -e), (n = '-')), + n + j(~~(e / 60), 2) + t + j(~~e % 60, 2) + ); + }); + } + Ht('Z', ':'), + Ht('ZZ', ''), + ce('Z', ae), + ce('ZZ', ae), + pe(['Z', 'ZZ'], function (e, t, n) { + (n._useUTC = !0), (n._tzm = zt(ae, e)); + }); + var Vt = /([\+\-]|\d\d)/gi; + function zt(e, t) { + var n = (t || '').match(e); + if (null === n) return null; + var r = ((n[n.length - 1] || []) + '').match(Vt) || ['-', 0, 0], + i = 60 * r[1] + S(r[2]); + return 0 === i ? 0 : '+' === r[0] ? i : -i; + } + function Ut(e, t) { + var n, r; + return t._isUTC + ? ((n = t.clone()), + (r = + (w(e) || l(e) ? e.valueOf() : It(e).valueOf()) - n.valueOf()), + n._d.setTime(n._d.valueOf() + r), + i.updateOffset(n, !1), + n) + : It(e).local(); + } + function qt(e) { + return 15 * -Math.round(e._d.getTimezoneOffset() / 15); + } + function Kt() { + return !!this.isValid() && this._isUTC && 0 === this._offset; + } + i.updateOffset = function () {}; + var Gt = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, + $t = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function Zt(e, t) { + var n, + r, + i, + o, + s, + a, + l = e, + c = null; + return ( + Bt(e) + ? (l = { ms: e._milliseconds, d: e._days, M: e._months }) + : u(e) + ? ((l = {}), t ? (l[t] = e) : (l.milliseconds = e)) + : (c = Gt.exec(e)) + ? ((n = '-' === c[1] ? -1 : 1), + (l = { + y: 0, + d: S(c[ve]) * n, + h: S(c[be]) * n, + m: S(c[we]) * n, + s: S(c[Ce]) * n, + ms: S(Wt(1e3 * c[Se])) * n, + })) + : (c = $t.exec(e)) + ? ((n = '-' === c[1] ? -1 : 1), + (l = { + y: Xt(c[2], n), + M: Xt(c[3], n), + w: Xt(c[4], n), + d: Xt(c[5], n), + h: Xt(c[6], n), + m: Xt(c[7], n), + s: Xt(c[8], n), + })) + : null == l + ? (l = {}) + : 'object' == typeof l && + ('from' in l || 'to' in l) && + ((o = It(l.from)), + (s = It(l.to)), + (i = + o.isValid() && s.isValid() + ? ((s = Ut(s, o)), + o.isBefore(s) + ? (a = Jt(o, s)) + : (((a = Jt(s, o)).milliseconds = -a.milliseconds), + (a.months = -a.months)), + a) + : { milliseconds: 0, months: 0 }), + ((l = {}).ms = i.milliseconds), + (l.M = i.months)), + (r = new jt(l)), + Bt(e) && d(e, '_locale') && (r._locale = e._locale), + r + ); + } + function Xt(e, t) { + var n = e && parseFloat(e.replace(',', '.')); + return (isNaN(n) ? 0 : n) * t; + } + function Jt(e, t) { + var n = {}; + return ( + (n.months = t.month() - e.month() + 12 * (t.year() - e.year())), + e.clone().add(n.months, 'M').isAfter(t) && --n.months, + (n.milliseconds = +t - +e.clone().add(n.months, 'M')), + n + ); + } + function Qt(e, t) { + return function (n, r) { + var i; + return ( + null === r || + isNaN(+r) || + (E( + t, + 'moment().' + + t + + '(period, number) is deprecated. Please use moment().' + + t + + '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ), + (i = n), + (n = r), + (r = i)), + en(this, Zt((n = 'string' == typeof n ? +n : n), r), e), + this + ); + }; + } + function en(e, t, n, r) { + var o = t._milliseconds, + s = Wt(t._days), + a = Wt(t._months); + e.isValid() && + ((r = null == r || r), + a && Ye(e, Ne(e, 'Month') + a * n), + s && Oe(e, 'Date', Ne(e, 'Date') + s * n), + o && e._d.setTime(e._d.valueOf() + o * n), + r && i.updateOffset(e, s || a)); + } + (Zt.fn = jt.prototype), + (Zt.invalid = function () { + return Zt(NaN); + }); + var tn = Qt(1, 'add'), + nn = Qt(-1, 'subtract'); + function rn(e, t) { + var n = 12 * (t.year() - e.year()) + (t.month() - e.month()), + r = e.clone().add(n, 'months'); + return ( + -( + n + + (t - r < 0 + ? (t - r) / (r - e.clone().add(n - 1, 'months')) + : (t - r) / (e.clone().add(n + 1, 'months') - r)) + ) || 0 + ); + } + function on(e) { + var t; + return void 0 === e + ? this._locale._abbr + : (null != (t = mt(e)) && (this._locale = t), this); + } + (i.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), + (i.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'); + var sn = k( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (e) { + return void 0 === e ? this.localeData() : this.locale(e); + } + ); + function an() { + return this._locale; + } + var un = 1e3, + ln = 60 * un, + cn = 60 * ln, + dn = 3506328 * cn; + function hn(e, t) { + return ((e % t) + t) % t; + } + function fn(e, t, n) { + return e < 100 && e >= 0 + ? new Date(e + 400, t, n) - dn + : new Date(e, t, n).valueOf(); + } + function pn(e, t, n) { + return e < 100 && e >= 0 + ? Date.UTC(e + 400, t, n) - dn + : Date.UTC(e, t, n); + } + function gn(e, t) { + z(0, [e, e.length], 0, t); + } + function mn(e, t, n, r, i) { + var o; + return null == e + ? Ke(this, r, i).year + : (t > (o = Ge(e, r, i)) && (t = o), _n.call(this, e, t, n, r, i)); + } + function _n(e, t, n, r, i) { + var o = qe(e, t, n, r, i), + s = ze(o.year, 0, o.dayOfYear); + return ( + this.year(s.getUTCFullYear()), + this.month(s.getUTCMonth()), + this.date(s.getUTCDate()), + this + ); + } + z(0, ['gg', 2], 0, function () { + return this.weekYear() % 100; + }), + z(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100; + }), + gn('gggg', 'weekYear'), + gn('ggggg', 'weekYear'), + gn('GGGG', 'isoWeekYear'), + gn('GGGGG', 'isoWeekYear'), + I('weekYear', 'gg'), + I('isoWeekYear', 'GG'), + Y('weekYear', 1), + Y('isoWeekYear', 1), + ce('G', oe), + ce('g', oe), + ce('GG', J, G), + ce('gg', J, G), + ce('GGGG', ne, Z), + ce('gggg', ne, Z), + ce('GGGGG', re, X), + ce('ggggg', re, X), + ge(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (e, t, n, r) { + t[r.substr(0, 2)] = S(e); + }), + ge(['gg', 'GG'], function (e, t, n, r) { + t[r] = i.parseTwoDigitYear(e); + }), + z('Q', 0, 'Qo', 'quarter'), + I('quarter', 'Q'), + Y('quarter', 7), + ce('Q', K), + pe('Q', function (e, t) { + t[ye] = 3 * (S(e) - 1); + }), + z('D', ['DD', 2], 'Do', 'date'), + I('date', 'D'), + Y('date', 9), + ce('D', J), + ce('DD', J, G), + ce('Do', function (e, t) { + return e + ? t._dayOfMonthOrdinalParse || t._ordinalParse + : t._dayOfMonthOrdinalParseLenient; + }), + pe(['D', 'DD'], ve), + pe('Do', function (e, t) { + t[ve] = S(e.match(J)[0]); + }); + var yn = Te('Date', !0); + z('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), + I('dayOfYear', 'DDD'), + Y('dayOfYear', 4), + ce('DDD', te), + ce('DDDD', $), + pe(['DDD', 'DDDD'], function (e, t, n) { + n._dayOfYear = S(e); + }), + z('m', ['mm', 2], 0, 'minute'), + I('minute', 'm'), + Y('minute', 14), + ce('m', J), + ce('mm', J, G), + pe(['m', 'mm'], we); + var vn = Te('Minutes', !1); + z('s', ['ss', 2], 0, 'second'), + I('second', 's'), + Y('second', 15), + ce('s', J), + ce('ss', J, G), + pe(['s', 'ss'], Ce); + var bn, + wn = Te('Seconds', !1); + for ( + z('S', 0, 0, function () { + return ~~(this.millisecond() / 100); + }), + z(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10); + }), + z(0, ['SSS', 3], 0, 'millisecond'), + z(0, ['SSSS', 4], 0, function () { + return 10 * this.millisecond(); + }), + z(0, ['SSSSS', 5], 0, function () { + return 100 * this.millisecond(); + }), + z(0, ['SSSSSS', 6], 0, function () { + return 1e3 * this.millisecond(); + }), + z(0, ['SSSSSSS', 7], 0, function () { + return 1e4 * this.millisecond(); + }), + z(0, ['SSSSSSSS', 8], 0, function () { + return 1e5 * this.millisecond(); + }), + z(0, ['SSSSSSSSS', 9], 0, function () { + return 1e6 * this.millisecond(); + }), + I('millisecond', 'ms'), + Y('millisecond', 16), + ce('S', te, K), + ce('SS', te, G), + ce('SSS', te, $), + bn = 'SSSS'; + bn.length <= 9; + bn += 'S' + ) + ce(bn, ie); + function Cn(e, t) { + t[Se] = S(1e3 * ('0.' + e)); + } + for (bn = 'S'; bn.length <= 9; bn += 'S') pe(bn, Cn); + var Sn = Te('Milliseconds', !1); + z('z', 0, 0, 'zoneAbbr'), z('zz', 0, 0, 'zoneName'); + var xn = b.prototype; + function Ln(e) { + return e; + } + (xn.add = tn), + (xn.calendar = function (e, t) { + var n = e || It(), + r = Ut(n, this).startOf('day'), + o = i.calendarFormat(this, r) || 'sameElse', + s = t && (T(t[o]) ? t[o].call(this, n) : t[o]); + return this.format(s || this.localeData().calendar(o, this, It(n))); + }), + (xn.clone = function () { + return new b(this); + }), + (xn.diff = function (e, t, n) { + var r, i, o; + if (!this.isValid()) return NaN; + if (!(r = Ut(e, this)).isValid()) return NaN; + switch ( + ((i = 6e4 * (r.utcOffset() - this.utcOffset())), (t = P(t))) + ) { + case 'year': + o = rn(this, r) / 12; + break; + case 'month': + o = rn(this, r); + break; + case 'quarter': + o = rn(this, r) / 3; + break; + case 'second': + o = (this - r) / 1e3; + break; + case 'minute': + o = (this - r) / 6e4; + break; + case 'hour': + o = (this - r) / 36e5; + break; + case 'day': + o = (this - r - i) / 864e5; + break; + case 'week': + o = (this - r - i) / 6048e5; + break; + default: + o = this - r; + } + return n ? o : C(o); + }), + (xn.endOf = function (e) { + var t; + if (void 0 === (e = P(e)) || 'millisecond' === e || !this.isValid()) + return this; + var n = this._isUTC ? pn : fn; + switch (e) { + case 'year': + t = n(this.year() + 1, 0, 1) - 1; + break; + case 'quarter': + t = + n(this.year(), this.month() - (this.month() % 3) + 3, 1) - 1; + break; + case 'month': + t = n(this.year(), this.month() + 1, 1) - 1; + break; + case 'week': + t = + n( + this.year(), + this.month(), + this.date() - this.weekday() + 7 + ) - 1; + break; + case 'isoWeek': + t = + n( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + 7 + ) - 1; + break; + case 'day': + case 'date': + t = n(this.year(), this.month(), this.date() + 1) - 1; + break; + case 'hour': + (t = this._d.valueOf()), + (t += + cn - + hn(t + (this._isUTC ? 0 : this.utcOffset() * ln), cn) - + 1); + break; + case 'minute': + (t = this._d.valueOf()), (t += ln - hn(t, ln) - 1); + break; + case 'second': + (t = this._d.valueOf()), (t += un - hn(t, un) - 1); + } + return this._d.setTime(t), i.updateOffset(this, !0), this; + }), + (xn.format = function (e) { + e || (e = this.isUtc() ? i.defaultFormatUtc : i.defaultFormat); + var t = U(this, e); + return this.localeData().postformat(t); + }), + (xn.from = function (e, t) { + return this.isValid() && ((w(e) && e.isValid()) || It(e).isValid()) + ? Zt({ to: this, from: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate(); + }), + (xn.fromNow = function (e) { + return this.from(It(), e); + }), + (xn.to = function (e, t) { + return this.isValid() && ((w(e) && e.isValid()) || It(e).isValid()) + ? Zt({ from: this, to: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate(); + }), + (xn.toNow = function (e) { + return this.to(It(), e); + }), + (xn.get = function (e) { + return T(this[(e = P(e))]) ? this[e]() : this; + }), + (xn.invalidAt = function () { + return p(this).overflow; + }), + (xn.isAfter = function (e, t) { + var n = w(e) ? e : It(e); + return ( + !(!this.isValid() || !n.isValid()) && + ('millisecond' === (t = P(t) || 'millisecond') + ? this.valueOf() > n.valueOf() + : n.valueOf() < this.clone().startOf(t).valueOf()) + ); + }), + (xn.isBefore = function (e, t) { + var n = w(e) ? e : It(e); + return ( + !(!this.isValid() || !n.isValid()) && + ('millisecond' === (t = P(t) || 'millisecond') + ? this.valueOf() < n.valueOf() + : this.clone().endOf(t).valueOf() < n.valueOf()) + ); + }), + (xn.isBetween = function (e, t, n, r) { + var i = w(e) ? e : It(e), + o = w(t) ? t : It(t); + return ( + !!(this.isValid() && i.isValid() && o.isValid()) && + ('(' === (r = r || '()')[0] + ? this.isAfter(i, n) + : !this.isBefore(i, n)) && + (')' === r[1] ? this.isBefore(o, n) : !this.isAfter(o, n)) + ); + }), + (xn.isSame = function (e, t) { + var n, + r = w(e) ? e : It(e); + return ( + !(!this.isValid() || !r.isValid()) && + ('millisecond' === (t = P(t) || 'millisecond') + ? this.valueOf() === r.valueOf() + : ((n = r.valueOf()), + this.clone().startOf(t).valueOf() <= n && + n <= this.clone().endOf(t).valueOf())) + ); + }), + (xn.isSameOrAfter = function (e, t) { + return this.isSame(e, t) || this.isAfter(e, t); + }), + (xn.isSameOrBefore = function (e, t) { + return this.isSame(e, t) || this.isBefore(e, t); + }), + (xn.isValid = function () { + return g(this); + }), + (xn.lang = sn), + (xn.locale = on), + (xn.localeData = an), + (xn.max = Rt), + (xn.min = Pt), + (xn.parsingFlags = function () { + return h({}, p(this)); + }), + (xn.set = function (e, t) { + if ('object' == typeof e) + for ( + var n = (function (e) { + var t = []; + for (var n in e) t.push({ unit: n, priority: F[n] }); + return ( + t.sort(function (e, t) { + return e.priority - t.priority; + }), + t + ); + })((e = R(e))), + r = 0; + r < n.length; + r++ + ) + this[n[r].unit](e[n[r].unit]); + else if (T(this[(e = P(e))])) return this[e](t); + return this; + }), + (xn.startOf = function (e) { + var t; + if (void 0 === (e = P(e)) || 'millisecond' === e || !this.isValid()) + return this; + var n = this._isUTC ? pn : fn; + switch (e) { + case 'year': + t = n(this.year(), 0, 1); + break; + case 'quarter': + t = n(this.year(), this.month() - (this.month() % 3), 1); + break; + case 'month': + t = n(this.year(), this.month(), 1); + break; + case 'week': + t = n(this.year(), this.month(), this.date() - this.weekday()); + break; + case 'isoWeek': + t = n( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + ); + break; + case 'day': + case 'date': + t = n(this.year(), this.month(), this.date()); + break; + case 'hour': + (t = this._d.valueOf()), + (t -= hn(t + (this._isUTC ? 0 : this.utcOffset() * ln), cn)); + break; + case 'minute': + (t = this._d.valueOf()), (t -= hn(t, ln)); + break; + case 'second': + (t = this._d.valueOf()), (t -= hn(t, un)); + } + return this._d.setTime(t), i.updateOffset(this, !0), this; + }), + (xn.subtract = nn), + (xn.toArray = function () { + var e = this; + return [ + e.year(), + e.month(), + e.date(), + e.hour(), + e.minute(), + e.second(), + e.millisecond(), + ]; + }), + (xn.toObject = function () { + var e = this; + return { + years: e.year(), + months: e.month(), + date: e.date(), + hours: e.hours(), + minutes: e.minutes(), + seconds: e.seconds(), + milliseconds: e.milliseconds(), + }; + }), + (xn.toDate = function () { + return new Date(this.valueOf()); + }), + (xn.toISOString = function (e) { + if (!this.isValid()) return null; + var t = !0 !== e, + n = t ? this.clone().utc() : this; + return n.year() < 0 || n.year() > 9999 + ? U( + n, + t + ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' + ) + : T(Date.prototype.toISOString) + ? t + ? this.toDate().toISOString() + : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3) + .toISOString() + .replace('Z', U(n, 'Z')) + : U( + n, + t + ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + }), + (xn.inspect = function () { + if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)'; + var e = 'moment', + t = ''; + this.isLocal() || + ((e = 0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'), + (t = 'Z')); + var n = '[' + e + '("]', + r = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY', + i = t + '[")]'; + return this.format(n + r + '-MM-DD[T]HH:mm:ss.SSS' + i); + }), + (xn.toJSON = function () { + return this.isValid() ? this.toISOString() : null; + }), + (xn.toString = function () { + return this.clone() + .locale('en') + .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + }), + (xn.unix = function () { + return Math.floor(this.valueOf() / 1e3); + }), + (xn.valueOf = function () { + return this._d.valueOf() - 6e4 * (this._offset || 0); + }), + (xn.creationData = function () { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + }; + }), + (xn.year = Ee), + (xn.isLeapYear = function () { + return Me(this.year()); + }), + (xn.weekYear = function (e) { + return mn.call( + this, + e, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ); + }), + (xn.isoWeekYear = function (e) { + return mn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4); + }), + (xn.quarter = xn.quarters = function (e) { + return null == e + ? Math.ceil((this.month() + 1) / 3) + : this.month(3 * (e - 1) + (this.month() % 3)); + }), + (xn.month = je), + (xn.daysInMonth = function () { + return Ae(this.year(), this.month()); + }), + (xn.week = xn.weeks = function (e) { + var t = this.localeData().week(this); + return null == e ? t : this.add(7 * (e - t), 'd'); + }), + (xn.isoWeek = xn.isoWeeks = function (e) { + var t = Ke(this, 1, 4).week; + return null == e ? t : this.add(7 * (e - t), 'd'); + }), + (xn.weeksInYear = function () { + var e = this.localeData()._week; + return Ge(this.year(), e.dow, e.doy); + }), + (xn.isoWeeksInYear = function () { + return Ge(this.year(), 1, 4); + }), + (xn.date = yn), + (xn.day = xn.days = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + var t = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + return null != e + ? ((e = (function (e, t) { + return 'string' != typeof e + ? e + : isNaN(e) + ? 'number' == typeof (e = t.weekdaysParse(e)) + ? e + : null + : parseInt(e, 10); + })(e, this.localeData())), + this.add(e - t, 'd')) + : t; + }), + (xn.weekday = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + var t = (this.day() + 7 - this.localeData()._week.dow) % 7; + return null == e ? t : this.add(e - t, 'd'); + }), + (xn.isoWeekday = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + if (null != e) { + var t = (function (e, t) { + return 'string' == typeof e + ? t.weekdaysParse(e) % 7 || 7 + : isNaN(e) + ? null + : e; + })(e, this.localeData()); + return this.day(this.day() % 7 ? t : t - 7); + } + return this.day() || 7; + }), + (xn.dayOfYear = function (e) { + var t = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / + 864e5 + ) + 1; + return null == e ? t : this.add(e - t, 'd'); + }), + (xn.hour = xn.hours = ut), + (xn.minute = xn.minutes = vn), + (xn.second = xn.seconds = wn), + (xn.millisecond = xn.milliseconds = Sn), + (xn.utcOffset = function (e, t, n) { + var r, + o = this._offset || 0; + if (!this.isValid()) return null != e ? this : NaN; + if (null != e) { + if ('string' == typeof e) { + if (null === (e = zt(ae, e))) return this; + } else Math.abs(e) < 16 && !n && (e *= 60); + return ( + !this._isUTC && t && (r = qt(this)), + (this._offset = e), + (this._isUTC = !0), + null != r && this.add(r, 'm'), + o !== e && + (!t || this._changeInProgress + ? en(this, Zt(e - o, 'm'), 1, !1) + : this._changeInProgress || + ((this._changeInProgress = !0), + i.updateOffset(this, !0), + (this._changeInProgress = null))), + this + ); + } + return this._isUTC ? o : qt(this); + }), + (xn.utc = function (e) { + return this.utcOffset(0, e); + }), + (xn.local = function (e) { + return ( + this._isUTC && + (this.utcOffset(0, e), + (this._isUTC = !1), + e && this.subtract(qt(this), 'm')), + this + ); + }), + (xn.parseZone = function () { + if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); + else if ('string' == typeof this._i) { + var e = zt(se, this._i); + null != e ? this.utcOffset(e) : this.utcOffset(0, !0); + } + return this; + }), + (xn.hasAlignedHourOffset = function (e) { + return ( + !!this.isValid() && + ((e = e ? It(e).utcOffset() : 0), + (this.utcOffset() - e) % 60 == 0) + ); + }), + (xn.isDST = function () { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ); + }), + (xn.isLocal = function () { + return !!this.isValid() && !this._isUTC; + }), + (xn.isUtcOffset = function () { + return !!this.isValid() && this._isUTC; + }), + (xn.isUtc = Kt), + (xn.isUTC = Kt), + (xn.zoneAbbr = function () { + return this._isUTC ? 'UTC' : ''; + }), + (xn.zoneName = function () { + return this._isUTC ? 'Coordinated Universal Time' : ''; + }), + (xn.dates = k('dates accessor is deprecated. Use date instead.', yn)), + (xn.months = k( + 'months accessor is deprecated. Use month instead', + je + )), + (xn.years = k('years accessor is deprecated. Use year instead', Ee)), + (xn.zone = k( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + function (e, t) { + return null != e + ? ('string' != typeof e && (e = -e), this.utcOffset(e, t), this) + : -this.utcOffset(); + } + )), + (xn.isDSTShifted = k( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + function () { + if (!a(this._isDSTShifted)) return this._isDSTShifted; + var e = {}; + if ((y(e, this), (e = Ot(e))._a)) { + var t = e._isUTC ? f(e._a) : It(e._a); + this._isDSTShifted = this.isValid() && x(e._a, t.toArray()) > 0; + } else this._isDSTShifted = !1; + return this._isDSTShifted; + } + )); + var kn = O.prototype; + function Mn(e, t, n, r) { + var i = mt(), + o = f().set(r, t); + return i[n](o, e); + } + function Dn(e, t, n) { + if ((u(e) && ((t = e), (e = void 0)), (e = e || ''), null != t)) + return Mn(e, t, n, 'month'); + var r, + i = []; + for (r = 0; r < 12; r++) i[r] = Mn(e, r, n, 'month'); + return i; + } + function En(e, t, n, r) { + 'boolean' == typeof e + ? (u(t) && ((n = t), (t = void 0)), (t = t || '')) + : ((n = t = e), + (e = !1), + u(t) && ((n = t), (t = void 0)), + (t = t || '')); + var i, + o = mt(), + s = e ? o._week.dow : 0; + if (null != n) return Mn(t, (n + s) % 7, r, 'day'); + var a = []; + for (i = 0; i < 7; i++) a[i] = Mn(t, (i + s) % 7, r, 'day'); + return a; + } + (kn.calendar = function (e, t, n) { + var r = this._calendar[e] || this._calendar.sameElse; + return T(r) ? r.call(t, n) : r; + }), + (kn.longDateFormat = function (e) { + var t = this._longDateFormat[e], + n = this._longDateFormat[e.toUpperCase()]; + return t || !n + ? t + : ((this._longDateFormat[e] = n.replace( + /MMMM|MM|DD|dddd/g, + function (e) { + return e.slice(1); + } + )), + this._longDateFormat[e]); + }), + (kn.invalidDate = function () { + return this._invalidDate; + }), + (kn.ordinal = function (e) { + return this._ordinal.replace('%d', e); + }), + (kn.preparse = Ln), + (kn.postformat = Ln), + (kn.relativeTime = function (e, t, n, r) { + var i = this._relativeTime[n]; + return T(i) ? i(e, t, n, r) : i.replace(/%d/i, e); + }), + (kn.pastFuture = function (e, t) { + var n = this._relativeTime[e > 0 ? 'future' : 'past']; + return T(n) ? n(t) : n.replace(/%s/i, t); + }), + (kn.set = function (e) { + var t, n; + for (n in e) T((t = e[n])) ? (this[n] = t) : (this['_' + n] = t); + (this._config = e), + (this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || + this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + )); + }), + (kn.months = function (e, t) { + return e + ? o(this._months) + ? this._months[e.month()] + : this._months[ + (this._months.isFormat || Ie).test(t) + ? 'format' + : 'standalone' + ][e.month()] + : o(this._months) + ? this._months + : this._months.standalone; + }), + (kn.monthsShort = function (e, t) { + return e + ? o(this._monthsShort) + ? this._monthsShort[e.month()] + : this._monthsShort[Ie.test(t) ? 'format' : 'standalone'][ + e.month() + ] + : o(this._monthsShort) + ? this._monthsShort + : this._monthsShort.standalone; + }), + (kn.monthsParse = function (e, t, n) { + var r, i, o; + if (this._monthsParseExact) return Fe.call(this, e, t, n); + for ( + this._monthsParse || + ((this._monthsParse = []), + (this._longMonthsParse = []), + (this._shortMonthsParse = [])), + r = 0; + r < 12; + r++ + ) { + if ( + ((i = f([2e3, r])), + n && + !this._longMonthsParse[r] && + ((this._longMonthsParse[r] = new RegExp( + '^' + this.months(i, '').replace('.', '') + '$', + 'i' + )), + (this._shortMonthsParse[r] = new RegExp( + '^' + this.monthsShort(i, '').replace('.', '') + '$', + 'i' + ))), + n || + this._monthsParse[r] || + ((o = + '^' + this.months(i, '') + '|^' + this.monthsShort(i, '')), + (this._monthsParse[r] = new RegExp(o.replace('.', ''), 'i'))), + n && 'MMMM' === t && this._longMonthsParse[r].test(e)) + ) + return r; + if (n && 'MMM' === t && this._shortMonthsParse[r].test(e)) + return r; + if (!n && this._monthsParse[r].test(e)) return r; + } + }), + (kn.monthsRegex = function (e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || He.call(this), + e ? this._monthsStrictRegex : this._monthsRegex) + : (d(this, '_monthsRegex') || (this._monthsRegex = We), + this._monthsStrictRegex && e + ? this._monthsStrictRegex + : this._monthsRegex); + }), + (kn.monthsShortRegex = function (e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || He.call(this), + e ? this._monthsShortStrictRegex : this._monthsShortRegex) + : (d(this, '_monthsShortRegex') || (this._monthsShortRegex = Be), + this._monthsShortStrictRegex && e + ? this._monthsShortStrictRegex + : this._monthsShortRegex); + }), + (kn.week = function (e) { + return Ke(e, this._week.dow, this._week.doy).week; + }), + (kn.firstDayOfYear = function () { + return this._week.doy; + }), + (kn.firstDayOfWeek = function () { + return this._week.dow; + }), + (kn.weekdays = function (e, t) { + var n = o(this._weekdays) + ? this._weekdays + : this._weekdays[ + e && !0 !== e && this._weekdays.isFormat.test(t) + ? 'format' + : 'standalone' + ]; + return !0 === e ? $e(n, this._week.dow) : e ? n[e.day()] : n; + }), + (kn.weekdaysMin = function (e) { + return !0 === e + ? $e(this._weekdaysMin, this._week.dow) + : e + ? this._weekdaysMin[e.day()] + : this._weekdaysMin; + }), + (kn.weekdaysShort = function (e) { + return !0 === e + ? $e(this._weekdaysShort, this._week.dow) + : e + ? this._weekdaysShort[e.day()] + : this._weekdaysShort; + }), + (kn.weekdaysParse = function (e, t, n) { + var r, i, o; + if (this._weekdaysParseExact) return Qe.call(this, e, t, n); + for ( + this._weekdaysParse || + ((this._weekdaysParse = []), + (this._minWeekdaysParse = []), + (this._shortWeekdaysParse = []), + (this._fullWeekdaysParse = [])), + r = 0; + r < 7; + r++ + ) { + if ( + ((i = f([2e3, 1]).day(r)), + n && + !this._fullWeekdaysParse[r] && + ((this._fullWeekdaysParse[r] = new RegExp( + '^' + this.weekdays(i, '').replace('.', '\\.?') + '$', + 'i' + )), + (this._shortWeekdaysParse[r] = new RegExp( + '^' + this.weekdaysShort(i, '').replace('.', '\\.?') + '$', + 'i' + )), + (this._minWeekdaysParse[r] = new RegExp( + '^' + this.weekdaysMin(i, '').replace('.', '\\.?') + '$', + 'i' + ))), + this._weekdaysParse[r] || + ((o = + '^' + + this.weekdays(i, '') + + '|^' + + this.weekdaysShort(i, '') + + '|^' + + this.weekdaysMin(i, '')), + (this._weekdaysParse[r] = new RegExp( + o.replace('.', ''), + 'i' + ))), + n && 'dddd' === t && this._fullWeekdaysParse[r].test(e)) + ) + return r; + if (n && 'ddd' === t && this._shortWeekdaysParse[r].test(e)) + return r; + if (n && 'dd' === t && this._minWeekdaysParse[r].test(e)) + return r; + if (!n && this._weekdaysParse[r].test(e)) return r; + } + }), + (kn.weekdaysRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || rt.call(this), + e ? this._weekdaysStrictRegex : this._weekdaysRegex) + : (d(this, '_weekdaysRegex') || (this._weekdaysRegex = et), + this._weekdaysStrictRegex && e + ? this._weekdaysStrictRegex + : this._weekdaysRegex); + }), + (kn.weekdaysShortRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || rt.call(this), + e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) + : (d(this, '_weekdaysShortRegex') || + (this._weekdaysShortRegex = tt), + this._weekdaysShortStrictRegex && e + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex); + }), + (kn.weekdaysMinRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || rt.call(this), + e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) + : (d(this, '_weekdaysMinRegex') || (this._weekdaysMinRegex = nt), + this._weekdaysMinStrictRegex && e + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex); + }), + (kn.isPM = function (e) { + return 'p' === (e + '').toLowerCase().charAt(0); + }), + (kn.meridiem = function (e, t, n) { + return e > 11 ? (n ? 'pm' : 'PM') : n ? 'am' : 'AM'; + }), + pt('en', { + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 === S((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + }), + (i.lang = k( + 'moment.lang is deprecated. Use moment.locale instead.', + pt + )), + (i.langData = k( + 'moment.langData is deprecated. Use moment.localeData instead.', + mt + )); + var Tn = Math.abs; + function Nn(e, t, n, r) { + var i = Zt(t, n); + return ( + (e._milliseconds += r * i._milliseconds), + (e._days += r * i._days), + (e._months += r * i._months), + e._bubble() + ); + } + function On(e) { + return e < 0 ? Math.floor(e) : Math.ceil(e); + } + function An(e) { + return (4800 * e) / 146097; + } + function In(e) { + return (146097 * e) / 4800; + } + function Pn(e) { + return function () { + return this.as(e); + }; + } + var Rn = Pn('ms'), + Fn = Pn('s'), + Yn = Pn('m'), + jn = Pn('h'), + Bn = Pn('d'), + Wn = Pn('w'), + Hn = Pn('M'), + Vn = Pn('Q'), + zn = Pn('y'); + function Un(e) { + return function () { + return this.isValid() ? this._data[e] : NaN; + }; + } + var qn = Un('milliseconds'), + Kn = Un('seconds'), + Gn = Un('minutes'), + $n = Un('hours'), + Zn = Un('days'), + Xn = Un('months'), + Jn = Un('years'), + Qn = Math.round, + er = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }; + function tr(e, t, n, r, i) { + return i.relativeTime(t || 1, !!n, e, r); + } + var nr = Math.abs; + function rr(e) { + return (e > 0) - (e < 0) || +e; + } + function ir() { + if (!this.isValid()) return this.localeData().invalidDate(); + var e, + t, + n = nr(this._milliseconds) / 1e3, + r = nr(this._days), + i = nr(this._months); + (e = C(n / 60)), (t = C(e / 60)), (n %= 60), (e %= 60); + var o = C(i / 12), + s = (i %= 12), + a = r, + u = t, + l = e, + c = n ? n.toFixed(3).replace(/\.?0+$/, '') : '', + d = this.asSeconds(); + if (!d) return 'P0D'; + var h = d < 0 ? '-' : '', + f = rr(this._months) !== rr(d) ? '-' : '', + p = rr(this._days) !== rr(d) ? '-' : '', + g = rr(this._milliseconds) !== rr(d) ? '-' : ''; + return ( + h + + 'P' + + (o ? f + o + 'Y' : '') + + (s ? f + s + 'M' : '') + + (a ? p + a + 'D' : '') + + (u || l || c ? 'T' : '') + + (u ? g + u + 'H' : '') + + (l ? g + l + 'M' : '') + + (c ? g + c + 'S' : '') + ); + } + var or = jt.prototype; + return ( + (or.isValid = function () { + return this._isValid; + }), + (or.abs = function () { + var e = this._data; + return ( + (this._milliseconds = Tn(this._milliseconds)), + (this._days = Tn(this._days)), + (this._months = Tn(this._months)), + (e.milliseconds = Tn(e.milliseconds)), + (e.seconds = Tn(e.seconds)), + (e.minutes = Tn(e.minutes)), + (e.hours = Tn(e.hours)), + (e.months = Tn(e.months)), + (e.years = Tn(e.years)), + this + ); + }), + (or.add = function (e, t) { + return Nn(this, e, t, 1); + }), + (or.subtract = function (e, t) { + return Nn(this, e, t, -1); + }), + (or.as = function (e) { + if (!this.isValid()) return NaN; + var t, + n, + r = this._milliseconds; + if ('month' === (e = P(e)) || 'quarter' === e || 'year' === e) + switch ( + ((t = this._days + r / 864e5), (n = this._months + An(t)), e) + ) { + case 'month': + return n; + case 'quarter': + return n / 3; + case 'year': + return n / 12; + } + else + switch (((t = this._days + Math.round(In(this._months))), e)) { + case 'week': + return t / 7 + r / 6048e5; + case 'day': + return t + r / 864e5; + case 'hour': + return 24 * t + r / 36e5; + case 'minute': + return 1440 * t + r / 6e4; + case 'second': + return 86400 * t + r / 1e3; + case 'millisecond': + return Math.floor(864e5 * t) + r; + default: + throw new Error('Unknown unit ' + e); + } + }), + (or.asMilliseconds = Rn), + (or.asSeconds = Fn), + (or.asMinutes = Yn), + (or.asHours = jn), + (or.asDays = Bn), + (or.asWeeks = Wn), + (or.asMonths = Hn), + (or.asQuarters = Vn), + (or.asYears = zn), + (or.valueOf = function () { + return this.isValid() + ? this._milliseconds + + 864e5 * this._days + + (this._months % 12) * 2592e6 + + 31536e6 * S(this._months / 12) + : NaN; + }), + (or._bubble = function () { + var e, + t, + n, + r, + i, + o = this._milliseconds, + s = this._days, + a = this._months, + u = this._data; + return ( + (o >= 0 && s >= 0 && a >= 0) || + (o <= 0 && s <= 0 && a <= 0) || + ((o += 864e5 * On(In(a) + s)), (s = 0), (a = 0)), + (u.milliseconds = o % 1e3), + (e = C(o / 1e3)), + (u.seconds = e % 60), + (t = C(e / 60)), + (u.minutes = t % 60), + (n = C(t / 60)), + (u.hours = n % 24), + (s += C(n / 24)), + (i = C(An(s))), + (a += i), + (s -= On(In(i))), + (r = C(a / 12)), + (a %= 12), + (u.days = s), + (u.months = a), + (u.years = r), + this + ); + }), + (or.clone = function () { + return Zt(this); + }), + (or.get = function (e) { + return (e = P(e)), this.isValid() ? this[e + 's']() : NaN; + }), + (or.milliseconds = qn), + (or.seconds = Kn), + (or.minutes = Gn), + (or.hours = $n), + (or.days = Zn), + (or.weeks = function () { + return C(this.days() / 7); + }), + (or.months = Xn), + (or.years = Jn), + (or.humanize = function (e) { + if (!this.isValid()) return this.localeData().invalidDate(); + var t = this.localeData(), + n = (function (e, t, n) { + var r = Zt(e).abs(), + i = Qn(r.as('s')), + o = Qn(r.as('m')), + s = Qn(r.as('h')), + a = Qn(r.as('d')), + u = Qn(r.as('M')), + l = Qn(r.as('y')), + c = (i <= er.ss && ['s', i]) || + (i < er.s && ['ss', i]) || + (o <= 1 && ['m']) || + (o < er.m && ['mm', o]) || + (s <= 1 && ['h']) || + (s < er.h && ['hh', s]) || + (a <= 1 && ['d']) || + (a < er.d && ['dd', a]) || + (u <= 1 && ['M']) || + (u < er.M && ['MM', u]) || + (l <= 1 && ['y']) || ['yy', l]; + return ( + (c[2] = t), (c[3] = +e > 0), (c[4] = n), tr.apply(null, c) + ); + })(this, !e, t); + return e && (n = t.pastFuture(+this, n)), t.postformat(n); + }), + (or.toISOString = ir), + (or.toString = ir), + (or.toJSON = ir), + (or.locale = on), + (or.localeData = an), + (or.toIsoString = k( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + ir + )), + (or.lang = sn), + z('X', 0, 0, 'unix'), + z('x', 0, 0, 'valueOf'), + ce('x', oe), + ce('X', /[+-]?\d+(\.\d{1,3})?/), + pe('X', function (e, t, n) { + n._d = new Date(1e3 * parseFloat(e, 10)); + }), + pe('x', function (e, t, n) { + n._d = new Date(S(e)); + }), + (i.version = '2.24.0'), + (t = It), + (i.fn = xn), + (i.min = function () { + return Ft('isBefore', [].slice.call(arguments, 0)); + }), + (i.max = function () { + return Ft('isAfter', [].slice.call(arguments, 0)); + }), + (i.now = function () { + return Date.now ? Date.now() : +new Date(); + }), + (i.utc = f), + (i.unix = function (e) { + return It(1e3 * e); + }), + (i.months = function (e, t) { + return Dn(e, t, 'months'); + }), + (i.isDate = l), + (i.locale = pt), + (i.invalid = m), + (i.duration = Zt), + (i.isMoment = w), + (i.weekdays = function (e, t, n) { + return En(e, t, n, 'weekdays'); + }), + (i.parseZone = function () { + return It.apply(null, arguments).parseZone(); + }), + (i.localeData = mt), + (i.isDuration = Bt), + (i.monthsShort = function (e, t) { + return Dn(e, t, 'monthsShort'); + }), + (i.weekdaysMin = function (e, t, n) { + return En(e, t, n, 'weekdaysMin'); + }), + (i.defineLocale = gt), + (i.updateLocale = function (e, t) { + if (null != t) { + var n, + r, + i = lt; + null != (r = ft(e)) && (i = r._config), + (t = N(i, t)), + ((n = new O(t)).parentLocale = ct[e]), + (ct[e] = n), + pt(e); + } else + null != ct[e] && + (null != ct[e].parentLocale + ? (ct[e] = ct[e].parentLocale) + : null != ct[e] && delete ct[e]); + return ct[e]; + }), + (i.locales = function () { + return M(ct); + }), + (i.weekdaysShort = function (e, t, n) { + return En(e, t, n, 'weekdaysShort'); + }), + (i.normalizeUnits = P), + (i.relativeTimeRounding = function (e) { + return void 0 === e ? Qn : 'function' == typeof e && ((Qn = e), !0); + }), + (i.relativeTimeThreshold = function (e, t) { + return ( + void 0 !== er[e] && + (void 0 === t + ? er[e] + : ((er[e] = t), 's' === e && (er.ss = t - 1), !0)) + ); + }), + (i.calendarFormat = function (e, t) { + var n = e.diff(t, 'days', !0); + return n < -6 + ? 'sameElse' + : n < -1 + ? 'lastWeek' + : n < 0 + ? 'lastDay' + : n < 1 + ? 'sameDay' + : n < 2 + ? 'nextDay' + : n < 7 + ? 'nextWeek' + : 'sameElse'; + }), + (i.prototype = xn), + (i.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', + DATE: 'YYYY-MM-DD', + TIME: 'HH:mm', + TIME_SECONDS: 'HH:mm:ss', + TIME_MS: 'HH:mm:ss.SSS', + WEEK: 'GGGG-[W]WW', + MONTH: 'YYYY-MM', + }), + i + ); + })(); + }.call(this, n(40)(e))); + }, + function (e, t, n) { + 'use strict'; + (function (e, r) { + n.d(t, 'g', function () { + return p; + }), + n.d(t, 'd', function () { + return g; + }), + n.d(t, 'c', function () { + return m; + }), + n.d(t, 'e', function () { + return _; + }), + n.d(t, 'f', function () { + return y; + }), + n.d(t, 'b', function () { + return v; + }), + n.d(t, 'h', function () { + return w; + }), + n.d(t, 'a', function () { + return C; + }); + var i = !1, + o = !1, + s = !1, + a = !1, + u = !1, + l = void 0, + c = + void 0 !== e && + void 0 !== e.versions && + void 0 !== e.versions.electron && + 'renderer' === e.type; + if ('object' != typeof navigator || c) { + if ('object' == typeof e) { + (i = 'win32' === e.platform), + (o = 'darwin' === e.platform), + (s = 'linux' === e.platform), + 'en', + 'en'; + var d = e.env.VSCODE_NLS_CONFIG; + if (d) + try { + var h = JSON.parse(d), + f = h.availableLanguages['*']; + h.locale, f || 'en', h._translationsConfigFile; + } catch (e) {} + a = !0; + } + } else + (i = (l = navigator.userAgent).indexOf('Windows') >= 0), + (o = l.indexOf('Macintosh') >= 0), + (s = l.indexOf('Linux') >= 0), + (u = !0), + navigator.language; + var p = i, + g = o, + m = s, + _ = a, + y = u, + v = 'object' == typeof self ? self : 'object' == typeof r ? r : {}, + b = null; + function w(t) { + return ( + null === b && + (b = v.setImmediate + ? v.setImmediate.bind(v) + : void 0 !== e && 'function' == typeof e.nextTick + ? e.nextTick.bind(e) + : v.setTimeout.bind(v)), + b(t) + ); + } + var C = o ? 2 : i ? 1 : 3; + }.call(this, n(72), n(30))); + }, + function (e, t, n) { + var r; + try { + r = { + cloneDeep: n(148), + constant: n(42), + defaults: n(90), + each: n(43), + filter: n(59), + find: n(149), + flatten: n(91), + forEach: n(83), + forIn: n(151), + has: n(45), + isUndefined: n(62), + last: n(152), + map: n(63), + mapValues: n(153), + max: n(154), + merge: n(155), + min: n(159), + minBy: n(161), + now: n(162), + pick: n(93), + range: n(94), + reduce: n(64), + sortBy: n(163), + uniqueId: n(95), + values: n(66), + zipObject: n(164), + }; + } catch (e) {} + r || (r = window._), (e.exports = r); + }, + function (e, t, n) { + var r; + try { + r = { + cloneDeep: n(148), + constant: n(42), + defaults: n(90), + each: n(43), + filter: n(59), + find: n(149), + flatten: n(91), + forEach: n(83), + forIn: n(151), + has: n(45), + isUndefined: n(62), + last: n(152), + map: n(63), + mapValues: n(153), + max: n(154), + merge: n(155), + min: n(159), + minBy: n(161), + now: n(162), + pick: n(93), + range: n(94), + reduce: n(64), + sortBy: n(163), + uniqueId: n(95), + values: n(66), + zipObject: n(164), + }; + } catch (e) {} + r || (r = window._), (e.exports = r); + }, + function (e, t) { + var n = Array.isArray; + e.exports = n; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(13).Graph; + function o(e, t, n, i) { + var o; + do { + o = r.uniqueId(i); + } while (e.hasNode(o)); + return (n.dummy = t), e.setNode(o, n), o; + } + function s(e) { + return r.max( + r.map(e.nodes(), function (t) { + var n = e.node(t).rank; + if (!r.isUndefined(n)) return n; + }) + ); + } + e.exports = { + addDummyNode: o, + simplify: function (e) { + var t = new i().setGraph(e.graph()); + return ( + r.forEach(e.nodes(), function (n) { + t.setNode(n, e.node(n)); + }), + r.forEach(e.edges(), function (n) { + var r = t.edge(n.v, n.w) || { weight: 0, minlen: 1 }, + i = e.edge(n); + t.setEdge(n.v, n.w, { + weight: r.weight + i.weight, + minlen: Math.max(r.minlen, i.minlen), + }); + }), + t + ); + }, + asNonCompoundGraph: function (e) { + var t = new i({ multigraph: e.isMultigraph() }).setGraph(e.graph()); + return ( + r.forEach(e.nodes(), function (n) { + e.children(n).length || t.setNode(n, e.node(n)); + }), + r.forEach(e.edges(), function (n) { + t.setEdge(n, e.edge(n)); + }), + t + ); + }, + successorWeights: function (e) { + var t = r.map(e.nodes(), function (t) { + var n = {}; + return ( + r.forEach(e.outEdges(t), function (t) { + n[t.w] = (n[t.w] || 0) + e.edge(t).weight; + }), + n + ); + }); + return r.zipObject(e.nodes(), t); + }, + predecessorWeights: function (e) { + var t = r.map(e.nodes(), function (t) { + var n = {}; + return ( + r.forEach(e.inEdges(t), function (t) { + n[t.v] = (n[t.v] || 0) + e.edge(t).weight; + }), + n + ); + }); + return r.zipObject(e.nodes(), t); + }, + intersectRect: function (e, t) { + var n, + r, + i = e.x, + o = e.y, + s = t.x - i, + a = t.y - o, + u = e.width / 2, + l = e.height / 2; + if (!s && !a) + throw new Error( + 'Not possible to find intersection inside of the rectangle' + ); + Math.abs(a) * u > Math.abs(s) * l + ? (a < 0 && (l = -l), (n = (l * s) / a), (r = l)) + : (s < 0 && (u = -u), (n = u), (r = (u * a) / s)); + return { x: i + n, y: o + r }; + }, + buildLayerMatrix: function (e) { + var t = r.map(r.range(s(e) + 1), function () { + return []; + }); + return ( + r.forEach(e.nodes(), function (n) { + var i = e.node(n), + o = i.rank; + r.isUndefined(o) || (t[o][i.order] = n); + }), + t + ); + }, + normalizeRanks: function (e) { + var t = r.min( + r.map(e.nodes(), function (t) { + return e.node(t).rank; + }) + ); + r.forEach(e.nodes(), function (n) { + var i = e.node(n); + r.has(i, 'rank') && (i.rank -= t); + }); + }, + removeEmptyRanks: function (e) { + var t = r.min( + r.map(e.nodes(), function (t) { + return e.node(t).rank; + }) + ), + n = []; + r.forEach(e.nodes(), function (r) { + var i = e.node(r).rank - t; + n[i] || (n[i] = []), n[i].push(r); + }); + var i = 0, + o = e.graph().nodeRankFactor; + r.forEach(n, function (t, n) { + r.isUndefined(t) && n % o != 0 + ? --i + : i && + r.forEach(t, function (t) { + e.node(t).rank += i; + }); + }); + }, + addBorderNode: function (e, t, n, r) { + var i = { width: 0, height: 0 }; + arguments.length >= 4 && ((i.rank = n), (i.order = r)); + return o(e, 'border', i, t); + }, + maxRank: s, + partition: function (e, t) { + var n = { lhs: [], rhs: [] }; + return ( + r.forEach(e, function (e) { + t(e) ? n.lhs.push(e) : n.rhs.push(e); + }), + n + ); + }, + time: function (e, t) { + var n = r.now(); + try { + return t(); + } finally { + console.log(e + ' time: ' + (r.now() - n) + 'ms'); + } + }, + notime: function (e, t) { + return t(); + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(15).Graph; + function o(e, t, n, i) { + var o; + do { + o = r.uniqueId(i); + } while (e.hasNode(o)); + return (n.dummy = t), e.setNode(o, n), o; + } + function s(e) { + return r.max( + r.map(e.nodes(), function (t) { + var n = e.node(t).rank; + if (!r.isUndefined(n)) return n; + }) + ); + } + e.exports = { + addDummyNode: o, + simplify: function (e) { + var t = new i().setGraph(e.graph()); + return ( + r.forEach(e.nodes(), function (n) { + t.setNode(n, e.node(n)); + }), + r.forEach(e.edges(), function (n) { + var r = t.edge(n.v, n.w) || { weight: 0, minlen: 1 }, + i = e.edge(n); + t.setEdge(n.v, n.w, { + weight: r.weight + i.weight, + minlen: Math.max(r.minlen, i.minlen), + }); + }), + t + ); + }, + asNonCompoundGraph: function (e) { + var t = new i({ multigraph: e.isMultigraph() }).setGraph(e.graph()); + return ( + r.forEach(e.nodes(), function (n) { + e.children(n).length || t.setNode(n, e.node(n)); + }), + r.forEach(e.edges(), function (n) { + t.setEdge(n, e.edge(n)); + }), + t + ); + }, + successorWeights: function (e) { + var t = r.map(e.nodes(), function (t) { + var n = {}; + return ( + r.forEach(e.outEdges(t), function (t) { + n[t.w] = (n[t.w] || 0) + e.edge(t).weight; + }), + n + ); + }); + return r.zipObject(e.nodes(), t); + }, + predecessorWeights: function (e) { + var t = r.map(e.nodes(), function (t) { + var n = {}; + return ( + r.forEach(e.inEdges(t), function (t) { + n[t.v] = (n[t.v] || 0) + e.edge(t).weight; + }), + n + ); + }); + return r.zipObject(e.nodes(), t); + }, + intersectRect: function (e, t) { + var n, + r, + i = e.x, + o = e.y, + s = t.x - i, + a = t.y - o, + u = e.width / 2, + l = e.height / 2; + if (!s && !a) + throw new Error( + 'Not possible to find intersection inside of the rectangle' + ); + Math.abs(a) * u > Math.abs(s) * l + ? (a < 0 && (l = -l), (n = (l * s) / a), (r = l)) + : (s < 0 && (u = -u), (n = u), (r = (u * a) / s)); + return { x: i + n, y: o + r }; + }, + buildLayerMatrix: function (e) { + var t = r.map(r.range(s(e) + 1), function () { + return []; + }); + return ( + r.forEach(e.nodes(), function (n) { + var i = e.node(n), + o = i.rank; + r.isUndefined(o) || (t[o][i.order] = n); + }), + t + ); + }, + normalizeRanks: function (e) { + var t = r.min( + r.map(e.nodes(), function (t) { + return e.node(t).rank; + }) + ); + r.forEach(e.nodes(), function (n) { + var i = e.node(n); + r.has(i, 'rank') && (i.rank -= t); + }); + }, + removeEmptyRanks: function (e) { + var t = r.min( + r.map(e.nodes(), function (t) { + return e.node(t).rank; + }) + ), + n = []; + r.forEach(e.nodes(), function (r) { + var i = e.node(r).rank - t; + n[i] || (n[i] = []), n[i].push(r); + }); + var i = 0, + o = e.graph().nodeRankFactor; + r.forEach(n, function (t, n) { + r.isUndefined(t) && n % o != 0 + ? --i + : i && + r.forEach(t, function (t) { + e.node(t).rank += i; + }); + }); + }, + addBorderNode: function (e, t, n, r) { + var i = { width: 0, height: 0 }; + arguments.length >= 4 && ((i.rank = n), (i.order = r)); + return o(e, 'border', i, t); + }, + maxRank: s, + partition: function (e, t) { + var n = { lhs: [], rhs: [] }; + return ( + r.forEach(e, function (e) { + t(e) ? n.lhs.push(e) : n.rhs.push(e); + }), + n + ); + }, + time: function (e, t) { + var n = r.now(); + try { + return t(); + } finally { + console.log(e + ' time: ' + (r.now() - n) + 'ms'); + } + }, + notime: function (e, t) { + return t(); + }, + }; + }, + function (e, t, n) { + var r; + try { + r = { + clone: n(104), + constant: n(42), + each: n(43), + filter: n(59), + has: n(45), + isArray: n(4), + isEmpty: n(134), + isFunction: n(26), + isUndefined: n(62), + keys: n(19), + map: n(63), + reduce: n(64), + size: n(136), + transform: n(137), + union: n(138), + values: n(66), + }; + } catch (e) {} + r || (r = window._), (e.exports = r); + }, + function (e, t) { + e.exports = function (e) { + var t = typeof e; + return null != e && ('object' == t || 'function' == t); + }; + }, + function (e, t, n) { + var r; + try { + r = { + clone: n(104), + constant: n(42), + each: n(43), + filter: n(59), + has: n(45), + isArray: n(4), + isEmpty: n(134), + isFunction: n(26), + isUndefined: n(62), + keys: n(19), + map: n(63), + reduce: n(64), + size: n(136), + transform: n(137), + union: n(138), + values: n(66), + }; + } catch (e) {} + r || (r = window._), (e.exports = r); + }, + function (e, t, n) { + var r = n(37); + e.exports = { + isSubgraph: function (e, t) { + return !!e.children(t).length; + }, + edgeToId: function (e) { + return o(e.v) + ':' + o(e.w) + ':' + o(e.name); + }, + applyStyle: function (e, t) { + t && e.attr('style', t); + }, + applyClass: function (e, t, n) { + t && e.attr('class', t).attr('class', n + ' ' + e.attr('class')); + }, + applyTransition: function (e, t) { + var n = t.graph(); + if (r.isPlainObject(n)) { + var i = n.transition; + if (r.isFunction(i)) return i(e); + } + return e; + }, + }; + var i = /:/g; + function o(e) { + return e ? String(e).replace(i, '\\:') : ''; + } + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(578), + i = n(579), + o = n(580), + s = { channel: r.default, lang: i.default, unit: o.default }; + t.default = s; + }, + function (e, t, n) { + 'use strict'; + (function (e) { + n.d(t, 'a', function () { + return o; + }), + n.d(t, 'b', function () { + return s; + }), + n.d(t, 'c', function () { + return a; + }); + var r = n(1), + i = + void 0 === e + ? { + cwd: function () { + return '/'; + }, + env: Object.create(null), + get platform() { + return r.g ? 'win32' : r.d ? 'darwin' : 'linux'; + }, + nextTick: function (e) { + return Object(r.h)(e); + }, + } + : e, + o = i.cwd, + s = i.env, + a = i.platform; + }.call(this, n(72))); + }, + function (e, t, n) { + var r; + try { + r = n(103); + } catch (e) {} + r || (r = window.graphlib), (e.exports = r); + }, + function (e, t, n) { + var r = n(106), + i = 'object' == typeof self && self && self.Object === Object && self, + o = r || i || Function('return this')(); + e.exports = o; + }, + function (e, t, n) { + var r; + try { + r = n(166); + } catch (e) {} + r || (r = window.graphlib), (e.exports = r); + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(99), + i = n(179), + o = n(584), + s = n(585), + a = n(586), + u = { + format: { + keyword: o.default, + hex: i.default, + rgb: s.default, + rgba: s.default, + hsl: a.default, + hsla: a.default, + }, + parse: function (e) { + if ('string' != typeof e) return e; + var t = + i.default.parse(e) || + s.default.parse(e) || + a.default.parse(e) || + o.default.parse(e); + if (t) return t; + throw new Error('Unsupported color format: "' + e + '"'); + }, + stringify: function (e) { + return !e.changed && e.color + ? e.color + : e.type.is(r.TYPE.HSL) || void 0 === e.data.r + ? a.default.stringify(e) + : e.a < 1 || + !Number.isInteger(e.r) || + !Number.isInteger(e.g) || + !Number.isInteger(e.b) + ? s.default.stringify(e) + : i.default.stringify(e); + }, + }; + t.default = u; + }, + function (module, exports, __webpack_require__) { + (function (global) { + var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; + !(function (e, t) { + module.exports = t(e); + })( + 'undefined' != typeof self + ? self + : 'undefined' != typeof window + ? window + : void 0 !== global + ? global + : this, + function (global) { + 'use strict'; + global = global || {}; + var _Base64 = global.Base64, + version = '2.5.1', + buffer; + if (module.exports) + try { + buffer = eval("require('buffer').Buffer"); + } catch (e) { + buffer = void 0; + } + var b64chars = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', + b64tab = (function (e) { + for (var t = {}, n = 0, r = e.length; n < r; n++) + t[e.charAt(n)] = n; + return t; + })(b64chars), + fromCharCode = String.fromCharCode, + cb_utob = function (e) { + if (e.length < 2) + return (t = e.charCodeAt(0)) < 128 + ? e + : t < 2048 + ? fromCharCode(192 | (t >>> 6)) + fromCharCode(128 | (63 & t)) + : fromCharCode(224 | ((t >>> 12) & 15)) + + fromCharCode(128 | ((t >>> 6) & 63)) + + fromCharCode(128 | (63 & t)); + var t = + 65536 + + 1024 * (e.charCodeAt(0) - 55296) + + (e.charCodeAt(1) - 56320); + return ( + fromCharCode(240 | ((t >>> 18) & 7)) + + fromCharCode(128 | ((t >>> 12) & 63)) + + fromCharCode(128 | ((t >>> 6) & 63)) + + fromCharCode(128 | (63 & t)) + ); + }, + re_utob = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g, + utob = function (e) { + return e.replace(re_utob, cb_utob); + }, + cb_encode = function (e) { + var t = [0, 2, 1][e.length % 3], + n = + (e.charCodeAt(0) << 16) | + ((e.length > 1 ? e.charCodeAt(1) : 0) << 8) | + (e.length > 2 ? e.charCodeAt(2) : 0); + return [ + b64chars.charAt(n >>> 18), + b64chars.charAt((n >>> 12) & 63), + t >= 2 ? '=' : b64chars.charAt((n >>> 6) & 63), + t >= 1 ? '=' : b64chars.charAt(63 & n), + ].join(''); + }, + btoa = global.btoa + ? function (e) { + return global.btoa(e); + } + : function (e) { + return e.replace(/[\s\S]{1,3}/g, cb_encode); + }, + _encode = buffer + ? buffer.from && Uint8Array && buffer.from !== Uint8Array.from + ? function (e) { + return (e.constructor === buffer.constructor + ? e + : buffer.from(e) + ).toString('base64'); + } + : function (e) { + return (e.constructor === buffer.constructor + ? e + : new buffer(e) + ).toString('base64'); + } + : function (e) { + return btoa(utob(e)); + }, + encode = function (e, t) { + return t + ? _encode(String(e)) + .replace(/[+\/]/g, function (e) { + return '+' == e ? '-' : '_'; + }) + .replace(/=/g, '') + : _encode(String(e)); + }, + encodeURI = function (e) { + return encode(e, !0); + }, + re_btou = new RegExp( + ['[À-ß][€-¿]', '[à-ï][€-¿]{2}', '[ð-÷][€-¿]{3}'].join('|'), + 'g' + ), + cb_btou = function (e) { + switch (e.length) { + case 4: + var t = + (((7 & e.charCodeAt(0)) << 18) | + ((63 & e.charCodeAt(1)) << 12) | + ((63 & e.charCodeAt(2)) << 6) | + (63 & e.charCodeAt(3))) - + 65536; + return ( + fromCharCode(55296 + (t >>> 10)) + + fromCharCode(56320 + (1023 & t)) + ); + case 3: + return fromCharCode( + ((15 & e.charCodeAt(0)) << 12) | + ((63 & e.charCodeAt(1)) << 6) | + (63 & e.charCodeAt(2)) + ); + default: + return fromCharCode( + ((31 & e.charCodeAt(0)) << 6) | (63 & e.charCodeAt(1)) + ); + } + }, + btou = function (e) { + return e.replace(re_btou, cb_btou); + }, + cb_decode = function (e) { + var t = e.length, + n = t % 4, + r = + (t > 0 ? b64tab[e.charAt(0)] << 18 : 0) | + (t > 1 ? b64tab[e.charAt(1)] << 12 : 0) | + (t > 2 ? b64tab[e.charAt(2)] << 6 : 0) | + (t > 3 ? b64tab[e.charAt(3)] : 0), + i = [ + fromCharCode(r >>> 16), + fromCharCode((r >>> 8) & 255), + fromCharCode(255 & r), + ]; + return (i.length -= [0, 0, 2, 1][n]), i.join(''); + }, + _atob = global.atob + ? function (e) { + return global.atob(e); + } + : function (e) { + return e.replace(/\S{1,4}/g, cb_decode); + }, + atob = function (e) { + return _atob(String(e).replace(/[^A-Za-z0-9\+\/]/g, '')); + }, + _decode = buffer + ? buffer.from && Uint8Array && buffer.from !== Uint8Array.from + ? function (e) { + return (e.constructor === buffer.constructor + ? e + : buffer.from(e, 'base64') + ).toString(); + } + : function (e) { + return (e.constructor === buffer.constructor + ? e + : new buffer(e, 'base64') + ).toString(); + } + : function (e) { + return btou(_atob(e)); + }, + decode = function (e) { + return _decode( + String(e) + .replace(/[-_]/g, function (e) { + return '-' == e ? '+' : '/'; + }) + .replace(/[^A-Za-z0-9\+\/]/g, '') + ); + }, + noConflict = function () { + var e = global.Base64; + return (global.Base64 = _Base64), e; + }; + if ( + ((global.Base64 = { + VERSION: version, + atob: atob, + btoa: btoa, + fromBase64: decode, + toBase64: encode, + utob: utob, + encode: encode, + encodeURI: encodeURI, + btou: btou, + decode: decode, + noConflict: noConflict, + __buffer__: buffer, + }), + 'function' == typeof Object.defineProperty) + ) { + var noEnum = function (e) { + return { + value: e, + enumerable: !1, + writable: !0, + configurable: !0, + }; + }; + global.Base64.extendString = function () { + Object.defineProperty( + String.prototype, + 'fromBase64', + noEnum(function () { + return decode(this); + }) + ), + Object.defineProperty( + String.prototype, + 'toBase64', + noEnum(function (e) { + return encode(this, e); + }) + ), + Object.defineProperty( + String.prototype, + 'toBase64URI', + noEnum(function () { + return encode(this, !0); + }) + ); + }; + } + return ( + global.Meteor && (Base64 = global.Base64), + module.exports + ? (module.exports.Base64 = global.Base64) + : ((__WEBPACK_AMD_DEFINE_ARRAY__ = []), + (__WEBPACK_AMD_DEFINE_RESULT__ = function () { + return global.Base64; + }.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)), + void 0 === __WEBPACK_AMD_DEFINE_RESULT__ || + (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)), + { Base64: global.Base64 } + ); + } + ); + }.call(this, __webpack_require__(30))); + }, + function (e, t) { + e.exports = function (e) { + return null != e && 'object' == typeof e; + }; + }, + function (e, t, n) { + var r = n(109), + i = n(79), + o = n(20); + e.exports = function (e) { + return o(e) ? r(e) : i(e); + }; + }, + function (e, t, n) { + var r = n(26), + i = n(77); + e.exports = function (e) { + return null != e && i(e.length) && !r(e); + }; + }, + function (e, t, n) { + var r = n(426), + i = n(436), + o = n(28), + s = n(4), + a = n(443); + e.exports = function (e) { + return 'function' == typeof e + ? e + : null == e + ? o + : 'object' == typeof e + ? s(e) + ? i(e[0], e[1]) + : r(e) + : a(e); + }; + }, + function (e, t, n) { + var r; + if (!r) + try { + r = n(316); + } catch (e) {} + r || (r = window.d3), (e.exports = r); + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(16); + t.default = function (e, t) { + return r.default.lang.round(i.default.parse(e)[t]); + }; + }, + function (e, t, n) { + var r; + 'undefined' != typeof self && self, + (r = function () { + return (function (e) { + var t = {}; + function n(r) { + if (t[r]) return t[r].exports; + var i = (t[r] = { i: r, l: !1, exports: {} }); + return e[r].call(i.exports, i, i.exports, n), (i.l = !0), i.exports; + } + return ( + (n.m = e), + (n.c = t), + (n.d = function (e, t, r) { + n.o(e, t) || + Object.defineProperty(e, t, { enumerable: !0, get: r }); + }), + (n.r = function (e) { + 'undefined' != typeof Symbol && + Symbol.toStringTag && + Object.defineProperty(e, Symbol.toStringTag, { + value: 'Module', + }), + Object.defineProperty(e, '__esModule', { value: !0 }); + }), + (n.t = function (e, t) { + if ((1 & t && (e = n(e)), 8 & t)) return e; + if (4 & t && 'object' == typeof e && e && e.__esModule) return e; + var r = Object.create(null); + if ( + (n.r(r), + Object.defineProperty(r, 'default', { + enumerable: !0, + value: e, + }), + 2 & t && 'string' != typeof e) + ) + for (var i in e) + n.d( + r, + i, + function (t) { + return e[t]; + }.bind(null, i) + ); + return r; + }), + (n.n = function (e) { + var t = + e && e.__esModule + ? function () { + return e.default; + } + : function () { + return e; + }; + return n.d(t, 'a', t), t; + }), + (n.o = function (e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + }), + (n.p = ''), + n((n.s = './src/mermaid.js')) + ); + })({ + './node_modules/node-libs-browser/mock/empty.js': + /*!******************************************************!*\ !*** ./node_modules/node-libs-browser/mock/empty.js ***! \******************************************************/ -/*! no static exports found */function(e,t){},"./node_modules/path-browserify/index.js": -/*!***********************************************!*\ + /*! no static exports found */ function (e, t) {}, + './node_modules/path-browserify/index.js': + /*!***********************************************!*\ !*** ./node_modules/path-browserify/index.js ***! \***********************************************/ -/*! no static exports found */function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,i="/"===s.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var o=t.isAbsolute(e),s="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"))||o||(e="."),e&&s&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(i=!1,r=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(/*! ./../process/browser.js */"./node_modules/process/browser.js"))},"./node_modules/process/browser.js": -/*!*****************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e) { + function n(e, t) { + for (var n = 0, r = e.length - 1; r >= 0; r--) { + var i = e[r]; + '.' === i + ? e.splice(r, 1) + : '..' === i + ? (e.splice(r, 1), n++) + : n && (e.splice(r, 1), n--); + } + if (t) for (; n--; n) e.unshift('..'); + return e; + } + function r(e, t) { + if (e.filter) return e.filter(t); + for (var n = [], r = 0; r < e.length; r++) + t(e[r], r, e) && n.push(e[r]); + return n; + } + (t.resolve = function () { + for ( + var t = '', i = !1, o = arguments.length - 1; + o >= -1 && !i; + o-- + ) { + var s = o >= 0 ? arguments[o] : e.cwd(); + if ('string' != typeof s) + throw new TypeError( + 'Arguments to path.resolve must be strings' + ); + s && ((t = s + '/' + t), (i = '/' === s.charAt(0))); + } + return ( + (i ? '/' : '') + + (t = n( + r(t.split('/'), function (e) { + return !!e; + }), + !i + ).join('/')) || '.' + ); + }), + (t.normalize = function (e) { + var o = t.isAbsolute(e), + s = '/' === i(e, -1); + return ( + (e = n( + r(e.split('/'), function (e) { + return !!e; + }), + !o + ).join('/')) || + o || + (e = '.'), + e && s && (e += '/'), + (o ? '/' : '') + e + ); + }), + (t.isAbsolute = function (e) { + return '/' === e.charAt(0); + }), + (t.join = function () { + var e = Array.prototype.slice.call(arguments, 0); + return t.normalize( + r(e, function (e, t) { + if ('string' != typeof e) + throw new TypeError( + 'Arguments to path.join must be strings' + ); + return e; + }).join('/') + ); + }), + (t.relative = function (e, n) { + function r(e) { + for (var t = 0; t < e.length && '' === e[t]; t++); + for (var n = e.length - 1; n >= 0 && '' === e[n]; n--); + return t > n ? [] : e.slice(t, n - t + 1); + } + (e = t.resolve(e).substr(1)), (n = t.resolve(n).substr(1)); + for ( + var i = r(e.split('/')), + o = r(n.split('/')), + s = Math.min(i.length, o.length), + a = s, + u = 0; + u < s; + u++ + ) + if (i[u] !== o[u]) { + a = u; + break; + } + var l = []; + for (u = a; u < i.length; u++) l.push('..'); + return (l = l.concat(o.slice(a))).join('/'); + }), + (t.sep = '/'), + (t.delimiter = ':'), + (t.dirname = function (e) { + if (('string' != typeof e && (e += ''), 0 === e.length)) + return '.'; + for ( + var t = e.charCodeAt(0), + n = 47 === t, + r = -1, + i = !0, + o = e.length - 1; + o >= 1; + --o + ) + if (47 === (t = e.charCodeAt(o))) { + if (!i) { + r = o; + break; + } + } else i = !1; + return -1 === r + ? n + ? '/' + : '.' + : n && 1 === r + ? '/' + : e.slice(0, r); + }), + (t.basename = function (e, t) { + var n = (function (e) { + 'string' != typeof e && (e += ''); + var t, + n = 0, + r = -1, + i = !0; + for (t = e.length - 1; t >= 0; --t) + if (47 === e.charCodeAt(t)) { + if (!i) { + n = t + 1; + break; + } + } else -1 === r && ((i = !1), (r = t + 1)); + return -1 === r ? '' : e.slice(n, r); + })(e); + return ( + t && + n.substr(-1 * t.length) === t && + (n = n.substr(0, n.length - t.length)), + n + ); + }), + (t.extname = function (e) { + 'string' != typeof e && (e += ''); + for ( + var t = -1, + n = 0, + r = -1, + i = !0, + o = 0, + s = e.length - 1; + s >= 0; + --s + ) { + var a = e.charCodeAt(s); + if (47 !== a) + -1 === r && ((i = !1), (r = s + 1)), + 46 === a + ? -1 === t + ? (t = s) + : 1 !== o && (o = 1) + : -1 !== t && (o = -1); + else if (!i) { + n = s + 1; + break; + } + } + return -1 === t || + -1 === r || + 0 === o || + (1 === o && t === r - 1 && t === n + 1) + ? '' + : e.slice(t, r); + }); + var i = + 'b' === 'ab'.substr(-1) + ? function (e, t, n) { + return e.substr(t, n); + } + : function (e, t, n) { + return t < 0 && (t = e.length + t), e.substr(t, n); + }; + }.call( + this, + n( + /*! ./../process/browser.js */ './node_modules/process/browser.js' + ) + )); + }, + './node_modules/process/browser.js': + /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ -/*! no static exports found */function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,d=-1;function h(){c&&u&&(c=!1,u.length?l=u.concat(l):d=-1,l.length&&f())}function f(){if(!c){var e=a(h);c=!0;for(var t=l.length;t;){for(u=l,l=[];++d1)for(var n=1;n 1) + for (var n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + l.push(new p(e, t)), 1 !== l.length || c || a(f); + }), + (p.prototype.run = function () { + this.fun.apply(null, this.array); + }), + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = g), + (i.addListener = g), + (i.once = g), + (i.off = g), + (i.removeListener = g), + (i.removeAllListeners = g), + (i.emit = g), + (i.prependListener = g), + (i.prependOnceListener = g), + (i.listeners = function (e) { + return []; + }), + (i.binding = function (e) { + throw new Error('process.binding is not supported'); + }), + (i.cwd = function () { + return '/'; + }), + (i.chdir = function (e) { + throw new Error('process.chdir is not supported'); + }), + (i.umask = function () { + return 0; + }); + }, + './node_modules/webpack/buildin/module.js': + /*!***********************************!*\ !*** (webpack)/buildin/module.js ***! \***********************************/ -/*! no static exports found */function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./package.json": -/*!**********************!*\ + /*! no static exports found */ function (e, t) { + e.exports = function (e) { + return ( + e.webpackPolyfill || + ((e.deprecate = function () {}), + (e.paths = []), + e.children || (e.children = []), + Object.defineProperty(e, 'loaded', { + enumerable: !0, + get: function () { + return e.l; + }, + }), + Object.defineProperty(e, 'id', { + enumerable: !0, + get: function () { + return e.i; + }, + }), + (e.webpackPolyfill = 1)), + e + ); + }; + }, + './package.json': + /*!**********************!*\ !*** ./package.json ***! \**********************/ -/*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */function(e){e.exports=JSON.parse('{"name":"mermaid","version":"8.8.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},"./src/config.js": -/*!***********************!*\ + /*! exports provided: name, version, description, main, keywords, scripts, repository, author, license, standard, dependencies, devDependencies, files, yarn-upgrade-all, sideEffects, husky, default */ function ( + e + ) { + e.exports = JSON.parse( + '{"name":"mermaid","version":"8.8.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}' + ); + }, + './src/config.js': + /*!***********************!*\ !*** ./src/config.js ***! \***********************/ -/*! exports provided: defaultConfig, updateCurrentConfig, setSiteConfig, setSiteConfigDelta, updateSiteConfig, getSiteConfig, setConfig, getConfig, sanitize, addDirective, reset */function(e,t,n){"use strict";n.r(t),n.d(t,"defaultConfig",(function(){return u})),n.d(t,"updateCurrentConfig",(function(){return h})),n.d(t,"setSiteConfig",(function(){return f})),n.d(t,"setSiteConfigDelta",(function(){return p})),n.d(t,"updateSiteConfig",(function(){return g})),n.d(t,"getSiteConfig",(function(){return m})),n.d(t,"setConfig",(function(){return _})),n.d(t,"getConfig",(function(){return y})),n.d(t,"sanitize",(function(){return v})),n.d(t,"addDirective",(function(){return b})),n.d(t,"reset",(function(){return w}));var r,i=n(/*! ./utils */"./src/utils.js"),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./themes */"./src/themes/index.js"),a=n(/*! ./defaultConfig */"./src/defaultConfig.js"),u=Object.freeze(a.default),l=Object(i.assignWithDepth)({},u),c=[],d=Object(i.assignWithDepth)({},u),h=function(e,t){for(var n=Object(i.assignWithDepth)({},e),o={},a=0;a"),i.logger.info("vertexText"+a),function(e){var t,n,i=Object(r.select)(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=i.append("xhtml:div"),s=e.label,a=e.isNode?"nodeLabel":"edgeLabel";return o.html(''+s+""),t=o,(n=e.labelStyle)&&t.attr("style",n),o.style("display","inline-block"),o.style("white-space","nowrap"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),i.node()}({isNode:s,label:a.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")})),labelStyle:t.replace("fill:","color:")});var u=document.createElementNS("http://www.w3.org/2000/svg","text");u.setAttribute("style",t.replace("color:","fill:"));var l=[];l="string"==typeof a?a.split(/\\n|\n|/gi):Array.isArray(a)?a:[];for(var c=0;c')), + i.logger.info('vertexText' + a), + (function (e) { + var t, + n, + i = Object(r.select)( + document.createElementNS( + 'http://www.w3.org/2000/svg', + 'foreignObject' + ) + ), + o = i.append('xhtml:div'), + s = e.label, + a = e.isNode ? 'nodeLabel' : 'edgeLabel'; + return ( + o.html('' + s + ''), + (t = o), + (n = e.labelStyle) && t.attr('style', n), + o.style('display', 'inline-block'), + o.style('white-space', 'nowrap'), + o.attr('xmlns', 'http://www.w3.org/1999/xhtml'), + i.node() + ); + })({ + isNode: s, + label: a.replace(/fa[lrsb]?:fa-[\w-]+/g, function (e) { + return "" + ); + }), + labelStyle: t.replace('fill:', 'color:'), + }) + ); + var u = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'text' + ); + u.setAttribute('style', t.replace('color:', 'fill:')); + var l = []; + l = + 'string' == typeof a + ? a.split(/\\n|\n|/gi) + : Array.isArray(a) + ? a + : []; + for (var c = 0; c < l.length; c++) { + var d = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'tspan' + ); + d.setAttributeNS( + 'http://www.w3.org/XML/1998/namespace', + 'xml:space', + 'preserve' + ), + d.setAttribute('dy', '1em'), + d.setAttribute('x', '0'), + n + ? d.setAttribute('class', 'title-row') + : d.setAttribute('class', 'row'), + (d.textContent = l[c].trim()), + u.appendChild(d); + } + return u; + }; + }, + './src/dagre-wrapper/edges.js': + /*!************************************!*\ !*** ./src/dagre-wrapper/edges.js ***! \************************************/ -/*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"clear",(function(){return c})),n.d(t,"insertEdgeLabel",(function(){return d})),n.d(t,"positionEdgeLabel",(function(){return h})),n.d(t,"intersection",(function(){return p})),n.d(t,"insertEdge",(function(){return g}));var r=n(/*! ../logger */"./src/logger.js"),i=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),o=n(/*! d3 */"d3"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ../utils */"./src/utils.js"),u={},l={},c=function(){u={},l={}},d=function(e,t){var n=Object(i.default)(t.label,t.labelStyle),r=e.insert("g").attr("class","edgeLabel"),a=r.insert("g").attr("class","label");a.node().appendChild(n);var c=n.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var d=n.children[0],h=Object(o.select)(n);c=d.getBoundingClientRect(),h.attr("width",c.width),h.attr("height",c.height)}if(a.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),u[t.id]=r,t.width=c.width,t.height=c.height,t.startLabelLeft){var f=Object(i.default)(t.startLabelLeft,t.labelStyle),p=e.insert("g").attr("class","edgeTerminals"),g=p.insert("g").attr("class","inner");g.node().appendChild(f);var m=f.getBBox();g.attr("transform","translate("+-m.width/2+", "+-m.height/2+")"),l[t.id]||(l[t.id]={}),l[t.id].startLeft=p}if(t.startLabelRight){var _=Object(i.default)(t.startLabelRight,t.labelStyle),y=e.insert("g").attr("class","edgeTerminals"),v=y.insert("g").attr("class","inner");y.node().appendChild(_),v.node().appendChild(_);var b=_.getBBox();v.attr("transform","translate("+-b.width/2+", "+-b.height/2+")"),l[t.id]||(l[t.id]={}),l[t.id].startRight=y}if(t.endLabelLeft){var w=Object(i.default)(t.endLabelLeft,t.labelStyle),C=e.insert("g").attr("class","edgeTerminals"),S=C.insert("g").attr("class","inner");S.node().appendChild(w);var x=w.getBBox();S.attr("transform","translate("+-x.width/2+", "+-x.height/2+")"),C.node().appendChild(w),l[t.id]||(l[t.id]={}),l[t.id].endLeft=C}if(t.endLabelRight){var L=Object(i.default)(t.endLabelRight,t.labelStyle),k=e.insert("g").attr("class","edgeTerminals"),M=k.insert("g").attr("class","inner");M.node().appendChild(L);var D=L.getBBox();M.attr("transform","translate("+-D.width/2+", "+-D.height/2+")"),k.node().appendChild(L),l[t.id]||(l[t.id]={}),l[t.id].endRight=k}},h=function(e,t){r.logger.info("Moving label",e.id,e.label,u[e.id]);var n=t.updatedPath?t.updatedPath:t.originalPath;if(e.label){var i=u[e.id],o=e.x,s=e.y;if(n){var c=a.default.calcLabelPosition(n);r.logger.info("Moving label from (",o,",",s,") to (",c.x,",",c.y,")")}i.attr("transform","translate("+o+", "+s+")")}if(e.startLabelLeft){var d=l[e.id].startLeft,h=e.x,f=e.y;if(n){var p=a.default.calcTerminalLabelPosition(0,"start_left",n);h=p.x,f=p.y}d.attr("transform","translate("+h+", "+f+")")}if(e.startLabelRight){var g=l[e.id].startRight,m=e.x,_=e.y;if(n){var y=a.default.calcTerminalLabelPosition(0,"start_right",n);m=y.x,_=y.y}g.attr("transform","translate("+m+", "+_+")")}if(e.endLabelLeft){var v=l[e.id].endLeft,b=e.x,w=e.y;if(n){var C=a.default.calcTerminalLabelPosition(0,"end_left",n);b=C.x,w=C.y}v.attr("transform","translate("+b+", "+w+")")}if(e.endLabelRight){var S=l[e.id].endRight,x=e.x,L=e.y;if(n){var k=a.default.calcTerminalLabelPosition(0,"end_right",n);x=k.x,L=k.y}S.attr("transform","translate("+x+", "+L+")")}},f=function(e,t){var n=e.x,r=e.y,i=Math.abs(t.x-n),o=Math.abs(t.y-r),s=e.width/2,a=e.height/2;return i>=s||o>=a},p=function(e,t,n){r.logger.warn("intersection calc o:",t," i:",n,e);var i=e.x,o=e.y,s=Math.abs(i-n.x),a=e.width/2,u=n.xMath.abs(i-t.x)*l){var m=n.y=0;b--){var w=l[b],C=i[n.fromCluster].node;if(f(C,w)||v)r.logger.trace("Outside point",w),v||y.unshift(w);else{r.logger.warn("inside",n.fromCluster,w,C);var S=p(C,_,w);y.unshift(S),v=!0}_=w}l=y,c=!0}var x,L=l.filter((function(e){return!Number.isNaN(e.y)})),k=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis);switch(n.thickness){case"normal":x="edge-thickness-normal";break;case"thick":x="edge-thickness-thick";break;default:x=""}switch(n.pattern){case"solid":x+=" edge-pattern-solid";break;case"dotted":x+=" edge-pattern-dotted";break;case"dashed":x+=" edge-pattern-dashed"}var M=e.append("path").attr("d",k(L)).attr("id",n.id).attr("class"," "+x+(n.classes?" "+n.classes:"")).attr("style",n.style),D="";switch(Object(s.getConfig)().state.arrowMarkerAbsolute&&(D=(D=(D=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),r.logger.info("arrowTypeStart",n.arrowTypeStart),r.logger.info("arrowTypeEnd",n.arrowTypeEnd),n.arrowTypeStart){case"arrow_cross":M.attr("marker-start","url("+D+"#"+a+"-crossStart)");break;case"arrow_point":M.attr("marker-start","url("+D+"#"+a+"-pointStart)");break;case"arrow_barb":M.attr("marker-start","url("+D+"#"+a+"-barbStart)");break;case"arrow_circle":M.attr("marker-start","url("+D+"#"+a+"-circleStart)");break;case"aggregation":M.attr("marker-start","url("+D+"#"+a+"-aggregationStart)");break;case"extension":M.attr("marker-start","url("+D+"#"+a+"-extensionStart)");break;case"composition":M.attr("marker-start","url("+D+"#"+a+"-compositionStart)");break;case"dependency":M.attr("marker-start","url("+D+"#"+a+"-dependencyStart)")}switch(n.arrowTypeEnd){case"arrow_cross":M.attr("marker-end","url("+D+"#"+a+"-crossEnd)");break;case"arrow_point":M.attr("marker-end","url("+D+"#"+a+"-pointEnd)");break;case"arrow_barb":M.attr("marker-end","url("+D+"#"+a+"-barbEnd)");break;case"arrow_circle":M.attr("marker-end","url("+D+"#"+a+"-circleEnd)");break;case"aggregation":M.attr("marker-end","url("+D+"#"+a+"-aggregationEnd)");break;case"extension":M.attr("marker-end","url("+D+"#"+a+"-extensionEnd)");break;case"composition":M.attr("marker-end","url("+D+"#"+a+"-compositionEnd)");break;case"dependency":M.attr("marker-end","url("+D+"#"+a+"-dependencyEnd)")}var E={};return c&&(E.updatedPath=l),E.originalPath=n.points,E}},"./src/dagre-wrapper/index.js": -/*!************************************!*\ + /*! exports provided: clear, insertEdgeLabel, positionEdgeLabel, intersection, insertEdge */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'clear', function () { + return c; + }), + n.d(t, 'insertEdgeLabel', function () { + return d; + }), + n.d(t, 'positionEdgeLabel', function () { + return h; + }), + n.d(t, 'intersection', function () { + return p; + }), + n.d(t, 'insertEdge', function () { + return g; + }); + var r = n(/*! ../logger */ './src/logger.js'), + i = n( + /*! ./createLabel */ './src/dagre-wrapper/createLabel.js' + ), + o = n(/*! d3 */ 'd3'), + s = n(/*! ../config */ './src/config.js'), + a = n(/*! ../utils */ './src/utils.js'), + u = {}, + l = {}, + c = function () { + (u = {}), (l = {}); + }, + d = function (e, t) { + var n = Object(i.default)(t.label, t.labelStyle), + r = e.insert('g').attr('class', 'edgeLabel'), + a = r.insert('g').attr('class', 'label'); + a.node().appendChild(n); + var c = n.getBBox(); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var d = n.children[0], + h = Object(o.select)(n); + (c = d.getBoundingClientRect()), + h.attr('width', c.width), + h.attr('height', c.height); + } + if ( + (a.attr( + 'transform', + 'translate(' + -c.width / 2 + ', ' + -c.height / 2 + ')' + ), + (u[t.id] = r), + (t.width = c.width), + (t.height = c.height), + t.startLabelLeft) + ) { + var f = Object(i.default)(t.startLabelLeft, t.labelStyle), + p = e.insert('g').attr('class', 'edgeTerminals'), + g = p.insert('g').attr('class', 'inner'); + g.node().appendChild(f); + var m = f.getBBox(); + g.attr( + 'transform', + 'translate(' + -m.width / 2 + ', ' + -m.height / 2 + ')' + ), + l[t.id] || (l[t.id] = {}), + (l[t.id].startLeft = p); + } + if (t.startLabelRight) { + var _ = Object(i.default)(t.startLabelRight, t.labelStyle), + y = e.insert('g').attr('class', 'edgeTerminals'), + v = y.insert('g').attr('class', 'inner'); + y.node().appendChild(_), v.node().appendChild(_); + var b = _.getBBox(); + v.attr( + 'transform', + 'translate(' + -b.width / 2 + ', ' + -b.height / 2 + ')' + ), + l[t.id] || (l[t.id] = {}), + (l[t.id].startRight = y); + } + if (t.endLabelLeft) { + var w = Object(i.default)(t.endLabelLeft, t.labelStyle), + C = e.insert('g').attr('class', 'edgeTerminals'), + S = C.insert('g').attr('class', 'inner'); + S.node().appendChild(w); + var x = w.getBBox(); + S.attr( + 'transform', + 'translate(' + -x.width / 2 + ', ' + -x.height / 2 + ')' + ), + C.node().appendChild(w), + l[t.id] || (l[t.id] = {}), + (l[t.id].endLeft = C); + } + if (t.endLabelRight) { + var L = Object(i.default)(t.endLabelRight, t.labelStyle), + k = e.insert('g').attr('class', 'edgeTerminals'), + M = k.insert('g').attr('class', 'inner'); + M.node().appendChild(L); + var D = L.getBBox(); + M.attr( + 'transform', + 'translate(' + -D.width / 2 + ', ' + -D.height / 2 + ')' + ), + k.node().appendChild(L), + l[t.id] || (l[t.id] = {}), + (l[t.id].endRight = k); + } + }, + h = function (e, t) { + r.logger.info('Moving label', e.id, e.label, u[e.id]); + var n = t.updatedPath ? t.updatedPath : t.originalPath; + if (e.label) { + var i = u[e.id], + o = e.x, + s = e.y; + if (n) { + var c = a.default.calcLabelPosition(n); + r.logger.info( + 'Moving label from (', + o, + ',', + s, + ') to (', + c.x, + ',', + c.y, + ')' + ); + } + i.attr('transform', 'translate(' + o + ', ' + s + ')'); + } + if (e.startLabelLeft) { + var d = l[e.id].startLeft, + h = e.x, + f = e.y; + if (n) { + var p = a.default.calcTerminalLabelPosition( + 0, + 'start_left', + n + ); + (h = p.x), (f = p.y); + } + d.attr('transform', 'translate(' + h + ', ' + f + ')'); + } + if (e.startLabelRight) { + var g = l[e.id].startRight, + m = e.x, + _ = e.y; + if (n) { + var y = a.default.calcTerminalLabelPosition( + 0, + 'start_right', + n + ); + (m = y.x), (_ = y.y); + } + g.attr('transform', 'translate(' + m + ', ' + _ + ')'); + } + if (e.endLabelLeft) { + var v = l[e.id].endLeft, + b = e.x, + w = e.y; + if (n) { + var C = a.default.calcTerminalLabelPosition( + 0, + 'end_left', + n + ); + (b = C.x), (w = C.y); + } + v.attr('transform', 'translate(' + b + ', ' + w + ')'); + } + if (e.endLabelRight) { + var S = l[e.id].endRight, + x = e.x, + L = e.y; + if (n) { + var k = a.default.calcTerminalLabelPosition( + 0, + 'end_right', + n + ); + (x = k.x), (L = k.y); + } + S.attr('transform', 'translate(' + x + ', ' + L + ')'); + } + }, + f = function (e, t) { + var n = e.x, + r = e.y, + i = Math.abs(t.x - n), + o = Math.abs(t.y - r), + s = e.width / 2, + a = e.height / 2; + return i >= s || o >= a; + }, + p = function (e, t, n) { + r.logger.warn('intersection calc o:', t, ' i:', n, e); + var i = e.x, + o = e.y, + s = Math.abs(i - n.x), + a = e.width / 2, + u = n.x < t.x ? a - s : a + s, + l = e.height / 2, + c = i - a, + d = i + a, + h = o - l, + f = o + l; + if (t.x === c || t.x === d || t.y === h || t.y === f) + return r.logger.warn('calc equals on edge'), t; + var p = Math.abs(t.y - n.y), + g = Math.abs(t.x - n.x); + if (Math.abs(o - t.y) * a > Math.abs(i - t.x) * l) { + var m = n.y < t.y ? t.y - l - o : o - l - t.y; + u = (g * m) / p; + var _ = { + x: n.x < t.x ? n.x + g - u : n.x - u, + y: n.y < t.y ? n.y + p - m : n.y - m, + }; + return ( + r.logger.warn( + 'topp/bott calc, Q ' + .concat(p, ', q ') + .concat(m, ', R ') + .concat(g, ', r ') + .concat(u), + _ + ), + _ + ); + } + var y = (y = + (p * (u = n.x < t.x ? t.x - a - i : i - a - t.x)) / g); + return ( + r.logger.warn( + 'sides calc, Q ' + .concat(p, ', q ') + .concat(y, ', R ') + .concat(g, ', r ') + .concat(u), + { + x: n.x < t.x ? n.x + g - u : n.x + s - a, + y: n.y < t.y ? n.y + y : n.y - y, + } + ), + { + x: n.x < t.x ? n.x + g - u : n.x + s - a, + y: n.y < t.y ? n.y + y : n.y - y, + } + ); + }, + g = function (e, t, n, i, a, u) { + var l = n.points, + c = !1, + d = u.node(t.v), + h = u.node(t.w); + if ( + (h.intersect && + d.intersect && + ((l = l.slice(1, n.points.length - 1)).unshift( + d.intersect(l[0]) + ), + r.logger.info( + 'Last point', + l[l.length - 1], + h, + h.intersect(l[l.length - 1]) + ), + l.push(h.intersect(l[l.length - 1]))), + n.toCluster) + ) { + var g; + r.logger.trace('edge', n), + r.logger.trace('to cluster', i[n.toCluster]), + (l = []); + var m = !1; + n.points.forEach(function (e) { + var t = i[n.toCluster].node; + if (f(t, e) || m) m || l.push(e); + else { + r.logger.trace('inside', n.toCluster, e, g); + var o = p(t, g, e), + s = !1; + l.forEach(function (e) { + s = s || (e.x === o.x && e.y === o.y); + }), + l.find(function (e) { + return e.x === o.x && e.y === o.y; + }) + ? r.logger.warn('no intersect', o, l) + : l.push(o), + (m = !0); + } + g = e; + }), + (c = !0); + } + if (n.fromCluster) { + r.logger.trace('edge', n), + r.logger.warn('from cluster', i[n.fromCluster]); + for (var _, y = [], v = !1, b = l.length - 1; b >= 0; b--) { + var w = l[b], + C = i[n.fromCluster].node; + if (f(C, w) || v) + r.logger.trace('Outside point', w), v || y.unshift(w); + else { + r.logger.warn('inside', n.fromCluster, w, C); + var S = p(C, _, w); + y.unshift(S), (v = !0); + } + _ = w; + } + (l = y), (c = !0); + } + var x, + L = l.filter(function (e) { + return !Number.isNaN(e.y); + }), + k = Object(o.line)() + .x(function (e) { + return e.x; + }) + .y(function (e) { + return e.y; + }) + .curve(o.curveBasis); + switch (n.thickness) { + case 'normal': + x = 'edge-thickness-normal'; + break; + case 'thick': + x = 'edge-thickness-thick'; + break; + default: + x = ''; + } + switch (n.pattern) { + case 'solid': + x += ' edge-pattern-solid'; + break; + case 'dotted': + x += ' edge-pattern-dotted'; + break; + case 'dashed': + x += ' edge-pattern-dashed'; + } + var M = e + .append('path') + .attr('d', k(L)) + .attr('id', n.id) + .attr( + 'class', + ' ' + x + (n.classes ? ' ' + n.classes : '') + ) + .attr('style', n.style), + D = ''; + switch ( + (Object(s.getConfig)().state.arrowMarkerAbsolute && + (D = (D = (D = + window.location.protocol + + '//' + + window.location.host + + window.location.pathname + + window.location.search).replace(/\(/g, '\\(')).replace( + /\)/g, + '\\)' + )), + r.logger.info('arrowTypeStart', n.arrowTypeStart), + r.logger.info('arrowTypeEnd', n.arrowTypeEnd), + n.arrowTypeStart) + ) { + case 'arrow_cross': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-crossStart)' + ); + break; + case 'arrow_point': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-pointStart)' + ); + break; + case 'arrow_barb': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-barbStart)' + ); + break; + case 'arrow_circle': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-circleStart)' + ); + break; + case 'aggregation': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-aggregationStart)' + ); + break; + case 'extension': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-extensionStart)' + ); + break; + case 'composition': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-compositionStart)' + ); + break; + case 'dependency': + M.attr( + 'marker-start', + 'url(' + D + '#' + a + '-dependencyStart)' + ); + } + switch (n.arrowTypeEnd) { + case 'arrow_cross': + M.attr('marker-end', 'url(' + D + '#' + a + '-crossEnd)'); + break; + case 'arrow_point': + M.attr('marker-end', 'url(' + D + '#' + a + '-pointEnd)'); + break; + case 'arrow_barb': + M.attr('marker-end', 'url(' + D + '#' + a + '-barbEnd)'); + break; + case 'arrow_circle': + M.attr( + 'marker-end', + 'url(' + D + '#' + a + '-circleEnd)' + ); + break; + case 'aggregation': + M.attr( + 'marker-end', + 'url(' + D + '#' + a + '-aggregationEnd)' + ); + break; + case 'extension': + M.attr( + 'marker-end', + 'url(' + D + '#' + a + '-extensionEnd)' + ); + break; + case 'composition': + M.attr( + 'marker-end', + 'url(' + D + '#' + a + '-compositionEnd)' + ); + break; + case 'dependency': + M.attr( + 'marker-end', + 'url(' + D + '#' + a + '-dependencyEnd)' + ); + } + var E = {}; + return ( + c && (E.updatedPath = l), (E.originalPath = n.points), E + ); + }; + }, + './src/dagre-wrapper/index.js': + /*!************************************!*\ !*** ./src/dagre-wrapper/index.js ***! \************************************/ -/*! exports provided: render */function(e,t,n){"use strict";n.r(t),n.d(t,"render",(function(){return p}));var r=n(/*! dagre */"dagre"),i=n.n(r),o=n(/*! graphlib */"graphlib"),s=n.n(o),a=n(/*! ./markers */"./src/dagre-wrapper/markers.js"),u=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),l=n(/*! ./mermaid-graphlib */"./src/dagre-wrapper/mermaid-graphlib.js"),c=n(/*! ./nodes */"./src/dagre-wrapper/nodes.js"),d=n(/*! ./clusters */"./src/dagre-wrapper/clusters.js"),h=n(/*! ./edges */"./src/dagre-wrapper/edges.js"),f=n(/*! ../logger */"./src/logger.js"),p=function(e,t,n,r,o){Object(a.default)(e,n,r,o),Object(c.clear)(),Object(h.clear)(),Object(d.clear)(),Object(l.clear)(),f.logger.warn("Graph at first:",s.a.json.write(t)),Object(l.adjustClustersAndEdges)(t),f.logger.warn("Graph after:",s.a.json.write(t)),function e(t,n,r,o){f.logger.info("Graph in recursive render: XXX",s.a.json.write(n),o);var a=n.graph().rankdir;f.logger.warn("Dir in recursive render - dir:",a);var p=t.insert("g").attr("class","root");n.nodes()?f.logger.info("Recursive render XXX",n.nodes()):f.logger.info("No nodes found for",n),n.edges().length>0&&f.logger.info("Recursive edges",n.edge(n.edges()[0]));var g=p.insert("g").attr("class","clusters"),m=p.insert("g").attr("class","edgePaths"),_=p.insert("g").attr("class","edgeLabels"),y=p.insert("g").attr("class","nodes");return n.nodes().forEach((function(t){var i=n.node(t);if(void 0!==o){var s=JSON.parse(JSON.stringify(o.clusterData));f.logger.info("Setting data for cluster XXX (",t,") ",s,o),n.setNode(o.id,s),n.parent(t)||(f.logger.warn("Setting parent",t,o.id),n.setParent(t,o.id,s))}if(f.logger.info("(Insert) Node XXX"+t+": "+JSON.stringify(n.node(t))),i&&i.clusterNode){f.logger.info("Cluster identified",t,i,n.node(t));var d=e(y,i.graph,r,n.node(t));Object(u.updateNodeBounds)(i,d),Object(c.setNodeElem)(d,i),f.logger.warn("Recursive render complete",d,i)}else n.children(t).length>0?(f.logger.info("Cluster - the non recursive path XXX",t,i.id,i,n),f.logger.info(Object(l.findNonClusterChild)(i.id,n)),l.clusterDb[i.id]={id:Object(l.findNonClusterChild)(i.id,n),node:i}):(f.logger.info("Node - the non recursive path",t,i.id,i),Object(c.insertNode)(y,n.node(t),a))})),n.edges().forEach((function(e){var t=n.edge(e.v,e.w,e.name);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e)),f.logger.info("Edge "+e.v+" -> "+e.w+": ",e," ",JSON.stringify(n.edge(e))),f.logger.info("Fix",l.clusterDb,"ids:",e.v,e.w,"Translateing: ",l.clusterDb[e.v],l.clusterDb[e.w]),Object(h.insertEdgeLabel)(_,t)})),n.edges().forEach((function(e){f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(e))})),f.logger.info("#############################################"),f.logger.info("### Layout ###"),f.logger.info("#############################################"),f.logger.info(n),i.a.layout(n),f.logger.info("Graph after layout:",s.a.json.write(n)),Object(l.sortNodesByHierarchy)(n).forEach((function(e){var t=n.node(e);f.logger.info("Position "+e+": "+JSON.stringify(n.node(e))),f.logger.info("Position "+e+": ("+t.x,","+t.y,") width: ",t.width," height: ",t.height),t&&t.clusterNode?Object(c.positionNode)(t):n.children(e).length>0?(Object(d.insertCluster)(g,t),l.clusterDb[t.id].node=t):Object(c.positionNode)(t)})),n.edges().forEach((function(e){var t=n.edge(e);f.logger.info("Edge "+e.v+" -> "+e.w+": "+JSON.stringify(t),t);var i=Object(h.insertEdge)(m,e,t,l.clusterDb,r,n);Object(h.positionEdgeLabel)(t,i)})),p}(e,t,r)}},"./src/dagre-wrapper/intersect/index.js": -/*!**********************************************!*\ + /*! exports provided: render */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'render', function () { + return p; + }); + var r = n(/*! dagre */ 'dagre'), + i = n.n(r), + o = n(/*! graphlib */ 'graphlib'), + s = n.n(o), + a = n(/*! ./markers */ './src/dagre-wrapper/markers.js'), + u = n( + /*! ./shapes/util */ './src/dagre-wrapper/shapes/util.js' + ), + l = n( + /*! ./mermaid-graphlib */ './src/dagre-wrapper/mermaid-graphlib.js' + ), + c = n(/*! ./nodes */ './src/dagre-wrapper/nodes.js'), + d = n(/*! ./clusters */ './src/dagre-wrapper/clusters.js'), + h = n(/*! ./edges */ './src/dagre-wrapper/edges.js'), + f = n(/*! ../logger */ './src/logger.js'), + p = function (e, t, n, r, o) { + Object(a.default)(e, n, r, o), + Object(c.clear)(), + Object(h.clear)(), + Object(d.clear)(), + Object(l.clear)(), + f.logger.warn('Graph at first:', s.a.json.write(t)), + Object(l.adjustClustersAndEdges)(t), + f.logger.warn('Graph after:', s.a.json.write(t)), + (function e(t, n, r, o) { + f.logger.info( + 'Graph in recursive render: XXX', + s.a.json.write(n), + o + ); + var a = n.graph().rankdir; + f.logger.warn('Dir in recursive render - dir:', a); + var p = t.insert('g').attr('class', 'root'); + n.nodes() + ? f.logger.info('Recursive render XXX', n.nodes()) + : f.logger.info('No nodes found for', n), + n.edges().length > 0 && + f.logger.info( + 'Recursive edges', + n.edge(n.edges()[0]) + ); + var g = p.insert('g').attr('class', 'clusters'), + m = p.insert('g').attr('class', 'edgePaths'), + _ = p.insert('g').attr('class', 'edgeLabels'), + y = p.insert('g').attr('class', 'nodes'); + return ( + n.nodes().forEach(function (t) { + var i = n.node(t); + if (void 0 !== o) { + var s = JSON.parse(JSON.stringify(o.clusterData)); + f.logger.info( + 'Setting data for cluster XXX (', + t, + ') ', + s, + o + ), + n.setNode(o.id, s), + n.parent(t) || + (f.logger.warn('Setting parent', t, o.id), + n.setParent(t, o.id, s)); + } + if ( + (f.logger.info( + '(Insert) Node XXX' + + t + + ': ' + + JSON.stringify(n.node(t)) + ), + i && i.clusterNode) + ) { + f.logger.info( + 'Cluster identified', + t, + i, + n.node(t) + ); + var d = e(y, i.graph, r, n.node(t)); + Object(u.updateNodeBounds)(i, d), + Object(c.setNodeElem)(d, i), + f.logger.warn('Recursive render complete', d, i); + } else n.children(t).length > 0 ? (f.logger.info('Cluster - the non recursive path XXX', t, i.id, i, n), f.logger.info(Object(l.findNonClusterChild)(i.id, n)), (l.clusterDb[i.id] = { id: Object(l.findNonClusterChild)(i.id, n), node: i })) : (f.logger.info('Node - the non recursive path', t, i.id, i), Object(c.insertNode)(y, n.node(t), a)); + }), + n.edges().forEach(function (e) { + var t = n.edge(e.v, e.w, e.name); + f.logger.info( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(e) + ), + f.logger.info( + 'Edge ' + e.v + ' -> ' + e.w + ': ', + e, + ' ', + JSON.stringify(n.edge(e)) + ), + f.logger.info( + 'Fix', + l.clusterDb, + 'ids:', + e.v, + e.w, + 'Translateing: ', + l.clusterDb[e.v], + l.clusterDb[e.w] + ), + Object(h.insertEdgeLabel)(_, t); + }), + n.edges().forEach(function (e) { + f.logger.info( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(e) + ); + }), + f.logger.info( + '#############################################' + ), + f.logger.info( + '### Layout ###' + ), + f.logger.info( + '#############################################' + ), + f.logger.info(n), + i.a.layout(n), + f.logger.info('Graph after layout:', s.a.json.write(n)), + Object(l.sortNodesByHierarchy)(n).forEach(function (e) { + var t = n.node(e); + f.logger.info( + 'Position ' + e + ': ' + JSON.stringify(n.node(e)) + ), + f.logger.info( + 'Position ' + e + ': (' + t.x, + ',' + t.y, + ') width: ', + t.width, + ' height: ', + t.height + ), + t && t.clusterNode + ? Object(c.positionNode)(t) + : n.children(e).length > 0 + ? (Object(d.insertCluster)(g, t), + (l.clusterDb[t.id].node = t)) + : Object(c.positionNode)(t); + }), + n.edges().forEach(function (e) { + var t = n.edge(e); + f.logger.info( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(t), + t + ); + var i = Object(h.insertEdge)( + m, + e, + t, + l.clusterDb, + r, + n + ); + Object(h.positionEdgeLabel)(t, i); + }), + p + ); + })(e, t, r); + }; + }, + './src/dagre-wrapper/intersect/index.js': + /*!**********************************************!*\ !*** ./src/dagre-wrapper/intersect/index.js ***! \**********************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-node.js */"./src/dagre-wrapper/intersect/intersect-node.js"),i=n.n(r),o=n(/*! ./intersect-circle.js */"./src/dagre-wrapper/intersect/intersect-circle.js"),s=n(/*! ./intersect-ellipse.js */"./src/dagre-wrapper/intersect/intersect-ellipse.js"),a=n(/*! ./intersect-polygon.js */"./src/dagre-wrapper/intersect/intersect-polygon.js"),u=n(/*! ./intersect-rect.js */"./src/dagre-wrapper/intersect/intersect-rect.js");t.default={node:i.a,circle:o.default,ellipse:s.default,polygon:a.default,rect:u.default}},"./src/dagre-wrapper/intersect/intersect-circle.js": -/*!*********************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = n( + /*! ./intersect-node.js */ './src/dagre-wrapper/intersect/intersect-node.js' + ), + i = n.n(r), + o = n( + /*! ./intersect-circle.js */ './src/dagre-wrapper/intersect/intersect-circle.js' + ), + s = n( + /*! ./intersect-ellipse.js */ './src/dagre-wrapper/intersect/intersect-ellipse.js' + ), + a = n( + /*! ./intersect-polygon.js */ './src/dagre-wrapper/intersect/intersect-polygon.js' + ), + u = n( + /*! ./intersect-rect.js */ './src/dagre-wrapper/intersect/intersect-rect.js' + ); + t.default = { + node: i.a, + circle: o.default, + ellipse: s.default, + polygon: a.default, + rect: u.default, + }; + }, + './src/dagre-wrapper/intersect/intersect-circle.js': + /*!*********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-circle.js ***! \*********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-ellipse */"./src/dagre-wrapper/intersect/intersect-ellipse.js");t.default=function(e,t,n){return Object(r.default)(e,t,t,n)}},"./src/dagre-wrapper/intersect/intersect-ellipse.js": -/*!**********************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = n( + /*! ./intersect-ellipse */ './src/dagre-wrapper/intersect/intersect-ellipse.js' + ); + t.default = function (e, t, n) { + return Object(r.default)(e, t, t, n); + }; + }, + './src/dagre-wrapper/intersect/intersect-ellipse.js': + /*!**********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-ellipse.js ***! \**********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t,n,r){var i=e.x,o=e.y,s=i-r.x,a=o-r.y,u=Math.sqrt(t*t*a*a+n*n*s*s),l=Math.abs(t*n*s/u);r.x0}n.r(t),t.default=function(e,t,n,i){var o,s,a,u,l,c,d,h,f,p,g,m,_;if(o=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,f=o*n.x+a*n.y+l,p=o*i.x+a*i.y+l,!(0!==f&&0!==p&&r(f,p)||(s=i.y-n.y,u=n.x-i.x,c=i.x*n.y-n.x*i.y,d=s*e.x+u*e.y+c,h=s*t.x+u*t.y+c,0!==d&&0!==h&&r(d,h)||0==(g=o*u-s*a))))return m=Math.abs(g/2),{x:(_=a*c-u*l)<0?(_-m)/g:(_+m)/g,y:(_=s*l-o*c)<0?(_-m)/g:(_+m)/g}}},"./src/dagre-wrapper/intersect/intersect-node.js": -/*!*******************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + function r(e, t) { + return e * t > 0; + } + n.r(t), + (t.default = function (e, t, n, i) { + var o, s, a, u, l, c, d, h, f, p, g, m, _; + if ( + ((o = t.y - e.y), + (a = e.x - t.x), + (l = t.x * e.y - e.x * t.y), + (f = o * n.x + a * n.y + l), + (p = o * i.x + a * i.y + l), + !( + (0 !== f && 0 !== p && r(f, p)) || + ((s = i.y - n.y), + (u = n.x - i.x), + (c = i.x * n.y - n.x * i.y), + (d = s * e.x + u * e.y + c), + (h = s * t.x + u * t.y + c), + (0 !== d && 0 !== h && r(d, h)) || + 0 == (g = o * u - s * a)) + )) + ) + return ( + (m = Math.abs(g / 2)), + { + x: (_ = a * c - u * l) < 0 ? (_ - m) / g : (_ + m) / g, + y: (_ = s * l - o * c) < 0 ? (_ - m) / g : (_ + m) / g, + } + ); + }); + }, + './src/dagre-wrapper/intersect/intersect-node.js': + /*!*******************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-node.js ***! \*******************************************************/ -/*! no static exports found */function(e,t){e.exports=function(e,t){return e.intersect(t)}},"./src/dagre-wrapper/intersect/intersect-polygon.js": -/*!**********************************************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = function (e, t) { + return e.intersect(t); + }; + }, + './src/dagre-wrapper/intersect/intersect-polygon.js': + /*!**********************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-polygon.js ***! \**********************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./intersect-line */"./src/dagre-wrapper/intersect/intersect-line.js");t.default=function(e,t,n){var i=e.x,o=e.y,s=[],a=Number.POSITIVE_INFINITY,u=Number.POSITIVE_INFINITY;"function"==typeof t.forEach?t.forEach((function(e){a=Math.min(a,e.x),u=Math.min(u,e.y)})):(a=Math.min(a,t.x),u=Math.min(u,t.y));for(var l=i-e.width/2-a,c=o-e.height/2-u,d=0;d1&&s.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),s=t.x-n.x,a=t.y-n.y,u=Math.sqrt(s*s+a*a);return o 1 && + s.sort(function (e, t) { + var r = e.x - n.x, + i = e.y - n.y, + o = Math.sqrt(r * r + i * i), + s = t.x - n.x, + a = t.y - n.y, + u = Math.sqrt(s * s + a * a); + return o < u ? -1 : o === u ? 0 : 1; + }), + s[0]) + : e; + }; + }, + './src/dagre-wrapper/intersect/intersect-rect.js': + /*!*******************************************************!*\ !*** ./src/dagre-wrapper/intersect/intersect-rect.js ***! \*******************************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e,t){var n,r,i=e.x,o=e.y,s=t.x-i,a=t.y-o,u=e.width/2,l=e.height/2;return Math.abs(a)*u>Math.abs(s)*l?(a<0&&(l=-l),n=0===a?0:l*s/a,r=l):(s<0&&(u=-u),n=u,r=0===s?0:u*a/s),{x:i+n,y:o+r}}},"./src/dagre-wrapper/markers.js": -/*!**************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e, t) { + var n, + r, + i = e.x, + o = e.y, + s = t.x - i, + a = t.y - o, + u = e.width / 2, + l = e.height / 2; + return ( + Math.abs(a) * u > Math.abs(s) * l + ? (a < 0 && (l = -l), + (n = 0 === a ? 0 : (l * s) / a), + (r = l)) + : (s < 0 && (u = -u), + (n = u), + (r = 0 === s ? 0 : (u * a) / s)), + { x: i + n, y: o + r } + ); + }); + }, + './src/dagre-wrapper/markers.js': + /*!**************************************!*\ !*** ./src/dagre-wrapper/markers.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ../logger */"./src/logger.js"),i={extension:function(e,t,n){r.logger.trace("Making markers for ",n),e.append("defs").append("marker").attr("id",t+"-extensionStart").attr("class","marker extension "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),e.append("defs").append("marker").attr("id",t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},composition:function(e,t){e.append("defs").append("marker").attr("id",t+"-compositionStart").attr("class","marker composition "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},aggregation:function(e,t){e.append("defs").append("marker").attr("id",t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},dependency:function(e,t){e.append("defs").append("marker").attr("id",t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",0).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),e.append("defs").append("marker").attr("id",t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},point:function(e,t){e.append("marker").attr("id",t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",12).attr("markerHeight",12).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},circle:function(e,t){e.append("marker").attr("id",t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},cross:function(e,t){e.append("marker").attr("id",t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),e.append("marker").attr("id",t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},barb:function(e,t){e.append("defs").append("marker").attr("id",t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","strokeWidth").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")}};t.default=function(e,t,n,r){t.forEach((function(t){i[t](e,n,r)}))}},"./src/dagre-wrapper/mermaid-graphlib.js": -/*!***********************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = n(/*! ../logger */ './src/logger.js'), + i = { + extension: function (e, t, n) { + r.logger.trace('Making markers for ', n), + e + .append('defs') + .append('marker') + .attr('id', t + '-extensionStart') + .attr('class', 'marker extension ' + t) + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,7 L18,13 V 1 Z'), + e + .append('defs') + .append('marker') + .attr('id', t + '-extensionEnd') + .attr('class', 'marker extension ' + t) + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,1 V 13 L18,7 Z'); + }, + composition: function (e, t) { + e + .append('defs') + .append('marker') + .attr('id', t + '-compositionStart') + .attr('class', 'marker composition ' + t) + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + e + .append('defs') + .append('marker') + .attr('id', t + '-compositionEnd') + .attr('class', 'marker composition ' + t) + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + }, + aggregation: function (e, t) { + e + .append('defs') + .append('marker') + .attr('id', t + '-aggregationStart') + .attr('class', 'marker aggregation ' + t) + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + e + .append('defs') + .append('marker') + .attr('id', t + '-aggregationEnd') + .attr('class', 'marker aggregation ' + t) + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'); + }, + dependency: function (e, t) { + e + .append('defs') + .append('marker') + .attr('id', t + '-dependencyStart') + .attr('class', 'marker dependency ' + t) + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'), + e + .append('defs') + .append('marker') + .attr('id', t + '-dependencyEnd') + .attr('class', 'marker dependency ' + t) + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); + }, + point: function (e, t) { + e + .append('marker') + .attr('id', t + '-pointEnd') + .attr('class', 'marker ' + t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 12) + .attr('markerHeight', 12) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 10 5 L 0 10 z') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'), + e + .append('marker') + .attr('id', t + '-pointStart') + .attr('class', 'marker ' + t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 0) + .attr('refY', 5) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 12) + .attr('markerHeight', 12) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 5 L 10 10 L 10 0 z') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + }, + circle: function (e, t) { + e + .append('marker') + .attr('id', t + '-circleEnd') + .attr('class', 'marker ' + t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 11) + .attr('refY', 5) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 11) + .attr('markerHeight', 11) + .attr('orient', 'auto') + .append('circle') + .attr('cx', '5') + .attr('cy', '5') + .attr('r', '5') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'), + e + .append('marker') + .attr('id', t + '-circleStart') + .attr('class', 'marker ' + t) + .attr('viewBox', '0 0 10 10') + .attr('refX', -1) + .attr('refY', 5) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 11) + .attr('markerHeight', 11) + .attr('orient', 'auto') + .append('circle') + .attr('cx', '5') + .attr('cy', '5') + .attr('r', '5') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + }, + cross: function (e, t) { + e + .append('marker') + .attr('id', t + '-crossEnd') + .attr('class', 'marker cross ' + t) + .attr('viewBox', '0 0 11 11') + .attr('refX', 12) + .attr('refY', 5.2) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 11) + .attr('markerHeight', 11) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 2) + .style('stroke-dasharray', '1,0'), + e + .append('marker') + .attr('id', t + '-crossStart') + .attr('class', 'marker cross ' + t) + .attr('viewBox', '0 0 11 11') + .attr('refX', -1) + .attr('refY', 5.2) + .attr('markerUnits', 'userSpaceOnUse') + .attr('markerWidth', 11) + .attr('markerHeight', 11) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,1 l 9,9 M 10,1 l -9,9') + .attr('class', 'arrowMarkerPath') + .style('stroke-width', 2) + .style('stroke-dasharray', '1,0'); + }, + barb: function (e, t) { + e.append('defs') + .append('marker') + .attr('id', t + '-barbEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 14) + .attr('markerUnits', 'strokeWidth') + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'); + }, + }; + t.default = function (e, t, n, r) { + t.forEach(function (t) { + i[t](e, n, r); + }); + }; + }, + './src/dagre-wrapper/mermaid-graphlib.js': + /*!***********************************************!*\ !*** ./src/dagre-wrapper/mermaid-graphlib.js ***! \***********************************************/ -/*! exports provided: clusterDb, clear, extractDecendants, validate, findNonClusterChild, adjustClustersAndEdges, extractor, sortNodesByHierarchy */function(e,t,n){"use strict";n.r(t),n.d(t,"clusterDb",(function(){return s})),n.d(t,"clear",(function(){return l})),n.d(t,"extractDecendants",(function(){return h})),n.d(t,"validate",(function(){return f})),n.d(t,"findNonClusterChild",(function(){return p})),n.d(t,"adjustClustersAndEdges",(function(){return m})),n.d(t,"extractor",(function(){return _})),n.d(t,"sortNodesByHierarchy",(function(){return y}));var r=n(/*! ../logger */"./src/logger.js"),i=n(/*! graphlib */"graphlib"),o=n.n(i),s={},a={},u={},l=function(){a={},u={},s={}},c=function(e,t){return r.logger.debug("In isDecendant",t," ",e," = ",a[t].indexOf(e)>=0),a[t].indexOf(e)>=0},d=function e(t,n,i,o){r.logger.warn("Copying children of ",t,"root",o,"data",n.node(t),o);var s=n.children(t)||[];t!==o&&s.push(t),r.logger.warn("Copying (nodes) clusterId",t,"nodes",s),s.forEach((function(s){if(n.children(s).length>0)e(s,n,i,o);else{var u=n.node(s);r.logger.info("cp ",s," to ",o," with parent ",t),i.setNode(s,u),o!==n.parent(s)&&(r.logger.warn("Setting parent",s,n.parent(s)),i.setParent(s,n.parent(s))),t!==o&&s!==t?(r.logger.debug("Setting parent",s,t),i.setParent(s,t)):(r.logger.info("In copy ",t,"root",o,"data",n.node(t),o),r.logger.debug("Not Setting parent for node=",s,"cluster!==rootId",t!==o,"node!==clusterId",s!==t));var l=n.edges(s);r.logger.debug("Copying Edges",l),l.forEach((function(e){r.logger.info("Edge",e);var s=n.edge(e.v,e.w,e.name);r.logger.info("Edge data",s,o);try{!function(e,t){return r.logger.info("Decendants of ",t," is ",a[t]),r.logger.info("Edge is ",e),e.v!==t&&e.w!==t&&(a[t]?(r.logger.info("Here "),a[t].indexOf(e.v)>=0||!!c(e.v,t)||!!c(e.w,t)||a[t].indexOf(e.w)>=0):(r.logger.debug("Tilt, ",t,",not in decendants"),!1))}(e,o)?r.logger.info("Skipping copy of edge ",e.v,"--\x3e",e.w," rootId: ",o," clusterId:",t):(r.logger.info("Copying as ",e.v,e.w,s,e.name),i.setEdge(e.v,e.w,s,e.name),r.logger.info("newGraph edges ",i.edges(),i.edge(i.edges()[0])))}catch(e){r.logger.error(e)}}))}r.logger.debug("Removing node",s),n.removeNode(s)}))},h=function e(t,n){for(var r=n.children(t),i=[].concat(r),o=0;o0)return r.logger.trace("The node ",t[n].v," is part of and edge even though it has children"),!1;if(e.children(t[n].w).length>0)return r.logger.trace("The node ",t[n].w," is part of and edge even though it has children"),!1}return!0},p=function e(t,n){r.logger.trace("Searching",t);var i=n.children(t);if(r.logger.trace("Searching children of id ",t,i),i.length<1)return r.logger.trace("This is a valid node",t),t;for(var o=0;o ",s),s}},g=function(e){return s[e]&&s[e].externalConnections&&s[e]?s[e].id:e},m=function(e,t){!e||t>10?r.logger.debug("Opting out, no graph "):(r.logger.debug("Opting in, graph "),e.nodes().forEach((function(t){e.children(t).length>0&&(r.logger.warn("Cluster identified",t," Replacement id in edges: ",p(t,e)),a[t]=h(t,e),s[t]={id:p(t,e),clusterData:e.node(t)})})),e.nodes().forEach((function(t){var n=e.children(t),i=e.edges();n.length>0?(r.logger.debug("Cluster identified",t,a),i.forEach((function(e){e.v!==t&&e.w!==t&&c(e.v,t)^c(e.w,t)&&(r.logger.warn("Edge: ",e," leaves cluster ",t),r.logger.warn("Decendants of XXX ",t,": ",a[t]),s[t].externalConnections=!0)}))):r.logger.debug("Not a cluster ",t,a)})),e.edges().forEach((function(t){var n=e.edge(t);r.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(t)),r.logger.warn("Edge "+t.v+" -> "+t.w+": "+JSON.stringify(e.edge(t)));var i=t.v,o=t.w;r.logger.warn("Fix XXX",s,"ids:",t.v,t.w,"Translateing: ",s[t.v]," --- ",s[t.w]),(s[t.v]||s[t.w])&&(r.logger.warn("Fixing and trixing - removing XXX",t.v,t.w,t.name),i=g(t.v),o=g(t.w),e.removeEdge(t.v,t.w,t.name),i!==t.v&&(n.fromCluster=t.v),o!==t.w&&(n.toCluster=t.w),r.logger.warn("Fix Replacing with XXX",i,o,t.name),e.setEdge(i,o,n,t.name))})),r.logger.warn("Adjusted Graph",o.a.json.write(e)),_(e,0),r.logger.trace(s))},_=function e(t,n){if(r.logger.warn("extractor - ",n,o.a.json.write(t),t.children("D")),n>10)r.logger.error("Bailing out");else{for(var i=t.nodes(),a=!1,u=0;u0}if(a){r.logger.debug("Nodes = ",i,n);for(var h=0;h0){r.logger.warn("Cluster without external connections, without a parent and with children",f,n);var p=t.graph(),g=new o.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB"===p.rankdir?"LR":"TB",nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));r.logger.warn("Old graph before copy",o.a.json.write(t)),d(f,t,g,f),t.setNode(f,{clusterNode:!0,id:f,clusterData:s[f].clusterData,labelText:s[f].labelText,graph:g}),r.logger.warn("New graph after copy node: (",f,")",o.a.json.write(g)),r.logger.debug("Old graph after copy",o.a.json.write(t))}else r.logger.warn("Cluster ** ",f," **not meeting the criteria !externalConnections:",!s[f].externalConnections," no parent: ",!t.parent(f)," children ",t.children(f)&&t.children(f).length>0,t.children("D"),n),r.logger.debug(s);else r.logger.debug("Not a cluster",f,n)}i=t.nodes(),r.logger.warn("New list of nodes",i);for(var m=0;m 0) e(s, n, i, o); + else { + var u = n.node(s); + r.logger.info('cp ', s, ' to ', o, ' with parent ', t), + i.setNode(s, u), + o !== n.parent(s) && + (r.logger.warn('Setting parent', s, n.parent(s)), + i.setParent(s, n.parent(s))), + t !== o && s !== t + ? (r.logger.debug('Setting parent', s, t), + i.setParent(s, t)) + : (r.logger.info( + 'In copy ', + t, + 'root', + o, + 'data', + n.node(t), + o + ), + r.logger.debug( + 'Not Setting parent for node=', + s, + 'cluster!==rootId', + t !== o, + 'node!==clusterId', + s !== t + )); + var l = n.edges(s); + r.logger.debug('Copying Edges', l), + l.forEach(function (e) { + r.logger.info('Edge', e); + var s = n.edge(e.v, e.w, e.name); + r.logger.info('Edge data', s, o); + try { + !(function (e, t) { + return ( + r.logger.info( + 'Decendants of ', + t, + ' is ', + a[t] + ), + r.logger.info('Edge is ', e), + e.v !== t && + e.w !== t && + (a[t] + ? (r.logger.info('Here '), + a[t].indexOf(e.v) >= 0 || + !!c(e.v, t) || + !!c(e.w, t) || + a[t].indexOf(e.w) >= 0) + : (r.logger.debug( + 'Tilt, ', + t, + ',not in decendants' + ), + !1)) + ); + })(e, o) + ? r.logger.info( + 'Skipping copy of edge ', + e.v, + '--\x3e', + e.w, + ' rootId: ', + o, + ' clusterId:', + t + ) + : (r.logger.info( + 'Copying as ', + e.v, + e.w, + s, + e.name + ), + i.setEdge(e.v, e.w, s, e.name), + r.logger.info( + 'newGraph edges ', + i.edges(), + i.edge(i.edges()[0]) + )); + } catch (e) { + r.logger.error(e); + } + }); + } + r.logger.debug('Removing node', s), n.removeNode(s); + }); + }, + h = function e(t, n) { + for ( + var r = n.children(t), i = [].concat(r), o = 0; + o < r.length; + o++ + ) + (u[r[o]] = t), (i = i.concat(e(r[o], n))); + return i; + }, + f = function (e) { + var t = e.edges(); + r.logger.trace('Edges: ', t); + for (var n = 0; n < t.length; n++) { + if (e.children(t[n].v).length > 0) + return ( + r.logger.trace( + 'The node ', + t[n].v, + ' is part of and edge even though it has children' + ), + !1 + ); + if (e.children(t[n].w).length > 0) + return ( + r.logger.trace( + 'The node ', + t[n].w, + ' is part of and edge even though it has children' + ), + !1 + ); + } + return !0; + }, + p = function e(t, n) { + r.logger.trace('Searching', t); + var i = n.children(t); + if ( + (r.logger.trace('Searching children of id ', t, i), + i.length < 1) + ) + return r.logger.trace('This is a valid node', t), t; + for (var o = 0; o < i.length; o++) { + var s = e(i[o], n); + if (s) + return ( + r.logger.trace('Found replacement for', t, ' => ', s), s + ); + } + }, + g = function (e) { + return s[e] && s[e].externalConnections && s[e] ? s[e].id : e; + }, + m = function (e, t) { + !e || t > 10 + ? r.logger.debug('Opting out, no graph ') + : (r.logger.debug('Opting in, graph '), + e.nodes().forEach(function (t) { + e.children(t).length > 0 && + (r.logger.warn( + 'Cluster identified', + t, + ' Replacement id in edges: ', + p(t, e) + ), + (a[t] = h(t, e)), + (s[t] = { id: p(t, e), clusterData: e.node(t) })); + }), + e.nodes().forEach(function (t) { + var n = e.children(t), + i = e.edges(); + n.length > 0 + ? (r.logger.debug('Cluster identified', t, a), + i.forEach(function (e) { + e.v !== t && + e.w !== t && + c(e.v, t) ^ c(e.w, t) && + (r.logger.warn( + 'Edge: ', + e, + ' leaves cluster ', + t + ), + r.logger.warn( + 'Decendants of XXX ', + t, + ': ', + a[t] + ), + (s[t].externalConnections = !0)); + })) + : r.logger.debug('Not a cluster ', t, a); + }), + e.edges().forEach(function (t) { + var n = e.edge(t); + r.logger.warn( + 'Edge ' + + t.v + + ' -> ' + + t.w + + ': ' + + JSON.stringify(t) + ), + r.logger.warn( + 'Edge ' + + t.v + + ' -> ' + + t.w + + ': ' + + JSON.stringify(e.edge(t)) + ); + var i = t.v, + o = t.w; + r.logger.warn( + 'Fix XXX', + s, + 'ids:', + t.v, + t.w, + 'Translateing: ', + s[t.v], + ' --- ', + s[t.w] + ), + (s[t.v] || s[t.w]) && + (r.logger.warn( + 'Fixing and trixing - removing XXX', + t.v, + t.w, + t.name + ), + (i = g(t.v)), + (o = g(t.w)), + e.removeEdge(t.v, t.w, t.name), + i !== t.v && (n.fromCluster = t.v), + o !== t.w && (n.toCluster = t.w), + r.logger.warn( + 'Fix Replacing with XXX', + i, + o, + t.name + ), + e.setEdge(i, o, n, t.name)); + }), + r.logger.warn('Adjusted Graph', o.a.json.write(e)), + _(e, 0), + r.logger.trace(s)); + }, + _ = function e(t, n) { + if ( + (r.logger.warn( + 'extractor - ', + n, + o.a.json.write(t), + t.children('D') + ), + n > 10) + ) + r.logger.error('Bailing out'); + else { + for (var i = t.nodes(), a = !1, u = 0; u < i.length; u++) { + var l = i[u], + c = t.children(l); + a = a || c.length > 0; + } + if (a) { + r.logger.debug('Nodes = ', i, n); + for (var h = 0; h < i.length; h++) { + var f = i[h]; + if ( + (r.logger.debug( + 'Extracting node', + f, + s, + s[f] && !s[f].externalConnections, + !t.parent(f), + t.node(f), + t.children('D'), + ' Depth ', + n + ), + s[f]) + ) + if ( + !s[f].externalConnections && + t.children(f) && + t.children(f).length > 0 + ) { + r.logger.warn( + 'Cluster without external connections, without a parent and with children', + f, + n + ); + var p = t.graph(), + g = new o.a.Graph({ + multigraph: !0, + compound: !0, + }) + .setGraph({ + rankdir: 'TB' === p.rankdir ? 'LR' : 'TB', + nodesep: 50, + ranksep: 50, + marginx: 8, + marginy: 8, + }) + .setDefaultEdgeLabel(function () { + return {}; + }); + r.logger.warn( + 'Old graph before copy', + o.a.json.write(t) + ), + d(f, t, g, f), + t.setNode(f, { + clusterNode: !0, + id: f, + clusterData: s[f].clusterData, + labelText: s[f].labelText, + graph: g, + }), + r.logger.warn( + 'New graph after copy node: (', + f, + ')', + o.a.json.write(g) + ), + r.logger.debug( + 'Old graph after copy', + o.a.json.write(t) + ); + } else + r.logger.warn( + 'Cluster ** ', + f, + ' **not meeting the criteria !externalConnections:', + !s[f].externalConnections, + ' no parent: ', + !t.parent(f), + ' children ', + t.children(f) && t.children(f).length > 0, + t.children('D'), + n + ), + r.logger.debug(s); + else r.logger.debug('Not a cluster', f, n); + } + (i = t.nodes()), r.logger.warn('New list of nodes', i); + for (var m = 0; m < i.length; m++) { + var _ = i[m], + y = t.node(_); + r.logger.warn(' Now next level', _, y), + y.clusterNode && e(y.graph, n + 1); + } + } else + r.logger.debug('Done, no node has children', t.nodes()); + } + }, + y = function (e) { + return (function e(t, n) { + if (0 === n.length) return []; + var r = Object.assign(n); + return ( + n.forEach(function (n) { + var i = t.children(n), + o = e(t, i); + r = r.concat(o); + }), + r + ); + })(e, e.children()); + }; + }, + './src/dagre-wrapper/nodes.js': + /*!************************************!*\ !*** ./src/dagre-wrapper/nodes.js ***! \************************************/ -/*! exports provided: insertNode, setNodeElem, clear, positionNode */function(e,t,n){"use strict";n.r(t),n.d(t,"insertNode",(function(){return p})),n.d(t,"setNodeElem",(function(){return g})),n.d(t,"clear",(function(){return m})),n.d(t,"positionNode",(function(){return _}));var r=n(/*! d3 */"d3"),i=n(/*! ../logger */"./src/logger.js"),o=n(/*! ./shapes/util */"./src/dagre-wrapper/shapes/util.js"),s=n(/*! ../config */"./src/config.js"),a=n(/*! ./intersect/index.js */"./src/dagre-wrapper/intersect/index.js"),u=n(/*! ./createLabel */"./src/dagre-wrapper/createLabel.js"),l=n(/*! ./shapes/note */"./src/dagre-wrapper/shapes/note.js"),c=n(/*! ../diagrams/class/svgDraw */"./src/diagrams/class/svgDraw.js"),d=function(e,t,n){var r=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),i=70,s=10;"LR"===n&&(i=10,s=70);var u=r.append("rect").style("stroke","black").style("fill","black").attr("x",-1*i/2).attr("y",-1*s/2).attr("width",i).attr("height",s).attr("class","fork-join");return Object(o.updateNodeBounds)(t,u),t.height=t.height+t.padding/2,t.width=t.width+t.padding/2,t.intersect=function(e){return a.default.rect(t,e)},r},h={question:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,s=n.bbox,u=s.width+t.padding+(s.height+t.padding),l=[{x:u/2,y:0},{x:u,y:-u/2},{x:u/2,y:-u},{x:0,y:-u/2}];i.logger.info("Question main (Circle)");var c=Object(o.insertPolygonShape)(r,u,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return i.logger.warn("Intersect called"),a.default.polygon(t,l,e)},r},rect:function(e,t){var n=Object(o.labelHelper)(e,t,"node "+t.classes,!0),r=n.shapeSvg,s=n.bbox,u=n.halfPadding;i.logger.trace("Classes = ",t.classes);var l=r.insert("rect",":first-child");return l.attr("class","basic label-container").attr("style",t.style).attr("rx",t.rx).attr("ry",t.ry).attr("x",-s.width/2-u).attr("y",-s.height/2-u).attr("width",s.width+t.padding).attr("height",s.height+t.padding),Object(o.updateNodeBounds)(t,l),t.intersect=function(e){return a.default.rect(t,e)},r},rectWithTitle:function(e,t){var n;n=t.classes?"node "+t.classes:"node default";var l=e.insert("g").attr("class",n).attr("id",t.domId||t.id),c=l.insert("rect",":first-child"),d=l.insert("line"),h=l.insert("g").attr("class","label"),f=t.labelText.flat();i.logger.info("Label text",f[0]);var p,g=h.node().appendChild(Object(u.default)(f[0],t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var m=g.children[0],_=Object(r.select)(g);p=m.getBoundingClientRect(),_.attr("width",p.width),_.attr("height",p.height)}i.logger.info("Text 2",f);var y=f.slice(1,f.length),v=g.getBBox(),b=h.node().appendChild(Object(u.default)(y.join("
"),t.labelStyle,!0,!0));if(Object(s.getConfig)().flowchart.htmlLabels){var w=b.children[0],C=Object(r.select)(b);p=w.getBoundingClientRect(),C.attr("width",p.width),C.attr("height",p.height)}var S=t.padding/2;return Object(r.select)(b).attr("transform","translate( "+(p.width>v.width?0:(v.width-p.width)/2)+", "+(v.height+S+5)+")"),Object(r.select)(g).attr("transform","translate( "+(p.widtht.height/2-l)){var i=l*l*(1-r*r/(u*u));0!=i&&(i=Math.sqrt(i)),i=l-i,e.y-t.y>0&&(i=-i),n.y+=i}return n},r},start:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child");return r.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),Object(o.updateNodeBounds)(t,r),t.intersect=function(e){return a.default.circle(t,7,e)},n},end:function(e,t){var n=e.insert("g").attr("class","node default").attr("id",t.domId||t.id),r=n.insert("circle",":first-child"),i=n.insert("circle",":first-child");return i.attr("class","state-start").attr("r",7).attr("width",14).attr("height",14),r.attr("class","state-end").attr("r",5).attr("width",10).attr("height",10),Object(o.updateNodeBounds)(t,i),t.intersect=function(e){return a.default.circle(t,7,e)},n},note:l.default,subroutine:function(e,t){var n=Object(o.labelHelper)(e,t,void 0,!0),r=n.shapeSvg,i=n.bbox,s=i.width+t.padding,u=i.height+t.padding,l=[{x:0,y:0},{x:s,y:0},{x:s,y:-u},{x:0,y:-u},{x:0,y:0},{x:-8,y:0},{x:s+8,y:0},{x:s+8,y:-u},{x:-8,y:-u},{x:-8,y:0}],c=Object(o.insertPolygonShape)(r,s,u,l);return Object(o.updateNodeBounds)(t,c),t.intersect=function(e){return a.default.polygon(t,e)},r},fork:d,join:d,class_box:function(e,t){var n,i=t.padding/2;n=t.classes?"node "+t.classes:"node default";var l=e.insert("g").attr("class",n).attr("id",t.domId||t.id),d=l.insert("rect",":first-child"),h=l.insert("line"),f=l.insert("line"),p=0,g=4,m=l.insert("g").attr("class","label"),_=0,y=t.classData.annotations&&t.classData.annotations[0],v=t.classData.annotations[0]?"«"+t.classData.annotations[0]+"»":"",b=m.node().appendChild(Object(u.default)(v,t.labelStyle,!0,!0)),w=b.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var C=b.children[0],S=Object(r.select)(b);w=C.getBoundingClientRect(),S.attr("width",w.width),S.attr("height",w.height)}t.classData.annotations[0]&&(g+=w.height+4,p+=w.width);var x=t.classData.id;void 0!==t.classData.type&&""!==t.classData.type&&(x+="<"+t.classData.type+">");var L=m.node().appendChild(Object(u.default)(x,t.labelStyle,!0,!0));Object(r.select)(L).attr("class","classTitle");var k=L.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var M=L.children[0],D=Object(r.select)(L);k=M.getBoundingClientRect(),D.attr("width",k.width),D.attr("height",k.height)}g+=k.height+4,k.width>p&&(p=k.width);var E=[];t.classData.members.forEach((function(e){var n=Object(c.parseMember)(e).displayText,i=m.node().appendChild(Object(u.default)(n,t.labelStyle,!0,!0)),o=i.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=i.children[0],l=Object(r.select)(i);o=a.getBoundingClientRect(),l.attr("width",o.width),l.attr("height",o.height)}o.width>p&&(p=o.width),g+=o.height+4,E.push(i)})),g+=8;var T=[];if(t.classData.methods.forEach((function(e){var n=Object(c.parseMember)(e).displayText,i=m.node().appendChild(Object(u.default)(n,t.labelStyle,!0,!0)),o=i.getBBox();if(Object(s.getConfig)().flowchart.htmlLabels){var a=i.children[0],l=Object(r.select)(i);o=a.getBoundingClientRect(),l.attr("width",o.width),l.attr("height",o.height)}o.width>p&&(p=o.width),g+=o.height+4,T.push(i)})),g+=8,y){var N=(p-w.width)/2;Object(r.select)(b).attr("transform","translate( "+(-1*p/2+N)+", "+-1*g/2+")"),_=w.height+4}var O=(p-k.width)/2;return Object(r.select)(L).attr("transform","translate( "+(-1*p/2+O)+", "+(-1*g/2+_)+")"),_+=k.height+4,h.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+_).attr("y2",-g/2-i+8+_),_+=8,E.forEach((function(e){Object(r.select)(e).attr("transform","translate( "+-p/2+", "+(-1*g/2+_+4)+")"),_+=k.height+4})),_+=8,f.attr("class","divider").attr("x1",-p/2-i).attr("x2",p/2+i).attr("y1",-g/2-i+8+_).attr("y2",-g/2-i+8+_),_+=8,T.forEach((function(e){Object(r.select)(e).attr("transform","translate( "+-p/2+", "+(-1*g/2+_)+")"),_+=k.height+4})),d.attr("class","outer title-state").attr("x",-p/2-i).attr("y",-g/2-i).attr("width",p+t.padding).attr("height",g+t.padding),Object(o.updateNodeBounds)(t,d),t.intersect=function(e){return a.default.rect(t,e)},l}},f={},p=function(e,t,n){var r,i;t.link?(r=e.insert("svg:a").attr("xlink:href",t.link).attr("target",t.linkTarget||"_blank"),i=h[t.shape](r,t,n)):r=i=h[t.shape](e,t,n),t.tooltip&&i.attr("title",t.tooltip),t.class&&i.attr("class","node default "+t.class),f[t.id]=r,t.haveCallback&&f[t.id].attr("class",f[t.id].attr("class")+" clickable")},g=function(e,t){f[t.id]=e},m=function(){f={}},_=function(e){var t=f[e.id];i.logger.trace("Transforming node",e,"translate("+(e.x-e.width/2-5)+", "+(e.y-e.height/2-5)+")"),e.clusterNode?t.attr("transform","translate("+(e.x-e.width/2-8)+", "+(e.y-e.height/2-8)+")"):t.attr("transform","translate("+e.x+", "+e.y+")")}},"./src/dagre-wrapper/shapes/note.js": -/*!******************************************!*\ + /*! exports provided: insertNode, setNodeElem, clear, positionNode */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'insertNode', function () { + return p; + }), + n.d(t, 'setNodeElem', function () { + return g; + }), + n.d(t, 'clear', function () { + return m; + }), + n.d(t, 'positionNode', function () { + return _; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ../logger */ './src/logger.js'), + o = n( + /*! ./shapes/util */ './src/dagre-wrapper/shapes/util.js' + ), + s = n(/*! ../config */ './src/config.js'), + a = n( + /*! ./intersect/index.js */ './src/dagre-wrapper/intersect/index.js' + ), + u = n( + /*! ./createLabel */ './src/dagre-wrapper/createLabel.js' + ), + l = n( + /*! ./shapes/note */ './src/dagre-wrapper/shapes/note.js' + ), + c = n( + /*! ../diagrams/class/svgDraw */ './src/diagrams/class/svgDraw.js' + ), + d = function (e, t, n) { + var r = e + .insert('g') + .attr('class', 'node default') + .attr('id', t.domId || t.id), + i = 70, + s = 10; + 'LR' === n && ((i = 10), (s = 70)); + var u = r + .append('rect') + .style('stroke', 'black') + .style('fill', 'black') + .attr('x', (-1 * i) / 2) + .attr('y', (-1 * s) / 2) + .attr('width', i) + .attr('height', s) + .attr('class', 'fork-join'); + return ( + Object(o.updateNodeBounds)(t, u), + (t.height = t.height + t.padding / 2), + (t.width = t.width + t.padding / 2), + (t.intersect = function (e) { + return a.default.rect(t, e); + }), + r + ); + }, + h = { + question: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + s = n.bbox, + u = s.width + t.padding + (s.height + t.padding), + l = [ + { x: u / 2, y: 0 }, + { x: u, y: -u / 2 }, + { x: u / 2, y: -u }, + { x: 0, y: -u / 2 }, + ]; + i.logger.info('Question main (Circle)'); + var c = Object(o.insertPolygonShape)(r, u, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return ( + i.logger.warn('Intersect called'), + a.default.polygon(t, l, e) + ); + }), + r + ); + }, + rect: function (e, t) { + var n = Object(o.labelHelper)( + e, + t, + 'node ' + t.classes, + !0 + ), + r = n.shapeSvg, + s = n.bbox, + u = n.halfPadding; + i.logger.trace('Classes = ', t.classes); + var l = r.insert('rect', ':first-child'); + return ( + l + .attr('class', 'basic label-container') + .attr('style', t.style) + .attr('rx', t.rx) + .attr('ry', t.ry) + .attr('x', -s.width / 2 - u) + .attr('y', -s.height / 2 - u) + .attr('width', s.width + t.padding) + .attr('height', s.height + t.padding), + Object(o.updateNodeBounds)(t, l), + (t.intersect = function (e) { + return a.default.rect(t, e); + }), + r + ); + }, + rectWithTitle: function (e, t) { + var n; + n = t.classes ? 'node ' + t.classes : 'node default'; + var l = e + .insert('g') + .attr('class', n) + .attr('id', t.domId || t.id), + c = l.insert('rect', ':first-child'), + d = l.insert('line'), + h = l.insert('g').attr('class', 'label'), + f = t.labelText.flat(); + i.logger.info('Label text', f[0]); + var p, + g = h + .node() + .appendChild( + Object(u.default)(f[0], t.labelStyle, !0, !0) + ); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var m = g.children[0], + _ = Object(r.select)(g); + (p = m.getBoundingClientRect()), + _.attr('width', p.width), + _.attr('height', p.height); + } + i.logger.info('Text 2', f); + var y = f.slice(1, f.length), + v = g.getBBox(), + b = h + .node() + .appendChild( + Object(u.default)( + y.join('
'), + t.labelStyle, + !0, + !0 + ) + ); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var w = b.children[0], + C = Object(r.select)(b); + (p = w.getBoundingClientRect()), + C.attr('width', p.width), + C.attr('height', p.height); + } + var S = t.padding / 2; + return ( + Object(r.select)(b).attr( + 'transform', + 'translate( ' + + (p.width > v.width ? 0 : (v.width - p.width) / 2) + + ', ' + + (v.height + S + 5) + + ')' + ), + Object(r.select)(g).attr( + 'transform', + 'translate( ' + + (p.width < v.width ? 0 : -(v.width - p.width) / 2) + + ', 0)' + ), + (p = h.node().getBBox()), + h.attr( + 'transform', + 'translate(' + + -p.width / 2 + + ', ' + + (-p.height / 2 - S + 3) + + ')' + ), + c + .attr('class', 'outer title-state') + .attr('x', -p.width / 2 - S) + .attr('y', -p.height / 2 - S) + .attr('width', p.width + t.padding) + .attr('height', p.height + t.padding), + d + .attr('class', 'divider') + .attr('x1', -p.width / 2 - S) + .attr('x2', p.width / 2 + S) + .attr('y1', -p.height / 2 - S + v.height + S) + .attr('y2', -p.height / 2 - S + v.height + S), + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.rect(t, e); + }), + l + ); + }, + circle: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + s = n.bbox, + u = n.halfPadding, + l = r.insert('circle', ':first-child'); + return ( + l + .attr('rx', t.rx) + .attr('ry', t.ry) + .attr('r', s.width / 2 + u) + .attr('width', s.width + t.padding) + .attr('height', s.height + t.padding), + i.logger.info('Circle main'), + Object(o.updateNodeBounds)(t, l), + (t.intersect = function (e) { + return ( + i.logger.info( + 'Circle intersect', + t, + s.width / 2 + u, + e + ), + a.default.circle(t, s.width / 2 + u, e) + ); + }), + r + ); + }, + stadium: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.height + t.padding, + u = i.width + s / 4 + t.padding, + l = r + .insert('rect', ':first-child') + .attr('rx', s / 2) + .attr('ry', s / 2) + .attr('x', -u / 2) + .attr('y', -s / 2) + .attr('width', u) + .attr('height', s); + return ( + Object(o.updateNodeBounds)(t, l), + (t.intersect = function (e) { + return a.default.rect(t, e); + }), + r + ); + }, + hexagon: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.height + t.padding, + u = s / 4, + l = i.width + 2 * u + t.padding, + c = [ + { x: u, y: 0 }, + { x: l - u, y: 0 }, + { x: l, y: -s / 2 }, + { x: l - u, y: -s }, + { x: u, y: -s }, + { x: 0, y: -s / 2 }, + ], + d = Object(o.insertPolygonShape)(r, l, s, c); + return ( + Object(o.updateNodeBounds)(t, d), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + rect_left_inv_arrow: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: -u / 2, y: 0 }, + { x: s, y: 0 }, + { x: s, y: -u }, + { x: -u / 2, y: -u }, + { x: 0, y: -u / 2 }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + lean_right: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: (-2 * u) / 6, y: 0 }, + { x: s - u / 6, y: 0 }, + { x: s + (2 * u) / 6, y: -u }, + { x: u / 6, y: -u }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + lean_left: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: (2 * u) / 6, y: 0 }, + { x: s + u / 6, y: 0 }, + { x: s - (2 * u) / 6, y: -u }, + { x: -u / 6, y: -u }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + trapezoid: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: (-2 * u) / 6, y: 0 }, + { x: s + (2 * u) / 6, y: 0 }, + { x: s - u / 6, y: -u }, + { x: u / 6, y: -u }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + inv_trapezoid: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: u / 6, y: 0 }, + { x: s - u / 6, y: 0 }, + { x: s + (2 * u) / 6, y: -u }, + { x: (-2 * u) / 6, y: -u }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + rect_right_inv_arrow: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: 0, y: 0 }, + { x: s + u / 2, y: 0 }, + { x: s, y: -u / 2 }, + { x: s + u / 2, y: -u }, + { x: 0, y: -u }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + cylinder: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = s / 2, + l = u / (2.5 + s / 50), + c = i.height + l + t.padding, + d = + 'M 0,' + + l + + ' a ' + + u + + ',' + + l + + ' 0,0,0 ' + + s + + ' 0 a ' + + u + + ',' + + l + + ' 0,0,0 ' + + -s + + ' 0 l 0,' + + c + + ' a ' + + u + + ',' + + l + + ' 0,0,0 ' + + s + + ' 0 l 0,' + + -c, + h = r + .attr('label-offset-y', l) + .insert('path', ':first-child') + .attr('d', d) + .attr( + 'transform', + 'translate(' + -s / 2 + ',' + -(c / 2 + l) + ')' + ); + return ( + Object(o.updateNodeBounds)(t, h), + (t.intersect = function (e) { + var n = a.default.rect(t, e), + r = n.x - t.x; + if ( + 0 != u && + (Math.abs(r) < t.width / 2 || + (Math.abs(r) == t.width / 2 && + Math.abs(n.y - t.y) > t.height / 2 - l)) + ) { + var i = l * l * (1 - (r * r) / (u * u)); + 0 != i && (i = Math.sqrt(i)), + (i = l - i), + e.y - t.y > 0 && (i = -i), + (n.y += i); + } + return n; + }), + r + ); + }, + start: function (e, t) { + var n = e + .insert('g') + .attr('class', 'node default') + .attr('id', t.domId || t.id), + r = n.insert('circle', ':first-child'); + return ( + r + .attr('class', 'state-start') + .attr('r', 7) + .attr('width', 14) + .attr('height', 14), + Object(o.updateNodeBounds)(t, r), + (t.intersect = function (e) { + return a.default.circle(t, 7, e); + }), + n + ); + }, + end: function (e, t) { + var n = e + .insert('g') + .attr('class', 'node default') + .attr('id', t.domId || t.id), + r = n.insert('circle', ':first-child'), + i = n.insert('circle', ':first-child'); + return ( + i + .attr('class', 'state-start') + .attr('r', 7) + .attr('width', 14) + .attr('height', 14), + r + .attr('class', 'state-end') + .attr('r', 5) + .attr('width', 10) + .attr('height', 10), + Object(o.updateNodeBounds)(t, i), + (t.intersect = function (e) { + return a.default.circle(t, 7, e); + }), + n + ); + }, + note: l.default, + subroutine: function (e, t) { + var n = Object(o.labelHelper)(e, t, void 0, !0), + r = n.shapeSvg, + i = n.bbox, + s = i.width + t.padding, + u = i.height + t.padding, + l = [ + { x: 0, y: 0 }, + { x: s, y: 0 }, + { x: s, y: -u }, + { x: 0, y: -u }, + { x: 0, y: 0 }, + { x: -8, y: 0 }, + { x: s + 8, y: 0 }, + { x: s + 8, y: -u }, + { x: -8, y: -u }, + { x: -8, y: 0 }, + ], + c = Object(o.insertPolygonShape)(r, s, u, l); + return ( + Object(o.updateNodeBounds)(t, c), + (t.intersect = function (e) { + return a.default.polygon(t, e); + }), + r + ); + }, + fork: d, + join: d, + class_box: function (e, t) { + var n, + i = t.padding / 2; + n = t.classes ? 'node ' + t.classes : 'node default'; + var l = e + .insert('g') + .attr('class', n) + .attr('id', t.domId || t.id), + d = l.insert('rect', ':first-child'), + h = l.insert('line'), + f = l.insert('line'), + p = 0, + g = 4, + m = l.insert('g').attr('class', 'label'), + _ = 0, + y = t.classData.annotations && t.classData.annotations[0], + v = t.classData.annotations[0] + ? '«' + t.classData.annotations[0] + '»' + : '', + b = m + .node() + .appendChild( + Object(u.default)(v, t.labelStyle, !0, !0) + ), + w = b.getBBox(); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var C = b.children[0], + S = Object(r.select)(b); + (w = C.getBoundingClientRect()), + S.attr('width', w.width), + S.attr('height', w.height); + } + t.classData.annotations[0] && + ((g += w.height + 4), (p += w.width)); + var x = t.classData.id; + void 0 !== t.classData.type && + '' !== t.classData.type && + (x += '<' + t.classData.type + '>'); + var L = m + .node() + .appendChild(Object(u.default)(x, t.labelStyle, !0, !0)); + Object(r.select)(L).attr('class', 'classTitle'); + var k = L.getBBox(); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var M = L.children[0], + D = Object(r.select)(L); + (k = M.getBoundingClientRect()), + D.attr('width', k.width), + D.attr('height', k.height); + } + (g += k.height + 4), k.width > p && (p = k.width); + var E = []; + t.classData.members.forEach(function (e) { + var n = Object(c.parseMember)(e).displayText, + i = m + .node() + .appendChild( + Object(u.default)(n, t.labelStyle, !0, !0) + ), + o = i.getBBox(); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var a = i.children[0], + l = Object(r.select)(i); + (o = a.getBoundingClientRect()), + l.attr('width', o.width), + l.attr('height', o.height); + } + o.width > p && (p = o.width), + (g += o.height + 4), + E.push(i); + }), + (g += 8); + var T = []; + if ( + (t.classData.methods.forEach(function (e) { + var n = Object(c.parseMember)(e).displayText, + i = m + .node() + .appendChild( + Object(u.default)(n, t.labelStyle, !0, !0) + ), + o = i.getBBox(); + if (Object(s.getConfig)().flowchart.htmlLabels) { + var a = i.children[0], + l = Object(r.select)(i); + (o = a.getBoundingClientRect()), + l.attr('width', o.width), + l.attr('height', o.height); + } + o.width > p && (p = o.width), + (g += o.height + 4), + T.push(i); + }), + (g += 8), + y) + ) { + var N = (p - w.width) / 2; + Object(r.select)(b).attr( + 'transform', + 'translate( ' + + ((-1 * p) / 2 + N) + + ', ' + + (-1 * g) / 2 + + ')' + ), + (_ = w.height + 4); + } + var O = (p - k.width) / 2; + return ( + Object(r.select)(L).attr( + 'transform', + 'translate( ' + + ((-1 * p) / 2 + O) + + ', ' + + ((-1 * g) / 2 + _) + + ')' + ), + (_ += k.height + 4), + h + .attr('class', 'divider') + .attr('x1', -p / 2 - i) + .attr('x2', p / 2 + i) + .attr('y1', -g / 2 - i + 8 + _) + .attr('y2', -g / 2 - i + 8 + _), + (_ += 8), + E.forEach(function (e) { + Object(r.select)(e).attr( + 'transform', + 'translate( ' + + -p / 2 + + ', ' + + ((-1 * g) / 2 + _ + 4) + + ')' + ), + (_ += k.height + 4); + }), + (_ += 8), + f + .attr('class', 'divider') + .attr('x1', -p / 2 - i) + .attr('x2', p / 2 + i) + .attr('y1', -g / 2 - i + 8 + _) + .attr('y2', -g / 2 - i + 8 + _), + (_ += 8), + T.forEach(function (e) { + Object(r.select)(e).attr( + 'transform', + 'translate( ' + + -p / 2 + + ', ' + + ((-1 * g) / 2 + _) + + ')' + ), + (_ += k.height + 4); + }), + d + .attr('class', 'outer title-state') + .attr('x', -p / 2 - i) + .attr('y', -g / 2 - i) + .attr('width', p + t.padding) + .attr('height', g + t.padding), + Object(o.updateNodeBounds)(t, d), + (t.intersect = function (e) { + return a.default.rect(t, e); + }), + l + ); + }, + }, + f = {}, + p = function (e, t, n) { + var r, i; + t.link + ? ((r = e + .insert('svg:a') + .attr('xlink:href', t.link) + .attr('target', t.linkTarget || '_blank')), + (i = h[t.shape](r, t, n))) + : (r = i = h[t.shape](e, t, n)), + t.tooltip && i.attr('title', t.tooltip), + t.class && i.attr('class', 'node default ' + t.class), + (f[t.id] = r), + t.haveCallback && + f[t.id].attr( + 'class', + f[t.id].attr('class') + ' clickable' + ); + }, + g = function (e, t) { + f[t.id] = e; + }, + m = function () { + f = {}; + }, + _ = function (e) { + var t = f[e.id]; + i.logger.trace( + 'Transforming node', + e, + 'translate(' + + (e.x - e.width / 2 - 5) + + ', ' + + (e.y - e.height / 2 - 5) + + ')' + ), + e.clusterNode + ? t.attr( + 'transform', + 'translate(' + + (e.x - e.width / 2 - 8) + + ', ' + + (e.y - e.height / 2 - 8) + + ')' + ) + : t.attr( + 'transform', + 'translate(' + e.x + ', ' + e.y + ')' + ); + }; + }, + './src/dagre-wrapper/shapes/note.js': + /*!******************************************!*\ !*** ./src/dagre-wrapper/shapes/note.js ***! \******************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./util */"./src/dagre-wrapper/shapes/util.js"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../intersect/index.js */"./src/dagre-wrapper/intersect/index.js");t.default=function(e,t){var n=Object(r.labelHelper)(e,t,"node "+t.classes,!0),s=n.shapeSvg,a=n.bbox,u=n.halfPadding;i.logger.info("Classes = ",t.classes);var l=s.insert("rect",":first-child");return l.attr("rx",t.rx).attr("ry",t.ry).attr("x",-a.width/2-u).attr("y",-a.height/2-u).attr("width",a.width+t.padding).attr("height",a.height+t.padding),Object(r.updateNodeBounds)(t,l),t.intersect=function(e){return o.default.rect(t,e)},s}},"./src/dagre-wrapper/shapes/util.js": -/*!******************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = n(/*! ./util */ './src/dagre-wrapper/shapes/util.js'), + i = n(/*! ../../logger */ './src/logger.js'), + o = n( + /*! ../intersect/index.js */ './src/dagre-wrapper/intersect/index.js' + ); + t.default = function (e, t) { + var n = Object(r.labelHelper)(e, t, 'node ' + t.classes, !0), + s = n.shapeSvg, + a = n.bbox, + u = n.halfPadding; + i.logger.info('Classes = ', t.classes); + var l = s.insert('rect', ':first-child'); + return ( + l + .attr('rx', t.rx) + .attr('ry', t.ry) + .attr('x', -a.width / 2 - u) + .attr('y', -a.height / 2 - u) + .attr('width', a.width + t.padding) + .attr('height', a.height + t.padding), + Object(r.updateNodeBounds)(t, l), + (t.intersect = function (e) { + return o.default.rect(t, e); + }), + s + ); + }; + }, + './src/dagre-wrapper/shapes/util.js': + /*!******************************************!*\ !*** ./src/dagre-wrapper/shapes/util.js ***! \******************************************/ -/*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */function(e,t,n){"use strict";n.r(t),n.d(t,"labelHelper",(function(){return s})),n.d(t,"updateNodeBounds",(function(){return a})),n.d(t,"insertPolygonShape",(function(){return u}));var r=n(/*! ../createLabel */"./src/dagre-wrapper/createLabel.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! d3 */"d3"),s=function(e,t,n,s){var a;a=n||"node default";var u=e.insert("g").attr("class",a).attr("id",t.domId||t.id),l=u.insert("g").attr("class","label").attr("style",t.labelStyle),c=l.node().appendChild(Object(r.default)(t.labelText,t.labelStyle,!1,s)),d=c.getBBox();if(Object(i.getConfig)().flowchart.htmlLabels){var h=c.children[0],f=Object(o.select)(c);d=h.getBoundingClientRect(),f.attr("width",d.width),f.attr("height",d.height)}var p=t.padding/2;return l.attr("transform","translate("+-d.width/2+", "+-d.height/2+")"),{shapeSvg:u,bbox:d,halfPadding:p,label:l}},a=function(e,t){var n=t.node().getBBox();e.width=n.width,e.height=n.height};function u(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+n/2+")")}},"./src/defaultConfig.js": -/*!******************************!*\ + /*! exports provided: labelHelper, updateNodeBounds, insertPolygonShape */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'labelHelper', function () { + return s; + }), + n.d(t, 'updateNodeBounds', function () { + return a; + }), + n.d(t, 'insertPolygonShape', function () { + return u; + }); + var r = n( + /*! ../createLabel */ './src/dagre-wrapper/createLabel.js' + ), + i = n(/*! ../../config */ './src/config.js'), + o = n(/*! d3 */ 'd3'), + s = function (e, t, n, s) { + var a; + a = n || 'node default'; + var u = e + .insert('g') + .attr('class', a) + .attr('id', t.domId || t.id), + l = u + .insert('g') + .attr('class', 'label') + .attr('style', t.labelStyle), + c = l + .node() + .appendChild( + Object(r.default)(t.labelText, t.labelStyle, !1, s) + ), + d = c.getBBox(); + if (Object(i.getConfig)().flowchart.htmlLabels) { + var h = c.children[0], + f = Object(o.select)(c); + (d = h.getBoundingClientRect()), + f.attr('width', d.width), + f.attr('height', d.height); + } + var p = t.padding / 2; + return ( + l.attr( + 'transform', + 'translate(' + -d.width / 2 + ', ' + -d.height / 2 + ')' + ), + { shapeSvg: u, bbox: d, halfPadding: p, label: l } + ); + }, + a = function (e, t) { + var n = t.node().getBBox(); + (e.width = n.width), (e.height = n.height); + }; + function u(e, t, n, r) { + return e + .insert('polygon', ':first-child') + .attr( + 'points', + r + .map(function (e) { + return e.x + ',' + e.y; + }) + .join(' ') + ) + .attr('class', 'label-container') + .attr('transform', 'translate(' + -t / 2 + ',' + n / 2 + ')'); + } + }, + './src/defaultConfig.js': + /*!******************************!*\ !*** ./src/defaultConfig.js ***! \******************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r={theme:"default",themeVariables:n(/*! ./themes */"./src/themes/index.js").default.default.getThemeVariables(),themeCSS:void 0,maxTextSize:5e4,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize"],deterministicIds:!1,deterministicIDSeed:void 0,flowchart:{diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"linear",padding:15,useMaxWidth:!0},sequence:{activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open-Sans", "sans-serif"',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20,messageFont:function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},noteFont:function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},actorFont:function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}}},gantt:{titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"',numberSectionStyles:4,axisFormat:"%Y-%m-%d",useMaxWidth:!0,useWidth:void 0},journey:{diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,useMaxWidth:!0,rightAngles:!1},class:{arrowMarkerAbsolute:!1,useMaxWidth:!0},git:{arrowMarkerAbsolute:!1,useWidth:void 0,useMaxWidth:!0},state:{dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,useMaxWidth:!0},er:{diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12,useMaxWidth:!0},pie:{useWidth:void 0,useMaxWidth:!0}};r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,r.git.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.default=r},"./src/diagrams/class/classDb.js": -/*!***************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = { + theme: 'default', + themeVariables: n( + /*! ./themes */ './src/themes/index.js' + ).default.default.getThemeVariables(), + themeCSS: void 0, + maxTextSize: 5e4, + fontFamily: '"trebuchet ms", verdana, arial, sans-serif;', + logLevel: 5, + securityLevel: 'strict', + startOnLoad: !0, + arrowMarkerAbsolute: !1, + secure: [ + 'secure', + 'securityLevel', + 'startOnLoad', + 'maxTextSize', + ], + deterministicIds: !1, + deterministicIDSeed: void 0, + flowchart: { + diagramPadding: 8, + htmlLabels: !0, + nodeSpacing: 50, + rankSpacing: 50, + curve: 'linear', + padding: 15, + useMaxWidth: !0, + }, + sequence: { + activationWidth: 10, + diagramMarginX: 50, + diagramMarginY: 10, + actorMargin: 50, + width: 150, + height: 65, + boxMargin: 10, + boxTextMargin: 5, + noteMargin: 10, + messageMargin: 35, + messageAlign: 'center', + mirrorActors: !0, + bottomMarginAdj: 1, + useMaxWidth: !0, + rightAngles: !1, + showSequenceNumbers: !1, + actorFontSize: 14, + actorFontFamily: '"Open-Sans", "sans-serif"', + actorFontWeight: 400, + noteFontSize: 14, + noteFontFamily: '"trebuchet ms", verdana, arial, sans-serif', + noteFontWeight: 400, + noteAlign: 'center', + messageFontSize: 16, + messageFontFamily: + '"trebuchet ms", verdana, arial, sans-serif', + messageFontWeight: 400, + wrap: !1, + wrapPadding: 10, + labelBoxWidth: 50, + labelBoxHeight: 20, + messageFont: function () { + return { + fontFamily: this.messageFontFamily, + fontSize: this.messageFontSize, + fontWeight: this.messageFontWeight, + }; + }, + noteFont: function () { + return { + fontFamily: this.noteFontFamily, + fontSize: this.noteFontSize, + fontWeight: this.noteFontWeight, + }; + }, + actorFont: function () { + return { + fontFamily: this.actorFontFamily, + fontSize: this.actorFontSize, + fontWeight: this.actorFontWeight, + }; + }, + }, + gantt: { + titleTopMargin: 25, + barHeight: 20, + barGap: 4, + topPadding: 50, + leftPadding: 75, + gridLineStartPadding: 35, + fontSize: 11, + fontFamily: '"Open-Sans", "sans-serif"', + numberSectionStyles: 4, + axisFormat: '%Y-%m-%d', + useMaxWidth: !0, + useWidth: void 0, + }, + journey: { + diagramMarginX: 50, + diagramMarginY: 10, + actorMargin: 50, + width: 150, + height: 65, + boxMargin: 10, + boxTextMargin: 5, + noteMargin: 10, + messageMargin: 35, + messageAlign: 'center', + bottomMarginAdj: 1, + useMaxWidth: !0, + rightAngles: !1, + }, + class: { arrowMarkerAbsolute: !1, useMaxWidth: !0 }, + git: { + arrowMarkerAbsolute: !1, + useWidth: void 0, + useMaxWidth: !0, + }, + state: { + dividerMargin: 10, + sizeUnit: 5, + padding: 8, + textHeight: 10, + titleShift: -15, + noteMargin: 10, + forkWidth: 70, + forkHeight: 7, + miniPadding: 2, + fontSizeFactor: 5.02, + fontSize: 24, + labelHeight: 16, + edgeLengthFactor: '20', + compositTitleSize: 35, + radius: 5, + useMaxWidth: !0, + }, + er: { + diagramPadding: 20, + layoutDirection: 'TB', + minEntityWidth: 100, + minEntityHeight: 75, + entityPadding: 15, + stroke: 'gray', + fill: 'honeydew', + fontSize: 12, + useMaxWidth: !0, + }, + pie: { useWidth: void 0, useMaxWidth: !0 }, + }; + (r.class.arrowMarkerAbsolute = r.arrowMarkerAbsolute), + (r.git.arrowMarkerAbsolute = r.arrowMarkerAbsolute), + (t.default = r); + }, + './src/diagrams/class/classDb.js': + /*!***************************************!*\ !*** ./src/diagrams/class/classDb.js ***! \***************************************/ -/*! exports provided: parseDirective, addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return f})),n.d(t,"addClass",(function(){return g})),n.d(t,"lookUpDomId",(function(){return m})),n.d(t,"clear",(function(){return _})),n.d(t,"getClass",(function(){return y})),n.d(t,"getClasses",(function(){return v})),n.d(t,"getRelations",(function(){return b})),n.d(t,"addRelation",(function(){return w})),n.d(t,"addAnnotation",(function(){return C})),n.d(t,"addMember",(function(){return S})),n.d(t,"addMembers",(function(){return x})),n.d(t,"cleanupLabel",(function(){return L})),n.d(t,"setCssClass",(function(){return k})),n.d(t,"setLink",(function(){return M})),n.d(t,"setClickEvent",(function(){return D})),n.d(t,"bindFunctions",(function(){return T})),n.d(t,"lineType",(function(){return N})),n.d(t,"relationType",(function(){return O}));var r=n(/*! d3 */"d3"),i=n(/*! ../../logger */"./src/logger.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../utils */"./src/utils.js"),u=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),l=[],c={},d=0,h=[],f=function(e,t,n){u.default.parseDirective(this,e,t,n)},p=function(e){var t="",n=e;if(e.indexOf("~")>0){var r=e.split("~");n=r[0],t=r[1]}return{className:n,type:t}},g=function(e){var t=p(e);void 0===c[t.className]&&(c[t.className]={id:t.className,type:t.type,cssClasses:[],methods:[],members:[],annotations:[],domId:"classid-"+t.className+"-"+d},d++)},m=function(e){for(var t=Object.keys(c),n=0;n>")?r.annotations.push(i.substring(2,i.length-2)):i.indexOf(")")>0?r.methods.push(i):i&&r.members.push(i)}},x=function(e,t){Array.isArray(t)&&(t.reverse(),t.forEach((function(t){return S(e,t)})))},L=function(e){return":"===e.substring(0,1)?e.substr(1).trim():e.trim()},k=function(e,t){e.split(",").forEach((function(e){var n=e;e[0].match(/\d/)&&(n="classid-"+n),void 0!==c[n]&&c[n].cssClasses.push(t)}))},M=function(e,t,n){var r=o.getConfig();e.split(",").forEach((function(e){var i=e;e[0].match(/\d/)&&(i="classid-"+i),void 0!==c[i]&&(c[i].link=a.default.formatUrl(t,r),n&&(c[i].tooltip=s.default.sanitizeText(n,r)))})),k(e,"clickable")},D=function(e,t,n){e.split(",").forEach((function(e){E(e,t,n),c[e].haveCallback=!0})),k(e,"clickable")},E=function(e,t,n){var r=o.getConfig(),i=e,u=m(i);"loose"===r.securityLevel&&void 0!==t&&void 0!==c[i]&&(n&&(c[i].tooltip=s.default.sanitizeText(n,r)),h.push((function(){var e=document.querySelector('[id="'.concat(u,'"]'));null!==e&&e.addEventListener("click",(function(){a.default.runFunc(t,u)}),!1)})))},T=function(e){h.forEach((function(t){t(e)}))},N={LINE:0,DOTTED_LINE:1},O={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3},A=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};h.push(A),t.default={parseDirective:f,getConfig:function(){return o.getConfig().class},addClass:g,bindFunctions:T,clear:_,getClass:y,getClasses:v,addAnnotation:C,getRelations:b,addRelation:w,addMember:S,addMembers:x,cleanupLabel:L,lineType:N,relationType:O,setClickEvent:D,setCssClass:k,setLink:M,lookUpDomId:m}},"./src/diagrams/class/classRenderer-v2.js": -/*!************************************************!*\ + /*! exports provided: parseDirective, addClass, lookUpDomId, clear, getClass, getClasses, getRelations, addRelation, addAnnotation, addMember, addMembers, cleanupLabel, setCssClass, setLink, setClickEvent, bindFunctions, lineType, relationType, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'parseDirective', function () { + return f; + }), + n.d(t, 'addClass', function () { + return g; + }), + n.d(t, 'lookUpDomId', function () { + return m; + }), + n.d(t, 'clear', function () { + return _; + }), + n.d(t, 'getClass', function () { + return y; + }), + n.d(t, 'getClasses', function () { + return v; + }), + n.d(t, 'getRelations', function () { + return b; + }), + n.d(t, 'addRelation', function () { + return w; + }), + n.d(t, 'addAnnotation', function () { + return C; + }), + n.d(t, 'addMember', function () { + return S; + }), + n.d(t, 'addMembers', function () { + return x; + }), + n.d(t, 'cleanupLabel', function () { + return L; + }), + n.d(t, 'setCssClass', function () { + return k; + }), + n.d(t, 'setLink', function () { + return M; + }), + n.d(t, 'setClickEvent', function () { + return D; + }), + n.d(t, 'bindFunctions', function () { + return T; + }), + n.d(t, 'lineType', function () { + return N; + }), + n.d(t, 'relationType', function () { + return O; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ../../logger */ './src/logger.js'), + o = n(/*! ../../config */ './src/config.js'), + s = n( + /*! ../common/common */ './src/diagrams/common/common.js' + ), + a = n(/*! ../../utils */ './src/utils.js'), + u = n(/*! ../../mermaidAPI */ './src/mermaidAPI.js'), + l = [], + c = {}, + d = 0, + h = [], + f = function (e, t, n) { + u.default.parseDirective(this, e, t, n); + }, + p = function (e) { + var t = '', + n = e; + if (e.indexOf('~') > 0) { + var r = e.split('~'); + (n = r[0]), (t = r[1]); + } + return { className: n, type: t }; + }, + g = function (e) { + var t = p(e); + void 0 === c[t.className] && + ((c[t.className] = { + id: t.className, + type: t.type, + cssClasses: [], + methods: [], + members: [], + annotations: [], + domId: 'classid-' + t.className + '-' + d, + }), + d++); + }, + m = function (e) { + for (var t = Object.keys(c), n = 0; n < t.length; n++) + if (c[t[n]].id === e) return c[t[n]].domId; + }, + _ = function () { + (l = []), (c = {}), (h = []).push(A); + }, + y = function (e) { + return c[e]; + }, + v = function () { + return c; + }, + b = function () { + return l; + }, + w = function (e) { + i.logger.debug('Adding relation: ' + JSON.stringify(e)), + g(e.id1), + g(e.id2), + (e.id1 = p(e.id1).className), + (e.id2 = p(e.id2).className), + l.push(e); + }, + C = function (e, t) { + var n = p(e).className; + c[n].annotations.push(t); + }, + S = function (e, t) { + var n = p(e).className, + r = c[n]; + if ('string' == typeof t) { + var i = t.trim(); + i.startsWith('<<') && i.endsWith('>>') + ? r.annotations.push(i.substring(2, i.length - 2)) + : i.indexOf(')') > 0 + ? r.methods.push(i) + : i && r.members.push(i); + } + }, + x = function (e, t) { + Array.isArray(t) && + (t.reverse(), + t.forEach(function (t) { + return S(e, t); + })); + }, + L = function (e) { + return ':' === e.substring(0, 1) + ? e.substr(1).trim() + : e.trim(); + }, + k = function (e, t) { + e.split(',').forEach(function (e) { + var n = e; + e[0].match(/\d/) && (n = 'classid-' + n), + void 0 !== c[n] && c[n].cssClasses.push(t); + }); + }, + M = function (e, t, n) { + var r = o.getConfig(); + e.split(',').forEach(function (e) { + var i = e; + e[0].match(/\d/) && (i = 'classid-' + i), + void 0 !== c[i] && + ((c[i].link = a.default.formatUrl(t, r)), + n && (c[i].tooltip = s.default.sanitizeText(n, r))); + }), + k(e, 'clickable'); + }, + D = function (e, t, n) { + e.split(',').forEach(function (e) { + E(e, t, n), (c[e].haveCallback = !0); + }), + k(e, 'clickable'); + }, + E = function (e, t, n) { + var r = o.getConfig(), + i = e, + u = m(i); + 'loose' === r.securityLevel && + void 0 !== t && + void 0 !== c[i] && + (n && (c[i].tooltip = s.default.sanitizeText(n, r)), + h.push(function () { + var e = document.querySelector('[id="'.concat(u, '"]')); + null !== e && + e.addEventListener( + 'click', + function () { + a.default.runFunc(t, u); + }, + !1 + ); + })); + }, + T = function (e) { + h.forEach(function (t) { + t(e); + }); + }, + N = { LINE: 0, DOTTED_LINE: 1 }, + O = { + AGGREGATION: 0, + EXTENSION: 1, + COMPOSITION: 2, + DEPENDENCY: 3, + }, + A = function (e) { + var t = Object(r.select)('.mermaidTooltip'); + null === (t._groups || t)[0][0] && + (t = Object(r.select)('body') + .append('div') + .attr('class', 'mermaidTooltip') + .style('opacity', 0)), + Object(r.select)(e) + .select('svg') + .selectAll('g.node') + .on('mouseover', function () { + var e = Object(r.select)(this); + if (null !== e.attr('title')) { + var n = this.getBoundingClientRect(); + t.transition().duration(200).style('opacity', '.9'), + t + .html(e.attr('title')) + .style( + 'left', + window.scrollX + + n.left + + (n.right - n.left) / 2 + + 'px' + ) + .style( + 'top', + window.scrollY + + n.top - + 14 + + document.body.scrollTop + + 'px' + ), + e.classed('hover', !0); + } + }) + .on('mouseout', function () { + t.transition().duration(500).style('opacity', 0), + Object(r.select)(this).classed('hover', !1); + }); + }; + h.push(A), + (t.default = { + parseDirective: f, + getConfig: function () { + return o.getConfig().class; + }, + addClass: g, + bindFunctions: T, + clear: _, + getClass: y, + getClasses: v, + addAnnotation: C, + getRelations: b, + addRelation: w, + addMember: S, + addMembers: x, + cleanupLabel: L, + lineType: N, + relationType: O, + setClickEvent: D, + setCssClass: k, + setLink: M, + lookUpDomId: m, + }); + }, + './src/diagrams/class/classRenderer-v2.js': + /*!************************************************!*\ !*** ./src/diagrams/class/classRenderer-v2.js ***! \************************************************/ -/*! exports provided: addClasses, addRelations, setConf, drawOld, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addClasses",(function(){return y})),n.d(t,"addRelations",(function(){return v})),n.d(t,"setConf",(function(){return w})),n.d(t,"drawOld",(function(){return C})),n.d(t,"draw",(function(){return S}));var r=n(/*! d3 */"d3"),i=n(/*! dagre */"dagre"),o=n.n(i),s=n(/*! graphlib */"graphlib"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),c=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),d=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../config */"./src/config.js"),f=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),p=n(/*! ../../utils */"./src/utils.js"),g=n(/*! ../common/common */"./src/diagrams/common/common.js");c.parser.yy=l.default;var m={},_={dividerMargin:10,padding:5,textHeight:10},y=function(e,t){var n=Object.keys(e);u.logger.info("keys:",n),u.logger.info(e),n.forEach((function(n){var r=e[n],i="";r.cssClasses.length>0&&(i=i+" "+r.cssClasses.join(" "));var o={labelStyle:""},s=void 0!==r.text?r.text:r.id,a="";switch(r.type){case"class":a="class_box";break;default:a="class_box"}t.setNode(r.id,{labelStyle:o.labelStyle,shape:a,labelText:s,classData:r,rx:0,ry:0,class:i,style:o.style,id:r.id,domId:r.domId,haveCallback:r.haveCallback,link:r.link,width:"group"===r.type?500:void 0,type:r.type,padding:Object(h.getConfig)().flowchart.padding}),u.logger.info("setNode",{labelStyle:o.labelStyle,shape:a,labelText:s,rx:0,ry:0,class:i,style:o.style,id:r.id,width:"group"===r.type?500:void 0,type:r.type,padding:Object(h.getConfig)().flowchart.padding})}))},v=function(e,t){var n=0;e.forEach((function(i){n++;var o={classes:"relation"};o.pattern=1==i.relation.lineType?"dashed":"solid",o.id="id"+n,"arrow_open"===i.type?o.arrowhead="none":o.arrowhead="normal",u.logger.info(o,i),o.startLabelRight="none"===i.relationTitle1?"":i.relationTitle1,o.endLabelLeft="none"===i.relationTitle2?"":i.relationTitle2,o.arrowTypeStart=x(i.relation.type1),o.arrowTypeEnd=x(i.relation.type2);var s="",a="";if(void 0!==i.style){var l=Object(p.getStylesFromArray)(i.style);s=l.style,a=l.labelStyle}else s="fill:none";o.style=s,o.labelStyle=a,void 0!==i.interpolate?o.curve=Object(p.interpolateToCurve)(i.interpolate,r.curveLinear):void 0!==e.defaultInterpolate?o.curve=Object(p.interpolateToCurve)(e.defaultInterpolate,r.curveLinear):o.curve=Object(p.interpolateToCurve)(_.curve,r.curveLinear),i.text=i.title,void 0===i.text?void 0!==i.style&&(o.arrowheadStyle="fill: #333"):(o.arrowheadStyle="fill: #333",o.labelpos="c",Object(h.getConfig)().flowchart.htmlLabels,o.labelType="text",o.label=i.text.replace(g.default.lineBreakRegex,"\n"),void 0===i.style&&(o.style=o.style||"stroke: #333; stroke-width: 1.5px;fill:none"),o.labelStyle=o.labelStyle.replace("color:","fill:")),t.setEdge(i.id1,i.id2,o,n)}))},b=function(e){for(var t=Object.keys(m),n=0;n "+e.w+": "+JSON.stringify(i.edge(e))),d.default.drawEdge(n,i.edge(e),i.edge(e).relation,_))}));var w=n.node().getBBox(),C=w.width+40,S=w.height+40;Object(p.configureSvgSize)(n,S,C,_.useMaxWidth);var x="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);u.logger.debug("viewBox ".concat(x)),n.attr("viewBox",x)},S=function(e,t){u.logger.info("Drawing class"),l.default.clear(),c.parser.parse(e);var n=Object(h.getConfig)().flowchart;u.logger.info("config:",n);var i=n.nodeSpacing||50,o=n.rankSpacing||50,s=new a.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TD",nodesep:i,ranksep:o,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),d=l.default.getClasses(),g=l.default.getRelations();u.logger.info(g),y(d,s,t),v(g,s);var m=Object(r.select)('[id="'.concat(t,'"]'));m.attr("xmlns:xlink","http://www.w3.org/1999/xlink");var _=Object(r.select)("#"+t+" g");Object(f.render)(_,s,["aggregation","extension","composition","dependency"],"classDiagram",t);var b=m.node().getBBox(),w=b.width+16,C=b.height+16;if(u.logger.debug("new ViewBox 0 0 ".concat(w," ").concat(C),"translate(".concat(8-s._label.marginx,", ").concat(8-s._label.marginy,")")),Object(p.configureSvgSize)(m,C,w,n.useMaxWidth),m.attr("viewBox","0 0 ".concat(w," ").concat(C)),m.select("g").attr("transform","translate(".concat(8-s._label.marginx,", ").concat(8-b.y,")")),!n.htmlLabels)for(var S=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),x=0;x 0 && + (i = i + ' ' + r.cssClasses.join(' ')); + var o = { labelStyle: '' }, + s = void 0 !== r.text ? r.text : r.id, + a = ''; + switch (r.type) { + case 'class': + a = 'class_box'; + break; + default: + a = 'class_box'; + } + t.setNode(r.id, { + labelStyle: o.labelStyle, + shape: a, + labelText: s, + classData: r, + rx: 0, + ry: 0, + class: i, + style: o.style, + id: r.id, + domId: r.domId, + haveCallback: r.haveCallback, + link: r.link, + width: 'group' === r.type ? 500 : void 0, + type: r.type, + padding: Object(h.getConfig)().flowchart.padding, + }), + u.logger.info('setNode', { + labelStyle: o.labelStyle, + shape: a, + labelText: s, + rx: 0, + ry: 0, + class: i, + style: o.style, + id: r.id, + width: 'group' === r.type ? 500 : void 0, + type: r.type, + padding: Object(h.getConfig)().flowchart.padding, + }); + }); + }, + v = function (e, t) { + var n = 0; + e.forEach(function (i) { + n++; + var o = { classes: 'relation' }; + (o.pattern = 1 == i.relation.lineType ? 'dashed' : 'solid'), + (o.id = 'id' + n), + 'arrow_open' === i.type + ? (o.arrowhead = 'none') + : (o.arrowhead = 'normal'), + u.logger.info(o, i), + (o.startLabelRight = + 'none' === i.relationTitle1 ? '' : i.relationTitle1), + (o.endLabelLeft = + 'none' === i.relationTitle2 ? '' : i.relationTitle2), + (o.arrowTypeStart = x(i.relation.type1)), + (o.arrowTypeEnd = x(i.relation.type2)); + var s = '', + a = ''; + if (void 0 !== i.style) { + var l = Object(p.getStylesFromArray)(i.style); + (s = l.style), (a = l.labelStyle); + } else s = 'fill:none'; + (o.style = s), + (o.labelStyle = a), + void 0 !== i.interpolate + ? (o.curve = Object(p.interpolateToCurve)( + i.interpolate, + r.curveLinear + )) + : void 0 !== e.defaultInterpolate + ? (o.curve = Object(p.interpolateToCurve)( + e.defaultInterpolate, + r.curveLinear + )) + : (o.curve = Object(p.interpolateToCurve)( + _.curve, + r.curveLinear + )), + (i.text = i.title), + void 0 === i.text + ? void 0 !== i.style && + (o.arrowheadStyle = 'fill: #333') + : ((o.arrowheadStyle = 'fill: #333'), + (o.labelpos = 'c'), + Object(h.getConfig)().flowchart.htmlLabels, + (o.labelType = 'text'), + (o.label = i.text.replace( + g.default.lineBreakRegex, + '\n' + )), + void 0 === i.style && + (o.style = + o.style || + 'stroke: #333; stroke-width: 1.5px;fill:none'), + (o.labelStyle = o.labelStyle.replace( + 'color:', + 'fill:' + ))), + t.setEdge(i.id1, i.id2, o, n); + }); + }, + b = function (e) { + for (var t = Object.keys(m), n = 0; n < t.length; n++) + if (m[t[n]].label === e) return t[n]; + }, + w = function (e) { + Object.keys(e).forEach(function (t) { + _[t] = e[t]; + }); + }, + C = function (e, t) { + (m = {}), + c.parser.yy.clear(), + c.parser.parse(e), + u.logger.info('Rendering diagram ' + e); + var n = Object(r.select)("[id='".concat(t, "']")), + i = new a.a.Graph({ multigraph: !0 }); + i.setGraph({ isMultiGraph: !0 }), + i.setDefaultEdgeLabel(function () { + return {}; + }); + var s = l.default.getClasses(); + u.logger.info('classes:'), u.logger.info(s); + for (var h = Object.keys(s), f = 0; f < h.length; f++) { + var g = s[h[f]], + y = d.default.drawClass(n, g, _); + (m[y.id] = y), + i.setNode(y.id, y), + u.logger.info('Org height: ' + y.height); + } + var v = l.default.getRelations(); + u.logger.info('relations:', v), + v.forEach(function (e) { + u.logger.info( + 'tjoho' + b(e.id1) + b(e.id2) + JSON.stringify(e) + ), + i.setEdge( + b(e.id1), + b(e.id2), + { relation: e }, + e.title || 'DEFAULT' + ); + }), + o.a.layout(i), + i.nodes().forEach(function (e) { + void 0 !== e && + void 0 !== i.node(e) && + (u.logger.debug( + 'Node ' + e + ': ' + JSON.stringify(i.node(e)) + ), + Object(r.select)('#' + Object(l.lookUpDomId)(e)).attr( + 'transform', + 'translate(' + + (i.node(e).x - i.node(e).width / 2) + + ',' + + (i.node(e).y - i.node(e).height / 2) + + ' )' + )); + }), + i.edges().forEach(function (e) { + void 0 !== e && + void 0 !== i.edge(e) && + (u.logger.debug( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(i.edge(e)) + ), + d.default.drawEdge( + n, + i.edge(e), + i.edge(e).relation, + _ + )); + }); + var w = n.node().getBBox(), + C = w.width + 40, + S = w.height + 40; + Object(p.configureSvgSize)(n, S, C, _.useMaxWidth); + var x = '' + .concat(w.x - 20, ' ') + .concat(w.y - 20, ' ') + .concat(C, ' ') + .concat(S); + u.logger.debug('viewBox '.concat(x)), n.attr('viewBox', x); + }, + S = function (e, t) { + u.logger.info('Drawing class'), + l.default.clear(), + c.parser.parse(e); + var n = Object(h.getConfig)().flowchart; + u.logger.info('config:', n); + var i = n.nodeSpacing || 50, + o = n.rankSpacing || 50, + s = new a.a.Graph({ multigraph: !0, compound: !0 }) + .setGraph({ + rankdir: 'TD', + nodesep: i, + ranksep: o, + marginx: 8, + marginy: 8, + }) + .setDefaultEdgeLabel(function () { + return {}; + }), + d = l.default.getClasses(), + g = l.default.getRelations(); + u.logger.info(g), y(d, s, t), v(g, s); + var m = Object(r.select)('[id="'.concat(t, '"]')); + m.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + var _ = Object(r.select)('#' + t + ' g'); + Object(f.render)( + _, + s, + ['aggregation', 'extension', 'composition', 'dependency'], + 'classDiagram', + t + ); + var b = m.node().getBBox(), + w = b.width + 16, + C = b.height + 16; + if ( + (u.logger.debug( + 'new ViewBox 0 0 '.concat(w, ' ').concat(C), + 'translate(' + .concat(8 - s._label.marginx, ', ') + .concat(8 - s._label.marginy, ')') + ), + Object(p.configureSvgSize)(m, C, w, n.useMaxWidth), + m.attr('viewBox', '0 0 '.concat(w, ' ').concat(C)), + m + .select('g') + .attr( + 'transform', + 'translate(' + .concat(8 - s._label.marginx, ', ') + .concat(8 - b.y, ')') + ), + !n.htmlLabels) + ) + for ( + var S = document.querySelectorAll( + '[id="' + t + '"] .edgeLabel .label' + ), + x = 0; + x < S.length; + x++ + ) { + var L = S[x], + k = L.getBBox(), + M = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'rect' + ); + M.setAttribute('rx', 0), + M.setAttribute('ry', 0), + M.setAttribute('width', k.width), + M.setAttribute('height', k.height), + M.setAttribute('style', 'fill:#e8e8e8;'), + L.insertBefore(M, L.firstChild); + } + }; + function x(e) { + var t; + switch (e) { + case 0: + t = 'aggregation'; + break; + case 1: + t = 'extension'; + break; + case 2: + t = 'composition'; + break; + case 3: + t = 'dependency'; + break; + default: + t = 'none'; + } + return t; + } + t.default = { setConf: w, draw: S }; + }, + './src/diagrams/class/classRenderer.js': + /*!*********************************************!*\ !*** ./src/diagrams/class/classRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return _}));var r=n(/*! d3 */"d3"),i=n(/*! dagre */"dagre"),o=n.n(i),s=n(/*! graphlib */"graphlib"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),c=n(/*! ./parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),d=n(/*! ./svgDraw */"./src/diagrams/class/svgDraw.js"),h=n(/*! ../../utils */"./src/utils.js");c.parser.yy=l.default;var f={},p={dividerMargin:10,padding:5,textHeight:10},g=function(e){for(var t=Object.keys(f),n=0;n "+e.w+": "+JSON.stringify(s.edge(e))),d.default.drawEdge(i,s.edge(e),s.edge(e).relation,p))}));var w=i.node().getBBox(),C=w.width+40,S=w.height+40;Object(h.configureSvgSize)(i,S,C,p.useMaxWidth);var x="".concat(w.x-20," ").concat(w.y-20," ").concat(C," ").concat(S);u.logger.debug("viewBox ".concat(x)),i.attr("viewBox",x)};t.default={setConf:m,draw:_}},"./src/diagrams/class/parser/classDiagram.jison": -/*!******************************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return m; + }), + n.d(t, 'draw', function () { + return _; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! dagre */ 'dagre'), + o = n.n(i), + s = n(/*! graphlib */ 'graphlib'), + a = n.n(s), + u = n(/*! ../../logger */ './src/logger.js'), + l = n(/*! ./classDb */ './src/diagrams/class/classDb.js'), + c = n( + /*! ./parser/classDiagram */ './src/diagrams/class/parser/classDiagram.jison' + ), + d = n(/*! ./svgDraw */ './src/diagrams/class/svgDraw.js'), + h = n(/*! ../../utils */ './src/utils.js'); + c.parser.yy = l.default; + var f = {}, + p = { dividerMargin: 10, padding: 5, textHeight: 10 }, + g = function (e) { + for (var t = Object.keys(f), n = 0; n < t.length; n++) + if (f[t[n]].label === e) return t[n]; + }, + m = function (e) { + Object.keys(e).forEach(function (t) { + p[t] = e[t]; + }); + }, + _ = function (e, t) { + (f = {}), + c.parser.yy.clear(), + c.parser.parse(e), + u.logger.info('Rendering diagram ' + e); + var n, + i = Object(r.select)("[id='".concat(t, "']")); + i.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'), + (n = i) + .append('defs') + .append('marker') + .attr('id', 'extensionStart') + .attr('class', 'extension') + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,7 L18,13 V 1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'extensionEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 1,1 V 13 L18,7 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'compositionStart') + .attr('class', 'extension') + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'compositionEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'aggregationStart') + .attr('class', 'extension') + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'aggregationEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L1,7 L9,1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'dependencyStart') + .attr('class', 'extension') + .attr('refX', 0) + .attr('refY', 7) + .attr('markerWidth', 190) + .attr('markerHeight', 240) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 5,7 L9,13 L1,7 L9,1 Z'), + n + .append('defs') + .append('marker') + .attr('id', 'dependencyEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z'); + var s = new a.a.Graph({ multigraph: !0 }); + s.setGraph({ isMultiGraph: !0 }), + s.setDefaultEdgeLabel(function () { + return {}; + }); + for ( + var m = l.default.getClasses(), _ = Object.keys(m), y = 0; + y < _.length; + y++ + ) { + var v = m[_[y]], + b = d.default.drawClass(i, v, p); + (f[b.id] = b), + s.setNode(b.id, b), + u.logger.info('Org height: ' + b.height); + } + l.default.getRelations().forEach(function (e) { + u.logger.info( + 'tjoho' + g(e.id1) + g(e.id2) + JSON.stringify(e) + ), + s.setEdge( + g(e.id1), + g(e.id2), + { relation: e }, + e.title || 'DEFAULT' + ); + }), + o.a.layout(s), + s.nodes().forEach(function (e) { + void 0 !== e && + void 0 !== s.node(e) && + (u.logger.debug( + 'Node ' + e + ': ' + JSON.stringify(s.node(e)) + ), + Object(r.select)('#' + Object(l.lookUpDomId)(e)).attr( + 'transform', + 'translate(' + + (s.node(e).x - s.node(e).width / 2) + + ',' + + (s.node(e).y - s.node(e).height / 2) + + ' )' + )); + }), + s.edges().forEach(function (e) { + void 0 !== e && + void 0 !== s.edge(e) && + (u.logger.debug( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(s.edge(e)) + ), + d.default.drawEdge( + i, + s.edge(e), + s.edge(e).relation, + p + )); + }); + var w = i.node().getBBox(), + C = w.width + 40, + S = w.height + 40; + Object(h.configureSvgSize)(i, S, C, p.useMaxWidth); + var x = '' + .concat(w.x - 20, ' ') + .concat(w.y - 20, ' ') + .concat(C, ' ') + .concat(S); + u.logger.debug('viewBox '.concat(x)), i.attr('viewBox', x); + }; + t.default = { setConf: m, draw: _ }; + }, + './src/diagrams/class/parser/classDiagram.jison': + /*!******************************************************!*\ !*** ./src/diagrams/class/parser/classDiagram.jison ***! \******************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,7],n=[1,6],r=[1,14],i=[1,25],o=[1,28],s=[1,26],a=[1,27],u=[1,29],l=[1,30],c=[1,31],d=[1,33],h=[1,34],f=[1,35],p=[10,19],g=[1,47],m=[1,48],_=[1,49],y=[1,50],v=[1,51],b=[1,52],w=[10,19,25,32,33,41,44,45,46,47,48,49],C=[10,19,23,25,32,33,37,41,44,45,46,47,48,49,66,67,68],S=[10,13,17,19],x=[41,66,67,68],L=[41,48,49,66,67,68],k=[41,44,45,46,47,66,67,68],M=[10,19,25],D=[1,81],E={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,graphConfig:6,openDirective:7,typeDirective:8,closeDirective:9,NEWLINE:10,":":11,argDirective:12,open_directive:13,type_directive:14,arg_directive:15,close_directive:16,CLASS_DIAGRAM:17,statements:18,EOF:19,statement:20,className:21,alphaNumToken:22,GENERICTYPE:23,relationStatement:24,LABEL:25,classStatement:26,methodStatement:27,annotationStatement:28,clickStatement:29,cssClassStatement:30,CLASS:31,STYLE_SEPARATOR:32,STRUCT_START:33,members:34,STRUCT_STOP:35,ANNOTATION_START:36,ANNOTATION_END:37,MEMBER:38,SEPARATOR:39,relation:40,STR:41,relationType:42,lineType:43,AGGREGATION:44,EXTENSION:45,COMPOSITION:46,DEPENDENCY:47,LINE:48,DOTTED_LINE:49,CALLBACK:50,LINK:51,CSSCLASS:52,commentToken:53,textToken:54,graphCodeTokens:55,textNoTagsToken:56,TAGSTART:57,TAGEND:58,"==":59,"--":60,PCT:61,DEFAULT:62,SPACE:63,MINUS:64,keywords:65,UNICODE_TEXT:66,NUM:67,ALPHA:68,$accept:0,$end:1},terminals_:{2:"error",10:"NEWLINE",11:":",13:"open_directive",14:"type_directive",15:"arg_directive",16:"close_directive",17:"CLASS_DIAGRAM",19:"EOF",23:"GENERICTYPE",25:"LABEL",31:"CLASS",32:"STYLE_SEPARATOR",33:"STRUCT_START",35:"STRUCT_STOP",36:"ANNOTATION_START",37:"ANNOTATION_END",38:"MEMBER",39:"SEPARATOR",41:"STR",44:"AGGREGATION",45:"EXTENSION",46:"COMPOSITION",47:"DEPENDENCY",48:"LINE",49:"DOTTED_LINE",50:"CALLBACK",51:"LINK",52:"CSSCLASS",55:"graphCodeTokens",57:"TAGSTART",58:"TAGEND",59:"==",60:"--",61:"PCT",62:"DEFAULT",63:"SPACE",64:"MINUS",65:"keywords",66:"UNICODE_TEXT",67:"NUM",68:"ALPHA"},productions_:[0,[3,1],[3,2],[4,1],[5,4],[5,6],[7,1],[8,1],[12,1],[9,1],[6,4],[18,1],[18,2],[18,3],[21,1],[21,2],[21,3],[21,2],[20,1],[20,2],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[26,2],[26,4],[26,5],[26,7],[28,4],[34,1],[34,2],[27,1],[27,2],[27,1],[27,1],[24,3],[24,4],[24,4],[24,5],[40,3],[40,2],[40,2],[40,1],[42,1],[42,1],[42,1],[42,1],[43,1],[43,1],[29,3],[29,4],[29,3],[29,4],[30,3],[53,1],[53,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[54,1],[56,1],[56,1],[56,1],[56,1],[22,1],[22,1],[22,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 6:r.parseDirective("%%{","open_directive");break;case 7:r.parseDirective(o[a],"type_directive");break;case 8:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 9:r.parseDirective("}%%","close_directive","class");break;case 14:this.$=o[a];break;case 15:this.$=o[a-1]+o[a];break;case 16:this.$=o[a-2]+"~"+o[a-1]+o[a];break;case 17:this.$=o[a-1]+"~"+o[a];break;case 18:r.addRelation(o[a]);break;case 19:o[a-1].title=r.cleanupLabel(o[a]),r.addRelation(o[a-1]);break;case 26:r.addClass(o[a]);break;case 27:r.addClass(o[a-2]),r.setCssClass(o[a-2],o[a]);break;case 28:r.addClass(o[a-3]),r.addMembers(o[a-3],o[a-1]);break;case 29:r.addClass(o[a-5]),r.setCssClass(o[a-5],o[a-3]),r.addMembers(o[a-5],o[a-1]);break;case 30:r.addAnnotation(o[a],o[a-2]);break;case 31:this.$=[o[a]];break;case 32:o[a].push(o[a-1]),this.$=o[a];break;case 33:break;case 34:r.addMember(o[a-1],r.cleanupLabel(o[a]));break;case 35:case 36:break;case 37:this.$={id1:o[a-2],id2:o[a],relation:o[a-1],relationTitle1:"none",relationTitle2:"none"};break;case 38:this.$={id1:o[a-3],id2:o[a],relation:o[a-1],relationTitle1:o[a-2],relationTitle2:"none"};break;case 39:this.$={id1:o[a-3],id2:o[a],relation:o[a-2],relationTitle1:"none",relationTitle2:o[a-1]};break;case 40:this.$={id1:o[a-4],id2:o[a],relation:o[a-2],relationTitle1:o[a-3],relationTitle2:o[a-1]};break;case 41:this.$={type1:o[a-2],type2:o[a],lineType:o[a-1]};break;case 42:this.$={type1:"none",type2:o[a],lineType:o[a-1]};break;case 43:this.$={type1:o[a-1],type2:"none",lineType:o[a]};break;case 44:this.$={type1:"none",type2:"none",lineType:o[a]};break;case 45:this.$=r.relationType.AGGREGATION;break;case 46:this.$=r.relationType.EXTENSION;break;case 47:this.$=r.relationType.COMPOSITION;break;case 48:this.$=r.relationType.DEPENDENCY;break;case 49:this.$=r.lineType.LINE;break;case 50:this.$=r.lineType.DOTTED_LINE;break;case 51:this.$=o[a-2],r.setClickEvent(o[a-1],o[a],void 0);break;case 52:this.$=o[a-3],r.setClickEvent(o[a-2],o[a-1],o[a]);break;case 53:this.$=o[a-2],r.setLink(o[a-1],o[a],void 0);break;case 54:this.$=o[a-3],r.setLink(o[a-2],o[a-1],o[a]);break;case 55:r.setCssClass(o[a-1],o[a])}},table:[{3:1,4:2,5:3,6:4,7:5,13:t,17:n},{1:[3]},{1:[2,1]},{3:8,4:2,5:3,6:4,7:5,13:t,17:n},{1:[2,3]},{8:9,14:[1,10]},{10:[1,11]},{14:[2,6]},{1:[2,2]},{9:12,11:[1,13],16:r},e([11,16],[2,7]),{5:23,7:5,13:t,18:15,20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:i,36:o,38:s,39:a,50:u,51:l,52:c,66:d,67:h,68:f},{10:[1,36]},{12:37,15:[1,38]},{10:[2,9]},{19:[1,39]},{10:[1,40],19:[2,11]},e(p,[2,18],{25:[1,41]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,33],{40:42,42:45,43:46,25:[1,44],41:[1,43],44:g,45:m,46:_,47:y,48:v,49:b}),{21:53,22:32,66:d,67:h,68:f},e(p,[2,35]),e(p,[2,36]),{22:54,66:d,67:h,68:f},{21:55,22:32,66:d,67:h,68:f},{21:56,22:32,66:d,67:h,68:f},{41:[1,57]},e(w,[2,14],{22:32,21:58,23:[1,59],66:d,67:h,68:f}),e(C,[2,69]),e(C,[2,70]),e(C,[2,71]),e(S,[2,4]),{9:60,16:r},{16:[2,8]},{1:[2,10]},{5:23,7:5,13:t,18:61,19:[2,12],20:16,21:24,22:32,24:17,26:18,27:19,28:20,29:21,30:22,31:i,36:o,38:s,39:a,50:u,51:l,52:c,66:d,67:h,68:f},e(p,[2,19]),{21:62,22:32,41:[1,63],66:d,67:h,68:f},{40:64,42:45,43:46,44:g,45:m,46:_,47:y,48:v,49:b},e(p,[2,34]),{43:65,48:v,49:b},e(x,[2,44],{42:66,44:g,45:m,46:_,47:y}),e(L,[2,45]),e(L,[2,46]),e(L,[2,47]),e(L,[2,48]),e(k,[2,49]),e(k,[2,50]),e(p,[2,26],{32:[1,67],33:[1,68]}),{37:[1,69]},{41:[1,70]},{41:[1,71]},{22:72,66:d,67:h,68:f},e(w,[2,15]),e(w,[2,17],{22:32,21:73,66:d,67:h,68:f}),{10:[1,74]},{19:[2,13]},e(M,[2,37]),{21:75,22:32,66:d,67:h,68:f},{21:76,22:32,41:[1,77],66:d,67:h,68:f},e(x,[2,43],{42:78,44:g,45:m,46:_,47:y}),e(x,[2,42]),{22:79,66:d,67:h,68:f},{34:80,38:D},{21:82,22:32,66:d,67:h,68:f},e(p,[2,51],{41:[1,83]}),e(p,[2,53],{41:[1,84]}),e(p,[2,55]),e(w,[2,16]),e(S,[2,5]),e(M,[2,39]),e(M,[2,38]),{21:85,22:32,66:d,67:h,68:f},e(x,[2,41]),e(p,[2,27],{33:[1,86]}),{35:[1,87]},{34:88,35:[2,31],38:D},e(p,[2,30]),e(p,[2,52]),e(p,[2,54]),e(M,[2,40]),{34:89,38:D},e(p,[2,28]),{35:[2,32]},{35:[1,90]},e(p,[2,29])],defaultActions:{2:[2,1],4:[2,3],7:[2,6],8:[2,2],14:[2,9],38:[2,8],39:[2,10],61:[2,13],88:[2,32]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},T={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),13;case 1:return this.begin("type_directive"),14;case 2:return this.popState(),this.begin("arg_directive"),11;case 3:return this.popState(),this.popState(),16;case 4:return 15;case 5:case 6:break;case 7:return 10;case 8:break;case 9:case 10:return 17;case 11:return this.begin("struct"),33;case 12:return"EOF_IN_STRUCT";case 13:return"OPEN_IN_STRUCT";case 14:return this.popState(),35;case 15:break;case 16:return"MEMBER";case 17:return 31;case 18:return 52;case 19:return 50;case 20:return 51;case 21:return 36;case 22:return 37;case 23:this.begin("generic");break;case 24:this.popState();break;case 25:return"GENERICTYPE";case 26:this.begin("string");break;case 27:this.popState();break;case 28:return"STR";case 29:case 30:return 45;case 31:case 32:return 47;case 33:return 46;case 34:return 44;case 35:return 48;case 36:return 49;case 37:return 25;case 38:return 32;case 39:return 64;case 40:return"DOT";case 41:return"PLUS";case 42:return 61;case 43:case 44:return"EQUALS";case 45:return 68;case 46:return"PUNCTUATION";case 47:return 67;case 48:return 66;case 49:return 63;case 50:return 19}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:class\b)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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-\u0C33\u0C35-\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\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\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-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\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])/,/^(?:\s)/,/^(?:$)/],conditions:{string:{rules:[27,28],inclusive:!1},generic:{rules:[24,25],inclusive:!1},struct:{rules:[12,13,14,15,16],inclusive:!1},open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,17,18,19,20,21,22,23,26,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],inclusive:!0}}};function N(){this.yy={}}return E.lexer=T,N.prototype=E,E.Parser=N,new N}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/class/styles.js": -/*!**************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 7], + n = [1, 6], + r = [1, 14], + i = [1, 25], + o = [1, 28], + s = [1, 26], + a = [1, 27], + u = [1, 29], + l = [1, 30], + c = [1, 31], + d = [1, 33], + h = [1, 34], + f = [1, 35], + p = [10, 19], + g = [1, 47], + m = [1, 48], + _ = [1, 49], + y = [1, 50], + v = [1, 51], + b = [1, 52], + w = [10, 19, 25, 32, 33, 41, 44, 45, 46, 47, 48, 49], + C = [ + 10, + 19, + 23, + 25, + 32, + 33, + 37, + 41, + 44, + 45, + 46, + 47, + 48, + 49, + 66, + 67, + 68, + ], + S = [10, 13, 17, 19], + x = [41, 66, 67, 68], + L = [41, 48, 49, 66, 67, 68], + k = [41, 44, 45, 46, 47, 66, 67, 68], + M = [10, 19, 25], + D = [1, 81], + E = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + mermaidDoc: 4, + directive: 5, + graphConfig: 6, + openDirective: 7, + typeDirective: 8, + closeDirective: 9, + NEWLINE: 10, + ':': 11, + argDirective: 12, + open_directive: 13, + type_directive: 14, + arg_directive: 15, + close_directive: 16, + CLASS_DIAGRAM: 17, + statements: 18, + EOF: 19, + statement: 20, + className: 21, + alphaNumToken: 22, + GENERICTYPE: 23, + relationStatement: 24, + LABEL: 25, + classStatement: 26, + methodStatement: 27, + annotationStatement: 28, + clickStatement: 29, + cssClassStatement: 30, + CLASS: 31, + STYLE_SEPARATOR: 32, + STRUCT_START: 33, + members: 34, + STRUCT_STOP: 35, + ANNOTATION_START: 36, + ANNOTATION_END: 37, + MEMBER: 38, + SEPARATOR: 39, + relation: 40, + STR: 41, + relationType: 42, + lineType: 43, + AGGREGATION: 44, + EXTENSION: 45, + COMPOSITION: 46, + DEPENDENCY: 47, + LINE: 48, + DOTTED_LINE: 49, + CALLBACK: 50, + LINK: 51, + CSSCLASS: 52, + commentToken: 53, + textToken: 54, + graphCodeTokens: 55, + textNoTagsToken: 56, + TAGSTART: 57, + TAGEND: 58, + '==': 59, + '--': 60, + PCT: 61, + DEFAULT: 62, + SPACE: 63, + MINUS: 64, + keywords: 65, + UNICODE_TEXT: 66, + NUM: 67, + ALPHA: 68, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 10: 'NEWLINE', + 11: ':', + 13: 'open_directive', + 14: 'type_directive', + 15: 'arg_directive', + 16: 'close_directive', + 17: 'CLASS_DIAGRAM', + 19: 'EOF', + 23: 'GENERICTYPE', + 25: 'LABEL', + 31: 'CLASS', + 32: 'STYLE_SEPARATOR', + 33: 'STRUCT_START', + 35: 'STRUCT_STOP', + 36: 'ANNOTATION_START', + 37: 'ANNOTATION_END', + 38: 'MEMBER', + 39: 'SEPARATOR', + 41: 'STR', + 44: 'AGGREGATION', + 45: 'EXTENSION', + 46: 'COMPOSITION', + 47: 'DEPENDENCY', + 48: 'LINE', + 49: 'DOTTED_LINE', + 50: 'CALLBACK', + 51: 'LINK', + 52: 'CSSCLASS', + 55: 'graphCodeTokens', + 57: 'TAGSTART', + 58: 'TAGEND', + 59: '==', + 60: '--', + 61: 'PCT', + 62: 'DEFAULT', + 63: 'SPACE', + 64: 'MINUS', + 65: 'keywords', + 66: 'UNICODE_TEXT', + 67: 'NUM', + 68: 'ALPHA', + }, + productions_: [ + 0, + [3, 1], + [3, 2], + [4, 1], + [5, 4], + [5, 6], + [7, 1], + [8, 1], + [12, 1], + [9, 1], + [6, 4], + [18, 1], + [18, 2], + [18, 3], + [21, 1], + [21, 2], + [21, 3], + [21, 2], + [20, 1], + [20, 2], + [20, 1], + [20, 1], + [20, 1], + [20, 1], + [20, 1], + [20, 1], + [26, 2], + [26, 4], + [26, 5], + [26, 7], + [28, 4], + [34, 1], + [34, 2], + [27, 1], + [27, 2], + [27, 1], + [27, 1], + [24, 3], + [24, 4], + [24, 4], + [24, 5], + [40, 3], + [40, 2], + [40, 2], + [40, 1], + [42, 1], + [42, 1], + [42, 1], + [42, 1], + [43, 1], + [43, 1], + [29, 3], + [29, 4], + [29, 3], + [29, 4], + [30, 3], + [53, 1], + [53, 1], + [54, 1], + [54, 1], + [54, 1], + [54, 1], + [54, 1], + [54, 1], + [54, 1], + [56, 1], + [56, 1], + [56, 1], + [56, 1], + [22, 1], + [22, 1], + [22, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 6: + r.parseDirective('%%{', 'open_directive'); + break; + case 7: + r.parseDirective(o[a], 'type_directive'); + break; + case 8: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 9: + r.parseDirective('}%%', 'close_directive', 'class'); + break; + case 14: + this.$ = o[a]; + break; + case 15: + this.$ = o[a - 1] + o[a]; + break; + case 16: + this.$ = o[a - 2] + '~' + o[a - 1] + o[a]; + break; + case 17: + this.$ = o[a - 1] + '~' + o[a]; + break; + case 18: + r.addRelation(o[a]); + break; + case 19: + (o[a - 1].title = r.cleanupLabel(o[a])), + r.addRelation(o[a - 1]); + break; + case 26: + r.addClass(o[a]); + break; + case 27: + r.addClass(o[a - 2]), r.setCssClass(o[a - 2], o[a]); + break; + case 28: + r.addClass(o[a - 3]), + r.addMembers(o[a - 3], o[a - 1]); + break; + case 29: + r.addClass(o[a - 5]), + r.setCssClass(o[a - 5], o[a - 3]), + r.addMembers(o[a - 5], o[a - 1]); + break; + case 30: + r.addAnnotation(o[a], o[a - 2]); + break; + case 31: + this.$ = [o[a]]; + break; + case 32: + o[a].push(o[a - 1]), (this.$ = o[a]); + break; + case 33: + break; + case 34: + r.addMember(o[a - 1], r.cleanupLabel(o[a])); + break; + case 35: + case 36: + break; + case 37: + this.$ = { + id1: o[a - 2], + id2: o[a], + relation: o[a - 1], + relationTitle1: 'none', + relationTitle2: 'none', + }; + break; + case 38: + this.$ = { + id1: o[a - 3], + id2: o[a], + relation: o[a - 1], + relationTitle1: o[a - 2], + relationTitle2: 'none', + }; + break; + case 39: + this.$ = { + id1: o[a - 3], + id2: o[a], + relation: o[a - 2], + relationTitle1: 'none', + relationTitle2: o[a - 1], + }; + break; + case 40: + this.$ = { + id1: o[a - 4], + id2: o[a], + relation: o[a - 2], + relationTitle1: o[a - 3], + relationTitle2: o[a - 1], + }; + break; + case 41: + this.$ = { + type1: o[a - 2], + type2: o[a], + lineType: o[a - 1], + }; + break; + case 42: + this.$ = { + type1: 'none', + type2: o[a], + lineType: o[a - 1], + }; + break; + case 43: + this.$ = { + type1: o[a - 1], + type2: 'none', + lineType: o[a], + }; + break; + case 44: + this.$ = { + type1: 'none', + type2: 'none', + lineType: o[a], + }; + break; + case 45: + this.$ = r.relationType.AGGREGATION; + break; + case 46: + this.$ = r.relationType.EXTENSION; + break; + case 47: + this.$ = r.relationType.COMPOSITION; + break; + case 48: + this.$ = r.relationType.DEPENDENCY; + break; + case 49: + this.$ = r.lineType.LINE; + break; + case 50: + this.$ = r.lineType.DOTTED_LINE; + break; + case 51: + (this.$ = o[a - 2]), + r.setClickEvent(o[a - 1], o[a], void 0); + break; + case 52: + (this.$ = o[a - 3]), + r.setClickEvent(o[a - 2], o[a - 1], o[a]); + break; + case 53: + (this.$ = o[a - 2]), + r.setLink(o[a - 1], o[a], void 0); + break; + case 54: + (this.$ = o[a - 3]), + r.setLink(o[a - 2], o[a - 1], o[a]); + break; + case 55: + r.setCssClass(o[a - 1], o[a]); + } + }, + table: [ + { 3: 1, 4: 2, 5: 3, 6: 4, 7: 5, 13: t, 17: n }, + { 1: [3] }, + { 1: [2, 1] }, + { 3: 8, 4: 2, 5: 3, 6: 4, 7: 5, 13: t, 17: n }, + { 1: [2, 3] }, + { 8: 9, 14: [1, 10] }, + { 10: [1, 11] }, + { 14: [2, 6] }, + { 1: [2, 2] }, + { 9: 12, 11: [1, 13], 16: r }, + e([11, 16], [2, 7]), + { + 5: 23, + 7: 5, + 13: t, + 18: 15, + 20: 16, + 21: 24, + 22: 32, + 24: 17, + 26: 18, + 27: 19, + 28: 20, + 29: 21, + 30: 22, + 31: i, + 36: o, + 38: s, + 39: a, + 50: u, + 51: l, + 52: c, + 66: d, + 67: h, + 68: f, + }, + { 10: [1, 36] }, + { 12: 37, 15: [1, 38] }, + { 10: [2, 9] }, + { 19: [1, 39] }, + { 10: [1, 40], 19: [2, 11] }, + e(p, [2, 18], { 25: [1, 41] }), + e(p, [2, 20]), + e(p, [2, 21]), + e(p, [2, 22]), + e(p, [2, 23]), + e(p, [2, 24]), + e(p, [2, 25]), + e(p, [2, 33], { + 40: 42, + 42: 45, + 43: 46, + 25: [1, 44], + 41: [1, 43], + 44: g, + 45: m, + 46: _, + 47: y, + 48: v, + 49: b, + }), + { 21: 53, 22: 32, 66: d, 67: h, 68: f }, + e(p, [2, 35]), + e(p, [2, 36]), + { 22: 54, 66: d, 67: h, 68: f }, + { 21: 55, 22: 32, 66: d, 67: h, 68: f }, + { 21: 56, 22: 32, 66: d, 67: h, 68: f }, + { 41: [1, 57] }, + e(w, [2, 14], { + 22: 32, + 21: 58, + 23: [1, 59], + 66: d, + 67: h, + 68: f, + }), + e(C, [2, 69]), + e(C, [2, 70]), + e(C, [2, 71]), + e(S, [2, 4]), + { 9: 60, 16: r }, + { 16: [2, 8] }, + { 1: [2, 10] }, + { + 5: 23, + 7: 5, + 13: t, + 18: 61, + 19: [2, 12], + 20: 16, + 21: 24, + 22: 32, + 24: 17, + 26: 18, + 27: 19, + 28: 20, + 29: 21, + 30: 22, + 31: i, + 36: o, + 38: s, + 39: a, + 50: u, + 51: l, + 52: c, + 66: d, + 67: h, + 68: f, + }, + e(p, [2, 19]), + { 21: 62, 22: 32, 41: [1, 63], 66: d, 67: h, 68: f }, + { + 40: 64, + 42: 45, + 43: 46, + 44: g, + 45: m, + 46: _, + 47: y, + 48: v, + 49: b, + }, + e(p, [2, 34]), + { 43: 65, 48: v, 49: b }, + e(x, [2, 44], { 42: 66, 44: g, 45: m, 46: _, 47: y }), + e(L, [2, 45]), + e(L, [2, 46]), + e(L, [2, 47]), + e(L, [2, 48]), + e(k, [2, 49]), + e(k, [2, 50]), + e(p, [2, 26], { 32: [1, 67], 33: [1, 68] }), + { 37: [1, 69] }, + { 41: [1, 70] }, + { 41: [1, 71] }, + { 22: 72, 66: d, 67: h, 68: f }, + e(w, [2, 15]), + e(w, [2, 17], { 22: 32, 21: 73, 66: d, 67: h, 68: f }), + { 10: [1, 74] }, + { 19: [2, 13] }, + e(M, [2, 37]), + { 21: 75, 22: 32, 66: d, 67: h, 68: f }, + { 21: 76, 22: 32, 41: [1, 77], 66: d, 67: h, 68: f }, + e(x, [2, 43], { 42: 78, 44: g, 45: m, 46: _, 47: y }), + e(x, [2, 42]), + { 22: 79, 66: d, 67: h, 68: f }, + { 34: 80, 38: D }, + { 21: 82, 22: 32, 66: d, 67: h, 68: f }, + e(p, [2, 51], { 41: [1, 83] }), + e(p, [2, 53], { 41: [1, 84] }), + e(p, [2, 55]), + e(w, [2, 16]), + e(S, [2, 5]), + e(M, [2, 39]), + e(M, [2, 38]), + { 21: 85, 22: 32, 66: d, 67: h, 68: f }, + e(x, [2, 41]), + e(p, [2, 27], { 33: [1, 86] }), + { 35: [1, 87] }, + { 34: 88, 35: [2, 31], 38: D }, + e(p, [2, 30]), + e(p, [2, 52]), + e(p, [2, 54]), + e(M, [2, 40]), + { 34: 89, 38: D }, + e(p, [2, 28]), + { 35: [2, 32] }, + { 35: [1, 90] }, + e(p, [2, 29]), + ], + defaultActions: { + 2: [2, 1], + 4: [2, 3], + 7: [2, 6], + 8: [2, 2], + 14: [2, 9], + 38: [2, 8], + 39: [2, 10], + 61: [2, 13], + 88: [2, 32], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + T = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: {}, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 13; + case 1: + return this.begin('type_directive'), 14; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 11 + ); + case 3: + return this.popState(), this.popState(), 16; + case 4: + return 15; + case 5: + case 6: + break; + case 7: + return 10; + case 8: + break; + case 9: + case 10: + return 17; + case 11: + return this.begin('struct'), 33; + case 12: + return 'EOF_IN_STRUCT'; + case 13: + return 'OPEN_IN_STRUCT'; + case 14: + return this.popState(), 35; + case 15: + break; + case 16: + return 'MEMBER'; + case 17: + return 31; + case 18: + return 52; + case 19: + return 50; + case 20: + return 51; + case 21: + return 36; + case 22: + return 37; + case 23: + this.begin('generic'); + break; + case 24: + this.popState(); + break; + case 25: + return 'GENERICTYPE'; + case 26: + this.begin('string'); + break; + case 27: + this.popState(); + break; + case 28: + return 'STR'; + case 29: + case 30: + return 45; + case 31: + case 32: + return 47; + case 33: + return 46; + case 34: + return 44; + case 35: + return 48; + case 36: + return 49; + case 37: + return 25; + case 38: + return 32; + case 39: + return 64; + case 40: + return 'DOT'; + case 41: + return 'PLUS'; + case 42: + return 61; + case 43: + case 44: + return 'EQUALS'; + case 45: + return 68; + case 46: + return 'PUNCTUATION'; + case 47: + return 67; + case 48: + return 66; + case 49: + return 63; + case 50: + return 19; + } + }, + rules: [ + /^(?:%%\{)/, + /^(?:((?:(?!\}%%)[^:.])*))/, + /^(?::)/, + /^(?:\}%%)/, + /^(?:((?:(?!\}%%).|\n)*))/, + /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, + /^(?:%%[^\n]*(\r?\n)*)/, + /^(?:(\r?\n)+)/, + /^(?:\s+)/, + /^(?:classDiagram-v2\b)/, + /^(?:classDiagram\b)/, + /^(?:[{])/, + /^(?:$)/, + /^(?:[{])/, + /^(?:[}])/, + /^(?:[\n])/, + /^(?:[^{}\n]*)/, + /^(?:class\b)/, + /^(?:cssClass\b)/, + /^(?:callback\b)/, + /^(?:link\b)/, + /^(?:<<)/, + /^(?:>>)/, + /^(?:[~])/, + /^(?:[~])/, + /^(?:[^~]*)/, + /^(?:["])/, + /^(?:["])/, + /^(?:[^"]*)/, + /^(?:\s*<\|)/, + /^(?:\s*\|>)/, + /^(?:\s*>)/, + /^(?:\s*<)/, + /^(?:\s*\*)/, + /^(?:\s*o\b)/, + /^(?:--)/, + /^(?:\.\.)/, + /^(?::{1}[^:\n;]+)/, + /^(?::{3})/, + /^(?:-)/, + /^(?:\.)/, + /^(?:\+)/, + /^(?:%)/, + /^(?:=)/, + /^(?:=)/, + /^(?:\w+)/, + /^(?:[!"#$%&'*+,-.`?\\/])/, + /^(?:[0-9]+)/, + /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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-\u0C33\u0C35-\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\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\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-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\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])/, + /^(?:\s)/, + /^(?:$)/, + ], + conditions: { + string: { rules: [27, 28], inclusive: !1 }, + generic: { rules: [24, 25], inclusive: !1 }, + struct: { rules: [12, 13, 14, 15, 16], inclusive: !1 }, + open_directive: { rules: [1], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 26, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + ], + inclusive: !0, + }, + }, + }; + function N() { + this.yy = {}; + } + return ( + (E.lexer = T), (N.prototype = E), (E.Parser = N), new N() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/class/styles.js': + /*!**************************************!*\ !*** ./src/diagrams/class/styles.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return"g.classGroup text {\n fill: ".concat(e.nodeBorder,";\n fill: ").concat(e.classText,";\n stroke: none;\n font-family: ").concat(e.fontFamily,";\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ").concat(e.nodeBorder,";\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n}\n\ng.classGroup line {\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(e.mainBkg,";\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ").concat(e.nodeBorder,";\n font-size: 10px;\n}\n\n.relation {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ").concat(e.lineColor," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ").concat(e.mainBkg," !important;\n stroke: ").concat(e.lineColor," !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n")}},"./src/diagrams/class/svgDraw.js": -/*!***************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return 'g.classGroup text {\n fill: ' + .concat(e.nodeBorder, ';\n fill: ') + .concat(e.classText, ';\n stroke: none;\n font-family: ') + .concat( + e.fontFamily, + ';\n font-size: 10px;\n\n .title {\n font-weight: bolder;\n }\n\n}\n\n.classTitle {\n font-weight: bolder;\n}\n.node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n stroke-width: 1px;\n }\n\n\n.divider {\n stroke: ' + ) + .concat( + e.nodeBorder, + ';\n stroke: 1;\n}\n\ng.clickable {\n cursor: pointer;\n}\n\ng.classGroup rect {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n}\n\ng.classGroup line {\n stroke: ' + ) + .concat( + e.nodeBorder, + ';\n stroke-width: 1;\n}\n\n.classLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ' + ) + .concat( + e.mainBkg, + ';\n opacity: 0.5;\n}\n\n.classLabel .label {\n fill: ' + ) + .concat( + e.nodeBorder, + ';\n font-size: 10px;\n}\n\n.relation {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n stroke-width: 1;\n fill: none;\n}\n\n.dashed-line{\n stroke-dasharray: 3;\n}\n\n#compositionStart, .composition {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#compositionEnd, .composition {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#dependencyStart, .dependency {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#extensionStart, .extension {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#extensionEnd, .extension {\n fill: ' + ) + .concat(e.lineColor, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#aggregationStart, .aggregation {\n fill: ' + ) + .concat(e.mainBkg, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n#aggregationEnd, .aggregation {\n fill: ' + ) + .concat(e.mainBkg, ' !important;\n stroke: ') + .concat( + e.lineColor, + ' !important;\n stroke-width: 1;\n}\n\n.edgeTerminals {\n font-size: 11px;\n}\n\n' + ); + }); + }, + './src/diagrams/class/svgDraw.js': + /*!***************************************!*\ !*** ./src/diagrams/class/svgDraw.js ***! \***************************************/ -/*! exports provided: drawEdge, drawClass, parseMember, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawEdge",(function(){return u})),n.d(t,"drawClass",(function(){return l})),n.d(t,"parseMember",(function(){return c}));var r=n(/*! d3 */"d3"),i=n(/*! ./classDb */"./src/diagrams/class/classDb.js"),o=n(/*! ../../utils */"./src/utils.js"),s=n(/*! ../../logger */"./src/logger.js"),a=0,u=function(e,t,n,u){var l=function(e){switch(e){case i.relationType.AGGREGATION:return"aggregation";case i.relationType.EXTENSION:return"extension";case i.relationType.COMPOSITION:return"composition";case i.relationType.DEPENDENCY:return"dependency"}};t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var c,d,h=t.points,f=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),p=e.append("path").attr("d",f(h)).attr("id","edge"+a).attr("class","relation"),g="";u.arrowMarkerAbsolute&&(g=(g=(g=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),1==n.relation.lineType&&p.attr("class","relation dashed-line"),"none"!==n.relation.type1&&p.attr("marker-start","url("+g+"#"+l(n.relation.type1)+"Start)"),"none"!==n.relation.type2&&p.attr("marker-end","url("+g+"#"+l(n.relation.type2)+"End)");var m,_,y,v,b=t.points.length,w=o.default.calcLabelPosition(t.points);if(c=w.x,d=w.y,b%2!=0&&b>1){var C=o.default.calcCardinalityPosition("none"!==n.relation.type1,t.points,t.points[0]),S=o.default.calcCardinalityPosition("none"!==n.relation.type2,t.points,t.points[b-1]);s.logger.debug("cardinality_1_point "+JSON.stringify(C)),s.logger.debug("cardinality_2_point "+JSON.stringify(S)),m=C.x,_=C.y,y=S.x,v=S.y}if(void 0!==n.title){var x=e.append("g").attr("class","classLabel"),L=x.append("text").attr("class","label").attr("x",c).attr("y",d).attr("fill","red").attr("text-anchor","middle").text(n.title);window.label=L;var k=L.node().getBBox();x.insert("rect",":first-child").attr("class","box").attr("x",k.x-u.padding/2).attr("y",k.y-u.padding/2).attr("width",k.width+u.padding).attr("height",k.height+u.padding)}s.logger.info("Rendering relation "+JSON.stringify(n)),void 0!==n.relationTitle1&&"none"!==n.relationTitle1&&e.append("g").attr("class","cardinality").append("text").attr("class","type1").attr("x",m).attr("y",_).attr("fill","black").attr("font-size","6").text(n.relationTitle1),void 0!==n.relationTitle2&&"none"!==n.relationTitle2&&e.append("g").attr("class","cardinality").append("text").attr("class","type2").attr("x",y).attr("y",v).attr("fill","black").attr("font-size","6").text(n.relationTitle2),a++},l=function(e,t,n){s.logger.info("Rendering class "+t);var r,o=t.id,a={id:o,label:t.id,width:0,height:0},u=e.append("g").attr("id",Object(i.lookUpDomId)(o)).attr("class","classGroup");r=t.link?u.append("svg:a").attr("xlink:href",t.link).attr("target","_blank").append("text").attr("y",n.textHeight+n.padding).attr("x",0):u.append("text").attr("y",n.textHeight+n.padding).attr("x",0);var l=!0;t.annotations.forEach((function(e){var t=r.append("tspan").text("«"+e+"»");l||t.attr("dy",n.textHeight),l=!1}));var c=t.id;void 0!==t.type&&""!==t.type&&(c+="<"+t.type+">");var d=r.append("tspan").text(c).attr("class","title");l||d.attr("dy",n.textHeight);var h=r.node().getBBox().height,f=u.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin/2).attr("y2",n.padding+h+n.dividerMargin/2),g=u.append("text").attr("x",n.padding).attr("y",h+n.dividerMargin+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.members.forEach((function(e){p(g,e,l,n),l=!1}));var m=g.node().getBBox(),_=u.append("line").attr("x1",0).attr("y1",n.padding+h+n.dividerMargin+m.height).attr("y2",n.padding+h+n.dividerMargin+m.height),y=u.append("text").attr("x",n.padding).attr("y",h+2*n.dividerMargin+m.height+n.textHeight).attr("fill","white").attr("class","classText");l=!0,t.methods.forEach((function(e){p(y,e,l,n),l=!1}));var v=u.node().getBBox(),b=" ";t.cssClasses.length>0&&(b+=t.cssClasses.join(" "));var w=u.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v.width+2*n.padding).attr("height",v.height+n.padding+.5*n.dividerMargin).attr("class",b).node().getBBox().width;return r.node().childNodes.forEach((function(e){e.setAttribute("x",(w-e.getBBox().width)/2)})),t.tooltip&&r.insert("title").text(t.tooltip),f.attr("x2",w),_.attr("x2",w),a.width=w,a.height=v.height+n.padding+.5*n.dividerMargin,a},c=function(e){var t=e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/),n=e.match(/^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/);return t&&!n?d(t):n?h(n):f(e)},d=function(e){var t="";try{t=(e[1]?e[1].trim():"")+(e[2]?e[2].trim():"")+(e[3]?g(e[3].trim()):"")+" "+(e[4]?e[4].trim():"")}catch(n){t=e}return{displayText:t,cssStyle:""}},h=function(e){var t="",n="";try{var r=e[1]?e[1].trim():"",i=e[2]?e[2].trim():"",o=e[3]?g(e[3].trim()):"",s=e[4]?e[4].trim():"";n=r+i+"("+o+")"+(e[5]?" : "+g(e[5]).trim():""),t=m(s)}catch(t){n=e}return{displayText:n,cssStyle:t}},f=function(e){var t="",n="",r="",i=e.indexOf("("),o=e.indexOf(")");if(i>1&&o>i&&o<=e.length){var s="",a="",u=e.substring(0,1);u.match(/\w/)?a=e.substring(0,i).trim():(u.match(/\+|-|~|#/)&&(s=u),a=e.substring(1,i).trim());var l=e.substring(i+1,o),c=e.substring(o+1,1);n=m(c),t=s+a+"("+g(l.trim())+")",o<"".length&&""!==(r=e.substring(o+2).trim())&&(r=" : "+g(r))}else t=g(e);return{displayText:t,cssStyle:n}},p=function(e,t,n,r){var i=c(t),o=e.append("tspan").attr("x",r.padding).text(i.displayText);""!==i.cssStyle&&o.attr("style",i.cssStyle),n||o.attr("dy",r.textHeight)},g=function e(t){var n=t;return-1!=t.indexOf("~")?e(n=(n=n.replace("~","<")).replace("~",">")):n},m=function(e){switch(e){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}};t.default={drawClass:l,drawEdge:u,parseMember:c}},"./src/diagrams/common/common.js": -/*!***************************************!*\ + /*! exports provided: drawEdge, drawClass, parseMember, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'drawEdge', function () { + return u; + }), + n.d(t, 'drawClass', function () { + return l; + }), + n.d(t, 'parseMember', function () { + return c; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ./classDb */ './src/diagrams/class/classDb.js'), + o = n(/*! ../../utils */ './src/utils.js'), + s = n(/*! ../../logger */ './src/logger.js'), + a = 0, + u = function (e, t, n, u) { + var l = function (e) { + switch (e) { + case i.relationType.AGGREGATION: + return 'aggregation'; + case i.relationType.EXTENSION: + return 'extension'; + case i.relationType.COMPOSITION: + return 'composition'; + case i.relationType.DEPENDENCY: + return 'dependency'; + } + }; + t.points = t.points.filter(function (e) { + return !Number.isNaN(e.y); + }); + var c, + d, + h = t.points, + f = Object(r.line)() + .x(function (e) { + return e.x; + }) + .y(function (e) { + return e.y; + }) + .curve(r.curveBasis), + p = e + .append('path') + .attr('d', f(h)) + .attr('id', 'edge' + a) + .attr('class', 'relation'), + g = ''; + u.arrowMarkerAbsolute && + (g = (g = (g = + window.location.protocol + + '//' + + window.location.host + + window.location.pathname + + window.location.search).replace(/\(/g, '\\(')).replace( + /\)/g, + '\\)' + )), + 1 == n.relation.lineType && + p.attr('class', 'relation dashed-line'), + 'none' !== n.relation.type1 && + p.attr( + 'marker-start', + 'url(' + g + '#' + l(n.relation.type1) + 'Start)' + ), + 'none' !== n.relation.type2 && + p.attr( + 'marker-end', + 'url(' + g + '#' + l(n.relation.type2) + 'End)' + ); + var m, + _, + y, + v, + b = t.points.length, + w = o.default.calcLabelPosition(t.points); + if (((c = w.x), (d = w.y), b % 2 != 0 && b > 1)) { + var C = o.default.calcCardinalityPosition( + 'none' !== n.relation.type1, + t.points, + t.points[0] + ), + S = o.default.calcCardinalityPosition( + 'none' !== n.relation.type2, + t.points, + t.points[b - 1] + ); + s.logger.debug('cardinality_1_point ' + JSON.stringify(C)), + s.logger.debug( + 'cardinality_2_point ' + JSON.stringify(S) + ), + (m = C.x), + (_ = C.y), + (y = S.x), + (v = S.y); + } + if (void 0 !== n.title) { + var x = e.append('g').attr('class', 'classLabel'), + L = x + .append('text') + .attr('class', 'label') + .attr('x', c) + .attr('y', d) + .attr('fill', 'red') + .attr('text-anchor', 'middle') + .text(n.title); + window.label = L; + var k = L.node().getBBox(); + x.insert('rect', ':first-child') + .attr('class', 'box') + .attr('x', k.x - u.padding / 2) + .attr('y', k.y - u.padding / 2) + .attr('width', k.width + u.padding) + .attr('height', k.height + u.padding); + } + s.logger.info('Rendering relation ' + JSON.stringify(n)), + void 0 !== n.relationTitle1 && + 'none' !== n.relationTitle1 && + e + .append('g') + .attr('class', 'cardinality') + .append('text') + .attr('class', 'type1') + .attr('x', m) + .attr('y', _) + .attr('fill', 'black') + .attr('font-size', '6') + .text(n.relationTitle1), + void 0 !== n.relationTitle2 && + 'none' !== n.relationTitle2 && + e + .append('g') + .attr('class', 'cardinality') + .append('text') + .attr('class', 'type2') + .attr('x', y) + .attr('y', v) + .attr('fill', 'black') + .attr('font-size', '6') + .text(n.relationTitle2), + a++; + }, + l = function (e, t, n) { + s.logger.info('Rendering class ' + t); + var r, + o = t.id, + a = { id: o, label: t.id, width: 0, height: 0 }, + u = e + .append('g') + .attr('id', Object(i.lookUpDomId)(o)) + .attr('class', 'classGroup'); + r = t.link + ? u + .append('svg:a') + .attr('xlink:href', t.link) + .attr('target', '_blank') + .append('text') + .attr('y', n.textHeight + n.padding) + .attr('x', 0) + : u + .append('text') + .attr('y', n.textHeight + n.padding) + .attr('x', 0); + var l = !0; + t.annotations.forEach(function (e) { + var t = r.append('tspan').text('«' + e + '»'); + l || t.attr('dy', n.textHeight), (l = !1); + }); + var c = t.id; + void 0 !== t.type && + '' !== t.type && + (c += '<' + t.type + '>'); + var d = r.append('tspan').text(c).attr('class', 'title'); + l || d.attr('dy', n.textHeight); + var h = r.node().getBBox().height, + f = u + .append('line') + .attr('x1', 0) + .attr('y1', n.padding + h + n.dividerMargin / 2) + .attr('y2', n.padding + h + n.dividerMargin / 2), + g = u + .append('text') + .attr('x', n.padding) + .attr('y', h + n.dividerMargin + n.textHeight) + .attr('fill', 'white') + .attr('class', 'classText'); + (l = !0), + t.members.forEach(function (e) { + p(g, e, l, n), (l = !1); + }); + var m = g.node().getBBox(), + _ = u + .append('line') + .attr('x1', 0) + .attr('y1', n.padding + h + n.dividerMargin + m.height) + .attr('y2', n.padding + h + n.dividerMargin + m.height), + y = u + .append('text') + .attr('x', n.padding) + .attr( + 'y', + h + 2 * n.dividerMargin + m.height + n.textHeight + ) + .attr('fill', 'white') + .attr('class', 'classText'); + (l = !0), + t.methods.forEach(function (e) { + p(y, e, l, n), (l = !1); + }); + var v = u.node().getBBox(), + b = ' '; + t.cssClasses.length > 0 && (b += t.cssClasses.join(' ')); + var w = u + .insert('rect', ':first-child') + .attr('x', 0) + .attr('y', 0) + .attr('width', v.width + 2 * n.padding) + .attr( + 'height', + v.height + n.padding + 0.5 * n.dividerMargin + ) + .attr('class', b) + .node() + .getBBox().width; + return ( + r.node().childNodes.forEach(function (e) { + e.setAttribute('x', (w - e.getBBox().width) / 2); + }), + t.tooltip && r.insert('title').text(t.tooltip), + f.attr('x2', w), + _.attr('x2', w), + (a.width = w), + (a.height = v.height + n.padding + 0.5 * n.dividerMargin), + a + ); + }, + c = function (e) { + var t = e.match(/(\+|-|~|#)?(\w+)(~\w+~|\[\])?\s+(\w+)/), + n = e.match( + /^([+|\-|~|#])?(\w+) *\( *(.*)\) *(\*|\$)? *(\w*[~|[\]]*\s*\w*~?)$/ + ); + return t && !n ? d(t) : n ? h(n) : f(e); + }, + d = function (e) { + var t = ''; + try { + t = + (e[1] ? e[1].trim() : '') + + (e[2] ? e[2].trim() : '') + + (e[3] ? g(e[3].trim()) : '') + + ' ' + + (e[4] ? e[4].trim() : ''); + } catch (n) { + t = e; + } + return { displayText: t, cssStyle: '' }; + }, + h = function (e) { + var t = '', + n = ''; + try { + var r = e[1] ? e[1].trim() : '', + i = e[2] ? e[2].trim() : '', + o = e[3] ? g(e[3].trim()) : '', + s = e[4] ? e[4].trim() : ''; + (n = + r + + i + + '(' + + o + + ')' + + (e[5] ? ' : ' + g(e[5]).trim() : '')), + (t = m(s)); + } catch (t) { + n = e; + } + return { displayText: n, cssStyle: t }; + }, + f = function (e) { + var t = '', + n = '', + r = '', + i = e.indexOf('('), + o = e.indexOf(')'); + if (i > 1 && o > i && o <= e.length) { + var s = '', + a = '', + u = e.substring(0, 1); + u.match(/\w/) + ? (a = e.substring(0, i).trim()) + : (u.match(/\+|-|~|#/) && (s = u), + (a = e.substring(1, i).trim())); + var l = e.substring(i + 1, o), + c = e.substring(o + 1, 1); + (n = m(c)), + (t = s + a + '(' + g(l.trim()) + ')'), + o < ''.length && + '' !== (r = e.substring(o + 2).trim()) && + (r = ' : ' + g(r)); + } else t = g(e); + return { displayText: t, cssStyle: n }; + }, + p = function (e, t, n, r) { + var i = c(t), + o = e + .append('tspan') + .attr('x', r.padding) + .text(i.displayText); + '' !== i.cssStyle && o.attr('style', i.cssStyle), + n || o.attr('dy', r.textHeight); + }, + g = function e(t) { + var n = t; + return -1 != t.indexOf('~') + ? e((n = (n = n.replace('~', '<')).replace('~', '>'))) + : n; + }, + m = function (e) { + switch (e) { + case '*': + return 'font-style:italic;'; + case '$': + return 'text-decoration:underline;'; + default: + return ''; + } + }; + t.default = { drawClass: l, drawEdge: u, parseMember: c }; + }, + './src/diagrams/common/common.js': + /*!***************************************!*\ !*** ./src/diagrams/common/common.js ***! \***************************************/ -/*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */function(e,t,n){"use strict";n.r(t),n.d(t,"getRows",(function(){return r})),n.d(t,"removeScript",(function(){return i})),n.d(t,"sanitizeText",(function(){return o})),n.d(t,"lineBreakRegex",(function(){return s})),n.d(t,"hasBreaks",(function(){return a})),n.d(t,"splitBreaks",(function(){return u}));var r=function(e){if(!e)return 1;var t=l(e);return(t=t.replace(/\\n/g,"#br#")).split("#br#")},i=function(e){for(var t="",n=0;n>=0;){if(!((n=e.indexOf("=0)){t+=e,n=-1;break}t+=e.substr(0,n),(n=(e=e.substr(n+1)).indexOf("<\/script>"))>=0&&(n+=9,e=e.substr(n))}return t},o=function(e,t){var n=e,r=!0;if(!t.flowchart||!1!==t.flowchart.htmlLabels&&"false"!==t.flowchart.htmlLabels||(r=!1),r){var o=t.securityLevel;"antiscript"===o?n=i(n):"loose"!==o&&(n=(n=(n=l(n)).replace(//g,">")).replace(/=/g,"="),n=c(n))}return n},s=//gi,a=function(e){return//gi.test(e)},u=function(e){return e.split(//gi)},l=function(e){return e.replace(s,"#br#")},c=function(e){return e.replace(/#br#/g,"
")};t.default={getRows:r,sanitizeText:o,hasBreaks:a,splitBreaks:u,lineBreakRegex:s,removeScript:i}},"./src/diagrams/er/erDb.js": -/*!*********************************!*\ + /*! exports provided: getRows, removeScript, sanitizeText, lineBreakRegex, hasBreaks, splitBreaks, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'getRows', function () { + return r; + }), + n.d(t, 'removeScript', function () { + return i; + }), + n.d(t, 'sanitizeText', function () { + return o; + }), + n.d(t, 'lineBreakRegex', function () { + return s; + }), + n.d(t, 'hasBreaks', function () { + return a; + }), + n.d(t, 'splitBreaks', function () { + return u; + }); + var r = function (e) { + if (!e) return 1; + var t = l(e); + return (t = t.replace(/\\n/g, '#br#')).split('#br#'); + }, + i = function (e) { + for (var t = '', n = 0; n >= 0; ) { + if (!((n = e.indexOf('= 0)) { + (t += e), (n = -1); + break; + } + (t += e.substr(0, n)), + (n = (e = e.substr(n + 1)).indexOf('')) >= 0 && + ((n += 9), (e = e.substr(n))); + } + return t; + }, + o = function (e, t) { + var n = e, + r = !0; + if ( + (!t.flowchart || + (!1 !== t.flowchart.htmlLabels && + 'false' !== t.flowchart.htmlLabels) || + (r = !1), + r) + ) { + var o = t.securityLevel; + 'antiscript' === o + ? (n = i(n)) + : 'loose' !== o && + ((n = (n = (n = l(n)) + .replace(//g, '>')).replace(/=/g, '=')), + (n = c(n))); + } + return n; + }, + s = //gi, + a = function (e) { + return //gi.test(e); + }, + u = function (e) { + return e.split(//gi); + }, + l = function (e) { + return e.replace(s, '#br#'); + }, + c = function (e) { + return e.replace(/#br#/g, '
'); + }; + t.default = { + getRows: r, + sanitizeText: o, + hasBreaks: a, + splitBreaks: u, + lineBreakRegex: s, + removeScript: i, + }; + }, + './src/diagrams/er/erDb.js': + /*!*********************************!*\ !*** ./src/diagrams/er/erDb.js ***! \*********************************/ -/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return l}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a=[],u="",l=function(e,t,n){i.default.parseDirective(this,e,t,n)},c=function(e){return void 0===s[e]&&(s[e]={attributes:[]},r.logger.info("Added new entity :",e)),s[e]};t.default={Cardinality:{ZERO_OR_ONE:"ZERO_OR_ONE",ZERO_OR_MORE:"ZERO_OR_MORE",ONE_OR_MORE:"ONE_OR_MORE",ONLY_ONE:"ONLY_ONE"},Identification:{NON_IDENTIFYING:"NON_IDENTIFYING",IDENTIFYING:"IDENTIFYING"},parseDirective:l,getConfig:function(){return o.getConfig().er},addEntity:c,addAttributes:function(e,t){var n,i=c(e);for(n=t.length-1;n>=0;n--)i.attributes.push(t[n]),r.logger.debug("Added attribute ",t[n].attributeName)},getEntities:function(){return s},addRelationship:function(e,t,n,i){var o={entityA:e,roleA:t,entityB:n,relSpec:i};a.push(o),r.logger.debug("Added new relationship :",o)},getRelationships:function(){return a},clear:function(){s={},a=[],u=""},setTitle:function(e){u=e},getTitle:function(){return u}}},"./src/diagrams/er/erMarkers.js": -/*!**************************************!*\ + /*! exports provided: parseDirective, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'parseDirective', function () { + return l; + }); + var r = n(/*! ../../logger */ './src/logger.js'), + i = n(/*! ../../mermaidAPI */ './src/mermaidAPI.js'), + o = n(/*! ../../config */ './src/config.js'), + s = {}, + a = [], + u = '', + l = function (e, t, n) { + i.default.parseDirective(this, e, t, n); + }, + c = function (e) { + return ( + void 0 === s[e] && + ((s[e] = { attributes: [] }), + r.logger.info('Added new entity :', e)), + s[e] + ); + }; + t.default = { + Cardinality: { + ZERO_OR_ONE: 'ZERO_OR_ONE', + ZERO_OR_MORE: 'ZERO_OR_MORE', + ONE_OR_MORE: 'ONE_OR_MORE', + ONLY_ONE: 'ONLY_ONE', + }, + Identification: { + NON_IDENTIFYING: 'NON_IDENTIFYING', + IDENTIFYING: 'IDENTIFYING', + }, + parseDirective: l, + getConfig: function () { + return o.getConfig().er; + }, + addEntity: c, + addAttributes: function (e, t) { + var n, + i = c(e); + for (n = t.length - 1; n >= 0; n--) + i.attributes.push(t[n]), + r.logger.debug('Added attribute ', t[n].attributeName); + }, + getEntities: function () { + return s; + }, + addRelationship: function (e, t, n, i) { + var o = { entityA: e, roleA: t, entityB: n, relSpec: i }; + a.push(o), r.logger.debug('Added new relationship :', o); + }, + getRelationships: function () { + return a; + }, + clear: function () { + (s = {}), (a = []), (u = ''); + }, + setTitle: function (e) { + u = e; + }, + getTitle: function () { + return u; + }, + }; + }, + './src/diagrams/er/erMarkers.js': + /*!**************************************!*\ !*** ./src/diagrams/er/erMarkers.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r={ONLY_ONE_START:"ONLY_ONE_START",ONLY_ONE_END:"ONLY_ONE_END",ZERO_OR_ONE_START:"ZERO_OR_ONE_START",ZERO_OR_ONE_END:"ZERO_OR_ONE_END",ONE_OR_MORE_START:"ONE_OR_MORE_START",ONE_OR_MORE_END:"ONE_OR_MORE_END",ZERO_OR_MORE_START:"ZERO_OR_MORE_START",ZERO_OR_MORE_END:"ZERO_OR_MORE_END"};t.default={ERMarkers:r,insertMarkers:function(e,t){var n;e.append("defs").append("marker").attr("id",r.ONLY_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18 M15,0 L15,18"),e.append("defs").append("marker").attr("id",r.ONLY_ONE_END).attr("refX",18).attr("refY",9).attr("markerWidth",18).attr("markerHeight",18).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,0 L3,18 M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_START).attr("refX",0).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",21).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M9,0 L9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_ONE_END).attr("refX",30).attr("refY",9).attr("markerWidth",30).attr("markerHeight",18).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",9).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,0 L21,18"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"),e.append("defs").append("marker").attr("id",r.ONE_OR_MORE_END).attr("refX",27).attr("refY",18).attr("markerWidth",45).attr("markerHeight",36).attr("orient","auto").append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_START).attr("refX",18).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",48).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18"),(n=e.append("defs").append("marker").attr("id",r.ZERO_OR_MORE_END).attr("refX",39).attr("refY",18).attr("markerWidth",57).attr("markerHeight",36).attr("orient","auto")).append("circle").attr("stroke",t.stroke).attr("fill","white").attr("cx",9).attr("cy",18).attr("r",6),n.append("path").attr("stroke",t.stroke).attr("fill","none").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18")}}},"./src/diagrams/er/erRenderer.js": -/*!***************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = { + ONLY_ONE_START: 'ONLY_ONE_START', + ONLY_ONE_END: 'ONLY_ONE_END', + ZERO_OR_ONE_START: 'ZERO_OR_ONE_START', + ZERO_OR_ONE_END: 'ZERO_OR_ONE_END', + ONE_OR_MORE_START: 'ONE_OR_MORE_START', + ONE_OR_MORE_END: 'ONE_OR_MORE_END', + ZERO_OR_MORE_START: 'ZERO_OR_MORE_START', + ZERO_OR_MORE_END: 'ZERO_OR_MORE_END', + }; + t.default = { + ERMarkers: r, + insertMarkers: function (e, t) { + var n; + e + .append('defs') + .append('marker') + .attr('id', r.ONLY_ONE_START) + .attr('refX', 0) + .attr('refY', 9) + .attr('markerWidth', 18) + .attr('markerHeight', 18) + .attr('orient', 'auto') + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M9,0 L9,18 M15,0 L15,18'), + e + .append('defs') + .append('marker') + .attr('id', r.ONLY_ONE_END) + .attr('refX', 18) + .attr('refY', 9) + .attr('markerWidth', 18) + .attr('markerHeight', 18) + .attr('orient', 'auto') + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M3,0 L3,18 M9,0 L9,18'), + (n = e + .append('defs') + .append('marker') + .attr('id', r.ZERO_OR_ONE_START) + .attr('refX', 0) + .attr('refY', 9) + .attr('markerWidth', 30) + .attr('markerHeight', 18) + .attr('orient', 'auto')) + .append('circle') + .attr('stroke', t.stroke) + .attr('fill', 'white') + .attr('cx', 21) + .attr('cy', 9) + .attr('r', 6), + n + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M9,0 L9,18'), + (n = e + .append('defs') + .append('marker') + .attr('id', r.ZERO_OR_ONE_END) + .attr('refX', 30) + .attr('refY', 9) + .attr('markerWidth', 30) + .attr('markerHeight', 18) + .attr('orient', 'auto')) + .append('circle') + .attr('stroke', t.stroke) + .attr('fill', 'white') + .attr('cx', 9) + .attr('cy', 9) + .attr('r', 6), + n + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M21,0 L21,18'), + e + .append('defs') + .append('marker') + .attr('id', r.ONE_OR_MORE_START) + .attr('refX', 18) + .attr('refY', 18) + .attr('markerWidth', 45) + .attr('markerHeight', 36) + .attr('orient', 'auto') + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr( + 'd', + 'M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27' + ), + e + .append('defs') + .append('marker') + .attr('id', r.ONE_OR_MORE_END) + .attr('refX', 27) + .attr('refY', 18) + .attr('markerWidth', 45) + .attr('markerHeight', 36) + .attr('orient', 'auto') + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18'), + (n = e + .append('defs') + .append('marker') + .attr('id', r.ZERO_OR_MORE_START) + .attr('refX', 18) + .attr('refY', 18) + .attr('markerWidth', 57) + .attr('markerHeight', 36) + .attr('orient', 'auto')) + .append('circle') + .attr('stroke', t.stroke) + .attr('fill', 'white') + .attr('cx', 48) + .attr('cy', 18) + .attr('r', 6), + n + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M0,18 Q18,0 36,18 Q18,36 0,18'), + (n = e + .append('defs') + .append('marker') + .attr('id', r.ZERO_OR_MORE_END) + .attr('refX', 39) + .attr('refY', 18) + .attr('markerWidth', 57) + .attr('markerHeight', 36) + .attr('orient', 'auto')) + .append('circle') + .attr('stroke', t.stroke) + .attr('fill', 'white') + .attr('cx', 9) + .attr('cy', 18) + .attr('r', 6), + n + .append('path') + .attr('stroke', t.stroke) + .attr('fill', 'none') + .attr('d', 'M21,18 Q39,0 57,18 Q39,36 21,18'); + }, + }; + }, + './src/diagrams/er/erRenderer.js': + /*!***************************************!*\ !*** ./src/diagrams/er/erRenderer.js ***! \***************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return m})),n.d(t,"draw",(function(){return b}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./erDb */"./src/diagrams/er/erDb.js"),a=n(/*! ./parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),u=n.n(a),l=n(/*! dagre */"dagre"),c=n.n(l),d=n(/*! ../../config */"./src/config.js"),h=n(/*! ../../logger */"./src/logger.js"),f=n(/*! ./erMarkers */"./src/diagrams/er/erMarkers.js"),p=n(/*! ../../utils */"./src/utils.js"),g={},m=function(e){for(var t=Object.keys(e),n=0;n0?c:Math.max(g.minEntityHeight,s.height+2*g.entityPadding)},p=Math.max(0,f.width-(u+l)-4*i);if(n.length>0){t.attr("transform","translate("+f.width/2+","+(r+s.height/2)+")");var m=s.height+2*r,_="attributeBoxOdd";a.forEach((function(t){var n=m+r+Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)/2;t.tn.attr("transform","translate("+i+","+n+")");var o=e.insert("rect","#"+t.tn.node().id).attr("class","er ".concat(_)).attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x",0).attr("y",m).attr("width",u+2*i+p/2).attr("height",t.tn.node().getBBox().height+2*r);t.nn.attr("transform","translate("+(parseFloat(o.attr("width"))+i)+","+n+")"),e.insert("rect","#"+t.nn.node().id).attr("class","er ".concat(_)).attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x","".concat(o.attr("x")+o.attr("width"))).attr("y",m).attr("width",l+2*i+p/2).attr("height",t.nn.node().getBBox().height+2*r),m+=Math.max(t.tn.node().getBBox().height,t.nn.node().getBBox().height)+2*r,_="attributeBoxOdd"==_?"attributeBoxEven":"attributeBoxOdd"}))}else f.height=Math.max(g.minEntityHeight,c),t.attr("transform","translate("+f.width/2+","+f.height/2+")");return f}(o,a,t[i].attributes),l=u.width,c=u.height,h=o.insert("rect","#"+s).attr("class","er entityBox").attr("fill",g.fill).attr("fill-opacity","100%").attr("stroke",g.stroke).attr("x",0).attr("y",0).attr("width",l).attr("height",c).node().getBBox();n.setNode(i,{width:h.width,height:h.height,shape:"rect",id:i})})),r},y=function(e){return(e.entityA+e.roleA+e.entityB).replace(/\s/g,"")},v=0,b=function(e,t){h.logger.info("Drawing ER diagram"),s.default.clear();var n=u.a.parser;n.yy=s.default;try{n.parse(e)}catch(e){h.logger.debug("Parsing failed")}var r,a=Object(o.select)("[id='".concat(t,"']"));f.default.insertMarkers(a,g),r=new i.a.Graph({multigraph:!0,directed:!0,compound:!1}).setGraph({rankdir:g.layoutDirection,marginx:20,marginy:20,nodesep:100,edgesep:100,ranksep:100}).setDefaultEdgeLabel((function(){return{}}));var l,m,b=_(a,s.default.getEntities(),r),w=function(e,t){return e.forEach((function(e){t.setEdge(e.entityA,e.entityB,{relationship:e},y(e))})),e}(s.default.getRelationships(),r);c.a.layout(r),l=a,(m=r).nodes().forEach((function(e){void 0!==e&&void 0!==m.node(e)&&l.select("#"+e).attr("transform","translate("+(m.node(e).x-m.node(e).width/2)+","+(m.node(e).y-m.node(e).height/2)+" )")})),w.forEach((function(e){!function(e,t,n,r){v++;var i=n.edge(t.entityA,t.entityB,y(t)),a=Object(o.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(o.curveBasis),u=e.insert("path","#"+r).attr("class","er relationshipLine").attr("d",a(i.points)).attr("stroke",g.stroke).attr("fill","none");t.relSpec.relType===s.default.Identification.NON_IDENTIFYING&&u.attr("stroke-dasharray","8,8");var l="";switch(g.arrowMarkerAbsolute&&(l=(l=(l=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),t.relSpec.cardA){case s.default.Cardinality.ZERO_OR_ONE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ZERO_OR_ONE_END+")");break;case s.default.Cardinality.ZERO_OR_MORE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ZERO_OR_MORE_END+")");break;case s.default.Cardinality.ONE_OR_MORE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ONE_OR_MORE_END+")");break;case s.default.Cardinality.ONLY_ONE:u.attr("marker-end","url("+l+"#"+f.default.ERMarkers.ONLY_ONE_END+")")}switch(t.relSpec.cardB){case s.default.Cardinality.ZERO_OR_ONE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ZERO_OR_ONE_START+")");break;case s.default.Cardinality.ZERO_OR_MORE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ZERO_OR_MORE_START+")");break;case s.default.Cardinality.ONE_OR_MORE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ONE_OR_MORE_START+")");break;case s.default.Cardinality.ONLY_ONE:u.attr("marker-start","url("+l+"#"+f.default.ERMarkers.ONLY_ONE_START+")")}var c=u.node().getTotalLength(),h=u.node().getPointAtLength(.5*c),p="rel"+v,m=e.append("text").attr("class","er relationshipLabel").attr("id",p).attr("x",h.x).attr("y",h.y).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("style","font-family: "+Object(d.getConfig)().fontFamily+"; font-size: "+g.fontSize+"px").text(t.roleA).node().getBBox();e.insert("rect","#"+p).attr("class","er relationshipLabelBox").attr("x",h.x-m.width/2).attr("y",h.y-m.height/2).attr("width",m.width).attr("height",m.height).attr("fill","white").attr("fill-opacity","85%")}(a,e,r,b)}));var C=g.diagramPadding,S=a.node().getBBox(),x=S.width+2*C,L=S.height+2*C;Object(p.configureSvgSize)(a,L,x,g.useMaxWidth),a.attr("viewBox","".concat(S.x-C," ").concat(S.y-C," ").concat(x," ").concat(L))};t.default={setConf:m,draw:b}},"./src/diagrams/er/parser/erDiagram.jison": -/*!************************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return m; + }), + n.d(t, 'draw', function () { + return b; + }); + var r = n(/*! graphlib */ 'graphlib'), + i = n.n(r), + o = n(/*! d3 */ 'd3'), + s = n(/*! ./erDb */ './src/diagrams/er/erDb.js'), + a = n( + /*! ./parser/erDiagram */ './src/diagrams/er/parser/erDiagram.jison' + ), + u = n.n(a), + l = n(/*! dagre */ 'dagre'), + c = n.n(l), + d = n(/*! ../../config */ './src/config.js'), + h = n(/*! ../../logger */ './src/logger.js'), + f = n(/*! ./erMarkers */ './src/diagrams/er/erMarkers.js'), + p = n(/*! ../../utils */ './src/utils.js'), + g = {}, + m = function (e) { + for (var t = Object.keys(e), n = 0; n < t.length; n++) + g[t[n]] = e[t[n]]; + }, + _ = function (e, t, n) { + var r; + return ( + Object.keys(t).forEach(function (i) { + var o = e.append('g').attr('id', i); + r = void 0 === r ? i : r; + var s = 'entity-' + i, + a = o + .append('text') + .attr('class', 'er entityLabel') + .attr('id', s) + .attr('x', 0) + .attr('y', 0) + .attr('dominant-baseline', 'middle') + .attr('text-anchor', 'middle') + .attr( + 'style', + 'font-family: ' + + Object(d.getConfig)().fontFamily + + '; font-size: ' + + g.fontSize + + 'px' + ) + .text(i), + u = (function (e, t, n) { + var r = g.entityPadding / 3, + i = g.entityPadding / 3, + o = 0.85 * g.fontSize, + s = t.node().getBBox(), + a = [], + u = 0, + l = 0, + c = s.height + 2 * r, + h = 1; + n.forEach(function (n) { + var i = ''.concat(t.node().id, '-attr-').concat(h), + s = e + .append('text') + .attr('class', 'er entityLabel') + .attr('id', ''.concat(i, '-type')) + .attr('x', 0) + .attr('y', 0) + .attr('dominant-baseline', 'middle') + .attr('text-anchor', 'left') + .attr( + 'style', + 'font-family: ' + + Object(d.getConfig)().fontFamily + + '; font-size: ' + + o + + 'px' + ) + .text(n.attributeType), + f = e + .append('text') + .attr('class', 'er entityLabel') + .attr('id', ''.concat(i, '-name')) + .attr('x', 0) + .attr('y', 0) + .attr('dominant-baseline', 'middle') + .attr('text-anchor', 'left') + .attr( + 'style', + 'font-family: ' + + Object(d.getConfig)().fontFamily + + '; font-size: ' + + o + + 'px' + ) + .text(n.attributeName); + a.push({ tn: s, nn: f }); + var p = s.node().getBBox(), + g = f.node().getBBox(); + (u = Math.max(u, p.width)), + (l = Math.max(l, g.width)), + (c += Math.max(p.height, g.height) + 2 * r), + (h += 1); + }); + var f = { + width: Math.max( + g.minEntityWidth, + Math.max( + s.width + 2 * g.entityPadding, + u + l + 4 * i + ) + ), + height: + n.length > 0 + ? c + : Math.max( + g.minEntityHeight, + s.height + 2 * g.entityPadding + ), + }, + p = Math.max(0, f.width - (u + l) - 4 * i); + if (n.length > 0) { + t.attr( + 'transform', + 'translate(' + + f.width / 2 + + ',' + + (r + s.height / 2) + + ')' + ); + var m = s.height + 2 * r, + _ = 'attributeBoxOdd'; + a.forEach(function (t) { + var n = + m + + r + + Math.max( + t.tn.node().getBBox().height, + t.nn.node().getBBox().height + ) / + 2; + t.tn.attr( + 'transform', + 'translate(' + i + ',' + n + ')' + ); + var o = e + .insert('rect', '#' + t.tn.node().id) + .attr('class', 'er '.concat(_)) + .attr('fill', g.fill) + .attr('fill-opacity', '100%') + .attr('stroke', g.stroke) + .attr('x', 0) + .attr('y', m) + .attr('width', u + 2 * i + p / 2) + .attr( + 'height', + t.tn.node().getBBox().height + 2 * r + ); + t.nn.attr( + 'transform', + 'translate(' + + (parseFloat(o.attr('width')) + i) + + ',' + + n + + ')' + ), + e + .insert('rect', '#' + t.nn.node().id) + .attr('class', 'er '.concat(_)) + .attr('fill', g.fill) + .attr('fill-opacity', '100%') + .attr('stroke', g.stroke) + .attr( + 'x', + ''.concat(o.attr('x') + o.attr('width')) + ) + .attr('y', m) + .attr('width', l + 2 * i + p / 2) + .attr( + 'height', + t.nn.node().getBBox().height + 2 * r + ), + (m += + Math.max( + t.tn.node().getBBox().height, + t.nn.node().getBBox().height + ) + + 2 * r), + (_ = + 'attributeBoxOdd' == _ + ? 'attributeBoxEven' + : 'attributeBoxOdd'); + }); + } else + (f.height = Math.max(g.minEntityHeight, c)), + t.attr( + 'transform', + 'translate(' + + f.width / 2 + + ',' + + f.height / 2 + + ')' + ); + return f; + })(o, a, t[i].attributes), + l = u.width, + c = u.height, + h = o + .insert('rect', '#' + s) + .attr('class', 'er entityBox') + .attr('fill', g.fill) + .attr('fill-opacity', '100%') + .attr('stroke', g.stroke) + .attr('x', 0) + .attr('y', 0) + .attr('width', l) + .attr('height', c) + .node() + .getBBox(); + n.setNode(i, { + width: h.width, + height: h.height, + shape: 'rect', + id: i, + }); + }), + r + ); + }, + y = function (e) { + return (e.entityA + e.roleA + e.entityB).replace(/\s/g, ''); + }, + v = 0, + b = function (e, t) { + h.logger.info('Drawing ER diagram'), s.default.clear(); + var n = u.a.parser; + n.yy = s.default; + try { + n.parse(e); + } catch (e) { + h.logger.debug('Parsing failed'); + } + var r, + a = Object(o.select)("[id='".concat(t, "']")); + f.default.insertMarkers(a, g), + (r = new i.a.Graph({ + multigraph: !0, + directed: !0, + compound: !1, + }) + .setGraph({ + rankdir: g.layoutDirection, + marginx: 20, + marginy: 20, + nodesep: 100, + edgesep: 100, + ranksep: 100, + }) + .setDefaultEdgeLabel(function () { + return {}; + })); + var l, + m, + b = _(a, s.default.getEntities(), r), + w = (function (e, t) { + return ( + e.forEach(function (e) { + t.setEdge( + e.entityA, + e.entityB, + { relationship: e }, + y(e) + ); + }), + e + ); + })(s.default.getRelationships(), r); + c.a.layout(r), + (l = a), + (m = r).nodes().forEach(function (e) { + void 0 !== e && + void 0 !== m.node(e) && + l + .select('#' + e) + .attr( + 'transform', + 'translate(' + + (m.node(e).x - m.node(e).width / 2) + + ',' + + (m.node(e).y - m.node(e).height / 2) + + ' )' + ); + }), + w.forEach(function (e) { + !(function (e, t, n, r) { + v++; + var i = n.edge(t.entityA, t.entityB, y(t)), + a = Object(o.line)() + .x(function (e) { + return e.x; + }) + .y(function (e) { + return e.y; + }) + .curve(o.curveBasis), + u = e + .insert('path', '#' + r) + .attr('class', 'er relationshipLine') + .attr('d', a(i.points)) + .attr('stroke', g.stroke) + .attr('fill', 'none'); + t.relSpec.relType === + s.default.Identification.NON_IDENTIFYING && + u.attr('stroke-dasharray', '8,8'); + var l = ''; + switch ( + (g.arrowMarkerAbsolute && + (l = (l = (l = + window.location.protocol + + '//' + + window.location.host + + window.location.pathname + + window.location.search).replace( + /\(/g, + '\\(' + )).replace(/\)/g, '\\)')), + t.relSpec.cardA) + ) { + case s.default.Cardinality.ZERO_OR_ONE: + u.attr( + 'marker-end', + 'url(' + + l + + '#' + + f.default.ERMarkers.ZERO_OR_ONE_END + + ')' + ); + break; + case s.default.Cardinality.ZERO_OR_MORE: + u.attr( + 'marker-end', + 'url(' + + l + + '#' + + f.default.ERMarkers.ZERO_OR_MORE_END + + ')' + ); + break; + case s.default.Cardinality.ONE_OR_MORE: + u.attr( + 'marker-end', + 'url(' + + l + + '#' + + f.default.ERMarkers.ONE_OR_MORE_END + + ')' + ); + break; + case s.default.Cardinality.ONLY_ONE: + u.attr( + 'marker-end', + 'url(' + + l + + '#' + + f.default.ERMarkers.ONLY_ONE_END + + ')' + ); + } + switch (t.relSpec.cardB) { + case s.default.Cardinality.ZERO_OR_ONE: + u.attr( + 'marker-start', + 'url(' + + l + + '#' + + f.default.ERMarkers.ZERO_OR_ONE_START + + ')' + ); + break; + case s.default.Cardinality.ZERO_OR_MORE: + u.attr( + 'marker-start', + 'url(' + + l + + '#' + + f.default.ERMarkers.ZERO_OR_MORE_START + + ')' + ); + break; + case s.default.Cardinality.ONE_OR_MORE: + u.attr( + 'marker-start', + 'url(' + + l + + '#' + + f.default.ERMarkers.ONE_OR_MORE_START + + ')' + ); + break; + case s.default.Cardinality.ONLY_ONE: + u.attr( + 'marker-start', + 'url(' + + l + + '#' + + f.default.ERMarkers.ONLY_ONE_START + + ')' + ); + } + var c = u.node().getTotalLength(), + h = u.node().getPointAtLength(0.5 * c), + p = 'rel' + v, + m = e + .append('text') + .attr('class', 'er relationshipLabel') + .attr('id', p) + .attr('x', h.x) + .attr('y', h.y) + .attr('text-anchor', 'middle') + .attr('dominant-baseline', 'middle') + .attr( + 'style', + 'font-family: ' + + Object(d.getConfig)().fontFamily + + '; font-size: ' + + g.fontSize + + 'px' + ) + .text(t.roleA) + .node() + .getBBox(); + e.insert('rect', '#' + p) + .attr('class', 'er relationshipLabelBox') + .attr('x', h.x - m.width / 2) + .attr('y', h.y - m.height / 2) + .attr('width', m.width) + .attr('height', m.height) + .attr('fill', 'white') + .attr('fill-opacity', '85%'); + })(a, e, r, b); + }); + var C = g.diagramPadding, + S = a.node().getBBox(), + x = S.width + 2 * C, + L = S.height + 2 * C; + Object(p.configureSvgSize)(a, L, x, g.useMaxWidth), + a.attr( + 'viewBox', + '' + .concat(S.x - C, ' ') + .concat(S.y - C, ' ') + .concat(x, ' ') + .concat(L) + ); + }; + t.default = { setConf: m, draw: b }; + }, + './src/diagrams/er/parser/erDiagram.jison': + /*!************************************************!*\ !*** ./src/diagrams/er/parser/erDiagram.jison ***! \************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,5],r=[6,9,11,23,37],i=[1,17],o=[1,20],s=[1,25],a=[1,26],u=[1,27],l=[1,28],c=[1,37],d=[23,34,35],h=[4,6,9,11,23,37],f=[30,31,32,33],p=[22,27],g={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,":":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,ALPHANUM:23,attribute:24,attributeType:25,attributeName:26,ATTRIBUTE_WORD:27,cardinality:28,relType:29,ZERO_OR_ONE:30,ZERO_OR_MORE:31,ONE_OR_MORE:32,ONLY_ONE:33,NON_IDENTIFYING:34,IDENTIFYING:35,WORD:36,open_directive:37,type_directive:38,arg_directive:39,close_directive:40,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",9:"SPACE",11:"NEWLINE",15:":",20:"BLOCK_START",22:"BLOCK_STOP",23:"ALPHANUM",27:"ATTRIBUTE_WORD",30:"ZERO_OR_ONE",31:"ZERO_OR_MORE",32:"ONE_OR_MORE",33:"ONLY_ONE",34:"NON_IDENTIFYING",35:"IDENTIFYING",36:"WORD",37:"open_directive",38:"type_directive",39:"arg_directive",40:"close_directive"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[17,1],[21,1],[21,2],[24,2],[25,1],[26,1],[18,3],[28,1],[28,1],[28,1],[28,1],[29,1],[29,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:break;case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 12:r.addEntity(o[a-4]),r.addEntity(o[a-2]),r.addRelationship(o[a-4],o[a],o[a-2],o[a-3]);break;case 13:r.addEntity(o[a-3]),r.addAttributes(o[a-3],o[a-1]);break;case 14:r.addEntity(o[a-2]);break;case 15:r.addEntity(o[a]);break;case 16:this.$=o[a];break;case 17:this.$=[o[a]];break;case 18:o[a].push(o[a-1]),this.$=o[a];break;case 19:this.$={attributeType:o[a-1],attributeName:o[a]};break;case 20:case 21:this.$=o[a];break;case 22:this.$={cardA:o[a],relType:o[a-1],cardB:o[a-2]};break;case 23:this.$=r.Cardinality.ZERO_OR_ONE;break;case 24:this.$=r.Cardinality.ZERO_OR_MORE;break;case 25:this.$=r.Cardinality.ONE_OR_MORE;break;case 26:this.$=r.Cardinality.ONLY_ONE;break;case 27:this.$=r.Identification.NON_IDENTIFYING;break;case 28:this.$=r.Identification.IDENTIFYING;break;case 29:this.$=o[a].replace(/"/g,"");break;case 30:this.$=o[a];break;case 31:r.parseDirective("%%{","open_directive");break;case 32:r.parseDirective(o[a],"type_directive");break;case 33:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 34:r.parseDirective("}%%","close_directive","er")}},table:[{3:1,4:t,7:3,12:4,37:n},{1:[3]},e(r,[2,3],{5:6}),{3:7,4:t,7:3,12:4,37:n},{13:8,38:[1,9]},{38:[2,31]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,37:n},{1:[2,2]},{14:18,15:[1,19],40:o},e([15,40],[2,32]),e(r,[2,8],{1:[2,1]}),e(r,[2,4]),{7:15,10:21,12:4,17:16,23:i,37:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,11]),e(r,[2,15],{18:22,28:24,20:[1,23],30:s,31:a,32:u,33:l}),e([6,9,11,15,20,23,30,31,32,33,37],[2,16]),{11:[1,29]},{16:30,39:[1,31]},{11:[2,34]},e(r,[2,5]),{17:32,23:i},{21:33,22:[1,34],24:35,25:36,27:c},{29:38,34:[1,39],35:[1,40]},e(d,[2,23]),e(d,[2,24]),e(d,[2,25]),e(d,[2,26]),e(h,[2,9]),{14:41,40:o},{40:[2,33]},{15:[1,42]},{22:[1,43]},e(r,[2,14]),{21:44,22:[2,17],24:35,25:36,27:c},{26:45,27:[1,46]},{27:[2,20]},{28:47,30:s,31:a,32:u,33:l},e(f,[2,27]),e(f,[2,28]),{11:[1,48]},{19:49,23:[1,51],36:[1,50]},e(r,[2,13]),{22:[2,18]},e(p,[2,19]),e(p,[2,21]),{23:[2,22]},e(h,[2,10]),e(r,[2,12]),e(r,[2,29]),e(r,[2,30])],defaultActions:{5:[2,31],7:[2,2],20:[2,34],31:[2,33],37:[2,20],44:[2,18],47:[2,22]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),37;case 1:return this.begin("type_directive"),38;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),40;case 4:return 39;case 5:case 6:break;case 7:return 11;case 8:break;case 9:return 9;case 10:return 36;case 11:return 4;case 12:return this.begin("block"),20;case 13:break;case 14:return 27;case 15:break;case 16:return this.popState(),22;case 17:return t.yytext[0];case 18:return 30;case 19:return 31;case 20:return 32;case 21:return 33;case 22:return 30;case 23:return 31;case 24:return 32;case 25:return 34;case 26:return 35;case 27:case 28:return 34;case 29:return 23;case 30:return t.yytext[0];case 31:return 6}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:[\s]+)/i,/^(?:"[^"]*")/i,/^(?:erDiagram\b)/i,/^(?:\{)/i,/^(?:\s+)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:[\n]+)/i,/^(?:\})/i,/^(?:.)/i,/^(?:\|o\b)/i,/^(?:\}o\b)/i,/^(?:\}\|)/i,/^(?:\|\|)/i,/^(?:o\|)/i,/^(?:o\{)/i,/^(?:\|\{)/i,/^(?:\.\.)/i,/^(?:--)/i,/^(?:\.-)/i,/^(?:-\.)/i,/^(?:[A-Za-z][A-Za-z0-9\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},block:{rules:[13,14,15,16,17],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,18,19,20,21,22,23,24,25,26,27,28,29,30,31],inclusive:!0}}};function _(){this.yy={}}return g.lexer=m,_.prototype=g,g.Parser=_,new _}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/er/styles.js": -/*!***********************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 2], + n = [1, 5], + r = [6, 9, 11, 23, 37], + i = [1, 17], + o = [1, 20], + s = [1, 25], + a = [1, 26], + u = [1, 27], + l = [1, 28], + c = [1, 37], + d = [23, 34, 35], + h = [4, 6, 9, 11, 23, 37], + f = [30, 31, 32, 33], + p = [22, 27], + g = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + ER_DIAGRAM: 4, + document: 5, + EOF: 6, + directive: 7, + line: 8, + SPACE: 9, + statement: 10, + NEWLINE: 11, + openDirective: 12, + typeDirective: 13, + closeDirective: 14, + ':': 15, + argDirective: 16, + entityName: 17, + relSpec: 18, + role: 19, + BLOCK_START: 20, + attributes: 21, + BLOCK_STOP: 22, + ALPHANUM: 23, + attribute: 24, + attributeType: 25, + attributeName: 26, + ATTRIBUTE_WORD: 27, + cardinality: 28, + relType: 29, + ZERO_OR_ONE: 30, + ZERO_OR_MORE: 31, + ONE_OR_MORE: 32, + ONLY_ONE: 33, + NON_IDENTIFYING: 34, + IDENTIFYING: 35, + WORD: 36, + open_directive: 37, + type_directive: 38, + arg_directive: 39, + close_directive: 40, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'ER_DIAGRAM', + 6: 'EOF', + 9: 'SPACE', + 11: 'NEWLINE', + 15: ':', + 20: 'BLOCK_START', + 22: 'BLOCK_STOP', + 23: 'ALPHANUM', + 27: 'ATTRIBUTE_WORD', + 30: 'ZERO_OR_ONE', + 31: 'ZERO_OR_MORE', + 32: 'ONE_OR_MORE', + 33: 'ONLY_ONE', + 34: 'NON_IDENTIFYING', + 35: 'IDENTIFYING', + 36: 'WORD', + 37: 'open_directive', + 38: 'type_directive', + 39: 'arg_directive', + 40: 'close_directive', + }, + productions_: [ + 0, + [3, 3], + [3, 2], + [5, 0], + [5, 2], + [8, 2], + [8, 1], + [8, 1], + [8, 1], + [7, 4], + [7, 6], + [10, 1], + [10, 5], + [10, 4], + [10, 3], + [10, 1], + [17, 1], + [21, 1], + [21, 2], + [24, 2], + [25, 1], + [26, 1], + [18, 3], + [28, 1], + [28, 1], + [28, 1], + [28, 1], + [29, 1], + [29, 1], + [19, 1], + [19, 1], + [12, 1], + [13, 1], + [16, 1], + [14, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 1: + break; + case 3: + this.$ = []; + break; + case 4: + o[a - 1].push(o[a]), (this.$ = o[a - 1]); + break; + case 5: + case 6: + this.$ = o[a]; + break; + case 7: + case 8: + this.$ = []; + break; + case 12: + r.addEntity(o[a - 4]), + r.addEntity(o[a - 2]), + r.addRelationship( + o[a - 4], + o[a], + o[a - 2], + o[a - 3] + ); + break; + case 13: + r.addEntity(o[a - 3]), + r.addAttributes(o[a - 3], o[a - 1]); + break; + case 14: + r.addEntity(o[a - 2]); + break; + case 15: + r.addEntity(o[a]); + break; + case 16: + this.$ = o[a]; + break; + case 17: + this.$ = [o[a]]; + break; + case 18: + o[a].push(o[a - 1]), (this.$ = o[a]); + break; + case 19: + this.$ = { + attributeType: o[a - 1], + attributeName: o[a], + }; + break; + case 20: + case 21: + this.$ = o[a]; + break; + case 22: + this.$ = { + cardA: o[a], + relType: o[a - 1], + cardB: o[a - 2], + }; + break; + case 23: + this.$ = r.Cardinality.ZERO_OR_ONE; + break; + case 24: + this.$ = r.Cardinality.ZERO_OR_MORE; + break; + case 25: + this.$ = r.Cardinality.ONE_OR_MORE; + break; + case 26: + this.$ = r.Cardinality.ONLY_ONE; + break; + case 27: + this.$ = r.Identification.NON_IDENTIFYING; + break; + case 28: + this.$ = r.Identification.IDENTIFYING; + break; + case 29: + this.$ = o[a].replace(/"/g, ''); + break; + case 30: + this.$ = o[a]; + break; + case 31: + r.parseDirective('%%{', 'open_directive'); + break; + case 32: + r.parseDirective(o[a], 'type_directive'); + break; + case 33: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 34: + r.parseDirective('}%%', 'close_directive', 'er'); + } + }, + table: [ + { 3: 1, 4: t, 7: 3, 12: 4, 37: n }, + { 1: [3] }, + e(r, [2, 3], { 5: 6 }), + { 3: 7, 4: t, 7: 3, 12: 4, 37: n }, + { 13: 8, 38: [1, 9] }, + { 38: [2, 31] }, + { + 6: [1, 10], + 7: 15, + 8: 11, + 9: [1, 12], + 10: 13, + 11: [1, 14], + 12: 4, + 17: 16, + 23: i, + 37: n, + }, + { 1: [2, 2] }, + { 14: 18, 15: [1, 19], 40: o }, + e([15, 40], [2, 32]), + e(r, [2, 8], { 1: [2, 1] }), + e(r, [2, 4]), + { 7: 15, 10: 21, 12: 4, 17: 16, 23: i, 37: n }, + e(r, [2, 6]), + e(r, [2, 7]), + e(r, [2, 11]), + e(r, [2, 15], { + 18: 22, + 28: 24, + 20: [1, 23], + 30: s, + 31: a, + 32: u, + 33: l, + }), + e([6, 9, 11, 15, 20, 23, 30, 31, 32, 33, 37], [2, 16]), + { 11: [1, 29] }, + { 16: 30, 39: [1, 31] }, + { 11: [2, 34] }, + e(r, [2, 5]), + { 17: 32, 23: i }, + { 21: 33, 22: [1, 34], 24: 35, 25: 36, 27: c }, + { 29: 38, 34: [1, 39], 35: [1, 40] }, + e(d, [2, 23]), + e(d, [2, 24]), + e(d, [2, 25]), + e(d, [2, 26]), + e(h, [2, 9]), + { 14: 41, 40: o }, + { 40: [2, 33] }, + { 15: [1, 42] }, + { 22: [1, 43] }, + e(r, [2, 14]), + { 21: 44, 22: [2, 17], 24: 35, 25: 36, 27: c }, + { 26: 45, 27: [1, 46] }, + { 27: [2, 20] }, + { 28: 47, 30: s, 31: a, 32: u, 33: l }, + e(f, [2, 27]), + e(f, [2, 28]), + { 11: [1, 48] }, + { 19: 49, 23: [1, 51], 36: [1, 50] }, + e(r, [2, 13]), + { 22: [2, 18] }, + e(p, [2, 19]), + e(p, [2, 21]), + { 23: [2, 22] }, + e(h, [2, 10]), + e(r, [2, 12]), + e(r, [2, 29]), + e(r, [2, 30]), + ], + defaultActions: { + 5: [2, 31], + 7: [2, 2], + 20: [2, 34], + 31: [2, 33], + 37: [2, 20], + 44: [2, 18], + 47: [2, 22], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + m = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 37; + case 1: + return this.begin('type_directive'), 38; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 15 + ); + case 3: + return this.popState(), this.popState(), 40; + case 4: + return 39; + case 5: + case 6: + break; + case 7: + return 11; + case 8: + break; + case 9: + return 9; + case 10: + return 36; + case 11: + return 4; + case 12: + return this.begin('block'), 20; + case 13: + break; + case 14: + return 27; + case 15: + break; + case 16: + return this.popState(), 22; + case 17: + return t.yytext[0]; + case 18: + return 30; + case 19: + return 31; + case 20: + return 32; + case 21: + return 33; + case 22: + return 30; + case 23: + return 31; + case 24: + return 32; + case 25: + return 34; + case 26: + return 35; + case 27: + case 28: + return 34; + case 29: + return 23; + case 30: + return t.yytext[0]; + case 31: + return 6; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:%(?!\{)[^\n]*)/i, + /^(?:[^\}]%%[^\n]*)/i, + /^(?:[\n]+)/i, + /^(?:\s+)/i, + /^(?:[\s]+)/i, + /^(?:"[^"]*")/i, + /^(?:erDiagram\b)/i, + /^(?:\{)/i, + /^(?:\s+)/i, + /^(?:[A-Za-z][A-Za-z0-9\-_]*)/i, + /^(?:[\n]+)/i, + /^(?:\})/i, + /^(?:.)/i, + /^(?:\|o\b)/i, + /^(?:\}o\b)/i, + /^(?:\}\|)/i, + /^(?:\|\|)/i, + /^(?:o\|)/i, + /^(?:o\{)/i, + /^(?:\|\{)/i, + /^(?:\.\.)/i, + /^(?:--)/i, + /^(?:\.-)/i, + /^(?:-\.)/i, + /^(?:[A-Za-z][A-Za-z0-9\-_]*)/i, + /^(?:.)/i, + /^(?:$)/i, + ], + conditions: { + open_directive: { rules: [1], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + block: { rules: [13, 14, 15, 16, 17], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + ], + inclusive: !0, + }, + }, + }; + function _() { + this.yy = {}; + } + return ( + (g.lexer = m), (_.prototype = g), (g.Parser = _), new _() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/er/styles.js': + /*!***********************************!*\ !*** ./src/diagrams/er/styles.js ***! \***********************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return"\n .entityBox {\n fill: ".concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: ").concat(e.nodeBorder,";\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: ").concat(e.nodeBorder,";\n }\n\n .relationshipLabelBox {\n fill: ").concat(e.tertiaryColor,";\n opacity: 0.7;\n background-color: ").concat(e.tertiaryColor,";\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ").concat(e.lineColor,";\n }\n")}},"./src/diagrams/flowchart/flowChartShapes.js": -/*!***************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return '\n .entityBox {\n fill: ' + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n }\n\n .attributeBoxOdd {\n fill: #ffffff;\n stroke: ' + ) + .concat( + e.nodeBorder, + ';\n }\n\n .attributeBoxEven {\n fill: #f2f2f2;\n stroke: ' + ) + .concat( + e.nodeBorder, + ';\n }\n\n .relationshipLabelBox {\n fill: ' + ) + .concat( + e.tertiaryColor, + ';\n opacity: 0.7;\n background-color: ' + ) + .concat( + e.tertiaryColor, + ';\n rect {\n opacity: 0.5;\n }\n }\n\n .relationshipLine {\n stroke: ' + ) + .concat(e.lineColor, ';\n }\n'); + }); + }, + './src/diagrams/flowchart/flowChartShapes.js': + /*!***************************************************!*\ !*** ./src/diagrams/flowchart/flowChartShapes.js ***! \***************************************************/ -/*! exports provided: addToRender, addToRenderV2, default */function(e,t,n){"use strict";n.r(t),n.d(t,"addToRender",(function(){return m})),n.d(t,"addToRenderV2",(function(){return _}));var r=n(/*! dagre-d3 */"dagre-d3"),i=n.n(r);function o(e,t,n){var r=.9*(t.width+t.height),o=[{x:r/2,y:0},{x:r,y:-r/2},{x:r/2,y:-r},{x:0,y:-r/2}],s=y(e,r,r,o);return n.intersect=function(e){return i.a.intersect.polygon(n,o,e)},s}function s(e,t,n){var r=t.height,o=r/4,s=t.width+2*o,a=[{x:o,y:0},{x:s-o,y:0},{x:s,y:-r/2},{x:s-o,y:-r},{x:o,y:-r},{x:0,y:-r/2}],u=y(e,s,r,a);return n.intersect=function(e){return i.a.intersect.polygon(n,a,e)},u}function a(e,t,n){var r=t.width,o=t.height,s=[{x:-o/2,y:0},{x:r,y:0},{x:r,y:-o},{x:-o/2,y:-o},{x:0,y:-o/2}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function u(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function l(e,t,n){var r=t.width,o=t.height,s=[{x:2*o/6,y:0},{x:r+o/6,y:0},{x:r-2*o/6,y:-o},{x:-o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function c(e,t,n){var r=t.width,o=t.height,s=[{x:-2*o/6,y:0},{x:r+2*o/6,y:0},{x:r-o/6,y:-o},{x:o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function d(e,t,n){var r=t.width,o=t.height,s=[{x:o/6,y:0},{x:r-o/6,y:0},{x:r+2*o/6,y:-o},{x:-2*o/6,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function h(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r+o/2,y:0},{x:r,y:-o/2},{x:r+o/2,y:-o},{x:0,y:-o}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function f(e,t,n){var r=t.height,o=t.width+r/4,s=e.insert("rect",":first-child").attr("rx",r/2).attr("ry",r/2).attr("x",-o/2).attr("y",-r/2).attr("width",o).attr("height",r);return n.intersect=function(e){return i.a.intersect.rect(n,e)},s}function p(e,t,n){var r=t.width,o=t.height,s=[{x:0,y:0},{x:r,y:0},{x:r,y:-o},{x:0,y:-o},{x:0,y:0},{x:-8,y:0},{x:r+8,y:0},{x:r+8,y:-o},{x:-8,y:-o},{x:-8,y:0}],a=y(e,r,o,s);return n.intersect=function(e){return i.a.intersect.polygon(n,s,e)},a}function g(e,t,n){var r=t.width,o=r/2,s=o/(2.5+r/50),a=t.height+s,u="M 0,"+s+" a "+o+","+s+" 0,0,0 "+r+" 0 a "+o+","+s+" 0,0,0 "+-r+" 0 l 0,"+a+" a "+o+","+s+" 0,0,0 "+r+" 0 l 0,"+-a,l=e.attr("label-offset-y",s).insert("path",":first-child").attr("d",u).attr("transform","translate("+-r/2+","+-(a/2+s)+")");return n.intersect=function(e){var t=i.a.intersect.rect(n,e),r=t.x-n.x;if(0!=o&&(Math.abs(r)n.height/2-s)){var a=s*s*(1-r*r/(o*o));0!=a&&(a=Math.sqrt(a)),a=s-a,e.y-n.y>0&&(a=-a),t.y+=a}return t},l}function m(e){e.shapes().question=o,e.shapes().hexagon=s,e.shapes().stadium=f,e.shapes().subroutine=p,e.shapes().cylinder=g,e.shapes().rect_left_inv_arrow=a,e.shapes().lean_right=u,e.shapes().lean_left=l,e.shapes().trapezoid=c,e.shapes().inv_trapezoid=d,e.shapes().rect_right_inv_arrow=h}function _(e){e({question:o}),e({hexagon:s}),e({stadium:f}),e({subroutine:p}),e({cylinder:g}),e({rect_left_inv_arrow:a}),e({lean_right:u}),e({lean_left:l}),e({trapezoid:c}),e({inv_trapezoid:d}),e({rect_right_inv_arrow:h})}function y(e,t,n,r){return e.insert("polygon",":first-child").attr("points",r.map((function(e){return e.x+","+e.y})).join(" ")).attr("transform","translate("+-t/2+","+n/2+")")}t.default={addToRender:m,addToRenderV2:_}},"./src/diagrams/flowchart/flowDb.js": -/*!******************************************!*\ + /*! exports provided: addToRender, addToRenderV2, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'addToRender', function () { + return m; + }), + n.d(t, 'addToRenderV2', function () { + return _; + }); + var r = n(/*! dagre-d3 */ 'dagre-d3'), + i = n.n(r); + function o(e, t, n) { + var r = 0.9 * (t.width + t.height), + o = [ + { x: r / 2, y: 0 }, + { x: r, y: -r / 2 }, + { x: r / 2, y: -r }, + { x: 0, y: -r / 2 }, + ], + s = y(e, r, r, o); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, o, e); + }), + s + ); + } + function s(e, t, n) { + var r = t.height, + o = r / 4, + s = t.width + 2 * o, + a = [ + { x: o, y: 0 }, + { x: s - o, y: 0 }, + { x: s, y: -r / 2 }, + { x: s - o, y: -r }, + { x: o, y: -r }, + { x: 0, y: -r / 2 }, + ], + u = y(e, s, r, a); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, a, e); + }), + u + ); + } + function a(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: -o / 2, y: 0 }, + { x: r, y: 0 }, + { x: r, y: -o }, + { x: -o / 2, y: -o }, + { x: 0, y: -o / 2 }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function u(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: (-2 * o) / 6, y: 0 }, + { x: r - o / 6, y: 0 }, + { x: r + (2 * o) / 6, y: -o }, + { x: o / 6, y: -o }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function l(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: (2 * o) / 6, y: 0 }, + { x: r + o / 6, y: 0 }, + { x: r - (2 * o) / 6, y: -o }, + { x: -o / 6, y: -o }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function c(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: (-2 * o) / 6, y: 0 }, + { x: r + (2 * o) / 6, y: 0 }, + { x: r - o / 6, y: -o }, + { x: o / 6, y: -o }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function d(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: o / 6, y: 0 }, + { x: r - o / 6, y: 0 }, + { x: r + (2 * o) / 6, y: -o }, + { x: (-2 * o) / 6, y: -o }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function h(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: 0, y: 0 }, + { x: r + o / 2, y: 0 }, + { x: r, y: -o / 2 }, + { x: r + o / 2, y: -o }, + { x: 0, y: -o }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function f(e, t, n) { + var r = t.height, + o = t.width + r / 4, + s = e + .insert('rect', ':first-child') + .attr('rx', r / 2) + .attr('ry', r / 2) + .attr('x', -o / 2) + .attr('y', -r / 2) + .attr('width', o) + .attr('height', r); + return ( + (n.intersect = function (e) { + return i.a.intersect.rect(n, e); + }), + s + ); + } + function p(e, t, n) { + var r = t.width, + o = t.height, + s = [ + { x: 0, y: 0 }, + { x: r, y: 0 }, + { x: r, y: -o }, + { x: 0, y: -o }, + { x: 0, y: 0 }, + { x: -8, y: 0 }, + { x: r + 8, y: 0 }, + { x: r + 8, y: -o }, + { x: -8, y: -o }, + { x: -8, y: 0 }, + ], + a = y(e, r, o, s); + return ( + (n.intersect = function (e) { + return i.a.intersect.polygon(n, s, e); + }), + a + ); + } + function g(e, t, n) { + var r = t.width, + o = r / 2, + s = o / (2.5 + r / 50), + a = t.height + s, + u = + 'M 0,' + + s + + ' a ' + + o + + ',' + + s + + ' 0,0,0 ' + + r + + ' 0 a ' + + o + + ',' + + s + + ' 0,0,0 ' + + -r + + ' 0 l 0,' + + a + + ' a ' + + o + + ',' + + s + + ' 0,0,0 ' + + r + + ' 0 l 0,' + + -a, + l = e + .attr('label-offset-y', s) + .insert('path', ':first-child') + .attr('d', u) + .attr( + 'transform', + 'translate(' + -r / 2 + ',' + -(a / 2 + s) + ')' + ); + return ( + (n.intersect = function (e) { + var t = i.a.intersect.rect(n, e), + r = t.x - n.x; + if ( + 0 != o && + (Math.abs(r) < n.width / 2 || + (Math.abs(r) == n.width / 2 && + Math.abs(t.y - n.y) > n.height / 2 - s)) + ) { + var a = s * s * (1 - (r * r) / (o * o)); + 0 != a && (a = Math.sqrt(a)), + (a = s - a), + e.y - n.y > 0 && (a = -a), + (t.y += a); + } + return t; + }), + l + ); + } + function m(e) { + (e.shapes().question = o), + (e.shapes().hexagon = s), + (e.shapes().stadium = f), + (e.shapes().subroutine = p), + (e.shapes().cylinder = g), + (e.shapes().rect_left_inv_arrow = a), + (e.shapes().lean_right = u), + (e.shapes().lean_left = l), + (e.shapes().trapezoid = c), + (e.shapes().inv_trapezoid = d), + (e.shapes().rect_right_inv_arrow = h); + } + function _(e) { + e({ question: o }), + e({ hexagon: s }), + e({ stadium: f }), + e({ subroutine: p }), + e({ cylinder: g }), + e({ rect_left_inv_arrow: a }), + e({ lean_right: u }), + e({ lean_left: l }), + e({ trapezoid: c }), + e({ inv_trapezoid: d }), + e({ rect_right_inv_arrow: h }); + } + function y(e, t, n, r) { + return e + .insert('polygon', ':first-child') + .attr( + 'points', + r + .map(function (e) { + return e.x + ',' + e.y; + }) + .join(' ') + ) + .attr('transform', 'translate(' + -t / 2 + ',' + n / 2 + ')'); + } + t.default = { addToRender: m, addToRenderV2: _ }; + }, + './src/diagrams/flowchart/flowDb.js': + /*!******************************************!*\ !*** ./src/diagrams/flowchart/flowDb.js ***! \******************************************/ -/*! exports provided: parseDirective, lookUpDomId, addVertex, addSingleLink, addLink, updateLinkInterpolate, updateLink, addClass, setDirection, setClass, setLink, getTooltip, setClickEvent, bindFunctions, getDirection, getVertices, getEdges, getClasses, clear, setGen, defaultStyle, addSubGraph, getDepthFirstPos, indexNodes, getSubGraphs, firstGraph, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return S})),n.d(t,"lookUpDomId",(function(){return x})),n.d(t,"addVertex",(function(){return L})),n.d(t,"addSingleLink",(function(){return k})),n.d(t,"addLink",(function(){return M})),n.d(t,"updateLinkInterpolate",(function(){return D})),n.d(t,"updateLink",(function(){return E})),n.d(t,"addClass",(function(){return T})),n.d(t,"setDirection",(function(){return N})),n.d(t,"setClass",(function(){return O})),n.d(t,"setLink",(function(){return I})),n.d(t,"getTooltip",(function(){return P})),n.d(t,"setClickEvent",(function(){return R})),n.d(t,"bindFunctions",(function(){return F})),n.d(t,"getDirection",(function(){return Y})),n.d(t,"getVertices",(function(){return j})),n.d(t,"getEdges",(function(){return B})),n.d(t,"getClasses",(function(){return W})),n.d(t,"clear",(function(){return V})),n.d(t,"setGen",(function(){return z})),n.d(t,"defaultStyle",(function(){return U})),n.d(t,"addSubGraph",(function(){return q})),n.d(t,"getDepthFirstPos",(function(){return Z})),n.d(t,"indexNodes",(function(){return X})),n.d(t,"getSubGraphs",(function(){return J})),n.d(t,"firstGraph",(function(){return Q}));var r=n(/*! d3 */"d3"),i=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../config */"./src/config.js"),s=n(/*! ../common/common */"./src/diagrams/common/common.js"),a=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),u=n(/*! ../../logger */"./src/logger.js");function l(e){return(l="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})(e)}var c,d,h=0,f=o.getConfig(),p={},g=[],m=[],_=[],y={},v={},b=0,w=!0,C=[],S=function(e,t,n){a.default.parseDirective(this,e,t,n)},x=function(e){for(var t=Object.keys(p),n=0;n/)&&(c="LR"),c.match(/.*v/)&&(c="TB")},O=function(e,t){e.split(",").forEach((function(e){var n=e;void 0!==p[n]&&p[n].classes.push(t),void 0!==y[n]&&y[n].classes.push(t)}))},A=function(e,t){e.split(",").forEach((function(e){void 0!==t&&(v["gen-1"===d?x(e):e]=s.default.sanitizeText(t,f))}))},I=function(e,t,n,r){e.split(",").forEach((function(e){void 0!==p[e]&&(p[e].link=i.default.formatUrl(t,f),p[e].linkTarget=r)})),A(e,n),O(e,"clickable")},P=function(e){return v[e]},R=function(e,t,n){e.split(",").forEach((function(e){!function(e,t){var n=x(e);"loose"===o.getConfig().securityLevel&&void 0!==t&&void 0!==p[e]&&(p[e].haveCallback=!0,C.push((function(){var r=document.querySelector('[id="'.concat(n,'"]'));null!==r&&r.addEventListener("click",(function(){i.default.runFunc(t,e)}),!1)})))}(e,t)})),A(e,n),O(e,"clickable")},F=function(e){C.forEach((function(t){t(e)}))},Y=function(){return c.trim()},j=function(){return p},B=function(){return g},W=function(){return m},H=function(e){var t=Object(r.select)(".mermaidTooltip");null===(t._groups||t)[0][0]&&(t=Object(r.select)("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),Object(r.select)(e).select("svg").selectAll("g.node").on("mouseover",(function(){var e=Object(r.select)(this);if(null!==e.attr("title")){var n=this.getBoundingClientRect();t.transition().duration(200).style("opacity",".9"),t.html(e.attr("title")).style("left",window.scrollX+n.left+(n.right-n.left)/2+"px").style("top",window.scrollY+n.top-14+document.body.scrollTop+"px"),e.classed("hover",!0)}})).on("mouseout",(function(){t.transition().duration(500).style("opacity",0),Object(r.select)(this).classed("hover",!1)}))};C.push(H);var V=function(e){p={},m={},g=[],(C=[]).push(H),_=[],y={},b=0,v=[],w=!0,d=e||"gen-1"},z=function(e){d=e||"gen-1"},U=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"},q=function(e,t,n){var r=e.trim(),i=n;e===n&&n.match(/\s/)&&(r=void 0);var o,a,c,h=[];if(o=h.concat.apply(h,t),a={boolean:{},number:{},string:{}},c=[],h=o.filter((function(e){var t=l(e);return""!==e.trim()&&(t in a?!a[t].hasOwnProperty(e)&&(a[t][e]=!0):!(c.indexOf(e)>=0)&&c.push(e))})),"gen-1"===d){u.logger.warn("LOOKING UP");for(var p=0;p0&&function e(t,n){var r=_[n].nodes;if(!((G+=1)>2e3)){if($[G]=n,_[n].id===t)return{result:!0,count:0};for(var i=0,o=1;i=0){var a=e(t,s);if(a.result)return{result:!0,count:o+a.count};o+=a.count}i+=1}return{result:!1,count:o}}}("none",_.length-1)},J=function(){return _},Q=function(){return!!w&&(w=!1,!0)},ee=function(e,t){var n=!1;return e.forEach((function(e){e.nodes.indexOf(t)>=0&&(n=!0)})),n},te=function(e,t){var n=[];return e.nodes.forEach((function(r,i){ee(t,r)||n.push(e.nodes[i])})),{nodes:n}};t.default={parseDirective:S,defaultConfig:function(){return o.defaultConfig.flowchart},addVertex:L,lookUpDomId:x,addLink:M,updateLinkInterpolate:D,updateLink:E,addClass:T,setDirection:N,setClass:O,getTooltip:P,setClickEvent:R,setLink:I,bindFunctions:F,getDirection:Y,getVertices:j,getEdges:B,getClasses:W,clear:V,setGen:z,defaultStyle:U,addSubGraph:q,getDepthFirstPos:Z,indexNodes:X,getSubGraphs:J,destructLink:function(e,t){var n,r=function(e){var t=e.trim(),n=t.slice(0,-1),r="arrow_open";switch(t.slice(-1)){case"x":r="arrow_cross","x"===t[0]&&(r="double_"+r,n=n.slice(1));break;case">":r="arrow_point","<"===t[0]&&(r="double_"+r,n=n.slice(1));break;case"o":r="arrow_circle","o"===t[0]&&(r="double_"+r,n=n.slice(1))}var i="normal",o=n.length-1;"="===n[0]&&(i="thick");var s=function(e,t){for(var n=t.length,r=0,i=0;i/) && (c = 'LR'), + c.match(/.*v/) && (c = 'TB'); + }, + O = function (e, t) { + e.split(',').forEach(function (e) { + var n = e; + void 0 !== p[n] && p[n].classes.push(t), + void 0 !== y[n] && y[n].classes.push(t); + }); + }, + A = function (e, t) { + e.split(',').forEach(function (e) { + void 0 !== t && + (v['gen-1' === d ? x(e) : e] = s.default.sanitizeText( + t, + f + )); + }); + }, + I = function (e, t, n, r) { + e.split(',').forEach(function (e) { + void 0 !== p[e] && + ((p[e].link = i.default.formatUrl(t, f)), + (p[e].linkTarget = r)); + }), + A(e, n), + O(e, 'clickable'); + }, + P = function (e) { + return v[e]; + }, + R = function (e, t, n) { + e.split(',').forEach(function (e) { + !(function (e, t) { + var n = x(e); + 'loose' === o.getConfig().securityLevel && + void 0 !== t && + void 0 !== p[e] && + ((p[e].haveCallback = !0), + C.push(function () { + var r = document.querySelector( + '[id="'.concat(n, '"]') + ); + null !== r && + r.addEventListener( + 'click', + function () { + i.default.runFunc(t, e); + }, + !1 + ); + })); + })(e, t); + }), + A(e, n), + O(e, 'clickable'); + }, + F = function (e) { + C.forEach(function (t) { + t(e); + }); + }, + Y = function () { + return c.trim(); + }, + j = function () { + return p; + }, + B = function () { + return g; + }, + W = function () { + return m; + }, + H = function (e) { + var t = Object(r.select)('.mermaidTooltip'); + null === (t._groups || t)[0][0] && + (t = Object(r.select)('body') + .append('div') + .attr('class', 'mermaidTooltip') + .style('opacity', 0)), + Object(r.select)(e) + .select('svg') + .selectAll('g.node') + .on('mouseover', function () { + var e = Object(r.select)(this); + if (null !== e.attr('title')) { + var n = this.getBoundingClientRect(); + t.transition().duration(200).style('opacity', '.9'), + t + .html(e.attr('title')) + .style( + 'left', + window.scrollX + + n.left + + (n.right - n.left) / 2 + + 'px' + ) + .style( + 'top', + window.scrollY + + n.top - + 14 + + document.body.scrollTop + + 'px' + ), + e.classed('hover', !0); + } + }) + .on('mouseout', function () { + t.transition().duration(500).style('opacity', 0), + Object(r.select)(this).classed('hover', !1); + }); + }; + C.push(H); + var V = function (e) { + (p = {}), + (m = {}), + (g = []), + (C = []).push(H), + (_ = []), + (y = {}), + (b = 0), + (v = []), + (w = !0), + (d = e || 'gen-1'); + }, + z = function (e) { + d = e || 'gen-1'; + }, + U = function () { + return 'fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;'; + }, + q = function (e, t, n) { + var r = e.trim(), + i = n; + e === n && n.match(/\s/) && (r = void 0); + var o, + a, + c, + h = []; + if ( + ((o = h.concat.apply(h, t)), + (a = { boolean: {}, number: {}, string: {} }), + (c = []), + (h = o.filter(function (e) { + var t = l(e); + return ( + '' !== e.trim() && + (t in a + ? !a[t].hasOwnProperty(e) && (a[t][e] = !0) + : !(c.indexOf(e) >= 0) && c.push(e)) + ); + })), + 'gen-1' === d) + ) { + u.logger.warn('LOOKING UP'); + for (var p = 0; p < h.length; p++) h[p] = x(h[p]); + } + (r = r || 'subGraph' + b), + (i = i || ''), + (i = s.default.sanitizeText(i, f)), + (b += 1); + var g = { id: r, nodes: h, title: i.trim(), classes: [] }; + return ( + u.logger.info('Adding', g.id, g.nodes), + (g.nodes = te(g, _).nodes), + _.push(g), + (y[r] = g), + r + ); + }, + K = function (e) { + for (var t = 0; t < _.length; t++) + if (_[t].id === e) return t; + return -1; + }, + G = -1, + $ = [], + Z = function (e) { + return $[e]; + }, + X = function () { + (G = -1), + _.length > 0 && + (function e(t, n) { + var r = _[n].nodes; + if (!((G += 1) > 2e3)) { + if ((($[G] = n), _[n].id === t)) + return { result: !0, count: 0 }; + for (var i = 0, o = 1; i < r.length; ) { + var s = K(r[i]); + if (s >= 0) { + var a = e(t, s); + if (a.result) + return { result: !0, count: o + a.count }; + o += a.count; + } + i += 1; + } + return { result: !1, count: o }; + } + })('none', _.length - 1); + }, + J = function () { + return _; + }, + Q = function () { + return !!w && ((w = !1), !0); + }, + ee = function (e, t) { + var n = !1; + return ( + e.forEach(function (e) { + e.nodes.indexOf(t) >= 0 && (n = !0); + }), + n + ); + }, + te = function (e, t) { + var n = []; + return ( + e.nodes.forEach(function (r, i) { + ee(t, r) || n.push(e.nodes[i]); + }), + { nodes: n } + ); + }; + t.default = { + parseDirective: S, + defaultConfig: function () { + return o.defaultConfig.flowchart; + }, + addVertex: L, + lookUpDomId: x, + addLink: M, + updateLinkInterpolate: D, + updateLink: E, + addClass: T, + setDirection: N, + setClass: O, + getTooltip: P, + setClickEvent: R, + setLink: I, + bindFunctions: F, + getDirection: Y, + getVertices: j, + getEdges: B, + getClasses: W, + clear: V, + setGen: z, + defaultStyle: U, + addSubGraph: q, + getDepthFirstPos: Z, + indexNodes: X, + getSubGraphs: J, + destructLink: function (e, t) { + var n, + r = (function (e) { + var t = e.trim(), + n = t.slice(0, -1), + r = 'arrow_open'; + switch (t.slice(-1)) { + case 'x': + (r = 'arrow_cross'), + 'x' === t[0] && + ((r = 'double_' + r), (n = n.slice(1))); + break; + case '>': + (r = 'arrow_point'), + '<' === t[0] && + ((r = 'double_' + r), (n = n.slice(1))); + break; + case 'o': + (r = 'arrow_circle'), + 'o' === t[0] && + ((r = 'double_' + r), (n = n.slice(1))); + } + var i = 'normal', + o = n.length - 1; + '=' === n[0] && (i = 'thick'); + var s = (function (e, t) { + for (var n = t.length, r = 0, i = 0; i < n; ++i) + t[i] === e && ++r; + return r; + })('.', n); + return ( + s && ((i = 'dotted'), (o = s)), + { type: r, stroke: i, length: o } + ); + })(e); + if (t) { + if ( + (n = (function (e) { + var t = e.trim(), + n = 'arrow_open'; + switch (t[0]) { + case '<': + (n = 'arrow_point'), (t = t.slice(1)); + break; + case 'x': + (n = 'arrow_cross'), (t = t.slice(1)); + break; + case 'o': + (n = 'arrow_circle'), (t = t.slice(1)); + } + var r = 'normal'; + return ( + -1 !== t.indexOf('=') && (r = 'thick'), + -1 !== t.indexOf('.') && (r = 'dotted'), + { type: n, stroke: r } + ); + })(t)).stroke !== r.stroke + ) + return { type: 'INVALID', stroke: 'INVALID' }; + if ('arrow_open' === n.type) n.type = r.type; + else { + if (n.type !== r.type) + return { type: 'INVALID', stroke: 'INVALID' }; + n.type = 'double_' + n.type; + } + return ( + 'double_arrow' === n.type && + (n.type = 'double_arrow_point'), + (n.length = r.length), + n + ); + } + return r; + }, + lex: { firstGraph: Q }, + exists: ee, + makeUniq: te, + }; + }, + './src/diagrams/flowchart/flowRenderer-v2.js': + /*!***************************************************!*\ !*** ./src/diagrams/flowchart/flowRenderer-v2.js ***! \***************************************************/ -/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"addVertices",(function(){return y})),n.d(t,"addEdges",(function(){return v})),n.d(t,"getClasses",(function(){return b})),n.d(t,"draw",(function(){return w}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),h=n.n(d),f=n(/*! ../../logger */"./src/logger.js"),p=n(/*! ../common/common */"./src/diagrams/common/common.js"),g=n(/*! ../../utils */"./src/utils.js"),m={},_=function(e){for(var t=Object.keys(e),n=0;n0&&(o=i.classes.join(" "));var a,u=Object(g.getStylesFromArray)(i.styles),c=void 0!==i.text?i.text:i.id;if(Object(l.getConfig)().flowchart.htmlLabels){var d={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")}))};(a=h()(r,d).node()).parentNode.removeChild(a)}else{var m=document.createElementNS("http://www.w3.org/2000/svg","text");m.setAttribute("style",u.labelStyle.replace("color:","fill:"));for(var _=c.split(p.default.lineBreakRegex),y=0;y<_.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[y],m.appendChild(v)}a=m}var b=0,w="";switch(i.type){case"round":b=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}t.setNode(i.id,{labelStyle:u.labelStyle,shape:w,labelText:c,rx:b,ry:b,class:o,style:u.style,id:i.id,link:i.link,linkTarget:i.linkTarget,tooltip:s.default.getTooltip(i.id)||"",domId:s.default.lookUpDomId(i.id),haveCallback:i.haveCallback,width:"group"===i.type?500:void 0,type:i.type,padding:Object(l.getConfig)().flowchart.padding}),f.logger.info("setNode",{labelStyle:u.labelStyle,shape:w,labelText:c,rx:b,ry:b,class:o,style:u.style,id:i.id,domId:s.default.lookUpDomId(i.id),width:"group"===i.type?500:void 0,type:i.type,padding:Object(l.getConfig)().flowchart.padding})}))},v=function(e,t){var n,r,i=0;if(void 0!==e.defaultStyle){var s=Object(g.getStylesFromArray)(e.defaultStyle);n=s.style,r=s.labelStyle}e.forEach((function(s){i++;var a="L-"+s.start+"-"+s.end,u="LS-"+s.start,l="LE-"+s.end,c={style:"",labelStyle:""};switch(c.minlen=s.length||1,"arrow_open"===s.type?c.arrowhead="none":c.arrowhead="normal",c.arrowTypeStart="arrow_open",c.arrowTypeEnd="arrow_open",s.type){case"double_arrow_cross":c.arrowTypeStart="arrow_cross";case"arrow_cross":c.arrowTypeEnd="arrow_cross";break;case"double_arrow_point":c.arrowTypeStart="arrow_point";case"arrow_point":c.arrowTypeEnd="arrow_point";break;case"double_arrow_circle":c.arrowTypeStart="arrow_circle";case"arrow_circle":c.arrowTypeEnd="arrow_circle"}var d="",h="";switch(s.stroke){case"normal":d="fill:none;",void 0!==n&&(d=n),void 0!==r&&(h=r),c.thickness="normal",c.pattern="solid";break;case"dotted":c.thickness="normal",c.pattern="dotted",c.style="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":c.thickness="thick",c.pattern="solid",c.style="stroke-width: 3.5px;fill:none;"}if(void 0!==s.style){var f=Object(g.getStylesFromArray)(s.style);d=f.style,h=f.labelStyle}c.style=c.style+=d,c.labelStyle=c.labelStyle+=h,void 0!==s.interpolate?c.curve=Object(g.interpolateToCurve)(s.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?c.curve=Object(g.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):c.curve=Object(g.interpolateToCurve)(m.curve,o.curveLinear),void 0===s.text?void 0!==s.style&&(c.arrowheadStyle="fill: #333"):(c.arrowheadStyle="fill: #333",c.labelpos="c"),c.labelType="text",c.label=s.text.replace(p.default.lineBreakRegex,"\n"),void 0===s.style&&(c.style=c.style||"stroke: #333; stroke-width: 1.5px;fill:none;"),c.labelStyle=c.labelStyle.replace("color:","fill:"),c.id=a,c.classes="flowchart-link "+u+" "+l,t.setEdge(s.start,s.end,c,i)}))},b=function(e){f.logger.info("Extracting classes"),s.default.clear();var t=u.a.parser;t.yy=s.default;try{t.parse(e)}catch(e){return}return s.default.getClasses()},w=function(e,t){f.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-2");var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="TD");var a,d=Object(l.getConfig)().flowchart,h=d.nodeSpacing||50,p=d.rankSpacing||50,m=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:h,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),_=s.default.getSubGraphs();f.logger.info("Subgraphs - ",_);for(var b=_.length-1;b>=0;b--)a=_[b],f.logger.info("Subgraph - ",a),s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var w=s.default.getVertices(),C=s.default.getEdges();f.logger.info(C);var S=0;for(S=_.length-1;S>=0;S--){a=_[S],Object(o.selectAll)("cluster").append("text");for(var x=0;x 0 && (o = i.classes.join(' ')); + var a, + u = Object(g.getStylesFromArray)(i.styles), + c = void 0 !== i.text ? i.text : i.id; + if (Object(l.getConfig)().flowchart.htmlLabels) { + var d = { + label: c.replace(/fa[lrsb]?:fa-[\w-]+/g, function (e) { + return "" + ); + }), + }; + (a = h()(r, d).node()).parentNode.removeChild(a); + } else { + var m = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'text' + ); + m.setAttribute( + 'style', + u.labelStyle.replace('color:', 'fill:') + ); + for ( + var _ = c.split(p.default.lineBreakRegex), y = 0; + y < _.length; + y++ + ) { + var v = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'tspan' + ); + v.setAttributeNS( + 'http://www.w3.org/XML/1998/namespace', + 'xml:space', + 'preserve' + ), + v.setAttribute('dy', '1em'), + v.setAttribute('x', '1'), + (v.textContent = _[y]), + m.appendChild(v); + } + a = m; + } + var b = 0, + w = ''; + switch (i.type) { + case 'round': + (b = 5), (w = 'rect'); + break; + case 'square': + w = 'rect'; + break; + case 'diamond': + w = 'question'; + break; + case 'hexagon': + w = 'hexagon'; + break; + case 'odd': + w = 'rect_left_inv_arrow'; + break; + case 'lean_right': + w = 'lean_right'; + break; + case 'lean_left': + w = 'lean_left'; + break; + case 'trapezoid': + w = 'trapezoid'; + break; + case 'inv_trapezoid': + w = 'inv_trapezoid'; + break; + case 'odd_right': + w = 'rect_left_inv_arrow'; + break; + case 'circle': + w = 'circle'; + break; + case 'ellipse': + w = 'ellipse'; + break; + case 'stadium': + w = 'stadium'; + break; + case 'subroutine': + w = 'subroutine'; + break; + case 'cylinder': + w = 'cylinder'; + break; + case 'group': + w = 'rect'; + break; + default: + w = 'rect'; + } + t.setNode(i.id, { + labelStyle: u.labelStyle, + shape: w, + labelText: c, + rx: b, + ry: b, + class: o, + style: u.style, + id: i.id, + link: i.link, + linkTarget: i.linkTarget, + tooltip: s.default.getTooltip(i.id) || '', + domId: s.default.lookUpDomId(i.id), + haveCallback: i.haveCallback, + width: 'group' === i.type ? 500 : void 0, + type: i.type, + padding: Object(l.getConfig)().flowchart.padding, + }), + f.logger.info('setNode', { + labelStyle: u.labelStyle, + shape: w, + labelText: c, + rx: b, + ry: b, + class: o, + style: u.style, + id: i.id, + domId: s.default.lookUpDomId(i.id), + width: 'group' === i.type ? 500 : void 0, + type: i.type, + padding: Object(l.getConfig)().flowchart.padding, + }); + }); + }, + v = function (e, t) { + var n, + r, + i = 0; + if (void 0 !== e.defaultStyle) { + var s = Object(g.getStylesFromArray)(e.defaultStyle); + (n = s.style), (r = s.labelStyle); + } + e.forEach(function (s) { + i++; + var a = 'L-' + s.start + '-' + s.end, + u = 'LS-' + s.start, + l = 'LE-' + s.end, + c = { style: '', labelStyle: '' }; + switch ( + ((c.minlen = s.length || 1), + 'arrow_open' === s.type + ? (c.arrowhead = 'none') + : (c.arrowhead = 'normal'), + (c.arrowTypeStart = 'arrow_open'), + (c.arrowTypeEnd = 'arrow_open'), + s.type) + ) { + case 'double_arrow_cross': + c.arrowTypeStart = 'arrow_cross'; + case 'arrow_cross': + c.arrowTypeEnd = 'arrow_cross'; + break; + case 'double_arrow_point': + c.arrowTypeStart = 'arrow_point'; + case 'arrow_point': + c.arrowTypeEnd = 'arrow_point'; + break; + case 'double_arrow_circle': + c.arrowTypeStart = 'arrow_circle'; + case 'arrow_circle': + c.arrowTypeEnd = 'arrow_circle'; + } + var d = '', + h = ''; + switch (s.stroke) { + case 'normal': + (d = 'fill:none;'), + void 0 !== n && (d = n), + void 0 !== r && (h = r), + (c.thickness = 'normal'), + (c.pattern = 'solid'); + break; + case 'dotted': + (c.thickness = 'normal'), + (c.pattern = 'dotted'), + (c.style = + 'fill:none;stroke-width:2px;stroke-dasharray:3;'); + break; + case 'thick': + (c.thickness = 'thick'), + (c.pattern = 'solid'), + (c.style = 'stroke-width: 3.5px;fill:none;'); + } + if (void 0 !== s.style) { + var f = Object(g.getStylesFromArray)(s.style); + (d = f.style), (h = f.labelStyle); + } + (c.style = c.style += d), + (c.labelStyle = c.labelStyle += h), + void 0 !== s.interpolate + ? (c.curve = Object(g.interpolateToCurve)( + s.interpolate, + o.curveLinear + )) + : void 0 !== e.defaultInterpolate + ? (c.curve = Object(g.interpolateToCurve)( + e.defaultInterpolate, + o.curveLinear + )) + : (c.curve = Object(g.interpolateToCurve)( + m.curve, + o.curveLinear + )), + void 0 === s.text + ? void 0 !== s.style && + (c.arrowheadStyle = 'fill: #333') + : ((c.arrowheadStyle = 'fill: #333'), + (c.labelpos = 'c')), + (c.labelType = 'text'), + (c.label = s.text.replace( + p.default.lineBreakRegex, + '\n' + )), + void 0 === s.style && + (c.style = + c.style || + 'stroke: #333; stroke-width: 1.5px;fill:none;'), + (c.labelStyle = c.labelStyle.replace('color:', 'fill:')), + (c.id = a), + (c.classes = 'flowchart-link ' + u + ' ' + l), + t.setEdge(s.start, s.end, c, i); + }); + }, + b = function (e) { + f.logger.info('Extracting classes'), s.default.clear(); + var t = u.a.parser; + t.yy = s.default; + try { + t.parse(e); + } catch (e) { + return; + } + return s.default.getClasses(); + }, + w = function (e, t) { + f.logger.info('Drawing flowchart'), + s.default.clear(), + s.default.setGen('gen-2'); + var n = u.a.parser; + (n.yy = s.default), n.parse(e); + var r = s.default.getDirection(); + void 0 === r && (r = 'TD'); + var a, + d = Object(l.getConfig)().flowchart, + h = d.nodeSpacing || 50, + p = d.rankSpacing || 50, + m = new i.a.Graph({ multigraph: !0, compound: !0 }) + .setGraph({ + rankdir: r, + nodesep: h, + ranksep: p, + marginx: 8, + marginy: 8, + }) + .setDefaultEdgeLabel(function () { + return {}; + }), + _ = s.default.getSubGraphs(); + f.logger.info('Subgraphs - ', _); + for (var b = _.length - 1; b >= 0; b--) + (a = _[b]), + f.logger.info('Subgraph - ', a), + s.default.addVertex( + a.id, + a.title, + 'group', + void 0, + a.classes + ); + var w = s.default.getVertices(), + C = s.default.getEdges(); + f.logger.info(C); + var S = 0; + for (S = _.length - 1; S >= 0; S--) { + (a = _[S]), Object(o.selectAll)('cluster').append('text'); + for (var x = 0; x < a.nodes.length; x++) + f.logger.info('Setting up subgraphs', a.nodes[x], a.id), + m.setParent(a.nodes[x], a.id); + } + y(w, m, t), v(C, m); + var L = Object(o.select)('[id="'.concat(t, '"]')); + L.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'); + var k = Object(o.select)('#' + t + ' g'); + Object(c.render)( + k, + m, + ['point', 'circle', 'cross'], + 'flowchart', + t + ); + var M = d.diagramPadding, + D = L.node().getBBox(), + E = D.width + 2 * M, + T = D.height + 2 * M; + if ( + (f.logger.debug( + 'new ViewBox 0 0 '.concat(E, ' ').concat(T), + 'translate(' + .concat(M - m._label.marginx, ', ') + .concat(M - m._label.marginy, ')') + ), + Object(g.configureSvgSize)(L, T, E, d.useMaxWidth), + L.attr('viewBox', '0 0 '.concat(E, ' ').concat(T)), + L.select('g').attr( + 'transform', + 'translate(' + .concat(M - m._label.marginx, ', ') + .concat(M - D.y, ')') + ), + s.default.indexNodes('subGraph' + S), + !d.htmlLabels) + ) + for ( + var N = document.querySelectorAll( + '[id="' + t + '"] .edgeLabel .label' + ), + O = 0; + O < N.length; + O++ + ) { + var A = N[O], + I = A.getBBox(), + P = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'rect' + ); + P.setAttribute('rx', 0), + P.setAttribute('ry', 0), + P.setAttribute('width', I.width), + P.setAttribute('height', I.height), + A.insertBefore(P, A.firstChild); + } + Object.keys(w).forEach(function (e) { + var n = w[e]; + if (n.link) { + var r = Object(o.select)('#' + t + ' [id="' + e + '"]'); + if (r) { + var i = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'a' + ); + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'class', + n.classes.join(' ') + ), + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'href', + n.link + ), + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'rel', + 'noopener' + ), + n.linkTarget && + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'target', + n.linkTarget + ); + var s = r.insert(function () { + return i; + }, ':first-child'), + a = r.select('.label-container'); + a && + s.append(function () { + return a.node(); + }); + var u = r.select('.label'); + u && + s.append(function () { + return u.node(); + }); + } + } + }); + }; + t.default = { + setConf: _, + addVertices: y, + addEdges: v, + getClasses: b, + draw: w, + }; + }, + './src/diagrams/flowchart/flowRenderer.js': + /*!************************************************!*\ !*** ./src/diagrams/flowchart/flowRenderer.js ***! \************************************************/ -/*! exports provided: setConf, addVertices, addEdges, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return v})),n.d(t,"addVertices",(function(){return b})),n.d(t,"addEdges",(function(){return w})),n.d(t,"getClasses",(function(){return C})),n.d(t,"draw",(function(){return S}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./flowDb */"./src/diagrams/flowchart/flowDb.js"),a=n(/*! ./parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! dagre-d3 */"dagre-d3"),d=n.n(c),h=n(/*! dagre-d3/lib/label/add-html-label.js */"dagre-d3/lib/label/add-html-label.js"),f=n.n(h),p=n(/*! ../../logger */"./src/logger.js"),g=n(/*! ../common/common */"./src/diagrams/common/common.js"),m=n(/*! ../../utils */"./src/utils.js"),_=n(/*! ./flowChartShapes */"./src/diagrams/flowchart/flowChartShapes.js"),y={},v=function(e){for(var t=Object.keys(e),n=0;n0&&(o=i.classes.join(" "));var a,u=Object(m.getStylesFromArray)(i.styles),c=void 0!==i.text?i.text:i.id;if(Object(l.getConfig)().flowchart.htmlLabels){var d={label:c.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")}))};(a=f()(r,d).node()).parentNode.removeChild(a)}else{var h=document.createElementNS("http://www.w3.org/2000/svg","text");h.setAttribute("style",u.labelStyle.replace("color:","fill:"));for(var _=c.split(g.default.lineBreakRegex),y=0;y<_.length;y++){var v=document.createElementNS("http://www.w3.org/2000/svg","tspan");v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),v.setAttribute("dy","1em"),v.setAttribute("x","1"),v.textContent=_[y],h.appendChild(v)}a=h}var b=0,w="";switch(i.type){case"round":b=5,w="rect";break;case"square":w="rect";break;case"diamond":w="question";break;case"hexagon":w="hexagon";break;case"odd":w="rect_left_inv_arrow";break;case"lean_right":w="lean_right";break;case"lean_left":w="lean_left";break;case"trapezoid":w="trapezoid";break;case"inv_trapezoid":w="inv_trapezoid";break;case"odd_right":w="rect_left_inv_arrow";break;case"circle":w="circle";break;case"ellipse":w="ellipse";break;case"stadium":w="stadium";break;case"subroutine":w="subroutine";break;case"cylinder":w="cylinder";break;case"group":w="rect";break;default:w="rect"}p.logger.warn("Adding node",i.id,i.domId),t.setNode(s.default.lookUpDomId(i.id),{labelType:"svg",labelStyle:u.labelStyle,shape:w,label:a,rx:b,ry:b,class:o,style:u.style,id:s.default.lookUpDomId(i.id)})}))},w=function(e,t){var n,r,i=0;if(void 0!==e.defaultStyle){var a=Object(m.getStylesFromArray)(e.defaultStyle);n=a.style,r=a.labelStyle}e.forEach((function(a){i++;var u="L-"+a.start+"-"+a.end,c="LS-"+a.start,d="LE-"+a.end,h={};"arrow_open"===a.type?h.arrowhead="none":h.arrowhead="normal";var f="",p="";if(void 0!==a.style){var _=Object(m.getStylesFromArray)(a.style);f=_.style,p=_.labelStyle}else switch(a.stroke){case"normal":f="fill:none",void 0!==n&&(f=n),void 0!==r&&(p=r);break;case"dotted":f="fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":f=" stroke-width: 3.5px;fill:none"}h.style=f,h.labelStyle=p,void 0!==a.interpolate?h.curve=Object(m.interpolateToCurve)(a.interpolate,o.curveLinear):void 0!==e.defaultInterpolate?h.curve=Object(m.interpolateToCurve)(e.defaultInterpolate,o.curveLinear):h.curve=Object(m.interpolateToCurve)(y.curve,o.curveLinear),void 0===a.text?void 0!==a.style&&(h.arrowheadStyle="fill: #333"):(h.arrowheadStyle="fill: #333",h.labelpos="c",Object(l.getConfig)().flowchart.htmlLabels?(h.labelType="html",h.label='').concat(a.text.replace(/fa[lrsb]?:fa-[\w-]+/g,(function(e){return"")})),"")):(h.labelType="text",h.label=a.text.replace(g.default.lineBreakRegex,"\n"),void 0===a.style&&(h.style=h.style||"stroke: #333; stroke-width: 1.5px;fill:none"),h.labelStyle=h.labelStyle.replace("color:","fill:"))),h.id=u,h.class=c+" "+d,h.minlen=a.length||1,t.setEdge(s.default.lookUpDomId(a.start),s.default.lookUpDomId(a.end),h,i)}))},C=function(e){p.logger.info("Extracting classes"),s.default.clear();try{var t=u.a.parser;return t.yy=s.default,t.parse(e),s.default.getClasses()}catch(e){return}},S=function(e,t){p.logger.info("Drawing flowchart"),s.default.clear(),s.default.setGen("gen-1");var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="TD");for(var a,c=Object(l.getConfig)().flowchart,h=c.nodeSpacing||50,f=c.rankSpacing||50,g=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:r,nodesep:h,ranksep:f,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}})),y=s.default.getSubGraphs(),v=y.length-1;v>=0;v--)a=y[v],s.default.addVertex(a.id,a.title,"group",void 0,a.classes);var C=s.default.getVertices();p.logger.warn("Get vertices",C);var S=s.default.getEdges(),x=0;for(x=y.length-1;x>=0;x--){a=y[x],Object(o.selectAll)("cluster").append("text");for(var L=0;L 0 && (o = i.classes.join(' ')); + var a, + u = Object(m.getStylesFromArray)(i.styles), + c = void 0 !== i.text ? i.text : i.id; + if (Object(l.getConfig)().flowchart.htmlLabels) { + var d = { + label: c.replace(/fa[lrsb]?:fa-[\w-]+/g, function (e) { + return "" + ); + }), + }; + (a = f()(r, d).node()).parentNode.removeChild(a); + } else { + var h = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'text' + ); + h.setAttribute( + 'style', + u.labelStyle.replace('color:', 'fill:') + ); + for ( + var _ = c.split(g.default.lineBreakRegex), y = 0; + y < _.length; + y++ + ) { + var v = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'tspan' + ); + v.setAttributeNS( + 'http://www.w3.org/XML/1998/namespace', + 'xml:space', + 'preserve' + ), + v.setAttribute('dy', '1em'), + v.setAttribute('x', '1'), + (v.textContent = _[y]), + h.appendChild(v); + } + a = h; + } + var b = 0, + w = ''; + switch (i.type) { + case 'round': + (b = 5), (w = 'rect'); + break; + case 'square': + w = 'rect'; + break; + case 'diamond': + w = 'question'; + break; + case 'hexagon': + w = 'hexagon'; + break; + case 'odd': + w = 'rect_left_inv_arrow'; + break; + case 'lean_right': + w = 'lean_right'; + break; + case 'lean_left': + w = 'lean_left'; + break; + case 'trapezoid': + w = 'trapezoid'; + break; + case 'inv_trapezoid': + w = 'inv_trapezoid'; + break; + case 'odd_right': + w = 'rect_left_inv_arrow'; + break; + case 'circle': + w = 'circle'; + break; + case 'ellipse': + w = 'ellipse'; + break; + case 'stadium': + w = 'stadium'; + break; + case 'subroutine': + w = 'subroutine'; + break; + case 'cylinder': + w = 'cylinder'; + break; + case 'group': + w = 'rect'; + break; + default: + w = 'rect'; + } + p.logger.warn('Adding node', i.id, i.domId), + t.setNode(s.default.lookUpDomId(i.id), { + labelType: 'svg', + labelStyle: u.labelStyle, + shape: w, + label: a, + rx: b, + ry: b, + class: o, + style: u.style, + id: s.default.lookUpDomId(i.id), + }); + }); + }, + w = function (e, t) { + var n, + r, + i = 0; + if (void 0 !== e.defaultStyle) { + var a = Object(m.getStylesFromArray)(e.defaultStyle); + (n = a.style), (r = a.labelStyle); + } + e.forEach(function (a) { + i++; + var u = 'L-' + a.start + '-' + a.end, + c = 'LS-' + a.start, + d = 'LE-' + a.end, + h = {}; + 'arrow_open' === a.type + ? (h.arrowhead = 'none') + : (h.arrowhead = 'normal'); + var f = '', + p = ''; + if (void 0 !== a.style) { + var _ = Object(m.getStylesFromArray)(a.style); + (f = _.style), (p = _.labelStyle); + } else + switch (a.stroke) { + case 'normal': + (f = 'fill:none'), + void 0 !== n && (f = n), + void 0 !== r && (p = r); + break; + case 'dotted': + f = 'fill:none;stroke-width:2px;stroke-dasharray:3;'; + break; + case 'thick': + f = ' stroke-width: 3.5px;fill:none'; + } + (h.style = f), + (h.labelStyle = p), + void 0 !== a.interpolate + ? (h.curve = Object(m.interpolateToCurve)( + a.interpolate, + o.curveLinear + )) + : void 0 !== e.defaultInterpolate + ? (h.curve = Object(m.interpolateToCurve)( + e.defaultInterpolate, + o.curveLinear + )) + : (h.curve = Object(m.interpolateToCurve)( + y.curve, + o.curveLinear + )), + void 0 === a.text + ? void 0 !== a.style && + (h.arrowheadStyle = 'fill: #333') + : ((h.arrowheadStyle = 'fill: #333'), + (h.labelpos = 'c'), + Object(l.getConfig)().flowchart.htmlLabels + ? ((h.labelType = 'html'), + (h.label = '') + .concat( + a.text.replace( + /fa[lrsb]?:fa-[\w-]+/g, + function (e) { + return "" + ); + } + ), + '' + ))) + : ((h.labelType = 'text'), + (h.label = a.text.replace( + g.default.lineBreakRegex, + '\n' + )), + void 0 === a.style && + (h.style = + h.style || + 'stroke: #333; stroke-width: 1.5px;fill:none'), + (h.labelStyle = h.labelStyle.replace( + 'color:', + 'fill:' + )))), + (h.id = u), + (h.class = c + ' ' + d), + (h.minlen = a.length || 1), + t.setEdge( + s.default.lookUpDomId(a.start), + s.default.lookUpDomId(a.end), + h, + i + ); + }); + }, + C = function (e) { + p.logger.info('Extracting classes'), s.default.clear(); + try { + var t = u.a.parser; + return ( + (t.yy = s.default), t.parse(e), s.default.getClasses() + ); + } catch (e) { + return; + } + }, + S = function (e, t) { + p.logger.info('Drawing flowchart'), + s.default.clear(), + s.default.setGen('gen-1'); + var n = u.a.parser; + (n.yy = s.default), n.parse(e); + var r = s.default.getDirection(); + void 0 === r && (r = 'TD'); + for ( + var a, + c = Object(l.getConfig)().flowchart, + h = c.nodeSpacing || 50, + f = c.rankSpacing || 50, + g = new i.a.Graph({ multigraph: !0, compound: !0 }) + .setGraph({ + rankdir: r, + nodesep: h, + ranksep: f, + marginx: 8, + marginy: 8, + }) + .setDefaultEdgeLabel(function () { + return {}; + }), + y = s.default.getSubGraphs(), + v = y.length - 1; + v >= 0; + v-- + ) + (a = y[v]), + s.default.addVertex( + a.id, + a.title, + 'group', + void 0, + a.classes + ); + var C = s.default.getVertices(); + p.logger.warn('Get vertices', C); + var S = s.default.getEdges(), + x = 0; + for (x = y.length - 1; x >= 0; x--) { + (a = y[x]), Object(o.selectAll)('cluster').append('text'); + for (var L = 0; L < a.nodes.length; L++) + p.logger.warn( + 'Setting subgraph', + a.nodes[L], + s.default.lookUpDomId(a.nodes[L]), + s.default.lookUpDomId(a.id) + ), + g.setParent( + s.default.lookUpDomId(a.nodes[L]), + s.default.lookUpDomId(a.id) + ); + } + b(C, g, t), w(S, g); + var k = new (0, d.a.render)(); + _.default.addToRender(k), + (k.arrows().none = function (e, t, n, r) { + var i = e + .append('marker') + .attr('id', t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'strokeWidth') + .attr('markerWidth', 8) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 0 0 L 0 0 z'); + d.a.util.applyStyle(i, n[r + 'Style']); + }), + (k.arrows().normal = function (e, t) { + e.append('marker') + .attr('id', t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'strokeWidth') + .attr('markerWidth', 8) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 10 5 L 0 10 z') + .attr('class', 'arrowheadPath') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + }); + var M = Object(o.select)('[id="'.concat(t, '"]')); + M.attr('xmlns:xlink', 'http://www.w3.org/1999/xlink'), + p.logger.warn(g); + var D = Object(o.select)('#' + t + ' g'); + k(D, g), + D.selectAll('g.node').attr('title', function () { + return s.default.getTooltip(this.id); + }); + var E = c.diagramPadding, + T = M.node().getBBox(), + N = T.width + 2 * E, + O = T.height + 2 * E; + Object(m.configureSvgSize)(M, O, N, c.useMaxWidth); + var A = '' + .concat(T.x - E, ' ') + .concat(T.y - E, ' ') + .concat(N, ' ') + .concat(O); + for ( + p.logger.debug('viewBox '.concat(A)), + M.attr('viewBox', A), + s.default.indexNodes('subGraph' + x), + x = 0; + x < y.length; + x++ + ) + if ('undefined' !== (a = y[x]).title) { + var I = document.querySelectorAll( + '#' + + t + + ' [id="' + + s.default.lookUpDomId(a.id) + + '"] rect' + ), + P = document.querySelectorAll( + '#' + + t + + ' [id="' + + s.default.lookUpDomId(a.id) + + '"]' + ), + R = I[0].x.baseVal.value, + F = I[0].y.baseVal.value, + Y = I[0].width.baseVal.value, + j = Object(o.select)(P[0]).select('.label'); + j.attr( + 'transform', + 'translate('.concat(R + Y / 2, ', ').concat(F + 14, ')') + ), + j.attr('id', t + 'Text'); + for (var B = 0; B < a.classes.length; B++) + P[0].classList.add(a.classes[B]); + } + c.htmlLabels; + for ( + var W = document.querySelectorAll( + '[id="' + t + '"] .edgeLabel .label' + ), + H = 0; + H < W.length; + H++ + ) { + var V = W[H], + z = V.getBBox(), + U = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'rect' + ); + U.setAttribute('rx', 0), + U.setAttribute('ry', 0), + U.setAttribute('width', z.width), + U.setAttribute('height', z.height), + V.insertBefore(U, V.firstChild); + } + Object.keys(C).forEach(function (e) { + var n = C[e]; + if (n.link) { + var r = Object(o.select)( + '#' + t + ' [id="' + s.default.lookUpDomId(e) + '"]' + ); + if (r) { + var i = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'a' + ); + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'class', + n.classes.join(' ') + ), + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'href', + n.link + ), + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'rel', + 'noopener' + ), + n.linkTarget && + i.setAttributeNS( + 'http://www.w3.org/2000/svg', + 'target', + n.linkTarget + ); + var a = r.insert(function () { + return i; + }, ':first-child'), + u = r.select('.label-container'); + u && + a.append(function () { + return u.node(); + }); + var l = r.select('.label'); + l && + a.append(function () { + return l.node(); + }); + } + } + }); + }; + t.default = { + setConf: v, + addVertices: b, + addEdges: w, + getClasses: C, + draw: S, + }; + }, + './src/diagrams/flowchart/parser/flow.jison': + /*!**************************************************!*\ !*** ./src/diagrams/flowchart/parser/flow.jison ***! \**************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,9],n=[1,7],r=[1,6],i=[1,8],o=[1,20,21,22,23,38,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],s=[2,10],a=[1,20],u=[1,21],l=[1,22],c=[1,23],d=[1,30],h=[1,54],f=[1,32],p=[1,33],g=[1,34],m=[1,35],_=[1,36],y=[1,48],v=[1,43],b=[1,45],w=[1,40],C=[1,44],S=[1,47],x=[1,51],L=[1,52],k=[1,53],M=[1,42],D=[1,46],E=[1,49],T=[1,50],N=[1,41],O=[1,57],A=[1,62],I=[1,20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],P=[1,66],R=[1,65],F=[1,67],Y=[20,21,23,69,70],j=[20,21,22,23,69,70],B=[20,21,22,23,47,69,70],W=[20,21,22,23,40,46,47,49,51,53,55,57,59,61,62,64,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],H=[20,21,23],V=[20,21,23,46,69,70,80,91,92,95,96,97,99,100,106,107,108,109,110,111],z=[1,12,20,21,22,23,24,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],U=[46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],q=[1,115],K=[1,136],G=[1,137],$=[1,138],Z=[1,139],X=[1,119],J=[1,110],Q=[1,111],ee=[1,107],te=[1,131],ne=[1,132],re=[1,133],ie=[1,134],oe=[1,135],se=[1,140],ae=[1,141],ue=[1,113],le=[1,121],ce=[1,124],de=[1,122],he=[1,123],fe=[1,116],pe=[1,129],ge=[1,128],me=[1,112],_e=[1,109],ye=[1,118],ve=[1,120],be=[1,125],we=[1,126],Ce=[1,127],Se=[1,130],xe=[20,21,22,23,38,42,46,75,76,77,78,79,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Le=[1,144],ke=[1,148],Me=[1,150],De=[1,151],Ee=[12,21,22,24],Te=[20,21,22,23,24,26,38,40,41,42,46,50,52,54,56,58,60,61,63,65,69,70,71,75,76,77,78,79,80,81,84,91,92,95,96,97,99,100,101,102,106,107,108,109,110,111],Ne=[20,21,22,23,26,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],Oe=[22,92],Ae=[1,220],Ie=[1,224],Pe=[1,221],Re=[1,218],Fe=[1,215],Ye=[1,216],je=[1,217],Be=[1,219],We=[1,222],He=[1,223],Ve=[1,225],ze=[1,241],Ue=[20,21,23,92],qe=[20,21,22,23,75,88,91,92,95,96,97,98,99,100,101],Ke={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,":":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,link:43,node:44,vertex:45,AMP:46,STYLE_SEPARATOR:47,idString:48,PS:49,PE:50,"(-":51,"-)":52,STADIUMSTART:53,STADIUMEND:54,SUBROUTINESTART:55,SUBROUTINEEND:56,CYLINDERSTART:57,CYLINDEREND:58,DIAMOND_START:59,DIAMOND_STOP:60,TAGEND:61,TRAPSTART:62,TRAPEND:63,INVTRAPSTART:64,INVTRAPEND:65,linkStatement:66,arrowText:67,TESTSTR:68,START_LINK:69,LINK:70,PIPE:71,textToken:72,STR:73,keywords:74,STYLE:75,LINKSTYLE:76,CLASSDEF:77,CLASS:78,CLICK:79,DOWN:80,UP:81,textNoTags:82,textNoTagsToken:83,DEFAULT:84,stylesOpt:85,alphaNum:86,LINK_TARGET:87,HEX:88,numList:89,INTERPOLATE:90,NUM:91,COMMA:92,style:93,styleComponent:94,ALPHA:95,COLON:96,MINUS:97,UNIT:98,BRKT:99,DOT:100,PCT:101,TAGSTART:102,alphaNumToken:103,idStringToken:104,alphaNumStatement:105,PUNCTUATION:106,UNICODE_TEXT:107,PLUS:108,EQUALS:109,MULT:110,UNDERSCORE:111,graphCodeTokens:112,ARROW_CROSS:113,ARROW_POINT:114,ARROW_CIRCLE:115,ARROW_OPEN:116,QUOTE:117,$accept:0,$end:1},terminals_:{2:"error",10:":",12:"open_directive",13:"type_directive",14:"arg_directive",15:"close_directive",20:"SEMI",21:"NEWLINE",22:"SPACE",23:"EOF",24:"GRAPH",25:"NODIR",26:"DIR",38:"subgraph",40:"SQS",41:"SQE",42:"end",46:"AMP",47:"STYLE_SEPARATOR",49:"PS",50:"PE",51:"(-",52:"-)",53:"STADIUMSTART",54:"STADIUMEND",55:"SUBROUTINESTART",56:"SUBROUTINEEND",57:"CYLINDERSTART",58:"CYLINDEREND",59:"DIAMOND_START",60:"DIAMOND_STOP",61:"TAGEND",62:"TRAPSTART",63:"TRAPEND",64:"INVTRAPSTART",65:"INVTRAPEND",68:"TESTSTR",69:"START_LINK",70:"LINK",71:"PIPE",73:"STR",75:"STYLE",76:"LINKSTYLE",77:"CLASSDEF",78:"CLASS",79:"CLICK",80:"DOWN",81:"UP",84:"DEFAULT",87:"LINK_TARGET",88:"HEX",90:"INTERPOLATE",91:"NUM",92:"COMMA",95:"ALPHA",96:"COLON",97:"MINUS",98:"UNIT",99:"BRKT",100:"DOT",101:"PCT",102:"TAGSTART",106:"PUNCTUATION",107:"UNICODE_TEXT",108:"PLUS",109:"EQUALS",110:"MULT",111:"UNDERSCORE",113:"ARROW_CROSS",114:"ARROW_POINT",115:"ARROW_CIRCLE",116:"ARROW_OPEN",117:"QUOTE"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[44,1],[44,5],[44,3],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,4],[45,6],[45,4],[45,4],[45,4],[45,4],[45,4],[45,1],[43,2],[43,3],[43,3],[43,1],[43,3],[66,1],[67,3],[39,1],[39,2],[39,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[74,1],[82,1],[82,2],[35,5],[35,5],[36,5],[37,5],[37,7],[37,5],[37,7],[37,7],[37,9],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[89,1],[89,3],[85,1],[85,3],[93,1],[93,2],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[94,1],[72,1],[72,1],[72,1],[72,1],[72,1],[72,1],[83,1],[83,1],[83,1],[83,1],[48,1],[48,2],[86,1],[86,2],[105,1],[105,1],[105,1],[105,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[103,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[104,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1],[112,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 5:r.parseDirective("%%{","open_directive");break;case 6:r.parseDirective(o[a],"type_directive");break;case 7:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 8:r.parseDirective("}%%","close_directive","flowchart");break;case 10:this.$=[];break;case 11:o[a]!==[]&&o[a-1].push(o[a]),this.$=o[a-1];break;case 12:case 76:case 78:case 90:case 138:case 140:case 141:this.$=o[a];break;case 19:r.setDirection("TB"),this.$="TB";break;case 20:r.setDirection(o[a-1]),this.$=o[a-1];break;case 35:this.$=o[a-1].nodes;break;case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 41:this.$=r.addSubGraph(o[a-6],o[a-1],o[a-4]);break;case 42:this.$=r.addSubGraph(o[a-3],o[a-1],o[a-3]);break;case 43:this.$=r.addSubGraph(void 0,o[a-1],void 0);break;case 47:r.addLink(o[a-2].stmt,o[a],o[a-1]),this.$={stmt:o[a],nodes:o[a].concat(o[a-2].nodes)};break;case 48:r.addLink(o[a-3].stmt,o[a-1],o[a-2]),this.$={stmt:o[a-1],nodes:o[a-1].concat(o[a-3].nodes)};break;case 49:this.$={stmt:o[a-1],nodes:o[a-1]};break;case 50:this.$={stmt:o[a],nodes:o[a]};break;case 51:this.$=[o[a]];break;case 52:this.$=o[a-4].concat(o[a]);break;case 53:this.$=[o[a-2]],r.setClass(o[a-2],o[a]);break;case 54:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"square");break;case 55:this.$=o[a-5],r.addVertex(o[a-5],o[a-2],"circle");break;case 56:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"ellipse");break;case 57:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"stadium");break;case 58:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"subroutine");break;case 59:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"cylinder");break;case 60:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"round");break;case 61:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"diamond");break;case 62:this.$=o[a-5],r.addVertex(o[a-5],o[a-2],"hexagon");break;case 63:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"odd");break;case 64:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"trapezoid");break;case 65:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"inv_trapezoid");break;case 66:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"lean_right");break;case 67:this.$=o[a-3],r.addVertex(o[a-3],o[a-1],"lean_left");break;case 68:this.$=o[a],r.addVertex(o[a]);break;case 69:o[a-1].text=o[a],this.$=o[a-1];break;case 70:case 71:o[a-2].text=o[a-1],this.$=o[a-2];break;case 72:this.$=o[a];break;case 73:var u=r.destructLink(o[a],o[a-2]);this.$={type:u.type,stroke:u.stroke,length:u.length,text:o[a-1]};break;case 74:u=r.destructLink(o[a]),this.$={type:u.type,stroke:u.stroke,length:u.length};break;case 75:this.$=o[a-1];break;case 77:case 91:case 139:this.$=o[a-1]+""+o[a];break;case 92:case 93:this.$=o[a-4],r.addClass(o[a-2],o[a]);break;case 94:this.$=o[a-4],r.setClass(o[a-2],o[a]);break;case 95:this.$=o[a-4],r.setClickEvent(o[a-2],o[a],void 0);break;case 96:this.$=o[a-6],r.setClickEvent(o[a-4],o[a-2],o[a]);break;case 97:this.$=o[a-4],r.setLink(o[a-2],o[a],void 0,void 0);break;case 98:this.$=o[a-6],r.setLink(o[a-4],o[a-2],o[a],void 0);break;case 99:this.$=o[a-6],r.setLink(o[a-4],o[a-2],void 0,o[a]);break;case 100:this.$=o[a-8],r.setLink(o[a-6],o[a-4],o[a-2],o[a]);break;case 101:this.$=o[a-4],r.addVertex(o[a-2],void 0,void 0,o[a]);break;case 102:case 104:this.$=o[a-4],r.updateLink(o[a-2],o[a]);break;case 103:this.$=o[a-4],r.updateLink([o[a-2]],o[a]);break;case 105:this.$=o[a-8],r.updateLinkInterpolate([o[a-6]],o[a-2]),r.updateLink([o[a-6]],o[a]);break;case 106:this.$=o[a-8],r.updateLinkInterpolate(o[a-6],o[a-2]),r.updateLink(o[a-6],o[a]);break;case 107:this.$=o[a-6],r.updateLinkInterpolate([o[a-4]],o[a]);break;case 108:this.$=o[a-6],r.updateLinkInterpolate(o[a-4],o[a]);break;case 109:case 111:this.$=[o[a]];break;case 110:case 112:o[a-2].push(o[a]),this.$=o[a-2];break;case 114:this.$=o[a-1]+o[a];break;case 136:this.$=o[a];break;case 137:this.$=o[a-1]+""+o[a];break;case 142:this.$="v";break;case 143:this.$="-"}},table:[{3:1,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:t,16:4,21:n,22:r,24:i},e(o,s,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{8:55,10:[1,56],15:O},e([10,15],[2,6]),e(o,[2,17]),e(o,[2,18]),e(o,[2,19]),{20:[1,59],21:[1,60],22:A,27:58,30:61},e(I,[2,11]),e(I,[2,12]),e(I,[2,13]),e(I,[2,14]),e(I,[2,15]),e(I,[2,16]),{9:63,20:P,21:R,23:F,43:64,66:68,69:[1,69],70:[1,70]},{9:71,20:P,21:R,23:F},{9:72,20:P,21:R,23:F},{9:73,20:P,21:R,23:F},{9:74,20:P,21:R,23:F},{9:75,20:P,21:R,23:F},{9:77,20:P,21:R,22:[1,76],23:F},e(Y,[2,50],{30:78,22:A}),{22:[1,79]},{22:[1,80]},{22:[1,81]},{22:[1,82]},{22:[1,83]},e(j,[2,51],{47:[1,84]}),e(B,[2,68],{104:95,40:[1,85],46:h,49:[1,86],51:[1,87],53:[1,88],55:[1,89],57:[1,90],59:[1,91],61:[1,92],62:[1,93],64:[1,94],80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,106:k,107:M,108:D,109:E,110:T,111:N}),e(W,[2,136]),e(W,[2,157]),e(W,[2,158]),e(W,[2,159]),e(W,[2,160]),e(W,[2,161]),e(W,[2,162]),e(W,[2,163]),e(W,[2,164]),e(W,[2,165]),e(W,[2,166]),e(W,[2,167]),e(W,[2,168]),e(W,[2,169]),e(W,[2,170]),e(W,[2,171]),{9:96,20:P,21:R,23:F},{11:97,14:[1,98]},e(H,[2,8]),e(o,[2,20]),e(o,[2,26]),e(o,[2,27]),{21:[1,99]},e(V,[2,34],{30:100,22:A}),e(I,[2,35]),{44:101,45:37,46:h,48:38,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},e(z,[2,44]),e(z,[2,45]),e(z,[2,46]),e(U,[2,72],{67:102,68:[1,103],71:[1,104]}),{22:q,24:K,26:G,38:$,39:105,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e([46,68,71,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,74]),e(I,[2,36]),e(I,[2,37]),e(I,[2,38]),e(I,[2,39]),e(I,[2,40]),{22:q,24:K,26:G,38:$,39:142,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(xe,s,{17:143}),e(Y,[2,49],{46:Le}),{26:ke,46:X,80:Me,86:145,88:[1,146],91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{84:[1,152],89:153,91:[1,154]},{26:ke,46:X,80:Me,84:[1,155],86:156,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:157,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:158,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{46:h,48:159,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:q,24:K,26:G,38:$,39:160,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:162,42:Z,46:X,49:[1,161],61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:163,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:164,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:165,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:166,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:167,42:Z,46:X,59:[1,168],61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:169,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:170,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:171,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(W,[2,137]),e(Ee,[2,3]),{8:172,15:O},{15:[2,7]},e(o,[2,28]),e(V,[2,33]),e(Y,[2,47],{30:173,22:A}),e(U,[2,69],{22:[1,174]}),{22:[1,175]},{22:q,24:K,26:G,38:$,39:176,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,69:Q,70:[1,177],72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(Te,[2,76]),e(Te,[2,78]),e(Te,[2,126]),e(Te,[2,127]),e(Te,[2,128]),e(Te,[2,129]),e(Te,[2,130]),e(Te,[2,131]),e(Te,[2,132]),e(Te,[2,133]),e(Te,[2,134]),e(Te,[2,135]),e(Te,[2,144]),e(Te,[2,145]),e(Te,[2,146]),e(Te,[2,147]),e(Te,[2,148]),e(Te,[2,149]),e(Te,[2,150]),e(Te,[2,151]),e(Te,[2,152]),e(Te,[2,153]),e(Te,[2,154]),e(Te,[2,155]),e(Te,[2,156]),e(Te,[2,79]),e(Te,[2,80]),e(Te,[2,81]),e(Te,[2,82]),e(Te,[2,83]),e(Te,[2,84]),e(Te,[2,85]),e(Te,[2,86]),e(Te,[2,87]),e(Te,[2,88]),e(Te,[2,89]),{9:180,20:P,21:R,22:q,23:F,24:K,26:G,38:$,40:[1,179],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,181],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:A,30:182},{22:[1,183],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,185]},e(Ne,[2,138]),e(Ne,[2,140]),e(Ne,[2,141]),e(Ne,[2,142]),e(Ne,[2,143]),{22:[1,186]},{22:[1,187],92:[1,188]},e(Oe,[2,109]),{22:[1,189]},{22:[1,190],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,191],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:[1,192],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:184,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(j,[2,53],{104:95,46:h,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,106:k,107:M,108:D,109:E,110:T,111:N}),{22:q,24:K,26:G,38:$,41:[1,193],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:194,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,50:[1,195],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,52:[1,196],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,54:[1,197],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,56:[1,198],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,58:[1,199],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,60:[1,200],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,39:201,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,41:[1,202],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,63:[1,203],65:[1,204],69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,63:[1,206],65:[1,205],69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{9:207,20:P,21:R,23:F},e(Y,[2,48],{46:Le}),e(U,[2,71]),e(U,[2,70]),{22:q,24:K,26:G,38:$,42:Z,46:X,61:J,69:Q,71:[1,208],72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(U,[2,73]),e(Te,[2,77]),{22:q,24:K,26:G,38:$,39:209,42:Z,46:X,61:J,69:Q,72:106,73:ee,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(xe,s,{17:210}),e(I,[2,43]),{45:211,46:h,48:38,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:Ae,75:Ie,85:212,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},e(Ne,[2,139]),{22:Ae,75:Ie,85:226,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:227,88:Pe,90:[1,228],91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:229,88:Pe,90:[1,230],91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{91:[1,231]},{22:Ae,75:Ie,85:232,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:233,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{26:ke,46:X,80:Me,86:234,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,73:[1,236],80:Me,86:235,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,54]),{22:q,24:K,26:G,38:$,42:Z,46:X,50:[1,237],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,60]),e(B,[2,56]),e(B,[2,57]),e(B,[2,58]),e(B,[2,59]),e(B,[2,61]),{22:q,24:K,26:G,38:$,42:Z,46:X,60:[1,238],61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},e(B,[2,63]),e(B,[2,64]),e(B,[2,66]),e(B,[2,65]),e(B,[2,67]),e(Ee,[2,4]),e([22,46,80,91,92,95,96,97,99,100,106,107,108,109,110,111],[2,75]),{22:q,24:K,26:G,38:$,41:[1,239],42:Z,46:X,61:J,69:Q,72:178,74:117,75:te,76:ne,77:re,78:ie,79:oe,80:se,81:ae,83:108,84:ue,91:le,92:ce,95:de,96:he,97:fe,99:pe,100:ge,101:me,102:_e,103:114,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,240],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},e(j,[2,52]),e(H,[2,101],{92:ze}),e(Ue,[2,111],{94:242,22:Ae,75:Ie,88:Pe,91:Re,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve}),e(qe,[2,113]),e(qe,[2,115]),e(qe,[2,116]),e(qe,[2,117]),e(qe,[2,118]),e(qe,[2,119]),e(qe,[2,120]),e(qe,[2,121]),e(qe,[2,122]),e(qe,[2,123]),e(qe,[2,124]),e(qe,[2,125]),e(H,[2,102],{92:ze}),e(H,[2,103],{92:ze}),{22:[1,243]},e(H,[2,104],{92:ze}),{22:[1,244]},e(Oe,[2,110]),e(H,[2,92],{92:ze}),e(H,[2,93],{92:ze}),e(H,[2,94],{103:149,105:184,26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,95],{103:149,105:184,22:[1,245],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,97],{22:[1,246]}),{50:[1,247]},{60:[1,248]},{9:249,20:P,21:R,23:F},e(I,[2,42]),{22:Ae,75:Ie,88:Pe,91:Re,93:250,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},e(qe,[2,114]),{26:ke,46:X,80:Me,86:251,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{26:ke,46:X,80:Me,86:252,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,103:149,105:147,106:ye,107:ve,108:be,109:we,110:Ce,111:Se},{73:[1,253]},{73:[1,254],87:[1,255]},e(B,[2,55]),e(B,[2,62]),e(xe,s,{17:256}),e(Ue,[2,112],{94:242,22:Ae,75:Ie,88:Pe,91:Re,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve}),e(H,[2,107],{103:149,105:184,22:[1,257],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,108],{103:149,105:184,22:[1,258],26:ke,46:X,80:Me,91:le,92:ce,95:de,96:he,97:De,99:pe,100:ge,106:ye,107:ve,108:be,109:we,110:Ce,111:Se}),e(H,[2,96]),e(H,[2,98],{22:[1,259]}),e(H,[2,99]),{18:18,19:19,20:a,21:u,22:l,23:c,32:24,33:25,34:26,35:27,36:28,37:29,38:d,42:[1,260],44:31,45:37,46:h,48:38,75:f,76:p,77:g,78:m,79:_,80:y,91:v,92:b,95:w,96:C,97:S,99:x,100:L,104:39,106:k,107:M,108:D,109:E,110:T,111:N},{22:Ae,75:Ie,85:261,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{22:Ae,75:Ie,85:262,88:Pe,91:Re,93:213,94:214,95:Fe,96:Ye,97:je,98:Be,99:We,100:He,101:Ve},{87:[1,263]},e(I,[2,41]),e(H,[2,105],{92:ze}),e(H,[2,106],{92:ze}),e(H,[2,100])],defaultActions:{2:[2,1],9:[2,5],10:[2,2],98:[2,7]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},Ge={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),12;case 1:return this.begin("type_directive"),13;case 2:return this.popState(),this.begin("arg_directive"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:this.begin("string");break;case 8:this.popState();break;case 9:return"STR";case 10:return 75;case 11:return 84;case 12:return 76;case 13:return 90;case 14:return 77;case 15:return 78;case 16:return 79;case 17:case 18:return e.lex.firstGraph()&&this.begin("dir"),24;case 19:return 38;case 20:return 42;case 21:case 22:case 23:case 24:return 87;case 25:return this.popState(),25;case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:return this.popState(),26;case 36:return 91;case 37:return 99;case 38:return 47;case 39:return 96;case 40:return 46;case 41:return 20;case 42:return 92;case 43:return 110;case 44:case 45:case 46:return 70;case 47:case 48:case 49:return 69;case 50:return 51;case 51:return 52;case 52:return 53;case 53:return 54;case 54:return 55;case 55:return 56;case 56:return 57;case 57:return 58;case 58:return 97;case 59:return 100;case 60:return 111;case 61:return 108;case 62:return 101;case 63:case 64:return 109;case 65:return 102;case 66:return 61;case 67:return 81;case 68:return"SEP";case 69:return 80;case 70:return 95;case 71:return 63;case 72:return 62;case 73:return 65;case 74:return 64;case 75:return 106;case 76:return 107;case 77:return 71;case 78:return 49;case 79:return 50;case 80:return 40;case 81:return 41;case 82:return 59;case 83:return 60;case 84:return 117;case 85:return 21;case 86:return 22;case 87:return 23}},rules:[/^(?:%%\{)/,/^(?:((?:(?!\}%%)[^:.])*))/,/^(?::)/,/^(?:\}%%)/,/^(?:((?:(?!\}%%).|\n)*))/,/^(?:%%(?!\{)[^\n]*)/,/^(?:[^\}]%%[^\n]*)/,/^(?:["])/,/^(?:["])/,/^(?:[^"]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:interpolate\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:flowchart\b)/,/^(?:subgraph\b)/,/^(?:end\b\s*)/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:(\r?\n)*\s*\n)/,/^(?:\s*LR\b)/,/^(?:\s*RL\b)/,/^(?:\s*TB\b)/,/^(?:\s*BT\b)/,/^(?:\s*TD\b)/,/^(?:\s*BR\b)/,/^(?:\s*<)/,/^(?:\s*>)/,/^(?:\s*\^)/,/^(?:\s*v\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\s*[xo<]?--+[-xo>]\s*)/,/^(?:\s*[xo<]?==+[=xo>]\s*)/,/^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,/^(?:\s*[xo<]?--\s*)/,/^(?:\s*[xo<]?==\s*)/,/^(?:\s*[xo<]?-\.\s*)/,/^(?:\(-)/,/^(?:-\))/,/^(?:\(\[)/,/^(?:\]\))/,/^(?:\[\[)/,/^(?:\]\])/,/^(?:\[\()/,/^(?:\)\])/,/^(?:-)/,/^(?:\.)/,/^(?:[\_])/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:\\\|)/,/^(?:v\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\])/,/^(?:\[\/)/,/^(?:\/\])/,/^(?:\[\\)/,/^(?:[!"#$%&'*+,-.`?\\_/])/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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-\u0C33\u0C35-\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\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\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-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\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])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:(\r?\n)+)/,/^(?:\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[25,26,27,28,29,30,31,32,33,34,35],inclusive:!1},string:{rules:[8,9],inclusive:!1},INITIAL:{rules:[0,5,6,7,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87],inclusive:!0}}};function $e(){this.yy={}}return Ke.lexer=Ge,$e.prototype=Ke,Ke.Parser=$e,new $e}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/flowchart/styles.js": -/*!******************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 9], + n = [1, 7], + r = [1, 6], + i = [1, 8], + o = [ + 1, + 20, + 21, + 22, + 23, + 38, + 46, + 75, + 76, + 77, + 78, + 79, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + s = [2, 10], + a = [1, 20], + u = [1, 21], + l = [1, 22], + c = [1, 23], + d = [1, 30], + h = [1, 54], + f = [1, 32], + p = [1, 33], + g = [1, 34], + m = [1, 35], + _ = [1, 36], + y = [1, 48], + v = [1, 43], + b = [1, 45], + w = [1, 40], + C = [1, 44], + S = [1, 47], + x = [1, 51], + L = [1, 52], + k = [1, 53], + M = [1, 42], + D = [1, 46], + E = [1, 49], + T = [1, 50], + N = [1, 41], + O = [1, 57], + A = [1, 62], + I = [ + 1, + 20, + 21, + 22, + 23, + 38, + 42, + 46, + 75, + 76, + 77, + 78, + 79, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + P = [1, 66], + R = [1, 65], + F = [1, 67], + Y = [20, 21, 23, 69, 70], + j = [20, 21, 22, 23, 69, 70], + B = [20, 21, 22, 23, 47, 69, 70], + W = [ + 20, + 21, + 22, + 23, + 40, + 46, + 47, + 49, + 51, + 53, + 55, + 57, + 59, + 61, + 62, + 64, + 69, + 70, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + H = [20, 21, 23], + V = [ + 20, + 21, + 23, + 46, + 69, + 70, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + z = [ + 1, + 12, + 20, + 21, + 22, + 23, + 24, + 38, + 42, + 46, + 75, + 76, + 77, + 78, + 79, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + U = [ + 46, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + q = [1, 115], + K = [1, 136], + G = [1, 137], + $ = [1, 138], + Z = [1, 139], + X = [1, 119], + J = [1, 110], + Q = [1, 111], + ee = [1, 107], + te = [1, 131], + ne = [1, 132], + re = [1, 133], + ie = [1, 134], + oe = [1, 135], + se = [1, 140], + ae = [1, 141], + ue = [1, 113], + le = [1, 121], + ce = [1, 124], + de = [1, 122], + he = [1, 123], + fe = [1, 116], + pe = [1, 129], + ge = [1, 128], + me = [1, 112], + _e = [1, 109], + ye = [1, 118], + ve = [1, 120], + be = [1, 125], + we = [1, 126], + Ce = [1, 127], + Se = [1, 130], + xe = [ + 20, + 21, + 22, + 23, + 38, + 42, + 46, + 75, + 76, + 77, + 78, + 79, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + Le = [1, 144], + ke = [1, 148], + Me = [1, 150], + De = [1, 151], + Ee = [12, 21, 22, 24], + Te = [ + 20, + 21, + 22, + 23, + 24, + 26, + 38, + 40, + 41, + 42, + 46, + 50, + 52, + 54, + 56, + 58, + 60, + 61, + 63, + 65, + 69, + 70, + 71, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 84, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 101, + 102, + 106, + 107, + 108, + 109, + 110, + 111, + ], + Ne = [ + 20, + 21, + 22, + 23, + 26, + 46, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + Oe = [22, 92], + Ae = [1, 220], + Ie = [1, 224], + Pe = [1, 221], + Re = [1, 218], + Fe = [1, 215], + Ye = [1, 216], + je = [1, 217], + Be = [1, 219], + We = [1, 222], + He = [1, 223], + Ve = [1, 225], + ze = [1, 241], + Ue = [20, 21, 23, 92], + qe = [ + 20, + 21, + 22, + 23, + 75, + 88, + 91, + 92, + 95, + 96, + 97, + 98, + 99, + 100, + 101, + ], + Ke = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + mermaidDoc: 4, + directive: 5, + openDirective: 6, + typeDirective: 7, + closeDirective: 8, + separator: 9, + ':': 10, + argDirective: 11, + open_directive: 12, + type_directive: 13, + arg_directive: 14, + close_directive: 15, + graphConfig: 16, + document: 17, + line: 18, + statement: 19, + SEMI: 20, + NEWLINE: 21, + SPACE: 22, + EOF: 23, + GRAPH: 24, + NODIR: 25, + DIR: 26, + FirstStmtSeperator: 27, + ending: 28, + endToken: 29, + spaceList: 30, + spaceListNewline: 31, + verticeStatement: 32, + styleStatement: 33, + linkStyleStatement: 34, + classDefStatement: 35, + classStatement: 36, + clickStatement: 37, + subgraph: 38, + text: 39, + SQS: 40, + SQE: 41, + end: 42, + link: 43, + node: 44, + vertex: 45, + AMP: 46, + STYLE_SEPARATOR: 47, + idString: 48, + PS: 49, + PE: 50, + '(-': 51, + '-)': 52, + STADIUMSTART: 53, + STADIUMEND: 54, + SUBROUTINESTART: 55, + SUBROUTINEEND: 56, + CYLINDERSTART: 57, + CYLINDEREND: 58, + DIAMOND_START: 59, + DIAMOND_STOP: 60, + TAGEND: 61, + TRAPSTART: 62, + TRAPEND: 63, + INVTRAPSTART: 64, + INVTRAPEND: 65, + linkStatement: 66, + arrowText: 67, + TESTSTR: 68, + START_LINK: 69, + LINK: 70, + PIPE: 71, + textToken: 72, + STR: 73, + keywords: 74, + STYLE: 75, + LINKSTYLE: 76, + CLASSDEF: 77, + CLASS: 78, + CLICK: 79, + DOWN: 80, + UP: 81, + textNoTags: 82, + textNoTagsToken: 83, + DEFAULT: 84, + stylesOpt: 85, + alphaNum: 86, + LINK_TARGET: 87, + HEX: 88, + numList: 89, + INTERPOLATE: 90, + NUM: 91, + COMMA: 92, + style: 93, + styleComponent: 94, + ALPHA: 95, + COLON: 96, + MINUS: 97, + UNIT: 98, + BRKT: 99, + DOT: 100, + PCT: 101, + TAGSTART: 102, + alphaNumToken: 103, + idStringToken: 104, + alphaNumStatement: 105, + PUNCTUATION: 106, + UNICODE_TEXT: 107, + PLUS: 108, + EQUALS: 109, + MULT: 110, + UNDERSCORE: 111, + graphCodeTokens: 112, + ARROW_CROSS: 113, + ARROW_POINT: 114, + ARROW_CIRCLE: 115, + ARROW_OPEN: 116, + QUOTE: 117, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 10: ':', + 12: 'open_directive', + 13: 'type_directive', + 14: 'arg_directive', + 15: 'close_directive', + 20: 'SEMI', + 21: 'NEWLINE', + 22: 'SPACE', + 23: 'EOF', + 24: 'GRAPH', + 25: 'NODIR', + 26: 'DIR', + 38: 'subgraph', + 40: 'SQS', + 41: 'SQE', + 42: 'end', + 46: 'AMP', + 47: 'STYLE_SEPARATOR', + 49: 'PS', + 50: 'PE', + 51: '(-', + 52: '-)', + 53: 'STADIUMSTART', + 54: 'STADIUMEND', + 55: 'SUBROUTINESTART', + 56: 'SUBROUTINEEND', + 57: 'CYLINDERSTART', + 58: 'CYLINDEREND', + 59: 'DIAMOND_START', + 60: 'DIAMOND_STOP', + 61: 'TAGEND', + 62: 'TRAPSTART', + 63: 'TRAPEND', + 64: 'INVTRAPSTART', + 65: 'INVTRAPEND', + 68: 'TESTSTR', + 69: 'START_LINK', + 70: 'LINK', + 71: 'PIPE', + 73: 'STR', + 75: 'STYLE', + 76: 'LINKSTYLE', + 77: 'CLASSDEF', + 78: 'CLASS', + 79: 'CLICK', + 80: 'DOWN', + 81: 'UP', + 84: 'DEFAULT', + 87: 'LINK_TARGET', + 88: 'HEX', + 90: 'INTERPOLATE', + 91: 'NUM', + 92: 'COMMA', + 95: 'ALPHA', + 96: 'COLON', + 97: 'MINUS', + 98: 'UNIT', + 99: 'BRKT', + 100: 'DOT', + 101: 'PCT', + 102: 'TAGSTART', + 106: 'PUNCTUATION', + 107: 'UNICODE_TEXT', + 108: 'PLUS', + 109: 'EQUALS', + 110: 'MULT', + 111: 'UNDERSCORE', + 113: 'ARROW_CROSS', + 114: 'ARROW_POINT', + 115: 'ARROW_CIRCLE', + 116: 'ARROW_OPEN', + 117: 'QUOTE', + }, + productions_: [ + 0, + [3, 1], + [3, 2], + [5, 4], + [5, 6], + [6, 1], + [7, 1], + [11, 1], + [8, 1], + [4, 2], + [17, 0], + [17, 2], + [18, 1], + [18, 1], + [18, 1], + [18, 1], + [18, 1], + [16, 2], + [16, 2], + [16, 2], + [16, 3], + [28, 2], + [28, 1], + [29, 1], + [29, 1], + [29, 1], + [27, 1], + [27, 1], + [27, 2], + [31, 2], + [31, 2], + [31, 1], + [31, 1], + [30, 2], + [30, 1], + [19, 2], + [19, 2], + [19, 2], + [19, 2], + [19, 2], + [19, 2], + [19, 9], + [19, 6], + [19, 4], + [9, 1], + [9, 1], + [9, 1], + [32, 3], + [32, 4], + [32, 2], + [32, 1], + [44, 1], + [44, 5], + [44, 3], + [45, 4], + [45, 6], + [45, 4], + [45, 4], + [45, 4], + [45, 4], + [45, 4], + [45, 4], + [45, 6], + [45, 4], + [45, 4], + [45, 4], + [45, 4], + [45, 4], + [45, 1], + [43, 2], + [43, 3], + [43, 3], + [43, 1], + [43, 3], + [66, 1], + [67, 3], + [39, 1], + [39, 2], + [39, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [74, 1], + [82, 1], + [82, 2], + [35, 5], + [35, 5], + [36, 5], + [37, 5], + [37, 7], + [37, 5], + [37, 7], + [37, 7], + [37, 9], + [33, 5], + [33, 5], + [34, 5], + [34, 5], + [34, 9], + [34, 9], + [34, 7], + [34, 7], + [89, 1], + [89, 3], + [85, 1], + [85, 3], + [93, 1], + [93, 2], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [94, 1], + [72, 1], + [72, 1], + [72, 1], + [72, 1], + [72, 1], + [72, 1], + [83, 1], + [83, 1], + [83, 1], + [83, 1], + [48, 1], + [48, 2], + [86, 1], + [86, 2], + [105, 1], + [105, 1], + [105, 1], + [105, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [103, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [104, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + [112, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 5: + r.parseDirective('%%{', 'open_directive'); + break; + case 6: + r.parseDirective(o[a], 'type_directive'); + break; + case 7: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 8: + r.parseDirective( + '}%%', + 'close_directive', + 'flowchart' + ); + break; + case 10: + this.$ = []; + break; + case 11: + o[a] !== [] && o[a - 1].push(o[a]), + (this.$ = o[a - 1]); + break; + case 12: + case 76: + case 78: + case 90: + case 138: + case 140: + case 141: + this.$ = o[a]; + break; + case 19: + r.setDirection('TB'), (this.$ = 'TB'); + break; + case 20: + r.setDirection(o[a - 1]), (this.$ = o[a - 1]); + break; + case 35: + this.$ = o[a - 1].nodes; + break; + case 36: + case 37: + case 38: + case 39: + case 40: + this.$ = []; + break; + case 41: + this.$ = r.addSubGraph( + o[a - 6], + o[a - 1], + o[a - 4] + ); + break; + case 42: + this.$ = r.addSubGraph( + o[a - 3], + o[a - 1], + o[a - 3] + ); + break; + case 43: + this.$ = r.addSubGraph(void 0, o[a - 1], void 0); + break; + case 47: + r.addLink(o[a - 2].stmt, o[a], o[a - 1]), + (this.$ = { + stmt: o[a], + nodes: o[a].concat(o[a - 2].nodes), + }); + break; + case 48: + r.addLink(o[a - 3].stmt, o[a - 1], o[a - 2]), + (this.$ = { + stmt: o[a - 1], + nodes: o[a - 1].concat(o[a - 3].nodes), + }); + break; + case 49: + this.$ = { stmt: o[a - 1], nodes: o[a - 1] }; + break; + case 50: + this.$ = { stmt: o[a], nodes: o[a] }; + break; + case 51: + this.$ = [o[a]]; + break; + case 52: + this.$ = o[a - 4].concat(o[a]); + break; + case 53: + (this.$ = [o[a - 2]]), r.setClass(o[a - 2], o[a]); + break; + case 54: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'square'); + break; + case 55: + (this.$ = o[a - 5]), + r.addVertex(o[a - 5], o[a - 2], 'circle'); + break; + case 56: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'ellipse'); + break; + case 57: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'stadium'); + break; + case 58: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'subroutine'); + break; + case 59: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'cylinder'); + break; + case 60: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'round'); + break; + case 61: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'diamond'); + break; + case 62: + (this.$ = o[a - 5]), + r.addVertex(o[a - 5], o[a - 2], 'hexagon'); + break; + case 63: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'odd'); + break; + case 64: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'trapezoid'); + break; + case 65: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'inv_trapezoid'); + break; + case 66: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'lean_right'); + break; + case 67: + (this.$ = o[a - 3]), + r.addVertex(o[a - 3], o[a - 1], 'lean_left'); + break; + case 68: + (this.$ = o[a]), r.addVertex(o[a]); + break; + case 69: + (o[a - 1].text = o[a]), (this.$ = o[a - 1]); + break; + case 70: + case 71: + (o[a - 2].text = o[a - 1]), (this.$ = o[a - 2]); + break; + case 72: + this.$ = o[a]; + break; + case 73: + var u = r.destructLink(o[a], o[a - 2]); + this.$ = { + type: u.type, + stroke: u.stroke, + length: u.length, + text: o[a - 1], + }; + break; + case 74: + (u = r.destructLink(o[a])), + (this.$ = { + type: u.type, + stroke: u.stroke, + length: u.length, + }); + break; + case 75: + this.$ = o[a - 1]; + break; + case 77: + case 91: + case 139: + this.$ = o[a - 1] + '' + o[a]; + break; + case 92: + case 93: + (this.$ = o[a - 4]), r.addClass(o[a - 2], o[a]); + break; + case 94: + (this.$ = o[a - 4]), r.setClass(o[a - 2], o[a]); + break; + case 95: + (this.$ = o[a - 4]), + r.setClickEvent(o[a - 2], o[a], void 0); + break; + case 96: + (this.$ = o[a - 6]), + r.setClickEvent(o[a - 4], o[a - 2], o[a]); + break; + case 97: + (this.$ = o[a - 4]), + r.setLink(o[a - 2], o[a], void 0, void 0); + break; + case 98: + (this.$ = o[a - 6]), + r.setLink(o[a - 4], o[a - 2], o[a], void 0); + break; + case 99: + (this.$ = o[a - 6]), + r.setLink(o[a - 4], o[a - 2], void 0, o[a]); + break; + case 100: + (this.$ = o[a - 8]), + r.setLink(o[a - 6], o[a - 4], o[a - 2], o[a]); + break; + case 101: + (this.$ = o[a - 4]), + r.addVertex(o[a - 2], void 0, void 0, o[a]); + break; + case 102: + case 104: + (this.$ = o[a - 4]), r.updateLink(o[a - 2], o[a]); + break; + case 103: + (this.$ = o[a - 4]), r.updateLink([o[a - 2]], o[a]); + break; + case 105: + (this.$ = o[a - 8]), + r.updateLinkInterpolate([o[a - 6]], o[a - 2]), + r.updateLink([o[a - 6]], o[a]); + break; + case 106: + (this.$ = o[a - 8]), + r.updateLinkInterpolate(o[a - 6], o[a - 2]), + r.updateLink(o[a - 6], o[a]); + break; + case 107: + (this.$ = o[a - 6]), + r.updateLinkInterpolate([o[a - 4]], o[a]); + break; + case 108: + (this.$ = o[a - 6]), + r.updateLinkInterpolate(o[a - 4], o[a]); + break; + case 109: + case 111: + this.$ = [o[a]]; + break; + case 110: + case 112: + o[a - 2].push(o[a]), (this.$ = o[a - 2]); + break; + case 114: + this.$ = o[a - 1] + o[a]; + break; + case 136: + this.$ = o[a]; + break; + case 137: + this.$ = o[a - 1] + '' + o[a]; + break; + case 142: + this.$ = 'v'; + break; + case 143: + this.$ = '-'; + } + }, + table: [ + { + 3: 1, + 4: 2, + 5: 3, + 6: 5, + 12: t, + 16: 4, + 21: n, + 22: r, + 24: i, + }, + { 1: [3] }, + { 1: [2, 1] }, + { + 3: 10, + 4: 2, + 5: 3, + 6: 5, + 12: t, + 16: 4, + 21: n, + 22: r, + 24: i, + }, + e(o, s, { 17: 11 }), + { 7: 12, 13: [1, 13] }, + { 16: 14, 21: n, 22: r, 24: i }, + { 16: 15, 21: n, 22: r, 24: i }, + { 25: [1, 16], 26: [1, 17] }, + { 13: [2, 5] }, + { 1: [2, 2] }, + { + 1: [2, 9], + 18: 18, + 19: 19, + 20: a, + 21: u, + 22: l, + 23: c, + 32: 24, + 33: 25, + 34: 26, + 35: 27, + 36: 28, + 37: 29, + 38: d, + 44: 31, + 45: 37, + 46: h, + 48: 38, + 75: f, + 76: p, + 77: g, + 78: m, + 79: _, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + { 8: 55, 10: [1, 56], 15: O }, + e([10, 15], [2, 6]), + e(o, [2, 17]), + e(o, [2, 18]), + e(o, [2, 19]), + { 20: [1, 59], 21: [1, 60], 22: A, 27: 58, 30: 61 }, + e(I, [2, 11]), + e(I, [2, 12]), + e(I, [2, 13]), + e(I, [2, 14]), + e(I, [2, 15]), + e(I, [2, 16]), + { + 9: 63, + 20: P, + 21: R, + 23: F, + 43: 64, + 66: 68, + 69: [1, 69], + 70: [1, 70], + }, + { 9: 71, 20: P, 21: R, 23: F }, + { 9: 72, 20: P, 21: R, 23: F }, + { 9: 73, 20: P, 21: R, 23: F }, + { 9: 74, 20: P, 21: R, 23: F }, + { 9: 75, 20: P, 21: R, 23: F }, + { 9: 77, 20: P, 21: R, 22: [1, 76], 23: F }, + e(Y, [2, 50], { 30: 78, 22: A }), + { 22: [1, 79] }, + { 22: [1, 80] }, + { 22: [1, 81] }, + { 22: [1, 82] }, + { 22: [1, 83] }, + e(j, [2, 51], { 47: [1, 84] }), + e(B, [2, 68], { + 104: 95, + 40: [1, 85], + 46: h, + 49: [1, 86], + 51: [1, 87], + 53: [1, 88], + 55: [1, 89], + 57: [1, 90], + 59: [1, 91], + 61: [1, 92], + 62: [1, 93], + 64: [1, 94], + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }), + e(W, [2, 136]), + e(W, [2, 157]), + e(W, [2, 158]), + e(W, [2, 159]), + e(W, [2, 160]), + e(W, [2, 161]), + e(W, [2, 162]), + e(W, [2, 163]), + e(W, [2, 164]), + e(W, [2, 165]), + e(W, [2, 166]), + e(W, [2, 167]), + e(W, [2, 168]), + e(W, [2, 169]), + e(W, [2, 170]), + e(W, [2, 171]), + { 9: 96, 20: P, 21: R, 23: F }, + { 11: 97, 14: [1, 98] }, + e(H, [2, 8]), + e(o, [2, 20]), + e(o, [2, 26]), + e(o, [2, 27]), + { 21: [1, 99] }, + e(V, [2, 34], { 30: 100, 22: A }), + e(I, [2, 35]), + { + 44: 101, + 45: 37, + 46: h, + 48: 38, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + e(z, [2, 44]), + e(z, [2, 45]), + e(z, [2, 46]), + e(U, [2, 72], { 67: 102, 68: [1, 103], 71: [1, 104] }), + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 105, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e( + [ + 46, + 68, + 71, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + [2, 74] + ), + e(I, [2, 36]), + e(I, [2, 37]), + e(I, [2, 38]), + e(I, [2, 39]), + e(I, [2, 40]), + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 142, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(xe, s, { 17: 143 }), + e(Y, [2, 49], { 46: Le }), + { + 26: ke, + 46: X, + 80: Me, + 86: 145, + 88: [1, 146], + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { 84: [1, 152], 89: 153, 91: [1, 154] }, + { + 26: ke, + 46: X, + 80: Me, + 84: [1, 155], + 86: 156, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 26: ke, + 46: X, + 80: Me, + 86: 157, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 26: ke, + 46: X, + 80: Me, + 86: 158, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 46: h, + 48: 159, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 160, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 162, + 42: Z, + 46: X, + 49: [1, 161], + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 163, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 164, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 165, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 166, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 167, + 42: Z, + 46: X, + 59: [1, 168], + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 169, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 170, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 171, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(W, [2, 137]), + e(Ee, [2, 3]), + { 8: 172, 15: O }, + { 15: [2, 7] }, + e(o, [2, 28]), + e(V, [2, 33]), + e(Y, [2, 47], { 30: 173, 22: A }), + e(U, [2, 69], { 22: [1, 174] }), + { 22: [1, 175] }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 176, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 61: J, + 69: Q, + 70: [1, 177], + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(Te, [2, 76]), + e(Te, [2, 78]), + e(Te, [2, 126]), + e(Te, [2, 127]), + e(Te, [2, 128]), + e(Te, [2, 129]), + e(Te, [2, 130]), + e(Te, [2, 131]), + e(Te, [2, 132]), + e(Te, [2, 133]), + e(Te, [2, 134]), + e(Te, [2, 135]), + e(Te, [2, 144]), + e(Te, [2, 145]), + e(Te, [2, 146]), + e(Te, [2, 147]), + e(Te, [2, 148]), + e(Te, [2, 149]), + e(Te, [2, 150]), + e(Te, [2, 151]), + e(Te, [2, 152]), + e(Te, [2, 153]), + e(Te, [2, 154]), + e(Te, [2, 155]), + e(Te, [2, 156]), + e(Te, [2, 79]), + e(Te, [2, 80]), + e(Te, [2, 81]), + e(Te, [2, 82]), + e(Te, [2, 83]), + e(Te, [2, 84]), + e(Te, [2, 85]), + e(Te, [2, 86]), + e(Te, [2, 87]), + e(Te, [2, 88]), + e(Te, [2, 89]), + { + 9: 180, + 20: P, + 21: R, + 22: q, + 23: F, + 24: K, + 26: G, + 38: $, + 40: [1, 179], + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 18: 18, + 19: 19, + 20: a, + 21: u, + 22: l, + 23: c, + 32: 24, + 33: 25, + 34: 26, + 35: 27, + 36: 28, + 37: 29, + 38: d, + 42: [1, 181], + 44: 31, + 45: 37, + 46: h, + 48: 38, + 75: f, + 76: p, + 77: g, + 78: m, + 79: _, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + { 22: A, 30: 182 }, + { + 22: [1, 183], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 184, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { 22: [1, 185] }, + e(Ne, [2, 138]), + e(Ne, [2, 140]), + e(Ne, [2, 141]), + e(Ne, [2, 142]), + e(Ne, [2, 143]), + { 22: [1, 186] }, + { 22: [1, 187], 92: [1, 188] }, + e(Oe, [2, 109]), + { 22: [1, 189] }, + { + 22: [1, 190], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 184, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: [1, 191], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 184, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: [1, 192], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 184, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(j, [2, 53], { + 104: 95, + 46: h, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }), + { + 22: q, + 24: K, + 26: G, + 38: $, + 41: [1, 193], + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 194, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 50: [1, 195], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 52: [1, 196], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 54: [1, 197], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 56: [1, 198], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 58: [1, 199], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 60: [1, 200], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 201, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 41: [1, 202], + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 61: J, + 63: [1, 203], + 65: [1, 204], + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 61: J, + 63: [1, 206], + 65: [1, 205], + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { 9: 207, 20: P, 21: R, 23: F }, + e(Y, [2, 48], { 46: Le }), + e(U, [2, 71]), + e(U, [2, 70]), + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 61: J, + 69: Q, + 71: [1, 208], + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(U, [2, 73]), + e(Te, [2, 77]), + { + 22: q, + 24: K, + 26: G, + 38: $, + 39: 209, + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 106, + 73: ee, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(xe, s, { 17: 210 }), + e(I, [2, 43]), + { + 45: 211, + 46: h, + 48: 38, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + { + 22: Ae, + 75: Ie, + 85: 212, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + e(Ne, [2, 139]), + { + 22: Ae, + 75: Ie, + 85: 226, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { + 22: Ae, + 75: Ie, + 85: 227, + 88: Pe, + 90: [1, 228], + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { + 22: Ae, + 75: Ie, + 85: 229, + 88: Pe, + 90: [1, 230], + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { 91: [1, 231] }, + { + 22: Ae, + 75: Ie, + 85: 232, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { + 22: Ae, + 75: Ie, + 85: 233, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { + 26: ke, + 46: X, + 80: Me, + 86: 234, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 26: ke, + 46: X, + 73: [1, 236], + 80: Me, + 86: 235, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(B, [2, 54]), + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 50: [1, 237], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(B, [2, 60]), + e(B, [2, 56]), + e(B, [2, 57]), + e(B, [2, 58]), + e(B, [2, 59]), + e(B, [2, 61]), + { + 22: q, + 24: K, + 26: G, + 38: $, + 42: Z, + 46: X, + 60: [1, 238], + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + e(B, [2, 63]), + e(B, [2, 64]), + e(B, [2, 66]), + e(B, [2, 65]), + e(B, [2, 67]), + e(Ee, [2, 4]), + e( + [ + 22, + 46, + 80, + 91, + 92, + 95, + 96, + 97, + 99, + 100, + 106, + 107, + 108, + 109, + 110, + 111, + ], + [2, 75] + ), + { + 22: q, + 24: K, + 26: G, + 38: $, + 41: [1, 239], + 42: Z, + 46: X, + 61: J, + 69: Q, + 72: 178, + 74: 117, + 75: te, + 76: ne, + 77: re, + 78: ie, + 79: oe, + 80: se, + 81: ae, + 83: 108, + 84: ue, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: fe, + 99: pe, + 100: ge, + 101: me, + 102: _e, + 103: 114, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 18: 18, + 19: 19, + 20: a, + 21: u, + 22: l, + 23: c, + 32: 24, + 33: 25, + 34: 26, + 35: 27, + 36: 28, + 37: 29, + 38: d, + 42: [1, 240], + 44: 31, + 45: 37, + 46: h, + 48: 38, + 75: f, + 76: p, + 77: g, + 78: m, + 79: _, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + e(j, [2, 52]), + e(H, [2, 101], { 92: ze }), + e(Ue, [2, 111], { + 94: 242, + 22: Ae, + 75: Ie, + 88: Pe, + 91: Re, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }), + e(qe, [2, 113]), + e(qe, [2, 115]), + e(qe, [2, 116]), + e(qe, [2, 117]), + e(qe, [2, 118]), + e(qe, [2, 119]), + e(qe, [2, 120]), + e(qe, [2, 121]), + e(qe, [2, 122]), + e(qe, [2, 123]), + e(qe, [2, 124]), + e(qe, [2, 125]), + e(H, [2, 102], { 92: ze }), + e(H, [2, 103], { 92: ze }), + { 22: [1, 243] }, + e(H, [2, 104], { 92: ze }), + { 22: [1, 244] }, + e(Oe, [2, 110]), + e(H, [2, 92], { 92: ze }), + e(H, [2, 93], { 92: ze }), + e(H, [2, 94], { + 103: 149, + 105: 184, + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }), + e(H, [2, 95], { + 103: 149, + 105: 184, + 22: [1, 245], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }), + e(H, [2, 97], { 22: [1, 246] }), + { 50: [1, 247] }, + { 60: [1, 248] }, + { 9: 249, 20: P, 21: R, 23: F }, + e(I, [2, 42]), + { + 22: Ae, + 75: Ie, + 88: Pe, + 91: Re, + 93: 250, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + e(qe, [2, 114]), + { + 26: ke, + 46: X, + 80: Me, + 86: 251, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { + 26: ke, + 46: X, + 80: Me, + 86: 252, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 103: 149, + 105: 147, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }, + { 73: [1, 253] }, + { 73: [1, 254], 87: [1, 255] }, + e(B, [2, 55]), + e(B, [2, 62]), + e(xe, s, { 17: 256 }), + e(Ue, [2, 112], { + 94: 242, + 22: Ae, + 75: Ie, + 88: Pe, + 91: Re, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }), + e(H, [2, 107], { + 103: 149, + 105: 184, + 22: [1, 257], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }), + e(H, [2, 108], { + 103: 149, + 105: 184, + 22: [1, 258], + 26: ke, + 46: X, + 80: Me, + 91: le, + 92: ce, + 95: de, + 96: he, + 97: De, + 99: pe, + 100: ge, + 106: ye, + 107: ve, + 108: be, + 109: we, + 110: Ce, + 111: Se, + }), + e(H, [2, 96]), + e(H, [2, 98], { 22: [1, 259] }), + e(H, [2, 99]), + { + 18: 18, + 19: 19, + 20: a, + 21: u, + 22: l, + 23: c, + 32: 24, + 33: 25, + 34: 26, + 35: 27, + 36: 28, + 37: 29, + 38: d, + 42: [1, 260], + 44: 31, + 45: 37, + 46: h, + 48: 38, + 75: f, + 76: p, + 77: g, + 78: m, + 79: _, + 80: y, + 91: v, + 92: b, + 95: w, + 96: C, + 97: S, + 99: x, + 100: L, + 104: 39, + 106: k, + 107: M, + 108: D, + 109: E, + 110: T, + 111: N, + }, + { + 22: Ae, + 75: Ie, + 85: 261, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { + 22: Ae, + 75: Ie, + 85: 262, + 88: Pe, + 91: Re, + 93: 213, + 94: 214, + 95: Fe, + 96: Ye, + 97: je, + 98: Be, + 99: We, + 100: He, + 101: Ve, + }, + { 87: [1, 263] }, + e(I, [2, 41]), + e(H, [2, 105], { 92: ze }), + e(H, [2, 106], { 92: ze }), + e(H, [2, 100]), + ], + defaultActions: { + 2: [2, 1], + 9: [2, 5], + 10: [2, 2], + 98: [2, 7], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + Ge = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: {}, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 12; + case 1: + return this.begin('type_directive'), 13; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 10 + ); + case 3: + return this.popState(), this.popState(), 15; + case 4: + return 14; + case 5: + case 6: + break; + case 7: + this.begin('string'); + break; + case 8: + this.popState(); + break; + case 9: + return 'STR'; + case 10: + return 75; + case 11: + return 84; + case 12: + return 76; + case 13: + return 90; + case 14: + return 77; + case 15: + return 78; + case 16: + return 79; + case 17: + case 18: + return e.lex.firstGraph() && this.begin('dir'), 24; + case 19: + return 38; + case 20: + return 42; + case 21: + case 22: + case 23: + case 24: + return 87; + case 25: + return this.popState(), 25; + case 26: + case 27: + case 28: + case 29: + case 30: + case 31: + case 32: + case 33: + case 34: + case 35: + return this.popState(), 26; + case 36: + return 91; + case 37: + return 99; + case 38: + return 47; + case 39: + return 96; + case 40: + return 46; + case 41: + return 20; + case 42: + return 92; + case 43: + return 110; + case 44: + case 45: + case 46: + return 70; + case 47: + case 48: + case 49: + return 69; + case 50: + return 51; + case 51: + return 52; + case 52: + return 53; + case 53: + return 54; + case 54: + return 55; + case 55: + return 56; + case 56: + return 57; + case 57: + return 58; + case 58: + return 97; + case 59: + return 100; + case 60: + return 111; + case 61: + return 108; + case 62: + return 101; + case 63: + case 64: + return 109; + case 65: + return 102; + case 66: + return 61; + case 67: + return 81; + case 68: + return 'SEP'; + case 69: + return 80; + case 70: + return 95; + case 71: + return 63; + case 72: + return 62; + case 73: + return 65; + case 74: + return 64; + case 75: + return 106; + case 76: + return 107; + case 77: + return 71; + case 78: + return 49; + case 79: + return 50; + case 80: + return 40; + case 81: + return 41; + case 82: + return 59; + case 83: + return 60; + case 84: + return 117; + case 85: + return 21; + case 86: + return 22; + case 87: + return 23; + } + }, + rules: [ + /^(?:%%\{)/, + /^(?:((?:(?!\}%%)[^:.])*))/, + /^(?::)/, + /^(?:\}%%)/, + /^(?:((?:(?!\}%%).|\n)*))/, + /^(?:%%(?!\{)[^\n]*)/, + /^(?:[^\}]%%[^\n]*)/, + /^(?:["])/, + /^(?:["])/, + /^(?:[^"]*)/, + /^(?:style\b)/, + /^(?:default\b)/, + /^(?:linkStyle\b)/, + /^(?:interpolate\b)/, + /^(?:classDef\b)/, + /^(?:class\b)/, + /^(?:click\b)/, + /^(?:graph\b)/, + /^(?:flowchart\b)/, + /^(?:subgraph\b)/, + /^(?:end\b\s*)/, + /^(?:_self\b)/, + /^(?:_blank\b)/, + /^(?:_parent\b)/, + /^(?:_top\b)/, + /^(?:(\r?\n)*\s*\n)/, + /^(?:\s*LR\b)/, + /^(?:\s*RL\b)/, + /^(?:\s*TB\b)/, + /^(?:\s*BT\b)/, + /^(?:\s*TD\b)/, + /^(?:\s*BR\b)/, + /^(?:\s*<)/, + /^(?:\s*>)/, + /^(?:\s*\^)/, + /^(?:\s*v\b)/, + /^(?:[0-9]+)/, + /^(?:#)/, + /^(?::::)/, + /^(?::)/, + /^(?:&)/, + /^(?:;)/, + /^(?:,)/, + /^(?:\*)/, + /^(?:\s*[xo<]?--+[-xo>]\s*)/, + /^(?:\s*[xo<]?==+[=xo>]\s*)/, + /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/, + /^(?:\s*[xo<]?--\s*)/, + /^(?:\s*[xo<]?==\s*)/, + /^(?:\s*[xo<]?-\.\s*)/, + /^(?:\(-)/, + /^(?:-\))/, + /^(?:\(\[)/, + /^(?:\]\))/, + /^(?:\[\[)/, + /^(?:\]\])/, + /^(?:\[\()/, + /^(?:\)\])/, + /^(?:-)/, + /^(?:\.)/, + /^(?:[\_])/, + /^(?:\+)/, + /^(?:%)/, + /^(?:=)/, + /^(?:=)/, + /^(?:<)/, + /^(?:>)/, + /^(?:\^)/, + /^(?:\\\|)/, + /^(?:v\b)/, + /^(?:[A-Za-z]+)/, + /^(?:\\\])/, + /^(?:\[\/)/, + /^(?:\/\])/, + /^(?:\[\\)/, + /^(?:[!"#$%&'*+,-.`?\\_/])/, + /^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\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]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\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-\u0C33\u0C35-\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\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\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\u2183\u2184]|[\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\u3006\u3031-\u3035\u303B\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-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\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])/, + /^(?:\|)/, + /^(?:\()/, + /^(?:\))/, + /^(?:\[)/, + /^(?:\])/, + /^(?:\{)/, + /^(?:\})/, + /^(?:")/, + /^(?:(\r?\n)+)/, + /^(?:\s)/, + /^(?:$)/, + ], + conditions: { + close_directive: { rules: [], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + open_directive: { rules: [1], inclusive: !1 }, + vertex: { rules: [], inclusive: !1 }, + dir: { + rules: [25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], + inclusive: !1, + }, + string: { rules: [8, 9], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 22, + 23, + 24, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 48, + 49, + 50, + 51, + 52, + 53, + 54, + 55, + 56, + 57, + 58, + 59, + 60, + 61, + 62, + 63, + 64, + 65, + 66, + 67, + 68, + 69, + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + ], + inclusive: !0, + }, + }, + }; + function $e() { + this.yy = {}; + } + return ( + (Ke.lexer = Ge), + ($e.prototype = Ke), + (Ke.Parser = $e), + new $e() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/flowchart/styles.js': + /*!******************************************!*\ !*** ./src/diagrams/flowchart/styles.js ***! \******************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return".label {\n font-family: ".concat(e.fontFamily,";\n color: ").concat(e.nodeTextColor||e.textColor,";\n }\n\n .label text {\n fill: ").concat(e.nodeTextColor||e.textColor,";\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n background-color: ").concat(e.edgeLabelBackground,";\n fill: ").concat(e.edgeLabelBackground,";\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ").concat(e.clusterBkg,";\n stroke: ").concat(e.clusterBorder,";\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ").concat(e.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ").concat(e.fontFamily,";\n font-size: 12px;\n background: ").concat(e.tertiaryColor,";\n border: 1px solid ").concat(e.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n")}},"./src/diagrams/gantt/ganttDb.js": -/*!***************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return '.label {\n font-family: ' + .concat(e.fontFamily, ';\n color: ') + .concat( + e.nodeTextColor || e.textColor, + ';\n }\n\n .label text {\n fill: ' + ) + .concat( + e.nodeTextColor || e.textColor, + ';\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ' + ) + .concat( + e.arrowheadColor, + ';\n }\n\n .edgePath .path {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n fill: none;\n }\n\n .edgeLabel {\n background-color: ' + ) + .concat( + e.edgeLabelBackground, + ';\n rect {\n opacity: 0.5;\n background-color: ' + ) + .concat(e.edgeLabelBackground, ';\n fill: ') + .concat( + e.edgeLabelBackground, + ';\n }\n text-align: center;\n }\n\n .cluster rect {\n fill: ' + ) + .concat(e.clusterBkg, ';\n stroke: ') + .concat( + e.clusterBorder, + ';\n stroke-width: 1px;\n }\n\n .cluster text {\n fill: ' + ) + .concat( + e.titleColor, + ';\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: ' + ) + .concat( + e.fontFamily, + ';\n font-size: 12px;\n background: ' + ) + .concat(e.tertiaryColor, ';\n border: 1px solid ') + .concat( + e.border2, + ';\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n' + ); + }); + }, + './src/diagrams/gantt/ganttDb.js': + /*!***************************************!*\ !*** ./src/diagrams/gantt/ganttDb.js ***! \***************************************/ -/*! exports provided: parseDirective, clear, setAxisFormat, getAxisFormat, setTodayMarker, getTodayMarker, setDateFormat, enableInclusiveEndDates, endDatesAreInclusive, getDateFormat, setExcludes, getExcludes, setTitle, getTitle, addSection, getSections, getTasks, addTask, findTaskById, addTaskOrg, setLink, setClass, setClickEvent, bindFunctions, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return L})),n.d(t,"clear",(function(){return k})),n.d(t,"setAxisFormat",(function(){return M})),n.d(t,"getAxisFormat",(function(){return D})),n.d(t,"setTodayMarker",(function(){return E})),n.d(t,"getTodayMarker",(function(){return T})),n.d(t,"setDateFormat",(function(){return N})),n.d(t,"enableInclusiveEndDates",(function(){return O})),n.d(t,"endDatesAreInclusive",(function(){return A})),n.d(t,"getDateFormat",(function(){return I})),n.d(t,"setExcludes",(function(){return P})),n.d(t,"getExcludes",(function(){return R})),n.d(t,"setTitle",(function(){return F})),n.d(t,"getTitle",(function(){return Y})),n.d(t,"addSection",(function(){return j})),n.d(t,"getSections",(function(){return B})),n.d(t,"getTasks",(function(){return W})),n.d(t,"addTask",(function(){return J})),n.d(t,"findTaskById",(function(){return Q})),n.d(t,"addTaskOrg",(function(){return ee})),n.d(t,"setLink",(function(){return ne})),n.d(t,"setClass",(function(){return re})),n.d(t,"setClickEvent",(function(){return oe})),n.d(t,"bindFunctions",(function(){return se}));var r=n(/*! moment-mini */"moment-mini"),i=n.n(r),o=n(/*! @braintree/sanitize-url */"@braintree/sanitize-url"),s=n(/*! ../../logger */"./src/logger.js"),a=n(/*! ../../config */"./src/config.js"),u=n(/*! ../../utils */"./src/utils.js"),l=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js");function c(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=6&&n.indexOf("weekends")>=0||n.indexOf(e.format("dddd").toLowerCase())>=0||n.indexOf(e.format(t.trim()))>=0},V=function(e,t,n){if(n.length&&!e.manualEndTime){var r=i()(e.startTime,t,!0);r.add(1,"d");var o=i()(e.endTime,t,!0),s=z(r,o,t,n);e.endTime=o.toDate(),e.renderEndTime=s}},z=function(e,t,n,r){for(var i=!1,o=null;e<=t;)i||(o=t.toDate()),(i=H(e,n,r))&&t.add(1,"d"),e.add(1,"d");return o},U=function(e,t,n){n=n.trim();var r=/^after\s+([\d\w- ]+)/.exec(n.trim());if(null!==r){var o=null;if(r[1].split(" ").forEach((function(e){var t=Q(e);void 0!==t&&(o?t.endTime>o.endTime&&(o=t):o=t)})),o)return o.endTime;var a=new Date;return a.setHours(0,0,0,0),a}var u=i()(n,t.trim(),!0);return u.isValid()?u.toDate():(s.logger.debug("Invalid date:"+n),s.logger.debug("With date format:"+t.trim()),new Date)},q=function(e,t){if(null!==e)switch(e[2]){case"s":t.add(e[1],"seconds");break;case"m":t.add(e[1],"minutes");break;case"h":t.add(e[1],"hours");break;case"d":t.add(e[1],"days");break;case"w":t.add(e[1],"weeks")}return t.toDate()},K=function(e,t,n,r){r=r||!1,n=n.trim();var o=i()(n,t.trim(),!0);return o.isValid()?(r&&o.add(1,"d"),o.toDate()):q(/^([\d]+)([wdhms])/.exec(n.trim()),i()(e))},G=0,$=function(e){return void 0===e?"task"+(G+=1):e},Z=[],X={},J=function(e,t){var n={section:b,type:b,processed:!1,manualEndTime:!1,renderEndTime:null,raw:{data:t},task:e,classes:[]},r=function(e,t){var n=(":"===t.substr(0,1)?t.substr(1,t.length):t).split(","),r={};ae(n,r,w);for(var i=0;i= 6 && n.indexOf('weekends') >= 0) || + n.indexOf(e.format('dddd').toLowerCase()) >= 0 || + n.indexOf(e.format(t.trim())) >= 0 + ); + }, + V = function (e, t, n) { + if (n.length && !e.manualEndTime) { + var r = i()(e.startTime, t, !0); + r.add(1, 'd'); + var o = i()(e.endTime, t, !0), + s = z(r, o, t, n); + (e.endTime = o.toDate()), (e.renderEndTime = s); + } + }, + z = function (e, t, n, r) { + for (var i = !1, o = null; e <= t; ) + i || (o = t.toDate()), + (i = H(e, n, r)) && t.add(1, 'd'), + e.add(1, 'd'); + return o; + }, + U = function (e, t, n) { + n = n.trim(); + var r = /^after\s+([\d\w- ]+)/.exec(n.trim()); + if (null !== r) { + var o = null; + if ( + (r[1].split(' ').forEach(function (e) { + var t = Q(e); + void 0 !== t && + (o ? t.endTime > o.endTime && (o = t) : (o = t)); + }), + o) + ) + return o.endTime; + var a = new Date(); + return a.setHours(0, 0, 0, 0), a; + } + var u = i()(n, t.trim(), !0); + return u.isValid() + ? u.toDate() + : (s.logger.debug('Invalid date:' + n), + s.logger.debug('With date format:' + t.trim()), + new Date()); + }, + q = function (e, t) { + if (null !== e) + switch (e[2]) { + case 's': + t.add(e[1], 'seconds'); + break; + case 'm': + t.add(e[1], 'minutes'); + break; + case 'h': + t.add(e[1], 'hours'); + break; + case 'd': + t.add(e[1], 'days'); + break; + case 'w': + t.add(e[1], 'weeks'); + } + return t.toDate(); + }, + K = function (e, t, n, r) { + (r = r || !1), (n = n.trim()); + var o = i()(n, t.trim(), !0); + return o.isValid() + ? (r && o.add(1, 'd'), o.toDate()) + : q(/^([\d]+)([wdhms])/.exec(n.trim()), i()(e)); + }, + G = 0, + $ = function (e) { + return void 0 === e ? 'task' + (G += 1) : e; + }, + Z = [], + X = {}, + J = function (e, t) { + var n = { + section: b, + type: b, + processed: !1, + manualEndTime: !1, + renderEndTime: null, + raw: { data: t }, + task: e, + classes: [], + }, + r = (function (e, t) { + var n = (':' === t.substr(0, 1) + ? t.substr(1, t.length) + : t + ).split(','), + r = {}; + ae(n, r, w); + for (var i = 0; i < n.length; i++) n[i] = n[i].trim(); + switch (n.length) { + case 1: + (r.id = $()), + (r.startTime = { type: 'prevTaskEnd', id: e }), + (r.endTime = { data: n[0] }); + break; + case 2: + (r.id = $()), + (r.startTime = { + type: 'getStartDate', + startData: n[0], + }), + (r.endTime = { data: n[1] }); + break; + case 3: + (r.id = $(n[0])), + (r.startTime = { + type: 'getStartDate', + startData: n[1], + }), + (r.endTime = { data: n[2] }); + } + return r; + })(h, t); + (n.raw.startTime = r.startTime), + (n.raw.endTime = r.endTime), + (n.id = r.id), + (n.prevTaskId = h), + (n.active = r.active), + (n.done = r.done), + (n.crit = r.crit), + (n.milestone = r.milestone), + (n.order = x), + x++; + var i = Z.push(n); + (h = n.id), (X[n.id] = i - 1); + }, + Q = function (e) { + var t = X[e]; + return Z[t]; + }, + ee = function (e, t) { + var n = { + section: b, + type: b, + description: e, + task: e, + classes: [], + }, + r = (function (e, t) { + var n = (':' === t.substr(0, 1) + ? t.substr(1, t.length) + : t + ).split(','), + r = {}; + ae(n, r, w); + for (var o = 0; o < n.length; o++) n[o] = n[o].trim(); + var s = ''; + switch (n.length) { + case 1: + (r.id = $()), (r.startTime = e.endTime), (s = n[0]); + break; + case 2: + (r.id = $()), + (r.startTime = U(0, f, n[0])), + (s = n[1]); + break; + case 3: + (r.id = $(n[0])), + (r.startTime = U(0, f, n[1])), + (s = n[2]); + } + return ( + s && + ((r.endTime = K(r.startTime, f, s, S)), + (r.manualEndTime = i()( + s, + 'YYYY-MM-DD', + !0 + ).isValid()), + V(r, f, m)), + r + ); + })(d, t); + (n.startTime = r.startTime), + (n.endTime = r.endTime), + (n.id = r.id), + (n.active = r.active), + (n.done = r.done), + (n.crit = r.crit), + (n.milestone = r.milestone), + (d = n), + v.push(n); + }, + te = function () { + for ( + var e = function (e) { + var t = Z[e], + n = ''; + switch (Z[e].raw.startTime.type) { + case 'prevTaskEnd': + var r = Q(t.prevTaskId); + t.startTime = r.endTime; + break; + case 'getStartDate': + (n = U(0, f, Z[e].raw.startTime.startData)) && + (Z[e].startTime = n); + } + return ( + Z[e].startTime && + ((Z[e].endTime = K( + Z[e].startTime, + f, + Z[e].raw.endTime.data, + S + )), + Z[e].endTime && + ((Z[e].processed = !0), + (Z[e].manualEndTime = i()( + Z[e].raw.endTime.data, + 'YYYY-MM-DD', + !0 + ).isValid()), + V(Z[e], f, m))), + Z[e].processed + ); + }, + t = !0, + n = 0; + n < Z.length; + n++ + ) + e(n), (t = t && Z[n].processed); + return t; + }, + ne = function (e, t) { + var n = t; + 'loose' !== a.getConfig().securityLevel && + (n = Object(o.sanitizeUrl)(t)), + e.split(',').forEach(function (e) { + void 0 !== Q(e) && + ie(e, function () { + window.open(n, '_self'); + }); + }), + re(e, 'clickable'); + }, + re = function (e, t) { + e.split(',').forEach(function (e) { + var n = Q(e); + void 0 !== n && n.classes.push(t); + }); + }, + ie = function (e, t) { + C.push(function () { + var n = document.querySelector('[id="'.concat(e, '"]')); + null !== n && + n.addEventListener('click', function () { + t(); + }); + }), + C.push(function () { + var n = document.querySelector( + '[id="'.concat(e, '-text"]') + ); + null !== n && + n.addEventListener('click', function () { + t(); + }); + }); + }, + oe = function (e, t, n) { + e.split(',').forEach(function (e) { + !(function (e, t, n) { + if ( + 'loose' === a.getConfig().securityLevel && + void 0 !== t + ) { + var r = []; + if ('string' == typeof n) { + r = n.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/); + for (var i = 0; i < r.length; i++) { + var o = r[i].trim(); + '"' === o.charAt(0) && + '"' === o.charAt(o.length - 1) && + (o = o.substr(1, o.length - 2)), + (r[i] = o); + } + } + 0 === r.length && r.push(e), + void 0 !== Q(e) && + ie(e, function () { + u.default.runFunc.apply( + u.default, + [t].concat(c(r)) + ); + }); + } + })(e, t, n); + }), + re(e, 'clickable'); + }, + se = function (e) { + C.forEach(function (t) { + t(e); + }); + }; + function ae(e, t, n) { + for (var r = !0; r; ) + (r = !1), + n.forEach(function (n) { + var i = new RegExp('^\\s*' + n + '\\s*$'); + e[0].match(i) && ((t[n] = !0), e.shift(1), (r = !0)); + }); + } + t.default = { + parseDirective: L, + getConfig: function () { + return a.getConfig().gantt; + }, + clear: k, + setDateFormat: N, + getDateFormat: I, + enableInclusiveEndDates: O, + endDatesAreInclusive: A, + setAxisFormat: M, + getAxisFormat: D, + setTodayMarker: E, + getTodayMarker: T, + setTitle: F, + getTitle: Y, + addSection: j, + getSections: B, + getTasks: W, + addTask: J, + findTaskById: Q, + addTaskOrg: ee, + setExcludes: P, + getExcludes: R, + setClickEvent: oe, + setLink: ne, + bindFunctions: se, + durationToDate: q, + }; + }, + './src/diagrams/gantt/ganttRenderer.js': + /*!*********************************************!*\ !*** ./src/diagrams/gantt/ganttRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return c})),n.d(t,"draw",(function(){return d}));var r=n(/*! d3 */"d3"),i=n(/*! ./parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ./ganttDb */"./src/diagrams/gantt/ganttDb.js"),a=n(/*! ../../utils */"./src/utils.js");i.parser.yy=s.default;var u,l={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'},c=function(e){Object.keys(e).forEach((function(t){l[t]=e[t]}))},d=function(e,t){i.parser.yy.clear(),i.parser.parse(e);var n=document.getElementById(t);void 0===(u=n.parentElement.offsetWidth)&&(u=1200),void 0!==l.useWidth&&(u=l.useWidth);var c=i.parser.yy.getTasks(),d=c.length*(l.barHeight+l.barGap)+2*l.topPadding;n.setAttribute("viewBox","0 0 "+u+" "+d);for(var h=Object(r.select)('[id="'.concat(t,'"]')),f=Object(r.scaleTime)().domain([Object(r.min)(c,(function(e){return e.startTime})),Object(r.max)(c,(function(e){return e.endTime}))]).rangeRound([0,u-l.leftPadding-l.rightPadding]),p=[],g=0;gr?i=1:n0&&(t=e.classes.join(" "));for(var n=0,r=0;rn-t?n+o+1.5*l.leftPadding>s?t+r-5:n+r+5:(n-t)/2+t+r})).attr("y",(function(e,r){return e.order*t+l.barHeight/2+(l.fontSize/2-2)+n})).attr("text-height",i).attr("class",(function(e){var t=f(e.startTime),n=f(e.endTime);e.milestone&&(n=t+i);var r=this.getBBox().width,o="";e.classes.length>0&&(o=e.classes.join(" "));for(var a=0,u=0;un-t?n+r+1.5*l.leftPadding>s?o+" taskTextOutsideLeft taskTextOutside"+a+" "+c:o+" taskTextOutsideRight taskTextOutside"+a+" "+c+" width-"+r:o+" taskText taskText"+a+" "+c+" width-"+r}))}(m,b,w,C,v,0,_),function(e,t){for(var n=[],r=0,i=0;i0&&s.setAttribute("dy","1em"),s.textContent=t[i],r.appendChild(s)}return r})).attr("x",10).attr("y",(function(i,o){if(!(o>0))return i[1]*e/2+t;for(var s=0;s r ? (i = 1) : n < r && (i = -1), i; + }), + (m = c), + (_ = u), + (y = d), + (v = l.barHeight), + (b = v + l.barGap), + (w = l.topPadding), + (C = l.leftPadding), + Object(r.scaleLinear)() + .domain([0, p.length]) + .range(['#00B9FA', '#F95002']) + .interpolate(r.interpolateHcl), + (function (e, t, n, o) { + var s = Object(r.axisBottom)(f) + .tickSize(-o + t + l.gridLineStartPadding) + .tickFormat( + Object(r.timeFormat)( + i.parser.yy.getAxisFormat() || + l.axisFormat || + '%Y-%m-%d' + ) + ); + h.append('g') + .attr('class', 'grid') + .attr( + 'transform', + 'translate(' + e + ', ' + (o - 50) + ')' + ) + .call(s) + .selectAll('text') + .style('text-anchor', 'middle') + .attr('fill', '#000') + .attr('stroke', 'none') + .attr('font-size', 10) + .attr('dy', '1em'); + })(C, w, 0, y), + (function (e, t, n, r, i, o, s) { + h.append('g') + .selectAll('rect') + .data(e) + .enter() + .append('rect') + .attr('x', 0) + .attr('y', function (e, r) { + return e.order * t + n - 2; + }) + .attr('width', function () { + return s - l.rightPadding / 2; + }) + .attr('height', t) + .attr('class', function (e) { + for (var t = 0; t < p.length; t++) + if (e.type === p[t]) + return ( + 'section section' + (t % l.numberSectionStyles) + ); + return 'section section0'; + }); + var a = h.append('g').selectAll('rect').data(e).enter(); + a + .append('rect') + .attr('id', function (e) { + return e.id; + }) + .attr('rx', 3) + .attr('ry', 3) + .attr('x', function (e) { + return e.milestone + ? f(e.startTime) + + r + + 0.5 * (f(e.endTime) - f(e.startTime)) - + 0.5 * i + : f(e.startTime) + r; + }) + .attr('y', function (e, r) { + return e.order * t + n; + }) + .attr('width', function (e) { + return e.milestone + ? i + : f(e.renderEndTime || e.endTime) - f(e.startTime); + }) + .attr('height', i) + .attr('transform-origin', function (e, o) { + return ( + ( + f(e.startTime) + + r + + 0.5 * (f(e.endTime) - f(e.startTime)) + ).toString() + + 'px ' + + (o * t + n + 0.5 * i).toString() + + 'px' + ); + }) + .attr('class', function (e) { + var t = ''; + e.classes.length > 0 && (t = e.classes.join(' ')); + for (var n = 0, r = 0; r < p.length; r++) + e.type === p[r] && (n = r % l.numberSectionStyles); + var i = ''; + return ( + e.active + ? e.crit + ? (i += ' activeCrit') + : (i = ' active') + : e.done + ? (i = e.crit ? ' doneCrit' : ' done') + : e.crit && (i += ' crit'), + 0 === i.length && (i = ' task'), + e.milestone && (i = ' milestone ' + i), + (i += n), + 'task' + (i += ' ' + t) + ); + }), + a + .append('text') + .attr('id', function (e) { + return e.id + '-text'; + }) + .text(function (e) { + return e.task; + }) + .attr('font-size', l.fontSize) + .attr('x', function (e) { + var t = f(e.startTime), + n = f(e.renderEndTime || e.endTime); + e.milestone && + (t += + 0.5 * (f(e.endTime) - f(e.startTime)) - + 0.5 * i), + e.milestone && (n = t + i); + var o = this.getBBox().width; + return o > n - t + ? n + o + 1.5 * l.leftPadding > s + ? t + r - 5 + : n + r + 5 + : (n - t) / 2 + t + r; + }) + .attr('y', function (e, r) { + return ( + e.order * t + + l.barHeight / 2 + + (l.fontSize / 2 - 2) + + n + ); + }) + .attr('text-height', i) + .attr('class', function (e) { + var t = f(e.startTime), + n = f(e.endTime); + e.milestone && (n = t + i); + var r = this.getBBox().width, + o = ''; + e.classes.length > 0 && (o = e.classes.join(' ')); + for (var a = 0, u = 0; u < p.length; u++) + e.type === p[u] && + (a = u % l.numberSectionStyles); + var c = ''; + return ( + e.active && + (c = e.crit + ? 'activeCritText' + a + : 'activeText' + a), + e.done + ? (c = e.crit + ? c + ' doneCritText' + a + : c + ' doneText' + a) + : e.crit && (c = c + ' critText' + a), + e.milestone && (c += ' milestoneText'), + r > n - t + ? n + r + 1.5 * l.leftPadding > s + ? o + + ' taskTextOutsideLeft taskTextOutside' + + a + + ' ' + + c + : o + + ' taskTextOutsideRight taskTextOutside' + + a + + ' ' + + c + + ' width-' + + r + : o + + ' taskText taskText' + + a + + ' ' + + c + + ' width-' + + r + ); + }); + })(m, b, w, C, v, 0, _), + (function (e, t) { + for (var n = [], r = 0, i = 0; i < p.length; i++) + n[i] = [p[i], ((s = p[i]), (a = S), x(a)[s] || 0)]; + var s, a; + h.append('g') + .selectAll('text') + .data(n) + .enter() + .append(function (e) { + var t = e[0].split(o.default.lineBreakRegex), + n = -(t.length - 1) / 2, + r = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'text' + ); + r.setAttribute('dy', n + 'em'); + for (var i = 0; i < t.length; i++) { + var s = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'tspan' + ); + s.setAttribute('alignment-baseline', 'central'), + s.setAttribute('x', '10'), + i > 0 && s.setAttribute('dy', '1em'), + (s.textContent = t[i]), + r.appendChild(s); + } + return r; + }) + .attr('x', 10) + .attr('y', function (i, o) { + if (!(o > 0)) return (i[1] * e) / 2 + t; + for (var s = 0; s < o; s++) + return ( + (r += n[o - 1][1]), (i[1] * e) / 2 + r * e + t + ); + }) + .attr('class', function (e) { + for (var t = 0; t < p.length; t++) + if (e[0] === p[t]) + return ( + 'sectionTitle sectionTitle' + + (t % l.numberSectionStyles) + ); + return 'sectionTitle'; + }); + })(b, w), + (function (e, t, n, r) { + var i = s.default.getTodayMarker(); + if ('off' !== i) { + var o = h.append('g').attr('class', 'today'), + a = new Date(), + u = o.append('line'); + u + .attr('x1', f(a) + e) + .attr('x2', f(a) + e) + .attr('y1', l.titleTopMargin) + .attr('y2', r - l.titleTopMargin) + .attr('class', 'today'), + '' !== i && u.attr('style', i.replace(/,/g, ';')); + } + })(C, 0, 0, y), + Object(a.configureSvgSize)(h, d, u, l.useMaxWidth), + h + .append('text') + .text(i.parser.yy.getTitle()) + .attr('x', u / 2) + .attr('y', l.titleTopMargin) + .attr('class', 'titleText'); + }; + t.default = { setConf: c, draw: d }; + }, + './src/diagrams/gantt/parser/gantt.jison': + /*!***********************************************!*\ !*** ./src/diagrams/gantt/parser/gantt.jison ***! \***********************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,20,27,32],i=[1,15],o=[1,16],s=[1,17],a=[1,18],u=[1,19],l=[1,20],c=[1,21],d=[1,23],h=[1,25],f=[1,28],p=[5,7,9,11,12,13,14,15,16,17,18,20,27,32],g={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,axisFormat:14,excludes:15,todayMarker:16,title:17,section:18,clickStatement:19,taskTxt:20,taskData:21,openDirective:22,typeDirective:23,closeDirective:24,":":25,argDirective:26,click:27,callbackname:28,callbackargs:29,href:30,clickStatementDebug:31,open_directive:32,type_directive:33,arg_directive:34,close_directive:35,$accept:0,$end:1},terminals_:{2:"error",5:"gantt",7:"EOF",9:"SPACE",11:"NL",12:"dateFormat",13:"inclusiveEndDates",14:"axisFormat",15:"excludes",16:"todayMarker",17:"title",18:"section",20:"taskTxt",21:"taskData",25:":",27:"click",28:"callbackname",29:"callbackargs",30:"href",32:"open_directive",33:"type_directive",34:"arg_directive",35:"close_directive"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[19,2],[19,3],[19,3],[19,4],[19,3],[19,4],[19,2],[31,2],[31,3],[31,3],[31,4],[31,3],[31,4],[31,2],[22,1],[23,1],[26,1],[24,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 2:return o[a-1];case 3:this.$=[];break;case 4:o[a-1].push(o[a]),this.$=o[a-1];break;case 5:case 6:this.$=o[a];break;case 7:case 8:this.$=[];break;case 9:r.setDateFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=o[a].substr(18);break;case 11:r.setAxisFormat(o[a].substr(11)),this.$=o[a].substr(11);break;case 12:r.setExcludes(o[a].substr(9)),this.$=o[a].substr(9);break;case 13:r.setTodayMarker(o[a].substr(12)),this.$=o[a].substr(12);break;case 14:r.setTitle(o[a].substr(6)),this.$=o[a].substr(6);break;case 15:r.addSection(o[a].substr(8)),this.$=o[a].substr(8);break;case 17:r.addTask(o[a-1],o[a]),this.$="task";break;case 21:this.$=o[a-1],r.setClickEvent(o[a-1],o[a],null);break;case 22:this.$=o[a-2],r.setClickEvent(o[a-2],o[a-1],o[a]);break;case 23:this.$=o[a-2],r.setClickEvent(o[a-2],o[a-1],null),r.setLink(o[a-2],o[a]);break;case 24:this.$=o[a-3],r.setClickEvent(o[a-3],o[a-2],o[a-1]),r.setLink(o[a-3],o[a]);break;case 25:this.$=o[a-2],r.setClickEvent(o[a-2],o[a],null),r.setLink(o[a-2],o[a-1]);break;case 26:this.$=o[a-3],r.setClickEvent(o[a-3],o[a-1],o[a]),r.setLink(o[a-3],o[a-2]);break;case 27:this.$=o[a-1],r.setLink(o[a-1],o[a]);break;case 28:case 34:this.$=o[a-1]+" "+o[a];break;case 29:case 30:case 32:this.$=o[a-2]+" "+o[a-1]+" "+o[a];break;case 31:case 33:this.$=o[a-3]+" "+o[a-2]+" "+o[a-1]+" "+o[a];break;case 35:r.parseDirective("%%{","open_directive");break;case 36:r.parseDirective(o[a],"type_directive");break;case 37:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 38:r.parseDirective("}%%","close_directive","gantt")}},table:[{3:1,4:2,5:t,22:4,32:n},{1:[3]},{3:6,4:2,5:t,22:4,32:n},e(r,[2,3],{6:7}),{23:8,33:[1,9]},{33:[2,35]},{1:[2,1]},{4:24,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:o,14:s,15:a,16:u,17:l,18:c,19:22,20:d,22:4,27:h,32:n},{24:26,25:[1,27],35:f},e([25,35],[2,36]),e(r,[2,8],{1:[2,2]}),e(r,[2,4]),{4:24,10:29,12:i,13:o,14:s,15:a,16:u,17:l,18:c,19:22,20:d,22:4,27:h,32:n},e(r,[2,6]),e(r,[2,7]),e(r,[2,9]),e(r,[2,10]),e(r,[2,11]),e(r,[2,12]),e(r,[2,13]),e(r,[2,14]),e(r,[2,15]),e(r,[2,16]),{21:[1,30]},e(r,[2,18]),{28:[1,31],30:[1,32]},{11:[1,33]},{26:34,34:[1,35]},{11:[2,38]},e(r,[2,5]),e(r,[2,17]),e(r,[2,21],{29:[1,36],30:[1,37]}),e(r,[2,27],{28:[1,38]}),e(p,[2,19]),{24:39,35:f},{35:[2,37]},e(r,[2,22],{30:[1,40]}),e(r,[2,23]),e(r,[2,25],{29:[1,41]}),{11:[1,42]},e(r,[2,24]),e(r,[2,26]),e(p,[2,20])],defaultActions:{5:[2,35],6:[2,1],28:[2,38],35:[2,37]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},m={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),32;case 1:return this.begin("type_directive"),33;case 2:return this.popState(),this.begin("arg_directive"),25;case 3:return this.popState(),this.popState(),35;case 4:return 34;case 5:case 6:case 7:break;case 8:return 11;case 9:case 10:case 11:break;case 12:this.begin("href");break;case 13:this.popState();break;case 14:return 30;case 15:this.begin("callbackname");break;case 16:this.popState();break;case 17:this.popState(),this.begin("callbackargs");break;case 18:return 28;case 19:this.popState();break;case 20:return 29;case 21:this.begin("click");break;case 22:this.popState();break;case 23:return 27;case 24:return 5;case 25:return 12;case 26:return 13;case 27:return 14;case 28:return 15;case 29:return 16;case 30:return"date";case 31:return 17;case 32:return 18;case 33:return 20;case 34:return 21;case 35:return 25;case 36:return 7;case 37:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)*[^\n]*)/i,/^(?:[^\}]%%*[^\n]*)/i,/^(?:%%*[^\n]*[\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:href[\s]+["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:call[\s]+)/i,/^(?:\([\s]*\))/i,/^(?:\()/i,/^(?:[^(]*)/i,/^(?:\))/i,/^(?:[^)]*)/i,/^(?:click[\s]+)/i,/^(?:[\s\n])/i,/^(?:[^\s\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:inclusiveEndDates\b)/i,/^(?:axisFormat\s[^#\n;]+)/i,/^(?:excludes\s[^#\n;]+)/i,/^(?:todayMarker\s[^\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[19,20],inclusive:!1},callbackname:{rules:[16,17,18],inclusive:!1},href:{rules:[13,14],inclusive:!1},click:{rules:[22,23],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,15,21,24,25,26,27,28,29,30,31,32,33,34,35,36,37],inclusive:!0}}};function _(){this.yy={}}return g.lexer=m,_.prototype=g,g.Parser=_,new _}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/gantt/styles.js": -/*!**************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 3], + n = [1, 5], + r = [7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 20, 27, 32], + i = [1, 15], + o = [1, 16], + s = [1, 17], + a = [1, 18], + u = [1, 19], + l = [1, 20], + c = [1, 21], + d = [1, 23], + h = [1, 25], + f = [1, 28], + p = [5, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 20, 27, 32], + g = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + directive: 4, + gantt: 5, + document: 6, + EOF: 7, + line: 8, + SPACE: 9, + statement: 10, + NL: 11, + dateFormat: 12, + inclusiveEndDates: 13, + axisFormat: 14, + excludes: 15, + todayMarker: 16, + title: 17, + section: 18, + clickStatement: 19, + taskTxt: 20, + taskData: 21, + openDirective: 22, + typeDirective: 23, + closeDirective: 24, + ':': 25, + argDirective: 26, + click: 27, + callbackname: 28, + callbackargs: 29, + href: 30, + clickStatementDebug: 31, + open_directive: 32, + type_directive: 33, + arg_directive: 34, + close_directive: 35, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 5: 'gantt', + 7: 'EOF', + 9: 'SPACE', + 11: 'NL', + 12: 'dateFormat', + 13: 'inclusiveEndDates', + 14: 'axisFormat', + 15: 'excludes', + 16: 'todayMarker', + 17: 'title', + 18: 'section', + 20: 'taskTxt', + 21: 'taskData', + 25: ':', + 27: 'click', + 28: 'callbackname', + 29: 'callbackargs', + 30: 'href', + 32: 'open_directive', + 33: 'type_directive', + 34: 'arg_directive', + 35: 'close_directive', + }, + productions_: [ + 0, + [3, 2], + [3, 3], + [6, 0], + [6, 2], + [8, 2], + [8, 1], + [8, 1], + [8, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 1], + [10, 2], + [10, 1], + [4, 4], + [4, 6], + [19, 2], + [19, 3], + [19, 3], + [19, 4], + [19, 3], + [19, 4], + [19, 2], + [31, 2], + [31, 3], + [31, 3], + [31, 4], + [31, 3], + [31, 4], + [31, 2], + [22, 1], + [23, 1], + [26, 1], + [24, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 2: + return o[a - 1]; + case 3: + this.$ = []; + break; + case 4: + o[a - 1].push(o[a]), (this.$ = o[a - 1]); + break; + case 5: + case 6: + this.$ = o[a]; + break; + case 7: + case 8: + this.$ = []; + break; + case 9: + r.setDateFormat(o[a].substr(11)), + (this.$ = o[a].substr(11)); + break; + case 10: + r.enableInclusiveEndDates(), + (this.$ = o[a].substr(18)); + break; + case 11: + r.setAxisFormat(o[a].substr(11)), + (this.$ = o[a].substr(11)); + break; + case 12: + r.setExcludes(o[a].substr(9)), + (this.$ = o[a].substr(9)); + break; + case 13: + r.setTodayMarker(o[a].substr(12)), + (this.$ = o[a].substr(12)); + break; + case 14: + r.setTitle(o[a].substr(6)), + (this.$ = o[a].substr(6)); + break; + case 15: + r.addSection(o[a].substr(8)), + (this.$ = o[a].substr(8)); + break; + case 17: + r.addTask(o[a - 1], o[a]), (this.$ = 'task'); + break; + case 21: + (this.$ = o[a - 1]), + r.setClickEvent(o[a - 1], o[a], null); + break; + case 22: + (this.$ = o[a - 2]), + r.setClickEvent(o[a - 2], o[a - 1], o[a]); + break; + case 23: + (this.$ = o[a - 2]), + r.setClickEvent(o[a - 2], o[a - 1], null), + r.setLink(o[a - 2], o[a]); + break; + case 24: + (this.$ = o[a - 3]), + r.setClickEvent(o[a - 3], o[a - 2], o[a - 1]), + r.setLink(o[a - 3], o[a]); + break; + case 25: + (this.$ = o[a - 2]), + r.setClickEvent(o[a - 2], o[a], null), + r.setLink(o[a - 2], o[a - 1]); + break; + case 26: + (this.$ = o[a - 3]), + r.setClickEvent(o[a - 3], o[a - 1], o[a]), + r.setLink(o[a - 3], o[a - 2]); + break; + case 27: + (this.$ = o[a - 1]), r.setLink(o[a - 1], o[a]); + break; + case 28: + case 34: + this.$ = o[a - 1] + ' ' + o[a]; + break; + case 29: + case 30: + case 32: + this.$ = o[a - 2] + ' ' + o[a - 1] + ' ' + o[a]; + break; + case 31: + case 33: + this.$ = + o[a - 3] + + ' ' + + o[a - 2] + + ' ' + + o[a - 1] + + ' ' + + o[a]; + break; + case 35: + r.parseDirective('%%{', 'open_directive'); + break; + case 36: + r.parseDirective(o[a], 'type_directive'); + break; + case 37: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 38: + r.parseDirective('}%%', 'close_directive', 'gantt'); + } + }, + table: [ + { 3: 1, 4: 2, 5: t, 22: 4, 32: n }, + { 1: [3] }, + { 3: 6, 4: 2, 5: t, 22: 4, 32: n }, + e(r, [2, 3], { 6: 7 }), + { 23: 8, 33: [1, 9] }, + { 33: [2, 35] }, + { 1: [2, 1] }, + { + 4: 24, + 7: [1, 10], + 8: 11, + 9: [1, 12], + 10: 13, + 11: [1, 14], + 12: i, + 13: o, + 14: s, + 15: a, + 16: u, + 17: l, + 18: c, + 19: 22, + 20: d, + 22: 4, + 27: h, + 32: n, + }, + { 24: 26, 25: [1, 27], 35: f }, + e([25, 35], [2, 36]), + e(r, [2, 8], { 1: [2, 2] }), + e(r, [2, 4]), + { + 4: 24, + 10: 29, + 12: i, + 13: o, + 14: s, + 15: a, + 16: u, + 17: l, + 18: c, + 19: 22, + 20: d, + 22: 4, + 27: h, + 32: n, + }, + e(r, [2, 6]), + e(r, [2, 7]), + e(r, [2, 9]), + e(r, [2, 10]), + e(r, [2, 11]), + e(r, [2, 12]), + e(r, [2, 13]), + e(r, [2, 14]), + e(r, [2, 15]), + e(r, [2, 16]), + { 21: [1, 30] }, + e(r, [2, 18]), + { 28: [1, 31], 30: [1, 32] }, + { 11: [1, 33] }, + { 26: 34, 34: [1, 35] }, + { 11: [2, 38] }, + e(r, [2, 5]), + e(r, [2, 17]), + e(r, [2, 21], { 29: [1, 36], 30: [1, 37] }), + e(r, [2, 27], { 28: [1, 38] }), + e(p, [2, 19]), + { 24: 39, 35: f }, + { 35: [2, 37] }, + e(r, [2, 22], { 30: [1, 40] }), + e(r, [2, 23]), + e(r, [2, 25], { 29: [1, 41] }), + { 11: [1, 42] }, + e(r, [2, 24]), + e(r, [2, 26]), + e(p, [2, 20]), + ], + defaultActions: { + 5: [2, 35], + 6: [2, 1], + 28: [2, 38], + 35: [2, 37], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + m = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 32; + case 1: + return this.begin('type_directive'), 33; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 25 + ); + case 3: + return this.popState(), this.popState(), 35; + case 4: + return 34; + case 5: + case 6: + case 7: + break; + case 8: + return 11; + case 9: + case 10: + case 11: + break; + case 12: + this.begin('href'); + break; + case 13: + this.popState(); + break; + case 14: + return 30; + case 15: + this.begin('callbackname'); + break; + case 16: + this.popState(); + break; + case 17: + this.popState(), this.begin('callbackargs'); + break; + case 18: + return 28; + case 19: + this.popState(); + break; + case 20: + return 29; + case 21: + this.begin('click'); + break; + case 22: + this.popState(); + break; + case 23: + return 27; + case 24: + return 5; + case 25: + return 12; + case 26: + return 13; + case 27: + return 14; + case 28: + return 15; + case 29: + return 16; + case 30: + return 'date'; + case 31: + return 17; + case 32: + return 18; + case 33: + return 20; + case 34: + return 21; + case 35: + return 25; + case 36: + return 7; + case 37: + return 'INVALID'; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:%%(?!\{)*[^\n]*)/i, + /^(?:[^\}]%%*[^\n]*)/i, + /^(?:%%*[^\n]*[\n]*)/i, + /^(?:[\n]+)/i, + /^(?:\s+)/i, + /^(?:#[^\n]*)/i, + /^(?:%[^\n]*)/i, + /^(?:href[\s]+["])/i, + /^(?:["])/i, + /^(?:[^"]*)/i, + /^(?:call[\s]+)/i, + /^(?:\([\s]*\))/i, + /^(?:\()/i, + /^(?:[^(]*)/i, + /^(?:\))/i, + /^(?:[^)]*)/i, + /^(?:click[\s]+)/i, + /^(?:[\s\n])/i, + /^(?:[^\s\n]*)/i, + /^(?:gantt\b)/i, + /^(?:dateFormat\s[^#\n;]+)/i, + /^(?:inclusiveEndDates\b)/i, + /^(?:axisFormat\s[^#\n;]+)/i, + /^(?:excludes\s[^#\n;]+)/i, + /^(?:todayMarker\s[^\n;]+)/i, + /^(?:\d\d\d\d-\d\d-\d\d\b)/i, + /^(?:title\s[^#\n;]+)/i, + /^(?:section\s[^#:\n;]+)/i, + /^(?:[^#:\n;]+)/i, + /^(?::[^#\n;]+)/i, + /^(?::)/i, + /^(?:$)/i, + /^(?:.)/i, + ], + conditions: { + close_directive: { rules: [], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + open_directive: { rules: [1], inclusive: !1 }, + callbackargs: { rules: [19, 20], inclusive: !1 }, + callbackname: { rules: [16, 17, 18], inclusive: !1 }, + href: { rules: [13, 14], inclusive: !1 }, + click: { rules: [22, 23], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 15, + 21, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + ], + inclusive: !0, + }, + }, + }; + function _() { + this.yy = {}; + } + return ( + (g.lexer = m), (_.prototype = g), (g.Parser = _), new _() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/gantt/styles.js': + /*!**************************************!*\ !*** ./src/diagrams/gantt/styles.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return'\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: '.concat(e.sectionBkgColor,";\n }\n\n .section2 {\n fill: ").concat(e.sectionBkgColor2,";\n }\n\n .section1,\n .section3 {\n fill: ").concat(e.altSectionBkgColor,";\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle1 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle2 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle3 {\n fill: ").concat(e.titleColor,";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: ").concat(e.gridColor,";\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ").concat(e.fontFamily,";\n fill: ").concat(e.textColor,";\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ").concat(e.todayLineColor,";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: ").concat(e.taskTextDarkColor,";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: ").concat(e.taskTextDarkColor,";\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ").concat(e.taskTextClickableColor," !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ").concat(e.taskTextColor,";\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ").concat(e.taskBkgColor,";\n stroke: ").concat(e.taskBorderColor,";\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ").concat(e.taskTextOutsideColor,";\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ").concat(e.taskTextOutsideColor,";\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ").concat(e.activeTaskBkgColor,";\n stroke: ").concat(e.activeTaskBorderColor,";\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ").concat(e.doneTaskBorderColor,";\n fill: ").concat(e.doneTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ").concat(e.critBorderColor,";\n fill: ").concat(e.critBkgColor,";\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ").concat(e.critBorderColor,";\n fill: ").concat(e.activeTaskBkgColor,";\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ").concat(e.critBorderColor,";\n fill: ").concat(e.doneTaskBkgColor,";\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ").concat(e.taskTextDarkColor," !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ").concat(e.textColor," ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n")}},"./src/diagrams/git/gitGraphAst.js": -/*!*****************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return '\n .mermaid-main-font {\n font-family: "trebuchet ms", verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n .section {\n stroke: none;\n opacity: 0.2;\n }\n\n .section0 {\n fill: ' + .concat( + e.sectionBkgColor, + ';\n }\n\n .section2 {\n fill: ' + ) + .concat( + e.sectionBkgColor2, + ';\n }\n\n .section1,\n .section3 {\n fill: ' + ) + .concat( + e.altSectionBkgColor, + ';\n opacity: 0.2;\n }\n\n .sectionTitle0 {\n fill: ' + ) + .concat( + e.titleColor, + ';\n }\n\n .sectionTitle1 {\n fill: ' + ) + .concat( + e.titleColor, + ';\n }\n\n .sectionTitle2 {\n fill: ' + ) + .concat( + e.titleColor, + ';\n }\n\n .sectionTitle3 {\n fill: ' + ) + .concat( + e.titleColor, + ";\n }\n\n .sectionTitle {\n text-anchor: start;\n font-size: 11px;\n text-height: 14px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n\n /* Grid and axis */\n\n .grid .tick {\n stroke: " + ) + .concat( + e.gridColor, + ';\n opacity: 0.8;\n shape-rendering: crispEdges;\n text {\n font-family: ' + ) + .concat(e.fontFamily, ';\n fill: ') + .concat( + e.textColor, + ';\n }\n }\n\n .grid path {\n stroke-width: 0;\n }\n\n\n /* Today line */\n\n .today {\n fill: none;\n stroke: ' + ) + .concat( + e.todayLineColor, + ";\n stroke-width: 2px;\n }\n\n\n /* Task styling */\n\n /* Default task */\n\n .task {\n stroke-width: 2;\n }\n\n .taskText {\n text-anchor: middle;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n\n .taskText:not([font-size]) {\n font-size: 11px;\n }\n\n .taskTextOutsideRight {\n fill: " + ) + .concat( + e.taskTextDarkColor, + ";\n text-anchor: start;\n font-size: 11px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n\n }\n\n .taskTextOutsideLeft {\n fill: " + ) + .concat( + e.taskTextDarkColor, + ';\n text-anchor: end;\n font-size: 11px;\n }\n\n /* Special case clickable */\n .task.clickable {\n cursor: pointer;\n }\n .taskText.clickable {\n cursor: pointer;\n fill: ' + ) + .concat( + e.taskTextClickableColor, + ' !important;\n font-weight: bold;\n }\n\n .taskTextOutsideLeft.clickable {\n cursor: pointer;\n fill: ' + ) + .concat( + e.taskTextClickableColor, + ' !important;\n font-weight: bold;\n }\n\n .taskTextOutsideRight.clickable {\n cursor: pointer;\n fill: ' + ) + .concat( + e.taskTextClickableColor, + ' !important;\n font-weight: bold;\n }\n\n /* Specific task settings for the sections*/\n\n .taskText0,\n .taskText1,\n .taskText2,\n .taskText3 {\n fill: ' + ) + .concat( + e.taskTextColor, + ';\n }\n\n .task0,\n .task1,\n .task2,\n .task3 {\n fill: ' + ) + .concat(e.taskBkgColor, ';\n stroke: ') + .concat( + e.taskBorderColor, + ';\n }\n\n .taskTextOutside0,\n .taskTextOutside2\n {\n fill: ' + ) + .concat( + e.taskTextOutsideColor, + ';\n }\n\n .taskTextOutside1,\n .taskTextOutside3 {\n fill: ' + ) + .concat( + e.taskTextOutsideColor, + ';\n }\n\n\n /* Active task */\n\n .active0,\n .active1,\n .active2,\n .active3 {\n fill: ' + ) + .concat(e.activeTaskBkgColor, ';\n stroke: ') + .concat( + e.activeTaskBorderColor, + ';\n }\n\n .activeText0,\n .activeText1,\n .activeText2,\n .activeText3 {\n fill: ' + ) + .concat( + e.taskTextDarkColor, + ' !important;\n }\n\n\n /* Completed task */\n\n .done0,\n .done1,\n .done2,\n .done3 {\n stroke: ' + ) + .concat(e.doneTaskBorderColor, ';\n fill: ') + .concat( + e.doneTaskBkgColor, + ';\n stroke-width: 2;\n }\n\n .doneText0,\n .doneText1,\n .doneText2,\n .doneText3 {\n fill: ' + ) + .concat( + e.taskTextDarkColor, + ' !important;\n }\n\n\n /* Tasks on the critical line */\n\n .crit0,\n .crit1,\n .crit2,\n .crit3 {\n stroke: ' + ) + .concat(e.critBorderColor, ';\n fill: ') + .concat( + e.critBkgColor, + ';\n stroke-width: 2;\n }\n\n .activeCrit0,\n .activeCrit1,\n .activeCrit2,\n .activeCrit3 {\n stroke: ' + ) + .concat(e.critBorderColor, ';\n fill: ') + .concat( + e.activeTaskBkgColor, + ';\n stroke-width: 2;\n }\n\n .doneCrit0,\n .doneCrit1,\n .doneCrit2,\n .doneCrit3 {\n stroke: ' + ) + .concat(e.critBorderColor, ';\n fill: ') + .concat( + e.doneTaskBkgColor, + ';\n stroke-width: 2;\n cursor: pointer;\n shape-rendering: crispEdges;\n }\n\n .milestone {\n transform: rotate(45deg) scale(0.8,0.8);\n }\n\n .milestoneText {\n font-style: italic;\n }\n .doneCritText0,\n .doneCritText1,\n .doneCritText2,\n .doneCritText3 {\n fill: ' + ) + .concat( + e.taskTextDarkColor, + ' !important;\n }\n\n .activeCritText0,\n .activeCritText1,\n .activeCritText2,\n .activeCritText3 {\n fill: ' + ) + .concat( + e.taskTextDarkColor, + ' !important;\n }\n\n .titleText {\n text-anchor: middle;\n font-size: 18px;\n fill: ' + ) + .concat( + e.textColor, + " ;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n" + ); + }); + }, + './src/diagrams/git/gitGraphAst.js': + /*!*****************************************!*\ !*** ./src/diagrams/git/gitGraphAst.js ***! \*****************************************/ -/*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setDirection",(function(){return f})),n.d(t,"setOptions",(function(){return g})),n.d(t,"getOptions",(function(){return m})),n.d(t,"commit",(function(){return _})),n.d(t,"branch",(function(){return y})),n.d(t,"merge",(function(){return v})),n.d(t,"checkout",(function(){return b})),n.d(t,"reset",(function(){return w})),n.d(t,"prettyPrint",(function(){return x})),n.d(t,"clear",(function(){return L})),n.d(t,"getBranchesAsObjArray",(function(){return k})),n.d(t,"getBranches",(function(){return M})),n.d(t,"getCommits",(function(){return D})),n.d(t,"getCommitsArray",(function(){return E})),n.d(t,"getCurrentBranch",(function(){return T})),n.d(t,"getDirection",(function(){return N})),n.d(t,"getHead",(function(){return O}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../utils */"./src/utils.js"),o={},s=null,a={master:s},u="master",l="LR",c=0;function d(){return Object(i.random)({length:7})}function h(e,t){for(r.logger.debug("Entering isfastforwardable:",e.id,t.id);e.seq<=t.seq&&e!==t&&null!=t.parent;){if(Array.isArray(t.parent))return r.logger.debug("In merge commit:",t.parent),h(e,o[t.parent[0]])||h(e,o[t.parent[1]]);t=o[t.parent]}return r.logger.debug(e.id,t.id),e.id===t.id}var f=function(e){l=e},p={},g=function(e){r.logger.debug("options str",e),e=(e=e&&e.trim())||"{}";try{p=JSON.parse(e)}catch(e){r.logger.error("error while parsing gitGraph options",e.message)}},m=function(){return p},_=function(e){var t={id:d(),message:e,seq:c++,parent:null==s?null:s.id};s=t,o[t.id]=t,a[u]=t.id,r.logger.debug("in pushCommit "+t.id)},y=function(e){a[e]=null!=s?s.id:null,r.logger.debug("in createBranch")},v=function(e){var t=o[a[u]],n=o[a[e]];if(function(e,t){return e.seq>t.seq&&h(t,e)}(t,n))r.logger.debug("Already merged");else{if(h(t,n))a[u]=a[e],s=o[a[u]];else{var i={id:d(),message:"merged branch "+e+" into "+u,seq:c++,parent:[null==s?null:s.id,a[e]]};s=i,o[i.id]=i,a[u]=i.id}r.logger.debug(a),r.logger.debug("in mergeBranch")}},b=function(e){r.logger.debug("in checkout");var t=a[u=e];s=o[t]},w=function(e){r.logger.debug("in reset",e);var t=e.split(":")[0],n=parseInt(e.split(":")[1]),i="HEAD"===t?s:o[a[t]];for(r.logger.debug(i,n);n>0;)if(n--,!(i=o[i.parent])){var l="Critical error - unique parent commit not found during reset";throw r.logger.error(l),l}s=i,a[u]=i.id};function C(e,t,n){var r=e.indexOf(t);-1===r?e.push(n):e.splice(r,1,n)}function S(e){var t=e.reduce((function(e,t){return e.seq>t.seq?e:t}),e[0]),n="";e.forEach((function(e){n+=e===t?"\t*":"\t|"}));var i,s,u,l=[n,t.id,t.seq];for(var c in a)a[c]===t.id&&l.push(c);if(r.logger.debug(l.join(" ")),Array.isArray(t.parent)){var d=o[t.parent[0]];C(e,t,d),e.push(o[t.parent[1]])}else{if(null==t.parent)return;var h=o[t.parent];C(e,t,h)}i=e,s=function(e){return e.id},u=Object.create(null),S(e=i.reduce((function(e,t){var n=s(t);return u[n]||(u[n]=!0,e.push(t)),e}),[]))}var x=function(){r.logger.debug(o),S([E()[0]])},L=function(){o={},a={master:s=null},u="master",c=0},k=function(){var e=[];for(var t in a)e.push({name:t,commit:o[a[t]]});return e},M=function(){return a},D=function(){return o},E=function(){var e=Object.keys(o).map((function(e){return o[e]}));return e.forEach((function(e){r.logger.debug(e.id)})),e.sort((function(e,t){return t.seq-e.seq})),e},T=function(){return u},N=function(){return l},O=function(){return s};t.default={setDirection:f,setOptions:g,getOptions:m,commit:_,branch:y,merge:v,checkout:b,reset:w,prettyPrint:x,clear:L,getBranchesAsObjArray:k,getBranches:M,getCommits:D,getCommitsArray:E,getCurrentBranch:T,getDirection:N,getHead:O}},"./src/diagrams/git/gitGraphRenderer.js": -/*!**********************************************!*\ + /*! exports provided: setDirection, setOptions, getOptions, commit, branch, merge, checkout, reset, prettyPrint, clear, getBranchesAsObjArray, getBranches, getCommits, getCommitsArray, getCurrentBranch, getDirection, getHead, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'setDirection', function () { + return f; + }), + n.d(t, 'setOptions', function () { + return g; + }), + n.d(t, 'getOptions', function () { + return m; + }), + n.d(t, 'commit', function () { + return _; + }), + n.d(t, 'branch', function () { + return y; + }), + n.d(t, 'merge', function () { + return v; + }), + n.d(t, 'checkout', function () { + return b; + }), + n.d(t, 'reset', function () { + return w; + }), + n.d(t, 'prettyPrint', function () { + return x; + }), + n.d(t, 'clear', function () { + return L; + }), + n.d(t, 'getBranchesAsObjArray', function () { + return k; + }), + n.d(t, 'getBranches', function () { + return M; + }), + n.d(t, 'getCommits', function () { + return D; + }), + n.d(t, 'getCommitsArray', function () { + return E; + }), + n.d(t, 'getCurrentBranch', function () { + return T; + }), + n.d(t, 'getDirection', function () { + return N; + }), + n.d(t, 'getHead', function () { + return O; + }); + var r = n(/*! ../../logger */ './src/logger.js'), + i = n(/*! ../../utils */ './src/utils.js'), + o = {}, + s = null, + a = { master: s }, + u = 'master', + l = 'LR', + c = 0; + function d() { + return Object(i.random)({ length: 7 }); + } + function h(e, t) { + for ( + r.logger.debug('Entering isfastforwardable:', e.id, t.id); + e.seq <= t.seq && e !== t && null != t.parent; + + ) { + if (Array.isArray(t.parent)) + return ( + r.logger.debug('In merge commit:', t.parent), + h(e, o[t.parent[0]]) || h(e, o[t.parent[1]]) + ); + t = o[t.parent]; + } + return r.logger.debug(e.id, t.id), e.id === t.id; + } + var f = function (e) { + l = e; + }, + p = {}, + g = function (e) { + r.logger.debug('options str', e), + (e = (e = e && e.trim()) || '{}'); + try { + p = JSON.parse(e); + } catch (e) { + r.logger.error( + 'error while parsing gitGraph options', + e.message + ); + } + }, + m = function () { + return p; + }, + _ = function (e) { + var t = { + id: d(), + message: e, + seq: c++, + parent: null == s ? null : s.id, + }; + (s = t), + (o[t.id] = t), + (a[u] = t.id), + r.logger.debug('in pushCommit ' + t.id); + }, + y = function (e) { + (a[e] = null != s ? s.id : null), + r.logger.debug('in createBranch'); + }, + v = function (e) { + var t = o[a[u]], + n = o[a[e]]; + if ( + (function (e, t) { + return e.seq > t.seq && h(t, e); + })(t, n) + ) + r.logger.debug('Already merged'); + else { + if (h(t, n)) (a[u] = a[e]), (s = o[a[u]]); + else { + var i = { + id: d(), + message: 'merged branch ' + e + ' into ' + u, + seq: c++, + parent: [null == s ? null : s.id, a[e]], + }; + (s = i), (o[i.id] = i), (a[u] = i.id); + } + r.logger.debug(a), r.logger.debug('in mergeBranch'); + } + }, + b = function (e) { + r.logger.debug('in checkout'); + var t = a[(u = e)]; + s = o[t]; + }, + w = function (e) { + r.logger.debug('in reset', e); + var t = e.split(':')[0], + n = parseInt(e.split(':')[1]), + i = 'HEAD' === t ? s : o[a[t]]; + for (r.logger.debug(i, n); n > 0; ) + if ((n--, !(i = o[i.parent]))) { + var l = + 'Critical error - unique parent commit not found during reset'; + throw (r.logger.error(l), l); + } + (s = i), (a[u] = i.id); + }; + function C(e, t, n) { + var r = e.indexOf(t); + -1 === r ? e.push(n) : e.splice(r, 1, n); + } + function S(e) { + var t = e.reduce(function (e, t) { + return e.seq > t.seq ? e : t; + }, e[0]), + n = ''; + e.forEach(function (e) { + n += e === t ? '\t*' : '\t|'; + }); + var i, + s, + u, + l = [n, t.id, t.seq]; + for (var c in a) a[c] === t.id && l.push(c); + if ((r.logger.debug(l.join(' ')), Array.isArray(t.parent))) { + var d = o[t.parent[0]]; + C(e, t, d), e.push(o[t.parent[1]]); + } else { + if (null == t.parent) return; + var h = o[t.parent]; + C(e, t, h); + } + (i = e), + (s = function (e) { + return e.id; + }), + (u = Object.create(null)), + S( + (e = i.reduce(function (e, t) { + var n = s(t); + return u[n] || ((u[n] = !0), e.push(t)), e; + }, [])) + ); + } + var x = function () { + r.logger.debug(o), S([E()[0]]); + }, + L = function () { + (o = {}), + (a = { master: (s = null) }), + (u = 'master'), + (c = 0); + }, + k = function () { + var e = []; + for (var t in a) e.push({ name: t, commit: o[a[t]] }); + return e; + }, + M = function () { + return a; + }, + D = function () { + return o; + }, + E = function () { + var e = Object.keys(o).map(function (e) { + return o[e]; + }); + return ( + e.forEach(function (e) { + r.logger.debug(e.id); + }), + e.sort(function (e, t) { + return t.seq - e.seq; + }), + e + ); + }, + T = function () { + return u; + }, + N = function () { + return l; + }, + O = function () { + return s; + }; + t.default = { + setDirection: f, + setOptions: g, + getOptions: m, + commit: _, + branch: y, + merge: v, + checkout: b, + reset: w, + prettyPrint: x, + clear: L, + getBranchesAsObjArray: k, + getBranches: M, + getCommits: D, + getCommitsArray: E, + getCurrentBranch: T, + getDirection: N, + getHead: O, + }; + }, + './src/diagrams/git/gitGraphRenderer.js': + /*!**********************************************!*\ !*** ./src/diagrams/git/gitGraphRenderer.js ***! \**********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return f})),n.d(t,"draw",(function(){return b}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),s=n(/*! ./parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ../../utils */"./src/utils.js"),c={},d={nodeSpacing:150,nodeFillColor:"yellow",nodeStrokeWidth:2,nodeStrokeColor:"grey",lineStrokeWidth:4,branchOffset:50,lineColor:"grey",leftMargin:50,branchColors:["#442f74","#983351","#609732","#AA9A39"],nodeRadius:10,nodeLabel:{width:75,height:100,x:-25,y:0}},h={},f=function(e){h=e};function p(e,t,n,r){var o=Object(l.interpolateToCurve)(r,i.curveBasis),s=d.branchColors[n%d.branchColors.length],a=Object(i.line)().x((function(e){return Math.round(e.x)})).y((function(e){return Math.round(e.y)})).curve(o);e.append("svg:path").attr("d",a(t)).style("stroke",s).style("stroke-width",d.lineStrokeWidth).style("fill","none")}function g(e,t){t=t||e.node().getBBox();var n=e.node().getCTM();return{left:n.e+t.x*n.a,top:n.f+t.y*n.d,width:t.width,height:t.height}}function m(e,t,n,r,i){u.logger.debug("svgDrawLineForCommits: ",t,n);var o=g(e.select("#node-"+t+" circle")),s=g(e.select("#node-"+n+" circle"));switch(r){case"LR":if(o.left-s.left>d.nodeSpacing){var a={x:o.left-d.nodeSpacing,y:s.top+s.height/2};p(e,[a,{x:s.left+s.width,y:s.top+s.height/2}],i,"linear"),p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:a.y},a],i)}else p(e,[{x:o.left,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:o.top+o.height/2},{x:o.left-d.nodeSpacing/2,y:s.top+s.height/2},{x:s.left+s.width,y:s.top+s.height/2}],i);break;case"BT":if(s.top-o.top>d.nodeSpacing){var l={x:s.left+s.width/2,y:o.top+o.height+d.nodeSpacing};p(e,[l,{x:s.left+s.width/2,y:s.top}],i,"linear"),p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+o.height+d.nodeSpacing/2},{x:s.left+s.width/2,y:l.y-d.nodeSpacing/2},l],i)}else p(e,[{x:o.left+o.width/2,y:o.top+o.height},{x:o.left+o.width/2,y:o.top+d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top-d.nodeSpacing/2},{x:s.left+s.width/2,y:s.top}],i)}}function _(e,t){return e.select(t).node().cloneNode(!0)}function y(e,t,n,i){var o,s=Object.keys(c).length;if("string"==typeof t)do{if(o=c[t],u.logger.debug("in renderCommitHistory",o.id,o.seq),e.select("#node-"+t).size()>0)return;e.append((function(){return _(e,"#def-commit")})).attr("class","commit").attr("id",(function(){return"node-"+o.id})).attr("transform",(function(){switch(i){case"LR":return"translate("+(o.seq*d.nodeSpacing+d.leftMargin)+", "+r*d.branchOffset+")";case"BT":return"translate("+(r*d.branchOffset+d.leftMargin)+", "+(s-o.seq)*d.nodeSpacing+")"}})).attr("fill",d.nodeFillColor).attr("stroke",d.nodeStrokeColor).attr("stroke-width",d.nodeStrokeWidth);var a=void 0;for(var l in n)if(n[l].commit===o){a=n[l];break}a&&(u.logger.debug("found branch ",a.name),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","branch-label").text(a.name+", ")),e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-id").text(o.id),""!==o.message&&"BT"===i&&e.select("#node-"+o.id+" p").append("xhtml:span").attr("class","commit-msg").text(", "+o.message),t=o.parent}while(t&&c[t]);Array.isArray(t)&&(u.logger.debug("found merge commmit",t),y(e,t[0],n,i),r++,y(e,t[1],n,i),r--)}function v(e,t,n,r){for(r=r||0;t.seq>0&&!t.lineDrawn;)"string"==typeof t.parent?(m(e,t.id,t.parent,n,r),t.lineDrawn=!0,t=c[t.parent]):Array.isArray(t.parent)&&(m(e,t.id,t.parent[0],n,r),m(e,t.id,t.parent[1],n,r+1),v(e,c[t.parent[1]],n,r+1),t.lineDrawn=!0,t=c[t.parent[0]])}var b=function(e,t,n){try{var s=a.a.parser;s.yy=o.default,s.yy.clear(),u.logger.debug("in gitgraph renderer",e+"\n","id:",t,n),s.parse(e+"\n"),d=Object.assign(d,h,o.default.getOptions()),u.logger.debug("effective options",d);var l=o.default.getDirection();c=o.default.getCommits();var f=o.default.getBranchesAsObjArray();"BT"===l&&(d.nodeLabel.x=f.length*d.branchOffset,d.nodeLabel.width="100%",d.nodeLabel.y=-2*d.nodeRadius);var p=Object(i.select)('[id="'.concat(t,'"]'));for(var g in function(e){e.append("defs").append("g").attr("id","def-commit").append("circle").attr("r",d.nodeRadius).attr("cx",0).attr("cy",0),e.select("#def-commit").append("foreignObject").attr("width",d.nodeLabel.width).attr("height",d.nodeLabel.height).attr("x",d.nodeLabel.x).attr("y",d.nodeLabel.y).attr("class","node-label").attr("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility").append("p").html("")}(p),r=1,f){var m=f[g];y(p,m.commit.id,f,l),v(p,m.commit,l),r++}p.attr("height",(function(){return"BT"===l?Object.keys(c).length*d.nodeSpacing:(f.length+1)*d.branchOffset}))}catch(e){u.logger.error("Error while rendering gitgraph"),u.logger.error(e.message)}};t.default={setConf:f,draw:b}},"./src/diagrams/git/parser/gitGraph.jison": -/*!************************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return f; + }), + n.d(t, 'draw', function () { + return b; + }); + var r, + i = n(/*! d3 */ 'd3'), + o = n(/*! ./gitGraphAst */ './src/diagrams/git/gitGraphAst.js'), + s = n( + /*! ./parser/gitGraph */ './src/diagrams/git/parser/gitGraph.jison' + ), + a = n.n(s), + u = n(/*! ../../logger */ './src/logger.js'), + l = n(/*! ../../utils */ './src/utils.js'), + c = {}, + d = { + nodeSpacing: 150, + nodeFillColor: 'yellow', + nodeStrokeWidth: 2, + nodeStrokeColor: 'grey', + lineStrokeWidth: 4, + branchOffset: 50, + lineColor: 'grey', + leftMargin: 50, + branchColors: ['#442f74', '#983351', '#609732', '#AA9A39'], + nodeRadius: 10, + nodeLabel: { width: 75, height: 100, x: -25, y: 0 }, + }, + h = {}, + f = function (e) { + h = e; + }; + function p(e, t, n, r) { + var o = Object(l.interpolateToCurve)(r, i.curveBasis), + s = d.branchColors[n % d.branchColors.length], + a = Object(i.line)() + .x(function (e) { + return Math.round(e.x); + }) + .y(function (e) { + return Math.round(e.y); + }) + .curve(o); + e.append('svg:path') + .attr('d', a(t)) + .style('stroke', s) + .style('stroke-width', d.lineStrokeWidth) + .style('fill', 'none'); + } + function g(e, t) { + t = t || e.node().getBBox(); + var n = e.node().getCTM(); + return { + left: n.e + t.x * n.a, + top: n.f + t.y * n.d, + width: t.width, + height: t.height, + }; + } + function m(e, t, n, r, i) { + u.logger.debug('svgDrawLineForCommits: ', t, n); + var o = g(e.select('#node-' + t + ' circle')), + s = g(e.select('#node-' + n + ' circle')); + switch (r) { + case 'LR': + if (o.left - s.left > d.nodeSpacing) { + var a = { + x: o.left - d.nodeSpacing, + y: s.top + s.height / 2, + }; + p( + e, + [a, { x: s.left + s.width, y: s.top + s.height / 2 }], + i, + 'linear' + ), + p( + e, + [ + { x: o.left, y: o.top + o.height / 2 }, + { + x: o.left - d.nodeSpacing / 2, + y: o.top + o.height / 2, + }, + { x: o.left - d.nodeSpacing / 2, y: a.y }, + a, + ], + i + ); + } else + p( + e, + [ + { x: o.left, y: o.top + o.height / 2 }, + { + x: o.left - d.nodeSpacing / 2, + y: o.top + o.height / 2, + }, + { + x: o.left - d.nodeSpacing / 2, + y: s.top + s.height / 2, + }, + { x: s.left + s.width, y: s.top + s.height / 2 }, + ], + i + ); + break; + case 'BT': + if (s.top - o.top > d.nodeSpacing) { + var l = { + x: s.left + s.width / 2, + y: o.top + o.height + d.nodeSpacing, + }; + p( + e, + [l, { x: s.left + s.width / 2, y: s.top }], + i, + 'linear' + ), + p( + e, + [ + { x: o.left + o.width / 2, y: o.top + o.height }, + { + x: o.left + o.width / 2, + y: o.top + o.height + d.nodeSpacing / 2, + }, + { + x: s.left + s.width / 2, + y: l.y - d.nodeSpacing / 2, + }, + l, + ], + i + ); + } else + p( + e, + [ + { x: o.left + o.width / 2, y: o.top + o.height }, + { + x: o.left + o.width / 2, + y: o.top + d.nodeSpacing / 2, + }, + { + x: s.left + s.width / 2, + y: s.top - d.nodeSpacing / 2, + }, + { x: s.left + s.width / 2, y: s.top }, + ], + i + ); + } + } + function _(e, t) { + return e.select(t).node().cloneNode(!0); + } + function y(e, t, n, i) { + var o, + s = Object.keys(c).length; + if ('string' == typeof t) + do { + if ( + ((o = c[t]), + u.logger.debug('in renderCommitHistory', o.id, o.seq), + e.select('#node-' + t).size() > 0) + ) + return; + e.append(function () { + return _(e, '#def-commit'); + }) + .attr('class', 'commit') + .attr('id', function () { + return 'node-' + o.id; + }) + .attr('transform', function () { + switch (i) { + case 'LR': + return ( + 'translate(' + + (o.seq * d.nodeSpacing + d.leftMargin) + + ', ' + + r * d.branchOffset + + ')' + ); + case 'BT': + return ( + 'translate(' + + (r * d.branchOffset + d.leftMargin) + + ', ' + + (s - o.seq) * d.nodeSpacing + + ')' + ); + } + }) + .attr('fill', d.nodeFillColor) + .attr('stroke', d.nodeStrokeColor) + .attr('stroke-width', d.nodeStrokeWidth); + var a = void 0; + for (var l in n) + if (n[l].commit === o) { + a = n[l]; + break; + } + a && + (u.logger.debug('found branch ', a.name), + e + .select('#node-' + o.id + ' p') + .append('xhtml:span') + .attr('class', 'branch-label') + .text(a.name + ', ')), + e + .select('#node-' + o.id + ' p') + .append('xhtml:span') + .attr('class', 'commit-id') + .text(o.id), + '' !== o.message && + 'BT' === i && + e + .select('#node-' + o.id + ' p') + .append('xhtml:span') + .attr('class', 'commit-msg') + .text(', ' + o.message), + (t = o.parent); + } while (t && c[t]); + Array.isArray(t) && + (u.logger.debug('found merge commmit', t), + y(e, t[0], n, i), + r++, + y(e, t[1], n, i), + r--); + } + function v(e, t, n, r) { + for (r = r || 0; t.seq > 0 && !t.lineDrawn; ) + 'string' == typeof t.parent + ? (m(e, t.id, t.parent, n, r), + (t.lineDrawn = !0), + (t = c[t.parent])) + : Array.isArray(t.parent) && + (m(e, t.id, t.parent[0], n, r), + m(e, t.id, t.parent[1], n, r + 1), + v(e, c[t.parent[1]], n, r + 1), + (t.lineDrawn = !0), + (t = c[t.parent[0]])); + } + var b = function (e, t, n) { + try { + var s = a.a.parser; + (s.yy = o.default), + s.yy.clear(), + u.logger.debug( + 'in gitgraph renderer', + e + '\n', + 'id:', + t, + n + ), + s.parse(e + '\n'), + (d = Object.assign(d, h, o.default.getOptions())), + u.logger.debug('effective options', d); + var l = o.default.getDirection(); + c = o.default.getCommits(); + var f = o.default.getBranchesAsObjArray(); + 'BT' === l && + ((d.nodeLabel.x = f.length * d.branchOffset), + (d.nodeLabel.width = '100%'), + (d.nodeLabel.y = -2 * d.nodeRadius)); + var p = Object(i.select)('[id="'.concat(t, '"]')); + for (var g in ((function (e) { + e + .append('defs') + .append('g') + .attr('id', 'def-commit') + .append('circle') + .attr('r', d.nodeRadius) + .attr('cx', 0) + .attr('cy', 0), + e + .select('#def-commit') + .append('foreignObject') + .attr('width', d.nodeLabel.width) + .attr('height', d.nodeLabel.height) + .attr('x', d.nodeLabel.x) + .attr('y', d.nodeLabel.y) + .attr('class', 'node-label') + .attr( + 'requiredFeatures', + 'http://www.w3.org/TR/SVG11/feature#Extensibility' + ) + .append('p') + .html(''); + })(p), + (r = 1), + f)) { + var m = f[g]; + y(p, m.commit.id, f, l), v(p, m.commit, l), r++; + } + p.attr('height', function () { + return 'BT' === l + ? Object.keys(c).length * d.nodeSpacing + : (f.length + 1) * d.branchOffset; + }); + } catch (e) { + u.logger.error('Error while rendering gitgraph'), + u.logger.error(e.message); + } + }; + t.default = { setConf: f, draw: b }; + }, + './src/diagrams/git/parser/gitGraph.jison': + /*!************************************************!*\ !*** ./src/diagrams/git/parser/gitGraph.jison ***! \************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[2,3],n=[1,7],r=[7,12,15,17,19,20,21],i=[7,11,12,15,17,19,20,21],o=[2,20],s=[1,32],a={trace:function(){},yy:{},symbols_:{error:2,start:3,GG:4,":":5,document:6,EOF:7,DIR:8,options:9,body:10,OPT:11,NL:12,line:13,statement:14,COMMIT:15,commit_arg:16,BRANCH:17,ID:18,CHECKOUT:19,MERGE:20,RESET:21,reset_arg:22,STR:23,HEAD:24,reset_parents:25,CARET:26,$accept:0,$end:1},terminals_:{2:"error",4:"GG",5:":",7:"EOF",8:"DIR",11:"OPT",12:"NL",15:"COMMIT",17:"BRANCH",18:"ID",19:"CHECKOUT",20:"MERGE",21:"RESET",23:"STR",24:"HEAD",26:"CARET"},productions_:[0,[3,4],[3,5],[6,0],[6,2],[9,2],[9,1],[10,0],[10,2],[13,2],[13,1],[14,2],[14,2],[14,2],[14,2],[14,2],[16,0],[16,1],[22,2],[22,2],[25,0],[25,2]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 1:return o[a-1];case 2:return r.setDirection(o[a-3]),o[a-1];case 4:r.setOptions(o[a-1]),this.$=o[a];break;case 5:o[a-1]+=o[a],this.$=o[a-1];break;case 7:this.$=[];break;case 8:o[a-1].push(o[a]),this.$=o[a-1];break;case 9:this.$=o[a-1];break;case 11:r.commit(o[a]);break;case 12:r.branch(o[a]);break;case 13:r.checkout(o[a]);break;case 14:r.merge(o[a]);break;case 15:r.reset(o[a]);break;case 16:this.$="";break;case 17:this.$=o[a];break;case 18:this.$=o[a-1]+":"+o[a];break;case 19:this.$=o[a-1]+":"+r.count,r.count=0;break;case 20:r.count=0;break;case 21:r.count+=1}},table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3],8:[1,4]},{6:5,7:t,9:6,12:n},{5:[1,8]},{7:[1,9]},e(r,[2,7],{10:10,11:[1,11]}),e(i,[2,6]),{6:12,7:t,9:6,12:n},{1:[2,1]},{7:[2,4],12:[1,15],13:13,14:14,15:[1,16],17:[1,17],19:[1,18],20:[1,19],21:[1,20]},e(i,[2,5]),{7:[1,21]},e(r,[2,8]),{12:[1,22]},e(r,[2,10]),{12:[2,16],16:23,23:[1,24]},{18:[1,25]},{18:[1,26]},{18:[1,27]},{18:[1,30],22:28,24:[1,29]},{1:[2,2]},e(r,[2,9]),{12:[2,11]},{12:[2,17]},{12:[2,12]},{12:[2,13]},{12:[2,14]},{12:[2,15]},{12:o,25:31,26:s},{12:o,25:33,26:s},{12:[2,18]},{12:o,25:34,26:s},{12:[2,19]},{12:[2,21]}],defaultActions:{9:[2,1],21:[2,2],23:[2,11],24:[2,17],25:[2,12],26:[2,13],27:[2,14],28:[2,15],31:[2,18],33:[2,19],34:[2,21]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},u={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 12;case 1:case 2:case 3:break;case 4:return 4;case 5:return 15;case 6:return 17;case 7:return 20;case 8:return 21;case 9:return 19;case 10:case 11:return 8;case 12:return 5;case 13:return 26;case 14:this.begin("options");break;case 15:this.popState();break;case 16:return 11;case 17:this.begin("string");break;case 18:this.popState();break;case 19:return 23;case 20:return 18;case 21:return 7}},rules:[/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gitGraph\b)/i,/^(?:commit\b)/i,/^(?:branch\b)/i,/^(?:merge\b)/i,/^(?:reset\b)/i,/^(?:checkout\b)/i,/^(?:LR\b)/i,/^(?:BT\b)/i,/^(?::)/i,/^(?:\^)/i,/^(?:options\r?\n)/i,/^(?:end\r?\n)/i,/^(?:[^\n]+\r?\n)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{options:{rules:[15,16],inclusive:!1},string:{rules:[18,19],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,17,20,21],inclusive:!0}}};function l(){this.yy={}}return a.lexer=u,l.prototype=a,a.Parser=l,new l}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/git/styles.js": -/*!************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [2, 3], + n = [1, 7], + r = [7, 12, 15, 17, 19, 20, 21], + i = [7, 11, 12, 15, 17, 19, 20, 21], + o = [2, 20], + s = [1, 32], + a = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + GG: 4, + ':': 5, + document: 6, + EOF: 7, + DIR: 8, + options: 9, + body: 10, + OPT: 11, + NL: 12, + line: 13, + statement: 14, + COMMIT: 15, + commit_arg: 16, + BRANCH: 17, + ID: 18, + CHECKOUT: 19, + MERGE: 20, + RESET: 21, + reset_arg: 22, + STR: 23, + HEAD: 24, + reset_parents: 25, + CARET: 26, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'GG', + 5: ':', + 7: 'EOF', + 8: 'DIR', + 11: 'OPT', + 12: 'NL', + 15: 'COMMIT', + 17: 'BRANCH', + 18: 'ID', + 19: 'CHECKOUT', + 20: 'MERGE', + 21: 'RESET', + 23: 'STR', + 24: 'HEAD', + 26: 'CARET', + }, + productions_: [ + 0, + [3, 4], + [3, 5], + [6, 0], + [6, 2], + [9, 2], + [9, 1], + [10, 0], + [10, 2], + [13, 2], + [13, 1], + [14, 2], + [14, 2], + [14, 2], + [14, 2], + [14, 2], + [16, 0], + [16, 1], + [22, 2], + [22, 2], + [25, 0], + [25, 2], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 1: + return o[a - 1]; + case 2: + return r.setDirection(o[a - 3]), o[a - 1]; + case 4: + r.setOptions(o[a - 1]), (this.$ = o[a]); + break; + case 5: + (o[a - 1] += o[a]), (this.$ = o[a - 1]); + break; + case 7: + this.$ = []; + break; + case 8: + o[a - 1].push(o[a]), (this.$ = o[a - 1]); + break; + case 9: + this.$ = o[a - 1]; + break; + case 11: + r.commit(o[a]); + break; + case 12: + r.branch(o[a]); + break; + case 13: + r.checkout(o[a]); + break; + case 14: + r.merge(o[a]); + break; + case 15: + r.reset(o[a]); + break; + case 16: + this.$ = ''; + break; + case 17: + this.$ = o[a]; + break; + case 18: + this.$ = o[a - 1] + ':' + o[a]; + break; + case 19: + (this.$ = o[a - 1] + ':' + r.count), (r.count = 0); + break; + case 20: + r.count = 0; + break; + case 21: + r.count += 1; + } + }, + table: [ + { 3: 1, 4: [1, 2] }, + { 1: [3] }, + { 5: [1, 3], 8: [1, 4] }, + { 6: 5, 7: t, 9: 6, 12: n }, + { 5: [1, 8] }, + { 7: [1, 9] }, + e(r, [2, 7], { 10: 10, 11: [1, 11] }), + e(i, [2, 6]), + { 6: 12, 7: t, 9: 6, 12: n }, + { 1: [2, 1] }, + { + 7: [2, 4], + 12: [1, 15], + 13: 13, + 14: 14, + 15: [1, 16], + 17: [1, 17], + 19: [1, 18], + 20: [1, 19], + 21: [1, 20], + }, + e(i, [2, 5]), + { 7: [1, 21] }, + e(r, [2, 8]), + { 12: [1, 22] }, + e(r, [2, 10]), + { 12: [2, 16], 16: 23, 23: [1, 24] }, + { 18: [1, 25] }, + { 18: [1, 26] }, + { 18: [1, 27] }, + { 18: [1, 30], 22: 28, 24: [1, 29] }, + { 1: [2, 2] }, + e(r, [2, 9]), + { 12: [2, 11] }, + { 12: [2, 17] }, + { 12: [2, 12] }, + { 12: [2, 13] }, + { 12: [2, 14] }, + { 12: [2, 15] }, + { 12: o, 25: 31, 26: s }, + { 12: o, 25: 33, 26: s }, + { 12: [2, 18] }, + { 12: o, 25: 34, 26: s }, + { 12: [2, 19] }, + { 12: [2, 21] }, + ], + defaultActions: { + 9: [2, 1], + 21: [2, 2], + 23: [2, 11], + 24: [2, 17], + 25: [2, 12], + 26: [2, 13], + 27: [2, 14], + 28: [2, 15], + 31: [2, 18], + 33: [2, 19], + 34: [2, 21], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + u = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return 12; + case 1: + case 2: + case 3: + break; + case 4: + return 4; + case 5: + return 15; + case 6: + return 17; + case 7: + return 20; + case 8: + return 21; + case 9: + return 19; + case 10: + case 11: + return 8; + case 12: + return 5; + case 13: + return 26; + case 14: + this.begin('options'); + break; + case 15: + this.popState(); + break; + case 16: + return 11; + case 17: + this.begin('string'); + break; + case 18: + this.popState(); + break; + case 19: + return 23; + case 20: + return 18; + case 21: + return 7; + } + }, + rules: [ + /^(?:(\r?\n)+)/i, + /^(?:\s+)/i, + /^(?:#[^\n]*)/i, + /^(?:%[^\n]*)/i, + /^(?:gitGraph\b)/i, + /^(?:commit\b)/i, + /^(?:branch\b)/i, + /^(?:merge\b)/i, + /^(?:reset\b)/i, + /^(?:checkout\b)/i, + /^(?:LR\b)/i, + /^(?:BT\b)/i, + /^(?::)/i, + /^(?:\^)/i, + /^(?:options\r?\n)/i, + /^(?:end\r?\n)/i, + /^(?:[^\n]+\r?\n)/i, + /^(?:["])/i, + /^(?:["])/i, + /^(?:[^"]*)/i, + /^(?:[a-zA-Z][-_\.a-zA-Z0-9]*[-_a-zA-Z0-9])/i, + /^(?:$)/i, + ], + conditions: { + options: { rules: [15, 16], inclusive: !1 }, + string: { rules: [18, 19], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 1, + 2, + 3, + 4, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 17, + 20, + 21, + ], + inclusive: !0, + }, + }, + }; + function l() { + this.yy = {}; + } + return ( + (a.lexer = u), (l.prototype = a), (a.Parser = l), new l() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/git/styles.js': + /*!************************************!*\ !*** ./src/diagrams/git/styles.js ***! \************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(){return"\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n"}},"./src/diagrams/info/infoDb.js": -/*!*************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function () { + return "\n .commit-id,\n .commit-msg,\n .branch-label {\n fill: lightgrey;\n color: lightgrey;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n }\n"; + }); + }, + './src/diagrams/info/infoDb.js': + /*!*************************************!*\ !*** ./src/diagrams/info/infoDb.js ***! \*************************************/ -/*! exports provided: setMessage, getMessage, setInfo, getInfo, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setMessage",(function(){return s})),n.d(t,"getMessage",(function(){return a})),n.d(t,"setInfo",(function(){return u})),n.d(t,"getInfo",(function(){return l}));var r=n(/*! ../../logger */"./src/logger.js"),i="",o=!1,s=function(e){r.logger.debug("Setting message to: "+e),i=e},a=function(){return i},u=function(e){o=e},l=function(){return o};t.default={setMessage:s,getMessage:a,setInfo:u,getInfo:l}},"./src/diagrams/info/infoRenderer.js": -/*!*******************************************!*\ + /*! exports provided: setMessage, getMessage, setInfo, getInfo, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'setMessage', function () { + return s; + }), + n.d(t, 'getMessage', function () { + return a; + }), + n.d(t, 'setInfo', function () { + return u; + }), + n.d(t, 'getInfo', function () { + return l; + }); + var r = n(/*! ../../logger */ './src/logger.js'), + i = '', + o = !1, + s = function (e) { + r.logger.debug('Setting message to: ' + e), (i = e); + }, + a = function () { + return i; + }, + u = function (e) { + o = e; + }, + l = function () { + return o; + }; + t.default = { + setMessage: s, + getMessage: a, + setInfo: u, + getInfo: l, + }; + }, + './src/diagrams/info/infoRenderer.js': + /*!*******************************************!*\ !*** ./src/diagrams/info/infoRenderer.js ***! \*******************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return l})),n.d(t,"draw",(function(){return c}));var r=n(/*! d3 */"d3"),i=n(/*! ./infoDb */"./src/diagrams/info/infoDb.js"),o=n(/*! ./parser/info */"./src/diagrams/info/parser/info.jison"),s=n.n(o),a=n(/*! ../../logger */"./src/logger.js"),u={},l=function(e){Object.keys(e).forEach((function(t){u[t]=e[t]}))},c=function(e,t,n){try{var o=s.a.parser;o.yy=i.default,a.logger.debug("Renering info diagram\n"+e),o.parse(e),a.logger.debug("Parsed info diagram");var u=Object(r.select)("#"+t);u.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("v "+n),u.attr("height",100),u.attr("width",400)}catch(e){a.logger.error("Error while rendering info diagram"),a.logger.error(e.message)}};t.default={setConf:l,draw:c}},"./src/diagrams/info/parser/info.jison": -/*!*********************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return l; + }), + n.d(t, 'draw', function () { + return c; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ./infoDb */ './src/diagrams/info/infoDb.js'), + o = n( + /*! ./parser/info */ './src/diagrams/info/parser/info.jison' + ), + s = n.n(o), + a = n(/*! ../../logger */ './src/logger.js'), + u = {}, + l = function (e) { + Object.keys(e).forEach(function (t) { + u[t] = e[t]; + }); + }, + c = function (e, t, n) { + try { + var o = s.a.parser; + (o.yy = i.default), + a.logger.debug('Renering info diagram\n' + e), + o.parse(e), + a.logger.debug('Parsed info diagram'); + var u = Object(r.select)('#' + t); + u + .append('g') + .append('text') + .attr('x', 100) + .attr('y', 40) + .attr('class', 'version') + .attr('font-size', '32px') + .style('text-anchor', 'middle') + .text('v ' + n), + u.attr('height', 100), + u.attr('width', 400); + } catch (e) { + a.logger.error('Error while rendering info diagram'), + a.logger.error(e.message); + } + }; + t.default = { setConf: l, draw: c }; + }, + './src/diagrams/info/parser/info.jison': + /*!*********************************************!*\ !*** ./src/diagrams/info/parser/info.jison ***! \*********************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(e,t,n,r,i,o,s){switch(o.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},e(t,[2,3]),e(t,[2,4]),e(t,[2,5]),e(t,[2,6])],defaultActions:{4:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return"space";case 3:return 10;case 4:return 6;case 5:return"TXT"}},rules:[/^(?:info\b)/i,/^(?:[\s\n\r]+)/i,/^(?:[\s]+)/i,/^(?:showInfo\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/info/styles.js": -/*!*************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [6, 9, 10], + n = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + info: 4, + document: 5, + EOF: 6, + line: 7, + statement: 8, + NL: 9, + showInfo: 10, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'info', + 6: 'EOF', + 9: 'NL', + 10: 'showInfo', + }, + productions_: [ + 0, + [3, 3], + [5, 0], + [5, 2], + [7, 1], + [7, 1], + [8, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + switch ((o.length, i)) { + case 1: + return r; + case 4: + break; + case 6: + r.setInfo(!0); + } + }, + table: [ + { 3: 1, 4: [1, 2] }, + { 1: [3] }, + e(t, [2, 2], { 5: 3 }), + { 6: [1, 4], 7: 5, 8: 6, 9: [1, 7], 10: [1, 8] }, + { 1: [2, 1] }, + e(t, [2, 3]), + e(t, [2, 4]), + e(t, [2, 5]), + e(t, [2, 6]), + ], + defaultActions: { 4: [2, 1] }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + r = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return 4; + case 1: + return 9; + case 2: + return 'space'; + case 3: + return 10; + case 4: + return 6; + case 5: + return 'TXT'; + } + }, + rules: [ + /^(?:info\b)/i, + /^(?:[\s\n\r]+)/i, + /^(?:[\s]+)/i, + /^(?:showInfo\b)/i, + /^(?:$)/i, + /^(?:.)/i, + ], + conditions: { + INITIAL: { rules: [0, 1, 2, 3, 4, 5], inclusive: !0 }, + }, + }; + function i() { + this.yy = {}; + } + return ( + (n.lexer = r), (i.prototype = n), (n.Parser = i), new i() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/info/styles.js': + /*!*************************************!*\ !*** ./src/diagrams/info/styles.js ***! \*************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(){return""}},"./src/diagrams/pie/parser/pie.jison": -/*!*******************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function () { + return ''; + }); + }, + './src/diagrams/pie/parser/pie.jison': + /*!*******************************************!*\ !*** ./src/diagrams/pie/parser/pie.jison ***! \*******************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,4],n=[1,5],r=[1,6],i=[1,7],o=[1,9],s=[1,10,12,19,20,21,22],a=[1,6,10,12,19,20,21,22],u=[19,20,21],l=[1,22],c=[6,19,20,21,22],d={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,line:8,statement:9,txt:10,value:11,title:12,title_value:13,openDirective:14,typeDirective:15,closeDirective:16,":":17,argDirective:18,NEWLINE:19,";":20,EOF:21,open_directive:22,type_directive:23,arg_directive:24,close_directive:25,$accept:0,$end:1},terminals_:{2:"error",6:"PIE",10:"txt",11:"value",12:"title",13:"title_value",17:":",19:"NEWLINE",20:";",21:"EOF",22:"open_directive",23:"type_directive",24:"arg_directive",25:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,2],[9,1],[5,3],[5,5],[4,1],[4,1],[4,1],[14,1],[15,1],[18,1],[16,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 6:this.$=o[a-1];break;case 8:r.addSection(o[a-1],r.cleanupValue(o[a]));break;case 9:this.$=o[a].trim(),r.setTitle(this.$);break;case 16:r.parseDirective("%%{","open_directive");break;case 17:r.parseDirective(o[a],"type_directive");break;case 18:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 19:r.parseDirective("}%%","close_directive","pie")}},table:[{3:1,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},{1:[3]},{3:10,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},{3:11,4:2,5:3,6:t,14:8,19:n,20:r,21:i,22:o},e(s,[2,4],{7:12}),e(a,[2,13]),e(a,[2,14]),e(a,[2,15]),{15:13,23:[1,14]},{23:[2,16]},{1:[2,1]},{1:[2,2]},e(u,[2,7],{14:8,8:15,9:16,5:19,1:[2,3],10:[1,17],12:[1,18],22:o}),{16:20,17:[1,21],25:l},e([17,25],[2,17]),e(s,[2,5]),{4:23,19:n,20:r,21:i},{11:[1,24]},{13:[1,25]},e(u,[2,10]),e(c,[2,11]),{18:26,24:[1,27]},e(c,[2,19]),e(s,[2,6]),e(u,[2,8]),e(u,[2,9]),{16:28,25:l},{25:[2,18]},e(c,[2,12])],defaultActions:{9:[2,16],10:[2,1],11:[2,2],27:[2,18]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},h={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),22;case 1:return this.begin("type_directive"),23;case 2:return this.popState(),this.begin("arg_directive"),17;case 3:return this.popState(),this.popState(),25;case 4:return 24;case 5:case 6:break;case 7:return 19;case 8:case 9:break;case 10:return this.begin("title"),12;case 11:return this.popState(),"title_value";case 12:this.begin("string");break;case 13:this.popState();break;case 14:return"txt";case 15:return 6;case 16:return"value";case 17:return 21}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:[\s]+)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:pie\b)/i,/^(?::[\s]*[\d]+(?:\.[\d]+)?)/i,/^(?:$)/i],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,15,16,17],inclusive:!0}}};function f(){this.yy={}}return d.lexer=h,f.prototype=d,d.Parser=f,new f}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/pie/pieDb.js": -/*!***********************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 4], + n = [1, 5], + r = [1, 6], + i = [1, 7], + o = [1, 9], + s = [1, 10, 12, 19, 20, 21, 22], + a = [1, 6, 10, 12, 19, 20, 21, 22], + u = [19, 20, 21], + l = [1, 22], + c = [6, 19, 20, 21, 22], + d = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + eol: 4, + directive: 5, + PIE: 6, + document: 7, + line: 8, + statement: 9, + txt: 10, + value: 11, + title: 12, + title_value: 13, + openDirective: 14, + typeDirective: 15, + closeDirective: 16, + ':': 17, + argDirective: 18, + NEWLINE: 19, + ';': 20, + EOF: 21, + open_directive: 22, + type_directive: 23, + arg_directive: 24, + close_directive: 25, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 6: 'PIE', + 10: 'txt', + 11: 'value', + 12: 'title', + 13: 'title_value', + 17: ':', + 19: 'NEWLINE', + 20: ';', + 21: 'EOF', + 22: 'open_directive', + 23: 'type_directive', + 24: 'arg_directive', + 25: 'close_directive', + }, + productions_: [ + 0, + [3, 2], + [3, 2], + [3, 2], + [7, 0], + [7, 2], + [8, 2], + [9, 0], + [9, 2], + [9, 2], + [9, 1], + [5, 3], + [5, 5], + [4, 1], + [4, 1], + [4, 1], + [14, 1], + [15, 1], + [18, 1], + [16, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 6: + this.$ = o[a - 1]; + break; + case 8: + r.addSection(o[a - 1], r.cleanupValue(o[a])); + break; + case 9: + (this.$ = o[a].trim()), r.setTitle(this.$); + break; + case 16: + r.parseDirective('%%{', 'open_directive'); + break; + case 17: + r.parseDirective(o[a], 'type_directive'); + break; + case 18: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 19: + r.parseDirective('}%%', 'close_directive', 'pie'); + } + }, + table: [ + { + 3: 1, + 4: 2, + 5: 3, + 6: t, + 14: 8, + 19: n, + 20: r, + 21: i, + 22: o, + }, + { 1: [3] }, + { + 3: 10, + 4: 2, + 5: 3, + 6: t, + 14: 8, + 19: n, + 20: r, + 21: i, + 22: o, + }, + { + 3: 11, + 4: 2, + 5: 3, + 6: t, + 14: 8, + 19: n, + 20: r, + 21: i, + 22: o, + }, + e(s, [2, 4], { 7: 12 }), + e(a, [2, 13]), + e(a, [2, 14]), + e(a, [2, 15]), + { 15: 13, 23: [1, 14] }, + { 23: [2, 16] }, + { 1: [2, 1] }, + { 1: [2, 2] }, + e(u, [2, 7], { + 14: 8, + 8: 15, + 9: 16, + 5: 19, + 1: [2, 3], + 10: [1, 17], + 12: [1, 18], + 22: o, + }), + { 16: 20, 17: [1, 21], 25: l }, + e([17, 25], [2, 17]), + e(s, [2, 5]), + { 4: 23, 19: n, 20: r, 21: i }, + { 11: [1, 24] }, + { 13: [1, 25] }, + e(u, [2, 10]), + e(c, [2, 11]), + { 18: 26, 24: [1, 27] }, + e(c, [2, 19]), + e(s, [2, 6]), + e(u, [2, 8]), + e(u, [2, 9]), + { 16: 28, 25: l }, + { 25: [2, 18] }, + e(c, [2, 12]), + ], + defaultActions: { + 9: [2, 16], + 10: [2, 1], + 11: [2, 2], + 27: [2, 18], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + h = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 22; + case 1: + return this.begin('type_directive'), 23; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 17 + ); + case 3: + return this.popState(), this.popState(), 25; + case 4: + return 24; + case 5: + case 6: + break; + case 7: + return 19; + case 8: + case 9: + break; + case 10: + return this.begin('title'), 12; + case 11: + return this.popState(), 'title_value'; + case 12: + this.begin('string'); + break; + case 13: + this.popState(); + break; + case 14: + return 'txt'; + case 15: + return 6; + case 16: + return 'value'; + case 17: + return 21; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:%%(?!\{)[^\n]*)/i, + /^(?:[^\}]%%[^\n]*)/i, + /^(?:[\n\r]+)/i, + /^(?:%%[^\n]*)/i, + /^(?:[\s]+)/i, + /^(?:title\b)/i, + /^(?:(?!\n||)*[^\n]*)/i, + /^(?:["])/i, + /^(?:["])/i, + /^(?:[^"]*)/i, + /^(?:pie\b)/i, + /^(?::[\s]*[\d]+(?:\.[\d]+)?)/i, + /^(?:$)/i, + ], + conditions: { + close_directive: { rules: [], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + open_directive: { rules: [1], inclusive: !1 }, + title: { rules: [11], inclusive: !1 }, + string: { rules: [13, 14], inclusive: !1 }, + INITIAL: { + rules: [0, 5, 6, 7, 8, 9, 10, 12, 15, 16, 17], + inclusive: !0, + }, + }, + }; + function f() { + this.yy = {}; + } + return ( + (d.lexer = h), (f.prototype = d), (d.Parser = f), new f() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/pie/pieDb.js': + /*!***********************************!*\ !*** ./src/diagrams/pie/pieDb.js ***! \***********************************/ -/*! exports provided: parseDirective, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return u}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),o=n(/*! ../../config */"./src/config.js"),s={},a="",u=function(e,t,n){i.default.parseDirective(this,e,t,n)};t.default={parseDirective:u,getConfig:function(){return o.getConfig().pie},addSection:function(e,t){void 0===s[e]&&(s[e]=t,r.logger.debug("Added new section :",e))},getSections:function(){return s},cleanupValue:function(e){return":"===e.substring(0,1)?(e=e.substring(1).trim(),Number(e.trim())):Number(e.trim())},clear:function(){s={},a=""},setTitle:function(e){a=e},getTitle:function(){return a}}},"./src/diagrams/pie/pieRenderer.js": -/*!*****************************************!*\ + /*! exports provided: parseDirective, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'parseDirective', function () { + return u; + }); + var r = n(/*! ../../logger */ './src/logger.js'), + i = n(/*! ../../mermaidAPI */ './src/mermaidAPI.js'), + o = n(/*! ../../config */ './src/config.js'), + s = {}, + a = '', + u = function (e, t, n) { + i.default.parseDirective(this, e, t, n); + }; + t.default = { + parseDirective: u, + getConfig: function () { + return o.getConfig().pie; + }, + addSection: function (e, t) { + void 0 === s[e] && + ((s[e] = t), r.logger.debug('Added new section :', e)); + }, + getSections: function () { + return s; + }, + cleanupValue: function (e) { + return ':' === e.substring(0, 1) + ? ((e = e.substring(1).trim()), Number(e.trim())) + : Number(e.trim()); + }, + clear: function () { + (s = {}), (a = ''); + }, + setTitle: function (e) { + a = e; + }, + getTitle: function () { + return a; + }, + }; + }, + './src/diagrams/pie/pieRenderer.js': + /*!*****************************************!*\ !*** ./src/diagrams/pie/pieRenderer.js ***! \*****************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return d})),n.d(t,"draw",(function(){return h}));var r,i=n(/*! d3 */"d3"),o=n(/*! ./pieDb */"./src/diagrams/pie/pieDb.js"),s=n(/*! ./parser/pie */"./src/diagrams/pie/parser/pie.jison"),a=n.n(s),u=n(/*! ../../logger */"./src/logger.js"),l=n(/*! ../../utils */"./src/utils.js"),c={},d=function(e){Object.keys(e).forEach((function(t){c[t]=e[t]}))},h=function(e,t){try{var n=a.a.parser;n.yy=o.default,u.logger.debug("Rendering info diagram\n"+e),n.yy.clear(),n.parse(e),u.logger.debug("Parsed info diagram");var s=document.getElementById(t);void 0===(r=s.parentElement.offsetWidth)&&(r=1200),void 0!==c.useWidth&&(r=c.useWidth);var d=Object(i.select)("#"+t);Object(l.configureSvgSize)(d,450,r,c.useMaxWidth),s.setAttribute("viewBox","0 0 "+r+" 450");var h=Math.min(r,450)/2-40,f=d.append("g").attr("transform","translate("+r/2+",225)"),p=o.default.getSections(),g=0;Object.keys(p).forEach((function(e){g+=p[e]}));var m=Object(i.scaleOrdinal)().domain(p).range(i.schemeSet2),_=Object(i.pie)().value((function(e){return e.value}))(Object(i.entries)(p)),y=Object(i.arc)().innerRadius(0).outerRadius(h);f.selectAll("mySlices").data(_).enter().append("path").attr("d",y).attr("fill",(function(e){return m(e.data.key)})).attr("stroke","black").style("stroke-width","2px").style("opacity",.7),f.selectAll("mySlices").data(_).enter().append("text").text((function(e){return(e.data.value/g*100).toFixed(0)+"%"})).attr("transform",(function(e){return"translate("+y.centroid(e)+")"})).style("text-anchor","middle").attr("class","slice").style("font-size",17),f.append("text").text(n.yy.getTitle()).attr("x",0).attr("y",-200).attr("class","pieTitleText");var v=f.selectAll(".legend").data(m.domain()).enter().append("g").attr("class","legend").attr("transform",(function(e,t){return"translate(216,"+(22*t-22*m.domain().length/2)+")"}));v.append("rect").attr("width",18).attr("height",18).style("fill",m).style("stroke",m),v.append("text").attr("x",22).attr("y",14).text((function(e){return e}))}catch(e){u.logger.error("Error while rendering info diagram"),u.logger.error(e)}};t.default={setConf:d,draw:h}},"./src/diagrams/pie/styles.js": -/*!************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return d; + }), + n.d(t, 'draw', function () { + return h; + }); + var r, + i = n(/*! d3 */ 'd3'), + o = n(/*! ./pieDb */ './src/diagrams/pie/pieDb.js'), + s = n( + /*! ./parser/pie */ './src/diagrams/pie/parser/pie.jison' + ), + a = n.n(s), + u = n(/*! ../../logger */ './src/logger.js'), + l = n(/*! ../../utils */ './src/utils.js'), + c = {}, + d = function (e) { + Object.keys(e).forEach(function (t) { + c[t] = e[t]; + }); + }, + h = function (e, t) { + try { + var n = a.a.parser; + (n.yy = o.default), + u.logger.debug('Rendering info diagram\n' + e), + n.yy.clear(), + n.parse(e), + u.logger.debug('Parsed info diagram'); + var s = document.getElementById(t); + void 0 === (r = s.parentElement.offsetWidth) && (r = 1200), + void 0 !== c.useWidth && (r = c.useWidth); + var d = Object(i.select)('#' + t); + Object(l.configureSvgSize)(d, 450, r, c.useMaxWidth), + s.setAttribute('viewBox', '0 0 ' + r + ' 450'); + var h = Math.min(r, 450) / 2 - 40, + f = d + .append('g') + .attr('transform', 'translate(' + r / 2 + ',225)'), + p = o.default.getSections(), + g = 0; + Object.keys(p).forEach(function (e) { + g += p[e]; + }); + var m = Object(i.scaleOrdinal)() + .domain(p) + .range(i.schemeSet2), + _ = Object(i.pie)().value(function (e) { + return e.value; + })(Object(i.entries)(p)), + y = Object(i.arc)().innerRadius(0).outerRadius(h); + f + .selectAll('mySlices') + .data(_) + .enter() + .append('path') + .attr('d', y) + .attr('fill', function (e) { + return m(e.data.key); + }) + .attr('stroke', 'black') + .style('stroke-width', '2px') + .style('opacity', 0.7), + f + .selectAll('mySlices') + .data(_) + .enter() + .append('text') + .text(function (e) { + return ((e.data.value / g) * 100).toFixed(0) + '%'; + }) + .attr('transform', function (e) { + return 'translate(' + y.centroid(e) + ')'; + }) + .style('text-anchor', 'middle') + .attr('class', 'slice') + .style('font-size', 17), + f + .append('text') + .text(n.yy.getTitle()) + .attr('x', 0) + .attr('y', -200) + .attr('class', 'pieTitleText'); + var v = f + .selectAll('.legend') + .data(m.domain()) + .enter() + .append('g') + .attr('class', 'legend') + .attr('transform', function (e, t) { + return ( + 'translate(216,' + + (22 * t - (22 * m.domain().length) / 2) + + ')' + ); + }); + v + .append('rect') + .attr('width', 18) + .attr('height', 18) + .style('fill', m) + .style('stroke', m), + v + .append('text') + .attr('x', 22) + .attr('y', 14) + .text(function (e) { + return e; + }); + } catch (e) { + u.logger.error('Error while rendering info diagram'), + u.logger.error(e); + } + }; + t.default = { setConf: d, draw: h }; + }, + './src/diagrams/pie/styles.js': + /*!************************************!*\ !*** ./src/diagrams/pie/styles.js ***! \************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return".pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ".concat(e.taskTextDarkColor,";\n font-family: ").concat(e.fontFamily,";\n }\n .slice {\n font-family: ").concat(e.fontFamily,";\n fill: ").concat(e.textColor,";\n // fill: white;\n }\n .legend text {\n fill: ").concat(e.taskTextDarkColor,";\n font-family: ").concat(e.fontFamily,";\n font-size: 17px;\n }\n")}},"./src/diagrams/sequence/parser/sequenceDiagram.jison": -/*!************************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return '.pieTitleText {\n text-anchor: middle;\n font-size: 25px;\n fill: ' + .concat(e.taskTextDarkColor, ';\n font-family: ') + .concat( + e.fontFamily, + ';\n }\n .slice {\n font-family: ' + ) + .concat(e.fontFamily, ';\n fill: ') + .concat( + e.textColor, + ';\n // fill: white;\n }\n .legend text {\n fill: ' + ) + .concat(e.taskTextDarkColor, ';\n font-family: ') + .concat(e.fontFamily, ';\n font-size: 17px;\n }\n'); + }); + }, + './src/diagrams/sequence/parser/sequenceDiagram.jison': + /*!************************************************************!*\ !*** ./src/diagrams/sequence/parser/sequenceDiagram.jison ***! \************************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],i=[1,7],o=[2,5],s=[1,15],a=[1,17],u=[1,18],l=[1,20],c=[1,21],d=[1,22],h=[1,24],f=[1,25],p=[1,26],g=[1,27],m=[1,28],_=[1,29],y=[1,32],v=[1,33],b=[1,36],w=[1,4,5,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],C=[1,44],S=[4,5,16,21,22,23,25,27,28,29,30,31,33,37,48,56],x=[4,5,16,21,22,23,25,27,28,29,30,31,33,36,37,48,56],L=[4,5,16,21,22,23,25,27,28,29,30,31,33,35,37,48,56],k=[46,47,48],M=[1,4,5,7,16,21,22,23,25,27,28,29,30,31,33,35,36,37,48,56],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,":":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,signal:20,autonumber:21,activate:22,deactivate:23,note_statement:24,title:25,text2:26,loop:27,end:28,rect:29,opt:30,alt:31,else_sections:32,par:33,par_sections:34,and:35,else:36,note:37,placement:38,over:39,actor_pair:40,spaceList:41,",":42,left_of:43,right_of:44,signaltype:45,"+":46,"-":47,ACTOR:48,SOLID_OPEN_ARROW:49,DOTTED_OPEN_ARROW:50,SOLID_ARROW:51,DOTTED_ARROW:52,SOLID_CROSS:53,DOTTED_CROSS:54,TXT:55,open_directive:56,type_directive:57,arg_directive:58,close_directive:59,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",7:"SD",14:":",16:"participant",18:"AS",19:"restOfLine",21:"autonumber",22:"activate",23:"deactivate",25:"title",27:"loop",28:"end",29:"rect",30:"opt",31:"alt",33:"par",35:"and",36:"else",37:"note",39:"over",42:",",43:"left_of",44:"right_of",46:"+",47:"-",48:"ACTOR",49:"SOLID_OPEN_ARROW",50:"DOTTED_OPEN_ARROW",51:"SOLID_ARROW",52:"DOTTED_ARROW",53:"SOLID_CROSS",54:"DOTTED_CROSS",55:"TXT",56:"open_directive",57:"type_directive",58:"arg_directive",59:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,2],[10,1],[10,3],[10,3],[10,2],[10,3],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[34,1],[34,4],[32,1],[32,4],[24,4],[24,4],[41,2],[41,1],[40,3],[40,1],[38,1],[38,1],[20,5],[20,5],[20,4],[17,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[26,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:return r.apply(o[a]),o[a];case 5:this.$=[];break;case 6:o[a-1].push(o[a]),this.$=o[a-1];break;case 7:case 8:this.$=o[a];break;case 9:this.$=[];break;case 12:o[a-3].description=r.parseMessage(o[a-1]),this.$=o[a-3];break;case 13:this.$=o[a-1];break;case 15:r.enableSequenceNumbers();break;case 16:this.$={type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]};break;case 17:this.$={type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-1]};break;case 19:this.$=[{type:"setTitle",text:o[a-1]}];break;case 20:o[a-1].unshift({type:"loopStart",loopText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.LOOP_START}),o[a-1].push({type:"loopEnd",loopText:o[a-2],signalType:r.LINETYPE.LOOP_END}),this.$=o[a-1];break;case 21:o[a-1].unshift({type:"rectStart",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_START}),o[a-1].push({type:"rectEnd",color:r.parseMessage(o[a-2]),signalType:r.LINETYPE.RECT_END}),this.$=o[a-1];break;case 22:o[a-1].unshift({type:"optStart",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_START}),o[a-1].push({type:"optEnd",optText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.OPT_END}),this.$=o[a-1];break;case 23:o[a-1].unshift({type:"altStart",altText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.ALT_START}),o[a-1].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=o[a-1];break;case 24:o[a-1].unshift({type:"parStart",parText:r.parseMessage(o[a-2]),signalType:r.LINETYPE.PAR_START}),o[a-1].push({type:"parEnd",signalType:r.LINETYPE.PAR_END}),this.$=o[a-1];break;case 27:this.$=o[a-3].concat([{type:"and",parText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.PAR_AND},o[a]]);break;case 29:this.$=o[a-3].concat([{type:"else",altText:r.parseMessage(o[a-1]),signalType:r.LINETYPE.ALT_ELSE},o[a]]);break;case 30:this.$=[o[a-1],{type:"addNote",placement:o[a-2],actor:o[a-1].actor,text:o[a]}];break;case 31:o[a-2]=[].concat(o[a-1],o[a-1]).slice(0,2),o[a-2][0]=o[a-2][0].actor,o[a-2][1]=o[a-2][1].actor,this.$=[o[a-1],{type:"addNote",placement:r.PLACEMENT.OVER,actor:o[a-2].slice(0,2),text:o[a]}];break;case 34:this.$=[o[a-2],o[a]];break;case 35:this.$=o[a];break;case 36:this.$=r.PLACEMENT.LEFTOF;break;case 37:this.$=r.PLACEMENT.RIGHTOF;break;case 38:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeStart",signalType:r.LINETYPE.ACTIVE_START,actor:o[a-1]}];break;case 39:this.$=[o[a-4],o[a-1],{type:"addMessage",from:o[a-4].actor,to:o[a-1].actor,signalType:o[a-3],msg:o[a]},{type:"activeEnd",signalType:r.LINETYPE.ACTIVE_END,actor:o[a-4]}];break;case 40:this.$=[o[a-3],o[a-1],{type:"addMessage",from:o[a-3].actor,to:o[a-1].actor,signalType:o[a-2],msg:o[a]}];break;case 41:this.$={type:"addActor",actor:o[a]};break;case 42:this.$=r.LINETYPE.SOLID_OPEN;break;case 43:this.$=r.LINETYPE.DOTTED_OPEN;break;case 44:this.$=r.LINETYPE.SOLID;break;case 45:this.$=r.LINETYPE.DOTTED;break;case 46:this.$=r.LINETYPE.SOLID_CROSS;break;case 47:this.$=r.LINETYPE.DOTTED_CROSS;break;case 48:this.$=r.parseMessage(o[a].trim().substring(1));break;case 49:r.parseDirective("%%{","open_directive");break;case 50:r.parseDirective(o[a],"type_directive");break;case 51:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 52:r.parseDirective("}%%","close_directive","sequence")}},table:[{3:1,4:t,5:n,6:4,7:r,11:6,56:i},{1:[3]},{3:8,4:t,5:n,6:4,7:r,11:6,56:i},{3:9,4:t,5:n,6:4,7:r,11:6,56:i},{3:10,4:t,5:n,6:4,7:r,11:6,56:i},e([1,4,5,16,21,22,23,25,27,29,30,31,33,37,48,56],o,{8:11}),{12:12,57:[1,13]},{57:[2,49]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},{13:34,14:[1,35],59:b},e([14,59],[2,50]),e(w,[2,6]),{6:30,10:37,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,29:p,30:g,31:m,33:_,37:y,48:v,56:i},e(w,[2,8]),e(w,[2,9]),{17:38,48:v},{5:[1,39]},e(w,[2,15]),{17:40,48:v},{17:41,48:v},{5:[1,42]},{26:43,55:C},{19:[1,45]},{19:[1,46]},{19:[1,47]},{19:[1,48]},{19:[1,49]},e(w,[2,25]),{45:50,49:[1,51],50:[1,52],51:[1,53],52:[1,54],53:[1,55],54:[1,56]},{38:57,39:[1,58],43:[1,59],44:[1,60]},e([5,18,42,49,50,51,52,53,54,55],[2,41]),{5:[1,61]},{15:62,58:[1,63]},{5:[2,52]},e(w,[2,7]),{5:[1,65],18:[1,64]},e(w,[2,14]),{5:[1,66]},{5:[1,67]},e(w,[2,18]),{5:[1,68]},{5:[2,48]},e(S,o,{8:69}),e(S,o,{8:70}),e(S,o,{8:71}),e(x,o,{32:72,8:73}),e(L,o,{34:74,8:75}),{17:78,46:[1,76],47:[1,77],48:v},e(k,[2,42]),e(k,[2,43]),e(k,[2,44]),e(k,[2,45]),e(k,[2,46]),e(k,[2,47]),{17:79,48:v},{17:81,40:80,48:v},{48:[2,36]},{48:[2,37]},e(M,[2,10]),{13:82,59:b},{59:[2,51]},{19:[1,83]},e(w,[2,13]),e(w,[2,16]),e(w,[2,17]),e(w,[2,19]),{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,84],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,85],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[1,86],29:p,30:g,31:m,33:_,37:y,48:v,56:i},{28:[1,87]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[2,28],29:p,30:g,31:m,33:_,36:[1,88],37:y,48:v,56:i},{28:[1,89]},{4:s,5:a,6:30,9:14,10:16,11:6,16:u,17:31,20:19,21:l,22:c,23:d,24:23,25:h,27:f,28:[2,26],29:p,30:g,31:m,33:_,35:[1,90],37:y,48:v,56:i},{17:91,48:v},{17:92,48:v},{26:93,55:C},{26:94,55:C},{26:95,55:C},{42:[1,96],55:[2,35]},{5:[1,97]},{5:[1,98]},e(w,[2,20]),e(w,[2,21]),e(w,[2,22]),e(w,[2,23]),{19:[1,99]},e(w,[2,24]),{19:[1,100]},{26:101,55:C},{26:102,55:C},{5:[2,40]},{5:[2,30]},{5:[2,31]},{17:103,48:v},e(M,[2,11]),e(w,[2,12]),e(x,o,{8:73,32:104}),e(L,o,{8:75,34:105}),{5:[2,38]},{5:[2,39]},{55:[2,34]},{28:[2,29]},{28:[2,27]}],defaultActions:{7:[2,49],8:[2,1],9:[2,2],10:[2,3],36:[2,52],44:[2,48],59:[2,36],60:[2,37],63:[2,51],93:[2,40],94:[2,30],95:[2,31],101:[2,38],102:[2,39],103:[2,34],104:[2,29],105:[2,27]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},E={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),56;case 1:return this.begin("type_directive"),57;case 2:return this.popState(),this.begin("arg_directive"),14;case 3:return this.popState(),this.popState(),59;case 4:return 58;case 5:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return this.begin("ID"),16;case 12:return t.yytext=t.yytext.trim(),this.begin("ALIAS"),48;case 13:return this.popState(),this.popState(),this.begin("LINE"),18;case 14:return this.popState(),this.popState(),5;case 15:return this.begin("LINE"),27;case 16:return this.begin("LINE"),29;case 17:return this.begin("LINE"),30;case 18:return this.begin("LINE"),31;case 19:return this.begin("LINE"),36;case 20:return this.begin("LINE"),33;case 21:return this.begin("LINE"),35;case 22:return this.popState(),19;case 23:return 28;case 24:return 43;case 25:return 44;case 26:return 39;case 27:return 37;case 28:return this.begin("ID"),22;case 29:return this.begin("ID"),23;case 30:return 25;case 31:return 7;case 32:return 21;case 33:return 42;case 34:return 5;case 35:return t.yytext=t.yytext.trim(),48;case 36:return 51;case 37:return 52;case 38:return 49;case 39:return 50;case 40:return 53;case 41:return 54;case 42:return 55;case 43:return 46;case 44:return 47;case 45:return 5;case 46:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:participant\b)/i,/^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i,/^(?:as\b)/i,/^(?:(?:))/i,/^(?:loop\b)/i,/^(?:rect\b)/i,/^(?:opt\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:par\b)/i,/^(?:and\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:activate\b)/i,/^(?:deactivate\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:autonumber\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?::(?:(?:no)?wrap)?[^#\n;]+)/i,/^(?:\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,12],inclusive:!1},ALIAS:{rules:[7,8,13,14],inclusive:!1},LINE:{rules:[7,8,22],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],inclusive:!0}}};function T(){this.yy={}}return D.lexer=E,T.prototype=D,D.Parser=T,new T}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/sequence/sequenceDb.js": -/*!*********************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 2], + n = [1, 3], + r = [1, 5], + i = [1, 7], + o = [2, 5], + s = [1, 15], + a = [1, 17], + u = [1, 18], + l = [1, 20], + c = [1, 21], + d = [1, 22], + h = [1, 24], + f = [1, 25], + p = [1, 26], + g = [1, 27], + m = [1, 28], + _ = [1, 29], + y = [1, 32], + v = [1, 33], + b = [1, 36], + w = [ + 1, + 4, + 5, + 16, + 21, + 22, + 23, + 25, + 27, + 28, + 29, + 30, + 31, + 33, + 35, + 36, + 37, + 48, + 56, + ], + C = [1, 44], + S = [ + 4, + 5, + 16, + 21, + 22, + 23, + 25, + 27, + 28, + 29, + 30, + 31, + 33, + 37, + 48, + 56, + ], + x = [ + 4, + 5, + 16, + 21, + 22, + 23, + 25, + 27, + 28, + 29, + 30, + 31, + 33, + 36, + 37, + 48, + 56, + ], + L = [ + 4, + 5, + 16, + 21, + 22, + 23, + 25, + 27, + 28, + 29, + 30, + 31, + 33, + 35, + 37, + 48, + 56, + ], + k = [46, 47, 48], + M = [ + 1, + 4, + 5, + 7, + 16, + 21, + 22, + 23, + 25, + 27, + 28, + 29, + 30, + 31, + 33, + 35, + 36, + 37, + 48, + 56, + ], + D = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + SPACE: 4, + NEWLINE: 5, + directive: 6, + SD: 7, + document: 8, + line: 9, + statement: 10, + openDirective: 11, + typeDirective: 12, + closeDirective: 13, + ':': 14, + argDirective: 15, + participant: 16, + actor: 17, + AS: 18, + restOfLine: 19, + signal: 20, + autonumber: 21, + activate: 22, + deactivate: 23, + note_statement: 24, + title: 25, + text2: 26, + loop: 27, + end: 28, + rect: 29, + opt: 30, + alt: 31, + else_sections: 32, + par: 33, + par_sections: 34, + and: 35, + else: 36, + note: 37, + placement: 38, + over: 39, + actor_pair: 40, + spaceList: 41, + ',': 42, + left_of: 43, + right_of: 44, + signaltype: 45, + '+': 46, + '-': 47, + ACTOR: 48, + SOLID_OPEN_ARROW: 49, + DOTTED_OPEN_ARROW: 50, + SOLID_ARROW: 51, + DOTTED_ARROW: 52, + SOLID_CROSS: 53, + DOTTED_CROSS: 54, + TXT: 55, + open_directive: 56, + type_directive: 57, + arg_directive: 58, + close_directive: 59, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'SPACE', + 5: 'NEWLINE', + 7: 'SD', + 14: ':', + 16: 'participant', + 18: 'AS', + 19: 'restOfLine', + 21: 'autonumber', + 22: 'activate', + 23: 'deactivate', + 25: 'title', + 27: 'loop', + 28: 'end', + 29: 'rect', + 30: 'opt', + 31: 'alt', + 33: 'par', + 35: 'and', + 36: 'else', + 37: 'note', + 39: 'over', + 42: ',', + 43: 'left_of', + 44: 'right_of', + 46: '+', + 47: '-', + 48: 'ACTOR', + 49: 'SOLID_OPEN_ARROW', + 50: 'DOTTED_OPEN_ARROW', + 51: 'SOLID_ARROW', + 52: 'DOTTED_ARROW', + 53: 'SOLID_CROSS', + 54: 'DOTTED_CROSS', + 55: 'TXT', + 56: 'open_directive', + 57: 'type_directive', + 58: 'arg_directive', + 59: 'close_directive', + }, + productions_: [ + 0, + [3, 2], + [3, 2], + [3, 2], + [3, 2], + [8, 0], + [8, 2], + [9, 2], + [9, 1], + [9, 1], + [6, 4], + [6, 6], + [10, 5], + [10, 3], + [10, 2], + [10, 1], + [10, 3], + [10, 3], + [10, 2], + [10, 3], + [10, 4], + [10, 4], + [10, 4], + [10, 4], + [10, 4], + [10, 1], + [34, 1], + [34, 4], + [32, 1], + [32, 4], + [24, 4], + [24, 4], + [41, 2], + [41, 1], + [40, 3], + [40, 1], + [38, 1], + [38, 1], + [20, 5], + [20, 5], + [20, 4], + [17, 1], + [45, 1], + [45, 1], + [45, 1], + [45, 1], + [45, 1], + [45, 1], + [26, 1], + [11, 1], + [12, 1], + [15, 1], + [13, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 4: + return r.apply(o[a]), o[a]; + case 5: + this.$ = []; + break; + case 6: + o[a - 1].push(o[a]), (this.$ = o[a - 1]); + break; + case 7: + case 8: + this.$ = o[a]; + break; + case 9: + this.$ = []; + break; + case 12: + (o[a - 3].description = r.parseMessage(o[a - 1])), + (this.$ = o[a - 3]); + break; + case 13: + this.$ = o[a - 1]; + break; + case 15: + r.enableSequenceNumbers(); + break; + case 16: + this.$ = { + type: 'activeStart', + signalType: r.LINETYPE.ACTIVE_START, + actor: o[a - 1], + }; + break; + case 17: + this.$ = { + type: 'activeEnd', + signalType: r.LINETYPE.ACTIVE_END, + actor: o[a - 1], + }; + break; + case 19: + this.$ = [{ type: 'setTitle', text: o[a - 1] }]; + break; + case 20: + o[a - 1].unshift({ + type: 'loopStart', + loopText: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.LOOP_START, + }), + o[a - 1].push({ + type: 'loopEnd', + loopText: o[a - 2], + signalType: r.LINETYPE.LOOP_END, + }), + (this.$ = o[a - 1]); + break; + case 21: + o[a - 1].unshift({ + type: 'rectStart', + color: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.RECT_START, + }), + o[a - 1].push({ + type: 'rectEnd', + color: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.RECT_END, + }), + (this.$ = o[a - 1]); + break; + case 22: + o[a - 1].unshift({ + type: 'optStart', + optText: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.OPT_START, + }), + o[a - 1].push({ + type: 'optEnd', + optText: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.OPT_END, + }), + (this.$ = o[a - 1]); + break; + case 23: + o[a - 1].unshift({ + type: 'altStart', + altText: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.ALT_START, + }), + o[a - 1].push({ + type: 'altEnd', + signalType: r.LINETYPE.ALT_END, + }), + (this.$ = o[a - 1]); + break; + case 24: + o[a - 1].unshift({ + type: 'parStart', + parText: r.parseMessage(o[a - 2]), + signalType: r.LINETYPE.PAR_START, + }), + o[a - 1].push({ + type: 'parEnd', + signalType: r.LINETYPE.PAR_END, + }), + (this.$ = o[a - 1]); + break; + case 27: + this.$ = o[a - 3].concat([ + { + type: 'and', + parText: r.parseMessage(o[a - 1]), + signalType: r.LINETYPE.PAR_AND, + }, + o[a], + ]); + break; + case 29: + this.$ = o[a - 3].concat([ + { + type: 'else', + altText: r.parseMessage(o[a - 1]), + signalType: r.LINETYPE.ALT_ELSE, + }, + o[a], + ]); + break; + case 30: + this.$ = [ + o[a - 1], + { + type: 'addNote', + placement: o[a - 2], + actor: o[a - 1].actor, + text: o[a], + }, + ]; + break; + case 31: + (o[a - 2] = [] + .concat(o[a - 1], o[a - 1]) + .slice(0, 2)), + (o[a - 2][0] = o[a - 2][0].actor), + (o[a - 2][1] = o[a - 2][1].actor), + (this.$ = [ + o[a - 1], + { + type: 'addNote', + placement: r.PLACEMENT.OVER, + actor: o[a - 2].slice(0, 2), + text: o[a], + }, + ]); + break; + case 34: + this.$ = [o[a - 2], o[a]]; + break; + case 35: + this.$ = o[a]; + break; + case 36: + this.$ = r.PLACEMENT.LEFTOF; + break; + case 37: + this.$ = r.PLACEMENT.RIGHTOF; + break; + case 38: + this.$ = [ + o[a - 4], + o[a - 1], + { + type: 'addMessage', + from: o[a - 4].actor, + to: o[a - 1].actor, + signalType: o[a - 3], + msg: o[a], + }, + { + type: 'activeStart', + signalType: r.LINETYPE.ACTIVE_START, + actor: o[a - 1], + }, + ]; + break; + case 39: + this.$ = [ + o[a - 4], + o[a - 1], + { + type: 'addMessage', + from: o[a - 4].actor, + to: o[a - 1].actor, + signalType: o[a - 3], + msg: o[a], + }, + { + type: 'activeEnd', + signalType: r.LINETYPE.ACTIVE_END, + actor: o[a - 4], + }, + ]; + break; + case 40: + this.$ = [ + o[a - 3], + o[a - 1], + { + type: 'addMessage', + from: o[a - 3].actor, + to: o[a - 1].actor, + signalType: o[a - 2], + msg: o[a], + }, + ]; + break; + case 41: + this.$ = { type: 'addActor', actor: o[a] }; + break; + case 42: + this.$ = r.LINETYPE.SOLID_OPEN; + break; + case 43: + this.$ = r.LINETYPE.DOTTED_OPEN; + break; + case 44: + this.$ = r.LINETYPE.SOLID; + break; + case 45: + this.$ = r.LINETYPE.DOTTED; + break; + case 46: + this.$ = r.LINETYPE.SOLID_CROSS; + break; + case 47: + this.$ = r.LINETYPE.DOTTED_CROSS; + break; + case 48: + this.$ = r.parseMessage(o[a].trim().substring(1)); + break; + case 49: + r.parseDirective('%%{', 'open_directive'); + break; + case 50: + r.parseDirective(o[a], 'type_directive'); + break; + case 51: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 52: + r.parseDirective( + '}%%', + 'close_directive', + 'sequence' + ); + } + }, + table: [ + { 3: 1, 4: t, 5: n, 6: 4, 7: r, 11: 6, 56: i }, + { 1: [3] }, + { 3: 8, 4: t, 5: n, 6: 4, 7: r, 11: 6, 56: i }, + { 3: 9, 4: t, 5: n, 6: 4, 7: r, 11: 6, 56: i }, + { 3: 10, 4: t, 5: n, 6: 4, 7: r, 11: 6, 56: i }, + e( + [ + 1, + 4, + 5, + 16, + 21, + 22, + 23, + 25, + 27, + 29, + 30, + 31, + 33, + 37, + 48, + 56, + ], + o, + { 8: 11 } + ), + { 12: 12, 57: [1, 13] }, + { 57: [2, 49] }, + { 1: [2, 1] }, + { 1: [2, 2] }, + { 1: [2, 3] }, + { + 1: [2, 4], + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 29: p, + 30: g, + 31: m, + 33: _, + 37: y, + 48: v, + 56: i, + }, + { 13: 34, 14: [1, 35], 59: b }, + e([14, 59], [2, 50]), + e(w, [2, 6]), + { + 6: 30, + 10: 37, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 29: p, + 30: g, + 31: m, + 33: _, + 37: y, + 48: v, + 56: i, + }, + e(w, [2, 8]), + e(w, [2, 9]), + { 17: 38, 48: v }, + { 5: [1, 39] }, + e(w, [2, 15]), + { 17: 40, 48: v }, + { 17: 41, 48: v }, + { 5: [1, 42] }, + { 26: 43, 55: C }, + { 19: [1, 45] }, + { 19: [1, 46] }, + { 19: [1, 47] }, + { 19: [1, 48] }, + { 19: [1, 49] }, + e(w, [2, 25]), + { + 45: 50, + 49: [1, 51], + 50: [1, 52], + 51: [1, 53], + 52: [1, 54], + 53: [1, 55], + 54: [1, 56], + }, + { 38: 57, 39: [1, 58], 43: [1, 59], 44: [1, 60] }, + e([5, 18, 42, 49, 50, 51, 52, 53, 54, 55], [2, 41]), + { 5: [1, 61] }, + { 15: 62, 58: [1, 63] }, + { 5: [2, 52] }, + e(w, [2, 7]), + { 5: [1, 65], 18: [1, 64] }, + e(w, [2, 14]), + { 5: [1, 66] }, + { 5: [1, 67] }, + e(w, [2, 18]), + { 5: [1, 68] }, + { 5: [2, 48] }, + e(S, o, { 8: 69 }), + e(S, o, { 8: 70 }), + e(S, o, { 8: 71 }), + e(x, o, { 32: 72, 8: 73 }), + e(L, o, { 34: 74, 8: 75 }), + { 17: 78, 46: [1, 76], 47: [1, 77], 48: v }, + e(k, [2, 42]), + e(k, [2, 43]), + e(k, [2, 44]), + e(k, [2, 45]), + e(k, [2, 46]), + e(k, [2, 47]), + { 17: 79, 48: v }, + { 17: 81, 40: 80, 48: v }, + { 48: [2, 36] }, + { 48: [2, 37] }, + e(M, [2, 10]), + { 13: 82, 59: b }, + { 59: [2, 51] }, + { 19: [1, 83] }, + e(w, [2, 13]), + e(w, [2, 16]), + e(w, [2, 17]), + e(w, [2, 19]), + { + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 28: [1, 84], + 29: p, + 30: g, + 31: m, + 33: _, + 37: y, + 48: v, + 56: i, + }, + { + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 28: [1, 85], + 29: p, + 30: g, + 31: m, + 33: _, + 37: y, + 48: v, + 56: i, + }, + { + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 28: [1, 86], + 29: p, + 30: g, + 31: m, + 33: _, + 37: y, + 48: v, + 56: i, + }, + { 28: [1, 87] }, + { + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 28: [2, 28], + 29: p, + 30: g, + 31: m, + 33: _, + 36: [1, 88], + 37: y, + 48: v, + 56: i, + }, + { 28: [1, 89] }, + { + 4: s, + 5: a, + 6: 30, + 9: 14, + 10: 16, + 11: 6, + 16: u, + 17: 31, + 20: 19, + 21: l, + 22: c, + 23: d, + 24: 23, + 25: h, + 27: f, + 28: [2, 26], + 29: p, + 30: g, + 31: m, + 33: _, + 35: [1, 90], + 37: y, + 48: v, + 56: i, + }, + { 17: 91, 48: v }, + { 17: 92, 48: v }, + { 26: 93, 55: C }, + { 26: 94, 55: C }, + { 26: 95, 55: C }, + { 42: [1, 96], 55: [2, 35] }, + { 5: [1, 97] }, + { 5: [1, 98] }, + e(w, [2, 20]), + e(w, [2, 21]), + e(w, [2, 22]), + e(w, [2, 23]), + { 19: [1, 99] }, + e(w, [2, 24]), + { 19: [1, 100] }, + { 26: 101, 55: C }, + { 26: 102, 55: C }, + { 5: [2, 40] }, + { 5: [2, 30] }, + { 5: [2, 31] }, + { 17: 103, 48: v }, + e(M, [2, 11]), + e(w, [2, 12]), + e(x, o, { 8: 73, 32: 104 }), + e(L, o, { 8: 75, 34: 105 }), + { 5: [2, 38] }, + { 5: [2, 39] }, + { 55: [2, 34] }, + { 28: [2, 29] }, + { 28: [2, 27] }, + ], + defaultActions: { + 7: [2, 49], + 8: [2, 1], + 9: [2, 2], + 10: [2, 3], + 36: [2, 52], + 44: [2, 48], + 59: [2, 36], + 60: [2, 37], + 63: [2, 51], + 93: [2, 40], + 94: [2, 30], + 95: [2, 31], + 101: [2, 38], + 102: [2, 39], + 103: [2, 34], + 104: [2, 29], + 105: [2, 27], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + E = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 56; + case 1: + return this.begin('type_directive'), 57; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 14 + ); + case 3: + return this.popState(), this.popState(), 59; + case 4: + return 58; + case 5: + return 5; + case 6: + case 7: + case 8: + case 9: + case 10: + break; + case 11: + return this.begin('ID'), 16; + case 12: + return ( + (t.yytext = t.yytext.trim()), + this.begin('ALIAS'), + 48 + ); + case 13: + return ( + this.popState(), + this.popState(), + this.begin('LINE'), + 18 + ); + case 14: + return this.popState(), this.popState(), 5; + case 15: + return this.begin('LINE'), 27; + case 16: + return this.begin('LINE'), 29; + case 17: + return this.begin('LINE'), 30; + case 18: + return this.begin('LINE'), 31; + case 19: + return this.begin('LINE'), 36; + case 20: + return this.begin('LINE'), 33; + case 21: + return this.begin('LINE'), 35; + case 22: + return this.popState(), 19; + case 23: + return 28; + case 24: + return 43; + case 25: + return 44; + case 26: + return 39; + case 27: + return 37; + case 28: + return this.begin('ID'), 22; + case 29: + return this.begin('ID'), 23; + case 30: + return 25; + case 31: + return 7; + case 32: + return 21; + case 33: + return 42; + case 34: + return 5; + case 35: + return (t.yytext = t.yytext.trim()), 48; + case 36: + return 51; + case 37: + return 52; + case 38: + return 49; + case 39: + return 50; + case 40: + return 53; + case 41: + return 54; + case 42: + return 55; + case 43: + return 46; + case 44: + return 47; + case 45: + return 5; + case 46: + return 'INVALID'; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:[\n]+)/i, + /^(?:\s+)/i, + /^(?:((?!\n)\s)+)/i, + /^(?:#[^\n]*)/i, + /^(?:%(?!\{)[^\n]*)/i, + /^(?:[^\}]%%[^\n]*)/i, + /^(?:participant\b)/i, + /^(?:[^\->:\n,;]+?(?=((?!\n)\s)+as(?!\n)\s|[#\n;]|$))/i, + /^(?:as\b)/i, + /^(?:(?:))/i, + /^(?:loop\b)/i, + /^(?:rect\b)/i, + /^(?:opt\b)/i, + /^(?:alt\b)/i, + /^(?:else\b)/i, + /^(?:par\b)/i, + /^(?:and\b)/i, + /^(?:(?:[:]?(?:no)?wrap)?[^#\n;]*)/i, + /^(?:end\b)/i, + /^(?:left of\b)/i, + /^(?:right of\b)/i, + /^(?:over\b)/i, + /^(?:note\b)/i, + /^(?:activate\b)/i, + /^(?:deactivate\b)/i, + /^(?:title\b)/i, + /^(?:sequenceDiagram\b)/i, + /^(?:autonumber\b)/i, + /^(?:,)/i, + /^(?:;)/i, + /^(?:[^\+\->:\n,;]+((?!(-x|--x))[\-]*[^\+\->:\n,;]+)*)/i, + /^(?:->>)/i, + /^(?:-->>)/i, + /^(?:->)/i, + /^(?:-->)/i, + /^(?:-[x])/i, + /^(?:--[x])/i, + /^(?::(?:(?:no)?wrap)?[^#\n;]+)/i, + /^(?:\+)/i, + /^(?:-)/i, + /^(?:$)/i, + /^(?:.)/i, + ], + conditions: { + open_directive: { rules: [1, 8], inclusive: !1 }, + type_directive: { rules: [2, 3, 8], inclusive: !1 }, + arg_directive: { rules: [3, 4, 8], inclusive: !1 }, + ID: { rules: [7, 8, 12], inclusive: !1 }, + ALIAS: { rules: [7, 8, 13, 14], inclusive: !1 }, + LINE: { rules: [7, 8, 22], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 8, + 9, + 10, + 11, + 15, + 16, + 17, + 18, + 19, + 20, + 21, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 35, + 36, + 37, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 46, + ], + inclusive: !0, + }, + }, + }; + function T() { + this.yy = {}; + } + return ( + (D.lexer = E), (T.prototype = D), (D.Parser = T), new T() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/sequence/sequenceDb.js': + /*!*********************************************!*\ !*** ./src/diagrams/sequence/sequenceDb.js ***! \*********************************************/ -/*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return g})),n.d(t,"addActor",(function(){return m})),n.d(t,"addMessage",(function(){return y})),n.d(t,"addSignal",(function(){return v})),n.d(t,"getMessages",(function(){return b})),n.d(t,"getActors",(function(){return w})),n.d(t,"getActor",(function(){return C})),n.d(t,"getActorKeys",(function(){return S})),n.d(t,"getTitle",(function(){return x})),n.d(t,"getTitleWrapped",(function(){return L})),n.d(t,"enableSequenceNumbers",(function(){return k})),n.d(t,"showSequenceNumbers",(function(){return M})),n.d(t,"setWrap",(function(){return D})),n.d(t,"autoWrap",(function(){return E})),n.d(t,"clear",(function(){return T})),n.d(t,"parseMessage",(function(){return N})),n.d(t,"LINETYPE",(function(){return O})),n.d(t,"ARROWTYPE",(function(){return A})),n.d(t,"PLACEMENT",(function(){return I})),n.d(t,"addNote",(function(){return P})),n.d(t,"setTitle",(function(){return R})),n.d(t,"apply",(function(){return F}));var r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=n(/*! ../../config */"./src/config.js"),o=n(/*! ../common/common */"./src/diagrams/common/common.js"),s=n(/*! ../../logger */"./src/logger.js"),a=void 0,u={},l=[],c=[],d="",h=!1,f=!1,p=!1,g=function(e,t,n){r.default.parseDirective(this,e,t,n)},m=function(e,t,n){var r=u[e];r&&t===r.name&&null==n||(null!=n&&null!=n.text||(n={text:t,wrap:null}),u[e]={name:t,description:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,prevActor:a},a&&u[a]&&(u[a].nextActor=e),a=e)},_=function(e){var t,n=0;for(t=0;t2&&void 0!==arguments[2]?arguments[2]:{text:void 0,wrap:void 0},r=arguments.length>3?arguments[3]:void 0;if(r===O.ACTIVE_END){var i=_(e.actor);if(i<1){var o=new Error("Trying to inactivate an inactive participant ("+e.actor+")");throw o.hash={text:"->>-",token:"->>-",line:"1",loc:{first_line:1,last_line:1,first_column:1,last_column:1},expected:["'ACTIVE_PARTICIPANT'"]},o}}return l.push({from:e,to:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:r}),!0},b=function(){return l},w=function(){return u},C=function(e){return u[e]},S=function(){return Object.keys(u)},x=function(){return d},L=function(){return h},k=function(){f=!0},M=function(){return f},D=function(e){p=e},E=function(){return p},T=function(){u={},l=[]},N=function(e){var t=e.trim(),n={text:t.replace(/^[:]?(?:no)?wrap:/,"").trim(),wrap:null===t.match(/^[:]?(?:no)?wrap:/)?o.default.hasBreaks(t)||void 0:null!==t.match(/^[:]?wrap:/)||null===t.match(/^[:]?nowrap:/)&&void 0};return s.logger.debug("parseMessage:",n),n},O={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16,ACTIVE_START:17,ACTIVE_END:18,PAR_START:19,PAR_AND:20,PAR_END:21,RECT_START:22,RECT_END:23},A={FILLED:0,OPEN:1},I={LEFTOF:0,RIGHTOF:1,OVER:2},P=function(e,t,n){var r={actor:e,placement:t,message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap},i=[].concat(e,e);c.push(r),l.push({from:i[0],to:i[1],message:n.text,wrap:void 0===n.wrap&&E()||!!n.wrap,type:O.NOTE,placement:t})},R=function(e){d=e.text,h=void 0===e.wrap&&E()||!!e.wrap},F=function e(t){if(t instanceof Array)t.forEach((function(t){e(t)}));else switch(t.type){case"addActor":m(t.actor,t.actor,t.description);break;case"activeStart":case"activeEnd":v(t.actor,void 0,void 0,t.signalType);break;case"addNote":P(t.actor,t.placement,t.text);break;case"addMessage":v(t.from,t.to,t.msg,t.signalType);break;case"loopStart":v(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":v(void 0,void 0,void 0,t.signalType);break;case"rectStart":v(void 0,void 0,t.color,t.signalType);break;case"rectEnd":v(void 0,void 0,void 0,t.signalType);break;case"optStart":v(void 0,void 0,t.optText,t.signalType);break;case"optEnd":v(void 0,void 0,void 0,t.signalType);break;case"altStart":case"else":v(void 0,void 0,t.altText,t.signalType);break;case"altEnd":v(void 0,void 0,void 0,t.signalType);break;case"setTitle":R(t.text);break;case"parStart":case"and":v(void 0,void 0,t.parText,t.signalType);break;case"parEnd":v(void 0,void 0,void 0,t.signalType)}};t.default={addActor:m,addMessage:y,addSignal:v,autoWrap:E,setWrap:D,enableSequenceNumbers:k,showSequenceNumbers:M,getMessages:b,getActors:w,getActor:C,getActorKeys:S,getTitle:x,parseDirective:g,getConfig:function(){return i.getConfig().sequence},getTitleWrapped:L,clear:T,parseMessage:N,LINETYPE:O,ARROWTYPE:A,PLACEMENT:I,addNote:P,setTitle:R,apply:F}},"./src/diagrams/sequence/sequenceRenderer.js": -/*!***************************************************!*\ + /*! exports provided: parseDirective, addActor, addMessage, addSignal, getMessages, getActors, getActor, getActorKeys, getTitle, getTitleWrapped, enableSequenceNumbers, showSequenceNumbers, setWrap, autoWrap, clear, parseMessage, LINETYPE, ARROWTYPE, PLACEMENT, addNote, setTitle, apply, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'parseDirective', function () { + return g; + }), + n.d(t, 'addActor', function () { + return m; + }), + n.d(t, 'addMessage', function () { + return y; + }), + n.d(t, 'addSignal', function () { + return v; + }), + n.d(t, 'getMessages', function () { + return b; + }), + n.d(t, 'getActors', function () { + return w; + }), + n.d(t, 'getActor', function () { + return C; + }), + n.d(t, 'getActorKeys', function () { + return S; + }), + n.d(t, 'getTitle', function () { + return x; + }), + n.d(t, 'getTitleWrapped', function () { + return L; + }), + n.d(t, 'enableSequenceNumbers', function () { + return k; + }), + n.d(t, 'showSequenceNumbers', function () { + return M; + }), + n.d(t, 'setWrap', function () { + return D; + }), + n.d(t, 'autoWrap', function () { + return E; + }), + n.d(t, 'clear', function () { + return T; + }), + n.d(t, 'parseMessage', function () { + return N; + }), + n.d(t, 'LINETYPE', function () { + return O; + }), + n.d(t, 'ARROWTYPE', function () { + return A; + }), + n.d(t, 'PLACEMENT', function () { + return I; + }), + n.d(t, 'addNote', function () { + return P; + }), + n.d(t, 'setTitle', function () { + return R; + }), + n.d(t, 'apply', function () { + return F; + }); + var r = n(/*! ../../mermaidAPI */ './src/mermaidAPI.js'), + i = n(/*! ../../config */ './src/config.js'), + o = n( + /*! ../common/common */ './src/diagrams/common/common.js' + ), + s = n(/*! ../../logger */ './src/logger.js'), + a = void 0, + u = {}, + l = [], + c = [], + d = '', + h = !1, + f = !1, + p = !1, + g = function (e, t, n) { + r.default.parseDirective(this, e, t, n); + }, + m = function (e, t, n) { + var r = u[e]; + (r && t === r.name && null == n) || + ((null != n && null != n.text) || + (n = { text: t, wrap: null }), + (u[e] = { + name: t, + description: n.text, + wrap: (void 0 === n.wrap && E()) || !!n.wrap, + prevActor: a, + }), + a && u[a] && (u[a].nextActor = e), + (a = e)); + }, + _ = function (e) { + var t, + n = 0; + for (t = 0; t < l.length; t++) + l[t].type === O.ACTIVE_START && + l[t].from.actor === e && + n++, + l[t].type === O.ACTIVE_END && + l[t].from.actor === e && + n--; + return n; + }, + y = function (e, t, n, r) { + l.push({ + from: e, + to: t, + message: n.text, + wrap: (void 0 === n.wrap && E()) || !!n.wrap, + answer: r, + }); + }, + v = function (e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : { text: void 0, wrap: void 0 }, + r = arguments.length > 3 ? arguments[3] : void 0; + if (r === O.ACTIVE_END) { + var i = _(e.actor); + if (i < 1) { + var o = new Error( + 'Trying to inactivate an inactive participant (' + + e.actor + + ')' + ); + throw ( + ((o.hash = { + text: '->>-', + token: '->>-', + line: '1', + loc: { + first_line: 1, + last_line: 1, + first_column: 1, + last_column: 1, + }, + expected: ["'ACTIVE_PARTICIPANT'"], + }), + o) + ); + } + } + return ( + l.push({ + from: e, + to: t, + message: n.text, + wrap: (void 0 === n.wrap && E()) || !!n.wrap, + type: r, + }), + !0 + ); + }, + b = function () { + return l; + }, + w = function () { + return u; + }, + C = function (e) { + return u[e]; + }, + S = function () { + return Object.keys(u); + }, + x = function () { + return d; + }, + L = function () { + return h; + }, + k = function () { + f = !0; + }, + M = function () { + return f; + }, + D = function (e) { + p = e; + }, + E = function () { + return p; + }, + T = function () { + (u = {}), (l = []); + }, + N = function (e) { + var t = e.trim(), + n = { + text: t.replace(/^[:]?(?:no)?wrap:/, '').trim(), + wrap: + null === t.match(/^[:]?(?:no)?wrap:/) + ? o.default.hasBreaks(t) || void 0 + : null !== t.match(/^[:]?wrap:/) || + (null === t.match(/^[:]?nowrap:/) && void 0), + }; + return s.logger.debug('parseMessage:', n), n; + }, + O = { + SOLID: 0, + DOTTED: 1, + NOTE: 2, + SOLID_CROSS: 3, + DOTTED_CROSS: 4, + SOLID_OPEN: 5, + DOTTED_OPEN: 6, + LOOP_START: 10, + LOOP_END: 11, + ALT_START: 12, + ALT_ELSE: 13, + ALT_END: 14, + OPT_START: 15, + OPT_END: 16, + ACTIVE_START: 17, + ACTIVE_END: 18, + PAR_START: 19, + PAR_AND: 20, + PAR_END: 21, + RECT_START: 22, + RECT_END: 23, + }, + A = { FILLED: 0, OPEN: 1 }, + I = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 }, + P = function (e, t, n) { + var r = { + actor: e, + placement: t, + message: n.text, + wrap: (void 0 === n.wrap && E()) || !!n.wrap, + }, + i = [].concat(e, e); + c.push(r), + l.push({ + from: i[0], + to: i[1], + message: n.text, + wrap: (void 0 === n.wrap && E()) || !!n.wrap, + type: O.NOTE, + placement: t, + }); + }, + R = function (e) { + (d = e.text), (h = (void 0 === e.wrap && E()) || !!e.wrap); + }, + F = function e(t) { + if (t instanceof Array) + t.forEach(function (t) { + e(t); + }); + else + switch (t.type) { + case 'addActor': + m(t.actor, t.actor, t.description); + break; + case 'activeStart': + case 'activeEnd': + v(t.actor, void 0, void 0, t.signalType); + break; + case 'addNote': + P(t.actor, t.placement, t.text); + break; + case 'addMessage': + v(t.from, t.to, t.msg, t.signalType); + break; + case 'loopStart': + v(void 0, void 0, t.loopText, t.signalType); + break; + case 'loopEnd': + v(void 0, void 0, void 0, t.signalType); + break; + case 'rectStart': + v(void 0, void 0, t.color, t.signalType); + break; + case 'rectEnd': + v(void 0, void 0, void 0, t.signalType); + break; + case 'optStart': + v(void 0, void 0, t.optText, t.signalType); + break; + case 'optEnd': + v(void 0, void 0, void 0, t.signalType); + break; + case 'altStart': + case 'else': + v(void 0, void 0, t.altText, t.signalType); + break; + case 'altEnd': + v(void 0, void 0, void 0, t.signalType); + break; + case 'setTitle': + R(t.text); + break; + case 'parStart': + case 'and': + v(void 0, void 0, t.parText, t.signalType); + break; + case 'parEnd': + v(void 0, void 0, void 0, t.signalType); + } + }; + t.default = { + addActor: m, + addMessage: y, + addSignal: v, + autoWrap: E, + setWrap: D, + enableSequenceNumbers: k, + showSequenceNumbers: M, + getMessages: b, + getActors: w, + getActor: C, + getActorKeys: S, + getTitle: x, + parseDirective: g, + getConfig: function () { + return i.getConfig().sequence; + }, + getTitleWrapped: L, + clear: T, + parseMessage: N, + LINETYPE: O, + ARROWTYPE: A, + PLACEMENT: I, + addNote: P, + setTitle: R, + apply: F, + }; + }, + './src/diagrams/sequence/sequenceRenderer.js': + /*!***************************************************!*\ !*** ./src/diagrams/sequence/sequenceRenderer.js ***! \***************************************************/ -/*! exports provided: bounds, drawActors, setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"bounds",(function(){return h})),n.d(t,"drawActors",(function(){return m})),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return w}));var r=n(/*! d3 */"d3"),i=n(/*! ./svgDraw */"./src/diagrams/sequence/svgDraw.js"),o=n(/*! ../../logger */"./src/logger.js"),s=n(/*! ./parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ./sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../utils */"./src/utils.js");s.parser.yy=u.default;var d={},h={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],activations:[],models:{getHeight:function(){return Math.max.apply(null,0===this.actors.length?[0]:this.actors.map((function(e){return e.height||0})))+(0===this.loops.length?0:this.loops.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.messages.length?0:this.messages.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))+(0===this.notes.length?0:this.notes.map((function(e){return e.height||0})).reduce((function(e,t){return e+t})))},clear:function(){this.actors=[],this.loops=[],this.messages=[],this.notes=[]},addActor:function(e){this.actors.push(e)},addLoop:function(e){this.loops.push(e)},addMessage:function(e){this.messages.push(e)},addNote:function(e){this.notes.push(e)},lastActor:function(){return this.actors[this.actors.length-1]},lastLoop:function(){return this.loops[this.loops.length-1]},lastMessage:function(){return this.messages[this.messages.length-1]},lastNote:function(){return this.notes[this.notes.length-1]},actors:[],loops:[],messages:[],notes:[]},init:function(){this.sequenceItems=[],this.activations=[],this.models.clear(),this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0,_(s.parser.yy.getConfig())},updateVal:function(e,t,n,r){void 0===e[t]?e[t]=n:e[t]=r(n,e[t])},updateBounds:function(e,t,n,r){var i=this,o=0;function s(s){return function(a){o++;var u=i.sequenceItems.length-o+1;i.updateVal(a,"starty",t-u*d.boxMargin,Math.min),i.updateVal(a,"stopy",r+u*d.boxMargin,Math.max),i.updateVal(h.data,"startx",e-u*d.boxMargin,Math.min),i.updateVal(h.data,"stopx",n+u*d.boxMargin,Math.max),"activation"!==s&&(i.updateVal(a,"startx",e-u*d.boxMargin,Math.min),i.updateVal(a,"stopx",n+u*d.boxMargin,Math.max),i.updateVal(h.data,"starty",t-u*d.boxMargin,Math.min),i.updateVal(h.data,"stopy",r+u*d.boxMargin,Math.max))}}this.sequenceItems.forEach(s()),this.activations.forEach(s("activation"))},insert:function(e,t,n,r){var i=Math.min(e,n),o=Math.max(e,n),s=Math.min(t,r),a=Math.max(t,r);this.updateVal(h.data,"startx",i,Math.min),this.updateVal(h.data,"starty",s,Math.min),this.updateVal(h.data,"stopx",o,Math.max),this.updateVal(h.data,"stopy",a,Math.max),this.updateBounds(i,s,o,a)},newActivation:function(e,t,n){var r=n[e.from.actor],o=y(e.from.actor).length||0,s=r.x+r.width/2+(o-1)*d.activationWidth/2;this.activations.push({startx:s,starty:this.verticalPos+2,stopx:s+d.activationWidth,stopy:void 0,actor:e.from.actor,anchored:i.default.anchorElement(t)})},endActivation:function(e){var t=this.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);return this.activations.splice(t,1)[0]},createLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;return{startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:e.message,wrap:e.wrap,width:e.width,height:0,fill:t}},newLoop:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{message:void 0,wrap:!1,width:void 0},t=arguments.length>1?arguments[1]:void 0;this.sequenceItems.push(this.createLoop(e,t))},endLoop:function(){return this.sequenceItems.pop()},addSectionToLoop:function(e){var t=this.sequenceItems.pop();t.sections=t.sections||[],t.sectionTitles=t.sectionTitles||[],t.sections.push({y:h.getVerticalPos(),height:0}),t.sectionTitles.push(e),this.sequenceItems.push(t)},bumpVerticalPos:function(e){this.verticalPos=this.verticalPos+e,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return{bounds:this.data,models:this.models}}},f=function(e){return{fontFamily:e.messageFontFamily,fontSize:e.messageFontSize,fontWeight:e.messageFontWeight}},p=function(e){return{fontFamily:e.noteFontFamily,fontSize:e.noteFontSize,fontWeight:e.noteFontWeight}},g=function(e){return{fontFamily:e.actorFontFamily,fontSize:e.actorFontSize,fontWeight:e.actorFontWeight}},m=function(e,t,n,r){for(var o=0,s=0,a=0;at&&(r.starty=t-6,t+=12),i.default.drawActivation(n,r,t,d,y(e.from.actor).length),h.insert(r.startx,t-10,r.stopx,t)}(e,h.getVerticalPos());break;case s.parser.yy.LINETYPE.LOOP_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.LOOP_END:t=h.endLoop(),i.default.drawLoop(n,t,"loop",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.RECT_START:b(L,e,d.boxMargin,d.boxMargin,(function(e){return h.newLoop(void 0,e.message)}));break;case s.parser.yy.LINETYPE.RECT_END:t=h.endLoop(),i.default.drawBackgroundRect(n,t),h.models.addLoop(t),h.bumpVerticalPos(t.stopy-h.getVerticalPos());break;case s.parser.yy.LINETYPE.OPT_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.OPT_END:t=h.endLoop(),i.default.drawLoop(n,t,"opt",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.ALT_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_ELSE:b(L,e,d.boxMargin+d.boxTextMargin,d.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.ALT_END:t=h.endLoop(),i.default.drawLoop(n,t,"alt",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;case s.parser.yy.LINETYPE.PAR_START:b(L,e,d.boxMargin,d.boxMargin+d.boxTextMargin,(function(e){return h.newLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_AND:b(L,e,d.boxMargin+d.boxTextMargin,d.boxMargin,(function(e){return h.addSectionToLoop(e)}));break;case s.parser.yy.LINETYPE.PAR_END:t=h.endLoop(),i.default.drawLoop(n,t,"par",d),h.bumpVerticalPos(t.stopy-h.getVerticalPos()),h.models.addLoop(t);break;default:try{(l=e.msgModel).starty=h.getVerticalPos(),l.sequenceIndex=k,function(e,t){h.bumpVerticalPos(10);var n=t.startx,r=t.stopx,o=t.starty,l=t.message,p=t.type,g=t.sequenceIndex,m=t.wrap,_=a.default.splitBreaks(l).length,y=c.default.calculateTextDimensions(l,f(d)),v=y.height/_;t.height+=v,h.bumpVerticalPos(v);var b=i.default.getTextObj();b.x=n,b.y=o+10,b.width=r-n,b.class="messageText",b.dy="1em",b.text=l,b.fontFamily=d.messageFontFamily,b.fontSize=d.messageFontSize,b.fontWeight=d.messageFontWeight,b.anchor=d.messageAlign,b.valign=d.messageAlign,b.textMargin=d.wrapPadding,b.tspan=!1,b.wrap=m,Object(i.drawText)(e,b);var w,C,S=y.height-10,x=y.width;if(n===r){C=h.getVerticalPos()+S,d.rightAngles?w=e.append("path").attr("d","M ".concat(n,",").concat(C," H ").concat(n+Math.max(d.width/2,x/2)," V ").concat(C+25," H ").concat(n)):(S+=d.boxMargin,C=h.getVerticalPos()+S,w=e.append("path").attr("d","M "+n+","+C+" C "+(n+60)+","+(C-10)+" "+(n+60)+","+(C+30)+" "+n+","+(C+20))),S+=30;var L=Math.max(x/2,d.width/2);h.insert(n-L,h.getVerticalPos()-10+S,r+L,h.getVerticalPos()+30+S)}else S+=d.boxMargin,C=h.getVerticalPos()+S,(w=e.append("line")).attr("x1",n),w.attr("y1",C),w.attr("x2",r),w.attr("y2",C),h.insert(n,C-10,r,C);p===s.parser.yy.LINETYPE.DOTTED||p===s.parser.yy.LINETYPE.DOTTED_CROSS||p===s.parser.yy.LINETYPE.DOTTED_OPEN?(w.style("stroke-dasharray","3, 3"),w.attr("class","messageLine1")):w.attr("class","messageLine0");var k="";d.arrowMarkerAbsolute&&(k=(k=(k=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),w.attr("stroke-width",2),w.attr("stroke","none"),w.style("fill","none"),p!==s.parser.yy.LINETYPE.SOLID&&p!==s.parser.yy.LINETYPE.DOTTED||w.attr("marker-end","url("+k+"#arrowhead)"),p!==s.parser.yy.LINETYPE.SOLID_CROSS&&p!==s.parser.yy.LINETYPE.DOTTED_CROSS||w.attr("marker-end","url("+k+"#crosshead)"),(u.default.showSequenceNumbers()||d.showSequenceNumbers)&&(w.attr("marker-start","url("+k+"#sequencenumber)"),e.append("text").attr("x",n).attr("y",C+4).attr("font-family","sans-serif").attr("font-size","12px").attr("text-anchor","middle").attr("textLength","16px").attr("class","sequenceNumber").text(g)),h.bumpVerticalPos(S),t.height+=S,t.stopy=t.starty+t.height,h.insert(t.fromBounds,t.starty,t.toBounds,t.stopy)}(n,l),h.models.addMessage(l)}catch(e){o.logger.error("error while drawing message",e)}}[s.parser.yy.LINETYPE.SOLID_OPEN,s.parser.yy.LINETYPE.DOTTED_OPEN,s.parser.yy.LINETYPE.SOLID,s.parser.yy.LINETYPE.DOTTED,s.parser.yy.LINETYPE.SOLID_CROSS,s.parser.yy.LINETYPE.DOTTED_CROSS].includes(e.type)&&k++})),d.mirrorActors&&(h.bumpVerticalPos(2*d.boxMargin),m(n,p,g,h.getVerticalPos()));var M=h.getBounds().bounds;o.logger.debug("For line height fix Querying: #"+t+" .actor-line"),Object(r.selectAll)("#"+t+" .actor-line").attr("y2",M.stopy);var D=M.stopy-M.starty+2*d.diagramMarginY;d.mirrorActors&&(D=D-d.boxMargin+d.bottomMarginAdj);var E=M.stopx-M.startx+2*d.diagramMarginX;v&&n.append("text").text(v).attr("x",(M.stopx-M.startx)/2-2*d.diagramMarginX).attr("y",-25),Object(c.configureSvgSize)(n,D,E,d.useMaxWidth);var T=v?40:0;n.attr("viewBox",M.startx-d.diagramMarginX+" -"+(d.diagramMarginY+T)+" "+E+" "+(D+T)),o.logger.debug("models:",h.models)},C=function(e,t){var n={};return t.forEach((function(t){if(e[t.to]&&e[t.from]){var r=e[t.to];if(t.placement===s.parser.yy.PLACEMENT.LEFTOF&&!r.prevActor)return;if(t.placement===s.parser.yy.PLACEMENT.RIGHTOF&&!r.nextActor)return;var i=void 0!==t.placement,o=!i,a=i?p(d):f(d),u=t.wrap?c.default.wrapLabel(t.message,d.width-2*d.wrapPadding,a):t.message,l=c.default.calculateTextDimensions(u,a).width+2*d.wrapPadding;o&&t.from===r.nextActor?n[t.to]=Math.max(n[t.to]||0,l):o&&t.from===r.prevActor?n[t.from]=Math.max(n[t.from]||0,l):o&&t.from===t.to?(n[t.from]=Math.max(n[t.from]||0,l/2),n[t.to]=Math.max(n[t.to]||0,l/2)):t.placement===s.parser.yy.PLACEMENT.RIGHTOF?n[t.from]=Math.max(n[t.from]||0,l):t.placement===s.parser.yy.PLACEMENT.LEFTOF?n[r.prevActor]=Math.max(n[r.prevActor]||0,l):t.placement===s.parser.yy.PLACEMENT.OVER&&(r.prevActor&&(n[r.prevActor]=Math.max(n[r.prevActor]||0,l/2)),r.nextActor&&(n[t.from]=Math.max(n[t.from]||0,l/2)))}})),o.logger.debug("maxMessageWidthPerActor:",n),n},S=function(e,t){var n=0;for(var r in Object.keys(e).forEach((function(t){var r=e[t];r.wrap&&(r.description=c.default.wrapLabel(r.description,d.width-2*d.wrapPadding,g(d)));var i=c.default.calculateTextDimensions(r.description,g(d));r.width=r.wrap?d.width:Math.max(d.width,i.width+2*d.wrapPadding),r.height=r.wrap?Math.max(i.height,d.height):d.height,n=Math.max(n,r.height)})),t){var i=e[r];if(i){var o=e[i.nextActor];if(o){var s=t[r]+d.actorMargin-i.width/2-o.width/2;i.margin=Math.max(s,d.actorMargin)}}}return Math.max(n,d.height)},x=function(e,t){var n,r,i,a={},u=[];return e.forEach((function(e){switch(e.id=c.default.random({length:10}),e.type){case s.parser.yy.LINETYPE.LOOP_START:case s.parser.yy.LINETYPE.ALT_START:case s.parser.yy.LINETYPE.OPT_START:case s.parser.yy.LINETYPE.PAR_START:u.push({id:e.id,msg:e.message,from:Number.MAX_SAFE_INTEGER,to:Number.MIN_SAFE_INTEGER,width:0});break;case s.parser.yy.LINETYPE.ALT_ELSE:case s.parser.yy.LINETYPE.PAR_AND:e.message&&(n=u.pop(),a[n.id]=n,a[e.id]=n,u.push(n));break;case s.parser.yy.LINETYPE.LOOP_END:case s.parser.yy.LINETYPE.ALT_END:case s.parser.yy.LINETYPE.OPT_END:case s.parser.yy.LINETYPE.PAR_END:n=u.pop(),a[n.id]=n;break;case s.parser.yy.LINETYPE.ACTIVE_START:var l=t[e.from?e.from.actor:e.to.actor],g=y(e.from?e.from.actor:e.to.actor).length,m=l.x+l.width/2+(g-1)*d.activationWidth/2,_={startx:m,stopx:m+d.activationWidth,actor:e.from.actor,enabled:!0};h.activations.push(_);break;case s.parser.yy.LINETYPE.ACTIVE_END:var b=h.activations.map((function(e){return e.actor})).lastIndexOf(e.from.actor);delete h.activations.splice(b,1)[0]}void 0!==e.placement?(r=function(e,t){var n=t[e.from].x,r=t[e.to].x,i=e.wrap&&e.message,a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,d.width,p(d)):e.message,p(d)),u={width:i?d.width:Math.max(d.width,a.width+2*d.noteMargin),height:0,startx:t[e.from].x,stopx:0,starty:0,stopy:0,message:e.message};return e.placement===s.parser.yy.PLACEMENT.RIGHTOF?(u.width=i?Math.max(d.width,a.width):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*d.noteMargin),u.startx=n+(t[e.from].width+d.actorMargin)/2):e.placement===s.parser.yy.PLACEMENT.LEFTOF?(u.width=i?Math.max(d.width,a.width+2*d.noteMargin):Math.max(t[e.from].width/2+t[e.to].width/2,a.width+2*d.noteMargin),u.startx=n-u.width+(t[e.from].width-d.actorMargin)/2):e.to===e.from?(a=c.default.calculateTextDimensions(i?c.default.wrapLabel(e.message,Math.max(d.width,t[e.from].width),p(d)):e.message,p(d)),u.width=i?Math.max(d.width,t[e.from].width):Math.max(t[e.from].width,d.width,a.width+2*d.noteMargin),u.startx=n+(t[e.from].width-u.width)/2):(u.width=Math.abs(n+t[e.from].width/2-(r+t[e.to].width/2))+d.actorMargin,u.startx=n0&&u.forEach((function(r){if(n=r,i.startx===i.stopx){var o=t[e.from],s=t[e.to];n.from=Math.min(o.x-i.width/2,o.x-o.width/2,n.from),n.to=Math.max(s.x+i.width/2,s.x+o.width/2,n.to),n.width=Math.max(n.width,Math.abs(n.to-n.from))-d.labelBoxWidth}else n.from=Math.min(i.startx,n.from),n.to=Math.max(i.stopx,n.to),n.width=Math.max(n.width,i.width)-d.labelBoxWidth})))})),h.activations=[],o.logger.debug("Loop type widths:",a),a};t.default={bounds:h,drawActors:m,setConf:_,draw:w}},"./src/diagrams/sequence/styles.js": -/*!*****************************************!*\ + /*! exports provided: bounds, drawActors, setConf, draw, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'bounds', function () { + return h; + }), + n.d(t, 'drawActors', function () { + return m; + }), + n.d(t, 'setConf', function () { + return _; + }), + n.d(t, 'draw', function () { + return w; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ./svgDraw */ './src/diagrams/sequence/svgDraw.js'), + o = n(/*! ../../logger */ './src/logger.js'), + s = n( + /*! ./parser/sequenceDiagram */ './src/diagrams/sequence/parser/sequenceDiagram.jison' + ), + a = n( + /*! ../common/common */ './src/diagrams/common/common.js' + ), + u = n( + /*! ./sequenceDb */ './src/diagrams/sequence/sequenceDb.js' + ), + l = n(/*! ../../config */ './src/config.js'), + c = n(/*! ../../utils */ './src/utils.js'); + s.parser.yy = u.default; + var d = {}, + h = { + data: { + startx: void 0, + stopx: void 0, + starty: void 0, + stopy: void 0, + }, + verticalPos: 0, + sequenceItems: [], + activations: [], + models: { + getHeight: function () { + return ( + Math.max.apply( + null, + 0 === this.actors.length + ? [0] + : this.actors.map(function (e) { + return e.height || 0; + }) + ) + + (0 === this.loops.length + ? 0 + : this.loops + .map(function (e) { + return e.height || 0; + }) + .reduce(function (e, t) { + return e + t; + })) + + (0 === this.messages.length + ? 0 + : this.messages + .map(function (e) { + return e.height || 0; + }) + .reduce(function (e, t) { + return e + t; + })) + + (0 === this.notes.length + ? 0 + : this.notes + .map(function (e) { + return e.height || 0; + }) + .reduce(function (e, t) { + return e + t; + })) + ); + }, + clear: function () { + (this.actors = []), + (this.loops = []), + (this.messages = []), + (this.notes = []); + }, + addActor: function (e) { + this.actors.push(e); + }, + addLoop: function (e) { + this.loops.push(e); + }, + addMessage: function (e) { + this.messages.push(e); + }, + addNote: function (e) { + this.notes.push(e); + }, + lastActor: function () { + return this.actors[this.actors.length - 1]; + }, + lastLoop: function () { + return this.loops[this.loops.length - 1]; + }, + lastMessage: function () { + return this.messages[this.messages.length - 1]; + }, + lastNote: function () { + return this.notes[this.notes.length - 1]; + }, + actors: [], + loops: [], + messages: [], + notes: [], + }, + init: function () { + (this.sequenceItems = []), + (this.activations = []), + this.models.clear(), + (this.data = { + startx: void 0, + stopx: void 0, + starty: void 0, + stopy: void 0, + }), + (this.verticalPos = 0), + _(s.parser.yy.getConfig()); + }, + updateVal: function (e, t, n, r) { + void 0 === e[t] ? (e[t] = n) : (e[t] = r(n, e[t])); + }, + updateBounds: function (e, t, n, r) { + var i = this, + o = 0; + function s(s) { + return function (a) { + o++; + var u = i.sequenceItems.length - o + 1; + i.updateVal(a, 'starty', t - u * d.boxMargin, Math.min), + i.updateVal( + a, + 'stopy', + r + u * d.boxMargin, + Math.max + ), + i.updateVal( + h.data, + 'startx', + e - u * d.boxMargin, + Math.min + ), + i.updateVal( + h.data, + 'stopx', + n + u * d.boxMargin, + Math.max + ), + 'activation' !== s && + (i.updateVal( + a, + 'startx', + e - u * d.boxMargin, + Math.min + ), + i.updateVal( + a, + 'stopx', + n + u * d.boxMargin, + Math.max + ), + i.updateVal( + h.data, + 'starty', + t - u * d.boxMargin, + Math.min + ), + i.updateVal( + h.data, + 'stopy', + r + u * d.boxMargin, + Math.max + )); + }; + } + this.sequenceItems.forEach(s()), + this.activations.forEach(s('activation')); + }, + insert: function (e, t, n, r) { + var i = Math.min(e, n), + o = Math.max(e, n), + s = Math.min(t, r), + a = Math.max(t, r); + this.updateVal(h.data, 'startx', i, Math.min), + this.updateVal(h.data, 'starty', s, Math.min), + this.updateVal(h.data, 'stopx', o, Math.max), + this.updateVal(h.data, 'stopy', a, Math.max), + this.updateBounds(i, s, o, a); + }, + newActivation: function (e, t, n) { + var r = n[e.from.actor], + o = y(e.from.actor).length || 0, + s = r.x + r.width / 2 + ((o - 1) * d.activationWidth) / 2; + this.activations.push({ + startx: s, + starty: this.verticalPos + 2, + stopx: s + d.activationWidth, + stopy: void 0, + actor: e.from.actor, + anchored: i.default.anchorElement(t), + }); + }, + endActivation: function (e) { + var t = this.activations + .map(function (e) { + return e.actor; + }) + .lastIndexOf(e.from.actor); + return this.activations.splice(t, 1)[0]; + }, + createLoop: function () { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : { message: void 0, wrap: !1, width: void 0 }, + t = arguments.length > 1 ? arguments[1] : void 0; + return { + startx: void 0, + starty: this.verticalPos, + stopx: void 0, + stopy: void 0, + title: e.message, + wrap: e.wrap, + width: e.width, + height: 0, + fill: t, + }; + }, + newLoop: function () { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : { message: void 0, wrap: !1, width: void 0 }, + t = arguments.length > 1 ? arguments[1] : void 0; + this.sequenceItems.push(this.createLoop(e, t)); + }, + endLoop: function () { + return this.sequenceItems.pop(); + }, + addSectionToLoop: function (e) { + var t = this.sequenceItems.pop(); + (t.sections = t.sections || []), + (t.sectionTitles = t.sectionTitles || []), + t.sections.push({ y: h.getVerticalPos(), height: 0 }), + t.sectionTitles.push(e), + this.sequenceItems.push(t); + }, + bumpVerticalPos: function (e) { + (this.verticalPos = this.verticalPos + e), + (this.data.stopy = this.verticalPos); + }, + getVerticalPos: function () { + return this.verticalPos; + }, + getBounds: function () { + return { bounds: this.data, models: this.models }; + }, + }, + f = function (e) { + return { + fontFamily: e.messageFontFamily, + fontSize: e.messageFontSize, + fontWeight: e.messageFontWeight, + }; + }, + p = function (e) { + return { + fontFamily: e.noteFontFamily, + fontSize: e.noteFontSize, + fontWeight: e.noteFontWeight, + }; + }, + g = function (e) { + return { + fontFamily: e.actorFontFamily, + fontSize: e.actorFontSize, + fontWeight: e.actorFontWeight, + }; + }, + m = function (e, t, n, r) { + for (var o = 0, s = 0, a = 0; a < n.length; a++) { + var u = t[n[a]]; + (u.width = u.width || d.width), + (u.height = Math.max(u.height || d.height, d.height)), + (u.margin = u.margin || d.actorMargin), + (u.x = o + s), + (u.y = r), + i.default.drawActor(e, u, d), + h.insert(u.x, r, u.x + u.width, u.height), + (o += u.width), + (s += u.margin), + h.models.addActor(u); + } + h.bumpVerticalPos(d.height); + }, + _ = function (e) { + Object(c.assignWithDepth)(d, e), + e.fontFamily && + (d.actorFontFamily = d.noteFontFamily = d.messageFontFamily = + e.fontFamily), + e.fontSize && + (d.actorFontSize = d.noteFontSize = d.messageFontSize = + e.fontSize), + e.fontWeight && + (d.actorFontWeight = d.noteFontWeight = d.messageFontWeight = + e.fontWeight); + }, + y = function (e) { + return h.activations.filter(function (t) { + return t.actor === e; + }); + }, + v = function (e, t) { + var n = t[e], + r = y(e); + return [ + r.reduce(function (e, t) { + return Math.min(e, t.startx); + }, n.x + n.width / 2), + r.reduce(function (e, t) { + return Math.max(e, t.stopx); + }, n.x + n.width / 2), + ]; + }; + function b(e, t, n, r, i) { + h.bumpVerticalPos(n); + var s = r; + if (t.id && t.message && e[t.id]) { + var a = e[t.id].width, + u = f(d); + (t.message = c.default.wrapLabel( + '['.concat(t.message, ']'), + a - 2 * d.wrapPadding, + u + )), + (t.width = a), + (t.wrap = !0); + var l = c.default.calculateTextDimensions(t.message, u), + p = Math.max(l.height, d.labelBoxHeight); + (s = r + p), + o.logger.debug(''.concat(p, ' - ').concat(t.message)); + } + i(t), h.bumpVerticalPos(s); + } + var w = function (e, t) { + (d = l.getConfig().sequence), + s.parser.yy.clear(), + s.parser.yy.setWrap(d.wrap), + s.parser.parse(e + '\n'), + h.init(), + o.logger.debug('C:'.concat(JSON.stringify(d, null, 2))); + var n = Object(r.select)('[id="'.concat(t, '"]')), + p = s.parser.yy.getActors(), + g = s.parser.yy.getActorKeys(), + _ = s.parser.yy.getMessages(), + v = s.parser.yy.getTitle(), + w = C(p, _); + (d.height = S(p, w)), m(n, p, g, 0); + var L = x(_, p, w); + i.default.insertArrowHead(n), + i.default.insertArrowCrossHead(n), + i.default.insertSequenceNumber(n); + var k = 1; + _.forEach(function (e) { + var t, r, l; + switch (e.type) { + case s.parser.yy.LINETYPE.NOTE: + (r = e.noteModel), + (function (e, t) { + h.bumpVerticalPos(d.boxMargin), + (t.height = d.boxMargin), + (t.starty = h.getVerticalPos()); + var n = i.default.getNoteRect(); + (n.x = t.startx), + (n.y = t.starty), + (n.width = t.width || d.width), + (n.class = 'note'); + var r = e.append('g'), + o = i.default.drawRect(r, n), + s = i.default.getTextObj(); + (s.x = t.startx), + (s.y = t.starty), + (s.width = n.width), + (s.dy = '1em'), + (s.text = t.message), + (s.class = 'noteText'), + (s.fontFamily = d.noteFontFamily), + (s.fontSize = d.noteFontSize), + (s.fontWeight = d.noteFontWeight), + (s.anchor = d.noteAlign), + (s.textMargin = d.noteMargin), + (s.valign = d.noteAlign), + (s.wrap = !0); + var a = Object(i.drawText)(r, s), + u = Math.round( + a + .map(function (e) { + return (e._groups || + e)[0][0].getBBox().height; + }) + .reduce(function (e, t) { + return e + t; + }) + ); + o.attr('height', u + 2 * d.noteMargin), + (t.height += u + 2 * d.noteMargin), + h.bumpVerticalPos(u + 2 * d.noteMargin), + (t.stopy = t.starty + u + 2 * d.noteMargin), + (t.stopx = t.startx + n.width), + h.insert(t.startx, t.starty, t.stopx, t.stopy), + h.models.addNote(t); + })(n, r); + break; + case s.parser.yy.LINETYPE.ACTIVE_START: + h.newActivation(e, n, p); + break; + case s.parser.yy.LINETYPE.ACTIVE_END: + !(function (e, t) { + var r = h.endActivation(e); + r.starty + 18 > t && ((r.starty = t - 6), (t += 12)), + i.default.drawActivation( + n, + r, + t, + d, + y(e.from.actor).length + ), + h.insert(r.startx, t - 10, r.stopx, t); + })(e, h.getVerticalPos()); + break; + case s.parser.yy.LINETYPE.LOOP_START: + b( + L, + e, + d.boxMargin, + d.boxMargin + d.boxTextMargin, + function (e) { + return h.newLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.LOOP_END: + (t = h.endLoop()), + i.default.drawLoop(n, t, 'loop', d), + h.bumpVerticalPos(t.stopy - h.getVerticalPos()), + h.models.addLoop(t); + break; + case s.parser.yy.LINETYPE.RECT_START: + b(L, e, d.boxMargin, d.boxMargin, function (e) { + return h.newLoop(void 0, e.message); + }); + break; + case s.parser.yy.LINETYPE.RECT_END: + (t = h.endLoop()), + i.default.drawBackgroundRect(n, t), + h.models.addLoop(t), + h.bumpVerticalPos(t.stopy - h.getVerticalPos()); + break; + case s.parser.yy.LINETYPE.OPT_START: + b( + L, + e, + d.boxMargin, + d.boxMargin + d.boxTextMargin, + function (e) { + return h.newLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.OPT_END: + (t = h.endLoop()), + i.default.drawLoop(n, t, 'opt', d), + h.bumpVerticalPos(t.stopy - h.getVerticalPos()), + h.models.addLoop(t); + break; + case s.parser.yy.LINETYPE.ALT_START: + b( + L, + e, + d.boxMargin, + d.boxMargin + d.boxTextMargin, + function (e) { + return h.newLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.ALT_ELSE: + b( + L, + e, + d.boxMargin + d.boxTextMargin, + d.boxMargin, + function (e) { + return h.addSectionToLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.ALT_END: + (t = h.endLoop()), + i.default.drawLoop(n, t, 'alt', d), + h.bumpVerticalPos(t.stopy - h.getVerticalPos()), + h.models.addLoop(t); + break; + case s.parser.yy.LINETYPE.PAR_START: + b( + L, + e, + d.boxMargin, + d.boxMargin + d.boxTextMargin, + function (e) { + return h.newLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.PAR_AND: + b( + L, + e, + d.boxMargin + d.boxTextMargin, + d.boxMargin, + function (e) { + return h.addSectionToLoop(e); + } + ); + break; + case s.parser.yy.LINETYPE.PAR_END: + (t = h.endLoop()), + i.default.drawLoop(n, t, 'par', d), + h.bumpVerticalPos(t.stopy - h.getVerticalPos()), + h.models.addLoop(t); + break; + default: + try { + ((l = e.msgModel).starty = h.getVerticalPos()), + (l.sequenceIndex = k), + (function (e, t) { + h.bumpVerticalPos(10); + var n = t.startx, + r = t.stopx, + o = t.starty, + l = t.message, + p = t.type, + g = t.sequenceIndex, + m = t.wrap, + _ = a.default.splitBreaks(l).length, + y = c.default.calculateTextDimensions(l, f(d)), + v = y.height / _; + (t.height += v), h.bumpVerticalPos(v); + var b = i.default.getTextObj(); + (b.x = n), + (b.y = o + 10), + (b.width = r - n), + (b.class = 'messageText'), + (b.dy = '1em'), + (b.text = l), + (b.fontFamily = d.messageFontFamily), + (b.fontSize = d.messageFontSize), + (b.fontWeight = d.messageFontWeight), + (b.anchor = d.messageAlign), + (b.valign = d.messageAlign), + (b.textMargin = d.wrapPadding), + (b.tspan = !1), + (b.wrap = m), + Object(i.drawText)(e, b); + var w, + C, + S = y.height - 10, + x = y.width; + if (n === r) { + (C = h.getVerticalPos() + S), + d.rightAngles + ? (w = e.append('path').attr( + 'd', + 'M ' + .concat(n, ',') + .concat(C, ' H ') + .concat( + n + Math.max(d.width / 2, x / 2), + ' V ' + ) + .concat(C + 25, ' H ') + .concat(n) + )) + : ((S += d.boxMargin), + (C = h.getVerticalPos() + S), + (w = e + .append('path') + .attr( + 'd', + 'M ' + + n + + ',' + + C + + ' C ' + + (n + 60) + + ',' + + (C - 10) + + ' ' + + (n + 60) + + ',' + + (C + 30) + + ' ' + + n + + ',' + + (C + 20) + ))), + (S += 30); + var L = Math.max(x / 2, d.width / 2); + h.insert( + n - L, + h.getVerticalPos() - 10 + S, + r + L, + h.getVerticalPos() + 30 + S + ); + } else + (S += d.boxMargin), + (C = h.getVerticalPos() + S), + (w = e.append('line')).attr('x1', n), + w.attr('y1', C), + w.attr('x2', r), + w.attr('y2', C), + h.insert(n, C - 10, r, C); + p === s.parser.yy.LINETYPE.DOTTED || + p === s.parser.yy.LINETYPE.DOTTED_CROSS || + p === s.parser.yy.LINETYPE.DOTTED_OPEN + ? (w.style('stroke-dasharray', '3, 3'), + w.attr('class', 'messageLine1')) + : w.attr('class', 'messageLine0'); + var k = ''; + d.arrowMarkerAbsolute && + (k = (k = (k = + window.location.protocol + + '//' + + window.location.host + + window.location.pathname + + window.location.search).replace( + /\(/g, + '\\(' + )).replace(/\)/g, '\\)')), + w.attr('stroke-width', 2), + w.attr('stroke', 'none'), + w.style('fill', 'none'), + (p !== s.parser.yy.LINETYPE.SOLID && + p !== s.parser.yy.LINETYPE.DOTTED) || + w.attr( + 'marker-end', + 'url(' + k + '#arrowhead)' + ), + (p !== s.parser.yy.LINETYPE.SOLID_CROSS && + p !== s.parser.yy.LINETYPE.DOTTED_CROSS) || + w.attr( + 'marker-end', + 'url(' + k + '#crosshead)' + ), + (u.default.showSequenceNumbers() || + d.showSequenceNumbers) && + (w.attr( + 'marker-start', + 'url(' + k + '#sequencenumber)' + ), + e + .append('text') + .attr('x', n) + .attr('y', C + 4) + .attr('font-family', 'sans-serif') + .attr('font-size', '12px') + .attr('text-anchor', 'middle') + .attr('textLength', '16px') + .attr('class', 'sequenceNumber') + .text(g)), + h.bumpVerticalPos(S), + (t.height += S), + (t.stopy = t.starty + t.height), + h.insert( + t.fromBounds, + t.starty, + t.toBounds, + t.stopy + ); + })(n, l), + h.models.addMessage(l); + } catch (e) { + o.logger.error('error while drawing message', e); + } + } + [ + s.parser.yy.LINETYPE.SOLID_OPEN, + s.parser.yy.LINETYPE.DOTTED_OPEN, + s.parser.yy.LINETYPE.SOLID, + s.parser.yy.LINETYPE.DOTTED, + s.parser.yy.LINETYPE.SOLID_CROSS, + s.parser.yy.LINETYPE.DOTTED_CROSS, + ].includes(e.type) && k++; + }), + d.mirrorActors && + (h.bumpVerticalPos(2 * d.boxMargin), + m(n, p, g, h.getVerticalPos())); + var M = h.getBounds().bounds; + o.logger.debug( + 'For line height fix Querying: #' + t + ' .actor-line' + ), + Object(r.selectAll)('#' + t + ' .actor-line').attr( + 'y2', + M.stopy + ); + var D = M.stopy - M.starty + 2 * d.diagramMarginY; + d.mirrorActors && (D = D - d.boxMargin + d.bottomMarginAdj); + var E = M.stopx - M.startx + 2 * d.diagramMarginX; + v && + n + .append('text') + .text(v) + .attr( + 'x', + (M.stopx - M.startx) / 2 - 2 * d.diagramMarginX + ) + .attr('y', -25), + Object(c.configureSvgSize)(n, D, E, d.useMaxWidth); + var T = v ? 40 : 0; + n.attr( + 'viewBox', + M.startx - + d.diagramMarginX + + ' -' + + (d.diagramMarginY + T) + + ' ' + + E + + ' ' + + (D + T) + ), + o.logger.debug('models:', h.models); + }, + C = function (e, t) { + var n = {}; + return ( + t.forEach(function (t) { + if (e[t.to] && e[t.from]) { + var r = e[t.to]; + if ( + t.placement === s.parser.yy.PLACEMENT.LEFTOF && + !r.prevActor + ) + return; + if ( + t.placement === s.parser.yy.PLACEMENT.RIGHTOF && + !r.nextActor + ) + return; + var i = void 0 !== t.placement, + o = !i, + a = i ? p(d) : f(d), + u = t.wrap + ? c.default.wrapLabel( + t.message, + d.width - 2 * d.wrapPadding, + a + ) + : t.message, + l = + c.default.calculateTextDimensions(u, a).width + + 2 * d.wrapPadding; + o && t.from === r.nextActor + ? (n[t.to] = Math.max(n[t.to] || 0, l)) + : o && t.from === r.prevActor + ? (n[t.from] = Math.max(n[t.from] || 0, l)) + : o && t.from === t.to + ? ((n[t.from] = Math.max(n[t.from] || 0, l / 2)), + (n[t.to] = Math.max(n[t.to] || 0, l / 2))) + : t.placement === s.parser.yy.PLACEMENT.RIGHTOF + ? (n[t.from] = Math.max(n[t.from] || 0, l)) + : t.placement === s.parser.yy.PLACEMENT.LEFTOF + ? (n[r.prevActor] = Math.max(n[r.prevActor] || 0, l)) + : t.placement === s.parser.yy.PLACEMENT.OVER && + (r.prevActor && + (n[r.prevActor] = Math.max( + n[r.prevActor] || 0, + l / 2 + )), + r.nextActor && + (n[t.from] = Math.max(n[t.from] || 0, l / 2))); + } + }), + o.logger.debug('maxMessageWidthPerActor:', n), + n + ); + }, + S = function (e, t) { + var n = 0; + for (var r in (Object.keys(e).forEach(function (t) { + var r = e[t]; + r.wrap && + (r.description = c.default.wrapLabel( + r.description, + d.width - 2 * d.wrapPadding, + g(d) + )); + var i = c.default.calculateTextDimensions( + r.description, + g(d) + ); + (r.width = r.wrap + ? d.width + : Math.max(d.width, i.width + 2 * d.wrapPadding)), + (r.height = r.wrap + ? Math.max(i.height, d.height) + : d.height), + (n = Math.max(n, r.height)); + }), + t)) { + var i = e[r]; + if (i) { + var o = e[i.nextActor]; + if (o) { + var s = + t[r] + d.actorMargin - i.width / 2 - o.width / 2; + i.margin = Math.max(s, d.actorMargin); + } + } + } + return Math.max(n, d.height); + }, + x = function (e, t) { + var n, + r, + i, + a = {}, + u = []; + return ( + e.forEach(function (e) { + switch ( + ((e.id = c.default.random({ length: 10 })), e.type) + ) { + case s.parser.yy.LINETYPE.LOOP_START: + case s.parser.yy.LINETYPE.ALT_START: + case s.parser.yy.LINETYPE.OPT_START: + case s.parser.yy.LINETYPE.PAR_START: + u.push({ + id: e.id, + msg: e.message, + from: Number.MAX_SAFE_INTEGER, + to: Number.MIN_SAFE_INTEGER, + width: 0, + }); + break; + case s.parser.yy.LINETYPE.ALT_ELSE: + case s.parser.yy.LINETYPE.PAR_AND: + e.message && + ((n = u.pop()), + (a[n.id] = n), + (a[e.id] = n), + u.push(n)); + break; + case s.parser.yy.LINETYPE.LOOP_END: + case s.parser.yy.LINETYPE.ALT_END: + case s.parser.yy.LINETYPE.OPT_END: + case s.parser.yy.LINETYPE.PAR_END: + (n = u.pop()), (a[n.id] = n); + break; + case s.parser.yy.LINETYPE.ACTIVE_START: + var l = t[e.from ? e.from.actor : e.to.actor], + g = y(e.from ? e.from.actor : e.to.actor).length, + m = + l.x + + l.width / 2 + + ((g - 1) * d.activationWidth) / 2, + _ = { + startx: m, + stopx: m + d.activationWidth, + actor: e.from.actor, + enabled: !0, + }; + h.activations.push(_); + break; + case s.parser.yy.LINETYPE.ACTIVE_END: + var b = h.activations + .map(function (e) { + return e.actor; + }) + .lastIndexOf(e.from.actor); + delete h.activations.splice(b, 1)[0]; + } + void 0 !== e.placement + ? ((r = (function (e, t) { + var n = t[e.from].x, + r = t[e.to].x, + i = e.wrap && e.message, + a = c.default.calculateTextDimensions( + i + ? c.default.wrapLabel( + e.message, + d.width, + p(d) + ) + : e.message, + p(d) + ), + u = { + width: i + ? d.width + : Math.max( + d.width, + a.width + 2 * d.noteMargin + ), + height: 0, + startx: t[e.from].x, + stopx: 0, + starty: 0, + stopy: 0, + message: e.message, + }; + return ( + e.placement === s.parser.yy.PLACEMENT.RIGHTOF + ? ((u.width = i + ? Math.max(d.width, a.width) + : Math.max( + t[e.from].width / 2 + t[e.to].width / 2, + a.width + 2 * d.noteMargin + )), + (u.startx = + n + (t[e.from].width + d.actorMargin) / 2)) + : e.placement === s.parser.yy.PLACEMENT.LEFTOF + ? ((u.width = i + ? Math.max( + d.width, + a.width + 2 * d.noteMargin + ) + : Math.max( + t[e.from].width / 2 + t[e.to].width / 2, + a.width + 2 * d.noteMargin + )), + (u.startx = + n - + u.width + + (t[e.from].width - d.actorMargin) / 2)) + : e.to === e.from + ? ((a = c.default.calculateTextDimensions( + i + ? c.default.wrapLabel( + e.message, + Math.max(d.width, t[e.from].width), + p(d) + ) + : e.message, + p(d) + )), + (u.width = i + ? Math.max(d.width, t[e.from].width) + : Math.max( + t[e.from].width, + d.width, + a.width + 2 * d.noteMargin + )), + (u.startx = + n + (t[e.from].width - u.width) / 2)) + : ((u.width = + Math.abs( + n + + t[e.from].width / 2 - + (r + t[e.to].width / 2) + ) + d.actorMargin), + (u.startx = + n < r + ? n + + t[e.from].width / 2 - + d.actorMargin / 2 + : r + + t[e.to].width / 2 - + d.actorMargin / 2)), + i && + (u.message = c.default.wrapLabel( + e.message, + u.width - 2 * d.wrapPadding, + p(d) + )), + o.logger.debug( + 'NM:[' + .concat(u.startx, ',') + .concat(u.stopx, ',') + .concat(u.starty, ',') + .concat(u.stopy, ':') + .concat(u.width, ',') + .concat(u.height, '=') + .concat(e.message, ']') + ), + u + ); + })(e, t)), + (e.noteModel = r), + u.forEach(function (e) { + ((n = e).from = Math.min(n.from, r.startx)), + (n.to = Math.max(n.to, r.startx + r.width)), + (n.width = + Math.max(n.width, Math.abs(n.from - n.to)) - + d.labelBoxWidth); + })) + : ((i = (function (e, t) { + var n = !1; + if ( + ([ + s.parser.yy.LINETYPE.SOLID_OPEN, + s.parser.yy.LINETYPE.DOTTED_OPEN, + s.parser.yy.LINETYPE.SOLID, + s.parser.yy.LINETYPE.DOTTED, + s.parser.yy.LINETYPE.SOLID_CROSS, + s.parser.yy.LINETYPE.DOTTED_CROSS, + ].includes(e.type) && (n = !0), + !n) + ) + return {}; + var r = v(e.from, t), + i = v(e.to, t), + o = r[0] <= i[0] ? 1 : 0, + a = r[0] < i[0] ? 0 : 1, + u = r.concat(i), + l = Math.abs(i[a] - r[o]), + h = c.default.calculateTextDimensions( + e.message, + f(d) + ); + return ( + e.wrap && + e.message && + (e.message = c.default.wrapLabel( + e.message, + Math.max(l + 2 * d.wrapPadding, d.width), + f(d) + )), + { + width: Math.max( + e.wrap ? 0 : h.width + 2 * d.wrapPadding, + l + 2 * d.wrapPadding, + d.width + ), + height: 0, + startx: r[o], + stopx: i[a], + starty: 0, + stopy: 0, + message: e.message, + type: e.type, + wrap: e.wrap, + fromBounds: Math.min.apply(null, u), + toBounds: Math.max.apply(null, u), + } + ); + })(e, t)), + (e.msgModel = i), + i.startx && + i.stopx && + u.length > 0 && + u.forEach(function (r) { + if (((n = r), i.startx === i.stopx)) { + var o = t[e.from], + s = t[e.to]; + (n.from = Math.min( + o.x - i.width / 2, + o.x - o.width / 2, + n.from + )), + (n.to = Math.max( + s.x + i.width / 2, + s.x + o.width / 2, + n.to + )), + (n.width = + Math.max(n.width, Math.abs(n.to - n.from)) - + d.labelBoxWidth); + } else (n.from = Math.min(i.startx, n.from)), (n.to = Math.max(i.stopx, n.to)), (n.width = Math.max(n.width, i.width) - d.labelBoxWidth); + })); + }), + (h.activations = []), + o.logger.debug('Loop type widths:', a), + a + ); + }; + t.default = { bounds: h, drawActors: m, setConf: _, draw: w }; + }, + './src/diagrams/sequence/styles.js': + /*!*****************************************!*\ !*** ./src/diagrams/sequence/styles.js ***! \*****************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return".actor {\n stroke: ".concat(e.actorBorder,";\n fill: ").concat(e.actorBkg,";\n }\n\n text.actor > tspan {\n fill: ").concat(e.actorTextColor,";\n stroke: none;\n }\n\n .actor-line {\n stroke: ").concat(e.actorLineColor,";\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ").concat(e.signalColor,";\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ").concat(e.signalColor,";\n }\n\n #arrowhead path {\n fill: ").concat(e.signalColor,";\n stroke: ").concat(e.signalColor,";\n }\n\n .sequenceNumber {\n fill: ").concat(e.sequenceNumberColor,";\n }\n\n #sequencenumber {\n fill: ").concat(e.signalColor,";\n }\n\n #crosshead path {\n fill: ").concat(e.signalColor,";\n stroke: ").concat(e.signalColor,";\n }\n\n .messageText {\n fill: ").concat(e.signalTextColor,";\n stroke: ").concat(e.signalTextColor,";\n }\n\n .labelBox {\n stroke: ").concat(e.labelBoxBorderColor,";\n fill: ").concat(e.labelBoxBkgColor,";\n }\n\n .labelText, .labelText > tspan {\n fill: ").concat(e.labelTextColor,";\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ").concat(e.loopTextColor,";\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ").concat(e.labelBoxBorderColor,";\n fill: ").concat(e.labelBoxBorderColor,";\n }\n\n .note {\n //stroke: #decc93;\n stroke: ").concat(e.noteBorderColor,";\n fill: ").concat(e.noteBkgColor,";\n }\n\n .noteText, .noteText > tspan {\n fill: ").concat(e.noteTextColor,";\n stroke: none;\n }\n\n .activation0 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n\n .activation1 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n\n .activation2 {\n fill: ").concat(e.activationBkgColor,";\n stroke: ").concat(e.activationBorderColor,";\n }\n")}},"./src/diagrams/sequence/svgDraw.js": -/*!******************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return '.actor {\n stroke: ' + .concat(e.actorBorder, ';\n fill: ') + .concat( + e.actorBkg, + ';\n }\n\n text.actor > tspan {\n fill: ' + ) + .concat( + e.actorTextColor, + ';\n stroke: none;\n }\n\n .actor-line {\n stroke: ' + ) + .concat( + e.actorLineColor, + ';\n }\n\n .messageLine0 {\n stroke-width: 1.5;\n stroke-dasharray: none;\n stroke: ' + ) + .concat( + e.signalColor, + ';\n }\n\n .messageLine1 {\n stroke-width: 1.5;\n stroke-dasharray: 2, 2;\n stroke: ' + ) + .concat( + e.signalColor, + ';\n }\n\n #arrowhead path {\n fill: ' + ) + .concat(e.signalColor, ';\n stroke: ') + .concat( + e.signalColor, + ';\n }\n\n .sequenceNumber {\n fill: ' + ) + .concat( + e.sequenceNumberColor, + ';\n }\n\n #sequencenumber {\n fill: ' + ) + .concat( + e.signalColor, + ';\n }\n\n #crosshead path {\n fill: ' + ) + .concat(e.signalColor, ';\n stroke: ') + .concat( + e.signalColor, + ';\n }\n\n .messageText {\n fill: ' + ) + .concat(e.signalTextColor, ';\n stroke: ') + .concat( + e.signalTextColor, + ';\n }\n\n .labelBox {\n stroke: ' + ) + .concat(e.labelBoxBorderColor, ';\n fill: ') + .concat( + e.labelBoxBkgColor, + ';\n }\n\n .labelText, .labelText > tspan {\n fill: ' + ) + .concat( + e.labelTextColor, + ';\n stroke: none;\n }\n\n .loopText, .loopText > tspan {\n fill: ' + ) + .concat( + e.loopTextColor, + ';\n stroke: none;\n }\n\n .loopLine {\n stroke-width: 2px;\n stroke-dasharray: 2, 2;\n stroke: ' + ) + .concat(e.labelBoxBorderColor, ';\n fill: ') + .concat( + e.labelBoxBorderColor, + ';\n }\n\n .note {\n //stroke: #decc93;\n stroke: ' + ) + .concat(e.noteBorderColor, ';\n fill: ') + .concat( + e.noteBkgColor, + ';\n }\n\n .noteText, .noteText > tspan {\n fill: ' + ) + .concat( + e.noteTextColor, + ';\n stroke: none;\n }\n\n .activation0 {\n fill: ' + ) + .concat(e.activationBkgColor, ';\n stroke: ') + .concat( + e.activationBorderColor, + ';\n }\n\n .activation1 {\n fill: ' + ) + .concat(e.activationBkgColor, ';\n stroke: ') + .concat( + e.activationBorderColor, + ';\n }\n\n .activation2 {\n fill: ' + ) + .concat(e.activationBkgColor, ';\n stroke: ') + .concat(e.activationBorderColor, ';\n }\n'); + }); + }, + './src/diagrams/sequence/svgDraw.js': + /*!******************************************!*\ !*** ./src/diagrams/sequence/svgDraw.js ***! \******************************************/ -/*! exports provided: drawRect, drawText, drawLabel, drawActor, anchorElement, drawActivation, drawLoop, drawBackgroundRect, insertArrowHead, insertSequenceNumber, insertArrowCrossHead, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawText",(function(){return o})),n.d(t,"drawLabel",(function(){return s})),n.d(t,"drawActor",(function(){return u})),n.d(t,"anchorElement",(function(){return l})),n.d(t,"drawActivation",(function(){return c})),n.d(t,"drawLoop",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"insertArrowHead",(function(){return f})),n.d(t,"insertSequenceNumber",(function(){return p})),n.d(t,"insertArrowCrossHead",(function(){return g})),n.d(t,"getTextObj",(function(){return m})),n.d(t,"getNoteRect",(function(){return _}));var r=n(/*! ../common/common */"./src/diagrams/common/common.js"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=0,i=0,o=t.wrap?t.text.split(r.default.lineBreakRegex):[t.text.replace(r.default.lineBreakRegex," ")],s=[],a=0,u=function(){return t.y};if(void 0!==t.valign&&void 0!==t.textMargin&&t.textMargin>0)switch(t.valign){case"top":case"start":u=function(){return Math.round(t.y+t.textMargin)};break;case"middle":case"center":u=function(){return Math.round(t.y+(n+i+t.textMargin)/2)};break;case"bottom":case"end":u=function(){return Math.round(t.y+(n+i+2*t.textMargin)-t.textMargin)}}if(void 0!==t.anchor&&void 0!==t.textMargin&&void 0!==t.width)switch(t.anchor){case"left":case"start":t.x=Math.round(t.x+t.textMargin),t.anchor="start",t.dominantBaseline="text-after-edge",t.alignmentBaseline="middle";break;case"middle":case"center":t.x=Math.round(t.x+t.width/2),t.anchor="middle",t.dominantBaseline="middle",t.alignmentBaseline="middle";break;case"right":case"end":t.x=Math.round(t.x+t.width-t.textMargin),t.anchor="end",t.dominantBaseline="text-before-edge",t.alignmentBaseline="middle"}for(var l=0;l0&&(i+=(d._groups||d)[0][0].getBBox().height,n=i),s.push(d)}return s},s=function(e,t){var n,r,i,s,a,u=e.append("polygon");return u.attr("points",(n=t.x,r=t.y,i=t.width,s=t.height,n+","+r+" "+(n+i)+","+r+" "+(n+i)+","+(r+s-(a=7))+" "+(n+i-1.2*a)+","+(r+s)+" "+n+","+(r+s))),u.attr("class","labelBox"),t.y=t.y+t.height/2,o(e,t),u},a=-1,u=function(e,t,n){var r=t.x+t.width/2,o=e.append("g");0===t.y&&(a++,o.append("line").attr("id","actor"+a).attr("x1",r).attr("y1",5).attr("x2",r).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999"));var s=_();s.x=t.x,s.y=t.y,s.fill="#eaeaea",s.width=t.width,s.height=t.height,s.class="actor",s.rx=3,s.ry=3,i(o,s),y(n)(t.description,o,s.x,s.y,s.width,s.height,{class:"actor"},n)},l=function(e){return e.append("g")},c=function(e,t,n,r,o){var s=_(),a=t.anchored;s.x=t.startx,s.y=t.starty,s.class="activation"+o%3,s.width=t.stopx-t.startx,s.height=n-t.starty,i(a,s)},d=function(e,t,n,r){var i=r.boxMargin,a=r.boxTextMargin,u=r.labelBoxHeight,l=r.labelBoxWidth,c=r.messageFontFamily,d=r.messageFontSize,h=r.messageFontWeight,f=e.append("g"),p=function(e,t,n,r){return f.append("line").attr("x1",e).attr("y1",t).attr("x2",n).attr("y2",r).attr("class","loopLine")};p(t.startx,t.starty,t.stopx,t.starty),p(t.stopx,t.starty,t.stopx,t.stopy),p(t.startx,t.stopy,t.stopx,t.stopy),p(t.startx,t.starty,t.startx,t.stopy),void 0!==t.sections&&t.sections.forEach((function(e){p(t.startx,e.y,t.stopx,e.y).style("stroke-dasharray","3, 3")}));var g=m();g.text=n,g.x=t.startx,g.y=t.starty,g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.anchor="middle",g.valign="middle",g.tspan=!1,g.width=l||50,g.height=u||20,g.textMargin=a,g.class="labelText",s(f,g),(g=m()).text=t.title,g.x=t.startx+l/2+(t.stopx-t.startx)/2,g.y=t.starty+i+a,g.anchor="middle",g.valign="middle",g.textMargin=a,g.class="loopText",g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.wrap=!0;var _=o(f,g);return void 0!==t.sectionTitles&&t.sectionTitles.forEach((function(e,n){if(e.message){g.text=e.message,g.x=t.startx+(t.stopx-t.startx)/2,g.y=t.sections[n].y+i+a,g.class="loopText",g.anchor="middle",g.valign="middle",g.tspan=!1,g.fontFamily=c,g.fontSize=d,g.fontWeight=h,g.wrap=t.wrap,_=o(f,g);var r=Math.round(_.map((function(e){return(e._groups||e)[0][0].getBBox().height})).reduce((function(e,t){return e+t})));t.sections[n].height+=r-(i+a)}})),t.height=Math.round(t.stopy-t.starty),f},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(e){e.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},p=function(e){e.append("defs").append("marker").attr("id","sequencenumber").attr("refX",15).attr("refY",15).attr("markerWidth",60).attr("markerHeight",40).attr("orient","auto").append("circle").attr("cx",15).attr("cy",15).attr("r",6)},g=function(e){var t=e.append("defs").append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);t.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),t.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},m=function(){return{x:0,y:0,fill:void 0,anchor:void 0,style:"#666",width:void 0,height:void 0,textMargin:0,rx:0,ry:0,tspan:!0,valign:void 0}},_=function(){return{x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0}},y=function(){function e(e,t,n,r,o,s,a){i(t.append("text").attr("x",n+o/2).attr("y",r+s/2+5).style("text-anchor","middle").text(e),a)}function t(e,t,n,o,s,a,u,l){for(var c=l.actorFontSize,d=l.actorFontFamily,h=l.actorFontWeight,f=e.split(r.default.lineBreakRegex),p=0;p 0 + ) + switch (t.valign) { + case 'top': + case 'start': + u = function () { + return Math.round(t.y + t.textMargin); + }; + break; + case 'middle': + case 'center': + u = function () { + return Math.round(t.y + (n + i + t.textMargin) / 2); + }; + break; + case 'bottom': + case 'end': + u = function () { + return Math.round( + t.y + (n + i + 2 * t.textMargin) - t.textMargin + ); + }; + } + if ( + void 0 !== t.anchor && + void 0 !== t.textMargin && + void 0 !== t.width + ) + switch (t.anchor) { + case 'left': + case 'start': + (t.x = Math.round(t.x + t.textMargin)), + (t.anchor = 'start'), + (t.dominantBaseline = 'text-after-edge'), + (t.alignmentBaseline = 'middle'); + break; + case 'middle': + case 'center': + (t.x = Math.round(t.x + t.width / 2)), + (t.anchor = 'middle'), + (t.dominantBaseline = 'middle'), + (t.alignmentBaseline = 'middle'); + break; + case 'right': + case 'end': + (t.x = Math.round(t.x + t.width - t.textMargin)), + (t.anchor = 'end'), + (t.dominantBaseline = 'text-before-edge'), + (t.alignmentBaseline = 'middle'); + } + for (var l = 0; l < o.length; l++) { + var c = o[l]; + void 0 !== t.textMargin && + 0 === t.textMargin && + void 0 !== t.fontSize && + (a = l * t.fontSize); + var d = e.append('text'); + if ( + (d.attr('x', t.x), + d.attr('y', u()), + void 0 !== t.anchor && + d + .attr('text-anchor', t.anchor) + .attr('dominant-baseline', t.dominantBaseline) + .attr('alignment-baseline', t.alignmentBaseline), + void 0 !== t.fontFamily && + d.style('font-family', t.fontFamily), + void 0 !== t.fontSize && d.style('font-size', t.fontSize), + void 0 !== t.fontWeight && + d.style('font-weight', t.fontWeight), + void 0 !== t.fill && d.attr('fill', t.fill), + void 0 !== t.class && d.attr('class', t.class), + void 0 !== t.dy + ? d.attr('dy', t.dy) + : 0 !== a && d.attr('dy', a), + t.tspan) + ) { + var h = d.append('tspan'); + h.attr('x', t.x), + void 0 !== t.fill && h.attr('fill', t.fill), + h.text(c); + } else d.text(c); + void 0 !== t.valign && + void 0 !== t.textMargin && + t.textMargin > 0 && + ((i += (d._groups || d)[0][0].getBBox().height), (n = i)), + s.push(d); + } + return s; + }, + s = function (e, t) { + var n, + r, + i, + s, + a, + u = e.append('polygon'); + return ( + u.attr( + 'points', + ((n = t.x), + (r = t.y), + (i = t.width), + (s = t.height), + n + + ',' + + r + + ' ' + + (n + i) + + ',' + + r + + ' ' + + (n + i) + + ',' + + (r + s - (a = 7)) + + ' ' + + (n + i - 1.2 * a) + + ',' + + (r + s) + + ' ' + + n + + ',' + + (r + s)) + ), + u.attr('class', 'labelBox'), + (t.y = t.y + t.height / 2), + o(e, t), + u + ); + }, + a = -1, + u = function (e, t, n) { + var r = t.x + t.width / 2, + o = e.append('g'); + 0 === t.y && + (a++, + o + .append('line') + .attr('id', 'actor' + a) + .attr('x1', r) + .attr('y1', 5) + .attr('x2', r) + .attr('y2', 2e3) + .attr('class', 'actor-line') + .attr('stroke-width', '0.5px') + .attr('stroke', '#999')); + var s = _(); + (s.x = t.x), + (s.y = t.y), + (s.fill = '#eaeaea'), + (s.width = t.width), + (s.height = t.height), + (s.class = 'actor'), + (s.rx = 3), + (s.ry = 3), + i(o, s), + y(n)( + t.description, + o, + s.x, + s.y, + s.width, + s.height, + { class: 'actor' }, + n + ); + }, + l = function (e) { + return e.append('g'); + }, + c = function (e, t, n, r, o) { + var s = _(), + a = t.anchored; + (s.x = t.startx), + (s.y = t.starty), + (s.class = 'activation' + (o % 3)), + (s.width = t.stopx - t.startx), + (s.height = n - t.starty), + i(a, s); + }, + d = function (e, t, n, r) { + var i = r.boxMargin, + a = r.boxTextMargin, + u = r.labelBoxHeight, + l = r.labelBoxWidth, + c = r.messageFontFamily, + d = r.messageFontSize, + h = r.messageFontWeight, + f = e.append('g'), + p = function (e, t, n, r) { + return f + .append('line') + .attr('x1', e) + .attr('y1', t) + .attr('x2', n) + .attr('y2', r) + .attr('class', 'loopLine'); + }; + p(t.startx, t.starty, t.stopx, t.starty), + p(t.stopx, t.starty, t.stopx, t.stopy), + p(t.startx, t.stopy, t.stopx, t.stopy), + p(t.startx, t.starty, t.startx, t.stopy), + void 0 !== t.sections && + t.sections.forEach(function (e) { + p(t.startx, e.y, t.stopx, e.y).style( + 'stroke-dasharray', + '3, 3' + ); + }); + var g = m(); + (g.text = n), + (g.x = t.startx), + (g.y = t.starty), + (g.fontFamily = c), + (g.fontSize = d), + (g.fontWeight = h), + (g.anchor = 'middle'), + (g.valign = 'middle'), + (g.tspan = !1), + (g.width = l || 50), + (g.height = u || 20), + (g.textMargin = a), + (g.class = 'labelText'), + s(f, g), + ((g = m()).text = t.title), + (g.x = t.startx + l / 2 + (t.stopx - t.startx) / 2), + (g.y = t.starty + i + a), + (g.anchor = 'middle'), + (g.valign = 'middle'), + (g.textMargin = a), + (g.class = 'loopText'), + (g.fontFamily = c), + (g.fontSize = d), + (g.fontWeight = h), + (g.wrap = !0); + var _ = o(f, g); + return ( + void 0 !== t.sectionTitles && + t.sectionTitles.forEach(function (e, n) { + if (e.message) { + (g.text = e.message), + (g.x = t.startx + (t.stopx - t.startx) / 2), + (g.y = t.sections[n].y + i + a), + (g.class = 'loopText'), + (g.anchor = 'middle'), + (g.valign = 'middle'), + (g.tspan = !1), + (g.fontFamily = c), + (g.fontSize = d), + (g.fontWeight = h), + (g.wrap = t.wrap), + (_ = o(f, g)); + var r = Math.round( + _.map(function (e) { + return (e._groups || e)[0][0].getBBox().height; + }).reduce(function (e, t) { + return e + t; + }) + ); + t.sections[n].height += r - (i + a); + } + }), + (t.height = Math.round(t.stopy - t.starty)), + f + ); + }, + h = function (e, t) { + i(e, { + x: t.startx, + y: t.starty, + width: t.stopx - t.startx, + height: t.stopy - t.starty, + fill: t.fill, + class: 'rect', + }).lower(); + }, + f = function (e) { + e.append('defs') + .append('marker') + .attr('id', 'arrowhead') + .attr('refX', 5) + .attr('refY', 2) + .attr('markerWidth', 6) + .attr('markerHeight', 4) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0,0 V 4 L6,2 Z'); + }, + p = function (e) { + e.append('defs') + .append('marker') + .attr('id', 'sequencenumber') + .attr('refX', 15) + .attr('refY', 15) + .attr('markerWidth', 60) + .attr('markerHeight', 40) + .attr('orient', 'auto') + .append('circle') + .attr('cx', 15) + .attr('cy', 15) + .attr('r', 6); + }, + g = function (e) { + var t = e + .append('defs') + .append('marker') + .attr('id', 'crosshead') + .attr('markerWidth', 15) + .attr('markerHeight', 8) + .attr('orient', 'auto') + .attr('refX', 16) + .attr('refY', 4); + t + .append('path') + .attr('fill', 'black') + .attr('stroke', '#000000') + .style('stroke-dasharray', '0, 0') + .attr('stroke-width', '1px') + .attr('d', 'M 9,2 V 6 L16,4 Z'), + t + .append('path') + .attr('fill', 'none') + .attr('stroke', '#000000') + .style('stroke-dasharray', '0, 0') + .attr('stroke-width', '1px') + .attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); + }, + m = function () { + return { + x: 0, + y: 0, + fill: void 0, + anchor: void 0, + style: '#666', + width: void 0, + height: void 0, + textMargin: 0, + rx: 0, + ry: 0, + tspan: !0, + valign: void 0, + }; + }, + _ = function () { + return { + x: 0, + y: 0, + fill: '#EDF2AE', + stroke: '#666', + width: 100, + anchor: 'start', + height: 100, + rx: 0, + ry: 0, + }; + }, + y = (function () { + function e(e, t, n, r, o, s, a) { + i( + t + .append('text') + .attr('x', n + o / 2) + .attr('y', r + s / 2 + 5) + .style('text-anchor', 'middle') + .text(e), + a + ); + } + function t(e, t, n, o, s, a, u, l) { + for ( + var c = l.actorFontSize, + d = l.actorFontFamily, + h = l.actorFontWeight, + f = e.split(r.default.lineBreakRegex), + p = 0; + p < f.length; + p++ + ) { + var g = p * c - (c * (f.length - 1)) / 2, + m = t + .append('text') + .attr('x', n + s / 2) + .attr('y', o) + .style('text-anchor', 'middle') + .style('font-size', c) + .style('font-weight', h) + .style('font-family', d); + m + .append('tspan') + .attr('x', n + s / 2) + .attr('dy', g) + .text(f[p]), + m + .attr('y', o + a / 2) + .attr('dominant-baseline', 'central') + .attr('alignment-baseline', 'central'), + i(m, u); + } + } + function n(e, n, r, o, s, a, u, l) { + var c = n.append('switch'), + d = c + .append('foreignObject') + .attr('x', r) + .attr('y', o) + .attr('width', s) + .attr('height', a) + .append('div') + .style('display', 'table') + .style('height', '100%') + .style('width', '100%'); + d + .append('div') + .style('display', 'table-cell') + .style('text-align', 'center') + .style('vertical-align', 'middle') + .text(e), + t(e, c, r, o, s, a, u, l), + i(d, u); + } + function i(e, t) { + for (var n in t) t.hasOwnProperty(n) && e.attr(n, t[n]); + } + return function (r) { + return 'fo' === r.textPlacement + ? n + : 'old' === r.textPlacement + ? e + : t; + }; + })(); + t.default = { + drawRect: i, + drawText: o, + drawLabel: s, + drawActor: u, + anchorElement: l, + drawActivation: c, + drawLoop: d, + drawBackgroundRect: h, + insertArrowHead: f, + insertSequenceNumber: p, + insertArrowCrossHead: g, + getTextObj: m, + getNoteRect: _, + }; + }, + './src/diagrams/state/id-cache.js': + /*!****************************************!*\ !*** ./src/diagrams/state/id-cache.js ***! \****************************************/ -/*! exports provided: set, get, keys, size, default */function(e,t,n){"use strict";n.r(t),n.d(t,"set",(function(){return i})),n.d(t,"get",(function(){return o})),n.d(t,"keys",(function(){return s})),n.d(t,"size",(function(){return a}));var r={},i=function(e,t){r[e]=t},o=function(e){return r[e]},s=function(){return Object.keys(r)},a=function(){return s().length};t.default={get:o,set:i,keys:s,size:a}},"./src/diagrams/state/parser/stateDiagram.jison": -/*!******************************************************!*\ + /*! exports provided: set, get, keys, size, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'set', function () { + return i; + }), + n.d(t, 'get', function () { + return o; + }), + n.d(t, 'keys', function () { + return s; + }), + n.d(t, 'size', function () { + return a; + }); + var r = {}, + i = function (e, t) { + r[e] = t; + }, + o = function (e) { + return r[e]; + }, + s = function () { + return Object.keys(r); + }, + a = function () { + return s().length; + }; + t.default = { get: o, set: i, keys: s, size: a }; + }, + './src/diagrams/state/parser/stateDiagram.jison': + /*!******************************************************!*\ !*** ./src/diagrams/state/parser/stateDiagram.jison ***! \******************************************************/ -/*! no static exports found */function(e,t,n){(function(e,r){var i=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,2],n=[1,3],r=[1,5],i=[1,7],o=[2,5],s=[1,15],a=[1,17],u=[1,19],l=[1,20],c=[1,21],d=[1,22],h=[1,28],f=[1,23],p=[1,24],g=[1,25],m=[1,26],_=[1,29],y=[1,32],v=[1,4,5,14,15,17,19,20,22,23,24,25,26,36,39],b=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,36,39],w=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,36,39],C=[4,5,14,15,17,19,20,22,23,24,25,26,36,39],S={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,"--\x3e":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CONCURRENT:25,note:26,notePosition:27,NOTE_TEXT:28,openDirective:29,typeDirective:30,closeDirective:31,":":32,argDirective:33,eol:34,";":35,EDGE_STATE:36,left_of:37,right_of:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",7:"SD",12:"DESCR",13:"--\x3e",14:"HIDE_EMPTY",15:"scale",16:"WIDTH",17:"COMPOSIT_STATE",18:"STRUCT_START",19:"STRUCT_STOP",20:"STATE_DESCR",21:"AS",22:"ID",23:"FORK",24:"JOIN",25:"CONCURRENT",26:"note",28:"NOTE_TEXT",32:":",35:";",36:"EDGE_STATE",37:"left_of",38:"right_of",39:"open_directive",40:"type_directive",41:"arg_directive",42:"close_directive"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[6,3],[6,5],[34,1],[34,1],[11,1],[11,1],[27,1],[27,1],[29,1],[30,1],[33,1],[31,1]],performAction:function(e,t,n,r,i,o,s){var a=o.length-1;switch(i){case 4:return r.setRootDoc(o[a]),o[a];case 5:this.$=[];break;case 6:"nl"!=o[a]&&(o[a-1].push(o[a]),this.$=o[a-1]);break;case 7:case 8:this.$=o[a];break;case 9:this.$="nl";break;case 10:this.$={stmt:"state",id:o[a],type:"default",description:""};break;case 11:this.$={stmt:"state",id:o[a-1],type:"default",description:r.trimColon(o[a])};break;case 12:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-2],type:"default",description:""},state2:{stmt:"state",id:o[a],type:"default",description:""}};break;case 13:this.$={stmt:"relation",state1:{stmt:"state",id:o[a-3],type:"default",description:""},state2:{stmt:"state",id:o[a-1],type:"default",description:""},description:o[a].substr(1).trim()};break;case 17:this.$={stmt:"state",id:o[a-3],type:"default",description:"",doc:o[a-1]};break;case 18:var u=o[a],l=o[a-2].trim();if(o[a].match(":")){var c=o[a].split(":");u=c[0],l=[l,c[1]]}this.$={stmt:"state",id:u,type:"default",description:l};break;case 19:this.$={stmt:"state",id:o[a-3],type:"default",description:o[a-5],doc:o[a-1]};break;case 20:this.$={stmt:"state",id:o[a],type:"fork"};break;case 21:this.$={stmt:"state",id:o[a],type:"join"};break;case 22:this.$={stmt:"state",id:r.getDividerId(),type:"divider"};break;case 23:this.$={stmt:"state",id:o[a-1].trim(),note:{position:o[a-2].trim(),text:o[a].trim()}};break;case 30:case 31:this.$=o[a];break;case 34:r.parseDirective("%%{","open_directive");break;case 35:r.parseDirective(o[a],"type_directive");break;case 36:o[a]=o[a].trim().replace(/'/g,'"'),r.parseDirective(o[a],"arg_directive");break;case 37:r.parseDirective("}%%","close_directive","state")}},table:[{3:1,4:t,5:n,6:4,7:r,29:6,39:i},{1:[3]},{3:8,4:t,5:n,6:4,7:r,29:6,39:i},{3:9,4:t,5:n,6:4,7:r,29:6,39:i},{3:10,4:t,5:n,6:4,7:r,29:6,39:i},e([1,4,5,14,15,17,20,22,23,24,25,26,36,39],o,{8:11}),{30:12,40:[1,13]},{40:[2,34]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},{31:30,32:[1,31],42:y},e([32,42],[2,35]),e(v,[2,6]),{6:27,10:33,11:18,14:u,15:l,17:c,20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,8]),e(v,[2,9]),e(v,[2,10],{12:[1,34],13:[1,35]}),e(v,[2,14]),{16:[1,36]},e(v,[2,16],{18:[1,37]}),{21:[1,38]},e(v,[2,20]),e(v,[2,21]),e(v,[2,22]),{27:39,28:[1,40],37:[1,41],38:[1,42]},e(v,[2,25]),e(b,[2,30]),e(b,[2,31]),e(w,[2,26]),{33:43,41:[1,44]},e(w,[2,37]),e(v,[2,7]),e(v,[2,11]),{11:45,22:h,36:_},e(v,[2,15]),e(C,o,{8:46}),{22:[1,47]},{22:[1,48]},{21:[1,49]},{22:[2,32]},{22:[2,33]},{31:50,42:y},{42:[2,36]},e(v,[2,12],{12:[1,51]}),{4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,19:[1,52],20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,18],{18:[1,53]}),{28:[1,54]},{22:[1,55]},e(w,[2,27]),e(v,[2,13]),e(v,[2,17]),e(C,o,{8:56}),e(v,[2,23]),e(v,[2,24]),{4:s,5:a,6:27,9:14,10:16,11:18,14:u,15:l,17:c,19:[1,57],20:d,22:h,23:f,24:p,25:g,26:m,29:6,36:_,39:i},e(v,[2,19])],defaultActions:{7:[2,34],8:[2,1],9:[2,2],10:[2,3],41:[2,32],42:[2,33],44:[2,36]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[],i=[null],o=[],s=this.table,a="",u=0,l=0,c=0,d=2,h=1,f=o.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(g.yy[m]=this.yy[m]);p.setInput(e,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var _=p.yylloc;o.push(_);var y=p.options&&p.options.ranges;function v(){var e;return"number"!=typeof(e=r.pop()||p.lex()||h)&&(e instanceof Array&&(e=(r=e).pop()),e=t.symbols_[e]||e),e}"function"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var b,w,C,S,x,L,k,M,D,E={};;){if(C=n[n.length-1],this.defaultActions[C]?S=this.defaultActions[C]:(null==b&&(b=v()),S=s[C]&&s[C][b]),void 0===S||!S.length||!S[0]){var T="";for(L in D=[],s[C])this.terminals_[L]&&L>d&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),39;case 1:return this.begin("type_directive"),40;case 2:return this.popState(),this.begin("arg_directive"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:break;case 6:console.log("Crap after close");break;case 7:return 5;case 8:case 9:case 10:case 11:break;case 12:return this.pushState("SCALE"),15;case 13:return 16;case 14:this.popState();break;case 15:this.pushState("STATE");break;case 16:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 17:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 18:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),23;case 19:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),24;case 20:this.begin("STATE_STRING");break;case 21:return this.popState(),this.pushState("STATE_ID"),"AS";case 22:return this.popState(),"ID";case 23:this.popState();break;case 24:return"STATE_DESCR";case 25:return 17;case 26:this.popState();break;case 27:return this.popState(),this.pushState("struct"),18;case 28:return this.popState(),19;case 29:break;case 30:return this.begin("NOTE"),26;case 31:return this.popState(),this.pushState("NOTE_ID"),37;case 32:return this.popState(),this.pushState("NOTE_ID"),38;case 33:this.popState(),this.pushState("FLOATING_NOTE");break;case 34:return this.popState(),this.pushState("FLOATING_NOTE_ID"),"AS";case 35:break;case 36:return"NOTE_TEXT";case 37:return this.popState(),"ID";case 38:return this.popState(),this.pushState("NOTE_TEXT"),22;case 39:return this.popState(),t.yytext=t.yytext.substr(2).trim(),28;case 40:return this.popState(),t.yytext=t.yytext.slice(0,-8).trim(),28;case 41:case 42:return 7;case 43:return 14;case 44:return 36;case 45:return 22;case 46:return t.yytext=t.yytext.trim(),12;case 47:return 13;case 48:return 25;case 49:return 5;case 50:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:((?!\n)\s)+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:scale\s+)/i,/^(?:\d+)/i,/^(?:\s+width\b)/i,/^(?:state\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\[\[fork\]\])/i,/^(?:.*\[\[join\]\])/i,/^(?:["])/i,/^(?:\s*as\s+)/i,/^(?:[^\n\{]*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n\s\{]+)/i,/^(?:\n)/i,/^(?:\{)/i,/^(?:\})/i,/^(?:[\n])/i,/^(?:note\s+)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:")/i,/^(?:\s*as\s*)/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[^\n]*)/i,/^(?:\s*[^:\n\s\-]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:[\s\S]*?end note\b)/i,/^(?:stateDiagram\s+)/i,/^(?:stateDiagram-v2\s+)/i,/^(?:hide empty description\b)/i,/^(?:\[\*\])/i,/^(?:[^:\n\s\-\{]+)/i,/^(?:\s*:[^:\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[9,10],inclusive:!1},close_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[3,4,9,10],inclusive:!1},type_directive:{rules:[2,3,9,10],inclusive:!1},open_directive:{rules:[1,9,10],inclusive:!1},struct:{rules:[9,10,15,28,29,30,44,45,46,47,48],inclusive:!1},FLOATING_NOTE_ID:{rules:[37],inclusive:!1},FLOATING_NOTE:{rules:[34,35,36],inclusive:!1},NOTE_TEXT:{rules:[39,40],inclusive:!1},NOTE_ID:{rules:[38],inclusive:!1},NOTE:{rules:[31,32,33],inclusive:!1},SCALE:{rules:[13,14],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[22],inclusive:!1},STATE_STRING:{rules:[23,24],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[9,10,16,17,18,19,20,21,25,26,27],inclusive:!1},ID:{rules:[9,10],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,10,11,12,15,27,30,41,42,43,44,45,46,47,49,50],inclusive:!0}}};function L(){this.yy={}}return S.lexer=x,L.prototype=S,S.Parser=L,new L}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/state/shapes.js": -/*!**************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 2], + n = [1, 3], + r = [1, 5], + i = [1, 7], + o = [2, 5], + s = [1, 15], + a = [1, 17], + u = [1, 19], + l = [1, 20], + c = [1, 21], + d = [1, 22], + h = [1, 28], + f = [1, 23], + p = [1, 24], + g = [1, 25], + m = [1, 26], + _ = [1, 29], + y = [1, 32], + v = [ + 1, + 4, + 5, + 14, + 15, + 17, + 19, + 20, + 22, + 23, + 24, + 25, + 26, + 36, + 39, + ], + b = [ + 1, + 4, + 5, + 12, + 13, + 14, + 15, + 17, + 19, + 20, + 22, + 23, + 24, + 25, + 26, + 36, + 39, + ], + w = [ + 1, + 4, + 5, + 7, + 14, + 15, + 17, + 19, + 20, + 22, + 23, + 24, + 25, + 26, + 36, + 39, + ], + C = [4, 5, 14, 15, 17, 19, 20, 22, 23, 24, 25, 26, 36, 39], + S = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + SPACE: 4, + NL: 5, + directive: 6, + SD: 7, + document: 8, + line: 9, + statement: 10, + idStatement: 11, + DESCR: 12, + '--\x3e': 13, + HIDE_EMPTY: 14, + scale: 15, + WIDTH: 16, + COMPOSIT_STATE: 17, + STRUCT_START: 18, + STRUCT_STOP: 19, + STATE_DESCR: 20, + AS: 21, + ID: 22, + FORK: 23, + JOIN: 24, + CONCURRENT: 25, + note: 26, + notePosition: 27, + NOTE_TEXT: 28, + openDirective: 29, + typeDirective: 30, + closeDirective: 31, + ':': 32, + argDirective: 33, + eol: 34, + ';': 35, + EDGE_STATE: 36, + left_of: 37, + right_of: 38, + open_directive: 39, + type_directive: 40, + arg_directive: 41, + close_directive: 42, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'SPACE', + 5: 'NL', + 7: 'SD', + 12: 'DESCR', + 13: '--\x3e', + 14: 'HIDE_EMPTY', + 15: 'scale', + 16: 'WIDTH', + 17: 'COMPOSIT_STATE', + 18: 'STRUCT_START', + 19: 'STRUCT_STOP', + 20: 'STATE_DESCR', + 21: 'AS', + 22: 'ID', + 23: 'FORK', + 24: 'JOIN', + 25: 'CONCURRENT', + 26: 'note', + 28: 'NOTE_TEXT', + 32: ':', + 35: ';', + 36: 'EDGE_STATE', + 37: 'left_of', + 38: 'right_of', + 39: 'open_directive', + 40: 'type_directive', + 41: 'arg_directive', + 42: 'close_directive', + }, + productions_: [ + 0, + [3, 2], + [3, 2], + [3, 2], + [3, 2], + [8, 0], + [8, 2], + [9, 2], + [9, 1], + [9, 1], + [10, 1], + [10, 2], + [10, 3], + [10, 4], + [10, 1], + [10, 2], + [10, 1], + [10, 4], + [10, 3], + [10, 6], + [10, 1], + [10, 1], + [10, 1], + [10, 4], + [10, 4], + [10, 1], + [6, 3], + [6, 5], + [34, 1], + [34, 1], + [11, 1], + [11, 1], + [27, 1], + [27, 1], + [29, 1], + [30, 1], + [33, 1], + [31, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 4: + return r.setRootDoc(o[a]), o[a]; + case 5: + this.$ = []; + break; + case 6: + 'nl' != o[a] && + (o[a - 1].push(o[a]), (this.$ = o[a - 1])); + break; + case 7: + case 8: + this.$ = o[a]; + break; + case 9: + this.$ = 'nl'; + break; + case 10: + this.$ = { + stmt: 'state', + id: o[a], + type: 'default', + description: '', + }; + break; + case 11: + this.$ = { + stmt: 'state', + id: o[a - 1], + type: 'default', + description: r.trimColon(o[a]), + }; + break; + case 12: + this.$ = { + stmt: 'relation', + state1: { + stmt: 'state', + id: o[a - 2], + type: 'default', + description: '', + }, + state2: { + stmt: 'state', + id: o[a], + type: 'default', + description: '', + }, + }; + break; + case 13: + this.$ = { + stmt: 'relation', + state1: { + stmt: 'state', + id: o[a - 3], + type: 'default', + description: '', + }, + state2: { + stmt: 'state', + id: o[a - 1], + type: 'default', + description: '', + }, + description: o[a].substr(1).trim(), + }; + break; + case 17: + this.$ = { + stmt: 'state', + id: o[a - 3], + type: 'default', + description: '', + doc: o[a - 1], + }; + break; + case 18: + var u = o[a], + l = o[a - 2].trim(); + if (o[a].match(':')) { + var c = o[a].split(':'); + (u = c[0]), (l = [l, c[1]]); + } + this.$ = { + stmt: 'state', + id: u, + type: 'default', + description: l, + }; + break; + case 19: + this.$ = { + stmt: 'state', + id: o[a - 3], + type: 'default', + description: o[a - 5], + doc: o[a - 1], + }; + break; + case 20: + this.$ = { stmt: 'state', id: o[a], type: 'fork' }; + break; + case 21: + this.$ = { stmt: 'state', id: o[a], type: 'join' }; + break; + case 22: + this.$ = { + stmt: 'state', + id: r.getDividerId(), + type: 'divider', + }; + break; + case 23: + this.$ = { + stmt: 'state', + id: o[a - 1].trim(), + note: { + position: o[a - 2].trim(), + text: o[a].trim(), + }, + }; + break; + case 30: + case 31: + this.$ = o[a]; + break; + case 34: + r.parseDirective('%%{', 'open_directive'); + break; + case 35: + r.parseDirective(o[a], 'type_directive'); + break; + case 36: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 37: + r.parseDirective('}%%', 'close_directive', 'state'); + } + }, + table: [ + { 3: 1, 4: t, 5: n, 6: 4, 7: r, 29: 6, 39: i }, + { 1: [3] }, + { 3: 8, 4: t, 5: n, 6: 4, 7: r, 29: 6, 39: i }, + { 3: 9, 4: t, 5: n, 6: 4, 7: r, 29: 6, 39: i }, + { 3: 10, 4: t, 5: n, 6: 4, 7: r, 29: 6, 39: i }, + e( + [1, 4, 5, 14, 15, 17, 20, 22, 23, 24, 25, 26, 36, 39], + o, + { 8: 11 } + ), + { 30: 12, 40: [1, 13] }, + { 40: [2, 34] }, + { 1: [2, 1] }, + { 1: [2, 2] }, + { 1: [2, 3] }, + { + 1: [2, 4], + 4: s, + 5: a, + 6: 27, + 9: 14, + 10: 16, + 11: 18, + 14: u, + 15: l, + 17: c, + 20: d, + 22: h, + 23: f, + 24: p, + 25: g, + 26: m, + 29: 6, + 36: _, + 39: i, + }, + { 31: 30, 32: [1, 31], 42: y }, + e([32, 42], [2, 35]), + e(v, [2, 6]), + { + 6: 27, + 10: 33, + 11: 18, + 14: u, + 15: l, + 17: c, + 20: d, + 22: h, + 23: f, + 24: p, + 25: g, + 26: m, + 29: 6, + 36: _, + 39: i, + }, + e(v, [2, 8]), + e(v, [2, 9]), + e(v, [2, 10], { 12: [1, 34], 13: [1, 35] }), + e(v, [2, 14]), + { 16: [1, 36] }, + e(v, [2, 16], { 18: [1, 37] }), + { 21: [1, 38] }, + e(v, [2, 20]), + e(v, [2, 21]), + e(v, [2, 22]), + { 27: 39, 28: [1, 40], 37: [1, 41], 38: [1, 42] }, + e(v, [2, 25]), + e(b, [2, 30]), + e(b, [2, 31]), + e(w, [2, 26]), + { 33: 43, 41: [1, 44] }, + e(w, [2, 37]), + e(v, [2, 7]), + e(v, [2, 11]), + { 11: 45, 22: h, 36: _ }, + e(v, [2, 15]), + e(C, o, { 8: 46 }), + { 22: [1, 47] }, + { 22: [1, 48] }, + { 21: [1, 49] }, + { 22: [2, 32] }, + { 22: [2, 33] }, + { 31: 50, 42: y }, + { 42: [2, 36] }, + e(v, [2, 12], { 12: [1, 51] }), + { + 4: s, + 5: a, + 6: 27, + 9: 14, + 10: 16, + 11: 18, + 14: u, + 15: l, + 17: c, + 19: [1, 52], + 20: d, + 22: h, + 23: f, + 24: p, + 25: g, + 26: m, + 29: 6, + 36: _, + 39: i, + }, + e(v, [2, 18], { 18: [1, 53] }), + { 28: [1, 54] }, + { 22: [1, 55] }, + e(w, [2, 27]), + e(v, [2, 13]), + e(v, [2, 17]), + e(C, o, { 8: 56 }), + e(v, [2, 23]), + e(v, [2, 24]), + { + 4: s, + 5: a, + 6: 27, + 9: 14, + 10: 16, + 11: 18, + 14: u, + 15: l, + 17: c, + 19: [1, 57], + 20: d, + 22: h, + 23: f, + 24: p, + 25: g, + 26: m, + 29: 6, + 36: _, + 39: i, + }, + e(v, [2, 19]), + ], + defaultActions: { + 7: [2, 34], + 8: [2, 1], + 9: [2, 2], + 10: [2, 3], + 41: [2, 32], + 42: [2, 33], + 44: [2, 36], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + x = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 39; + case 1: + return this.begin('type_directive'), 40; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 32 + ); + case 3: + return this.popState(), this.popState(), 42; + case 4: + return 41; + case 5: + break; + case 6: + console.log('Crap after close'); + break; + case 7: + return 5; + case 8: + case 9: + case 10: + case 11: + break; + case 12: + return this.pushState('SCALE'), 15; + case 13: + return 16; + case 14: + this.popState(); + break; + case 15: + this.pushState('STATE'); + break; + case 16: + return ( + this.popState(), + (t.yytext = t.yytext.slice(0, -8).trim()), + 23 + ); + case 17: + return ( + this.popState(), + (t.yytext = t.yytext.slice(0, -8).trim()), + 24 + ); + case 18: + return ( + this.popState(), + (t.yytext = t.yytext.slice(0, -8).trim()), + 23 + ); + case 19: + return ( + this.popState(), + (t.yytext = t.yytext.slice(0, -8).trim()), + 24 + ); + case 20: + this.begin('STATE_STRING'); + break; + case 21: + return ( + this.popState(), this.pushState('STATE_ID'), 'AS' + ); + case 22: + return this.popState(), 'ID'; + case 23: + this.popState(); + break; + case 24: + return 'STATE_DESCR'; + case 25: + return 17; + case 26: + this.popState(); + break; + case 27: + return ( + this.popState(), this.pushState('struct'), 18 + ); + case 28: + return this.popState(), 19; + case 29: + break; + case 30: + return this.begin('NOTE'), 26; + case 31: + return ( + this.popState(), this.pushState('NOTE_ID'), 37 + ); + case 32: + return ( + this.popState(), this.pushState('NOTE_ID'), 38 + ); + case 33: + this.popState(), this.pushState('FLOATING_NOTE'); + break; + case 34: + return ( + this.popState(), + this.pushState('FLOATING_NOTE_ID'), + 'AS' + ); + case 35: + break; + case 36: + return 'NOTE_TEXT'; + case 37: + return this.popState(), 'ID'; + case 38: + return ( + this.popState(), this.pushState('NOTE_TEXT'), 22 + ); + case 39: + return ( + this.popState(), + (t.yytext = t.yytext.substr(2).trim()), + 28 + ); + case 40: + return ( + this.popState(), + (t.yytext = t.yytext.slice(0, -8).trim()), + 28 + ); + case 41: + case 42: + return 7; + case 43: + return 14; + case 44: + return 36; + case 45: + return 22; + case 46: + return (t.yytext = t.yytext.trim()), 12; + case 47: + return 13; + case 48: + return 25; + case 49: + return 5; + case 50: + return 'INVALID'; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:%%(?!\{)[^\n]*)/i, + /^(?:[^\}]%%[^\n]*)/i, + /^(?:[\n]+)/i, + /^(?:[\s]+)/i, + /^(?:((?!\n)\s)+)/i, + /^(?:#[^\n]*)/i, + /^(?:%[^\n]*)/i, + /^(?:scale\s+)/i, + /^(?:\d+)/i, + /^(?:\s+width\b)/i, + /^(?:state\s+)/i, + /^(?:.*<>)/i, + /^(?:.*<>)/i, + /^(?:.*\[\[fork\]\])/i, + /^(?:.*\[\[join\]\])/i, + /^(?:["])/i, + /^(?:\s*as\s+)/i, + /^(?:[^\n\{]*)/i, + /^(?:["])/i, + /^(?:[^"]*)/i, + /^(?:[^\n\s\{]+)/i, + /^(?:\n)/i, + /^(?:\{)/i, + /^(?:\})/i, + /^(?:[\n])/i, + /^(?:note\s+)/i, + /^(?:left of\b)/i, + /^(?:right of\b)/i, + /^(?:")/i, + /^(?:\s*as\s*)/i, + /^(?:["])/i, + /^(?:[^"]*)/i, + /^(?:[^\n]*)/i, + /^(?:\s*[^:\n\s\-]+)/i, + /^(?:\s*:[^:\n;]+)/i, + /^(?:[\s\S]*?end note\b)/i, + /^(?:stateDiagram\s+)/i, + /^(?:stateDiagram-v2\s+)/i, + /^(?:hide empty description\b)/i, + /^(?:\[\*\])/i, + /^(?:[^:\n\s\-\{]+)/i, + /^(?:\s*:[^:\n;]+)/i, + /^(?:-->)/i, + /^(?:--)/i, + /^(?:$)/i, + /^(?:.)/i, + ], + conditions: { + LINE: { rules: [9, 10], inclusive: !1 }, + close_directive: { rules: [9, 10], inclusive: !1 }, + arg_directive: { rules: [3, 4, 9, 10], inclusive: !1 }, + type_directive: { rules: [2, 3, 9, 10], inclusive: !1 }, + open_directive: { rules: [1, 9, 10], inclusive: !1 }, + struct: { + rules: [9, 10, 15, 28, 29, 30, 44, 45, 46, 47, 48], + inclusive: !1, + }, + FLOATING_NOTE_ID: { rules: [37], inclusive: !1 }, + FLOATING_NOTE: { rules: [34, 35, 36], inclusive: !1 }, + NOTE_TEXT: { rules: [39, 40], inclusive: !1 }, + NOTE_ID: { rules: [38], inclusive: !1 }, + NOTE: { rules: [31, 32, 33], inclusive: !1 }, + SCALE: { rules: [13, 14], inclusive: !1 }, + ALIAS: { rules: [], inclusive: !1 }, + STATE_ID: { rules: [22], inclusive: !1 }, + STATE_STRING: { rules: [23, 24], inclusive: !1 }, + FORK_STATE: { rules: [], inclusive: !1 }, + STATE: { + rules: [9, 10, 16, 17, 18, 19, 20, 21, 25, 26, 27], + inclusive: !1, + }, + ID: { rules: [9, 10], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 8, + 10, + 11, + 12, + 15, + 27, + 30, + 41, + 42, + 43, + 44, + 45, + 46, + 47, + 49, + 50, + ], + inclusive: !0, + }, + }, + }; + function L() { + this.yy = {}; + } + return ( + (S.lexer = x), (L.prototype = S), (S.Parser = L), new L() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/state/shapes.js': + /*!**************************************!*\ !*** ./src/diagrams/state/shapes.js ***! \**************************************/ -/*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */function(e,t,n){"use strict";n.r(t),n.d(t,"drawStartState",(function(){return c})),n.d(t,"drawDivider",(function(){return d})),n.d(t,"drawSimpleState",(function(){return h})),n.d(t,"drawDescrState",(function(){return f})),n.d(t,"addTitleAndBox",(function(){return p})),n.d(t,"drawText",(function(){return g})),n.d(t,"drawNote",(function(){return m})),n.d(t,"drawState",(function(){return _})),n.d(t,"drawEdge",(function(){return v}));var r=n(/*! d3 */"d3"),i=n(/*! ./id-cache.js */"./src/diagrams/state/id-cache.js"),o=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),s=n(/*! ../../utils */"./src/utils.js"),a=n(/*! ../common/common */"./src/diagrams/common/common.js"),u=n(/*! ../../config */"./src/config.js"),l=n(/*! ../../logger */"./src/logger.js"),c=function(e){return e.append("circle").attr("class","start-state").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit)},d=function(e){return e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",Object(u.getConfig)().state.textHeight).attr("class","divider").attr("x2",2*Object(u.getConfig)().state.textHeight).attr("y1",0).attr("y2",0)},h=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+2*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),r=n.node().getBBox();return e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",r.width+2*Object(u.getConfig)().state.padding).attr("height",r.height+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),n},f=function(e,t){var n=e.append("text").attr("x",2*Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.textHeight+1.3*Object(u.getConfig)().state.padding).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.descriptions[0]).node().getBBox(),r=n.height,i=e.append("text").attr("x",Object(u.getConfig)().state.padding).attr("y",r+.4*Object(u.getConfig)().state.padding+Object(u.getConfig)().state.dividerMargin+Object(u.getConfig)().state.textHeight).attr("class","state-description"),o=!0,s=!0;t.descriptions.forEach((function(e){o||(function(e,t,n){var r=e.append("tspan").attr("x",2*Object(u.getConfig)().state.padding).text(t);n||r.attr("dy",Object(u.getConfig)().state.textHeight)}(i,e,s),s=!1),o=!1}));var a=e.append("line").attr("x1",Object(u.getConfig)().state.padding).attr("y1",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("y2",Object(u.getConfig)().state.padding+r+Object(u.getConfig)().state.dividerMargin/2).attr("class","descr-divider"),l=i.node().getBBox(),c=Math.max(l.width,n.width);return a.attr("x2",c+3*Object(u.getConfig)().state.padding),e.insert("rect",":first-child").attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding).attr("width",c+2*Object(u.getConfig)().state.padding).attr("height",l.height+r+2*Object(u.getConfig)().state.padding).attr("rx",Object(u.getConfig)().state.radius),e},p=function(e,t,n){var r,i=Object(u.getConfig)().state.padding,o=2*Object(u.getConfig)().state.padding,s=e.node().getBBox(),a=s.width,l=s.x,c=e.append("text").attr("x",0).attr("y",Object(u.getConfig)().state.titleShift).attr("font-size",Object(u.getConfig)().state.fontSize).attr("class","state-title").text(t.id),d=c.node().getBBox().width+o,h=Math.max(d,a);h===a&&(h+=o);var f=e.node().getBBox();t.doc,r=l-i,d>a&&(r=(a-h)/2+i),Math.abs(l-f.x)a&&(r=l-(d-a)/2);var p=1-Object(u.getConfig)().state.textHeight;return e.insert("rect",":first-child").attr("x",r).attr("y",p).attr("class",n?"alt-composit":"composit").attr("width",h).attr("height",f.height+Object(u.getConfig)().state.textHeight+Object(u.getConfig)().state.titleShift+1).attr("rx","0"),c.attr("x",r+i),d<=a&&c.attr("x",l+(h-o)/2-d/2+i),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",3*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e.insert("rect",":first-child").attr("x",r).attr("y",Object(u.getConfig)().state.titleShift-Object(u.getConfig)().state.textHeight-Object(u.getConfig)().state.padding).attr("width",h).attr("height",f.height+3+2*Object(u.getConfig)().state.textHeight).attr("rx",Object(u.getConfig)().state.radius),e},g=function(e,t){var n=t.text.replace(a.default.lineBreakRegex," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.style("text-anchor",t.anchor),r.attr("fill",t.fill),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.attr("fill",t.fill),i.text(n),r},m=function(e,t){t.attr("class","state-note");var n=t.append("rect").attr("x",0).attr("y",Object(u.getConfig)().state.padding),r=function(e,t,n,r){var i=0,o=r.append("text");o.style("text-anchor","start"),o.attr("class","noteText");var s=e.replace(/\r\n/g,"
"),l=(s=s.replace(/\n/g,"
")).split(a.default.lineBreakRegex),c=1.25*Object(u.getConfig)().state.noteMargin,d=!0,h=!1,f=void 0;try{for(var p,g=l[Symbol.iterator]();!(d=(p=g.next()).done);d=!0){var m=p.value.trim();if(m.length>0){var _=o.append("tspan");_.text(m),0===c&&(c+=_.node().getBBox().height),i+=c,_.attr("x",t+Object(u.getConfig)().state.noteMargin),_.attr("y",n+i+1.25*Object(u.getConfig)().state.noteMargin)}}}catch(e){h=!0,f=e}finally{try{d||null==g.return||g.return()}finally{if(h)throw f}}return{textWidth:o.node().getBBox().width,textHeight:i}}(e,0,0,t.append("g")),i=r.textWidth,o=r.textHeight;return n.attr("height",o+2*Object(u.getConfig)().state.noteMargin),n.attr("width",i+2*Object(u.getConfig)().state.noteMargin),n},_=function(e,t){var n=t.id,r={id:n,label:t.id,width:0,height:0},o=e.append("g").attr("id",n).attr("class","stateGroup");"start"===t.type&&c(o),"end"===t.type&&function(e){e.append("circle").attr("class","end-state-outer").attr("r",Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+Object(u.getConfig)().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",Object(u.getConfig)().state.sizeUnit).attr("cx",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2).attr("cy",Object(u.getConfig)().state.padding+Object(u.getConfig)().state.sizeUnit+2)}(o),"fork"!==t.type&&"join"!==t.type||function(e,t){var n=Object(u.getConfig)().state.forkWidth,r=Object(u.getConfig)().state.forkHeight;if(t.parentId){var i=n;n=r,r=i}e.append("rect").style("stroke","black").style("fill","black").attr("width",n).attr("height",r).attr("x",Object(u.getConfig)().state.padding).attr("y",Object(u.getConfig)().state.padding)}(o,t),"note"===t.type&&m(t.note.text,o),"divider"===t.type&&d(o),"default"===t.type&&0===t.descriptions.length&&h(o,t),"default"===t.type&&t.descriptions.length>0&&f(o,t);var s=o.node().getBBox();return r.width=s.width+2*Object(u.getConfig)().state.padding,r.height=s.height+2*Object(u.getConfig)().state.padding,i.default.set(n,r),r},y=0,v=function(e,t,n){t.points=t.points.filter((function(e){return!Number.isNaN(e.y)}));var i=t.points,c=Object(r.line)().x((function(e){return e.x})).y((function(e){return e.y})).curve(r.curveBasis),d=e.append("path").attr("d",c(i)).attr("id","edge"+y).attr("class","transition"),h="";if(Object(u.getConfig)().state.arrowMarkerAbsolute&&(h=(h=(h=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search).replace(/\(/g,"\\(")).replace(/\)/g,"\\)")),d.attr("marker-end","url("+h+"#"+function(e){switch(e){case o.default.relationType.AGGREGATION:return"aggregation";case o.default.relationType.EXTENSION:return"extension";case o.default.relationType.COMPOSITION:return"composition";case o.default.relationType.DEPENDENCY:return"dependency"}}(o.default.relationType.DEPENDENCY)+"End)"),void 0!==n.title){for(var f=e.append("g").attr("class","stateLabel"),p=s.default.calcLabelPosition(t.points),g=p.x,m=p.y,_=a.default.getRows(n.title),v=0,b=[],w=0,C=0,S=0;S<=_.length;S++){var x=f.append("text").attr("text-anchor","middle").text(_[S]).attr("x",g).attr("y",m+v),L=x.node().getBBox();if(w=Math.max(w,L.width),C=Math.min(C,L.x),l.logger.info(L.x,g,m+v),0===v){var k=x.node().getBBox();v=k.height,l.logger.info("Title height",v,m)}b.push(x)}var M=v*_.length;if(_.length>1){var D=(_.length-1)*v*.5;b.forEach((function(e,t){return e.attr("y",m+t*v-D)})),M=v*_.length}var E=f.node().getBBox();f.insert("rect",":first-child").attr("class","box").attr("x",g-w/2-Object(u.getConfig)().state.padding/2).attr("y",m-M/2-Object(u.getConfig)().state.padding/2-3.5).attr("width",w+Object(u.getConfig)().state.padding).attr("height",M+Object(u.getConfig)().state.padding),l.logger.info(E)}y++}},"./src/diagrams/state/stateDb.js": -/*!***************************************!*\ + /*! exports provided: drawStartState, drawDivider, drawSimpleState, drawDescrState, addTitleAndBox, drawText, drawNote, drawState, drawEdge */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'drawStartState', function () { + return c; + }), + n.d(t, 'drawDivider', function () { + return d; + }), + n.d(t, 'drawSimpleState', function () { + return h; + }), + n.d(t, 'drawDescrState', function () { + return f; + }), + n.d(t, 'addTitleAndBox', function () { + return p; + }), + n.d(t, 'drawText', function () { + return g; + }), + n.d(t, 'drawNote', function () { + return m; + }), + n.d(t, 'drawState', function () { + return _; + }), + n.d(t, 'drawEdge', function () { + return v; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ./id-cache.js */ './src/diagrams/state/id-cache.js'), + o = n(/*! ./stateDb */ './src/diagrams/state/stateDb.js'), + s = n(/*! ../../utils */ './src/utils.js'), + a = n( + /*! ../common/common */ './src/diagrams/common/common.js' + ), + u = n(/*! ../../config */ './src/config.js'), + l = n(/*! ../../logger */ './src/logger.js'), + c = function (e) { + return e + .append('circle') + .attr('class', 'start-state') + .attr('r', Object(u.getConfig)().state.sizeUnit) + .attr( + 'cx', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + ) + .attr( + 'cy', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + ); + }, + d = function (e) { + return e + .append('line') + .style('stroke', 'grey') + .style('stroke-dasharray', '3') + .attr('x1', Object(u.getConfig)().state.textHeight) + .attr('class', 'divider') + .attr('x2', 2 * Object(u.getConfig)().state.textHeight) + .attr('y1', 0) + .attr('y2', 0); + }, + h = function (e, t) { + var n = e + .append('text') + .attr('x', 2 * Object(u.getConfig)().state.padding) + .attr( + 'y', + Object(u.getConfig)().state.textHeight + + 2 * Object(u.getConfig)().state.padding + ) + .attr('font-size', Object(u.getConfig)().state.fontSize) + .attr('class', 'state-title') + .text(t.id), + r = n.node().getBBox(); + return ( + e + .insert('rect', ':first-child') + .attr('x', Object(u.getConfig)().state.padding) + .attr('y', Object(u.getConfig)().state.padding) + .attr( + 'width', + r.width + 2 * Object(u.getConfig)().state.padding + ) + .attr( + 'height', + r.height + 2 * Object(u.getConfig)().state.padding + ) + .attr('rx', Object(u.getConfig)().state.radius), + n + ); + }, + f = function (e, t) { + var n = e + .append('text') + .attr('x', 2 * Object(u.getConfig)().state.padding) + .attr( + 'y', + Object(u.getConfig)().state.textHeight + + 1.3 * Object(u.getConfig)().state.padding + ) + .attr('font-size', Object(u.getConfig)().state.fontSize) + .attr('class', 'state-title') + .text(t.descriptions[0]) + .node() + .getBBox(), + r = n.height, + i = e + .append('text') + .attr('x', Object(u.getConfig)().state.padding) + .attr( + 'y', + r + + 0.4 * Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.dividerMargin + + Object(u.getConfig)().state.textHeight + ) + .attr('class', 'state-description'), + o = !0, + s = !0; + t.descriptions.forEach(function (e) { + o || + ((function (e, t, n) { + var r = e + .append('tspan') + .attr('x', 2 * Object(u.getConfig)().state.padding) + .text(t); + n || + r.attr('dy', Object(u.getConfig)().state.textHeight); + })(i, e, s), + (s = !1)), + (o = !1); + }); + var a = e + .append('line') + .attr('x1', Object(u.getConfig)().state.padding) + .attr( + 'y1', + Object(u.getConfig)().state.padding + + r + + Object(u.getConfig)().state.dividerMargin / 2 + ) + .attr( + 'y2', + Object(u.getConfig)().state.padding + + r + + Object(u.getConfig)().state.dividerMargin / 2 + ) + .attr('class', 'descr-divider'), + l = i.node().getBBox(), + c = Math.max(l.width, n.width); + return ( + a.attr('x2', c + 3 * Object(u.getConfig)().state.padding), + e + .insert('rect', ':first-child') + .attr('x', Object(u.getConfig)().state.padding) + .attr('y', Object(u.getConfig)().state.padding) + .attr( + 'width', + c + 2 * Object(u.getConfig)().state.padding + ) + .attr( + 'height', + l.height + r + 2 * Object(u.getConfig)().state.padding + ) + .attr('rx', Object(u.getConfig)().state.radius), + e + ); + }, + p = function (e, t, n) { + var r, + i = Object(u.getConfig)().state.padding, + o = 2 * Object(u.getConfig)().state.padding, + s = e.node().getBBox(), + a = s.width, + l = s.x, + c = e + .append('text') + .attr('x', 0) + .attr('y', Object(u.getConfig)().state.titleShift) + .attr('font-size', Object(u.getConfig)().state.fontSize) + .attr('class', 'state-title') + .text(t.id), + d = c.node().getBBox().width + o, + h = Math.max(d, a); + h === a && (h += o); + var f = e.node().getBBox(); + t.doc, + (r = l - i), + d > a && (r = (a - h) / 2 + i), + Math.abs(l - f.x) < i && d > a && (r = l - (d - a) / 2); + var p = 1 - Object(u.getConfig)().state.textHeight; + return ( + e + .insert('rect', ':first-child') + .attr('x', r) + .attr('y', p) + .attr('class', n ? 'alt-composit' : 'composit') + .attr('width', h) + .attr( + 'height', + f.height + + Object(u.getConfig)().state.textHeight + + Object(u.getConfig)().state.titleShift + + 1 + ) + .attr('rx', '0'), + c.attr('x', r + i), + d <= a && c.attr('x', l + (h - o) / 2 - d / 2 + i), + e + .insert('rect', ':first-child') + .attr('x', r) + .attr( + 'y', + Object(u.getConfig)().state.titleShift - + Object(u.getConfig)().state.textHeight - + Object(u.getConfig)().state.padding + ) + .attr('width', h) + .attr( + 'height', + 3 * Object(u.getConfig)().state.textHeight + ) + .attr('rx', Object(u.getConfig)().state.radius), + e + .insert('rect', ':first-child') + .attr('x', r) + .attr( + 'y', + Object(u.getConfig)().state.titleShift - + Object(u.getConfig)().state.textHeight - + Object(u.getConfig)().state.padding + ) + .attr('width', h) + .attr( + 'height', + f.height + + 3 + + 2 * Object(u.getConfig)().state.textHeight + ) + .attr('rx', Object(u.getConfig)().state.radius), + e + ); + }, + g = function (e, t) { + var n = t.text.replace(a.default.lineBreakRegex, ' '), + r = e.append('text'); + r.attr('x', t.x), + r.attr('y', t.y), + r.style('text-anchor', t.anchor), + r.attr('fill', t.fill), + void 0 !== t.class && r.attr('class', t.class); + var i = r.append('tspan'); + return ( + i.attr('x', t.x + 2 * t.textMargin), + i.attr('fill', t.fill), + i.text(n), + r + ); + }, + m = function (e, t) { + t.attr('class', 'state-note'); + var n = t + .append('rect') + .attr('x', 0) + .attr('y', Object(u.getConfig)().state.padding), + r = (function (e, t, n, r) { + var i = 0, + o = r.append('text'); + o.style('text-anchor', 'start'), + o.attr('class', 'noteText'); + var s = e.replace(/\r\n/g, '
'), + l = (s = s.replace(/\n/g, '
')).split( + a.default.lineBreakRegex + ), + c = 1.25 * Object(u.getConfig)().state.noteMargin, + d = !0, + h = !1, + f = void 0; + try { + for ( + var p, g = l[Symbol.iterator](); + !(d = (p = g.next()).done); + d = !0 + ) { + var m = p.value.trim(); + if (m.length > 0) { + var _ = o.append('tspan'); + _.text(m), + 0 === c && (c += _.node().getBBox().height), + (i += c), + _.attr( + 'x', + t + Object(u.getConfig)().state.noteMargin + ), + _.attr( + 'y', + n + + i + + 1.25 * Object(u.getConfig)().state.noteMargin + ); + } + } + } catch (e) { + (h = !0), (f = e); + } finally { + try { + d || null == g.return || g.return(); + } finally { + if (h) throw f; + } + } + return { + textWidth: o.node().getBBox().width, + textHeight: i, + }; + })(e, 0, 0, t.append('g')), + i = r.textWidth, + o = r.textHeight; + return ( + n.attr( + 'height', + o + 2 * Object(u.getConfig)().state.noteMargin + ), + n.attr( + 'width', + i + 2 * Object(u.getConfig)().state.noteMargin + ), + n + ); + }, + _ = function (e, t) { + var n = t.id, + r = { id: n, label: t.id, width: 0, height: 0 }, + o = e.append('g').attr('id', n).attr('class', 'stateGroup'); + 'start' === t.type && c(o), + 'end' === t.type && + (function (e) { + e + .append('circle') + .attr('class', 'end-state-outer') + .attr( + 'r', + Object(u.getConfig)().state.sizeUnit + + Object(u.getConfig)().state.miniPadding + ) + .attr( + 'cx', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + + Object(u.getConfig)().state.miniPadding + ) + .attr( + 'cy', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + + Object(u.getConfig)().state.miniPadding + ), + e + .append('circle') + .attr('class', 'end-state-inner') + .attr('r', Object(u.getConfig)().state.sizeUnit) + .attr( + 'cx', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + + 2 + ) + .attr( + 'cy', + Object(u.getConfig)().state.padding + + Object(u.getConfig)().state.sizeUnit + + 2 + ); + })(o), + ('fork' !== t.type && 'join' !== t.type) || + (function (e, t) { + var n = Object(u.getConfig)().state.forkWidth, + r = Object(u.getConfig)().state.forkHeight; + if (t.parentId) { + var i = n; + (n = r), (r = i); + } + e.append('rect') + .style('stroke', 'black') + .style('fill', 'black') + .attr('width', n) + .attr('height', r) + .attr('x', Object(u.getConfig)().state.padding) + .attr('y', Object(u.getConfig)().state.padding); + })(o, t), + 'note' === t.type && m(t.note.text, o), + 'divider' === t.type && d(o), + 'default' === t.type && + 0 === t.descriptions.length && + h(o, t), + 'default' === t.type && + t.descriptions.length > 0 && + f(o, t); + var s = o.node().getBBox(); + return ( + (r.width = + s.width + 2 * Object(u.getConfig)().state.padding), + (r.height = + s.height + 2 * Object(u.getConfig)().state.padding), + i.default.set(n, r), + r + ); + }, + y = 0, + v = function (e, t, n) { + t.points = t.points.filter(function (e) { + return !Number.isNaN(e.y); + }); + var i = t.points, + c = Object(r.line)() + .x(function (e) { + return e.x; + }) + .y(function (e) { + return e.y; + }) + .curve(r.curveBasis), + d = e + .append('path') + .attr('d', c(i)) + .attr('id', 'edge' + y) + .attr('class', 'transition'), + h = ''; + if ( + (Object(u.getConfig)().state.arrowMarkerAbsolute && + (h = (h = (h = + window.location.protocol + + '//' + + window.location.host + + window.location.pathname + + window.location.search).replace(/\(/g, '\\(')).replace( + /\)/g, + '\\)' + )), + d.attr( + 'marker-end', + 'url(' + + h + + '#' + + (function (e) { + switch (e) { + case o.default.relationType.AGGREGATION: + return 'aggregation'; + case o.default.relationType.EXTENSION: + return 'extension'; + case o.default.relationType.COMPOSITION: + return 'composition'; + case o.default.relationType.DEPENDENCY: + return 'dependency'; + } + })(o.default.relationType.DEPENDENCY) + + 'End)' + ), + void 0 !== n.title) + ) { + for ( + var f = e.append('g').attr('class', 'stateLabel'), + p = s.default.calcLabelPosition(t.points), + g = p.x, + m = p.y, + _ = a.default.getRows(n.title), + v = 0, + b = [], + w = 0, + C = 0, + S = 0; + S <= _.length; + S++ + ) { + var x = f + .append('text') + .attr('text-anchor', 'middle') + .text(_[S]) + .attr('x', g) + .attr('y', m + v), + L = x.node().getBBox(); + if ( + ((w = Math.max(w, L.width)), + (C = Math.min(C, L.x)), + l.logger.info(L.x, g, m + v), + 0 === v) + ) { + var k = x.node().getBBox(); + (v = k.height), l.logger.info('Title height', v, m); + } + b.push(x); + } + var M = v * _.length; + if (_.length > 1) { + var D = (_.length - 1) * v * 0.5; + b.forEach(function (e, t) { + return e.attr('y', m + t * v - D); + }), + (M = v * _.length); + } + var E = f.node().getBBox(); + f + .insert('rect', ':first-child') + .attr('class', 'box') + .attr( + 'x', + g - w / 2 - Object(u.getConfig)().state.padding / 2 + ) + .attr( + 'y', + m - + M / 2 - + Object(u.getConfig)().state.padding / 2 - + 3.5 + ) + .attr('width', w + Object(u.getConfig)().state.padding) + .attr('height', M + Object(u.getConfig)().state.padding), + l.logger.info(E); + } + y++; + }; + }, + './src/diagrams/state/stateDb.js': + /*!***************************************!*\ !*** ./src/diagrams/state/stateDb.js ***! \***************************************/ -/*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return c})),n.d(t,"addState",(function(){return p})),n.d(t,"clear",(function(){return g})),n.d(t,"getState",(function(){return m})),n.d(t,"getStates",(function(){return _})),n.d(t,"logDocuments",(function(){return y})),n.d(t,"getRelations",(function(){return v})),n.d(t,"addRelation",(function(){return b})),n.d(t,"cleanupLabel",(function(){return C})),n.d(t,"lineType",(function(){return S})),n.d(t,"relationType",(function(){return k}));var r=n(/*! ../../logger */"./src/logger.js"),i=n(/*! ../../utils */"./src/utils.js"),o=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),s=n(/*! ../../config */"./src/config.js");function a(e){return(a="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})(e)}var u=function(e){return JSON.parse(JSON.stringify(e))},l=[],c=function(e,t,n){o.default.parseDirective(this,e,t,n)},d={root:{relations:[],states:{},documents:{}}},h=d.root,f=0,p=function(e,t,n,i,o){void 0===h.states[e]?h.states[e]={id:e,descriptions:[],type:t,doc:n,note:o}:(h.states[e].doc||(h.states[e].doc=n),h.states[e].type||(h.states[e].type=t)),i&&(r.logger.info("Adding state ",e,i),"string"==typeof i&&w(e,i.trim()),"object"===a(i)&&i.forEach((function(t){return w(e,t.trim())}))),o&&(h.states[e].note=o)},g=function(){h=(d={root:{relations:[],states:{},documents:{}}}).root,h=d.root,f=0,L=[]},m=function(e){return h.states[e]},_=function(){return h.states},y=function(){r.logger.info("Documents = ",d)},v=function(){return h.relations},b=function(e,t,n){var r=e,i=t,o="default",s="default";"[*]"===e&&(r="start"+ ++f,o="start"),"[*]"===t&&(i="end"+f,s="end"),p(r,o),p(i,s),h.relations.push({id1:r,id2:i,title:n})},w=function(e,t){var n=h.states[e],r=t;":"===r[0]&&(r=r.substr(1).trim()),n.descriptions.push(r)},C=function(e){return":"===e.substring(0,1)?e.substr(2).trim():e.trim()},S={LINE:0,DOTTED_LINE:1},x=0,L=[],k={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3};t.default={parseDirective:c,getConfig:function(){return s.getConfig().state},addState:p,clear:g,getState:m,getStates:_,getRelations:v,getClasses:function(){return L},getDirection:function(){return"TB"},addRelation:b,getDividerId:function(){return"divider-id-"+ ++x},cleanupLabel:C,lineType:S,relationType:k,logDocuments:y,getRootDoc:function(){return l},setRootDoc:function(e){r.logger.info("Setting root doc",e),l=e},getRootDocV2:function(){return function e(t,n,r){if("relation"===n.stmt)e(t,n.state1,!0),e(t,n.state2,!1);else if("state"===n.stmt&&"[*]"===n.id&&(n.id=r?t.id+"_start":t.id+"_end",n.start=r),n.doc){var o=[],s=0,a=[];for(s=0;s0&&a.length>0){var c={stmt:"state",id:Object(i.generateId)(),type:"divider",doc:u(a)};o.push(u(c)),n.doc=o}n.doc.forEach((function(t){return e(n,t,!0)}))}}({id:"root"},{id:"root",doc:l},!0),{id:"root",doc:l}},extract:function(e){var t;t=e.doc?e.doc:e,r.logger.info(t),g(),r.logger.info("Extract",t),t.forEach((function(e){"state"===e.stmt&&p(e.id,e.type,e.doc,e.description,e.note),"relation"===e.stmt&&b(e.state1.id,e.state2.id,e.description)}))},trimColon:function(e){return e&&":"===e[0]?e.substr(1).trim():e.trim()}}},"./src/diagrams/state/stateRenderer-v2.js": -/*!************************************************!*\ + /*! exports provided: parseDirective, addState, clear, getState, getStates, logDocuments, getRelations, addRelation, cleanupLabel, lineType, relationType, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'parseDirective', function () { + return c; + }), + n.d(t, 'addState', function () { + return p; + }), + n.d(t, 'clear', function () { + return g; + }), + n.d(t, 'getState', function () { + return m; + }), + n.d(t, 'getStates', function () { + return _; + }), + n.d(t, 'logDocuments', function () { + return y; + }), + n.d(t, 'getRelations', function () { + return v; + }), + n.d(t, 'addRelation', function () { + return b; + }), + n.d(t, 'cleanupLabel', function () { + return C; + }), + n.d(t, 'lineType', function () { + return S; + }), + n.d(t, 'relationType', function () { + return k; + }); + var r = n(/*! ../../logger */ './src/logger.js'), + i = n(/*! ../../utils */ './src/utils.js'), + o = n(/*! ../../mermaidAPI */ './src/mermaidAPI.js'), + s = n(/*! ../../config */ './src/config.js'); + function a(e) { + return (a = + '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; + })(e); + } + var u = function (e) { + return JSON.parse(JSON.stringify(e)); + }, + l = [], + c = function (e, t, n) { + o.default.parseDirective(this, e, t, n); + }, + d = { root: { relations: [], states: {}, documents: {} } }, + h = d.root, + f = 0, + p = function (e, t, n, i, o) { + void 0 === h.states[e] + ? (h.states[e] = { + id: e, + descriptions: [], + type: t, + doc: n, + note: o, + }) + : (h.states[e].doc || (h.states[e].doc = n), + h.states[e].type || (h.states[e].type = t)), + i && + (r.logger.info('Adding state ', e, i), + 'string' == typeof i && w(e, i.trim()), + 'object' === a(i) && + i.forEach(function (t) { + return w(e, t.trim()); + })), + o && (h.states[e].note = o); + }, + g = function () { + (h = (d = { + root: { relations: [], states: {}, documents: {} }, + }).root), + (h = d.root), + (f = 0), + (L = []); + }, + m = function (e) { + return h.states[e]; + }, + _ = function () { + return h.states; + }, + y = function () { + r.logger.info('Documents = ', d); + }, + v = function () { + return h.relations; + }, + b = function (e, t, n) { + var r = e, + i = t, + o = 'default', + s = 'default'; + '[*]' === e && ((r = 'start' + ++f), (o = 'start')), + '[*]' === t && ((i = 'end' + f), (s = 'end')), + p(r, o), + p(i, s), + h.relations.push({ id1: r, id2: i, title: n }); + }, + w = function (e, t) { + var n = h.states[e], + r = t; + ':' === r[0] && (r = r.substr(1).trim()), + n.descriptions.push(r); + }, + C = function (e) { + return ':' === e.substring(0, 1) + ? e.substr(2).trim() + : e.trim(); + }, + S = { LINE: 0, DOTTED_LINE: 1 }, + x = 0, + L = [], + k = { + AGGREGATION: 0, + EXTENSION: 1, + COMPOSITION: 2, + DEPENDENCY: 3, + }; + t.default = { + parseDirective: c, + getConfig: function () { + return s.getConfig().state; + }, + addState: p, + clear: g, + getState: m, + getStates: _, + getRelations: v, + getClasses: function () { + return L; + }, + getDirection: function () { + return 'TB'; + }, + addRelation: b, + getDividerId: function () { + return 'divider-id-' + ++x; + }, + cleanupLabel: C, + lineType: S, + relationType: k, + logDocuments: y, + getRootDoc: function () { + return l; + }, + setRootDoc: function (e) { + r.logger.info('Setting root doc', e), (l = e); + }, + getRootDocV2: function () { + return ( + (function e(t, n, r) { + if ('relation' === n.stmt) + e(t, n.state1, !0), e(t, n.state2, !1); + else if ( + ('state' === n.stmt && + '[*]' === n.id && + ((n.id = r ? t.id + '_start' : t.id + '_end'), + (n.start = r)), + n.doc) + ) { + var o = [], + s = 0, + a = []; + for (s = 0; s < n.doc.length; s++) + if ('divider' === n.doc[s].type) { + var l = u(n.doc[s]); + (l.doc = u(a)), o.push(l), (a = []); + } else a.push(n.doc[s]); + if (o.length > 0 && a.length > 0) { + var c = { + stmt: 'state', + id: Object(i.generateId)(), + type: 'divider', + doc: u(a), + }; + o.push(u(c)), (n.doc = o); + } + n.doc.forEach(function (t) { + return e(n, t, !0); + }); + } + })({ id: 'root' }, { id: 'root', doc: l }, !0), + { id: 'root', doc: l } + ); + }, + extract: function (e) { + var t; + (t = e.doc ? e.doc : e), + r.logger.info(t), + g(), + r.logger.info('Extract', t), + t.forEach(function (e) { + 'state' === e.stmt && + p(e.id, e.type, e.doc, e.description, e.note), + 'relation' === e.stmt && + b(e.state1.id, e.state2.id, e.description); + }); + }, + trimColon: function (e) { + return e && ':' === e[0] ? e.substr(1).trim() : e.trim(); + }, + }; + }, + './src/diagrams/state/stateRenderer-v2.js': + /*!************************************************!*\ !*** ./src/diagrams/state/stateRenderer-v2.js ***! \************************************************/ -/*! exports provided: setConf, getClasses, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return p})),n.d(t,"getClasses",(function(){return m})),n.d(t,"draw",(function(){return b}));var r=n(/*! graphlib */"graphlib"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),a=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),u=n.n(a),l=n(/*! ../../config */"./src/config.js"),c=n(/*! ../../dagre-wrapper/index.js */"./src/dagre-wrapper/index.js"),d=n(/*! ../../logger */"./src/logger.js"),h=n(/*! ../../utils */"./src/utils.js"),f={},p=function(e){for(var t=Object.keys(e),n=0;n0?(g[n.id].shape="rectWithTitle",g[n.id].description===n.id?g[n.id].description=[n.description]:g[n.id].description=[g[n.id].description,n.description]):(g[n.id].shape="rect",g[n.id].description=n.description)),!g[n.id].type&&n.doc&&(d.logger.info("Setting cluser for ",n.id),g[n.id].type="group",g[n.id].shape="divider"===n.type?"divider":"roundedWithTitle",g[n.id].classes=g[n.id].classes+" "+(r?"statediagram-cluster statediagram-cluster-alt":"statediagram-cluster"));var o={labelStyle:"",shape:g[n.id].shape,labelText:g[n.id].description,classes:g[n.id].classes,style:"",id:n.id,domId:"state-"+n.id+"-"+y,type:g[n.id].type,padding:15};if(n.note){var s={labelStyle:"",shape:"note",labelText:n.note.text,classes:"statediagram-note",style:"",id:n.id+"----note",domId:"state-"+n.id+"----note-"+y,type:g[n.id].type,padding:15},a={labelStyle:"",shape:"noteGroup",labelText:n.note.text,classes:g[n.id].classes,style:"",id:n.id+"----parent",domId:"state-"+n.id+"----parent-"+y,type:"group",padding:0};y++,e.setNode(n.id+"----parent",a),e.setNode(s.id,s),e.setNode(n.id,o),e.setParent(n.id,n.id+"----parent"),e.setParent(s.id,n.id+"----parent");var u=n.id,l=s.id;"left of"===n.note.position&&(u=s.id,l=n.id),e.setEdge(u,l,{arrowhead:"none",arrowType:"",style:"fill:none",labelStyle:"",classes:"transition note-edge",arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal"})}else e.setNode(n.id,o)}t&&"root"!==t.id&&(d.logger.info("Setting node ",n.id," to be child of its parent ",t.id),e.setParent(n.id,t.id)),n.doc&&(d.logger.info("Adding nodes children "),v(e,n,n.doc,!r))},y=0,v=function(e,t,n,r){y=0,d.logger.trace("items",n),n.forEach((function(n){if("state"===n.stmt||"default"===n.stmt)_(e,t,n,r);else if("relation"===n.stmt){_(e,t,n.state1,r),_(e,t,n.state2,r);var i={id:"edge"+y,arrowhead:"normal",arrowTypeEnd:"arrow_barb",style:"fill:none",labelStyle:"",label:n.description,arrowheadStyle:"fill: #333",labelpos:"c",labelType:"text",thickness:"normal",classes:"transition"},o=n.state1.id,s=n.state2.id;e.setEdge(o,s,i,y),y++}}))},b=function(e,t){d.logger.info("Drawing state diagram (v2)",t),s.default.clear(),g={};var n=u.a.parser;n.yy=s.default,n.parse(e);var r=s.default.getDirection();void 0===r&&(r="LR");var a=Object(l.getConfig)().state,f=a.nodeSpacing||50,p=a.rankSpacing||50,m=new i.a.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:"TB",nodesep:f,ranksep:p,marginx:8,marginy:8}).setDefaultEdgeLabel((function(){return{}}));d.logger.info(s.default.getRootDocV2()),s.default.extract(s.default.getRootDocV2()),d.logger.info(s.default.getRootDocV2()),_(m,void 0,s.default.getRootDocV2(),!0);var y=Object(o.select)('[id="'.concat(t,'"]')),v=Object(o.select)("#"+t+" g");Object(c.render)(v,m,["barb"],"statediagram",t);var b=y.node().getBBox(),w=b.width+16,C=b.height+16;y.attr("class","statediagram");var S=y.node().getBBox();Object(h.configureSvgSize)(y,C,1.75*w,a.useMaxWidth);var x="".concat(S.x-8," ").concat(S.y-8," ").concat(w," ").concat(C);if(d.logger.debug("viewBox ".concat(x)),y.attr("viewBox",x),!a.htmlLabels)for(var L=document.querySelectorAll('[id="'+t+'"] .edgeLabel .label'),k=0;k 0 + ? ((g[n.id].shape = 'rectWithTitle'), + g[n.id].description === n.id + ? (g[n.id].description = [n.description]) + : (g[n.id].description = [ + g[n.id].description, + n.description, + ])) + : ((g[n.id].shape = 'rect'), + (g[n.id].description = n.description))), + !g[n.id].type && + n.doc && + (d.logger.info('Setting cluser for ', n.id), + (g[n.id].type = 'group'), + (g[n.id].shape = + 'divider' === n.type + ? 'divider' + : 'roundedWithTitle'), + (g[n.id].classes = + g[n.id].classes + + ' ' + + (r + ? 'statediagram-cluster statediagram-cluster-alt' + : 'statediagram-cluster'))); + var o = { + labelStyle: '', + shape: g[n.id].shape, + labelText: g[n.id].description, + classes: g[n.id].classes, + style: '', + id: n.id, + domId: 'state-' + n.id + '-' + y, + type: g[n.id].type, + padding: 15, + }; + if (n.note) { + var s = { + labelStyle: '', + shape: 'note', + labelText: n.note.text, + classes: 'statediagram-note', + style: '', + id: n.id + '----note', + domId: 'state-' + n.id + '----note-' + y, + type: g[n.id].type, + padding: 15, + }, + a = { + labelStyle: '', + shape: 'noteGroup', + labelText: n.note.text, + classes: g[n.id].classes, + style: '', + id: n.id + '----parent', + domId: 'state-' + n.id + '----parent-' + y, + type: 'group', + padding: 0, + }; + y++, + e.setNode(n.id + '----parent', a), + e.setNode(s.id, s), + e.setNode(n.id, o), + e.setParent(n.id, n.id + '----parent'), + e.setParent(s.id, n.id + '----parent'); + var u = n.id, + l = s.id; + 'left of' === n.note.position && ((u = s.id), (l = n.id)), + e.setEdge(u, l, { + arrowhead: 'none', + arrowType: '', + style: 'fill:none', + labelStyle: '', + classes: 'transition note-edge', + arrowheadStyle: 'fill: #333', + labelpos: 'c', + labelType: 'text', + thickness: 'normal', + }); + } else e.setNode(n.id, o); + } + t && + 'root' !== t.id && + (d.logger.info( + 'Setting node ', + n.id, + ' to be child of its parent ', + t.id + ), + e.setParent(n.id, t.id)), + n.doc && + (d.logger.info('Adding nodes children '), + v(e, n, n.doc, !r)); + }, + y = 0, + v = function (e, t, n, r) { + (y = 0), + d.logger.trace('items', n), + n.forEach(function (n) { + if ('state' === n.stmt || 'default' === n.stmt) + _(e, t, n, r); + else if ('relation' === n.stmt) { + _(e, t, n.state1, r), _(e, t, n.state2, r); + var i = { + id: 'edge' + y, + arrowhead: 'normal', + arrowTypeEnd: 'arrow_barb', + style: 'fill:none', + labelStyle: '', + label: n.description, + arrowheadStyle: 'fill: #333', + labelpos: 'c', + labelType: 'text', + thickness: 'normal', + classes: 'transition', + }, + o = n.state1.id, + s = n.state2.id; + e.setEdge(o, s, i, y), y++; + } + }); + }, + b = function (e, t) { + d.logger.info('Drawing state diagram (v2)', t), + s.default.clear(), + (g = {}); + var n = u.a.parser; + (n.yy = s.default), n.parse(e); + var r = s.default.getDirection(); + void 0 === r && (r = 'LR'); + var a = Object(l.getConfig)().state, + f = a.nodeSpacing || 50, + p = a.rankSpacing || 50, + m = new i.a.Graph({ multigraph: !0, compound: !0 }) + .setGraph({ + rankdir: 'TB', + nodesep: f, + ranksep: p, + marginx: 8, + marginy: 8, + }) + .setDefaultEdgeLabel(function () { + return {}; + }); + d.logger.info(s.default.getRootDocV2()), + s.default.extract(s.default.getRootDocV2()), + d.logger.info(s.default.getRootDocV2()), + _(m, void 0, s.default.getRootDocV2(), !0); + var y = Object(o.select)('[id="'.concat(t, '"]')), + v = Object(o.select)('#' + t + ' g'); + Object(c.render)(v, m, ['barb'], 'statediagram', t); + var b = y.node().getBBox(), + w = b.width + 16, + C = b.height + 16; + y.attr('class', 'statediagram'); + var S = y.node().getBBox(); + Object(h.configureSvgSize)(y, C, 1.75 * w, a.useMaxWidth); + var x = '' + .concat(S.x - 8, ' ') + .concat(S.y - 8, ' ') + .concat(w, ' ') + .concat(C); + if ( + (d.logger.debug('viewBox '.concat(x)), + y.attr('viewBox', x), + !a.htmlLabels) + ) + for ( + var L = document.querySelectorAll( + '[id="' + t + '"] .edgeLabel .label' + ), + k = 0; + k < L.length; + k++ + ) { + var M = L[k], + D = M.getBBox(), + E = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'rect' + ); + E.setAttribute('rx', 0), + E.setAttribute('ry', 0), + E.setAttribute('width', D.width), + E.setAttribute('height', D.height), + M.insertBefore(E, M.firstChild); + } + }; + t.default = { setConf: p, getClasses: m, draw: b }; + }, + './src/diagrams/state/stateRenderer.js': + /*!*********************************************!*\ !*** ./src/diagrams/state/stateRenderer.js ***! \*********************************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return _})),n.d(t,"draw",(function(){return y}));var r,i=n(/*! d3 */"d3"),o=n(/*! dagre */"dagre"),s=n.n(o),a=n(/*! graphlib */"graphlib"),u=n.n(a),l=n(/*! ../../logger */"./src/logger.js"),c=n(/*! ./stateDb */"./src/diagrams/state/stateDb.js"),d=n(/*! ../common/common */"./src/diagrams/common/common.js"),h=n(/*! ./parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),f=n(/*! ./shapes */"./src/diagrams/state/shapes.js"),p=n(/*! ../../config */"./src/config.js"),g=n(/*! ../../utils */"./src/utils.js");h.parser.yy=c.default;var m={},_=function(){},y=function(e,t){r=Object(p.getConfig)().state,h.parser.yy.clear(),h.parser.parse(e),l.logger.debug("Rendering diagram "+e);var n=Object(i.select)("[id='".concat(t,"']"));n.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z"),new u.a.Graph({multigraph:!0,compound:!0,rankdir:"RL"}).setDefaultEdgeLabel((function(){return{}}));var o=c.default.getRootDoc();v(o,n,void 0,!1);var s=r.padding,a=n.node().getBBox(),d=a.width+2*s,f=a.height+2*s,m=1.75*d;Object(g.configureSvgSize)(n,f,m,r.useMaxWidth),n.attr("viewBox","".concat(a.x-r.padding," ").concat(a.y-r.padding," ")+d+" "+f)},v=function e(t,n,o,a){var h,p=new u.a.Graph({compound:!0,multigraph:!0}),g=!0;for(h=0;h "+e.w+": "+JSON.stringify(p.edge(e))),Object(f.drawEdge)(n,p.edge(e),p.edge(e).relation))})),E=D.getBBox();var T={id:o||"root",label:o||"root",width:0,height:0};return T.width=E.width+2*r.padding,T.height=E.height+2*r.padding,l.logger.debug("Doc rendered",T,p),T};t.default={setConf:_,draw:y}},"./src/diagrams/state/styles.js": -/*!**************************************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return _; + }), + n.d(t, 'draw', function () { + return y; + }); + var r, + i = n(/*! d3 */ 'd3'), + o = n(/*! dagre */ 'dagre'), + s = n.n(o), + a = n(/*! graphlib */ 'graphlib'), + u = n.n(a), + l = n(/*! ../../logger */ './src/logger.js'), + c = n(/*! ./stateDb */ './src/diagrams/state/stateDb.js'), + d = n( + /*! ../common/common */ './src/diagrams/common/common.js' + ), + h = n( + /*! ./parser/stateDiagram */ './src/diagrams/state/parser/stateDiagram.jison' + ), + f = n(/*! ./shapes */ './src/diagrams/state/shapes.js'), + p = n(/*! ../../config */ './src/config.js'), + g = n(/*! ../../utils */ './src/utils.js'); + h.parser.yy = c.default; + var m = {}, + _ = function () {}, + y = function (e, t) { + (r = Object(p.getConfig)().state), + h.parser.yy.clear(), + h.parser.parse(e), + l.logger.debug('Rendering diagram ' + e); + var n = Object(i.select)("[id='".concat(t, "']")); + n + .append('defs') + .append('marker') + .attr('id', 'dependencyEnd') + .attr('refX', 19) + .attr('refY', 7) + .attr('markerWidth', 20) + .attr('markerHeight', 28) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 19,7 L9,13 L14,7 L9,1 Z'), + new u.a.Graph({ + multigraph: !0, + compound: !0, + rankdir: 'RL', + }).setDefaultEdgeLabel(function () { + return {}; + }); + var o = c.default.getRootDoc(); + v(o, n, void 0, !1); + var s = r.padding, + a = n.node().getBBox(), + d = a.width + 2 * s, + f = a.height + 2 * s, + m = 1.75 * d; + Object(g.configureSvgSize)(n, f, m, r.useMaxWidth), + n.attr( + 'viewBox', + '' + .concat(a.x - r.padding, ' ') + .concat(a.y - r.padding, ' ') + + d + + ' ' + + f + ); + }, + v = function e(t, n, o, a) { + var h, + p = new u.a.Graph({ compound: !0, multigraph: !0 }), + g = !0; + for (h = 0; h < t.length; h++) + if ('relation' === t[h].stmt) { + g = !1; + break; + } + o + ? p.setGraph({ + rankdir: 'LR', + multigraph: !0, + compound: !0, + ranker: 'tight-tree', + ranksep: g ? 1 : r.edgeLengthFactor, + nodeSep: g ? 1 : 50, + isMultiGraph: !0, + }) + : p.setGraph({ + rankdir: 'TB', + multigraph: !0, + compound: !0, + ranksep: g ? 1 : r.edgeLengthFactor, + nodeSep: g ? 1 : 50, + ranker: 'tight-tree', + isMultiGraph: !0, + }), + p.setDefaultEdgeLabel(function () { + return {}; + }), + c.default.extract(t); + for ( + var _ = c.default.getStates(), + y = c.default.getRelations(), + v = Object.keys(_), + b = 0; + b < v.length; + b++ + ) { + var w = _[v[b]]; + o && (w.parentId = o); + var C = void 0; + if (w.doc) { + var S = n + .append('g') + .attr('id', w.id) + .attr('class', 'stateGroup'); + C = e(w.doc, S, w.id, !a); + var x = (S = Object(f.addTitleAndBox)(S, w, a)) + .node() + .getBBox(); + (C.width = x.width), + (C.height = x.height + r.padding / 2), + (m[w.id] = { y: r.compositTitleSize }); + } else C = Object(f.drawState)(n, w, p); + if (w.note) { + var L = { + descriptions: [], + id: w.id + '-note', + note: w.note, + type: 'note', + }, + k = Object(f.drawState)(n, L, p); + 'left of' === w.note.position + ? (p.setNode(C.id + '-note', k), p.setNode(C.id, C)) + : (p.setNode(C.id, C), p.setNode(C.id + '-note', k)), + p.setParent(C.id, C.id + '-group'), + p.setParent(C.id + '-note', C.id + '-group'); + } else p.setNode(C.id, C); + } + l.logger.debug('Count=', p.nodeCount(), p); + var M = 0; + y.forEach(function (e) { + var t; + M++, + l.logger.debug('Setting edge', e), + p.setEdge( + e.id1, + e.id2, + { + relation: e, + width: + ((t = e.title), + t ? t.length * r.fontSizeFactor : 1), + height: + r.labelHeight * d.default.getRows(e.title).length, + labelpos: 'c', + }, + 'id' + M + ); + }), + s.a.layout(p), + l.logger.debug('Graph after layout', p.nodes()); + var D = n.node(); + p.nodes().forEach(function (e) { + void 0 !== e && void 0 !== p.node(e) + ? (l.logger.warn( + 'Node ' + e + ': ' + JSON.stringify(p.node(e)) + ), + Object(i.select)('#' + D.id + ' #' + e).attr( + 'transform', + 'translate(' + + (p.node(e).x - p.node(e).width / 2) + + ',' + + (p.node(e).y + + (m[e] ? m[e].y : 0) - + p.node(e).height / 2) + + ' )' + ), + Object(i.select)('#' + D.id + ' #' + e).attr( + 'data-x-shift', + p.node(e).x - p.node(e).width / 2 + ), + document + .querySelectorAll('#' + D.id + ' #' + e + ' .divider') + .forEach(function (e) { + var t = e.parentElement, + n = 0, + r = 0; + t && + (t.parentElement && + (n = t.parentElement.getBBox().width), + (r = parseInt( + t.getAttribute('data-x-shift'), + 10 + )), + Number.isNaN(r) && (r = 0)), + e.setAttribute('x1', 0 - r + 8), + e.setAttribute('x2', n - r - 8); + })) + : l.logger.debug( + 'No Node ' + e + ': ' + JSON.stringify(p.node(e)) + ); + }); + var E = D.getBBox(); + p.edges().forEach(function (e) { + void 0 !== e && + void 0 !== p.edge(e) && + (l.logger.debug( + 'Edge ' + + e.v + + ' -> ' + + e.w + + ': ' + + JSON.stringify(p.edge(e)) + ), + Object(f.drawEdge)(n, p.edge(e), p.edge(e).relation)); + }), + (E = D.getBBox()); + var T = { + id: o || 'root', + label: o || 'root', + width: 0, + height: 0, + }; + return ( + (T.width = E.width + 2 * r.padding), + (T.height = E.height + 2 * r.padding), + l.logger.debug('Doc rendered', T, p), + T + ); + }; + t.default = { setConf: _, draw: y }; + }, + './src/diagrams/state/styles.js': + /*!**************************************!*\ !*** ./src/diagrams/state/styles.js ***! \**************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return"g.stateGroup text {\n fill: ".concat(e.nodeBorder,";\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ").concat(e.textColor,";\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ").concat(e.labelColor,";\n}\n\ng.stateGroup rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n}\n\ng.stateGroup line {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n}\n\n.transition {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ").concat(e.background,";\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ").concat(e.noteBorderColor,";\n fill: ").concat(e.noteBkgColor,";\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ").concat(e.mainBkg,";\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ").concat(e.tertiaryColor,";\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ").concat(e.tertiaryTextColor,";\n}\n.label div .edgeLabel {\n color: ").concat(e.tertiaryTextColor,";\n}\n\n.stateLabel text {\n fill: ").concat(e.labelColor,";\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ").concat(e.lineColor,";\n stroke: black;\n}\n.node circle.state-end {\n fill: ").concat(e.primaryBorderColor,";\n stroke: ").concat(e.background,";\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ").concat(e.background,";\n // stroke: ").concat(e.background,";\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ").concat(e.lineColor,";\n}\n\n.statediagram-cluster rect {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ").concat(e.textColor,";\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ").concat(e.nodeBorder,";\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ").concat(e.background,";\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ").concat(e.altBackground?e.altBackground:"#efefef",";\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ").concat(e.noteBkgColor,";\n stroke: ").concat(e.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ").concat(e.noteBkgColor,";\n stroke: ").concat(e.noteBorderColor,";\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ").concat(e.noteTextColor,";\n}\n\n.statediagram-note .nodeLabel {\n color: ").concat(e.noteTextColor,";\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ").concat(e.lineColor,";\n stroke: ").concat(e.lineColor,";\n stroke-width: 1;\n}\n")}},"./src/diagrams/user-journey/journeyDb.js": -/*!************************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return 'g.stateGroup text {\n fill: ' + .concat( + e.nodeBorder, + ';\n stroke: none;\n font-size: 10px;\n}\ng.stateGroup text {\n fill: ' + ) + .concat( + e.textColor, + ';\n stroke: none;\n font-size: 10px;\n\n}\ng.stateGroup .state-title {\n font-weight: bolder;\n fill: ' + ) + .concat( + e.labelColor, + ';\n}\n\ng.stateGroup rect {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n}\n\ng.stateGroup line {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n stroke-width: 1;\n}\n\n.transition {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n stroke-width: 1;\n fill: none;\n}\n\n.stateGroup .composit {\n fill: ' + ) + .concat( + e.background, + ';\n border-bottom: 1px\n}\n\n.stateGroup .alt-composit {\n fill: #e0e0e0;\n border-bottom: 1px\n}\n\n.state-note {\n stroke: ' + ) + .concat(e.noteBorderColor, ';\n fill: ') + .concat( + e.noteBkgColor, + ';\n\n text {\n fill: black;\n stroke: none;\n font-size: 10px;\n }\n}\n\n.stateLabel .box {\n stroke: none;\n stroke-width: 0;\n fill: ' + ) + .concat( + e.mainBkg, + ';\n opacity: 0.5;\n}\n\n.edgeLabel .label rect {\n fill: ' + ) + .concat( + e.tertiaryColor, + ';\n opacity: 0.5;\n}\n.edgeLabel .label text {\n fill: ' + ) + .concat( + e.tertiaryTextColor, + ';\n}\n.label div .edgeLabel {\n color: ' + ) + .concat( + e.tertiaryTextColor, + ';\n}\n\n.stateLabel text {\n fill: ' + ) + .concat( + e.labelColor, + ';\n font-size: 10px;\n font-weight: bold;\n}\n\n.node circle.state-start {\n fill: ' + ) + .concat( + e.lineColor, + ';\n stroke: black;\n}\n.node circle.state-end {\n fill: ' + ) + .concat(e.primaryBorderColor, ';\n stroke: ') + .concat( + e.background, + ';\n stroke-width: 1.5\n}\n.end-state-inner {\n fill: ' + ) + .concat(e.background, ';\n // stroke: ') + .concat( + e.background, + ';\n stroke-width: 1.5\n}\n\n.node rect {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n stroke-width: 1px;\n}\n#statediagram-barbEnd {\n fill: ' + ) + .concat( + e.lineColor, + ';\n}\n\n.statediagram-cluster rect {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n stroke-width: 1px;\n}\n\n.cluster-label, .nodeLabel {\n color: ' + ) + .concat( + e.textColor, + ';\n}\n\n.statediagram-cluster rect.outer {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state .divider {\n stroke: ' + ) + .concat( + e.nodeBorder, + ';\n}\n\n.statediagram-state .title-state {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-cluster.statediagram-cluster .inner {\n fill: ' + ) + .concat( + e.background, + ';\n}\n.statediagram-cluster.statediagram-cluster-alt .inner {\n fill: #e0e0e0;\n}\n\n.statediagram-cluster .inner {\n rx:0;\n ry:0;\n}\n\n.statediagram-state rect.basic {\n rx: 5px;\n ry: 5px;\n}\n.statediagram-state rect.divider {\n stroke-dasharray: 10,10;\n fill: ' + ) + .concat( + e.altBackground ? e.altBackground : '#efefef', + ';\n}\n\n.note-edge {\n stroke-dasharray: 5;\n}\n\n.statediagram-note rect {\n fill: ' + ) + .concat(e.noteBkgColor, ';\n stroke: ') + .concat( + e.noteBorderColor, + ';\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n.statediagram-note rect {\n fill: ' + ) + .concat(e.noteBkgColor, ';\n stroke: ') + .concat( + e.noteBorderColor, + ';\n stroke-width: 1px;\n rx: 0;\n ry: 0;\n}\n\n.statediagram-note text {\n fill: ' + ) + .concat( + e.noteTextColor, + ';\n}\n\n.statediagram-note .nodeLabel {\n color: ' + ) + .concat( + e.noteTextColor, + ';\n}\n\n#dependencyStart, #dependencyEnd {\n fill: ' + ) + .concat(e.lineColor, ';\n stroke: ') + .concat(e.lineColor, ';\n stroke-width: 1;\n}\n'); + }); + }, + './src/diagrams/user-journey/journeyDb.js': + /*!************************************************!*\ !*** ./src/diagrams/user-journey/journeyDb.js ***! \************************************************/ -/*! exports provided: parseDirective, clear, setTitle, getTitle, addSection, getSections, getTasks, addTask, addTaskOrg, default */function(e,t,n){"use strict";n.r(t),n.d(t,"parseDirective",(function(){return d})),n.d(t,"clear",(function(){return h})),n.d(t,"setTitle",(function(){return f})),n.d(t,"getTitle",(function(){return p})),n.d(t,"addSection",(function(){return g})),n.d(t,"getSections",(function(){return m})),n.d(t,"getTasks",(function(){return _})),n.d(t,"addTask",(function(){return y})),n.d(t,"addTaskOrg",(function(){return v}));var r=n(/*! ../../mermaidAPI */"./src/mermaidAPI.js"),i=n(/*! ../../config */"./src/config.js");function o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);td&&D.push("'"+this.terminals_[L]+"'");T=p.showPosition?"Parse error on line "+(u+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(u+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(T,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:_,expected:D})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+b);switch(S[0]){case 1:n.push(b),i.push(p.yytext),o.push(p.yylloc),n.push(S[1]),b=null,w?(b=w,w=null):(l=p.yyleng,a=p.yytext,u=p.yylineno,_=p.yylloc,c>0&&c--);break;case 2:if(k=this.productions_[S[1]][1],E.$=i[i.length-k],E._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(E._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),void 0!==(x=this.performAction.apply(E,[a,l,u,g.yy,S[1],i,o].concat(f))))return x;k&&(n=n.slice(0,-1*k*2),i=i.slice(0,-1*k),o=o.slice(0,-1*k)),n.push(this.productions_[S[1]][0]),i.push(E.$),o.push(E._$),M=s[n[n.length-2]][n[n.length-1]],n.push(M);break;case 3:return!0}}return!0}},c={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var o in i)this[o]=i[o];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),o=0;ot[0].length)){if(t=n,r=o,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[o])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(e,t,n,r){switch(n){case 0:return this.begin("open_directive"),21;case 1:return this.begin("type_directive"),22;case 2:return this.popState(),this.begin("arg_directive"),15;case 3:return this.popState(),this.popState(),24;case 4:return 23;case 5:case 6:break;case 7:return 11;case 8:case 9:break;case 10:return 4;case 11:return 17;case 12:return 18;case 13:return 19;case 14:return 20;case 15:return 15;case 16:return 6;case 17:return"INVALID"}},rules:[/^(?:%%\{)/i,/^(?:((?:(?!\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\}%%)/i,/^(?:((?:(?!\}%%).|\n)*))/i,/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,13,14,15,16,17],inclusive:!0}}};function d(){this.yy={}}return l.lexer=c,d.prototype=l,l.Parser=d,new d}();t.parser=i,t.Parser=i.Parser,t.parse=function(){return i.parse.apply(i,arguments)},t.main=function(r){r[1]||(console.log("Usage: "+r[0]+" FILE"),e.exit(1));var i=n(/*! fs */"./node_modules/node-libs-browser/mock/empty.js").readFileSync(n(/*! path */"./node_modules/path-browserify/index.js").normalize(r[1]),"utf8");return t.parser.parse(i)},n.c[n.s]===r&&t.main(e.argv.slice(1))}).call(this,n(/*! ./../../../../node_modules/process/browser.js */"./node_modules/process/browser.js"),n(/*! ./../../../../node_modules/webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./src/diagrams/user-journey/styles.js": -/*!*********************************************!*\ + /*! no static exports found */ function (e, t, n) { + (function (e, r) { + var i = (function () { + var e = function (e, t, n, r) { + for (n = n || {}, r = e.length; r--; n[e[r]] = t); + return n; + }, + t = [1, 2], + n = [1, 5], + r = [6, 9, 11, 17, 18, 19, 21], + i = [1, 15], + o = [1, 16], + s = [1, 17], + a = [1, 21], + u = [4, 6, 9, 11, 17, 18, 19, 21], + l = { + trace: function () {}, + yy: {}, + symbols_: { + error: 2, + start: 3, + journey: 4, + document: 5, + EOF: 6, + directive: 7, + line: 8, + SPACE: 9, + statement: 10, + NEWLINE: 11, + openDirective: 12, + typeDirective: 13, + closeDirective: 14, + ':': 15, + argDirective: 16, + title: 17, + section: 18, + taskName: 19, + taskData: 20, + open_directive: 21, + type_directive: 22, + arg_directive: 23, + close_directive: 24, + $accept: 0, + $end: 1, + }, + terminals_: { + 2: 'error', + 4: 'journey', + 6: 'EOF', + 9: 'SPACE', + 11: 'NEWLINE', + 15: ':', + 17: 'title', + 18: 'section', + 19: 'taskName', + 20: 'taskData', + 21: 'open_directive', + 22: 'type_directive', + 23: 'arg_directive', + 24: 'close_directive', + }, + productions_: [ + 0, + [3, 3], + [3, 2], + [5, 0], + [5, 2], + [8, 2], + [8, 1], + [8, 1], + [8, 1], + [7, 4], + [7, 6], + [10, 1], + [10, 1], + [10, 2], + [10, 1], + [12, 1], + [13, 1], + [16, 1], + [14, 1], + ], + performAction: function (e, t, n, r, i, o, s) { + var a = o.length - 1; + switch (i) { + case 1: + return o[a - 1]; + case 3: + this.$ = []; + break; + case 4: + o[a - 1].push(o[a]), (this.$ = o[a - 1]); + break; + case 5: + case 6: + this.$ = o[a]; + break; + case 7: + case 8: + this.$ = []; + break; + case 11: + r.setTitle(o[a].substr(6)), + (this.$ = o[a].substr(6)); + break; + case 12: + r.addSection(o[a].substr(8)), + (this.$ = o[a].substr(8)); + break; + case 13: + r.addTask(o[a - 1], o[a]), (this.$ = 'task'); + break; + case 15: + r.parseDirective('%%{', 'open_directive'); + break; + case 16: + r.parseDirective(o[a], 'type_directive'); + break; + case 17: + (o[a] = o[a].trim().replace(/'/g, '"')), + r.parseDirective(o[a], 'arg_directive'); + break; + case 18: + r.parseDirective( + '}%%', + 'close_directive', + 'journey' + ); + } + }, + table: [ + { 3: 1, 4: t, 7: 3, 12: 4, 21: n }, + { 1: [3] }, + e(r, [2, 3], { 5: 6 }), + { 3: 7, 4: t, 7: 3, 12: 4, 21: n }, + { 13: 8, 22: [1, 9] }, + { 22: [2, 15] }, + { + 6: [1, 10], + 7: 18, + 8: 11, + 9: [1, 12], + 10: 13, + 11: [1, 14], + 12: 4, + 17: i, + 18: o, + 19: s, + 21: n, + }, + { 1: [2, 2] }, + { 14: 19, 15: [1, 20], 24: a }, + e([15, 24], [2, 16]), + e(r, [2, 8], { 1: [2, 1] }), + e(r, [2, 4]), + { 7: 18, 10: 22, 12: 4, 17: i, 18: o, 19: s, 21: n }, + e(r, [2, 6]), + e(r, [2, 7]), + e(r, [2, 11]), + e(r, [2, 12]), + { 20: [1, 23] }, + e(r, [2, 14]), + { 11: [1, 24] }, + { 16: 25, 23: [1, 26] }, + { 11: [2, 18] }, + e(r, [2, 5]), + e(r, [2, 13]), + e(u, [2, 9]), + { 14: 27, 24: a }, + { 24: [2, 17] }, + { 11: [1, 28] }, + e(u, [2, 10]), + ], + defaultActions: { + 5: [2, 15], + 7: [2, 2], + 21: [2, 18], + 26: [2, 17], + }, + parseError: function (e, t) { + if (!t.recoverable) { + var n = new Error(e); + throw ((n.hash = t), n); + } + this.trace(e); + }, + parse: function (e) { + var t = this, + n = [0], + r = [], + i = [null], + o = [], + s = this.table, + a = '', + u = 0, + l = 0, + c = 0, + d = 2, + h = 1, + f = o.slice.call(arguments, 1), + p = Object.create(this.lexer), + g = { yy: {} }; + for (var m in this.yy) + Object.prototype.hasOwnProperty.call(this.yy, m) && + (g.yy[m] = this.yy[m]); + p.setInput(e, g.yy), + (g.yy.lexer = p), + (g.yy.parser = this), + void 0 === p.yylloc && (p.yylloc = {}); + var _ = p.yylloc; + o.push(_); + var y = p.options && p.options.ranges; + function v() { + var e; + return ( + 'number' != typeof (e = r.pop() || p.lex() || h) && + (e instanceof Array && (e = (r = e).pop()), + (e = t.symbols_[e] || e)), + e + ); + } + 'function' == typeof g.yy.parseError + ? (this.parseError = g.yy.parseError) + : (this.parseError = Object.getPrototypeOf( + this + ).parseError); + for (var b, w, C, S, x, L, k, M, D, E = {}; ; ) { + if ( + ((C = n[n.length - 1]), + this.defaultActions[C] + ? (S = this.defaultActions[C]) + : (null == b && (b = v()), (S = s[C] && s[C][b])), + void 0 === S || !S.length || !S[0]) + ) { + var T = ''; + for (L in ((D = []), s[C])) + this.terminals_[L] && + L > d && + D.push("'" + this.terminals_[L] + "'"); + (T = p.showPosition + ? 'Parse error on line ' + + (u + 1) + + ':\n' + + p.showPosition() + + '\nExpecting ' + + D.join(', ') + + ", got '" + + (this.terminals_[b] || b) + + "'" + : 'Parse error on line ' + + (u + 1) + + ': Unexpected ' + + (b == h + ? 'end of input' + : "'" + (this.terminals_[b] || b) + "'")), + this.parseError(T, { + text: p.match, + token: this.terminals_[b] || b, + line: p.yylineno, + loc: _, + expected: D, + }); + } + if (S[0] instanceof Array && S.length > 1) + throw new Error( + 'Parse Error: multiple actions possible at state: ' + + C + + ', token: ' + + b + ); + switch (S[0]) { + case 1: + n.push(b), + i.push(p.yytext), + o.push(p.yylloc), + n.push(S[1]), + (b = null), + w + ? ((b = w), (w = null)) + : ((l = p.yyleng), + (a = p.yytext), + (u = p.yylineno), + (_ = p.yylloc), + c > 0 && c--); + break; + case 2: + if ( + ((k = this.productions_[S[1]][1]), + (E.$ = i[i.length - k]), + (E._$ = { + first_line: o[o.length - (k || 1)].first_line, + last_line: o[o.length - 1].last_line, + first_column: + o[o.length - (k || 1)].first_column, + last_column: o[o.length - 1].last_column, + }), + y && + (E._$.range = [ + o[o.length - (k || 1)].range[0], + o[o.length - 1].range[1], + ]), + void 0 !== + (x = this.performAction.apply( + E, + [a, l, u, g.yy, S[1], i, o].concat(f) + ))) + ) + return x; + k && + ((n = n.slice(0, -1 * k * 2)), + (i = i.slice(0, -1 * k)), + (o = o.slice(0, -1 * k))), + n.push(this.productions_[S[1]][0]), + i.push(E.$), + o.push(E._$), + (M = s[n[n.length - 2]][n[n.length - 1]]), + n.push(M); + break; + case 3: + return !0; + } + } + return !0; + }, + }, + c = { + EOF: 1, + parseError: function (e, t) { + if (!this.yy.parser) throw new Error(e); + this.yy.parser.parseError(e, t); + }, + setInput: function (e, t) { + return ( + (this.yy = t || this.yy || {}), + (this._input = e), + (this._more = this._backtrack = this.done = !1), + (this.yylineno = this.yyleng = 0), + (this.yytext = this.matched = this.match = ''), + (this.conditionStack = ['INITIAL']), + (this.yylloc = { + first_line: 1, + first_column: 0, + last_line: 1, + last_column: 0, + }), + this.options.ranges && (this.yylloc.range = [0, 0]), + (this.offset = 0), + this + ); + }, + input: function () { + var e = this._input[0]; + return ( + (this.yytext += e), + this.yyleng++, + this.offset++, + (this.match += e), + (this.matched += e), + e.match(/(?:\r\n?|\n).*/g) + ? (this.yylineno++, this.yylloc.last_line++) + : this.yylloc.last_column++, + this.options.ranges && this.yylloc.range[1]++, + (this._input = this._input.slice(1)), + e + ); + }, + unput: function (e) { + var t = e.length, + n = e.split(/(?:\r\n?|\n)/g); + (this._input = e + this._input), + (this.yytext = this.yytext.substr( + 0, + this.yytext.length - t + )), + (this.offset -= t); + var r = this.match.split(/(?:\r\n?|\n)/g); + (this.match = this.match.substr( + 0, + this.match.length - 1 + )), + (this.matched = this.matched.substr( + 0, + this.matched.length - 1 + )), + n.length - 1 && (this.yylineno -= n.length - 1); + var i = this.yylloc.range; + return ( + (this.yylloc = { + first_line: this.yylloc.first_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.first_column, + last_column: n + ? (n.length === r.length + ? this.yylloc.first_column + : 0) + + r[r.length - n.length].length - + n[0].length + : this.yylloc.first_column - t, + }), + this.options.ranges && + (this.yylloc.range = [ + i[0], + i[0] + this.yyleng - t, + ]), + (this.yyleng = this.yytext.length), + this + ); + }, + more: function () { + return (this._more = !0), this; + }, + reject: function () { + return this.options.backtrack_lexer + ? ((this._backtrack = !0), this) + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + less: function (e) { + this.unput(this.match.slice(e)); + }, + pastInput: function () { + var e = this.matched.substr( + 0, + this.matched.length - this.match.length + ); + return ( + (e.length > 20 ? '...' : '') + + e.substr(-20).replace(/\n/g, '') + ); + }, + upcomingInput: function () { + var e = this.match; + return ( + e.length < 20 && + (e += this._input.substr(0, 20 - e.length)), + ( + e.substr(0, 20) + (e.length > 20 ? '...' : '') + ).replace(/\n/g, '') + ); + }, + showPosition: function () { + var e = this.pastInput(), + t = new Array(e.length + 1).join('-'); + return e + this.upcomingInput() + '\n' + t + '^'; + }, + test_match: function (e, t) { + var n, r, i; + if ( + (this.options.backtrack_lexer && + ((i = { + yylineno: this.yylineno, + yylloc: { + first_line: this.yylloc.first_line, + last_line: this.last_line, + first_column: this.yylloc.first_column, + last_column: this.yylloc.last_column, + }, + yytext: this.yytext, + match: this.match, + matches: this.matches, + matched: this.matched, + yyleng: this.yyleng, + offset: this.offset, + _more: this._more, + _input: this._input, + yy: this.yy, + conditionStack: this.conditionStack.slice(0), + done: this.done, + }), + this.options.ranges && + (i.yylloc.range = this.yylloc.range.slice(0))), + (r = e[0].match(/(?:\r\n?|\n).*/g)) && + (this.yylineno += r.length), + (this.yylloc = { + first_line: this.yylloc.last_line, + last_line: this.yylineno + 1, + first_column: this.yylloc.last_column, + last_column: r + ? r[r.length - 1].length - + r[r.length - 1].match(/\r?\n?/)[0].length + : this.yylloc.last_column + e[0].length, + }), + (this.yytext += e[0]), + (this.match += e[0]), + (this.matches = e), + (this.yyleng = this.yytext.length), + this.options.ranges && + (this.yylloc.range = [ + this.offset, + (this.offset += this.yyleng), + ]), + (this._more = !1), + (this._backtrack = !1), + (this._input = this._input.slice(e[0].length)), + (this.matched += e[0]), + (n = this.performAction.call( + this, + this.yy, + this, + t, + this.conditionStack[this.conditionStack.length - 1] + )), + this.done && this._input && (this.done = !1), + n) + ) + return n; + if (this._backtrack) { + for (var o in i) this[o] = i[o]; + return !1; + } + return !1; + }, + next: function () { + if (this.done) return this.EOF; + var e, t, n, r; + this._input || (this.done = !0), + this._more || ((this.yytext = ''), (this.match = '')); + for ( + var i = this._currentRules(), o = 0; + o < i.length; + o++ + ) + if ( + (n = this._input.match(this.rules[i[o]])) && + (!t || n[0].length > t[0].length) + ) { + if ( + ((t = n), (r = o), this.options.backtrack_lexer) + ) { + if (!1 !== (e = this.test_match(n, i[o]))) + return e; + if (this._backtrack) { + t = !1; + continue; + } + return !1; + } + if (!this.options.flex) break; + } + return t + ? !1 !== (e = this.test_match(t, i[r])) && e + : '' === this._input + ? this.EOF + : this.parseError( + 'Lexical error on line ' + + (this.yylineno + 1) + + '. Unrecognized text.\n' + + this.showPosition(), + { text: '', token: null, line: this.yylineno } + ); + }, + lex: function () { + var e = this.next(); + return e || this.lex(); + }, + begin: function (e) { + this.conditionStack.push(e); + }, + popState: function () { + return this.conditionStack.length - 1 > 0 + ? this.conditionStack.pop() + : this.conditionStack[0]; + }, + _currentRules: function () { + return this.conditionStack.length && + this.conditionStack[this.conditionStack.length - 1] + ? this.conditions[ + this.conditionStack[ + this.conditionStack.length - 1 + ] + ].rules + : this.conditions.INITIAL.rules; + }, + topState: function (e) { + return (e = + this.conditionStack.length - 1 - Math.abs(e || 0)) >= + 0 + ? this.conditionStack[e] + : 'INITIAL'; + }, + pushState: function (e) { + this.begin(e); + }, + stateStackSize: function () { + return this.conditionStack.length; + }, + options: { 'case-insensitive': !0 }, + performAction: function (e, t, n, r) { + switch (n) { + case 0: + return this.begin('open_directive'), 21; + case 1: + return this.begin('type_directive'), 22; + case 2: + return ( + this.popState(), this.begin('arg_directive'), 15 + ); + case 3: + return this.popState(), this.popState(), 24; + case 4: + return 23; + case 5: + case 6: + break; + case 7: + return 11; + case 8: + case 9: + break; + case 10: + return 4; + case 11: + return 17; + case 12: + return 18; + case 13: + return 19; + case 14: + return 20; + case 15: + return 15; + case 16: + return 6; + case 17: + return 'INVALID'; + } + }, + rules: [ + /^(?:%%\{)/i, + /^(?:((?:(?!\}%%)[^:.])*))/i, + /^(?::)/i, + /^(?:\}%%)/i, + /^(?:((?:(?!\}%%).|\n)*))/i, + /^(?:%(?!\{)[^\n]*)/i, + /^(?:[^\}]%%[^\n]*)/i, + /^(?:[\n]+)/i, + /^(?:\s+)/i, + /^(?:#[^\n]*)/i, + /^(?:journey\b)/i, + /^(?:title\s[^#\n;]+)/i, + /^(?:section\s[^#:\n;]+)/i, + /^(?:[^#:\n;]+)/i, + /^(?::[^#\n;]+)/i, + /^(?::)/i, + /^(?:$)/i, + /^(?:.)/i, + ], + conditions: { + open_directive: { rules: [1], inclusive: !1 }, + type_directive: { rules: [2, 3], inclusive: !1 }, + arg_directive: { rules: [3, 4], inclusive: !1 }, + INITIAL: { + rules: [ + 0, + 5, + 6, + 7, + 8, + 9, + 10, + 11, + 12, + 13, + 14, + 15, + 16, + 17, + ], + inclusive: !0, + }, + }, + }; + function d() { + this.yy = {}; + } + return ( + (l.lexer = c), (d.prototype = l), (l.Parser = d), new d() + ); + })(); + (t.parser = i), + (t.Parser = i.Parser), + (t.parse = function () { + return i.parse.apply(i, arguments); + }), + (t.main = function (r) { + r[1] || + (console.log('Usage: ' + r[0] + ' FILE'), e.exit(1)); + var i = n( + /*! fs */ './node_modules/node-libs-browser/mock/empty.js' + ).readFileSync( + n( + /*! path */ './node_modules/path-browserify/index.js' + ).normalize(r[1]), + 'utf8' + ); + return t.parser.parse(i); + }), + n.c[n.s] === r && t.main(e.argv.slice(1)); + }.call( + this, + n( + /*! ./../../../../node_modules/process/browser.js */ './node_modules/process/browser.js' + ), + n( + /*! ./../../../../node_modules/webpack/buildin/module.js */ './node_modules/webpack/buildin/module.js' + )(e) + )); + }, + './src/diagrams/user-journey/styles.js': + /*!*********************************************!*\ !*** ./src/diagrams/user-journey/styles.js ***! \*********************************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t),t.default=function(e){return".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: ".concat(e.textColor,";\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ").concat(e.textColor,"\n }\n\n .legend {\n fill: ").concat(e.textColor,";\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ").concat(e.textColor,"\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ").concat(e.mainBkg,";\n stroke: ").concat(e.nodeBorder,";\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ").concat(e.arrowheadColor,";\n }\n\n .edgePath .path {\n stroke: ").concat(e.lineColor,";\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ").concat(e.lineColor,";\n fill: none;\n }\n\n .edgeLabel {\n background-color: ").concat(e.edgeLabelBackground,";\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ").concat(e.titleColor,";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: ").concat(e.tertiaryColor,";\n border: 1px solid ").concat(e.border2,";\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType0):"",";\n }\n .task-type-1, .section-type-1 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType1):"",";\n }\n .task-type-2, .section-type-2 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType2):"",";\n }\n .task-type-3, .section-type-3 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType3):"",";\n }\n .task-type-4, .section-type-4 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType4):"",";\n }\n .task-type-5, .section-type-5 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType5):"",";\n }\n .task-type-6, .section-type-6 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType6):"",";\n }\n .task-type-7, .section-type-7 {\n ").concat(e.fillType0?"fill: ".concat(e.fillType7):"",";\n }\n")}},"./src/diagrams/user-journey/svgDraw.js": -/*!**********************************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t), + (t.default = function (e) { + return ".label {\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n color: " + .concat( + e.textColor, + ';\n }\n .mouth {\n stroke: #666;\n }\n\n line {\n stroke: ' + ) + .concat(e.textColor, '\n }\n\n .legend {\n fill: ') + .concat( + e.textColor, + ';\n }\n\n .label text {\n fill: #333;\n }\n .label {\n color: ' + ) + .concat( + e.textColor, + '\n }\n\n .face {\n fill: #FFF8DC;\n stroke: #999;\n }\n\n .node rect,\n .node circle,\n .node ellipse,\n .node polygon,\n .node path {\n fill: ' + ) + .concat(e.mainBkg, ';\n stroke: ') + .concat( + e.nodeBorder, + ';\n stroke-width: 1px;\n }\n\n .node .label {\n text-align: center;\n }\n .node.clickable {\n cursor: pointer;\n }\n\n .arrowheadPath {\n fill: ' + ) + .concat( + e.arrowheadColor, + ';\n }\n\n .edgePath .path {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n stroke-width: 1.5px;\n }\n\n .flowchart-link {\n stroke: ' + ) + .concat( + e.lineColor, + ';\n fill: none;\n }\n\n .edgeLabel {\n background-color: ' + ) + .concat( + e.edgeLabelBackground, + ';\n rect {\n opacity: 0.5;\n }\n text-align: center;\n }\n\n .cluster rect {\n }\n\n .cluster text {\n fill: ' + ) + .concat( + e.titleColor, + ";\n }\n\n div.mermaidTooltip {\n position: absolute;\n text-align: center;\n max-width: 200px;\n padding: 2px;\n font-family: 'trebuchet ms', verdana, arial, sans-serif;\n font-family: var(--mermaid-font-family);\n font-size: 12px;\n background: " + ) + .concat(e.tertiaryColor, ';\n border: 1px solid ') + .concat( + e.border2, + ';\n border-radius: 2px;\n pointer-events: none;\n z-index: 100;\n }\n\n .task-type-0, .section-type-0 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType0) : '', + ';\n }\n .task-type-1, .section-type-1 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType1) : '', + ';\n }\n .task-type-2, .section-type-2 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType2) : '', + ';\n }\n .task-type-3, .section-type-3 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType3) : '', + ';\n }\n .task-type-4, .section-type-4 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType4) : '', + ';\n }\n .task-type-5, .section-type-5 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType5) : '', + ';\n }\n .task-type-6, .section-type-6 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType6) : '', + ';\n }\n .task-type-7, .section-type-7 {\n ' + ) + .concat( + e.fillType0 ? 'fill: '.concat(e.fillType7) : '', + ';\n }\n' + ); + }); + }, + './src/diagrams/user-journey/svgDraw.js': + /*!**********************************************!*\ !*** ./src/diagrams/user-journey/svgDraw.js ***! \**********************************************/ -/*! exports provided: drawRect, drawFace, drawCircle, drawText, drawLabel, drawSection, drawTask, drawBackgroundRect, getTextObj, getNoteRect, default */function(e,t,n){"use strict";n.r(t),n.d(t,"drawRect",(function(){return i})),n.d(t,"drawFace",(function(){return o})),n.d(t,"drawCircle",(function(){return s})),n.d(t,"drawText",(function(){return a})),n.d(t,"drawLabel",(function(){return u})),n.d(t,"drawSection",(function(){return l})),n.d(t,"drawTask",(function(){return d})),n.d(t,"drawBackgroundRect",(function(){return h})),n.d(t,"getTextObj",(function(){return f})),n.d(t,"getNoteRect",(function(){return p}));var r=n(/*! d3 */"d3"),i=function(e,t){var n=e.append("rect");return n.attr("x",t.x),n.attr("y",t.y),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("width",t.width),n.attr("height",t.height),n.attr("rx",t.rx),n.attr("ry",t.ry),void 0!==t.class&&n.attr("class",t.class),n},o=function(e,t){var n=15,i=e.append("circle").attr("cx",t.cx).attr("cy",t.cy).attr("class","face").attr("r",n).attr("stroke-width",2).attr("overflow","visible"),o=e.append("g");return o.append("circle").attr("cx",t.cx-n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),o.append("circle").attr("cx",t.cx+n/3).attr("cy",t.cy-n/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),t.score>3?function(e){var i=Object(r.arc)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+2)+")")}(o):t.score<3?function(e){var i=Object(r.arc)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(n/2).outerRadius(n/2.2);e.append("path").attr("class","mouth").attr("d",i).attr("transform","translate("+t.cx+","+(t.cy+7)+")")}(o):function(e){e.append("line").attr("class","mouth").attr("stroke",2).attr("x1",t.cx-5).attr("y1",t.cy+7).attr("x2",t.cx+5).attr("y2",t.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}(o),i},s=function(e,t){var n=e.append("circle");return n.attr("cx",t.cx),n.attr("cy",t.cy),n.attr("fill",t.fill),n.attr("stroke",t.stroke),n.attr("r",t.r),void 0!==n.class&&n.attr("class",n.class),void 0!==t.title&&n.append("title").text(t.title),n},a=function(e,t){var n=t.text.replace(//gi," "),r=e.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),void 0!==t.class&&r.attr("class",t.class);var i=r.append("tspan");return i.attr("x",t.x+2*t.textMargin),i.text(n),r},u=function(e,t){var n,r,i,o,s,u=e.append("polygon");u.attr("points",(n=t.x,r=t.y,n+","+r+" "+(n+(i=50))+","+r+" "+(n+i)+","+(r+(o=20)-(s=7))+" "+(n+i-1.2*s)+","+(r+o)+" "+n+","+(r+o))),u.attr("class","labelBox"),t.y=t.y+t.labelMargin,t.x=t.x+.5*t.labelMargin,a(e,t)},l=function(e,t,n){var r=e.append("g"),o=p();o.x=t.x,o.y=t.y,o.fill=t.fill,o.width=n.width,o.height=n.height,o.class="journey-section section-type-"+t.num,o.rx=3,o.ry=3,i(r,o),g(n)(t.text,r,o.x,o.y,o.width,o.height,{class:"journey-section section-type-"+t.num},n,t.colour)},c=-1,d=function(e,t,n){var r=t.x+n.width/2,a=e.append("g");c++,a.append("line").attr("id","task"+c).attr("x1",r).attr("y1",t.y).attr("x2",r).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),o(a,{cx:r,cy:300+30*(5-t.score),score:t.score});var u=p();u.x=t.x,u.y=t.y,u.fill=t.fill,u.width=n.width,u.height=n.height,u.class="task task-type-"+t.num,u.rx=3,u.ry=3,i(a,u);var l=t.x+14;t.people.forEach((function(e){var n=t.actors[e],r={cx:l,cy:t.y,r:7,fill:n,stroke:"#000",title:e};s(a,r),l+=10})),g(n)(t.task,a,u.x,u.y,u.width,u.height,{class:"task"},n,t.colour)},h=function(e,t){i(e,{x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,class:"rect"}).lower()},f=function(){return{x:0,y:0,fill:void 0,"text-anchor":"start",width:100,height:100,textMargin:0,rx:0,ry:0}},p=function(){return{x:0,y:0,width:100,anchor:"start",height:100,rx:0,ry:0}},g=function(){function e(e,t,n,i,o,s,a,u){r(t.append("text").attr("x",n+o/2).attr("y",i+s/2+5).style("font-color",u).style("text-anchor","middle").text(e),a)}function t(e,t,n,i,o,s,a,u,l){for(var c=u.taskFontSize,d=u.taskFontFamily,h=e.split(//gi),f=0;f 3 + ? (function (e) { + var i = Object(r.arc)() + .startAngle(Math.PI / 2) + .endAngle((Math.PI / 2) * 3) + .innerRadius(n / 2) + .outerRadius(n / 2.2); + e.append('path') + .attr('class', 'mouth') + .attr('d', i) + .attr( + 'transform', + 'translate(' + t.cx + ',' + (t.cy + 2) + ')' + ); + })(o) + : t.score < 3 + ? (function (e) { + var i = Object(r.arc)() + .startAngle((3 * Math.PI) / 2) + .endAngle((Math.PI / 2) * 5) + .innerRadius(n / 2) + .outerRadius(n / 2.2); + e.append('path') + .attr('class', 'mouth') + .attr('d', i) + .attr( + 'transform', + 'translate(' + t.cx + ',' + (t.cy + 7) + ')' + ); + })(o) + : (function (e) { + e.append('line') + .attr('class', 'mouth') + .attr('stroke', 2) + .attr('x1', t.cx - 5) + .attr('y1', t.cy + 7) + .attr('x2', t.cx + 5) + .attr('y2', t.cy + 7) + .attr('class', 'mouth') + .attr('stroke-width', '1px') + .attr('stroke', '#666'); + })(o), + i + ); + }, + s = function (e, t) { + var n = e.append('circle'); + return ( + n.attr('cx', t.cx), + n.attr('cy', t.cy), + n.attr('fill', t.fill), + n.attr('stroke', t.stroke), + n.attr('r', t.r), + void 0 !== n.class && n.attr('class', n.class), + void 0 !== t.title && n.append('title').text(t.title), + n + ); + }, + a = function (e, t) { + var n = t.text.replace(//gi, ' '), + r = e.append('text'); + r.attr('x', t.x), + r.attr('y', t.y), + r.attr('class', 'legend'), + r.style('text-anchor', t.anchor), + void 0 !== t.class && r.attr('class', t.class); + var i = r.append('tspan'); + return i.attr('x', t.x + 2 * t.textMargin), i.text(n), r; + }, + u = function (e, t) { + var n, + r, + i, + o, + s, + u = e.append('polygon'); + u.attr( + 'points', + ((n = t.x), + (r = t.y), + n + + ',' + + r + + ' ' + + (n + (i = 50)) + + ',' + + r + + ' ' + + (n + i) + + ',' + + (r + (o = 20) - (s = 7)) + + ' ' + + (n + i - 1.2 * s) + + ',' + + (r + o) + + ' ' + + n + + ',' + + (r + o)) + ), + u.attr('class', 'labelBox'), + (t.y = t.y + t.labelMargin), + (t.x = t.x + 0.5 * t.labelMargin), + a(e, t); + }, + l = function (e, t, n) { + var r = e.append('g'), + o = p(); + (o.x = t.x), + (o.y = t.y), + (o.fill = t.fill), + (o.width = n.width), + (o.height = n.height), + (o.class = 'journey-section section-type-' + t.num), + (o.rx = 3), + (o.ry = 3), + i(r, o), + g(n)( + t.text, + r, + o.x, + o.y, + o.width, + o.height, + { class: 'journey-section section-type-' + t.num }, + n, + t.colour + ); + }, + c = -1, + d = function (e, t, n) { + var r = t.x + n.width / 2, + a = e.append('g'); + c++, + a + .append('line') + .attr('id', 'task' + c) + .attr('x1', r) + .attr('y1', t.y) + .attr('x2', r) + .attr('y2', 450) + .attr('class', 'task-line') + .attr('stroke-width', '1px') + .attr('stroke-dasharray', '4 2') + .attr('stroke', '#666'), + o(a, { + cx: r, + cy: 300 + 30 * (5 - t.score), + score: t.score, + }); + var u = p(); + (u.x = t.x), + (u.y = t.y), + (u.fill = t.fill), + (u.width = n.width), + (u.height = n.height), + (u.class = 'task task-type-' + t.num), + (u.rx = 3), + (u.ry = 3), + i(a, u); + var l = t.x + 14; + t.people.forEach(function (e) { + var n = t.actors[e], + r = { + cx: l, + cy: t.y, + r: 7, + fill: n, + stroke: '#000', + title: e, + }; + s(a, r), (l += 10); + }), + g(n)( + t.task, + a, + u.x, + u.y, + u.width, + u.height, + { class: 'task' }, + n, + t.colour + ); + }, + h = function (e, t) { + i(e, { + x: t.startx, + y: t.starty, + width: t.stopx - t.startx, + height: t.stopy - t.starty, + fill: t.fill, + class: 'rect', + }).lower(); + }, + f = function () { + return { + x: 0, + y: 0, + fill: void 0, + 'text-anchor': 'start', + width: 100, + height: 100, + textMargin: 0, + rx: 0, + ry: 0, + }; + }, + p = function () { + return { + x: 0, + y: 0, + width: 100, + anchor: 'start', + height: 100, + rx: 0, + ry: 0, + }; + }, + g = (function () { + function e(e, t, n, i, o, s, a, u) { + r( + t + .append('text') + .attr('x', n + o / 2) + .attr('y', i + s / 2 + 5) + .style('font-color', u) + .style('text-anchor', 'middle') + .text(e), + a + ); + } + function t(e, t, n, i, o, s, a, u, l) { + for ( + var c = u.taskFontSize, + d = u.taskFontFamily, + h = e.split(//gi), + f = 0; + f < h.length; + f++ + ) { + var p = f * c - (c * (h.length - 1)) / 2, + g = t + .append('text') + .attr('x', n + o / 2) + .attr('y', i) + .attr('fill', l) + .style('text-anchor', 'middle') + .style('font-size', c) + .style('font-family', d); + g + .append('tspan') + .attr('x', n + o / 2) + .attr('dy', p) + .text(h[f]), + g + .attr('y', i + s / 2) + .attr('dominant-baseline', 'central') + .attr('alignment-baseline', 'central'), + r(g, a); + } + } + function n(e, n, i, o, s, a, u, l) { + var c = n.append('switch'), + d = c + .append('foreignObject') + .attr('x', i) + .attr('y', o) + .attr('width', s) + .attr('height', a) + .attr('position', 'fixed') + .append('div') + .style('display', 'table') + .style('height', '100%') + .style('width', '100%'); + d + .append('div') + .attr('class', 'label') + .style('display', 'table-cell') + .style('text-align', 'center') + .style('vertical-align', 'middle') + .text(e), + t(e, c, i, o, s, a, u, l), + r(d, u); + } + function r(e, t) { + for (var n in t) n in t && e.attr(n, t[n]); + } + return function (r) { + return 'fo' === r.textPlacement + ? n + : 'old' === r.textPlacement + ? e + : t; + }; + })(); + t.default = { + drawRect: i, + drawCircle: s, + drawSection: l, + drawText: a, + drawLabel: u, + drawTask: d, + drawBackgroundRect: h, + getTextObj: f, + getNoteRect: p, + initGraphics: function (e) { + e.append('defs') + .append('marker') + .attr('id', 'arrowhead') + .attr('refX', 5) + .attr('refY', 2) + .attr('markerWidth', 6) + .attr('markerHeight', 4) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0,0 V 4 L6,2 Z'); + }, + }; + }, + './src/errorRenderer.js': + /*!******************************!*\ !*** ./src/errorRenderer.js ***! \******************************/ -/*! exports provided: setConf, draw, default */function(e,t,n){"use strict";n.r(t),n.d(t,"setConf",(function(){return s})),n.d(t,"draw",(function(){return a}));var r=n(/*! d3 */"d3"),i=n(/*! ./logger */"./src/logger.js"),o={},s=function(e){Object.keys(e).forEach((function(t){o[t]=e[t]}))},a=function(e,t){try{i.logger.debug("Renering svg for syntax error\n");var n=Object(r.select)("#"+e),o=n.append("g");o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1240).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in graph"),o.append("text").attr("class","error-text").attr("x",1050).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text("mermaid version "+t),n.attr("height",100),n.attr("width",400),n.attr("viewBox","768 0 512 512")}catch(e){i.logger.error("Error while rendering info diagram"),i.logger.error(e.message)}};t.default={setConf:s,draw:a}},"./src/logger.js": -/*!***********************!*\ + /*! exports provided: setConf, draw, default */ function (e, t, n) { + 'use strict'; + n.r(t), + n.d(t, 'setConf', function () { + return s; + }), + n.d(t, 'draw', function () { + return a; + }); + var r = n(/*! d3 */ 'd3'), + i = n(/*! ./logger */ './src/logger.js'), + o = {}, + s = function (e) { + Object.keys(e).forEach(function (t) { + o[t] = e[t]; + }); + }, + a = function (e, t) { + try { + i.logger.debug('Renering svg for syntax error\n'); + var n = Object(r.select)('#' + e), + o = n.append('g'); + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z' + ), + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z' + ), + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z' + ), + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z' + ), + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z' + ), + o + .append('path') + .attr('class', 'error-icon') + .attr( + 'd', + 'm436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z' + ), + o + .append('text') + .attr('class', 'error-text') + .attr('x', 1240) + .attr('y', 250) + .attr('font-size', '150px') + .style('text-anchor', 'middle') + .text('Syntax error in graph'), + o + .append('text') + .attr('class', 'error-text') + .attr('x', 1050) + .attr('y', 400) + .attr('font-size', '100px') + .style('text-anchor', 'middle') + .text('mermaid version ' + t), + n.attr('height', 100), + n.attr('width', 400), + n.attr('viewBox', '768 0 512 512'); + } catch (e) { + i.logger.error('Error while rendering info diagram'), + i.logger.error(e.message); + } + }; + t.default = { setConf: s, draw: a }; + }, + './src/logger.js': + /*!***********************!*\ !*** ./src/logger.js ***! \***********************/ -/*! exports provided: LEVELS, logger, setLogLevel */function(e,t,n){"use strict";n.r(t),n.d(t,"LEVELS",(function(){return o})),n.d(t,"logger",(function(){return s})),n.d(t,"setLogLevel",(function(){return a}));var r=n(/*! moment-mini */"moment-mini"),i=n.n(r),o={debug:1,info:2,warn:3,error:4,fatal:5},s={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fatal";isNaN(e)&&(e=e.toLowerCase(),void 0!==o[e]&&(e=o[e])),s.trace=function(){},s.debug=function(){},s.info=function(){},s.warn=function(){},s.error=function(){},s.fatal=function(){},e<=o.fatal&&(s.fatal=console.error?console.error.bind(console,u("FATAL"),"color: orange"):console.log.bind(console,"",u("FATAL"))),e<=o.error&&(s.error=console.error?console.error.bind(console,u("ERROR"),"color: orange"):console.log.bind(console,"",u("ERROR"))),e<=o.warn&&(s.warn=console.warn?console.warn.bind(console,u("WARN"),"color: orange"):console.log.bind(console,"",u("WARN"))),e<=o.info&&(s.info=console.info?console.info.bind(console,u("INFO"),"color: lightblue"):console.log.bind(console,"",u("INFO"))),e<=o.debug&&(s.debug=console.debug?console.debug.bind(console,u("DEBUG"),"color: lightgreen"):console.log.bind(console,"",u("DEBUG")))},u=function(e){var t=i()().format("ss.SSS");return"%c".concat(t," : ").concat(e," : ")}},"./src/mermaid.js": -/*!************************!*\ + /*! exports provided: LEVELS, logger, setLogLevel */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'LEVELS', function () { + return o; + }), + n.d(t, 'logger', function () { + return s; + }), + n.d(t, 'setLogLevel', function () { + return a; + }); + var r = n(/*! moment-mini */ 'moment-mini'), + i = n.n(r), + o = { debug: 1, info: 2, warn: 3, error: 4, fatal: 5 }, + s = { + debug: function () {}, + info: function () {}, + warn: function () {}, + error: function () {}, + fatal: function () {}, + }, + a = function () { + var e = + arguments.length > 0 && void 0 !== arguments[0] + ? arguments[0] + : 'fatal'; + isNaN(e) && + ((e = e.toLowerCase()), void 0 !== o[e] && (e = o[e])), + (s.trace = function () {}), + (s.debug = function () {}), + (s.info = function () {}), + (s.warn = function () {}), + (s.error = function () {}), + (s.fatal = function () {}), + e <= o.fatal && + (s.fatal = console.error + ? console.error.bind( + console, + u('FATAL'), + 'color: orange' + ) + : console.log.bind(console, '', u('FATAL'))), + e <= o.error && + (s.error = console.error + ? console.error.bind( + console, + u('ERROR'), + 'color: orange' + ) + : console.log.bind(console, '', u('ERROR'))), + e <= o.warn && + (s.warn = console.warn + ? console.warn.bind(console, u('WARN'), 'color: orange') + : console.log.bind(console, '', u('WARN'))), + e <= o.info && + (s.info = console.info + ? console.info.bind( + console, + u('INFO'), + 'color: lightblue' + ) + : console.log.bind(console, '', u('INFO'))), + e <= o.debug && + (s.debug = console.debug + ? console.debug.bind( + console, + u('DEBUG'), + 'color: lightgreen' + ) + : console.log.bind(console, '', u('DEBUG'))); + }, + u = function (e) { + var t = i()().format('ss.SSS'); + return '%c'.concat(t, ' : ').concat(e, ' : '); + }; + }, + './src/mermaid.js': + /*!************************!*\ !*** ./src/mermaid.js ***! \************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! entity-decode/browser */"entity-decode/browser"),i=n.n(r),o=n(/*! ./logger */"./src/logger.js"),s=n(/*! ./mermaidAPI */"./src/mermaidAPI.js"),a=n(/*! ./utils */"./src/utils.js"),u=function(){l.startOnLoad?s.default.getConfig().startOnLoad&&l.init():void 0===l.startOnLoad&&(o.logger.debug("In start, no config"),s.default.getConfig().startOnLoad&&l.init())};"undefined"!=typeof document&& -/*! - * Wait for document loaded before starting the execution - */ -window.addEventListener("load",(function(){u()}),!1);var l={startOnLoad:!0,htmlLabels:!0,mermaidAPI:s.default,parse:s.default.parse,render:s.default.render,init:function(){var e,t,n=this,r=s.default.getConfig();arguments.length>=2?( -/*! sequence config was passed as #1 */ -void 0!==arguments[0]&&(l.sequenceConfig=arguments[0]),e=arguments[1]):e=arguments[0],"function"==typeof arguments[arguments.length-1]?(t=arguments[arguments.length-1],o.logger.debug("Callback function found")):void 0!==r.mermaid&&("function"==typeof r.mermaid.callback?(t=r.mermaid.callback,o.logger.debug("Callback function found")):o.logger.debug("No Callback function found")),e=void 0===e?document.querySelectorAll(".mermaid"):"string"==typeof e?document.querySelectorAll(e):e instanceof window.Node?[e]:e,o.logger.debug("Start On Load before: "+l.startOnLoad),void 0!==l.startOnLoad&&(o.logger.debug("Start On Load inner: "+l.startOnLoad),s.default.updateSiteConfig({startOnLoad:l.startOnLoad})),void 0!==l.ganttConfig&&s.default.updateSiteConfig({gantt:l.ganttConfig});for(var u,c=a.default.initIdGeneratior(r.deterministicIds,r.deterministicIDSeed).next,d=function(r){var l=e[r]; -/*! Check if previously processed */if(l.getAttribute("data-processed"))return"continue";l.setAttribute("data-processed",!0);var d="mermaid-".concat(c());u=l.innerHTML,u=i()(u).trim().replace(//gi,"
");var h=a.default.detectInit(u);h&&o.logger.debug("Detected early reinit: ",h);try{s.default.render(d,u,(function(e,n){l.innerHTML=e,void 0!==t&&t(d),n&&n(l)}),l)}catch(e){o.logger.warn("Syntax Error rendering"),o.logger.warn(e),n.parseError&&n.parseError(e)}},h=0;h= 2 + ? /*! sequence config was passed as #1 */ + (void 0 !== arguments[0] && + (l.sequenceConfig = arguments[0]), + (e = arguments[1])) + : (e = arguments[0]), + 'function' == typeof arguments[arguments.length - 1] + ? ((t = arguments[arguments.length - 1]), + o.logger.debug('Callback function found')) + : void 0 !== r.mermaid && + ('function' == typeof r.mermaid.callback + ? ((t = r.mermaid.callback), + o.logger.debug('Callback function found')) + : o.logger.debug('No Callback function found')), + (e = + void 0 === e + ? document.querySelectorAll('.mermaid') + : 'string' == typeof e + ? document.querySelectorAll(e) + : e instanceof window.Node + ? [e] + : e), + o.logger.debug('Start On Load before: ' + l.startOnLoad), + void 0 !== l.startOnLoad && + (o.logger.debug('Start On Load inner: ' + l.startOnLoad), + s.default.updateSiteConfig({ + startOnLoad: l.startOnLoad, + })), + void 0 !== l.ganttConfig && + s.default.updateSiteConfig({ gantt: l.ganttConfig }); + for ( + var u, + c = a.default.initIdGeneratior( + r.deterministicIds, + r.deterministicIDSeed + ).next, + d = function (r) { + var l = e[r]; + /*! Check if previously processed */ if ( + l.getAttribute('data-processed') + ) + return 'continue'; + l.setAttribute('data-processed', !0); + var d = 'mermaid-'.concat(c()); + (u = l.innerHTML), + (u = i()(u) + .trim() + .replace(//gi, '
')); + var h = a.default.detectInit(u); + h && o.logger.debug('Detected early reinit: ', h); + try { + s.default.render( + d, + u, + function (e, n) { + (l.innerHTML = e), + void 0 !== t && t(d), + n && n(l); + }, + l + ); + } catch (e) { + o.logger.warn('Syntax Error rendering'), + o.logger.warn(e), + n.parseError && n.parseError(e); + } + }, + h = 0; + h < e.length; + h++ + ) + d(h); + }, + initialize: function (e) { + void 0 !== e.mermaid && + (void 0 !== e.mermaid.startOnLoad && + (l.startOnLoad = e.mermaid.startOnLoad), + void 0 !== e.mermaid.htmlLabels && + (l.htmlLabels = e.mermaid.htmlLabels)), + s.default.initialize(e); + }, + contentLoaded: u, + }; + t.default = l; + }, + './src/mermaidAPI.js': + /*!***************************!*\ !*** ./src/mermaidAPI.js ***! \***************************/ -/*! exports provided: encodeEntities, decodeEntities, default */function(e,t,n){"use strict";n.r(t),n.d(t,"encodeEntities",(function(){return re})),n.d(t,"decodeEntities",(function(){return ie}));var r=n(/*! stylis */"stylis"),i=n.n(r),o=n(/*! d3 */"d3"),s=n(/*! ../package.json */"./package.json"),a=n(/*! ./logger */"./src/logger.js"),u=n(/*! ./utils */"./src/utils.js"),l=n(/*! ./diagrams/flowchart/flowRenderer */"./src/diagrams/flowchart/flowRenderer.js"),c=n(/*! ./diagrams/flowchart/flowRenderer-v2 */"./src/diagrams/flowchart/flowRenderer-v2.js"),d=n(/*! ./diagrams/flowchart/parser/flow */"./src/diagrams/flowchart/parser/flow.jison"),h=n.n(d),f=n(/*! ./diagrams/flowchart/flowDb */"./src/diagrams/flowchart/flowDb.js"),p=n(/*! ./diagrams/sequence/sequenceRenderer */"./src/diagrams/sequence/sequenceRenderer.js"),g=n(/*! ./diagrams/sequence/parser/sequenceDiagram */"./src/diagrams/sequence/parser/sequenceDiagram.jison"),m=n.n(g),_=n(/*! ./diagrams/sequence/sequenceDb */"./src/diagrams/sequence/sequenceDb.js"),y=n(/*! ./diagrams/gantt/ganttRenderer */"./src/diagrams/gantt/ganttRenderer.js"),v=n(/*! ./diagrams/gantt/parser/gantt */"./src/diagrams/gantt/parser/gantt.jison"),b=n.n(v),w=n(/*! ./diagrams/gantt/ganttDb */"./src/diagrams/gantt/ganttDb.js"),C=n(/*! ./diagrams/class/classRenderer */"./src/diagrams/class/classRenderer.js"),S=n(/*! ./diagrams/class/classRenderer-v2 */"./src/diagrams/class/classRenderer-v2.js"),x=n(/*! ./diagrams/class/parser/classDiagram */"./src/diagrams/class/parser/classDiagram.jison"),L=n.n(x),k=n(/*! ./diagrams/class/classDb */"./src/diagrams/class/classDb.js"),M=n(/*! ./diagrams/state/stateRenderer */"./src/diagrams/state/stateRenderer.js"),D=n(/*! ./diagrams/state/stateRenderer-v2 */"./src/diagrams/state/stateRenderer-v2.js"),E=n(/*! ./diagrams/state/parser/stateDiagram */"./src/diagrams/state/parser/stateDiagram.jison"),T=n.n(E),N=n(/*! ./diagrams/state/stateDb */"./src/diagrams/state/stateDb.js"),O=n(/*! ./diagrams/git/gitGraphRenderer */"./src/diagrams/git/gitGraphRenderer.js"),A=n(/*! ./diagrams/git/parser/gitGraph */"./src/diagrams/git/parser/gitGraph.jison"),I=n.n(A),P=n(/*! ./diagrams/git/gitGraphAst */"./src/diagrams/git/gitGraphAst.js"),R=n(/*! ./diagrams/info/infoRenderer */"./src/diagrams/info/infoRenderer.js"),F=n(/*! ./errorRenderer */"./src/errorRenderer.js"),Y=n(/*! ./diagrams/info/parser/info */"./src/diagrams/info/parser/info.jison"),j=n.n(Y),B=n(/*! ./diagrams/info/infoDb */"./src/diagrams/info/infoDb.js"),W=n(/*! ./diagrams/pie/pieRenderer */"./src/diagrams/pie/pieRenderer.js"),H=n(/*! ./diagrams/pie/parser/pie */"./src/diagrams/pie/parser/pie.jison"),V=n.n(H),z=n(/*! ./diagrams/pie/pieDb */"./src/diagrams/pie/pieDb.js"),U=n(/*! ./diagrams/er/erDb */"./src/diagrams/er/erDb.js"),q=n(/*! ./diagrams/er/parser/erDiagram */"./src/diagrams/er/parser/erDiagram.jison"),K=n.n(q),G=n(/*! ./diagrams/er/erRenderer */"./src/diagrams/er/erRenderer.js"),$=n(/*! ./diagrams/user-journey/parser/journey */"./src/diagrams/user-journey/parser/journey.jison"),Z=n.n($),X=n(/*! ./diagrams/user-journey/journeyDb */"./src/diagrams/user-journey/journeyDb.js"),J=n(/*! ./diagrams/user-journey/journeyRenderer */"./src/diagrams/user-journey/journeyRenderer.js"),Q=n(/*! ./config */"./src/config.js"),ee=n(/*! ./styles */"./src/styles.js"),te=n(/*! ./themes */"./src/themes/index.js");function ne(e){return(ne="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})(e)}var re=function(e){var t=e;return t=(t=(t=t.replace(/style.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/classDef.*:\S*#.*;/g,(function(e){return e.substring(0,e.length-1)}))).replace(/#\w+;/g,(function(e){var t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?"fl°°"+t+"¶ß":"fl°"+t+"¶ß"}))},ie=function(e){var t=e;return t=(t=(t=t.replace(/fl°°/g,(function(){return"&#"}))).replace(/fl°/g,(function(){return"&"}))).replace(/¶ß/g,(function(){return";"}))},oe={},se=function(e,t,n){switch(a.logger.debug("Directive type=".concat(t.type," with args:"),t.args),t.type){case"init":case"initialize":["config"].forEach((function(e){void 0!==t.args[e]&&("flowchart-v2"===n&&(n="flowchart"),t.args[n]=t.args[e],delete t.args[e])})),t.args,Q.addDirective(t.args);break;case"wrap":case"nowrap":e&&e.setWrap&&e.setWrap("wrap"===t.type);break;default:a.logger.warn("Unhandled directive: source: '%%{".concat(t.type,": ").concat(JSON.stringify(t.args?t.args:{}),"}%%"),t)}};function ae(e){O.default.setConf(e.git),l.default.setConf(e.flowchart),c.default.setConf(e.flowchart),void 0!==e.sequenceDiagram&&p.default.setConf(Object(u.assignWithDepth)(e.sequence,e.sequenceDiagram)),p.default.setConf(e.sequence),y.default.setConf(e.gantt),C.default.setConf(e.class),M.default.setConf(e.state),D.default.setConf(e.state),R.default.setConf(e.class),W.default.setConf(e.class),G.default.setConf(e.er),J.default.setConf(e.journey),F.default.setConf(e.class)}function ue(){}var le=Object.freeze({render:function(e,t,n,r){Q.reset();var d=t,h=u.default.detectInit(d);h&&Q.addDirective(h);var g=Q.getConfig();if(t.length>g.maxTextSize&&(d="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa"),void 0!==r)r.innerHTML="",Object(o.select)(r).append("div").attr("id","d"+e).attr("style","font-family: "+g.fontFamily).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g");else{var m=document.getElementById(e);m&&m.remove();var _=document.querySelector("#d"+e);_&&_.remove(),Object(o.select)("body").append("div").attr("id","d"+e).append("svg").attr("id",e).attr("width","100%").attr("xmlns","http://www.w3.org/2000/svg").append("g")}window.txt=d,d=re(d);var v=Object(o.select)("#d"+e).node(),b=u.default.detectType(d),x=v.firstChild,L=x.firstChild,E="";if(void 0!==g.themeCSS&&(E+="\n".concat(g.themeCSS)),void 0!==g.fontFamily&&(E+="\n:root { --mermaid-font-family: ".concat(g.fontFamily,"}")),void 0!==g.altFontFamily&&(E+="\n:root { --mermaid-alt-font-family: ".concat(g.altFontFamily,"}")),"flowchart"===b||"flowchart-v2"===b||"graph"===b){var T=l.default.getClasses(d);for(var N in T)E+="\n.".concat(N," > * { ").concat(T[N].styles.join(" !important; ")," !important; }"),T[N].textStyles&&(E+="\n.".concat(N," tspan { ").concat(T[N].textStyles.join(" !important; ")," !important; }"))}var A=(new i.a)("#".concat(e),Object(ee.default)(b,E,g.themeVariables)),I=document.createElement("style");I.innerHTML=A,x.insertBefore(I,L);try{switch(b){case"git":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,O.default.setConf(g.git),O.default.draw(d,e,!1);break;case"flowchart":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,l.default.setConf(g.flowchart),l.default.draw(d,e,!1);break;case"flowchart-v2":g.flowchart.arrowMarkerAbsolute=g.arrowMarkerAbsolute,c.default.setConf(g.flowchart),c.default.draw(d,e,!1);break;case"sequence":g.sequence.arrowMarkerAbsolute=g.arrowMarkerAbsolute,g.sequenceDiagram?(p.default.setConf(Object.assign(g.sequence,g.sequenceDiagram)),console.error("`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.")):p.default.setConf(g.sequence),p.default.draw(d,e);break;case"gantt":g.gantt.arrowMarkerAbsolute=g.arrowMarkerAbsolute,y.default.setConf(g.gantt),y.default.draw(d,e);break;case"class":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,C.default.setConf(g.class),C.default.draw(d,e);break;case"classDiagram":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,S.default.setConf(g.class),S.default.draw(d,e);break;case"state":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,M.default.setConf(g.state),M.default.draw(d,e);break;case"stateDiagram":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,D.default.setConf(g.state),D.default.draw(d,e);break;case"info":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,R.default.setConf(g.class),R.default.draw(d,e,s.version);break;case"pie":g.class.arrowMarkerAbsolute=g.arrowMarkerAbsolute,W.default.setConf(g.pie),W.default.draw(d,e,s.version);break;case"er":G.default.setConf(g.er),G.default.draw(d,e,s.version);break;case"journey":J.default.setConf(g.journey),J.default.draw(d,e,s.version)}}catch(t){throw F.default.draw(e,s.version),t}Object(o.select)('[id="'.concat(e,'"]')).selectAll("foreignobject > *").attr("xmlns","http://www.w3.org/1999/xhtml");var P=Object(o.select)("#d"+e).node().innerHTML;if(a.logger.debug("cnf.arrowMarkerAbsolute",g.arrowMarkerAbsolute),g.arrowMarkerAbsolute&&"false"!==g.arrowMarkerAbsolute||(P=P.replace(/marker-end="url\(.*?#/g,'marker-end="url(#',"g")),P=ie(P),void 0!==n)switch(b){case"flowchart":case"flowchart-v2":n(P,f.default.bindFunctions);break;case"gantt":n(P,w.default.bindFunctions);break;case"class":case"classDiagram":n(P,k.default.bindFunctions);break;default:n(P)}else a.logger.debug("CB = undefined!");var Y=Object(o.select)("#d"+e).node();return null!==Y&&"function"==typeof Y.remove&&Object(o.select)("#d"+e).node().remove(),P},parse:function(e){var t=u.default.detectInit(e);t&&a.logger.debug("reinit ",t);var n,r=u.default.detectType(e);switch(a.logger.debug("Type "+r),r){case"git":(n=I.a).parser.yy=P.default;break;case"flowchart":case"flowchart-v2":f.default.clear(),(n=h.a).parser.yy=f.default;break;case"sequence":(n=m.a).parser.yy=_.default;break;case"gantt":(n=b.a).parser.yy=w.default;break;case"class":case"classDiagram":(n=L.a).parser.yy=k.default;break;case"state":case"stateDiagram":(n=T.a).parser.yy=N.default;break;case"info":a.logger.debug("info info info"),(n=j.a).parser.yy=B.default;break;case"pie":a.logger.debug("pie"),(n=V.a).parser.yy=z.default;break;case"er":a.logger.debug("er"),(n=K.a).parser.yy=U.default;break;case"journey":a.logger.debug("Journey"),(n=Z.a).parser.yy=X.default}return n.parser.yy.graphType=r,n.parser.yy.parseError=function(e,t){throw{str:e,hash:t}},n.parse(e),n},parseDirective:function(e,t,n,r){try{if(void 0!==t)switch(t=t.trim(),n){case"open_directive":oe={};break;case"type_directive":oe.type=t.toLowerCase();break;case"arg_directive":oe.args=JSON.parse(t);break;case"close_directive":se(e,oe,r),oe=null}}catch(e){a.logger.error("Error while rendering sequenceDiagram directive: ".concat(t," jison context: ").concat(n)),a.logger.error(e.message)}},initialize:function(e){e&&e.fontFamily&&(e.themeVariables&&e.themeVariables.fontFamily||(e.themeVariables={fontFamily:e.fontFamily})),Q.setSiteConfigDelta(e),e&&e.theme&&te.default[e.theme]?e.themeVariables=te.default[e.theme].getThemeVariables(e.themeVariables):e&&(e.themeVariables=te.default.default.getThemeVariables(e.themeVariables));var t="object"===ne(e)?Q.setSiteConfig(e):Q.getSiteConfig();ae(t),Object(a.setLogLevel)(t.logLevel)},reinitialize:ue,getConfig:Q.getConfig,setConfig:Q.setConfig,getSiteConfig:Q.getSiteConfig,updateSiteConfig:Q.updateSiteConfig,reset:function(){Q.reset()},globalReset:function(){Q.reset(Q.defaultConfig),ae(Q.getConfig())},defaultConfig:Q.defaultConfig});Object(a.setLogLevel)(Q.getConfig().logLevel),Q.reset(Q.getConfig()),t.default=le},"./src/styles.js": -/*!***********************!*\ + /*! exports provided: encodeEntities, decodeEntities, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'encodeEntities', function () { + return re; + }), + n.d(t, 'decodeEntities', function () { + return ie; + }); + var r = n(/*! stylis */ 'stylis'), + i = n.n(r), + o = n(/*! d3 */ 'd3'), + s = n(/*! ../package.json */ './package.json'), + a = n(/*! ./logger */ './src/logger.js'), + u = n(/*! ./utils */ './src/utils.js'), + l = n( + /*! ./diagrams/flowchart/flowRenderer */ './src/diagrams/flowchart/flowRenderer.js' + ), + c = n( + /*! ./diagrams/flowchart/flowRenderer-v2 */ './src/diagrams/flowchart/flowRenderer-v2.js' + ), + d = n( + /*! ./diagrams/flowchart/parser/flow */ './src/diagrams/flowchart/parser/flow.jison' + ), + h = n.n(d), + f = n( + /*! ./diagrams/flowchart/flowDb */ './src/diagrams/flowchart/flowDb.js' + ), + p = n( + /*! ./diagrams/sequence/sequenceRenderer */ './src/diagrams/sequence/sequenceRenderer.js' + ), + g = n( + /*! ./diagrams/sequence/parser/sequenceDiagram */ './src/diagrams/sequence/parser/sequenceDiagram.jison' + ), + m = n.n(g), + _ = n( + /*! ./diagrams/sequence/sequenceDb */ './src/diagrams/sequence/sequenceDb.js' + ), + y = n( + /*! ./diagrams/gantt/ganttRenderer */ './src/diagrams/gantt/ganttRenderer.js' + ), + v = n( + /*! ./diagrams/gantt/parser/gantt */ './src/diagrams/gantt/parser/gantt.jison' + ), + b = n.n(v), + w = n( + /*! ./diagrams/gantt/ganttDb */ './src/diagrams/gantt/ganttDb.js' + ), + C = n( + /*! ./diagrams/class/classRenderer */ './src/diagrams/class/classRenderer.js' + ), + S = n( + /*! ./diagrams/class/classRenderer-v2 */ './src/diagrams/class/classRenderer-v2.js' + ), + x = n( + /*! ./diagrams/class/parser/classDiagram */ './src/diagrams/class/parser/classDiagram.jison' + ), + L = n.n(x), + k = n( + /*! ./diagrams/class/classDb */ './src/diagrams/class/classDb.js' + ), + M = n( + /*! ./diagrams/state/stateRenderer */ './src/diagrams/state/stateRenderer.js' + ), + D = n( + /*! ./diagrams/state/stateRenderer-v2 */ './src/diagrams/state/stateRenderer-v2.js' + ), + E = n( + /*! ./diagrams/state/parser/stateDiagram */ './src/diagrams/state/parser/stateDiagram.jison' + ), + T = n.n(E), + N = n( + /*! ./diagrams/state/stateDb */ './src/diagrams/state/stateDb.js' + ), + O = n( + /*! ./diagrams/git/gitGraphRenderer */ './src/diagrams/git/gitGraphRenderer.js' + ), + A = n( + /*! ./diagrams/git/parser/gitGraph */ './src/diagrams/git/parser/gitGraph.jison' + ), + I = n.n(A), + P = n( + /*! ./diagrams/git/gitGraphAst */ './src/diagrams/git/gitGraphAst.js' + ), + R = n( + /*! ./diagrams/info/infoRenderer */ './src/diagrams/info/infoRenderer.js' + ), + F = n(/*! ./errorRenderer */ './src/errorRenderer.js'), + Y = n( + /*! ./diagrams/info/parser/info */ './src/diagrams/info/parser/info.jison' + ), + j = n.n(Y), + B = n( + /*! ./diagrams/info/infoDb */ './src/diagrams/info/infoDb.js' + ), + W = n( + /*! ./diagrams/pie/pieRenderer */ './src/diagrams/pie/pieRenderer.js' + ), + H = n( + /*! ./diagrams/pie/parser/pie */ './src/diagrams/pie/parser/pie.jison' + ), + V = n.n(H), + z = n( + /*! ./diagrams/pie/pieDb */ './src/diagrams/pie/pieDb.js' + ), + U = n(/*! ./diagrams/er/erDb */ './src/diagrams/er/erDb.js'), + q = n( + /*! ./diagrams/er/parser/erDiagram */ './src/diagrams/er/parser/erDiagram.jison' + ), + K = n.n(q), + G = n( + /*! ./diagrams/er/erRenderer */ './src/diagrams/er/erRenderer.js' + ), + $ = n( + /*! ./diagrams/user-journey/parser/journey */ './src/diagrams/user-journey/parser/journey.jison' + ), + Z = n.n($), + X = n( + /*! ./diagrams/user-journey/journeyDb */ './src/diagrams/user-journey/journeyDb.js' + ), + J = n( + /*! ./diagrams/user-journey/journeyRenderer */ './src/diagrams/user-journey/journeyRenderer.js' + ), + Q = n(/*! ./config */ './src/config.js'), + ee = n(/*! ./styles */ './src/styles.js'), + te = n(/*! ./themes */ './src/themes/index.js'); + function ne(e) { + return (ne = + '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; + })(e); + } + var re = function (e) { + var t = e; + return (t = (t = (t = t.replace( + /style.*:\S*#.*;/g, + function (e) { + return e.substring(0, e.length - 1); + } + )).replace(/classDef.*:\S*#.*;/g, function (e) { + return e.substring(0, e.length - 1); + })).replace(/#\w+;/g, function (e) { + var t = e.substring(1, e.length - 1); + return /^\+?\d+$/.test(t) + ? 'fl°°' + t + '¶ß' + : 'fl°' + t + '¶ß'; + })); + }, + ie = function (e) { + var t = e; + return (t = (t = (t = t.replace(/fl°°/g, function () { + return '&#'; + })).replace(/fl°/g, function () { + return '&'; + })).replace(/¶ß/g, function () { + return ';'; + })); + }, + oe = {}, + se = function (e, t, n) { + switch ( + (a.logger.debug( + 'Directive type='.concat(t.type, ' with args:'), + t.args + ), + t.type) + ) { + case 'init': + case 'initialize': + ['config'].forEach(function (e) { + void 0 !== t.args[e] && + ('flowchart-v2' === n && (n = 'flowchart'), + (t.args[n] = t.args[e]), + delete t.args[e]); + }), + t.args, + Q.addDirective(t.args); + break; + case 'wrap': + case 'nowrap': + e && e.setWrap && e.setWrap('wrap' === t.type); + break; + default: + a.logger.warn( + "Unhandled directive: source: '%%{" + .concat(t.type, ': ') + .concat(JSON.stringify(t.args ? t.args : {}), '}%%'), + t + ); + } + }; + function ae(e) { + O.default.setConf(e.git), + l.default.setConf(e.flowchart), + c.default.setConf(e.flowchart), + void 0 !== e.sequenceDiagram && + p.default.setConf( + Object(u.assignWithDepth)(e.sequence, e.sequenceDiagram) + ), + p.default.setConf(e.sequence), + y.default.setConf(e.gantt), + C.default.setConf(e.class), + M.default.setConf(e.state), + D.default.setConf(e.state), + R.default.setConf(e.class), + W.default.setConf(e.class), + G.default.setConf(e.er), + J.default.setConf(e.journey), + F.default.setConf(e.class); + } + function ue() {} + var le = Object.freeze({ + render: function (e, t, n, r) { + Q.reset(); + var d = t, + h = u.default.detectInit(d); + h && Q.addDirective(h); + var g = Q.getConfig(); + if ( + (t.length > g.maxTextSize && + (d = + 'graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa'), + void 0 !== r) + ) + (r.innerHTML = ''), + Object(o.select)(r) + .append('div') + .attr('id', 'd' + e) + .attr('style', 'font-family: ' + g.fontFamily) + .append('svg') + .attr('id', e) + .attr('width', '100%') + .attr('xmlns', 'http://www.w3.org/2000/svg') + .append('g'); + else { + var m = document.getElementById(e); + m && m.remove(); + var _ = document.querySelector('#d' + e); + _ && _.remove(), + Object(o.select)('body') + .append('div') + .attr('id', 'd' + e) + .append('svg') + .attr('id', e) + .attr('width', '100%') + .attr('xmlns', 'http://www.w3.org/2000/svg') + .append('g'); + } + (window.txt = d), (d = re(d)); + var v = Object(o.select)('#d' + e).node(), + b = u.default.detectType(d), + x = v.firstChild, + L = x.firstChild, + E = ''; + if ( + (void 0 !== g.themeCSS && (E += '\n'.concat(g.themeCSS)), + void 0 !== g.fontFamily && + (E += '\n:root { --mermaid-font-family: '.concat( + g.fontFamily, + '}' + )), + void 0 !== g.altFontFamily && + (E += '\n:root { --mermaid-alt-font-family: '.concat( + g.altFontFamily, + '}' + )), + 'flowchart' === b || 'flowchart-v2' === b || 'graph' === b) + ) { + var T = l.default.getClasses(d); + for (var N in T) + (E += '\n.' + .concat(N, ' > * { ') + .concat( + T[N].styles.join(' !important; '), + ' !important; }' + )), + T[N].textStyles && + (E += '\n.' + .concat(N, ' tspan { ') + .concat( + T[N].textStyles.join(' !important; '), + ' !important; }' + )); + } + var A = new i.a()( + '#'.concat(e), + Object(ee.default)(b, E, g.themeVariables) + ), + I = document.createElement('style'); + (I.innerHTML = A), x.insertBefore(I, L); + try { + switch (b) { + case 'git': + (g.flowchart.arrowMarkerAbsolute = + g.arrowMarkerAbsolute), + O.default.setConf(g.git), + O.default.draw(d, e, !1); + break; + case 'flowchart': + (g.flowchart.arrowMarkerAbsolute = + g.arrowMarkerAbsolute), + l.default.setConf(g.flowchart), + l.default.draw(d, e, !1); + break; + case 'flowchart-v2': + (g.flowchart.arrowMarkerAbsolute = + g.arrowMarkerAbsolute), + c.default.setConf(g.flowchart), + c.default.draw(d, e, !1); + break; + case 'sequence': + (g.sequence.arrowMarkerAbsolute = + g.arrowMarkerAbsolute), + g.sequenceDiagram + ? (p.default.setConf( + Object.assign(g.sequence, g.sequenceDiagram) + ), + console.error( + '`mermaid config.sequenceDiagram` has been renamed to `config.sequence`. Please update your mermaid config.' + )) + : p.default.setConf(g.sequence), + p.default.draw(d, e); + break; + case 'gantt': + (g.gantt.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + y.default.setConf(g.gantt), + y.default.draw(d, e); + break; + case 'class': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + C.default.setConf(g.class), + C.default.draw(d, e); + break; + case 'classDiagram': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + S.default.setConf(g.class), + S.default.draw(d, e); + break; + case 'state': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + M.default.setConf(g.state), + M.default.draw(d, e); + break; + case 'stateDiagram': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + D.default.setConf(g.state), + D.default.draw(d, e); + break; + case 'info': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + R.default.setConf(g.class), + R.default.draw(d, e, s.version); + break; + case 'pie': + (g.class.arrowMarkerAbsolute = g.arrowMarkerAbsolute), + W.default.setConf(g.pie), + W.default.draw(d, e, s.version); + break; + case 'er': + G.default.setConf(g.er), + G.default.draw(d, e, s.version); + break; + case 'journey': + J.default.setConf(g.journey), + J.default.draw(d, e, s.version); + } + } catch (t) { + throw (F.default.draw(e, s.version), t); + } + Object(o.select)('[id="'.concat(e, '"]')) + .selectAll('foreignobject > *') + .attr('xmlns', 'http://www.w3.org/1999/xhtml'); + var P = Object(o.select)('#d' + e).node().innerHTML; + if ( + (a.logger.debug( + 'cnf.arrowMarkerAbsolute', + g.arrowMarkerAbsolute + ), + (g.arrowMarkerAbsolute && + 'false' !== g.arrowMarkerAbsolute) || + (P = P.replace( + /marker-end="url\(.*?#/g, + 'marker-end="url(#', + 'g' + )), + (P = ie(P)), + void 0 !== n) + ) + switch (b) { + case 'flowchart': + case 'flowchart-v2': + n(P, f.default.bindFunctions); + break; + case 'gantt': + n(P, w.default.bindFunctions); + break; + case 'class': + case 'classDiagram': + n(P, k.default.bindFunctions); + break; + default: + n(P); + } + else a.logger.debug('CB = undefined!'); + var Y = Object(o.select)('#d' + e).node(); + return ( + null !== Y && + 'function' == typeof Y.remove && + Object(o.select)('#d' + e) + .node() + .remove(), + P + ); + }, + parse: function (e) { + var t = u.default.detectInit(e); + t && a.logger.debug('reinit ', t); + var n, + r = u.default.detectType(e); + switch ((a.logger.debug('Type ' + r), r)) { + case 'git': + (n = I.a).parser.yy = P.default; + break; + case 'flowchart': + case 'flowchart-v2': + f.default.clear(), ((n = h.a).parser.yy = f.default); + break; + case 'sequence': + (n = m.a).parser.yy = _.default; + break; + case 'gantt': + (n = b.a).parser.yy = w.default; + break; + case 'class': + case 'classDiagram': + (n = L.a).parser.yy = k.default; + break; + case 'state': + case 'stateDiagram': + (n = T.a).parser.yy = N.default; + break; + case 'info': + a.logger.debug('info info info'), + ((n = j.a).parser.yy = B.default); + break; + case 'pie': + a.logger.debug('pie'), ((n = V.a).parser.yy = z.default); + break; + case 'er': + a.logger.debug('er'), ((n = K.a).parser.yy = U.default); + break; + case 'journey': + a.logger.debug('Journey'), + ((n = Z.a).parser.yy = X.default); + } + return ( + (n.parser.yy.graphType = r), + (n.parser.yy.parseError = function (e, t) { + throw { str: e, hash: t }; + }), + n.parse(e), + n + ); + }, + parseDirective: function (e, t, n, r) { + try { + if (void 0 !== t) + switch (((t = t.trim()), n)) { + case 'open_directive': + oe = {}; + break; + case 'type_directive': + oe.type = t.toLowerCase(); + break; + case 'arg_directive': + oe.args = JSON.parse(t); + break; + case 'close_directive': + se(e, oe, r), (oe = null); + } + } catch (e) { + a.logger.error( + 'Error while rendering sequenceDiagram directive: ' + .concat(t, ' jison context: ') + .concat(n) + ), + a.logger.error(e.message); + } + }, + initialize: function (e) { + e && + e.fontFamily && + ((e.themeVariables && e.themeVariables.fontFamily) || + (e.themeVariables = { fontFamily: e.fontFamily })), + Q.setSiteConfigDelta(e), + e && e.theme && te.default[e.theme] + ? (e.themeVariables = te.default[ + e.theme + ].getThemeVariables(e.themeVariables)) + : e && + (e.themeVariables = te.default.default.getThemeVariables( + e.themeVariables + )); + var t = + 'object' === ne(e) ? Q.setSiteConfig(e) : Q.getSiteConfig(); + ae(t), Object(a.setLogLevel)(t.logLevel); + }, + reinitialize: ue, + getConfig: Q.getConfig, + setConfig: Q.setConfig, + getSiteConfig: Q.getSiteConfig, + updateSiteConfig: Q.updateSiteConfig, + reset: function () { + Q.reset(); + }, + globalReset: function () { + Q.reset(Q.defaultConfig), ae(Q.getConfig()); + }, + defaultConfig: Q.defaultConfig, + }); + Object(a.setLogLevel)(Q.getConfig().logLevel), + Q.reset(Q.getConfig()), + (t.default = le); + }, + './src/styles.js': + /*!***********************!*\ !*** ./src/styles.js ***! \***********************/ -/*! exports provided: calcThemeVariables, default */function(e,t,n){"use strict";n.r(t),n.d(t,"calcThemeVariables",(function(){return p}));var r=n(/*! ./diagrams/class/styles */"./src/diagrams/class/styles.js"),i=n(/*! ./diagrams/er/styles */"./src/diagrams/er/styles.js"),o=n(/*! ./diagrams/flowchart/styles */"./src/diagrams/flowchart/styles.js"),s=n(/*! ./diagrams/gantt/styles */"./src/diagrams/gantt/styles.js"),a=n(/*! ./diagrams/git/styles */"./src/diagrams/git/styles.js"),u=n(/*! ./diagrams/info/styles */"./src/diagrams/info/styles.js"),l=n(/*! ./diagrams/pie/styles */"./src/diagrams/pie/styles.js"),c=n(/*! ./diagrams/sequence/styles */"./src/diagrams/sequence/styles.js"),d=n(/*! ./diagrams/state/styles */"./src/diagrams/state/styles.js"),h=n(/*! ./diagrams/user-journey/styles */"./src/diagrams/user-journey/styles.js"),f={flowchart:o.default,"flowchart-v2":o.default,sequence:c.default,gantt:s.default,classDiagram:r.default,"classDiagram-v2":r.default,class:r.default,stateDiagram:d.default,state:d.default,git:a.default,info:u.default,pie:l.default,er:i.default,journey:h.default},p=function(e,t){return e.calcColors(t)};t.default=function(e,t,n){return" {\n font-family: ".concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n fill: ").concat(n.textColor,"\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ").concat(n.errorBkgColor,";\n }\n .error-text {\n fill: ").concat(n.errorTextColor,";\n stroke: ").concat(n.errorTextColor,";\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ").concat(n.lineColor,";\n }\n .marker.cross {\n stroke: ").concat(n.lineColor,";\n }\n\n svg {\n font-family: ").concat(n.fontFamily,";\n font-size: ").concat(n.fontSize,";\n }\n\n ").concat(f[e](n),"\n\n ").concat(t,"\n\n ").concat(e," { fill: apa;}\n")}},"./src/themes/index.js": -/*!*****************************!*\ + /*! exports provided: calcThemeVariables, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'calcThemeVariables', function () { + return p; + }); + var r = n( + /*! ./diagrams/class/styles */ './src/diagrams/class/styles.js' + ), + i = n( + /*! ./diagrams/er/styles */ './src/diagrams/er/styles.js' + ), + o = n( + /*! ./diagrams/flowchart/styles */ './src/diagrams/flowchart/styles.js' + ), + s = n( + /*! ./diagrams/gantt/styles */ './src/diagrams/gantt/styles.js' + ), + a = n( + /*! ./diagrams/git/styles */ './src/diagrams/git/styles.js' + ), + u = n( + /*! ./diagrams/info/styles */ './src/diagrams/info/styles.js' + ), + l = n( + /*! ./diagrams/pie/styles */ './src/diagrams/pie/styles.js' + ), + c = n( + /*! ./diagrams/sequence/styles */ './src/diagrams/sequence/styles.js' + ), + d = n( + /*! ./diagrams/state/styles */ './src/diagrams/state/styles.js' + ), + h = n( + /*! ./diagrams/user-journey/styles */ './src/diagrams/user-journey/styles.js' + ), + f = { + flowchart: o.default, + 'flowchart-v2': o.default, + sequence: c.default, + gantt: s.default, + classDiagram: r.default, + 'classDiagram-v2': r.default, + class: r.default, + stateDiagram: d.default, + state: d.default, + git: a.default, + info: u.default, + pie: l.default, + er: i.default, + journey: h.default, + }, + p = function (e, t) { + return e.calcColors(t); + }; + t.default = function (e, t, n) { + return ' {\n font-family: ' + .concat(n.fontFamily, ';\n font-size: ') + .concat(n.fontSize, ';\n fill: ') + .concat( + n.textColor, + '\n }\n\n /* Classes common for multiple diagrams */\n\n .error-icon {\n fill: ' + ) + .concat( + n.errorBkgColor, + ';\n }\n .error-text {\n fill: ' + ) + .concat(n.errorTextColor, ';\n stroke: ') + .concat( + n.errorTextColor, + ';\n }\n\n .edge-thickness-normal {\n stroke-width: 2px;\n }\n .edge-thickness-thick {\n stroke-width: 3.5px\n }\n .edge-pattern-solid {\n stroke-dasharray: 0;\n }\n\n .edge-pattern-dashed{\n stroke-dasharray: 3;\n }\n .edge-pattern-dotted {\n stroke-dasharray: 2;\n }\n\n .marker {\n fill: ' + ) + .concat( + n.lineColor, + ';\n }\n .marker.cross {\n stroke: ' + ) + .concat(n.lineColor, ';\n }\n\n svg {\n font-family: ') + .concat(n.fontFamily, ';\n font-size: ') + .concat(n.fontSize, ';\n }\n\n ') + .concat(f[e](n), '\n\n ') + .concat(t, '\n\n ') + .concat(e, ' { fill: apa;}\n'); + }; + }, + './src/themes/index.js': + /*!*****************************!*\ !*** ./src/themes/index.js ***! \*****************************/ -/*! exports provided: default */function(e,t,n){"use strict";n.r(t);var r=n(/*! ./theme-base */"./src/themes/theme-base.js"),i=n(/*! ./theme-dark */"./src/themes/theme-dark.js"),o=n(/*! ./theme-default */"./src/themes/theme-default.js"),s=n(/*! ./theme-forest */"./src/themes/theme-forest.js"),a=n(/*! ./theme-neutral */"./src/themes/theme-neutral.js");t.default={base:{getThemeVariables:r.getThemeVariables},dark:{getThemeVariables:i.getThemeVariables},default:{getThemeVariables:o.getThemeVariables},forest:{getThemeVariables:s.getThemeVariables},neutral:{getThemeVariables:a.getThemeVariables}}},"./src/themes/theme-base.js": -/*!**********************************!*\ + /*! exports provided: default */ function (e, t, n) { + 'use strict'; + n.r(t); + var r = n(/*! ./theme-base */ './src/themes/theme-base.js'), + i = n(/*! ./theme-dark */ './src/themes/theme-dark.js'), + o = n(/*! ./theme-default */ './src/themes/theme-default.js'), + s = n(/*! ./theme-forest */ './src/themes/theme-forest.js'), + a = n(/*! ./theme-neutral */ './src/themes/theme-neutral.js'); + t.default = { + base: { getThemeVariables: r.getThemeVariables }, + dark: { getThemeVariables: i.getThemeVariables }, + default: { getThemeVariables: o.getThemeVariables }, + forest: { getThemeVariables: s.getThemeVariables }, + neutral: { getThemeVariables: a.getThemeVariables }, + }; + }, + './src/themes/theme-base.js': + /*!**********************************!*\ !*** ./src/themes/theme-base.js ***! \**********************************/ -/*! exports provided: getThemeVariables */function(e,t,n){"use strict";n.r(t),n.d(t,"getThemeVariables",(function(){return u}));var r=n(/*! khroma */"khroma"),i=n(/*! ./theme-helpers */"./src/themes/theme-helpers.js");function o(e){return(o="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})(e)}function s(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null;try{var n=new RegExp("[%]{2}(?![{]".concat(h.source,")(?=[}][%]{2}).*\n"),"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),s.logger.debug("Detecting diagram directive".concat(null!==t?" type:"+t:""," based on the text:").concat(e));for(var r,i=[];null!==(r=d.exec(e));)if(r.index===d.lastIndex&&d.lastIndex++,r&&!t||t&&r[1]&&r[1].match(t)||t&&r[2]&&r[2].match(t)){var o=r[1]?r[1]:r[2],a=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:o,args:a})}return 0===i.length&&i.push({type:e,args:null}),1===i.length?i[0]:i}catch(n){return s.logger.error("ERROR: ".concat(n.message," - Unable to parse directive").concat(null!==t?" type:"+t:""," based on the text:").concat(e)),{type:null,args:null}}},m=function(e){return e=e.replace(d,"").replace(f,"\n"),s.logger.debug("Detecting diagram type based on the text "+e),e.match(/^\s*sequenceDiagram/)?"sequence":e.match(/^\s*gantt/)?"gantt":e.match(/^\s*classDiagram-v2/)?"classDiagram":e.match(/^\s*classDiagram/)?"class":e.match(/^\s*stateDiagram-v2/)?"stateDiagram":e.match(/^\s*stateDiagram/)?"state":e.match(/^\s*gitGraph/)?"git":e.match(/^\s*flowchart/)?"flowchart-v2":e.match(/^\s*info/)?"info":e.match(/^\s*pie/)?"pie":e.match(/^\s*erDiagram/)?"er":e.match(/^\s*journey/)?"journey":"flowchart"},_=function(e,t){var n={};return function(){for(var r=arguments.length,i=new Array(r),o=0;o1?a-1:0),l=1;l"},n),o.default.lineBreakRegex.test(e))return e;var r=e.split(" "),i=[],s="";return r.forEach((function(e,o){var a=A("".concat(e," "),n),u=A(s,n);if(a>t){var c=N(e,t,"-",n),d=c.hyphenatedStrings,h=c.remainingWord;i.push.apply(i,[s].concat(l(d))),s=h}else u+a>=t?(i.push(s),s=e):s=[s,e].filter(Boolean).join(" ");o+1===r.length&&i.push(s)})),i.filter((function(e){return""!==e})).join(n.joinWith)}),(function(e,t,n){return"".concat(e,"-").concat(t,"-").concat(n.fontSize,"-").concat(n.fontWeight,"-").concat(n.fontFamily,"-").concat(n.joinWith)})),N=_((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},r);var i=e.split(""),o=[],s="";return i.forEach((function(e,a){var u="".concat(s).concat(e);if(A(u,r)>=t){var l=a+1,c=i.length===l,d="".concat(u).concat(n);o.push(c?u:d),s=""}else s=u})),{hyphenatedStrings:o,remainingWord:s}}),(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=arguments.length>3?arguments[3]:void 0;return"".concat(e,"-").concat(t,"-").concat(n,"-").concat(r.fontSize,"-").concat(r.fontWeight,"-").concat(r.fontFamily)})),O=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:15},t),I(e,t).height},A=function(e,t){return t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),I(e,t).width},I=_((function(e,t){var n=t=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial"},t),r=n.fontSize,s=n.fontFamily,a=n.fontWeight;if(!e)return{width:0,height:0};var u=["sans-serif",s],l=e.split(o.default.lineBreakRegex),c=[],d=Object(i.select)("body");if(!d.remove)return{width:0,height:0,lineHeight:0};for(var h=d.append("svg"),f=0,p=u;fc[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1]}),(function(e,t){return"".concat(e,"-").concat(t.fontSize,"-").concat(t.fontWeight,"-").concat(t.fontFamily)})),P=function(e,t,n){var r=new Map;return r.set("height",e),n?(r.set("width","100%"),r.set("style","max-width: ".concat(t,"px;"))):r.set("width",t),r},R=function(e,t,n,r){!function(e,t){var n=!0,r=!1,i=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done);n=!0){var a=o.value;e.attr(a[0],a[1])}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}}(e,P(t,n,r))},F=function(e,t){return e?new(function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.count=t?t.length:0}var n,r,i;return n=e,(r=[{key:"next",value:function(){return this.count++}}])&&a(n.prototype,r),i&&a(n,i),e}()):{next:function(){return Date.now()}}};t.default={assignWithDepth:M,wrapLabel:T,calculateTextHeight:O,calculateTextWidth:A,calculateTextDimensions:I,calculateSvgSizeAttrs:P,configureSvgSize:R,detectInit:p,detectDirective:g,detectType:m,isSubstringInArray:y,interpolateToCurve:v,calcLabelPosition:function(e){return function(e){var t,n=0;e.forEach((function(e){n+=C(e,t),t=e}));var r=n/2,i=void 0;return t=void 0,e.forEach((function(e){if(t&&!i){var n=C(e,t);if(n=1&&(i={x:e.x,y:e.y}),o>0&&o<1&&(i={x:(1-o)*t.x+o*e.x,y:(1-o)*t.y+o*e.y})}}t=e})),i}(e)},calcCardinalityPosition:function(e,t,n){var r;s.logger.info("our points",t),t[0]!==n&&(t=t.reverse()),t.forEach((function(e){C(e,r),r=e}));var i,o=25;r=void 0,t.forEach((function(e){if(r&&!i){var t=C(e,r);if(t=1&&(i={x:e.x,y:e.y}),n>0&&n<1&&(i={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));var a=e?10:5,u=Math.atan2(t[0].y-i.y,t[0].x-i.x),l={x:0,y:0};return l.x=Math.sin(u)*a+(t[0].x+i.x)/2,l.y=-Math.cos(u)*a+(t[0].y+i.y)/2,l},calcTerminalLabelPosition:function(e,t,n){var r,i=JSON.parse(JSON.stringify(n));s.logger.info("our points",i),"start_left"!==t&&"start_right"!==t&&(i=i.reverse()),i.forEach((function(e){C(e,r),r=e}));var o,a=25;r=void 0,i.forEach((function(e){if(r&&!o){var t=C(e,r);if(t=1&&(o={x:e.x,y:e.y}),n>0&&n<1&&(o={x:(1-n)*r.x+n*e.x,y:(1-n)*r.y+n*e.y})}}r=e}));var u=10,l=Math.atan2(i[0].y-o.y,i[0].x-o.x),c={x:0,y:0};return c.x=Math.sin(l)*u+(i[0].x+o.x)/2,c.y=-Math.cos(l)*u+(i[0].y+o.y)/2,"start_left"===t&&(c.x=Math.sin(l+Math.PI)*u+(i[0].x+o.x)/2,c.y=-Math.cos(l+Math.PI)*u+(i[0].y+o.y)/2),"end_right"===t&&(c.x=Math.sin(l-Math.PI)*u+(i[0].x+o.x)/2-5,c.y=-Math.cos(l-Math.PI)*u+(i[0].y+o.y)/2-5),"end_left"===t&&(c.x=Math.sin(l)*u+(i[0].x+o.x)/2-5,c.y=-Math.cos(l)*u+(i[0].y+o.y)/2-5),c},formatUrl:b,getStylesFromArray:S,generateId:L,random:k,memoize:_,runFunc:w,initIdGeneratior:F}},"@braintree/sanitize-url": -/*!******************************************!*\ + /*! exports provided: detectInit, detectDirective, detectType, isSubstringInArray, interpolateToCurve, formatUrl, runFunc, getStylesFromArray, generateId, random, assignWithDepth, getTextObj, drawSimpleText, wrapLabel, calculateTextHeight, calculateTextWidth, calculateTextDimensions, calculateSvgSizeAttrs, configureSvgSize, initIdGeneratior, default */ function ( + e, + t, + n + ) { + 'use strict'; + n.r(t), + n.d(t, 'detectInit', function () { + return p; + }), + n.d(t, 'detectDirective', function () { + return g; + }), + n.d(t, 'detectType', function () { + return m; + }), + n.d(t, 'isSubstringInArray', function () { + return y; + }), + n.d(t, 'interpolateToCurve', function () { + return v; + }), + n.d(t, 'formatUrl', function () { + return b; + }), + n.d(t, 'runFunc', function () { + return w; + }), + n.d(t, 'getStylesFromArray', function () { + return S; + }), + n.d(t, 'generateId', function () { + return L; + }), + n.d(t, 'random', function () { + return k; + }), + n.d(t, 'assignWithDepth', function () { + return M; + }), + n.d(t, 'getTextObj', function () { + return D; + }), + n.d(t, 'drawSimpleText', function () { + return E; + }), + n.d(t, 'wrapLabel', function () { + return T; + }), + n.d(t, 'calculateTextHeight', function () { + return O; + }), + n.d(t, 'calculateTextWidth', function () { + return A; + }), + n.d(t, 'calculateTextDimensions', function () { + return I; + }), + n.d(t, 'calculateSvgSizeAttrs', function () { + return P; + }), + n.d(t, 'configureSvgSize', function () { + return R; + }), + n.d(t, 'initIdGeneratior', function () { + return F; + }); + var r = n( + /*! @braintree/sanitize-url */ '@braintree/sanitize-url' + ), + i = n(/*! d3 */ 'd3'), + o = n( + /*! ./diagrams/common/common */ './src/diagrams/common/common.js' + ), + s = n(/*! ./logger */ './src/logger.js'); + function a(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + (r.enumerable = r.enumerable || !1), + (r.configurable = !0), + 'value' in r && (r.writable = !0), + Object.defineProperty(e, r.key, r); + } + } + function u(e) { + return (u = + '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; + })(e); + } + function l(e) { + return ( + (function (e) { + if (Array.isArray(e)) { + for ( + var t = 0, n = new Array(e.length); + t < e.length; + t++ + ) + n[t] = e[t]; + return n; + } + })(e) || + (function (e) { + if ( + Symbol.iterator in Object(e) || + '[object Arguments]' === Object.prototype.toString.call(e) + ) + return Array.from(e); + })(e) || + (function () { + throw new TypeError( + 'Invalid attempt to spread non-iterable instance' + ); + })() + ); + } + var c = { + curveBasis: i.curveBasis, + curveBasisClosed: i.curveBasisClosed, + curveBasisOpen: i.curveBasisOpen, + curveLinear: i.curveLinear, + curveLinearClosed: i.curveLinearClosed, + curveMonotoneX: i.curveMonotoneX, + curveMonotoneY: i.curveMonotoneY, + curveNatural: i.curveNatural, + curveStep: i.curveStep, + curveStepAfter: i.curveStepAfter, + curveStepBefore: i.curveStepBefore, + }, + d = /[%]{2}[{]\s*(?:(?:(\w+)\s*:|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi, + h = /\s*(?:(?:(\w+)(?=:):|(\w+))\s*(?:(?:(\w+))|((?:(?![}][%]{2}).|\r?\n)*))?\s*)(?:[}][%]{2})?/gi, + f = /\s*%%.*\n/gm, + p = function (e) { + var t = g(e, /(?:init\b)|(?:initialize\b)/), + n = {}; + if (Array.isArray(t)) { + var r = t.map(function (e) { + return e.args; + }); + n = M(n, l(r)); + } else n = t.args; + if (n) { + var i = m(e); + ['config'].forEach(function (e) { + void 0 !== n[e] && + ('flowchart-v2' === i && (i = 'flowchart'), + (n[i] = n[e]), + delete n[e]); + }); + } + return n; + }, + g = function (e) { + var t = + arguments.length > 1 && void 0 !== arguments[1] + ? arguments[1] + : null; + try { + var n = new RegExp( + '[%]{2}(?![{]'.concat(h.source, ')(?=[}][%]{2}).*\n'), + 'ig' + ); + (e = e.trim().replace(n, '').replace(/'/gm, '"')), + s.logger.debug( + 'Detecting diagram directive' + .concat( + null !== t ? ' type:' + t : '', + ' based on the text:' + ) + .concat(e) + ); + for (var r, i = []; null !== (r = d.exec(e)); ) + if ( + (r.index === d.lastIndex && d.lastIndex++, + (r && !t) || + (t && r[1] && r[1].match(t)) || + (t && r[2] && r[2].match(t))) + ) { + var o = r[1] ? r[1] : r[2], + a = r[3] + ? r[3].trim() + : r[4] + ? JSON.parse(r[4].trim()) + : null; + i.push({ type: o, args: a }); + } + return ( + 0 === i.length && i.push({ type: e, args: null }), + 1 === i.length ? i[0] : i + ); + } catch (n) { + return ( + s.logger.error( + 'ERROR: ' + .concat(n.message, ' - Unable to parse directive') + .concat( + null !== t ? ' type:' + t : '', + ' based on the text:' + ) + .concat(e) + ), + { type: null, args: null } + ); + } + }, + m = function (e) { + return ( + (e = e.replace(d, '').replace(f, '\n')), + s.logger.debug( + 'Detecting diagram type based on the text ' + e + ), + e.match(/^\s*sequenceDiagram/) + ? 'sequence' + : e.match(/^\s*gantt/) + ? 'gantt' + : e.match(/^\s*classDiagram-v2/) + ? 'classDiagram' + : e.match(/^\s*classDiagram/) + ? 'class' + : e.match(/^\s*stateDiagram-v2/) + ? 'stateDiagram' + : e.match(/^\s*stateDiagram/) + ? 'state' + : e.match(/^\s*gitGraph/) + ? 'git' + : e.match(/^\s*flowchart/) + ? 'flowchart-v2' + : e.match(/^\s*info/) + ? 'info' + : e.match(/^\s*pie/) + ? 'pie' + : e.match(/^\s*erDiagram/) + ? 'er' + : e.match(/^\s*journey/) + ? 'journey' + : 'flowchart' + ); + }, + _ = function (e, t) { + var n = {}; + return function () { + for ( + var r = arguments.length, i = new Array(r), o = 0; + o < r; + o++ + ) + i[o] = arguments[o]; + var s = t ? t.apply(void 0, i) : i[0]; + if (s in n) return n[s]; + var a = e.apply(void 0, i); + return (n[s] = a), a; + }; + }, + y = function (e, t) { + for (var n = 0; n < t.length; n++) + if (t[n].match(e)) return n; + return -1; + }, + v = function (e, t) { + if (!e) return t; + var n = 'curve'.concat( + e.charAt(0).toUpperCase() + e.slice(1) + ); + return c[n] || t; + }, + b = function (e, t) { + var n = e.trim(); + if (n) + return 'loose' !== t.securityLevel + ? Object(r.sanitizeUrl)(n) + : n; + }, + w = function (e) { + for ( + var t, + n = e.split('.'), + r = n.length - 1, + i = n[r], + o = window, + s = 0; + s < r; + s++ + ) + if (!(o = o[n[s]])) return; + for ( + var a = arguments.length, + u = new Array(a > 1 ? a - 1 : 0), + l = 1; + l < a; + l++ + ) + u[l - 1] = arguments[l]; + (t = o)[i].apply(t, u); + }, + C = function (e, t) { + return e && t + ? Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)) + : 0; + }, + S = function (e) { + for (var t = '', n = '', r = 0; r < e.length; r++) + void 0 !== e[r] && + (e[r].startsWith('color:') || + e[r].startsWith('text-align:') + ? (n = n + e[r] + ';') + : (t = t + e[r] + ';')); + return { style: t, labelStyle: n }; + }, + x = 0, + L = function () { + return ( + x++, + 'id-' + Math.random().toString(36).substr(2, 12) + '-' + x + ); + }, + k = function (e) { + return (function (e) { + for ( + var t = '', n = '0123456789abcdef'.length, r = 0; + r < e; + r++ + ) + t += '0123456789abcdef'.charAt( + Math.floor(Math.random() * n) + ); + return t; + })(e.length); + }, + M = function e(t, n, r) { + var i = Object.assign({ depth: 2, clobber: !1 }, r), + o = i.depth, + s = i.clobber; + return Array.isArray(n) && !Array.isArray(t) + ? (n.forEach(function (n) { + return e(t, n, r); + }), + t) + : Array.isArray(n) && Array.isArray(t) + ? (n.forEach(function (e) { + -1 === t.indexOf(e) && t.push(e); + }), + t) + : void 0 === t || o <= 0 + ? null != t && 'object' === u(t) && 'object' === u(n) + ? Object.assign(t, n) + : n + : (void 0 !== n && + 'object' === u(t) && + 'object' === u(n) && + Object.keys(n).forEach(function (r) { + 'object' !== u(n[r]) || + (void 0 !== t[r] && 'object' !== u(t[r])) + ? (s || + ('object' !== u(t[r]) && + 'object' !== u(n[r]))) && + (t[r] = n[r]) + : (void 0 === t[r] && + (t[r] = Array.isArray(n[r]) ? [] : {}), + (t[r] = e(t[r], n[r], { + depth: o - 1, + clobber: s, + }))); + }), + t); + }, + D = function () { + return { + x: 0, + y: 0, + fill: void 0, + anchor: 'start', + style: '#666', + width: 100, + height: 100, + textMargin: 0, + rx: 0, + ry: 0, + valign: void 0, + }; + }, + E = function (e, t) { + var n = t.text.replace(o.default.lineBreakRegex, ' '), + r = e.append('text'); + r.attr('x', t.x), + r.attr('y', t.y), + r.style('text-anchor', t.anchor), + r.style('font-family', t.fontFamily), + r.style('font-size', t.fontSize), + r.style('font-weight', t.fontWeight), + r.attr('fill', t.fill), + void 0 !== t.class && r.attr('class', t.class); + var i = r.append('tspan'); + return ( + i.attr('x', t.x + 2 * t.textMargin), + i.attr('fill', t.fill), + i.text(n), + r + ); + }, + T = _( + function (e, t, n) { + if (!e) return e; + if ( + ((n = Object.assign( + { + fontSize: 12, + fontWeight: 400, + fontFamily: 'Arial', + joinWith: '
', + }, + n + )), + o.default.lineBreakRegex.test(e)) + ) + return e; + var r = e.split(' '), + i = [], + s = ''; + return ( + r.forEach(function (e, o) { + var a = A(''.concat(e, ' '), n), + u = A(s, n); + if (a > t) { + var c = N(e, t, '-', n), + d = c.hyphenatedStrings, + h = c.remainingWord; + i.push.apply(i, [s].concat(l(d))), (s = h); + } else u + a >= t ? (i.push(s), (s = e)) : (s = [s, e].filter(Boolean).join(' ')); + o + 1 === r.length && i.push(s); + }), + i + .filter(function (e) { + return '' !== e; + }) + .join(n.joinWith) + ); + }, + function (e, t, n) { + return '' + .concat(e, '-') + .concat(t, '-') + .concat(n.fontSize, '-') + .concat(n.fontWeight, '-') + .concat(n.fontFamily, '-') + .concat(n.joinWith); + } + ), + N = _( + function (e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : '-', + r = arguments.length > 3 ? arguments[3] : void 0; + r = Object.assign( + { + fontSize: 12, + fontWeight: 400, + fontFamily: 'Arial', + margin: 0, + }, + r + ); + var i = e.split(''), + o = [], + s = ''; + return ( + i.forEach(function (e, a) { + var u = ''.concat(s).concat(e); + if (A(u, r) >= t) { + var l = a + 1, + c = i.length === l, + d = ''.concat(u).concat(n); + o.push(c ? u : d), (s = ''); + } else s = u; + }), + { hyphenatedStrings: o, remainingWord: s } + ); + }, + function (e, t) { + var n = + arguments.length > 2 && void 0 !== arguments[2] + ? arguments[2] + : '-', + r = arguments.length > 3 ? arguments[3] : void 0; + return '' + .concat(e, '-') + .concat(t, '-') + .concat(n, '-') + .concat(r.fontSize, '-') + .concat(r.fontWeight, '-') + .concat(r.fontFamily); + } + ), + O = function (e, t) { + return ( + (t = Object.assign( + { + fontSize: 12, + fontWeight: 400, + fontFamily: 'Arial', + margin: 15, + }, + t + )), + I(e, t).height + ); + }, + A = function (e, t) { + return ( + (t = Object.assign( + { fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, + t + )), + I(e, t).width + ); + }, + I = _( + function (e, t) { + var n = (t = Object.assign( + { fontSize: 12, fontWeight: 400, fontFamily: 'Arial' }, + t + )), + r = n.fontSize, + s = n.fontFamily, + a = n.fontWeight; + if (!e) return { width: 0, height: 0 }; + var u = ['sans-serif', s], + l = e.split(o.default.lineBreakRegex), + c = [], + d = Object(i.select)('body'); + if (!d.remove) + return { width: 0, height: 0, lineHeight: 0 }; + for ( + var h = d.append('svg'), f = 0, p = u; + f < p.length; + f++ + ) { + var g = p[f], + m = 0, + _ = { width: 0, height: 0, lineHeight: 0 }, + y = !0, + v = !1, + b = void 0; + try { + for ( + var w, C = l[Symbol.iterator](); + !(y = (w = C.next()).done); + y = !0 + ) { + var S = w.value, + x = D(); + x.text = S; + var L = E(h, x) + .style('font-size', r) + .style('font-weight', a) + .style('font-family', g), + k = (L._groups || L)[0][0].getBBox(); + (_.width = Math.round(Math.max(_.width, k.width))), + (m = Math.round(k.height)), + (_.height += m), + (_.lineHeight = Math.round( + Math.max(_.lineHeight, m) + )); + } + } catch (e) { + (v = !0), (b = e); + } finally { + try { + y || null == C.return || C.return(); + } finally { + if (v) throw b; + } + } + c.push(_); + } + return ( + h.remove(), + c[ + isNaN(c[1].height) || + isNaN(c[1].width) || + isNaN(c[1].lineHeight) || + (c[0].height > c[1].height && + c[0].width > c[1].width && + c[0].lineHeight > c[1].lineHeight) + ? 0 + : 1 + ] + ); + }, + function (e, t) { + return '' + .concat(e, '-') + .concat(t.fontSize, '-') + .concat(t.fontWeight, '-') + .concat(t.fontFamily); + } + ), + P = function (e, t, n) { + var r = new Map(); + return ( + r.set('height', e), + n + ? (r.set('width', '100%'), + r.set('style', 'max-width: '.concat(t, 'px;'))) + : r.set('width', t), + r + ); + }, + R = function (e, t, n, r) { + !(function (e, t) { + var n = !0, + r = !1, + i = void 0; + try { + for ( + var o, s = t[Symbol.iterator](); + !(n = (o = s.next()).done); + n = !0 + ) { + var a = o.value; + e.attr(a[0], a[1]); + } + } catch (e) { + (r = !0), (i = e); + } finally { + try { + n || null == s.return || s.return(); + } finally { + if (r) throw i; + } + } + })(e, P(t, n, r)); + }, + F = function (e, t) { + return e + ? new ((function () { + function e() { + return ( + (function (e, t) { + if (!(e instanceof t)) + throw new TypeError( + 'Cannot call a class as a function' + ); + })(this, e), + (this.count = t ? t.length : 0) + ); + } + var n, r, i; + return ( + (n = e), + (r = [ + { + key: 'next', + value: function () { + return this.count++; + }, + }, + ]) && a(n.prototype, r), + i && a(n, i), + e + ); + })())() + : { + next: function () { + return Date.now(); + }, + }; + }; + t.default = { + assignWithDepth: M, + wrapLabel: T, + calculateTextHeight: O, + calculateTextWidth: A, + calculateTextDimensions: I, + calculateSvgSizeAttrs: P, + configureSvgSize: R, + detectInit: p, + detectDirective: g, + detectType: m, + isSubstringInArray: y, + interpolateToCurve: v, + calcLabelPosition: function (e) { + return (function (e) { + var t, + n = 0; + e.forEach(function (e) { + (n += C(e, t)), (t = e); + }); + var r = n / 2, + i = void 0; + return ( + (t = void 0), + e.forEach(function (e) { + if (t && !i) { + var n = C(e, t); + if (n < r) r -= n; + else { + var o = r / n; + o <= 0 && (i = t), + o >= 1 && (i = { x: e.x, y: e.y }), + o > 0 && + o < 1 && + (i = { + x: (1 - o) * t.x + o * e.x, + y: (1 - o) * t.y + o * e.y, + }); + } + } + t = e; + }), + i + ); + })(e); + }, + calcCardinalityPosition: function (e, t, n) { + var r; + s.logger.info('our points', t), + t[0] !== n && (t = t.reverse()), + t.forEach(function (e) { + C(e, r), (r = e); + }); + var i, + o = 25; + (r = void 0), + t.forEach(function (e) { + if (r && !i) { + var t = C(e, r); + if (t < o) o -= t; + else { + var n = o / t; + n <= 0 && (i = r), + n >= 1 && (i = { x: e.x, y: e.y }), + n > 0 && + n < 1 && + (i = { + x: (1 - n) * r.x + n * e.x, + y: (1 - n) * r.y + n * e.y, + }); + } + } + r = e; + }); + var a = e ? 10 : 5, + u = Math.atan2(t[0].y - i.y, t[0].x - i.x), + l = { x: 0, y: 0 }; + return ( + (l.x = Math.sin(u) * a + (t[0].x + i.x) / 2), + (l.y = -Math.cos(u) * a + (t[0].y + i.y) / 2), + l + ); + }, + calcTerminalLabelPosition: function (e, t, n) { + var r, + i = JSON.parse(JSON.stringify(n)); + s.logger.info('our points', i), + 'start_left' !== t && + 'start_right' !== t && + (i = i.reverse()), + i.forEach(function (e) { + C(e, r), (r = e); + }); + var o, + a = 25; + (r = void 0), + i.forEach(function (e) { + if (r && !o) { + var t = C(e, r); + if (t < a) a -= t; + else { + var n = a / t; + n <= 0 && (o = r), + n >= 1 && (o = { x: e.x, y: e.y }), + n > 0 && + n < 1 && + (o = { + x: (1 - n) * r.x + n * e.x, + y: (1 - n) * r.y + n * e.y, + }); + } + } + r = e; + }); + var u = 10, + l = Math.atan2(i[0].y - o.y, i[0].x - o.x), + c = { x: 0, y: 0 }; + return ( + (c.x = Math.sin(l) * u + (i[0].x + o.x) / 2), + (c.y = -Math.cos(l) * u + (i[0].y + o.y) / 2), + 'start_left' === t && + ((c.x = Math.sin(l + Math.PI) * u + (i[0].x + o.x) / 2), + (c.y = -Math.cos(l + Math.PI) * u + (i[0].y + o.y) / 2)), + 'end_right' === t && + ((c.x = + Math.sin(l - Math.PI) * u + (i[0].x + o.x) / 2 - 5), + (c.y = + -Math.cos(l - Math.PI) * u + (i[0].y + o.y) / 2 - 5)), + 'end_left' === t && + ((c.x = Math.sin(l) * u + (i[0].x + o.x) / 2 - 5), + (c.y = -Math.cos(l) * u + (i[0].y + o.y) / 2 - 5)), + c + ); + }, + formatUrl: b, + getStylesFromArray: S, + generateId: L, + random: k, + memoize: _, + runFunc: w, + initIdGeneratior: F, + }; + }, + '@braintree/sanitize-url': + /*!******************************************!*\ !*** external "@braintree/sanitize-url" ***! \******************************************/ -/*! no static exports found */function(e,t){e.exports=n(355)},d3: -/*!*********************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(368); + }, + d3: + /*!*********************!*\ !*** external "d3" ***! \*********************/ -/*! no static exports found */function(e,t){e.exports=n(314)},dagre: -/*!************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(316); + }, + dagre: + /*!************************!*\ !*** external "dagre" ***! \************************/ -/*! no static exports found */function(e,t){e.exports=n(356)},"dagre-d3": -/*!***************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(369); + }, + 'dagre-d3': + /*!***************************!*\ !*** external "dagre-d3" ***! \***************************/ -/*! no static exports found */function(e,t){e.exports=n(508)},"dagre-d3/lib/label/add-html-label.js": -/*!*******************************************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(521); + }, + 'dagre-d3/lib/label/add-html-label.js': + /*!*******************************************************!*\ !*** external "dagre-d3/lib/label/add-html-label.js" ***! \*******************************************************/ -/*! no static exports found */function(e,t){e.exports=n(176)},"entity-decode/browser": -/*!****************************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(178); + }, + 'entity-decode/browser': + /*!****************************************!*\ !*** external "entity-decode/browser" ***! \****************************************/ -/*! no static exports found */function(e,t){e.exports=n(562)},graphlib: -/*!***************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(575); + }, + graphlib: + /*!***************************!*\ !*** external "graphlib" ***! \***************************/ -/*! no static exports found */function(e,t){e.exports=n(101)},khroma: -/*!*************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(103); + }, + khroma: + /*!*************************!*\ !*** external "khroma" ***! \*************************/ -/*! no static exports found */function(e,t){e.exports=n(563)},"moment-mini": -/*!******************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(576); + }, + 'moment-mini': + /*!******************************!*\ !*** external "moment-mini" ***! \******************************/ -/*! no static exports found */function(e,t){e.exports=n(590)},stylis: -/*!*************************!*\ + /*! no static exports found */ function (e, t) { + e.exports = n(603); + }, + stylis: + /*!*************************!*\ !*** external "stylis" ***! \*************************/ -/*! no static exports found */function(e,t){e.exports=n(592)}}).default},e.exports=r()},function(e,t,n){var r=n(368),i=n(373);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(27),i=n(8),o="[object AsyncFunction]",s="[object Function]",a="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==s||t==a||t==o||t==u}},function(e,t,n){var r=n(32),i=n(369),o=n(370),s="[object Null]",a="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?a:s:u&&u in Object(e)?i(e):o(e)}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(17);t.default=function(e,t,n){var o=i.default.parse(e),s=o[t],a=r.default.channel.clamp[t](s+n);return s!==a&&(o[t]=a),i.default.stringify(o)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(15).Symbol;e.exports=r},function(e,t,n){(function(e){var r=n(15),i=n(389),o=t&&!t.nodeType&&t,s=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||i;e.exports=u}).call(this,n(40)(e))},function(e,t,n){var r=n(107),i=n(393),o=n(20);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(398),i=n(74),o=n(399),s=n(116),a=n(400),u=n(27),l=n(105),c=l(r),d=l(i),h=l(o),f=l(s),p=l(a),g=u;(r&&"[object DataView]"!=g(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=g(new i)||o&&"[object Promise]"!=g(o.resolve())||s&&"[object Set]"!=g(new s)||a&&"[object WeakMap]"!=g(new a))&&(g=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case c:return"[object DataView]";case d:return"[object Map]";case h:return"[object Promise]";case f:return"[object Set]";case p:return"[object WeakMap]"}return t}),e.exports=g},function(e,t,n){var r=n(27),i=n(18),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r;try{r={defaults:n(90),each:n(43),isFunction:n(26),isPlainObject:n(155),pick:n(93),has:n(45),range:n(94),uniqueId:n(95)}}catch(e){}r||(r=window._),e.exports=r},function(e,t,n){var r=n(52),i=n(53);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,u=t.length;++a-1&&e%1==0&&e1)for(var n=1;nu){var l=a;a=u,u=l}return a+s+u+s+(r.isUndefined(o)?i:o)}function d(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function h(e,t){return c(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},a.prototype.setEdge=function(){var e,t,n,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var a=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,t,n);var l=d(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[a]=l,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][a]=l,this._out[e][a]=l,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(25)(n(15),"Map");e.exports=r},function(e,t,n){var r=n(374),i=n(381),o=n(383),s=n(384),a=n(385);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(104),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a}).call(this,n(40)(e))},function(e,t,n){var r=n(56),i=n(391),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(111),i=n(112),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(e){return null==e?[]:(e=Object(e),r(s(e),(function(t){return o.call(e,t)})))}:i;e.exports=a},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n0&&o(c)?n>1?e(c,n-1,o,s,a):r(a,c):s||(a[a.length]=c)}return a}},function(e,t,n){var r=n(65),i=n(31),o=n(67),s=n(34),a=Object.prototype,u=a.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++nu){var l=a;a=u,u=l}return a+s+u+s+(r.isUndefined(o)?i:o)}function d(e,t,n,r){var i=""+t,o=""+n;if(!e&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function h(e,t){return c(e,t.v,t.w,t.name)}a.prototype._nodeCount=0,a.prototype._edgeCount=0,a.prototype.isDirected=function(){return this._isDirected},a.prototype.isMultigraph=function(){return this._isMultigraph},a.prototype.isCompound=function(){return this._isCompound},a.prototype.setGraph=function(e){return this._label=e,this},a.prototype.graph=function(){return this._label},a.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},a.prototype.nodeCount=function(){return this._nodeCount},a.prototype.nodes=function(){return r.keys(this._nodes)},a.prototype.sources=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._in[t])}))},a.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),(function(t){return r.isEmpty(e._out[t])}))},a.prototype.setNodes=function(e,t){var n=arguments,i=this;return r.each(e,(function(e){n.length>1?i.setNode(e,t):i.setNode(e)})),this},a.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=o,this._children[e]={},this._children[o][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},a.prototype.node=function(e){return this._nodes[e]},a.prototype.hasNode=function(e){return r.has(this._nodes,e)},a.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),(function(e){t.setParent(e)})),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},a.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=o;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},a.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},a.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==o)return t}},a.prototype.children=function(e){if(r.isUndefined(e)&&(e=o),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===o)return this.nodes();if(this.hasNode(e))return[]}},a.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},a.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},a.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},a.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},a.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){e(r)&&t.setNode(r,n)})),r.each(this._edgeObjs,(function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))}));var i={};return this._isCompound&&r.each(t.nodes(),(function(e){t.setParent(e,function e(r){var o=n.parent(r);return void 0===o||t.hasNode(o)?(i[r]=o,o):o in i?i[o]:e(o)}(e))})),t},a.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},a.prototype.edgeCount=function(){return this._edgeCount},a.prototype.edges=function(){return r.values(this._edgeObjs)},a.prototype.setPath=function(e,t){var n=this,i=arguments;return r.reduce(e,(function(e,r){return i.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r})),this},a.prototype.setEdge=function(){var e,t,n,i,o=!1,s=arguments[0];"object"==typeof s&&null!==s&&"v"in s?(e=s.v,t=s.w,n=s.name,2===arguments.length&&(i=arguments[1],o=!0)):(e=s,t=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var a=c(this._isDirected,e,t,n);if(r.has(this._edgeLabels,a))return o&&(this._edgeLabels[a]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,t,n);var l=d(this._isDirected,e,t,n);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[a]=l,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][a]=l,this._out[e][a]=l,this._edgeCount++,this},a.prototype.edge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return this._edgeLabels[r]},a.prototype.hasEdge=function(e,t,n){var i=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n);return r.has(this._edgeLabels,i)},a.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?h(this._isDirected,arguments[0]):c(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[t],e),l(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},a.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.v===t})):i}},a.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var i=r.values(n);return t?r.filter(i,(function(e){return e.w===t})):i}},a.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t){e.exports=function(e,t,n,r){var i=e.x,o=e.y,s=i-r.x,a=o-r.y,u=Math.sqrt(t*t*a*a+n*n*s*s),l=Math.abs(t*n*s/u);r.xh))return!1;var p=c.get(e);if(p&&c.get(t))return p==t;var g=-1,m=!0,_=n&a?new r:void 0;for(c.set(e,t),c.set(t,e);++g0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return a}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(7);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n>1].priority1&&s(e,t[0],t[1])?t=[]:n>2&&s(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=a},function(e,t,n){var r=n(52),i=n(484);e.exports=function(e,t){return i(e||[],t||[],r)}},function(e,t,n){"use strict";var r=n(2),i=n(14).Graph,o=n(68).slack;function s(e,t){return r.forEach(e.nodes(),(function n(i){r.forEach(t.nodeEdges(i),(function(r){var s=r.v,a=i===s?r.w:s;e.hasNode(a)||o(t,r)||(e.setNode(a,{}),e.setEdge(i,a,{}),n(a))}))})),e.nodeCount()}function a(e,t){return r.minBy(t.edges(),(function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return o(t,n)}))}function u(e,t,n){r.forEach(e.nodes(),(function(e){t.node(e).rank+=n}))}e.exports=function(e){var t,n,r=new i({directed:!1}),l=e.nodes()[0],c=e.nodeCount();r.setNode(l,{});for(;s(r,e)0&&(o=u.removeMin(),(s=a[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(l);return a}(e,String(t),n||o,r||function(t){return e.outEdges(t)})};var o=r.constant(1)},function(e,t,n){var r=n(9);function i(){this._arr=[],this._keyIndices={}}e.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(e){return e.key}))},i.prototype.has=function(e){return r.has(this._keyIndices,e)},i.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var i=this._arr,o=i.length;return n[e]=o,i.push({key:e,priority:t}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},i.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},i.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n>1].priority1&&s.sort((function(e,t){var r=e.x-n.x,i=e.y-n.y,o=Math.sqrt(r*r+i*i),s=t.x-n.x,a=t.y-n.y,u=Math.sqrt(s*s+a*a);return oMath.abs(s)*l?(a<0&&(l=-l),n=0===a?0:l*s/a,r=l):(s<0&&(u=-u),n=u,r=0===s?0:u*a/s);return{x:i+n,y:o+r}}},function(e,t,n){var r=n(10);e.exports=function(e,t){var n=e.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=t.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,t.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var s=i.node().getBoundingClientRect();return n.attr("width",s.width).attr("height",s.height),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o=n(570),s={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:function(e){if(35===e.charCodeAt(0)){var t=e.match(s.re);if(t){var n=t[1],r=parseInt(n,16),o=n.length,a=o%4==0,u=o>4,l=u?1:17,c=u?8:4,d=a?0:-1,h=u?255:15;return i.default.set({r:(r>>c*(d+3)&h)*l,g:(r>>c*(d+2)&h)*l,b:(r>>c*(d+1)&h)*l,a:a?(r&h)*l/255:1},e)}}},stringify:function(e){return e.a<1?"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]+r.default.unit.frac2hex(e.a):"#"+o.DEC2HEX[Math.round(e.r)]+o.DEC2HEX[Math.round(e.g)]+o.DEC2HEX[Math.round(e.b)]}};t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o=n(17);t.default=function(e,t,n,s){void 0===s&&(s=1);var a=i.default.set({h:r.default.channel.clamp.h(e),s:r.default.channel.clamp.s(t),l:r.default.channel.clamp.l(n),a:r.default.channel.clamp.a(s)});return o.default.stringify(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"a")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(17);t.default=function(e){var t=i.default.parse(e),n=t.r,o=t.g,s=t.b,a=.2126*r.default.channel.toLinear(n)+.7152*r.default.channel.toLinear(o)+.0722*r.default.channel.toLinear(s);return r.default.lang.round(a)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(180);t.default=function(e){return r.default(e)>=.5}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"a",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"a",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(71);t.default=function(e,t){var n=r.default.parse(e),o={};for(var s in t)t[s]&&(o[s]=n[s]+t[s]);return i.default(e,o)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(70);t.default=function(e,t,n){void 0===n&&(n=50);var o=r.default.parse(e),s=o.r,a=o.g,u=o.b,l=o.a,c=r.default.parse(t),d=c.r,h=c.g,f=c.b,p=c.a,g=n/100,m=2*g-1,_=l-p,y=((m*_==-1?m:(m+_)/(1+m*_))+1)/2,v=1-y,b=s*y+d*v,w=a*y+h*v,C=u*y+f*v,S=l*g+p*(1-g);return i.default(b,w,C,S)}},function(e,t){},function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(e){return function(t,n,o,s){var a=r(t),u=i[e][r(t)];return 2===a&&(u=u[n?0:1]),u.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,s){var a=n(t),u=r[e][n(t)];return 2===a&&(u=u[i?0:1]),u.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),r=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],i=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"pár sekund":"pár sekundami";case"ss":return t||r?i+(o(e)?"sekundy":"sekund"):i+"sekundami";case"m":return t?"minuta":r?"minutu":"minutou";case"mm":return t||r?i+(o(e)?"minuty":"minut"):i+"minutami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?i+(o(e)?"hodiny":"hodin"):i+"hodinami";case"d":return t||r?"den":"dnem";case"dd":return t||r?i+(o(e)?"dny":"dní"):i+"dny";case"M":return t||r?"měsíc":"měsícem";case"MM":return t||r?i+(o(e)?"měsíce":"měsíců"):i+"měsíci";case"y":return t||r?"rok":"rokem";case"yy":return t||r?i+(o(e)?"roky":"let"):i+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var n,r=this._calendarEl[e],i=t&&t.hours();return((n=r)instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(r=r.apply(t)),r.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?i[n][2]?i[n][2]:i[n][1]:r?i[n][0]:i[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function r(e,r,i,o){var s="";switch(i){case"s":return o?"muutaman sekunnin":"muutama sekunti";case"ss":return o?"sekunnin":"sekuntia";case"m":return o?"minuutin":"minuutti";case"mm":s=o?"minuutin":"minuuttia";break;case"h":return o?"tunnin":"tunti";case"hh":s=o?"tunnin":"tuntia";break;case"d":return o?"päivän":"päivä";case"dd":s=o?"päivän":"päivää";break;case"M":return o?"kuukauden":"kuukausi";case"MM":s=o?"kuukauden":"kuukautta";break;case"y":return o?"vuoden":"vuosi";case"yy":s=o?"vuoden":"vuotta"}return s=function(e,r){return e<10?r?n[e]:t[e]:e}(e,o)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Méitheamh","Iúil","Lúnasa","Meán Fómhair","Deaireadh Fómhair","Samhain","Nollaig"],monthsShort:["Eaná","Feab","Márt","Aibr","Beal","Méit","Iúil","Lúna","Meán","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Satharn"],weekdaysShort:["Dom","Lua","Mái","Céa","Déa","hAo","Sat"],weekdaysMin:["Do","Lu","Má","Ce","Dé","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d mí",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voranim",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?i[n][0]:i[n][1]}e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return r+=1===e?"dan":"dana";case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,r){var i=e;switch(n){case"s":return r||t?"néhány másodperc":"néhány másodperce";case"ss":return i+(r||t)?" másodperc":" másodperce";case"m":return"egy"+(r||t?" perc":" perce");case"mm":return i+(r||t?" perc":" perce");case"h":return"egy"+(r||t?" óra":" órája");case"hh":return i+(r||t?" óra":" órája");case"d":return"egy"+(r||t?" nap":" napja");case"dd":return i+(r||t?" nap":" napja");case"M":return"egy"+(r||t?" hónap":" hónapja");case"MM":return i+(r||t?" hónap":" hónapja");case"y":return"egy"+(r||t?" év":" éve");case"yy":return i+(r||t?" év":" éve")}return""}function r(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return r.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return r.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:r,monthsShort:r,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?i[n][0]:i[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,r){return t?i(n)[0]:r?i(n)[1]:i(n)[2]}function r(e){return e%10==0||e>10&&e<20}function i(e){return t[e].split("_")}function o(e,t,o,s){var a=e+" ";return 1===e?a+n(0,t,o[0],s):t?a+(r(e)?i(o)[1]:i(o)[0]):s?a+i(o)[1]:a+(r(e)?i(o)[1]:i(o)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"},ss:o,m:n,mm:o,h:n,hh:o,d:n,dd:o,M:n,MM:o,y:n,yy:o},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function r(e,r,i){return e+" "+n(t[i],e,r)}function i(e,r,i){return n(t[i],e,r)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:r,m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function r(e,t,n,r){var i="";if(t)switch(n){case"s":i="काही सेकंद";break;case"ss":i="%d सेकंद";break;case"m":i="एक मिनिट";break;case"mm":i="%d मिनिटे";break;case"h":i="एक तास";break;case"hh":i="%d तास";break;case"d":i="एक दिवस";break;case"dd":i="%d दिवस";break;case"M":i="एक महिना";break;case"MM":i="%d महिने";break;case"y":i="एक वर्ष";break;case"yy":i="%d वर्षे"}else switch(n){case"s":i="काही सेकंदां";break;case"ss":i="%d सेकंदां";break;case"m":i="एका मिनिटा";break;case"mm":i="%d मिनिटां";break;case"h":i="एका तासा";break;case"hh":i="%d तासां";break;case"d":i="एका दिवसा";break;case"dd":i="%d दिवसां";break;case"M":i="एका महिन्या";break;case"MM":i="%d महिन्यां";break;case"y":i="एका वर्षा";break;case"yy":i="%d वर्षां"}return i.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात्री|सकाळी|दुपारी|सायंकाळी/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function i(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,r){return e?""===r?"("+n[e.month()]+"|"+t[e.month()]+")":/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:i,m:i,mm:i,h:i,hh:i,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:i,y:"rok",yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº"})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r=" ";return(e%100>=20||e>=100&&e%100==0)&&(r=" de "),e+r+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function r(e){return e>1&&e<5}function i(e,t,n,i){var o=e+" ";switch(n){case"s":return t||i?"pár sekúnd":"pár sekundami";case"ss":return t||i?o+(r(e)?"sekundy":"sekúnd"):o+"sekundami";case"m":return t?"minúta":i?"minútu":"minútou";case"mm":return t||i?o+(r(e)?"minúty":"minút"):o+"minútami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?o+(r(e)?"hodiny":"hodín"):o+"hodinami";case"d":return t||i?"deň":"dňom";case"dd":return t||i?o+(r(e)?"dni":"dní"):o+"dňami";case"M":return t||i?"mesiac":"mesiacom";case"MM":return t||i?o+(r(e)?"mesiace":"mesiacov"):o+"mesiacmi";case"y":return t||i?"rok":"rokom";case"yy":return t||i?o+(r(e)?"roky":"rokov"):o+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i=e+" ";switch(n){case"s":return t||r?"nekaj sekund":"nekaj sekundami";case"ss":return i+=1===e?t?"sekundo":"sekundi":2===e?t||r?"sekundi":"sekundah":e<5?t||r?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?t?"minuta":"minuto":2===e?t||r?"minuti":"minutama":e<5?t||r?"minute":"minutami":t||r?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?t?"ura":"uro":2===e?t||r?"uri":"urama":e<5?t||r?"ure":"urami":t||r?"ur":"urami";case"d":return t||r?"en dan":"enim dnem";case"dd":return i+=1===e?t||r?"dan":"dnem":2===e?t||r?"dni":"dnevoma":t||r?"dni":"dnevi";case"M":return t||r?"en mesec":"enim mesecem";case"MM":return i+=1===e?t||r?"mesec":"mesecem":2===e?t||r?"meseca":"mesecema":e<5?t||r?"mesece":"meseci":t||r?"mesecev":"meseci";case"y":return t||r?"eno leto":"enim letom";case"yy":return i+=1===e?t||r?"leto":"letom":2===e?t||r?"leti":"letoma":e<5?t||r?"leta":"leti":t||r?"let":"leti"}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Пагоҳ соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,r,i){var o=function(e){var n=Math.floor(e%1e3/100),r=Math.floor(e%100/10),i=e%10,o="";return n>0&&(o+=t[n]+"vatlh"),r>0&&(o+=(""!==o?" ":"")+t[r]+"maH"),i>0&&(o+=(""!==o?" ":"")+t[i]),""===o?"pagh":o}(e);switch(r){case"ss":return o+" lup";case"mm":return o+" tup";case"hh":return o+" rep";case"dd":return o+" jaj";case"MM":return o+" jar";case"yy":return o+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var r=e%10;return e+(t[r]||t[e%100-r]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n,r){var i={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return r?i[n][0]:t?i[n][0]:i[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"يېرىم كېچە":r<900?"سەھەر":r<1130?"چۈشتىن بۇرۇن":r<1230?"چۈش":r<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var r=100*e+t;return r<600?"凌晨":r<900?"早上":r<1130?"上午":r<1230?"中午":r<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(0))},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return et?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),s=o.right,a=o.left,u=s,l=function(e,t){null==t&&(t=c);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN},f=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,i=e.length,o=0,s=-1,a=0,u=0;if(null==t)for(;++s1)return u/(o-1)},g=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,r,i,o=e.length,s=-1;if(null==t){for(;++s=n)for(r=i=n;++sn&&(r=n),i=n)for(r=i=n;++sn&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(i=Math.ceil(t-e+1));++a=0?(o>=S?10:o>=x?5:o>=L?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=S?10:o>=x?5:o>=L?2:1)}function D(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=S?i*=10:o>=x?i*=5:o>=L&&(i*=2),td;)h.pop(),--f;var p,g=new Array(f+1);for(i=0;i<=f;++i)(p=g[i]=[]).x0=i>0?h[i-1]:c,p.x1=i=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),s=+n(e[o],o,e);return s+(+n(e[o+1],o+1,e)-s)*(i-o)}},O=function(e,t,n){return e=v.call(e,f).sort(r),Math.ceil((n-t)/(2*(N(e,.75)-N(e,.25))*Math.pow(e.length,-1/3)))},A=function(e,t,n){return Math.ceil((n-t)/(3.5*g(e)*Math.pow(e.length,-1/3)))},I=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},P=function(e,t){var n,r=e.length,i=r,o=-1,s=0;if(null==t)for(;++o=0;)for(t=(r=e[i]).length;--t>=0;)n[--s]=r[t];return n},Y=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},j=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},B=function(e,t){if(n=e.length){var n,i,o=0,s=0,a=e[s];for(null==t&&(t=r);++o=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function fe(e,t){for(var n,r=0,i=e.length;r0)for(var n,r,i=new Array(n),o=0;ot?1:e>=t?0:NaN}var Me="http://www.w3.org/1999/xhtml",De={svg:"http://www.w3.org/2000/svg",xhtml:Me,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ee=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),De.hasOwnProperty(t)?{space:De[t],local:e}:e};function Te(e){return function(){this.removeAttribute(e)}}function Ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Oe(e,t){return function(){this.setAttribute(e,t)}}function Ae(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ie(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Pe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var Re=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Fe(e){return function(){this.style.removeProperty(e)}}function Ye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function je(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Be(e,t){return e.style.getPropertyValue(t)||Re(e).getComputedStyle(e,null).getPropertyValue(t)}function We(e){return function(){delete this[e]}}function He(e,t){return function(){this[e]=t}}function Ve(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function ze(e){return e.trim().split(/^|\s+/)}function Ue(e){return e.classList||new qe(e)}function qe(e){this._node=e,this._names=ze(e.getAttribute("class")||"")}function Ke(e,t){for(var n=Ue(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Je(){this.textContent=""}function Qe(e){return function(){this.textContent=e}}function et(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function tt(){this.innerHTML=""}function nt(e){return function(){this.innerHTML=e}}function rt(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function it(){this.nextSibling&&this.parentNode.appendChild(this)}function ot(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function st(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Me&&t.documentElement.namespaceURI===Me?t.createElement(e):t.createElementNS(n,e)}}function at(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var ut=function(e){var t=Ee(e);return(t.local?at:st)(t)};function lt(){return null}function ct(){var e=this.parentNode;e&&e.removeChild(this)}function dt(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ht(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var ft={},pt=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ft={mouseenter:"mouseover",mouseleave:"mouseout"}));function gt(e,t,n){return e=mt(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function mt(e,t,n){return function(r){var i=pt;pt=r;try{e.call(this,this.__data__,t,n)}finally{pt=i}}}function _t(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function yt(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r=w&&(w=b+1);!(v=_[w])&&++w=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ke);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?Fe:"function"==typeof t?je:Ye)(e,t,null==n?"":n)):Be(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?We:"function"==typeof t?Ve:He)(e,t)):this.node()[e]},classed:function(e,t){var n=ze(e+"");if(arguments.length<2){for(var r=Ue(this.node()),i=-1,o=n.length;++i>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new en(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new en(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Bt.exec(e))?new en(t[1],t[2],t[3],1):(t=Wt.exec(e))?new en(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ht.exec(e))?Xt(t[1],t[2],t[3],t[4]):(t=Vt.exec(e))?Xt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zt.exec(e))?on(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?on(t[1],t[2]/100,t[3]/100,t[4]):qt.hasOwnProperty(e)?Zt(qt[e]):"transparent"===e?new en(NaN,NaN,NaN,0):null}function Zt(e){return new en(e>>16&255,e>>8&255,255&e,1)}function Xt(e,t,n,r){return r<=0&&(e=t=n=NaN),new en(e,t,n,r)}function Jt(e){return e instanceof Pt||(e=$t(e)),e?new en((e=e.rgb()).r,e.g,e.b,e.opacity):new en}function Qt(e,t,n,r){return 1===arguments.length?Jt(e):new en(e,t,n,null==r?1:r)}function en(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tn(){return"#"+rn(this.r)+rn(this.g)+rn(this.b)}function nn(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function rn(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function on(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new un(e,t,n,r)}function sn(e){if(e instanceof un)return new un(e.h,e.s,e.l,e.opacity);if(e instanceof Pt||(e=$t(e)),!e)return new un;if(e instanceof un)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=t===o?(n-r)/a+6*(n0&&u<1?0:s,new un(s,a,u,e.opacity)}function an(e,t,n,r){return 1===arguments.length?sn(e):new un(e,t,n,null==r?1:r)}function un(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ln(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function cn(e,t,n,r,i){var o=e*e,s=o*e;return((1-3*e+3*o-s)*t+(4-6*o+3*s)*n+(1+3*e+3*o-3*s)*r+s*i)/6}At(Pt,$t,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Kt,formatHex:Kt,formatHsl:function(){return sn(this).formatHsl()},formatRgb:Gt,toString:Gt}),At(en,Qt,It(Pt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new en(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:tn,formatHex:tn,formatRgb:nn,toString:nn})),At(un,an,It(Pt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new un(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new un(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new en(ln(e>=240?e-240:e+120,i,r),ln(e,i,r),ln(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var dn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],s=r>0?e[r-1]:2*i-o,a=r180||n<-180?n-360*Math.round(n/360):n):fn(isNaN(e)?t:e)}function mn(e){return 1==(e=+e)?_n:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):fn(isNaN(t)?n:t)}}function _n(e,t){var n=t-e;return n?pn(e,n):fn(isNaN(e)?t:e)}var yn=function e(t){var n=mn(t);function r(e,t){var r=n((e=Qt(e)).r,(t=Qt(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),s=_n(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=s(t),e+""}}return r.gamma=e,r}(1);function vn(e){return function(t){var n,r,i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);for(n=0;no&&(i=t.slice(o,i),a[s]?a[s]+=i:a[++s]=i),(n=n[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,u.push({i:s,x:Mn(n,r)})),o=Tn.lastIndex;return o=0&&t._call.call(null,e),t=t._next;--jn}function Qn(){zn=(Vn=qn.now())+Un,jn=Bn=0;try{Jn()}finally{jn=0,function(){var e,t,n=Nn,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Nn=t);On=e,tr(r)}(),zn=0}}function er(){var e=qn.now(),t=e-Vn;t>Hn&&(Un-=t,Vn=e)}function tr(e){jn||(Bn&&(Bn=clearTimeout(Bn)),e-zn>24?(e<1/0&&(Bn=setTimeout(Qn,e-qn.now()-Un)),Wn&&(Wn=clearInterval(Wn))):(Wn||(Vn=qn.now(),Wn=setInterval(er,Hn)),jn=1,Kn(Qn)))}Zn.prototype=Xn.prototype={constructor:Zn,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Gn():+n)+(null==t?0:+t),this._next||On===this||(On?On._next=this:Nn=this,On=this),this._call=e,this._time=n,tr()},stop:function(){this._call&&(this._call=null,this._time=1/0,tr())}};var nr=function(e,t,n){var r=new Zn;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},rr=ge("start","end","cancel","interrupt"),ir=[],or=0,sr=1,ar=2,ur=3,lr=4,cr=5,dr=6,hr=function(e,t,n,r,i,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var l,c,d,h;if(n.state!==sr)return a();for(l in i)if((h=i[l]).name===n.name){if(h.state===ur)return nr(o);h.state===lr?(h.state=dr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[l]):+lor)throw new Error("too late; already scheduled");return n}function pr(e,t){var n=gr(e,t);if(n.state>ur)throw new Error("too late; already running");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var mr,_r,yr,vr,br=function(e,t){var n,r,i,o=e.__transition,s=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>ar&&n.state180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Mn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,s.rotate,a,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Mn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,s.skewX,a,u),function(e,t,n,r,o,s){if(e!==n||t!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:Mn(e,n)},{i:a-2,x:Mn(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,a,u),o=s=null,function(e){for(var t,n=-1,r=u.length;++n=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?fr:pr;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}var Ur=Mt.prototype.constructor;function qr(e){return function(){this.style.removeProperty(e)}}function Kr(e,t,n){var r,i;function o(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}(e,o,n)),r}return o._value=t,o}function Gr(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&function(e){return function(t){this.textContent=e.call(this,t)}}(r)),t}return r._value=e,r}var $r=0;function Zr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Xr(e){return Mt().transition(e)}function Jr(){return++$r}var Qr=Mt.prototype;function ei(e){return e*e*e}function ti(e){return--e*e*e+1}function ni(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Zr.prototype=Xr.prototype={constructor:Zr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_e(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;ssr&&n.name===t)return new Zr([[e]],oi,t,+r);return null},ai=function(e){return function(){return e}},ui=function(e,t,n){this.target=e,this.type=t,this.selection=n};function li(){pt.stopImmediatePropagation()}var ci=function(){pt.preventDefault(),pt.stopImmediatePropagation()},di={name:"drag"},hi={name:"space"},fi={name:"handle"},pi={name:"center"};function gi(e){return[+e[0],+e[1]]}function mi(e){return[gi(e[0]),gi(e[1])]}var _i={name:"x",handles:["w","e"].map(Li),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},yi={name:"y",handles:["n","s"].map(Li),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},vi={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Li),input:function(e){return null==e?null:mi(e)},output:function(e){return e}},bi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},wi={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Ci={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Si={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Li(e){return{type:e}}function ki(){return!pt.ctrlKey&&!pt.button}function Mi(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Di(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ei(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Ti(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Ni(){return Ii(_i)}function Oi(){return Ii(yi)}var Ai=function(){return Ii(vi)};function Ii(e){var t,n=Mi,r=ki,i=Di,o=!0,s=ge("start","brush","end"),a=6;function u(t){var n=t.property("__brush",g).selectAll(".overlay").data([Li("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",bi.overlay).merge(n).each((function(){var e=Ei(this).extent;Dt(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])})),t.selectAll(".selection").data([Li("selection")]).enter().append("rect").attr("class","selection").attr("cursor",bi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,(function(e){return e.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(e){return"handle handle--"+e.type})).attr("cursor",(function(e){return bi[e.type]})),t.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(i).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var e=Dt(this),t=Ei(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",(function(e){return"e"===e.type[e.type.length-1]?t[1][0]-a/2:t[0][0]-a/2})).attr("y",(function(e){return"s"===e.type[0]?t[1][1]-a/2:t[0][1]-a/2})).attr("width",(function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+a:a})).attr("height",(function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+a:a}))):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(e,t,n){return!n&&e.__brush.emitter||new d(e,t)}function d(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function h(){if((!t||pt.touches)&&r.apply(this,arguments)){var n,i,s,a,u,d,h,f,p,g,m,_,y=this,v=pt.target.__data__.type,b="selection"===(o&&pt.metaKey?v="overlay":v)?di:o&&pt.altKey?pi:fi,w=e===yi?null:Si[v],C=e===_i?null:xi[v],S=Ei(y),x=S.extent,L=S.selection,k=x[0][0],M=x[0][1],D=x[1][0],E=x[1][1],T=0,N=0,O=w&&C&&o&&pt.shiftKey,A=pt.touches?(_=pt.changedTouches[0].identifier,function(e){return Fn(e,pt.touches,_)}):Yn,I=A(y),P=I,R=c(y,arguments,!0).beforestart();"overlay"===v?(L&&(p=!0),S.selection=L=[[n=e===yi?k:I[0],s=e===_i?M:I[1]],[u=e===yi?D:n,h=e===_i?E:s]]):(n=L[0][0],s=L[0][1],u=L[1][0],h=L[1][1]),i=n,a=s,d=u,f=h;var F=Dt(y).attr("pointer-events","none"),Y=F.selectAll(".overlay").attr("cursor",bi[v]);if(pt.touches)R.moved=B,R.ended=H;else{var j=Dt(pt.view).on("mousemove.brush",B,!0).on("mouseup.brush",H,!0);o&&j.on("keydown.brush",(function(){switch(pt.keyCode){case 16:O=w&&C;break;case 18:b===fi&&(w&&(u=d-T*w,n=i+T*w),C&&(h=f-N*C,s=a+N*C),b=pi,W());break;case 32:b!==fi&&b!==pi||(w<0?u=d-T:w>0&&(n=i-T),C<0?h=f-N:C>0&&(s=a-N),b=hi,Y.attr("cursor",bi.selection),W());break;default:return}ci()}),!0).on("keyup.brush",(function(){switch(pt.keyCode){case 16:O&&(g=m=O=!1,W());break;case 18:b===pi&&(w<0?u=d:w>0&&(n=i),C<0?h=f:C>0&&(s=a),b=fi,W());break;case 32:b===hi&&(pt.altKey?(w&&(u=d-T*w,n=i+T*w),C&&(h=f-N*C,s=a+N*C),b=pi):(w<0?u=d:w>0&&(n=i),C<0?h=f:C>0&&(s=a),b=fi),Y.attr("cursor",bi[v]),W());break;default:return}ci()}),!0),Nt(pt.view)}li(),br(y),l.call(y),R.start()}function B(){var e=A(y);!O||g||m||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?m=!0:g=!0),P=e,p=!0,ci(),W()}function W(){var e;switch(T=P[0]-I[0],N=P[1]-I[1],b){case hi:case di:w&&(T=Math.max(k-n,Math.min(D-u,T)),i=n+T,d=u+T),C&&(N=Math.max(M-s,Math.min(E-h,N)),a=s+N,f=h+N);break;case fi:w<0?(T=Math.max(k-n,Math.min(D-n,T)),i=n+T,d=u):w>0&&(T=Math.max(k-u,Math.min(D-u,T)),i=n,d=u+T),C<0?(N=Math.max(M-s,Math.min(E-s,N)),a=s+N,f=h):C>0&&(N=Math.max(M-h,Math.min(E-h,N)),a=s,f=h+N);break;case pi:w&&(i=Math.max(k,Math.min(D,n-T*w)),d=Math.max(k,Math.min(D,u+T*w))),C&&(a=Math.max(M,Math.min(E,s-N*C)),f=Math.max(M,Math.min(E,h+N*C)))}d1e-6)if(Math.abs(c*a-u*l)>1e-6&&i){var h=n-o,f=r-s,p=a*a+u*u,g=h*h+f*f,m=Math.sqrt(p),_=Math.sqrt(d),y=i*Math.tan((Ui-Math.acos((p+d-g)/(2*m*_)))/2),v=y/_,b=y/m;Math.abs(v-1)>1e-6&&(this._+="L"+(e+v*l)+","+(t+v*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*f)+","+(this._x1=e+b*a)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t,o=!!o;var s=(n=+n)*Math.cos(r),a=n*Math.sin(r),u=e+s,l=t+a,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%qi+qi),d>Ki?this._+="A"+n+","+n+",0,1,"+c+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=Ui)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Zi=$i;function Xi(e){return e.source}function Ji(e){return e.target}function Qi(e){return e.radius}function eo(e){return e.startAngle}function to(e){return e.endAngle}var no=function(){var e=Xi,t=Ji,n=Qi,r=eo,i=to,o=null;function s(){var s,a=Vi.call(arguments),u=e.apply(this,a),l=t.apply(this,a),c=+n.apply(this,(a[0]=u,a)),d=r.apply(this,a)-Yi,h=i.apply(this,a)-Yi,f=c*Pi(d),p=c*Ri(d),g=+n.apply(this,(a[0]=l,a)),m=r.apply(this,a)-Yi,_=i.apply(this,a)-Yi;if(o||(o=s=Zi()),o.moveTo(f,p),o.arc(0,0,c,d,h),d===m&&h===_||(o.quadraticCurveTo(0,0,g*Pi(m),g*Ri(m)),o.arc(0,0,g,m,_)),o.quadraticCurveTo(0,0,f,p),o.closePath(),s)return o=null,s+""||null}return s.radius=function(e){return arguments.length?(n="function"==typeof e?e:zi(+e),s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:zi(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:zi(+e),s):i},s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(e){return arguments.length?(t=e,s):t},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s};function ro(){}function io(e,t){var n=new ro;if(e instanceof ro)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var u,l,c,d=-1,h=n.length,f=r[i++],p=oo(),g=s();++dr.length)return n;var s,a=i[o-1];return null!=t&&o>=r.length?s=n.entries():(s=[],n.each((function(t,n){s.push({key:n,values:e(t,o)})}))),null!=a?s.sort((function(e,t){return a(e.key,t.key)})):s}(o(e,0,lo,co),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function ao(){return{}}function uo(e,t,n){e[t]=n}function lo(){return oo()}function co(e,t,n){e.set(t,n)}function ho(){}var fo=oo.prototype;function po(e,t){var n=new ho;if(e instanceof ho)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++rMo?Math.pow(e,1/3):e/ko+xo}function Ao(e){return e>Lo?e*e*e:ko*(e-xo)}function Io(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Po(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ro(e){if(e instanceof jo)return new jo(e.h,e.c,e.l,e.opacity);if(e instanceof No||(e=Do(e)),0===e.a&&0===e.b)return new jo(NaN,0r!=f>r&&n<(h-l)*(r-c)/(f-c)+l&&(i=-i)}return i}function ts(e,t,n){var r,i,o,s;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],s=t[r],i<=o&&o<=s||s<=o&&o<=i)}var ns=function(){},rs=[[],[[[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]]],[]],is=function(){var e=1,t=1,n=E,r=a;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(Zo);else{var r=m(e),i=r[0],s=r[1];t=D(i,s,t),t=C(Math.floor(i/t)*t,Math.floor(s/t)*t,t)}return t.map((function(t){return o(e,t)}))}function o(n,i){var o=[],a=[];return function(n,r,i){var o,a,u,l,c,d,h=new Array,f=new Array;o=a=-1,l=n[0]>=r,rs[l<<1].forEach(p);for(;++o=r,rs[u|l<<1].forEach(p);rs[l<<0].forEach(p);for(;++a=r,c=n[a*e]>=r,rs[l<<1|c<<2].forEach(p);++o=r,d=c,c=n[a*e+o+1]>=r,rs[u|l<<1|c<<2|d<<3].forEach(p);rs[l|c<<3].forEach(p)}o=-1,c=n[a*e]>=r,rs[c<<2].forEach(p);for(;++o=r,rs[c<<2|d<<3].forEach(p);function p(e){var t,n,r=[e[0][0]+o,e[0][1]+a],u=[e[1][0]+o,e[1][1]+a],l=s(r),c=s(u);(t=f[l])?(n=h[c])?(delete f[t.end],delete h[n.start],t===n?(t.ring.push(u),i(t.ring)):h[t.start]=f[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete f[t.end],t.ring.push(u),f[t.end=c]=t):(t=h[c])?(n=f[l])?(delete h[t.start],delete f[n.end],t===n?(t.ring.push(u),i(t.ring)):h[n.start]=f[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=l]=t):h[l]=f[c]={start:l,end:c,ring:[r,u]}}rs[c<<3].forEach(p)}(n,i,(function(e){r(e,n,i),Xo(e)>0?o.push([e]):a.push(e)})),a.forEach((function(e){for(var t,n=0,r=o.length;n0&&s0&&a0&&o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?Jo($o.call(e)):Jo(e),i):n},i.smooth=function(e){return arguments.length?(r=e?a:ns,i):r===a},i};function os(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),s=0;s=n&&(a>=o&&(u-=e.data[a-o+s*r]),t.data[a-n+s*r]=u/Math.min(a+1,r-1+o-a,o))}function ss(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),s=0;s=n&&(a>=o&&(u-=e.data[s+(a-o)*r]),t.data[s+(a-n)*r]=u/Math.min(a+1,i-1+o-a,o))}function as(e){return e[0]}function us(e){return e[1]}function ls(){return 1}var cs=function(){var e=as,t=us,n=ls,r=960,i=500,o=20,s=2,a=3*o,u=r+2*a>>s,l=i+2*a>>s,c=Jo(20);function d(r){var i=new Float32Array(u*l),d=new Float32Array(u*l);r.forEach((function(r,o,c){var d=+e(r,o,c)+a>>s,h=+t(r,o,c)+a>>s,f=+n(r,o,c);d>=0&&d=0&&h>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s),os({width:u,height:l,data:i},{width:u,height:l,data:d},o>>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s),os({width:u,height:l,data:i},{width:u,height:l,data:d},o>>s),ss({width:u,height:l,data:d},{width:u,height:l,data:i},o>>s);var f=c(i);if(!Array.isArray(f)){var p=I(i);f=D(0,p,f),(f=C(0,Math.floor(p/f)*f,f)).shift()}return is().thresholds(f).size([u,l])(i).map(h)}function h(e){return e.value*=Math.pow(2,-2*s),e.coordinates.forEach(f),e}function f(e){e.forEach(p)}function p(e){e.forEach(g)}function g(e){e[0]=e[0]*Math.pow(2,s)-a,e[1]=e[1]*Math.pow(2,s)-a}function m(){return u=r+2*(a=3*o)>>s,l=i+2*a>>s,d}return d.x=function(t){return arguments.length?(e="function"==typeof t?t:Jo(+t),d):e},d.y=function(e){return arguments.length?(t="function"==typeof e?e:Jo(+e),d):t},d.weight=function(e){return arguments.length?(n="function"==typeof e?e:Jo(+e),d):n},d.size=function(e){if(!arguments.length)return[r,i];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return r=t,i=n,m()},d.cellSize=function(e){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(e)/Math.LN2),m()},d.thresholds=function(e){return arguments.length?(c="function"==typeof e?e:Array.isArray(e)?Jo($o.call(e)):Jo(e),d):c},d.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),m()},d},ds=function(e){return function(){return e}};function hs(e,t,n,r,i,o,s,a,u,l){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=s,this.dx=a,this.dy=u,this._=l}function fs(){return!pt.ctrlKey&&!pt.button}function ps(){return this.parentNode}function gs(e){return null==e?{x:pt.x,y:pt.y}:e}function ms(){return navigator.maxTouchPoints||"ontouchstart"in this}hs.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var _s=function(){var e,t,n,r,i=fs,o=ps,s=gs,a=ms,u={},l=ge("start","drag","end"),c=0,d=0;function h(e){e.on("mousedown.drag",f).filter(a).on("touchstart.drag",m).on("touchmove.drag",_).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function f(){if(!r&&i.apply(this,arguments)){var s=v("mouse",o.apply(this,arguments),Yn,this,arguments);s&&(Dt(pt.view).on("mousemove.drag",p,!0).on("mouseup.drag",g,!0),Nt(pt.view),Et(),n=!1,e=pt.clientX,t=pt.clientY,s("start"))}}function p(){if(Tt(),!n){var r=pt.clientX-e,i=pt.clientY-t;n=r*r+i*i>d}u.mouse("drag")}function g(){Dt(pt.view).on("mousemove.drag mouseup.drag",null),Ot(pt.view,n),Tt(),u.mouse("end")}function m(){if(i.apply(this,arguments)){var e,t,n=pt.changedTouches,r=o.apply(this,arguments),s=n.length;for(e=0;e9999?"+"+Ls(t,6):Ls(t,4))+"-"+Ls(e.getUTCMonth()+1,2)+"-"+Ls(e.getUTCDate(),2)+(o?"T"+Ls(n,2)+":"+Ls(r,2)+":"+Ls(i,2)+"."+Ls(o,3)+"Z":i?"T"+Ls(n,2)+":"+Ls(r,2)+":"+Ls(i,2)+"Z":r||n?"T"+Ls(n,2)+":"+Ls(r,2)+"Z":"")}var Ms=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,s=0,a=0,u=o<=0,l=!1;function c(){if(u)return vs;if(l)return l=!1,ys;var t,r,i=s;if(e.charCodeAt(i)===bs){for(;s++=o?u=!0:(r=e.charCodeAt(s++))===ws?l=!0:r===Cs&&(l=!0,e.charCodeAt(s)===ws&&++s),e.slice(i+1,t-1).replace(/""/g,'"')}for(;s=(o=(g+_)/2))?g=o:_=o,(c=n>=(s=(m+y)/2))?m=s:y=s,i=f,!(f=f[d=c<<1|l]))return i[d]=p,e;if(a=+e._x.call(null,f.data),u=+e._y.call(null,f.data),t===a&&n===u)return p.next=f,i?i[d]=p:e._root=p,e;do{i=i?i[d]=new Array(4):e._root=new Array(4),(l=t>=(o=(g+_)/2))?g=o:_=o,(c=n>=(s=(m+y)/2))?m=s:y=s}while((d=c<<1|l)==(h=(u>=s)<<1|a>=o));return i[h]=f,i[d]=p,e}var Xa=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i};function Ja(e){return e[0]}function Qa(e){return e[1]}function eu(e,t,n){var r=new tu(null==t?Ja:t,null==n?Qa:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function tu(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function nu(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ru=eu.prototype=tu.prototype;function iu(e){return e.x+e.vx}function ou(e){return e.y+e.vy}ru.copy=function(){var e,t,n=new tu(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=nu(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=nu(t));return n},ru.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return Za(this.cover(t,n),t,n,e)},ru.addAll=function(e){var t,n,r,i,o=e.length,s=new Array(o),a=new Array(o),u=1/0,l=1/0,c=-1/0,d=-1/0;for(n=0;nc&&(c=r),id&&(d=i));if(u>c||l>d)return this;for(this.cover(u,l).cover(c,d),n=0;ne||e>=i||r>t||t>=o;)switch(a=(th||(o=u.y0)>f||(s=u.x1)=_)<<1|e>=m)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=u)}else{var y=e-+this._x.call(null,g.data),v=t-+this._y.call(null,g.data),b=y*y+v*v;if(b=(a=(p+m)/2))?p=a:m=a,(c=s>=(u=(g+_)/2))?g=u:_=u,t=f,!(f=f[d=c<<1|l]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;f.data!==e;)if(r=f,!(f=f.next))return this;return(i=f.next)&&delete f.next,r?(i?r.next=i:delete r.next,this):t?(i?t[d]=i:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=i,this)},ru.removeAll=function(e){for(var t=0,n=e.length;tu+f||il+f||oa.index){var p=u-s.x-s.vx,g=l-s.y-s.vy,m=p*p+g*g;me.r&&(e.r=e[t].r)}function a(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r1?(null==n?a.remove(e):a.set(e,f(n)),t):a.get(e)},find:function(t,n,r){var i,o,s,a,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.on(e)}}},gu=function(){var e,t,n,r,i=Ga(-30),o=1,s=1/0,a=.81;function u(r){var i,o=e.length,s=eu(e,cu,du).visitAfter(c);for(n=r,i=0;i=s)){(e.data!==t||e.next)&&(0===c&&(f+=(c=$a())*c),0===d&&(f+=(d=$a())*d),f1?r[0]+r.slice(2):r,+e.slice(n+1)]},bu=function(e){return(e=vu(Math.abs(e)))?e[1]:NaN},wu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Cu(e){if(!(t=wu.exec(e)))throw new Error("invalid format: "+e);var t;return new Su({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Su(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}Cu.prototype=Su.prototype,Su.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var xu,Lu,ku,Mu,Du=function(e){e:for(var t,n=e.length,r=1,i=-1;r0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Eu=function(e,t){var n=vu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Tu={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Eu(100*e,t)},r:Eu,s:function(e,t){var n=vu(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+vu(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Nu=function(e){return e},Ou=Array.prototype.map,Au=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Iu=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Nu:(t=Ou.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],s=0,a=t[0],u=0;i>0&&a>0&&(u+a+1>r&&(a=Math.max(1,r-u)),o.push(e.substring(i-=a,i+a)),!((u+=a+1)>r));)a=t[s=(s+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",s=void 0===e.decimal?".":e.decimal+"",a=void 0===e.numerals?Nu:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ou.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=Cu(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,g=e.comma,m=e.precision,_=e.trim,y=e.type;"n"===y?(g=!0,y="g"):Tu[y]||(void 0===m&&(m=12),_=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var v="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===h?o:/[%p]/.test(y)?u:"",w=Tu[y],C=/[defgprs%]/.test(y);function S(e){var i,o,u,h=v,S=b;if("c"===y)S=w(e)+S,e="";else{var x=(e=+e)<0;if(e=isNaN(e)?c:w(Math.abs(e),m),_&&(e=Du(e)),x&&0==+e&&(x=!1),h=(x?"("===d?d:l:"-"===d||"("===d?"":d)+h,S=("s"===y?Au[8+xu/3]:"")+S+(x&&"("===d?")":""),C)for(i=-1,o=e.length;++i(u=e.charCodeAt(i))||u>57){S=(46===u?s+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!f&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}return a(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=Cu(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3))),i=Math.pow(10,-r),o=Au[8+r/3];return function(e){return n(i*e)+o}}}};function Pu(e){return Lu=Iu(e),ku=Lu.format,Mu=Lu.formatPrefix,Lu}Pu({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Ru=function(e){return Math.max(0,-bu(Math.abs(e)))},Fu=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(bu(t)/3)))-bu(Math.abs(e)))},Yu=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,bu(t)-bu(e))+1},ju=function(){return new Bu};function Bu(){this.reset()}Bu.prototype={constructor:Bu,reset:function(){this.s=this.t=0},add:function(e){Hu(Wu,e,this.t),Hu(this,Wu.s,this.s),this.s?this.t+=Wu.t:this.s=Wu.t},valueOf:function(){return this.s}};var Wu=new Bu;function Hu(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Vu=1e-6,zu=1e-12,Uu=Math.PI,qu=Uu/2,Ku=Uu/4,Gu=2*Uu,$u=180/Uu,Zu=Uu/180,Xu=Math.abs,Ju=Math.atan,Qu=Math.atan2,el=Math.cos,tl=Math.ceil,nl=Math.exp,rl=(Math.floor,Math.log),il=Math.pow,ol=Math.sin,sl=Math.sign||function(e){return e>0?1:e<0?-1:0},al=Math.sqrt,ul=Math.tan;function ll(e){return e>1?0:e<-1?Uu:Math.acos(e)}function cl(e){return e>1?qu:e<-1?-qu:Math.asin(e)}function dl(e){return(e=ol(e/2))*e}function hl(){}function fl(e,t){e&&gl.hasOwnProperty(e.type)&&gl[e.type](e,t)}var pl={Feature:function(e,t){fl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=el(t=(t*=Zu)/2+Ku),s=ol(t),a=Cl*s,u=wl*o+a*el(i),l=a*r*ol(i);xl.add(Qu(l,u)),bl=e,wl=o,Cl=s}var Nl=function(e){return Ll.reset(),Sl(e,kl),2*Ll};function Ol(e){return[Qu(e[1],e[0]),cl(e[2])]}function Al(e){var t=e[0],n=e[1],r=el(n);return[r*el(t),r*ol(t),ol(n)]}function Il(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Pl(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Rl(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Fl(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Yl(e){var t=al(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var jl,Bl,Wl,Hl,Vl,zl,Ul,ql,Kl,Gl,$l=ju(),Zl={point:Xl,lineStart:Ql,lineEnd:ec,polygonStart:function(){Zl.point=tc,Zl.lineStart=nc,Zl.lineEnd=rc,$l.reset(),kl.polygonStart()},polygonEnd:function(){kl.polygonEnd(),Zl.point=Xl,Zl.lineStart=Ql,Zl.lineEnd=ec,xl<0?(jl=-(Wl=180),Bl=-(Hl=90)):$l>Vu?Hl=90:$l<-Vu&&(Bl=-90),Gl[0]=jl,Gl[1]=Wl},sphere:function(){jl=-(Wl=180),Bl=-(Hl=90)}};function Xl(e,t){Kl.push(Gl=[jl=e,Wl=e]),tHl&&(Hl=t)}function Jl(e,t){var n=Al([e*Zu,t*Zu]);if(ql){var r=Pl(ql,n),i=Pl([r[1],-r[0],0],r);Yl(i),i=Ol(i);var o,s=e-Vl,a=s>0?1:-1,u=i[0]*$u*a,l=Xu(s)>180;l^(a*VlHl&&(Hl=o):l^(a*Vl<(u=(u+360)%360-180)&&uHl&&(Hl=t)),l?eic(jl,Wl)&&(Wl=e):ic(e,Wl)>ic(jl,Wl)&&(jl=e):Wl>=jl?(eWl&&(Wl=e)):e>Vl?ic(jl,e)>ic(jl,Wl)&&(Wl=e):ic(e,Wl)>ic(jl,Wl)&&(jl=e)}else Kl.push(Gl=[jl=e,Wl=e]);tHl&&(Hl=t),ql=n,Vl=e}function Ql(){Zl.point=Jl}function ec(){Gl[0]=jl,Gl[1]=Wl,Zl.point=Xl,ql=null}function tc(e,t){if(ql){var n=e-Vl;$l.add(Xu(n)>180?n+(n>0?360:-360):n)}else zl=e,Ul=t;kl.point(e,t),Jl(e,t)}function nc(){kl.lineStart()}function rc(){tc(zl,Ul),kl.lineEnd(),Xu($l)>Vu&&(jl=-(Wl=180)),Gl[0]=jl,Gl[1]=Wl,ql=null}function ic(e,t){return(t-=e)<0?t+360:t}function oc(e,t){return e[0]-t[0]}function sc(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tic(r[0],r[1])&&(r[1]=i[1]),ic(i[0],r[1])>ic(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(a=ic(r[1],i[0]))>s&&(s=a,jl=i[0],Wl=r[1])}return Kl=Gl=null,jl===1/0||Bl===1/0?[[NaN,NaN],[NaN,NaN]]:[[jl,Bl],[Wl,Hl]]},xc={sphere:hl,point:Lc,lineStart:Mc,lineEnd:Tc,polygonStart:function(){xc.lineStart=Nc,xc.lineEnd=Oc},polygonEnd:function(){xc.lineStart=Mc,xc.lineEnd=Tc}};function Lc(e,t){e*=Zu;var n=el(t*=Zu);kc(n*el(e),n*ol(e),ol(t))}function kc(e,t,n){++ac,lc+=(e-lc)/ac,cc+=(t-cc)/ac,dc+=(n-dc)/ac}function Mc(){xc.point=Dc}function Dc(e,t){e*=Zu;var n=el(t*=Zu);bc=n*el(e),wc=n*ol(e),Cc=ol(t),xc.point=Ec,kc(bc,wc,Cc)}function Ec(e,t){e*=Zu;var n=el(t*=Zu),r=n*el(e),i=n*ol(e),o=ol(t),s=Qu(al((s=wc*o-Cc*i)*s+(s=Cc*r-bc*o)*s+(s=bc*i-wc*r)*s),bc*r+wc*i+Cc*o);uc+=s,hc+=s*(bc+(bc=r)),fc+=s*(wc+(wc=i)),pc+=s*(Cc+(Cc=o)),kc(bc,wc,Cc)}function Tc(){xc.point=Lc}function Nc(){xc.point=Ac}function Oc(){Ic(yc,vc),xc.point=Lc}function Ac(e,t){yc=e,vc=t,e*=Zu,t*=Zu,xc.point=Ic;var n=el(t);bc=n*el(e),wc=n*ol(e),Cc=ol(t),kc(bc,wc,Cc)}function Ic(e,t){e*=Zu;var n=el(t*=Zu),r=n*el(e),i=n*ol(e),o=ol(t),s=wc*o-Cc*i,a=Cc*r-bc*o,u=bc*i-wc*r,l=al(s*s+a*a+u*u),c=cl(l),d=l&&-c/l;gc+=d*s,mc+=d*a,_c+=d*u,uc+=c,hc+=c*(bc+(bc=r)),fc+=c*(wc+(wc=i)),pc+=c*(Cc+(Cc=o)),kc(bc,wc,Cc)}var Pc=function(e){ac=uc=lc=cc=dc=hc=fc=pc=gc=mc=_c=0,Sl(e,xc);var t=gc,n=mc,r=_c,i=t*t+n*n+r*r;return iUu?e+Math.round(-e/Gu)*Gu:e,t]}function jc(e,t,n){return(e%=Gu)?t||n?Fc(Wc(e),Hc(t,n)):Wc(e):t||n?Hc(t,n):Yc}function Bc(e){return function(t,n){return[(t+=e)>Uu?t-Gu:t<-Uu?t+Gu:t,n]}}function Wc(e){var t=Bc(e);return t.invert=Bc(-e),t}function Hc(e,t){var n=el(e),r=ol(e),i=el(t),o=ol(t);function s(e,t){var s=el(t),a=el(e)*s,u=ol(e)*s,l=ol(t),c=l*n+a*r;return[Qu(u*i-c*o,a*n-l*r),cl(c*i+u*o)]}return s.invert=function(e,t){var s=el(t),a=el(e)*s,u=ol(e)*s,l=ol(t),c=l*i-u*o;return[Qu(u*i+l*o,a*n+c*r),cl(c*n-a*r)]},s}Yc.invert=Yc;var Vc=function(e){function t(t){return(t=e(t[0]*Zu,t[1]*Zu))[0]*=$u,t[1]*=$u,t}return e=jc(e[0]*Zu,e[1]*Zu,e.length>2?e[2]*Zu:0),t.invert=function(t){return(t=e.invert(t[0]*Zu,t[1]*Zu))[0]*=$u,t[1]*=$u,t},t};function zc(e,t,n,r,i,o){if(n){var s=el(t),a=ol(t),u=r*n;null==i?(i=t+r*Gu,o=t-u/2):(i=Uc(s,i),o=Uc(s,o),(r>0?io)&&(i+=r*Gu));for(var l,c=i;r>0?c>o:c1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Gc=function(e,t){return Xu(e[0]-t[0])=0;--o)i.point((c=l[o])[0],c[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,f=!f}while(!h.v);i.lineEnd()}}};function Xc(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r=0?1:-1,L=x*S,k=L>Uu,M=g*w;if(Jc.add(Qu(M*x*ol(L),m*C+M*el(L))),s+=k?S+x*Gu:S,k^f>=n^v>=n){var D=Pl(Al(h),Al(y));Yl(D);var E=Pl(o,D);Yl(E);var T=(k^S>=0?-1:1)*cl(E[2]);(r>T||r===T&&(D[0]||D[1]))&&(a+=k^S>=0?1:-1)}}return(s<-Vu||s0){for(d||(i.polygonStart(),d=!0),i.lineStart(),e=0;e1&&2&u&&h.push(h.pop().concat(h.shift())),s.push(h.filter(nd))}return h}};function nd(e){return e.length>1}function rd(e,t){return((e=e.x)[0]<0?e[1]-qu-Vu:qu-e[1])-((t=t.x)[0]<0?t[1]-qu-Vu:qu-t[1])}var id=td((function(){return!0}),(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,s){var a=o>0?Uu:-Uu,u=Xu(o-n);Xu(u-Uu)0?qu:-qu),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),e.point(o,r),t=0):i!==a&&u>=Uu&&(Xu(n-i)Vu?Ju((ol(t)*(o=el(r))*ol(n)-ol(r)*(i=el(t))*ol(e))/(i*o*s)):(t+r)/2}(n,r,o,s),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(a,r),t=0),e.point(n=o,r=s),i=a},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*qu,r.point(-Uu,i),r.point(0,i),r.point(Uu,i),r.point(Uu,0),r.point(Uu,-i),r.point(0,-i),r.point(-Uu,-i),r.point(-Uu,0),r.point(-Uu,i);else if(Xu(e[0]-t[0])>Vu){var o=e[0]0,i=Xu(t)>Vu;function o(e,n){return el(e)*el(n)>t}function s(e,n,r){var i=[1,0,0],o=Pl(Al(e),Al(n)),s=Il(o,o),a=o[0],u=s-a*a;if(!u)return!r&&e;var l=t*s/u,c=-t*a/u,d=Pl(i,o),h=Fl(i,l);Rl(h,Fl(o,c));var f=d,p=Il(h,f),g=Il(f,f),m=p*p-g*(Il(h,h)-1);if(!(m<0)){var _=al(m),y=Fl(f,(-p-_)/g);if(Rl(y,h),y=Ol(y),!r)return y;var v,b=e[0],w=n[0],C=e[1],S=n[1];w0^y[1]<(Xu(y[0]-b)Uu^(b<=y[0]&&y[0]<=w)){var k=Fl(f,(-p+_)/g);return Rl(k,h),[y,Ol(k)]}}}function a(t,n){var i=r?e:Uu-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return td(o,(function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(d,h){var f,p=[d,h],g=o(d,h),m=r?g?0:a(d,h):g?a(d+(d<0?Uu:-Uu),h):0;if(!t&&(l=u=g)&&e.lineStart(),g!==u&&(!(f=s(t,p))||Gc(t,f)||Gc(p,f))&&(p[0]+=Vu,p[1]+=Vu,g=o(p[0],p[1])),g!==u)c=0,g?(e.lineStart(),f=s(p,t),e.point(f[0],f[1])):(f=s(t,p),e.point(f[0],f[1]),e.lineEnd()),t=f;else if(i&&t&&r^g){var _;m&n||!(_=s(p,t,!0))||(c=0,r?(e.lineStart(),e.point(_[0][0],_[0][1]),e.point(_[1][0],_[1][1]),e.lineEnd()):(e.point(_[1][0],_[1][1]),e.lineEnd(),e.lineStart(),e.point(_[0][0],_[0][1])))}!g||t&&Gc(t,p)||e.point(p[0],p[1]),t=p,u=g,n=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}}),(function(t,r,i,o){zc(o,e,n,i,t,r)}),r?[0,-e]:[-Uu,e-Uu])},sd=function(e,t,n,r,i,o){var s,a=e[0],u=e[1],l=0,c=1,d=t[0]-a,h=t[1]-u;if(s=n-a,d||!(s>0)){if(s/=d,d<0){if(s0){if(s>c)return;s>l&&(l=s)}if(s=i-a,d||!(s<0)){if(s/=d,d<0){if(s>c)return;s>l&&(l=s)}else if(d>0){if(s0)){if(s/=h,h<0){if(s0){if(s>c)return;s>l&&(l=s)}if(s=o-u,h||!(s<0)){if(s/=h,h<0){if(s>c)return;s>l&&(l=s)}else if(h>0){if(s0&&(e[0]=a+l*d,e[1]=u+l*h),c<1&&(t[0]=a+c*d,t[1]=u+c*h),!0}}}}},ad=1e9,ud=-ad;function ld(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,a,l){var c=0,d=0;if(null==i||(c=s(i,a))!==(d=s(o,a))||u(i,o)<0^a>0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+a+4)%4)!==d);else l.point(o[0],o[1])}function s(r,i){return Xu(r[0]-e)0?0:3:Xu(r[0]-n)0?2:1:Xu(r[1]-t)0?1:0:i>0?3:2}function a(e,t){return u(e.x,t.x)}function u(e,t){var n=s(e,1),r=s(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){var u,l,c,d,h,f,p,g,m,_,y,v=s,b=Kc(),w={point:C,lineStart:function(){w.point=S,l&&l.push(c=[]);_=!0,m=!1,p=g=NaN},lineEnd:function(){u&&(S(d,h),f&&m&&b.rejoin(),u.push(b.result()));w.point=C,m&&v.lineEnd()},polygonStart:function(){v=b,u=[],l=[],y=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=l.length;nr&&(h-o)*(r-s)>(f-s)*(e-o)&&++t:f<=r&&(h-o)*(r-s)<(f-s)*(e-o)&&--t;return t}(),n=y&&t,i=(u=F(u)).length;(n||i)&&(s.polygonStart(),n&&(s.lineStart(),o(null,null,1,s),s.lineEnd()),i&&Zc(u,a,t,o,s),s.polygonEnd());v=s,u=l=c=null}};function C(e,t){i(e,t)&&v.point(e,t)}function S(o,s){var a=i(o,s);if(l&&c.push([o,s]),_)d=o,h=s,f=a,_=!1,a&&(v.lineStart(),v.point(o,s));else if(a&&m)v.point(o,s);else{var u=[p=Math.max(ud,Math.min(ad,p)),g=Math.max(ud,Math.min(ad,g))],b=[o=Math.max(ud,Math.min(ad,o)),s=Math.max(ud,Math.min(ad,s))];sd(u,b,e,t,n,r)?(m||(v.lineStart(),v.point(u[0],u[1])),v.point(b[0],b[1]),a||v.lineEnd(),y=!1):a&&(v.lineStart(),v.point(o,s),y=!1)}p=o,g=s,m=a}return w}}var cd,dd,hd,fd=function(){var e,t,n,r=0,i=0,o=960,s=500;return n={stream:function(n){return e&&t===n?e:e=ld(r,i,o,s)(t=n)},extent:function(a){return arguments.length?(r=+a[0][0],i=+a[0][1],o=+a[1][0],s=+a[1][1],e=t=null,n):[[r,i],[o,s]]}}},pd=ju(),gd={sphere:hl,point:hl,lineStart:function(){gd.point=_d,gd.lineEnd=md},lineEnd:hl,polygonStart:hl,polygonEnd:hl};function md(){gd.point=gd.lineEnd=hl}function _d(e,t){cd=e*=Zu,dd=ol(t*=Zu),hd=el(t),gd.point=yd}function yd(e,t){e*=Zu;var n=ol(t*=Zu),r=el(t),i=Xu(e-cd),o=el(i),s=r*ol(i),a=hd*n-dd*r*o,u=dd*n+hd*r*o;pd.add(Qu(al(s*s+a*a),u)),cd=e,dd=n,hd=r}var vd=function(e){return pd.reset(),Sl(e,gd),+pd},bd=[null,null],wd={type:"LineString",coordinates:bd},Cd=function(e,t){return bd[0]=e,bd[1]=t,vd(wd)},Sd={Feature:function(e,t){return Ld(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r0&&(i=Cd(e[o],e[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))Vu})).map(u)).concat(C(tl(o/f)*f,i,f).filter((function(e){return Xu(e%g)>Vu})).map(l))}return _.lines=function(){return y().map((function(e){return{type:"LineString",coordinates:e}}))},_.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(d(s).slice(1),c(n).reverse().slice(1),d(a).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],a=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),a>s&&(e=a,a=s,s=e),_.precision(m)):[[r,a],[n,s]]},_.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),_.precision(m)):[[t,o],[e,i]]},_.step=function(e){return arguments.length?_.stepMajor(e).stepMinor(e):_.stepMinor()},_.stepMajor=function(e){return arguments.length?(p=+e[0],g=+e[1],_):[p,g]},_.stepMinor=function(e){return arguments.length?(h=+e[0],f=+e[1],_):[h,f]},_.precision=function(h){return arguments.length?(m=+h,u=Od(o,i,90),l=Ad(t,e,m),c=Od(a,s,90),d=Ad(r,n,m),_):m},_.extentMajor([[-180,-90+Vu],[180,90-Vu]]).extentMinor([[-180,-80-Vu],[180,80+Vu]])}function Pd(){return Id()()}var Rd,Fd,Yd,jd,Bd=function(e,t){var n=e[0]*Zu,r=e[1]*Zu,i=t[0]*Zu,o=t[1]*Zu,s=el(r),a=ol(r),u=el(o),l=ol(o),c=s*el(n),d=s*ol(n),h=u*el(i),f=u*ol(i),p=2*cl(al(dl(o-r)+s*u*dl(i-n))),g=ol(p),m=p?function(e){var t=ol(e*=p)/g,n=ol(p-e)/g,r=n*c+t*h,i=n*d+t*f,o=n*a+t*l;return[Qu(i,r)*$u,Qu(o,al(r*r+i*i))*$u]}:function(){return[n*$u,r*$u]};return m.distance=p,m},Wd=function(e){return e},Hd=ju(),Vd=ju(),zd={point:hl,lineStart:hl,lineEnd:hl,polygonStart:function(){zd.lineStart=Ud,zd.lineEnd=Gd},polygonEnd:function(){zd.lineStart=zd.lineEnd=zd.point=hl,Hd.add(Xu(Vd)),Vd.reset()},result:function(){var e=Hd/2;return Hd.reset(),e}};function Ud(){zd.point=qd}function qd(e,t){zd.point=Kd,Rd=Yd=e,Fd=jd=t}function Kd(e,t){Vd.add(jd*e-Yd*t),Yd=e,jd=t}function Gd(){Kd(Rd,Fd)}var $d=zd,Zd=1/0,Xd=Zd,Jd=-Zd,Qd=Jd;var eh,th,nh,rh,ih={point:function(e,t){eJd&&(Jd=e);tQd&&(Qd=t)},lineStart:hl,lineEnd:hl,polygonStart:hl,polygonEnd:hl,result:function(){var e=[[Zd,Xd],[Jd,Qd]];return Jd=Qd=-(Xd=Zd=1/0),e}},oh=0,sh=0,ah=0,uh=0,lh=0,ch=0,dh=0,hh=0,fh=0,ph={point:gh,lineStart:mh,lineEnd:vh,polygonStart:function(){ph.lineStart=bh,ph.lineEnd=wh},polygonEnd:function(){ph.point=gh,ph.lineStart=mh,ph.lineEnd=vh},result:function(){var e=fh?[dh/fh,hh/fh]:ch?[uh/ch,lh/ch]:ah?[oh/ah,sh/ah]:[NaN,NaN];return oh=sh=ah=uh=lh=ch=dh=hh=fh=0,e}};function gh(e,t){oh+=e,sh+=t,++ah}function mh(){ph.point=_h}function _h(e,t){ph.point=yh,gh(nh=e,rh=t)}function yh(e,t){var n=e-nh,r=t-rh,i=al(n*n+r*r);uh+=i*(nh+e)/2,lh+=i*(rh+t)/2,ch+=i,gh(nh=e,rh=t)}function vh(){ph.point=gh}function bh(){ph.point=Ch}function wh(){Sh(eh,th)}function Ch(e,t){ph.point=Sh,gh(eh=nh=e,th=rh=t)}function Sh(e,t){var n=e-nh,r=t-rh,i=al(n*n+r*r);uh+=i*(nh+e)/2,lh+=i*(rh+t)/2,ch+=i,dh+=(i=rh*e-nh*t)*(nh+e),hh+=i*(rh+t),fh+=3*i,gh(nh=e,rh=t)}var xh=ph;function Lh(e){this._context=e}Lh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Gu)}},result:hl};var kh,Mh,Dh,Eh,Th,Nh=ju(),Oh={point:hl,lineStart:function(){Oh.point=Ah},lineEnd:function(){kh&&Ih(Mh,Dh),Oh.point=hl},polygonStart:function(){kh=!0},polygonEnd:function(){kh=null},result:function(){var e=+Nh;return Nh.reset(),e}};function Ah(e,t){Oh.point=Ih,Mh=Eh=e,Dh=Th=t}function Ih(e,t){Eh-=e,Th-=t,Nh.add(al(Eh*Eh+Th*Th)),Eh=e,Th=t}var Ph=Oh;function Rh(){this._string=[]}function Fh(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Rh.prototype={_radius:4.5,_circle:Fh(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Fh(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Yh=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Sl(e,n(r))),r.result()}return o.area=function(e){return Sl(e,n($d)),$d.result()},o.measure=function(e){return Sl(e,n(Ph)),Ph.result()},o.bounds=function(e){return Sl(e,n(ih)),ih.result()},o.centroid=function(e){return Sl(e,n(xh)),xh.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Wd):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new Rh):new Lh(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)},jh=function(e){return{stream:Bh(e)}};function Bh(e){return function(t){var n=new Wh;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Wh(){}function Hh(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Sl(n,e.stream(ih)),t(ih.result()),null!=r&&e.clipExtent(r),e}function Vh(e,t,n){return Hh(e,(function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),s=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([s,a])}),n)}function zh(e,t,n){return Vh(e,[[0,0],t],n)}function Uh(e,t,n){return Hh(e,(function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,s=-i*n[0][1];e.scale(150*i).translate([o,s])}),n)}function qh(e,t,n){return Hh(e,(function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],s=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,s])}),n)}Wh.prototype={constructor:Wh,point:function(e,t){this.stream.point(e,t)},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()}};var Kh=16,Gh=el(30*Zu),$h=function(e,t){return+t?function(e,t){function n(r,i,o,s,a,u,l,c,d,h,f,p,g,m){var _=l-r,y=c-i,v=_*_+y*y;if(v>4*t&&g--){var b=s+h,w=a+f,C=u+p,S=al(b*b+w*w+C*C),x=cl(C/=S),L=Xu(Xu(C)-1)t||Xu((_*E+y*T)/v-.5)>.3||s*h+a*f+u*p2?e[2]%360*Zu:0,M()):[m*$u,_*$u,y*$u]},L.angle=function(e){return arguments.length?(v=e%360*Zu,M()):v*$u},L.precision=function(e){return arguments.length?(s=$h(a,x=e*e),D()):al(x)},L.fitExtent=function(e,t){return Vh(L,e,t)},L.fitSize=function(e,t){return zh(L,e,t)},L.fitWidth=function(e,t){return Uh(L,e,t)},L.fitHeight=function(e,t){return qh(L,e,t)},function(){return t=e.apply(this,arguments),L.invert=t.invert&&k,M()}}function tf(e){var t=0,n=Uu/3,r=ef(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Zu,n=e[1]*Zu):[t*$u,n*$u]},i}function nf(e,t){var n=ol(e),r=(n+ol(t))/2;if(Xu(r)=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:s).invert(e)},c.stream=function(n){return e&&t===n?e:(r=[s.stream(t=n),a.stream(n),u.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n0?t<-qu+Vu&&(t=-qu+Vu):t>qu-Vu&&(t=qu-Vu);var n=i/il(mf(t),r);return[n*ol(r*e),i-n*el(r*e)]}return o.invert=function(e,t){var n=i-t,o=sl(r)*al(e*e+n*n);return[Qu(e,Xu(n))/r*sl(n),2*Ju(il(i/o,1/r))-qu]},o}var yf=function(){return tf(_f).scale(109.5).parallels([30,30])};function vf(e,t){return[e,t]}vf.invert=vf;var bf=function(){return Qh(vf).scale(152.63)};function wf(e,t){var n=el(e),r=e===t?ol(e):(n-el(t))/(t-e),i=n/r+e;if(Xu(r)Vu&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Pf=function(){return Qh(If).scale(175.295)};function Rf(e,t){return[el(t)*ol(e),ol(t)]}Rf.invert=uf(cl);var Ff=function(){return Qh(Rf).scale(249.5).clipAngle(90+Vu)};function Yf(e,t){var n=el(t),r=1+el(e)*n;return[n*ol(e)/r,ol(t)/r]}Yf.invert=uf((function(e){return 2*Ju(e)}));var jf=function(){return Qh(Yf).scale(250).clipAngle(142)};function Bf(e,t){return[rl(ul((qu+t)/2)),-e]}Bf.invert=function(e,t){return[-t,2*Ju(nl(e))-qu]};var Wf=function(){var e=gf(Bf),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function Hf(e,t){return e.parent===t.parent?1:2}function Vf(e,t){return e+t.x}function zf(e,t){return Math.max(e,t.y)}var Uf=function(){var e=Hf,t=1,n=1,r=!1;function i(i){var o,s=0;i.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Vf,0)/e.length}(n),t.y=function(e){return 1+e.reduce(zf,0)}(n)):(t.x=o?s+=e(t,o):0,t.y=0,o=t)}));var a=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),l=a.x-e(a,u)/2,c=u.x+e(u,a)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(c-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i};function qf(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Kf(e,t){var n,r,i,o,s,a=new Xf(e),u=+e.value&&(a.value=e.value),l=[a];for(null==t&&(t=Gf);n=l.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(s=i.length))for(n.children=new Array(s),o=s-1;o>=0;--o)l.push(r=n.children[o]=new Xf(i[o])),r.parent=n,r.depth=n.depth+1;return a.eachBefore(Zf)}function Gf(e){return e.children}function $f(e){e.data=e.data.data}function Zf(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Xf(e){this.data=e,this.depth=this.height=0,this.parent=null}Xf.prototype=Kf.prototype={constructor:Xf,count:function(){return this.eachAfter(qf)},each:function(e){var t,n,r,i,o=this,s=[o];do{for(t=s.reverse(),s=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each((function(t){e.push(t)})),e},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Kf(this).eachBefore($f)}};var Jf=Array.prototype.slice;var Qf=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(Jf.call(e))).length,o=[];r0&&n*n>r*r+i*i}function rp(e,t){for(var n=0;n(s*=s)?(r=(l+s-i)/(2*l),o=Math.sqrt(Math.max(0,s/l-r*r)),n.x=e.x-r*a-o*u,n.y=e.y-r*u+o*a):(r=(l+i-s)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=t.x+r*a-o*u,n.y=t.y+r*u+o*a)):(n.x=t.x+n.r,n.y=t.y)}function up(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function lp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function cp(e){this._=e,this.next=null,this.previous=null}function dp(e){if(!(i=e.length))return 0;var t,n,r,i,o,s,a,u,l,c,d;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;ap(n,t,r=e[2]),t=new cp(t),n=new cp(n),r=new cp(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(a=3;a0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=pp(t),n):e},n.parentId=function(e){return arguments.length?(t=pp(e),n):t},n};function Np(e,t){return e.parent===t.parent?1:2}function Op(e){var t=e.children;return t?t[0]:e.t}function Ap(e){var t=e.children;return t?t[t.length-1]:e.t}function Ip(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Pp(e,t,n){return e.a.parent===t.parent?e.a:n}function Rp(e,t){this._=e,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=t}Rp.prototype=Object.create(Xf.prototype);var Fp=function(){var e=Np,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,s=new Rp(e,0),a=[s];t=a.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)a.push(n=t.children[i]=new Rp(r[i],i)),n.parent=t;return(s.parent=new Rp(null,0)).children=[s],s}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(s),r)i.eachBefore(a);else{var l=i,c=i,d=i;i.eachBefore((function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=l===c?1:e(l,c)/2,f=h-l.x,p=t/(c.x+h+f),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+f)*p,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,s=t,a=n,u=o.parent.children[0],l=o.m,c=s.m,d=a.m,h=u.m;a=Ap(a),o=Op(o),a&&o;)u=Op(u),(s=Ap(s)).a=t,(i=a.z+d-o.z-l+e(a._,o._))>0&&(Ip(Pp(a,t,r),t,i),l+=i,c+=i),d+=a.m,l+=o.m,h+=u.m,c+=s.m;a&&!Ap(s)&&(s.t=a,s.m+=d-c),o&&!Op(u)&&(u.t=o,u.m+=l-h,r=t)}return r}(t,i,t.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function a(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},Yp=function(e,t,n,r,i){for(var o,s=e.children,a=-1,u=s.length,l=e.value&&(i-n)/e.value;++ah&&(h=a),m=c*c*g,(f=Math.max(h/m,m/d))>p){c-=a;break}p=f}_.push(s={value:c,dice:u1?t:1)},n}(jp),Hp=function(){var e=Wp,t=!1,n=1,r=1,i=[0],o=gp,s=gp,a=gp,u=gp,l=gp;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(Cp),e}function d(t){var n=i[t.depth],r=t.x0+n,c=t.y0+n,d=t.x1-n,h=t.y1-n;d=n-1){var c=a[t];return c.x0=i,c.y0=o,c.x1=s,void(c.y1=u)}var d=l[t],h=r/2+d,f=t+1,p=n-1;for(;f>>1;l[g]u-o){var y=(i*_+s*m)/r;e(t,f,m,i,o,y,u),e(f,n,_,y,o,s,u)}else{var v=(o*_+u*m)/r;e(t,f,m,i,o,s,v),e(f,n,_,i,v,s,u)}}(0,u,e.value,t,n,r,i)},zp=function(e,t,n,r,i){(1&e.depth?Yp:Sp)(e,t,n,r,i)},Up=function e(t){function n(e,n,r,i,o){if((s=e._squarify)&&s.ratio===t)for(var s,a,u,l,c,d=-1,h=s.length,f=e.value;++d1?t:1)},n}(jp),qp=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},Kp=function(e,t){var n=gn(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},Gp=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},$p=Math.SQRT2;function Zp(e){return((e=Math.exp(e))+1/e)/2}var Xp=function(e,t){var n,r,i=e[0],o=e[1],s=e[2],a=t[0],u=t[1],l=t[2],c=a-i,d=u-o,h=c*c+d*d;if(h<1e-12)r=Math.log(l/s)/$p,n=function(e){return[i+e*c,o+e*d,s*Math.exp($p*e*r)]};else{var f=Math.sqrt(h),p=(l*l-s*s+4*h)/(2*s*2*f),g=(l*l-s*s-4*h)/(2*l*2*f),m=Math.log(Math.sqrt(p*p+1)-p),_=Math.log(Math.sqrt(g*g+1)-g);r=(_-m)/$p,n=function(e){var t,n=e*r,a=Zp(m),u=s/(2*f)*(a*(t=$p*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[i+u*c,o+u*d,s*a/Zp($p*n+m)]}}return n.duration=1e3*r,n};function Jp(e){return function(t,n){var r=e((t=an(t)).h,(n=an(n)).h),i=_n(t.s,n.s),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var Qp=Jp(gn),eg=Jp(_n);function tg(e,t){var n=_n((e=To(e)).l,(t=To(t)).l),r=_n(e.a,t.a),i=_n(e.b,t.b),o=_n(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function ng(e){return function(t,n){var r=e((t=Yo(t)).h,(n=Yo(n)).h),i=_n(t.c,n.c),o=_n(t.l,n.l),s=_n(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=s(e),t+""}}}var rg=ng(gn),ig=ng(_n);function og(e){return function t(n){function r(t,r){var i=e((t=Ko(t)).h,(r=Ko(r)).h),o=_n(t.s,r.s),s=_n(t.l,r.l),a=_n(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,r.gamma=t,r}(1)}var sg=og(gn),ag=og(_n);function ug(e,t){for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n1&&hg(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var gg=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t=0;--t)l.push(e[r[o[t]][2]]);for(t=+a;ta!=l>a&&s<(u-n)*(a-r)/(l-r)+n&&(c=!c),u=n,l=r;return c},_g=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],s=o[0],a=o[1],u=0;++r1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(yg),wg=function e(t){function n(){var e=bg.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(yg),Cg=function e(t){function n(e){return function(){for(var n=0,r=0;rr&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function Bg(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i2?Wg:Bg,i=o=null,d}function d(t){return isNaN(t=+t)?n:(i||(i=r(s.map(e),a,u)))(e(l(t)))}return d.invert=function(n){return l(t((o||(o=r(a,s.map(e),Mn)))(n)))},d.domain=function(e){return arguments.length?(s=Dg.call(e,Pg),l===Fg||(l=jg(s)),c()):s.slice()},d.range=function(e){return arguments.length?(a=Eg.call(e),c()):a.slice()},d.rangeRound=function(e){return a=Eg.call(e),u=Gp,c()},d.clamp=function(e){return arguments.length?(l=e?jg(s):Fg,d):l!==Fg},d.interpolate=function(e){return arguments.length?(u=e,c()):u},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}function zg(e,t){return Vg()(e,t)}var Ug=function(e,t,n,r){var i,o=D(e,t,n);switch((r=Cu(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=Fu(o,s))||(r.precision=i),Mu(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Yu(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Ru(o))||(r.precision=i-2*("%"===r.type))}return ku(r)};function qg(e){var t=e.domain;return e.ticks=function(e){var n=t();return k(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return Ug(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,s=i.length-1,a=i[o],u=i[s];return u0?r=M(a=Math.floor(a/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=M(a=Math.ceil(a*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(a/r)*r,i[s]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(a*r)/r,i[s]=Math.floor(u*r)/r,t(i)),e},e}function Kg(){var e=zg(Fg,Fg);return e.copy=function(){return Hg(e,Kg())},Lg.apply(e,arguments),qg(e)}function Gg(e){var t;function n(e){return isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Dg.call(t,Pg),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return Gg(e).unknown(t)},e=arguments.length?Dg.call(e,Pg):[0,1],qg(n)}var $g=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],s=e[i];return s0){for(;hu)break;g.push(d)}}else for(;h=1;--c)if(!((d=l*c)u)break;g.push(d)}}else g=k(h,f,Math.min(f-h,p)).map(n);return r?g.reverse():g},r.tickFormat=function(e,i){if(null==i&&(i=10===o?".0e":","),"function"!=typeof i&&(i=ku(i)),e===1/0)return i;null==e&&(e=10);var s=Math.max(1,o*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*o0?i[r-1]:t[0],r=r?[i[r-1],n]:[i[s-1],i[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return gm().domain([t,n]).range(o).unknown(e)},Lg.apply(qg(s),arguments)}function mm(){var e,t=[.5],n=[0,1],r=1;function i(i){return i<=i?n[u(t,i,0,r)]:e}return i.domain=function(e){return arguments.length?(t=Eg.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Eg.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return mm().domain(t).range(n).unknown(e)},Lg.apply(i,arguments)}var _m=new Date,ym=new Date;function vm(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return _m.setTime(+t),ym.setTime(+r),e(_m),e(ym),Math.floor(n(_m,ym))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var bm=vm((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));bm.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var wm=bm,Cm=bm.range,Sm=vm((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),xm=Sm,Lm=Sm.range,km=6e4,Mm=6048e5;function Dm(e){return vm((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*km)/Mm}))}var Em=Dm(0),Tm=Dm(1),Nm=Dm(2),Om=Dm(3),Am=Dm(4),Im=Dm(5),Pm=Dm(6),Rm=Em.range,Fm=Tm.range,Ym=Nm.range,jm=Om.range,Bm=Am.range,Wm=Im.range,Hm=Pm.range,Vm=vm((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*km)/864e5}),(function(e){return e.getDate()-1})),zm=Vm,Um=Vm.range,qm=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*km)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()})),Km=qm,Gm=qm.range,$m=vm((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+t*km)}),(function(e,t){return(t-e)/km}),(function(e){return e.getMinutes()})),Zm=$m,Xm=$m.range,Jm=vm((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()})),Qm=Jm,e_=Jm.range,t_=vm((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));t_.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?vm((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):t_:null};var n_=t_,r_=t_.range;function i_(e){return vm((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/Mm}))}var o_=i_(0),s_=i_(1),a_=i_(2),u_=i_(3),l_=i_(4),c_=i_(5),d_=i_(6),h_=o_.range,f_=s_.range,p_=a_.range,g_=u_.range,m_=l_.range,__=c_.range,y_=d_.range,v_=vm((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1})),b_=v_,w_=v_.range,C_=vm((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));C_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?vm((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var S_=C_,x_=C_.range;function L_(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function k_(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function M_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D_(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,a=e.months,u=e.shortMonths,l=B_(i),c=W_(i),d=B_(o),h=W_(o),f=B_(s),p=W_(s),g=B_(a),m=W_(a),_=B_(u),y=W_(u),v={a:function(e){return s[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return a[e.getMonth()]},c:null,d:uy,e:uy,f:fy,H:ly,I:cy,j:dy,L:hy,m:py,M:gy,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Vy,s:zy,S:my,u:_y,U:yy,V:vy,w:by,W:wy,x:null,X:null,y:Cy,Y:Sy,Z:xy,"%":Hy},b={a:function(e){return s[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return a[e.getUTCMonth()]},c:null,d:Ly,e:Ly,f:Ty,H:ky,I:My,j:Dy,L:Ey,m:Ny,M:Oy,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Vy,s:zy,S:Ay,u:Iy,U:Py,V:Ry,w:Fy,W:Yy,x:null,X:null,y:jy,Y:By,Z:Wy,"%":Hy},w={a:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return x(e,t,n,r)},d:J_,e:J_,f:iy,H:ey,I:ey,j:Q_,L:ry,m:X_,M:ty,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:Z_,Q:sy,s:ay,S:ny,u:V_,U:z_,V:U_,w:H_,W:q_,x:function(e,t,r){return x(e,n,t,r)},X:function(e,t,n){return x(e,r,t,n)},y:G_,Y:K_,Z:$_,"%":oy};function C(e,t){return function(n){var r,i,o,s=[],a=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=k_(M_(o.y,0,1))).getUTCDay(),r=i>4||0===i?s_.ceil(r):s_(r),r=b_.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=L_(M_(o.y,0,1))).getDay(),r=i>4||0===i?Tm.ceil(r):Tm(r),r=zm.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?k_(M_(o.y,0,1)).getUTCDay():L_(M_(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,k_(o)):L_(o)}}function x(e,t,n,r){for(var i,o,s=0,a=t.length,u=n.length;s=u)return-1;if(37===(i=t.charCodeAt(s++))){if(i=t.charAt(s++),!(o=w[i in I_?t.charAt(s++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return(v.x=C(n,v),v.X=C(r,v),v.c=C(t,v),b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),{format:function(e){var t=C(e+="",v);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}})}var E_,T_,N_,O_,A_,I_={"-":"",_:" ",0:"0"},P_=/^\s*\d+/,R_=/^%/,F_=/[\\^$*+?|[\]().{}]/g;function Y_(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function $_(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Z_(e,t,n){var r=P_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function X_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function J_(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Q_(e,t,n){var r=P_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function ey(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ty(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ny(e,t,n){var r=P_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function ry(e,t,n){var r=P_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function iy(e,t,n){var r=P_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oy(e,t,n){var r=R_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sy(e,t,n){var r=P_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ay(e,t,n){var r=P_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function uy(e,t){return Y_(e.getDate(),t,2)}function ly(e,t){return Y_(e.getHours(),t,2)}function cy(e,t){return Y_(e.getHours()%12||12,t,2)}function dy(e,t){return Y_(1+zm.count(wm(e),e),t,3)}function hy(e,t){return Y_(e.getMilliseconds(),t,3)}function fy(e,t){return hy(e,t)+"000"}function py(e,t){return Y_(e.getMonth()+1,t,2)}function gy(e,t){return Y_(e.getMinutes(),t,2)}function my(e,t){return Y_(e.getSeconds(),t,2)}function _y(e){var t=e.getDay();return 0===t?7:t}function yy(e,t){return Y_(Em.count(wm(e)-1,e),t,2)}function vy(e,t){var n=e.getDay();return e=n>=4||0===n?Am(e):Am.ceil(e),Y_(Am.count(wm(e),e)+(4===wm(e).getDay()),t,2)}function by(e){return e.getDay()}function wy(e,t){return Y_(Tm.count(wm(e)-1,e),t,2)}function Cy(e,t){return Y_(e.getFullYear()%100,t,2)}function Sy(e,t){return Y_(e.getFullYear()%1e4,t,4)}function xy(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Y_(t/60|0,"0",2)+Y_(t%60,"0",2)}function Ly(e,t){return Y_(e.getUTCDate(),t,2)}function ky(e,t){return Y_(e.getUTCHours(),t,2)}function My(e,t){return Y_(e.getUTCHours()%12||12,t,2)}function Dy(e,t){return Y_(1+b_.count(S_(e),e),t,3)}function Ey(e,t){return Y_(e.getUTCMilliseconds(),t,3)}function Ty(e,t){return Ey(e,t)+"000"}function Ny(e,t){return Y_(e.getUTCMonth()+1,t,2)}function Oy(e,t){return Y_(e.getUTCMinutes(),t,2)}function Ay(e,t){return Y_(e.getUTCSeconds(),t,2)}function Iy(e){var t=e.getUTCDay();return 0===t?7:t}function Py(e,t){return Y_(o_.count(S_(e)-1,e),t,2)}function Ry(e,t){var n=e.getUTCDay();return e=n>=4||0===n?l_(e):l_.ceil(e),Y_(l_.count(S_(e),e)+(4===S_(e).getUTCDay()),t,2)}function Fy(e){return e.getUTCDay()}function Yy(e,t){return Y_(s_.count(S_(e)-1,e),t,2)}function jy(e,t){return Y_(e.getUTCFullYear()%100,t,2)}function By(e,t){return Y_(e.getUTCFullYear()%1e4,t,4)}function Wy(){return"+0000"}function Hy(){return"%"}function Vy(e){return+e}function zy(e){return Math.floor(+e/1e3)}function Uy(e){return E_=D_(e),T_=E_.format,N_=E_.parse,O_=E_.utcFormat,A_=E_.utcParse,E_}Uy({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"]});var qy=1e3,Ky=60*qy,Gy=60*Ky,$y=24*Gy,Zy=7*$y,Xy=30*$y,Jy=365*$y;function Qy(e){return new Date(e)}function ev(e){return e instanceof Date?+e:+new Date(+e)}function tv(e,t,n,r,o,s,a,u,l){var c=zg(Fg,Fg),d=c.invert,h=c.domain,f=l(".%L"),p=l(":%S"),g=l("%I:%M"),m=l("%I %p"),_=l("%a %d"),y=l("%b %d"),v=l("%B"),b=l("%Y"),w=[[a,1,qy],[a,5,5*qy],[a,15,15*qy],[a,30,30*qy],[s,1,Ky],[s,5,5*Ky],[s,15,15*Ky],[s,30,30*Ky],[o,1,Gy],[o,3,3*Gy],[o,6,6*Gy],[o,12,12*Gy],[r,1,$y],[r,2,2*$y],[n,1,Zy],[t,1,Xy],[t,3,3*Xy],[e,1,Jy]];function C(i){return(a(i)1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Vb.h=360*e-100,Vb.s=1.5-1.5*t,Vb.l=.8-.9*t,Vb+""},Ub=Qt(),qb=Math.PI/3,Kb=2*Math.PI/3,Gb=function(e){var t;return e=(.5-e)*Math.PI,Ub.r=255*(t=Math.sin(e))*t,Ub.g=255*(t=Math.sin(e+qb))*t,Ub.b=255*(t=Math.sin(e+Kb))*t,Ub+""},$b=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"};function Zb(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Xb=Zb(Mv("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Jb=Zb(Mv("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Qb=Zb(Mv("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ew=Zb(Mv("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),tw=function(e){return Dt(ut(e).call(document.documentElement))},nw=0;function rw(){return new iw}function iw(){this._="@"+(++nw).toString(36)}iw.prototype=rw.prototype={constructor:iw,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ow=function(e){return"string"==typeof e?new Lt([document.querySelectorAll(e)],[document.documentElement]):new Lt([null==e?[]:e],xt)},sw=function(e,t){null==t&&(t=Pn().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n=1?_w:e<=-1?-_w:Math.asin(e)}function bw(e){return e.innerRadius}function ww(e){return e.outerRadius}function Cw(e){return e.startAngle}function Sw(e){return e.endAngle}function xw(e){return e&&e.padAngle}function Lw(e,t,n,r,i,o,s){var a=e-n,u=t-r,l=(s?o:-o)/pw(a*a+u*u),c=l*u,d=-l*a,h=e+c,f=t+d,p=n+c,g=r+d,m=(h+p)/2,_=(f+g)/2,y=p-h,v=g-f,b=y*y+v*v,w=i-o,C=h*g-p*f,S=(v<0?-1:1)*pw(dw(0,w*w*b-C*C)),x=(C*v-y*S)/b,L=(-C*y-v*S)/b,k=(C*v+y*S)/b,M=(-C*y+v*S)/b,D=x-m,E=L-_,T=k-m,N=M-_;return D*D+E*E>T*T+N*N&&(x=k,L=M),{cx:x,cy:L,x01:-c,y01:-d,x11:x*(i/w-1),y11:L*(i/w-1)}}var kw=function(){var e=bw,t=ww,n=aw(0),r=null,i=Cw,o=Sw,s=xw,a=null;function u(){var u,l,c,d=+e.apply(this,arguments),h=+t.apply(this,arguments),f=i.apply(this,arguments)-_w,p=o.apply(this,arguments)-_w,g=uw(p-f),m=p>f;if(a||(a=u=Zi()),hgw)if(g>yw-gw)a.moveTo(h*cw(f),h*fw(f)),a.arc(0,0,h,f,p,!m),d>gw&&(a.moveTo(d*cw(p),d*fw(p)),a.arc(0,0,d,p,f,m));else{var _,y,v=f,b=p,w=f,C=p,S=g,x=g,L=s.apply(this,arguments)/2,k=L>gw&&(r?+r.apply(this,arguments):pw(d*d+h*h)),M=hw(uw(h-d)/2,+n.apply(this,arguments)),D=M,E=M;if(k>gw){var T=vw(k/d*fw(L)),N=vw(k/h*fw(L));(S-=2*T)>gw?(w+=T*=m?1:-1,C-=T):(S=0,w=C=(f+p)/2),(x-=2*N)>gw?(v+=N*=m?1:-1,b-=N):(x=0,v=b=(f+p)/2)}var O=h*cw(v),A=h*fw(v),I=d*cw(C),P=d*fw(C);if(M>gw){var R,F=h*cw(b),Y=h*fw(b),j=d*cw(w),B=d*fw(w);if(g1?0:c<-1?mw:Math.acos(c))/2),q=pw(R[0]*R[0]+R[1]*R[1]);D=hw(M,(d-q)/(U-1)),E=hw(M,(h-q)/(U+1))}}x>gw?E>gw?(_=Lw(j,B,O,A,h,E,m),y=Lw(F,Y,I,P,h,E,m),a.moveTo(_.cx+_.x01,_.cy+_.y01),Egw&&S>gw?D>gw?(_=Lw(I,P,F,Y,d,-D,m),y=Lw(O,A,j,B,d,-D,m),a.lineTo(_.cx+_.x01,_.cy+_.y01),D=c;--d)a.point(m[d],_[d]);a.lineEnd(),a.areaEnd()}g&&(m[l]=+e(h,l,u),_[l]=+n(h,l,u),a.point(t?+t(h,l,u):m[l],r?+r(h,l,u):_[l]))}if(f)return a=null,f+""||null}function l(){return Nw().defined(i).curve(s).context(o)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:aw(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:aw(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:aw(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:aw(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:aw(!!e),u):i},u.curve=function(e){return arguments.length?(s=e,null!=o&&(a=s(o)),u):s},u.context=function(e){return arguments.length?(null==e?o=a=null:a=s(o=e),u):o},u},Aw=function(e,t){return te?1:t>=e?0:NaN},Iw=function(e){return e},Pw=function(){var e=Iw,t=Aw,n=null,r=aw(0),i=aw(yw),o=aw(0);function s(s){var a,u,l,c,d,h=s.length,f=0,p=new Array(h),g=new Array(h),m=+r.apply(this,arguments),_=Math.min(yw,Math.max(-yw,i.apply(this,arguments)-m)),y=Math.min(Math.abs(_)/h,o.apply(this,arguments)),v=y*(_<0?-1:1);for(a=0;a0&&(f+=d);for(null!=t?p.sort((function(e,n){return t(g[e],g[n])})):null!=n&&p.sort((function(e,t){return n(s[e],s[t])})),a=0,l=f?(_-h*v)/f:0;a0?d*l:0)+v,g[u]={data:s[u],index:a,value:d,startAngle:m,endAngle:c,padAngle:y};return g}return s.value=function(t){return arguments.length?(e="function"==typeof t?t:aw(+t),s):e},s.sortValues=function(e){return arguments.length?(t=e,n=null,s):t},s.sort=function(e){return arguments.length?(n=e,t=null,s):n},s.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:aw(+e),s):o},s},Rw=Yw(Dw);function Fw(e){this._curve=e}function Yw(e){function t(t){return new Fw(e(t))}return t._curve=e,t}function jw(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Yw(e)):t()._curve},e}Fw.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Bw=function(){return jw(Nw().curve(Rw))},Ww=function(){var e=Ow().curve(Rw),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return jw(n())},delete e.lineX0,e.lineEndAngle=function(){return jw(r())},delete e.lineX1,e.lineInnerRadius=function(){return jw(i())},delete e.lineY0,e.lineOuterRadius=function(){return jw(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Yw(e)):t()._curve},e},Hw=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},Vw=Array.prototype.slice;function zw(e){return e.source}function Uw(e){return e.target}function qw(e){var t=zw,n=Uw,r=Ew,i=Tw,o=null;function s(){var s,a=Vw.call(arguments),u=t.apply(this,a),l=n.apply(this,a);if(o||(o=s=Zi()),e(o,+r.apply(this,(a[0]=u,a)),+i.apply(this,a),+r.apply(this,(a[0]=l,a)),+i.apply(this,a)),s)return o=null,s+""||null}return s.source=function(e){return arguments.length?(t=e,s):t},s.target=function(e){return arguments.length?(n=e,s):n},s.x=function(e){return arguments.length?(r="function"==typeof e?e:aw(+e),s):r},s.y=function(e){return arguments.length?(i="function"==typeof e?e:aw(+e),s):i},s.context=function(e){return arguments.length?(o=null==e?null:e,s):o},s}function Kw(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Gw(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function $w(e,t,n,r,i){var o=Hw(t,n),s=Hw(t,n=(n+i)/2),a=Hw(r,n),u=Hw(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(s[0],s[1],a[0],a[1],u[0],u[1])}function Zw(){return qw(Kw)}function Xw(){return qw(Gw)}function Jw(){var e=qw($w);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var Qw={draw:function(e,t){var n=Math.sqrt(t/mw);e.moveTo(n,0),e.arc(0,0,n,0,yw)}},eC={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},tC=Math.sqrt(1/3),nC=2*tC,rC={draw:function(e,t){var n=Math.sqrt(t/nC),r=n*tC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},iC=Math.sin(mw/10)/Math.sin(7*mw/10),oC=Math.sin(yw/10)*iC,sC=-Math.cos(yw/10)*iC,aC={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=oC*n,i=sC*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var s=yw*o/5,a=Math.cos(s),u=Math.sin(s);e.lineTo(u*n,-a*n),e.lineTo(a*r-u*i,u*r+a*i)}e.closePath()}},uC={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},lC=Math.sqrt(3),cC={draw:function(e,t){var n=-Math.sqrt(t/(3*lC));e.moveTo(0,2*n),e.lineTo(-lC*n,-n),e.lineTo(lC*n,-n),e.closePath()}},dC=Math.sqrt(3)/2,hC=1/Math.sqrt(12),fC=3*(hC/2+1),pC={draw:function(e,t){var n=Math.sqrt(t/fC),r=n/2,i=n*hC,o=r,s=n*hC+n,a=-o,u=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(a,u),e.lineTo(-.5*r-dC*i,dC*r+-.5*i),e.lineTo(-.5*o-dC*s,dC*o+-.5*s),e.lineTo(-.5*a-dC*u,dC*a+-.5*u),e.lineTo(-.5*r+dC*i,-.5*i-dC*r),e.lineTo(-.5*o+dC*s,-.5*s-dC*o),e.lineTo(-.5*a+dC*u,-.5*u-dC*a),e.closePath()}},gC=[Qw,eC,rC,uC,aC,cC,pC],mC=function(){var e=aw(Qw),t=aw(64),n=null;function r(){var r;if(n||(n=r=Zi()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:aw(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:aw(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},_C=function(){};function yC(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function vC(e){this._context=e}vC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:yC(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var bC=function(e){return new vC(e)};function wC(e){this._context=e}wC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var CC=function(e){return new wC(e)};function SC(e){this._context=e}SC.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:yC(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var xC=function(e){return new SC(e)};function LC(e,t){this._basis=new vC(e),this._beta=t}LC.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],s=e[n]-i,a=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*s),this._beta*t[u]+(1-this._beta)*(o+r*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var kC=function e(t){function n(e){return 1===t?new vC(e):new LC(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function MC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function DC(e,t){this._context=e,this._k=(1-t)/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(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:MC(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var EC=function e(t){function n(e){return new DC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function TC(e,t){this._context=e,this._k=(1-t)/6}TC.prototype={areaStart:_C,areaEnd:_C,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)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var NC=function e(t){function n(e){return new TC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function OC(e,t){this._context=e,this._k=(1-t)/6}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._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,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:MC(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var AC=function e(t){function n(e){return new OC(e,t)}return n.tension=function(t){return e(+t)},n}(0);function IC(e,t,n){var r=e._x1,i=e._y1,o=e._x2,s=e._y2;if(e._l01_a>gw){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>gw){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,s,e._x2,e._y2)}function PC(e,t){this._context=e,this._alpha=t}PC.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:IC(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var RC=function e(t){function n(e){return t?new PC(e,t):new DC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function FC(e,t){this._context=e,this._alpha=t}FC.prototype={areaStart:_C,areaEnd:_C,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)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:IC(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var YC=function e(t){function n(e){return t?new FC(e,t):new TC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function jC(e,t){this._context=e,this._alpha=t}jC.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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,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:IC(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var BC=function e(t){function n(e){return t?new jC(e,t):new OC(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function WC(e){this._context=e}WC.prototype={areaStart:_C,areaEnd:_C,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var HC=function(e){return new WC(e)};function VC(e){return e<0?-1:1}function zC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),a=(o*i+s*r)/(r+i);return(VC(o)+VC(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function UC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qC(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,a=(o-r)/3;e._context.bezierCurveTo(r+a,i+a*t,o-a,s-a*n,o,s)}function KC(e){this._context=e}function GC(e){this._context=new $C(e)}function $C(e){this._context=e}function ZC(e){return new KC(e)}function XC(e){return new GC(e)}function JC(e){this._context=e}function QC(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),s=new Array(r);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var nS=function(e){return new tS(e,.5)};function rS(e){return new tS(e,0)}function iS(e){return new tS(e,1)}var oS=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,s=e[t[0]],a=s.length;o=0;)n[t]=t;return n};function aS(e,t){return e[t]}var uS=function(){var e=aw([]),t=sS,n=oS,r=aS;function i(i){var o,s,a=e.apply(this,arguments),u=i.length,l=a.length,c=new Array(l);for(o=0;o0){for(var n,r,i,o=0,s=e[0].length;o0)for(var n,r,i,o,s,a,u=0,l=e[t[0]].length;u0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=s,r[0]=s+=i):(r[0]=0,r[1]=i)},dS=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,s=1;so&&(o=t,r=n);return r}var gS=function(e){var t=e.map(mS);return sS(e).sort((function(e,n){return t[e]-t[n]}))};function mS(e){for(var t,n=0,r=-1,i=e.length;++r0)){if(o/=h,h<0){if(o0){if(o>d)return;o>c&&(c=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>c&&(c=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>d)return;o>c&&(c=o)}if(o=i-l,f||!(o<0)){if(o/=f,f<0){if(o>d)return;o>c&&(c=o)}else if(f>0){if(o0||d<1)||(c>0&&(e[0]=[u+c*h,l+c*f]),d<1&&(e[1]=[u+d*h,l+d*f]),!0)}}}}}function RS(e,t,n,r,i){var o=e[1];if(o)return!0;var s,a,u=e[0],l=e.left,c=e.right,d=l[0],h=l[1],f=c[0],p=c[1],g=(d+f)/2,m=(h+p)/2;if(p===h){if(g=r)return;if(d>f){if(u){if(u[1]>=i)return}else u=[g,n];o=[g,i]}else{if(u){if(u[1]1)if(d>f){if(u){if(u[1]>=i)return}else u=[(n-a)/s,n];o=[(i-a)/s,i]}else{if(u){if(u[1]=r)return}else u=[t,s*t+a];o=[r,s*r+a]}else{if(u){if(u[0]=-ix)){var f=u*u+l*l,p=c*c+d*d,g=(d*f-l*p)/h,m=(u*p-c*f)/h,_=WS.pop()||new HS;_.arc=e,_.site=i,_.x=g+s,_.y=(_.cy=m+a)+Math.sqrt(g*g+m*m),e.circle=_;for(var y=null,v=tx._;v;)if(_.yrx)a=a.L;else{if(!((i=o-JS(a,s))>rx)){r>-rx?(t=a.P,n=a):i>-rx?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}!function(e){ex[e.index]={site:e,halfedges:[]}}(e);var u=KS(e);if(QS.insert(t,u),t||n){if(t===n)return zS(t),n=KS(t.site),QS.insert(u,n),u.edge=n.edge=OS(t.site,u.site),VS(t),void VS(n);if(n){zS(t),zS(n);var l=t.site,c=l[0],d=l[1],h=e[0]-c,f=e[1]-d,p=n.site,g=p[0]-c,m=p[1]-d,_=2*(h*m-f*g),y=h*h+f*f,v=g*g+m*m,b=[(m*y-f*v)/_+c,(h*v-g*y)/_+d];IS(n.edge,l,p,b),u.edge=OS(l,e,null,b),n.edge=OS(e,p,null,b),VS(t),VS(n)}else u.edge=OS(t.site,u.site)}}function XS(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var s=e.P;if(!s)return-1/0;var a=(n=s.site)[0],u=n[1],l=u-t;if(!l)return a;var c=a-r,d=1/o-1/l,h=c/l;return d?(-h+Math.sqrt(h*h-2*d*(c*c/(-2*l)-u+l/2+i-o/2)))/d+r:(r+a)/2}function JS(e,t){var n=e.N;if(n)return XS(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var QS,ex,tx,nx,rx=1e-6,ix=1e-12;function ox(e,t){return t[1]-e[1]||t[0]-e[0]}function sx(e,t){var n,r,i,o=e.sort(ox).pop();for(nx=[],ex=new Array(e.length),QS=new NS,tx=new NS;;)if(i=BS,o&&(!i||o[1]rx||Math.abs(i[0][1]-i[1][1])>rx)||delete nx[o]}(s,a,u,l),function(e,t,n,r){var i,o,s,a,u,l,c,d,h,f,p,g,m=ex.length,_=!0;for(i=0;irx||Math.abs(g-h)>rx)&&(u.splice(a,0,nx.push(AS(s,f,Math.abs(p-e)rx?[e,Math.abs(d-e)rx?[Math.abs(h-r)rx?[n,Math.abs(d-n)rx?[Math.abs(h-t)=a)return null;var u=e-i.site[0],l=t-i.site[1],c=u*u+l*l;do{i=o.cells[r=s],s=null,i.halfedges.forEach((function(n){var r=o.edges[n],a=r.left;if(a!==i.site&&a||(a=r.right)){var u=e-a[0],l=t-a[1],d=u*u+l*l;dr?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}var wx=function(){var e,t,n=gx,r=mx,i=bx,o=yx,s=vx,a=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Xp,d=ge("start","zoom","end"),h=500,f=150,p=0;function g(e){e.property("__zoom",_x).on("wheel.zoom",C).on("mousedown.zoom",S).on("dblclick.zoom",x).filter(s).on("touchstart.zoom",L).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",M).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new cx(t,e.x,e.y)}function _(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new cx(e.k,r,i)}function y(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function v(e,t,n){e.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var e=this,i=arguments,o=b(e,i),s=r.apply(e,i),a=null==n?y(s):"function"==typeof n?n.apply(e,i):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),l=e.__zoom,d="function"==typeof t?t.apply(e,i):t,h=c(l.invert(a).concat(u/l.k),d.invert(a).concat(u/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=u/t[2];e=new cx(n,a[0]-t[0]*n,a[1]-t[1]*n)}o.zoom(null,e)}}))}function b(e,t,n){return!n&&e.__zooming||new w(e,t)}function w(e,t){this.that=e,this.args=t,this.active=0,this.extent=r.apply(e,t),this.taps=0}function C(){if(n.apply(this,arguments)){var e=b(this,arguments),t=this.__zoom,r=Math.max(a[0],Math.min(a[1],t.k*Math.pow(2,o.apply(this,arguments)))),s=Yn(this);if(e.wheel)e.mouse[0][0]===s[0]&&e.mouse[0][1]===s[1]||(e.mouse[1]=t.invert(e.mouse[0]=s)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[s,t.invert(s)],br(this),e.start()}px(),e.wheel=setTimeout((function(){e.wheel=null,e.end()}),f),e.zoom("mouse",i(_(m(t,r),e.mouse[0],e.mouse[1]),e.extent,u))}}function S(){if(!t&&n.apply(this,arguments)){var e=b(this,arguments,!0),r=Dt(pt.view).on("mousemove.zoom",(function(){if(px(),!e.moved){var t=pt.clientX-s,n=pt.clientY-a;e.moved=t*t+n*n>p}e.zoom("mouse",i(_(e.that.__zoom,e.mouse[0]=Yn(e.that),e.mouse[1]),e.extent,u))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Ot(pt.view,e.moved),px(),e.end()}),!0),o=Yn(this),s=pt.clientX,a=pt.clientY;Nt(pt.view),fx(),e.mouse=[o,this.__zoom.invert(o)],br(this),e.start()}}function x(){if(n.apply(this,arguments)){var e=this.__zoom,t=Yn(this),o=e.invert(t),s=e.k*(pt.shiftKey?.5:2),a=i(_(m(e,s),t,o),r.apply(this,arguments),u);px(),l>0?Dt(this).transition().duration(l).call(v,a,t):Dt(this).call(g.transform,a)}}function L(){if(n.apply(this,arguments)){var t,r,i,o,s=pt.touches,a=s.length,u=b(this,arguments,pt.changedTouches.length===a);for(fx(),r=0;r docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}')},function(e,t,n){e.exports=n(602)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){(function(e,t){(function(){"use strict";function n(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}var r=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}a(t.promise,r)}else(1===e._state?a:u)(t.promise,e._value)}))):e._deferreds.push(t)}function a(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(328),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(30))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,s,a,u=1,l={},c=!1,d=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n-1}(a)?a:(n=a.match(o))?(t=n[0],r.test(t)?"about:blank":a):"about:blank"}}},function(e,t,n){e.exports={graphlib:n(14),layout:n(464),debug:n(506),util:{time:n(5).time,notime:n(5).notime},version:n(507)}},function(e,t,n){e.exports={Graph:n(73),version:n(453)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(49),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(49);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(49);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(49);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(48);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(48),i=n(74),o=n(75),s=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(124),i=n(445),o=n(449),s=n(125),a=n(450),u=n(86),l=200;e.exports=function(e,t,n){var c=-1,d=i,h=e.length,f=!0,p=[],g=p;if(n)f=!1,d=o;else if(h>=l){var m=t?null:a(e);if(m)return u(m);f=!1,d=s,g=new r}else g=t?[]:p;e:for(;++c-1}},function(e,t,n){var r=n(139),i=n(447),o=n(448);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(7);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],s=o[n],a=r.distance+i.distance;a0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return s}},function(e,t,n){"use strict";var r=n(2),i=n(485),o=n(488),s=n(489),a=n(5).normalizeRanks,u=n(491),l=n(5).removeEmptyRanks,c=n(492),d=n(493),h=n(494),f=n(495),p=n(504),g=n(5),m=n(14).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=k(e.graph());return t.setGraph(r.merge({},y,L(n,_),r.pick(n,v))),r.forEach(e.nodes(),(function(n){var i=k(e.node(n));t.setNode(n,r.defaults(L(i,b),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=k(e.edge(n));t.setEdge(n,r.merge({},S,L(i,C),r.pick(i,x)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){s(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){l(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){d(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(r.last(n.borderLeft)),a=e.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,u=s.marginy||0;function l(e){var r=e.x,s=e.y,a=e.width,u=e.height;t=Math.min(t,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&l(n)})),t-=a,i-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),s.width=n-t+a,s.height=o-i+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},x=["labelpos"];function L(e,t){return r.mapValues(r.pick(e,t),Number)}function k(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){var r=n(21),i=n(20),o=n(19);e.exports=function(e){return function(t,n,s){var a=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(a[e],e,a)}}var l=e(t,n,s);return l>-1?a[u?t[l]:l]:void 0}}},function(e,t,n){var r=n(139),i=n(21),o=n(467),s=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var u=null==n?0:o(n);return u<0&&(u=s(a+u,0)),r(e,i(t,3),u)}},function(e,t,n){var r=n(148);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(8),i=n(36),o=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(s,"");var n=u.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?o:+e}},function(e,t){e.exports=function(e,t){return e>t}},function(e,t,n){var r=n(47),i=n(154),o=n(85),s=n(471),a=n(8),u=n(34),l=n(156);e.exports=function e(t,n,c,d,h){t!==n&&o(n,(function(o,u){if(h||(h=new r),a(o))s(t,n,u,c,e,d,h);else{var f=d?d(l(t,u),o,u+"",t,n,h):void 0;void 0===f&&(f=o),i(t,u,f)}}),u)}},function(e,t,n){var r=n(154),i=n(109),o=n(118),s=n(110),a=n(119),u=n(39),l=n(4),c=n(140),d=n(33),h=n(26),f=n(8),p=n(155),g=n(41),m=n(156),_=n(472);e.exports=function(e,t,n,y,v,b,w){var C=m(e,n),S=m(t,n),x=w.get(S);if(x)r(e,n,x);else{var L=b?b(C,S,n+"",e,t,w):void 0,k=void 0===L;if(k){var M=l(S),D=!M&&d(S),E=!M&&!D&&g(S);L=S,M||D||E?l(C)?L=C:c(C)?L=s(C):D?(k=!1,L=i(S,!0)):E?(k=!1,L=o(S,!0)):L=[]:p(S)||u(S)?(L=C,u(C)?L=_(C):f(C)&&!h(C)||(L=a(S))):k=!1}k&&(w.set(S,L),v(L,S,y,b,w),w.delete(S)),r(e,n,L)}}},function(e,t,n){var r=n(38),i=n(34);e.exports=function(e){return r(e,i(e))}},function(e,t,n){var r=n(65),i=n(67);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r=u?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(36);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,s=r(e),a=void 0!==t,u=null===t,l=t==t,c=r(t);if(!u&&!c&&!s&&e>t||s&&a&&l&&!u&&!c||i&&a&&l||!n&&l||!o)return 1;if(!i&&!s&&!c&&e0;--u)if(r=t[u].dequeue()){i=i.concat(a(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=r.constant(1);function a(e,t,n,i,o){var s=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),a=e.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(t,n,a)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,u(t,n,s)})),e.removeNode(i.v),s}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(2),i=n(5);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,s=t.v,a=e.node(s).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),h=d.labelRank;if(l===a+1)return;for(e.removeEdge(t),o=0,++a;au.lim&&(l=u,c=!0);var d=r.filter(t.edges(),(function(t){return c===_(e,e.node(t.v),l)&&c!==_(e,e.node(t.w),l)}));return r.minBy(d,(function(e){return o(t,e)}))}function m(e,t,n,i){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(i.v,i.w,{}),f(e),d(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=a(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=f,c.initCutValues=d,c.calcCutValue=h,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=m},function(e,t,n){var r=n(2);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function i(o){var s=n;r.forEach(e.children(o),i),t[o]={low:s,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,s=[],a=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),s.push(i)}while(i&&(t[i].low>u||l>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,t,i.v,i.w),s=o.path,a=o.lca,u=0,l=s[u],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(l=s[u])!==a&&e.node(l).maxRank=2),a=c.buildLayerMatrix(e);var m=o(e,a);m0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n}))),l}e.exports=function(e,t){for(var n=0,r=1;r=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(2),i=n(5);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),s=n.lhs,a=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],l=0,c=0,d=0;s.sort((h=!!t,function(e,t){return e.barycentert.barycenter?1:h?t.i-e.i:e.i-t.i})),d=o(u,a,d),r.forEach(s,(function(e){d+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,d=o(u,a,d)}));var h;var f={vs:r.flatten(u,!0)};c&&(f.barycenter=l/c,f.weight=c);return f}},function(e,t,n){var r=n(2),i=n(14).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var a=e.node(i),u=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var r=n(2);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,s,a=e.parent(n);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void t.setEdge(s,a);a=r}}))}},function(e,t,n){"use strict";var r=n(2),i=n(5),o=n(505).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(2),i=n(14).Graph,o=n(5);function s(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,s=0,a=t.length,l=r.last(i);return r.forEach(i,(function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=d?e.node(d).order:a;(d||t===l)&&(r.forEach(i.slice(s,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),s=i.order;!(sa)&&u(n,t,l)}))}))}return r.reduce(t,(function(t,n){var o,s=-1,a=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,a,u,s,o),a=u,s=o)}i(n,a,n.length,o,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},s={},a={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return a[e]}))).length-1)/2,d=Math.floor(c),h=Math.ceil(c);d<=h;++d){var f=u[d];s[e]===e&&t1||1===t.length&&e.hasEdge(t[0],t[0])}))}},function(e,t,n){var r=n(9);e.exports=function(e,t,n){return function(e,t,n){var r={},i=e.nodes();return i.forEach((function(e){r[e]={},r[e][e]={distance:0},i.forEach((function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})})),n(e).forEach((function(n){var i=n.v===e?n.w:n.v,o=t(n);r[e][i]={distance:o,predecessor:e}}))})),i.forEach((function(e){var t=r[e];i.forEach((function(n){var o=r[n];i.forEach((function(n){var r=o[e],i=t[n],s=o[n],a=r.distance+i.distance;a0;){if(n=u.removeMin(),r.has(a,n))s.setEdge(n,a[n]);else{if(c)throw new Error("Input graph is not connected: "+e);c=!0}e.nodeEdges(n).forEach(l)}return s}},function(e,t,n){e.exports={graphlib:n(16),layout:n(523),debug:n(545),util:{time:n(6).time,notime:n(6).notime},version:n(546)}},function(e,t,n){"use strict";var r=n(3),i=n(524),o=n(527),s=n(528),a=n(6).normalizeRanks,u=n(530),l=n(6).removeEmptyRanks,c=n(531),d=n(532),h=n(533),f=n(534),p=n(543),g=n(6),m=n(16).Graph;e.exports=function(e,t){var n=t&&t.debugTiming?g.time:g.notime;n("layout",(function(){var t=n(" buildLayoutGraph",(function(){return function(e){var t=new m({multigraph:!0,compound:!0}),n=k(e.graph());return t.setGraph(r.merge({},y,L(n,_),r.pick(n,v))),r.forEach(e.nodes(),(function(n){var i=k(e.node(n));t.setNode(n,r.defaults(L(i,b),w)),t.setParent(n,e.parent(n))})),r.forEach(e.edges(),(function(n){var i=k(e.edge(n));t.setEdge(n,r.merge({},S,L(i,C),r.pick(i,x)))})),t}(e)}));n(" runLayout",(function(){!function(e,t){t(" makeSpaceForEdgeLabels",(function(){!function(e){var t=e.graph();t.ranksep/=2,r.forEach(e.edges(),(function(n){var r=e.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===t.rankdir||"BT"===t.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(e)})),t(" removeSelfEdges",(function(){!function(e){r.forEach(e.edges(),(function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}}))}(e)})),t(" acyclic",(function(){i.run(e)})),t(" nestingGraph.run",(function(){c.run(e)})),t(" rank",(function(){s(g.asNonCompoundGraph(e))})),t(" injectEdgeLabelProxies",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};g.addDummyNode(e,"edge-proxy",i,"_ep")}}))}(e)})),t(" removeEmptyRanks",(function(){l(e)})),t(" nestingGraph.cleanup",(function(){c.cleanup(e)})),t(" normalizeRanks",(function(){a(e)})),t(" assignRankMinMax",(function(){!function(e){var t=0;r.forEach(e.nodes(),(function(n){var i=e.node(n);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=r.max(t,i.maxRank))})),e.graph().maxRank=t}(e)})),t(" removeEdgeLabelProxies",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);"edge-proxy"===n.dummy&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))}))}(e)})),t(" normalize.run",(function(){o.run(e)})),t(" parentDummyChains",(function(){u(e)})),t(" addBorderSegments",(function(){d(e)})),t(" order",(function(){f(e)})),t(" insertSelfEdges",(function(){!function(e){var t=g.buildLayerMatrix(e);r.forEach(t,(function(t){var n=0;r.forEach(t,(function(t,i){var o=e.node(t);o.order=i+n,r.forEach(o.selfEdges,(function(t){g.addDummyNode(e,"selfedge",{width:t.label.width,height:t.label.height,rank:o.rank,order:i+ ++n,e:t.e,label:t.label},"_se")})),delete o.selfEdges}))}))}(e)})),t(" adjustCoordinateSystem",(function(){h.adjust(e)})),t(" position",(function(){p(e)})),t(" positionSelfEdges",(function(){!function(e){r.forEach(e.nodes(),(function(t){var n=e.node(t);if("selfedge"===n.dummy){var r=e.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}}))}(e)})),t(" removeBorderNodes",(function(){!function(e){r.forEach(e.nodes(),(function(t){if(e.children(t).length){var n=e.node(t),i=e.node(n.borderTop),o=e.node(n.borderBottom),s=e.node(r.last(n.borderLeft)),a=e.node(r.last(n.borderRight));n.width=Math.abs(a.x-s.x),n.height=Math.abs(o.y-i.y),n.x=s.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(e.nodes(),(function(t){"border"===e.node(t).dummy&&e.removeNode(t)}))}(e)})),t(" normalize.undo",(function(){o.undo(e)})),t(" fixupEdgeLabelCoords",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(e)})),t(" undoCoordinateSystem",(function(){h.undo(e)})),t(" translateGraph",(function(){!function(e){var t=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,o=0,s=e.graph(),a=s.marginx||0,u=s.marginy||0;function l(e){var r=e.x,s=e.y,a=e.width,u=e.height;t=Math.min(t,r-a/2),n=Math.max(n,r+a/2),i=Math.min(i,s-u/2),o=Math.max(o,s+u/2)}r.forEach(e.nodes(),(function(t){l(e.node(t))})),r.forEach(e.edges(),(function(t){var n=e.edge(t);r.has(n,"x")&&l(n)})),t-=a,i-=u,r.forEach(e.nodes(),(function(n){var r=e.node(n);r.x-=t,r.y-=i})),r.forEach(e.edges(),(function(n){var o=e.edge(n);r.forEach(o.points,(function(e){e.x-=t,e.y-=i})),r.has(o,"x")&&(o.x-=t),r.has(o,"y")&&(o.y-=i)})),s.width=n-t+a,s.height=o-i+u}(e)})),t(" assignNodeIntersects",(function(){!function(e){r.forEach(e.edges(),(function(t){var n,r,i=e.edge(t),o=e.node(t.v),s=e.node(t.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=s,r=o),i.points.unshift(g.intersectRect(o,n)),i.points.push(g.intersectRect(s,r))}))}(e)})),t(" reversePoints",(function(){!function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);n.reversed&&n.points.reverse()}))}(e)})),t(" acyclic.undo",(function(){i.undo(e)}))}(t,n)})),n(" updateInputGraph",(function(){!function(e,t){r.forEach(e.nodes(),(function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(e.edges(),(function(n){var i=e.edge(n),o=t.edge(n);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),e.graph().width=t.graph().width,e.graph().height=t.graph().height}(e,t)}))}))};var _=["nodesep","edgesep","ranksep","marginx","marginy"],y={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},v=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},C=["minlen","weight","width","height","labeloffset"],S={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},x=["labelpos"];function L(e,t){return r.mapValues(r.pick(e,t),Number)}function k(e){var t={};return r.forEach(e,(function(e,n){t[n.toLowerCase()]=e})),t}},function(e,t,n){"use strict";var r=n(3),i=n(525);e.exports={run:function(e){var t="greedy"===e.graph().acyclicer?i(e,function(e){return function(t){return e.edge(t).weight}}(e)):function(e){var t=[],n={},i={};return r.forEach(e.nodes(),(function o(s){if(r.has(i,s))return;i[s]=!0,n[s]=!0,r.forEach(e.outEdges(s),(function(e){r.has(n,e.w)?t.push(e):o(e.w)})),delete n[s]})),t}(e);r.forEach(t,(function(t){var n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,r.uniqueId("rev"))}))},undo:function(e){r.forEach(e.edges(),(function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}}))}}},function(e,t,n){var r=n(3),i=n(16).Graph,o=n(526);e.exports=function(e,t){if(e.nodeCount()<=1)return[];var n=function(e,t){var n=new i,s=0,a=0;r.forEach(e.nodes(),(function(e){n.setNode(e,{v:e,in:0,out:0})})),r.forEach(e.edges(),(function(e){var r=n.edge(e.v,e.w)||0,i=t(e),o=r+i;n.setEdge(e.v,e.w,o),a=Math.max(a,n.node(e.v).out+=i),s=Math.max(s,n.node(e.w).in+=i)}));var l=r.range(a+s+3).map((function(){return new o})),c=s+1;return r.forEach(n.nodes(),(function(e){u(l,c,n.node(e))})),{graph:n,buckets:l,zeroIdx:c}}(e,t||s),l=function(e,t,n){var r,i=[],o=t[t.length-1],s=t[0];for(;e.nodeCount();){for(;r=s.dequeue();)a(e,t,n,r);for(;r=o.dequeue();)a(e,t,n,r);if(e.nodeCount())for(var u=t.length-2;u>0;--u)if(r=t[u].dequeue()){i=i.concat(a(e,t,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(t){return e.outEdges(t.v,t.w)})),!0)};var s=r.constant(1);function a(e,t,n,i,o){var s=o?[]:void 0;return r.forEach(e.inEdges(i.v),(function(r){var i=e.edge(r),a=e.node(r.v);o&&s.push({v:r.v,w:r.w}),a.out-=i,u(t,n,a)})),r.forEach(e.outEdges(i.v),(function(r){var i=e.edge(r),o=r.w,s=e.node(o);s.in-=i,u(t,n,s)})),e.removeNode(i.v),s}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}},function(e,t){function n(){var e={};e._next=e._prev=e,this._sentinel=e}function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if("_next"!==e&&"_prev"!==e)return t}e.exports=n,n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return"["+e.join(", ")+"]"}},function(e,t,n){"use strict";var r=n(3),i=n(6);e.exports={run:function(e){e.graph().dummyChains=[],r.forEach(e.edges(),(function(t){!function(e,t){var n,r,o,s=t.v,a=e.node(s).rank,u=t.w,l=e.node(u).rank,c=t.name,d=e.edge(t),h=d.labelRank;if(l===a+1)return;for(e.removeEdge(t),o=0,++a;au.lim&&(l=u,c=!0);var d=r.filter(t.edges(),(function(t){return c===_(e,e.node(t.v),l)&&c!==_(e,e.node(t.w),l)}));return r.minBy(d,(function(e){return o(t,e)}))}function m(e,t,n,i){var o=n.v,s=n.w;e.removeEdge(o,s),e.setEdge(i.v,i.w,{}),f(e),d(e,t),function(e,t){var n=r.find(e.nodes(),(function(e){return!t.node(e).parent})),i=a(e,n);i=i.slice(1),r.forEach(i,(function(n){var r=e.node(n).parent,i=t.edge(n,r),o=!1;i||(i=t.edge(r,n),o=!0),t.node(n).rank=t.node(r).rank+(o?i.minlen:-i.minlen)}))}(e,t)}function _(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}e.exports=c,c.initLowLimValues=f,c.initCutValues=d,c.calcCutValue=h,c.leaveEdge=p,c.enterEdge=g,c.exchangeEdges=m},function(e,t,n){var r=n(3);e.exports=function(e){var t=function(e){var t={},n=0;return r.forEach(e.children(),(function i(o){var s=n;r.forEach(e.children(o),i),t[o]={low:s,lim:n++}})),t}(e);r.forEach(e.graph().dummyChains,(function(n){for(var r=e.node(n),i=r.edgeObj,o=function(e,t,n,r){var i,o,s=[],a=[],u=Math.min(t[n].low,t[r].low),l=Math.max(t[n].lim,t[r].lim);i=n;do{i=e.parent(i),s.push(i)}while(i&&(t[i].low>u||l>t[i].lim));o=i,i=r;for(;(i=e.parent(i))!==o;)a.push(i);return{path:s.concat(a.reverse()),lca:o}}(e,t,i.v,i.w),s=o.path,a=o.lca,u=0,l=s[u],c=!0;n!==i.w;){if(r=e.node(n),c){for(;(l=s[u])!==a&&e.node(l).maxRank=2),a=c.buildLayerMatrix(e);var m=o(e,a);m0;)t%2&&(n+=u[t+1]),u[t=t-1>>1]+=e.weight;l+=e.weight*n}))),l}e.exports=function(e,t){for(var n=0,r=1;r=e.barycenter)&&function(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight);t.weight&&(n+=t.barycenter*t.weight,r+=t.weight);e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}(e,t)}}function i(t){return function(n){n.in.push(t),0==--n.indegree&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),r.forEach(o.in.reverse(),n(o)),r.forEach(o.out,i(o))}return r.map(r.filter(t,(function(e){return!e.merged})),(function(e){return r.pick(e,["vs","i","barycenter","weight"])}))}(r.filter(n,(function(e){return!e.indegree})))}},function(e,t,n){var r=n(3),i=n(6);function o(e,t,n){for(var i;t.length&&(i=r.last(t)).i<=n;)t.pop(),e.push(i.vs),n++;return n}e.exports=function(e,t){var n=i.partition(e,(function(e){return r.has(e,"barycenter")})),s=n.lhs,a=r.sortBy(n.rhs,(function(e){return-e.i})),u=[],l=0,c=0,d=0;s.sort((h=!!t,function(e,t){return e.barycentert.barycenter?1:h?t.i-e.i:e.i-t.i})),d=o(u,a,d),r.forEach(s,(function(e){d+=e.vs.length,u.push(e.vs),l+=e.barycenter*e.weight,c+=e.weight,d=o(u,a,d)}));var h;var f={vs:r.flatten(u,!0)};c&&(f.barycenter=l/c,f.weight=c);return f}},function(e,t,n){var r=n(3),i=n(16).Graph;e.exports=function(e,t,n){var o=function(e){var t;for(;e.hasNode(t=r.uniqueId("_root")););return t}(e),s=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(t){return e.node(t)}));return r.forEach(e.nodes(),(function(i){var a=e.node(i),u=e.parent(i);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(i),s.setParent(i,u||o),r.forEach(e[n](i),(function(t){var n=t.v===i?t.w:t.v,o=s.edge(n,i),a=r.isUndefined(o)?0:o.weight;s.setEdge(n,i,{weight:e.edge(t).weight+a})})),r.has(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))})),s}},function(e,t,n){var r=n(3);e.exports=function(e,t,n){var i,o={};r.forEach(n,(function(n){for(var r,s,a=e.parent(n);a;){if((r=e.parent(a))?(s=o[r],o[r]=a):(s=i,i=a),s&&s!==a)return void t.setEdge(s,a);a=r}}))}},function(e,t,n){"use strict";var r=n(3),i=n(6),o=n(544).positionX;e.exports=function(e){(function(e){var t=i.buildLayerMatrix(e),n=e.graph().ranksep,o=0;r.forEach(t,(function(t){var i=r.max(r.map(t,(function(t){return e.node(t).height})));r.forEach(t,(function(t){e.node(t).y=o+i/2})),o+=i+n}))})(e=i.asNonCompoundGraph(e)),r.forEach(o(e),(function(t,n){e.node(n).x=t}))}},function(e,t,n){"use strict";var r=n(3),i=n(16).Graph,o=n(6);function s(e,t){var n={};return r.reduce(t,(function(t,i){var o=0,s=0,a=t.length,l=r.last(i);return r.forEach(i,(function(t,c){var d=function(e,t){if(e.node(t).dummy)return r.find(e.predecessors(t),(function(t){return e.node(t).dummy}))}(e,t),h=d?e.node(d).order:a;(d||t===l)&&(r.forEach(i.slice(s,c+1),(function(t){r.forEach(e.predecessors(t),(function(r){var i=e.node(r),s=i.order;!(sa)&&u(n,t,l)}))}))}return r.reduce(t,(function(t,n){var o,s=-1,a=0;return r.forEach(n,(function(r,u){if("border"===e.node(r).dummy){var l=e.predecessors(r);l.length&&(o=e.node(l[0]).order,i(n,a,u,s,o),a=u,s=o)}i(n,a,n.length,o,t.length)})),n})),n}function u(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,n){if(t>n){var i=t;t=n,n=i}return r.has(e[t],n)}function c(e,t,n,i){var o={},s={},a={};return r.forEach(t,(function(e){r.forEach(e,(function(e,t){o[e]=e,s[e]=e,a[e]=t}))})),r.forEach(t,(function(e){var t=-1;r.forEach(e,(function(e){var u=i(e);if(u.length)for(var c=((u=r.sortBy(u,(function(e){return a[e]}))).length-1)/2,d=Math.floor(c),h=Math.ceil(c);d<=h;++d){var f=u[d];s[e]===e&&t0}e.exports=function(e,t,r,i){var o,s,a,u,l,c,d,h,f,p,g,m,_;if(o=t.y-e.y,a=e.x-t.x,l=t.x*e.y-e.x*t.y,f=o*r.x+a*r.y+l,p=o*i.x+a*i.y+l,0!==f&&0!==p&&n(f,p))return;if(s=i.y-r.y,u=r.x-i.x,c=i.x*r.y-r.x*i.y,d=s*e.x+u*e.y+c,h=s*t.x+u*t.y+c,0!==d&&0!==h&&n(d,h))return;if(0===(g=o*u-s*a))return;return m=Math.abs(g/2),{x:(_=a*c-u*l)<0?(_-m)/g:(_+m)/g,y:(_=s*l-o*c)<0?(_-m)/g:(_+m)/g}}},function(e,t,n){var r=n(37),i=n(22),o=n(170).layout;e.exports=function(){var e=n(550),t=n(553),i=n(554),l=n(555),c=n(556),d=n(557),h=n(558),f=n(559),p=n(560),g=function(n,g){!function(e){e.nodes().forEach((function(t){var n=e.node(t);r.has(n,"label")||e.children(t).length||(n.label=t),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,s),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(e){n[e]=Number(n[e])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),e.edges().forEach((function(t){var n=e.edge(t);r.has(n,"label")||(n.label=""),r.defaults(n,a)}))}(g);var m=u(n,"output"),_=u(m,"clusters"),y=u(m,"edgePaths"),v=i(u(m,"edgeLabels"),g),b=e(u(m,"nodes"),g,f);o(g),c(b,g),d(v,g),l(y,g,p);var w=t(_,g);h(w,g),function(e){r.each(e.nodes(),(function(t){var n=e.node(t);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(t){return arguments.length?(e=t,g):e},g.createClusters=function(e){return arguments.length?(t=e,g):t},g.createEdgeLabels=function(e){return arguments.length?(i=e,g):i},g.createEdgePaths=function(e){return arguments.length?(l=e,g):l},g.shapes=function(e){return arguments.length?(f=e,g):f},g.arrows=function(e){return arguments.length?(p=e,g):p},g};var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},a={arrowhead:"normal",curve:i.curveLinear};function u(e,t){var n=e.select("g."+t);return n.empty()&&(n=e.append("g").attr("class",t)),n}},function(e,t,n){"use strict";var r=n(37),i=n(98),o=n(10),s=n(22);e.exports=function(e,t,n){var a,u=t.nodes().filter((function(e){return!o.isSubgraph(t,e)})),l=e.selectAll("g.node").data(u,(function(e){return e})).classed("update",!0);l.exit().remove(),l.enter().append("g").attr("class","node").style("opacity",0),(l=e.selectAll("g.node")).each((function(e){var a=t.node(e),u=s.select(this);o.applyClass(u,a.class,(u.classed("update")?"update ":"")+"node"),u.select("g.label").remove();var l=u.append("g").attr("class","label"),c=i(l,a),d=n[a.shape],h=r.pick(c.node().getBBox(),"width","height");a.elem=this,a.id&&u.attr("id",a.id),a.labelId&&l.attr("id",a.labelId),r.has(a,"width")&&(h.width=a.width),r.has(a,"height")&&(h.height=a.height),h.width+=a.paddingLeft+a.paddingRight,h.height+=a.paddingTop+a.paddingBottom,l.attr("transform","translate("+(a.paddingLeft-a.paddingRight)/2+","+(a.paddingTop-a.paddingBottom)/2+")");var f=s.select(this);f.select(".label-container").remove();var p=d(f,h,a).classed("label-container",!0);o.applyStyle(p,a.style);var g=p.node().getBBox();a.width=g.width,a.height=g.height})),a=l.exit?l.exit():l.selectAll(null);return o.applyTransition(a,t).style("opacity",0).remove(),l}},function(e,t,n){var r=n(10);e.exports=function(e,t){for(var n=e.append("text"),i=function(e){for(var t,n="",r=!1,i=0;i=255?255:e<0?0:e},g:function(e){return e>=255?255:e<0?0:e},b:function(e){return e>=255?255:e<0?0:e},h:function(e){return e%360},s:function(e){return e>=100?100:e<0?0:e},l:function(e){return e>=100?100:e<0?0:e},a:function(e){return e>=1?1:e<0?0:e}},toLinear:function(e){var t=e/255;return e>.03928?Math.pow((t+.055)/1.055,2.4):t/12.92},hue2rgb:function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},hsl2rgb:function(e,t){var n=e.h,i=e.s,o=e.l;if(100===i)return 2.55*o;n/=360,i/=100;var s=(o/=100)<.5?o*(1+i):o+i-o*i,a=2*o-s;switch(t){case"r":return 255*r.hue2rgb(a,s,n+1/3);case"g":return 255*r.hue2rgb(a,s,n);case"b":return 255*r.hue2rgb(a,s,n-1/3)}},rgb2hsl:function(e,t){var n=e.r,r=e.g,i=e.b;n/=255,r/=255,i/=255;var o=Math.max(n,r,i),s=Math.min(n,r,i),a=(o+s)/2;if("l"===t)return 100*a;if(o===s)return 0;var u=o-s;if("s"===t)return 100*(a>.5?u/(2-o-s):u/(o+s));switch(o){case n:return 60*((r-i)/u+(r1?t:"0"+t},dec2hex:function(e){var t=Math.round(e).toString(16);return t.length>1?t:"0"+t}};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(99),o=n(569),s=function(){function e(e,t){this.color=t,this.changed=!1,this.data=e,this.type=new o.default}return e.prototype.set=function(e,t){return this.color=t,this.changed=!1,this.data=e,this.type.type=i.TYPE.ALL,this},e.prototype._ensureHSL=function(){void 0===this.data.h&&(this.data.h=r.default.channel.rgb2hsl(this.data,"h")),void 0===this.data.s&&(this.data.s=r.default.channel.rgb2hsl(this.data,"s")),void 0===this.data.l&&(this.data.l=r.default.channel.rgb2hsl(this.data,"l"))},e.prototype._ensureRGB=function(){void 0===this.data.r&&(this.data.r=r.default.channel.hsl2rgb(this.data,"r")),void 0===this.data.g&&(this.data.g=r.default.channel.hsl2rgb(this.data,"g")),void 0===this.data.b&&(this.data.b=r.default.channel.hsl2rgb(this.data,"b"))},Object.defineProperty(e.prototype,"r",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.r?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"r")):this.data.r},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.r=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"g",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.g?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"g")):this.data.g},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.g=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.type.is(i.TYPE.HSL)||void 0===this.data.b?(this._ensureHSL(),r.default.channel.hsl2rgb(this.data,"b")):this.data.b},set:function(e){this.type.set(i.TYPE.RGB),this.changed=!0,this.data.b=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"h",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.h?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"h")):this.data.h},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.h=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"s",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.s?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"s")):this.data.s},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.s=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"l",{get:function(){return this.type.is(i.TYPE.RGB)||void 0===this.data.l?(this._ensureRGB(),r.default.channel.rgb2hsl(this.data,"l")):this.data.l},set:function(e){this.type.set(i.TYPE.HSL),this.changed=!0,this.data.l=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"a",{get:function(){return this.data.a},set:function(e){this.changed=!0,this.data.a=e},enumerable:!0,configurable:!0}),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(99),i=function(){function e(){this.type=r.TYPE.ALL}return e.prototype.get=function(){return this.type},e.prototype.set=function(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e},e.prototype.reset=function(){this.type=r.TYPE.ALL},e.prototype.is=function(e){return this.type===e},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i={};t.DEC2HEX=i;for(var o=0;o<=255;o++)i[o]=r.default.unit.dec2hex(o)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(177),i={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:function(e){e=e.toLowerCase();var t=i.colors[e];if(t)return r.default.parse(t)},stringify:function(e){var t=r.default.stringify(e);for(var n in i.colors)if(i.colors[n]===t)return n}};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:function(e){var t=e.charCodeAt(0);if(114===t||82===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],u=n[3],l=n[4],c=n[5],d=n[6],h=n[7],f=n[8];return i.default.set({r:r.default.channel.clamp.r(a?2.55*parseFloat(s):parseFloat(s)),g:r.default.channel.clamp.g(l?2.55*parseFloat(u):parseFloat(u)),b:r.default.channel.clamp.b(d?2.55*parseFloat(c):parseFloat(c)),a:h?r.default.channel.clamp.a(f?parseFloat(h)/100:parseFloat(h)):1},e)}}},stringify:function(e){return e.a<1?"rgba("+r.default.lang.round(e.r)+", "+r.default.lang.round(e.g)+", "+r.default.lang.round(e.b)+", "+r.default.lang.round(e.a)+")":"rgb("+r.default.lang.round(e.r)+", "+r.default.lang.round(e.g)+", "+r.default.lang.round(e.b)+")"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(46),o={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:function(e){var t=e.match(o.hueRe);if(t){var n=t[1];switch(t[2]){case"grad":return r.default.channel.clamp.h(.9*parseFloat(n));case"rad":return r.default.channel.clamp.h(180*parseFloat(n)/Math.PI);case"turn":return r.default.channel.clamp.h(360*parseFloat(n))}}return r.default.channel.clamp.h(parseFloat(e))},parse:function(e){var t=e.charCodeAt(0);if(104===t||72===t){var n=e.match(o.re);if(n){var s=n[1],a=n[2],u=n[3],l=n[4],c=n[5];return i.default.set({h:o._hue2deg(s),s:r.default.channel.clamp.s(parseFloat(a)),l:r.default.channel.clamp.l(parseFloat(u)),a:l?r.default.channel.clamp.a(c?parseFloat(l)/100:parseFloat(l)):1},e)}}},stringify:function(e){return e.a<1?"hsla("+r.default.lang.round(e.h)+", "+r.default.lang.round(e.s)+"%, "+r.default.lang.round(e.l)+"%, "+e.a+")":"hsl("+r.default.lang.round(e.h)+", "+r.default.lang.round(e.s)+"%, "+r.default.lang.round(e.l)+"%)"}};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"r")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"g")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"b")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"h")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"s")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23);t.default=function(e){return r.default(e,"l")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(181);t.default=function(e){return!r.default(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);t.default=function(e){try{return r.default.parse(e),!0}catch(e){return!1}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"s",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"s",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"l",t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e,t){return r.default(e,"l",-t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(29);t.default=function(e){return r.default(e,"h",180)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(71);t.default=function(e){return r.default(e,{s:0})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(185);t.default=function(e,t){void 0===t&&(t=100);var n=r.default.parse(e);return n.r=255-n.r,n.g=255-n.g,n.b=255-n.b,i.default(n,e,t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),i=n(17),o=n(184);t.default=function(e,t){var n,s,a,u=i.default.parse(e),l={};for(var c in t)l[c]=(n=u[c],s=t[c],a=r.default.channel.max[c],s>0?(a-n)*s/100:n*s/100);return o.default(e,l)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;rLe(e)?(o=e+1,s=a-Le(e)):(o=e,s=a),{year:o,dayOfYear:s}}function ze(e,t,n){var r,i,o=He(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+Ue(i=e.year()-1,t,n):s>Ue(e.year(),t,n)?(r=s-Ue(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function Ue(e,t,n){var r=He(e,t,n),i=He(e+1,t,n);return(Le(e)-r+i)/7}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",J),ce("ww",J,G),ce("W",J),ce("WW",J,G),ge(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=S(e)})),z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",J),ce("e",J),ce("E",J),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),ge(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),ge(["d","e","E"],(function(e,t,n,r){t[r]=S(e)}));var qe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=ue,Ze=ue,Xe=ue;function Je(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),o=this.weekdays(n,""),s.push(r),a.push(i),u.push(o),l.push(r),l.push(i),l.push(o);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=he(a[t]),u[t]=he(u[t]),l[t]=he(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Qe(){return this.hours()%12||12}function et(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tt(e,t){return t._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Qe),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+Qe.apply(this)+j(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Qe.apply(this)+j(this.minutes(),2)+j(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+j(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+j(this.minutes(),2)+j(this.seconds(),2)})),et("a",!0),et("A",!1),I("hour","h"),Y("hour",13),ce("a",tt),ce("A",tt),ce("H",J),ce("h",J),ce("k",J),ce("HH",J,G),ce("hh",J,G),ce("kk",J,G),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),pe(["H","HH"],ve),pe(["k","kk"],(function(e,t,n){var r=S(e);t[ve]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[ve]=S(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r,2)),t[we]=S(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ve]=S(e.substr(0,r)),t[be]=S(e.substr(r,2)),t[we]=S(e.substr(i))}));var nt,rt=Ee("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Pe,week:{dow:0,doy:6},weekdays:qe,weekdaysMin:Ge,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},ot={},st={};function at(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!ot[t]&&void 0!==e&&e&&e.exports)try{r=nt._abbr,n(591)("./"+t),lt(r)}catch(t){}return ot[t]}function lt(e,t){var n;return e&&((n=a(t)?dt(e):ct(e,t))?nt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),nt._abbr}function ct(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=ot[e])E("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ot[e]._config;else if(null!=t.parentLocale)if(null!=ot[t.parentLocale])r=ot[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ot[e]=new O(N(r,t)),st[e]&&st[e].forEach((function(e){ct(e.name,e.config)})),lt(e),ot[e]}return delete ot[e],null}function dt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return nt;if(!o(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,i,o=0;o=t&&x(i,n,!0)>=t-1)break;t--}o++}return nt}(e)}function ht(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[_e]<0||11Oe(n[me],n[_e])?ye:n[ve]<0||24Ue(n,o,s)?p(e)._overflowWeeks=!0:null!=u?p(e)._overflowWeekday=!0:(a=Ve(n,r,i,o,s),e._a[me]=a.year,e._dayOfYear=a.dayOfYear)}(e),null!=e._dayOfYear&&(s=ft(e._a[me],r[me]),(e._dayOfYear>Le(s)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=We(s,0,e._dayOfYear),e._a[_e]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[be]&&0===e._a[we]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?We:function(e,t,n,r,i,o,s){var a=new Date(e,t,n,r,i,o,s);return e<100&&0<=e&&isFinite(a.getFullYear())&&a.setFullYear(e),a}).apply(null,a),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(p(e).weekdayMismatch=!0)}}var gt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,mt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_t=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],vt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],bt=/^\/?Date\((\-?\d+)/i;function wt(e){var t,n,r,i,o,s,a=e._i,u=gt.exec(a)||mt.exec(a);if(u){for(p(e).iso=!0,t=0,n=yt.length;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},cn.isLocal=function(){return!!this.isValid()&&!this._isUTC},cn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},cn.isUtc=Wt,cn.isUTC=Wt,cn.zoneAbbr=function(){return this._isUTC?"UTC":""},cn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},cn.dates=k("dates accessor is deprecated. Use date instead.",rn),cn.months=k("months accessor is deprecated. Use month instead",Fe),cn.years=k("years accessor is deprecated. Use year instead",De),cn.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),cn.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),(e=kt(e))._a){var t=e._isUTC?f(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&0])/g,y=/([[}=:>])\s+/g,v=/(\{[^{]+?);(?=\})/g,b=/\s{2,}/g,w=/([^\(])(:+) */g,C=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,L=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,M=/stretch|:\s*\w+\-(?:conte|avail)/,D=/([^-])(image-set\()/,E="-webkit-",T="-moz-",N="-ms-",O=59,A=125,I=123,P=40,R=41,F=91,Y=93,j=10,B=13,W=9,H=64,V=32,z=38,U=45,q=95,K=42,G=44,$=58,Z=39,X=34,J=47,Q=62,ee=43,te=126,ne=0,re=12,ie=11,oe=107,se=109,ae=115,ue=112,le=111,ce=105,de=99,he=100,fe=112,pe=1,ge=1,me=0,_e=1,ye=1,ve=1,be=0,we=0,Ce=0,Se=[],xe=[],Le=0,ke=null,Me=-2,De=-1,Ee=0,Te=1,Ne=2,Oe=3,Ae=0,Ie=1,Pe="",Re="",Fe="";function Ye(e,t,i,o,s){for(var a,u,c=0,d=0,h=0,f=0,_=0,y=0,v=0,b=0,C=0,x=0,L=0,k=0,M=0,D=0,q=0,be=0,xe=0,ke=0,Me=0,De=i.length,Be=De-1,qe="",Ke="",Ge="",$e="",Ze="",Xe="";q0&&(Ke=Ke.replace(r,"")),Ke.trim().length>0)){switch(v){case V:case W:case O:case B:case j:break;default:Ke+=i.charAt(q)}v=O}if(1===xe)switch(v){case I:case A:case O:case X:case Z:case P:case R:case G:xe=0;case W:case B:case j:case V:break;default:for(xe=0,Me=q,_=v,q--,v=O;Me0&&(++q,v=_);case I:Me=De}}switch(v){case I:for(_=(Ke=Ke.trim()).charCodeAt(0),L=1,Me=++q;q0&&(Ke=Ke.replace(r,"")),y=Ke.charCodeAt(1)){case he:case se:case ae:case U:a=t;break;default:a=Se}if(Me=(Ge=Ye(t,a,Ge,y,s+1)).length,Ce>0&&0===Me&&(Me=Ke.length),Le>0&&(a=je(Se,Ke,ke),u=ze(Oe,Ge,a,t,ge,pe,Me,y,s,o),Ke=a.join(""),void 0!==u&&0===(Me=(Ge=u.trim()).length)&&(y=0,Ge="")),Me>0)switch(y){case ae:Ke=Ke.replace(S,Ve);case he:case se:case U:Ge=Ke+"{"+Ge+"}";break;case oe:Ge=(Ke=Ke.replace(p,"$1 $2"+(Ie>0?Pe:"")))+"{"+Ge+"}",Ge=1===ye||2===ye&&He("@"+Ge,3)?"@"+E+Ge+"@"+Ge:"@"+Ge;break;default:Ge=Ke+Ge,o===fe&&($e+=Ge,Ge="")}else Ge="";break;default:Ge=Ye(t,je(t,Ke,ke),Ge,o,s+1)}Ze+=Ge,k=0,xe=0,D=0,be=0,ke=0,M=0,Ke="",Ge="",v=i.charCodeAt(++q);break;case A:case O:if((Me=(Ke=(be>0?Ke.replace(r,""):Ke).trim()).length)>1)switch(0===D&&((_=Ke.charCodeAt(0))===U||_>96&&_<123)&&(Me=(Ke=Ke.replace(" ",":")).length),Le>0&&void 0!==(u=ze(Te,Ke,t,e,ge,pe,$e.length,o,s,o))&&0===(Me=(Ke=u.trim()).length)&&(Ke="\0\0"),_=Ke.charCodeAt(0),y=Ke.charCodeAt(1),_){case ne:break;case H:if(y===ce||y===de){Xe+=Ke+i.charAt(q);break}default:if(Ke.charCodeAt(Me-1)===$)break;$e+=We(Ke,_,y,Ke.charCodeAt(2))}k=0,xe=0,D=0,be=0,ke=0,Ke="",v=i.charCodeAt(++q)}}switch(v){case B:case j:if(d+f+h+c+we===0)switch(x){case R:case Z:case X:case H:case te:case Q:case K:case ee:case J:case U:case $:case G:case O:case I:case A:break;default:D>0&&(xe=1)}d===J?d=0:_e+k===0&&o!==oe&&Ke.length>0&&(be=1,Ke+="\0"),Le*Ae>0&&ze(Ee,Ke,t,e,ge,pe,$e.length,o,s,o),pe=1,ge++;break;case O:case A:if(d+f+h+c===0){pe++;break}default:switch(pe++,qe=i.charAt(q),v){case W:case V:if(f+c+d===0)switch(b){case G:case $:case W:case V:qe="";break;default:v!==V&&(qe=" ")}break;case ne:qe="\\0";break;case re:qe="\\f";break;case ie:qe="\\v";break;case z:f+d+c===0&&_e>0&&(ke=1,be=1,qe="\f"+qe);break;case 108:if(f+d+c+me===0&&D>0)switch(q-D){case 2:b===ue&&i.charCodeAt(q-3)===$&&(me=b);case 8:C===le&&(me=C)}break;case $:f+d+c===0&&(D=q);break;case G:d+h+f+c===0&&(be=1,qe+="\r");break;case X:case Z:0===d&&(f=f===v?0:0===f?v:f);break;case F:f+d+h===0&&c++;break;case Y:f+d+h===0&&c--;break;case R:f+d+c===0&&h--;break;case P:if(f+d+c===0){if(0===k)switch(2*b+3*C){case 533:break;default:L=0,k=1}h++}break;case H:d+h+f+c+D+M===0&&(M=1);break;case K:case J:if(f+c+h>0)break;switch(d){case 0:switch(2*v+3*i.charCodeAt(q+1)){case 235:d=J;break;case 220:Me=q,d=K}break;case K:v===J&&b===K&&Me+2!==q&&(33===i.charCodeAt(Me+2)&&($e+=i.substring(Me,q+1)),qe="",d=0)}}if(0===d){if(_e+f+c+M===0&&o!==oe&&v!==O)switch(v){case G:case te:case Q:case ee:case R:case P:if(0===k){switch(b){case W:case V:case j:case B:qe+="\0";break;default:qe="\0"+qe+(v===G?"":"\0")}be=1}else switch(v){case P:D+7===q&&108===b&&(D=0),k=++L;break;case R:0==(k=--L)&&(be=1,qe+="\0")}break;case W:case V:switch(b){case ne:case I:case A:case O:case G:case re:case W:case V:case j:case B:break;default:0===k&&(be=1,qe+="\0")}}Ke+=qe,v!==V&&v!==W&&(x=v)}}C=b,b=v,q++}if(Me=$e.length,Ce>0&&0===Me&&0===Ze.length&&0===t[0].length==0&&(o!==se||1===t.length&&(_e>0?Re:Fe)===t[0])&&(Me=t.join(",").length+2),Me>0){if(a=0===_e&&o!==oe?function(e){for(var t,n,i=0,o=e.length,s=Array(o);i1)){if(h=u.charCodeAt(u.length-1),f=n.charCodeAt(0),t="",0!==c)switch(h){case K:case te:case Q:case ee:case V:case P:break;default:t=" "}switch(f){case z:n=t+Re;case te:case Q:case ee:case V:case R:case P:break;case F:n=t+n+Re;break;case $:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(ve>0){n=t+n.substring(8,d-1);break}default:(c<1||a[c-1].length<1)&&(n=t+Re+n)}break;case G:t="";default:n=d>1&&n.indexOf(":")>0?t+n.replace(w,"$1"+Re+"$2"):t+n+Re}u+=n}s[i]=u.replace(r,"").trim()}return s}(t):t,Le>0&&void 0!==(u=ze(Ne,$e,a,e,ge,pe,Me,o,s,o))&&0===($e=u).length)return Xe+$e+Ze;if($e=a.join(",")+"{"+$e+"}",ye*me!=0){switch(2!==ye||He($e,2)||(me=0),me){case le:$e=$e.replace(m,":"+T+"$1")+$e;break;case ue:$e=$e.replace(g,"::"+E+"input-$1")+$e.replace(g,"::"+T+"$1")+$e.replace(g,":"+N+"input-$1")+$e}me=0}}return Xe+$e+Ze}function je(e,t,n){var r=t.trim().split(c),i=r,o=r.length,s=e.length;switch(s){case 0:case 1:for(var a=0,u=0===s?"":e[0]+" ";a0&&_e>0)return i.replace(h,"$1").replace(d,"$1"+Fe);break;default:return e.trim()+i.replace(d,"$1"+e.trim())}default:if(n*_e>0&&i.indexOf("\f")>0)return i.replace(d,(e.charCodeAt(0)===$?"":"$1")+e.trim())}return e+i}function We(e,t,n,r){var l,c=0,d=e+";",h=2*t+3*n+4*r;if(944===h)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*Ie){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",a)),s=0;for(n=0,t=o.length;sH&&d<90||d>96&&d<123||d===q||d===U&&l.charCodeAt(1)!==U))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:l+=Pe}}c[n++]=l}i+=(0===s?"":",")+c.join(" ")}}return i=r+i+";",1===ye||2===ye&&He(i,1)?E+i+i:i}(d);if(0===ye||2===ye&&!He(d,1))return d;switch(h){case 1015:return 97===d.charCodeAt(10)?E+d+d:d;case 951:return 116===d.charCodeAt(3)?E+d+d:d;case 963:return 110===d.charCodeAt(5)?E+d+d:d;case 1009:if(100!==d.charCodeAt(4))break;case 969:case 942:return E+d+d;case 978:return E+d+T+d+d;case 1019:case 983:return E+d+T+d+N+d+d;case 883:return d.charCodeAt(8)===U?E+d+d:d.indexOf("image-set(",11)>0?d.replace(D,"$1"+E+"$2")+d:d;case 932:if(d.charCodeAt(4)===U)switch(d.charCodeAt(5)){case 103:return E+"box-"+d.replace("-grow","")+E+d+N+d.replace("grow","positive")+d;case 115:return E+d+N+d.replace("shrink","negative")+d;case 98:return E+d+N+d.replace("basis","preferred-size")+d}return E+d+N+d+d;case 964:return E+d+N+"flex-"+d+d;case 1023:if(99!==d.charCodeAt(8))break;return l=d.substring(d.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),E+"box-pack"+l+E+d+N+"flex-pack"+l+d;case 1005:return o.test(d)?d.replace(i,":"+E)+d.replace(i,":"+T)+d:d;case 1e3:switch(c=(l=d.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(c)){case 226:l=d.replace(C,"tb");break;case 232:l=d.replace(C,"tb-rl");break;case 220:l=d.replace(C,"lr");break;default:return d}return E+d+N+l+d;case 1017:if(-1===d.indexOf("sticky",9))return d;case 975:switch(c=(d=e).length-10,h=(l=(33===d.charCodeAt(c)?d.substring(0,c):d).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:d=d.replace(l,E+l)+";"+d;break;case 207:case 102:d=d.replace(l,E+(h>102?"inline-":"")+"box")+";"+d.replace(l,E+l)+";"+d.replace(l,N+l+"box")+";"+d}return d+";";case 938:if(d.charCodeAt(5)===U)switch(d.charCodeAt(6)){case 105:return l=d.replace("-items",""),E+d+E+"box-"+l+N+"flex-"+l+d;case 115:return E+d+N+"flex-item-"+d.replace(L,"")+d;default:return E+d+N+"flex-line-pack"+d.replace("align-content","").replace(L,"")+d}break;case 973:case 989:if(d.charCodeAt(3)!==U||122===d.charCodeAt(4))break;case 931:case 953:if(!0===M.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?We(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):d.replace(l,E+l)+d.replace(l,T+l.replace("fill-",""))+d;break;case 962:if(d=E+d+(102===d.charCodeAt(5)?N+d:"")+d,n+r===211&&105===d.charCodeAt(13)&&d.indexOf("transform",10)>0)return d.substring(0,d.indexOf(";",27)+1).replace(s,"$1"+E+"$2")+d}return d}function He(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return ke(2!==t?r:r.replace(k,"$1"),i,t)}function Ve(e,t){var n=We(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(x," or ($1)").substring(4):"("+t+")"}function ze(e,t,n,r,i,o,s,a,u,l){for(var c,d=0,h=t;d0&&(Pe=i.replace(f,o===F?"":"-")),o=1,1===_e?Fe=i:Re=i;var s,a=[Fe];Le>0&&void 0!==(s=ze(De,n,a,a,ge,pe,0,0,0,0))&&"string"==typeof s&&(n=s);var u=Ye(Se,a,n,0,0);return Le>0&&void 0!==(s=ze(Me,u,a,a,ge,pe,u.length,0,0,0))&&"string"!=typeof(u=s)&&(o=0),Pe="",Fe="",Re="",me=0,ge=1,pe=1,be*o==0?u:function(e){return e.replace(r,"").replace(_,"").replace(y,"$1").replace(v,"$1").replace(b," ")}(u)}return Ke.use=function e(t){switch(t){case void 0:case null:Le=xe.length=0;break;default:if("function"==typeof t)xe[Le++]=t;else if("object"==typeof t)for(var n=0,r=t.length;nn.unsubscribe():n}function h(e){let t;return d(e,e=>t=e)(),t}function f(e,t,n,r){if(e){const i=p(e,t,n,r);return e[0](i)}}function p(e,t,n,r){return e[1]&&r?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](r(t))):n.ctx}function g(e,t,n,r){return e[2]&&r?t.dirty|e[2](r(n)):t.dirty}function m(e){return null==e?"":e}new Set;function _(e,t){e.appendChild(t)}function y(e,t,n){e.insertBefore(t,n||null)}function v(e){e.parentNode.removeChild(e)}function b(e){return document.createElement(e)}function w(e){return document.createTextNode(e)}function C(){return w(" ")}function S(){return w("")}function x(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function L(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function k(e){return""===e?void 0:+e}function M(e,t){t=""+t,e.data!==t&&(e.data=t)}function D(e,t){(null!=t||e.value)&&(e.value=t)}function E(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}let T;function N(e){T=e}function O(){if(!T)throw new Error("Function called outside component initialization");return T}function A(e){O().$$.on_mount.push(e)}const I=[],P=[],R=[],F=[],Y=Promise.resolve();let j=!1;function B(){j||(j=!0,Y.then(H))}function W(e){R.push(e)}function H(){const e=new Set;do{for(;I.length;){const e=I.shift();N(e),V(e.$$)}for(;P.length;)P.pop()();for(let t=0;t{z.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}}"undefined"!=typeof window?window:global;new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]);let Z;function X(e){e&&e.c()}function J(e,t,n){const{fragment:r,on_mount:i,on_destroy:o,after_update:a}=e.$$;r&&r.m(t,n),W(()=>{const t=i.map(s).filter(l);o?o.push(...t):u(t),e.$$.on_mount=[]}),a.forEach(W)}function Q(e,t){const n=e.$$;null!==n.fragment&&(u(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function ee(e,t,n,r,i,s,l=[-1]){const c=T;N(e);const d=t.props||{},h=e.$$={fragment:null,ctx:null,props:s,update:o,not_equal:i,bound:a(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(c?c.$$.context:[]),callbacks:a(),dirty:l};let f=!1;var p;h.ctx=n?n(e,d,(t,n,r=n)=>(h.ctx&&i(h.ctx[t],h.ctx[t]=r)&&(h.bound[t]&&h.bound[t](r),f&&function(e,t){-1===e.$$.dirty[0]&&(I.push(e),B(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}});class te{$destroy(){Q(this,1),this.$destroy=o}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(){}}const ne=[];function re(e,t){return{subscribe:ie(e,t).subscribe}}function ie(e,t=o){let n;const r=[];function i(t){if(c(e,t)&&(e=t,n)){const t=!ne.length;for(let t=0;t{const e=r.indexOf(u);-1!==e&&r.splice(e,1),0===r.length&&(n(),n=null)}}}}function oe(e,t,n){const r=!Array.isArray(e),i=r?[e]:e,s=t.length<2;return re(n,e=>{let n=!1;const a=[];let c=0,d=o;const h=()=>{if(c)return;d();const n=t(r?a[0]:a,e);s?e(n):d=l(n)?n:o},f=i.map((e,t)=>e.subscribe(e=>{a[t]=e,c&=~(1<{c|=1<{Q(e,1)}),K()}r?(X((o=new r(i(e))).$$.fragment),G(o.$$.fragment,1),J(o,t.parentNode,t)):o=null}else r&&o.$set(s)},i(e){n||(o&&G(o.$$.fragment,e),n=!0)},o(e){o&&$(o.$$.fragment,e),n=!1},d(e){e&&v(t),o&&Q(o,e)}}}function ue(){const e=window.location.href.indexOf("#/");let t=e>-1?window.location.href.substr(e+1):"/";const n=t.indexOf("?");let r="";return n>-1&&(r=t.substr(n+1),t=t.substr(0,n)),{location:t,querystring:r}}const le=re(ue(),(function(e){const t=()=>{e(ue())};return window.addEventListener("hashchange",t,!1),function(){window.removeEventListener("hashchange",t,!1)}}));oe(le,e=>e.location),oe(le,e=>e.querystring);function ce(e){if(!e||e.length<1||"/"!=e.charAt(0)&&0!==e.indexOf("#/"))throw Error("Invalid parameter location");setTimeout(()=>{const t=("#"==e.charAt(0)?"":"#")+e;history.replaceState(void 0,void 0,t),window.dispatchEvent(new Event("hashchange"))},0)}function de(e){if(!e||!e.tagName||"a"!=e.tagName.toLowerCase())throw Error('Action "link" can only be used with tags');const t=e.getAttribute("href");if(!t||t.length<1||"/"!=t.charAt(0))throw Error('Invalid value for "href" attribute');e.setAttribute("href","#"+t)}function he(e,t,n){let r,i=o;!function(e,t,n){e.$$.on_destroy.push(d(t,n))}(e,le,e=>n(3,r=e)),e.$$.on_destroy.push(()=>i());let{routes:s={}}=t;class a{constructor(e,t){if(!t||"function"!=typeof t&&("object"!=typeof t||!0!==t._sveltesparouter))throw Error("Invalid component object");if(!e||"string"==typeof e&&(e.length<1||"/"!=e.charAt(0)&&"*"!=e.charAt(0))||"object"==typeof e&&!(e instanceof RegExp))throw Error('Invalid value for "path" argument');const{pattern:n,keys:r}=se(e);this.path=e,"object"==typeof t&&!0===t._sveltesparouter?(this.component=t.route,this.conditions=t.conditions||[]):(this.component=t,this.conditions=[]),this._pattern=n,this._keys=r}match(e){const t=this._pattern.exec(e);if(null===t)return null;if(!1===this._keys)return t;const n={};let r=0;for(;r{const r=e.$$.callbacks[t];if(r){const i=E(t,n);r.slice().forEach(t=>{t.call(e,i)})}}}(),p=(e,t)=>{setTimeout(()=>{f(e,t)},0)};return e.$set=e=>{"routes"in e&&n(2,s=e.routes)},e.$$.update=()=>{if(9&e.$$.dirty){n(0,c=null);let e=0;for(;!c&&e{let t,n;const r=window.matchMedia("(prefers-color-scheme: dark)").matches&&!1;try{let r=pe.Base64.decode(e);console.log("state from url",r),(n=JSON.parse(r)).code,t=n.code}catch(e){n={code:t="graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n\t\t",mermaid:{theme:r?"dark":"default"}}}ge.set(n)},_e=e=>{ge.set(e),ce("/edit/"+pe.Base64.encodeURI(JSON.stringify(e)))},ye=(e,t)=>{const n=h(ge);n.code=e,n.updateEditor=t,ge.set(n)},ve=e=>{const t=h(ge);t.mermaid=e,ge.set(t)},be=(ge.subscribe(e=>{ce("/edit/"+pe.Base64.encodeURI(JSON.stringify(e)))}),ie(void 0));var we=n(24),Ce=n.n(we);n(317);function Se(e){let t,n,r;return{c(){t=b("div"),n=w(e[1]),L(t,"id","error"),L(t,"class",r=m(e[0])+" svelte-ardmue")},m(e,r){y(e,t,r),_(t,n)},p(e,[i]){2&i&&M(n,e[1]),1&i&&r!==(r=m(e[0])+" svelte-ardmue")&&L(t,"class",r)},i:o,o:o,d(e){e&&v(t)}}}function xe(e,t,n){A(async()=>{});let{classes:r=""}=t,{errorText:i=""}=t;return e.$set=e=>{"classes"in e&&n(0,r=e.classes),"errorText"in e&&n(1,i=e.errorText)},[r,i]}var Le=class extends te{constructor(e){super(),ee(this,e,xe,Se,c,{classes:0,errorText:1})}};const ke=e=>{e.languages.register({id:"mermaid"}),e.languages.setMonarchTokensProvider("mermaid",{typeKeywords:["graph","stateDiagram","sequenceDiagram","classDiagram","pie","flowchart","gantt"],keywords:["patricipant","as"],arrows:["---","===","--\x3e","==>"],tokenizer:{root:[[/[{}]/,"delimiter.bracket"],[/[a-z_$][\w$]*/,{cases:{"@typeKeywords":"keyword","@keywords":"keyword"}}],[/[-=>ox]+/,{cases:{"@arrows":"transition"}}],[/[\[\{\(}]+.+?[\)\]\}]+/,"string"],[/\".*\"/,"string"]]},whitespace:[[/[ \t\r\n]+/,"white"],[/\%\%.*$/,"comment"]]}),e.editor.defineTheme("myCoolTheme",{base:"vs",inherit:!1,rules:[{token:"keyword",foreground:"880000",fontStyle:"bold"},{token:"custom-error",foreground:"ff0000",fontStyle:"bold"},{token:"string",foreground:"AA8500"},{token:"transition",foreground:"008800",fontStyle:"bold"},{token:"delimiter.bracket",foreground:"000000",fontStyle:"bold"}]}),e.languages.registerCompletionItemProvider("mermaid",{provideCompletionItems:()=>{return{suggestions:[{label:"simpleText",kind:e.languages.CompletionItemKind.Text,insertText:"simpleText"},{label:"testing",kind:e.languages.CompletionItemKind.Keyword,insertText:"testing(${1:condition})",insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"ifelse",kind:e.languages.CompletionItemKind.Snippet,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,documentation:"If-Else Statement"}]}}})};function Me(e,t){for(var n=[],r=2;r=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o)-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),void 0!==n&&(n+=e.charAt(i));else{void 0===n&&(n=e.substr(0,i));var s=ft[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function gt(e){for(var t=void 0,n=0;n1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path,et.g&&(t=t.replace(/\//g,"\\")),t}function _t(e,t){var n=t?gt:pt,r="",i=e.scheme,o=e.authority,s=e.path,a=e.query,u=e.fragment;if(i&&(r+=i,r+=":"),(o||"file"===i)&&(r+=ut,r+=ut),o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1),-1===(l=c.indexOf(":"))?r+=n(c,!1):(r+=n(c.substr(0,l),!1),r+=":",r+=n(c.substr(l+1),!1)),r+="@"}-1===(l=(o=o.toLowerCase()).indexOf(":"))?r+=n(o,!1):(r+=n(o.substr(0,l),!1),r+=o.substr(l))}if(s){if(s.length>=3&&47===s.charCodeAt(0)&&58===s.charCodeAt(2))(d=s.charCodeAt(1))>=65&&d<=90&&(s="/"+String.fromCharCode(d+32)+":"+s.substr(3));else if(s.length>=2&&58===s.charCodeAt(1)){var d;(d=s.charCodeAt(0))>=65&&d<=90&&(s=String.fromCharCode(d+32)+":"+s.substr(2))}r+=n(s,!0)}return a&&(r+="?",r+=n(a,!1)),u&&(r+="#",r+=t?u:pt(u,!1)),r}!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(st||(st={}));var yt=bt("instantiationService");function vt(e,t,n,r){t[st.DI_TARGET]===t?t[st.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[st.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[st.DI_TARGET]=t)}function bt(e){if(st.serviceIds.has(e))return st.serviceIds.get(e);var t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");vt(t,e,r,!1)};return t.toString=function(){return e},st.serviceIds.set(e,t),t}function wt(e){return function(t,n,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");vt(e,t,r,!0)}}var Ct=bt("codeEditorService"),St=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.with=function(t,n){return void 0===t&&(t=this.lineNumber),void 0===n&&(n=this.column),t===this.lineNumber&&n===this.column?this:new e(t,n)},e.prototype.delta=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=0),this.with(this.lineNumber+e,this.column+t)},e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumber=n?jt:{done:!1,value:e[t++]}}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,t){return{next:function(){var n=e.next();return n.done?jt:{done:!1,value:t(n.value)}}}},e.filter=function(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return jt;if(t(n.value))return{done:!1,value:n.value}}}}},e.forEach=function(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)},e.collect=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY);var n=[];if(0===t)return n;for(var r=0,i=e.next();!i.done&&(n.push(i.value),!(++r>=t));i=e.next());return n},e.concat=function(){for(var e=[],t=0;t=e.length)return jt;var t=e[n].next();return t.done?(n++,this.next()):t}}}}(Ft||(Ft={}));var Bt,Wt=function(e){function t(t,n,r,i){return void 0===n&&(n=0),void 0===r&&(r=t.length),void 0===i&&(i=n-1),e.call(this,t,n,r,i)||this}return Yt(t,e),t.prototype.current=function(){return e.prototype.current.call(this)},t.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},t.prototype.first=function(){return this.index=this.start,this.current()},t.prototype.last=function(){return this.index=this.end-1,this.current()},t.prototype.parent=function(){return null},t}(function(){function e(e,t,n,r){void 0===t&&(t=0),void 0===n&&(n=e.length),void 0===r&&(r=t-1),this.items=e,this.start=t,this.end=n,this.index=r}return e.prototype.first=function(){return this.index=this.start,this.current()},e.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},e.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},e}()),Ht=(function(){function e(e,t){this.iterator=e,this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())}}(),function(){function e(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}return e.Undefined=new e(void 0),e}()),Vt=function(){function e(){this._first=Ht.Undefined,this._last=Ht.Undefined,this._size=0}return Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return this._first===Ht.Undefined},e.prototype.clear=function(){this._first=Ht.Undefined,this._last=Ht.Undefined,this._size=0},e.prototype.unshift=function(e){return this._insert(e,!1)},e.prototype.push=function(e){return this._insert(e,!0)},e.prototype._insert=function(e,t){var n=this,r=new Ht(e);if(this._first===Ht.Undefined)this._first=r,this._last=r;else if(t){var i=this._last;this._last=r,r.prev=i,i.next=r}else{var o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;var s=!1;return function(){s||(s=!0,n._remove(r))}},e.prototype.shift=function(){if(this._first!==Ht.Undefined){var e=this._first.element;return this._remove(this._first),e}},e.prototype.pop=function(){if(this._last!==Ht.Undefined){var e=this._last.element;return this._remove(this._last),e}},e.prototype._remove=function(e){if(e.prev!==Ht.Undefined&&e.next!==Ht.Undefined){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ht.Undefined&&e.next===Ht.Undefined?(this._first=Ht.Undefined,this._last=Ht.Undefined):e.next===Ht.Undefined?(this._last=this._last.prev,this._last.next=Ht.Undefined):e.prev===Ht.Undefined&&(this._first=this._first.next,this._first.prev=Ht.Undefined);this._size-=1},e.prototype.iterator=function(){var e,t=this._first;return{next:function(){return t===Ht.Undefined?jt:(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e)}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t!==Ht.Undefined;t=t.next)e.push(t.element);return e},e}(),zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(e){function t(e){return function(t,n,r){void 0===n&&(n=null);var i,o=!1;return i=e((function(e){if(!o)return i?i.dispose():o=!0,t.call(n,e)}),null,r),o&&i.dispose(),i}}function n(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){return n.call(r,t(e))}),null,i)}))}function r(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){t(e),n.call(r,e)}),null,i)}))}function i(e,t){return s((function(n,r,i){return void 0===r&&(r=null),e((function(e){return t(e)&&n.call(r,e)}),null,i)}))}function o(e,t,r){var i=r;return n(e,(function(e){return i=t(i,e)}))}function s(e){var t,n=new Kt({onFirstListenerAdd:function(){t=e(n.fire,n)},onLastListenerRemove:function(){t.dispose()}});return n.event}function a(e){var t,n=!0;return i(e,(function(e){var r=n||e!==t;return n=!1,t=e,r}))}e.None=function(){return Pt.None},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(){for(var e=[],t=0;t1)&&l.fire(e),u=0}),n)}))},onLastListenerRemove:function(){o.dispose()}});return l.event},e.stopwatch=function(e){var r=(new Date).getTime();return n(t(e),(function(e){return(new Date).getTime()-r}))},e.latch=a,e.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]);var r=n.slice(),i=e((function(e){r?r.push(e):s.fire(e)})),o=function(){r&&r.forEach((function(e){return s.fire(e)})),r=null},s=new Kt({onFirstListenerAdd:function(){i||(i=e((function(e){return s.fire(e)})))},onFirstListenerDidAdd:function(){r&&(t?setTimeout(o):o())},onLastListenerRemove:function(){i&&i.dispose(),i=null}});return s.event};var u=function(){function e(e){this.event=e}return e.prototype.map=function(t){return new e(n(this.event,t))},e.prototype.forEach=function(t){return new e(r(this.event,t))},e.prototype.filter=function(t){return new e(i(this.event,t))},e.prototype.reduce=function(t,n){return new e(o(this.event,t,n))},e.prototype.latch=function(){return new e(a(this.event))},e.prototype.on=function(e,t,n){return this.event(e,t,n)},e.prototype.once=function(e,n,r){return t(this.event)(e,n,r)},e}();e.chain=function(e){return new u(e)},e.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t0?new qt(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new Vt);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s,a,u=t._listeners.push(r?[n,r]:n);return o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t),t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r),t._leakageMon&&(s=t._leakageMon.check(t._listeners.size)),a={dispose:function(){(s&&s(),a.dispose=e._noop,t._disposed)||(u(),t._options&&t._options.onLastListenerRemove&&(t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)))}},i instanceof It?i.add(a):Array.isArray(i)&&i.push(a),a}),this._event},enumerable:!0,configurable:!0}),e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Vt);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.size>0;){var r=this._deliveryQueue.shift(),i=r[0],o=r[1];try{"function"==typeof i?i.call(void 0,o):i[0].call(i[1],o)}catch(n){Ue(n)}}}},e.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},e._noop=function(){},e}(),Gt=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaused=0,n._eventQueue=new Vt,n._mergeFn=t&&t.merge,n}return zt(t,e),t.prototype.pause=function(){this._isPaused++},t.prototype.resume=function(){if(0!==this._isPaused&&0==--this._isPaused)if(this._mergeFn){var t=this._eventQueue.toArray();this._eventQueue.clear(),e.prototype.fire.call(this,this._mergeFn(t))}else for(;!this._isPaused&&0!==this._eventQueue.size;)e.prototype.fire.call(this,this._eventQueue.shift())},t.prototype.fire=function(t){this._listeners&&(0!==this._isPaused?this._eventQueue.push(t):e.prototype.fire.call(this,t))},t}(Kt),$t=(function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new Kt({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),this.hasListeners&&this.hook(n);return At(function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}((function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)})))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach((function(t){return e.hook(t)}))},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach((function(t){return e.unhook(t)}))},e.prototype.hook=function(e){var t=this;e.listener=e.event((function(e){return t.emitter.fire(e)}))},e.prototype.unhook=function(e){e.listener&&e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()}}(),function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e((function(e){var i=t.buffers[t.buffers.length-1];i?i.push((function(){return n.call(r,e)})):n.call(r,e)}),void 0,i)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();return this.buffers.pop(),t.forEach((function(e){return e()})),n},e}()),Zt=function(){function e(){var e=this;this.listening=!1,this.inputEvent=Bt.None,this.inputEventListener=Pt.None,this.emitter=new Kt({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}(),Xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},Qt=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length?e:t[r]}))}function sn(e){return e.replace(/[<>&]/g,(function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}}))}function an(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function un(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function ln(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t}function dn(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=an(e)),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var r="";return n.global&&(r+="g"),n.matchCase||(r+="i"),n.multiline&&(r+="m"),n.unicode&&(r+="u"),new RegExp(e,r)}function hn(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")}function fn(e){for(var t=0,n=e.length;t=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}function mn(e){return e>=97&&e<=122}function _n(e){return e>=65&&e<=90}function yn(e){return mn(e)||_n(e)}function vn(e,t){return(e?e.length:0)===(t?t.length:0)&&bn(e,t)}function bn(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;re.length)&&bn(e,t,n)}function Cn(e){return 55296<=e&&e<=56319}function Sn(e){return 56320<=e&&e<=57343}var xn=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Ln(e){return xn.test(e)}var kn=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;var Mn=/^[\t\n\r\x20-\x7E]*$/;function Dn(e){return Mn.test(e)}function En(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}var Tn=String.fromCharCode(65279);function Nn(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function On(e){return(e%=52)<26?String.fromCharCode(97+e):String.fromCharCode(65+e-26)}var An=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=function(){function e(){}return e.has=function(e){return Rn.create(e)},e.equals=function(e,t){return Fn.create(e,t)},e.regex=function(e,t){return Bn.create(e,t)},e.not=function(e){return jn.create(e)},e.and=function(){for(var e=[],t=0;t=0){var n=e.split("!=");return Yn.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("==")>=0){n=e.split("==");return Fn.create(n[0].trim(),this._deserializeValue(n[1],t))}if(e.indexOf("=~")>=0){n=e.split("=~");return Bn.create(n[0].trim(),this._deserializeRegexValue(n[1],t))}return/^\!\s*/.test(e)?jn.create(e.substr(1).trim()):Rn.create(e)},e._deserializeValue=function(e,t){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var n=/^'([^']*)'$/.exec(e);return n?n[1].trim():e},e._deserializeRegexValue=function(e,t){if(!(n=e)||"string"!=typeof n||0===n.trim().length){if(t)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var n,r=e.indexOf("/"),i=e.lastIndexOf("/");if(r===i||r<0){if(t)throw new Error("bad regexp-value '"+e+"', missing /-enclosure");return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null}var o=e.slice(r+1,i),s="i"===e[i+1]?"i":"";try{return new RegExp(o,s)}catch(n){if(t)throw new Error("bad regexp-value '"+e+"', parse error: "+n);return console.warn("bad regexp-value '"+e+"', parse error: "+n),null}},e}();function Pn(e,t){var n=e.getType(),r=t.getType();if(n!==r)return n-r;switch(n){case 1:case 2:case 3:case 4:case 6:case 7:case 5:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var Rn=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return jn.create(this.key)},e}(),Fn=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"==typeof n?n?Rn.create(t):jn.create(t):new e(t,n)},e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Yn.create(this.key,this.value)},e}(),Yn=function(){function e(e,t){this.key=e,this.value=t}return e.create=function(t,n){return"boolean"==typeof n?n?jn.create(t):Rn.create(t):new e(t,n)},e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.keye.key?1:this.valuee.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Fn.create(this.key,this.value)},e}(),jn=function(){function e(e){this.key=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.keye.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Rn.create(this.key)},e}(),Bn=function(){function e(e,t){this.key=e,this.regexp=t}return e.create=function(t,n){return new e(t,n)},e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return tn?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"",r=t.regexp?t.regexp.source:"";return this.key===t.key&&n===r}return!1},e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)},e.prototype.keys=function(){return[this.key]},e.prototype.negate=function(){return Wn.create(this)},e}(),Wn=function(){function e(e){this._actual=e}return e.create=function(t){return new e(t)},e.prototype.getType=function(){return 7},e.prototype.cmp=function(e){return this._actual.cmp(e._actual)},e.prototype.equals=function(t){return t instanceof e&&this._actual.equals(t._actual)},e.prototype.evaluate=function(e){return!this._actual.evaluate(e)},e.prototype.keys=function(){return this._actual.keys()},e.prototype.negate=function(){return this._actual},e}(),Hn=function(){function e(e){this.expr=e}return e.create=function(t){var n=e._normalizeArr(t);if(0!==n.length)return 1===n.length?n[0]:new e(n)},e.prototype.getType=function(){return 5},e.prototype.cmp=function(e){if(this.expr.lengthe.expr.length)return 1;for(var t=0,n=this.expr.length;t1;){for(var s=t.shift(),a=t.shift(),u=[],l=0,c=o(s);l0)n.left||(n.left=new Xn,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new Xn,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new Xn,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0},e.prototype.findSubstr=function(e){for(var t=this._iter.reset(e),n=this._root,r=void 0;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),r=n.value||r,n=n.mid}}return n&&n.value||r},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}(),Qn=function(){function e(){this.map=new Map,this.ignoreCase=!1}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}(),er=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return qn(t,e),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(n)return 0!==t&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=0);var r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;n=e.next,r=e.previous;e===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e.prototype.toJSON=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),e},e}()),tr=bt("commandService"),nr=new(function(){function e(){this._commands=new Map,this._onDidRegisterCommand=new Kt,this.onDidRegisterCommand=this._onDidRegisterCommand.event}return e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){for(var r=[],i=0,o=e.description.args;i=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},or=function(e,t){return function(n,r){t(n,r,e)}};function sr(e){return void 0!==e.command}var ar,ur=bt("menuService"),lr=new(function(){function e(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new Kt,this.onDidChangeMenu=this._onDidChangeMenu.event}return e.prototype.addCommand=function(e){var t=this;return this._commands.set(e.id,e),this._onDidChangeMenu.fire(0),{dispose:function(){t._commands.delete(e.id)&&t._onDidChangeMenu.fire(0)}}},e.prototype.getCommand=function(e){return this._commands.get(e)},e.prototype.getCommands=function(){var e=new Map;return this._commands.forEach((function(t,n){return e.set(n,t)})),e},e.prototype.appendMenuItem=function(e,t){var n=this,r=this._menuItems.get(e);return r?r.push(t):(r=[t],this._menuItems.set(e,r)),this._onDidChangeMenu.fire(e),{dispose:function(){var i=r.indexOf(t);i>=0&&(r.splice(i,1),n._onDidChangeMenu.fire(e))}}},e.prototype.getMenuItems=function(e){var t=(this._menuItems.get(e)||[]).slice(0);return 0===e&&this._appendImplicitItems(t),t},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,r=e.filter((function(e){return sr(e)}));n>>0,r=(4294901760&e)>>>16;return new br(0!==r?[yr(n,t),yr(r,t)]:[yr(n,t)])}function yr(e,t){var n=!!(2048&e),r=!!(256&e);return new vr(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}!function(){function e(e,t,n,r){void 0===n&&(n=t),void 0===r&&(r=n),pr.define(e,t),gr.define(e,n),mr.define(e,r)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return pr.keyCodeToStr(e)},e.fromString=function(e){return pr.strToKeyCode(e)},e.toUserSettingsUS=function(e){return gr.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return mr.keyCodeToStr(e)},e.fromUserSettings=function(e){return gr.strToKeyCode(e)||mr.strToKeyCode(e)}}(ar||(ar={}));var vr=function(){function e(e,t,n,r,i){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=r,this.keyCode=i}return e.prototype.equals=function(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.toChord=function(){return new br([this])},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),br=function(){function e(e){if(0===e.length)throw Ze("parts");this.parts=e}return e.prototype.equals=function(e){if(null===e)return!1;if(this.parts.length!==e.parts.length)return!1;for(var t=0;t=21&&e<=30||(e>=31&&e<=56||(80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e))},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,r,i,o){1===et.a&&this._assertNoCtrlAlt(e.parts[0],t),this._coreKeybindings.push({keybinding:e,command:t,commandArgs:n,when:o,weight1:r,weight2:i}),this._cachedMergedKeybindings=null},e.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(kr)),this._cachedMergedKeybindings.slice(0)},e}());function kr(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}xr.add("platform.keybindingsRegistry",Lr);var Mr,Dr=bt("telemetryService"),Er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tr=function(){function e(e){this.id=e.id,this.precondition=e.precondition,this._kbOpts=e.kbOpts,this._menubarOpts=e.menubarOpts,this._description=e.description}return e.prototype.register=function(){var e=this;if(this._menubarOpts&&lr.appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order}),this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?In.and(t,this.precondition):this.precondition),Lr.registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else nr.registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})},e}(),Nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Er(t,e),t.bindToContribution=function(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._callback=e.handler,n}return Er(n,t),n.prototype.runEditorCommand=function(t,n,r){e(n)&&this._callback(e(n),r)},n}(t)},t.prototype.runCommand=function(e,t){var n=this,r=e.get(Ct),i=r.getFocusedCodeEditor()||r.getActiveCodeEditor();if(i)return i.invokeWithinContext((function(e){if(e.get(Un).contextMatchesRules(He(n.precondition)))return n.runEditorCommand(e,i,t)}))},t}(Tr),Or=function(e){function t(t){var n=e.call(this,t)||this;return n.label=t.label,n.alias=t.alias,n.menuOpts=t.menuOpts,n}return Er(t,e),t.prototype.register=function(){this.menuOpts&&lr.appendMenuItem(7,{command:{id:this.id,title:this.label},when:In.and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order}),e.prototype.register.call(this)},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e,t),this.run(e,t,n||{})},t.prototype.reportTelemetry=function(e,t){e.get(Dr).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},t}(Nr);function Ar(e){return Pr.INSTANCE.registerEditorCommand(e),e}function Ir(e){Pr.INSTANCE.registerEditorAction(new e)}!function(e){e.getEditorCommand=function(e){return Pr.INSTANCE.getEditorCommand(e)},e.getEditorActions=function(){return Pr.INSTANCE.getEditorActions()},e.getEditorContributions=function(){return Pr.INSTANCE.getEditorContributions()}}(Mr||(Mr={}));var Pr=function(){function e(){this.editorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)},e.prototype.registerEditorAction=function(e){e.register(),this.editorActions.push(e)},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e.prototype.registerEditorCommand=function(e){e.register(),this.editorCommands[e.id]=e},e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null},e.INSTANCE=new e,e}();xr.add("editor.contributions",Pr.INSTANCE);var Rr=function(){function e(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}return e.prototype.isEmpty=function(){return e.isEmpty(this)},e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn},e.prototype.containsPosition=function(t){return e.containsPosition(this,t)},e.containsPosition=function(e,t){return!(t.lineNumbere.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.columne.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumne.endColumn)))},e.prototype.strictContainsRange=function(t){return e.strictContainsRange(this,t)},e.strictContainsRange=function(e,t){return!(t.startLineNumbere.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<=e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>=e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumbert.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return rl?(o=l,s=c):o===l&&(s=Math.min(s,c)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},e.prototype.equalsRange=function(t){return e.equalsRange(this,t)},e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn},e.prototype.getEndPosition=function(){return new St(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new St(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}(),Fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yr=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=r,o.positionColumn=i,o}return Fr(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},t.prototype.setEndPosition=function(e,n){return 0===this.getDirection()?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new St(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return 0===this.getDirection()?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;nr?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(t,n,r,s,i,o)}(e,t,0,e.length-1,[]),e}function Hr(e,t){if(!t)return e.filter((function(t,n){return e.indexOf(t)===n}));var n=Object.create(null);return e.filter((function(e){var r=t(e);return!n[r]&&(n[r]=!0,!0)}))}function Vr(e){var t=new Set;return e.filter((function(e){return!t.has(e)&&(t.add(e),!0)}))}function zr(e,t){for(var n=0;nt;i--)r.push(i);return r}function Kr(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)}function Gr(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){e[n]&&"object"==typeof e[n]?t[n]=Gr(e[n]):t[n]=e[n]})),t}var $r=Object.prototype.hasOwnProperty;function Zr(e,t,n){return void 0===n&&(n=!0),Te(e)?(Te(t)&&Object.keys(t).forEach((function(r){r in e?n&&(Te(e[r])&&Te(t[r])?Zr(e[r],t[r],n):e[r]=t[r]):e[r]=t[r]})),e):t}function Xr(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n/?";var ei=function(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,r=Qr;n=0||(t+="\\"+i)}return t+="\\s]+)",new RegExp(t,"g")}();function ti(e){var t=ei;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function ni(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i,o=e-1-r;for(t.lastIndex=0;i=t.exec(n);){var s=i.index||0;if(s>o)return null;if(t.lastIndex>=o)return{word:i[0],startColumn:r+1+s,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i,o=e-1-r,s=n.lastIndexOf(" ",o-1)+1;for(t.lastIndex=s;i=t.exec(n);){var a=i.index||0;if(a<=o&&t.lastIndex>=o)return{word:i[0],startColumn:r+1+a,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r);return t.lastIndex=0,o}var ri,ii=function(){return(ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=2?(S=_?2:4,O=2/v):(S=_?1:3,O=1/v),(L=Math.max(0,Math.floor((N-d-2)*O/(l+O))))/O>y&&(L=Math.floor(y*O)),k=N-L,"left"===m?(x=0,M+=L,D+=L,E+=L,T+=L):x=t-L-d}else x=0,L=0,S=0,k=N;var A=h?f:0;return{width:t,height:n,glyphMarginLeft:M,glyphMarginWidth:C,glyphMarginHeight:n,lineNumbersLeft:D,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:E,decorationsWidth:u,decorationsHeight:n,contentLeft:T,contentWidth:k,contentHeight:n,renderMinimap:S,minimapLeft:x,minimapWidth:L,viewportColumn:Math.max(1,Math.floor((k-d-2)/l)),verticalScrollbarWidth:d,horizontalScrollbarHeight:p,overviewRuler:{top:A,width:d,height:n-2*A,right:0}}},e}(),vi={fontFamily:et.d?"Menlo, Monaco, 'Courier New', monospace":et.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:et.d?12:14,lineHeight:0,letterSpacing:0},bi={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0},wi={inDiffEditor:!1,wordSeparators:Qr,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:"languageDefined",autoClosingQuotes:"languageDefined",autoClosingOvertype:"auto",autoSurround:"languageDefined",autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,copyWithSyntaxHighlighting:!0,useTabStops:!0,multiCursorModifier:"altKey",multiCursorMergeOverlapping:!0,accessibilitySupport:"auto",showUnused:!0,viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:Me("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,cursorSurroundingLines:0,renderFinalNewline:!0,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorSmoothCaretAnimation:!1,cursorStyle:ri.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,scrollBeyondLastColumn:5,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,highlightActiveIndentGuide:!0,renderLineHighlight:"line",scrollbar:{vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1,fastScrollSensitivity:5},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:{enabled:!0,delay:300,sticky:!0},links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:{enabled:!0,cycle:!1},formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,tabCompletion:"off",suggest:{filterGraceful:!0,snippets:"inline",snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,showIcons:!0,maxVisibleSuggestions:12,filteredTypes:Object.create(null)},gotoLocation:{multiple:"peek"},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1,addExtraSpaceOnTop:!0},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}};!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(pi||(pi={})),function(e){e[e.Inline=1]="Inline"}(gi||(gi={}));var Ci=function(){function e(e){this.tabSize=0|e.tabSize,this.indentSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.indentSize===e.indentSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace},e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,indentSize:this.indentSize!==e.indentSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}},e}(),Si=function(e,t){this.range=e,this.matches=t},xi=function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n},Li=function(){function e(e,t){this.beforeVersionId=e,this.beforeCursorState=t,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}},e.prototype.redo=function(e){for(var t=0;t0){var e=this.past.pop();try{e.undo(this.model)}catch(e){return Ue(e),this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.canUndo=function(){return this.past.length>0||null!==this.currentOpenStackElement},e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){return Ue(e),this.clear(),null}return this.past.push(e),{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null},e.prototype.canRedo=function(){return this.future.length>0},e}(),Ei=function(){this.spacesDiff=0,this.looksLikeAlignment=!1};function Ti(e,t,n,r,i){var o;for(i.spacesDiff=0,i.looksLikeAlignment=!1,o=0;o0&&a>0||l>0&&c>0)){var d=Math.abs(a-c),h=Math.abs(s-l);if(0===d)return i.spacesDiff=h,void(h>0&&0<=l-1&&l-10?i++:m>1&&o++,Ti(s,a,h,g,l),!l.looksLikeAlignment||n&&t===l.spacesDiff)){var w=l.spacesDiff;w<=8&&u[w]++,s=h,a=g}}var C=n;i!==o&&(C=ix&&(x=t,S=e)})),4===S&&u[4]>0&&u[2]>0&&u[2]>=u[4]/2&&(S=2)}return{insertSpaces:C,tabSize:S}}function Oi(e){return(1&e.metadata)>>>0}function Ai(e,t){e.metadata=254&e.metadata|t<<0}function Ii(e){return(2&e.metadata)>>>1==1}function Pi(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function Ri(e){return(4&e.metadata)>>>2==1}function Fi(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function Yi(e){return(8&e.metadata)>>>3==1}function ji(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Bi(e,t){e.metadata=207&e.metadata|t<<4}function Wi(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var Hi=function(){function e(e,t,n){this.metadata=0,this.parent=this,this.left=this,this.right=this,Ai(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Fi(this,!1),Bi(this,1),ji(this,!1),Wi(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Pi(this,!1)}return e.prototype.reset=function(e,t,n,r){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=r},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;Fi(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t),Bi(this,this.options.stickiness),ji(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color)),Wi(this,this.options.collapseOnReplaceEdit)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Vi=new Hi(null,0,0);Vi.parent=Vi,Vi.left=Vi,Vi.right=Vi,Ai(Vi,0);var zi=function(){function e(){this.root=Vi,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,r,i){return this.root===Vi?[]:function(e,t,n,r,i,o){var s=e.root,a=0,u=0,l=0,c=[],d=0;for(;s!==Vi;)if(Ii(s))Pi(s.left,!1),Pi(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Ii(s.left)){if(a+s.maxEndn)Pi(s,!0);else{if((l=a+s.end)>=t){s.setCachedOffsets(u,l,o);var h=!0;r&&s.ownerId&&s.ownerId!==r&&(h=!1),i&&Ri(s)&&(h=!1),h&&(c[d++]=s)}Pi(s,!0),s.right===Vi||Ii(s.right)||(a+=s.delta,s=s.right)}}return Pi(e.root,!1),c}(this,e,t,n,r,i)},e.prototype.search=function(e,t,n){return this.root===Vi?[]:function(e,t,n,r){var i=e.root,o=0,s=0,a=0,u=[],l=0;for(;i!==Vi;)if(Ii(i))Pi(i.left,!1),Pi(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else if(i.left===Vi||Ii(i.left)){s=o+i.start,a=o+i.end,i.setCachedOffsets(s,a,r);var c=!0;t&&i.ownerId&&i.ownerId!==t&&(c=!1),n&&Ri(i)&&(c=!1),c&&(u[l++]=i),Pi(i,!0),i.right===Vi||Ii(i.right)||(o+=i.delta,i=i.right)}else i=i.left;return Pi(e.root,!1),u}(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,t){var n=e.root,r=[],i=0;for(;n!==Vi;)Ii(n)?(Pi(n.left,!1),Pi(n.right,!1),n=n.parent):n.left===Vi||Ii(n.left)?(n.ownerId===t&&(r[i++]=n),Pi(n,!0),n.right===Vi||Ii(n.right)||(n=n.right)):n=n.left;return Pi(e.root,!1),r}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){var t=e.root,n=[],r=0;for(;t!==Vi;)Ii(t)?(Pi(t.left,!1),Pi(t.right,!1),t=t.parent):t.left===Vi||Ii(t.left)?t.right===Vi||Ii(t.right)?(n[r++]=t,Pi(t,!0)):t=t.right:t=t.left;return Pi(e.root,!1),n}(this)},e.prototype.insert=function(e){Ki(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){Gi(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,r=0;e!==this.root;)e===e.parent.right&&(r+=e.parent.delta),e=e.parent;var i=n.start+r,o=n.end+r;n.setCachedOffsets(i,o,t)},e.prototype.acceptReplace=function(e,t,n,r){for(var i=function(e,t,n){var r=e.root,i=0,o=0,s=0,a=[],u=0;for(;r!==Vi;)if(Ii(r))Pi(r.left,!1),Pi(r.right,!1),r===r.parent.right&&(i-=r.parent.delta),r=r.parent;else{if(!Ii(r.left)){if(i+r.maxEndn?Pi(r,!0):((s=i+r.end)>=t&&(r.setCachedOffsets(o,s,0),a[u++]=r),Pi(r,!0),r.right===Vi||Ii(r.right)||(i+=r.delta,r=r.right))}return Pi(e.root,!1),a}(this,e,e+t),o=0,s=i.length;on?(i.start+=s,i.end+=s,i.delta+=s,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0),Pi(i,!0)):(Pi(i,!0),i.right===Vi||Ii(i.right)||(o+=i.delta,i=i.right))}Pi(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary();for(o=0,s=i.length;on)&&(1!==r&&(2===r||t))}function qi(e,t,n,r,i){var o=function(e){return(48&e.metadata)>>>4}(e),s=0===o||2===o,a=1===o||2===o,u=n-t,l=r,c=Math.min(u,l),d=e.start,h=!1,f=e.end,p=!1;t<=d&&f<=n&&function(e){return(64&e.metadata)>>>6==1}(e)&&(e.start=t,h=!0,e.end=t,p=!0);var g=i?1:u>0?2:0;if(!h&&Ui(d,s,t,g)&&(h=!0),!p&&Ui(f,a,t,g)&&(p=!0),c>0&&!i){g=u>l?2:0;!h&&Ui(d,s,t+c,g)&&(h=!0),!p&&Ui(f,a,t+c,g)&&(p=!0)}g=i?1:0;!h&&Ui(d,s,n,g)&&(e.start=t+l,h=!0),!p&&Ui(f,a,n,g)&&(e.end=t+l,p=!0);var m=l-u;h||(e.start=Math.max(0,d+m)),p||(e.end=Math.max(0,f+m)),e.start>e.end&&(e.end=e.start)}function Ki(e,t){if(e.root===Vi)return t.parent=Vi,t.left=Vi,t.right=Vi,Ai(t,0),e.root=t,e.root;!function(e,t){var n=0,r=e.root,i=t.start,o=t.end;for(;;){if(to(i,o,r.start+n,r.end+n)<0){if(r.left===Vi){t.start-=n,t.end-=n,t.maxEnd-=n,r.left=t;break}r=r.left}else{if(r.right===Vi){t.start-=n+r.delta,t.end-=n+r.delta,t.maxEnd-=n+r.delta,r.right=t;break}n+=r.delta,r=r.right}}t.parent=r,t.left=Vi,t.right=Vi,Ai(t,1)}(e,t),eo(t.parent);for(var n=t;n!==e.root&&1===Oi(n.parent);){var r;if(n.parent===n.parent.parent.left)1===Oi(r=n.parent.parent.right)?(Ai(n.parent,0),Ai(r,0),Ai(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&Zi(e,n=n.parent),Ai(n.parent,0),Ai(n.parent.parent,1),Xi(e,n.parent.parent));else 1===Oi(r=n.parent.parent.left)?(Ai(n.parent,0),Ai(r,0),Ai(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&Xi(e,n=n.parent),Ai(n.parent,0),Ai(n.parent.parent,1),Zi(e,n.parent.parent))}return Ai(e.root,0),t}function Gi(e,t){var n,r;if(t.left===Vi?(r=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===Vi?(n=t.left,r=t):((n=(r=function(e){for(;e.left!==Vi;)e=e.left;return e}(t.right)).right).start+=r.delta,n.end+=r.delta,n.delta+=r.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),r.start+=t.delta,r.end+=t.delta,r.delta=t.delta,(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)),r===e.root)return e.root=n,Ai(n,0),t.detach(),$i(),Qi(n),void(e.root.parent=Vi);var i,o=1===Oi(r);if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?n.parent=r.parent:(r.parent===t?n.parent=r:n.parent=r.parent,r.left=t.left,r.right=t.right,r.parent=t.parent,Ai(r,Oi(t)),t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==Vi&&(r.left.parent=r),r.right!==Vi&&(r.right.parent=r)),t.detach(),o)return eo(n.parent),r!==t&&(eo(r),eo(r.parent)),void $i();for(eo(n),eo(n.parent),r!==t&&(eo(r),eo(r.parent));n!==e.root&&0===Oi(n);)n===n.parent.left?(1===Oi(i=n.parent.right)&&(Ai(i,0),Ai(n.parent,1),Zi(e,n.parent),i=n.parent.right),0===Oi(i.left)&&0===Oi(i.right)?(Ai(i,1),n=n.parent):(0===Oi(i.right)&&(Ai(i.left,0),Ai(i,1),Xi(e,i),i=n.parent.right),Ai(i,Oi(n.parent)),Ai(n.parent,0),Ai(i.right,0),Zi(e,n.parent),n=e.root)):(1===Oi(i=n.parent.left)&&(Ai(i,0),Ai(n.parent,1),Xi(e,n.parent),i=n.parent.left),0===Oi(i.left)&&0===Oi(i.right)?(Ai(i,1),n=n.parent):(0===Oi(i.left)&&(Ai(i.right,0),Ai(i,1),Zi(e,i),i=n.parent.left),Ai(i,Oi(n.parent)),Ai(n.parent,0),Ai(i.left,0),Xi(e,n.parent),n=e.root));Ai(n,0),$i()}function $i(){Vi.parent=Vi,Vi.delta=0,Vi.start=0,Vi.end=0}function Zi(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==Vi&&(n.left.parent=t),n.parent=t.parent,t.parent===Vi?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,Qi(t),Qi(n)}function Xi(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==Vi&&(n.right.parent=t),n.parent=t.parent,t.parent===Vi?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,Qi(t),Qi(n)}function Ji(e){var t=e.end;if(e.left!==Vi){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==Vi){var r=e.right.maxEnd+e.delta;r>t&&(t=r)}return t}function Qi(e){e.maxEnd=Ji(e)}function eo(e){for(;e!==Vi;){var t=Ji(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}function to(e,t,n,r){return e===n?t-r:e-n}var no=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return e.prototype.next=function(){if(this.right!==ro)return io(this.right);for(var e=this;e.parent!==ro&&e.parent.left!==e;)e=e.parent;return e.parent===ro?ro:e.parent},e.prototype.prev=function(){if(this.left!==ro)return oo(this.left);for(var e=this;e.parent!==ro&&e.parent.right!==e;)e=e.parent;return e.parent===ro?ro:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),ro=new no(null,0);function io(e){for(;e.left!==ro;)e=e.left;return e}function oo(e){for(;e.right!==ro;)e=e.right;return e}function so(e){return e===ro?0:e.size_left+e.piece.length+so(e.right)}function ao(e){return e===ro?0:e.lf_left+e.piece.lineFeedCnt+ao(e.right)}function uo(){ro.parent=ro}function lo(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==ro&&(n.left.parent=t),n.parent=t.parent,t.parent===ro?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function co(e,t){var n=t.left;t.left=n.right,n.right!==ro&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===ro?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function ho(e,t){var n,r;if(n=t.left===ro?(r=t).right:t.right===ro?(r=t).left:(r=io(t.right)).right,r===e.root)return e.root=n,n.color=0,t.detach(),uo(),void(e.root.parent=ro);var i=1===r.color;if(r===r.parent.left?r.parent.left=n:r.parent.right=n,r===t?(n.parent=r.parent,go(e,n)):(r.parent===t?n.parent=r:n.parent=r.parent,go(e,n),r.left=t.left,r.right=t.right,r.parent=t.parent,r.color=t.color,t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r,r.left!==ro&&(r.left.parent=r),r.right!==ro&&(r.right.parent=r),r.size_left=t.size_left,r.lf_left=t.lf_left,go(e,r)),t.detach(),n.parent.left===n){var o=so(n),s=ao(n);if(o!==n.parent.size_left||s!==n.parent.lf_left){var a=o-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=o,n.parent.lf_left=s,po(e,n.parent,a,u)}}if(go(e,n.parent),i)uo();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,lo(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,co(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,lo(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,co(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,lo(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,co(e,n.parent),n=e.root));n.color=0,uo()}}function fo(e,t){for(go(e,t);t!==e.root&&1===t.parent.color;){var n;if(t.parent===t.parent.parent.left)1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&lo(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,co(e,t.parent.parent));else 1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&co(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,lo(e,t.parent.parent))}e.root.color=0}function po(e,t,n,r){for(;t!==e.root&&t!==ro;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}function go(e,t){var n=0,r=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=so((t=t.parent).left)-t.size_left,r=ao(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=r}for(;t!==e.root&&(0!==n||0!==r);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=r),t=t.parent}}ro.parent=ro,ro.left=ro,ro.right=ro,ro.color=0;var mo=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i255?255:0|e}function yo(e){return e<0?0:e>4294967295?4294967295:0|e}var vo=function(){function e(t){var n=_o(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=_o(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),bo=(function(){function e(){this._actual=new vo(0)}e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)}}(),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),wo=function(e){function t(t){for(var n=e.call(this,0)||this,r=0,i=t.length;r=n)break;var r=e.charCodeAt(t);if(110===r||114===r||87===r)return!0}}return!1}(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=dn(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new ko(t,this.wordSeparators?xo(this.wordSeparators):null,n?this.searchString:null)},e}();var ko=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function Mo(e,t,n){if(!n)return new Si(e,null);for(var r=[],i=0,o=t.length;i>0);t[i]>=e?r=i-1:t[i+1]>=e?(n=i,r=i):n=i+1}return n+1},e}(),Eo=function(){function e(){}return e.findMatches=function(e,t,n,r,i){var o=t.parseSearchRequest();return o?o.regex.multiline?this._doFindMatchesMultiline(e,n,new No(o.wordSeparators,o.regex),r,i):this._doFindMatchesLineByLine(e,n,o,r,i):[]},e._getMultilineMatchRange=function(e,t,n,r,i,o){var s,a,u=0;if(s=r?t+i+(u=r.findLineFeedCountBeforeOffset(i)):t+i,r){var l=r.findLineFeedCountBeforeOffset(i+o.length)-u;a=s+o.length+l}else a=s+o.length;var c=e.getPositionAt(s),d=e.getPositionAt(a);return new Rr(c.lineNumber,c.column,d.lineNumber,d.column)},e._doFindMatchesMultiline=function(e,t,n,r,i){var o,s=e.getOffsetAt(t.getStartPosition()),a=e.getValueInRange(t,1),u="\r\n"===e.getEOL()?new Do(a):null,l=[],c=0;for(n.reset(0);o=n.next(a);)if(l[c++]=Mo(this._getMultilineMatchRange(e,s,a,u,o.index,o[0]),o,r),c>=i)return l;return l},e._doFindMatchesLineByLine=function(e,t,n,r,i){var o=[],s=0;if(t.startLineNumber===t.endLineNumber){var a=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);return s=this._findMatchesInLine(n,a,t.startLineNumber,t.startColumn-1,s,o,r,i),o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,o,r,i);for(var l=t.startLineNumber+1;l=a))return i;return i}var f,p=new No(e.wordSeparators,e.regex);p.reset(0);do{if((f=p.next(t))&&(o[i++]=Mo(new Rr(n,f.index+1+r,n,f.index+1+f[0].length+r),f,s),i>=a))return i}while(f);return i},e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new No(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindNextMatchMultiline(e,n,o,r):this._doFindNextMatchLineByLine(e,n,o,r)},e._doFindNextMatchMultiline=function(e,t,n,r){var i=new St(t.lineNumber,1),o=e.getOffsetAt(i),s=e.getLineCount(),a=e.getValueInRange(new Rr(i.lineNumber,i.column,s,e.getLineMaxColumn(s)),1),u="\r\n"===e.getEOL()?new Do(a):null;n.reset(t.column-1);var l=n.next(a);return l?Mo(this._getMultilineMatchRange(e,o,a,u,l.index,l[0]),l,r):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new St(1,1),n,r):null},e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o),a=this._findFirstMatchInLine(n,s,o,t.column,r);if(a)return a;for(var u=1;u<=i;u++){var l=(o+u-1)%i,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,r);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,r,i){e.reset(r-1);var o=e.next(t);return o?Mo(new Rr(n,o.index+1,n,o.index+1+o[0].length),o,i):null},e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new No(i.wordSeparators,i.regex);return i.regex.multiline?this._doFindPreviousMatchMultiline(e,n,o,r):this._doFindPreviousMatchLineByLine(e,n,o,r)},e._doFindPreviousMatchMultiline=function(e,t,n,r){var i=this._doFindMatchesMultiline(e,new Rr(1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];var o=e.getLineCount();return t.lineNumber!==o||t.column!==e.getLineMaxColumn(o)?this._doFindPreviousMatchMultiline(e,new St(o,e.getLineMaxColumn(o)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount(),o=t.lineNumber,s=e.getLineContent(o).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,o,r);if(a)return a;for(var u=1;u<=i;u++){var l=(i+o-u-1)%i,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,r);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,r){var i,o=null;for(e.reset(0);i=e.next(t);)o=Mo(new Rr(n,i.index+1,n,i.index+1+i[0].length),i,r);return o},e}();function To(e,t,n,r,i){return function(e,t,n,r,i){if(0===r)return!0;var o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r);if(0!==e.get(s))return!0}return!1}(e,t,0,r,i)&&function(e,t,n,r,i){if(r+i===n)return!0;var o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var s=t.charCodeAt(r+i-1);if(0!==e.get(s))return!0}return!1}(e,t,n,r,i)}var No=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var r=t.index,i=t[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength){if(0===i){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=r,this._prevMatchLength=i,!this._wordSeparators||To(this._wordSeparators,e,n,r,i))return t}while(t);return null},e}();function Oo(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}var Ao=function(e,t,n,r,i){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=r,this.isBasicASCII=i};function Io(e,t){void 0===t&&(t=!0);for(var n=[0],r=1,i=0,o=e.length;i=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=this._cache,r=0;r=e)&&(n[r]=null,t=!0)}if(t){for(var o=[],s=0,a=n;s0){e[i].lineStarts||(e[i].lineStarts=Io(e[i].buffer));var s=new Po(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]),r=this.rbInsertRight(r,s)}this._searchCache=new Fo(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),r=2*n,i="",o=0,s=[];if(this.iterate(this.root,(function(a){var u=t.getNodeContent(a),l=u.length;if(o<=n||o+l0){var a=i.replace(/\r\n|\r|\n/g,e);s.push(new Ro(a,Io(a)))}this.create(s,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.getOffsetAt=function(e,t){for(var n=0,r=this.root;r!==ro;)if(r.left!==ro&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e)return(n+=r.size_left)+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1);e-=r.lf_left+r.piece.lineFeedCnt,n+=r.size_left+r.piece.length,r=r.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,r=e;t!==ro;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var i=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+i.index,0===i.index){var o=this.getOffsetAt(n+1,1);return new St(n+1,r-o+1)}return new St(n+1,i.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===ro){o=this.getOffsetAt(n+1,1);return new St(n+1,r-e-o+1)}t=t.right}return new St(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),r=this.nodeAt2(e.endLineNumber,e.endColumn),i=this.getValueInRange2(n,r);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?i:i.replace(/\r\n|\r|\n/g,t):i},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,r=this._buffers[n.piece.bufferIndex].buffer,i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}var o=e.node,s=this._buffers[o.piece.bufferIndex].buffer,a=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start),u=s.substring(a+e.remainder,a+o.piece.length);for(o=o.next();o!==ro;){var l=this._buffers[o.piece.bufferIndex].buffer,c=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,o.piece.length),o=o.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var r=n.node.next();if(!r)return 0;var i=this._buffers[r.piece.bufferIndex],o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.buffer.charCodeAt(o)}i=this._buffers[n.node.piece.bufferIndex];var s=(o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.buffer.charCodeAt(s)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,r,i,o,s,a,u,l,c){var d,h=this._buffers[e.piece.bufferIndex],f=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),p=this.offsetInBuffer(e.piece.bufferIndex,i),g=this.offsetInBuffer(e.piece.bufferIndex,o);t.reset(p);var m={line:0,column:0};do{if(d=t.next(h.buffer)){if(d.index>=g)return l;this.positionInBuffer(e,d.index-f,m);var _=this.getLineFeedCnt(e.piece.bufferIndex,i,m),y=m.line===i.line?m.column-i.column+r:m.column+1,v=y+d[0].length;if(c[l++]=Mo(new Rr(n+_,y,n+_,v),d,a),d.index+d[0].length>=g)return l;if(l>=u)return l}}while(d);return l},e.prototype.findMatchesLineByLine=function(e,t,n,r){var i=[],o=0,s=new No(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,r,o,i),i;for(var d=e.startLineNumber,h=a.node;h!==u.node;){var f=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(f>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts,g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start),m=p[l.line+f],_=d===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,s,d,_,l,this.positionInBuffer(h,m-g),t,n,r,o,i))>=r)return i;d+=f}var y=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var v=this.getLineContent(d).substring(y,e.endColumn-1);return o=this._findMatchesInLine(t,s,v,e.endLineNumber,y,o,i,n,r),i}if((o=this._findMatchesInLine(t,s,this.getLineContent(d).substr(y),d,y,o,i,n,r))>=r)return i;d++,h=(a=this.nodeAt2(d,1)).node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0;v=this.getLineContent(d).substring(b,e.endColumn-1);return o=this._findMatchesInLine(t,s,v,e.endLineNumber,b,o,i,n,r),i}var w=d===e.startLineNumber?e.startColumn:1;return o=this.findMatchesInNode(u.node,s,d,w,l,c,t,n,r,o,i),i},e.prototype._findMatchesInLine=function(e,t,n,r,i,o,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,f=n.length,p=-h;-1!==(p=n.indexOf(d,p+h));)if((!c||To(c,n,f,p,h))&&(s[o++]=new Si(new Rr(r,p+1+i,r,p+1+h+i),null),o>=u))return o;return o}t.reset(0);do{if((l=t.next(n))&&(s[o++]=Mo(new Rr(r,l.index+1+i,r,l.index+1+l[0].length+i),l,a),o>=u))return o}while(l);return o},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==ro){var r=this.nodeAt(e),i=r.node,o=r.remainder,s=r.nodeStartOffset,a=i.piece,u=a.bufferIndex,l=this.positionInBuffer(i,o);if(0===i.piece.bufferIndex&&a.end.line===this._lastChangeBufferPos.line&&a.end.column===this._lastChangeBufferPos.column&&s+a.length===e&&t.length<65535)return this.appendToNode(i,t),void this.computeBufferMetadata();if(s===e)this.insertContentToNodeLeft(t,i),this._searchCache.valdiate(e);else if(s+i.piece.length>e){var c=[],d=new Po(a.bufferIndex,l,a.end,this.getLineFeedCnt(a.bufferIndex,l,a.end),this.offsetInBuffer(u,a.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t))if(10===this.nodeCharCodeAt(i,o)){var h={line:d.start.line+1,column:0};d=new Po(d.bufferIndex,h,d.end,this.getLineFeedCnt(d.bufferIndex,h,d.end),d.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(i,o-1)){var f=this.positionInBuffer(i,o-1);this.deleteNodeTail(i,f),t="\r"+t,0===i.piece.length&&c.push(i)}else this.deleteNodeTail(i,l);else this.deleteNodeTail(i,l);var p=this.createNewPieces(t);d.length>0&&this.rbInsertRight(i,d);for(var g=i,m=0;m=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),r=this.rbInsertRight(t,n[0]),i=r,o=1;o=c))break;a=l+1}return n?(n.line=l,n.column=s-d,null):{line:l,column:s-d}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;var i=r[n.line+1],o=r[n.line]+n.column;if(i>o+1)return n.line-t.line;var s=o-1;return 13===this._buffers[e].buffer.charCodeAt(s)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),r=void 0;13===n||n>=55296&&n<=56319?(r=e.substring(0,65534),e=e.substring(65534)):(r=e.substring(0,65535),e=e.substring(65535));var i=Io(r);t.push(new Po(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length)),this._buffers.push(new Ro(r,i))}var o=Io(e);return t.push(new Po(this._buffers.length,{line:0,column:0},{line:o.length-1,column:e.length-o[o.length-1]},o.length-1,e.length)),this._buffers.push(new Ro(e,o)),t}var s=this._buffers[0].buffer.length,a=Io(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return l+=n.size_left,this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+o,a+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){o=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=s.substring(a+o,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==ro;){s=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=s.substring(a,a+u-t)}a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=s.substr(a,n.piece.length),n=n.next()}return r},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==ro;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,r=this.positionInBuffer(e,t),i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(o!==i)return{index:o,remainder:0}}return{index:i,remainder:r.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,r=this._buffers[n.bufferIndex].lineStarts,i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.end),o=t,s=this.offsetInBuffer(n.bufferIndex,o),a=this.getLineFeedCnt(n.bufferIndex,n.start,o),u=a-r,l=s-i,c=n.length+l;e.piece=new Po(n.bufferIndex,n.start,o,a,c),po(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,r=n.lineFeedCnt,i=this.offsetInBuffer(n.bufferIndex,n.start),o=t,s=this.getLineFeedCnt(n.bufferIndex,o,n.end),a=s-r,u=i-this.offsetInBuffer(n.bufferIndex,o),l=n.length+u;e.piece=new Po(n.bufferIndex,o,n.end,s,l),po(this,e,u,a)},e.prototype.shrinkNode=function(e,t,n){var r=e.piece,i=r.start,o=r.end,s=r.length,a=r.lineFeedCnt,u=t,l=this.getLineFeedCnt(r.bufferIndex,r.start,u),c=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new Po(r.bufferIndex,r.start,u,l,c),po(this,e,c-s,l-a);var d=new Po(r.bufferIndex,n,o,this.getLineFeedCnt(r.bufferIndex,n,o),this.offsetInBuffer(r.bufferIndex,o)-this.offsetInBuffer(r.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var i=Io(t,!1),o=0;oe)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;var i={node:t,remainder:e-t.size_left,nodeStartOffset:r};return this._searchCache.set(i),i}e-=t.size_left+t.piece.length,r+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,r=0;n!==ro;)if(n.left!==ro&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var i=this.getAccumulatedValue(n,e-n.lf_left-2),o=this.getAccumulatedValue(n,e-n.lf_left-1);return r+=n.size_left,{node:n,remainder:Math.min(i+t-1,o),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((i=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt,r+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==ro;){if(n.piece.lineFeedCnt>0){o=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,o),nodeStartOffset:s}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===ro||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,r=t.start.line,i=n[r]+t.start.column;return r!==n.length-1&&(!(n[r+1]>i+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(i))},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==ro&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n,r=[],i=this._buffers[e.piece.bufferIndex].lineStarts;n=0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1};var o=e.piece.length-1,s=e.piece.lineFeedCnt-1;e.piece=new Po(e.piece.bufferIndex,e.piece.start,n,s,o),po(this,e,-1,-1),0===e.piece.length&&r.push(e);var a={line:t.piece.start.line+1,column:0},u=t.piece.length-1,l=this.getLineFeedCnt(t.piece.bufferIndex,a,t.piece.end);t.piece=new Po(t.piece.bufferIndex,a,t.piece.end,l,u),po(this,t,-1,-1),0===t.piece.length&&r.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d0){g.sort((function(e,t){return t.lineNumber-e.lineNumber})),w=[];a=0;for(var C=g.length;a0&&g[a-1].lineNumber===_)){var S=g[a].oldContent,x=this.getLineContent(_);0!==x.length&&x!==S&&-1===fn(x)&&w.push(_)}}}return new xi(v,b,w)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,r=e[e.length-1].range,i=new Rr(n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn),o=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u0){var d=a.lines.length,h=a.lines[0],f=a.lines[d-1];c=1===d?new Rr(u,l,u,l+h.length):new Rr(u,l,u+d-1,f.length+1)}else c=new Rr(u,l,u,l);n=c.endLineNumber,r=c.endColumn,t.push(c),i=a}return t},e._sortOpsAscending=function(e,t){var n=Rr.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=Rr.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),Bo=function(){function e(e,t,n,r,i,o,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=r,this._crlf=i,this._containsRTL=o,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf,n=this._cr+this._crlf;return 0===t?1===e?"\n":"\r\n":n>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var r=0,i=n.length;r=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&(this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e))},e.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,r=0,i=0,o=0,s=!0,a=0,u=t.length;a126)&&(s=!1)}var c=new Ao(Oo(e),r,i,o,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new Ro(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=Ln(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new Bo(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Io(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}(),Ho=function(){this.changeType=1},Vo=function(e,t){this.changeType=2,this.lineNumber=e,this.detail=t},zo=function(e,t){this.changeType=3,this.fromLineNumber=e,this.toLineNumber=t},Uo=function(e,t,n){this.changeType=4,this.fromLineNumber=e,this.toLineNumber=t,this.detail=n},qo=function(){this.changeType=5},Ko=function(){function e(e,t,n,r){this.changes=e,this.versionId=t,this.isUndoing=n,this.isRedoing=r}return e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t=Xo&&e<=Qo||e>=Jo&&e<=es}function ls(e,t,n,r){for(var i,o="",s=0,a=-1,u=0,l=0;l<=e.length;++l){if(l2){var c=o.lastIndexOf(n);-1===c?(o="",s=0):s=(o=o.slice(0,c)).length-1-o.lastIndexOf(n),a=l,u=0;continue}if(2===o.length||1===o.length){o="",s=0,a=l,u=0;continue}}t&&(o.length>0?o+=n+"..":o="..",s=2)}else o.length>0?o+=n+e.slice(a+1,l):o=e.slice(a+1,l),s=l-a-1;a=l,u=0}else i===ts&&-1!==u?++u:u=-1}return o}function cs(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var ds={resolve:function(){for(var e=[],t=0;t=-1;o--){var s=void 0;if(o>=0?s=e[o]:n?void 0!==(s=$o.b["="+n]||$o.a())&&s.slice(0,3).toLowerCase()===n.toLowerCase()+"\\"||(s=n+"\\"):s=$o.a(),os(s,"path"),0!==s.length){var a=s.length,u=0,l="",c=!1,d=s.charCodeAt(0);if(a>1)if(ss(d))if(c=!0,ss(s.charCodeAt(1))){for(var h=2,f=h;h2&&ss(s.charCodeAt(2))&&(c=!0,u=3));else ss(d)&&(u=1,c=!0);if(!(l.length>0&&n.length>0&&l.toLowerCase()!==n.toLowerCase())&&(0===n.length&&l.length>0&&(n=l),i||(r=s.slice(u)+"\\"+r,i=c),n.length>0&&i))break}}return n+(i?"\\":"")+(r=ls(r,!i,"\\",ss))||"."},normalize:function(e){os(e,"path");var t=e.length;if(0===t)return".";var n,r,i=0,o=!1,s=e.charCodeAt(0);if(t>1)if(ss(s))if(o=!0,ss(e.charCodeAt(1))){for(var a=2,u=a;a2&&ss(e.charCodeAt(2))&&(o=!0,i=3));else if(ss(s))return"\\";return 0!==(r=i0&&ss(e.charCodeAt(t-1))&&(r+="\\"),void 0===n?o?r.length>0?"\\"+r:"\\":r.length>0?r:"":o?r.length>0?n+"\\"+r:n+"\\":r.length>0?n+r:n},isAbsolute:function(e){os(e,"path");var t=e.length;if(0===t)return!1;var n=e.charCodeAt(0);return!!ss(n)||!!(us(n)&&t>2&&58===e.charCodeAt(1)&&ss(e.charCodeAt(2)))},join:function(){for(var e,t,n=[],r=0;r0&&(void 0===e?e=t=o:e+="\\"+o)}if(void 0===e)return".";var s=!0,a=0;if("string"==typeof t&&ss(t.charCodeAt(0))){++a;var u=t.length;u>1&&ss(t.charCodeAt(1))&&(++a,u>2&&(ss(t.charCodeAt(2))?++a:s=!1))}if(s){for(;a=2&&(e="\\"+e.slice(a))}return ds.normalize(e)},relative:function(e,t){if(os(e,"from"),os(t,"to"),e===t)return"";var n=ds.resolve(e),r=ds.resolve(t);if(n===r)return"";if((e=n.toLowerCase())===(t=r.toLowerCase()))return"";for(var i=0;ii&&e.charCodeAt(o-1)===rs;--o);for(var s=o-i,a=0;aa&&t.charCodeAt(u-1)===rs;--u);for(var l=u-a,c=sc){if(t.charCodeAt(a+h)===rs)return r.slice(a+h+1);if(2===h)return r.slice(a+h)}s>c&&(e.charCodeAt(i+h)===rs?d=h:2===h&&(d=3));break}var f=e.charCodeAt(i+h);if(f!==t.charCodeAt(a+h))break;f===rs&&(d=h)}if(h!==c&&-1===d)return r;var p="";for(-1===d&&(d=0),h=i+d+1;h<=o;++h)h!==o&&e.charCodeAt(h)!==rs||(0===p.length?p+="..":p+="\\..");return p.length>0?p+r.slice(a+d,u):(a+=d,r.charCodeAt(a)===rs&&++a,r.slice(a,u))},toNamespacedPath:function(e){if("string"!=typeof e)return e;if(0===e.length)return"";var t=ds.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===rs){if(t.charCodeAt(1)===rs){var n=t.charCodeAt(2);if(63!==n&&n!==ts)return"\\\\?\\UNC\\"+t.slice(2)}}else if(us(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===rs)return"\\\\?\\"+t;return e},dirname:function(e){os(e,"path");var t=e.length;if(0===t)return".";var n=-1,r=-1,i=!0,o=0,s=e.charCodeAt(0);if(t>1)if(ss(s)){if(n=o=1,ss(e.charCodeAt(1))){for(var a=2,u=a;a2&&ss(e.charCodeAt(2))&&(n=o=3));else if(ss(s))return e;for(var l=t-1;l>=o;--l)if(ss(e.charCodeAt(l))){if(!i){r=l;break}}else i=!1;if(-1===r){if(-1===n)return".";r=n}return e.slice(0,r)},basename:function(e,t){void 0!==t&&os(t,"ext"),os(e,"path");var n,r=0,i=-1,o=!0;e.length>=2&&(us(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2));if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=r;--n){var u=e.charCodeAt(n);if(ss(u)){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=r;--n)if(ss(e.charCodeAt(n))){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){os(e,"path");var t=0,n=-1,r=0,i=-1,o=!0,s=0;e.length>=2&&58===e.charCodeAt(1)&&us(e.charCodeAt(0))&&(t=r=2);for(var a=e.length-1;a>=t;--a){var u=e.charCodeAt(a);if(ss(u)){if(!o){r=a+1;break}}else-1===i&&(o=!1,i=a+1),u===ts?-1===n?n=a:1!==s&&(s=1):-1!==n&&(s=-1)}return-1===n||-1===i||0===s||1===s&&n===i-1&&n===r+1?"":e.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new is("pathObject","Object",e);return cs("\\",e)},parse:function(e){os(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n=e.length,r=0,i=e.charCodeAt(0);if(n>1){if(ss(i)){if(r=1,ss(e.charCodeAt(1))){for(var o=2,s=o;o2))return t.root=t.dir=e,t;if(ss(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;r=3}}}else if(ss(i))return t.root=t.dir=e,t;r>0&&(t.root=e.slice(0,r));for(var a=-1,u=r,l=-1,c=!0,d=e.length-1,h=0;d>=r;--d)if(ss(i=e.charCodeAt(d))){if(!c){u=d+1;break}}else-1===l&&(c=!1,l=d+1),i===ts?-1===a?a=d:1!==h&&(h=1):-1!==a&&(h=-1);return-1===a||-1===l||0===h||1===h&&a===l-1&&a===u+1?-1!==l&&(t.base=t.name=e.slice(u,l)):(t.name=e.slice(u,a),t.base=e.slice(u,l),t.ext=e.slice(a,l)),t.dir=u>0&&u!==r?e.slice(0,u-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},hs={resolve:function(){for(var e=[],t=0;t=-1&&!r;i--){var o=void 0;os(o=i>=0?e[i]:$o.a(),"path"),0!==o.length&&(n=o+"/"+n,r=o.charCodeAt(0)===ns)}return n=ls(n,!r,"/",as),r?n.length>0?"/"+n:"/":n.length>0?n:"."},normalize:function(e){if(os(e,"path"),0===e.length)return".";var t=e.charCodeAt(0)===ns,n=e.charCodeAt(e.length-1)===ns;return 0!==(e=ls(e,!t,"/",as)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return os(e,"path"),e.length>0&&e.charCodeAt(0)===ns},join:function(){for(var e,t=[],n=0;n0&&(void 0===e?e=i:e+="/"+i)}return void 0===e?".":hs.normalize(e)},relative:function(e,t){if(os(e,"from"),os(t,"to"),e===t)return"";if((e=hs.resolve(e))===(t=hs.resolve(t)))return"";for(var n=1;na){if(t.charCodeAt(o+l)===ns)return t.slice(o+l+1);if(0===l)return t.slice(o+l)}else i>a&&(e.charCodeAt(n+l)===ns?u=l:0===l&&(u=0));break}var c=e.charCodeAt(n+l);if(c!==t.charCodeAt(o+l))break;c===ns&&(u=l)}var d="";for(l=n+u+1;l<=r;++l)l!==r&&e.charCodeAt(l)!==ns||(0===d.length?d+="..":d+="/..");return d.length>0?d+t.slice(o+u):(o+=u,t.charCodeAt(o)===ns&&++o,t.slice(o))},toNamespacedPath:function(e){return e},dirname:function(e){if(os(e,"path"),0===e.length)return".";for(var t=e.charCodeAt(0)===ns,n=-1,r=!0,i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===ns){if(!r){n=i;break}}else r=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename:function(e,t){void 0!==t&&os(t,"ext"),os(e,"path");var n,r=0,i=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,a=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(u===ns){if(!o){r=n+1;break}}else-1===a&&(o=!1,a=n+1),s>=0&&(u===t.charCodeAt(s)?-1==--s&&(i=n):(s=-1,i=a))}return r===i?i=a:-1===i&&(i=e.length),e.slice(r,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===ns){if(!o){r=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(r,i)},extname:function(e){os(e,"path");for(var t=-1,n=0,r=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(a!==ns)-1===r&&(i=!1,r=s+1),a===ts?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=s+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)},format:function(e){if(null===e||"object"!=typeof e)throw new is("pathObject","Object",e);return cs("/",e)},parse:function(e){os(e,"path");var t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;var n,r=e.charCodeAt(0)===ns;r?(t.root="/",n=1):n=0;for(var i=-1,o=0,s=-1,a=!0,u=e.length-1,l=0;u>=n;--u){var c=e.charCodeAt(u);if(c!==ns)-1===s&&(a=!1,s=u+1),c===ts?-1===i?i=u:1!==l&&(l=1):-1!==i&&(l=-1);else if(!a){o=u+1;break}}return-1===i||-1===s||0===l||1===l&&i===s-1&&i===o+1?-1!==s&&(t.base=t.name=0===o&&r?e.slice(1,s):e.slice(o,s)):(0===o&&r?(t.name=e.slice(1,i),t.base=e.slice(1,s)):(t.name=e.slice(o,i),t.base=e.slice(o,s)),t.ext=e.slice(i,s)),o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};hs.win32=ds.win32=ds,hs.posix=ds.posix=hs;var fs="win32"===$o.c?ds.normalize:hs.normalize,ps="win32"===$o.c?ds.join:hs.join,gs="win32"===$o.c?ds.relative:hs.relative,ms="win32"===$o.c?ds.dirname:hs.dirname,_s="win32"===$o.c?ds.basename:hs.basename,ys="win32"===$o.c?ds.extname:hs.extname,vs="win32"===$o.c?ds.sep:hs.sep;var bs,ws,Cs=Object.freeze((function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}}));(ws=bs||(bs={})).isCancellationToken=function(e){return e===ws.None||e===ws.Cancelled||e instanceof Ss||!(!e||"object"!=typeof e)&&"boolean"==typeof e.isCancellationRequested&&"function"==typeof e.onCancellationRequested},ws.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Bt.None}),ws.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Cs});var Ss=function(){function e(){this._isCancelled=!1,this._emitter=null}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?Cs:(this._emitter||(this._emitter=new Kt),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},e}(),xs=function(){function e(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new Ss),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token instanceof Ss&&this._token.cancel():this._token=bs.Cancelled},e.prototype.dispose=function(){this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof Ss&&this._token.dispose():this._token=bs.None},e}();function Ls(e){var t=new xs,n=e(t.token),r=new Promise((function(e,r){t.token.onCancellationRequested((function(){r($e())})),Promise.resolve(n).then((function(n){t.dispose(),e(n)}),(function(e){t.dispose(),r(e)}))}));return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return r.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e.prototype.finally=function(e){return r.finally(e)},e}())}var ks=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((function(e,t){n.doResolve=e,n.doReject=t})).then((function(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e()}))),this.timeout=setTimeout((function(){n.timeout=null,n.doResolve(null)}),t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject($e()),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e.prototype.dispose=function(){this.cancelTimeout()},e}();function Ms(e,t){void 0===t&&(t=0);var n=setTimeout(e,t);return At((function(){return clearTimeout(n)}))}var Ds,Es=function(){function e(e,t){this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=setTimeout((function(){n._token=-1,e()}),t)},e.prototype.setIfNotSet=function(e,t){var n=this;-1===this._token&&(this._token=setTimeout((function(){n._token=-1,e()}),t))},e}(),Ts=function(){function e(){this._token=-1}return e.prototype.dispose=function(){this.cancel()},e.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},e.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval((function(){e()}),t)},e}(),Ns=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),this.runner=null},e.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return-1!==this.timeoutToken},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},e.prototype.doRun=function(){this.runner&&this.runner()},e}();!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});Ds=function(t){var n=setTimeout((function(){return t(e)})),r=!1;return{dispose:function(){r||(r=!0,clearTimeout(n))}}}}else Ds=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose:function(){r||(r=!0,cancelIdleCallback(n))}}}}();var Os=function(){function e(e){var t=this;this._didRun=!1,this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}},this._handle=Ds((function(){return t._executor()}))}return e.prototype.dispose=function(){this._handle.dispose()},e.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},e}(),As="**",Is="/",Ps="[/\\\\]",Rs="[^/\\\\]",Fs=/\//g;function Ys(e){switch(e){case 0:return"";case 1:return Rs+"*?";default:return"(?:"+Ps+"|"+Rs+"+"+Ps+"|"+Ps+Rs+"+)*?"}}function js(e,t){if(!e)return[];for(var n=[],r=!1,i=!1,o="",s=0,a=e;se.length)return!1;if(n){if(!wn(e,t))return!1;if(t.length===e.length)return!0;var i=t.length;return t.charAt(t.length-1)===r&&i--,e.charAt(i)===r}return t.charAt(t.length-1)!==r&&(t+=r),0===e.indexOf(t)}(n,t.base)?e(gs(t.base,n),r):null}}function Xs(e,t){return t.trimForExclusions&&cn(e,"/**")?e.substr(0,e.length-2):e}function Js(e,t,n){var r=vs!==hs.sep?e.replace(Fs,vs):e,i=vs+r,o=n?function(e,n){return"string"!=typeof e||e!==r&&!cn(e,i)?null:t}:function(e,n){return"string"==typeof e&&e===r?t:null};return o.allPaths=[(n?"*/":"./")+e],o}function Qs(e,t,n){return!(!e||"string"!=typeof t)&&function(e,t){void 0===t&&(t={});if(!e)return Ks;if("string"==typeof e||(i=e,o=i,o&&"string"==typeof o.base&&"string"==typeof o.pattern)){var n=$s(e,t);if(n===Gs)return Ks;var r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}var i,o;return function(e,t){var n=ea(Object.getOwnPropertyNames(e).map((function(n){return function(e,t,n){if(!1===t)return Gs;var r=$s(e,n);if(r===Gs)return Gs;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,s){if(!s||!r(t,n))return null;var a,u=s(i.replace("$(basename)",o));return(a=u)&&"function"==typeof a.then?u.then((function(t){return t?e:null})):u?e:null};return o.requiresSiblings=!0,o}}return r}(n,e[n],t)})).filter((function(e){return e!==Gs}))),r=n.length;if(!r)return Gs;if(!n.some((function(e){return!!e.requiresSiblings}))){if(1===r)return n[0];var i=function(e,t){for(var r=0,i=n.length;r0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var s=i.indexOf(t);return-1!==s?r[s]:null};a.basenames=i,a.patterns=r,a.allBasenames=i;var u=e.filter((function(e){return!e.basenames}));return u.push(a),u}function ta(e,t,n,r){if(Array.isArray(e)){for(var i=0,o=0,s=e;oi&&(i=a)}return i}if("string"==typeof e)return r?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,l=e.pattern,c=e.scheme,d=e.hasAccessToAllModels;if(!r&&!d)return 0;i=0;if(c)if(c===t.scheme)i=10;else{if("*"!==c)return 0;i=5}if(u)if(u===n)i=10;else{if("*"!==u)return 0;i=Math.max(i,5)}if(l){if(l!==t.fsPath&&!Qs(l,t.fsPath))return 0;i=10}return i}return 0}function na(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(na):!!e.exclusive)}var ra,ia,oa,sa=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new Kt}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.register=function(e,t){var n=this,r={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(r),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),At((function(){if(r){var e=n._entries.indexOf(r);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),r=void 0)}}))},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],n=0,r=this._entries;n0&&t.push(i.provider)}return t},e.prototype.ordered=function(e){var t=[];return this._orderedForEach(e,(function(e){return t.push(e.provider)})),t},e.prototype.orderedGroups=function(e){var t,n,r=[];return this._orderedForEach(e,(function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],r.push(t))})),r},e.prototype._orderedForEach=function(e,t){if(e){this._updateScores(e);for(var n=0,r=this._entries;n0&&t(i)}}},e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(!this._lastCandidate||this._lastCandidate.language!==n.language||this._lastCandidate.uri!==n.uri){this._lastCandidate=n;for(var r=0,i=this._entries;r0){for(var s=0,a=this._entries;st._score?-1:e._timet._time?-1:0},e}(),aa=function(){function e(){this._map=new Map,this._promises=new Map,this._onDidChange=new Kt,this.onDidChange=this._onDidChange.event,this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map.set(e,t),this.fire([e]),At((function(){n._map.get(e)===t&&(n._map.delete(e),n.fire([e]))}))},e.prototype.registerPromise=function(e,t){var n=this,r=null,i=!1;return this._promises.set(e,t.then((function(t){n._promises.delete(e),!i&&t&&(r=n.register(e,t))}))),At((function(){i=!0,r&&r.dispose()}))},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return Promise.resolve(n);var r=this._promises.get(e);return r?r.then((function(n){return t.get(e)})):null},e.prototype.get=function(e){return Ve(this._map.get(e))},e.prototype.setColorMap=function(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Gn(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},e}(),ua=function(e,t){this.language=e,this.id=t},la=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),r=this.getFontStyle(e),i="color: "+t[n]+";";return 1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;"),4&r&&(i+="text-decoration: underline;"),i},e}();(ra=Object.create(null))[0]="method",ra[1]="function",ra[2]="constructor",ra[3]="field",ra[4]="variable",ra[5]="class",ra[6]="struct",ra[7]="interface",ra[8]="module",ra[9]="property",ra[10]="event",ra[11]="operator",ra[12]="unit",ra[13]="value",ra[14]="constant",ra[15]="enum",ra[16]="enum-member",ra[17]="keyword",ra[25]="snippet",ra[18]="text",ra[19]="color",ra[20]="file",ra[21]="reference",ra[22]="customcolor",ra[23]="folder",ra[24]="type-parameter",function(){var e=Object.create(null);e.method=0,e.function=1,e.constructor=2,e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.enumMember=16,e.keyword=17,e.snippet=25,e.text=18,e.color=19,e.file=20,e.reference=21,e.customcolor=22,e.folder=23,e["type-parameter"]=24,e.typeParameter=24}();!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(ia||(ia={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(oa||(oa={}));(ca=Object.create(null))[0]="file",ca[1]="module",ca[2]="namespace",ca[3]="package",ca[4]="class",ca[5]="method",ca[6]="property",ca[7]="field",ca[8]="constructor",ca[9]="enum",ca[10]="interface",ca[11]="function",ca[12]="variable",ca[13]="constant",ca[14]="string",ca[15]="number",ca[16]="boolean",ca[17]="array",ca[18]="object",ca[19]="key",ca[20]="null",ca[21]="enum-member",ca[22]="struct",ca[23]="event",ca[24]="operator",ca[25]="type-parameter";var ca,da=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();var ha=new sa,fa=new sa,pa=new sa,ma=new sa,_a=new sa,ya=new sa,va=new sa,ba=new sa,wa=new sa,Ca=new sa,Sa=new sa,xa=new sa,La=new sa,ka=new sa,Ma=new sa,Da=new sa,Ea=new sa,Ta=new sa,Na=new sa,Oa=new sa,Aa=new aa,Ia=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var r=t<<1,i=r+(n<<1),o=r;o0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return la.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return la.getTokenType(t)},e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return la.getForeground(t)},e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return la.getClassNameFromMetadata(t)},e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return la.getInlineStyleFromMetadata(n,t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new Pa(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,r=0;r>>1)-1;nt&&(r=i)}return n},e}(),Pa=function(){function e(e,t,n,r){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=r,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var i=this._firstTokenIndex,o=e.getCount();i=n)break;this._tokensCount++}}return e.prototype.equals=function(t){return t instanceof e&&(this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount))},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex},e}(),Ra=function(){function e(e,t,n){this.offset=0|e,this.type=t,this.language=n}return e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},e}(),Fa=function(e,t){this.tokens=e,this.endState=t},Ya=function(e,t){this.tokens=e,this.endState=t},ja=new(function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}()),Ba=new ua("vs.editor.nullMode",0);function Wa(e,t,n,r){var i=new Uint32Array(2);return i[0]=r,i[1]=(16384|e<<0|2<<23)>>>0,new Ya(i,null===n?ja:n)}var Ha=et.b.performance&&"function"==typeof et.b.performance.now,Va=function(){function e(e){this._highResolution=Ha&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?et.b.performance.now():(new Date).getTime()},e}();function za(e){for(var t=0,n=0,r=0,i=e.length;r>>0}var qa=new Uint32Array(0).buffer,Ka=function(){function e(){this.tokens=[]}return e.prototype.add=function(e,t){if(this.tokens.length>0){var n=this.tokens[this.tokens.length-1];if(n.startLineNumber+n.tokens.length-1+1===e)return void n.tokens.push(t)}this.tokens.push(new Ga(e,[t]))},e}(),Ga=function(e,t){this.startLineNumber=e,this.tokens=t};function $a(e){return e instanceof Uint32Array?e:new Uint32Array(e)}var Za,Xa=function(){function e(){this._lineTokens=[],this._len=0}return e.prototype.flush=function(){this._lineTokens=[],this._len=0},e.prototype.getTokens=function(e,t,n){var r=null;if(t1&&(i=la.getLanguageId(r[1])!==e),!i)return qa}if(!r||0===r.length){var o=new Uint32Array(2);return o[0]=t,o[1]=Ua(e),o.buffer}return r[r.length-2]=t,0===r.byteOffset&&r.byteLength===r.buffer.byteLength?r.buffer:r},e.prototype._ensureLine=function(e){for(;e>=this._len;)this._lineTokens[this._len]=null,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._lineTokens.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],r=0;r=this._len))if(t.startLineNumber!==t.endLineNumber){this._lineTokens[n]=e._deleteEnding(this._lineTokens[n],t.startColumn-1);var r=t.endLineNumber-1,i=null;r=this._len||(0!==n?(this._lineTokens[i]=e._deleteEnding(this._lineTokens[i],t.column-1),this._lineTokens[i]=e._insert(this._lineTokens[i],t.column-1,r),this._insertLines(t.lineNumber,n)):this._lineTokens[i]=e._insert(this._lineTokens[i],t.column-1,r))}},e._deleteBeginning=function(t,n){return null===t||t===qa?t:e._delete(t,0,n)},e._deleteEnding=function(t,n){if(null===t||t===qa)return t;var r=$a(t),i=r[r.length-2];return e._delete(t,n,i)},e._delete=function(e,t,n){if(null===e||e===qa||t===n)return e;var r=$a(e),i=r.length>>>1;if(0===t&&r[r.length-2]===n)return qa;var o,s,a=Ia.findIndexInTokensArray(r,t),u=a>0?r[a-1<<1]:0;if(ns&&(r[o++]=f,r[o++]=r[1+(h<<1)],s=f)}if(o===r.length)return e;var p=new Uint32Array(o);return p.set(r.subarray(0,o),0),p.buffer},e._append=function(e,t){if(t===qa)return e;if(e===qa)return t;if(null===e)return e;if(null===t)return null;var n=$a(e),r=$a(t),i=r.length>>>1,o=new Uint32Array(n.length+r.length);o.set(n,0);for(var s=n.length,a=n[n.length-2],u=0;u>>1,o=Ia.findIndexInTokensArray(r,t);o>0&&(r[o-1<<1]===t&&o--);for(var s=o;s=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},e.prototype._deleteLines=function(e,t){0!==t&&(e+t>this._len&&(t=this._len-e),this._beginState.splice(e,t),this._valid.splice(e,t),this._len-=t)},e.prototype._insertLines=function(e,t){if(0!==t){for(var n=[],r=[],i=0;i=0;i--)this._invalidateLine(e.startLineNumber+i-1);this._acceptDeleteRange(e),this._acceptInsertText(new St(e.startLineNumber,e.startColumn),t)},e.prototype._acceptDeleteRange=function(e){e.startLineNumber-1>=this._len||this._deleteLines(e.startLineNumber,e.endLineNumber-e.startLineNumber)},e.prototype._acceptInsertText=function(e,t){e.lineNumber-1>=this._len||this._insertLines(e.lineNumber,t)},e}(),eu=function(e){function t(t){var n=e.call(this)||this;return n._textModel=t,n._tokenizationStateStore=new Qa,n._revalidateTokensTimeout=-1,n._tokenizationSupport=null,n._register(Aa.onDidChange((function(e){var t=n._textModel.getLanguageIdentifier();-1!==e.changedLanguages.indexOf(t.language)&&(n._resetTokenizationState(),n._textModel.clearTokens())}))),n._register(n._textModel.onDidChangeRawContentFast((function(e){e.containsEvent(1)&&n._resetTokenizationState()}))),n._register(n._textModel.onDidChangeContentFast((function(e){for(var t=0,r=e.changes.length;t20);){if(this._tokenizeOneInvalidLine(t)>=e)break}this._beginBackgroundTokenization(),this._textModel.setTokens(t.tokens)},t.prototype.tokenizeViewport=function(e,t){var n=new Ka;this._tokenizeViewport(n,e,t),this._textModel.setTokens(n.tokens)},t.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},t.prototype.forceTokenization=function(e){var t=new Ka;this._updateTokensUntilLine(t,e),this._textModel.setTokens(t.tokens)},t.prototype.isCheapToTokenize=function(e){if(!this._tokenizationSupport)return!0;var t=this._tokenizationStateStore.invalidLineStartIndex+1;return!(e>t)&&(e0&&s>=1;s--){var a=this._textModel.getLineFirstNonWhitespaceColumn(s);if(0!==a&&a=0;s--){l=(h=tu(u,this._tokenizationSupport,i[s],l)).endState}for(var c=t;c<=n;c++){var d=this._textModel.getLineContent(c),h=tu(u,this._tokenizationSupport,d,l);e.add(c,h.tokens),this._tokenizationStateStore.setFakeTokens(c-1),l=h.endState}}},t}(Pt);function tu(e,t,n,r){var i=null;if(t)try{i=t.tokenize2(n,r.clone(),0)}catch(e){Ue(e)}return i||(i=Wa(e.id,0,r,0)),Ia.convertToEndOffset(i.tokens,n.length),i}!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(Za||(Za={}));var nu=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t0&&e.getLanguageId(s-1)===i;)s--;return new iu(e,i,s,o+1,e.getStartOffset(s),e.getEndOffset(o))}var iu=function(){function e(e,t,n,r,i,o){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=r,this.firstCharOffset=i,this._lastCharOffset=o}return e.prototype.getLineContent=function(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function ou(e){return 0!=(7&e)}var su=function(){function e(t){if(t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map((function(e){return new nu(e)})):t.brackets?this._autoClosingPairs=t.brackets.map((function(e){return new nu({open:e[0],close:e[1]})})):this._autoClosingPairs=[],t.__electricCharacterSupport&&t.__electricCharacterSupport.docComment){var n=t.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new nu({open:n.open,close:n.close||""}))}this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},e.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var r=t.findTokenIndexAtOffset(n-2),i=t.getStandardTokenType(r);return e.isOK(i)},e.prototype.getSurroundingPairs=function(){return this._surroundingPairs},e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t",e}(),au=function(e,t,n,r,i){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=r,this.reversedRegex=i},uu=function(e,t){var n=this;this.brackets=t.map((function(t){return new au(e,t[0],t[1],cu({open:t[0],close:t[1]}),du({open:t[0],close:t[1]}))})),this.forwardRegex=hu(this.brackets),this.reversedRegex=fu(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var r=0;this.brackets.forEach((function(e){n.textIsBracket[e.open.toLowerCase()]=e,n.textIsBracket[e.close.toLowerCase()]=e,n.textIsOpenBracket[e.open.toLowerCase()]=!0,n.textIsOpenBracket[e.close.toLowerCase()]=!1,r=Math.max(r,e.open.length),r=Math.max(r,e.close.length)})),this.maxBracketLength=r};function lu(e,t){var n={};return function(r){var i=e(r);return n.hasOwnProperty(i)||(n[i]=t(r)),n[i]}}var cu=lu((function(e){return e.open+";"+e.close}),(function(e){return gu([e.open,e.close])})),du=lu((function(e){return e.open+";"+e.close}),(function(e){return gu([yu(e.open),yu(e.close)])})),hu=lu((function(e){return e.map((function(e){return e.open+";"+e.close})).join(";")}),(function(e){var t=[];return e.forEach((function(e){t.push(e.open),t.push(e.close)})),gu(t)})),fu=lu((function(e){return e.map((function(e){return e.open+";"+e.close})).join(";")}),(function(e){var t=[];return e.forEach((function(e){t.push(yu(e.open)),t.push(yu(e.close))})),gu(t)}));function pu(e){var t=/^[\w]+$/.test(e);return e=an(e),t?"\\b"+e+"\\b":e}function gu(e){return dn("("+e.map(pu).join(")|(")+")",!0)}var mu,_u,yu=(mu=null,_u=null,function(e){return mu!==e&&(_u=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}(mu=e)),_u}),vu=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,r){var i=n.match(e);if(!i)return null;var o=n.length-(i.index||0),s=i[0].length,a=r+o;return new Rr(t,a-s+1,t,a+1)},e.findPrevBracketInToken=function(e,t,n,r,i){var o=yu(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,o,r)},e.findNextBracketInText=function(e,t,n,r){var i=n.match(e);if(!i)return null;var o=i.index||0,s=i[0].length;if(0===s)return null;var a=r+o;return new Rr(t,a+1,t,a+1+s)},e.findNextBracketInToken=function(e,t,n,r,i){var o=n.substring(r,i);return this.findNextBracketInText(e,t,o,r)},e}(),bu=function(){function e(e){this._richEditBrackets=e}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t0&&n.length>0)for(r=0,i=this._brackets.length;r0)for(r=0,i=this._brackets.length;r1){var i=void 0,o=-1;for(i=t-1;i>=1;i--){if(e.getLanguageIdAtPosition(i,0)!==r)return o;var s=e.getLineContent(i);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return i;o=i}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var r=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!r)return null;if(t<=1)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(i<0)return null;if(i<1)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:pn(o),action:Za.Indent,line:i};if(r.shouldDecrease(o))return{indentation:pn(o),action:null,line:i};if(1===i)return{indentation:pn(e.getLineContent(i)),action:null,line:i};var s=i-1,a=r.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=l;break}return{indentation:pn(e.getLineContent(u+1)),action:null,line:u+1}}if(n)return{indentation:pn(e.getLineContent(i)),action:null,line:i};for(l=i;l>0;l--){var c=e.getLineContent(l);if(r.shouldIncrease(c))return{indentation:pn(c),action:Za.Indent,line:l};if(r.shouldIndentNextLine(c)){u=0;for(var d=l-1;d>0;d--)if(!r.shouldIndentNextLine(e.getLineContent(l))){u=d;break}return{indentation:pn(e.getLineContent(u+1)),action:null,line:u+1}}if(r.shouldDecrease(c))return{indentation:pn(c),action:null,line:l}}return{indentation:pn(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,r){var i=this.getIndentRulesSupport(t);if(!i)return null;var o=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(o){var a=o.line;if(void 0!==a){var u=this._getOnEnterSupport(t),l=null;try{u&&(l=u.onEnter("",e.getLineContent(a),""))}catch(e){Ue(e)}if(l){var c=pn(e.getLineContent(a));return l.removeText&&(c=c.substring(0,c.length-l.removeText)),l.indentAction===Za.Indent||l.indentAction===Za.IndentOutdent?c=r.shiftIndent(c):l.indentAction===Za.Outdent&&(c=r.unshiftIndent(c)),i.shouldDecrease(s)&&(c=r.unshiftIndent(c)),l.appendText&&(c+=l.appendText),pn(c)}}return i.shouldDecrease(s)?o.action===Za.Indent?o.indentation:r.unshiftIndent(o.indentation):o.action===Za.Indent?r.shiftIndent(o.indentation):o.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i,o,s=e.getLineTokens(t.startLineNumber),a=ru(s,t.startColumn-1),u=a.getLineContent(),l=!1;(a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,i=u.substr(0,t.startColumn-1-a.firstCharOffset)):i=s.getLineContent().substring(0,t.startColumn-1),t.isEmpty())?o=u.substr(t.startColumn-1-a.firstCharOffset):o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset);var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var d=i,h=pn(i);if(!r&&!l){var f=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(i)&&f&&(h=f.indentation,f.action!==Za.Indent&&(h=n.unshiftIndent(h))),d=h+un(un(i," "),"\t")}var p={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?d:e.getLineContent(n)}},g=pn(s.getLineContent()),m=this.getInheritIndentForLine(p,t.startLineNumber+1);if(!m){var _=l?g:h;return{beforeEnter:_,afterEnter:_}}var y=l?g:m.indentation;return m.action===Za.Indent&&(y=n.shiftIndent(y)),c.shouldDecrease(o)&&(y=n.unshiftIndent(y)),{beforeEnter:l?g:h,afterEnter:y}},e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var s,a=i.getLineContent(),u=a.substr(0,t.startColumn-1-i.firstCharOffset);t.isEmpty()?s=a.substr(t.startColumn-1-i.firstCharOffset):s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);if(!o.shouldDecrease(u+s)&&o.shouldDecrease(u+n+s)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var c=l.indentation;return l.action!==Za.Indent&&(c=r.unshiftIndent(c)),c}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var r=this.getEnterAction(e,new Rr(t,n,t,n));return r?r.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),r=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),i=this._getOnEnterSupport(r.languageId);if(!i)return null;var o,s=r.getLineContent(),a=s.substr(0,t.startColumn-1-r.firstCharOffset);t.isEmpty()?o=s.substr(t.startColumn-1-r.firstCharOffset):o=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-r.firstCharOffset);var u=t.startLineNumber,l="";if(u>1&&0===r.firstCharOffset){var c=this.getScopedLineTokens(e,u-1);c.languageId===r.languageId&&(l=c.getLineContent())}var d=null;try{d=i.onEnter(l,a,o)}catch(e){Ue(e)}return d?(d.appendText||(d.indentAction===Za.Indent||d.indentAction===Za.IndentOutdent?d.appendText="\t":d.appendText=""),d.removeText&&(n=n.substring(0,n.length-d.removeText)),{enterAction:d,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var r=pn(e.getLineContent(t));return r.length>n-1&&(r=r.substring(0,n-1)),r},e.prototype.getScopedLineTokens=function(e,t,n){return e.forceTokenization(t),ru(e.getLineTokens(t),void 0===n?e.getLineMaxColumn(t)-1:n-1)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}());function ku(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var Mu=function(){function e(e,t,n,r){void 0===r&&(r=1),this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,n)),this.a=ku(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a},e}(),Du=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=ku(Math.max(Math.min(1,t),0),3),this.l=ku(Math.max(Math.min(1,n),0),3),this.a=ku(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,r=t.g/255,i=t.b/255,o=t.a,s=Math.max(n,r,i),a=Math.min(n,r,i),u=0,l=0,c=(a+s)/2,d=s-a;if(d>0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(r-i)/d+(r1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,r,i,o=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=r=i=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,o+1/3),r=e._hue2rgb(c,l,o),i=e._hue2rgb(c,l,o-1/3)}return new Mu(Math.round(255*n),Math.round(255*r),Math.round(255*i),u)},e}(),Eu=function(){function e(e,t,n,r){this.h=0|Math.max(Math.min(360,e),0),this.s=ku(Math.max(Math.min(1,t),0),3),this.v=ku(Math.max(Math.min(1,n),0),3),this.a=ku(Math.max(Math.min(1,r),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n,r=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(r,i,o),a=s-Math.min(r,i,o),u=0===s?0:a/s;return n=0===a?0:s===r?((i-o)/a%6+6)%6:s===i?(o-r)/a+2:(r-i)/a+4,new e(Math.round(60*n),u,s,t.a)},e.toRGBA=function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=r*n,s=o*(1-Math.abs(t/60%2-1)),a=r-o,u=[0,0,0],l=u[0],c=u[1],d=u[2];return t<60?(l=o,c=s):t<120?(l=s,c=o):t<180?(c=o,d=s):t<240?(c=s,d=o):t<300?(l=s,d=o):t<360&&(l=o,d=s),l=Math.round(255*(l+a)),c=Math.round(255*(c+a)),d=Math.round(255*(d+a)),new Mu(l,c,d,i)},e}(),Tu=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof Mu)this.rgba=e;else if(e instanceof Du)this._hsla=e,this.rgba=Du.toRGBA(e);else{if(!(e instanceof Eu))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=Eu.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:Du.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:Eu.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&Mu.equals(this.rgba,e.rgba)&&Du.equals(this.hsla,e.hsla)&&Eu.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return ku(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()t.LARGE_FILE_SIZE_THRESHOLD||a>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1,s._isTooLargeForSyncing=u>t.MODEL_SYNC_LIMIT,s._versionId=1,s._alternativeVersionId=1,s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=i||Ba,s._languageRegistryListener=Lu.onDidChange((function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})})),s._instanceId=On(Iu),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new Fu,s._commandManager=new Di(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s._tokens=new Xa,s._tokenization=new eu(s),s}return Nu(t,e),t.createFromString=function(e,n,r,i){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===r&&(r=null),void 0===i&&(i=null),new t(e,n,r,i)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=Ni(e,t.tabSize,t.insertSpaces);return new Ci({tabSize:n.tabSize,indentSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new Ci({tabSize:t.tabSize,indentSize:t.indentSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.rawContentChangedEvent)}))},t.prototype.onDidChangeContentFast=function(e){return this._eventEmitter.fastEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent((function(t){return e(t.contentChangedEvent)}))},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Go(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=Au(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,r,i,o,s){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:s}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),r=this.getLineCount(),i=this.getLineMaxColumn(r);this._buffer=e,this._increaseVersionId(),this._tokens.flush(),this._decorations=Object.create(null),this._decorationsTree=new Fu,this._commandManager=new Di(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Ko([new Ho],this._versionId,!1,!1),this._createContentChanged2(new Rr(1,1,r,i),0,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),r=this.getValueLengthInRange(n),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Ko([new qo],this._versionId,!1,!1),this._createContentChanged2(new Rr(1,1,i,o),0,r,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,r=t.length;n0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),r=1;r<=n;r++){var i=this._buffer.getLineLength(r);i>=1e4?t+=i:e+=i}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize,n=void 0!==e.indentSize?e.indentSize:this._options.indentSize,r=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new Ci({tabSize:t,indentSize:n,insertSpaces:r,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var s=this._options.createChangeEvent(o);this._options=o,this._onDidChangeOptions.fire(s)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=Ni(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize,indentSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var r=0,i=0;ithis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLineLength=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,r=this._buffer.getLineCount(),i=e.startLineNumber,o=e.startColumn;if(i<1)t=1,n=1;else if(i>r)t=r,n=this.getLineMaxColumn(t);else{if(t=0|i,o<=1)n=1;else n=o>=(c=this.getLineMaxColumn(t))?c:0|o}var s,a,u=e.endLineNumber,l=e.endColumn;if(u<1)s=1,a=1;else if(u>r)s=r,a=this.getLineMaxColumn(s);else{var c;if(s=0|u,l<=1)a=1;else a=l>=(c=this.getLineMaxColumn(s))?c:0|l}return i===t&&o===n&&u===s&&l===a&&e instanceof Rr&&!(e instanceof Yr)?e:new Rr(t,n,s,a)},t.prototype._isValidPosition=function(e,t,n){if("number"!=typeof e||"number"!=typeof t)return!1;if(isNaN(e)||isNaN(t))return!1;if(e<1||t<1)return!1;if((0|e)!==e||(0|t)!==t)return!1;if(e>this._buffer.getLineCount())return!1;if(t>this.getLineMaxColumn(e))return!1;if(n&&(t>1&&Cn(this._buffer.getLineCharCode(e,t-2))))return!1;return!0},t.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"!=typeof e||isNaN(e)?1:e),i=Math.floor("number"!=typeof t||isNaN(t)?1:t),o=this._buffer.getLineCount();if(r<1)return new St(1,1);if(r>o)return new St(o,this.getLineMaxColumn(o));if(i<=1)return new St(r,1);var s=this.getLineMaxColumn(r);if(i>=s)return new St(r,s);if(n&&Cn(this._buffer.getLineCharCode(r,i-2)))return new St(r,i-1);return new St(r,i)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof St&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn;if(!this._isValidPosition(n,r,!1))return!1;if(!this._isValidPosition(i,o,!1))return!1;if(t){var s=r>1?this._buffer.getLineCharCode(n,r-2):0,a=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0,u=Cn(s),l=Cn(a);return!u&&!l}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof Rr&&!(e instanceof Yr)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),r=t.lineNumber,i=t.column,o=n.lineNumber,s=n.column,a=i>1?this._buffer.getLineCharCode(r,i-2):0,u=s>1&&s<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,s-2):0,l=Cn(a),c=Cn(u);return l||c?r===o&&i===s?new Rr(r,i-1,o,s-1):l&&c?new Rr(r,i-1,o,s+1):l?new Rr(r,i-1,o,s):new Rr(r,i,o,s+1):new Rr(r,i,o,s)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new Rr(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)},t.prototype.findMatches=function(e,t,n,r,i,o,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=Rr.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new Lo(e,n,r,i).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,o,s):[]}return Eo.findMatches(this,new Lo(e,n,r,i),a,o,s)},t.prototype.findNextMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new Lo(e,n,r,i).parseSearchRequest();if(!a)return null;var u=this.getLineCount(),l=new Rr(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,a,o,1);return Eo.findNextMatch(this,new Lo(e,n,r,i),s,o),c.length>0?c[0]:(l=new Rr(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,a,o,1)).length>0?c[0]:null)}return Eo.findNextMatch(this,new Lo(e,n,r,i),s,o)},t.prototype.findPreviousMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var s=this.validatePosition(t);return Eo.findPreviousMatch(this,new Lo(e,n,r,i),s,o)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEOL=function(e){if(("\n"===this.getEOL()?0:1)!==e)try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var r=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var i=t.map((function(e){return{range:r.validateRange(e.range),text:e.text}})),o=!0,s=0,a=e.length;su.endLineNumber,f=u.startLineNumber>_.endLineNumber;if(!h&&!f){l=!0;break}}if(!l){o=!1;break}}if(o)for(s=0,a=this._trimAutoWhitespaceLines.length;s_.endLineNumber)&&!(p===_.startLineNumber&&_.startColumn===g&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0)||p===_.startLineNumber&&1===_.startColumn&&_.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(y.length-1))){m=!1;break}}m&&t.push({range:new Rr(p,1,p,g),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._applyEdits=function(e){for(var t=0,n=e.length;t=0;v--){var b=f+v,w=o-u-y+b;a.push(new Vo(b,this.getLineContent(w)))}if(_this.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=this.getLineCount(),o=Math.min(i,Math.max(1,e)),s=Math.min(i,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new Rr(o,1,s,a),n,r)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=this.validateRange(e);return this._getDecorationsInRange(r,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(r)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),r=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(r)},t.prototype._getDecorationsInRange=function(e,t,n){var r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),o=this.getVersionId(),s=this._decorationsTree.intervalSearch(r,i,t,n,o);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;tthis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,e-1,this._buffer.getLineLength(e),t)},t.prototype.setTokens=function(e){if(0!==e.length){for(var t=[],n=0,r=e.length;nthis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(e)},t.prototype.isCheapToTokenize=function(e){return this._tokenization.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this.validatePosition(new St(e,t)),r=this.getLineTokens(n.lineNumber);return r.getLanguageId(r.findTokenIndexAtOffset(n.column-1))},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),r=this.getLineContent(n.lineNumber),i=this._getLineTokens(n.lineNumber),o=i.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(i,o),a=s[0],u=s[1],l=ni(n.column,Lu.getWordDefinition(i.getLanguageId(o)),r.substring(a,u),a);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&a===n.column-1){var c=t._findLanguageBoundaries(i,o-1),d=c[0],h=c[1],f=ni(n.column,Lu.getWordDefinition(i.getLanguageId(o-1)),r.substring(d,h),d);if(f&&f.startColumn<=e.column&&e.column<=f.endColumn)return f}return null},t._findLanguageBoundaries=function(e,t){for(var n=e.getLanguageId(t),r=0,i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);for(var o=e.getLineContent().length,s=(i=t,e.getCount());i0&&n.getStartOffset(i)===e.column-1){a=n.getStartOffset(i);i--;var l=Lu.getBracketsSupport(n.getLanguageId(i));if(l&&!ou(n.getStandardTokenType(i))){var c,d,h;s=Math.max(n.getStartOffset(i),e.column-1-l.maxBracketLength);if((c=vu.findPrevBracketInToken(l.reversedRegex,t,r,s,a))&&c.startColumn<=e.column&&e.column<=c.endColumn)if(d=(d=r.substring(c.startColumn-1,c.endColumn-1)).toLowerCase(),h=this._matchFoundBracket(c,l.textIsBracket[d],l.textIsOpenBracket[d]))return h}}return null},t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;var r;if(n){if(r=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,r]}else if(r=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,r];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,r=e.reversedRegex,i=-1,o=t.lineNumber;o>=1;o--){var s=this._getLineTokens(o),a=s.getCount(),u=this._buffer.getLineContent(o),l=a-1,c=-1;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),f=s.getStartOffset(l),p=s.getEndOffset(l);if(-1===c&&(c=p),d===n&&!ou(h))for(;;){var g=vu.findPrevBracketInToken(r,o,u,f,c);if(!g)break;var m=u.substring(g.startColumn-1,g.endColumn-1);if((m=m.toLowerCase())===e.open?i++:m===e.close&&i--,0===i)return g;c=g.startColumn-1}c=-1}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,r=e.forwardRegex,i=1,o=t.lineNumber,s=this.getLineCount();o<=s;o++){var a=this._getLineTokens(o),u=a.getCount(),l=this._buffer.getLineContent(o),c=0,d=0;for(o===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c=1;i--){var o=this._getLineTokens(i),s=o.getCount(),a=this._buffer.getLineContent(i),u=s-1,l=-1;for(i===t.lineNumber&&(u=o.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>=0;u--){var c=o.getLanguageId(u),d=o.getStandardTokenType(u),h=o.getStartOffset(u),f=o.getEndOffset(u);if(-1===l&&(l=f),n!==c&&(n=c,r=Lu.getBracketsSupport(n)),r&&!ou(d)){var p=vu.findPrevBracketInToken(r.reversedRegex,i,a,h,l);if(p)return this._toFoundBracket(r,p)}l=-1}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,r=null,i=t.lineNumber,o=this.getLineCount();i<=o;i++){var s=this._getLineTokens(i),a=s.getCount(),u=this._buffer.getLineContent(i),l=0,c=0;for(i===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);li)throw new Error("Illegal value for lineNumber");for(var o=Lu.getFoldingRules(this._languageIdentifier.id),s=Boolean(o&&o.offSide),a=-2,u=-1,l=-2,c=-1,d=function(e){if(-1!==a&&(-2===a||a>e-1)){a=-1,u=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){a=t,u=n;break}}}if(-2===l){l=-1,c=-1;for(t=e;t=0){l=t,c=o;break}}}},h=-2,f=-1,p=-2,g=-1,m=function(e){if(-2===h){h=-1,f=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){h=t,f=n;break}}}if(-1!==p&&(-2===p||p=0){p=t,g=o;break}}}},_=0,y=!0,v=0,b=!0,w=0,C=0;y||b;C++){var S=e-C,x=e+C;if(0!==C&&(S<1||Si||x>n)&&(b=!1),C>5e4&&(y=!1,b=!1),y){var L=void 0;if((k=this._computeIndentLevel(S-1))>=0?(l=S-1,c=k,L=Math.ceil(k/this._options.indentSize)):(d(S),L=this._getIndentLevelForWhitespaceLine(s,u,c)),0===C){if(_=S,v=x,0===(w=L))return{startLineNumber:_,endLineNumber:v,indent:w};continue}L>=w?_=S:y=!1}if(b){var k,M=void 0;(k=this._computeIndentLevel(x-1))>=0?(h=x-1,f=k,M=Math.ceil(k/this._options.indentSize)):(m(x),M=this._getIndentLevelForWhitespaceLine(s,f,g)),M>=w?v=x:b=!1}}return{startLineNumber:_,endLineNumber:v,indent:w}},t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var r=Lu.getFoldingRules(this._languageIdentifier.id),i=Boolean(r&&r.offSide),o=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,o[d]=Math.ceil(h/this._options.indentSize);else{if(-2===s){s=-1,a=-1;for(var f=c-2;f>=0;f--){if((p=this._computeIndentLevel(f))>=0){s=f,a=p;break}}}if(-1!==u&&(-2===u||u=0){u=f,l=p;break}}}o[d]=this._getIndentLevelForWhitespaceLine(i,a,l)}}return o},t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t0?this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(Pt),Ku=function(){return!0},Gu=function(){return!1},$u=function(e){return" "===e||"\t"===e};function Zu(e,t,n){e.has(t)?e.get(t).push(n):e.set(t,[n])}var Xu=function(){function e(t,n,r){this._languageIdentifier=t;var i=r.editor;this.readOnly=i.readOnly,this.tabSize=n.tabSize,this.indentSize=n.indentSize,this.insertSpaces=n.insertSpaces,this.pageSize=Math.max(1,Math.floor(i.layoutInfo.height/i.fontInfo.lineHeight)-2),this.lineHeight=i.lineHeight,this.useTabStops=i.useTabStops,this.wordSeparators=i.wordSeparators,this.emptySelectionClipboard=i.emptySelectionClipboard,this.copyWithSyntaxHighlighting=i.copyWithSyntaxHighlighting,this.multiCursorMergeOverlapping=i.multiCursorMergeOverlapping,this.autoClosingBrackets=i.autoClosingBrackets,this.autoClosingQuotes=i.autoClosingQuotes,this.autoClosingOvertype=i.autoClosingOvertype,this.autoSurround=i.autoSurround,this.autoIndent=i.autoIndent,this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:e._getShouldAutoClose(t,this.autoClosingQuotes),bracket:e._getShouldAutoClose(t,this.autoClosingBrackets)};var o=e._getAutoClosingPairs(t);if(o)for(var s=0,a=o;s=r.length)&&Sn(r.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var r=e.getLineContent(t);return!(n<0||n>=r.length)&&Cn(r.charCodeAt(n))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var r=e.length;r>t-1&&(r=t-1);for(var i=0,o=0;o=t)return a-ts?s:i},e.nextRenderTabStop=function(e,t){return e+t-e%t},e.nextIndentTabStop=function(e,t){return e+t-e%t},e.prevRenderTabStop=function(e,t){return e-1-(e-1)%t},e.prevIndentTabStop=function(e,t){return e-1-(e-1)%t},e}();function ol(e){return"'"===e||'"'===e||"`"===e}var sl=function(){function e(){}return e.columnSelect=function(e,t,n,r,i,o){for(var s=Math.abs(i-n)+1,a=n>i,u=r>o,l=ro)continue;if(mr)continue;if(g1&&i--,e.columnSelect(t,n,r.fromViewLineNumber,r.fromViewVisualColumn,r.toViewLineNumber,i)},e.columnSelectRight=function(e,t,n){for(var r=0,i=Math.min(n.fromViewLineNumber,n.toViewLineNumber),o=Math.max(n.fromViewLineNumber,n.toViewLineNumber),s=i;s<=o;s++){var a=t.getLineMaxColumn(s),u=il.visibleColumnFromColumn2(e,t,new St(s,a));r=Math.max(r,u)}var l=n.toViewVisualColumn;return lt.getLineMinColumn(n)?il.isLowSurrogate(t,n,r-2)?r-=2:r-=1:n>1&&(n-=1,r=t.getLineMaxColumn(n)),new dl(n,r,0)},e.moveLeft=function(t,n,r,i,o){var s,a;if(r.hasSelection()&&!i)s=r.selection.startLineNumber,a=r.selection.startColumn;else{var u=e.left(t,n,r.position.lineNumber,r.position.column-(o-1));s=u.lineNumber,a=u.column}return r.move(i,s,a,0)},e.right=function(e,t,n,r){return ru?(n=u,s?r=t.getLineMaxColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),il.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=il.columnFromVisibleColumn2(e,t,n,a),il.isInsideSurrogatePair(t,n,r)&&(r-=1)),i=a-il.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new dl(n,r,i)},e.moveDown=function(t,n,r,i,o){var s,a;r.hasSelection()&&!i?(s=r.selection.endLineNumber,a=r.selection.endColumn):(s=r.position.lineNumber,a=r.position.column);var u=e.down(t,n,s,a,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,r){var i=r.selection,o=e.down(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new Ju(new Rr(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new St(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,t,n,r,i,o,s){var a=il.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+i;return(n-=o)<1?(n=1,s?r=t.getLineMinColumn(n):(r=Math.min(t.getLineMaxColumn(n),r),il.isInsideSurrogatePair(t,n,r)&&(r-=1))):(r=il.columnFromVisibleColumn2(e,t,n,a),il.isInsideSurrogatePair(t,n,r)&&(r-=1)),i=a-il.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize),new dl(n,r,i)},e.moveUp=function(t,n,r,i,o){var s,a;r.hasSelection()&&!i?(s=r.selection.startLineNumber,a=r.selection.startColumn):(s=r.position.lineNumber,a=r.position.column);var u=e.up(t,n,s,a,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,r){var i=r.selection,o=e.up(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new Ju(new Rr(o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new St(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,r){var i,o=n.position.lineNumber,s=t.getLineMinColumn(o),a=t.getLineFirstNonWhitespaceColumn(o)||s;return i=n.position.column===a?s:a,n.move(r,o,i,0)},e.moveToEndOfLine=function(e,t,n,r){var i=n.position.lineNumber,o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e.moveToBeginningOfBuffer=function(e,t,n,r){return n.move(r,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,r){var i=t.getLineCount(),o=t.getLineMaxColumn(i);return n.move(r,i,o,0)},e}(),fl=function(){function e(){}return e.deleteRight=function(e,t,n,r){for(var i=[],o=3!==e,s=0,a=r.length;s1){var d=n.getLineContent(c.lineNumber),h=fn(d),f=-1===h?d.length+1:h+1;if(c.column<=f){var p=il.visibleColumnFromColumn2(t,n,c),g=il.prevIndentTabStop(p,t.indentSize),m=il.columnFromVisibleColumn2(t,n,c.lineNumber,g);l=new Rr(c.lineNumber,m,c.lineNumber,c.column)}else l=new Rr(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var _=hl.left(t,n,c.lineNumber,c.column);l=new Rr(_.lineNumber,_.column,c.lineNumber,c.column)}}l.isEmpty()?i[s]=null:(l.startLineNumber!==l.endLineNumber&&(o=!0),i[s]=new al(l,""))}return[o,i]},e.cut=function(e,t,n){for(var r=[],i=0,o=n.length;i1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new Rr(u,l,c,d);h.isEmpty()?r[i]=null:r[i]=new al(h,"")}else r[i]=null;else r[i]=new al(s,"")}return new rl(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}(),pl=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gl=function(){function e(){}return e._createWord=function(e,t,n,r,i){return{start:r,end:i,wordType:t,nextCharClass:n}},e._findPreviousWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(r,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var r=0,i=n.column-2;i>=0;i--){var o=e.charCodeAt(i),s=t.get(o);if(0===s){if(2===r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1));r=1}else if(2===s){if(1===r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1));r=2}else if(1===s&&0!==r)return this._createWord(e,r,s,i+1,this._findEndOfWord(e,t,r,i+1))}return 0!==r?this._createWord(e,r,1,0,this._findEndOfWord(e,t,r,0)):null},e._findEndOfWord=function(e,t,n,r){for(var i=e.length,o=r;o=0;i--){var o=e.charCodeAt(i),s=t.get(o);if(1===s)return i+1;if(1===n&&2===s)return i+1;if(2===n&&0===s)return i+1}return 0},e.moveWordLeft=function(t,n,r,i){var o=r.lineNumber,s=r.column,a=!1;1===s&&o>1&&(a=!0,o-=1,s=n.getLineMaxColumn(o));var u=e._findPreviousWordOnLine(t,n,new St(o,s));if(0===i){if(u&&!a)if(n.getLineLastNonWhitespaceColumn(o)1?new St(n-1,e.getLineMaxColumn(n-1)):t;for(var i=e.getLineContent(n),o=t.column-1;o>1;o--){var s=i.charCodeAt(o-2),a=i.charCodeAt(o-1);if(95!==s&&95===a)return new St(n,o);if(mn(s)&&_n(a))return new St(n,o);if(_n(s)&&_n(a))if(o+1=u.start+1&&(u=e._findNextWordOnLine(t,n,new St(o,u.end+1))),s=u?u.start+1:n.getLineMaxColumn(o);return new St(o,s)},e._moveWordPartRight=function(e,t){var n=t.lineNumber,r=e.getLineMaxColumn(n);if(t.column===r)return n1?u=1:(a--,u=n.getLineMaxColumn(a)):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new St(a,c.start+1))),c?u=c.end+1:u>1?u=1:(a--,u=n.getLineMaxColumn(a))),new Rr(a,u,s.lineNumber,s.column)},e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition(),i=e._moveWordPartLeft(t,r);return new Rr(r.lineNumber,r.column,i.lineNumber,i.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,r=t;r=h.start+1&&(h=e._findNextWordOnLine(t,n,new St(a,h.end+1))),h?u=h.start+1:ua&&(u=a,l=e.model.getLineMaxColumn(u)),nl.fromModelState(new Ju(new Rr(o.lineNumber,1,u,l),0,new St(u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumberc){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(d=a,h=e.viewModel.getLineMaxColumn(d)),nl.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var f=t.modelState.selectionStart.getEndPosition();return nl.fromModelState(t.modelState.move(t.modelState.hasSelection(),f.lineNumber,f.column,0))},e.word=function(e,t,n,r){var i=e.model.validatePosition(r);return nl.fromModelState(gl.word(e.config,e.model,t.modelState,n,i))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new nl(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,r=t.viewState.position.column;return nl.fromViewState(new Ju(new Rr(n,r,n,r),0,new St(n,r),0))},e.moveTo=function(e,t,n,r,i){var o=e.model.validatePosition(r),s=i?e.validateViewPosition(new St(i.lineNumber,i.column),o):e.convertModelPositionToViewPosition(o);return nl.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var r=n.select,i=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,r):this._moveLeft(e,t,r,i);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,r):this._moveRight(e,t,r,i);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,r,i):this._moveUpByModelLines(e,t,r,i);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,r,i):this._moveDownByModelLines(e,t,r,i);case 4:return this._moveToViewMinColumn(e,t,r);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,r);case 6:return this._moveToViewCenterColumn(e,t,r);case 7:return this._moveToViewMaxColumn(e,t,r);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,r);case 9:var o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,i),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 11:o=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,i),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 10:o=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,o,r,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;dn.endLineNumber-1&&(i=n.endLineNumber-1),i1)if(il.visibleColumnFromColumn(v,f+1,s)%a!=0&&t.isCheapToTokenize(h-1)){var p=Lu.getRawEnterActionAtPosition(t,h-1,t.getLineMaxColumn(h-1));if(p){if(d=c,p.appendText)for(var g=0,m=p.appendText.length;g1){var a=void 0;for(a=r-1;a>=1;a--){if(gn(n.getLineContent(a))>=0)break}if(a<1)return null;var u=n.getLineMaxColumn(a),l=Lu.getEnterAction(n,new Rr(a,u,a,u));l&&(o=l.indentation,(i=l.enterAction)&&(o+=i.appendText))}return i&&(i===Za.Indent&&(o=e.shiftIndent(t,o)),i===Za.Outdent&&(o=e.unshiftIndent(t,o)),o=t.normalizeIndentation(o)),o||null},e._replaceJumpToNextIndent=function(e,t,n,r){var i="",o=n.getStartPosition();if(e.insertSpaces)for(var s=il.visibleColumnFromColumn2(e,t,o),a=e.indentSize,u=a-s%a,l=0;l=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,b+1)):i.setEndPosition(i.endLineNumber,n.getLineMaxColumn(i.endLineNumber)),r)return new ul(i,v+t.normalizeIndentation(p.afterEnter),!0);var w=0;return y<=b+1&&(t.insertSpaces||(_=Math.ceil(_/t.indentSize)),w=Math.min(_+1-t.normalizeIndentation(p.afterEnter).length-1,0)),new ll(i,v+t.normalizeIndentation(p.afterEnter),0,w,!0)}return e._typeCommand(i,"\n"+t.normalizeIndentation(m),r)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var r=0,i=n.length;ro.open.length){for(var l=!0,c=0,d=n;cf.column-1){var g=p.charAt(f.column-1);if(!e._isBeforeClosingBrace(t,u,g)&&!l(g))return null}if(!n.isCheapToTokenize(f.lineNumber))return null;if(1===u.open.length&&s&&"always"!==a){var m=xo(t.wordSeparators);if(o&&f.column>1&&0===m.get(p.charCodeAt(f.column-2)))return null;if(!o&&f.column>2&&0===m.get(p.charCodeAt(f.column-3)))return null}n.forceTokenization(f.lineNumber);var _=n.getLineTokens(f.lineNumber),y=!1;try{y=Lu.shouldAutoClosePair(u,_,o?f.column:f.column-1)}catch(e){Ue(e)}if(!y)return null}return u},e._runAutoClosingOpenCharType=function(e,t,n,r,i,o,s){for(var a=[],u=0,l=r.length;u1)for(var o=n.modelState?n.modelState.position:null,s=n.viewState?n.viewState.position:null,a=0,u=i.length;ai&&(r=i);var o=new Rr(r,1,r,e.context.model.getLineMaxColumn(r)),s=0;if(n.at)switch(n.at){case Al.RawAtArgument.Top:s=3;break;case Al.RawAtArgument.Center:s=1;break;case Al.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(o);e.revealRange(!1,a,s,0)},t}(Wl))),e.SelectAll=Ar(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:void 0})||this}return jl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[vl.selectAll(e.context,e.getPrimaryCursor())])},t}(Wl))),e.SetSelection=Ar(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:void 0})||this}return jl(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,3,[nl.fromModelSelection(t.selection)])},t}(Wl)))}(Pl||(Pl={})),Fl=Rl||(Rl={}),Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return jl(t,e),t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();r&&this.runCoreEditingCommand(t,r,n||{})},t}(Nr),Fl.CoreEditingCommand=Yl,Fl.LineBreakInsert=Ar(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:Ml.textInputFocus,primary:0,mac:{primary:301}}})||this}return jl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ll.lineBreakInsert(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))))},t}(Yl))),Fl.Outdent=Ar(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:In.and(Ml.editorTextFocus,Ml.tabDoesNotMoveFocus),primary:1026}})||this}return jl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ll.outdent(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(Yl))),Fl.Tab=Ar(new(function(e){function t(){return e.call(this,{id:"tab",precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:In.and(Ml.editorTextFocus,Ml.tabDoesNotMoveFocus),primary:2}})||this}return jl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop(),e.executeCommands(this.id,Ll.tab(t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection})))),e.pushUndoStop()},t}(Yl))),Fl.DeleteLeft=Ar(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:Ml.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return jl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=fl.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(2)},t}(Yl))),Fl.DeleteRight=Ar(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:Ml.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return jl(t,e),t.prototype.runCoreEditingCommand=function(e,t,n){var r=fl.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map((function(e){return e.modelState.selection}))),i=r[0],o=r[1];i&&e.pushUndoStop(),e.executeCommands(this.id,o),t.setPrevEditOperationType(3)},t}(Yl)));var Vl=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return jl(t,e),t.prototype.runCommand=function(e,t){var n=e.get(Ct).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var r=document.activeElement;if(!(r&&["input","textarea"].indexOf(r.tagName.toLowerCase())>=0)){var i=e.get(Ct).getActiveCodeEditor();return i?(i.focus(),this._runEditorHandler(e,i,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t,n){var r=this._editorHandler;"string"==typeof r?t.trigger("keyboard",r,n):((n=n||{}).source="keyboard",r.runEditorCommand(e,t,n))},t}(Tr),zl=function(e){function t(t,n,r){var i=e.call(this,{id:t,precondition:void 0,description:r})||this;return i._handlerId=n,i}return jl(t,e),t.prototype.runCommand=function(e,t){var n=e.get(Ct).getFocusedCodeEditor();n&&n.trigger("keyboard",this._handlerId,t)},t}(Tr);function Ul(e,t){Hl(new zl("default:"+e,e)),Hl(new zl(e,e,t))}Hl(new Vl({editorHandler:Pl.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:Ml.textInputFocus,kbOpts:{weight:Bl,kbExpr:null,primary:2079},menubarOpts:{menuId:22,group:"1_basic",title:Me({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}})),Hl(new Vl({editorHandler:Tl.Undo,inputHandler:"undo",id:Tl.Undo,precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:Ml.textInputFocus,primary:2104},menubarOpts:{menuId:14,group:"1_do",title:Me({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}})),Hl(new zl("default:"+Tl.Undo,Tl.Undo)),Hl(new Vl({editorHandler:Tl.Redo,inputHandler:"redo",id:Tl.Redo,precondition:Ml.writable,kbOpts:{weight:Bl,kbExpr:Ml.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:14,group:"1_do",title:Me({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}})),Hl(new zl("default:"+Tl.Redo,Tl.Redo)),Ul(Tl.Type,{description:"Type",args:[{name:"args",schema:{type:"object",required:["text"],properties:{text:{type:"string"}}}}]}),Ul(Tl.ReplacePreviousChar),Ul(Tl.CompositionStart),Ul(Tl.CompositionEnd),Ul(Tl.Paste),Ul(Tl.Cut);var ql="base.contributions.json";var Kl=new(function(){function e(){this._onDidChangeSchema=new Kt,this.schemasById={}}return e.prototype.registerSchema=function(e,t){var n;this.schemasById[(n=e,n.length>0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e}());xr.add(ql,Kl);var Gl="base.contributions.colors",$l=new(function(){function e(){this._onDidChangeSchema=new Kt,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return e.prototype.registerColor=function(e,t,n,r,i){void 0===r&&(r=!1);var o={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=o;var s={type:"string",description:n,format:"color-hex",default:"#ff0000"};return i&&(s.deprecationMessage=i),this.colorSchema.properties[e]=s,this.colorReferenceSchema.enum.push(e),this.colorReferenceSchema.enumDescriptions.push(n),this._onDidChangeSchema.fire(),e},e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults)return Ed(n.defaults[t.type],t)},e.prototype.getColorSchema=function(){return this.colorSchema},e.prototype.toString=function(){var e=this;return Object.keys(this.colorsById).sort((function(e,t){var n=-1===e.indexOf(".")?0:1,r=-1===t.indexOf(".")?0:1;return n!==r?n-r:e.localeCompare(t)})).map((function(t){return"- `"+t+"`: "+e.colorsById[t].description})).join("\n")},e}());function Zl(e,t,n,r,i){return $l.registerColor(e,t,n,r,i)}xr.add(Gl,$l);var Xl,Jl,Ql=Zl("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},Me("foreground","Overall foreground color. This color is only used if not overridden by a component.")),ec=Zl("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},Me("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),tc=Zl("focusBorder",{dark:Tu.fromHex("#0E639C").transparent(.8),light:Tu.fromHex("#007ACC").transparent(.4),hc:"#F38518"},Me("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),nc=Zl("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},Me("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),rc=Zl("contrastActiveBorder",{light:null,dark:null,hc:tc},Me("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),ic=(Zl("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},Me("textLinkForeground","Foreground color for links in text.")),Zl("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:Tu.black},Me("textCodeBlockBackground","Background color for code blocks in text.")),Zl("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},Me("widgetShadow","Shadow color of widgets such as find/replace inside the editor."))),oc=Zl("input.background",{dark:"#3C3C3C",light:Tu.white,hc:Tu.black},Me("inputBoxBackground","Input box background.")),sc=Zl("input.foreground",{dark:Ql,light:Ql,hc:Ql},Me("inputBoxForeground","Input box foreground.")),ac=Zl("input.border",{dark:null,light:null,hc:nc},Me("inputBoxBorder","Input box border.")),uc=Zl("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:nc},Me("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),lc=Zl("inputOption.activeBackground",{dark:Md(tc,.5),light:Md(tc,.3),hc:null},Me("inputOption.activeBackground","Background color of activated options in input fields.")),cc=Zl("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:Tu.black},Me("inputValidationInfoBackground","Input validation background color for information severity.")),dc=Zl("inputValidation.infoForeground",{dark:null,light:null,hc:null},Me("inputValidationInfoForeground","Input validation foreground color for information severity.")),hc=Zl("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:nc},Me("inputValidationInfoBorder","Input validation border color for information severity.")),fc=Zl("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:Tu.black},Me("inputValidationWarningBackground","Input validation background color for warning severity.")),pc=Zl("inputValidation.warningForeground",{dark:null,light:null,hc:null},Me("inputValidationWarningForeground","Input validation foreground color for warning severity.")),gc=Zl("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:nc},Me("inputValidationWarningBorder","Input validation border color for warning severity.")),mc=Zl("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:Tu.black},Me("inputValidationErrorBackground","Input validation background color for error severity.")),_c=Zl("inputValidation.errorForeground",{dark:null,light:null,hc:null},Me("inputValidationErrorForeground","Input validation foreground color for error severity.")),yc=Zl("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:nc},Me("inputValidationErrorBorder","Input validation border color for error severity.")),vc=Zl("dropdown.background",{dark:"#3C3C3C",light:Tu.white,hc:Tu.black},Me("dropdownBackground","Dropdown background.")),bc=Zl("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:Tu.white},Me("dropdownForeground","Dropdown foreground.")),wc=Zl("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},Me("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Cc=Zl("list.focusForeground",{dark:null,light:null,hc:null},Me("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Sc=Zl("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},Me("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),xc=Zl("list.activeSelectionForeground",{dark:Tu.white,light:Tu.white,hc:null},Me("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Lc=Zl("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},Me("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),kc=Zl("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},Me("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Mc=Zl("list.inactiveFocusBackground",{dark:null,light:null,hc:null},Me("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Dc=Zl("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},Me("listHoverBackground","List/Tree background when hovering over items using the mouse.")),Ec=Zl("list.hoverForeground",{dark:null,light:null,hc:null},Me("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),Tc=Zl("list.dropBackground",{dark:wc,light:wc,hc:null},Me("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),Nc=(Zl("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:tc},Me("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Zl("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:Tu.black},Me("listFilterWidgetBackground","Background color of the type filter widget in lists and trees."))),Oc=Zl("listFilterWidget.outline",{dark:Tu.transparent,light:Tu.transparent,hc:"#f38518"},Me("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),Ac=Zl("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:nc},Me("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),Ic=Zl("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},Me("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),Pc=(Zl("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:Tu.white},Me("pickerGroupForeground","Quick picker color for grouping labels.")),Zl("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:Tu.white},Me("pickerGroupBorder","Quick picker color for grouping borders.")),Zl("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:Tu.black},Me("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),Zl("badge.foreground",{dark:Tu.white,light:"#333",hc:Tu.white},Me("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),Zl("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},Me("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."))),Rc=Zl("scrollbarSlider.background",{dark:Tu.fromHex("#797979").transparent(.4),light:Tu.fromHex("#646464").transparent(.4),hc:Md(nc,.6)},Me("scrollbarSliderBackground","Scrollbar slider background color.")),Fc=Zl("scrollbarSlider.hoverBackground",{dark:Tu.fromHex("#646464").transparent(.7),light:Tu.fromHex("#646464").transparent(.7),hc:Md(nc,.8)},Me("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),Yc=Zl("scrollbarSlider.activeBackground",{dark:Tu.fromHex("#BFBFBF").transparent(.4),light:Tu.fromHex("#000000").transparent(.6),hc:nc},Me("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),jc=(Zl("progressBar.background",{dark:Tu.fromHex("#0E70C0"),light:Tu.fromHex("#0E70C0"),hc:nc},Me("progressBarBackground","Background color of the progress bar that can show for long running operations.")),Zl("menu.border",{dark:null,light:null,hc:nc},Me("menuBorder","Border color of menus."))),Bc=Zl("menu.foreground",{dark:bc,light:Ql,hc:bc},Me("menuForeground","Foreground color of menu items.")),Wc=Zl("menu.background",{dark:vc,light:vc,hc:vc},Me("menuBackground","Background color of menu items.")),Hc=Zl("menu.selectionForeground",{dark:xc,light:xc,hc:xc},Me("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Vc=Zl("menu.selectionBackground",{dark:Sc,light:Sc,hc:Sc},Me("menuSelectionBackground","Background color of the selected menu item in menus.")),zc=Zl("menu.selectionBorder",{dark:null,light:null,hc:rc},Me("menuSelectionBorder","Border color of the selected menu item in menus.")),Uc=Zl("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:nc},Me("menuSeparatorBackground","Color of a separator menu item in menus.")),qc=Zl("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},Me("editorError.foreground","Foreground color of error squigglies in the editor.")),Kc=Zl("editorError.border",{dark:null,light:null,hc:Tu.fromHex("#E47777").transparent(.8)},Me("errorBorder","Border color of error boxes in the editor.")),Gc=Zl("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},Me("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),$c=Zl("editorWarning.border",{dark:null,light:null,hc:Tu.fromHex("#FFCC00").transparent(.8)},Me("warningBorder","Border color of warning boxes in the editor.")),Zc=Zl("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},Me("editorInfo.foreground","Foreground color of info squigglies in the editor.")),Xc=Zl("editorInfo.border",{dark:null,light:null,hc:Tu.fromHex("#75BEFF").transparent(.8)},Me("infoBorder","Border color of info boxes in the editor.")),Jc=Zl("editorHint.foreground",{dark:Tu.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},Me("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Qc=Zl("editorHint.border",{dark:null,light:null,hc:Tu.fromHex("#eeeeee").transparent(.8)},Me("hintBorder","Border color of hint boxes in the editor.")),ed=Zl("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:Tu.black},Me("editorBackground","Editor background color.")),td=Zl("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:Tu.white},Me("editorForeground","Editor default foreground color.")),nd=Zl("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},Me("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),rd=Zl("editorWidget.foreground",{dark:Ql,light:Ql,hc:Ql},Me("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),id=Zl("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:nc},Me("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),od=Zl("editorWidget.resizeBorder",{light:null,dark:null,hc:null},Me("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),sd=Zl("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},Me("editorSelectionBackground","Color of the editor selection.")),ad=Zl("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},Me("editorSelectionForeground","Color of the selected text for high contrast.")),ud=Zl("editor.inactiveSelectionBackground",{light:Md(sd,.5),dark:Md(sd,.5),hc:Md(sd,.5)},Me("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),ld=Zl("editor.selectionHighlightBackground",{light:Dd(sd,ed,.3,.6),dark:Dd(sd,ed,.3,.6),hc:null},Me("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),cd=(Zl("editor.selectionHighlightBorder",{light:null,dark:null,hc:rc},Me("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),Zl("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},Me("editorFindMatch","Color of the current search match."))),dd=Zl("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},Me("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),hd=Zl("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},Me("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),fd=Zl("editor.findMatchBorder",{light:null,dark:null,hc:rc},Me("editorFindMatchBorder","Border color of the current search match.")),pd=Zl("editor.findMatchHighlightBorder",{light:null,dark:null,hc:rc},Me("findMatchHighlightBorder","Border color of the other search matches.")),gd=Zl("editor.findRangeHighlightBorder",{dark:null,light:null,hc:Md(rc,.4)},Me("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),md=(Zl("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},Me("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),Zl("editorHoverWidget.background",{light:nd,dark:nd,hc:nd},Me("hoverBackground","Background color of the editor hover."))),_d=(Zl("editorHoverWidget.border",{light:id,dark:id,hc:id},Me("hoverBorder","Border color of the editor hover.")),Zl("editorHoverWidget.statusBarBackground",{dark:(Xl=md,Jl=.2,function(e){var t=Ed(Xl,e);if(t)return t.lighten(Jl)}),light:kd(md,.05),hc:nd},Me("statusBarBackground","Background color of the editor hover status bar.")),Zl("editorLink.activeForeground",{dark:"#4E94CE",light:Tu.blue,hc:Tu.cyan},Me("activeLinkForeground","Color of active links.")),new Tu(new Mu(155,185,85,.2))),yd=new Tu(new Mu(255,0,0,.2)),vd=Zl("diffEditor.insertedTextBackground",{dark:_d,light:_d,hc:null},Me("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),bd=Zl("diffEditor.removedTextBackground",{dark:yd,light:yd,hc:null},Me("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),wd=Zl("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},Me("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Cd=Zl("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},Me("diffEditorRemovedOutline","Outline color for text that got removed.")),Sd=Zl("diffEditor.border",{dark:null,light:null,hc:nc},Me("diffEditorBorder","Border color between the two text editors.")),xd=(Zl("editor.snippetTabstopHighlightBackground",{dark:new Tu(new Mu(124,124,124,.3)),light:new Tu(new Mu(10,50,100,.2)),hc:new Tu(new Mu(124,124,124,.3))},Me("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Zl("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},Me("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Zl("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},Me("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Zl("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new Tu(new Mu(10,50,100,.5)),hc:"#525252"},Me("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),Zl("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},Me("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0)),Ld=(Zl("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},Me("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),Zl("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},Me("minimapFindMatchHighlight","Minimap marker color for find matches."),!0));function kd(e,t){return function(n){var r=Ed(e,n);if(r)return r.darken(t)}}function Md(e,t){return function(n){var r=Ed(e,n);if(r)return r.transparent(t)}}function Dd(e,t,n,r){return function(i){var o=Ed(e,i);if(o){var s=Ed(t,i);return s?o.isDarkerThan(s)?Tu.getLighterColor(o,s,n).transparent(r):Tu.getDarkerColor(o,s,n).transparent(r):o.transparent(n*r)}}}function Ed(e,t){if(null!==e)return"string"==typeof e?"#"===e[0]?Tu.fromHex(e):t.getColor(e):e instanceof Tu?e:"function"==typeof e?e(t):void 0}var Td=xr.as(ql);Td.registerSchema("vscode://schemas/workbench-colors",$l.getColorSchema());var Nd=new Ns((function(){return Td.notifySchemaChanged("vscode://schemas/workbench-colors")}),200);$l.onDidChangeSchema((function(){Nd.isScheduled()||Nd.schedule()}));var Od=bt("themeService");function Ad(e){return{id:e}}var Id="dark",Pd="hc";function Rd(e){switch(e){case Id:return"vs-dark";case Pd:return"hc-black";default:return"vs"}}var Fd="base.contributions.theming",Yd=new(function(){function e(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new Kt}return e.prototype.onThemeChange=function(e){var t=this;return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),At((function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)}))},e.prototype.getThemingParticipants=function(){return this.themingParticipants},e}());function jd(e){return Yd.onThemeChange(e)}xr.add(Fd,Yd);var Bd=function(){function e(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},e.prototype.getCount=function(){return this._decorations.length},e.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},e.prototype.getStartPosition=function(){return this._startPosition},e.prototype.setStartPosition=function(e){this._startPosition=e,this.setCurrentFindMatch(null)},e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);return t>=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=0,r=this._editor.getModel().getDecorationsInRange(t);n1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=r._editor.getModel().getLineCount(),u=r._editor.getLayoutInfo().height/a,l=Math.max(2,Math.ceil(3/u)),c=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,f=t.length;h=p.startLineNumber?p.endLineNumber>d&&(d=p.endLineNumber):(s.push({range:new Rr(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=p.startLineNumber,d=p.endLineNumber)}s.push({range:new Rr(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var g=new Array(t.length);for(h=0,f=t.length;h=0;t--){var n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(r&&!(r.endLineNumber>e.lineNumber)){if(r.endLineNumbere.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;te.lineNumber)return i;if(!(i.startColumn0){for(var n=[],r=0;r0;){if(e0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,r=e.column,i=this._editor.getModel();return t||1===r?(1===n?n=i.getLineCount():n--,r=i.getLineMaxColumn(n)):r--,new St(n,r)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var r=this._decorations.matchBeforePosition(t);return r&&r.isEmpty()&&r.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),r=this._decorations.matchBeforePosition(t)),void(r&&this._setCurrentFindMatch(r))}if(!this._cannotFind()){var i=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new St(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),c)return n||o.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0)}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,r=e.column,i=this._editor.getModel();return t||r===i.getLineMaxColumn(n)?(n===i.getLineCount()?n=1:n++,r=1):r++,new St(n,r)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,r,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),o);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new St(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return r&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),d?i||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,r,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new Ud(null);for(var t=new Kd(e),n=0,r=e.length;n=r)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var o=a-48;if(n+1=r)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1)}}}return t.finalize()}(this._state.replaceString):Ud.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),!0,!1);if(n)if(t.equalsRange(n.range)){var r=e.buildReplaceString(n.matches,this._state.preserveCase),i=new al(t,r);this._executeEditorCommand("replace",i),this._decorations.setStartPosition(new St(t.startLineNumber,t.startColumn+r.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,r){var i=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,r)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new Lo(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var r,i=this._editor.getModel(),o=i.getValue(1),s=i.getFullModelRange(),a=this._getReplacePattern(),u=this._state.preserveCase;r=a.hasReplacementPatterns||u?o.replace(t,(function(){return a.buildReplaceString(arguments,u)})):o.replace(t,a.buildReplaceString(null,u));var l=new cl(s,r,this._editor.getSelection());this._executeEditorCommand("replaceAll",l)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[],i=0,o=n.length;i=0,ah=oh.indexOf("Edge/")>=0,uh=sh||ah,lh=oh.indexOf("Firefox")>=0,ch=oh.indexOf("AppleWebKit")>=0,dh=oh.indexOf("Chrome")>=0,hh=!dh&&oh.indexOf("Safari")>=0,fh=!dh&&!hh&&ch,ph=oh.indexOf("iPad")>=0,gh=ah&&oh.indexOf("WebView/")>=0;var mh=function(e,t,n){var r=function(e){return i.fire(e)},i=new Kt({onFirstListenerAdd:function(){e.addEventListener(t,r,n)},onLastListenerRemove:function(){e.removeEventListener(t,r,n)}});return i.event};var _h=new Array(230),yh=new Array(112);!function(){for(var e=0;e0;)Qh.sort(rf.sort),Qh.shift().execute();tf=!1},Zh=function(e,t){void 0===t&&(t=0);var n,r=new rf(e,t);return Jh.push(r),ef||(ef=!0,n=nf,Xh||(Xh=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout((function(){return e((new Date).getTime())}),0)}),Xh.call(self,n)),r},$h=function(e,t){if(tf){var n=new rf(e,t);return Qh.push(n),n}return Zh(e,t)};var of=16,sf=function(e,t){return t},af=function(e){function t(t,n,r,i,o){void 0===i&&(i=sf),void 0===o&&(o=of);var s=e.call(this)||this,a=null,u=0,l=s._register(new Es),c=function(){u=(new Date).getTime(),r(a),a=null};return s._register(qh(t,n,(function(e){a=i(a,e);var t=(new Date).getTime()-u;t>=o?(l.cancel(),c()):l.setIfNotSet(c,o-t)}))),s}return Oh(t,e),t}(Pt);function uf(e,t,n,r,i){return new af(e,t,n,r,i)}function lf(e){return document.defaultView.getComputedStyle(e,null)}var cf=function(){function e(){}return e.convertToPixels=function(e,t){return parseFloat(t)||0},e.getDimension=function(t,n,r){var i=lf(t),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(n):i.getAttribute(r)),e.convertToPixels(t,o)},e.getBorderLeftWidth=function(t){return e.getDimension(t,"border-left-width","borderLeftWidth")},e.getBorderRightWidth=function(t){return e.getDimension(t,"border-right-width","borderRightWidth")},e.getBorderTopWidth=function(t){return e.getDimension(t,"border-top-width","borderTopWidth")},e.getBorderBottomWidth=function(t){return e.getDimension(t,"border-bottom-width","borderBottomWidth")},e.getPaddingLeft=function(t){return e.getDimension(t,"padding-left","paddingLeft")},e.getPaddingRight=function(t){return e.getDimension(t,"padding-right","paddingRight")},e.getPaddingTop=function(t){return e.getDimension(t,"padding-top","paddingTop")},e.getPaddingBottom=function(t){return e.getDimension(t,"padding-bottom","paddingBottom")},e.getMarginLeft=function(t){return e.getDimension(t,"margin-left","marginLeft")},e.getMarginTop=function(t){return e.getDimension(t,"margin-top","marginTop")},e.getMarginRight=function(t){return e.getDimension(t,"margin-right","marginRight")},e.getMarginBottom=function(t){return e.getDimension(t,"margin-bottom","marginBottom")},e}();function df(e){for(var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=lf(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft),e===t&&(r+=cf.getBorderLeftWidth(e),n+=cf.getBorderTopWidth(e),n+=e.offsetTop,r+=e.offsetLeft,t=e.offsetParent)}return{left:r,top:n}}function hf(e){var t=e.getBoundingClientRect();return{left:t.left+ff.scrollX,top:t.top+ff.scrollY,width:t.width,height:t.height}}var ff=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function pf(e){var t=cf.getMarginLeft(e)+cf.getMarginRight(e);return e.offsetWidth+t}function gf(e){var t=cf.getBorderLeftWidth(e)+cf.getBorderRightWidth(e),n=cf.getPaddingLeft(e)+cf.getPaddingRight(e);return e.offsetWidth-t-n}function mf(e){var t=cf.getMarginTop(e)+cf.getMarginBottom(e);return e.offsetHeight+t}function _f(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function yf(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var vf=null;function bf(){return vf||(vf=yf()),vf}var wf={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:ch?"webkitAnimationStart":"animationstart",ANIMATION_END:ch?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:ch?"webkitAnimationIteration":"animationiteration"},Cf={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};var Sf=function(e){function t(t){var n=e.call(this)||this;n._onDidFocus=n._register(new Kt),n.onDidFocus=n._onDidFocus.event,n._onDidBlur=n._register(new Kt),n.onDidBlur=n._onDidBlur.event;var r=_f(document.activeElement,t),i=!1;return n._register(mh(t,wf.FOCUS,!0)((function(){i=!1,r||(r=!0,n._onDidFocus.fire())}))),n._register(mh(t,wf.BLUR,!0)((function(){r&&(i=!0,window.setTimeout((function(){i&&(i=!1,r=!1,n._onDidBlur.fire())}),0))}))),n}return Oh(t,e),t}(Pt);function xf(e){return new Sf(e)}function Lf(e){for(var t=[],n=1;nt&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,i=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,i=!0),void 0!==n&&(Rr.equalsRange(this._currentMatch,n)||(this._currentMatch=n,r.currentMatch=!0,i=!0)),i&&this._onFindReplaceStateChange.fire(r)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var r={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},i=!1,o=this.isRegex,s=this.wholeWord,a=this.matchCase,u=this.preserveCase;void 0!==e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,r.searchString=!0,i=!0),void 0!==e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,r.replaceString=!0,i=!0),void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,r.isRevealed=!0,i=!0),void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,r.isReplaceRevealed=!0,i=!0),void 0!==e.isRegex&&(this._isRegex=e.isRegex),void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord),void 0!==e.matchCase&&(this._matchCase=e.matchCase),void 0!==e.preserveCase&&(this._preserveCase=e.preserveCase),void 0!==e.searchScope&&(Rr.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,r.searchScope=!0,i=!0)),this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0,this._preserveCaseOverride=void 0!==e.preserveCaseOverride?e.preserveCaseOverride:0,o!==this.isRegex&&(i=!0,r.isRegex=!0),s!==this.wholeWord&&(i=!0,r.wholeWord=!0),a!==this.matchCase&&(i=!0,r.matchCase=!0),u!==this.preserveCase&&(i=!0,r.preserveCase=!0),i&&this._onFindReplaceStateChange.fire(r)},e}();n(320),n(321);function tp(e,t){op(Jf,e,t)}function np(e,t){et.d?tp(e,t):op(Qf,e,t)}var rp=0,ip=void 0;function op(e,t,n){if(Xf){if(!n)switch(ip===t?rp++:(ip=t,rp=0),rp){case 0:break;case 1:t=Me("repeated","{0} (occurred again)",t);break;default:t=Me("repeatedNtimes","{0} (occurred {1} times)",t,rp)}Ih(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible"}}n(322);function sp(e,t,n){var r=null,i=null;if("function"==typeof n.value?(r="value",0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(ap||(ap={}));var cp=function(e){function t(){var t=e.call(this)||this;return t.dispatched=!1,t.activeTouches={},t.handle=null,t.targets=[],t._register(qh(document,"touchstart",(function(e){return t.onTouchStart(e)}))),t._register(qh(document,"touchend",(function(e){return t.onTouchEnd(e)}))),t._register(qh(document,"touchmove",(function(e){return t.onTouchMove(e)}))),t}return up(t,e),t.addTarget=function(e){t.isTouchDevice()&&(t.INSTANCE||(t.INSTANCE=new t),t.INSTANCE.targets.push(e))},t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},t.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),e.prototype.dispose.call(this)},t.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,r=e.targetTouches.length;n=t.HOLD_DELAY&&Math.abs(u.initialPageX-jr(u.rollingPageX))<30&&Math.abs(u.initialPageY-jr(u.rollingPageY))<30){var c;(c=o.newGestureEvent(ap.Contextmenu,u.initialTarget)).pageX=jr(u.rollingPageX),c.pageY=jr(u.rollingPageY),o.dispatchEvent(c)}else if(1===r){var d=jr(u.rollingPageX),h=jr(u.rollingPageY),f=jr(u.rollingTimestamps)-u.rollingTimestamps[0],p=d-u.rollingPageX[0],g=h-u.rollingPageY[0],m=o.targets.filter((function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)}));o.inertia(m,n,Math.abs(p)/f,p>0?1:-1,d,Math.abs(g)/f,g>0?1:-1,h)}o.dispatchEvent(o.newGestureEvent(ap.End,u.initialTarget)),delete o.activeTouches[a.identifier]},o=this,s=0,a=e.changedTouches.length;s0&&(p=!1,h=i*r*d),s>0&&(p=!1,f=a*s*d);var g=l.newGestureEvent(ap.Change);g.translationX=h,g.translationY=f,e.forEach((function(e){return e.dispatchEvent(g)})),p||l.inertia(e,c,r,i,o+h,s,a,u+f)}))},t.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,r=e.changedTouches.length;n3&&(o.rollingPageX.shift(),o.rollingPageY.shift(),o.rollingTimestamps.shift()),o.rollingPageX.push(i.pageX),o.rollingPageY.push(i.pageY),o.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",i)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},t.SCROLL_FRICTION=-.005,t.HOLD_DELAY=700,lp([sp],t,"isTouchDevice",null),t}(Pt),dp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hp=!1,fp=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;return i._state=3,i._onDidEnablementChange=i._register(new Kt),i.onDidEnablementChange=i._onDidEnablementChange.event,i._onDidStart=i._register(new Kt),i.onDidStart=i._onDidStart.event,i._onDidChange=i._register(new Kt),i.onDidChange=i._onDidChange.event,i._onDidReset=i._register(new Kt),i.onDidReset=i._onDidReset.event,i._onDidEnd=i._register(new Kt),i.onDidEnd=i._onDidEnd.event,i.linkedSash=void 0,i.orthogonalStartSashDisposables=i._register(new It),i.orthogonalEndSashDisposables=i._register(new It),i.el=Lf(t,Ef(".monaco-sash")),et.d&&Bh(i.el,"mac"),i._register(mh(i.el,"mousedown")(i.onMouseDown,i)),i._register(mh(i.el,"dblclick")(i.onMouseDoubleClick,i)),cp.addTarget(i.el),i._register(mh(i.el,ap.Start)(i.onTouchStart,i)),ph&&Bh(i.el,"touch"),i.setOrientation(r.orientation||0),i.hidden=!1,i.layoutProvider=n,i.orthogonalStartSash=r.orthogonalStartSash,i.orthogonalEndSash=r.orthogonalEndSash,zh(i.el,"debug",hp),i}return dp(t,e),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){this._state!==e&&(zh(this.el,"disabled",0===e),zh(this.el,"minimum",1===e),zh(this.el,"maximum",2===e),this._state=e,this._onDidEnablementChange.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables.clear(),e?(this.orthogonalStartSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this)),this.onOrthogonalStartSashEnablementChange(e.state)):this.onOrthogonalStartSashEnablementChange(0),this._orthogonalStartSash=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables.clear(),e?(this.orthogonalEndSashDisposables.add(e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this)),this.onOrthogonalEndSashEnablementChange(e.state)):this.onOrthogonalEndSashEnablementChange(0),this._orthogonalEndSash=e},enumerable:!0,configurable:!0}),t.prototype.setOrientation=function(e){this.orientation=e,1===this.orientation?(Bh(this.el,"horizontal"),Hh(this.el,"vertical")):(Hh(this.el,"horizontal"),Bh(this.el,"vertical")),this.layoutProvider&&this.layout()},t.prototype.onMouseDown=function(e){var t=this;Cf.stop(e,!1);var n=!1;if(!e.__orthogonalSashEvent){var r=this.getOrthogonalSash(e);r&&(n=!0,e.__orthogonalSashEvent=!0,r.onMouseDown(e))}if(this.linkedSash&&!e.__linkedSashEvent&&(e.__linkedSashEvent=!0,this.linkedSash.onMouseDown(e)),this.state){for(var i=Of("iframe").concat(Of("webview")),o=0,s=i;o=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(e.offsetX<=4)return this.orthogonalStartSash;if(e.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.el&&this.el.parentElement&&this.el.parentElement.removeChild(this.el),this.el=null},t}(Pt);n(100),n(323);function pp(e,t){void 0===t&&(t={});var n=gp(t);return function e(t,n,r){var i;if(2===n.type)i=document.createTextNode(n.content||"");else if(3===n.type)i=document.createElement("b");else if(4===n.type)i=document.createElement("i");else if(5===n.type&&r){var o=document.createElement("a");o.href="#",r.disposeables.add(Kh(o,"click",(function(e){r.callback(String(n.index),e)}))),i=o}else 7===n.type?i=document.createElement("br"):1===n.type&&(i=t);i&&t!==i&&t.appendChild(i);i&&Array.isArray(n.children)&&n.children.forEach((function(t){e(i,t,r)}))}(n,function(e){var t={type:1,children:[]},n=0,r=t,i=[],o=new mp(e);for(;!o.eos();){var s=o.next(),a="\\"===s&&0!==_p(o.peek());if(a&&(s=o.next()),a||0===_p(s)||s!==o.peek())if("\n"===s)2===r.type&&(r=i.pop()),r.children.push({type:7});else if(2!==r.type){var u={type:2,content:s};r.children.push(u),i.push(r),r=u}else r.content+=s;else{o.advance(),2===r.type&&(r=i.pop());var l=_p(s);if(r.type===l||5===r.type&&6===l)r=i.pop();else{var c={type:l,children:[]};5===l&&(c.index=n,n++),r.children.push(c),i.push(r),r=c}}}2===r.type&&(r=i.pop());i.length;return t}(e),t.actionHandler),n}function gp(e){var t=e.inline?"span":"div",n=document.createElement(t);return e.className&&(n.className=e.className),n}var mp=function(){function e(e){this.source=e,this.index=0}return e.prototype.eos=function(){return this.index>=this.source.length},e.prototype.next=function(){var e=this.peek();return this.advance(),e},e.prototype.peek=function(){return this.source[this.index]},e.prototype.advance=function(){this.index++},e}();function _p(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}n(324);var yp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vp=function(e){function t(t,n,r){var i=e.call(this)||this;return i.options=r,i._context=t||i,i._action=n,n instanceof en&&i._register(n.onDidChange((function(e){i.element&&i.handleActionChangeEvent(e)}))),i}return yp(t,e),t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled(),void 0!==e.checked&&this.updateChecked(),void 0!==e.class&&this.updateClass(),void 0!==e.label&&(this.updateLabel(),this.updateTooltip()),void 0!==e.tooltip&&this.updateTooltip()},Object.defineProperty(t.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),t.prototype.getAction=function(){return this._action},t.prototype.isEnabled=function(){return this._action.enabled},t.prototype.setActionContext=function(e){this._context=e},t.prototype.render=function(e){var t=this;this.element=e,cp.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this._register(qh(this.element,ap.Tap,(function(e){return t.onClick(e)}))),this._register(qh(this.element,wf.MOUSE_DOWN,(function(e){n||Cf.stop(e,!0),t._action.enabled&&0===e.button&&t.element&&Bh(t.element,"active")}))),this._register(qh(this.element,wf.CLICK,(function(e){Cf.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):et.h((function(){return t.onClick(e)}))}))),this._register(qh(this.element,wf.DBLCLICK,(function(e){Cf.stop(e,!0)}))),[wf.MOUSE_UP,wf.MOUSE_OUT].forEach((function(e){t._register(qh(t.element,e,(function(e){Cf.stop(e),Hh(t.element,"active")})))}))},t.prototype.onClick=function(e){var t;Cf.stop(e,!0),Ie(this._context)?t=e:Te(t=this._context)&&(t.event=e),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.element&&(this.element.focus(),Bh(this.element,"focused"))},t.prototype.blur=function(){this.element&&(this.element.blur(),Hh(this.element,"focused"))},t.prototype.updateEnabled=function(){},t.prototype.updateLabel=function(){},t.prototype.updateTooltip=function(){},t.prototype.updateClass=function(){},t.prototype.updateChecked=function(){},t.prototype.dispose=function(){this.element&&(Ph(this.element),this.element=void 0),e.prototype.dispose.call(this)},t}(Pt),bp=function(e){function t(n){var r=e.call(this,t.ID,n,n?"separator text":"separator")||this;return r.checked=!1,r.radio=!1,r.enabled=!1,r}return yp(t,e),t.ID="vs.actions.separator",t}(en),wp=function(e){function t(t,n,r){void 0===r&&(r={});var i=e.call(this,t,n,r)||this;return i.options=r,i.options.icon=void 0!==r.icon&&r.icon,i.options.label=void 0===r.label||r.label,i.cssClass="",i}return yp(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.element&&(this.label=Lf(this.element,Ef("a.action-label"))),this._action.id===bp.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button"),this.options.label&&this.options.keybinding&&this.element&&(Lf(this.element,Ef("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.label.focus()},t.prototype.updateLabel=function(){this.options.label&&(this.label.textContent=this.getAction().label)},t.prototype.updateTooltip=function(){var e=null;this.getAction().tooltip?e=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(e=this.getAction().label,this.options.keybinding&&(e=Me({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))),e&&(this.label.title=e)},t.prototype.updateClass=function(){this.cssClass&&Vh(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,Bh(this.label,"icon"),this.cssClass&&Wh(this.label,this.cssClass),this.updateEnabled()):Hh(this.label,"icon")},t.prototype.updateEnabled=function(){this.getAction().enabled?(this.label.removeAttribute("aria-disabled"),this.element&&Hh(this.element,"disabled"),Hh(this.label,"disabled"),this.label.tabIndex=0):(this.label.setAttribute("aria-disabled","true"),this.element&&Bh(this.element,"disabled"),Bh(this.label,"disabled"),Nf(this.label))},t.prototype.updateChecked=function(){this.getAction().checked?Bh(this.label,"checked"):Hh(this.label,"checked")},t}(vp),Cp={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},Sp=function(e){function t(t,n){void 0===n&&(n=Cp);var r,i,o=e.call(this)||this;switch(o._onDidBlur=o._register(new Kt),o.onDidBlur=o._onDidBlur.event,o._onDidCancel=o._register(new Kt),o.onDidCancel=o._onDidCancel.event,o._onDidRun=o._register(new Kt),o.onDidRun=o._onDidRun.event,o._onDidBeforeRun=o._register(new Kt),o.onDidBeforeRun=o._onDidBeforeRun.event,o.options=n,o._context=n.context,o.options.triggerKeys||(o.options.triggerKeys=Cp.triggerKeys),o.options.actionRunner?o._actionRunner=o.options.actionRunner:(o._actionRunner=new tn,o._register(o._actionRunner)),o._register(o._actionRunner.onDidRun((function(e){return o._onDidRun.fire(e)}))),o._register(o._actionRunner.onDidBeforeRun((function(e){return o._onDidBeforeRun.fire(e)}))),o.viewItems=[],o.focusedItem=void 0,o.domNode=document.createElement("div"),o.domNode.className="monaco-action-bar",!1!==n.animated&&Bh(o.domNode,"animated"),o.options.orientation){case 0:r=15,i=17;break;case 1:r=17,i=15,o.domNode.className+=" reverse";break;case 2:r=16,i=18,o.domNode.className+=" vertical";break;case 3:r=18,i=16,o.domNode.className+=" vertical reverse"}return o._register(qh(o.domNode,wf.KEY_DOWN,(function(e){var t=new wh(e),n=!0;t.equals(r)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():o.isTriggerKeyEvent(t)?o.options.triggerKeys&&o.options.triggerKeys.keyDown&&o.doTrigger(t):n=!1,n&&(t.preventDefault(),t.stopPropagation())}))),o._register(qh(o.domNode,wf.KEY_UP,(function(e){var t=new wh(e);o.isTriggerKeyEvent(t)?(o.options.triggerKeys&&!o.options.triggerKeys.keyDown&&o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}))),o.focusTracker=o._register(xf(o.domNode)),o._register(o.focusTracker.onDidBlur((function(){document.activeElement!==o.domNode&&_f(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)}))),o._register(o.focusTracker.onDidFocus((function(){return o.updateFocusedItem()}))),o.actionsList=document.createElement("ul"),o.actionsList.className="actions-container",o.actionsList.setAttribute("role","toolbar"),o.options.ariaLabel&&o.actionsList.setAttribute("aria-label",o.options.ariaLabel),o.domNode.appendChild(o.actionsList),t.appendChild(o.domNode),o}return yp(t,e),t.prototype.isTriggerKeyEvent=function(e){var t=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach((function(n){t=t||e.equals(n)})),t},t.prototype.updateFocusedItem=function(){for(var e=0;e=n.actionsList.children.length?(n.actionsList.appendChild(o),n.viewItems.push(r)):(n.actionsList.insertBefore(o,n.actionsList.children[i]),n.viewItems.splice(i,0,r),i++)}))},t.prototype.clear=function(){this.viewItems=Nt(this.viewItems),Ih(this.actionsList)},t.prototype.isEmpty=function(){return 0===this.viewItems.length},t.prototype.focus=function(e){var t=!1,n=void 0;void 0===e?t=!0:"number"==typeof e?n=e:"boolean"==typeof e&&(t=e),t&&void 0===this.focusedItem?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(void 0!==n&&(this.focusedItem=n),this.updateFocus())},t.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.viewItems.length-1);var e,t=this.focusedItem;do{this.focusedItem=(this.focusedItem+1)%this.viewItems.length,e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus()},t.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e,t=this.focusedItem;do{this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),e=this.viewItems[this.focusedItem]}while(this.focusedItem!==t&&!e.isEnabled());this.focusedItem!==t||e.isEnabled()||(this.focusedItem=void 0),this.updateFocus(!0)},t.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;tthis._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t140)n._setDesiredScrollPositionNow(o.getScrollPosition());else{var a=n._sliderMousePosition(e)-r;n._setDesiredScrollPositionNow(o.getDesiredScrollPositionFromDelta(a))}}),(function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()})),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(Ff),Rp=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,r,i){var o=Math.max(0,n-e),s=Math.max(0,o-2*t),a=r>0&&r>n;if(!a)return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*s/r))),l=(s-u)/(r-n),c=i*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){if(!this._computedIsNeeded)return 0;var t=e-this._arrowSize-this._computedSliderSize/2;return Math.round(t/this._computedSliderRatio)},e.prototype.getDesiredScrollPositionFromDelta=function(e){if(!this._computedIsNeeded)return 0;var t=this._computedSliderPosition+e;return Math.round(t/this._computedSliderRatio)},e}(),Fp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yp=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Rp(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var o=(n.arrowSize-Tp)/2,s=(n.horizontalScrollbarSize-Tp)/2;i._createArrow({className:"left-arrow",top:s,left:o,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Th(null,1,0))}}),i._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:o,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Th(null,-1,0))}})}return i._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize),i}return Fp(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(Pp),jp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bp=function(e){function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Rp(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var o=(n.arrowSize-Tp)/2,s=(n.verticalScrollbarSize-Tp)/2;i._createArrow({className:"up-arrow",top:o,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Th(null,0,1))}}),i._createArrow({className:"down-arrow",top:void 0,left:s,bottom:o,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Th(null,0,-1))}})}return i._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0),i}return jp(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(Pp),Wp=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hp=function(){function e(e,t,n,r,i,o){(e|=0)<0&&(e=0),(n|=0)+e>(t|=0)&&(n=t-e),n<0&&(n=0),(r|=0)<0&&(r=0),(o|=0)+r>(i|=0)&&(o=i-r),o<0&&(o=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=r,this.scrollHeight=i,this.scrollTop=o}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){var t=this.width!==e.width,n=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,i=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:r,heightChanged:i,scrollHeightChanged:o,scrollTopChanged:s}},e}(),Vp=function(e){function t(t,n){var r=e.call(this)||this;return r._onScroll=r._register(new Kt),r.onScroll=r._onScroll.event,r._smoothScrollDuration=t,r._scheduleAtNextAnimationFrame=n,r._state=new Hp(0,0,0,0,0,0),r._smoothScrolling=null,r}return Wp(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=r}else{n=this._state.withScrollPosition(e);this._smoothScrolling=qp.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())}))},t.prototype._performSmoothScrolling=function(){var e=this;if(this._smoothScrolling){var t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame((function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())}))}},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(Pt),zp=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function Up(e,t){var n=t-e;return function(t){return e+n*(1-function(e){return Math.pow(e,3)}(1-t))}}var qp=function(){function e(e,t,n,r){this.from=e,this.to=t,this.duration=r,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var r,i,o;if(Math.abs(e-t)>2.5*n){var s=void 0,a=void 0;return e0&&Math.abs(e.deltaY)>0)return 1;var t=.5;-1===this._front&&-1===this._rear||this._memory[this._rear];return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),Zp=function(e){function t(t,n,r){var i=e.call(this)||this;i._onScroll=i._register(new Kt),i.onScroll=i._onScroll.event,t.style.overflow="hidden",i._options=eg(n),i._scrollable=r,i._register(i._scrollable.onScroll((function(e){i._onDidScroll(e),i._onScroll.fire(e)})));var o={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};return i._verticalScrollbar=i._register(new Bp(i._scrollable,i._options,o)),i._horizontalScrollbar=i._register(new Yp(i._scrollable,i._options,o)),i._domNode=document.createElement("div"),i._domNode.className="monaco-scrollable-element "+i._options.className,i._domNode.setAttribute("role","presentation"),i._domNode.style.position="relative",i._domNode.style.overflow="hidden",i._domNode.appendChild(t),i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode),i._domNode.appendChild(i._verticalScrollbar.domNode.domNode),i._options.useShadows?(i._leftShadowDomNode=kp(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=kp(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=kp(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)):(i._leftShadowDomNode=null,i._topShadowDomNode=null,i._topLeftShadowDomNode=null),i._listenOnDomNode=i._options.listenOnDomNode||i._domNode,i._mouseWheelToDispose=[],i._setListeningToMouseWheel(i._options.handleMouseWheel),i.onmouseover(i._listenOnDomNode,(function(e){return i._onMouseOver(e)})),i.onnonbubblingmouseout(i._listenOnDomNode,(function(e){return i._onMouseOut(e)})),i._hideTimeout=i._register(new Es),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i._revealOnScroll=!0,i}return Kp(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=Nt(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,et.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=eg(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=t.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=Nt(this._mouseWheelToDispose),e)){this._mouseWheelToDispose.push(qh(this._listenOnDomNode,uh?"mousewheel":"wheel",(function(e){t._onMouseWheel(new Th(e))})))}},t.prototype._onMouseWheel=function(e){var t,n=$p.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity,i=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=(t=[i,r])[0],i=t[1]);var o=!et.d&&e.browserEvent&&e.browserEvent.shiftKey;!this._options.scrollYToX&&!o||i||(i=r,r=0),e.browserEvent&&e.browserEvent.altKey&&(i*=this._options.fastScrollSensitivity,r*=this._options.fastScrollSensitivity);var s=this._scrollable.getFutureScrollPosition(),a={};if(r){var u=s.scrollTop-50*r;this._verticalScrollbar.writeScrollPosition(a,u)}if(i){var l=s.scrollLeft-50*i;this._horizontalScrollbar.writeScrollPosition(a,l)}if(a=this._scrollable.validateScrollPosition(a),s.scrollLeft!==a.scrollLeft||s.scrollTop!==a.scrollTop)this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(a):this._scrollable.setScrollPositionNow(a),this._shouldRender=!0}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet((function(){return e._hide()}),500)},t}(Ff),Xp=function(e){function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var i=new Vp(0,(function(e){return Zh(e)}));return(r=e.call(this,t,n,i)||this)._register(i),r}return Kp(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(Zp),Jp=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}return Kp(t,e),t}(Zp),Qp=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._element=t,r.onScroll((function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)})),r.scanDomNode(),r}return Kp(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(Xp);function eg(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,fastScrollSensitivity:void 0!==e.fastScrollSensitivity?e.fastScrollSensitivity:5,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,et.d&&(t.className+=" mac"),t}var tg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ng=Ef,rg={inputBackground:Tu.fromHex("#3C3C3C"),inputForeground:Tu.fromHex("#CCCCCC"),inputValidationInfoBorder:Tu.fromHex("#55AAFF"),inputValidationInfoBackground:Tu.fromHex("#063B49"),inputValidationWarningBorder:Tu.fromHex("#B89500"),inputValidationWarningBackground:Tu.fromHex("#352A05"),inputValidationErrorBorder:Tu.fromHex("#BE1100"),inputValidationErrorBackground:Tu.fromHex("#5A1D1D")},ig=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.history=new xp(r.history,100),i}return tg(t,e),t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)},t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e),e&&(this.value=e,np(this.value))},t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e),e&&(this.value=e,np(this.value))},t.prototype.getCurrentValue=function(){var e=this.history.current();return e||(e=this.history.last(),this.history.next()),e},t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()},t.prototype.getNextValue=function(){return this.history.next()||this.history.last()},t}(function(e){function t(t,n,r){var i=e.call(this)||this;i.state="idle",i.maxHeight=Number.POSITIVE_INFINITY,i._onDidChange=i._register(new Kt),i.onDidChange=i._onDidChange.event,i._onDidHeightChange=i._register(new Kt),i.onDidHeightChange=i._onDidHeightChange.event,i.contextViewProvider=n,i.options=r||Object.create(null),Zr(i.options,rg,!1),i.message=null,i.placeholder=i.options.placeholder||"",i.ariaLabel=i.options.ariaLabel||"",i.inputBackground=i.options.inputBackground,i.inputForeground=i.options.inputForeground,i.inputBorder=i.options.inputBorder,i.inputValidationInfoBorder=i.options.inputValidationInfoBorder,i.inputValidationInfoBackground=i.options.inputValidationInfoBackground,i.inputValidationInfoForeground=i.options.inputValidationInfoForeground,i.inputValidationWarningBorder=i.options.inputValidationWarningBorder,i.inputValidationWarningBackground=i.options.inputValidationWarningBackground,i.inputValidationWarningForeground=i.options.inputValidationWarningForeground,i.inputValidationErrorBorder=i.options.inputValidationErrorBorder,i.inputValidationErrorBackground=i.options.inputValidationErrorBackground,i.inputValidationErrorForeground=i.options.inputValidationErrorForeground,i.options.validationOptions&&(i.validation=i.options.validationOptions.validation),i.element=Lf(t,ng(".monaco-inputbox.idle"));var o=i.options.flexibleHeight?"textarea":"input",s=Lf(i.element,ng(".wrapper"));if(i.input=Lf(s,ng(o+".input")),i.input.setAttribute("autocorrect","off"),i.input.setAttribute("autocapitalize","off"),i.input.setAttribute("spellcheck","false"),i.onfocus(i.input,(function(){return Bh(i.element,"synthetic-focus")})),i.onblur(i.input,(function(){return Hh(i.element,"synthetic-focus")})),i.options.flexibleHeight){i.maxHeight="number"==typeof i.options.flexibleMaxHeight?i.options.flexibleMaxHeight:Number.POSITIVE_INFINITY,i.mirror=Lf(s,ng("div.mirror")),i.mirror.innerHTML=" ",i.scrollableElement=new Xp(i.element,{vertical:1}),i.options.flexibleWidth&&(i.input.setAttribute("wrap","off"),i.mirror.style.whiteSpace="pre",i.mirror.style.wordWrap="initial"),Lf(t,i.scrollableElement.getDomNode()),i._register(i.scrollableElement),i._register(i.scrollableElement.onScroll((function(e){return i.input.scrollTop=e.scrollTop})));var a=Bt.filter(mh(document,"selectionchange"),(function(){var e=document.getSelection();return!!e&&e.anchorNode===s}));i._register(a(i.updateScrollDimensions,i)),i._register(i.onDidHeightChange(i.updateScrollDimensions,i))}else i.input.type=i.options.type||"text",i.input.setAttribute("wrap","off");return i.ariaLabel&&i.input.setAttribute("aria-label",i.ariaLabel),i.placeholder&&i.setPlaceHolder(i.placeholder),i.oninput(i.input,(function(){return i.onValueChange()})),i.onblur(i.input,(function(){return i.onBlur()})),i.onfocus(i.input,(function(){return i.onFocus()})),i.placeholder&&sh&&i.onclick(i.input,(function(e){Cf.stop(e,!0),i.input.focus()})),setTimeout((function(){i.input&&i.updateMirror()}),0),i.options.actions&&(i.actionbar=i._register(new Sp(i.element)),i.actionbar.push(i.options.actions,{icon:!0,label:!1})),i.applyStyles(),i}return tg(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return"number"==typeof this.cachedHeight?this.cachedHeight:mf(this.element)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},Object.defineProperty(t.prototype,"width",{get:function(){return pf(this.input)},set:function(e){if(this.options.flexibleHeight&&this.options.flexibleWidth){var t=0;if(this.mirror)t=(parseFloat(this.mirror.style.paddingLeft||"")||0)+(parseFloat(this.mirror.style.paddingRight||"")||0);this.input.style.width=e-t+"px"}else this.input.style.width=e+"px";this.mirror&&(this.mirror.style.width=e+"px")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{set:function(e){this.options.flexibleHeight&&this.options.flexibleWidth?this.input.style.width="calc(100% - "+e+"px)":this.input.style.paddingRight=e+"px",this.mirror&&(this.mirror.style.paddingRight=e+"px")},enumerable:!0,configurable:!0}),t.prototype.updateScrollDimensions=function(){if("number"==typeof this.cachedContentHeight&&"number"==typeof this.cachedHeight){var e=this.cachedContentHeight,t=this.cachedHeight,n=this.input.scrollTop;this.scrollableElement.setScrollDimensions({scrollHeight:e,height:t}),this.scrollableElement.setScrollPosition({scrollTop:n})}},t.prototype.showMessage=function(e,t){this.message=e,Hh(this.element,"idle"),Hh(this.element,"info"),Hh(this.element,"warning"),Hh(this.element,"error"),Bh(this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null,tp(3===e.type?Me("alertErrorMessage","Error: {0}",e.content):2===e.type?Me("alertWarningMessage","Warning: {0}",e.content):Me("alertInfoMessage","Info: {0}",e.content)),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,Hh(this.element,"info"),Hh(this.element,"warning"),Hh(this.element,"error"),Bh(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}},t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=pf(e.element)+"px"};this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(r){if(!e.message)return null;t=Lf(r,ng(".monaco-inputbox-container")),n();var i={inline:!0,className:"monaco-inputbox-message"},o=e.message.formatContent?pp(e.message.content,i):function(e,t){void 0===t&&(t={});var n=gp(t);return n.textContent=e,n}(e.message.content,i);Bh(o,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return o.style.backgroundColor=s.background?s.background.toString():null,o.style.color=s.foreground?s.foreground.toString():null,o.style.border=s.border?"1px solid "+s.border:null,Lf(t,o),null},onHide:function(){e.state="closed"},layout:n}),this.state="open"}},t.prototype._hideMessage=function(){this.contextViewProvider&&("open"===this.state&&this.contextViewProvider.hideContextView(),this.state="idle")},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=10===e.charCodeAt(e.length-1)?" ":"";e+t?this.mirror.textContent=e+t:this.mirror.innerHTML=" ",this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedContentHeight;this.cachedContentHeight=mf(this.mirror),e!==this.cachedContentHeight&&(this.cachedHeight=Math.min(this.cachedContentHeight,this.maxHeight),this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedContentHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=void 0,this.message=null,this.validation=void 0,this.state=null,this.actionbar=void 0,e.prototype.dispose.call(this)},t}(Ff)),og=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sg=Me("defaultLabel","input"),ag=function(e){function t(t,n,r,i){var o=e.call(this)||this;o._showOptionButtons=r,o.fixFocusOnOptionClickEnabled=!0,o._onDidOptionChange=o._register(new Kt),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new Kt),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new Kt),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new Kt),o._onKeyUp=o._register(new Kt),o._onCaseSensitiveKeyDown=o._register(new Kt),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._onRegexKeyDown=o._register(new Kt),o.onRegexKeyDown=o._onRegexKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||sg,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputActiveOptionBackground=i.inputActiveOptionBackground,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var s=i.appendCaseSensitiveLabel||"",a=i.appendWholeWordsLabel||"",u=i.appendRegexLabel||"",l=i.history||[],c=!!i.flexibleHeight,d=!!i.flexibleWidth,h=i.flexibleMaxHeight;o.domNode=document.createElement("div"),Bh(o.domNode,"monaco-findInput"),o.inputBox=o._register(new ig(o.domNode,o.contextViewProvider,{placeholder:o.placeholder||"",ariaLabel:o.label||"",validationOptions:{validation:o.validation},inputBackground:o.inputBackground,inputForeground:o.inputForeground,inputBorder:o.inputBorder,inputValidationInfoBackground:o.inputValidationInfoBackground,inputValidationInfoForeground:o.inputValidationInfoForeground,inputValidationInfoBorder:o.inputValidationInfoBorder,inputValidationWarningBackground:o.inputValidationWarningBackground,inputValidationWarningForeground:o.inputValidationWarningForeground,inputValidationWarningBorder:o.inputValidationWarningBorder,inputValidationErrorBackground:o.inputValidationErrorBackground,inputValidationErrorForeground:o.inputValidationErrorForeground,inputValidationErrorBorder:o.inputValidationErrorBorder,history:l,flexibleHeight:c,flexibleWidth:d,flexibleMaxHeight:h})),o.regex=o._register(new Kf({appendTitle:u,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.regex.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.regex.onKeyDown((function(e){o._onRegexKeyDown.fire(e)}))),o.wholeWords=o._register(new qf({appendTitle:a,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.wholeWords.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o.caseSensitive=o._register(new Uf({appendTitle:s,isChecked:!1,inputActiveOptionBorder:o.inputActiveOptionBorder,inputActiveOptionBackground:o.inputActiveOptionBackground})),o._register(o.caseSensitive.onChange((function(e){o._onDidOptionChange.fire(e),!e&&o.fixFocusOnOptionClickEnabled&&o.inputBox.focus(),o.validate()}))),o._register(o.caseSensitive.onKeyDown((function(e){o._onCaseSensitiveKeyDown.fire(e)}))),o._showOptionButtons&&(o.inputBox.paddingRight=o.caseSensitive.width()+o.wholeWords.width()+o.regex.width());var f=[o.caseSensitive.domNode,o.wholeWords.domNode,o.regex.domNode];o.onkeydown(o.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=f.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%f.length:e.equals(15)&&(n=0===t?f.length-1:t-1),e.equals(9)?f[t].blur():n>=0&&f[n].focus(),Cf.stop(e,!0)}}}));var p=document.createElement("div");return p.className="controls",p.style.display=o._showOptionButtons?"block":"none",p.appendChild(o.caseSensitive.domNode),p.appendChild(o.wholeWords.domNode),p.appendChild(o.regex.domNode),o.domNode.appendChild(p),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return og(t,e),t.prototype.enable=function(){Hh(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){Bh(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputActiveOptionBackground=e.inputActiveOptionBackground,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){Hh(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,Bh(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},t.prototype.clearMessage=function(){this.inputBox&&this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(Ff),ug=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lg=Me("defaultLabel","input"),cg=Me("label.preserveCaseCheckbox","Preserve Case"),dg=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:cg+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return ug(t,e),t}(Bf),hg=function(e){function t(t,n,r,i){var o=e.call(this)||this;o._showOptionButtons=r,o.fixFocusOnOptionClickEnabled=!0,o.cachedOptionsWidth=0,o._onDidOptionChange=o._register(new Kt),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new Kt),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new Kt),o._onInput=o._register(new Kt),o._onKeyUp=o._register(new Kt),o._onPreserveCaseKeyDown=o._register(new Kt),o.onPreserveCaseKeyDown=o._onPreserveCaseKeyDown.event,o.contextViewProvider=n,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||lg,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationInfoForeground=i.inputValidationInfoForeground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationWarningForeground=i.inputValidationWarningForeground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.inputValidationErrorForeground=i.inputValidationErrorForeground;var s=!!i.flexibleHeight,a=!!i.flexibleWidth,u=i.flexibleMaxHeight;return o.buildDomNode(i.history||[],s,a,u),t&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,(function(e){return o._onKeyDown.fire(e)})),o.onkeyup(o.inputBox.inputElement,(function(e){return o._onKeyUp.fire(e)})),o.oninput(o.inputBox.inputElement,(function(e){return o._onInput.fire()})),o.onmousedown(o.inputBox.inputElement,(function(e){return o._onMouseDown.fire(e)})),o}return ug(t,e),t.prototype.enable=function(){Hh(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},t.prototype.disable=function(){Bh(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoForeground=e.inputValidationInfoForeground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningForeground=e.inputValidationWarningForeground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorForeground=e.inputValidationErrorForeground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.preserveCase.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getPreserveCase=function(){return this.preserveCase.checked},t.prototype.setPreserveCase=function(e){this.preserveCase.checked=e},t.prototype.focusOnPreserve=function(){this.preserveCase.focus()},t.prototype.buildDomNode=function(e,t,n,r){var i=this;this.domNode=document.createElement("div"),Bh(this.domNode,"monaco-findInput"),this.inputBox=this._register(new ig(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:e,flexibleHeight:t,flexibleWidth:n,flexibleMaxHeight:r})),this.preserveCase=this._register(new dg({appendTitle:"",isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder})),this._register(this.preserveCase.onChange((function(e){i._onDidOptionChange.fire(e),!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus(),i.validate()}))),this._register(this.preserveCase.onKeyDown((function(e){i._onPreserveCaseKeyDown.fire(e)}))),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;var o=[this.preserveCase.domNode];this.onkeydown(this.domNode,(function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=o.indexOf(document.activeElement);if(t>=0){var n=-1;e.equals(17)?n=(t+1)%o.length:e.equals(15)&&(n=0===t?o.length-1:t-1),e.equals(9)?o[t].blur():n>=0&&o[n].focus(),Cf.stop(e,!0)}}}));var s=document.createElement("div");s.className="controls",s.style.display=this._showOptionButtons?"block":"none",s.appendChild(this.preserveCase.domNode),this.domNode.appendChild(s)},t.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(t.prototype,"width",{set:function(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=e,this.domNode.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(Ff),fg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pg=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},gg=function(e,t){return function(n,r){t(n,r,e)}},mg="historyNavigationWidget",_g="historyNavigationEnabled";function yg(e,t){return e.getContext(document.activeElement).getValue(t)}function vg(e,t){var n=function(e,t){return e.createScoped(t.target)}(e,t);return function(e,t,n){new zn(n,t).bindTo(e)}(n,t,mg),{scopedContextKeyService:n,historyNavigationEnablement:new zn(_g,!0).bindTo(n)}}var bg=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,r)||this;return s._register(vg(i,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return fg(t,e),t=pg([gg(3,Un)],t)}(ag),wg=function(e){function t(t,n,r,i,o){void 0===o&&(o=!1);var s=e.call(this,t,n,o,r)||this;return s._register(vg(i,{target:s.inputBox.element,historyNavigator:s.inputBox}).scopedContextKeyService),s}return fg(t,e),t=pg([gg(3,Un)],t)}(hg);Lr.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:In.and(In.has(mg),In.equals(_g,!0)),primary:16,secondary:[528],handler:function(e,t){var n=yg(e.get(Un),mg);n&&n.historyNavigator.showPreviousValue()}}),Lr.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:In.and(In.has(mg),In.equals(_g,!0)),primary:18,secondary:[530],handler:function(e,t){var n=yg(e.get(Un),mg);n&&n.historyNavigator.showNextValue()}});var Cg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sg=Me("label.find","Find"),xg=Me("placeholder.find","Find"),Lg=Me("label.previousMatchButton","Previous match"),kg=Me("label.nextMatchButton","Next match"),Mg=Me("label.toggleSelectionFind","Find in selection"),Dg=Me("label.closeButton","Close"),Eg=Me("label.replace","Replace"),Tg=Me("placeholder.replace","Replace"),Ng=Me("label.replaceButton","Replace"),Og=Me("label.replaceAllButton","Replace All"),Ag=Me("label.toggleReplaceButton","Toggle Replace mode"),Ig=Me("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),Pg=Me("label.matchesLocation","{0} of {1}"),Rg=Me("label.noResults","No Results"),Fg=69,Yg=17+(Fg+3+1)+92+2,jg=33,Bg="ctrlEnterReplaceAll.windows.donotask",Wg=et.d?256:2048,Hg=function(e){this.afterLineNumber=e,this.heightInPx=jg,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"};function Vg(e,t,n){var r=!!t.match(/\n/);n&&r&&n.selectionStart>0&&e.stopPropagation()}function zg(e,t,n){var r=!!t.match(/\n/);n&&r&&n.selectionEnd=0?Bh(this._domNode,"multipleline"):Hh(this._domNode,"multipleline");try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._replaceInput.width=pf(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;zh(this._domNode,"no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory()},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Fg+"px",this._state.matchesCount>=19999?this._matchesCount.title=Ig:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=on(Pg,n,t)}else e=Rg;this._matchesCount.appendChild(document.createTextNode(e)),tp(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString),!0),Fg=Math.max(Fg,this._matchesCount.clientWidth)},t.prototype._getAriaLabel=function(e,t,n){return e===Rg?""===n?Me("ariaSearchNoResultEmpty","{0} found",e):Me("ariaSearchNoResult","{0} found for {1}",e,n):t?Me("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",e,n,t.startLineNumber+":"+t.startColumn):Me("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",e,n)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn),n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t),this._nextBtn.setEnabled(this._isVisible&&e&&t),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),zh(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n)},t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout((function(){Bh(e._domNode,"visible"),e._domNode.setAttribute("aria-hidden","false")}),0),setTimeout((function(){e._findInput.validate()}),200),this._codeEditor.layoutOverlayWidget(this);var n=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var r=this._codeEditor.getDomNode();if(r){var i=hf(r),o=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition()),s=i.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&at.startLineNumber&&(n=!1);var u=df(this._domNode).left;s>u&&(n=!1);var l=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());i.left+(l?l.left:0)>u&&(n=!1)}}}this._showViewZone(n)}},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),Hh(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},t.prototype._layoutViewZone=function(){var e=this;if(this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop){if(this._isVisible){var t=this._viewZone;void 0===this._viewZoneId&&t&&this._codeEditor.changeViewZones((function(n){t.heightInPx=e._getHeight(),e._viewZoneId=n.addZone(t),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+t.heightInPx)}))}}else this._removeViewZone()},t.prototype._showViewZone=function(e){var t=this;if((void 0===e&&(e=!0),this._isVisible)&&this._codeEditor.getConfiguration().contribInfo.find.addExtraSpaceOnTop){void 0===this._viewZone&&(this._viewZone=new Hg(0));var n=this._viewZone;this._codeEditor.changeViewZones((function(r){if(void 0!==t._viewZoneId){var i=t._getHeight();if(i===n.heightInPx)return;var o=i-n.heightInPx;return n.heightInPx=i,r.layoutZone(t._viewZoneId),void(e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o))}o=t._getHeight();n.heightInPx=o,t._viewZoneId=r.addZone(n),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+o)}))}},t.prototype._removeViewZone=function(){var e=this;this._codeEditor.changeViewZones((function(t){void 0!==e._viewZoneId&&(t.removeZone(e._viewZoneId),e._viewZoneId=void 0,e._viewZone&&(e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()-e._viewZone.heightInPx),e._viewZone=void 0))}))},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(uc),inputActiveOptionBackground:e.getColor(lc),inputBackground:e.getColor(oc),inputForeground:e.getColor(sc),inputBorder:e.getColor(ac),inputValidationInfoBackground:e.getColor(cc),inputValidationInfoForeground:e.getColor(dc),inputValidationInfoBorder:e.getColor(hc),inputValidationWarningBackground:e.getColor(fc),inputValidationWarningForeground:e.getColor(pc),inputValidationWarningBorder:e.getColor(gc),inputValidationErrorBackground:e.getColor(mc),inputValidationErrorForeground:e.getColor(_c),inputValidationErrorBorder:e.getColor(yc)};this._findInput.style(t),this._replaceInput.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible)if(this._codeEditor.getConfiguration().layoutInfo.contentWidth<=0)Bh(this._domNode,"hiddenEditor");else{jh(this._domNode,"hiddenEditor")&&Hh(this._domNode,"hiddenEditor");var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,r=!1,i=!1;if(this._resized)if(pf(this._domNode)>419)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInput.width=pf(this._findInput.domNode));if(447+t>=e&&(r=!0),447+t-Fg>=e&&(i=!0),447+t-Fg>=e+50&&(n=!0),zh(this._domNode,"collapsed-find-widget",n),zh(this._domNode,"narrow-find-widget",i),zh(this._domNode,"reduced-find-widget",r),i||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){this._findInput.inputBox.layout();var o=this._findInput.inputBox.width;o>0&&(this._replaceInput.width=o)}}},t.prototype._getHeight=function(){var e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4},t.prototype._tryUpdateHeight=function(){var e=this._getHeight();return(null===this._cachedHeight||this._cachedHeight!==e)&&(this._cachedHeight=e,this._domNode.style.height=e+"px",!0)},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._updateSearchScope=function(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(Rr.equalsRange(e,t)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){if(e.equals(3|Wg)){var t=this._findInput.inputBox.inputElement,n=t.selectionStart,r=t.selectionEnd,i=t.value;if(null!==n&&null!==r){var o=i.substr(0,n)+"\n"+i.substr(r);return this._findInput.inputBox.value=o,t.setSelectionRange(n+1,n+1),this._findInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Vg(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):e.equals(18)?zg(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea")):void 0},t.prototype._onReplaceInputKeyDown=function(e){if(e.equals(3|Wg)){et.g&&et.e&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(Me("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Bg,!0,0));var t=this._replaceInput.inputBox.inputElement,n=t.selectionStart,r=t.selectionEnd,i=t.value;if(null!==n&&null!==r){var o=i.substr(0,n)+"\n"+i.substr(r);return this._replaceInput.inputBox.value=o,t.setSelectionRange(n+1,n+1),this._replaceInput.inputBox.layout(),void e.preventDefault()}}return e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):e.equals(16)?Vg(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):e.equals(18)?zg(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea")):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildDomNode=function(){var e=this;this._findInput=this._register(new bg(null,this._contextViewProvider,{width:221,label:Sg,placeholder:xg,appendCaseSensitiveLabel:this._keybindingLabelFor(th.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(th.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(th.ToggleRegexCommand),validation:function(t){if(0===t.length||!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(e){return{content:e.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown((function(t){return e._onFindInputKeyDown(t)}))),this._register(this._findInput.inputBox.onDidChange((function(){e._ignoreChangeEvent||e._state.change({searchString:e._findInput.getValue()},!0)}))),this._register(this._findInput.onDidOptionChange((function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}))),this._register(this._findInput.onCaseSensitiveKeyDown((function(t){t.equals(1026)&&e._isReplaceVisible&&(e._replaceInput.focus(),t.preventDefault())}))),this._register(this._findInput.onRegexKeyDown((function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceInput.focusOnPreserve(),t.preventDefault())}))),this._register(this._findInput.inputBox.onDidHeightChange((function(t){e._tryUpdateHeight()&&e._showViewZone()}))),et.c&&this._register(this._findInput.onMouseDown((function(t){return e._onFindInputMouseDown(t)}))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Kg({label:Lg+this._keybindingLabelFor(th.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(th.PreviousMatchFindAction).run().then(void 0,Ue)}})),this._nextBtn=this._register(new Kg({label:kg+this._keybindingLabelFor(th.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(th.NextMatchFindAction).run().then(void 0,Ue)}}));var t=document.createElement("div");t.className="find-part",t.appendChild(this._findInput.domNode);var n=document.createElement("div");n.className="find-actions",t.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new qg({parent:n,title:Mg+this._keybindingLabelFor(th.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){if(e._codeEditor.hasModel()){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()||e._state.change({searchScope:t},!0)}}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new Kg({label:Dg+this._keybindingLabelFor(th.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),n.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new wg(null,void 0,{label:Eg,placeholder:Tg,history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown((function(t){return e._onReplaceInputKeyDown(t)}))),this._register(this._replaceInput.inputBox.onDidChange((function(){e._state.change({replaceString:e._replaceInput.inputBox.value},!1)}))),this._register(this._replaceInput.inputBox.onDidHeightChange((function(t){e._isReplaceVisible&&e._tryUpdateHeight()&&e._showViewZone()}))),this._register(this._replaceInput.onDidOptionChange((function(){e._state.change({preserveCase:e._replaceInput.getPreserveCase()},!0)}))),this._register(this._replaceInput.onPreserveCaseKeyDown((function(t){t.equals(2)&&(e._prevBtn.isEnabled()?e._prevBtn.focus():e._nextBtn.isEnabled()?e._nextBtn.focus():e._toggleSelectionFind.isEnabled()?e._toggleSelectionFind.focus():e._closeBtn.isEnabled()&&e._closeBtn.focus(),t.preventDefault())}))),this._replaceBtn=this._register(new Kg({label:Ng+this._keybindingLabelFor(th.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new Kg({label:Og+this._keybindingLabelFor(th.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var r=document.createElement("div");r.className="replace-part",r.appendChild(this._replaceInput.domNode);var i=document.createElement("div");i.className="replace-actions",r.appendChild(i),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Kg({label:Ag,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInput.width=pf(e._findInput.domNode),e._replaceInput.inputBox.layout()),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="419px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(r),this._resizeSash=new fp(this._domNode,this,{orientation:0}),this._resized=!1;var o=419;this._register(this._resizeSash.onDidStart((function(){o=pf(e._domNode)}))),this._register(this._resizeSash.onDidChange((function(t){e._resized=!0;var n=o+t.startX-t.currentX;if(!(n<419)){var r=n-Yg;n>(parseFloat(lf(e._domNode).maxWidth)||0)||(e._domNode.style.width=n+"px",e._findInput.inputBox.width=r,e._isReplaceVisible&&(e._replaceInput.width=pf(e._findInput.domNode)),e._findInput.inputBox.layout(),e._tryUpdateHeight())}}))),this._register(this._resizeSash.onDidReset((function(){var t=pf(e._domNode);if(!(t<419)){var n=419;e._resized&&419!==t||(n=e._codeEditor.getConfiguration().layoutInfo.width-28-e._codeEditor.getConfiguration().layoutInfo.minimapWidth-15,e._resized=!0);var r=n-Yg;e._domNode.style.width=n+"px",e._findInput.inputBox.width=r,e._isReplaceVisible&&(e._replaceInput.width=pf(e._findInput.domNode)),e._findInput.inputBox.layout()}})))},t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e)},t.ID="editor.contrib.findWidget",t}(Ff),qg=function(e){function t(n){var r=e.call(this)||this;return r._opts=n,r._domNode=document.createElement("div"),r._domNode.className="monaco-checkbox",r._domNode.title=r._opts.title,r._domNode.tabIndex=0,r._checkbox=document.createElement("input"),r._checkbox.type="checkbox",r._checkbox.className="checkbox",r._checkbox.id="checkbox-"+t._COUNTER++,r._checkbox.tabIndex=-1,r._label=document.createElement("label"),r._label.className="label",r._label.htmlFor=r._checkbox.id,r._label.tabIndex=-1,r._domNode.appendChild(r._checkbox),r._domNode.appendChild(r._label),r._opts.parent.appendChild(r._domNode),r.onchange(r._checkbox,(function(){r._opts.onChange()})),r}return Cg(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._domNode.focus()},t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")},t.prototype.disable=function(){this._checkbox.disabled=!0},t.prototype.setEnabled=function(e){e?(this.enable(),this.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(Ff),Kg=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,(function(e){n._opts.onTrigger(),e.preventDefault()})),n.onkeydown(n._domNode,(function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)})),n}return Cg(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0},t.prototype.focus=function(){this._domNode.focus()},t.prototype.setEnabled=function(e){zh(this._domNode,"disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1},t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))},t.prototype.toggleClass=function(e,t){zh(this._domNode,e,t)},t}(Ff);jd((function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(dd)),n(".currentFindMatch",e.getColor(cd)),n(".findScope",e.getColor(hd)),n(".find-widget",e.getColor(nd));var r=e.getColor(ic);r&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+r+"; }");var i=e.getColor(pd);i&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+i+"; box-sizing: border-box; }");var o=e.getColor(fd);o&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+o+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(gd);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var a=e.getColor(nc);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var u=e.getColor(rd);u&&t.addRule(".monaco-editor .find-widget { color: "+u+"; }");var l=e.getColor(ec);l&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+l+"; }");var c=e.getColor(od);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(id);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(uc);h&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+h.toString()+"; }");var f=e.getColor(lc);f&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { background-color: "+f.toString()+"; }");var p=e.getColor(tc);p&&t.addRule(".monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+p+"; }")}));var Gg,$g=bt("clipboardService"),Zg=bt("contextViewService"),Xg=bt("contextMenuService"),Jg=bt("keybindingService"),Qg=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),em=bt("storageService");!function(e){e[e.NONE=0]="NONE",e[e.SHUTDOWN=1]="SHUTDOWN"}(Gg||(Gg={}));var tm,nm,rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._serviceBrand=null,t._onDidChangeStorage=t._register(new Kt),t.onDidChangeStorage=t._onDidChangeStorage.event,t.onWillSaveState=Bt.None,t.globalCache=new Map,t.workspaceCache=new Map,t}return Qg(t,e),t.prototype.getCache=function(e){return 0===e?this.globalCache:this.workspaceCache},t.prototype.get=function(e,t,n){var r=this.getCache(t).get(e);return Ie(r)?n:r},t.prototype.getBoolean=function(e,t,n){var r=this.getCache(t).get(e);return Ie(r)?n:"true"===r},t.prototype.store=function(e,t,n){if(Ie(t))return this.remove(e,n);var r=String(t);return this.getCache(n).get(e)===r?Promise.resolve():(this.getCache(n).set(e,r),this._onDidChangeStorage.fire({scope:n,key:e}),Promise.resolve())},t.prototype.remove=function(e,t){return this.getCache(t).delete(e)?(this._onDidChangeStorage.fire({scope:t,key:e}),Promise.resolve()):Promise.resolve()},t}(Pt);(nm=tm||(tm={}))[nm.Ignore=0]="Ignore",nm[nm.Info=1]="Info",nm[nm.Warning=2]="Warning",nm[nm.Error=3]="Error",function(e){var t="error",n="warning",r="warn",i="info",o=Object.create(null);o[e.Error]=Me("sev.error","Error"),o[e.Warning]=Me("sev.warning","Warning"),o[e.Info]=Me("sev.info","Info"),e.fromValue=function(o){return o?vn(t,o)?e.Error:vn(n,o)||vn(r,o)?e.Warning:vn(i,o)?e.Info:e.Ignore:e.Ignore}}(tm||(tm={}));var im=tm,om=bt("notificationService"),sm=function(){},am=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),um=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},lm=function(e,t){return function(n,r){t(n,r,e)}},cm=524288;function dm(e){if(!e.hasModel())return null;var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1))),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=an(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.hasModel()){var t,n={isRevealed:!0};if(e.seedSearchStringFromSelection)(t=dm(this._editor))&&(this._state.isRegex?n.searchString=an(t):n.searchString=t);if(!n.searchString&&e.seedSearchStringFromGlobalClipboard)(t=this.getGlobalBufferTerm())&&(n.searchString=t);if(e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){var r=this._editor.getSelection();r.isEmpty()||(n.searchScope=r)}this._state.change(n,!1),this._model||(this._model=new nh(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=um([lm(1,Un),lm(2,em),lm(3,$g)],t)}(Pt),pm=function(e){function t(t,n,r,i,o,s,a,u){var l=e.call(this,t,r,a,u)||this;return l._contextViewService=n,l._keybindingService=i,l._themeService=o,l._notificationService=s,l._widget=null,l._findOptionsWidget=null,l}return am(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new Ug(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new $f(this._editor,this._state,this._keybindingService,this._themeService))},t=um([lm(1,Zg),lm(2,Un),lm(3,Jg),lm(4,Od),lm(5,om),lm(6,em),lm(7,wt($g))],t)}(fm),gm=function(e){function t(){return e.call(this,{id:th.StartFindAction,label:Me("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:14,group:"3_find",title:Me({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return am(t,e),t.prototype.run=function(e,t){var n=fm.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},t}(Or),mm=function(e){function t(){return e.call(this,{id:th.StartFindWithSelection,label:Me("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}return am(t,e),t.prototype.run=function(e,t){var n=fm.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1}),n.setGlobalBufferTerm(n.getState().searchString))},t}(Or),_m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.run=function(e,t){var n=fm.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))},t}(Or),ym=function(e){function t(){return e.call(this,{id:th.NextMatchFindAction,label:Me("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:Ml.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(_m),vm=function(e){function t(){return e.call(this,{id:th.NextMatchFindAction,label:Me("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:In.and(Ml.focus,$d),primary:3,weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(_m),bm=function(e){function t(){return e.call(this,{id:th.PreviousMatchFindAction,label:Me("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:Ml.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(_m),wm=function(e){function t(){return e.call(this,{id:th.PreviousMatchFindAction,label:Me("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:In.and(Ml.focus,$d),primary:1027,weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(_m),Cm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return am(t,e),t.prototype.run=function(e,t){var n=fm.get(t);if(n){var r=dm(t);r&&n.setSearchString(r),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(n))}},t}(Or),Sm=function(e){function t(){return e.call(this,{id:th.NextSelectionMatchFindAction,label:Me("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:Ml.focus,primary:2109,weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(Cm),xm=function(e){function t(){return e.call(this,{id:th.PreviousSelectionMatchFindAction,label:Me("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:Ml.focus,primary:3133,weight:100}})||this}return am(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(Cm),Lm=function(e){function t(){return e.call(this,{id:th.StartFindReplaceAction,label:Me("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:14,group:"3_find",title:Me({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return am(t,e),t.prototype.run=function(e,t){if(t.hasModel()&&!t.getConfiguration().readOnly){var n=fm.get(t),r=t.getSelection(),i=n.isFindInputFocused(),o=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!i,s=i||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:s,shouldAnimate:!0,updateSearchScope:!1})}},t}(Or);hm=pm,Pr.INSTANCE.registerEditorContribution(hm),Ir(gm),Ir(mm),Ir(ym),Ir(vm),Ir(bm),Ir(wm),Ir(Sm),Ir(xm),Ir(Lm);var km=Nr.bindToContribution(fm.get);Ar(new km({id:th.CloseFindWidgetCommand,precondition:Gd,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:9,secondary:[1033]}})),Ar(new km({id:th.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:Xd.primary,mac:Xd.mac,win:Xd.win,linux:Xd.linux}})),Ar(new km({id:th.ToggleWholeWordCommand,precondition:void 0,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:Jd.primary,mac:Jd.mac,win:Jd.win,linux:Jd.linux}})),Ar(new km({id:th.ToggleRegexCommand,precondition:void 0,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:Qd.primary,mac:Qd.mac,win:Qd.win,linux:Qd.linux}})),Ar(new km({id:th.ToggleSearchScopeCommand,precondition:void 0,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:eh.primary,mac:eh.mac,win:eh.win,linux:eh.linux}})),Ar(new km({id:th.ReplaceOneAction,precondition:Gd,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:3094}})),Ar(new km({id:th.ReplaceOneAction,precondition:Gd,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:In.and(Ml.focus,Zd),primary:3}})),Ar(new km({id:th.ReplaceAllAction,precondition:Gd,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:2563}})),Ar(new km({id:th.ReplaceAllAction,precondition:Gd,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:In.and(Ml.focus,Zd),primary:void 0,mac:{primary:2051}}})),Ar(new km({id:th.SelectAllMatchesAction,precondition:Gd,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:Ml.focus,primary:515}}));var Mm,Dm,Em,Tm,Nm,Om,Am,Im,Pm,Rm,Fm,Ym,jm,Bm,Wm,Hm,Vm,zm,Um,qm,Km,Gm,$m,Zm,Xm,Jm,Qm,e_,t_,n_,r_;n(326);!function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"}(Mm||(Mm={})),(Em=Dm||(Dm={}))[Em.Hint=1]="Hint",Em[Em.Info=2]="Info",Em[Em.Warning=4]="Warning",Em[Em.Error=8]="Error",function(e){e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.KEY_0=21]="KEY_0",e[e.KEY_1=22]="KEY_1",e[e.KEY_2=23]="KEY_2",e[e.KEY_3=24]="KEY_3",e[e.KEY_4=25]="KEY_4",e[e.KEY_5=26]="KEY_5",e[e.KEY_6=27]="KEY_6",e[e.KEY_7=28]="KEY_7",e[e.KEY_8=29]="KEY_8",e[e.KEY_9=30]="KEY_9",e[e.KEY_A=31]="KEY_A",e[e.KEY_B=32]="KEY_B",e[e.KEY_C=33]="KEY_C",e[e.KEY_D=34]="KEY_D",e[e.KEY_E=35]="KEY_E",e[e.KEY_F=36]="KEY_F",e[e.KEY_G=37]="KEY_G",e[e.KEY_H=38]="KEY_H",e[e.KEY_I=39]="KEY_I",e[e.KEY_J=40]="KEY_J",e[e.KEY_K=41]="KEY_K",e[e.KEY_L=42]="KEY_L",e[e.KEY_M=43]="KEY_M",e[e.KEY_N=44]="KEY_N",e[e.KEY_O=45]="KEY_O",e[e.KEY_P=46]="KEY_P",e[e.KEY_Q=47]="KEY_Q",e[e.KEY_R=48]="KEY_R",e[e.KEY_S=49]="KEY_S",e[e.KEY_T=50]="KEY_T",e[e.KEY_U=51]="KEY_U",e[e.KEY_V=52]="KEY_V",e[e.KEY_W=53]="KEY_W",e[e.KEY_X=54]="KEY_X",e[e.KEY_Y=55]="KEY_Y",e[e.KEY_Z=56]="KEY_Z",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.NumLock=78]="NumLock",e[e.ScrollLock=79]="ScrollLock",e[e.US_SEMICOLON=80]="US_SEMICOLON",e[e.US_EQUAL=81]="US_EQUAL",e[e.US_COMMA=82]="US_COMMA",e[e.US_MINUS=83]="US_MINUS",e[e.US_DOT=84]="US_DOT",e[e.US_SLASH=85]="US_SLASH",e[e.US_BACKTICK=86]="US_BACKTICK",e[e.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",e[e.US_BACKSLASH=88]="US_BACKSLASH",e[e.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",e[e.US_QUOTE=90]="US_QUOTE",e[e.OEM_8=91]="OEM_8",e[e.OEM_102=92]="OEM_102",e[e.NUMPAD_0=93]="NUMPAD_0",e[e.NUMPAD_1=94]="NUMPAD_1",e[e.NUMPAD_2=95]="NUMPAD_2",e[e.NUMPAD_3=96]="NUMPAD_3",e[e.NUMPAD_4=97]="NUMPAD_4",e[e.NUMPAD_5=98]="NUMPAD_5",e[e.NUMPAD_6=99]="NUMPAD_6",e[e.NUMPAD_7=100]="NUMPAD_7",e[e.NUMPAD_8=101]="NUMPAD_8",e[e.NUMPAD_9=102]="NUMPAD_9",e[e.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",e[e.NUMPAD_ADD=104]="NUMPAD_ADD",e[e.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",e[e.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",e[e.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",e[e.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",e[e.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",e[e.ABNT_C1=110]="ABNT_C1",e[e.ABNT_C2=111]="ABNT_C2",e[e.MAX_VALUE=112]="MAX_VALUE"}(Tm||(Tm={})),function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Nm||(Nm={})),function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Om||(Om={})),function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(Am||(Am={})),function(e){e[e.Inline=1]="Inline"}(Im||(Im={})),function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Pm||(Pm={})),function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(Rm||(Rm={})),function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"}(Fm||(Fm={})),function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"}(Ym||(Ym={})),function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"}(jm||(jm={})),function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"}(Bm||(Bm={})),function(e){e[e.None=0]="None",e[e.Small=1]="Small",e[e.Large=2]="Large",e[e.SmallBlocks=3]="SmallBlocks",e[e.LargeBlocks=4]="LargeBlocks"}(Wm||(Wm={})),function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(Hm||(Hm={})),function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"}(Vm||(Vm={})),function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"}(zm||(zm={})),function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"}(Um||(Um={})),function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(qm||(qm={})),function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"}(Km||(Km={})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"}(Gm||(Gm={})),function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}($m||($m={})),function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.Snippet=25]="Snippet"}(Zm||(Zm={})),function(e){e[e.Deprecated=1]="Deprecated"}(Xm||(Xm={})),function(e){e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"}(Jm||(Jm={})),function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(Qm||(Qm={})),function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"}(e_||(e_={})),function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t_||(t_={})),function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"}(n_||(n_={})),function(e){e[e.Deprecated=1]="Deprecated"}(r_||(r_={}));var i_=function(){function e(){}return e.chord=function(e,t){return function(e,t){return(e|(65535&t)<<16>>>0)>>>0}(e,t)},e.CtrlCmd=2048,e.Shift=1024,e.Alt=512,e.WinCtrl=256,e}();function o_(){return{editor:void 0,languages:void 0,CancellationTokenSource:xs,Emitter:Kt,KeyCode:Tm,KeyMod:i_,Position:St,Range:Rr,Selection:Yr,SelectionDirection:Nm,MarkerSeverity:Dm,MarkerTag:Mm,Uri:ct,Token:Ra}}var s_;n(329);function a_(e){var t=JSON.parse(e);return t=function e(t,n){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return ct.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var r in t)Object.hasOwnProperty.call(t,r)&&(t[r]=e(t[r],n+1))}return t}(t,0)}function u_(e){var t,n,r=e.path;return t=e.authority&&r.length>1&&e.scheme===kh.file?"//"+e.authority+r:et.g&&47===r.charCodeAt(0)&&((n=r.charCodeAt(1))>=65&&n<=90||n>=97&&n<=122)&&58===r.charCodeAt(2)?r.substr(1):r,et.g&&(t=t.replace(/\//g,"\\")),t}!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){var n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach((function(e){var t=e.split(":"),r=t[0],i=t[1];r&&i&&n.set(r,i)}));var r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(s_||(s_={}));var l_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c_=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d_=function(e,t){return function(n,r){t(n,r,e)}},h_=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},f_=function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r),this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(e){void 0===e&&(e=0),this._move(!0,e)},t.prototype.previous=function(e){void 0===e&&(e=0),this._move(!1,e)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},t}(Pt),y_=new(function(){function e(){this._zoomLevel=0,this._onDidChangeZoomLevel=new Kt,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return e.prototype.getZoomLevel=function(){return this._zoomLevel},e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20),this._zoomLevel!==e&&(this._zoomLevel=e,this._onDidChangeZoomLevel.fire(this._zoomLevel))},e}()),v_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b_=et.d?1.5:1.35;function w_(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);return isNaN(n)?t:n}function C_(e,t,n){return en?n:e}function S_(e,t){return"string"!=typeof e?t:e}var x_=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n,r){void 0===r&&(r=!1);var i=S_(t.fontFamily,vi.fontFamily),o=S_(t.fontWeight,vi.fontWeight),s=w_(t.fontSize,vi.fontSize);0===(s=C_(s,0,100))?s=vi.fontSize:s<8&&(s=8);var a=function(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);return isNaN(n)?t:n}(t.lineHeight,0);0===(a=C_(a,0,150))?a=Math.round(b_*s):a<8&&(a=8);var u=w_(t.letterSpacing,0);u=C_(u,-5,20);var l=1+(r?0:.1*y_.getZoomLevel());return new e({zoomLevel:n,fontFamily:i,fontWeight:o,fontSize:s*=l,lineHeight:a*=l,letterSpacing:u})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e.prototype.getMassagedFontFamily=function(){return/[,"']/.test(this.fontFamily)?this.fontFamily:/[+ ]/.test(this.fontFamily)?'"'+this.fontFamily+'"':this.fontFamily},e}(),L_=function(e){function t(t,n){var r=e.call(this,t)||this;return r.isTrusted=n,r.isMonospace=t.isMonospace,r.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,r.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,r.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow,r.spaceWidth=t.spaceWidth,r.maxDigitWidth=t.maxDigitWidth,r}return v_(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(x_),k_=bt("editorWorkerService"),M_=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D_="$initialize",E_=!1;function T_(e){et.f&&(E_||(E_=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(e.message))}var N_=function(){function e(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return e.prototype.setWorkerId=function(e){this._workerId=e},e.prototype.sendMessage=function(e,t){var n=this,r=String(++this._lastSentReq);return new Promise((function(i,o){n._pendingReplies[r]={resolve:i,reject:o},n._send({vsWorker:n._workerId,req:r,method:e,args:t})}))},e.prototype.handleMessage=function(e){e&&e.vsWorker&&(-1!==this._workerId&&e.vsWorker!==this._workerId||this._handleMessage(e))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq])return void console.warn("Got reply to unknown seq");var r=this._pendingReplies[n.seq];if(delete this._pendingReplies[n.seq],n.err){var i=n.err;return n.err.$isError&&((i=new Error).name=n.err.name,i.message=n.err.message,i.stack=n.err.stack),void r.reject(i)}r.resolve(n.res)}else{var o=e,s=o.req;this._handler.handleMessage(o.method,o.args).then((function(e){t._send({vsWorker:t._workerId,seq:s,res:e,err:void 0})}),(function(e){e.detail instanceof Error&&(e.detail=qe(e.detail)),t._send({vsWorker:t._workerId,seq:s,res:void 0,err:qe(e)})}))}},e.prototype._send=function(e){var t=[];if(e.req)for(var n=e,r=0;r0||this.m_modifiedCount>0)&&this.m_changes.push(new P_(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=Number.MAX_VALUE,this.m_modifiedStart=Number.MAX_VALUE},e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_originalCount++},e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,t),this.m_modifiedCount++},e.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},e.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},e}(),W_=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_forwardHistory=[],this.m_reverseHistory=[]}return e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)},e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)},e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)},e.prototype._ComputeDiff=function(e,t,n,r,i){var o=this.ComputeDiffRecursive(e,t,n,r,[!1]);return i?this.PrettifyChanges(o):o},e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){for(i[0]=!1;e<=t&&n<=r&&this.ElementsAreEqual(e,n);)e++,n++;for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);)t--,r--;if(e>t||n>r){var o=void 0;return n<=r?(Y_.Assert(e===t+1,"originalStart should only be one more than originalEnd"),o=[new P_(e,0,n,r-n+1)]):e<=t?(Y_.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[new P_(e,t-e+1,n,0)]):(Y_.Assert(e===t+1,"originalStart should only be one more than originalEnd"),Y_.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd"),o=[]),o}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,r,s,a,i),l=s[0],c=a[0];if(null!==u)return u;if(!i[0]){var d=this.ComputeDiffRecursive(e,l,n,c,i),h=[];return h=i[0]?[new P_(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i),this.ConcatenateChanges(d,h)}return[new P_(e,t-e+1,n,r-n+1)]},e.prototype.WALKTRACE=function(e,t,n,r,i,o,s,a,u,l,c,d,h,f,p,g,m,_){var y,v,b=null,w=new B_,C=t,S=n,x=h[0]-g[0]-r,L=Number.MIN_VALUE,k=this.m_forwardHistory.length-1;do{(v=x+e)===C||v=0&&(e=(u=this.m_forwardHistory[k])[0],C=1,S=u.length-1)}while(--k>=-1);if(y=w.getReverseChanges(),_[0]){var M=h[0]+1,D=g[0]+1;if(null!==y&&y.length>0){var E=y[y.length-1];M=Math.max(M,E.getOriginalEnd()),D=Math.max(D,E.getModifiedEnd())}b=[new P_(M,d-M+1,D,p-D+1)]}else{w=new B_,C=o,S=s,x=h[0]-g[0]-a,L=Number.MAX_VALUE,k=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(v=x+i)===C||v=l[v+1]?(f=(c=l[v+1]-1)-x-a,c>L&&w.MarkNextChange(),L=c+1,w.AddOriginalElement(c+1,f+1),x=v+1-i):(f=(c=l[v-1])-x-a,c>L&&w.MarkNextChange(),L=c,w.AddModifiedElement(c+1,f+1),x=v-1-i),k>=0&&(i=(l=this.m_reverseHistory[k])[0],C=1,S=l.length-1)}while(--k>=-1);b=w.getChanges()}return this.ConcatenateChanges(y,b)},e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,s){var a,u=0,l=0,c=0,d=0,h=0,f=0;e--,n--,i[0]=0,o[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var p,g,m=t-e+(r-n),_=m+1,y=new Array(_),v=new Array(_),b=r-n,w=t-e,C=e-n,S=t-r,x=(w-b)%2==0;for(y[b]=e,v[w]=t,s[0]=!1,a=1;a<=m/2+1;a++){var L=0,k=0;for(c=this.ClipDiagonalBound(b-a,a,b,_),d=this.ClipDiagonalBound(b+a,a,b,_),p=c;p<=d;p+=2){for(l=(u=p===c||pL+k&&(L=u,k=l),!x&&Math.abs(p-w)<=a-1&&u>=v[p])return i[0]=u,o[0]=l,g<=v[p]&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):null}var M=(L-e+(k-n)-a)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(L,this.OriginalSequence,M))return s[0]=!0,i[0]=L,o[0]=k,M>0&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):(e++,n++,[new P_(e,t-e+1,n,r-n+1)]);for(h=this.ClipDiagonalBound(w-a,a,w,_),f=this.ClipDiagonalBound(w+a,a,w,_),p=h;p<=f;p+=2){for(l=(u=p===h||p=v[p+1]?v[p+1]-1:v[p-1])-(p-w)-S,g=u;u>e&&l>n&&this.ElementsAreEqual(u,l);)u--,l--;if(v[p]=u,x&&Math.abs(p-b)<=a&&u<=y[p])return i[0]=u,o[0]=l,g>=y[p]&&a<=1448?this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s):null}if(a<=1447){var D=new Array(d-c+2);D[0]=b-c+1,j_.Copy(y,c,D,1,d-c+1),this.m_forwardHistory.push(D),(D=new Array(f-h+2))[0]=w-h+1,j_.Copy(v,h,D,1,f-h+1),this.m_reverseHistory.push(D)}}return this.WALKTRACE(b,c,d,C,w,h,f,S,y,v,u,t,i,l,r,o,x,s)},e.prototype.PrettifyChanges=function(e){for(var t=0;t0,s=n.modifiedLength>0;n.originalStart+n.originalLength=0;t--){n=e[t],r=0,i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(r=u.originalStart+u.originalLength),u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}o=n.originalLength>0,s=n.modifiedLength>0;for(var l=0,c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength),d=1;;d++){var h=n.originalStart-d,f=n.modifiedStart-d;if(hc&&(c=p,l=d)}n.originalStart-=l,n.modifiedStart-=l}return e},e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,r){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)},e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);return j_.Copy(e,0,r,0,e.length-1),r[e.length-1]=n[0],j_.Copy(t,1,r,e.length,t.length-1),r}r=new Array(e.length+t.length);return j_.Copy(e,0,r,0,e.length),j_.Copy(t,0,r,e.length,t.length),r},e.prototype.ChangesOverlap=function(e,t,n){if(Y_.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),Y_.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart,i=e.originalLength,o=e.modifiedStart,s=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(s=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new P_(r,i,o,s),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e1&&p>1;){if(d.charCodeAt(f-2)!==h.charCodeAt(p-2))break;f--,p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,f,s+1,1,p);for(var g=U_._getLastNonBlankColumn(d,1),m=U_._getLastNonBlankColumn(h,1),_=d.length+1,y=h.length+1;g<_&&m=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=yo(e),t=yo(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var i=n.length-e;return t>=i&&(t=i),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=yo(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t=0,n=this.values.length-1,r=0,i=0,o=0;t<=n;)if(r=t+(n-t)/2|0,e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}return new Z_(r,e-o)},e}(),J_=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new X_(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&tt&&(t=l),s>n&&(n=s),(c=o[2])>n&&(n=c)}t++,n++;var a=new mo(n,t,0);for(r=0,i=e.length;r=this._maxCharCode?0:this._states.get(e,t)},e}(),ty=null;var ny=null;var ry=function(){function e(){}return e._createLink=function(e,t,n,r,i){var o=i-1;do{var s=t.charCodeAt(o);if(2!==e.get(s))break;o--}while(o>r);if(r>0){var a=t.charCodeAt(r-1),u=t.charCodeAt(o);(40===a&&41===u||91===a&&93===u||123===a&&125===u)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}},e.computeLinks=function(t,n){void 0===n&&(null===ty&&(ty=new ey([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),n=ty);for(var r=function(){if(null===ny){ny=new vo(0);for(var e=0;e<" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".length;e++)ny.set(" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…".charCodeAt(e),1);for(e=0;e<".,;".length;e++)ny.set(".,;".charCodeAt(e),2)}return ny}(),i=[],o=1,s=t.getLineCount();o<=s;o++){for(var a=t.getLineContent(o),u=a.length,l=0,c=0,d=0,h=1,f=!1,p=!1,g=!1;l=0?((r+=n?1:-1)<0?r=e.length-1:r%=e.length,e[r]):null},e.INSTANCE=new e,e}(),oy=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oy(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=ni(e.column,ti(t),this._lines[e.lineNumber-1],0);return n?new Rr(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype.createWordIterator=function(e){var t,n,r=this,i=0,o=0,s=[],a=function(){if(o=r._lines.length?jt:(n=r._lines[i],s=r._wordenize(n,e),o=0,i+=1,a())};return{next:a}},t.prototype.getLineWords=function(e,t){for(var n=this._lines[e-1],r=[],i=0,o=this._wordenize(n,t);ithis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,r=!0;else{var i=this._lines[t-1].length+1;n<1?(n=1,r=!0):n>i&&(n=i,r=!0)}return r?{lineNumber:t,column:n}:e},t}(Q_),ay=function(){function e(e,t){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=t,this._foreignModule=null}return e.prototype.dispose=function(){this._models=Object.create(null)},e.prototype._getModel=function(e){return this._models[e]},e.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach((function(n){return t.push(e._models[n])})),t},e.prototype.acceptNewModel=function(e){this._models[e.url]=new sy(ct.parse(e.url),e.lines,e.EOL,e.versionId)},e.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},e.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},e.prototype.computeDiff=function(e,t,n){var r=this._getModel(e),i=this._getModel(t);if(!r||!i)return Promise.resolve(null);var o=r.getLinesContent(),s=i.getLinesContent(),a=new $_(o,s,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff(),u=!(a.length>0)&&this._modelsAreIdentical(r,i);return Promise.resolve({identical:u,changes:a})},e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();if(n!==t.getLineCount())return!1;for(var r=1;r<=n;r++){if(e.getLineContent(r)!==t.getLineContent(r))return!1}return!0},e.prototype.computeMoreMinimalEdits=function(t,n){var r=this._getModel(t);if(!r)return Promise.resolve(n);for(var i=[],o=void 0,s=0,a=n=Wr(n,(function(e,t){return e.range&&t.range?Rr.compareRangesUsingStarts(e.range,t.range):(e.range?0:1)-(t.range?0:1)}));se._diffLimit)i.push({range:l,text:c});else for(var f=F_(h,c,!1),p=r.offsetAt(Rr.lift(l).getStartPosition()),g=0,m=f;g=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},py=function(e,t){return function(n,r){t(n,r,e)}},gy=6e4,my=3e5;function _y(e,t){var n=e.getModel(t);return!!n&&!n.isTooLargeForSyncing()}var yy=function(e){function t(t,n,r){var i=e.call(this)||this;return i._modelService=t,i._workerManager=i._register(new by(i._modelService)),i._logService=r,i._register(Ea.register("*",{provideLinks:function(e,t){return _y(i._modelService,e.uri)?i._workerManager.withWorker().then((function(t){return t.computeLinks(e.uri)})).then((function(e){return e&&{links:e}})):Promise.resolve({links:[]})}})),i._register(pa.register("*",new vy(i._workerManager,n,i._modelService))),i}return hy(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.canComputeDiff=function(e,t){return _y(this._modelService,e)&&_y(this._modelService,t)},t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then((function(r){return r.computeDiff(e,t,n)}))},t.prototype.computeMoreMinimalEdits=function(e,t){var n,r=this;if(n=t,Array.isArray(n)&&n.length>0){if(!_y(this._modelService,e))return Promise.resolve(t);var i=Va.create(!0),o=this._workerManager.withWorker().then((function(n){return n.computeMoreMinimalEdits(e,t)}));return o.finally((function(){return r._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),i.elapsed())})),o}return Promise.resolve(void 0)},t.prototype.canNavigateValueSet=function(e){return _y(this._modelService,e)},t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then((function(r){return r.navigateValueSet(e,t,n)}))},t.prototype.canComputeWordRanges=function(e){return _y(this._modelService,e)},t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then((function(n){return n.computeWordRanges(e,t)}))},t=fy([py(0,xt),py(1,uy),py(2,cy)],t)}(Pt),vy=function(){function e(e,t,n){this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=t,this._modelService=n}return e.prototype.provideCompletionItems=function(e,t){if(this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions&&_y(this._modelService,e.uri))return this._workerManager.withWorker().then((function(n){return n.textualSuggest(e.uri,t)}))},e}(),by=function(e){function t(t){var n=e.call(this)||this;return n._modelService=t,n._editorWorkerClient=null,n._lastWorkerUsedTime=(new Date).getTime(),n._register(new Ts).cancelAndSet((function(){return n._checkStopIdleWorker()}),Math.round(my/2)),n._register(n._modelService.onModelRemoved((function(e){return n._checkStopEmptyWorker()}))),n}return hy(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){this._editorWorkerClient&&(0===this._modelService.getModels().length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype._checkStopIdleWorker=function(){this._editorWorkerClient&&((new Date).getTime()-this._lastWorkerUsedTime>my&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null))},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new xy(this._modelService,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},t}(Pt),wy=function(e){function t(t,n,r){var i=e.call(this)||this;if(i._syncedModels=Object.create(null),i._syncedModelsLastUsedTime=Object.create(null),i._proxy=t,i._modelService=n,!r){var o=new Ts;o.cancelAndSet((function(){return i._checkStopModelSync()}),Math.round(gy/2)),i._register(o)}return i}return hy(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)Nt(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.ensureSyncedResources=function(e){for(var t=0,n=e;tgy&&t.push(n)}for(var r=0,i=t;r=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;nn)&&(!c.isEmpty()||0!==l.type&&3!==l.type)){var d=c.startLineNumber===n?c.startColumn:r,h=c.endLineNumber===n?c.endColumn:i;o[s++]=new e(d,h,l.inlineClassName,l.type)}}return o},e.compare=function(e,t){return e.startColumn===t.startColumn?e.endColumn===t.endColumn?e.classNamet.className?1:0:e.endColumn-t.endColumn:e.startColumn-t.startColumn},e}(),Ny=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},Oy=function(){function e(){this.stopOffsets=[],this.classNames=[],this.count=0}return e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]0&&t=e){this.stopOffsets.splice(n,0,e),this.classNames.splice(n,0,t);break}this.count++},e}(),Ay=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],r=new Oy,i=0,o=0,s=t.length;o1)Cn(e.charCodeAt(u-2))&&u--;if(l>1)Cn(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;i=r.consumeLowerThan(d,i,n),0===r.count&&(i=d),r.insert(h,c)}return r.consumeLowerThan(1073741824,i,n),n},e}(),Iy=function(e,t){this.endIndex=e,this.type=t},Py=function(){function e(e,t){this.startOffset=e,this.endOffset=t}return e.prototype.equals=function(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset},e}(),Ry=function(){function e(e,t,n,r,i,o,s,a,u,l,c,d,h,f,p,g){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=t,this.lineContent=n,this.continuesWithWrappedLine=r,this.isBasicASCII=i,this.containsRTL=o,this.fauxIndentLength=s,this.lineTokens=a,this.lineDecorations=u,this.tabSize=l,this.spaceWidth=c,this.stopRenderingLineAfter=d,this.renderWhitespace="all"===h?3:"boundary"===h?1:"selection"===h?2:0,this.renderControlCharacters=f,this.fontLigatures=p,this.selectionsOnLine=g&&g.sort((function(e,t){return e.startOffset>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,r){var i=(t<<16|n<<0)>>>0;this._data[e]=i,this._absoluteOffsets[e]=r+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,r){if(0===this.length)return 0;for(var i=(t<<16|r<<0)>>>0,o=0,s=this.length-1;o+1>>1,u=this._data[a];if(u===i)return a;u>i?s=a:o=a}if(o===s)return o;var l=this._data[o],c=this._data[s];if(l===i)return o;if(c===i)return s;var d=e.getPartIndex(l);return r-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-r?o:s},e}(),Yy=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function jy(e,t){if(0===e.lineContent.length){var n=0,r=" ";if(e.lineDecorations.length>0){for(var i=[],o=0,s=e.lineDecorations.length;o')}return t.appendASCIIString(r),new Yy(new Fy(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,r=e.canUseHalfwidthRightwardsArrow,i=e.containsForeignElements,o=e.lineContent,s=e.len,a=e.isOverflowing,u=e.parts,l=e.tabSize,c=e.containsRTL,d=e.spaceWidth,h=e.renderWhitespace,f=e.renderControlCharacters,p=new Fy(s+1,u.length),g=0,m=0,_=0,y=0,v=0;t.appendASCIIString("");for(var b=0,w=u.length;b=0;if(_=0,t.appendASCIIString('0&&(!r||T>1?t.write1(8594):t.write1(65515),T--);T>0;)t.write1(160),T--;else t.write1(183);_++}y=k}else{k=0;for(c&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);g0;)t.write1(160),k++,T--;break;case 32:t.write1(160),k++;break;case 60:t.appendASCIIString("<"),k++;break;case 62:t.appendASCIIString(">"),k++;break;case 38:t.appendASCIIString("&"),k++;break;case 0:t.appendASCIIString("�"),k++;break;case 65279:case 8232:t.write1(65533),k++;break;default:En(E)&&m++,f&&E<32?(t.write1(9216+E),k++):(t.write1(E),k++)}_++}y=k}t.appendASCIIString("")}p.setPartData(s,u.length-1,_,v),a&&t.appendASCIIString("");return t.appendASCIIString(""),new Yy(p,c,i)}(function(e){var t,n,r=e.useMonospaceOptimizations,i=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(r[i++]=new Iy(t,""));for(var o=0,s=e.getCount();o=n){r[i++]=new Iy(n,u);break}r[i++]=new Iy(a,u)}}return r}(e.lineTokens,e.fauxIndentLength,n);(3===e.renderWhitespace||1===e.renderWhitespace||2===e.renderWhitespace&&e.selectionsOnLine)&&(o=function(e,t,n,r,i,o,s,a,u){var l,c=[],d=0,h=0,f=r[h].type,p=r[h].endIndex,g=r.length,m=fn(e);-1===m?(m=t,l=t):l=gn(e);for(var _=0,y=0;y=w.endOffset&&(b++,w=a&&a[b]);var S=void 0;if(yl)S=!0;else if(9===C)S=!0;else if(32===C)if(u)if(v)S=!0;else{var x=y+1y),v?(!S||!s&&_>=o)&&(c[d++]=new Iy(y,"vs-whitespace"),_%=o):(y===p||S&&y>i)&&(c[d++]=new Iy(y,f),_%=o),9===C?_=o:En(C)?_+=2:_++,v=S,y===p&&++h0?e.charCodeAt(t-1):0,M=t>1?e.charCodeAt(t-2):0;32===k&&32!==M&&9!==M||(L=!0)}else L=!0;return c[d++]=new Iy(t,L?"vs-whitespace":f),c}(i,n,e.continuesWithWrappedLine,o,e.fauxIndentLength,e.tabSize,r,e.selectionsOnLine,1===e.renderWhitespace));var s=0;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;al&&(l=g.startOffset,a[u++]=new Iy(l,p)),!(g.endOffset+1<=f)){l=f,a[u++]=new Iy(l,p+" "+g.className);break}l=g.endOffset+1,a[u++]=new Iy(l,p+" "+g.className),s++}f>l&&(l=f,a[u++]=new Iy(l,p))}var m=n[n.length-1].endIndex;if(s=50&&(i[o++]=new Iy(c+1,l),d=c+1,c=-1);d!==u&&(i[o++]=new Iy(u,l))}else i[o++]=f;r=u}else for(s=0,a=t.length;s50){l=f.type;var g=Math.ceil(p/50);for(h=1;h'"_]/g,"-")}function tv(e,t){return new Error(e.languageId+": "+t)}function nv(e,t,n,r,i){var o=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,(function(t,s,a,u,l,c,d,h,f){return Jy(a)?Jy(u)?!Jy(l)&&l0;){var r=e.tokenizer[n];if(r)return r;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}var iv=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new ov(e,t);var n=ov.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var r=this._entries[n];return r||(r=new ov(e,t),this._entries[n]=r,r)},e._INSTANCE=new e(5),e}(),ov=function(){function e(e,t){this.parent=e,this.state=t,this.depth=(this.parent?this.parent.depth:0)+1}return e.getStackElementId=function(e){for(var t="";null!==e;)t.length>0&&(t+="|"),t+=e.state,e=e.parent;return t},e._equals=function(e,t){for(;null!==e&&null!==t;){if(e===t)return!0;if(e.state!==t.state)return!1;e=e.parent,t=t.parent}return null===e&&null===t},e.prototype.equals=function(t){return e._equals(this,t)},e.prototype.push=function(e){return iv.create(this,e)},e.prototype.pop=function(){return this.parent},e.prototype.popall=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.switchTo=function(e){return iv.create(this.parent,e)},e}(),sv=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),av=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==t)return new uv(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new uv(e,t);var n=ov.getStackElementId(e),r=this._entries[n];return r||(r=new uv(e,null),this._entries[n]=r,r)},e._INSTANCE=new e(5),e}(),uv=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:av.create(this.stack,this.embeddedModeData)},e.prototype.equals=function(t){return t instanceof e&&(!!this.stack.equals(t.stack)&&(null===this.embeddedModeData&&null===t.embeddedModeData||null!==this.embeddedModeData&&null!==t.embeddedModeData&&this.embeddedModeData.equals(t.embeddedModeData)))},e}(),lv=function(){function e(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return e.prototype.enterMode=function(e,t){this._language=t},e.prototype.emit=function(e,t){this._lastTokenType===t&&this._lastTokenLanguage===this._language||(this._lastTokenType=t,this._lastTokenLanguage=this._language,this._tokens.push(new Ra(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var r=t.modeId,i=t.state,o=Aa.get(r);if(!o)return this.enterMode(n,r),this.emit(n,""),i;var s=o.tokenize(e,i,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new Fa(this._tokens,e)},e}(),cv=function(){function e(e,t){this._modeService=e,this._theme=t,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return e.prototype.enterMode=function(e,t){this._currentLanguageId=this._modeService.getLanguageIdentifier(t).id},e.prototype.emit=function(e,t){var n=this._theme.match(this._currentLanguageId,t);this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))},e._merge=function(e,t,n){var r=null!==e?e.length:0,i=t.length,o=null!==n?n.length:0;if(0===r&&0===i&&0===o)return new Uint32Array(0);if(0===r&&0===i)return n;if(0===i&&0===o)return e;var s=new Uint32Array(r+i+o);null!==e&&s.set(e);for(var a=0;a0&&r.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(i);return this._myTokenize(a,t,n+i,r)},e.prototype._safeRuleName=function(e){return e?e.name:"(unknown)"},e.prototype._myTokenize=function(e,t,n,r){r.enterMode(n,this._modeId);for(var i,o,s=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null,d=!0;d||l=s)break;d=!1;var C=this._lexer.tokenizer[g];if(!C&&!(C=rv(this._lexer,g)))throw tv(this._lexer,"tokenizer state is not defined: "+g);for(var S=e.substr(l),x=0,L=C;x=this._lexer.maxStack)throw tv(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]");u=u.push(g)}else if("@pop"===y.next){if(u.depth<=1)throw tv(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(v));u=u.pop()}else if("@popall"===y.next)u=u.popall();else{var D;if("@"===(D=nv(this._lexer,y.next,_,m,g))[0]&&(D=D.substr(1)),!rv(this._lexer,D))throw tv(this._lexer,"trying to set a next state '"+D+"' that is undefined in rule: "+this._safeRuleName(v));u=u.push(D)}}y.log&&"string"==typeof y.log&&(i=this._lexer,o=this._lexer.languageId+": "+nv(this._lexer,y.log,_,m,g),console.log(i.languageId+": "+o))}if(null===M)throw tv(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(v));if(Array.isArray(M)){if(c&&c.groups.length>0)throw tv(this._lexer,"groups cannot be nested: "+this._safeRuleName(v));if(m.length!==M.length+1)throw tv(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(v));for(var E=0,T=1;T=0&&a()}))})},e.colorizeLine=function(e,t,n,r,i){void 0===i&&(i=4);var o=qy.isBasicASCII(e,t),s=qy.containsRTL(e,o,n);return Wy(new Ry(!1,!0,e,!1,o,s,0,r,[],i,0,-1,"none",!1,!1,null)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var r=e.getLineContent(t);e.forceTokenization(t);var i=e.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),i,n)},e}();function pv(e,t,n){return new Promise((function(r,i){var o=function(){var s=function(e,t,n){for(var r=[],i=n.getInitialState(),o=0,s=e.length;o"),i=u.endState}return r.join("")}(e,t,n);if(n instanceof dv){var a=n.getLoadStatus();if(!1===a.loaded)return void a.promise.then(o,i)}r(s)};o()}))}function gv(e,t){var n=[],r=new Uint32Array(2);r[0]=0,r[1]=16793600;for(var i=0,o=e.length;i")}return n.join("")}var mv={Configuration:"base.contributions.configuration"},_v={properties:{},patternProperties:{}},yv={properties:{},patternProperties:{}},vv={properties:{},patternProperties:{}},bv={properties:{},patternProperties:{}},wv={properties:{},patternProperties:{}},Cv={properties:{},patternProperties:{}},Sv="vscode://schemas/settings/editor",xv=xr.as(ql),Lv=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new Kt,this._onDidUpdateConfiguration=new Kt,this.defaultOverridesConfigurationNode={id:"defaultOverrides",title:Me("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultOverridesConfigurationNode],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowsTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),xv.registerSchema(Sv,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],t)},e.prototype.registerConfigurations=function(e,t){var n=this;void 0===t&&(t=!0);var r=[];e.forEach((function(e){r.push.apply(r,n.validateAndRegisterProperties(e,t)),n.configurationContributors.push(e),n.registerJSONConfiguration(e),n.updateSchemaForOverrideSettingsConfiguration(e)})),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire(r)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.validateAndRegisterProperties=function(e,t,n,r){void 0===t&&(t=!0),void 0===n&&(n=3),void 0===r&&(r=!1),n=Ie(e.scope)?n:e.scope,r=e.overridable||r;var i=[],o=e.properties;if(o)for(var s in o){var a=void 0;if(t&&(a=Ov(s)))console.warn(a),delete o[s];else{var u=o[s];Ae(u.default)&&(u.default=Tv(u.type)),r&&(u.overridable=!0),Ev.test(s)?u.scope=void 0:u.scope=Ie(u.scope)?n:u.scope,!o[s].hasOwnProperty("included")||o[s].included?(this.configurationProperties[s]=o[s],i.push(s)):(this.excludedConfigurationProperties[s]=o[s],delete o[s])}}var l=e.allOf;if(l)for(var c=0,d=l;c console.log` because `log` has been completed recently."),Me("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:Me("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:Me("suggestFontSize","Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,markdownDescription:Me("suggestLineHeight","Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.")},"editor.tabCompletion":{type:"string",default:"off",enum:["on","off","onlySnippets"],enumDescriptions:[Me("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),Me("tabCompletion.off","Disable tab completions."),Me("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:Me("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:Me("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:Me("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:!1,markdownDescription:Me("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:Me("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:Iv.contribInfo.suggest.showIcons,description:Me("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.maxVisibleSuggestions":{type:"number",default:Iv.contribInfo.suggest.maxVisibleSuggestions,minimum:1,maximum:15,description:Me("suggest.maxVisibleSuggestions","Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).")},"editor.suggest.filteredTypes":{type:"object",default:{keyword:!0,snippet:!0},markdownDescription:Me("suggest.filtered","Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions."),properties:{method:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.method","When set to `false` IntelliSense never shows `method` suggestions.")},function:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.function","When set to `false` IntelliSense never shows `function` suggestions.")},constructor:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.constructor","When set to `false` IntelliSense never shows `constructor` suggestions.")},field:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.field","When set to `false` IntelliSense never shows `field` suggestions.")},variable:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.variable","When set to `false` IntelliSense never shows `variable` suggestions.")},class:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.class","When set to `false` IntelliSense never shows `class` suggestions.")},struct:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.struct","When set to `false` IntelliSense never shows `struct` suggestions.")},interface:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.interface","When set to `false` IntelliSense never shows `interface` suggestions.")},module:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.module","When set to `false` IntelliSense never shows `module` suggestions.")},property:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.property","When set to `false` IntelliSense never shows `property` suggestions.")},event:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.event","When set to `false` IntelliSense never shows `event` suggestions.")},operator:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.operator","When set to `false` IntelliSense never shows `operator` suggestions.")},unit:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.unit","When set to `false` IntelliSense never shows `unit` suggestions.")},value:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.value","When set to `false` IntelliSense never shows `value` suggestions.")},constant:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.constant","When set to `false` IntelliSense never shows `constant` suggestions.")},enum:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.enum","When set to `false` IntelliSense never shows `enum` suggestions.")},enumMember:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.enumMember","When set to `false` IntelliSense never shows `enumMember` suggestions.")},keyword:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.keyword","When set to `false` IntelliSense never shows `keyword` suggestions.")},text:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.text","When set to `false` IntelliSense never shows `text` suggestions.")},color:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.color","When set to `false` IntelliSense never shows `color` suggestions.")},file:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.file","When set to `false` IntelliSense never shows `file` suggestions.")},reference:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.reference","When set to `false` IntelliSense never shows `reference` suggestions.")},customcolor:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.customcolor","When set to `false` IntelliSense never shows `customcolor` suggestions.")},folder:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.folder","When set to `false` IntelliSense never shows `folder` suggestions.")},typeParameter:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.typeParameter","When set to `false` IntelliSense never shows `typeParameter` suggestions.")},snippet:{type:"boolean",default:!0,markdownDescription:Me("suggest.filtered.snippet","When set to `false` IntelliSense never shows `snippet` suggestions.")}}},"editor.gotoLocation.multiple":{description:Me("editor.gotoLocation.multiple","Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist."),type:"string",enum:["peek","gotoAndPeek","goto"],default:Iv.contribInfo.gotoLocation.multiple,enumDescriptions:[Me("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),Me("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),Me("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]},"editor.selectionHighlight":{type:"boolean",default:Iv.contribInfo.selectionHighlight,description:Me("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")},"editor.occurrencesHighlight":{type:"boolean",default:Iv.contribInfo.occurrencesHighlight,description:Me("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:Me("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:Iv.viewInfo.overviewRulerBorder,description:Me("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:function(e){if(1===e)return"blink";if(4===e)return"expand";if(3===e)return"phase";if(2===e)return"smooth";if(5===e)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}(Iv.viewInfo.cursorBlinking),description:Me("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:Iv.viewInfo.mouseWheelZoom,markdownDescription:Me("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorSmoothCaretAnimation":{type:"boolean",default:Iv.viewInfo.cursorSmoothCaretAnimation,description:Me("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:function(e){if(e===ri.Line)return"line";if(e===ri.Block)return"block";if(e===ri.Underline)return"underline";if(e===ri.LineThin)return"line-thin";if(e===ri.BlockOutline)return"block-outline";if(e===ri.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}(Iv.viewInfo.cursorStyle),description:Me("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:Iv.viewInfo.cursorWidth,markdownDescription:Me("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:Iv.viewInfo.fontLigatures,description:Me("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:Iv.viewInfo.hideCursorInOverviewRuler,description:Me("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","selection","all"],enumDescriptions:["",Me("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),Me("renderWhitespace.selection","Render whitespace characters only on selected text."),""],default:Iv.viewInfo.renderWhitespace,description:Me("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:Iv.viewInfo.renderControlCharacters,description:Me("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:Iv.viewInfo.renderIndentGuides,description:Me("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:Iv.viewInfo.highlightActiveIndentGuide,description:Me("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",Me("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:Iv.viewInfo.renderLineHighlight,description:Me("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:Iv.contribInfo.codeLens,description:Me("codeLens","Controls whether the editor shows CodeLens.")},"editor.folding":{type:"boolean",default:Iv.contribInfo.folding,description:Me("folding","Controls whether the editor has code folding enabled.")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:Iv.contribInfo.foldingStrategy,markdownDescription:Me("foldingStrategy","Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:Iv.contribInfo.showFoldingControls,description:Me("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:Iv.contribInfo.matchBrackets,description:Me("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:Iv.viewInfo.glyphMargin,description:Me("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:Iv.useTabStops,description:Me("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:Rv.trimAutoWhitespace,description:Me("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:Me("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:Iv.dragAndDrop,description:Me("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[Me("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),Me("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),Me("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:Iv.accessibilitySupport,description:Me("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:Iv.showUnused,description:Me("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:Iv.contribInfo.links,description:Me("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:Iv.contribInfo.colorDecorators,description:Me("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:Iv.contribInfo.lightbulbEnabled,description:Me("codeActions","Enables the code action lightbulb in the editor.")},"editor.maxTokenizationLineLength":{type:"integer",default:2e4,description:Me("maxTokenizationLineLength","Lines above this length will not be tokenized for performance reasons")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:Me("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")},"source.fixAll":{type:"boolean",description:Me("codeActionsOnSave.fixAll","Controls whether auto fix action should be run on file save.")}},additionalProperties:{type:"boolean"},default:Iv.contribInfo.codeActionsOnSave,description:Me("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:Iv.contribInfo.codeActionsOnSaveTimeout,description:Me("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:Iv.contribInfo.selectionClipboard,description:Me("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:et.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:Me("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:Me("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:Rv.largeFileOptimizations,description:Me("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:Me("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}},Hv=null;function Vv(){return null===Hv&&(Hv=Object.create(null),Object.keys(Wv.properties).forEach((function(e){Hv[e]=!0}))),Hv}Bv.registerConfiguration(Wv);var zv=function(){function e(){}return e.insert=function(e,t){return{range:new Rr(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}(),Uv=bt("configurationService");function qv(e,t){var n=Object.create(null);for(var r in e)Kv(n,r,e[r],t);return n}function Kv(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a0;){var n=t.shift();for(var r in Object.freeze(n),n)if($r.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t5e3&&n._leaveChordMode():n._leaveChordMode()}),500)},t.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},t.prototype._dispatch=function(e,t){return this._doDispatch(this.resolveKeyboardEvent(e),t)},t.prototype._doDispatch=function(e,t){var n=this,r=!1;if(e.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var i=e.getDispatchParts()[0];if(null===i)return r;var o=this._contextKeyService.getContext(t),s=this._currentChord?this._currentChord.keypress:null,a=e.getLabel(),u=this._getResolver().resolve(o,s,i);return u&&u.enterChord?(r=!0,this._enterChordMode(i,a),r):(this._currentChord&&(u&&u.commandId||(this._notificationService.status(Me("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,a),{hideAfter:1e4}),r=!0)),this._leaveChordMode(),u&&u.commandId&&(u.bubble||(r=!0),void 0===u.commandArgs?this._commandService.executeCommand(u.commandId).then(void 0,(function(e){return n._notificationService.warn(e)})):this._commandService.executeCommand(u.commandId,u.commandArgs).then(void 0,(function(e){return n._notificationService.warn(e)})),this._telemetryService.publicLog2("workbenchActionExecuted",{id:u.commandId,from:"keybinding"})),r)},t.prototype.mightProducePrintableCharacter=function(e){return!e.ctrlKey&&!e.metaKey&&(e.keyCode>=31&&e.keyCode<=56||e.keyCode>=21&&e.keyCode<=30)},t}(Pt),nb=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var r=0,i=t.length;r=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(o)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var r=this._map.get(t);if(void 0===r)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var i=r.length-1;i>=0;i--){var o=r[i];if(o.command!==n.command){var s=o.keypressParts.length>1,a=n.keypressParts.length>1;s&&a&&o.keypressParts[1]!==n.keypressParts[1]||e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}}r.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);void 0===t?(t=[e],this._lookupMap.set(e.command,t)):t.push(e)}},e.prototype._removeFromLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);if(void 0!==t)for(var n=0,r=t.length;n1&&null!==u.keypressParts[1]?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}:null},e.prototype._findCommand=function(t,n){for(var r=n.length-1;r>=0;r--){var i=n[r];if(e.contextMatchesRules(t,i.when))return i}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}(),rb=function(e,t,n,r,i){this.resolvedKeybinding=e,this.keypressParts=e?function(e){for(var t=[],n=0,r=e.length;n1},t.prototype.getParts=function(){var e=this;return this._parts.map((function(t){return e._getPart(t)}))},t.prototype._getPart=function(e){return new wr(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getLabel(e),this._getAriaLabel(e))},t.prototype.getDispatchParts=function(){var e=this;return this._parts.map((function(t){return e._getDispatchPart(t)}))},t}(Cr),hb=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fb=function(e){function t(t,n){return e.call(this,n,t.parts)||this}return hb(t,e),t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return ar.toString(e)},t.prototype._getLabel=function(e){return e.isDuplicateModifierCase()?"":this._keyCodeToUILabel(e.keyCode)},t.prototype._getAriaLabel=function(e){return e.isDuplicateModifierCase()?"":ar.toString(e.keyCode)},t.prototype._getDispatchPart=function(e){return t.getDispatchStr(e)},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+=ar.toString(e.keyCode)},t}(db),pb=bt("contextService");!function(e){e.isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)}}(ub||(ub={})),(lb||(lb={})).isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&ct.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource};!function(){function e(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._foldersMap=Jn.forPaths(),this.folders=t}Object.defineProperty(e.prototype,"folders",{get:function(){return this._folders},set:function(e){this._folders=e,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e&&this._foldersMap.findSubstr(e.with({scheme:e.scheme,authority:e.authority,path:e.path}).toString())||null},e.prototype.updateFoldersMap=function(){this._foldersMap=Jn.forPaths();for(var e=0,t=this.folders;e=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Nb=function(e,t){return function(n,r){t(n,r,e)}},Ob=function(){function e(e){this.model=e,this._onDispose=new Kt}return Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}();function Ab(e,t,n){return(r=e)&&"function"==typeof r.getEditorType&&r.getEditorType()===El.ICodeEditor?t(e):n(e);var r}var Ib=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=e},e.prototype.createModelReference=function(e){var t=this,n=null;return this.editor&&(n=Ab(this.editor,(function(n){return t.findModel(n,e)}),(function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)}))),n?Promise.resolve(new Rt(new Ob(n))):Promise.reject(new Error("Model not found"))},e.prototype.findModel=function(e,t){var n=e.getModel();return n&&n.uri.toString()!==t.toString()?null:n},e}(),Pb=function(){function e(){}return e.prototype.showWhile=function(e,t){return Promise.resolve(void 0)},e}(),Rb=function(){},Fb=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:im.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:im.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:im.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case im.Error:console.error(t.message);break;case im.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.prototype.status=function(e,t){return Pt.None},e.NO_OP=new sm,e}(),Yb=function(){function e(e){this._onWillExecuteCommand=new Kt,this._onDidExecuteCommand=new Kt,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,At((function(){delete t._dynamicCommands[n]}))},e.prototype.executeCommand=function(e){for(var t=[],n=1;n.001){v=!1;break}}var x=!0;v&&_.width!==b&&(x=!1),_.width>m.width&&(x=!1);var L=rh.INSTANCE.getTimeSinceLastZoomLevelChanged()>2e3;return new L_({zoomLevel:ih(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:v,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:i.width,canUseHalfwidthRightwardsArrow:x,spaceWidth:o.width,maxDigitWidth:y},L)},t.INSTANCE=new t,t}(Pt),rw=function(e){function t(t,n,r,i){void 0===r&&(r=null);var o,s=e.call(this,t,n)||this;return s.accessibilityService=i,s._elementSizeObserver=s._register(new Qb(r,(function(){return s._onReferenceDomElementSizeChanged()}))),s._register(nw.INSTANCE.onDidChange((function(){return s._onCSSBasedConfigurationChanged()}))),s._validatedOptions.automaticLayout&&s._elementSizeObserver.startObserving(),s._register((o=function(e){return s._recomputeOptions()},rh.INSTANCE.onDidChangeZoomLevel(o))),s._register(s.accessibilityService.onDidChangeAccessibilitySupport((function(){return s._recomputeOptions()}))),s._recomputeOptions(),s}return ew(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.getMassagedFontFamily(),e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.getMassagedFontFamily()),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return hh||fh||(e+="no-user-select "),et.d&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:ch||lh,pixelRatio:rh.INSTANCE.getPixelRatio(),zoomLevel:ih(),accessibilitySupport:this.accessibilityService.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return nw.INSTANCE.readConfiguration(e)},t}(jv),iw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ow=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.toClientCoordinates=function(){return new sw(this.x-ff.scrollX,this.y-ff.scrollY)},e}(),sw=function(){function e(e,t){this.clientX=e,this.clientY=t}return e.prototype.toPageCoordinates=function(){return new ow(this.clientX+ff.scrollX,this.clientY+ff.scrollY)},e}(),aw=function(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r};function uw(e){var t=hf(e);return new aw(t.left,t.top,t.width,t.height)}var lw=function(e){function t(t,n){var r=e.call(this,t)||this;return r.pos=new ow(r.posx,r.posy),r.editorPos=uw(n),r}return iw(t,e),t}(Eh),cw=function(){function e(e){this._editorViewDomNode=e}return e.prototype._create=function(e){return new lw(e,this._editorViewDomNode)},e.prototype.onContextMenu=function(e,t){var n=this;return qh(e,"contextmenu",(function(e){t(n._create(e))}))},e.prototype.onMouseUp=function(e,t){var n=this;return qh(e,"mouseup",(function(e){t(n._create(e))}))},e.prototype.onMouseDown=function(e,t){var n=this;return qh(e,"mousedown",(function(e){t(n._create(e))}))},e.prototype.onMouseLeave=function(e,t){var n=this;return Gh(e,(function(e){t(n._create(e))}))},e.prototype.onMouseMoveThrottled=function(e,t,n,r){var i=this;return uf(e,"mousemove",t,(function(e,t){return n(e,i._create(t))}),r)},e}(),dw=function(e){function t(t){var n=e.call(this)||this;return n._editorViewDomNode=t,n._globalMouseMoveMonitor=n._register(new Dp),n._keydownListener=null,n}return iw(t,e),t.prototype.startMonitoring=function(e,t,n){var r=this;this._keydownListener=Kh(document,"keydown",(function(e){e.toKeybinding().isModifierKey()||r._globalMouseMoveMonitor.stopMonitoring(!0)}),!0);this._globalMouseMoveMonitor.startMonitoring((function(t,n){return e(t,new lw(n,r._editorViewDomNode))}),t,(function(){r._keydownListener.dispose(),n()}))},t}(Pt),hw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fw=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return hw(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,r=e.length;n=u?i=Math.max(i,u+l-r):(t[n++]=new bw(r,i),r=u,i=l)}return t[n++]=new bw(r,i),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],r=0,i=e.length;ra)return null;(t=Math.min(a,Math.max(0,t)))!==(r=Math.min(a,Math.max(0,r)))&&r>0&&0===i&&(r--,i=1073741824);var u=e.children[t].firstChild,l=e.children[r].firstChild;if(u&&l||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!l&&0===i&&r>0&&(l=e.children[r-1].firstChild,i=1073741824)),!u||!l)return null;n=Math.min(u.textContent.length,Math.max(0,n)),i=Math.min(l.textContent.length,Math.max(0,i));var c=this._readClientRects(u,n,l,i,s);return this._createHorizontalRangesFromClientRects(c,o)},e}(),Sw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xw=!!et.e||!(et.c||lh||hh),Lw=uh,kw=function(){function e(e,t){this._domNode=e,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),e}(),Mw=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.canUseHalfwidthRightwardsArrow=e.editor.fontInfo.canUseHalfwidthRightwardsArrow,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),Dw=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=kp(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!Lw&&this._options.themeType!==Pd&&"selection"!==this._options.renderWhitespace)&&(this._isMaybeInvalid=!0,!0)},e.prototype.renderLine=function(t,n,r,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(t),s=this._options,a=Ty.filter(o.inlineDecorations,t,o.minColumn,o.maxColumn),u=null;if(Lw||s.themeType===Pd||"selection"===this._options.renderWhitespace)for(var l=0,c=r.selections;lt)){var h=d.startLineNumber===t?d.startColumn:o.minColumn,f=d.endLineNumber===t?d.endColumn:o.maxColumn;h');var g=jy(p,i);i.appendASCIIString("");var m=null;return xw&&o.isBasicASCII&&s.useMonospaceOptimizations&&0===g.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(m=new Ew(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping)),m||(m=Ow(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping,g.containsRTL,g.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var r=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==r&&e>r&&t>r?null:(-1!==r&&e>r&&(e=r),-1!==r&&t>r&&(t=r),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(e,t,n):1},e.CLASS_NAME="view-line",e}(),Ew=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var r=this._getCharPosition(e),i=this._getCharPosition(t);return[new bw(r,i-r)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),Tw=function(){function e(e,t,n,r,i){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=i,this._cachedWidth=-1,this._pixelOffsetCache=null,!r||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,s=this._characterMapping.length;o<=s;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(e,n);if(-1===r)return null;var i=this._readPixelOffset(t,n);return-1===i?null:[new bw(r,i-r)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var r=this._readPixelOffset(e,n);return-1===r?null:[new bw(r,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length){if(0===this._containsForeignElements)return 0;if(2===this._containsForeignElements)return 0;if(1===this._containsForeignElements)return this.getWidth()}if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)return n;var r=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=r,r}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=Cw.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var r=this._characterMapping.charOffsetToPartData(e-1),i=Fy.getPartIndex(r),o=Fy.getCharIndex(r),s=Cw.readHorizontalRanges(this._getReadingTarget(),i,o,i,o,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new bw(0,this.getWidth())];var r=this._characterMapping.charOffsetToPartData(e-1),i=Fy.getPartIndex(r),o=Fy.getCharIndex(r),s=this._characterMapping.charOffsetToPartData(t-1),a=Fy.getPartIndex(s),u=Fy.getCharIndex(s);return Cw.readHorizontalRanges(this._getReadingTarget(),i,o,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var r=t.textContent.length,i=-1;t;)t=t.previousSibling,i++;return this._characterMapping.partDataToCharOffset(i,r,n)+1},e}(),Nw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Sw(t,e),t.prototype._readVisibleRangesForRange=function(t,n,r){var i=e.prototype._readVisibleRangesForRange.call(this,t,n,r);if(!i||0===i.length||t===n||1===t&&n===this._characterMapping.length)return i;if(!this.input.containsRTL){var o=this._readPixelOffset(n,r);if(-1!==o){var s=i[i.length-1];s.left=4&&3===e[0]&&7===e[3]},e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),Yw=function(){function e(e,t,n){this.model=e.model,this.layoutInfo=e.configuration.editor.layoutInfo,this.viewDomNode=t.viewDomNode,this.lineHeight=e.configuration.editor.lineHeight,this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this.lastViewCursorsRenderData=n,this._context=e,this._viewHelper=t}return e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)},e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var r=n.verticalOffset+n.height/2,i=e.model.getLineCount(),o=null,s=void 0,a=null;return n.afterLineNumber!==i&&(a=new St(n.afterLineNumber+1,1)),n.afterLineNumber>0&&(o=new St(n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber))),s=null===a?o:null===o?a:t=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Hw._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))})),Bw={isAfterLines:!0};function Ww(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Hw=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=e.target,n=mw.collect(t,this._viewHelper.viewDomNode);return!(!Fw.isChildOfContentWidgets(n)&&!Fw.isChildOfOverflowingContentWidgets(n))||!!Fw.isChildOfOverlayWidgets(n)},e.prototype.createMouseTarget=function(t,n,r,i){var o=new Yw(this._context,this._viewHelper,t),s=new jw(o,n,r,i);try{return e._createMouseTarget(o,s,!1)}catch(e){return s.fulfill(0)}},e._createMouseTarget=function(t,n,r){if(null===n.target){if(r)return n.fulfill(0);var i=e._doHitTest(t,n);return i.position?e.createMouseTargetFromHitTestPosition(t,n,i.position.lineNumber,i.position.column):this._createMouseTarget(t,n.withTarget(i.hitTarget),!0)}var o=n,s=null;return(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,r))||e._hitTestScrollbar(t,o))||n.fulfill(0)},e._hitTestContentWidget=function(e,t){if(Fw.isChildOfContentWidgets(t.targetPath)||Fw.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null},e._hitTestOverlayWidget=function(e,t){if(Fw.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,r=o=e.lastViewCursorsRenderData;ni.contentLeft+i.width)){var c=e.getVerticalOffsetForLineNumber(i.position.lineNumber);if(c<=a&&a<=c+i.height)return t.fulfill(6,i.position)}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var r=t.isInContentArea?8:5;return t.fulfill(r,n.position,null,n)}return null},e._hitTestTextArea=function(e,t){return Fw.isTextArea(t.targetPath)?t.fulfill(1):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),r=n.range.getStartPosition(),i=Math.abs(t.pos.x-t.editorPos.x),o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:i};return(i-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(2,r,n.range,o):(i-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(3,r,n.range,o):(i-=e.layoutInfo.lineNumbersWidth,t.fulfill(4,r,n.range,o))}return null},e._hitTestViewLines=function(t,n,r){if(!Fw.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var i=t.model.getLineCount(),o=t.model.getLineMaxColumn(i);return n.fulfill(7,new St(i,o),void 0,Bw)}if(r){if(Fw.isStrictChildOfViewLines(n.targetPath)){var s=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(s)){var a=t.getLineWidth(s),u=Ww(n.mouseContentHorizontalOffset-a);return n.fulfill(7,new St(s,1),void 0,u)}}return n.fulfill(0)}var l=e._doHitTest(t,n);return l.position?e.createMouseTargetFromHitTestPosition(t,n,l.position.lineNumber,l.position.column):this._createMouseTarget(t,n.withTarget(l.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(Fw.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new St(n,r))}return null},e._hitTestScrollbarSlider=function(e,t){if(Fw.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(r);return t.fulfill(11,new St(r,i))}}return null},e._hitTestScrollbar=function(e,t){if(Fw.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),r=e.model.getLineMaxColumn(n);return t.fulfill(11,new St(n,r))}return null},e.prototype.getMouseColumn=function(t,n){var r=this._context.configuration.editor.layoutInfo,i=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-r.contentLeft;return e._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,r){var i=new St(n,r),o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(ah&&1===i.column){var s=Ww(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new St(n,e.model.getLineMaxColumn(n)),void 0,s)}var a=Ww(t.mouseContentHorizontalOffset-o);return t.fulfill(7,i,void 0,a)}var u=e.visibleRangeForPosition2(n,r);if(!u)return t.fulfill(0,i);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,i);var c=[];if(c.push({offset:u.left,column:r}),r>1){var d=e.visibleRangeForPosition2(n,r-1);d&&c.push({offset:d.left,column:r-1})}if(r=t.editorPos.y+e.layoutInfo.height&&(i=t.editorPos.y+e.layoutInfo.height-1);var o=new ow(t.pos.x,i),s=this._actualDoHitTestWithCaretRangeFromPoint(e,o.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var r=n.startContainer,i=null;if(r.nodeType===r.TEXT_NODE){var o=(a=(s=r.parentNode)?s.parentNode:null)?a.parentNode:null;if((o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===Dw.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};i=r.parentNode}else if(r.nodeType===r.ELEMENT_NODE){var s,a;if(((a=(s=r.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Dw.CLASS_NAME)return{position:e.getPositionFromDOMInfo(r,r.textContent.length),hitTarget:null};i=r}return{position:null,hitTarget:i}},e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var r=n.offsetNode.parentNode,i=r?r.parentNode:null,o=i?i.parentNode:null;return(o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===Dw.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,r=null,i=document.body.createTextRange();try{i.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}i.collapse(!0);var o=i?i.parentElement():null,s=o?o.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===Dw.CLASS_NAME){var u=i.duplicate();u.moveToElementText(o),u.setEndPoint("EndToStart",i),n=e.getPositionFromDOMInfo(o,u.text.length),u.moveToElementText(e.viewDomNode)}else r=o;return i.moveToElementText(e.viewDomNode),{position:n,hitTarget:r}},e._doHitTest=function(e,t){return document.caretRangeFromPoint?this._doHitTestWithCaretRangeFromPoint(e,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},e}(),Vw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function zw(e){return function(t,n){var r=!1;return e&&(r=e.mouseTargetIsWidget(n)),r||n.preventDefault(),n}}var Uw=function(e){function t(n,r,i){var o=e.call(this)||this;o._isFocused=!1,o._context=n,o.viewController=r,o.viewHelper=i,o.mouseTargetFactory=new Hw(o._context,i),o._mouseDownOperation=o._register(new qw(o._context,o.viewController,o.viewHelper,(function(e,t){return o._createMouseTarget(e,t)}),(function(e){return o._getMouseColumn(e)}))),o._asyncFocus=o._register(new Ns((function(){return o.viewHelper.focusTextArea()}),0)),o.lastMouseLeaveTime=-1;var s=new cw(o.viewHelper.viewDomNode);o._register(s.onContextMenu(o.viewHelper.viewDomNode,(function(e){return o._onContextMenu(e,!0)}))),o._register(s.onMouseMoveThrottled(o.viewHelper.viewDomNode,(function(e){return o._onMouseMove(e)}),zw(o.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),o._register(s.onMouseUp(o.viewHelper.viewDomNode,(function(e){return o._onMouseUp(e)}))),o._register(s.onMouseLeave(o.viewHelper.viewDomNode,(function(e){return o._onMouseLeave(e)}))),o._register(s.onMouseDown(o.viewHelper.viewDomNode,(function(e){return o._onMouseDown(e)})));return o._register(qh(o.viewHelper.viewDomNode,uh?"mousewheel":"wheel",(function(e){if(o.viewController.emitMouseWheel(e),o._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new Th(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=y_.getZoomLevel(),r=t.deltaY>0?1:-1;y_.setZoomLevel(n+r),t.preventDefault(),t.stopPropagation()}}}),!0)),o._context.addEventHandler(o),o}return Vw(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new sw(e,t).toPageCoordinates(),r=uw(this.viewHelper.viewDomNode);if(n.yr.y+r.height||n.xr.x+r.width)return null;var i=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(i,r,n,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||(e.timestampt.y+t.height){var a,u;o=r.getCurrentScrollTop()+(e.posy-t.y);if(a=Yw.getZoneAtCoord(this._context,o))if(u=this._helpPositionJumpOverViewZone(a))return new Rw(null,13,i,u);var l=r.getLineNumberAtVerticalOffset(o);return new Rw(null,13,i,new St(l,n.getLineMaxColumn(l)))}var c=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new Rw(null,13,i,new St(c,n.getLineMaxColumn(c))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var r=this._createMouseTarget(e,t);if(!r.position)return null;if(8===r.type||5===r.type){var i=this._helpPositionJumpOverViewZone(r.detail);if(i)return new Rw(r.element,r.type,r.mouseColumn,i,null,r.detail)}return r},t.prototype._helpPositionJumpOverViewZone=function(e){var t=new St(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),n=e.positionBefore,r=e.positionAfter;return n&&r?n.isBefore(t)?n:r:null},t.prototype._dispatchMouse=function(e,t){e.position&&this._viewController.dispatchMouse({position:e.position,mouseColumn:e.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:t,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},t}(Pt),Kw=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),e.prototype.setModifiers=function(e){this._altKey=e.altKey,this._ctrlKey=e.ctrlKey,this._metaKey=e.metaKey,this._shiftKey=e.shiftKey},e.prototype.setStartButtons=function(e){this._leftButton=e.leftButton,this._middleButton=e.middleButton},e.prototype.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var r=(new Date).getTime();r-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=r,t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=n,this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)},e.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}(),Gw=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function $w(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var Zw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.msTouchAction="none",i.viewHelper.linesContentDomNode.style.msContentZooming="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",(function(n){var r=n.pointerType;r!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?r===(n.MSPOINTER_TYPE_TOUCH||"touch")?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(uf(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),$w)),i._register(qh(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}return Gw(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new lw(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Uw),Xw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.viewHelper.linesContentDomNode.style.touchAction="none",i._installGestureHandlerTimeout=window.setTimeout((function(){if(i._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=i.viewHelper.linesContentDomNode,t.target=i.viewHelper.linesContentDomNode,i.viewHelper.linesContentDomNode.addEventListener("pointerdown",(function(n){var r=n.pointerType;"mouse"!==r?"touch"===r?(i._lastPointerType="touch",e.addPointer(n.pointerId)):(i._lastPointerType="pen",t.addPointer(n.pointerId)):i._lastPointerType="mouse"})),i._register(uf(i.viewHelper.linesContentDomNode,"MSGestureChange",(function(e){return i._onGestureChange(e)}),$w)),i._register(qh(i.viewHelper.linesContentDomNode,"MSGestureTap",(function(e){return i._onCaptureGestureTap(e)}),!0))}}),100),i._lastPointerType="mouse",i}return Gw(t,e),t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)},t.prototype._onCaptureGestureTap=function(e){var t=this,n=new lw(e,this.viewHelper.viewDomNode),r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout((function(){t.viewHelper.focusTextArea()}))},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(Uw),Jw=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return cp.addTarget(i.viewHelper.linesContentDomNode),i._register(qh(i.viewHelper.linesContentDomNode,ap.Tap,(function(e){return i.onTap(e)}))),i._register(qh(i.viewHelper.linesContentDomNode,ap.Change,(function(e){return i.onChange(e)}))),i._register(qh(i.viewHelper.linesContentDomNode,ap.Contextmenu,(function(e){return i._onContextMenu(new lw(e,i.viewHelper.viewDomNode),!1)}))),i}return Gw(t,e),t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new lw(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}(Uw),Qw=function(e){function t(t,n,r){var i=e.call(this)||this;return window.navigator.msPointerEnabled?i.handler=i._register(new Zw(t,n,r)):window.TouchEvent?i.handler=i._register(new Jw(t,n,r)):window.navigator.pointerEnabled||window.PointerEvent?i.handler=i._register(new Xw(t,n,r)):i.handler=i._register(new Uw(t,n,r)),i}return Gw(t,e),t.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},t}(Pt),eC=(n(332),function(){function e(e,t,n,r,i){this.value=e,this.selectionStart=t,this.selectionEnd=n,this.selectionStartPosition=r,this.selectionEndPosition=i}return e.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd){t=this.value.substring(this.selectionEnd,e);return this._finishDeduceEditorPosition(this.selectionEndPosition,t,1)}var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var r=0,i=-1;-1!==(i=t.indexOf("\n",i+1));)r++;return[e,n*t.length,r]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n,r){if(!e)return{text:"",replaceCharCnt:0};var i=e.value,o=e.selectionStart,s=e.selectionEnd,a=t.value,u=t.selectionStart,l=t.selectionEnd;r&&i.length>0&&o===s&&u===l&&!ln(a,i)&&cn(a,i)&&(o=0,s=0);var c=function(e,t){var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n0){var p=null;if(u===a.length?ln(a,i)&&(p=a.substring(i.length)):cn(a,i)&&(p=a.substring(0,a.length-i.length)),null!==p&&p.length>0&&(/\uFE0F/.test(p)||(d=p,kn.test(d))))return{text:p,replaceCharCnt:0}}return u===l?i===a&&0===o&&s===i.length&&u===a.length&&-1===a.indexOf("\n")&&function(e){for(var t=0,n=e.length;t500&&(d=d.substring(d.length-500,d.length)),g.length>500&&(g=g.substring(0,500)),o.length>1e3&&(o=o.substring(0,500)+String.fromCharCode(8230)+o.substring(o.length-500,o.length))}return new eC(d+o+g,d.length,d.length+o.length,new St(r.startLineNumber,r.startColumn),new St(r.endLineNumber,r.endColumn))},e._LINES_PER_PAGE=10,e}(),nC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rC={forceCopyWithSyntaxHighlighting:!1},iC=function(e){function t(t,n){var r=e.call(this)||this;r._onFocus=r._register(new Kt),r.onFocus=r._onFocus.event,r._onBlur=r._register(new Kt),r.onBlur=r._onBlur.event,r._onKeyDown=r._register(new Kt),r.onKeyDown=r._onKeyDown.event,r._onKeyUp=r._register(new Kt),r.onKeyUp=r._onKeyUp.event,r._onCut=r._register(new Kt),r.onCut=r._onCut.event,r._onPaste=r._register(new Kt),r.onPaste=r._onPaste.event,r._onType=r._register(new Kt),r.onType=r._onType.event,r._onCompositionStart=r._register(new Kt),r.onCompositionStart=r._onCompositionStart.event,r._onCompositionUpdate=r._register(new Kt),r.onCompositionUpdate=r._onCompositionUpdate.event,r._onCompositionEnd=r._register(new Kt),r.onCompositionEnd=r._onCompositionEnd.event,r._onSelectionChangeRequest=r._register(new Kt),r.onSelectionChangeRequest=r._onSelectionChangeRequest.event,r._host=t,r._textArea=r._register(new sC(n)),r._lastTextAreaEvent=0,r._asyncTriggerCut=r._register(new Ns((function(){return r._onCut.fire()}),0)),r._textAreaState=eC.EMPTY,r._selectionChangeListener=null,r.writeScreenReaderContent("ctor"),r._hasFocus=!1,r._isDoingComposition=!1,r._nextCommand=0,r._register(Kh(n.domNode,"keydown",(function(e){!r._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation(),e.equals(9)&&e.preventDefault(),r._onKeyDown.fire(e)}))),r._register(Kh(n.domNode,"keyup",(function(e){r._onKeyUp.fire(e)}))),r._register(qh(n.domNode,"compositionstart",(function(e){r._lastTextAreaEvent=1,r._isDoingComposition||(r._isDoingComposition=!0,uh||r._setAndWriteTextAreaState("compositionstart",eC.EMPTY),r._onCompositionStart.fire())})));var i=function(e,t){var n=r._textAreaState,i=eC.readFromTextArea(r._textArea);return[i,eC.deduceInput(n,i,e,t)]},o=function(e){var t=r._textAreaState,n=eC.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},s=function(e){return!(!uh||"ja"!==e)||!(!sh||0!==e.indexOf("zh-Han"))};return r._register(qh(n.domNode,"compositionupdate",(function(e){if(r._lastTextAreaEvent=2,s(e.locale)){var t=i(!1,!1),n=t[0],a=t[1];return r._textAreaState=n,r._onType.fire(a),void r._onCompositionUpdate.fire(e)}var u=o(e.data),l=u[0],c=u[1];r._textAreaState=l,r._onType.fire(c),r._onCompositionUpdate.fire(e)}))),r._register(qh(n.domNode,"compositionend",(function(e){if(r._lastTextAreaEvent=3,s(e.locale)){var t=i(!1,!1),n=t[0],a=t[1];r._textAreaState=n,r._onType.fire(a)}else{var u=o(e.data);n=u[0],a=u[1];r._textAreaState=n,r._onType.fire(a)}(uh||dh)&&(r._textAreaState=eC.readFromTextArea(r._textArea)),r._isDoingComposition&&(r._isDoingComposition=!1,r._onCompositionEnd.fire())}))),r._register(qh(n.domNode,"input",(function(){var e=8===r._lastTextAreaEvent;if(r._lastTextAreaEvent=4,r._textArea.setIgnoreSelectionChangeTime("received input event"),!r._isDoingComposition){var t=i(et.d,e&&et.d),n=t[0],o=t[1];0===o.replaceCharCnt&&1===o.text.length&&Cn(o.text.charCodeAt(0))||(r._textAreaState=n,0===r._nextCommand?""!==o.text&&r._onType.fire(o):(""!==o.text&&r._onPaste.fire({text:o.text}),r._nextCommand=0))}}))),r._register(qh(n.domNode,"cut",(function(e){r._lastTextAreaEvent=5,r._textArea.setIgnoreSelectionChangeTime("received cut event"),r._ensureClipboardGetsEditorSelection(e),r._asyncTriggerCut.schedule()}))),r._register(qh(n.domNode,"copy",(function(e){r._lastTextAreaEvent=6,r._ensureClipboardGetsEditorSelection(e)}))),r._register(qh(n.domNode,"paste",(function(e){if(r._lastTextAreaEvent=7,r._textArea.setIgnoreSelectionChangeTime("received paste event"),oC.canUseTextData(e)){var t=oC.getTextData(e);""!==t&&r._onPaste.fire({text:t})}else r._textArea.getSelectionStart()!==r._textArea.getSelectionEnd()&&r._setAndWriteTextAreaState("paste",eC.EMPTY),r._nextCommand=1}))),r._register(qh(n.domNode,"focus",(function(){r._lastTextAreaEvent=8,r._setHasFocus(!0)}))),r._register(qh(n.domNode,"blur",(function(){r._lastTextAreaEvent=9,r._setHasFocus(!1)}))),r}return nC(t,e),t.prototype._installSelectionChangeListener=function(){var e=this,t=0;return qh(document,"selectionchange",(function(n){if(e._hasFocus&&!e._isDoingComposition&&dh&&et.g){var r=Date.now(),i=r-t;if(t=r,!(i<5)){var o=r-e._textArea.getIgnoreSelectionChangeTime();if(e._textArea.resetSelectionChangeTime(),!(o<100)&&e._textAreaState.selectionStartPosition&&e._textAreaState.selectionEndPosition){var s=e._textArea.getValue();if(e._textAreaState.value===s){var a=e._textArea.getSelectionStart(),u=e._textArea.getSelectionEnd();if(e._textAreaState.selectionStart!==a||e._textAreaState.selectionEnd!==u){var l=e._textAreaState.deduceEditorPosition(a),c=e._host.deduceModelPosition(l[0],l[1],l[2]),d=e._textAreaState.deduceEditorPosition(u),h=e._host.deduceModelPosition(d[0],d[1],d[2]),f=new Yr(c.lineNumber,c.column,h.lineNumber,h.column);e._onSelectionChangeRequest.fire(f)}}}}}}))},t.prototype.dispose=function(){e.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(ah?this._setAndWriteTextAreaState("focusgain",eC.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(oC.canUseTextData(e)){var n=null;(function(){if(sh)return!1;if(ah){var e=oh.indexOf("Edge/"),t=parseInt(oh.substring(e+5,oh.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0})()&&(t.length<65536||rC.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),oC.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",eC.selectedText(t))},t}(Pt),oC=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),sC=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return nC(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var r=this._actual.domNode,i=document.activeElement===r,o=r.selectionStart,s=r.selectionEnd;if(i&&o===t&&s===n)lh&&window.parent!==window&&r.focus();else{if(i)return this.setIgnoreSelectionChangeTime("setSelectionRange"),r.setSelectionRange(t,n),void(lh&&window.parent!==window&&r.focus());try{var a=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}(r);this.setIgnoreSelectionChangeTime("setSelectionRange"),r.focus(),r.setSelectionRange(t,n),function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}(r,a)}catch(e){}}},t}(Pt),aC=(n(333),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),uC=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return aC(t,e),t}(fw),lC=Zl("editor.lineHighlightBackground",{dark:null,light:null,hc:null},Me("lineHighlight","Background color for the highlight of line at the cursor position.")),cC=Zl("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},Me("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),dC=Zl("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},Me("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),hC=Zl("editor.rangeHighlightBorder",{dark:null,light:null,hc:rc},Me("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),fC=Zl("editorCursor.foreground",{dark:"#AEAFAD",light:Tu.black,hc:Tu.white},Me("caret","Color of the editor cursor.")),pC=Zl("editorCursor.background",null,Me("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),gC=Zl("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},Me("editorWhitespaces","Color of whitespace characters in the editor.")),mC=Zl("editorIndentGuide.background",{dark:gC,light:gC,hc:gC},Me("editorIndentGuides","Color of the editor indentation guides.")),_C=Zl("editorIndentGuide.activeBackground",{dark:gC,light:gC,hc:gC},Me("editorActiveIndentGuide","Color of the active editor indentation guides.")),yC=Zl("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:Tu.white},Me("editorLineNumbers","Color of editor line numbers.")),vC=Zl("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:rc},Me("editorActiveLineNumber","Color of editor active line number"),!1,Me("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),bC=Zl("editorLineNumber.activeForeground",{dark:vC,light:vC,hc:vC},Me("editorActiveLineNumber","Color of editor active line number")),wC=Zl("editorRuler.foreground",{dark:"#5A5A5A",light:Tu.lightgrey,hc:Tu.white},Me("editorRuler","Color of the editor rulers.")),CC=(Zl("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},Me("editorCodeLensForeground","Foreground color of editor code lenses")),Zl("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},Me("editorBracketMatchBackground","Background color behind matching brackets")),Zl("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:nc},Me("editorBracketMatchBorder","Color for matching brackets boxes")),Zl("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},Me("editorOverviewRulerBorder","Color of the overview ruler border."))),SC=Zl("editorGutter.background",{dark:ed,light:ed,hc:ed},Me("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),xC=Zl("editorUnnecessaryCode.border",{dark:null,light:null,hc:Tu.fromHex("#fff").transparent(.8)},Me("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),LC=Zl("editorUnnecessaryCode.opacity",{dark:Tu.fromHex("#000a"),light:Tu.fromHex("#0007"),hc:null},Me("unnecessaryCodeOpacity","Opacity of unnecessary (unused) source code in the editor. For example, \"#000000c0\" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.")),kC=Zl("editorOverviewRuler.errorForeground",{dark:new Tu(new Mu(255,18,18,.7)),light:new Tu(new Mu(255,18,18,.7)),hc:new Tu(new Mu(255,50,50,1))},Me("overviewRuleError","Overview ruler marker color for errors.")),MC=Zl("editorOverviewRuler.warningForeground",{dark:Gc,light:Gc,hc:$c},Me("overviewRuleWarning","Overview ruler marker color for warnings.")),DC=Zl("editorOverviewRuler.infoForeground",{dark:Zc,light:Zc,hc:Xc},Me("overviewRuleInfo","Overview ruler marker color for infos."));jd((function(e,t){var n=e.getColor(ed);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var r=e.getColor(td);r&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+r+"; }");var i=e.getColor(SC);i&&t.addRule(".monaco-editor .margin { background-color: "+i+"; }");var o=e.getColor(dC);o&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+o+"; }");var s=e.getColor(hC);s&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+s+"; }");var a=e.getColor(gC);a&&t.addRule(".vs-whitespace { color: "+a+" !important; }")}));var EC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TC=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._readConfig(),n._lastCursorModelPosition=new St(1,1),n._renderResult=null,n._context.addEventHandler(n),n}return EC(t,e),t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight,this._renderLineNumbers=e.viewInfo.renderLineNumbers,this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers,this._renderFinalNewline=e.viewInfo.renderFinalNewline,this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft,this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth},t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return this._readConfig(),!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t),2===this._renderLineNumbers||3===this._renderLineNumbers},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new St(e,1));if(1!==t.column)return"";var n=t.lineNumber;if(!this._renderFinalNewline){var r=this._context.model.getLineCount(),i=this._context.model.getLineContent(n);if(n===r&&""===i)return""}if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var o=Math.abs(this._lastCursorModelPosition.lineNumber-n);return 0===o?''+n+"":String(o)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=et.c?this._lineHeight%2==0?" lh-even":" lh-odd":"",r=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='
',s=[],a=r;a<=i;a++){var u=a-r,l=this._getLineRenderLineNumber(a);s[u]=l?o+l+"
":""}this._renderResult=s}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(uC);jd((function(e,t){var n=e.getColor(yC);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var r=e.getColor(bC);r&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")}));var NC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OC=function(e){function t(n){var r=e.call(this,n)||this;return r._canUseLayerHinting=r._context.configuration.editor.canUseLayerHinting,r._contentLeft=r._context.configuration.editor.layoutInfo.contentLeft,r._glyphMarginLeft=r._context.configuration.editor.layoutInfo.glyphMarginLeft,r._glyphMarginWidth=r._context.configuration.editor.layoutInfo.glyphMarginWidth,r._domNode=kp(document.createElement("div")),r._domNode.setClassName(t.OUTER_CLASS_NAME),r._domNode.setPosition("absolute"),r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true"),r._glyphMarginBackgroundDomNode=kp(document.createElement("div")),r._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME),r._domNode.appendChild(r._glyphMarginBackgroundDomNode),r}return NC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft,this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth),!0},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(n)},t.CLASS_NAME="glyph-margin",t.OUTER_CLASS_NAME="margin",t}(gw),AC=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),IC=function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo},PC=function(e){this.type=2,this.selections=e},RC=function(){this.type=3},FC=function(){this.type=4},YC=function(e){this.type=5,this.isFocused=e},jC=function(){this.type=6},BC=function(e,t){this.type=7,this.fromLineNumber=e,this.toLineNumber=t},WC=function(e,t){this.type=8,this.fromLineNumber=e,this.toLineNumber=t},HC=function(e,t){this.type=9,this.fromLineNumber=e,this.toLineNumber=t},VC=function(e,t,n,r){this.type=10,this.range=e,this.verticalType=t,this.revealHorizontal=n,this.scrollType=r},zC=function(e){this.type=11,this.scrollWidth=e.scrollWidth,this.scrollLeft=e.scrollLeft,this.scrollHeight=e.scrollHeight,this.scrollTop=e.scrollTop,this.scrollWidthChanged=e.scrollWidthChanged,this.scrollLeftChanged=e.scrollLeftChanged,this.scrollHeightChanged=e.scrollHeightChanged,this.scrollTopChanged=e.scrollTopChanged},UC=function(e){this.type=12,this.ranges=e},qC=function(){this.type=15},KC=function(){this.type=13},GC=function(){this.type=14},$C=function(){this.type=16},ZC=function(e){function t(){var t=e.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return AC(t,e),t.prototype.dispose=function(){this._listeners=[],e.prototype.dispose.call(this)},t.prototype._beginEmit=function(){return this._collectorCnt++,1===this._collectorCnt&&(this._collector=new XC),this._collector},t.prototype._endEmit=function(){if(this._collectorCnt--,0===this._collectorCnt){var e=this._collector.finalize();this._collector=null,e.length>0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,r=t.length;n0)return new eC(r,r.length,r.length,n,n)}}return eC.EMPTY}return tC.fromEditorSelection(e,s,i._selections[0],0===i._accessibilitySupport)},deduceModelPosition:function(e,t,n){return i._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};return i._textAreaInput=i._register(new iC(a,i.textArea)),i._register(i._textAreaInput.onKeyDown((function(e){i._viewController.emitKeyDown(e)}))),i._register(i._textAreaInput.onKeyUp((function(e){i._viewController.emitKeyUp(e)}))),i._register(i._textAreaInput.onPaste((function(e){var t=nS.INSTANCE.get(e.text),n=!1,r=null;t&&(n=i._emptySelectionClipboard&&t.isFromEmptySelection,r=t.multicursorText),i._viewController.paste("keyboard",e.text,n,r)}))),i._register(i._textAreaInput.onCut((function(){i._viewController.cut("keyboard")}))),i._register(i._textAreaInput.onType((function(e){e.replaceCharCnt?i._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):i._viewController.type("keyboard",e.text)}))),i._register(i._textAreaInput.onSelectionChangeRequest((function(e){i._viewController.setSelection("keyboard",e)}))),i._register(i._textAreaInput.onCompositionStart((function(){var e=i._selections[0].startLineNumber,t=i._selections[0].startColumn;i._context.privateViewEventBus.emit(new VC(new Rr(e,t,e,t),0,!0,1));var n=i._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(i._visibleTextArea=new eS(i._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,tS?0:1),i._render()),i.textArea.setClassName("inputarea ime-input"),i._viewController.compositionStart("keyboard")}))),i._register(i._textAreaInput.onCompositionUpdate((function(e){i._visibleTextArea=uh?i._visibleTextArea.setWidth(0):i._visibleTextArea.setWidth(function(e,t){var n=document.createElement("canvas").getContext("2d");n.font=(r=t,i="normal",o=r.fontWeight,s=r.fontSize,a=r.lineHeight,u=r.fontFamily,i+" normal "+o+" "+s+"px / "+a+"px "+u);var r,i,o,s,a,u;var l=n.measureText(e);return lh?l.width+2:l.width}(e.data,i._fontInfo)),i._render()}))),i._register(i._textAreaInput.onCompositionEnd((function(){i._visibleTextArea=null,i._render(),i.textArea.setClassName("inputarea"),i._viewController.compositionEnd("keyboard")}))),i._register(i._textAreaInput.onFocus((function(){i._context.privateViewEventBus.emit(new YC(!0))}))),i._register(i._textAreaInput.onBlur((function(){i._context.privateViewEventBus.emit(new YC(!1))}))),i}return QC(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=xo(this._context.configuration.editor.wordSeparators),r=e.column,i=0;r>1;){var o=t.charCodeAt(r-2);if(0!==n.get(o)||i>50)return t.substring(r-1,e.column-1);i++,r--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!Cn(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){var t=new St(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,tS?0:1,tS?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,r,i){var o=this.textArea,s=this.textAreaCover;i?rw.applyFontInfo(o,this._fontInfo):(o.setFontSize(1),o.setLineHeight(this._fontInfo.lineHeight)),o.setTop(e),o.setLeft(t),o.setWidth(n),o.setHeight(r),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(rw.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),tS)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+OC.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+TC.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")},t}(gw);var iS=function(){function e(e,t,n,r){this.configuration=e,this.viewModel=t,this.outgoingEvents=n,this.commandDelegate=r}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this.commandDelegate.executeEditorCommand(e,t)},e.prototype.paste=function(e,t,n,r){this.commandDelegate.paste(e,t,n,r)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(Pl.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this._selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this._lastCursorLineSelectDrag(e.position):this._lastCursorLineSelect(e.position):e.inSelectionMode?this._lineSelectDrag(e.position):this._lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this._lastCursorWordSelect(e.position):e.inSelectionMode?this._wordSelectDrag(e.position):this._wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this._columnSelect(e.position,e.mouseColumn,!1):e.inSelectionMode?this._lastCursorMoveToSelect(e.position):this._createCursor(e.position,!1)):e.inSelectionMode?e.altKey?this._columnSelect(e.position,e.mouseColumn,!0):this._moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this._convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(Pl.MoveTo,this._usualArgs(e))},e.prototype._moveToSelect=function(e){this._execMouseCommand(Pl.MoveToSelect,this._usualArgs(e))},e.prototype._columnSelect=function(e,t,n){e=this._validateViewColumn(e),this._execMouseCommand(Pl.ColumnSelect,{position:this._convertViewToModelPosition(e),viewPosition:e,mouseColumn:t,setAnchorIfNotSet:n})},e.prototype._createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(Pl.CreateCursor,{position:this._convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype._lastCursorMoveToSelect=function(e){this._execMouseCommand(Pl.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype._wordSelect=function(e){this._execMouseCommand(Pl.WordSelect,this._usualArgs(e))},e.prototype._wordSelectDrag=function(e){this._execMouseCommand(Pl.WordSelectDrag,this._usualArgs(e))},e.prototype._lastCursorWordSelect=function(e){this._execMouseCommand(Pl.LastCursorWordSelect,this._usualArgs(e))},e.prototype._lineSelect=function(e){this._execMouseCommand(Pl.LineSelect,this._usualArgs(e))},e.prototype._lineSelectDrag=function(e){this._execMouseCommand(Pl.LineSelectDrag,this._usualArgs(e))},e.prototype._lastCursorLineSelect=function(e){this._execMouseCommand(Pl.LastCursorLineSelect,this._usualArgs(e))},e.prototype._lastCursorLineSelectDrag=function(e){this._execMouseCommand(Pl.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype._selectAll=function(){this._execMouseCommand(Pl.SelectAll,{})},e.prototype._convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e.prototype.emitMouseWheel=function(e){this.outgoingEvents.emitMouseWheel(e)},e}(),oS=function(){function e(e){this._createLine=e,this._set(1,[])}return e.prototype.flush=function(){this._set(1,[])},e.prototype._set=function(e,t){this._lines=t,this._rendLineNumberStart=e},e.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},e.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},e.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},e.prototype.getCount=function(){return this._lines.length},e.prototype.getLine=function(e){var t=e-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),r=this.getEndLineNumber();if(tr)return null;for(var o=0,s=0,a=n;a<=r;a++){var u=a-this._rendLineNumberStart;e<=a&&a<=t&&(0===s?(o=u,s=1):s++)}if(e=n&&o<=r&&(this._lines[o-this._rendLineNumberStart].onContentChanged(),i=!0);return i},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,r=this.getStartLineNumber(),i=this.getEndLineNumber();if(e<=r)return this._rendLineNumberStart+=n,null;if(e>i)return null;if(n+e>i)return this._lines.splice(e-this._rendLineNumberStart,i-e+1);for(var o=[],s=0;sn))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged(),r=!0}}return r},e}(),sS=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new oS((function(){return t._host.createVisibleLine()}))}return e.prototype._createDomNode=function(){var e=kp(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,r=t.length;nt)(u=t)<=(s=Math.min(n,i.rendLineNumberStart-1))&&(this._insertLinesBefore(i,u,s,r,t),i.linesLength+=s-u+1);else if(i.rendLineNumberStart0&&(this._removeLinesBefore(i,a),i.linesLength-=a)}if(i.rendLineNumberStart=t,i.rendLineNumberStart+i.linesLength-1n){var s,a,u=Math.max(0,n-i.rendLineNumberStart+1);(a=(s=i.linesLength-1)-u+1)>0&&(this._removeLinesAfter(i,a),i.linesLength-=a)}return this._finishRendering(i,!1,r),i},e.prototype._renderUntouchedLines=function(e,t,n,r,i){for(var o=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=o+a;s[a].layoutLine(u,r[u-i])}},e.prototype._insertLinesBefore=function(e,t,n,r,i){for(var o=[],s=0,a=t;a<=n;a++)o[s++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;s--){var a=e.lines[s];r[s]&&(a.setDomNode(o),o=o.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var r=document.createElement("div");r.innerHTML=t;for(var i=0;i'),r.appendASCIIString(i),r.appendASCIIString(""),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),dS=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return uS(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(lS),hS=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),rw.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return uS(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(rw.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(lS),fS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pS=function(e,t){this.top=e,this.left=t},gS=function(e){function t(t,n){var r=e.call(this,t)||this;return r._viewDomNode=n,r._widgets={},r.domNode=kp(document.createElement("div")),mw.write(r.domNode,1),r.domNode.setClassName("contentWidgets"),r.domNode.setPosition("absolute"),r.domNode.setTop(0),r.overflowingContentWidgetsDomNode=kp(document.createElement("div")),mw.write(r.overflowingContentWidgetsDomNode,2),r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),r}return fS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.onConfigurationChanged=function(e){for(var t=0,n=Object.keys(this._widgets);t=r,c=a,d=i.viewportHeight-a>=r,h=e.left,f=t.left;return h+n>i.scrollLeft+i.viewportWidth&&(h=i.scrollLeft+i.viewportWidth-n),f+n>i.scrollLeft+i.viewportWidth&&(f=i.scrollLeft+i.viewportWidth-n),h=22,v=p+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;g+n+20>_&&(g-=o=g-(_-n-20),c-=o);m+n+20>_&&(m-=o=m-(_-n-20),d-=o);g<0&&(g-=o=g,c-=o);m<0&&(m-=o=m,d-=o);return this._fixedOverflowWidgets&&(u=f,l=p,c=g,d=m),{fitsAbove:y,aboveTop:u,aboveLeft:c,fitsBelow:v,belowTop:l,belowLeft:d}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new pS(e.top,e.left+this._contentLeft)},e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop,r=new pS(n,t.left),i=this._viewPosition.lineNumber,o=t.left;if(this._viewRange){var s=e.linesVisibleRangesForRange(this._viewRange,!1);if(s&&s.length>0)for(var a=s.length-1;a>=0;a--){var u=s[a];if(u.lineNumber>=i){u.lineNumber>i&&(i=u.lineNumber,o=1073741824);for(var l=0,c=u.ranges.length;le.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),_S=(n(334),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),yS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return _S(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'
':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(uC);jd((function(e,t){var n=e.getColor(lC);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(cC)){var r=e.getColor(cC);r&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}}));n(335);var vS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return vS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var r=e.selections[0].isEmpty();return this._selectionIsEmpty!==r?(this._selectionIsEmpty=r,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine())n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"");return'
'}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(uC);jd((function(e,t){var n=e.getColor(lC);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var r=e.getColor(cC);r&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}}));n(336);var wS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return wS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;it.options.zIndex)return 1;var n=e.options.className,r=t.options.className;return nr?1:Rr.compareRangesUsingStarts(e.range,t.range)}));for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++){l[c-a]=""}this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber,s=0,a=t.length;s',c=Math.max(u.range.startLineNumber,i),d=Math.min(u.range.endLineNumber,o),h=c;h<=d;h++){n[h-i]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var r=String(this._lineHeight),i=e.visibleRange.startLineNumber,o=null,s=!1,a=null,u=0,l=t.length;u';s[d]+=m}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(uC),SS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xS=function(e){function t(t,n,r,i){var o=e.call(this,t)||this,s=o._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:r.domNode,className:"editor-scrollable "+Rd(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity,fastScrollSensitivity:s.fastScrollSensitivity};o.scrollbar=o._register(new Jp(n.domNode,a,o._context.viewLayout.scrollable)),mw.write(o.scrollbar.getDomNode(),5),o.scrollbarDomNode=kp(o.scrollbar.getDomNode()),o.scrollbarDomNode.setPosition("absolute"),o._setLayout();var u=function(e,t,n){var r={};if(t){var i=e.scrollTop;i&&(r.scrollTop=o._context.viewLayout.getCurrentScrollTop()+i,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(r.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}o._context.viewLayout.setScrollPositionNow(r)};return o._register(qh(r.domNode,"scroll",(function(e){return u(r.domNode,!0,!0)}))),o._register(qh(n.domNode,"scroll",(function(e){return u(n.domNode,!0,!1)}))),o._register(qh(i.domNode,"scroll",(function(e){return u(i.domNode,!0,!1)}))),o._register(qh(o.scrollbarDomNode.domNode,"scroll",(function(e){return u(o.scrollbarDomNode.domNode,!0,!1)}))),o}return SS(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor,n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity,fastScrollSensitivity:t.viewInfo.scrollbar.fastScrollSensitivity};this.scrollbar.updateOptions(n)}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+Rd(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(gw),LS=(n(337),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),kS=function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)},MS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return LS(t,e),t.prototype._render=function(e,t,n){for(var r=[],i=e;i<=t;i++){r[i-e]=[]}if(0===n.length)return r;n.sort((function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',s=[],a=t;a<=n;a++){var u=a-t,l=r[u];0===l.length?s[u]="":s[u]='
=this._renderResult.length?"":this._renderResult[n]},t}(MS),ES=(n(338),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),TS=function(e){function t(t){var n=e.call(this)||this;n._context=t,n._primaryLineNumber=0,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._activeIndentEnabled=n._context.configuration.editor.viewInfo.highlightActiveIndentGuide;var r=n._context.configuration.editor.wrappingInfo.wrappingColumn;return n._maxIndentLeft=-1===r?-1:r*n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return ES(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){if(e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides,this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide),e.wrappingInfo||e.fontInfo){var t=this._context.configuration.editor.wrappingInfo.wrappingColumn;this._maxIndentLeft=-1===t?-1:t*this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth}return!0},t.prototype.onCursorStateChanged=function(e){var t=e.selections[0],n=t.isEmpty()?t.positionLineNumber:0;return this._primaryLineNumber!==n&&(this._primaryLineNumber=n,!0)},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,r=this._context.model.getOptions().indentSize*this._spaceWidth,i=e.scrollWidth,o=this._lineHeight,s=this._context.model.getLinesIndentGuides(t,n),a=0,u=0,l=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var c=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);a=c.startLineNumber,u=c.endLineNumber,l=c.indent}for(var d=[],h=t;h<=n;h++){for(var f=a<=h&&h<=u,p=h-t,g=s[p],m="",_=e.visibleRangeForPosition(new St(h,1)),y=_?_.left:0,v=1;v<=g;v++){if(m+='
',(y+=r)>i||this._maxIndentLeft>0&&y>this._maxIndentLeft)break}d[p]=m}this._renderResult=d}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(uC);jd((function(e,t){var n=e.getColor(mC);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var r=e.getColor(_C)||n;r&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")}));n(339);var NS=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OS=function(){function e(){this._currentVisibleRange=new Rr(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),AS=function(e,t,n,r,i,o){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=r,this.stopScrollTop=i,this.scrollType=o},IS=function(e){function t(t,n){var r=e.call(this,t)||this;r._linesContent=n,r._textRangeRestingSpot=document.createElement("div"),r._visibleLines=new sS(r),r.domNode=r._visibleLines.domNode;var i=r._context.configuration;return r._lineHeight=i.editor.lineHeight,r._typicalHalfwidthCharacterWidth=i.editor.fontInfo.typicalHalfwidthCharacterWidth,r._isViewportWrapping=i.editor.wrappingInfo.isViewportWrapping,r._revealHorizontalRightPadding=i.editor.viewInfo.revealHorizontalRightPadding,r._scrollOff=i.editor.viewInfo.cursorSurroundingLines,r._canUseLayerHinting=i.editor.canUseLayerHinting,r._viewLineOptions=new Mw(i,r._context.theme.type),mw.write(r.domNode,7),r.domNode.setClassName("view-lines"),rw.applyFontInfo(r.domNode,i.editor.fontInfo),r._maxLineWidth=0,r._asyncUpdateLineWidths=new Ns((function(){r._updateLineWidthsSlow()}),200),r._lastRenderedData=new OS,r._horizontalRevealRequest=null,r}return NS(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new Dw(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding,this._scrollOff=t.editor.viewInfo.cursorSurroundingLines),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&rw.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration,t=new Mw(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;for(var n=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber(),i=n;i<=r;i++){this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions)}return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=!1,i=t;i<=n;i++)r=this._visibleLines.getVisibleLine(i).onSelectionChanged()||r;return r},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=t;r<=n;r++)this._visibleLines.getVisibleLine(r).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new AS(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var r=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&r>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var r=this._getLineNumberFor(n);if(-1===r)return null;if(r<1||r>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(r))return new St(r,1);var i=this._visibleLines.getStartLineNumber(),o=this._visibleLines.getEndLineNumber();if(ro)return null;var s=this._visibleLines.getVisibleLine(r).getColumnOfNodeOffset(r,e,t),a=this._context.model.getLineMinColumn(r);return sn?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber,r=Rr.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!r)return null;var i=[],o=0,s=new kw(this.domNode.domNode,this._textRangeRestingSpot),a=0;t&&(a=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new St(r.startLineNumber,1)).lineNumber);for(var u=this._visibleLines.getStartLineNumber(),l=this._visibleLines.getEndLineNumber(),c=r.startLineNumber;c<=r.endLineNumber;c++)if(!(cl)){var d=c===r.startLineNumber?r.startColumn:1,h=c===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(c),f=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,s);if(f&&0!==f.length){if(t&&co)){var a=s===t.startLineNumber?t.startColumn:1,u=s===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(s),l=this._visibleLines.getVisibleLine(s).getVisibleRangesForRange(a,u,r);l&&0!==l.length&&(n=n.concat(l))}return 0===n.length?null:n},t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new Rr(e.lineNumber,e.column,e.lineNumber,e.column));return t?t[0]:null},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),r=1,i=!0,o=t;o<=n;o++){var s=this._visibleLines.getVisibleLine(o);!e||s.getWidthIsFast()?r=Math.max(r,s.getWidth()):i=!1}return i&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(r),i},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,r=this._horizontalRevealRequest.endColumn,i=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var o=this._computeScrollLeftToRevealRange(t,n,r);this._isViewportWrapping||this._ensureMaxLineWidth(o.maxHorizontalOffset),0===i?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:o.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:o.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidthc&&(c=f.left+f.width)}return i=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),c+=this._revealHorizontalRightPadding,{scrollLeft:this._computeMinimumScrolling(s,a,l,c),maxHorizontalOffset:i}},t.prototype._computeMinimumScrolling=function(e,t,n,r,i,o){i=!!i,o=!!o;var s=(t|=0)-(e|=0);return(r|=0)-(n|=0)t?Math.max(0,r-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(gw),PS=(n(340),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),RS=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return PS(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],r=0,i=0,o=t.length;i
',o=[],s=t;s<=n;s++){for(var a=s-t,u=r[a],l="",c=0,d=u.length;c';i[s]=u}this._renderResult=i},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(MS),jS=(n(342),function(){function e(t,n,r,i){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(r),this.a=e._clamp(i)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e.Empty=new e(0,0,0,0),e}()),BS=function(){function e(){var e=this;this._onDidChange=new Kt,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Aa.onDidChange((function(t){t.changedColorMap&&e._updateColorMap()}))}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=Aa.getColorMap();if(!e)return this._colors=[jS.Empty],void(this._backgroundIsLight=!0);this._colors=[jS.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),WS=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),r=0,i=e.length;rt.width||r+4>t.height)console.warn("bad render request outside image data");else{var u=a?this.x2charDataLight:this.x2charData,l=e._getChIndex(i),c=4*t.width,d=s.r,h=s.g,f=s.b,p=o.r-d,g=o.g-h,m=o.b-f,_=t.data,y=4*l*2,v=r*c+4*n,b=u[y]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+1]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+2]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+3]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+4]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+5]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b,v+=c;b=u[y+6]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b;b=u[y+7]/255;_[v+4]=d+p*b,_[v+5]=h+g*b,_[v+6]=f+m*b}},e.prototype.x1RenderChar=function(t,n,r,i,o,s,a){if(n+1>t.width||r+2>t.height)console.warn("bad render request outside image data");else{var u=a?this.x1charDataLight:this.x1charData,l=e._getChIndex(i),c=4*t.width,d=s.r,h=s.g,f=s.b,p=o.r-d,g=o.g-h,m=o.b-f,_=t.data,y=2*l*1,v=r*c+4*n,b=u[y]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b,v+=c;b=u[y+1]/255;_[v+0]=d+p*b,_[v+1]=h+g*b,_[v+2]=f+m*b}},e.prototype.x2BlockRenderChar=function(e,t,n,r,i,o){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=i.r,u=i.g,l=i.b,c=a+.5*(r.r-a),d=u+.5*(r.g-u),h=l+.5*(r.b-l),f=e.data,p=n*s+4*t;f[p+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h,f[p+4]=c,f[p+5]=d,f[p+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,r,i,o){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=i.r,u=i.g,l=i.b,c=a+.5*(r.r-a),d=u+.5*(r.g-u),h=l+.5*(r.b-l),f=e.data,p=n*s+4*t;f[p+0]=c,f[p+1]=d,f[p+2]=h,f[(p+=s)+0]=c,f[p+1]=d,f[p+2]=h}},e}();function HS(e){for(var t=new Uint8ClampedArray(e.length),n=0,r=e.length;n=s+b)return new e(a,u,y,v,c,w=1,s);var w=Math.max(1,Math.floor(n-v*h/f));return l&&l.scrollHeight===u&&(l.scrollTop>a&&(w=Math.min(w,l.startLineNumber)),l.scrollTopZS)n._context.viewLayout.setScrollPositionNow({scrollTop:i.scrollTop});else{var s=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:i.getDesiredScrollTopFromDelta(s)})}}),(function(){n._slider.toggleClassName("active",!1)}))}})),n}return KS(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new tx(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new XS(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.onDecorationsChanged=function(e){return this._renderDecorations=!0,!0},t.prototype.onThemeChanged=function(e){return this._context.model.invalidateMinimapColorCache(),this._renderDecorations=!!this._lastDecorations,!!this._lastDecorations},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var t=JS.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth,r=Math.min(this._options.minimapWidth,Math.round(n*$S(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(r),this._sliderHorizontal.setWidth(this._options.minimapWidth-r),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this.renderDecorations(t),this._lastRenderData=this.renderLines(t)},t.prototype.renderDecorations=function(e){if(this._renderDecorations){this._renderDecorations=!1;var t=this._context.model.getDecorationsInViewport(new Rr(e.startLineNumber,1,e.endLineNumber,this._context.model.getLineMaxColumn(e.endLineNumber))),n=this._options,r=n.renderMinimap,i=n.canvasInnerWidth,o=n.canvasInnerHeight,s=GS(r),a=$S(r),u=this._context.model.getOptions().tabSize,l=this._decorationsCanvas.domNode.getContext("2d");l.clearRect(0,0,i,o);for(var c=new Map,d=0;di?c.length-1:y-1;if(C>0){var S=c[C]-w||2;this.renderDecoration(e,n.options.minimap,w,l,S,o)}d&&this.renderLineHighlight(e,n.options.minimap,l,o)},t.prototype.renderLineHighlight=function(e,t,n,r){var i=t.getColor(this._context.theme);e.fillStyle=i&&i.transparent(.5).toString()||"",e.fillRect(0,n,e.canvas.width,r)},t.prototype.renderDecoration=function(e,t,n,r,i,o){var s=t.getColor(this._context.theme);e.fillStyle=s&&s.toString()||"",e.fillRect(n,r,i,o)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,r=e.startLineNumber,i=e.endLineNumber,o=GS(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new ex(e,s.imageData,s.lines)}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,r,i,o,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(r,i,d),f=h.tabSize,p=this._tokensColorTracker.getColor(2),g=this._tokensColorTracker.backgroundIsLight(),m=0,_=[],y=0,v=i-r+1;y=0&&Lh)return;var w=l.charCodeAt(p);if(9===w){var C=a-(p+g)%a;g+=C-1,f+=C*d}else if(32===w)f+=d;else for(var S=En(w)?2:1,x=0;xh)return}},t}(gw);jd((function(e,t){var n=e.getColor(Rc);if(n){var r=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=e.getColor(Fc);if(i){var o=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var s=e.getColor(Yc);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(Pc);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")}));n(343);var rx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ix=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=kp(document.createElement("div")),mw.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return rx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets={}},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=kp(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;if(null!==e.preference)if(0===e.preference)t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else 2===e.preference&&(t.setTop(0),t.domNode.style.right="50%");else t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,r=t.length;n=3){var i,o,s,a=r-(i=Math.floor(r/3))-(o=Math.floor(r/3)),u=(s=e)+i;return[[0,s,u,s,s+i+a,s,u,s],[0,i,a,i+a,o,i+a+o,a+o,i+a+o]]}if(2===n)return[[0,s=e,s,s,s+(i=Math.floor(r/2)),s,s,s],[0,i,i,i,o=r-i,i+o,i+o,i+o]];return[[0,e,e,e,e,e,e,e],[0,r,r,r,r,r,r,r]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),ax=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=kp(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._updateSettings(!1),n._tokensColorTrackerListener=Aa.onDidChange((function(e){e.changedColorMap&&n._updateSettings(!0)})),n._cursorPositions=[],n}return ox(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new sx(this._context.configuration,this._context.theme);return(!this._settings||!this._settings.equals(t))&&(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),!0)},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;tt&&(E=t-a),x=E-a,N=E+a;x>y+1||w!==m?(0!==v&&u.fillRect(l[m],_,c[m],y-_),m=w,_=x,y=N):N>y&&(y=N)}u.fillRect(l[m],_,c[m],y-_)}if(!this._settings.hideCursor&&this._settings.cursorColor){var L=2*this._settings.pixelRatio|0,k=L/2|0,M=this._settings.x[7],D=this._settings.w[7];u.fillStyle=this._settings.cursorColor;for(_=-100,y=-100,v=0,b=this._cursorPositions.length;vt&&(E=t-k);var N=(x=E-k)+L;x>y+1?(0!==v&&u.fillRect(M,_,D,y-_),_=x,y=N):N>y&&(y=N)}u.fillRect(M,_,D,y-_)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(gw),ux=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),lx=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorn&&(h=n-f);var p=u.color,g=this._color2Id[p];g||(g=++this._lastAssignedId,this._color2Id[p]=g,this._id2Color[g]=p);var m=new ux(h-f,h+f,g);u.setColorZone(m),o.push(m)}return this._colorZonesInvalid=!1,o.sort(ux.compare),o},e}(),dx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hx=function(e){function t(t,n){var r=e.call(this)||this;return r._context=t,r._domNode=kp(document.createElement("canvas")),r._domNode.setClassName(n),r._domNode.setPosition("absolute"),r._domNode.setLayerHinting(!0),r._zoneManager=new cx((function(e){return r._context.viewLayout.getVerticalOffsetForLineNumber(e)})),r._zoneManager.setDOMWidth(0),r._zoneManager.setDOMHeight(0),r._zoneManager.setOuterHeight(r._context.viewLayout.getScrollHeight()),r._zoneManager.setLineHeight(r._context.configuration.editor.lineHeight),r._zoneManager.setPixelRatio(r._context.configuration.editor.pixelRatio),r._context.addEventHandler(r),r}return dx(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),r=this._zoneManager.getId2Color(),i=this._domNode.domNode.getContext("2d");return i.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(i,n,r,e),!0},t.prototype._renderOneLane=function(e,t,n,r){for(var i=0,o=0,s=0,a=0,u=t;a=d?s=Math.max(s,h):(e.fillRect(0,o,r,s-o),o=d,s=h)}e.fillRect(0,o,r,s-o)},t}(fw),fx=(n(344),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),px=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=kp(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return fx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e0;){(o=kp(document.createElement("div"))).setClassName("view-ruler"),o.setWidth(n),this.domNode.appendChild(o),this._renderedRulers.push(o),r--}else for(var i=e-t;i>0;){var o=this._renderedRulers.pop();this.domNode.removeChild(o),i--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo,t=0;return t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth,this._width!==t&&(this._width=t,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(gw);jd((function(e,t){var n=e.getColor(Pc);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}));n(346);var _x=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yx=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},vx=function(e,t){this.lineNumber=e,this.ranges=t};function bx(e){return new yx(e)}function wx(e){return new vx(e.lineNumber,e.ranges.map(bx))}var Cx=uh,Sx=function(e){function t(t){var n=e.call(this)||this;return n._previousFrameVisibleRangesWithStyle=[],n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._roundedSelection=n._context.configuration.editor.viewInfo.roundedSelection,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return _x(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t1)return!0}return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var r=this._typicalHalfwidthCharacterWidth/4,i=null,o=null;if(n&&n.length>0&&t.length>0){var s=t[0].lineNumber;if(s===e.startLineNumber)for(var a=0;!i&&a=0;a--)n[a].lineNumber===u&&(o=n[a].ranges[0]);i&&!i.startStyle&&(i=null),o&&!o.startStyle&&(o=null)}a=0;for(var l=t.length;a0){var g=t[a-1].ranges[0].left,m=t[a-1].ranges[0].left+t[a-1].ranges[0].width;xx(d-g)g&&(f.top=1),xx(h-m)'},t.prototype._actualRenderOneSelection=function(e,n,r,i){for(var o=i.length>0&&i[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=i.length>0?i[0].lineNumber:0,l=i.length>0?i[i.length-1].lineNumber:0,c=0,d=i.length;c1,l)}}this._previousFrameVisibleRangesWithStyle=o,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(uC);function xx(e){return e<0?-e:e}jd((function(e,t){var n=e.getColor(sd);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var r=e.getColor(ud);r&&t.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=e.getColor(ad);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")}));n(347);var Lx=function(e,t,n,r,i,o){this.top=e,this.left=t,this.width=n,this.height=r,this.textContent=i,this.textContentClassName=o},kx=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=kp(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),rw.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this._position=new St(1,1),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(rw.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this._position=e,!0},e.prototype._prepareRender=function(e){var t="",n="";if(this._cursorStyle===ri.Line||this._cursorStyle===ri.LineThin){var r,i=e.visibleRangeForPosition(this._position);if(!i)return null;if(this._cursorStyle===ri.Line){if((r=Af(this._lineCursorWidth>0?this._lineCursorWidth:2))>2)t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)}else r=Af(1);var o=i.left;r>=2&&o>=1&&(o-=1);var s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Lx(s,o,r,this._lineHeight,t,n)}var a=e.linesVisibleRangesForRange(new Rr(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!a||0===a.length||0===a[0].ranges.length)return null;var u=a[0].ranges[0],l=u.width<1?this._typicalHalfwidthCharacterWidth:u.width;if(this._cursorStyle===ri.Block){var c=this._context.model.getViewLineData(this._position.lineNumber);t=c.content.charAt(this._position.column-1),Cn(c.content.charCodeAt(this._position.column-1))&&(t+=c.content.charAt(this._position.column));var d=c.tokens.findTokenIndexAtOffset(this._position.column-1);n=c.tokens.getClassName(d)}var h=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,f=this._lineHeight;return this._cursorStyle!==ri.Underline&&this._cursorStyle!==ri.UnderlineThin||(h+=this._lineHeight-2,f=2),new Lx(h,u.left,l,f,t,n)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e}(),Mx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dx=function(e){function t(t){var n=e.call(this,t)||this;return n._readOnly=n._context.configuration.editor.readOnly,n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking,n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle,n._cursorSmoothCaretAnimation=n._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation,n._selectionIsEmpty=!0,n._isVisible=!1,n._primaryCursor=new kx(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=kp(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new Es,n._cursorFlatBlinkInterval=new Ts,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return Mx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._cursorSmoothCaretAnimation=this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;tt.length){var o=this._secondaryCursors.length-t.length;for(r=0;rn){var o=t-n;for(i=0;i=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;td&&S.index--}e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),i--}}}}},e}(),Vx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var zx=function(e,t,n){this.selections=e,this.source=t,this.reason=n},Ux=function(){function e(e,t){this.modelVersionId=e.getVersionId(),this.cursorState=t.getAll()}return e.prototype.equals=function(e){if(!e)return!1;if(this.modelVersionId!==e.modelVersionId)return!1;if(this.cursorState.length!==e.cursorState.length)return!1;for(var t=0,n=this.cursorState.length;t=t.length)return!1;if(!t[n].strictContainsRange(e[n]))return!1}return!0},e}(),Kx=function(e){function t(t,n,r){var i=e.call(this)||this;i._onDidReachMaxCursorCount=i._register(new Kt),i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event,i._onDidAttemptReadOnlyEdit=i._register(new Kt),i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event,i._onDidChange=i._register(new Kt),i.onDidChange=i._onDidChange.event,i._configuration=t,i._model=n,i._knownModelVersionId=i._model.getVersionId(),i._viewModel=r,i.context=new Qu(i._configuration,i._model,i._viewModel),i._cursors=new Hx(i.context),i._isHandling=!1,i._isDoingComposition=!1,i._columnSelectData=null,i._autoClosedActions=[],i._prevEditOperationType=0,i._register(i._model.onDidChangeRawContent((function(e){if(i._knownModelVersionId=e.versionId,!i._isHandling){var t=e.containsEvent(1);i._onModelContentChanged(t)}}))),i._register(r.addEventListener((function(e){(function(e){for(var t=0,n=e.length;t0)for(var e=this._cursors.getSelections(),t=0;tt.MAX_CURSOR_COUNT&&(r=r.slice(0,t.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var i=new Ux(this._model,this);this._cursors.setStates(r),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,n,i)},t.prototype.setColumnSelectData=function(e){this._columnSelectData=e},t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)},t.prototype.revealRange=function(e,t,n,r){this.emitCursorRevealRange(t,n,e,r)},t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})},t.prototype.saveState=function(){for(var e=[],t=this._cursors.getSelections(),n=0,r=t.length;n0&&this._pushAutoClosedAction(n,r),this._prevEditOperationType=e.type}e.shouldPushStackElementAfter&&this._model.pushStackElement()}},t.prototype._interpretCommandResult=function(e){e&&0!==e.length||(e=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(e),this._cursors.normalize()},t.prototype._emitStateChangedIfNecessary=function(e,t,n){var r=new Ux(this._model,this);if(r.equals(n))return!1;var i=this._cursors.getSelections(),o=this._cursors.getViewSelections();try{this._beginEmit().emit(new PC(o))}finally{this._endEmit()}return n&&n.cursorState.length===r.cursorState.length&&!r.cursorState.some((function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)}))||this._onDidChange.fire(new zx(i,e||"keyboard",t)),!0},t.prototype._revealRange=function(e,t,n,r){var i=this._cursors.getViewPositions(),o=i[0];if(1===e)for(var s=1;s1)return;var a=new Rr(o.lineNumber,o.column,o.lineNumber,o.column);this.emitCursorRevealRange(a,t,n,r)},t.prototype.emitCursorRevealRange=function(e,t,n,r){try{this._beginEmit().emit(new VC(e,t,n,r))}finally{this._endEmit()}},t.prototype._findAutoClosingPairs=function(e){if(!e.length)return null;for(var t=[],n=0,r=e.length;n=0)return null;var o=i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!o)return null;var s=o[1],a=this.context.config.autoClosingPairsClose2.get(s);if(!a||1!==a.length)return null;var u=a[0].open,l=i.text.length-o[2].length-1,c=i.text.lastIndexOf(u,l-1);if(-1===c)return null;t.push([c,l])}return t},t.prototype.executeEdits=function(e,t,n){var r=this,i=null;"snippet"===e&&(i=this._findAutoClosingPairs(t)),i&&(t[0]._isTracked=!0);var o=[],s=[],a=this._model.pushEditOperations(this.getSelections(),t,(function(e){if(i)for(var t=0,a=i.length;t0&&this._pushAutoClosedAction(o,s)},t.prototype.trigger=function(e,t,n){var r=Tl;if(t!==r.CompositionStart)if(t===r.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.editor.readOnly)this._onDidAttemptReadOnlyEdit.fire(void 0);else{var i=new Ux(this._model,this),o=0;t!==r.Undo&&t!==r.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case r.Type:this._type(e,n.text);break;case r.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case r.Paste:o=4,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case r.Cut:this._cut();break;case r.Undo:o=5,this._interpretCommandResult(this._model.undo());break;case r.Redo:o=6,this._interpretCommandResult(this._model.redo());break;case r.ExecuteCommand:this._externalExecuteCommand(n);break;case r.ExecuteCommands:this._externalExecuteCommands(n);break;case r.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Ue(e)}this._isHandling=!1,t!==r.Undo&&t!==r.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(e,o,i)&&this._revealRange(0,0,!0,0)}else this._isDoingComposition=!0},t.prototype._interpretCompositionEnd=function(e){if(!this._isDoingComposition&&"keyboard"===e){var t=qx.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Ll.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t))}},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Ll.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,r=t.length;n0&&(o[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,o,(function(n){for(var r=[],i=0;i0?(r[n].sort(u),l[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return r[n]},getTrackedSelection:function(t){var n=parseInt(t,10),r=e.model._getTrackedRange(e.trackedRanges[n]);return 0===e.trackedRangesDirection[n]?new Yr(r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn):new Yr(r.endLineNumber,r.endColumn,r.startLineNumber,r.startColumn)}})):l[n]=e.selectionsBefore[n]};for(i=0;ii.identifier.major?r.identifier.major:i.identifier.major).toString()]=!0;for(var s=0;s0&&n--}}return t},e}(),$x=function(){function e(e,t,n,r,i,o){this.id=e,this.label=t,this.alias=n,this._precondition=r,this._run=i,this._contextKeyService=o}return e.prototype.isSupported=function(){return this._contextKeyService.contextMatchesRules(this._precondition)},e.prototype.run=function(){if(!this.isSupported())return Promise.resolve(void 0);var e=this._run();return e||Promise.resolve(void 0)},e}();function Zx(e,t,n,r,i,o){for(var s="
",a=r,u=0,l=0,c=t.getCount();l0;)h+=" ",p--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="�";break;case 13:h+="​";break;case 32:h+=" ";break;default:h+=String.fromCharCode(f)}}if(s+=''+h+"",d>i||a>=i)break}}return s+="
"}var Xx=function(){function e(){this._instanceId=On(++e.INSTANCE_COUNT),this._heights=[],this._minWidths=[],this._ids=[],this._afterLineNumbers=[],this._ordinals=[],this._prefixSum=[],this._prefixSumValidIndex=-1,this._whitespaceId2Index={},this._lastWhitespaceId=0,this._minWidth=-1}return e.findInsertionIndex=function(e,t,n,r){for(var i=0,o=e.length;i>>1;t===e[s]?r=t&&(this._whitespaceId2Index[l]=c+1)}this._whitespaceId2Index[e]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){t|=0,n|=0;var r=!1;return r=this.changeWhitespaceHeight(e,n)||r,r=this.changeWhitespaceAfterLineNumber(e,t)||r},e.prototype.changeWhitespaceHeight=function(e,t){if(t|=0,this._whitespaceId2Index.hasOwnProperty(e)){var n=this._whitespaceId2Index[e];if(this._heights[n]!==t)return this._heights[n]=t,this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,n-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){if(n|=0,this._whitespaceId2Index.hasOwnProperty(t)){var r=this._whitespaceId2Index[t];if(this._afterLineNumbers[r]!==n){var i=this._ordinals[r],o=this._heights[r],s=this._minWidths[r];this.removeWhitespace(t);var a=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,i);return this._insertWhitespaceAtIndex(t,a,n,i,o,s),!0}}return!1},e.prototype.removeWhitespace=function(e){if(this._whitespaceId2Index.hasOwnProperty(e)){var t=this._whitespaceId2Index[e];return delete this._whitespaceId2Index[e],this._removeWhitespaceAtIndex(t),this._minWidth=-1,!0}return!1},e.prototype._removeWhitespaceAtIndex=function(e){e|=0,this._heights.splice(e,1),this._minWidths.splice(e,1),this._ids.splice(e,1),this._afterLineNumbers.splice(e,1),this._ordinals.splice(e,1),this._prefixSum.splice(e,1),this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,e-1);for(var t=Object.keys(this._whitespaceId2Index),n=0,r=t.length;n=e&&(this._whitespaceId2Index[i]=o-1)}},e.prototype.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;nt&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,r=this._afterLineNumbers.length;n=t.length||t[i+1]>=e)return i;n=i+1|0}else r=i-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceMinWidth=function(){return this._whitespaces.getMinWidth()},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,r=1,i=t;r=s+n)r=o+1;else{if(e>=s)return o;i=o}}return r>t?t:r},e.prototype.getLinesViewportData=function(e,t){e|=0,t|=0;var n,r,i=this._lineHeight,o=0|this.getLineNumberAtOrAfterVerticalOffset(e),s=0|this.getVerticalOffsetForLineNumber(o),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o),l=0|this._whitespaces.getCount();-1===u?(u=l,r=a+1,n=0):(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/i)*i);for(var f=[],p=e+(t-e)/2,g=-1,m=o;m<=a;m++){if(-1===g){(c<=p&&pp)&&(g=m)}for(c+=i,f[m-o]=d,d+=i;r===m;)d+=n,c+=n,++u>=l?r=a+1:(r=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===g&&(g=a);var _=0|this.getVerticalOffsetForLineNumber(a),y=o,v=a;return yt&&v--,{bigNumbersDelta:h,startLineNumber:o,endLineNumber:a,relativeVerticalOffset:f,centeredLineNumber:g,completelyVisibleStartLineNumber:y,completelyVisibleEndLineNumber:v}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,r=0,i=this._whitespaces.getCount()-1;if(i<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(i)+this._whitespaces.getHeightForWhitespaceIndex(i))return-1;for(;r=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))r=t+1;else{if(e>=n)return t;i=t}return r},e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var r=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:r}},e.prototype.getWhitespaceViewportData=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e),r=this._whitespaces.getCount()-1;if(n<0)return[];for(var i=[],o=n;o<=r;o++){var s=this.getVerticalOffsetForWhitespaceIndex(o),a=this._whitespaces.getHeightForWhitespaceIndex(o);if(s>=t)break;i.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:s,height:a})}return i},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),Qx=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eL=function(e){function t(t,n,r){var i=e.call(this)||this;return i._configuration=t,i._linesLayout=new Jx(n,i._configuration.editor.lineHeight),i.scrollable=i._register(new Vp(0,r)),i._configureSmoothScrollDuration(),i.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),i.onDidScroll=i.scrollable.onScroll,i._updateHeight(),i}return Qx(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)},t.prototype._getHorizontalScrollbarHeight=function(e){return 2===this._configuration.editor.viewInfo.scrollbar.horizontal?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new Vy(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new Vy(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,t){if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var n=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,r=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+n,t,r)}return Math.max(e,t)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n,r){return this._linesLayout.insertWhitespace(e,t,n,r)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t}(Pt),tL=function(e,t){this.outputLineIndex=e,this.outputOffset=t},nL=function(){function e(e){this._lines=e}return e.prototype.convertViewPositionToModelPosition=function(e){return this._lines.convertViewPositionToModelPosition(e.lineNumber,e.column)},e.prototype.convertViewRangeToModelRange=function(e){var t=this._lines.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new Rr(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)},e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition()),r=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new Rr(n.lineNumber,n.column,r.lineNumber,r.column)},e.prototype.convertModelPositionToViewPosition=function(e){return this._lines.convertModelPositionToViewPosition(e.lineNumber,e.column)},e.prototype.convertModelRangeToViewRange=function(e){var t=this._lines.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new Rr(t.lineNumber,t.column,n.lineNumber,n.column)},e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)},e}(),rL=function(){function e(e,t,n,r,i,o){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=r,this.columnsForFullWidthChar=i,this.wrappingIndent=o,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype.createCoordinatesConverter=function(){return new nL(this)},e.prototype._ensureValidState=function(){if(this.model.getVersionId()!==this._validModelVersionId)throw new Error("ViewModel is out of sync with Model!");this.lines.length!==this.model.getLineCount()&&this._constructLines(!1)},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),r=n.length,i=new Uint32Array(r),o=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Rr.compareRangesUsingStarts),s=1,a=0,u=-1,l=u+1=s&&d<=a,f=aL(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);i[c]=f.getViewLineCount(),this.lines[c]=f}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new J_(i)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map((function(t){return e.model.getDecorationRange(t)}))},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map((function(e){return t.model.validateRange(e)})).sort(Rr.compareRangesUsingStarts),r=[],i=n[0].startLineNumber,o=n[0].endLineNumber,s=1,a=n.length;so+1?(r.push(new Rr(i,1,o,1)),i=u.startLineNumber,o=u.endLineNumber):u.endLineNumber>o&&(o=u.endLineNumber)}return r.push(new Rr(i,1,o,1)),r},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),r=this.hiddenAreasIds.map((function(e){return t.model.getDecorationRange(e)})).sort(Rr.compareRangesUsingStarts);if(n.length===r.length){for(var i=!1,o=0;o=d&&m<=h?this.lines[o].isVisible()&&(this.lines[o]=this.lines[o].setVisible(!1),_=!0):(g=!0,this.lines[o].isVisible()||(this.lines[o]=this.lines[o].setVisible(!0),_=!0)),_){var y=this.lines[o].getViewLineCount();this.prefixSumComputer.changeValue(o,y)}}return g||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,i=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new WC(r,i)},e.prototype.onModelLinesInserted=function(e,t,n,r){if(e<=this._validModelVersionId)return null;for(var i=this.getHiddenAreas(),o=!1,s=new St(t,1),a=0,u=i;aa?(p=(f=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1)+1)+(i-a)-1,u=!0):it?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t),n=this._toValidViewLineNumber(n);var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n)),s=this.model.getActiveIndentGuide(r.lineNumber,i.lineNumber,o.lineNumber),a=this.convertModelPositionToViewPosition(s.startLineNumber,1),u=this.convertModelPositionToViewPosition(s.endLineNumber,this.model.getLineMaxColumn(s.endLineNumber));return{startLineNumber:a.lineNumber,endLineNumber:u.lineNumber,indent:s.indent}},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),r=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),i=[],o=[],s=[],a=n.lineNumber-1,u=r.lineNumber-1,l=null,c=a;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===a?n.column:1),f=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1)),p=0;(w=f-h+1)>1&&1===d.getViewLineMinColumn(this.model,c+1,f)&&(p=0===h?1:2),o.push(w),s.push(p),null===l&&(l=new St(c+1,0))}else null!==l&&(i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,c)),l=null)}null!==l&&(i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,r.lineNumber)),l=null);for(var g=t-e+1,m=new Array(g),_=0,y=0,v=i.length;yt&&(f=!0,h=t-i+1);var p=d+h;if(c.getViewLinesData(this.model,u+1,d,p,i-e,n,a),i+=h,f)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1),i=r.index,o=r.remainder,s=this.lines[i],a=s.getViewLineMinColumn(this.model,i+1,o),u=s.getViewLineMaxColumn(this.model,i+1,o);tu&&(t=u);var l=s.getModelColumnOfViewPosition(o,t);return this.model.validatePosition(new St(i+1,l)).equals(n)?new St(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),r=n.index,i=n.remainder,o=this.lines[r].getModelColumnOfViewPosition(i,t);return this.model.validatePosition(new St(r+1,o))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new St(e,t)),r=n.lineNumber,i=n.column,o=r-1,s=!1;o>0&&!this.lines[o].isVisible();)o--,s=!0;if(0===o&&!this.lines[o].isVisible())return new St(1,1);var a=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));return s?this.lines[o].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(o+1)):this.lines[r-1].getViewPositionOfModelPosition(a,i)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(r,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var r=this.model.getOverviewRulerDecorations(e,t),i=new cL,o=0,s=r;ot.id?1:0:n}));for(var d=[],h=0,f=null,p=0,g=o;p0&&(o=this.wrappedIndent+o),o},e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-r;return n>0&&(i=this.wrappedIndent.length+i),i},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n),i=this.getInputEndOffsetOfOutputLineIndex(e,t,n),o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});n>0&&(o=this.wrappedIndent+o);var s=n>0?this.wrappedIndentLength+1:1,a=o.length+1,u=n+10&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new Uy(o,u,s,a,c.sliceAndInflate(r,i,l))},e.prototype.getViewLinesData=function(e,t,n,r,i,o,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a0&&(n0&&(i+=this.wrappedIndentLength),new St(e+r,i)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();function aL(e,t,n,r,i,o,s){var a=e.createLineMapping(t,n,r,i,o);return null===a?s?iL.INSTANCE:oL.INSTANCE:new sL(a,s)}var uL=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),lL=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new uL(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new WC(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,r){return new HC(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new BC(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,r=new Array(n),i=0;i=t)return void(n>s&&(i[i.length-1]=n));i.push(r,t,n)}else this.result[e]=[r,t,n]},e}(),dL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hL=function(e){function t(t,n,r){for(var i=e.call(this,0)||this,o=0;o=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(vo),fL=function(){function e(e,t,n){this.classifier=new hL(e,t,n)}return e.nextVisibleColumn=function(e,t,n,r){return e=+e,t=+t,r=+r,n?e+(t-e%t):e+r},e.prototype.createLineMapping=function(t,n,r,i,o){if(-1===r)return null;n=+n,r=+r,i=+i;var s=0,a="",u=-1;if(0!==(o=+o)&&-1!==(u=fn(t))){a=t.substring(0,u);for(var l=0;lr&&(a="",s=0)}var d=this.classifier,h=0,f=[],p=0,g=0,m=-1,_=0,y=-1,v=0,b=t.length;for(l=0;l0){var x=t.charCodeAt(l-1);1!==d.get(x)&&(m=l,_=s)}var L=1;if(En(w)&&(L=i),(g=e.nextVisibleColumn(g,n,C,L))>r&&0!==l){var k=void 0,M=void 0;-1!==m&&_<=r?(k=m,M=_):-1!==y&&v<=r?(k=y,M=v):(k=l,M=s),f[p++]=k-h,h=k,g=e.nextVisibleColumn(M,n,C,L),m=-1,_=0,y=-1,v=0}if(-1!==m&&(_=e.nextVisibleColumn(_,n,C,L)),-1!==y&&(v=e.nextVisibleColumn(v,n,C,L)),2===S&&(0===o||l>=u)&&(m=l+1,_=s),4===S&&l=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var m=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),_=e.viewLayout.getVerticalOffsetForLineNumber(m.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:_+e.viewportStartLineDelta})}}}))),this._register(this.model.onDidChangeTokens((function(t){for(var n=[],r=0,i=t.ranges.length;ra||(o0&&s[u-1]===s[u]||(a+=this.model.getLineContent(s[u])+i);return a}for(var l=[],c=0,d=o;c'+this._getHTMLToCopy(n,o)+""},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,r=e.startColumn,i=e.endLineNumber,o=e.endColumn,s=this.getTabSize(),a="",u=n;u<=i;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?r-1:0,h=u===i?o-1:c.length;a+=""===c?"
":Zx(c,l.inflate(),t,d,h,s)}return a},t.prototype._getColorMap=function(){var e=Aa.getColorMap(),t=["#000000"];if(e)for(var n=1,r=e.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},xL=function(e,t){return function(n,r){t(n,r,e)}},LL=0,kL="showUnused",ML=function(){function e(e,t,n,r,i,o){this.model=e,this.viewModel=t,this.cursor=n,this.view=r,this.hasRealView=i,this.listenersToRemove=o}return e.prototype.dispose=function(){Nt(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},e}(),DL=function(e){function t(t,n,r,i,o,s,a,u,l,c){var d,h=e.call(this)||this;h._onDidDispose=h._register(new Kt),h.onDidDispose=h._onDidDispose.event,h._onDidChangeModelContent=h._register(new Kt),h.onDidChangeModelContent=h._onDidChangeModelContent.event,h._onDidChangeModelLanguage=h._register(new Kt),h.onDidChangeModelLanguage=h._onDidChangeModelLanguage.event,h._onDidChangeModelLanguageConfiguration=h._register(new Kt),h.onDidChangeModelLanguageConfiguration=h._onDidChangeModelLanguageConfiguration.event,h._onDidChangeModelOptions=h._register(new Kt),h.onDidChangeModelOptions=h._onDidChangeModelOptions.event,h._onDidChangeModelDecorations=h._register(new Kt),h.onDidChangeModelDecorations=h._onDidChangeModelDecorations.event,h._onDidChangeConfiguration=h._register(new Kt),h.onDidChangeConfiguration=h._onDidChangeConfiguration.event,h._onDidChangeModel=h._register(new Kt),h.onDidChangeModel=h._onDidChangeModel.event,h._onDidChangeCursorPosition=h._register(new Kt),h.onDidChangeCursorPosition=h._onDidChangeCursorPosition.event,h._onDidChangeCursorSelection=h._register(new Kt),h.onDidChangeCursorSelection=h._onDidChangeCursorSelection.event,h._onDidAttemptReadOnlyEdit=h._register(new Kt),h.onDidAttemptReadOnlyEdit=h._onDidAttemptReadOnlyEdit.event,h._onDidLayoutChange=h._register(new Kt),h.onDidLayoutChange=h._onDidLayoutChange.event,h._editorTextFocus=h._register(new EL),h.onDidFocusEditorText=h._editorTextFocus.onDidChangeToTrue,h.onDidBlurEditorText=h._editorTextFocus.onDidChangeToFalse,h._editorWidgetFocus=h._register(new EL),h.onDidFocusEditorWidget=h._editorWidgetFocus.onDidChangeToTrue,h.onDidBlurEditorWidget=h._editorWidgetFocus.onDidChangeToFalse,h._onWillType=h._register(new Kt),h.onWillType=h._onWillType.event,h._onDidType=h._register(new Kt),h.onDidType=h._onDidType.event,h._onCompositionStart=h._register(new Kt),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionEnd=h._register(new Kt),h.onCompositionEnd=h._onCompositionEnd.event,h._onDidPaste=h._register(new Kt),h.onDidPaste=h._onDidPaste.event,h._onMouseUp=h._register(new Kt),h.onMouseUp=h._onMouseUp.event,h._onMouseDown=h._register(new Kt),h.onMouseDown=h._onMouseDown.event,h._onMouseDrag=h._register(new Kt),h.onMouseDrag=h._onMouseDrag.event,h._onMouseDrop=h._register(new Kt),h.onMouseDrop=h._onMouseDrop.event,h._onContextMenu=h._register(new Kt),h.onContextMenu=h._onContextMenu.event,h._onMouseMove=h._register(new Kt),h.onMouseMove=h._onMouseMove.event,h._onMouseLeave=h._register(new Kt),h.onMouseLeave=h._onMouseLeave.event,h._onMouseWheel=h._register(new Kt),h.onMouseWheel=h._onMouseWheel.event,h._onKeyUp=h._register(new Kt),h.onKeyUp=h._onKeyUp.event,h._onKeyDown=h._register(new Kt),h.onKeyDown=h._onKeyDown.event,h._onDidScrollChange=h._register(new Kt),h.onDidScrollChange=h._onDidScrollChange.event,h._onDidChangeViewZones=h._register(new Kt),h.onDidChangeViewZones=h._onDidChangeViewZones.event,h._domElement=t,h._id=++LL,h._decorationTypeKeysToIds={},h._decorationTypeSubtypes={},h.isSimpleWidget=r.isSimpleWidget||!1,h._telemetryData=r.telemetryData,n=n||{},h._configuration=h._register(h._createConfiguration(n,c)),h._register(h._configuration.onDidChange((function(e){h._onDidChangeConfiguration.fire(e),e.layoutInfo&&h._onDidLayoutChange.fire(h._configuration.editor.layoutInfo),h._configuration.editor.showUnused?h._domElement.classList.add(kL):h._domElement.classList.remove(kL)}))),h._contextKeyService=h._register(a.createScoped(h._domElement)),h._notificationService=l,h._codeEditorService=o,h._commandService=s,h._themeService=u,h._register(new TL(h,h._contextKeyService)),h._register(new NL(h,h._contextKeyService)),h._instantiationService=i.createChild(new vL([Un,h._contextKeyService])),h._modelData=null,h._contributions={},h._actions={},h._focusTracker=new OL(t),h._focusTracker.onChange((function(){h._editorWidgetFocus.setValue(h._focusTracker.hasFocus())})),h._contentWidgets={},h._overlayWidgets={};for(var f=0,p=(d=Array.isArray(r.contributions)?r.contributions:Mr.getEditorContributions()).length;f1),this._hasNonEmptySelection.set(e.some((function(e){return!e.isEmpty()})))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},t.prototype._updateFromModel=function(){var e=this._editor.getModel();this._canUndo.set(Boolean(e&&e.canUndo())),this._canRedo.set(Boolean(e&&e.canRedo()))},t}(Pt),NL=function(e){function t(t,n){var r=e.call(this)||this;r._editor=t,r._contextKeyService=n,r._langId=Ml.languageId.bindTo(n),r._hasCompletionItemProvider=Ml.hasCompletionItemProvider.bindTo(n),r._hasCodeActionsProvider=Ml.hasCodeActionsProvider.bindTo(n),r._hasCodeLensProvider=Ml.hasCodeLensProvider.bindTo(n),r._hasDefinitionProvider=Ml.hasDefinitionProvider.bindTo(n),r._hasDeclarationProvider=Ml.hasDeclarationProvider.bindTo(n),r._hasImplementationProvider=Ml.hasImplementationProvider.bindTo(n),r._hasTypeDefinitionProvider=Ml.hasTypeDefinitionProvider.bindTo(n),r._hasHoverProvider=Ml.hasHoverProvider.bindTo(n),r._hasDocumentHighlightProvider=Ml.hasDocumentHighlightProvider.bindTo(n),r._hasDocumentSymbolProvider=Ml.hasDocumentSymbolProvider.bindTo(n),r._hasReferenceProvider=Ml.hasReferenceProvider.bindTo(n),r._hasRenameProvider=Ml.hasRenameProvider.bindTo(n),r._hasSignatureHelpProvider=Ml.hasSignatureHelpProvider.bindTo(n),r._hasDocumentFormattingProvider=Ml.hasDocumentFormattingProvider.bindTo(n),r._hasDocumentSelectionFormattingProvider=Ml.hasDocumentSelectionFormattingProvider.bindTo(n),r._hasMultipleDocumentFormattingProvider=Ml.hasMultipleDocumentFormattingProvider.bindTo(n),r._hasMultipleDocumentSelectionFormattingProvider=Ml.hasMultipleDocumentSelectionFormattingProvider.bindTo(n),r._isInWalkThrough=Ml.isInEmbeddedEditor.bindTo(n);var i=function(){return r._update()};return r._register(t.onDidChangeModel(i)),r._register(t.onDidChangeModelLanguage(i)),r._register(pa.onDidChange(i)),r._register(La.onDidChange(i)),r._register(xa.onDidChange(i)),r._register(ba.onDidChange(i)),r._register(wa.onDidChange(i)),r._register(Ca.onDidChange(i)),r._register(Sa.onDidChange(i)),r._register(_a.onDidChange(i)),r._register(va.onDidChange(i)),r._register(ya.onDidChange(i)),r._register(ha.onDidChange(i)),r._register(fa.onDidChange(i)),r._register(ka.onDidChange(i)),r._register(Ma.onDidChange(i)),r._register(ma.onDidChange(i)),i(),r}return CL(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){var e=this;this._contextKeyService.bufferChangeEvents((function(){e._langId.reset(),e._hasCompletionItemProvider.reset(),e._hasCodeActionsProvider.reset(),e._hasCodeLensProvider.reset(),e._hasDefinitionProvider.reset(),e._hasDeclarationProvider.reset(),e._hasImplementationProvider.reset(),e._hasTypeDefinitionProvider.reset(),e._hasHoverProvider.reset(),e._hasDocumentHighlightProvider.reset(),e._hasDocumentSymbolProvider.reset(),e._hasReferenceProvider.reset(),e._hasRenameProvider.reset(),e._hasDocumentFormattingProvider.reset(),e._hasDocumentSelectionFormattingProvider.reset(),e._hasSignatureHelpProvider.reset(),e._isInWalkThrough.reset()}))},t.prototype._update=function(){var e=this,t=this._editor.getModel();t?this._contextKeyService.bufferChangeEvents((function(){e._langId.set(t.getLanguageIdentifier().language),e._hasCompletionItemProvider.set(pa.has(t)),e._hasCodeActionsProvider.set(La.has(t)),e._hasCodeLensProvider.set(xa.has(t)),e._hasDefinitionProvider.set(ba.has(t)),e._hasDeclarationProvider.set(wa.has(t)),e._hasImplementationProvider.set(Ca.has(t)),e._hasTypeDefinitionProvider.set(Sa.has(t)),e._hasHoverProvider.set(_a.has(t)),e._hasDocumentHighlightProvider.set(va.has(t)),e._hasDocumentSymbolProvider.set(ya.has(t)),e._hasReferenceProvider.set(ha.has(t)),e._hasRenameProvider.set(fa.has(t)),e._hasSignatureHelpProvider.set(ma.has(t)),e._hasDocumentFormattingProvider.set(ka.has(t)||Ma.has(t)),e._hasDocumentSelectionFormattingProvider.set(Ma.has(t)),e._hasMultipleDocumentFormattingProvider.set(ka.all(t).length+Ma.all(t).length>1),e._hasMultipleDocumentSelectionFormattingProvider.set(Ma.all(t).length>1),e._isInWalkThrough.set(t.uri.scheme===kh.walkThroughSnippet)})):this.reset()},t}(Pt),OL=function(e){function t(t){var n=e.call(this)||this;return n._onChange=n._register(new Kt),n.onChange=n._onChange.event,n._hasFocus=!1,n._domFocusTracker=n._register(xf(t)),n._register(n._domFocusTracker.onDidFocus((function(){n._hasFocus=!0,n._onChange.fire(void 0)}))),n._register(n._domFocusTracker.onDidBlur((function(){n._hasFocus=!1,n._onChange.fire(void 0)}))),n}return CL(t,e),t.prototype.hasFocus=function(){return this._hasFocus},t}(Pt),AL=encodeURIComponent("");function PL(e){return AL+encodeURIComponent(e.toString())+IL}var RL=encodeURIComponent('');jd((function(e,t){var n=e.getColor(Kc);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var r=e.getColor(qc);r&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+PL(r)+'") repeat-x bottom left; }');var i=e.getColor($c);i&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=e.getColor(Gc);o&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+PL(o)+'") repeat-x bottom left; }');var s=e.getColor(Xc);s&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Zc);a&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+PL(a)+'") repeat-x bottom left; }');var u=e.getColor(Qc);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Jc);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+(RL+encodeURIComponent(l.toString())+FL)+'") no-repeat bottom left; }');var c=e.getColor(LC);c&&t.addRule("."+kL+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; }");var d=e.getColor(xC);d&&t.addRule("."+kL+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }");var h=e.getColor(td)||"inherit";t.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+h+"}")}));n(348);var YL=function(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=!1),this.ctor=e,this.staticArguments=t,this.supportsDelayedInstantiation=n},jL=[];var BL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WL=bt("IEditorCancelService"),HL=new zn("cancellableOperation",!1);!function(e,t,n){jL.push([e,new YL(t,[],n)])}(WL,function(){function e(){this._tokens=new WeakMap}return e.prototype.add=function(e,t){var n,r=this._tokens.get(e);return r||(r=e.invokeWithinContext((function(e){return{key:HL.bindTo(e.get(Un)),tokens:new Vt}})),this._tokens.set(e,r)),r.key.set(!0),n=r.tokens.push(t),function(){n&&(n(),r.key.set(!r.tokens.isEmpty()),n=void 0)}},e.prototype.cancel=function(e){var t=this._tokens.get(e);if(t){var n=t.tokens.pop();n&&(n.cancel(),t.key.set(!t.tokens.isEmpty()))}},e}(),!0);var VL=function(e){function t(t,n){var r=e.call(this,n)||this;return r.editor=t,r._unregister=t.invokeWithinContext((function(e){return e.get(WL).add(t,r)})),r}return BL(t,e),t.prototype.dispose=function(){this._unregister(),e.prototype.dispose.call(this)},t}(xs);Ar(new(function(e){function t(){return e.call(this,{id:"editor.cancelOperation",kbOpts:{weight:100,primary:9},precondition:HL})||this}return BL(t,e),t.prototype.runEditorCommand=function(e,t){e.get(WL).cancel(t)},t}(Nr)));var zL=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),UL=(function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?on("{0}#{1}",n.uri.toString(),n.getVersionId()):null}else this.modelVersionId=null;0!=(4&this.flags)?this.position=e.getPosition():this.position=null,0!=(2&this.flags)?this.selection=e.getSelection():this.selection=null,0!=(8&this.flags)?(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop()):(this.scrollLeft=-1,this.scrollTop=-1)}e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&(this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&(!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))}}(),function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.editor=t,i._listener=new It,4&n&&i._listener.add(t.onDidChangeCursorPosition((function(e){return i.cancel()}))),2&n&&i._listener.add(t.onDidChangeCursorSelection((function(e){return i.cancel()}))),8&n&&i._listener.add(t.onDidScrollChange((function(e){return i.cancel()}))),1&n&&(i._listener.add(t.onDidChangeModel((function(e){return i.cancel()}))),i._listener.add(t.onDidChangeModelContent((function(e){return i.cancel()})))),i}zL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)}}(VL),function(e){function t(t,n){var r=e.call(this,n)||this;return r._listener=t.onDidChangeContent((function(){return r.cancel()})),r}zL(t,e),t.prototype.dispose=function(){this._listener.dispose(),e.prototype.dispose.call(this)}}(xs),function(){function e(e,t){this._visiblePosition=e,this._visiblePositionScrollDelta=t}return e.capture=function(t){var n=null,r=0;if(0!==t.getScrollTop()){var i=t.getVisibleRanges();if(i.length>0){n=i[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);r=t.getScrollTop()-o}}return new e(n,r)},e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}},e}()),qL=(n(349),function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),KL=function(){function e(e,t,n,r){this.originalLineStart=e,this.originalLineEnd=t,this.modifiedLineStart=n,this.modifiedLineEnd=r}return e.prototype.getType=function(){return 0===this.originalLineStart?1:0===this.modifiedLineStart?2:0},e}(),GL=function(e){this.entries=e},$L=function(e){function t(t){var n=e.call(this)||this;return n._width=0,n._diffEditor=t,n._isVisible=!1,n.shadow=kp(document.createElement("div")),n.shadow.setClassName("diff-review-shadow"),n.actionBarContainer=kp(document.createElement("div")),n.actionBarContainer.setClassName("diff-review-actions"),n._actionBar=n._register(new Sp(n.actionBarContainer.domNode)),n._actionBar.push(new en("diffreview.close",Me("label.close","Close"),"close-diff-review",!0,(function(){return n.hide(),Promise.resolve(null)})),{label:!1,icon:!0}),n.domNode=kp(document.createElement("div")),n.domNode.setClassName("diff-review monaco-editor-background"),n._content=kp(document.createElement("div")),n._content.setClassName("diff-review-content"),n.scrollbar=n._register(new Qp(n._content.domNode,{})),n.domNode.domNode.appendChild(n.scrollbar.getDomNode()),n._register(t.onDidUpdateDiff((function(){n._isVisible&&(n._diffs=n._compute(),n._render())}))),n._register(t.getModifiedEditor().onDidChangeCursorPosition((function(){n._isVisible&&n._render()}))),n._register(t.getOriginalEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(t.getModifiedEditor().onDidFocusEditorWidget((function(){n._isVisible&&n.hide()}))),n._register(Kh(n.domNode.domNode,"click",(function(e){e.preventDefault();var t=function(e,t,n){for(;e;){if(jh(e,t))return e;if(n)if("string"==typeof n){if(jh(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}(e.target,"diff-review-row");t&&n._goToRow(t)}))),n._register(Kh(n.domNode.domNode,"keydown",(function(e){(e.equals(18)||e.equals(2066)||e.equals(530))&&(e.preventDefault(),n._goToRow(n._getNextRow())),(e.equals(16)||e.equals(2064)||e.equals(528))&&(e.preventDefault(),n._goToRow(n._getPrevRow())),(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033))&&(e.preventDefault(),n.hide()),(e.equals(10)||e.equals(3))&&(e.preventDefault(),n.accept())}))),n._diffs=[],n._currentDiff=null,n}return qL(t,e),t.prototype.prev=function(){var e=0;if(this._isVisible||(this._diffs=this._compute()),this._isVisible){for(var t=-1,n=0,r=this._diffs.length;n0){var y=e[o-1];m=0===y.originalEndLineNumber?y.originalStartLineNumber+1:y.originalEndLineNumber+1,_=0===y.modifiedEndLineNumber?y.modifiedStartLineNumber+1:y.modifiedEndLineNumber+1}var v=p-3+1,b=g-3+1;if(vS)M+=k=S-M,D+=k;if(D>x)M+=k=x-D,D+=k;h[f++]=new KL(w,M,C,D),r[i++]=new GL(h)}var E=r[0].entries,T=[],N=0;for(o=1,s=r.length;od)&&(d=_),0!==y&&(0===h||yf)&&(f=v)}var b=document.createElement("div");b.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary";var C=d-c+1,S=f-h+1;w.appendChild(document.createTextNode(a+1+"/"+this._diffs.length+": @@ -"+c+","+C+" +"+h+","+S+" @@")),b.setAttribute("data-line",String(h));var x=function(e){return 0===e?Me("no_lines","no lines"):1===e?Me("one_line","1 line"):Me("more_lines","{0} lines",e)},L=x(C),k=x(S);b.setAttribute("aria-label",Me({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",a+1,this._diffs.length,c,L,h,k)),b.appendChild(w),b.setAttribute("role","listitem"),l.appendChild(b);var M=h;for(p=0,g=u.length;p0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]i.modifiedStartLineNumber?Me("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):Me("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,(function(){return ek(a,void 0,void 0,(function(){return tk(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent.join(l)+l)];case 1:return e.sent(),[2]}}))}))})));var d=0,h=void 0;return i.originalEndLineNumber>i.modifiedStartLineNumber&&(h=new en("diff.clipboard.copyDeletedLineContent",Me("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber),void 0,!0,(function(){return ek(a,void 0,void 0,(function(){return tk(this,(function(e){switch(e.label){case 0:return[4,this._clipboardService.writeText(i.originalContent[d])];case 1:return e.sent(),[2]}}))}))})),c.push(h)),r.getConfiguration().readOnly||c.push(new en("diff.inline.revertChange",Me("diff.inline.revertChange.label","Revert this change"),void 0,!0,(function(){return ek(a,void 0,void 0,(function(){var e;return tk(this,(function(t){return 0===i.modifiedEndLineNumber?(e=r.getModel().getLineMaxColumn(i.modifiedStartLineNumber),r.executeEdits("diffEditor",[{range:new Rr(i.modifiedStartLineNumber,e,i.modifiedStartLineNumber,e),text:l+i.originalContent.join(l)}])):(e=r.getModel().getLineMaxColumn(i.modifiedEndLineNumber),r.executeEdits("diffEditor",[{range:new Rr(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber,e),text:i.originalContent.join(l)}])),[2]}))}))}))),a._register(Kh(a._diffActions,"mousedown",(function(e){var t=hf(a._diffActions),n=t.top,r=t.height,o=Math.floor(u/3);e.preventDefault(),a._contextMenuService.showContextMenu({getAnchor:function(){return{x:e.posx,y:n+r+o}},getActions:function(){return h&&(h.label=Me("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",i.originalStartLineNumber+d)),c},autoSelectFirstItem:!0})}))),a._register(r.onMouseMove((function(e){8===e.target.type||5===e.target.type?e.target.detail.viewZoneId===a._viewZoneId?(a.visibility=!0,d=a._updateLightBulbPosition(a._marginDomNode,e.event.browserEvent.y,u)):a.visibility=!1:a.visibility=!1}))),a}return QL(t,e),Object.defineProperty(t.prototype,"visibility",{get:function(){return this._visibility},set:function(e){this._visibility!==e&&(this._visibility=e,this._diffActions.style.visibility=e?"visible":"hidden")},enumerable:!0,configurable:!0}),t.prototype._updateLightBulbPosition=function(e,t,n){var r=t-hf(e).top,i=Math.floor(r/n),o=i*n;return this._diffActions.style.top=o+"px",i},t}(Pt),rk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ik=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},ok=function(e,t){return function(n,r){t(n,r,e)}},sk=function(){function e(e,t){this._contextMenuService=e,this._clipboardService=t,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return e.prototype.getForeignViewZones=function(e){var t=this;return e.filter((function(e){return!t._zonesMap[String(e.id)]}))},e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones((function(e){for(var n=0,r=t._zones.length;n0?i/n:0;return{height:Math.max(0,Math.floor(e.contentHeight*o)),top:Math.floor(t*o)}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e=a?r=o+1:(r=o,i=o)}return n[r]},t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.originalStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=i?r+Math.min(s,o):r+o-i+s},t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,(function(e){return e.modifiedStartLineNumber}));if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0),r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-r;return s<=o?n+Math.min(s,i):n+i-o+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=ik([ok(3,k_),ok(4,Un),ok(5,yt),ok(6,Ct),ok(7,Od),ok(8,om),ok(9,Xg)],t)}(Pt),lk=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n._insertColor=null,n._removeColor=null,n}return rk(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(vd)||_d).transparent(2),n=(e.getColor(bd)||yd).transparent(2),r=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,r},t.prototype.getEditorsDiffDecorations=function(e,t,n,r,i,o,s){i=i.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber})),r=r.sort((function(e,t){return e.afterLineNumber-t.afterLineNumber}));var a=this._getViewZones(e,r,i,o,s,n),u=this._getOriginalEditorDecorations(e,t,n,o,s),l=this._getModifiedEditorDecorations(e,t,n,o,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},t}(Pt),ck=function(){function e(e){this._source=e,this._index=-1,this.current=null,this.advance()}return e.prototype.advance=function(){this._index++,this._index0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode)return void(n.heightInLines+=t.heightInLines)}e.push(t)},d=new ck(this.modifiedForeignVZ),h=new ck(this.originalForeignVZ),f=0,p=this.lineChanges.length;f<=p;f++){var g=f0?-1:0),s=g.modifiedStartLineNumber+(g.modifiedEndLineNumber>0?-1:0),i=g.originalEndLineNumber>0?g.originalEndLineNumber-g.originalStartLineNumber+1:0,r=g.modifiedEndLineNumber>0?g.modifiedEndLineNumber-g.modifiedStartLineNumber+1:0,a=Math.max(g.originalStartLineNumber,g.originalEndLineNumber),u=Math.max(g.modifiedStartLineNumber,g.modifiedEndLineNumber)):(a=o+=1e7+i,u=s+=1e7+r);for(var m,_=[],y=[];d.current&&d.current.afterLineNumber<=u;){var v=void 0;v=d.current.afterLineNumber<=s?o-s+d.current.afterLineNumber:a;var b=null;g&&g.modifiedStartLineNumber<=d.current.afterLineNumber&&d.current.afterLineNumber<=g.modifiedEndLineNumber&&(b=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),_.push({afterLineNumber:v,heightInLines:d.current.heightInLines,domNode:null,marginDomNode:b}),d.advance()}for(;h.current&&h.current.afterLineNumber<=a;){v=void 0;v=h.current.afterLineNumber<=o?s-o+h.current.afterLineNumber:u,y.push({afterLineNumber:v,heightInLines:h.current.heightInLines,domNode:null}),h.advance()}if(null!==g&&yk(g))(m=this._produceOriginalFromDiff(g,i,r))&&_.push(m);if(null!==g&&vk(g))(m=this._produceModifiedFromDiff(g,i,r))&&y.push(m);var w=0,C=0;for(_=_.sort(l),y=y.sort(l);w<_.length&&C=x.heightInLines?(S.heightInLines-=x.heightInLines,C++):(x.heightInLines-=S.heightInLines,w++)}for(;w<_.length;)c(t,_[w]),w++;for(;C2*t.MINIMUM_EDITOR_WIDTH?(rn-t.MINIMUM_EDITOR_WIDTH&&(r=n-t.MINIMUM_EDITOR_WIDTH)):r=i,this._sashPosition!==r&&(this._sashPosition=r,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-uk.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,r,i){return new gk(e,t,n).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=r.getModel(),u=0,l=e.length;ut?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(dk),mk=function(e){function t(t,n){var r=e.call(this,t)||this;return r.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,r._register(t.getOriginalEditor().onDidLayoutChange((function(e){r.decorationsLeft!==e.decorationsLeft&&(r.decorationsLeft=e.decorationsLeft,t.relayoutEditors())}))),r}return rk(t,e),t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,r,i,o){return new _k(e,t,n,r,i,o).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){for(var o=String(this._removeColor),s={decorations:[],overviewZones:[]},a=0,u=e.length;a'])}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var m=document.createElement("div");m.className="view-lines line-delete",m.innerHTML=a.build(),rw.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo);var _=document.createElement("div");return _.className="inline-deleted-margin-view-zone",_.innerHTML=u.join(""),rw.applyFontInfoSlow(_,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:m,marginDomNode:_,diff:{originalStartLineNumber:e.originalStartLineNumber,originalEndLineNumber:e.originalEndLineNumber,modifiedStartLineNumber:e.modifiedStartLineNumber,modifiedEndLineNumber:e.modifiedEndLineNumber,originalContent:f}}},t.prototype._renderOriginalLine=function(e,t,n,r,i,o,s){var a=t.getLineTokens(i),u=a.getLineContent(),l=Ty.filter(o,i,1,u.length+1);s.appendASCIIString('
');var c=qy.isBasicASCII(u,t.mightContainNonBasicASCII()),d=qy.containsRTL(u,c,t.mightContainRTL()),h=jy(new Ry(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,u,!1,c,d,0,a,l,r,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures,null),s);s.appendASCIIString("
");var f=h.characterMapping.getAbsoluteOffsets();return f.length>0?f[f.length-1]:0},t}(dk);function yk(e){return e.modifiedEndLineNumber>0}function vk(e){return e.originalEndLineNumber>0}jd((function(e,t){var n=e.getColor(vd);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var r=e.getColor(bd);r&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+r+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+r+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+r+"; }"));var i=e.getColor(wd);i&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+i+"; }");var o=e.getColor(Cd);o&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var s=e.getColor(Pc);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }");var a=e.getColor(Sd);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+a+"; }")}));var bk=bt("themeService"),wk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ck=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Sk=function(e,t){return function(n,r){t(n,r,e)}},xk=0,Lk=!1;function kk(){var e;Lk||(Lk=!0,e=document.body,(Xf=document.createElement("div")).className="monaco-aria-container",(Jf=document.createElement("div")).className="monaco-alert",Jf.setAttribute("role","alert"),Jf.setAttribute("aria-atomic","true"),Xf.appendChild(Jf),(Qf=document.createElement("div")).className="monaco-status",Qf.setAttribute("role","status"),Qf.setAttribute("aria-atomic","true"),Xf.appendChild(Qf),e.appendChild(Xf))}var Mk=function(e){function t(t,n,r,i,o,s,a,u,l,c){var d=this;return(n=n||{}).ariaLabel=n.ariaLabel||xb.editorViewAccessibleLabel,n.ariaLabel=n.ariaLabel+";"+(sh?xb.accessibilityHelpMessageIE:xb.accessibilityHelpMessage),(d=e.call(this,t,n,{},r,i,o,s,u,l,c)||this)._standaloneKeybindingService=a instanceof jb?a:null,kk(),d}return wk(t,e),t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService)return console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService"),null;var r="DYNAMIC_"+ ++xk,i=In.deserialize(n);return this._standaloneKeybindingService.addDynamicKeybinding(r,e,t,i),r},t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)},t.prototype.addAction=function(e){var t=this;if("string"!=typeof e.id||"string"!=typeof e.label||"function"!=typeof e.run)throw new Error("Invalid action descriptor, `id`, `label` and `run` are required properties!");if(!this._standaloneKeybindingService)return console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService"),Pt.None;var n=e.id,r=e.label,i=In.and(In.equals("editorId",this.getId()),In.deserialize(e.precondition)),o=e.keybindings,s=In.and(i,In.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return Promise.resolve(e.run(t))},c=new It,d=this.getId()+":"+n;if(c.add(nr.registerCommand(d,l)),a){var h={command:{id:d,title:r},when:i,group:a,order:u};c.add(lr.appendMenuItem(7,h))}if(Array.isArray(o))for(var f=0,p=o;f=0}}(e);Pk.push(n),n.userConfigured?Fk.push(n):Rk.push(n),t&&!n.userConfigured&&Pk.forEach((function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))}))}function jk(e,t){var n;if(e)switch(e.scheme){case kh.file:n=e.fsPath;break;case kh.data:n=s_.parseMetaData(e).get(s_.META_DATA_LABEL);break;default:n=e.path}if(!n)return[Ik];n=n.toLowerCase();var r=_s(n),i=Bk(n,r,Fk);if(i)return[i,Ak];var o=Bk(n,r,Rk);if(o)return[o,Ak];if(t){var s=function(e){Nn(e)&&(e=e.substr(1));if(e.length>0)for(var t=Pk.length-1;t>=0;t--){var n=Pk[t];if(n.firstline){var r=e.match(n.firstline);if(r&&r.length>0)return n.mime}}return null}(t);if(s)return[s,Ak]}return[Ik]}function Bk(e,t,n){for(var r=null,i=null,o=null,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){r=a;break}if(a.filepattern&&(!i||a.filepattern.length>i.filepattern.length)){var u=a.filepatternOnPath?e:t;Qs(a.filepatternLowercase,u)&&(i=a)}a.extension&&(!o||a.extension.length>o.extension.length)&&cn(t,a.extensionLowercase)&&(o=a)}return r?r.mime:i?i.mime:o?o.mime:null}var Wk=new(function(){function e(){this._onDidChangeLanguages=new Kt,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidChangeLanguages.fire(void 0)},e.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},e}());xr.add("editor.modesRegistry",Wk);var Hk=new ua("plaintext",1);Wk.registerLanguage({id:"plaintext",extensions:[".txt",".gitignore"],aliases:[Me("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Lu.register(Hk,{brackets:[["(",")"],["[","]"],["{","}"]]});var Vk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zk=Object.prototype.hasOwnProperty,Uk=function(e){function t(t,n){void 0===t&&(t=!0),void 0===n&&(n=!1);var r=e.call(this)||this;return r._onDidChange=r._register(new Kt),r.onDidChange=r._onDidChange.event,r._warnOnOverwrite=n,r._nextLanguageId2=1,r._languageIdToLanguage=[],r._languageToLanguageId=Object.create(null),r._languages={},r._mimeTypesMap={},r._nameMap={},r._lowercaseNameMap={},t&&(r._initializeFromRegistry(),r._register(Wk.onDidChangeLanguages((function(e){return r._initializeFromRegistry()})))),r}return Vk(t,e),t.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var e=Wk.getLanguages();this._registerLanguages(e)},t.prototype._registerLanguages=function(e){for(var t=this,n=0,r=e;n0&&((n=e.mimetypes).push.apply(n,t.mimetypes),o=t.mimetypes[0]),o||(o="text/x-"+i,e.mimetypes.push(o)),Array.isArray(t.extensions))for(var s=0,a=t.extensions;s0){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var g=new RegExp(p);"^"!==(r=g).source&&"^$"!==r.source&&"$"!==r.source&&"^\\s*$"!==r.source&&r.exec("")&&0===r.lastIndex||Yk({id:i,mime:o,firstline:g},this._warnOnOverwrite)}catch(e){Ue(e)}}e.aliases.push(i);var m=null;if(void 0!==t.aliases&&Array.isArray(t.aliases)&&(m=0===t.aliases.length?[null]:t.aliases),null!==m)for(var _=0,y=m;_0;if(b&&null===m[0]);else{var w=(b?m[0]:null)||i;!b&&e.name||(e.name=w)}t.configuration&&e.configurationFiles.push(t.configuration)},t.prototype.isRegisteredMode=function(e){return!!zk.call(this._mimeTypesMap,e)||zk.call(this._languages,e)},t.prototype.getModeIdForLanguageNameLowercase=function(e){return zk.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},t.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map((function(e){return e.trim()})).map((function(e){return zk.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e})).filter((function(e){return zk.call(t._languages,e)})):[]},t.prototype.getLanguageIdentifier=function(e){if("vs.editor.nullMode"===e||0===e)return Ba;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIdToLanguage[e]))return null;return zk.call(this._languages,t)?this._languages[t].identifier:null},t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=jk(e,t);return this.extractModeIds(n.join(","))},t}(Pt),qk=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kk=function(e){function t(t,n){var r=e.call(this)||this;return r._onDidChange=r._register(new Kt),r.onDidChange=r._onDidChange.event,r._selector=n,r.languageIdentifier=r._selector(),r._register(t((function(){return r._evaluate()}))),r}return qk(t,e),t.prototype._evaluate=function(){var e=this._selector();e.id!==this.languageIdentifier.id&&(this.languageIdentifier=e,this._onDidChange.fire(this.languageIdentifier))},t}(Pt),Gk=function(){function e(e){var t=this;void 0===e&&(e=!1),this._onDidCreateMode=new Kt,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new Kt,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Uk(!0,e),this._registry.onDidChange((function(){return t._onLanguagesMaybeChanged.fire()}))}return e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilepathOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilepathOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.create=function(e){var t=this;return new Kk(this.onLanguagesMaybeChanged,(function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)}))},e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new Kk(this.onLanguagesMaybeChanged,(function(){var r=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(r)}))},e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||Ba;return this._getOrCreateMode(t.language),t},e.prototype.triggerMode=function(e){var t=this.getModeId(e);this._getOrCreateMode(t||"plaintext")},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e)||Ba;this._instantiatedModes[e]=new Ok(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),$k=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zk=function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},Xk=function(e,t){return function(n,r){t(n,r,e)}};function Jk(e){return e.toString()}var Qk=function(){function e(e,t,n){this._modelEventListeners=new It,this.model=e,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(e.onWillDispose((function(){return t(e)}))),this._modelEventListeners.add(e.onDidChangeLanguage((function(t){return n(e,t)})))}return e.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},e.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},e.prototype.setLanguage=function(e){var t=this;this._disposeLanguageSelection(),this._languageSelection=e,this._languageSelectionListener=this._languageSelection.onDidChange((function(){return t.model.setMode(e.languageIdentifier)})),this.model.setMode(e.languageIdentifier)},e}(),eM=et.c||et.d?1:2,tM=function(e){function t(t,n){var r=e.call(this)||this;return r._onModelAdded=r._register(new Kt),r.onModelAdded=r._onModelAdded.event,r._onModelRemoved=r._register(new Kt),r.onModelRemoved=r._onModelRemoved.event,r._onModelModeChanged=r._register(new Kt),r.onModelModeChanged=r._onModelModeChanged.event,r._configurationService=t,r._resourcePropertiesService=n,r._models={},r._modelCreationOptionsByLanguageAndResource=Object.create(null),r._configurationServiceSubscription=r._configurationService.onDidChangeConfiguration((function(e){return r._updateModelOptions()})),r._updateModelOptions(),r}return $k(t,e),t._readModelOptions=function(e,t){var n=bi.tabSize;if(e.editor&&void 0!==e.editor.tabSize){var r=parseInt(e.editor.tabSize,10);isNaN(r)||(n=r),n<1&&(n=1)}var i=n;if(e.editor&&void 0!==e.editor.indentSize&&"tabSize"!==e.editor.indentSize){var o=parseInt(e.editor.indentSize,10);isNaN(o)||(i=o),i<1&&(i=1)}var s=bi.insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(s="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var a=eM,u=e.eol;"\r\n"===u?a=2:"\n"===u&&(a=1);var l=bi.trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(l="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var c=bi.detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(c="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var d=bi.largeFileOptimizations;return e.editor&&void 0!==e.editor.largeFileOptimizations&&(d="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations)),{isForSimpleWidget:t,tabSize:n,indentSize:i,insertSpaces:s,detectIndentation:c,defaultEOL:a,trimAutoWhitespace:l,largeFileOptimizations:d}},t.prototype.getCreationOptions=function(e,n,r){var i=this._modelCreationOptionsByLanguageAndResource[e+n];if(!i){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n}),s=this._resourcePropertiesService.getEOL(n,e);i=t._readModelOptions({editor:o,eol:s},r),this._modelCreationOptionsByLanguageAndResource[e+n]=i}return i},t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var n=Object.keys(this._models),r=0,i=n.length;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},sM=function(e,t){return function(n,r){t(n,r,e)}},aM=function(e){function t(t,n){void 0===n&&(n=yf());var r=e.call(this)||this;return r._decorationOptionProviders=new Map,r._styleSheet=n,r._themeService=t,r}return iM(t,e),t.prototype.registerDecorationType=function(e,t,n){var r=this._decorationOptionProviders.get(e);if(!r){var i={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new uM(this._themeService,i):new lM(this._themeService,i),this._decorationOptionProviders.set(e,r)}r.refCount++},t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders.get(e);t&&(t.refCount--,t.refCount<=0&&(this._decorationOptionProviders.delete(e),t.dispose(),this.listCodeEditors().forEach((function(t){return t.removeDecorations(e)}))))},t.prototype.resolveDecorationOptions=function(e,t){var n=this._decorationOptionProviders.get(e);if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)},t=oM([sM(0,Od)],t)}(rM),uM=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey,this.refCount=0,this._beforeContentRules=new dM(3,t,e),this._afterContentRules=new dM(4,t,e)}return e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className),n},e.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null)},e}(),lM=function(){function e(e,t){var n=this;this._disposables=new It,this.refCount=0;var r=function(r){var i=new dM(r,t,e);if(n._disposables.add(i),i.hasContent)return i.className};this.className=r(0);var i,o=(i=new dM(1,t,e),n._disposables.add(i),i.hasContent?{className:i.className,hasLetterSpacing:i.hasLetterSpacing}:null);o&&(this.inlineClassName=o.className,this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing),this.beforeContentClassName=r(3),this.afterContentClassName=r(4),this.glyphMarginClassName=r(2);var s=t.options;this.isWholeLine=Boolean(s.isWholeLine),this.stickiness=s.rangeBehavior;var a=s.light&&s.light.overviewRulerColor||s.overviewRulerColor,u=s.dark&&s.dark.overviewRulerColor||s.overviewRulerColor;void 0===a&&void 0===u||(this.overviewRuler={color:a||u,darkColor:u||a,position:s.overviewRulerLane||pi.Center})}return e.prototype.getOptions=function(e,t){return t?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},e.prototype.dispose=function(){this._disposables.dispose()},e}(),cM={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},dM=function(){function e(e,t,n){var r=this;this._theme=n.getTheme(),this._ruleType=e,this._providerArgs=t,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var i=hM.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+hM.getClassName(this._providerArgs.parentTypeKey,e)),this._className=i,this._unThemedSelector=hM.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e),this._buildCSS(),this._usesThemeColors?this._themeListener=n.onThemeChange((function(e){r._theme=n.getTheme(),r._removeCSS(),r._buildCSS()})):this._themeListener=null}return e.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(e.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),e.prototype._buildCSS=function(){var e,t,n,r=this._providerArgs.options;switch(this._ruleType){case 0:e=this.getCSSTextForModelDecorationClassName(r),t=this.getCSSTextForModelDecorationClassName(r.light),n=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:e=this.getCSSTextForModelDecorationInlineClassName(r),t=this.getCSSTextForModelDecorationInlineClassName(r.light),n=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:e=this.getCSSTextForModelDecorationGlyphMarginClassName(r),t=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),n=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:e=this.getCSSTextForModelDecorationContentClassName(r.before),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),n=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:e=this.getCSSTextForModelDecorationContentClassName(r.after),t=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),n=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var i=this._providerArgs.styleSheet.sheet,o=!1;e.length>0&&(i.insertRule(this._unThemedSelector+" {"+e+"}",0),o=!0),t.length>0&&(i.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),o=!0),n.length>0&&(i.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),o=!0),this._hasContent=o},e.prototype._removeCSS=function(){!function(e,t){if(void 0===t&&(t=bf()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),r=[],i=0;i=0;i--)t.sheet.deleteRule(r[i])}}(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t),e.letterSpacing&&(this._hasLetterSpacing=!0),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){if(this.collectBorderSettingsCSSText(e,t),void 0!==e.contentIconPath&&t.push(on(cM.contentIconPath,Pf(ct.revive(e.contentIconPath)))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(on(cM.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return void 0!==e.gutterIconPath&&(t.push(on(cM.gutterIconPath,Pf(ct.revive(e.gutterIconPath)))),void 0!==e.gutterIconSize&&t.push(on(cM.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(on("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var r=n.length,i=0,o=t;it)return 1;return 0}(e.token,t.token);return 0!==n?n:e.index-t.index}));for(var n=0,r="000000",i="ffffff";e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(n=o.fontStyle),null!==o.foreground&&(r=o.foreground),null!==o.background&&(i=o.background)}for(var s=new yM,a=0,u=t;a>>0,this._cache.set(t,n)}return(n|e<<0)>>>0},e}(),bM=/\b(comment|string|regex|regexp)\b/;var wM,CM,SM,xM=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),LM=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,r=e.indexOf(".");-1===r?(t=e,n=""):(t=e.substring(0,r),n=e.substring(r+1));var i=this._children.get(t);return void 0!==i?i.match(n):this._mainRule},e.prototype.insert=function(t,n,r,i){if(""!==t){var o,s,a=t.indexOf(".");-1===a?(o=t,s=""):(o=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(o);void 0===u&&(u=new e(this._mainRule.clone()),this._children.set(o,u)),u.insert(s,n,r,i)}else this._mainRule.acceptOverwrite(n,r,i)},e}();var kM={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(wM={},wM[ed]="#FFFFFE",wM[td]="#000000",wM[ud]="#E5EBF1",wM[mC]="#D3D3D3",wM[_C]="#939393",wM[ld]="#ADD6FF4D",wM)},MM={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(CM={},CM[ed]="#1E1E1E",CM[td]="#D4D4D4",CM[ud]="#3A3D41",CM[mC]="#404040",CM[_C]="#707070",CM[ld]="#ADD6FF26",CM)},DM={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.pug",foreground:"4F76AC"},{token:"tag.class.pug",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(SM={},SM[ed]="#000000",SM[td]="#FFFFFF",SM[mC]="#FFFFFF",SM[_C]="#FFFFFF",SM)},EM="vs",TM="vs-dark",NM="hc-black",OM=xr.as(Gl),AM=xr.as(Fd),IM=function(){function e(e,t){this.themeData=t;var n=t.base;e.length>0?(this.id=n+" "+e,this.themeName=e):(this.id=n,this.themeName=n),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),e.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},e.prototype.getColors=function(){if(!this.colors){var e=new Map;for(var t in this.themeData.colors)e.set(t,Tu.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){var n=RM(this.themeData.base);for(var t in n.colors)e.has(t)||e.set(t,Tu.fromHex(n.colors[t]))}this.colors=e}return this.colors},e.prototype.getColor=function(e,t){var n=this.getColors().get(e);return n||(!1!==t?this.getDefault(e):void 0)},e.prototype.getDefault=function(e){var t=this.defaultColors[e];return t||(t=OM.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)},e.prototype.defines=function(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case EM:return"light";case NM:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[],t=[];if(this.themeData.inherit){var n=RM(this.themeData.base);e=n.rules,n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=vM.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0}),e}();function PM(e){return e===EM||e===TM||e===NM}function RM(e){switch(e){case EM:return kM;case TM:return MM;case NM:return DM}}function FM(e){var t=RM(e);return new IM(e,t)}var YM=function(){function e(){this.environment=Object.create(null),this._onThemeChange=new Kt,this._onIconThemeChange=new Kt,this._knownThemes=new Map,this._knownThemes.set(EM,FM(EM)),this._knownThemes.set(TM,FM(TM)),this._knownThemes.set(NM,FM(NM)),this._styleElement=yf(),this._styleElement.className="monaco-colors",this.setTheme(EM)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw new Error("Illegal theme name!");if(!PM(t.base)&&!PM(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new IM(e,t)),PM(e)&&this._knownThemes.forEach((function(t){t.base===e&&t.notifyBaseUpdated()})),this._theme&&this._theme.themeName===e&&this.setTheme(e)},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t,n=this;if(t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(EM),this._theme===t)return t.id;this._theme=t;var r=[],i={},o={addRule:function(e){i[e]||(r.push(e),i[e]=!0)}};AM.getThemingParticipants().forEach((function(e){return e(t,o,n.environment)}));var s=t.tokenTheme.getColorMap();return o.addRule(function(e){for(var t=[],n=1,r=e.length;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},WM=function(e,t){return function(n,r){t(n,r,e)}},HM="data-keybinding-context",VM=function(){function e(e,t){this._id=e,this._parent=t,this._value=Object.create(null),this._value._contextId=e}return e.prototype.setValue=function(e,t){return this._value[e]!==t&&(this._value[e]=t,!0)},e.prototype.removeValue=function(e){return e in this._value&&(delete this._value[e],!0)},e.prototype.getValue=function(e){var t=this._value[e];return void 0===t&&this._parent?this._parent.getValue(e):t},e}(),zM=function(e){function t(){return e.call(this,-1,null)||this}return jM(t,e),t.prototype.setValue=function(e,t){return!1},t.prototype.removeValue=function(e){return!1},t.prototype.getValue=function(e){},t.INSTANCE=new t,t}(VM),UM=function(e){function t(t,n,r){var i=e.call(this,t,null)||this;return i._configurationService=n,i._values=new Map,i._listener=i._configurationService.onDidChangeConfiguration((function(e){if(6===e.source){var t=Gn(i._values);i._values.clear(),r.fire(new GM(t))}else{for(var n=[],o=0,s=e.affectedKeys;o1){var r=n.shift();r&&(i.focusItemByElement(r.container),n.push(r)),i.mnemonics.set(t,n)}}}))),et.c&&i._register(qh(o,wf.KEY_DOWN,(function(e){var t=new wh(e);t.equals(14)||t.equals(11)?(i.focusedItem=i.viewItems.length-1,i.focusNext(),Cf.stop(e,!0)):(t.equals(13)||t.equals(12))&&(i.focusedItem=0,i.focusPrevious(),Cf.stop(e,!0))}))),i._register(qh(i.domNode,wf.MOUSE_OUT,(function(e){_f(e.relatedTarget,i.domNode)||(i.focusedItem=void 0,i.scrollTopHold=i.menuElement.scrollTop,i.updateFocus(),e.stopPropagation())}))),i._register(qh(i.domNode,wf.MOUSE_UP,(function(e){Cf.stop(e,!0)}))),i._register(qh(i.actionsList,wf.MOUSE_OVER,(function(e){var t=e.target;if(t&&_f(t,i.actionsList)&&t!==i.actionsList){for(;t.parentElement!==i.actionsList&&null!==t.parentElement;)t=t.parentElement;if(jh(t,"action-item")){var n=i.focusedItem;i.scrollTopHold=i.menuElement.scrollTop,i.setFocusedItem(t),n!==i.focusedItem&&i.updateFocus()}}})));var s={parent:i};return i.mnemonics=new Map,i.push(n,{icon:!0,label:!0,isMenu:!0}),i.scrollableElement=i._register(new Qp(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0})),i.scrollableElement.getDomNode().style.position=null,o.style.maxHeight=Math.max(10,window.innerHeight-t.getBoundingClientRect().top-30)+"px",i.menuDisposables.add(i.scrollableElement.onScroll((function(){i._onScroll.fire()}),i)),i._register(qh(i.menuElement,wf.SCROLL,(function(e){void 0!==i.scrollTopHold&&(i.menuElement.scrollTop=i.scrollTopHold,i.scrollTopHold=void 0),i.scrollableElement.scanDomNode()}))),t.appendChild(i.scrollableElement.getDomNode()),i.scrollableElement.scanDomNode(),i.viewItems.filter((function(e){return!(e instanceof sD)})).forEach((function(e,t,n){e.updatePositionInSet(t+1,n.length)})),i}return QM(t,e),t.prototype.style=function(e){var t=this.getContainer(),n=e.foregroundColor?""+e.foregroundColor:null,r=e.backgroundColor?""+e.backgroundColor:null,i=e.borderColor?"2px solid "+e.borderColor:null,o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=i,this.domNode.style.color=n,this.domNode.style.backgroundColor=r,t.style.boxShadow=o,this.viewItems&&this.viewItems.forEach((function(t){(t instanceof iD||t instanceof sD)&&t.style(e)}))},t.prototype.getContainer=function(){return this.scrollableElement.getDomNode()},Object.defineProperty(t.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollOffset",{get:function(){return this.menuElement.scrollTop},enumerable:!0,configurable:!0}),t.prototype.focusItemByElement=function(e){var t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()},t.prototype.setFocusedItem=function(e){for(var t=0;t
\n \n \n ',L(t,"class","button-container svelte-g5aiet")},m(e,n){y(e,t,n)},d(e){e&&v(t)}}}function JA(e){let t;const n=new WA({});return{c(){X(n.$$.fragment)},m(e,r){J(n,e,r),t=!0},i(e){t||(G(n.$$.fragment,e),t=!0)},o(e){$(n.$$.fragment,e),t=!1},d(e){Q(n,e)}}}function QA(e){let t;return{c(){t=w(e[0])},m(e,n){y(e,t,n)},p(e,n){1&n&&M(t,e[0])},d(e){e&&v(t)}}}function eI(e){let t,n,r,i,o,s,a,l,c,d,h,f,p,g,m,S,k,M,D,E,T,N,O,A,I,P,R,F,Y,j,B,W,H,V,z,U,q;const K=new AA({props:{title:"Code",noPadding:"true",$$slots:{default:[zA]},$$scope:{ctx:e}}}),Z=new AA({props:{title:"Mermaid Configuration",$$slots:{default:[UA]},$$scope:{ctx:e}}}),ee=new AA({props:{title:"Preview",$$slots:{default:[qA]},$$scope:{ctx:e}}}),te=new AA({props:{title:"Editing history",$$slots:{default:[ZA]},$$scope:{ctx:e}}}),ne=new AA({props:{title:"Links",$$slots:{default:[XA]},$$scope:{ctx:e}}}),re=new AA({props:{title:"Actions",$$slots:{default:[JA]},$$scope:{ctx:e}}}),ie=new RA({props:{color:"green",$$slots:{default:[QA]},$$scope:{ctx:e}}});return{c(){t=b("div"),(n=b("div")).innerHTML='

Mermaid Live Editor

',r=C(),i=b("div"),o=b("div"),(s=b("span")).innerHTML="Diagram presets:",a=C(),(l=b("button")).textContent="Flow Chart",c=C(),(d=b("button")).textContent="Sequence Diagram",h=C(),(f=b("button")).textContent="Class Diagram",p=C(),(g=b("button")).textContent="State Diagram",m=C(),(S=b("button")).textContent="Gantt Chart",k=C(),(M=b("button")).textContent="Pie Chart",D=C(),(E=b("button")).textContent="ER Diagram",T=C(),N=b("div"),O=b("div"),X(K.$$.fragment),A=C(),X(Z.$$.fragment),I=C(),P=b("div"),X(ee.$$.fragment),R=C(),F=b("div"),Y=b("div"),X(te.$$.fragment),j=C(),X(ne.$$.fragment),B=C(),W=b("div"),X(re.$$.fragment),H=C(),V=b("div"),z=w("Powered by mermaid\n "),X(ie.$$.fragment),L(n,"id","title-container"),L(n,"class","svelte-g5aiet"),L(s,"id","sampleLoaderTitle"),L(l,"class","button-style svelte-g5aiet"),L(d,"class","button-style svelte-g5aiet"),L(f,"class","button-style svelte-g5aiet"),L(g,"class","button-style svelte-g5aiet"),L(S,"class","button-style svelte-g5aiet"),L(M,"class","button-style svelte-g5aiet"),L(E,"class","button-style svelte-g5aiet"),L(o,"class","button-container svelte-g5aiet"),L(i,"id","sampleLoader"),L(i,"class","svelte-g5aiet"),L(O,"id","col1"),L(O,"class","svelte-g5aiet"),L(Y,"id","link-col1"),L(Y,"class","svelte-g5aiet"),L(W,"id","link-col2"),L(W,"class","svelte-g5aiet"),L(F,"id","link-root"),L(F,"class","svelte-g5aiet"),L(P,"id","col2"),L(P,"class","svelte-g5aiet"),L(N,"id","editor-root"),L(N,"class","svelte-g5aiet"),L(V,"id","power"),L(V,"class","svelte-g5aiet"),L(t,"id","body"),L(t,"class","svelte-g5aiet"),q=[x(l,"click",tI),x(d,"click",nI),x(f,"click",rI),x(g,"click",iI),x(S,"click",oI),x(M,"click",sI),x(E,"click",aI)]},m(e,u){y(e,t,u),_(t,n),_(t,r),_(t,i),_(i,o),_(o,s),_(o,a),_(o,l),_(o,c),_(o,d),_(o,h),_(o,f),_(o,p),_(o,g),_(o,m),_(o,S),_(o,k),_(o,M),_(o,D),_(o,E),_(t,T),_(t,N),_(N,O),J(K,O,null),_(O,A),J(Z,O,null),_(N,I),_(N,P),J(ee,P,null),_(P,R),_(P,F),_(F,Y),J(te,Y,null),_(Y,j),J(ne,Y,null),_(F,B),_(F,W),J(re,W,null),_(t,H),_(t,V),_(V,z),J(ie,V,null),U=!0},p(e,[t]){const n={};130&t&&(n.$$scope={dirty:t,ctx:e}),K.$set(n);const r={};128&t&&(r.$$scope={dirty:t,ctx:e}),Z.$set(r);const i={};128&t&&(i.$$scope={dirty:t,ctx:e}),ee.$set(i);const o={};132&t&&(o.$$scope={dirty:t,ctx:e}),te.$set(o);const s={};128&t&&(s.$$scope={dirty:t,ctx:e}),ne.$set(s);const a={};128&t&&(a.$$scope={dirty:t,ctx:e}),re.$set(a);const u={};129&t&&(u.$$scope={dirty:t,ctx:e}),ie.$set(u)},i(e){U||(G(K.$$.fragment,e),G(Z.$$.fragment,e),G(ee.$$.fragment,e),G(te.$$.fragment,e),G(ne.$$.fragment,e),G(re.$$.fragment,e),G(ie.$$.fragment,e),U=!0)},o(e){$(K.$$.fragment,e),$(Z.$$.fragment,e),$(ee.$$.fragment,e),$(te.$$.fragment,e),$(ne.$$.fragment,e),$(re.$$.fragment,e),$(ie.$$.fragment,e),U=!1},d(e){e&&v(t),Q(K),Q(Z),Q(ee),Q(te),Q(ne),Q(re),Q(ie),u(q)}}}function tI(){uI("FlowChart")}function nI(){uI("SequenceDiagram")}function rI(){uI("ClassDiagram")}function iI(){uI("StateDiagram")}function oI(){uI("GanttChart")}function sI(){uI("PieChart")}function aI(){uI("ERDiagram")}function uI(e){let t="";switch(e){case"FlowChart":t="graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n ";break;case"SequenceDiagram":t="sequenceDiagram\n Alice->>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John--\x3e>-Alice: Hi Alice, I can hear you!\n John--\x3e>-Alice: I feel great!\n ";break;case"ClassDiagram":t="classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n ";break;case"StateDiagram":t="stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n ";break;case"GanttChart":t="gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n ";break;case"PieChart":t='pie title Pets adopted by volunteers\n "Dogs" : 386\n "Cats" : 85\n "Rats" : 15\n ';break;case"ERDiagram":t='erDiagram\n CUSTOMER }|..|{ DELIVERY-ADDRESS : has\n CUSTOMER ||--o{ ORDER : places\n CUSTOMER ||--o{ INVOICE : "liable for"\n DELIVERY-ADDRESS ||--o{ ORDER : receives\n INVOICE ||--|{ ORDER : covers\n ORDER ||--|{ ORDER-ITEM : includes\n PRODUCT-CATEGORY ||--|{ PRODUCT : contains\n PRODUCT ||--o{ ORDER-ITEM : "ordered in"\n '}lI(t)}function lI(e){e&&ye(e,!0)}function cI(e,t,n){let{mermaidVersion:r=HA.version}=t,i=[];A(async()=>{ga("send","pageview"),ga("send","event","version",r,r);n(2,i=JSON.parse(localStorage.getItem("_mermaid_history_")||"[]"));let e=i.length>0?i[i.length-1]:null;o.data?me(o.data):e&&_e({code:e.code,mermaid:{},updateEditor:!0});let t=null;ge.subscribe(e=>{t=e&&e.code||t}),setInterval(()=>{t!=e&&(i.push({time:(new Date).toISOString(),code:e=t}),i.length>10&&i.shift(),n(2,i),localStorage.setItem("_mermaid_history_",JSON.stringify(i)))},6e4)});let{params:o={}}=t;return e.$set=e=>{"mermaidVersion"in e&&n(0,r=e.mermaidVersion),"params"in e&&n(1,o=e.params)},[r,o,i,(e,t)=>lI(e.code)]}var dI=class extends te{constructor(e){super(),ee(this,e,cI,eI,c,{mermaidVersion:0,params:1})}};n(601);function hI(e){let t,n;const r=new TA({});return{c(){t=b("div"),X(r.$$.fragment),L(t,"id","view-page"),L(t,"class","svelte-ylwsal")},m(e,i){y(e,t,i),J(r,t,null),n=!0},p:o,i(e){n||(G(r.$$.fragment,e),n=!0)},o(e){$(r.$$.fragment,e),n=!1},d(e){e&&v(t),Q(r)}}}function fI(e){return A(async()=>{ga("send","pageview")}),[]}var pI=class extends te{constructor(e){super(),ee(this,e,fI,hI,c,{})}};function gI(e){let t,n,r;const i=new fe({props:{routes:e[0]}});return{c(){t=b("link"),n=C(),X(i.$$.fragment),L(t,"href","https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"),L(t,"rel","stylesheet")},m(e,o){_(document.head,t),y(e,n,o),J(i,e,o),r=!0},p:o,i(e){r||(G(i.$$.fragment,e),r=!0)},o(e){$(i.$$.fragment,e),r=!1},d(e){v(t),e&&v(n),Q(i,e)}}}function mI(e){return[{"/":dI,"/edit/:data":dI,"/view/:data":pI,"*":dI}]}const _I=new class extends te{constructor(e){super(),ee(this,e,mI,gI,c,{})}}({target:document.body,props:{name:"world"}});window.app=_I;t.default=_I}]); \ No newline at end of file + /*! no static exports found */ function (e, t) { + e.exports = n(605); + }, + }).default; + }), + (e.exports = r()); + }, + function (e, t, n) { + var r = n(381), + i = n(386); + e.exports = function (e, t) { + var n = i(e, t); + return r(n) ? n : void 0; + }; + }, + function (e, t, n) { + var r = n(27), + i = n(8), + o = '[object AsyncFunction]', + s = '[object Function]', + a = '[object GeneratorFunction]', + u = '[object Proxy]'; + e.exports = function (e) { + if (!i(e)) return !1; + var t = r(e); + return t == s || t == a || t == o || t == u; + }; + }, + function (e, t, n) { + var r = n(32), + i = n(382), + o = n(383), + s = '[object Null]', + a = '[object Undefined]', + u = r ? r.toStringTag : void 0; + e.exports = function (e) { + return null == e + ? void 0 === e + ? a + : s + : u && u in Object(e) + ? i(e) + : o(e); + }; + }, + function (e, t) { + e.exports = function (e) { + return e; + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(16); + t.default = function (e, t, n) { + var o = i.default.parse(e), + s = o[t], + a = r.default.channel.clamp[t](s + n); + return s !== a && (o[t] = a), i.default.stringify(o); + }; + }, + function (e, t) { + var n; + n = (function () { + return this; + })(); + try { + n = n || new Function('return this')(); + } catch (e) { + 'object' == typeof window && (n = window); + } + e.exports = n; + }, + function (e, t) { + e.exports = function (e, t) { + return e === t || (e != e && t != t); + }; + }, + function (e, t, n) { + var r = n(14).Symbol; + e.exports = r; + }, + function (e, t, n) { + (function (e) { + var r = n(14), + i = n(402), + o = t && !t.nodeType && t, + s = o && 'object' == typeof e && e && !e.nodeType && e, + a = s && s.exports === o ? r.Buffer : void 0, + u = (a ? a.isBuffer : void 0) || i; + e.exports = u; + }.call(this, n(40)(e))); + }, + function (e, t, n) { + var r = n(109), + i = n(406), + o = n(20); + e.exports = function (e) { + return o(e) ? r(e, !0) : i(e); + }; + }, + function (e, t, n) { + var r = n(411), + i = n(74), + o = n(412), + s = n(118), + a = n(413), + u = n(27), + l = n(107), + c = l(r), + d = l(i), + h = l(o), + f = l(s), + p = l(a), + g = u; + ((r && '[object DataView]' != g(new r(new ArrayBuffer(1)))) || + (i && '[object Map]' != g(new i())) || + (o && '[object Promise]' != g(o.resolve())) || + (s && '[object Set]' != g(new s())) || + (a && '[object WeakMap]' != g(new a()))) && + (g = function (e) { + var t = u(e), + n = '[object Object]' == t ? e.constructor : void 0, + r = n ? l(n) : ''; + if (r) + switch (r) { + case c: + return '[object DataView]'; + case d: + return '[object Map]'; + case h: + return '[object Promise]'; + case f: + return '[object Set]'; + case p: + return '[object WeakMap]'; + } + return t; + }), + (e.exports = g); + }, + function (e, t, n) { + var r = n(27), + i = n(18), + o = '[object Symbol]'; + e.exports = function (e) { + return 'symbol' == typeof e || (i(e) && r(e) == o); + }; + }, + function (e, t, n) { + var r; + try { + r = { + defaults: n(90), + each: n(43), + isFunction: n(26), + isPlainObject: n(157), + pick: n(93), + has: n(45), + range: n(94), + uniqueId: n(95), + }; + } catch (e) {} + r || (r = window._), (e.exports = r); + }, + function (e, t, n) { + var r = n(52), + i = n(53); + e.exports = function (e, t, n, o) { + var s = !n; + n || (n = {}); + for (var a = -1, u = t.length; ++a < u; ) { + var l = t[a], + c = o ? o(n[l], e[l], l, n, e) : void 0; + void 0 === c && (c = e[l]), s ? i(n, l, c) : r(n, l, c); + } + return n; + }; + }, + function (e, t, n) { + var r = n(401), + i = n(18), + o = Object.prototype, + s = o.hasOwnProperty, + a = o.propertyIsEnumerable, + u = r( + (function () { + return arguments; + })() + ) + ? r + : function (e) { + return i(e) && s.call(e, 'callee') && !a.call(e, 'callee'); + }; + e.exports = u; + }, + function (e, t) { + e.exports = function (e) { + return ( + e.webpackPolyfill || + ((e.deprecate = function () {}), + (e.paths = []), + e.children || (e.children = []), + Object.defineProperty(e, 'loaded', { + enumerable: !0, + get: function () { + return e.l; + }, + }), + Object.defineProperty(e, 'id', { + enumerable: !0, + get: function () { + return e.i; + }, + }), + (e.webpackPolyfill = 1)), + e + ); + }; + }, + function (e, t, n) { + var r = n(403), + i = n(55), + o = n(78), + s = o && o.isTypedArray, + a = s ? i(s) : r; + e.exports = a; + }, + function (e, t) { + e.exports = function (e) { + return function () { + return e; + }; + }; + }, + function (e, t, n) { + e.exports = n(83); + }, + function (e, t, n) { + var r = n(36), + i = 1 / 0; + e.exports = function (e) { + if ('string' == typeof e || r(e)) return e; + var t = e + ''; + return '0' == t && 1 / e == -i ? '-0' : t; + }; + }, + function (e, t, n) { + var r = n(445), + i = n(132); + e.exports = function (e, t) { + return null != e && i(e, t, r); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = new (n(581).default)({ r: 0, g: 0, b: 0, a: 0 }, 'transparent'); + t.default = r; + }, + function (e, t, n) { + var r = n(48), + i = n(376), + o = n(377), + s = n(378), + a = n(379), + u = n(380); + function l(e) { + var t = (this.__data__ = new r(e)); + this.size = t.size; + } + (l.prototype.clear = i), + (l.prototype.delete = o), + (l.prototype.get = s), + (l.prototype.has = a), + (l.prototype.set = u), + (e.exports = l); + }, + function (e, t, n) { + var r = n(371), + i = n(372), + o = n(373), + s = n(374), + a = n(375); + function u(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.clear(); ++t < n; ) { + var r = e[t]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = s), + (u.prototype.set = a), + (e.exports = u); + }, + function (e, t, n) { + var r = n(31); + e.exports = function (e, t) { + for (var n = e.length; n--; ) if (r(e[n][0], t)) return n; + return -1; + }; + }, + function (e, t, n) { + var r = n(25)(Object, 'create'); + e.exports = r; + }, + function (e, t, n) { + var r = n(395); + e.exports = function (e, t) { + var n = e.__data__; + return r(t) ? n['string' == typeof t ? 'string' : 'hash'] : n.map; + }; + }, + function (e, t, n) { + var r = n(53), + i = n(31), + o = Object.prototype.hasOwnProperty; + e.exports = function (e, t, n) { + var s = e[t]; + (o.call(e, t) && i(s, n) && (void 0 !== n || t in e)) || r(e, t, n); + }; + }, + function (e, t, n) { + var r = n(108); + e.exports = function (e, t, n) { + '__proto__' == t && r + ? r(e, t, { configurable: !0, enumerable: !0, value: n, writable: !0 }) + : (e[t] = n); + }; + }, + function (e, t) { + var n = 9007199254740991, + r = /^(?:0|[1-9]\d*)$/; + e.exports = function (e, t) { + var i = typeof e; + return ( + !!(t = null == t ? n : t) && + ('number' == i || ('symbol' != i && r.test(e))) && + e > -1 && + e % 1 == 0 && + e < t + ); + }; + }, + function (e, t) { + e.exports = function (e) { + return function (t) { + return e(t); + }; + }; + }, + function (e, t) { + var n = Object.prototype; + e.exports = function (e) { + var t = e && e.constructor; + return e === (('function' == typeof t && t.prototype) || n); + }; + }, + function (e, t, n) { + var r = n(110)(Object.getPrototypeOf, Object); + e.exports = r; + }, + function (e, t, n) { + var r = n(84), + i = n(424)(r); + e.exports = i; + }, + function (e, t, n) { + var r = n(113), + i = n(425), + o = n(21), + s = n(4); + e.exports = function (e, t) { + return (s(e) ? r : i)(e, o(t, 3)); + }; + }, + function (e, t, n) { + var r = n(4), + i = n(88), + o = n(438), + s = n(130); + e.exports = function (e, t) { + return r(e) ? e : i(e, t) ? [e] : o(s(e)); + }; + }, + function (e, t) { + e.exports = function (e, t) { + for (var n = -1, r = null == e ? 0 : e.length, i = Array(r); ++n < r; ) + i[n] = t(e[n], n, e); + return i; + }; + }, + function (e, t) { + e.exports = function (e) { + return void 0 === e; + }; + }, + function (e, t, n) { + var r = n(61), + i = n(21), + o = n(135), + s = n(4); + e.exports = function (e, t) { + return (s(e) ? r : o)(e, i(t, 3)); + }; + }, + function (e, t, n) { + var r = n(446), + i = n(58), + o = n(21), + s = n(447), + a = n(4); + e.exports = function (e, t, n) { + var u = a(e) ? r : s, + l = arguments.length < 3; + return u(e, o(t, 4), n, l, i); + }; + }, + function (e, t, n) { + var r = n(28), + i = n(139), + o = n(140); + e.exports = function (e, t) { + return o(i(e, t, r), e + ''); + }; + }, + function (e, t, n) { + var r = n(465), + i = n(19); + e.exports = function (e) { + return null == e ? [] : r(e, i(e)); + }; + }, + function (e, t, n) { + var r = n(31), + i = n(20), + o = n(54), + s = n(8); + e.exports = function (e, t, n) { + if (!s(n)) return !1; + var a = typeof t; + return ( + !!('number' == a ? i(n) && o(t, n.length) : 'string' == a && t in n) && + r(n[t], e) + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2); + e.exports = { + longestPath: function (e) { + var t = {}; + r.forEach(e.sources(), function n(i) { + var o = e.node(i); + if (r.has(t, i)) return o.rank; + t[i] = !0; + var s = r.min( + r.map(e.outEdges(i), function (t) { + return n(t.w) - e.edge(t).minlen; + }) + ); + return ( + (s !== Number.POSITIVE_INFINITY && null != s) || (s = 0), + (o.rank = s) + ); + }); + }, + slack: function (e, t) { + return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen; + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3); + e.exports = { + longestPath: function (e) { + var t = {}; + r.forEach(e.sources(), function n(i) { + var o = e.node(i); + if (r.has(t, i)) return o.rank; + t[i] = !0; + var s = r.min( + r.map(e.outEdges(i), function (t) { + return n(t.w) - e.edge(t).minlen; + }) + ); + return ( + (s !== Number.POSITIVE_INFINITY && null != s) || (s = 0), + (o.rank = s) + ); + }); + }, + slack: function (e, t) { + return e.node(t.w).rank - e.node(t.v).rank - e.edge(t).minlen; + }, + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(46), + o = n(16), + s = n(71); + t.default = function (e, t, n, a) { + if ( + (void 0 === n && (n = 0), void 0 === a && (a = 1), 'number' != typeof e) + ) + return s.default(e, { a: t }); + var u = i.default.set({ + r: r.default.channel.clamp.r(e), + g: r.default.channel.clamp.g(t), + b: r.default.channel.clamp.b(n), + a: r.default.channel.clamp.a(a), + }); + return o.default.stringify(u); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(16); + t.default = function (e, t) { + var n = i.default.parse(e); + for (var o in t) n[o] = r.default.channel.clamp[o](t[o]); + return i.default.stringify(n); + }; + }, + function (e, t) { + var n, + r, + i = (e.exports = {}); + function o() { + throw new Error('setTimeout has not been defined'); + } + function s() { + throw new Error('clearTimeout has not been defined'); + } + function a(e) { + if (n === setTimeout) return setTimeout(e, 0); + if ((n === o || !n) && setTimeout) + return (n = setTimeout), setTimeout(e, 0); + try { + return n(e, 0); + } catch (t) { + try { + return n.call(null, e, 0); + } catch (t) { + return n.call(this, e, 0); + } + } + } + !(function () { + try { + n = 'function' == typeof setTimeout ? setTimeout : o; + } catch (e) { + n = o; + } + try { + r = 'function' == typeof clearTimeout ? clearTimeout : s; + } catch (e) { + r = s; + } + })(); + var u, + l = [], + c = !1, + d = -1; + function h() { + c && + u && + ((c = !1), u.length ? (l = u.concat(l)) : (d = -1), l.length && f()); + } + function f() { + if (!c) { + var e = a(h); + c = !0; + for (var t = l.length; t; ) { + for (u = l, l = []; ++d < t; ) u && u[d].run(); + (d = -1), (t = l.length); + } + (u = null), + (c = !1), + (function (e) { + if (r === clearTimeout) return clearTimeout(e); + if ((r === s || !r) && clearTimeout) + return (r = clearTimeout), clearTimeout(e); + try { + r(e); + } catch (t) { + try { + return r.call(null, e); + } catch (t) { + return r.call(this, e); + } + } + })(e); + } + } + function p(e, t) { + (this.fun = e), (this.array = t); + } + function g() {} + (i.nextTick = function (e) { + var t = new Array(arguments.length - 1); + if (arguments.length > 1) + for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n]; + l.push(new p(e, t)), 1 !== l.length || c || a(f); + }), + (p.prototype.run = function () { + this.fun.apply(null, this.array); + }), + (i.title = 'browser'), + (i.browser = !0), + (i.env = {}), + (i.argv = []), + (i.version = ''), + (i.versions = {}), + (i.on = g), + (i.addListener = g), + (i.once = g), + (i.off = g), + (i.removeListener = g), + (i.removeAllListeners = g), + (i.emit = g), + (i.prependListener = g), + (i.prependOnceListener = g), + (i.listeners = function (e) { + return []; + }), + (i.binding = function (e) { + throw new Error('process.binding is not supported'); + }), + (i.cwd = function () { + return '/'; + }), + (i.chdir = function (e) { + throw new Error('process.chdir is not supported'); + }), + (i.umask = function () { + return 0; + }); + }, + function (e, t, n) { + 'use strict'; + var r = n(7); + e.exports = a; + var i = '\0', + o = '\0', + s = ''; + function a(e) { + (this._isDirected = !r.has(e, 'directed') || e.directed), + (this._isMultigraph = !!r.has(e, 'multigraph') && e.multigraph), + (this._isCompound = !!r.has(e, 'compound') && e.compound), + (this._label = void 0), + (this._defaultNodeLabelFn = r.constant(void 0)), + (this._defaultEdgeLabelFn = r.constant(void 0)), + (this._nodes = {}), + this._isCompound && + ((this._parent = {}), + (this._children = {}), + (this._children[o] = {})), + (this._in = {}), + (this._preds = {}), + (this._out = {}), + (this._sucs = {}), + (this._edgeObjs = {}), + (this._edgeLabels = {}); + } + function u(e, t) { + e[t] ? e[t]++ : (e[t] = 1); + } + function l(e, t) { + --e[t] || delete e[t]; + } + function c(e, t, n, o) { + var a = '' + t, + u = '' + n; + if (!e && a > u) { + var l = a; + (a = u), (u = l); + } + return a + s + u + s + (r.isUndefined(o) ? i : o); + } + function d(e, t, n, r) { + var i = '' + t, + o = '' + n; + if (!e && i > o) { + var s = i; + (i = o), (o = s); + } + var a = { v: i, w: o }; + return r && (a.name = r), a; + } + function h(e, t) { + return c(e, t.v, t.w, t.name); + } + (a.prototype._nodeCount = 0), + (a.prototype._edgeCount = 0), + (a.prototype.isDirected = function () { + return this._isDirected; + }), + (a.prototype.isMultigraph = function () { + return this._isMultigraph; + }), + (a.prototype.isCompound = function () { + return this._isCompound; + }), + (a.prototype.setGraph = function (e) { + return (this._label = e), this; + }), + (a.prototype.graph = function () { + return this._label; + }), + (a.prototype.setDefaultNodeLabel = function (e) { + return ( + r.isFunction(e) || (e = r.constant(e)), + (this._defaultNodeLabelFn = e), + this + ); + }), + (a.prototype.nodeCount = function () { + return this._nodeCount; + }), + (a.prototype.nodes = function () { + return r.keys(this._nodes); + }), + (a.prototype.sources = function () { + var e = this; + return r.filter(this.nodes(), function (t) { + return r.isEmpty(e._in[t]); + }); + }), + (a.prototype.sinks = function () { + var e = this; + return r.filter(this.nodes(), function (t) { + return r.isEmpty(e._out[t]); + }); + }), + (a.prototype.setNodes = function (e, t) { + var n = arguments, + i = this; + return ( + r.each(e, function (e) { + n.length > 1 ? i.setNode(e, t) : i.setNode(e); + }), + this + ); + }), + (a.prototype.setNode = function (e, t) { + return r.has(this._nodes, e) + ? (arguments.length > 1 && (this._nodes[e] = t), this) + : ((this._nodes[e] = + arguments.length > 1 ? t : this._defaultNodeLabelFn(e)), + this._isCompound && + ((this._parent[e] = o), + (this._children[e] = {}), + (this._children[o][e] = !0)), + (this._in[e] = {}), + (this._preds[e] = {}), + (this._out[e] = {}), + (this._sucs[e] = {}), + ++this._nodeCount, + this); + }), + (a.prototype.node = function (e) { + return this._nodes[e]; + }), + (a.prototype.hasNode = function (e) { + return r.has(this._nodes, e); + }), + (a.prototype.removeNode = function (e) { + var t = this; + if (r.has(this._nodes, e)) { + var n = function (e) { + t.removeEdge(t._edgeObjs[e]); + }; + delete this._nodes[e], + this._isCompound && + (this._removeFromParentsChildList(e), + delete this._parent[e], + r.each(this.children(e), function (e) { + t.setParent(e); + }), + delete this._children[e]), + r.each(r.keys(this._in[e]), n), + delete this._in[e], + delete this._preds[e], + r.each(r.keys(this._out[e]), n), + delete this._out[e], + delete this._sucs[e], + --this._nodeCount; + } + return this; + }), + (a.prototype.setParent = function (e, t) { + if (!this._isCompound) + throw new Error('Cannot set parent in a non-compound graph'); + if (r.isUndefined(t)) t = o; + else { + for (var n = (t += ''); !r.isUndefined(n); n = this.parent(n)) + if (n === e) + throw new Error( + 'Setting ' + t + ' as parent of ' + e + ' would create a cycle' + ); + this.setNode(t); + } + return ( + this.setNode(e), + this._removeFromParentsChildList(e), + (this._parent[e] = t), + (this._children[t][e] = !0), + this + ); + }), + (a.prototype._removeFromParentsChildList = function (e) { + delete this._children[this._parent[e]][e]; + }), + (a.prototype.parent = function (e) { + if (this._isCompound) { + var t = this._parent[e]; + if (t !== o) return t; + } + }), + (a.prototype.children = function (e) { + if ((r.isUndefined(e) && (e = o), this._isCompound)) { + var t = this._children[e]; + if (t) return r.keys(t); + } else { + if (e === o) return this.nodes(); + if (this.hasNode(e)) return []; + } + }), + (a.prototype.predecessors = function (e) { + var t = this._preds[e]; + if (t) return r.keys(t); + }), + (a.prototype.successors = function (e) { + var t = this._sucs[e]; + if (t) return r.keys(t); + }), + (a.prototype.neighbors = function (e) { + var t = this.predecessors(e); + if (t) return r.union(t, this.successors(e)); + }), + (a.prototype.isLeaf = function (e) { + return ( + 0 === + (this.isDirected() ? this.successors(e) : this.neighbors(e)).length + ); + }), + (a.prototype.filterNodes = function (e) { + var t = new this.constructor({ + directed: this._isDirected, + multigraph: this._isMultigraph, + compound: this._isCompound, + }); + t.setGraph(this.graph()); + var n = this; + r.each(this._nodes, function (n, r) { + e(r) && t.setNode(r, n); + }), + r.each(this._edgeObjs, function (e) { + t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e)); + }); + var i = {}; + return ( + this._isCompound && + r.each(t.nodes(), function (e) { + t.setParent( + e, + (function e(r) { + var o = n.parent(r); + return void 0 === o || t.hasNode(o) + ? ((i[r] = o), o) + : o in i + ? i[o] + : e(o); + })(e) + ); + }), + t + ); + }), + (a.prototype.setDefaultEdgeLabel = function (e) { + return ( + r.isFunction(e) || (e = r.constant(e)), + (this._defaultEdgeLabelFn = e), + this + ); + }), + (a.prototype.edgeCount = function () { + return this._edgeCount; + }), + (a.prototype.edges = function () { + return r.values(this._edgeObjs); + }), + (a.prototype.setPath = function (e, t) { + var n = this, + i = arguments; + return ( + r.reduce(e, function (e, r) { + return i.length > 1 ? n.setEdge(e, r, t) : n.setEdge(e, r), r; + }), + this + ); + }), + (a.prototype.setEdge = function () { + var e, + t, + n, + i, + o = !1, + s = arguments[0]; + 'object' == typeof s && null !== s && 'v' in s + ? ((e = s.v), + (t = s.w), + (n = s.name), + 2 === arguments.length && ((i = arguments[1]), (o = !0))) + : ((e = s), + (t = arguments[1]), + (n = arguments[3]), + arguments.length > 2 && ((i = arguments[2]), (o = !0))), + (e = '' + e), + (t = '' + t), + r.isUndefined(n) || (n = '' + n); + var a = c(this._isDirected, e, t, n); + if (r.has(this._edgeLabels, a)) + return o && (this._edgeLabels[a] = i), this; + if (!r.isUndefined(n) && !this._isMultigraph) + throw new Error('Cannot set a named edge when isMultigraph = false'); + this.setNode(e), + this.setNode(t), + (this._edgeLabels[a] = o ? i : this._defaultEdgeLabelFn(e, t, n)); + var l = d(this._isDirected, e, t, n); + return ( + (e = l.v), + (t = l.w), + Object.freeze(l), + (this._edgeObjs[a] = l), + u(this._preds[t], e), + u(this._sucs[e], t), + (this._in[t][a] = l), + (this._out[e][a] = l), + this._edgeCount++, + this + ); + }), + (a.prototype.edge = function (e, t, n) { + var r = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n); + return this._edgeLabels[r]; + }), + (a.prototype.hasEdge = function (e, t, n) { + var i = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n); + return r.has(this._edgeLabels, i); + }), + (a.prototype.removeEdge = function (e, t, n) { + var r = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n), + i = this._edgeObjs[r]; + return ( + i && + ((e = i.v), + (t = i.w), + delete this._edgeLabels[r], + delete this._edgeObjs[r], + l(this._preds[t], e), + l(this._sucs[e], t), + delete this._in[t][r], + delete this._out[e][r], + this._edgeCount--), + this + ); + }), + (a.prototype.inEdges = function (e, t) { + var n = this._in[e]; + if (n) { + var i = r.values(n); + return t + ? r.filter(i, function (e) { + return e.v === t; + }) + : i; + } + }), + (a.prototype.outEdges = function (e, t) { + var n = this._out[e]; + if (n) { + var i = r.values(n); + return t + ? r.filter(i, function (e) { + return e.w === t; + }) + : i; + } + }), + (a.prototype.nodeEdges = function (e, t) { + var n = this.inEdges(e, t); + if (n) return n.concat(this.outEdges(e, t)); + }); + }, + function (e, t, n) { + var r = n(25)(n(14), 'Map'); + e.exports = r; + }, + function (e, t, n) { + var r = n(387), + i = n(394), + o = n(396), + s = n(397), + a = n(398); + function u(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.clear(); ++t < n; ) { + var r = e[t]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = s), + (u.prototype.set = a), + (e.exports = u); + }, + function (e, t) { + e.exports = function (e, t) { + for ( + var n = -1, r = null == e ? 0 : e.length; + ++n < r && !1 !== t(e[n], n, e); + + ); + return e; + }; + }, + function (e, t) { + var n = 9007199254740991; + e.exports = function (e) { + return 'number' == typeof e && e > -1 && e % 1 == 0 && e <= n; + }; + }, + function (e, t, n) { + (function (e) { + var r = n(106), + i = t && !t.nodeType && t, + o = i && 'object' == typeof e && e && !e.nodeType && e, + s = o && o.exports === i && r.process, + a = (function () { + try { + var e = o && o.require && o.require('util').types; + return e || (s && s.binding && s.binding('util')); + } catch (e) {} + })(); + e.exports = a; + }.call(this, n(40)(e))); + }, + function (e, t, n) { + var r = n(56), + i = n(404), + o = Object.prototype.hasOwnProperty; + e.exports = function (e) { + if (!r(e)) return i(e); + var t = []; + for (var n in Object(e)) o.call(e, n) && 'constructor' != n && t.push(n); + return t; + }; + }, + function (e, t, n) { + var r = n(113), + i = n(114), + o = Object.prototype.propertyIsEnumerable, + s = Object.getOwnPropertySymbols, + a = s + ? function (e) { + return null == e + ? [] + : ((e = Object(e)), + r(s(e), function (t) { + return o.call(e, t); + })); + } + : i; + e.exports = a; + }, + function (e, t) { + e.exports = function (e, t) { + for (var n = -1, r = t.length, i = e.length; ++n < r; ) e[i + n] = t[n]; + return e; + }; + }, + function (e, t, n) { + var r = n(119); + e.exports = function (e) { + var t = new e.constructor(e.byteLength); + return new r(t).set(new r(e)), t; + }; + }, + function (e, t, n) { + var r = n(76), + i = n(58), + o = n(123), + s = n(4); + e.exports = function (e, t) { + return (s(e) ? r : i)(e, o(t)); + }; + }, + function (e, t, n) { + var r = n(85), + i = n(19); + e.exports = function (e, t) { + return e && r(e, t, i); + }; + }, + function (e, t, n) { + var r = n(423)(); + e.exports = r; + }, + function (e, t) { + e.exports = function (e) { + var t = -1, + n = Array(e.size); + return ( + e.forEach(function (e) { + n[++t] = e; + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(60), + i = n(44); + e.exports = function (e, t) { + for (var n = 0, o = (t = r(t, e)).length; null != e && n < o; ) + e = e[i(t[n++])]; + return n && n == o ? e : void 0; + }; + }, + function (e, t, n) { + var r = n(4), + i = n(36), + o = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, + s = /^\w*$/; + e.exports = function (e, t) { + if (r(e)) return !1; + var n = typeof e; + return ( + !( + 'number' != n && + 'symbol' != n && + 'boolean' != n && + null != e && + !i(e) + ) || + s.test(e) || + !o.test(e) || + (null != t && e in Object(t)) + ); + }; + }, + function (e, t, n) { + var r = n(81), + i = n(453); + e.exports = function e(t, n, o, s, a) { + var u = -1, + l = t.length; + for (o || (o = i), a || (a = []); ++u < l; ) { + var c = t[u]; + n > 0 && o(c) + ? n > 1 + ? e(c, n - 1, o, s, a) + : r(a, c) + : s || (a[a.length] = c); + } + return a; + }; + }, + function (e, t, n) { + var r = n(65), + i = n(31), + o = n(67), + s = n(34), + a = Object.prototype, + u = a.hasOwnProperty, + l = r(function (e, t) { + e = Object(e); + var n = -1, + r = t.length, + l = r > 2 ? t[2] : void 0; + for (l && o(t[0], t[1], l) && (r = 1); ++n < r; ) + for (var c = t[n], d = s(c), h = -1, f = d.length; ++h < f; ) { + var p = d[h], + g = e[p]; + (void 0 === g || (i(g, a[p]) && !u.call(e, p))) && (e[p] = c[p]); + } + return e; + }); + e.exports = l; + }, + function (e, t, n) { + var r = n(89); + e.exports = function (e) { + return (null == e ? 0 : e.length) ? r(e, 1) : []; + }; + }, + function (e, t, n) { + var r = n(36); + e.exports = function (e, t, n) { + for (var i = -1, o = e.length; ++i < o; ) { + var s = e[i], + a = t(s); + if (null != a && (void 0 === u ? a == a && !r(a) : n(a, u))) + var u = a, + l = s; + } + return l; + }; + }, + function (e, t, n) { + var r = n(487), + i = n(490)(function (e, t) { + return null == e ? {} : r(e, t); + }); + e.exports = i; + }, + function (e, t, n) { + var r = n(491)(); + e.exports = r; + }, + function (e, t, n) { + var r = n(130), + i = 0; + e.exports = function (e) { + var t = ++i; + return r(e) + t; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(9); + e.exports = a; + var i = '\0', + o = '\0', + s = ''; + function a(e) { + (this._isDirected = !r.has(e, 'directed') || e.directed), + (this._isMultigraph = !!r.has(e, 'multigraph') && e.multigraph), + (this._isCompound = !!r.has(e, 'compound') && e.compound), + (this._label = void 0), + (this._defaultNodeLabelFn = r.constant(void 0)), + (this._defaultEdgeLabelFn = r.constant(void 0)), + (this._nodes = {}), + this._isCompound && + ((this._parent = {}), + (this._children = {}), + (this._children[o] = {})), + (this._in = {}), + (this._preds = {}), + (this._out = {}), + (this._sucs = {}), + (this._edgeObjs = {}), + (this._edgeLabels = {}); + } + function u(e, t) { + e[t] ? e[t]++ : (e[t] = 1); + } + function l(e, t) { + --e[t] || delete e[t]; + } + function c(e, t, n, o) { + var a = '' + t, + u = '' + n; + if (!e && a > u) { + var l = a; + (a = u), (u = l); + } + return a + s + u + s + (r.isUndefined(o) ? i : o); + } + function d(e, t, n, r) { + var i = '' + t, + o = '' + n; + if (!e && i > o) { + var s = i; + (i = o), (o = s); + } + var a = { v: i, w: o }; + return r && (a.name = r), a; + } + function h(e, t) { + return c(e, t.v, t.w, t.name); + } + (a.prototype._nodeCount = 0), + (a.prototype._edgeCount = 0), + (a.prototype.isDirected = function () { + return this._isDirected; + }), + (a.prototype.isMultigraph = function () { + return this._isMultigraph; + }), + (a.prototype.isCompound = function () { + return this._isCompound; + }), + (a.prototype.setGraph = function (e) { + return (this._label = e), this; + }), + (a.prototype.graph = function () { + return this._label; + }), + (a.prototype.setDefaultNodeLabel = function (e) { + return ( + r.isFunction(e) || (e = r.constant(e)), + (this._defaultNodeLabelFn = e), + this + ); + }), + (a.prototype.nodeCount = function () { + return this._nodeCount; + }), + (a.prototype.nodes = function () { + return r.keys(this._nodes); + }), + (a.prototype.sources = function () { + var e = this; + return r.filter(this.nodes(), function (t) { + return r.isEmpty(e._in[t]); + }); + }), + (a.prototype.sinks = function () { + var e = this; + return r.filter(this.nodes(), function (t) { + return r.isEmpty(e._out[t]); + }); + }), + (a.prototype.setNodes = function (e, t) { + var n = arguments, + i = this; + return ( + r.each(e, function (e) { + n.length > 1 ? i.setNode(e, t) : i.setNode(e); + }), + this + ); + }), + (a.prototype.setNode = function (e, t) { + return r.has(this._nodes, e) + ? (arguments.length > 1 && (this._nodes[e] = t), this) + : ((this._nodes[e] = + arguments.length > 1 ? t : this._defaultNodeLabelFn(e)), + this._isCompound && + ((this._parent[e] = o), + (this._children[e] = {}), + (this._children[o][e] = !0)), + (this._in[e] = {}), + (this._preds[e] = {}), + (this._out[e] = {}), + (this._sucs[e] = {}), + ++this._nodeCount, + this); + }), + (a.prototype.node = function (e) { + return this._nodes[e]; + }), + (a.prototype.hasNode = function (e) { + return r.has(this._nodes, e); + }), + (a.prototype.removeNode = function (e) { + var t = this; + if (r.has(this._nodes, e)) { + var n = function (e) { + t.removeEdge(t._edgeObjs[e]); + }; + delete this._nodes[e], + this._isCompound && + (this._removeFromParentsChildList(e), + delete this._parent[e], + r.each(this.children(e), function (e) { + t.setParent(e); + }), + delete this._children[e]), + r.each(r.keys(this._in[e]), n), + delete this._in[e], + delete this._preds[e], + r.each(r.keys(this._out[e]), n), + delete this._out[e], + delete this._sucs[e], + --this._nodeCount; + } + return this; + }), + (a.prototype.setParent = function (e, t) { + if (!this._isCompound) + throw new Error('Cannot set parent in a non-compound graph'); + if (r.isUndefined(t)) t = o; + else { + for (var n = (t += ''); !r.isUndefined(n); n = this.parent(n)) + if (n === e) + throw new Error( + 'Setting ' + t + ' as parent of ' + e + ' would create a cycle' + ); + this.setNode(t); + } + return ( + this.setNode(e), + this._removeFromParentsChildList(e), + (this._parent[e] = t), + (this._children[t][e] = !0), + this + ); + }), + (a.prototype._removeFromParentsChildList = function (e) { + delete this._children[this._parent[e]][e]; + }), + (a.prototype.parent = function (e) { + if (this._isCompound) { + var t = this._parent[e]; + if (t !== o) return t; + } + }), + (a.prototype.children = function (e) { + if ((r.isUndefined(e) && (e = o), this._isCompound)) { + var t = this._children[e]; + if (t) return r.keys(t); + } else { + if (e === o) return this.nodes(); + if (this.hasNode(e)) return []; + } + }), + (a.prototype.predecessors = function (e) { + var t = this._preds[e]; + if (t) return r.keys(t); + }), + (a.prototype.successors = function (e) { + var t = this._sucs[e]; + if (t) return r.keys(t); + }), + (a.prototype.neighbors = function (e) { + var t = this.predecessors(e); + if (t) return r.union(t, this.successors(e)); + }), + (a.prototype.isLeaf = function (e) { + return ( + 0 === + (this.isDirected() ? this.successors(e) : this.neighbors(e)).length + ); + }), + (a.prototype.filterNodes = function (e) { + var t = new this.constructor({ + directed: this._isDirected, + multigraph: this._isMultigraph, + compound: this._isCompound, + }); + t.setGraph(this.graph()); + var n = this; + r.each(this._nodes, function (n, r) { + e(r) && t.setNode(r, n); + }), + r.each(this._edgeObjs, function (e) { + t.hasNode(e.v) && t.hasNode(e.w) && t.setEdge(e, n.edge(e)); + }); + var i = {}; + return ( + this._isCompound && + r.each(t.nodes(), function (e) { + t.setParent( + e, + (function e(r) { + var o = n.parent(r); + return void 0 === o || t.hasNode(o) + ? ((i[r] = o), o) + : o in i + ? i[o] + : e(o); + })(e) + ); + }), + t + ); + }), + (a.prototype.setDefaultEdgeLabel = function (e) { + return ( + r.isFunction(e) || (e = r.constant(e)), + (this._defaultEdgeLabelFn = e), + this + ); + }), + (a.prototype.edgeCount = function () { + return this._edgeCount; + }), + (a.prototype.edges = function () { + return r.values(this._edgeObjs); + }), + (a.prototype.setPath = function (e, t) { + var n = this, + i = arguments; + return ( + r.reduce(e, function (e, r) { + return i.length > 1 ? n.setEdge(e, r, t) : n.setEdge(e, r), r; + }), + this + ); + }), + (a.prototype.setEdge = function () { + var e, + t, + n, + i, + o = !1, + s = arguments[0]; + 'object' == typeof s && null !== s && 'v' in s + ? ((e = s.v), + (t = s.w), + (n = s.name), + 2 === arguments.length && ((i = arguments[1]), (o = !0))) + : ((e = s), + (t = arguments[1]), + (n = arguments[3]), + arguments.length > 2 && ((i = arguments[2]), (o = !0))), + (e = '' + e), + (t = '' + t), + r.isUndefined(n) || (n = '' + n); + var a = c(this._isDirected, e, t, n); + if (r.has(this._edgeLabels, a)) + return o && (this._edgeLabels[a] = i), this; + if (!r.isUndefined(n) && !this._isMultigraph) + throw new Error('Cannot set a named edge when isMultigraph = false'); + this.setNode(e), + this.setNode(t), + (this._edgeLabels[a] = o ? i : this._defaultEdgeLabelFn(e, t, n)); + var l = d(this._isDirected, e, t, n); + return ( + (e = l.v), + (t = l.w), + Object.freeze(l), + (this._edgeObjs[a] = l), + u(this._preds[t], e), + u(this._sucs[e], t), + (this._in[t][a] = l), + (this._out[e][a] = l), + this._edgeCount++, + this + ); + }), + (a.prototype.edge = function (e, t, n) { + var r = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n); + return this._edgeLabels[r]; + }), + (a.prototype.hasEdge = function (e, t, n) { + var i = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n); + return r.has(this._edgeLabels, i); + }), + (a.prototype.removeEdge = function (e, t, n) { + var r = + 1 === arguments.length + ? h(this._isDirected, arguments[0]) + : c(this._isDirected, e, t, n), + i = this._edgeObjs[r]; + return ( + i && + ((e = i.v), + (t = i.w), + delete this._edgeLabels[r], + delete this._edgeObjs[r], + l(this._preds[t], e), + l(this._sucs[e], t), + delete this._in[t][r], + delete this._out[e][r], + this._edgeCount--), + this + ); + }), + (a.prototype.inEdges = function (e, t) { + var n = this._in[e]; + if (n) { + var i = r.values(n); + return t + ? r.filter(i, function (e) { + return e.v === t; + }) + : i; + } + }), + (a.prototype.outEdges = function (e, t) { + var n = this._out[e]; + if (n) { + var i = r.values(n); + return t + ? r.filter(i, function (e) { + return e.w === t; + }) + : i; + } + }), + (a.prototype.nodeEdges = function (e, t) { + var n = this.inEdges(e, t); + if (n) return n.concat(this.outEdges(e, t)); + }); + }, + function (e, t) { + e.exports = function (e, t, n, r) { + var i = e.x, + o = e.y, + s = i - r.x, + a = o - r.y, + u = Math.sqrt(t * t * a * a + n * n * s * s), + l = Math.abs((t * n * s) / u); + r.x < i && (l = -l); + var c = Math.abs((t * n * a) / u); + r.y < o && (c = -c); + return { x: i + l, y: o + c }; + }; + }, + function (e, t, n) { + var r = n(564), + i = n(178), + o = n(565); + e.exports = function (e, t, n) { + var s = t.label, + a = e.append('g'); + 'svg' === t.labelType + ? o(a, t) + : 'string' != typeof s || 'html' === t.labelType + ? i(a, t) + : r(a, t); + var u, + l = a.node().getBBox(); + switch (n) { + case 'top': + u = -t.height / 2; + break; + case 'bottom': + u = t.height / 2 - l.height; + break; + default: + u = -l.height / 2; + } + return ( + a.attr('transform', 'translate(' + -l.width / 2 + ',' + u + ')'), a + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r; + Object.defineProperty(t, '__esModule', { value: !0 }), + (function (e) { + (e[(e.ALL = 0)] = 'ALL'), + (e[(e.RGB = 1)] = 'RGB'), + (e[(e.HSL = 2)] = 'HSL'); + })(r || (r = {})), + (t.TYPE = r); + }, + function (e, t, n) {}, + function (e, t, n) { + 'use strict'; + (e.exports = {}).forEach = function (e, t) { + for (var n = 0; n < e.length; n++) { + var r = t(e[n]); + if (r) return r; + } + }; + }, + function (e, t, n) { + 'use strict'; + var r = (e.exports = {}); + (r.isIE = function (e) { + return ( + (-1 !== (t = navigator.userAgent.toLowerCase()).indexOf('msie') || + -1 !== t.indexOf('trident') || + -1 !== t.indexOf(' edge/')) && + (!e || + e === + (function () { + var e = 3, + t = document.createElement('div'), + n = t.getElementsByTagName('i'); + do { + t.innerHTML = + '\x3c!--[if gt IE ' + ++e + ']> 4 ? e : void 0; + })()) + ); + var t; + }), + (r.isLegacyOpera = function () { + return !!window.opera; + }); + }, + function (e, t, n) { + var r = n(370); + e.exports = { + Graph: r.Graph, + json: n(467), + alg: n(468), + version: r.version, + }; + }, + function (e, t, n) { + var r = n(105), + i = 4; + e.exports = function (e) { + return r(e, i); + }; + }, + function (e, t, n) { + var r = n(47), + i = n(76), + o = n(52), + s = n(399), + a = n(405), + u = n(111), + l = n(112), + c = n(408), + d = n(409), + h = n(116), + f = n(410), + p = n(35), + g = n(414), + m = n(415), + _ = n(121), + y = n(4), + v = n(33), + b = n(419), + w = n(8), + C = n(421), + S = n(19), + x = 1, + L = 2, + k = 4, + M = '[object Arguments]', + D = '[object Function]', + E = '[object GeneratorFunction]', + T = '[object Object]', + N = {}; + (N[M] = N['[object Array]'] = N['[object ArrayBuffer]'] = N[ + '[object DataView]' + ] = N['[object Boolean]'] = N['[object Date]'] = N[ + '[object Float32Array]' + ] = N['[object Float64Array]'] = N['[object Int8Array]'] = N[ + '[object Int16Array]' + ] = N['[object Int32Array]'] = N['[object Map]'] = N['[object Number]'] = N[ + T + ] = N['[object RegExp]'] = N['[object Set]'] = N['[object String]'] = N[ + '[object Symbol]' + ] = N['[object Uint8Array]'] = N['[object Uint8ClampedArray]'] = N[ + '[object Uint16Array]' + ] = N['[object Uint32Array]'] = !0), + (N['[object Error]'] = N[D] = N['[object WeakMap]'] = !1), + (e.exports = function e(t, n, O, A, I, P) { + var R, + F = n & x, + Y = n & L, + j = n & k; + if ((O && (R = I ? O(t, A, I, P) : O(t)), void 0 !== R)) return R; + if (!w(t)) return t; + var B = y(t); + if (B) { + if (((R = g(t)), !F)) return l(t, R); + } else { + var W = p(t), + H = W == D || W == E; + if (v(t)) return u(t, F); + if (W == T || W == M || (H && !I)) { + if (((R = Y || H ? {} : _(t)), !F)) + return Y ? d(t, a(R, t)) : c(t, s(R, t)); + } else { + if (!N[W]) return I ? t : {}; + R = m(t, W, F); + } + } + P || (P = new r()); + var V = P.get(t); + if (V) return V; + P.set(t, R), + C(t) + ? t.forEach(function (r) { + R.add(e(r, n, O, r, t, P)); + }) + : b(t) && + t.forEach(function (r, i) { + R.set(i, e(r, n, O, i, t, P)); + }); + var z = j ? (Y ? f : h) : Y ? keysIn : S, + U = B ? void 0 : z(t); + return ( + i(U || t, function (r, i) { + U && (r = t[(i = r)]), o(R, i, e(r, n, O, i, t, P)); + }), + R + ); + }); + }, + function (e, t, n) { + (function (t) { + var n = 'object' == typeof t && t && t.Object === Object && t; + e.exports = n; + }.call(this, n(30))); + }, + function (e, t) { + var n = Function.prototype.toString; + e.exports = function (e) { + if (null != e) { + try { + return n.call(e); + } catch (e) {} + try { + return e + ''; + } catch (e) {} + } + return ''; + }; + }, + function (e, t, n) { + var r = n(25), + i = (function () { + try { + var e = r(Object, 'defineProperty'); + return e({}, '', {}), e; + } catch (e) {} + })(); + e.exports = i; + }, + function (e, t, n) { + var r = n(400), + i = n(39), + o = n(4), + s = n(33), + a = n(54), + u = n(41), + l = Object.prototype.hasOwnProperty; + e.exports = function (e, t) { + var n = o(e), + c = !n && i(e), + d = !n && !c && s(e), + h = !n && !c && !d && u(e), + f = n || c || d || h, + p = f ? r(e.length, String) : [], + g = p.length; + for (var m in e) + (!t && !l.call(e, m)) || + (f && + ('length' == m || + (d && ('offset' == m || 'parent' == m)) || + (h && + ('buffer' == m || 'byteLength' == m || 'byteOffset' == m)) || + a(m, g))) || + p.push(m); + return p; + }; + }, + function (e, t) { + e.exports = function (e, t) { + return function (n) { + return e(t(n)); + }; + }; + }, + function (e, t, n) { + (function (e) { + var r = n(14), + i = t && !t.nodeType && t, + o = i && 'object' == typeof e && e && !e.nodeType && e, + s = o && o.exports === i ? r.Buffer : void 0, + a = s ? s.allocUnsafe : void 0; + e.exports = function (e, t) { + if (t) return e.slice(); + var n = e.length, + r = a ? a(n) : new e.constructor(n); + return e.copy(r), r; + }; + }.call(this, n(40)(e))); + }, + function (e, t) { + e.exports = function (e, t) { + var n = -1, + r = e.length; + for (t || (t = Array(r)); ++n < r; ) t[n] = e[n]; + return t; + }; + }, + function (e, t) { + e.exports = function (e, t) { + for (var n = -1, r = null == e ? 0 : e.length, i = 0, o = []; ++n < r; ) { + var s = e[n]; + t(s, n, e) && (o[i++] = s); + } + return o; + }; + }, + function (e, t) { + e.exports = function () { + return []; + }; + }, + function (e, t, n) { + var r = n(81), + i = n(57), + o = n(80), + s = n(114), + a = Object.getOwnPropertySymbols + ? function (e) { + for (var t = []; e; ) r(t, o(e)), (e = i(e)); + return t; + } + : s; + e.exports = a; + }, + function (e, t, n) { + var r = n(117), + i = n(80), + o = n(19); + e.exports = function (e) { + return r(e, o, i); + }; + }, + function (e, t, n) { + var r = n(81), + i = n(4); + e.exports = function (e, t, n) { + var o = t(e); + return i(e) ? o : r(o, n(e)); + }; + }, + function (e, t, n) { + var r = n(25)(n(14), 'Set'); + e.exports = r; + }, + function (e, t, n) { + var r = n(14).Uint8Array; + e.exports = r; + }, + function (e, t, n) { + var r = n(82); + e.exports = function (e, t) { + var n = t ? r(e.buffer) : e.buffer; + return new e.constructor(n, e.byteOffset, e.length); + }; + }, + function (e, t, n) { + var r = n(122), + i = n(57), + o = n(56); + e.exports = function (e) { + return 'function' != typeof e.constructor || o(e) ? {} : r(i(e)); + }; + }, + function (e, t, n) { + var r = n(8), + i = Object.create, + o = (function () { + function e() {} + return function (t) { + if (!r(t)) return {}; + if (i) return i(t); + e.prototype = t; + var n = new e(); + return (e.prototype = void 0), n; + }; + })(); + e.exports = o; + }, + function (e, t, n) { + var r = n(28); + e.exports = function (e) { + return 'function' == typeof e ? e : r; + }; + }, + function (e, t, n) { + var r = n(428), + i = n(18); + e.exports = function e(t, n, o, s, a) { + return ( + t === n || + (null == t || null == n || (!i(t) && !i(n)) + ? t != t && n != n + : r(t, n, o, s, e, a)) + ); + }; + }, + function (e, t, n) { + var r = n(126), + i = n(431), + o = n(127), + s = 1, + a = 2; + e.exports = function (e, t, n, u, l, c) { + var d = n & s, + h = e.length, + f = t.length; + if (h != f && !(d && f > h)) return !1; + var p = c.get(e); + if (p && c.get(t)) return p == t; + var g = -1, + m = !0, + _ = n & a ? new r() : void 0; + for (c.set(e, t), c.set(t, e); ++g < h; ) { + var y = e[g], + v = t[g]; + if (u) var b = d ? u(v, y, g, t, e, c) : u(y, v, g, e, t, c); + if (void 0 !== b) { + if (b) continue; + m = !1; + break; + } + if (_) { + if ( + !i(t, function (e, t) { + if (!o(_, t) && (y === e || l(y, e, n, u, c))) return _.push(t); + }) + ) { + m = !1; + break; + } + } else if (y !== v && !l(y, v, n, u, c)) { + m = !1; + break; + } + } + return c.delete(e), c.delete(t), m; + }; + }, + function (e, t, n) { + var r = n(75), + i = n(429), + o = n(430); + function s(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.__data__ = new r(); ++t < n; ) this.add(e[t]); + } + (s.prototype.add = s.prototype.push = i), + (s.prototype.has = o), + (e.exports = s); + }, + function (e, t) { + e.exports = function (e, t) { + return e.has(t); + }; + }, + function (e, t, n) { + var r = n(8); + e.exports = function (e) { + return e == e && !r(e); + }; + }, + function (e, t) { + e.exports = function (e, t) { + return function (n) { + return null != n && n[e] === t && (void 0 !== t || e in Object(n)); + }; + }; + }, + function (e, t, n) { + var r = n(441); + e.exports = function (e) { + return null == e ? '' : r(e); + }; + }, + function (e, t, n) { + var r = n(442), + i = n(132); + e.exports = function (e, t) { + return null != e && i(e, t, r); + }; + }, + function (e, t, n) { + var r = n(60), + i = n(39), + o = n(4), + s = n(54), + a = n(77), + u = n(44); + e.exports = function (e, t, n) { + for (var l = -1, c = (t = r(t, e)).length, d = !1; ++l < c; ) { + var h = u(t[l]); + if (!(d = null != e && n(e, h))) break; + e = e[h]; + } + return d || ++l != c + ? d + : !!(c = null == e ? 0 : e.length) && a(c) && s(h, c) && (o(e) || i(e)); + }; + }, + function (e, t) { + e.exports = function (e) { + return function (t) { + return null == t ? void 0 : t[e]; + }; + }; + }, + function (e, t, n) { + var r = n(79), + i = n(35), + o = n(39), + s = n(4), + a = n(20), + u = n(33), + l = n(56), + c = n(41), + d = '[object Map]', + h = '[object Set]', + f = Object.prototype.hasOwnProperty; + e.exports = function (e) { + if (null == e) return !0; + if ( + a(e) && + (s(e) || + 'string' == typeof e || + 'function' == typeof e.splice || + u(e) || + c(e) || + o(e)) + ) + return !e.length; + var t = i(e); + if (t == d || t == h) return !e.size; + if (l(e)) return !r(e).length; + for (var n in e) if (f.call(e, n)) return !1; + return !0; + }; + }, + function (e, t, n) { + var r = n(58), + i = n(20); + e.exports = function (e, t) { + var n = -1, + o = i(e) ? Array(e.length) : []; + return ( + r(e, function (e, r, i) { + o[++n] = t(e, r, i); + }), + o + ); + }; + }, + function (e, t, n) { + var r = n(79), + i = n(35), + o = n(20), + s = n(448), + a = n(449), + u = '[object Map]', + l = '[object Set]'; + e.exports = function (e) { + if (null == e) return 0; + if (o(e)) return s(e) ? a(e) : e.length; + var t = i(e); + return t == u || t == l ? e.size : r(e).length; + }; + }, + function (e, t, n) { + var r = n(76), + i = n(122), + o = n(84), + s = n(21), + a = n(57), + u = n(4), + l = n(33), + c = n(26), + d = n(8), + h = n(41); + e.exports = function (e, t, n) { + var f = u(e), + p = f || l(e) || h(e); + if (((t = s(t, 4)), null == n)) { + var g = e && e.constructor; + n = p ? (f ? new g() : []) : d(e) && c(g) ? i(a(e)) : {}; + } + return ( + (p ? r : o)(e, function (e, r, i) { + return t(n, e, r, i); + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(89), + i = n(65), + o = n(457), + s = n(142), + a = i(function (e) { + return o(r(e, 1, s, !0)); + }); + e.exports = a; + }, + function (e, t, n) { + var r = n(454), + i = Math.max; + e.exports = function (e, t, n) { + return ( + (t = i(void 0 === t ? e.length - 1 : t, 0)), + function () { + for ( + var o = arguments, s = -1, a = i(o.length - t, 0), u = Array(a); + ++s < a; + + ) + u[s] = o[t + s]; + s = -1; + for (var l = Array(t + 1); ++s < t; ) l[s] = o[s]; + return (l[t] = n(u)), r(e, this, l); + } + ); + }; + }, + function (e, t, n) { + var r = n(455), + i = n(456)(r); + e.exports = i; + }, + function (e, t) { + e.exports = function (e, t, n, r) { + for (var i = e.length, o = n + (r ? 1 : -1); r ? o-- : ++o < i; ) + if (t(e[o], o, e)) return o; + return -1; + }; + }, + function (e, t, n) { + var r = n(20), + i = n(18); + e.exports = function (e) { + return i(e) && r(e); + }; + }, + function (e, t, n) { + var r = n(7), + i = n(144); + e.exports = function (e, t, n, r) { + return (function (e, t, n, r) { + var o, + s, + a = {}, + u = new i(), + l = function (e) { + var t = e.v !== o ? e.v : e.w, + r = a[t], + i = n(e), + l = s.distance + i; + if (i < 0) + throw new Error( + 'dijkstra does not allow negative edge weights. Bad edge: ' + + e + + ' Weight: ' + + i + ); + l < r.distance && + ((r.distance = l), (r.predecessor = o), u.decrease(t, l)); + }; + e.nodes().forEach(function (e) { + var n = e === t ? 0 : Number.POSITIVE_INFINITY; + (a[e] = { distance: n }), u.add(e, n); + }); + for ( + ; + u.size() > 0 && + ((o = u.removeMin()), + (s = a[o]).distance !== Number.POSITIVE_INFINITY); + + ) + r(o).forEach(l); + return a; + })( + e, + String(t), + n || o, + r || + function (t) { + return e.outEdges(t); + } + ); + }; + var o = r.constant(1); + }, + function (e, t, n) { + var r = n(7); + function i() { + (this._arr = []), (this._keyIndices = {}); + } + (e.exports = i), + (i.prototype.size = function () { + return this._arr.length; + }), + (i.prototype.keys = function () { + return this._arr.map(function (e) { + return e.key; + }); + }), + (i.prototype.has = function (e) { + return r.has(this._keyIndices, e); + }), + (i.prototype.priority = function (e) { + var t = this._keyIndices[e]; + if (void 0 !== t) return this._arr[t].priority; + }), + (i.prototype.min = function () { + if (0 === this.size()) throw new Error('Queue underflow'); + return this._arr[0].key; + }), + (i.prototype.add = function (e, t) { + var n = this._keyIndices; + if (((e = String(e)), !r.has(n, e))) { + var i = this._arr, + o = i.length; + return ( + (n[e] = o), i.push({ key: e, priority: t }), this._decrease(o), !0 + ); + } + return !1; + }), + (i.prototype.removeMin = function () { + this._swap(0, this._arr.length - 1); + var e = this._arr.pop(); + return delete this._keyIndices[e.key], this._heapify(0), e.key; + }), + (i.prototype.decrease = function (e, t) { + var n = this._keyIndices[e]; + if (t > this._arr[n].priority) + throw new Error( + 'New priority is greater than current priority. Key: ' + + e + + ' Old: ' + + this._arr[n].priority + + ' New: ' + + t + ); + (this._arr[n].priority = t), this._decrease(n); + }), + (i.prototype._heapify = function (e) { + var t = this._arr, + n = 2 * e, + r = n + 1, + i = e; + n < t.length && + ((i = t[n].priority < t[i].priority ? n : i), + r < t.length && (i = t[r].priority < t[i].priority ? r : i), + i !== e && (this._swap(e, i), this._heapify(i))); + }), + (i.prototype._decrease = function (e) { + for ( + var t, n = this._arr, r = n[e].priority; + 0 !== e && !(n[(t = e >> 1)].priority < r); + + ) + this._swap(e, t), (e = t); + }), + (i.prototype._swap = function (e, t) { + var n = this._arr, + r = this._keyIndices, + i = n[e], + o = n[t]; + (n[e] = o), (n[t] = i), (r[o.key] = e), (r[i.key] = t); + }); + }, + function (e, t, n) { + var r = n(7); + e.exports = function (e) { + var t = 0, + n = [], + i = {}, + o = []; + return ( + e.nodes().forEach(function (s) { + r.has(i, s) || + (function s(a) { + var u = (i[a] = { onStack: !0, lowlink: t, index: t++ }); + if ( + (n.push(a), + e.successors(a).forEach(function (e) { + r.has(i, e) + ? i[e].onStack && + (u.lowlink = Math.min(u.lowlink, i[e].index)) + : (s(e), (u.lowlink = Math.min(u.lowlink, i[e].lowlink))); + }), + u.lowlink === u.index) + ) { + var l, + c = []; + do { + (l = n.pop()), (i[l].onStack = !1), c.push(l); + } while (a !== l); + o.push(c); + } + })(s); + }), + o + ); + }; + }, + function (e, t, n) { + var r = n(7); + function i(e) { + var t = {}, + n = {}, + i = []; + if ( + (r.each(e.sinks(), function s(a) { + if (r.has(n, a)) throw new o(); + r.has(t, a) || + ((n[a] = !0), + (t[a] = !0), + r.each(e.predecessors(a), s), + delete n[a], + i.push(a)); + }), + r.size(t) !== e.nodeCount()) + ) + throw new o(); + return i; + } + function o() {} + (e.exports = i), (i.CycleException = o), (o.prototype = new Error()); + }, + function (e, t, n) { + var r = n(7); + e.exports = function (e, t, n) { + r.isArray(t) || (t = [t]); + var i = (e.isDirected() ? e.successors : e.neighbors).bind(e), + o = [], + s = {}; + return ( + r.each(t, function (t) { + if (!e.hasNode(t)) throw new Error('Graph does not have node: ' + t); + !(function e(t, n, i, o, s, a) { + r.has(o, n) || + ((o[n] = !0), + i || a.push(n), + r.each(s(n), function (n) { + e(t, n, i, o, s, a); + }), + i && a.push(n)); + })(e, t, 'post' === n, s, i, o); + }), + o + ); + }; + }, + function (e, t, n) { + var r = n(105), + i = 1, + o = 4; + e.exports = function (e) { + return r(e, i | o); + }; + }, + function (e, t, n) { + var r = n(478)(n(479)); + e.exports = r; + }, + function (e, t, n) { + var r = n(481), + i = 1 / 0, + o = 17976931348623157e292; + e.exports = function (e) { + return e + ? (e = r(e)) === i || e === -i + ? (e < 0 ? -1 : 1) * o + : e == e + ? e + : 0 + : 0 === e + ? e + : 0; + }; + }, + function (e, t, n) { + var r = n(85), + i = n(123), + o = n(34); + e.exports = function (e, t) { + return null == e ? e : r(e, i(t), o); + }; + }, + function (e, t) { + e.exports = function (e) { + var t = null == e ? 0 : e.length; + return t ? e[t - 1] : void 0; + }; + }, + function (e, t, n) { + var r = n(53), + i = n(84), + o = n(21); + e.exports = function (e, t) { + var n = {}; + return ( + (t = o(t, 3)), + i(e, function (e, i, o) { + r(n, i, t(e, i, o)); + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(92), + i = n(482), + o = n(28); + e.exports = function (e) { + return e && e.length ? r(e, o, i) : void 0; + }; + }, + function (e, t, n) { + var r = n(483), + i = n(486)(function (e, t, n) { + r(e, t, n); + }); + e.exports = i; + }, + function (e, t, n) { + var r = n(53), + i = n(31); + e.exports = function (e, t, n) { + ((void 0 === n || i(e[t], n)) && (void 0 !== n || t in e)) || r(e, t, n); + }; + }, + function (e, t, n) { + var r = n(27), + i = n(57), + o = n(18), + s = '[object Object]', + a = Function.prototype, + u = Object.prototype, + l = a.toString, + c = u.hasOwnProperty, + d = l.call(Object); + e.exports = function (e) { + if (!o(e) || r(e) != s) return !1; + var t = i(e); + if (null === t) return !0; + var n = c.call(t, 'constructor') && t.constructor; + return 'function' == typeof n && n instanceof n && l.call(n) == d; + }; + }, + function (e, t) { + e.exports = function (e, t) { + if ( + ('constructor' !== t || 'function' != typeof e[t]) && + '__proto__' != t + ) + return e[t]; + }; + }, + function (e, t, n) { + var r = n(92), + i = n(160), + o = n(28); + e.exports = function (e) { + return e && e.length ? r(e, o, i) : void 0; + }; + }, + function (e, t) { + e.exports = function (e, t) { + return e < t; + }; + }, + function (e, t, n) { + var r = n(92), + i = n(21), + o = n(160); + e.exports = function (e, t) { + return e && e.length ? r(e, i(t, 2), o) : void 0; + }; + }, + function (e, t, n) { + var r = n(14); + e.exports = function () { + return r.Date.now(); + }; + }, + function (e, t, n) { + var r = n(89), + i = n(493), + o = n(65), + s = n(67), + a = o(function (e, t) { + if (null == e) return []; + var n = t.length; + return ( + n > 1 && s(e, t[0], t[1]) + ? (t = []) + : n > 2 && s(t[0], t[1], t[2]) && (t = [t[0]]), + i(e, r(t, 1), []) + ); + }); + e.exports = a; + }, + function (e, t, n) { + var r = n(52), + i = n(497); + e.exports = function (e, t) { + return i(e || [], t || [], r); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(13).Graph, + o = n(68).slack; + function s(e, t) { + return ( + r.forEach(e.nodes(), function n(i) { + r.forEach(t.nodeEdges(i), function (r) { + var s = r.v, + a = i === s ? r.w : s; + e.hasNode(a) || + o(t, r) || + (e.setNode(a, {}), e.setEdge(i, a, {}), n(a)); + }); + }), + e.nodeCount() + ); + } + function a(e, t) { + return r.minBy(t.edges(), function (n) { + if (e.hasNode(n.v) !== e.hasNode(n.w)) return o(t, n); + }); + } + function u(e, t, n) { + r.forEach(e.nodes(), function (e) { + t.node(e).rank += n; + }); + } + e.exports = function (e) { + var t, + n, + r = new i({ directed: !1 }), + l = e.nodes()[0], + c = e.nodeCount(); + r.setNode(l, {}); + for (; s(r, e) < c; ) + (t = a(r, e)), (n = r.hasNode(t.v) ? o(e, t) : -o(e, t)), u(r, e, n); + return r; + }; + }, + function (e, t, n) { + var r = n(523); + e.exports = { + Graph: r.Graph, + json: n(525), + alg: n(526), + version: r.version, + }; + }, + function (e, t, n) { + var r = n(9), + i = n(168); + e.exports = function (e, t, n, r) { + return (function (e, t, n, r) { + var o, + s, + a = {}, + u = new i(), + l = function (e) { + var t = e.v !== o ? e.v : e.w, + r = a[t], + i = n(e), + l = s.distance + i; + if (i < 0) + throw new Error( + 'dijkstra does not allow negative edge weights. Bad edge: ' + + e + + ' Weight: ' + + i + ); + l < r.distance && + ((r.distance = l), (r.predecessor = o), u.decrease(t, l)); + }; + e.nodes().forEach(function (e) { + var n = e === t ? 0 : Number.POSITIVE_INFINITY; + (a[e] = { distance: n }), u.add(e, n); + }); + for ( + ; + u.size() > 0 && + ((o = u.removeMin()), + (s = a[o]).distance !== Number.POSITIVE_INFINITY); + + ) + r(o).forEach(l); + return a; + })( + e, + String(t), + n || o, + r || + function (t) { + return e.outEdges(t); + } + ); + }; + var o = r.constant(1); + }, + function (e, t, n) { + var r = n(9); + function i() { + (this._arr = []), (this._keyIndices = {}); + } + (e.exports = i), + (i.prototype.size = function () { + return this._arr.length; + }), + (i.prototype.keys = function () { + return this._arr.map(function (e) { + return e.key; + }); + }), + (i.prototype.has = function (e) { + return r.has(this._keyIndices, e); + }), + (i.prototype.priority = function (e) { + var t = this._keyIndices[e]; + if (void 0 !== t) return this._arr[t].priority; + }), + (i.prototype.min = function () { + if (0 === this.size()) throw new Error('Queue underflow'); + return this._arr[0].key; + }), + (i.prototype.add = function (e, t) { + var n = this._keyIndices; + if (((e = String(e)), !r.has(n, e))) { + var i = this._arr, + o = i.length; + return ( + (n[e] = o), i.push({ key: e, priority: t }), this._decrease(o), !0 + ); + } + return !1; + }), + (i.prototype.removeMin = function () { + this._swap(0, this._arr.length - 1); + var e = this._arr.pop(); + return delete this._keyIndices[e.key], this._heapify(0), e.key; + }), + (i.prototype.decrease = function (e, t) { + var n = this._keyIndices[e]; + if (t > this._arr[n].priority) + throw new Error( + 'New priority is greater than current priority. Key: ' + + e + + ' Old: ' + + this._arr[n].priority + + ' New: ' + + t + ); + (this._arr[n].priority = t), this._decrease(n); + }), + (i.prototype._heapify = function (e) { + var t = this._arr, + n = 2 * e, + r = n + 1, + i = e; + n < t.length && + ((i = t[n].priority < t[i].priority ? n : i), + r < t.length && (i = t[r].priority < t[i].priority ? r : i), + i !== e && (this._swap(e, i), this._heapify(i))); + }), + (i.prototype._decrease = function (e) { + for ( + var t, n = this._arr, r = n[e].priority; + 0 !== e && !(n[(t = e >> 1)].priority < r); + + ) + this._swap(e, t), (e = t); + }), + (i.prototype._swap = function (e, t) { + var n = this._arr, + r = this._keyIndices, + i = n[e], + o = n[t]; + (n[e] = o), (n[t] = i), (r[o.key] = e), (r[i.key] = t); + }); + }, + function (e, t, n) { + var r = n(9); + e.exports = function (e) { + var t = 0, + n = [], + i = {}, + o = []; + return ( + e.nodes().forEach(function (s) { + r.has(i, s) || + (function s(a) { + var u = (i[a] = { onStack: !0, lowlink: t, index: t++ }); + if ( + (n.push(a), + e.successors(a).forEach(function (e) { + r.has(i, e) + ? i[e].onStack && + (u.lowlink = Math.min(u.lowlink, i[e].index)) + : (s(e), (u.lowlink = Math.min(u.lowlink, i[e].lowlink))); + }), + u.lowlink === u.index) + ) { + var l, + c = []; + do { + (l = n.pop()), (i[l].onStack = !1), c.push(l); + } while (a !== l); + o.push(c); + } + })(s); + }), + o + ); + }; + }, + function (e, t, n) { + var r = n(9); + function i(e) { + var t = {}, + n = {}, + i = []; + if ( + (r.each(e.sinks(), function s(a) { + if (r.has(n, a)) throw new o(); + r.has(t, a) || + ((n[a] = !0), + (t[a] = !0), + r.each(e.predecessors(a), s), + delete n[a], + i.push(a)); + }), + r.size(t) !== e.nodeCount()) + ) + throw new o(); + return i; + } + function o() {} + (e.exports = i), (i.CycleException = o), (o.prototype = new Error()); + }, + function (e, t, n) { + var r = n(9); + e.exports = function (e, t, n) { + r.isArray(t) || (t = [t]); + var i = (e.isDirected() ? e.successors : e.neighbors).bind(e), + o = [], + s = {}; + return ( + r.each(t, function (t) { + if (!e.hasNode(t)) throw new Error('Graph does not have node: ' + t); + !(function e(t, n, i, o, s, a) { + r.has(o, n) || + ((o[n] = !0), + i || a.push(n), + r.each(s(n), function (n) { + e(t, n, i, o, s, a); + }), + i && a.push(n)); + })(e, t, 'post' === n, s, i, o); + }), + o + ); + }; + }, + function (e, t, n) { + var r; + try { + r = n(535); + } catch (e) {} + r || (r = window.dagre), (e.exports = r); + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(15).Graph, + o = n(69).slack; + function s(e, t) { + return ( + r.forEach(e.nodes(), function n(i) { + r.forEach(t.nodeEdges(i), function (r) { + var s = r.v, + a = i === s ? r.w : s; + e.hasNode(a) || + o(t, r) || + (e.setNode(a, {}), e.setEdge(i, a, {}), n(a)); + }); + }), + e.nodeCount() + ); + } + function a(e, t) { + return r.minBy(t.edges(), function (n) { + if (e.hasNode(n.v) !== e.hasNode(n.w)) return o(t, n); + }); + } + function u(e, t, n) { + r.forEach(e.nodes(), function (e) { + t.node(e).rank += n; + }); + } + e.exports = function (e) { + var t, + n, + r = new i({ directed: !1 }), + l = e.nodes()[0], + c = e.nodeCount(); + r.setNode(l, {}); + for (; s(r, e) < c; ) + (t = a(r, e)), (n = r.hasNode(t.v) ? o(e, t) : -o(e, t)), u(r, e, n); + return r; + }; + }, + function (e, t) { + e.exports = function (e, t) { + return e.intersect(t); + }; + }, + function (e, t, n) { + var r = n(97); + e.exports = function (e, t, n) { + return r(e, t, t, n); + }; + }, + function (e, t, n) { + var r = n(561); + e.exports = function (e, t, n) { + var i = e.x, + o = e.y, + s = [], + a = Number.POSITIVE_INFINITY, + u = Number.POSITIVE_INFINITY; + t.forEach(function (e) { + (a = Math.min(a, e.x)), (u = Math.min(u, e.y)); + }); + for ( + var l = i - e.width / 2 - a, c = o - e.height / 2 - u, d = 0; + d < t.length; + d++ + ) { + var h = t[d], + f = t[d < t.length - 1 ? d + 1 : 0], + p = r(e, n, { x: l + h.x, y: c + h.y }, { x: l + f.x, y: c + f.y }); + p && s.push(p); + } + if (!s.length) + return console.log('NO INTERSECTION FOUND, RETURN NODE CENTER', e), e; + s.length > 1 && + s.sort(function (e, t) { + var r = e.x - n.x, + i = e.y - n.y, + o = Math.sqrt(r * r + i * i), + s = t.x - n.x, + a = t.y - n.y, + u = Math.sqrt(s * s + a * a); + return o < u ? -1 : o === u ? 0 : 1; + }); + return s[0]; + }; + }, + function (e, t) { + e.exports = function (e, t) { + var n, + r, + i = e.x, + o = e.y, + s = t.x - i, + a = t.y - o, + u = e.width / 2, + l = e.height / 2; + Math.abs(a) * u > Math.abs(s) * l + ? (a < 0 && (l = -l), (n = 0 === a ? 0 : (l * s) / a), (r = l)) + : (s < 0 && (u = -u), (n = u), (r = 0 === s ? 0 : (u * a) / s)); + return { x: i + n, y: o + r }; + }; + }, + function (e, t, n) { + var r = n(10); + e.exports = function (e, t) { + var n = e.append('foreignObject').attr('width', '100000'), + i = n.append('xhtml:div'); + i.attr('xmlns', 'http://www.w3.org/1999/xhtml'); + var o = t.label; + switch (typeof o) { + case 'function': + i.insert(o); + break; + case 'object': + i.insert(function () { + return o; + }); + break; + default: + i.html(o); + } + r.applyStyle(i, t.labelStyle), + i.style('display', 'inline-block'), + i.style('white-space', 'nowrap'); + var s = i.node().getBoundingClientRect(); + return n.attr('width', s.width).attr('height', s.height), n; + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(46), + o = n(583), + s = { + re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i, + parse: function (e) { + if (35 === e.charCodeAt(0)) { + var t = e.match(s.re); + if (t) { + var n = t[1], + r = parseInt(n, 16), + o = n.length, + a = o % 4 == 0, + u = o > 4, + l = u ? 1 : 17, + c = u ? 8 : 4, + d = a ? 0 : -1, + h = u ? 255 : 15; + return i.default.set( + { + r: ((r >> (c * (d + 3))) & h) * l, + g: ((r >> (c * (d + 2))) & h) * l, + b: ((r >> (c * (d + 1))) & h) * l, + a: a ? ((r & h) * l) / 255 : 1, + }, + e + ); + } + } + }, + stringify: function (e) { + return e.a < 1 + ? '#' + + o.DEC2HEX[Math.round(e.r)] + + o.DEC2HEX[Math.round(e.g)] + + o.DEC2HEX[Math.round(e.b)] + + r.default.unit.frac2hex(e.a) + : '#' + + o.DEC2HEX[Math.round(e.r)] + + o.DEC2HEX[Math.round(e.g)] + + o.DEC2HEX[Math.round(e.b)]; + }, + }; + t.default = s; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(46), + o = n(16); + t.default = function (e, t, n, s) { + void 0 === s && (s = 1); + var a = i.default.set({ + h: r.default.channel.clamp.h(e), + s: r.default.channel.clamp.s(t), + l: r.default.channel.clamp.l(n), + a: r.default.channel.clamp.a(s), + }); + return o.default.stringify(a); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'a'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(16); + t.default = function (e) { + var t = i.default.parse(e), + n = t.r, + o = t.g, + s = t.b, + a = + 0.2126 * r.default.channel.toLinear(n) + + 0.7152 * r.default.channel.toLinear(o) + + 0.0722 * r.default.channel.toLinear(s); + return r.default.lang.round(a); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(182); + t.default = function (e) { + return r.default(e) >= 0.5; + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 'a', t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 'a', -t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(16), + i = n(71); + t.default = function (e, t) { + var n = r.default.parse(e), + o = {}; + for (var s in t) t[s] && (o[s] = n[s] + t[s]); + return i.default(e, o); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(16), + i = n(70); + t.default = function (e, t, n) { + void 0 === n && (n = 50); + var o = r.default.parse(e), + s = o.r, + a = o.g, + u = o.b, + l = o.a, + c = r.default.parse(t), + d = c.r, + h = c.g, + f = c.b, + p = c.a, + g = n / 100, + m = 2 * g - 1, + _ = l - p, + y = ((m * _ == -1 ? m : (m + _) / (1 + m * _)) + 1) / 2, + v = 1 - y, + b = s * y + d * v, + w = a * y + h * v, + C = u * y + f * v, + S = l * g + p * (1 - g); + return i.default(b, w, C, S); + }; + }, + function (e, t) {}, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('af', { + months: 'Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag'.split( + '_' + ), + weekdaysShort: 'Son_Maa_Din_Woe_Don_Vry_Sat'.split('_'), + weekdaysMin: 'So_Ma_Di_Wo_Do_Vr_Sa'.split('_'), + meridiemParse: /vm|nm/i, + isPM: function (e) { + return /^nm$/i.test(e); + }, + meridiem: function (e, t, n) { + return e < 12 ? (n ? 'vm' : 'VM') : n ? 'nm' : 'NM'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Vandag om] LT', + nextDay: '[Môre om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[Gister om] LT', + lastWeek: '[Laas] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oor %s', + past: '%s gelede', + s: "'n paar sekondes", + ss: '%d sekondes', + m: "'n minuut", + mm: '%d minute', + h: "'n uur", + hh: '%d ure', + d: "'n dag", + dd: '%d dae', + M: "'n maand", + MM: '%d maande', + y: "'n jaar", + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + r = function (e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5; + }, + i = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + o = function (e) { + return function (t, n, o, s) { + var a = r(t), + u = i[e][r(t)]; + return 2 === a && (u = u[n ? 0 : 1]), u.replace(/%d/i, t); + }; + }, + s = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; + e.defineLocale('ar', { + months: s, + monthsShort: s, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: o('s'), + ss: o('s'), + m: o('m'), + mm: o('m'), + h: o('h'), + hh: o('h'), + d: o('d'), + dd: o('d'), + M: o('M'), + MM: o('M'), + y: o('y'), + yy: o('y'), + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ar-dz', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'أح_إث_ثلا_أر_خم_جم_سب'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 0, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ar-kw', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 0, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '1', + 2: '2', + 3: '3', + 4: '4', + 5: '5', + 6: '6', + 7: '7', + 8: '8', + 9: '9', + 0: '0', + }, + n = function (e) { + return 0 === e + ? 0 + : 1 === e + ? 1 + : 2 === e + ? 2 + : e % 100 >= 3 && e % 100 <= 10 + ? 3 + : e % 100 >= 11 + ? 4 + : 5; + }, + r = { + s: [ + 'أقل من ثانية', + 'ثانية واحدة', + ['ثانيتان', 'ثانيتين'], + '%d ثوان', + '%d ثانية', + '%d ثانية', + ], + m: [ + 'أقل من دقيقة', + 'دقيقة واحدة', + ['دقيقتان', 'دقيقتين'], + '%d دقائق', + '%d دقيقة', + '%d دقيقة', + ], + h: [ + 'أقل من ساعة', + 'ساعة واحدة', + ['ساعتان', 'ساعتين'], + '%d ساعات', + '%d ساعة', + '%d ساعة', + ], + d: [ + 'أقل من يوم', + 'يوم واحد', + ['يومان', 'يومين'], + '%d أيام', + '%d يومًا', + '%d يوم', + ], + M: [ + 'أقل من شهر', + 'شهر واحد', + ['شهران', 'شهرين'], + '%d أشهر', + '%d شهرا', + '%d شهر', + ], + y: [ + 'أقل من عام', + 'عام واحد', + ['عامان', 'عامين'], + '%d أعوام', + '%d عامًا', + '%d عام', + ], + }, + i = function (e) { + return function (t, i, o, s) { + var a = n(t), + u = r[e][n(t)]; + return 2 === a && (u = u[i ? 0 : 1]), u.replace(/%d/i, t); + }; + }, + o = [ + 'يناير', + 'فبراير', + 'مارس', + 'أبريل', + 'مايو', + 'يونيو', + 'يوليو', + 'أغسطس', + 'سبتمبر', + 'أكتوبر', + 'نوفمبر', + 'ديسمبر', + ]; + e.defineLocale('ar-ly', { + months: o, + monthsShort: o, + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/‏M/‏YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم عند الساعة] LT', + nextDay: '[غدًا عند الساعة] LT', + nextWeek: 'dddd [عند الساعة] LT', + lastDay: '[أمس عند الساعة] LT', + lastWeek: 'dddd [عند الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'بعد %s', + past: 'منذ %s', + s: i('s'), + ss: i('s'), + m: i('m'), + mm: i('m'), + h: i('h'), + hh: i('h'), + d: i('d'), + dd: i('d'), + M: i('M'), + MM: i('M'), + y: i('y'), + yy: i('y'), + }, + preparse: function (e) { + return e.replace(/،/g, ','); + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ar-ma', { + months: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر'.split( + '_' + ), + weekdays: 'الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }; + e.defineLocale('ar-sa', { + months: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ص|م/, + isPM: function (e) { + return 'م' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ص' : 'م'; + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ar-tn', { + months: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + monthsShort: 'جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر'.split( + '_' + ), + weekdays: 'الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت'.split( + '_' + ), + weekdaysShort: 'أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت'.split('_'), + weekdaysMin: 'ح_ن_ث_ر_خ_ج_س'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[اليوم على الساعة] LT', + nextDay: '[غدا على الساعة] LT', + nextWeek: 'dddd [على الساعة] LT', + lastDay: '[أمس على الساعة] LT', + lastWeek: 'dddd [على الساعة] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'في %s', + past: 'منذ %s', + s: 'ثوان', + ss: '%d ثانية', + m: 'دقيقة', + mm: '%d دقائق', + h: 'ساعة', + hh: '%d ساعات', + d: 'يوم', + dd: '%d أيام', + M: 'شهر', + MM: '%d أشهر', + y: 'سنة', + yy: '%d سنوات', + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '-inci', + 5: '-inci', + 8: '-inci', + 70: '-inci', + 80: '-inci', + 2: '-nci', + 7: '-nci', + 20: '-nci', + 50: '-nci', + 3: '-üncü', + 4: '-üncü', + 100: '-üncü', + 6: '-ncı', + 9: '-uncu', + 10: '-uncu', + 30: '-uncu', + 60: '-ıncı', + 90: '-ıncı', + }; + e.defineLocale('az', { + months: 'yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr'.split( + '_' + ), + monthsShort: 'yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek'.split( + '_' + ), + weekdays: 'Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə'.split( + '_' + ), + weekdaysShort: 'Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən'.split('_'), + weekdaysMin: 'Bz_BE_ÇA_Çə_CA_Cü_Şə'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[sabah saat] LT', + nextWeek: '[gələn həftə] dddd [saat] LT', + lastDay: '[dünən] LT', + lastWeek: '[keçən həftə] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s əvvəl', + s: 'birneçə saniyə', + ss: '%d saniyə', + m: 'bir dəqiqə', + mm: '%d dəqiqə', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir il', + yy: '%d il', + }, + meridiemParse: /gecə|səhər|gündüz|axşam/, + isPM: function (e) { + return /^(gündüz|axşam)$/.test(e); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'gecə' + : e < 12 + ? 'səhər' + : e < 17 + ? 'gündüz' + : 'axşam'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/, + ordinal: function (e) { + if (0 === e) return e + '-ıncı'; + var n = e % 10; + return e + (t[n] || t[(e % 100) - n] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r, i; + return 'm' === n + ? t + ? 'хвіліна' + : 'хвіліну' + : 'h' === n + ? t + ? 'гадзіна' + : 'гадзіну' + : e + + ' ' + + ((r = +e), + (i = { + ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: t ? 'хвіліна_хвіліны_хвілін' : 'хвіліну_хвіліны_хвілін', + hh: t ? 'гадзіна_гадзіны_гадзін' : 'гадзіну_гадзіны_гадзін', + dd: 'дзень_дні_дзён', + MM: 'месяц_месяцы_месяцаў', + yy: 'год_гады_гадоў', + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? i[0] + : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) + ? i[1] + : i[2]); + } + e.defineLocale('be', { + months: { + format: 'студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня'.split( + '_' + ), + standalone: 'студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань'.split( + '_' + ), + }, + monthsShort: 'студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж'.split( + '_' + ), + weekdays: { + format: 'нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу'.split( + '_' + ), + standalone: 'нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота'.split( + '_' + ), + isFormat: /\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/, + }, + weekdaysShort: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_ат_ср_чц_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., HH:mm', + LLLL: 'dddd, D MMMM YYYY г., HH:mm', + }, + calendar: { + sameDay: '[Сёння ў] LT', + nextDay: '[Заўтра ў] LT', + lastDay: '[Учора ў] LT', + nextWeek: function () { + return '[У] dddd [ў] LT'; + }, + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return '[У мінулую] dddd [ў] LT'; + case 1: + case 2: + case 4: + return '[У мінулы] dddd [ў] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'праз %s', + past: '%s таму', + s: 'некалькі секунд', + m: t, + mm: t, + h: t, + hh: t, + d: 'дзень', + dd: t, + M: 'месяц', + MM: t, + y: 'год', + yy: t, + }, + meridiemParse: /ночы|раніцы|дня|вечара/, + isPM: function (e) { + return /^(дня|вечара)$/.test(e); + }, + meridiem: function (e, t, n) { + return e < 4 ? 'ночы' : e < 12 ? 'раніцы' : e < 17 ? 'дня' : 'вечара'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(і|ы|га)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return (e % 10 != 2 && e % 10 != 3) || + e % 100 == 12 || + e % 100 == 13 + ? e + '-ы' + : e + '-і'; + case 'D': + return e + '-га'; + default: + return e; + } + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('bg', { + months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Днес в] LT', + nextDay: '[Утре в] LT', + nextWeek: 'dddd [в] LT', + lastDay: '[Вчера в] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[В изминалата] dddd [в] LT'; + case 1: + case 2: + case 4: + case 5: + return '[В изминалия] dddd [в] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'след %s', + past: 'преди %s', + s: 'няколко секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дни', + M: 'месец', + MM: '%d месеца', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (e) { + var t = e % 10, + n = e % 100; + return 0 === e + ? e + '-ев' + : 0 === n + ? e + '-ен' + : n > 10 && n < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти'; + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('bm', { + months: 'Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo'.split( + '_' + ), + monthsShort: 'Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des'.split( + '_' + ), + weekdays: 'Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri'.split('_'), + weekdaysShort: 'Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib'.split('_'), + weekdaysMin: 'Ka_Nt_Ta_Ar_Al_Ju_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'MMMM [tile] D [san] YYYY', + LLL: 'MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + LLLL: 'dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm', + }, + calendar: { + sameDay: '[Bi lɛrɛ] LT', + nextDay: '[Sini lɛrɛ] LT', + nextWeek: 'dddd [don lɛrɛ] LT', + lastDay: '[Kunu lɛrɛ] LT', + lastWeek: 'dddd [tɛmɛnen lɛrɛ] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s kɔnɔ', + past: 'a bɛ %s bɔ', + s: 'sanga dama dama', + ss: 'sekondi %d', + m: 'miniti kelen', + mm: 'miniti %d', + h: 'lɛrɛ kelen', + hh: 'lɛrɛ %d', + d: 'tile kelen', + dd: 'tile %d', + M: 'kalo kelen', + MM: 'kalo %d', + y: 'san kelen', + yy: 'san %d', + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '১', + 2: '২', + 3: '৩', + 4: '৪', + 5: '৫', + 6: '৬', + 7: '৭', + 8: '৮', + 9: '৯', + 0: '০', + }, + n = { + '১': '1', + '২': '2', + '৩': '3', + '৪': '4', + '৫': '5', + '৬': '6', + '৭': '7', + '৮': '8', + '৯': '9', + '০': '0', + }; + e.defineLocale('bn', { + months: 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split( + '_' + ), + monthsShort: 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split( + '_' + ), + weekdays: 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split( + '_' + ), + weekdaysShort: 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'), + weekdaysMin: 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'), + longDateFormat: { + LT: 'A h:mm সময়', + LTS: 'A h:mm:ss সময়', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm সময়', + LLLL: 'dddd, D MMMM YYYY, A h:mm সময়', + }, + calendar: { + sameDay: '[আজ] LT', + nextDay: '[আগামীকাল] LT', + nextWeek: 'dddd, LT', + lastDay: '[গতকাল] LT', + lastWeek: '[গত] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s পরে', + past: '%s আগে', + s: 'কয়েক সেকেন্ড', + ss: '%d সেকেন্ড', + m: 'এক মিনিট', + mm: '%d মিনিট', + h: 'এক ঘন্টা', + hh: '%d ঘন্টা', + d: 'এক দিন', + dd: '%d দিন', + M: 'এক মাস', + MM: '%d মাস', + y: 'এক বছর', + yy: '%d বছর', + }, + preparse: function (e) { + return e.replace(/[১২৩৪৫৬৭৮৯০]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('রাত' === t && e >= 4) || ('দুপুর' === t && e < 5) || 'বিকাল' === t + ? e + 12 + : e + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'রাত' + : e < 10 + ? 'সকাল' + : e < 17 + ? 'দুপুর' + : e < 20 + ? 'বিকাল' + : 'রাত'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '༡', + 2: '༢', + 3: '༣', + 4: '༤', + 5: '༥', + 6: '༦', + 7: '༧', + 8: '༨', + 9: '༩', + 0: '༠', + }, + n = { + '༡': '1', + '༢': '2', + '༣': '3', + '༤': '4', + '༥': '5', + '༦': '6', + '༧': '7', + '༨': '8', + '༩': '9', + '༠': '0', + }; + e.defineLocale('bo', { + months: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + monthsShort: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split( + '_' + ), + weekdays: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split( + '_' + ), + weekdaysShort: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + weekdaysMin: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split( + '_' + ), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[དི་རིང] LT', + nextDay: '[སང་ཉིན] LT', + nextWeek: '[བདུན་ཕྲག་རྗེས་མ], LT', + lastDay: '[ཁ་སང] LT', + lastWeek: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ལ་', + past: '%s སྔན་ལ', + s: 'ལམ་སང', + ss: '%d སྐར་ཆ།', + m: 'སྐར་མ་གཅིག', + mm: '%d སྐར་མ', + h: 'ཆུ་ཚོད་གཅིག', + hh: '%d ཆུ་ཚོད', + d: 'ཉིན་གཅིག', + dd: '%d ཉིན་', + M: 'ཟླ་བ་གཅིག', + MM: '%d ཟླ་བ', + y: 'ལོ་གཅིག', + yy: '%d ལོ', + }, + preparse: function (e) { + return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('མཚན་མོ' === t && e >= 4) || + ('ཉིན་གུང' === t && e < 5) || + 'དགོང་དག' === t + ? e + 12 + : e + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'མཚན་མོ' + : e < 10 + ? 'ཞོགས་ཀས' + : e < 17 + ? 'ཉིན་གུང' + : e < 20 + ? 'དགོང་དག' + : 'མཚན་མོ'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + return ( + e + + ' ' + + (function (e, t) { + return 2 === t + ? (function (e) { + var t = { m: 'v', b: 'v', d: 'z' }; + return void 0 === t[e.charAt(0)] + ? e + : t[e.charAt(0)] + e.substring(1); + })(e) + : e; + })({ mm: 'munutenn', MM: 'miz', dd: 'devezh' }[n], e) + ); + } + e.defineLocale('br', { + months: "Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split( + '_' + ), + monthsShort: "Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split( + '_' + ), + weekdays: "Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split('_'), + weekdaysShort: 'Sul_Lun_Meu_Mer_Yao_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Lu_Me_Mer_Ya_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h[e]mm A', + LTS: 'h[e]mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [a viz] MMMM YYYY', + LLL: 'D [a viz] MMMM YYYY h[e]mm A', + LLLL: 'dddd, D [a viz] MMMM YYYY h[e]mm A', + }, + calendar: { + sameDay: '[Hiziv da] LT', + nextDay: "[Warc'hoazh da] LT", + nextWeek: 'dddd [da] LT', + lastDay: "[Dec'h da] LT", + lastWeek: 'dddd [paset da] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'a-benn %s', + past: "%s 'zo", + s: 'un nebeud segondennoù', + ss: '%d eilenn', + m: 'ur vunutenn', + mm: t, + h: 'un eur', + hh: '%d eur', + d: 'un devezh', + dd: t, + M: 'ur miz', + MM: t, + y: 'ur bloaz', + yy: function (e) { + switch ( + (function e(t) { + return t > 9 ? e(t % 10) : t; + })(e) + ) { + case 1: + case 3: + case 4: + case 5: + case 9: + return e + ' bloaz'; + default: + return e + ' vloaz'; + } + }, + }, + dayOfMonthOrdinalParse: /\d{1,2}(añ|vet)/, + ordinal: function (e) { + return e + (1 === e ? 'añ' : 'vet'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r = e + ' '; + switch (n) { + case 'ss': + return (r += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi'); + case 'm': + return t ? 'jedna minuta' : 'jedne minute'; + case 'mm': + return (r += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta'); + case 'h': + return t ? 'jedan sat' : 'jednog sata'; + case 'hh': + return (r += + 1 === e + ? 'sat' + : 2 === e || 3 === e || 4 === e + ? 'sata' + : 'sati'); + case 'dd': + return (r += 1 === e ? 'dan' : 'dana'); + case 'MM': + return (r += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci'); + case 'yy': + return (r += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina'); + } + } + e.defineLocale('bs', { + months: 'januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ca', { + months: { + standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split( + '_' + ), + format: "de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split( + '_' + ), + isFormat: /D[oD]?(\s)+MMMM/, + }, + monthsShort: 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split( + '_' + ), + weekdaysShort: 'dg._dl._dt._dc._dj._dv._ds.'.split('_'), + weekdaysMin: 'dg_dl_dt_dc_dj_dv_ds'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [de] YYYY', + ll: 'D MMM YYYY', + LLL: 'D MMMM [de] YYYY [a les] H:mm', + lll: 'D MMM YYYY, H:mm', + LLLL: 'dddd D MMMM [de] YYYY [a les] H:mm', + llll: 'ddd D MMM YYYY, H:mm', + }, + calendar: { + sameDay: function () { + return '[avui a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + nextDay: function () { + return '[demà a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + lastDay: function () { + return '[ahir a ' + (1 !== this.hours() ? 'les' : 'la') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [passat a ' + + (1 !== this.hours() ? 'les' : 'la') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: "d'aquí %s", + past: 'fa %s', + s: 'uns segons', + ss: '%d segons', + m: 'un minut', + mm: '%d minuts', + h: 'una hora', + hh: '%d hores', + d: 'un dia', + dd: '%d dies', + M: 'un mes', + MM: '%d mesos', + y: 'un any', + yy: '%d anys', + }, + dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/, + ordinal: function (e, t) { + var n = + 1 === e ? 'r' : 2 === e ? 'n' : 3 === e ? 'r' : 4 === e ? 't' : 'è'; + return ('w' !== t && 'W' !== t) || (n = 'a'), e + n; + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec'.split( + '_' + ), + n = 'led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro'.split('_'), + r = [ + /^led/i, + /^úno/i, + /^bře/i, + /^dub/i, + /^kvě/i, + /^(čvn|červen$|června)/i, + /^(čvc|červenec|července)/i, + /^srp/i, + /^zář/i, + /^říj/i, + /^lis/i, + /^pro/i, + ], + i = /^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i; + function o(e) { + return e > 1 && e < 5 && 1 != ~~(e / 10); + } + function s(e, t, n, r) { + var i = e + ' '; + switch (n) { + case 's': + return t || r ? 'pár sekund' : 'pár sekundami'; + case 'ss': + return t || r ? i + (o(e) ? 'sekundy' : 'sekund') : i + 'sekundami'; + case 'm': + return t ? 'minuta' : r ? 'minutu' : 'minutou'; + case 'mm': + return t || r ? i + (o(e) ? 'minuty' : 'minut') : i + 'minutami'; + case 'h': + return t ? 'hodina' : r ? 'hodinu' : 'hodinou'; + case 'hh': + return t || r ? i + (o(e) ? 'hodiny' : 'hodin') : i + 'hodinami'; + case 'd': + return t || r ? 'den' : 'dnem'; + case 'dd': + return t || r ? i + (o(e) ? 'dny' : 'dní') : i + 'dny'; + case 'M': + return t || r ? 'měsíc' : 'měsícem'; + case 'MM': + return t || r ? i + (o(e) ? 'měsíce' : 'měsíců') : i + 'měsíci'; + case 'y': + return t || r ? 'rok' : 'rokem'; + case 'yy': + return t || r ? i + (o(e) ? 'roky' : 'let') : i + 'lety'; + } + } + e.defineLocale('cs', { + months: t, + monthsShort: n, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i, + monthsShortStrictRegex: /^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota'.split('_'), + weekdaysShort: 'ne_po_út_st_čt_pá_so'.split('_'), + weekdaysMin: 'ne_po_út_st_čt_pá_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + l: 'D. M. YYYY', + }, + calendar: { + sameDay: '[dnes v] LT', + nextDay: '[zítra v] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v neděli v] LT'; + case 1: + case 2: + return '[v] dddd [v] LT'; + case 3: + return '[ve středu v] LT'; + case 4: + return '[ve čtvrtek v] LT'; + case 5: + return '[v pátek v] LT'; + case 6: + return '[v sobotu v] LT'; + } + }, + lastDay: '[včera v] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulou neděli v] LT'; + case 1: + case 2: + return '[minulé] dddd [v] LT'; + case 3: + return '[minulou středu v] LT'; + case 4: + case 5: + return '[minulý] dddd [v] LT'; + case 6: + return '[minulou sobotu v] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'před %s', + s: s, + ss: s, + m: s, + mm: s, + h: s, + hh: s, + d: s, + dd: s, + M: s, + MM: s, + y: s, + yy: s, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('cv', { + months: 'кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав'.split( + '_' + ), + monthsShort: 'кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш'.split( + '_' + ), + weekdays: 'вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун'.split( + '_' + ), + weekdaysShort: 'выр_тун_ытл_юн_кӗҫ_эрн_шӑм'.split('_'), + weekdaysMin: 'вр_тн_ыт_юн_кҫ_эр_шм'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]', + LLL: 'YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + LLLL: 'dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm', + }, + calendar: { + sameDay: '[Паян] LT [сехетре]', + nextDay: '[Ыран] LT [сехетре]', + lastDay: '[Ӗнер] LT [сехетре]', + nextWeek: '[Ҫитес] dddd LT [сехетре]', + lastWeek: '[Иртнӗ] dddd LT [сехетре]', + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return ( + e + (/сехет$/i.exec(e) ? 'рен' : /ҫул$/i.exec(e) ? 'тан' : 'ран') + ); + }, + past: '%s каялла', + s: 'пӗр-ик ҫеккунт', + ss: '%d ҫеккунт', + m: 'пӗр минут', + mm: '%d минут', + h: 'пӗр сехет', + hh: '%d сехет', + d: 'пӗр кун', + dd: '%d кун', + M: 'пӗр уйӑх', + MM: '%d уйӑх', + y: 'пӗр ҫул', + yy: '%d ҫул', + }, + dayOfMonthOrdinalParse: /\d{1,2}-мӗш/, + ordinal: '%d-мӗш', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('cy', { + months: 'Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr'.split( + '_' + ), + monthsShort: 'Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag'.split( + '_' + ), + weekdays: 'Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn'.split( + '_' + ), + weekdaysShort: 'Sul_Llun_Maw_Mer_Iau_Gwe_Sad'.split('_'), + weekdaysMin: 'Su_Ll_Ma_Me_Ia_Gw_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Heddiw am] LT', + nextDay: '[Yfory am] LT', + nextWeek: 'dddd [am] LT', + lastDay: '[Ddoe am] LT', + lastWeek: 'dddd [diwethaf am] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'mewn %s', + past: '%s yn ôl', + s: 'ychydig eiliadau', + ss: '%d eiliad', + m: 'munud', + mm: '%d munud', + h: 'awr', + hh: '%d awr', + d: 'diwrnod', + dd: '%d diwrnod', + M: 'mis', + MM: '%d mis', + y: 'blwyddyn', + yy: '%d flynedd', + }, + dayOfMonthOrdinalParse: /\d{1,2}(fed|ain|af|il|ydd|ed|eg)/, + ordinal: function (e) { + var t = ''; + return ( + e > 20 + ? (t = + 40 === e || 50 === e || 60 === e || 80 === e || 100 === e + ? 'fed' + : 'ain') + : e > 0 && + (t = [ + '', + 'af', + 'il', + 'ydd', + 'ydd', + 'ed', + 'ed', + 'ed', + 'fed', + 'fed', + 'fed', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'eg', + 'fed', + 'eg', + 'fed', + ][e]), + e + t + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('da', { + months: 'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'søn_man_tir_ons_tor_fre_lør'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd [d.] D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'på dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[i] dddd[s kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'få sekunder', + ss: '%d sekunder', + m: 'et minut', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dage', + M: 'en måned', + MM: '%d måneder', + y: 'et år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + }; + return t ? i[n][0] : i[n][1]; + } + e.defineLocale('de', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + }; + return t ? i[n][0] : i[n][1]; + } + e.defineLocale('de-at', { + months: 'Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + m: ['eine Minute', 'einer Minute'], + h: ['eine Stunde', 'einer Stunde'], + d: ['ein Tag', 'einem Tag'], + dd: [e + ' Tage', e + ' Tagen'], + M: ['ein Monat', 'einem Monat'], + MM: [e + ' Monate', e + ' Monaten'], + y: ['ein Jahr', 'einem Jahr'], + yy: [e + ' Jahre', e + ' Jahren'], + }; + return t ? i[n][0] : i[n][1]; + } + e.defineLocale('de-ch', { + months: 'Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split( + '_' + ), + weekdaysShort: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysMin: 'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY HH:mm', + LLLL: 'dddd, D. MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[heute um] LT [Uhr]', + sameElse: 'L', + nextDay: '[morgen um] LT [Uhr]', + nextWeek: 'dddd [um] LT [Uhr]', + lastDay: '[gestern um] LT [Uhr]', + lastWeek: '[letzten] dddd [um] LT [Uhr]', + }, + relativeTime: { + future: 'in %s', + past: 'vor %s', + s: 'ein paar Sekunden', + ss: '%d Sekunden', + m: t, + mm: '%d Minuten', + h: t, + hh: '%d Stunden', + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = [ + 'ޖެނުއަރީ', + 'ފެބްރުއަރީ', + 'މާރިޗު', + 'އޭޕްރީލު', + 'މޭ', + 'ޖޫން', + 'ޖުލައި', + 'އޯގަސްޓު', + 'ސެޕްޓެމްބަރު', + 'އޮކްޓޯބަރު', + 'ނޮވެމްބަރު', + 'ޑިސެމްބަރު', + ], + n = [ + 'އާދިއްތަ', + 'ހޯމަ', + 'އަންގާރަ', + 'ބުދަ', + 'ބުރާސްފަތި', + 'ހުކުރު', + 'ހޮނިހިރު', + ]; + e.defineLocale('dv', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: 'އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'D/M/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + meridiemParse: /މކ|މފ/, + isPM: function (e) { + return 'މފ' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'މކ' : 'މފ'; + }, + calendar: { + sameDay: '[މިއަދު] LT', + nextDay: '[މާދަމާ] LT', + nextWeek: 'dddd LT', + lastDay: '[އިއްޔެ] LT', + lastWeek: '[ފާއިތުވި] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ތެރޭގައި %s', + past: 'ކުރިން %s', + s: 'ސިކުންތުކޮޅެއް', + ss: 'd% ސިކުންތު', + m: 'މިނިޓެއް', + mm: 'މިނިޓު %d', + h: 'ގަޑިއިރެއް', + hh: 'ގަޑިއިރު %d', + d: 'ދުވަހެއް', + dd: 'ދުވަސް %d', + M: 'މަހެއް', + MM: 'މަސް %d', + y: 'އަހަރެއް', + yy: 'އަހަރު %d', + }, + preparse: function (e) { + return e.replace(/،/g, ','); + }, + postformat: function (e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 7, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('el', { + monthsNominativeEl: 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split( + '_' + ), + monthsGenitiveEl: 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split( + '_' + ), + months: function (e, t) { + return e + ? 'string' == typeof t && + /D/.test(t.substring(0, t.indexOf('MMMM'))) + ? this._monthsGenitiveEl[e.month()] + : this._monthsNominativeEl[e.month()] + : this._monthsNominativeEl; + }, + monthsShort: 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split( + '_' + ), + weekdays: 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split( + '_' + ), + weekdaysShort: 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'), + weekdaysMin: 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'), + meridiem: function (e, t, n) { + return e > 11 ? (n ? 'μμ' : 'ΜΜ') : n ? 'πμ' : 'ΠΜ'; + }, + isPM: function (e) { + return 'μ' === (e + '').toLowerCase()[0]; + }, + meridiemParse: /[ΠΜ]\.?Μ?\.?/i, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendarEl: { + sameDay: '[Σήμερα {}] LT', + nextDay: '[Αύριο {}] LT', + nextWeek: 'dddd [{}] LT', + lastDay: '[Χθες {}] LT', + lastWeek: function () { + switch (this.day()) { + case 6: + return '[το προηγούμενο] dddd [{}] LT'; + default: + return '[την προηγούμενη] dddd [{}] LT'; + } + }, + sameElse: 'L', + }, + calendar: function (e, t) { + var n, + r = this._calendarEl[e], + i = t && t.hours(); + return ( + ((n = r) instanceof Function || + '[object Function]' === Object.prototype.toString.call(n)) && + (r = r.apply(t)), + r.replace('{}', i % 12 == 1 ? 'στη' : 'στις') + ); + }, + relativeTime: { + future: 'σε %s', + past: '%s πριν', + s: 'λίγα δευτερόλεπτα', + ss: '%d δευτερόλεπτα', + m: 'ένα λεπτό', + mm: '%d λεπτά', + h: 'μία ώρα', + hh: '%d ώρες', + d: 'μία μέρα', + dd: '%d μέρες', + M: 'ένας μήνας', + MM: '%d μήνες', + y: 'ένας χρόνος', + yy: '%d χρόνια', + }, + dayOfMonthOrdinalParse: /\d{1,2}η/, + ordinal: '%dη', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-SG', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-au', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-ca', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'YYYY-MM-DD', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-gb', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-ie', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-il', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('en-nz', { + months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( + '_' + ), + weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('eo', { + months: 'januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato'.split( + '_' + ), + weekdaysShort: 'dim_lun_mard_merk_ĵaŭ_ven_sab'.split('_'), + weekdaysMin: 'di_lu_ma_me_ĵa_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D[-a de] MMMM, YYYY', + LLL: 'D[-a de] MMMM, YYYY HH:mm', + LLLL: 'dddd, [la] D[-a de] MMMM, YYYY HH:mm', + }, + meridiemParse: /[ap]\.t\.m/i, + isPM: function (e) { + return 'p' === e.charAt(0).toLowerCase(); + }, + meridiem: function (e, t, n) { + return e > 11 ? (n ? 'p.t.m.' : 'P.T.M.') : n ? 'a.t.m.' : 'A.T.M.'; + }, + calendar: { + sameDay: '[Hodiaŭ je] LT', + nextDay: '[Morgaŭ je] LT', + nextWeek: 'dddd [je] LT', + lastDay: '[Hieraŭ je] LT', + lastWeek: '[pasinta] dddd [je] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'post %s', + past: 'antaŭ %s', + s: 'sekundoj', + ss: '%d sekundoj', + m: 'minuto', + mm: '%d minutoj', + h: 'horo', + hh: '%d horoj', + d: 'tago', + dd: '%d tagoj', + M: 'monato', + MM: '%d monatoj', + y: 'jaro', + yy: '%d jaroj', + }, + dayOfMonthOrdinalParse: /\d{1,2}a/, + ordinal: '%da', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + i = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + i = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es-do', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( + '_' + ), + n = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), + r = [ + /^ene/i, + /^feb/i, + /^mar/i, + /^abr/i, + /^may/i, + /^jun/i, + /^jul/i, + /^ago/i, + /^sep/i, + /^oct/i, + /^nov/i, + /^dic/i, + ], + i = /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i; + e.defineLocale('es-us', { + months: 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i, + monthsShortStrictRegex: /^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split( + '_' + ), + weekdaysShort: 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mi_ju_vi_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'MM/DD/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY h:mm A', + LLLL: 'dddd, D [de] MMMM [de] YYYY h:mm A', + }, + calendar: { + sameDay: function () { + return '[hoy a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextDay: function () { + return '[mañana a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + nextWeek: function () { + return 'dddd [a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastDay: function () { + return '[ayer a la' + (1 !== this.hours() ? 's' : '') + '] LT'; + }, + lastWeek: function () { + return ( + '[el] dddd [pasado a la' + + (1 !== this.hours() ? 's' : '') + + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: 'en %s', + past: 'hace %s', + s: 'unos segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'una hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un año', + yy: '%d años', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'], + ss: [e + 'sekundi', e + 'sekundit'], + m: ['ühe minuti', 'üks minut'], + mm: [e + ' minuti', e + ' minutit'], + h: ['ühe tunni', 'tund aega', 'üks tund'], + hh: [e + ' tunni', e + ' tundi'], + d: ['ühe päeva', 'üks päev'], + M: ['kuu aja', 'kuu aega', 'üks kuu'], + MM: [e + ' kuu', e + ' kuud'], + y: ['ühe aasta', 'aasta', 'üks aasta'], + yy: [e + ' aasta', e + ' aastat'], + }; + return t ? (i[n][2] ? i[n][2] : i[n][1]) : r ? i[n][0] : i[n][1]; + } + e.defineLocale('et', { + months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split( + '_' + ), + monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split( + '_' + ), + weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split( + '_' + ), + weekdaysShort: 'P_E_T_K_N_R_L'.split('_'), + weekdaysMin: 'P_E_T_K_N_R_L'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Täna,] LT', + nextDay: '[Homme,] LT', + nextWeek: '[Järgmine] dddd LT', + lastDay: '[Eile,] LT', + lastWeek: '[Eelmine] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s pärast', + past: '%s tagasi', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: '%d päeva', + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('eu', { + months: 'urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua'.split( + '_' + ), + monthsShort: 'urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata'.split( + '_' + ), + weekdaysShort: 'ig._al._ar._az._og._ol._lr.'.split('_'), + weekdaysMin: 'ig_al_ar_az_og_ol_lr'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY[ko] MMMM[ren] D[a]', + LLL: 'YYYY[ko] MMMM[ren] D[a] HH:mm', + LLLL: 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm', + l: 'YYYY-M-D', + ll: 'YYYY[ko] MMM D[a]', + lll: 'YYYY[ko] MMM D[a] HH:mm', + llll: 'ddd, YYYY[ko] MMM D[a] HH:mm', + }, + calendar: { + sameDay: '[gaur] LT[etan]', + nextDay: '[bihar] LT[etan]', + nextWeek: 'dddd LT[etan]', + lastDay: '[atzo] LT[etan]', + lastWeek: '[aurreko] dddd LT[etan]', + sameElse: 'L', + }, + relativeTime: { + future: '%s barru', + past: 'duela %s', + s: 'segundo batzuk', + ss: '%d segundo', + m: 'minutu bat', + mm: '%d minutu', + h: 'ordu bat', + hh: '%d ordu', + d: 'egun bat', + dd: '%d egun', + M: 'hilabete bat', + MM: '%d hilabete', + y: 'urte bat', + yy: '%d urte', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '۱', + 2: '۲', + 3: '۳', + 4: '۴', + 5: '۵', + 6: '۶', + 7: '۷', + 8: '۸', + 9: '۹', + 0: '۰', + }, + n = { + '۱': '1', + '۲': '2', + '۳': '3', + '۴': '4', + '۵': '5', + '۶': '6', + '۷': '7', + '۸': '8', + '۹': '9', + '۰': '0', + }; + e.defineLocale('fa', { + months: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + monthsShort: 'ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر'.split( + '_' + ), + weekdays: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysShort: 'یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ج_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /قبل از ظهر|بعد از ظهر/, + isPM: function (e) { + return /بعد از ظهر/.test(e); + }, + meridiem: function (e, t, n) { + return e < 12 ? 'قبل از ظهر' : 'بعد از ظهر'; + }, + calendar: { + sameDay: '[امروز ساعت] LT', + nextDay: '[فردا ساعت] LT', + nextWeek: 'dddd [ساعت] LT', + lastDay: '[دیروز ساعت] LT', + lastWeek: 'dddd [پیش] [ساعت] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'در %s', + past: '%s پیش', + s: 'چند ثانیه', + ss: 'ثانیه d%', + m: 'یک دقیقه', + mm: '%d دقیقه', + h: 'یک ساعت', + hh: '%d ساعت', + d: 'یک روز', + dd: '%d روز', + M: 'یک ماه', + MM: '%d ماه', + y: 'یک سال', + yy: '%d سال', + }, + preparse: function (e) { + return e + .replace(/[۰-۹]/g, function (e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + dayOfMonthOrdinalParse: /\d{1,2}م/, + ordinal: '%dم', + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split( + ' ' + ), + n = [ + 'nolla', + 'yhden', + 'kahden', + 'kolmen', + 'neljän', + 'viiden', + 'kuuden', + t[7], + t[8], + t[9], + ]; + function r(e, r, i, o) { + var s = ''; + switch (i) { + case 's': + return o ? 'muutaman sekunnin' : 'muutama sekunti'; + case 'ss': + return o ? 'sekunnin' : 'sekuntia'; + case 'm': + return o ? 'minuutin' : 'minuutti'; + case 'mm': + s = o ? 'minuutin' : 'minuuttia'; + break; + case 'h': + return o ? 'tunnin' : 'tunti'; + case 'hh': + s = o ? 'tunnin' : 'tuntia'; + break; + case 'd': + return o ? 'päivän' : 'päivä'; + case 'dd': + s = o ? 'päivän' : 'päivää'; + break; + case 'M': + return o ? 'kuukauden' : 'kuukausi'; + case 'MM': + s = o ? 'kuukauden' : 'kuukautta'; + break; + case 'y': + return o ? 'vuoden' : 'vuosi'; + case 'yy': + s = o ? 'vuoden' : 'vuotta'; + } + return (s = + (function (e, r) { + return e < 10 ? (r ? n[e] : t[e]) : e; + })(e, o) + + ' ' + + s); + } + e.defineLocale('fi', { + months: 'tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu'.split( + '_' + ), + monthsShort: 'tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu'.split( + '_' + ), + weekdays: 'sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai'.split( + '_' + ), + weekdaysShort: 'su_ma_ti_ke_to_pe_la'.split('_'), + weekdaysMin: 'su_ma_ti_ke_to_pe_la'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'Do MMMM[ta] YYYY', + LLL: 'Do MMMM[ta] YYYY, [klo] HH.mm', + LLLL: 'dddd, Do MMMM[ta] YYYY, [klo] HH.mm', + l: 'D.M.YYYY', + ll: 'Do MMM YYYY', + lll: 'Do MMM YYYY, [klo] HH.mm', + llll: 'ddd, Do MMM YYYY, [klo] HH.mm', + }, + calendar: { + sameDay: '[tänään] [klo] LT', + nextDay: '[huomenna] [klo] LT', + nextWeek: 'dddd [klo] LT', + lastDay: '[eilen] [klo] LT', + lastWeek: '[viime] dddd[na] [klo] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s päästä', + past: '%s sitten', + s: r, + ss: r, + m: r, + mm: r, + h: r, + hh: r, + d: r, + dd: r, + M: r, + MM: r, + y: r, + yy: r, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('fo', { + months: 'januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: 'sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_týs_mik_hós_frí_ley'.split('_'), + weekdaysMin: 'su_má_tý_mi_hó_fr_le'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D. MMMM, YYYY HH:mm', + }, + calendar: { + sameDay: '[Í dag kl.] LT', + nextDay: '[Í morgin kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[Í gjár kl.] LT', + lastWeek: '[síðstu] dddd [kl] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'um %s', + past: '%s síðani', + s: 'fá sekund', + ss: '%d sekundir', + m: 'ein minuttur', + mm: '%d minuttir', + h: 'ein tími', + hh: '%d tímar', + d: 'ein dagur', + dd: '%d dagar', + M: 'ein mánaður', + MM: '%d mánaðir', + y: 'eitt ár', + yy: '%d ár', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('fr', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|)/, + ordinal: function (e, t) { + switch (t) { + case 'D': + return e + (1 === e ? 'er' : ''); + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('fr-ca', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('fr-ch', { + months: 'janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre'.split( + '_' + ), + monthsShort: 'janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split( + '_' + ), + weekdaysShort: 'dim._lun._mar._mer._jeu._ven._sam.'.split('_'), + weekdaysMin: 'di_lu_ma_me_je_ve_sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Aujourd’hui à] LT', + nextDay: '[Demain à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[Hier à] LT', + lastWeek: 'dddd [dernier à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dans %s', + past: 'il y a %s', + s: 'quelques secondes', + ss: '%d secondes', + m: 'une minute', + mm: '%d minutes', + h: 'une heure', + hh: '%d heures', + d: 'un jour', + dd: '%d jours', + M: 'un mois', + MM: '%d mois', + y: 'un an', + yy: '%d ans', + }, + dayOfMonthOrdinalParse: /\d{1,2}(er|e)/, + ordinal: function (e, t) { + switch (t) { + default: + case 'M': + case 'Q': + case 'D': + case 'DDD': + case 'd': + return e + (1 === e ? 'er' : 'e'); + case 'w': + case 'W': + return e + (1 === e ? 're' : 'e'); + } + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'); + e.defineLocale('fy', { + months: 'jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsParseExact: !0, + weekdays: 'snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon'.split( + '_' + ), + weekdaysShort: 'si._mo._ti._wo._to._fr._so.'.split('_'), + weekdaysMin: 'Si_Mo_Ti_Wo_To_Fr_So'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[hjoed om] LT', + nextDay: '[moarn om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[juster om] LT', + lastWeek: '[ôfrûne] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'oer %s', + past: '%s lyn', + s: 'in pear sekonden', + ss: '%d sekonden', + m: 'ien minút', + mm: '%d minuten', + h: 'ien oere', + hh: '%d oeren', + d: 'ien dei', + dd: '%d dagen', + M: 'ien moanne', + MM: '%d moannen', + y: 'ien jier', + yy: '%d jierren', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ga', { + months: [ + 'Eanáir', + 'Feabhra', + 'Márta', + 'Aibreán', + 'Bealtaine', + 'Méitheamh', + 'Iúil', + 'Lúnasa', + 'Meán Fómhair', + 'Deaireadh Fómhair', + 'Samhain', + 'Nollaig', + ], + monthsShort: [ + 'Eaná', + 'Feab', + 'Márt', + 'Aibr', + 'Beal', + 'Méit', + 'Iúil', + 'Lúna', + 'Meán', + 'Deai', + 'Samh', + 'Noll', + ], + monthsParseExact: !0, + weekdays: [ + 'Dé Domhnaigh', + 'Dé Luain', + 'Dé Máirt', + 'Dé Céadaoin', + 'Déardaoin', + 'Dé hAoine', + 'Dé Satharn', + ], + weekdaysShort: ['Dom', 'Lua', 'Mái', 'Céa', 'Déa', 'hAo', 'Sat'], + weekdaysMin: ['Do', 'Lu', 'Má', 'Ce', 'Dé', 'hA', 'Sa'], + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Inniu ag] LT', + nextDay: '[Amárach ag] LT', + nextWeek: 'dddd [ag] LT', + lastDay: '[Inné aig] LT', + lastWeek: 'dddd [seo caite] [ag] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i %s', + past: '%s ó shin', + s: 'cúpla soicind', + ss: '%d soicind', + m: 'nóiméad', + mm: '%d nóiméad', + h: 'uair an chloig', + hh: '%d uair an chloig', + d: 'lá', + dd: '%d lá', + M: 'mí', + MM: '%d mí', + y: 'bliain', + yy: '%d bliain', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('gd', { + months: [ + 'Am Faoilleach', + 'An Gearran', + 'Am Màrt', + 'An Giblean', + 'An Cèitean', + 'An t-Ògmhios', + 'An t-Iuchar', + 'An Lùnastal', + 'An t-Sultain', + 'An Dàmhair', + 'An t-Samhain', + 'An Dùbhlachd', + ], + monthsShort: [ + 'Faoi', + 'Gear', + 'Màrt', + 'Gibl', + 'Cèit', + 'Ògmh', + 'Iuch', + 'Lùn', + 'Sult', + 'Dàmh', + 'Samh', + 'Dùbh', + ], + monthsParseExact: !0, + weekdays: [ + 'Didòmhnaich', + 'Diluain', + 'Dimàirt', + 'Diciadain', + 'Diardaoin', + 'Dihaoine', + 'Disathairne', + ], + weekdaysShort: ['Did', 'Dil', 'Dim', 'Dic', 'Dia', 'Dih', 'Dis'], + weekdaysMin: ['Dò', 'Lu', 'Mà', 'Ci', 'Ar', 'Ha', 'Sa'], + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[An-diugh aig] LT', + nextDay: '[A-màireach aig] LT', + nextWeek: 'dddd [aig] LT', + lastDay: '[An-dè aig] LT', + lastWeek: 'dddd [seo chaidh] [aig] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ann an %s', + past: 'bho chionn %s', + s: 'beagan diogan', + ss: '%d diogan', + m: 'mionaid', + mm: '%d mionaidean', + h: 'uair', + hh: '%d uairean', + d: 'latha', + dd: '%d latha', + M: 'mìos', + MM: '%d mìosan', + y: 'bliadhna', + yy: '%d bliadhna', + }, + dayOfMonthOrdinalParse: /\d{1,2}(d|na|mh)/, + ordinal: function (e) { + return e + (1 === e ? 'd' : e % 10 == 2 ? 'na' : 'mh'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('gl', { + months: 'xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro'.split( + '_' + ), + monthsShort: 'xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'domingo_luns_martes_mércores_xoves_venres_sábado'.split('_'), + weekdaysShort: 'dom._lun._mar._mér._xov._ven._sáb.'.split('_'), + weekdaysMin: 'do_lu_ma_mé_xo_ve_sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY H:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY H:mm', + }, + calendar: { + sameDay: function () { + return '[hoxe ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; + }, + nextDay: function () { + return '[mañá ' + (1 !== this.hours() ? 'ás' : 'á') + '] LT'; + }, + nextWeek: function () { + return 'dddd [' + (1 !== this.hours() ? 'ás' : 'a') + '] LT'; + }, + lastDay: function () { + return '[onte ' + (1 !== this.hours() ? 'á' : 'a') + '] LT'; + }, + lastWeek: function () { + return ( + '[o] dddd [pasado ' + (1 !== this.hours() ? 'ás' : 'a') + '] LT' + ); + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return 0 === e.indexOf('un') ? 'n' + e : 'en ' + e; + }, + past: 'hai %s', + s: 'uns segundos', + ss: '%d segundos', + m: 'un minuto', + mm: '%d minutos', + h: 'unha hora', + hh: '%d horas', + d: 'un día', + dd: '%d días', + M: 'un mes', + MM: '%d meses', + y: 'un ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + s: ['thodde secondanim', 'thodde second'], + ss: [e + ' secondanim', e + ' second'], + m: ['eka mintan', 'ek minute'], + mm: [e + ' mintanim', e + ' mintam'], + h: ['eka voran', 'ek vor'], + hh: [e + ' voranim', e + ' voram'], + d: ['eka disan', 'ek dis'], + dd: [e + ' disanim', e + ' dis'], + M: ['eka mhoinean', 'ek mhoino'], + MM: [e + ' mhoineanim', e + ' mhoine'], + y: ['eka vorsan', 'ek voros'], + yy: [e + ' vorsanim', e + ' vorsam'], + }; + return t ? i[n][0] : i[n][1]; + } + e.defineLocale('gom-latn', { + months: 'Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr'.split( + '_' + ), + monthsShort: 'Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: "Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split( + '_' + ), + weekdaysShort: 'Ait._Som._Mon._Bud._Bre._Suk._Son.'.split('_'), + weekdaysMin: 'Ai_Sm_Mo_Bu_Br_Su_Sn'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'A h:mm [vazta]', + LTS: 'A h:mm:ss [vazta]', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY A h:mm [vazta]', + LLLL: 'dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]', + llll: 'ddd, D MMM YYYY, A h:mm [vazta]', + }, + calendar: { + sameDay: '[Aiz] LT', + nextDay: '[Faleam] LT', + nextWeek: '[Ieta to] dddd[,] LT', + lastDay: '[Kal] LT', + lastWeek: '[Fatlo] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s', + past: '%s adim', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}(er)/, + ordinal: function (e, t) { + switch (t) { + case 'D': + return e + 'er'; + default: + case 'M': + case 'Q': + case 'DDD': + case 'd': + case 'w': + case 'W': + return e; + } + }, + week: { dow: 1, doy: 4 }, + meridiemParse: /rati|sokalli|donparam|sanje/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'rati' === t + ? e < 4 + ? e + : e + 12 + : 'sokalli' === t + ? e + : 'donparam' === t + ? e > 12 + ? e + : e + 12 + : 'sanje' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'rati' + : e < 12 + ? 'sokalli' + : e < 16 + ? 'donparam' + : e < 20 + ? 'sanje' + : 'rati'; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '૧', + 2: '૨', + 3: '૩', + 4: '૪', + 5: '૫', + 6: '૬', + 7: '૭', + 8: '૮', + 9: '૯', + 0: '૦', + }, + n = { + '૧': '1', + '૨': '2', + '૩': '3', + '૪': '4', + '૫': '5', + '૬': '6', + '૭': '7', + '૮': '8', + '૯': '9', + '૦': '0', + }; + e.defineLocale('gu', { + months: 'જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર'.split( + '_' + ), + monthsShort: 'જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર'.split( + '_' + ), + weekdaysShort: 'રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ'.split('_'), + weekdaysMin: 'ર_સો_મં_બુ_ગુ_શુ_શ'.split('_'), + longDateFormat: { + LT: 'A h:mm વાગ્યે', + LTS: 'A h:mm:ss વાગ્યે', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm વાગ્યે', + LLLL: 'dddd, D MMMM YYYY, A h:mm વાગ્યે', + }, + calendar: { + sameDay: '[આજ] LT', + nextDay: '[કાલે] LT', + nextWeek: 'dddd, LT', + lastDay: '[ગઇકાલે] LT', + lastWeek: '[પાછલા] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s મા', + past: '%s પેહલા', + s: 'અમુક પળો', + ss: '%d સેકંડ', + m: 'એક મિનિટ', + mm: '%d મિનિટ', + h: 'એક કલાક', + hh: '%d કલાક', + d: 'એક દિવસ', + dd: '%d દિવસ', + M: 'એક મહિનો', + MM: '%d મહિનો', + y: 'એક વર્ષ', + yy: '%d વર્ષ', + }, + preparse: function (e) { + return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /રાત|બપોર|સવાર|સાંજ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'રાત' === t + ? e < 4 + ? e + : e + 12 + : 'સવાર' === t + ? e + : 'બપોર' === t + ? e >= 10 + ? e + : e + 12 + : 'સાંજ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'રાત' + : e < 10 + ? 'સવાર' + : e < 17 + ? 'બપોર' + : e < 20 + ? 'સાંજ' + : 'રાત'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('he', { + months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split( + '_' + ), + monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split( + '_' + ), + weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'), + weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'), + weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [ב]MMMM YYYY', + LLL: 'D [ב]MMMM YYYY HH:mm', + LLLL: 'dddd, D [ב]MMMM YYYY HH:mm', + l: 'D/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[היום ב־]LT', + nextDay: '[מחר ב־]LT', + nextWeek: 'dddd [בשעה] LT', + lastDay: '[אתמול ב־]LT', + lastWeek: '[ביום] dddd [האחרון בשעה] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'בעוד %s', + past: 'לפני %s', + s: 'מספר שניות', + ss: '%d שניות', + m: 'דקה', + mm: '%d דקות', + h: 'שעה', + hh: function (e) { + return 2 === e ? 'שעתיים' : e + ' שעות'; + }, + d: 'יום', + dd: function (e) { + return 2 === e ? 'יומיים' : e + ' ימים'; + }, + M: 'חודש', + MM: function (e) { + return 2 === e ? 'חודשיים' : e + ' חודשים'; + }, + y: 'שנה', + yy: function (e) { + return 2 === e + ? 'שנתיים' + : e % 10 == 0 && 10 !== e + ? e + ' שנה' + : e + ' שנים'; + }, + }, + meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i, + isPM: function (e) { + return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(e); + }, + meridiem: function (e, t, n) { + return e < 5 + ? 'לפנות בוקר' + : e < 10 + ? 'בבוקר' + : e < 12 + ? n + ? 'לפנה"צ' + : 'לפני הצהריים' + : e < 18 + ? n + ? 'אחה"צ' + : 'אחרי הצהריים' + : 'בערב'; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; + e.defineLocale('hi', { + months: 'जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर'.split( + '_' + ), + monthsShort: 'जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm बजे', + LTS: 'A h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, A h:mm बजे', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[कल] LT', + nextWeek: 'dddd, LT', + lastDay: '[कल] LT', + lastWeek: '[पिछले] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s में', + past: '%s पहले', + s: 'कुछ ही क्षण', + ss: '%d सेकंड', + m: 'एक मिनट', + mm: '%d मिनट', + h: 'एक घंटा', + hh: '%d घंटे', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महीने', + MM: '%d महीने', + y: 'एक वर्ष', + yy: '%d वर्ष', + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /रात|सुबह|दोपहर|शाम/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'रात' === t + ? e < 4 + ? e + : e + 12 + : 'सुबह' === t + ? e + : 'दोपहर' === t + ? e >= 10 + ? e + : e + 12 + : 'शाम' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'रात' + : e < 10 + ? 'सुबह' + : e < 17 + ? 'दोपहर' + : e < 20 + ? 'शाम' + : 'रात'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r = e + ' '; + switch (n) { + case 'ss': + return (r += + 1 === e + ? 'sekunda' + : 2 === e || 3 === e || 4 === e + ? 'sekunde' + : 'sekundi'); + case 'm': + return t ? 'jedna minuta' : 'jedne minute'; + case 'mm': + return (r += + 1 === e + ? 'minuta' + : 2 === e || 3 === e || 4 === e + ? 'minute' + : 'minuta'); + case 'h': + return t ? 'jedan sat' : 'jednog sata'; + case 'hh': + return (r += + 1 === e + ? 'sat' + : 2 === e || 3 === e || 4 === e + ? 'sata' + : 'sati'); + case 'dd': + return (r += 1 === e ? 'dan' : 'dana'); + case 'MM': + return (r += + 1 === e + ? 'mjesec' + : 2 === e || 3 === e || 4 === e + ? 'mjeseca' + : 'mjeseci'); + case 'yy': + return (r += + 1 === e + ? 'godina' + : 2 === e || 3 === e || 4 === e + ? 'godine' + : 'godina'); + } + } + e.defineLocale('hr', { + months: { + format: 'siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca'.split( + '_' + ), + standalone: 'siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac'.split( + '_' + ), + }, + monthsShort: 'sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[jučer u] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + return '[prošlu] dddd [u] LT'; + case 6: + return '[prošle] [subote] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prošli] dddd [u] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'par sekundi', + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: 'dan', + dd: t, + M: 'mjesec', + MM: t, + y: 'godinu', + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split( + ' ' + ); + function n(e, t, n, r) { + var i = e; + switch (n) { + case 's': + return r || t ? 'néhány másodperc' : 'néhány másodperce'; + case 'ss': + return i + (r || t) ? ' másodperc' : ' másodperce'; + case 'm': + return 'egy' + (r || t ? ' perc' : ' perce'); + case 'mm': + return i + (r || t ? ' perc' : ' perce'); + case 'h': + return 'egy' + (r || t ? ' óra' : ' órája'); + case 'hh': + return i + (r || t ? ' óra' : ' órája'); + case 'd': + return 'egy' + (r || t ? ' nap' : ' napja'); + case 'dd': + return i + (r || t ? ' nap' : ' napja'); + case 'M': + return 'egy' + (r || t ? ' hónap' : ' hónapja'); + case 'MM': + return i + (r || t ? ' hónap' : ' hónapja'); + case 'y': + return 'egy' + (r || t ? ' év' : ' éve'); + case 'yy': + return i + (r || t ? ' év' : ' éve'); + } + return ''; + } + function r(e) { + return (e ? '' : '[múlt] ') + '[' + t[this.day()] + '] LT[-kor]'; + } + e.defineLocale('hu', { + months: 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split( + '_' + ), + weekdays: 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split( + '_' + ), + weekdaysShort: 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), + weekdaysMin: 'v_h_k_sze_cs_p_szo'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY. MMMM D.', + LLL: 'YYYY. MMMM D. H:mm', + LLLL: 'YYYY. MMMM D., dddd H:mm', + }, + meridiemParse: /de|du/i, + isPM: function (e) { + return 'u' === e.charAt(1).toLowerCase(); + }, + meridiem: function (e, t, n) { + return e < 12 ? (!0 === n ? 'de' : 'DE') : !0 === n ? 'du' : 'DU'; + }, + calendar: { + sameDay: '[ma] LT[-kor]', + nextDay: '[holnap] LT[-kor]', + nextWeek: function () { + return r.call(this, !0); + }, + lastDay: '[tegnap] LT[-kor]', + lastWeek: function () { + return r.call(this, !1); + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s múlva', + past: '%s', + s: n, + ss: n, + m: n, + mm: n, + h: n, + hh: n, + d: n, + dd: n, + M: n, + MM: n, + y: n, + yy: n, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('hy-am', { + months: { + format: 'հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի'.split( + '_' + ), + standalone: 'հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր'.split( + '_' + ), + }, + monthsShort: 'հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ'.split( + '_' + ), + weekdays: 'կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ'.split( + '_' + ), + weekdaysShort: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + weekdaysMin: 'կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY թ.', + LLL: 'D MMMM YYYY թ., HH:mm', + LLLL: 'dddd, D MMMM YYYY թ., HH:mm', + }, + calendar: { + sameDay: '[այսօր] LT', + nextDay: '[վաղը] LT', + lastDay: '[երեկ] LT', + nextWeek: function () { + return 'dddd [օրը ժամը] LT'; + }, + lastWeek: function () { + return '[անցած] dddd [օրը ժամը] LT'; + }, + sameElse: 'L', + }, + relativeTime: { + future: '%s հետո', + past: '%s առաջ', + s: 'մի քանի վայրկյան', + ss: '%d վայրկյան', + m: 'րոպե', + mm: '%d րոպե', + h: 'ժամ', + hh: '%d ժամ', + d: 'օր', + dd: '%d օր', + M: 'ամիս', + MM: '%d ամիս', + y: 'տարի', + yy: '%d տարի', + }, + meridiemParse: /գիշերվա|առավոտվա|ցերեկվա|երեկոյան/, + isPM: function (e) { + return /^(ցերեկվա|երեկոյան)$/.test(e); + }, + meridiem: function (e) { + return e < 4 + ? 'գիշերվա' + : e < 12 + ? 'առավոտվա' + : e < 17 + ? 'ցերեկվա' + : 'երեկոյան'; + }, + dayOfMonthOrdinalParse: /\d{1,2}|\d{1,2}-(ին|րդ)/, + ordinal: function (e, t) { + switch (t) { + case 'DDD': + case 'w': + case 'W': + case 'DDDo': + return 1 === e ? e + '-ին' : e + '-րդ'; + default: + return e; + } + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('id', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Rab_Kam_Jum_Sab'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|siang|sore|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'siang' === t + ? e >= 11 + ? e + : e + 12 + : 'sore' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 11 ? 'pagi' : e < 15 ? 'siang' : e < 19 ? 'sore' : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Besok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kemarin pukul] LT', + lastWeek: 'dddd [lalu pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lalu', + s: 'beberapa detik', + ss: '%d detik', + m: 'semenit', + mm: '%d menit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e) { + return e % 100 == 11 || e % 10 != 1; + } + function n(e, n, r, i) { + var o = e + ' '; + switch (r) { + case 's': + return n || i ? 'nokkrar sekúndur' : 'nokkrum sekúndum'; + case 'ss': + return t(e) + ? o + (n || i ? 'sekúndur' : 'sekúndum') + : o + 'sekúnda'; + case 'm': + return n ? 'mínúta' : 'mínútu'; + case 'mm': + return t(e) + ? o + (n || i ? 'mínútur' : 'mínútum') + : n + ? o + 'mínúta' + : o + 'mínútu'; + case 'hh': + return t(e) + ? o + (n || i ? 'klukkustundir' : 'klukkustundum') + : o + 'klukkustund'; + case 'd': + return n ? 'dagur' : i ? 'dag' : 'degi'; + case 'dd': + return t(e) + ? n + ? o + 'dagar' + : o + (i ? 'daga' : 'dögum') + : n + ? o + 'dagur' + : o + (i ? 'dag' : 'degi'); + case 'M': + return n ? 'mánuður' : i ? 'mánuð' : 'mánuði'; + case 'MM': + return t(e) + ? n + ? o + 'mánuðir' + : o + (i ? 'mánuði' : 'mánuðum') + : n + ? o + 'mánuður' + : o + (i ? 'mánuð' : 'mánuði'); + case 'y': + return n || i ? 'ár' : 'ári'; + case 'yy': + return t(e) + ? o + (n || i ? 'ár' : 'árum') + : o + (n || i ? 'ár' : 'ári'); + } + } + e.defineLocale('is', { + months: 'janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des'.split( + '_' + ), + weekdays: 'sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur'.split( + '_' + ), + weekdaysShort: 'sun_mán_þri_mið_fim_fös_lau'.split('_'), + weekdaysMin: 'Su_Má_Þr_Mi_Fi_Fö_La'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd, D. MMMM YYYY [kl.] H:mm', + }, + calendar: { + sameDay: '[í dag kl.] LT', + nextDay: '[á morgun kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[í gær kl.] LT', + lastWeek: '[síðasta] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'eftir %s', + past: 'fyrir %s síðan', + s: n, + ss: n, + m: n, + mm: n, + h: 'klukkustund', + hh: n, + d: n, + dd: n, + M: n, + MM: n, + y: n, + yy: n, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('it', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('it-ch', { + months: 'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split( + '_' + ), + monthsShort: 'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split( + '_' + ), + weekdays: 'domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato'.split( + '_' + ), + weekdaysShort: 'dom_lun_mar_mer_gio_ven_sab'.split('_'), + weekdaysMin: 'do_lu_ma_me_gi_ve_sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Oggi alle] LT', + nextDay: '[Domani alle] LT', + nextWeek: 'dddd [alle] LT', + lastDay: '[Ieri alle] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[la scorsa] dddd [alle] LT'; + default: + return '[lo scorso] dddd [alle] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return (/^[0-9].+$/.test(e) ? 'tra' : 'in') + ' ' + e; + }, + past: '%s fa', + s: 'alcuni secondi', + ss: '%d secondi', + m: 'un minuto', + mm: '%d minuti', + h: "un'ora", + hh: '%d ore', + d: 'un giorno', + dd: '%d giorni', + M: 'un mese', + MM: '%d mesi', + y: 'un anno', + yy: '%d anni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ja', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日'.split('_'), + weekdaysShort: '日_月_火_水_木_金_土'.split('_'), + weekdaysMin: '日_月_火_水_木_金_土'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日 dddd HH:mm', + l: 'YYYY/MM/DD', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日(ddd) HH:mm', + }, + meridiemParse: /午前|午後/i, + isPM: function (e) { + return '午後' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? '午前' : '午後'; + }, + calendar: { + sameDay: '[今日] LT', + nextDay: '[明日] LT', + nextWeek: function (e) { + return e.week() < this.week() ? '[来週]dddd LT' : 'dddd LT'; + }, + lastDay: '[昨日] LT', + lastWeek: function (e) { + return this.week() < e.week() ? '[先週]dddd LT' : 'dddd LT'; + }, + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}日/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + default: + return e; + } + }, + relativeTime: { + future: '%s後', + past: '%s前', + s: '数秒', + ss: '%d秒', + m: '1分', + mm: '%d分', + h: '1時間', + hh: '%d時間', + d: '1日', + dd: '%d日', + M: '1ヶ月', + MM: '%dヶ月', + y: '1年', + yy: '%d年', + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('jv', { + months: 'Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des'.split( + '_' + ), + weekdays: 'Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu'.split('_'), + weekdaysShort: 'Min_Sen_Sel_Reb_Kem_Jem_Sep'.split('_'), + weekdaysMin: 'Mg_Sn_Sl_Rb_Km_Jm_Sp'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /enjing|siyang|sonten|ndalu/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'enjing' === t + ? e + : 'siyang' === t + ? e >= 11 + ? e + : e + 12 + : 'sonten' === t || 'ndalu' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 11 + ? 'enjing' + : e < 15 + ? 'siyang' + : e < 19 + ? 'sonten' + : 'ndalu'; + }, + calendar: { + sameDay: '[Dinten puniko pukul] LT', + nextDay: '[Mbenjang pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kala wingi pukul] LT', + lastWeek: 'dddd [kepengker pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'wonten ing %s', + past: '%s ingkang kepengker', + s: 'sawetawis detik', + ss: '%d detik', + m: 'setunggal menit', + mm: '%d menit', + h: 'setunggal jam', + hh: '%d jam', + d: 'sedinten', + dd: '%d dinten', + M: 'sewulan', + MM: '%d wulan', + y: 'setaun', + yy: '%d taun', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ka', { + months: { + standalone: 'იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი'.split( + '_' + ), + format: 'იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს'.split( + '_' + ), + }, + monthsShort: 'იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ'.split( + '_' + ), + weekdays: { + standalone: 'კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი'.split( + '_' + ), + format: 'კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს'.split( + '_' + ), + isFormat: /(წინა|შემდეგ)/, + }, + weekdaysShort: 'კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ'.split('_'), + weekdaysMin: 'კვ_ორ_სა_ოთ_ხუ_პა_შა'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[დღეს] LT[-ზე]', + nextDay: '[ხვალ] LT[-ზე]', + lastDay: '[გუშინ] LT[-ზე]', + nextWeek: '[შემდეგ] dddd LT[-ზე]', + lastWeek: '[წინა] dddd LT-ზე', + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + return /(წამი|წუთი|საათი|წელი)/.test(e) + ? e.replace(/ი$/, 'ში') + : e + 'ში'; + }, + past: function (e) { + return /(წამი|წუთი|საათი|დღე|თვე)/.test(e) + ? e.replace(/(ი|ე)$/, 'ის წინ') + : /წელი/.test(e) + ? e.replace(/წელი$/, 'წლის წინ') + : void 0; + }, + s: 'რამდენიმე წამი', + ss: '%d წამი', + m: 'წუთი', + mm: '%d წუთი', + h: 'საათი', + hh: '%d საათი', + d: 'დღე', + dd: '%d დღე', + M: 'თვე', + MM: '%d თვე', + y: 'წელი', + yy: '%d წელი', + }, + dayOfMonthOrdinalParse: /0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/, + ordinal: function (e) { + return 0 === e + ? e + : 1 === e + ? e + '-ლი' + : e < 20 || (e <= 100 && e % 20 == 0) || e % 100 == 0 + ? 'მე-' + e + : e + '-ე'; + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 0: '-ші', + 1: '-ші', + 2: '-ші', + 3: '-ші', + 4: '-ші', + 5: '-ші', + 6: '-шы', + 7: '-ші', + 8: '-ші', + 9: '-шы', + 10: '-шы', + 20: '-шы', + 30: '-шы', + 40: '-шы', + 50: '-ші', + 60: '-шы', + 70: '-ші', + 80: '-ші', + 90: '-шы', + 100: '-ші', + }; + e.defineLocale('kk', { + months: 'қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан'.split( + '_' + ), + monthsShort: 'қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел'.split( + '_' + ), + weekdays: 'жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі'.split( + '_' + ), + weekdaysShort: 'жек_дүй_сей_сәр_бей_жұм_сен'.split('_'), + weekdaysMin: 'жк_дй_сй_ср_бй_жм_сн'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгін сағат] LT', + nextDay: '[Ертең сағат] LT', + nextWeek: 'dddd [сағат] LT', + lastDay: '[Кеше сағат] LT', + lastWeek: '[Өткен аптаның] dddd [сағат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ішінде', + past: '%s бұрын', + s: 'бірнеше секунд', + ss: '%d секунд', + m: 'бір минут', + mm: '%d минут', + h: 'бір сағат', + hh: '%d сағат', + d: 'бір күн', + dd: '%d күн', + M: 'бір ай', + MM: '%d ай', + y: 'бір жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ші|шы)/, + ordinal: function (e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '១', + 2: '២', + 3: '៣', + 4: '៤', + 5: '៥', + 6: '៦', + 7: '៧', + 8: '៨', + 9: '៩', + 0: '០', + }, + n = { + '១': '1', + '២': '2', + '៣': '3', + '៤': '4', + '៥': '5', + '៦': '6', + '៧': '7', + '៨': '8', + '៩': '9', + '០': '0', + }; + e.defineLocale('km', { + months: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + monthsShort: 'មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ'.split( + '_' + ), + weekdays: 'អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍'.split('_'), + weekdaysShort: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysMin: 'អា_ច_អ_ព_ព្រ_សុ_ស'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ព្រឹក|ល្ងាច/, + isPM: function (e) { + return 'ល្ងាច' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ព្រឹក' : 'ល្ងាច'; + }, + calendar: { + sameDay: '[ថ្ងៃនេះ ម៉ោង] LT', + nextDay: '[ស្អែក ម៉ោង] LT', + nextWeek: 'dddd [ម៉ោង] LT', + lastDay: '[ម្សិលមិញ ម៉ោង] LT', + lastWeek: 'dddd [សប្តាហ៍មុន] [ម៉ោង] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sទៀត', + past: '%sមុន', + s: 'ប៉ុន្មានវិនាទី', + ss: '%d វិនាទី', + m: 'មួយនាទី', + mm: '%d នាទី', + h: 'មួយម៉ោង', + hh: '%d ម៉ោង', + d: 'មួយថ្ងៃ', + dd: '%d ថ្ងៃ', + M: 'មួយខែ', + MM: '%d ខែ', + y: 'មួយឆ្នាំ', + yy: '%d ឆ្នាំ', + }, + dayOfMonthOrdinalParse: /ទី\d{1,2}/, + ordinal: 'ទី%d', + preparse: function (e) { + return e.replace(/[១២៣៤៥៦៧៨៩០]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '೧', + 2: '೨', + 3: '೩', + 4: '೪', + 5: '೫', + 6: '೬', + 7: '೭', + 8: '೮', + 9: '೯', + 0: '೦', + }, + n = { + '೧': '1', + '೨': '2', + '೩': '3', + '೪': '4', + '೫': '5', + '೬': '6', + '೭': '7', + '೮': '8', + '೯': '9', + '೦': '0', + }; + e.defineLocale('kn', { + months: 'ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್'.split( + '_' + ), + monthsShort: 'ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ'.split( + '_' + ), + weekdaysShort: 'ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ'.split('_'), + weekdaysMin: 'ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[ಇಂದು] LT', + nextDay: '[ನಾಳೆ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ನಿನ್ನೆ] LT', + lastWeek: '[ಕೊನೆಯ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ನಂತರ', + past: '%s ಹಿಂದೆ', + s: 'ಕೆಲವು ಕ್ಷಣಗಳು', + ss: '%d ಸೆಕೆಂಡುಗಳು', + m: 'ಒಂದು ನಿಮಿಷ', + mm: '%d ನಿಮಿಷ', + h: 'ಒಂದು ಗಂಟೆ', + hh: '%d ಗಂಟೆ', + d: 'ಒಂದು ದಿನ', + dd: '%d ದಿನ', + M: 'ಒಂದು ತಿಂಗಳು', + MM: '%d ತಿಂಗಳು', + y: 'ಒಂದು ವರ್ಷ', + yy: '%d ವರ್ಷ', + }, + preparse: function (e) { + return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ರಾತ್ರಿ' === t + ? e < 4 + ? e + : e + 12 + : 'ಬೆಳಿಗ್ಗೆ' === t + ? e + : 'ಮಧ್ಯಾಹ್ನ' === t + ? e >= 10 + ? e + : e + 12 + : 'ಸಂಜೆ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'ರಾತ್ರಿ' + : e < 10 + ? 'ಬೆಳಿಗ್ಗೆ' + : e < 17 + ? 'ಮಧ್ಯಾಹ್ನ' + : e < 20 + ? 'ಸಂಜೆ' + : 'ರಾತ್ರಿ'; + }, + dayOfMonthOrdinalParse: /\d{1,2}(ನೇ)/, + ordinal: function (e) { + return e + 'ನೇ'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ko', { + months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'), + monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split( + '_' + ), + weekdays: '일요일_월요일_화요일_수요일_목요일_금요일_토요일'.split('_'), + weekdaysShort: '일_월_화_수_목_금_토'.split('_'), + weekdaysMin: '일_월_화_수_목_금_토'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'YYYY.MM.DD.', + LL: 'YYYY년 MMMM D일', + LLL: 'YYYY년 MMMM D일 A h:mm', + LLLL: 'YYYY년 MMMM D일 dddd A h:mm', + l: 'YYYY.MM.DD.', + ll: 'YYYY년 MMMM D일', + lll: 'YYYY년 MMMM D일 A h:mm', + llll: 'YYYY년 MMMM D일 dddd A h:mm', + }, + calendar: { + sameDay: '오늘 LT', + nextDay: '내일 LT', + nextWeek: 'dddd LT', + lastDay: '어제 LT', + lastWeek: '지난주 dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s 후', + past: '%s 전', + s: '몇 초', + ss: '%d초', + m: '1분', + mm: '%d분', + h: '한 시간', + hh: '%d시간', + d: '하루', + dd: '%d일', + M: '한 달', + MM: '%d달', + y: '일 년', + yy: '%d년', + }, + dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '일'; + case 'M': + return e + '월'; + case 'w': + case 'W': + return e + '주'; + default: + return e; + } + }, + meridiemParse: /오전|오후/, + isPM: function (e) { + return '오후' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? '오전' : '오후'; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '١', + 2: '٢', + 3: '٣', + 4: '٤', + 5: '٥', + 6: '٦', + 7: '٧', + 8: '٨', + 9: '٩', + 0: '٠', + }, + n = { + '١': '1', + '٢': '2', + '٣': '3', + '٤': '4', + '٥': '5', + '٦': '6', + '٧': '7', + '٨': '8', + '٩': '9', + '٠': '0', + }, + r = [ + 'کانونی دووەم', + 'شوبات', + 'ئازار', + 'نیسان', + 'ئایار', + 'حوزەیران', + 'تەمموز', + 'ئاب', + 'ئەیلوول', + 'تشرینی یەكەم', + 'تشرینی دووەم', + 'كانونی یەکەم', + ]; + e.defineLocale('ku', { + months: r, + monthsShort: r, + weekdays: 'یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysShort: 'یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌'.split( + '_' + ), + weekdaysMin: 'ی_د_س_چ_پ_ه_ش'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + meridiemParse: /ئێواره‌|به‌یانی/, + isPM: function (e) { + return /ئێواره‌/.test(e); + }, + meridiem: function (e, t, n) { + return e < 12 ? 'به‌یانی' : 'ئێواره‌'; + }, + calendar: { + sameDay: '[ئه‌مرۆ كاتژمێر] LT', + nextDay: '[به‌یانی كاتژمێر] LT', + nextWeek: 'dddd [كاتژمێر] LT', + lastDay: '[دوێنێ كاتژمێر] LT', + lastWeek: 'dddd [كاتژمێر] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'له‌ %s', + past: '%s', + s: 'چه‌ند چركه‌یه‌ك', + ss: 'چركه‌ %d', + m: 'یه‌ك خوله‌ك', + mm: '%d خوله‌ك', + h: 'یه‌ك كاتژمێر', + hh: '%d كاتژمێر', + d: 'یه‌ك ڕۆژ', + dd: '%d ڕۆژ', + M: 'یه‌ك مانگ', + MM: '%d مانگ', + y: 'یه‌ك ساڵ', + yy: '%d ساڵ', + }, + preparse: function (e) { + return e + .replace(/[١٢٣٤٥٦٧٨٩٠]/g, function (e) { + return n[e]; + }) + .replace(/،/g, ','); + }, + postformat: function (e) { + return e + .replace(/\d/g, function (e) { + return t[e]; + }) + .replace(/,/g, '،'); + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 0: '-чү', + 1: '-чи', + 2: '-чи', + 3: '-чү', + 4: '-чү', + 5: '-чи', + 6: '-чы', + 7: '-чи', + 8: '-чи', + 9: '-чу', + 10: '-чу', + 20: '-чы', + 30: '-чу', + 40: '-чы', + 50: '-чү', + 60: '-чы', + 70: '-чи', + 80: '-чи', + 90: '-чу', + 100: '-чү', + }; + e.defineLocale('ky', { + months: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + monthsShort: 'янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби'.split( + '_' + ), + weekdaysShort: 'Жек_Дүй_Шей_Шар_Бей_Жум_Ише'.split('_'), + weekdaysMin: 'Жк_Дй_Шй_Шр_Бй_Жм_Иш'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Бүгүн саат] LT', + nextDay: '[Эртең саат] LT', + nextWeek: 'dddd [саат] LT', + lastDay: '[Кечээ саат] LT', + lastWeek: '[Өткөн аптанын] dddd [күнү] [саат] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ичинде', + past: '%s мурун', + s: 'бирнече секунд', + ss: '%d секунд', + m: 'бир мүнөт', + mm: '%d мүнөт', + h: 'бир саат', + hh: '%d саат', + d: 'бир күн', + dd: '%d күн', + M: 'бир ай', + MM: '%d ай', + y: 'бир жыл', + yy: '%d жыл', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(чи|чы|чү|чу)/, + ordinal: function (e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + m: ['eng Minutt', 'enger Minutt'], + h: ['eng Stonn', 'enger Stonn'], + d: ['een Dag', 'engem Dag'], + M: ['ee Mount', 'engem Mount'], + y: ['ee Joer', 'engem Joer'], + }; + return t ? i[n][0] : i[n][1]; + } + function n(e) { + if (((e = parseInt(e, 10)), isNaN(e))) return !1; + if (e < 0) return !0; + if (e < 10) return 4 <= e && e <= 7; + if (e < 100) { + var t = e % 10; + return n(0 === t ? e / 10 : t); + } + if (e < 1e4) { + for (; e >= 10; ) e /= 10; + return n(e); + } + return n((e /= 1e3)); + } + e.defineLocale('lb', { + months: 'Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember'.split( + '_' + ), + monthsShort: 'Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg'.split( + '_' + ), + weekdaysShort: 'So._Mé._Dë._Më._Do._Fr._Sa.'.split('_'), + weekdaysMin: 'So_Mé_Dë_Më_Do_Fr_Sa'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm [Auer]', + LTS: 'H:mm:ss [Auer]', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm [Auer]', + LLLL: 'dddd, D. MMMM YYYY H:mm [Auer]', + }, + calendar: { + sameDay: '[Haut um] LT', + sameElse: 'L', + nextDay: '[Muer um] LT', + nextWeek: 'dddd [um] LT', + lastDay: '[Gëschter um] LT', + lastWeek: function () { + switch (this.day()) { + case 2: + case 4: + return '[Leschten] dddd [um] LT'; + default: + return '[Leschte] dddd [um] LT'; + } + }, + }, + relativeTime: { + future: function (e) { + return n(e.substr(0, e.indexOf(' '))) ? 'a ' + e : 'an ' + e; + }, + past: function (e) { + return n(e.substr(0, e.indexOf(' '))) ? 'viru ' + e : 'virun ' + e; + }, + s: 'e puer Sekonnen', + ss: '%d Sekonnen', + m: t, + mm: '%d Minutten', + h: t, + hh: '%d Stonnen', + d: t, + dd: '%d Deeg', + M: t, + MM: '%d Méint', + y: t, + yy: '%d Joer', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('lo', { + months: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + monthsShort: 'ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ'.split( + '_' + ), + weekdays: 'ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysShort: 'ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ'.split('_'), + weekdaysMin: 'ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'ວັນdddd D MMMM YYYY HH:mm', + }, + meridiemParse: /ຕອນເຊົ້າ|ຕອນແລງ/, + isPM: function (e) { + return 'ຕອນແລງ' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ຕອນເຊົ້າ' : 'ຕອນແລງ'; + }, + calendar: { + sameDay: '[ມື້ນີ້ເວລາ] LT', + nextDay: '[ມື້ອື່ນເວລາ] LT', + nextWeek: '[ວັນ]dddd[ໜ້າເວລາ] LT', + lastDay: '[ມື້ວານນີ້ເວລາ] LT', + lastWeek: '[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ອີກ %s', + past: '%sຜ່ານມາ', + s: 'ບໍ່ເທົ່າໃດວິນາທີ', + ss: '%d ວິນາທີ', + m: '1 ນາທີ', + mm: '%d ນາທີ', + h: '1 ຊົ່ວໂມງ', + hh: '%d ຊົ່ວໂມງ', + d: '1 ມື້', + dd: '%d ມື້', + M: '1 ເດືອນ', + MM: '%d ເດືອນ', + y: '1 ປີ', + yy: '%d ປີ', + }, + dayOfMonthOrdinalParse: /(ທີ່)\d{1,2}/, + ordinal: function (e) { + return 'ທີ່' + e; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + ss: 'sekundė_sekundžių_sekundes', + m: 'minutė_minutės_minutę', + mm: 'minutės_minučių_minutes', + h: 'valanda_valandos_valandą', + hh: 'valandos_valandų_valandas', + d: 'diena_dienos_dieną', + dd: 'dienos_dienų_dienas', + M: 'mėnuo_mėnesio_mėnesį', + MM: 'mėnesiai_mėnesių_mėnesius', + y: 'metai_metų_metus', + yy: 'metai_metų_metus', + }; + function n(e, t, n, r) { + return t ? i(n)[0] : r ? i(n)[1] : i(n)[2]; + } + function r(e) { + return e % 10 == 0 || (e > 10 && e < 20); + } + function i(e) { + return t[e].split('_'); + } + function o(e, t, o, s) { + var a = e + ' '; + return 1 === e + ? a + n(0, t, o[0], s) + : t + ? a + (r(e) ? i(o)[1] : i(o)[0]) + : s + ? a + i(o)[1] + : a + (r(e) ? i(o)[1] : i(o)[2]); + } + e.defineLocale('lt', { + months: { + format: 'sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio'.split( + '_' + ), + standalone: 'sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis'.split( + '_' + ), + isFormat: /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/, + }, + monthsShort: 'sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd'.split( + '_' + ), + weekdays: { + format: 'sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį'.split( + '_' + ), + standalone: 'sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis'.split( + '_' + ), + isFormat: /dddd HH:mm/, + }, + weekdaysShort: 'Sek_Pir_Ant_Tre_Ket_Pen_Šeš'.split('_'), + weekdaysMin: 'S_P_A_T_K_Pn_Š'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY [m.] MMMM D [d.]', + LLL: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + LLLL: 'YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]', + l: 'YYYY-MM-DD', + ll: 'YYYY [m.] MMMM D [d.]', + lll: 'YYYY [m.] MMMM D [d.], HH:mm [val.]', + llll: 'YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]', + }, + calendar: { + sameDay: '[Šiandien] LT', + nextDay: '[Rytoj] LT', + nextWeek: 'dddd LT', + lastDay: '[Vakar] LT', + lastWeek: '[Praėjusį] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: 'po %s', + past: 'prieš %s', + s: function (e, t, n, r) { + return t + ? 'kelios sekundės' + : r + ? 'kelių sekundžių' + : 'kelias sekundes'; + }, + ss: o, + m: n, + mm: o, + h: n, + hh: o, + d: n, + dd: o, + M: n, + MM: o, + y: n, + yy: o, + }, + dayOfMonthOrdinalParse: /\d{1,2}-oji/, + ordinal: function (e) { + return e + '-oji'; + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'), + m: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'), + h: 'stundas_stundām_stunda_stundas'.split('_'), + hh: 'stundas_stundām_stunda_stundas'.split('_'), + d: 'dienas_dienām_diena_dienas'.split('_'), + dd: 'dienas_dienām_diena_dienas'.split('_'), + M: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + MM: 'mēneša_mēnešiem_mēnesis_mēneši'.split('_'), + y: 'gada_gadiem_gads_gadi'.split('_'), + yy: 'gada_gadiem_gads_gadi'.split('_'), + }; + function n(e, t, n) { + return n + ? t % 10 == 1 && t % 100 != 11 + ? e[2] + : e[3] + : t % 10 == 1 && t % 100 != 11 + ? e[0] + : e[1]; + } + function r(e, r, i) { + return e + ' ' + n(t[i], e, r); + } + function i(e, r, i) { + return n(t[i], e, r); + } + e.defineLocale('lv', { + months: 'janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena'.split( + '_' + ), + weekdaysShort: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysMin: 'Sv_P_O_T_C_Pk_S'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY.', + LL: 'YYYY. [gada] D. MMMM', + LLL: 'YYYY. [gada] D. MMMM, HH:mm', + LLLL: 'YYYY. [gada] D. MMMM, dddd, HH:mm', + }, + calendar: { + sameDay: '[Šodien pulksten] LT', + nextDay: '[Rīt pulksten] LT', + nextWeek: 'dddd [pulksten] LT', + lastDay: '[Vakar pulksten] LT', + lastWeek: '[Pagājušā] dddd [pulksten] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'pēc %s', + past: 'pirms %s', + s: function (e, t) { + return t ? 'dažas sekundes' : 'dažām sekundēm'; + }, + ss: r, + m: i, + mm: r, + h: i, + hh: r, + d: i, + dd: r, + M: i, + MM: r, + y: i, + yy: r, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + words: { + ss: ['sekund', 'sekunda', 'sekundi'], + m: ['jedan minut', 'jednog minuta'], + mm: ['minut', 'minuta', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mjesec', 'mjeseca', 'mjeseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function (e, n, r) { + var i = t.words[r]; + return 1 === r.length + ? n + ? i[0] + : i[1] + : e + ' ' + t.correctGrammaticalCase(e, i); + }, + }; + e.defineLocale('me', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sri._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sjutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedjelju] [u] LT'; + case 3: + return '[u] [srijedu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + return [ + '[prošle] [nedjelje] [u] LT', + '[prošlog] [ponedjeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srijede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ][this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'prije %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mjesec', + MM: t.translate, + y: 'godinu', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('mi', { + months: 'Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea'.split( + '_' + ), + monthsShort: 'Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki'.split( + '_' + ), + monthsRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i, + monthsShortStrictRegex: /(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i, + weekdays: 'Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei'.split('_'), + weekdaysShort: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + weekdaysMin: 'Ta_Ma_Tū_We_Tāi_Pa_Hā'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [i] HH:mm', + LLLL: 'dddd, D MMMM YYYY [i] HH:mm', + }, + calendar: { + sameDay: '[i teie mahana, i] LT', + nextDay: '[apopo i] LT', + nextWeek: 'dddd [i] LT', + lastDay: '[inanahi i] LT', + lastWeek: 'dddd [whakamutunga i] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'i roto i %s', + past: '%s i mua', + s: 'te hēkona ruarua', + ss: '%d hēkona', + m: 'he meneti', + mm: '%d meneti', + h: 'te haora', + hh: '%d haora', + d: 'he ra', + dd: '%d ra', + M: 'he marama', + MM: '%d marama', + y: 'he tau', + yy: '%d tau', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('mk', { + months: 'јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември'.split( + '_' + ), + monthsShort: 'јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек'.split( + '_' + ), + weekdays: 'недела_понеделник_вторник_среда_четврток_петок_сабота'.split( + '_' + ), + weekdaysShort: 'нед_пон_вто_сре_чет_пет_саб'.split('_'), + weekdaysMin: 'нe_пo_вт_ср_че_пе_сa'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'D.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[Денес во] LT', + nextDay: '[Утре во] LT', + nextWeek: '[Во] dddd [во] LT', + lastDay: '[Вчера во] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 6: + return '[Изминатата] dddd [во] LT'; + case 1: + case 2: + case 4: + case 5: + return '[Изминатиот] dddd [во] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'после %s', + past: 'пред %s', + s: 'неколку секунди', + ss: '%d секунди', + m: 'минута', + mm: '%d минути', + h: 'час', + hh: '%d часа', + d: 'ден', + dd: '%d дена', + M: 'месец', + MM: '%d месеци', + y: 'година', + yy: '%d години', + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/, + ordinal: function (e) { + var t = e % 10, + n = e % 100; + return 0 === e + ? e + '-ев' + : 0 === n + ? e + '-ен' + : n > 10 && n < 20 + ? e + '-ти' + : 1 === t + ? e + '-ви' + : 2 === t + ? e + '-ри' + : 7 === t || 8 === t + ? e + '-ми' + : e + '-ти'; + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ml', { + months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( + '_' + ), + monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( + '_' + ), + weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split('_'), + weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split('_'), + longDateFormat: { + LT: 'A h:mm -നു', + LTS: 'A h:mm:ss -നു', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm -നു', + LLLL: 'dddd, D MMMM YYYY, A h:mm -നു', + }, + calendar: { + sameDay: '[ഇന്ന്] LT', + nextDay: '[നാളെ] LT', + nextWeek: 'dddd, LT', + lastDay: '[ഇന്നലെ] LT', + lastWeek: '[കഴിഞ്ഞ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s കഴിഞ്ഞ്', + past: '%s മുൻപ്', + s: 'അൽപ നിമിഷങ്ങൾ', + ss: '%d സെക്കൻഡ്', + m: 'ഒരു മിനിറ്റ്', + mm: '%d മിനിറ്റ്', + h: 'ഒരു മണിക്കൂർ', + hh: '%d മണിക്കൂർ', + d: 'ഒരു ദിവസം', + dd: '%d ദിവസം', + M: 'ഒരു മാസം', + MM: '%d മാസം', + y: 'ഒരു വർഷം', + yy: '%d വർഷം', + }, + meridiemParse: /രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + ('രാത്രി' === t && e >= 4) || + 'ഉച്ച കഴിഞ്ഞ്' === t || + 'വൈകുന്നേരം' === t + ? e + 12 + : e + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'രാത്രി' + : e < 12 + ? 'രാവിലെ' + : e < 17 + ? 'ഉച്ച കഴിഞ്ഞ്' + : e < 20 + ? 'വൈകുന്നേരം' + : 'രാത്രി'; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + switch (n) { + case 's': + return t ? 'хэдхэн секунд' : 'хэдхэн секундын'; + case 'ss': + return e + (t ? ' секунд' : ' секундын'); + case 'm': + case 'mm': + return e + (t ? ' минут' : ' минутын'); + case 'h': + case 'hh': + return e + (t ? ' цаг' : ' цагийн'); + case 'd': + case 'dd': + return e + (t ? ' өдөр' : ' өдрийн'); + case 'M': + case 'MM': + return e + (t ? ' сар' : ' сарын'); + case 'y': + case 'yy': + return e + (t ? ' жил' : ' жилийн'); + default: + return e; + } + } + e.defineLocale('mn', { + months: 'Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар'.split( + '_' + ), + monthsShort: '1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба'.split('_'), + weekdaysShort: 'Ням_Дав_Мяг_Лха_Пүр_Баа_Бям'.split('_'), + weekdaysMin: 'Ня_Да_Мя_Лх_Пү_Ба_Бя'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY оны MMMMын D', + LLL: 'YYYY оны MMMMын D HH:mm', + LLLL: 'dddd, YYYY оны MMMMын D HH:mm', + }, + meridiemParse: /ҮӨ|ҮХ/i, + isPM: function (e) { + return 'ҮХ' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ҮӨ' : 'ҮХ'; + }, + calendar: { + sameDay: '[Өнөөдөр] LT', + nextDay: '[Маргааш] LT', + nextWeek: '[Ирэх] dddd LT', + lastDay: '[Өчигдөр] LT', + lastWeek: '[Өнгөрсөн] dddd LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s дараа', + past: '%s өмнө', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2} өдөр/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + ' өдөр'; + default: + return e; + } + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; + function r(e, t, n, r) { + var i = ''; + if (t) + switch (n) { + case 's': + i = 'काही सेकंद'; + break; + case 'ss': + i = '%d सेकंद'; + break; + case 'm': + i = 'एक मिनिट'; + break; + case 'mm': + i = '%d मिनिटे'; + break; + case 'h': + i = 'एक तास'; + break; + case 'hh': + i = '%d तास'; + break; + case 'd': + i = 'एक दिवस'; + break; + case 'dd': + i = '%d दिवस'; + break; + case 'M': + i = 'एक महिना'; + break; + case 'MM': + i = '%d महिने'; + break; + case 'y': + i = 'एक वर्ष'; + break; + case 'yy': + i = '%d वर्षे'; + } + else + switch (n) { + case 's': + i = 'काही सेकंदां'; + break; + case 'ss': + i = '%d सेकंदां'; + break; + case 'm': + i = 'एका मिनिटा'; + break; + case 'mm': + i = '%d मिनिटां'; + break; + case 'h': + i = 'एका तासा'; + break; + case 'hh': + i = '%d तासां'; + break; + case 'd': + i = 'एका दिवसा'; + break; + case 'dd': + i = '%d दिवसां'; + break; + case 'M': + i = 'एका महिन्या'; + break; + case 'MM': + i = '%d महिन्यां'; + break; + case 'y': + i = 'एका वर्षा'; + break; + case 'yy': + i = '%d वर्षां'; + } + return i.replace(/%d/i, e); + } + e.defineLocale('mr', { + months: 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split( + '_' + ), + monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार'.split( + '_' + ), + weekdaysShort: 'रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि'.split('_'), + weekdaysMin: 'र_सो_मं_बु_गु_शु_श'.split('_'), + longDateFormat: { + LT: 'A h:mm वाजता', + LTS: 'A h:mm:ss वाजता', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm वाजता', + LLLL: 'dddd, D MMMM YYYY, A h:mm वाजता', + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[उद्या] LT', + nextWeek: 'dddd, LT', + lastDay: '[काल] LT', + lastWeek: '[मागील] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमध्ये', + past: '%sपूर्वी', + s: r, + ss: r, + m: r, + mm: r, + h: r, + hh: r, + d: r, + dd: r, + M: r, + MM: r, + y: r, + yy: r, + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /रात्री|सकाळी|दुपारी|सायंकाळी/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'रात्री' === t + ? e < 4 + ? e + : e + 12 + : 'सकाळी' === t + ? e + : 'दुपारी' === t + ? e >= 10 + ? e + : e + 12 + : 'सायंकाळी' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'रात्री' + : e < 10 + ? 'सकाळी' + : e < 17 + ? 'दुपारी' + : e < 20 + ? 'सायंकाळी' + : 'रात्री'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ms', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ms-my', { + months: 'Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis'.split( + '_' + ), + weekdays: 'Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu'.split('_'), + weekdaysShort: 'Ahd_Isn_Sel_Rab_Kha_Jum_Sab'.split('_'), + weekdaysMin: 'Ah_Is_Sl_Rb_Km_Jm_Sb'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [pukul] HH.mm', + LLLL: 'dddd, D MMMM YYYY [pukul] HH.mm', + }, + meridiemParse: /pagi|tengahari|petang|malam/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'pagi' === t + ? e + : 'tengahari' === t + ? e >= 11 + ? e + : e + 12 + : 'petang' === t || 'malam' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 11 + ? 'pagi' + : e < 15 + ? 'tengahari' + : e < 19 + ? 'petang' + : 'malam'; + }, + calendar: { + sameDay: '[Hari ini pukul] LT', + nextDay: '[Esok pukul] LT', + nextWeek: 'dddd [pukul] LT', + lastDay: '[Kelmarin pukul] LT', + lastWeek: 'dddd [lepas pukul] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dalam %s', + past: '%s yang lepas', + s: 'beberapa saat', + ss: '%d saat', + m: 'seminit', + mm: '%d minit', + h: 'sejam', + hh: '%d jam', + d: 'sehari', + dd: '%d hari', + M: 'sebulan', + MM: '%d bulan', + y: 'setahun', + yy: '%d tahun', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('mt', { + months: 'Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru'.split( + '_' + ), + monthsShort: 'Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ'.split( + '_' + ), + weekdays: 'Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt'.split( + '_' + ), + weekdaysShort: 'Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib'.split('_'), + weekdaysMin: 'Ħa_Tn_Tl_Er_Ħa_Ġi_Si'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Illum fil-]LT', + nextDay: '[Għada fil-]LT', + nextWeek: 'dddd [fil-]LT', + lastDay: '[Il-bieraħ fil-]LT', + lastWeek: 'dddd [li għadda] [fil-]LT', + sameElse: 'L', + }, + relativeTime: { + future: 'f’ %s', + past: '%s ilu', + s: 'ftit sekondi', + ss: '%d sekondi', + m: 'minuta', + mm: '%d minuti', + h: 'siegħa', + hh: '%d siegħat', + d: 'ġurnata', + dd: '%d ġranet', + M: 'xahar', + MM: '%d xhur', + y: 'sena', + yy: '%d sni', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '၁', + 2: '၂', + 3: '၃', + 4: '၄', + 5: '၅', + 6: '၆', + 7: '၇', + 8: '၈', + 9: '၉', + 0: '၀', + }, + n = { + '၁': '1', + '၂': '2', + '၃': '3', + '၄': '4', + '၅': '5', + '၆': '6', + '၇': '7', + '၈': '8', + '၉': '9', + '၀': '0', + }; + e.defineLocale('my', { + months: 'ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ'.split( + '_' + ), + monthsShort: 'ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ'.split( + '_' + ), + weekdays: 'တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ'.split( + '_' + ), + weekdaysShort: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + weekdaysMin: 'နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ယနေ.] LT [မှာ]', + nextDay: '[မနက်ဖြန်] LT [မှာ]', + nextWeek: 'dddd LT [မှာ]', + lastDay: '[မနေ.က] LT [မှာ]', + lastWeek: '[ပြီးခဲ့သော] dddd LT [မှာ]', + sameElse: 'L', + }, + relativeTime: { + future: 'လာမည့် %s မှာ', + past: 'လွန်ခဲ့သော %s က', + s: 'စက္ကန်.အနည်းငယ်', + ss: '%d စက္ကန့်', + m: 'တစ်မိနစ်', + mm: '%d မိနစ်', + h: 'တစ်နာရီ', + hh: '%d နာရီ', + d: 'တစ်ရက်', + dd: '%d ရက်', + M: 'တစ်လ', + MM: '%d လ', + y: 'တစ်နှစ်', + yy: '%d နှစ်', + }, + preparse: function (e) { + return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('nb', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split( + '_' + ), + weekdaysShort: 'sø._ma._ti._on._to._fr._lø.'.split('_'), + weekdaysMin: 'sø_ma_ti_on_to_fr_lø'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[i dag kl.] LT', + nextDay: '[i morgen kl.] LT', + nextWeek: 'dddd [kl.] LT', + lastDay: '[i går kl.] LT', + lastWeek: '[forrige] dddd [kl.] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s siden', + s: 'noen sekunder', + ss: '%d sekunder', + m: 'ett minutt', + mm: '%d minutter', + h: 'en time', + hh: '%d timer', + d: 'en dag', + dd: '%d dager', + M: 'en måned', + MM: '%d måneder', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '१', + 2: '२', + 3: '३', + 4: '४', + 5: '५', + 6: '६', + 7: '७', + 8: '८', + 9: '९', + 0: '०', + }, + n = { + '१': '1', + '२': '2', + '३': '3', + '४': '4', + '५': '5', + '६': '6', + '७': '7', + '८': '8', + '९': '9', + '०': '0', + }; + e.defineLocale('ne', { + months: 'जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर'.split( + '_' + ), + monthsShort: 'जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार'.split( + '_' + ), + weekdaysShort: 'आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.'.split('_'), + weekdaysMin: 'आ._सो._मं._बु._बि._शु._श.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'Aको h:mm बजे', + LTS: 'Aको h:mm:ss बजे', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, Aको h:mm बजे', + LLLL: 'dddd, D MMMM YYYY, Aको h:mm बजे', + }, + preparse: function (e) { + return e.replace(/[१२३४५६७८९०]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /राति|बिहान|दिउँसो|साँझ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'राति' === t + ? e < 4 + ? e + : e + 12 + : 'बिहान' === t + ? e + : 'दिउँसो' === t + ? e >= 10 + ? e + : e + 12 + : 'साँझ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 3 + ? 'राति' + : e < 12 + ? 'बिहान' + : e < 16 + ? 'दिउँसो' + : e < 20 + ? 'साँझ' + : 'राति'; + }, + calendar: { + sameDay: '[आज] LT', + nextDay: '[भोलि] LT', + nextWeek: '[आउँदो] dddd[,] LT', + lastDay: '[हिजो] LT', + lastWeek: '[गएको] dddd[,] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%sमा', + past: '%s अगाडि', + s: 'केही क्षण', + ss: '%d सेकेण्ड', + m: 'एक मिनेट', + mm: '%d मिनेट', + h: 'एक घण्टा', + hh: '%d घण्टा', + d: 'एक दिन', + dd: '%d दिन', + M: 'एक महिना', + MM: '%d महिना', + y: 'एक बर्ष', + yy: '%d बर्ष', + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + r = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + i = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + e.defineLocale('nl', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD-MM-YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split( + '_' + ), + n = 'jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'), + r = [ + /^jan/i, + /^feb/i, + /^maart|mrt.?$/i, + /^apr/i, + /^mei$/i, + /^jun[i.]?$/i, + /^jul[i.]?$/i, + /^aug/i, + /^sep/i, + /^okt/i, + /^nov/i, + /^dec/i, + ], + i = /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i; + e.defineLocale('nl-be', { + months: 'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split( + '_' + ), + monthsShort: function (e, r) { + return e ? (/-MMM-/.test(r) ? n[e.month()] : t[e.month()]) : t; + }, + monthsRegex: i, + monthsShortRegex: i, + monthsStrictRegex: /^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i, + monthsShortStrictRegex: /^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i, + monthsParse: r, + longMonthsParse: r, + shortMonthsParse: r, + weekdays: 'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split( + '_' + ), + weekdaysShort: 'zo._ma._di._wo._do._vr._za.'.split('_'), + weekdaysMin: 'zo_ma_di_wo_do_vr_za'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[vandaag om] LT', + nextDay: '[morgen om] LT', + nextWeek: 'dddd [om] LT', + lastDay: '[gisteren om] LT', + lastWeek: '[afgelopen] dddd [om] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'over %s', + past: '%s geleden', + s: 'een paar seconden', + ss: '%d seconden', + m: 'één minuut', + mm: '%d minuten', + h: 'één uur', + hh: '%d uur', + d: 'één dag', + dd: '%d dagen', + M: 'één maand', + MM: '%d maanden', + y: 'één jaar', + yy: '%d jaar', + }, + dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/, + ordinal: function (e) { + return e + (1 === e || 8 === e || e >= 20 ? 'ste' : 'de'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('nn', { + months: 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split( + '_' + ), + weekdays: 'sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag'.split( + '_' + ), + weekdaysShort: 'sun_mån_tys_ons_tor_fre_lau'.split('_'), + weekdaysMin: 'su_må_ty_on_to_fr_lø'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY [kl.] H:mm', + LLLL: 'dddd D. MMMM YYYY [kl.] HH:mm', + }, + calendar: { + sameDay: '[I dag klokka] LT', + nextDay: '[I morgon klokka] LT', + nextWeek: 'dddd [klokka] LT', + lastDay: '[I går klokka] LT', + lastWeek: '[Føregåande] dddd [klokka] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: '%s sidan', + s: 'nokre sekund', + ss: '%d sekund', + m: 'eit minutt', + mm: '%d minutt', + h: 'ein time', + hh: '%d timar', + d: 'ein dag', + dd: '%d dagar', + M: 'ein månad', + MM: '%d månader', + y: 'eit år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '੧', + 2: '੨', + 3: '੩', + 4: '੪', + 5: '੫', + 6: '੬', + 7: '੭', + 8: '੮', + 9: '੯', + 0: '੦', + }, + n = { + '੧': '1', + '੨': '2', + '੩': '3', + '੪': '4', + '੫': '5', + '੬': '6', + '੭': '7', + '੮': '8', + '੯': '9', + '੦': '0', + }; + e.defineLocale('pa-in', { + months: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + monthsShort: 'ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ'.split( + '_' + ), + weekdays: 'ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ'.split( + '_' + ), + weekdaysShort: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + weekdaysMin: 'ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ'.split('_'), + longDateFormat: { + LT: 'A h:mm ਵਜੇ', + LTS: 'A h:mm:ss ਵਜੇ', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm ਵਜੇ', + LLLL: 'dddd, D MMMM YYYY, A h:mm ਵਜੇ', + }, + calendar: { + sameDay: '[ਅਜ] LT', + nextDay: '[ਕਲ] LT', + nextWeek: '[ਅਗਲਾ] dddd, LT', + lastDay: '[ਕਲ] LT', + lastWeek: '[ਪਿਛਲੇ] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s ਵਿੱਚ', + past: '%s ਪਿਛਲੇ', + s: 'ਕੁਝ ਸਕਿੰਟ', + ss: '%d ਸਕਿੰਟ', + m: 'ਇਕ ਮਿੰਟ', + mm: '%d ਮਿੰਟ', + h: 'ਇੱਕ ਘੰਟਾ', + hh: '%d ਘੰਟੇ', + d: 'ਇੱਕ ਦਿਨ', + dd: '%d ਦਿਨ', + M: 'ਇੱਕ ਮਹੀਨਾ', + MM: '%d ਮਹੀਨੇ', + y: 'ਇੱਕ ਸਾਲ', + yy: '%d ਸਾਲ', + }, + preparse: function (e) { + return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ਰਾਤ' === t + ? e < 4 + ? e + : e + 12 + : 'ਸਵੇਰ' === t + ? e + : 'ਦੁਪਹਿਰ' === t + ? e >= 10 + ? e + : e + 12 + : 'ਸ਼ਾਮ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'ਰਾਤ' + : e < 10 + ? 'ਸਵੇਰ' + : e < 17 + ? 'ਦੁਪਹਿਰ' + : e < 20 + ? 'ਸ਼ਾਮ' + : 'ਰਾਤ'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień'.split( + '_' + ), + n = 'stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia'.split( + '_' + ); + function r(e) { + return e % 10 < 5 && e % 10 > 1 && ~~(e / 10) % 10 != 1; + } + function i(e, t, n) { + var i = e + ' '; + switch (n) { + case 'ss': + return i + (r(e) ? 'sekundy' : 'sekund'); + case 'm': + return t ? 'minuta' : 'minutę'; + case 'mm': + return i + (r(e) ? 'minuty' : 'minut'); + case 'h': + return t ? 'godzina' : 'godzinę'; + case 'hh': + return i + (r(e) ? 'godziny' : 'godzin'); + case 'MM': + return i + (r(e) ? 'miesiące' : 'miesięcy'); + case 'yy': + return i + (r(e) ? 'lata' : 'lat'); + } + } + e.defineLocale('pl', { + months: function (e, r) { + return e + ? '' === r + ? '(' + n[e.month()] + '|' + t[e.month()] + ')' + : /D MMMM/.test(r) + ? n[e.month()] + : t[e.month()] + : t; + }, + monthsShort: 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split( + '_' + ), + weekdays: 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split( + '_' + ), + weekdaysShort: 'ndz_pon_wt_śr_czw_pt_sob'.split('_'), + weekdaysMin: 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Dziś o] LT', + nextDay: '[Jutro o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[W niedzielę o] LT'; + case 2: + return '[We wtorek o] LT'; + case 3: + return '[W środę o] LT'; + case 6: + return '[W sobotę o] LT'; + default: + return '[W] dddd [o] LT'; + } + }, + lastDay: '[Wczoraj o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[W zeszłą niedzielę o] LT'; + case 3: + return '[W zeszłą środę o] LT'; + case 6: + return '[W zeszłą sobotę o] LT'; + default: + return '[W zeszły] dddd [o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: '%s temu', + s: 'kilka sekund', + ss: i, + m: i, + mm: i, + h: i, + hh: i, + d: '1 dzień', + dd: '%d dni', + M: 'miesiąc', + MM: i, + y: 'rok', + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('pt', { + months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT'; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('pt-br', { + months: 'Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado'.split( + '_' + ), + weekdaysShort: 'Dom_Seg_Ter_Qua_Qui_Sex_Sáb'.split('_'), + weekdaysMin: 'Do_2ª_3ª_4ª_5ª_6ª_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D [de] MMMM [de] YYYY', + LLL: 'D [de] MMMM [de] YYYY [às] HH:mm', + LLLL: 'dddd, D [de] MMMM [de] YYYY [às] HH:mm', + }, + calendar: { + sameDay: '[Hoje às] LT', + nextDay: '[Amanhã às] LT', + nextWeek: 'dddd [às] LT', + lastDay: '[Ontem às] LT', + lastWeek: function () { + return 0 === this.day() || 6 === this.day() + ? '[Último] dddd [às] LT' + : '[Última] dddd [às] LT'; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'em %s', + past: 'há %s', + s: 'poucos segundos', + ss: '%d segundos', + m: 'um minuto', + mm: '%d minutos', + h: 'uma hora', + hh: '%d horas', + d: 'um dia', + dd: '%d dias', + M: 'um mês', + MM: '%d meses', + y: 'um ano', + yy: '%d anos', + }, + dayOfMonthOrdinalParse: /\d{1,2}º/, + ordinal: '%dº', + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r = ' '; + return ( + (e % 100 >= 20 || (e >= 100 && e % 100 == 0)) && (r = ' de '), + e + + r + + { + ss: 'secunde', + mm: 'minute', + hh: 'ore', + dd: 'zile', + MM: 'luni', + yy: 'ani', + }[n] + ); + } + e.defineLocale('ro', { + months: 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split( + '_' + ), + monthsShort: 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'), + weekdaysShort: 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'), + weekdaysMin: 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY H:mm', + LLLL: 'dddd, D MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[azi la] LT', + nextDay: '[mâine la] LT', + nextWeek: 'dddd [la] LT', + lastDay: '[ieri la] LT', + lastWeek: '[fosta] dddd [la] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'peste %s', + past: '%s în urmă', + s: 'câteva secunde', + ss: t, + m: 'un minut', + mm: t, + h: 'o oră', + hh: t, + d: 'o zi', + dd: t, + M: 'o lună', + MM: t, + y: 'un an', + yy: t, + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r, i; + return 'm' === n + ? t + ? 'минута' + : 'минуту' + : e + + ' ' + + ((r = +e), + (i = { + ss: t ? 'секунда_секунды_секунд' : 'секунду_секунды_секунд', + mm: t ? 'минута_минуты_минут' : 'минуту_минуты_минут', + hh: 'час_часа_часов', + dd: 'день_дня_дней', + MM: 'месяц_месяца_месяцев', + yy: 'год_года_лет', + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? i[0] + : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) + ? i[1] + : i[2]); + } + var n = [ + /^янв/i, + /^фев/i, + /^мар/i, + /^апр/i, + /^ма[йя]/i, + /^июн/i, + /^июл/i, + /^авг/i, + /^сен/i, + /^окт/i, + /^ноя/i, + /^дек/i, + ]; + e.defineLocale('ru', { + months: { + format: 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split( + '_' + ), + standalone: 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split( + '_' + ), + }, + monthsShort: { + format: 'янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.'.split( + '_' + ), + standalone: 'янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.'.split( + '_' + ), + }, + weekdays: { + standalone: 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split( + '_' + ), + format: 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split( + '_' + ), + isFormat: /\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/, + }, + weekdaysShort: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'вс_пн_вт_ср_чт_пт_сб'.split('_'), + monthsParse: n, + longMonthsParse: n, + shortMonthsParse: n, + monthsRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsShortRegex: /^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i, + monthsStrictRegex: /^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i, + monthsShortStrictRegex: /^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY г.', + LLL: 'D MMMM YYYY г., H:mm', + LLLL: 'dddd, D MMMM YYYY г., H:mm', + }, + calendar: { + sameDay: '[Сегодня, в] LT', + nextDay: '[Завтра, в] LT', + lastDay: '[Вчера, в] LT', + nextWeek: function (e) { + if (e.week() === this.week()) + return 2 === this.day() + ? '[Во] dddd, [в] LT' + : '[В] dddd, [в] LT'; + switch (this.day()) { + case 0: + return '[В следующее] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В следующий] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В следующую] dddd, [в] LT'; + } + }, + lastWeek: function (e) { + if (e.week() === this.week()) + return 2 === this.day() + ? '[Во] dddd, [в] LT' + : '[В] dddd, [в] LT'; + switch (this.day()) { + case 0: + return '[В прошлое] dddd, [в] LT'; + case 1: + case 2: + case 4: + return '[В прошлый] dddd, [в] LT'; + case 3: + case 5: + case 6: + return '[В прошлую] dddd, [в] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'через %s', + past: '%s назад', + s: 'несколько секунд', + ss: t, + m: t, + mm: t, + h: 'час', + hh: t, + d: 'день', + dd: t, + M: 'месяц', + MM: t, + y: 'год', + yy: t, + }, + meridiemParse: /ночи|утра|дня|вечера/i, + isPM: function (e) { + return /^(дня|вечера)$/.test(e); + }, + meridiem: function (e, t, n) { + return e < 4 ? 'ночи' : e < 12 ? 'утра' : e < 17 ? 'дня' : 'вечера'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го|я)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + return e + '-й'; + case 'D': + return e + '-го'; + case 'w': + case 'W': + return e + '-я'; + default: + return e; + } + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = [ + 'جنوري', + 'فيبروري', + 'مارچ', + 'اپريل', + 'مئي', + 'جون', + 'جولاءِ', + 'آگسٽ', + 'سيپٽمبر', + 'آڪٽوبر', + 'نومبر', + 'ڊسمبر', + ], + n = ['آچر', 'سومر', 'اڱارو', 'اربع', 'خميس', 'جمع', 'ڇنڇر']; + e.defineLocale('sd', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: n, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (e) { + return 'شام' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'صبح' : 'شام'; + }, + calendar: { + sameDay: '[اڄ] LT', + nextDay: '[سڀاڻي] LT', + nextWeek: 'dddd [اڳين هفتي تي] LT', + lastDay: '[ڪالهه] LT', + lastWeek: '[گزريل هفتي] dddd [تي] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s پوء', + past: '%s اڳ', + s: 'چند سيڪنڊ', + ss: '%d سيڪنڊ', + m: 'هڪ منٽ', + mm: '%d منٽ', + h: 'هڪ ڪلاڪ', + hh: '%d ڪلاڪ', + d: 'هڪ ڏينهن', + dd: '%d ڏينهن', + M: 'هڪ مهينو', + MM: '%d مهينا', + y: 'هڪ سال', + yy: '%d سال', + }, + preparse: function (e) { + return e.replace(/،/g, ','); + }, + postformat: function (e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('se', { + months: 'ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu'.split( + '_' + ), + monthsShort: 'ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov'.split( + '_' + ), + weekdays: 'sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat'.split( + '_' + ), + weekdaysShort: 'sotn_vuos_maŋ_gask_duor_bear_láv'.split('_'), + weekdaysMin: 's_v_m_g_d_b_L'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'MMMM D. [b.] YYYY', + LLL: 'MMMM D. [b.] YYYY [ti.] HH:mm', + LLLL: 'dddd, MMMM D. [b.] YYYY [ti.] HH:mm', + }, + calendar: { + sameDay: '[otne ti] LT', + nextDay: '[ihttin ti] LT', + nextWeek: 'dddd [ti] LT', + lastDay: '[ikte ti] LT', + lastWeek: '[ovddit] dddd [ti] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s geažes', + past: 'maŋit %s', + s: 'moadde sekunddat', + ss: '%d sekunddat', + m: 'okta minuhta', + mm: '%d minuhtat', + h: 'okta diimmu', + hh: '%d diimmut', + d: 'okta beaivi', + dd: '%d beaivvit', + M: 'okta mánnu', + MM: '%d mánut', + y: 'okta jahki', + yy: '%d jagit', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('si', { + months: 'ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්'.split( + '_' + ), + monthsShort: 'ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ'.split( + '_' + ), + weekdays: 'ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා'.split( + '_' + ), + weekdaysShort: 'ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන'.split('_'), + weekdaysMin: 'ඉ_ස_අ_බ_බ්‍ර_සි_සෙ'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'a h:mm', + LTS: 'a h:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY MMMM D', + LLL: 'YYYY MMMM D, a h:mm', + LLLL: 'YYYY MMMM D [වැනි] dddd, a h:mm:ss', + }, + calendar: { + sameDay: '[අද] LT[ට]', + nextDay: '[හෙට] LT[ට]', + nextWeek: 'dddd LT[ට]', + lastDay: '[ඊයේ] LT[ට]', + lastWeek: '[පසුගිය] dddd LT[ට]', + sameElse: 'L', + }, + relativeTime: { + future: '%sකින්', + past: '%sකට පෙර', + s: 'තත්පර කිහිපය', + ss: 'තත්පර %d', + m: 'මිනිත්තුව', + mm: 'මිනිත්තු %d', + h: 'පැය', + hh: 'පැය %d', + d: 'දිනය', + dd: 'දින %d', + M: 'මාසය', + MM: 'මාස %d', + y: 'වසර', + yy: 'වසර %d', + }, + dayOfMonthOrdinalParse: /\d{1,2} වැනි/, + ordinal: function (e) { + return e + ' වැනි'; + }, + meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./, + isPM: function (e) { + return 'ප.ව.' === e || 'පස් වරු' === e; + }, + meridiem: function (e, t, n) { + return e > 11 ? (n ? 'ප.ව.' : 'පස් වරු') : n ? 'පෙ.ව.' : 'පෙර වරු'; + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'január_február_marec_apríl_máj_jún_júl_august_september_október_november_december'.split( + '_' + ), + n = 'jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec'.split('_'); + function r(e) { + return e > 1 && e < 5; + } + function i(e, t, n, i) { + var o = e + ' '; + switch (n) { + case 's': + return t || i ? 'pár sekúnd' : 'pár sekundami'; + case 'ss': + return t || i ? o + (r(e) ? 'sekundy' : 'sekúnd') : o + 'sekundami'; + case 'm': + return t ? 'minúta' : i ? 'minútu' : 'minútou'; + case 'mm': + return t || i ? o + (r(e) ? 'minúty' : 'minút') : o + 'minútami'; + case 'h': + return t ? 'hodina' : i ? 'hodinu' : 'hodinou'; + case 'hh': + return t || i ? o + (r(e) ? 'hodiny' : 'hodín') : o + 'hodinami'; + case 'd': + return t || i ? 'deň' : 'dňom'; + case 'dd': + return t || i ? o + (r(e) ? 'dni' : 'dní') : o + 'dňami'; + case 'M': + return t || i ? 'mesiac' : 'mesiacom'; + case 'MM': + return t || i + ? o + (r(e) ? 'mesiace' : 'mesiacov') + : o + 'mesiacmi'; + case 'y': + return t || i ? 'rok' : 'rokom'; + case 'yy': + return t || i ? o + (r(e) ? 'roky' : 'rokov') : o + 'rokmi'; + } + } + e.defineLocale('sk', { + months: t, + monthsShort: n, + weekdays: 'nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota'.split( + '_' + ), + weekdaysShort: 'ne_po_ut_st_št_pi_so'.split('_'), + weekdaysMin: 'ne_po_ut_st_št_pi_so'.split('_'), + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[dnes o] LT', + nextDay: '[zajtra o] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v nedeľu o] LT'; + case 1: + case 2: + return '[v] dddd [o] LT'; + case 3: + return '[v stredu o] LT'; + case 4: + return '[vo štvrtok o] LT'; + case 5: + return '[v piatok o] LT'; + case 6: + return '[v sobotu o] LT'; + } + }, + lastDay: '[včera o] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[minulú nedeľu o] LT'; + case 1: + case 2: + return '[minulý] dddd [o] LT'; + case 3: + return '[minulú stredu o] LT'; + case 4: + case 5: + return '[minulý] dddd [o] LT'; + case 6: + return '[minulú sobotu o] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pred %s', + s: i, + ss: i, + m: i, + mm: i, + h: i, + hh: i, + d: i, + dd: i, + M: i, + MM: i, + y: i, + yy: i, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = e + ' '; + switch (n) { + case 's': + return t || r ? 'nekaj sekund' : 'nekaj sekundami'; + case 'ss': + return (i += + 1 === e + ? t + ? 'sekundo' + : 'sekundi' + : 2 === e + ? t || r + ? 'sekundi' + : 'sekundah' + : e < 5 + ? t || r + ? 'sekunde' + : 'sekundah' + : 'sekund'); + case 'm': + return t ? 'ena minuta' : 'eno minuto'; + case 'mm': + return (i += + 1 === e + ? t + ? 'minuta' + : 'minuto' + : 2 === e + ? t || r + ? 'minuti' + : 'minutama' + : e < 5 + ? t || r + ? 'minute' + : 'minutami' + : t || r + ? 'minut' + : 'minutami'); + case 'h': + return t ? 'ena ura' : 'eno uro'; + case 'hh': + return (i += + 1 === e + ? t + ? 'ura' + : 'uro' + : 2 === e + ? t || r + ? 'uri' + : 'urama' + : e < 5 + ? t || r + ? 'ure' + : 'urami' + : t || r + ? 'ur' + : 'urami'); + case 'd': + return t || r ? 'en dan' : 'enim dnem'; + case 'dd': + return (i += + 1 === e + ? t || r + ? 'dan' + : 'dnem' + : 2 === e + ? t || r + ? 'dni' + : 'dnevoma' + : t || r + ? 'dni' + : 'dnevi'); + case 'M': + return t || r ? 'en mesec' : 'enim mesecem'; + case 'MM': + return (i += + 1 === e + ? t || r + ? 'mesec' + : 'mesecem' + : 2 === e + ? t || r + ? 'meseca' + : 'mesecema' + : e < 5 + ? t || r + ? 'mesece' + : 'meseci' + : t || r + ? 'mesecev' + : 'meseci'); + case 'y': + return t || r ? 'eno leto' : 'enim letom'; + case 'yy': + return (i += + 1 === e + ? t || r + ? 'leto' + : 'letom' + : 2 === e + ? t || r + ? 'leti' + : 'letoma' + : e < 5 + ? t || r + ? 'leta' + : 'leti' + : t || r + ? 'let' + : 'leti'); + } + } + e.defineLocale('sl', { + months: 'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split( + '_' + ), + weekdaysShort: 'ned._pon._tor._sre._čet._pet._sob.'.split('_'), + weekdaysMin: 'ne_po_to_sr_če_pe_so'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danes ob] LT', + nextDay: '[jutri ob] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[v] [nedeljo] [ob] LT'; + case 3: + return '[v] [sredo] [ob] LT'; + case 6: + return '[v] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[v] dddd [ob] LT'; + } + }, + lastDay: '[včeraj ob] LT', + lastWeek: function () { + switch (this.day()) { + case 0: + return '[prejšnjo] [nedeljo] [ob] LT'; + case 3: + return '[prejšnjo] [sredo] [ob] LT'; + case 6: + return '[prejšnjo] [soboto] [ob] LT'; + case 1: + case 2: + case 4: + case 5: + return '[prejšnji] dddd [ob] LT'; + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'čez %s', + past: 'pred %s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('sq', { + months: 'Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor'.split( + '_' + ), + monthsShort: 'Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj'.split( + '_' + ), + weekdays: 'E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë'.split( + '_' + ), + weekdaysShort: 'Die_Hën_Mar_Mër_Enj_Pre_Sht'.split('_'), + weekdaysMin: 'D_H_Ma_Më_E_P_Sh'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /PD|MD/, + isPM: function (e) { + return 'M' === e.charAt(0); + }, + meridiem: function (e, t, n) { + return e < 12 ? 'PD' : 'MD'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Sot në] LT', + nextDay: '[Nesër në] LT', + nextWeek: 'dddd [në] LT', + lastDay: '[Dje në] LT', + lastWeek: 'dddd [e kaluar në] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'në %s', + past: '%s më parë', + s: 'disa sekonda', + ss: '%d sekonda', + m: 'një minutë', + mm: '%d minuta', + h: 'një orë', + hh: '%d orë', + d: 'një ditë', + dd: '%d ditë', + M: 'një muaj', + MM: '%d muaj', + y: 'një vit', + yy: '%d vite', + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + words: { + ss: ['sekunda', 'sekunde', 'sekundi'], + m: ['jedan minut', 'jedne minute'], + mm: ['minut', 'minute', 'minuta'], + h: ['jedan sat', 'jednog sata'], + hh: ['sat', 'sata', 'sati'], + dd: ['dan', 'dana', 'dana'], + MM: ['mesec', 'meseca', 'meseci'], + yy: ['godina', 'godine', 'godina'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function (e, n, r) { + var i = t.words[r]; + return 1 === r.length + ? n + ? i[0] + : i[1] + : e + ' ' + t.correctGrammaticalCase(e, i); + }, + }; + e.defineLocale('sr', { + months: 'januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar'.split( + '_' + ), + monthsShort: 'jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota'.split( + '_' + ), + weekdaysShort: 'ned._pon._uto._sre._čet._pet._sub.'.split('_'), + weekdaysMin: 'ne_po_ut_sr_če_pe_su'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[danas u] LT', + nextDay: '[sutra u] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[u] [nedelju] [u] LT'; + case 3: + return '[u] [sredu] [u] LT'; + case 6: + return '[u] [subotu] [u] LT'; + case 1: + case 2: + case 4: + case 5: + return '[u] dddd [u] LT'; + } + }, + lastDay: '[juče u] LT', + lastWeek: function () { + return [ + '[prošle] [nedelje] [u] LT', + '[prošlog] [ponedeljka] [u] LT', + '[prošlog] [utorka] [u] LT', + '[prošle] [srede] [u] LT', + '[prošlog] [četvrtka] [u] LT', + '[prošlog] [petka] [u] LT', + '[prošle] [subote] [u] LT', + ][this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'za %s', + past: 'pre %s', + s: 'nekoliko sekundi', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'dan', + dd: t.translate, + M: 'mesec', + MM: t.translate, + y: 'godinu', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + words: { + ss: ['секунда', 'секунде', 'секунди'], + m: ['један минут', 'једне минуте'], + mm: ['минут', 'минуте', 'минута'], + h: ['један сат', 'једног сата'], + hh: ['сат', 'сата', 'сати'], + dd: ['дан', 'дана', 'дана'], + MM: ['месец', 'месеца', 'месеци'], + yy: ['година', 'године', 'година'], + }, + correctGrammaticalCase: function (e, t) { + return 1 === e ? t[0] : e >= 2 && e <= 4 ? t[1] : t[2]; + }, + translate: function (e, n, r) { + var i = t.words[r]; + return 1 === r.length + ? n + ? i[0] + : i[1] + : e + ' ' + t.correctGrammaticalCase(e, i); + }, + }; + e.defineLocale('sr-cyrl', { + months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split( + '_' + ), + monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'недеља_понедељак_уторак_среда_четвртак_петак_субота'.split( + '_' + ), + weekdaysShort: 'нед._пон._уто._сре._чет._пет._суб.'.split('_'), + weekdaysMin: 'не_по_ут_ср_че_пе_су'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM YYYY', + LLL: 'D. MMMM YYYY H:mm', + LLLL: 'dddd, D. MMMM YYYY H:mm', + }, + calendar: { + sameDay: '[данас у] LT', + nextDay: '[сутра у] LT', + nextWeek: function () { + switch (this.day()) { + case 0: + return '[у] [недељу] [у] LT'; + case 3: + return '[у] [среду] [у] LT'; + case 6: + return '[у] [суботу] [у] LT'; + case 1: + case 2: + case 4: + case 5: + return '[у] dddd [у] LT'; + } + }, + lastDay: '[јуче у] LT', + lastWeek: function () { + return [ + '[прошле] [недеље] [у] LT', + '[прошлог] [понедељка] [у] LT', + '[прошлог] [уторка] [у] LT', + '[прошле] [среде] [у] LT', + '[прошлог] [четвртка] [у] LT', + '[прошлог] [петка] [у] LT', + '[прошле] [суботе] [у] LT', + ][this.day()]; + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: 'пре %s', + s: 'неколико секунди', + ss: t.translate, + m: t.translate, + mm: t.translate, + h: t.translate, + hh: t.translate, + d: 'дан', + dd: t.translate, + M: 'месец', + MM: t.translate, + y: 'годину', + yy: t.translate, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ss', { + months: "Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split( + '_' + ), + monthsShort: 'Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo'.split( + '_' + ), + weekdays: 'Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo'.split( + '_' + ), + weekdaysShort: 'Lis_Umb_Lsb_Les_Lsi_Lsh_Umg'.split('_'), + weekdaysMin: 'Li_Us_Lb_Lt_Ls_Lh_Ug'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Namuhla nga] LT', + nextDay: '[Kusasa nga] LT', + nextWeek: 'dddd [nga] LT', + lastDay: '[Itolo nga] LT', + lastWeek: 'dddd [leliphelile] [nga] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'nga %s', + past: 'wenteka nga %s', + s: 'emizuzwana lomcane', + ss: '%d mzuzwana', + m: 'umzuzu', + mm: '%d emizuzu', + h: 'lihora', + hh: '%d emahora', + d: 'lilanga', + dd: '%d emalanga', + M: 'inyanga', + MM: '%d tinyanga', + y: 'umnyaka', + yy: '%d iminyaka', + }, + meridiemParse: /ekuseni|emini|entsambama|ebusuku/, + meridiem: function (e, t, n) { + return e < 11 + ? 'ekuseni' + : e < 15 + ? 'emini' + : e < 19 + ? 'entsambama' + : 'ebusuku'; + }, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'ekuseni' === t + ? e + : 'emini' === t + ? e >= 11 + ? e + : e + 12 + : 'entsambama' === t || 'ebusuku' === t + ? 0 === e + ? 0 + : e + 12 + : void 0 + ); + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: '%d', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('sv', { + months: 'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split( + '_' + ), + monthsShort: 'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split( + '_' + ), + weekdays: 'söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag'.split( + '_' + ), + weekdaysShort: 'sön_mån_tis_ons_tor_fre_lör'.split('_'), + weekdaysMin: 'sö_må_ti_on_to_fr_lö'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY [kl.] HH:mm', + LLLL: 'dddd D MMMM YYYY [kl.] HH:mm', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Idag] LT', + nextDay: '[Imorgon] LT', + lastDay: '[Igår] LT', + nextWeek: '[På] dddd LT', + lastWeek: '[I] dddd[s] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'om %s', + past: 'för %s sedan', + s: 'några sekunder', + ss: '%d sekunder', + m: 'en minut', + mm: '%d minuter', + h: 'en timme', + hh: '%d timmar', + d: 'en dag', + dd: '%d dagar', + M: 'en månad', + MM: '%d månader', + y: 'ett år', + yy: '%d år', + }, + dayOfMonthOrdinalParse: /\d{1,2}(e|a)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'e' + : 1 === t + ? 'a' + : 2 === t + ? 'a' + : 'e') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('sw', { + months: 'Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba'.split( + '_' + ), + monthsShort: 'Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des'.split( + '_' + ), + weekdays: 'Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi'.split( + '_' + ), + weekdaysShort: 'Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos'.split('_'), + weekdaysMin: 'J2_J3_J4_J5_Al_Ij_J1'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[leo saa] LT', + nextDay: '[kesho saa] LT', + nextWeek: '[wiki ijayo] dddd [saat] LT', + lastDay: '[jana] LT', + lastWeek: '[wiki iliyopita] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s baadaye', + past: 'tokea %s', + s: 'hivi punde', + ss: 'sekunde %d', + m: 'dakika moja', + mm: 'dakika %d', + h: 'saa limoja', + hh: 'masaa %d', + d: 'siku moja', + dd: 'masiku %d', + M: 'mwezi mmoja', + MM: 'miezi %d', + y: 'mwaka mmoja', + yy: 'miaka %d', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: '௧', + 2: '௨', + 3: '௩', + 4: '௪', + 5: '௫', + 6: '௬', + 7: '௭', + 8: '௮', + 9: '௯', + 0: '௦', + }, + n = { + '௧': '1', + '௨': '2', + '௩': '3', + '௪': '4', + '௫': '5', + '௬': '6', + '௭': '7', + '௮': '8', + '௯': '9', + '௦': '0', + }; + e.defineLocale('ta', { + months: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + monthsShort: 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split( + '_' + ), + weekdays: 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split( + '_' + ), + weekdaysShort: 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split( + '_' + ), + weekdaysMin: 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, HH:mm', + LLLL: 'dddd, D MMMM YYYY, HH:mm', + }, + calendar: { + sameDay: '[இன்று] LT', + nextDay: '[நாளை] LT', + nextWeek: 'dddd, LT', + lastDay: '[நேற்று] LT', + lastWeek: '[கடந்த வாரம்] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s இல்', + past: '%s முன்', + s: 'ஒரு சில விநாடிகள்', + ss: '%d விநாடிகள்', + m: 'ஒரு நிமிடம்', + mm: '%d நிமிடங்கள்', + h: 'ஒரு மணி நேரம்', + hh: '%d மணி நேரம்', + d: 'ஒரு நாள்', + dd: '%d நாட்கள்', + M: 'ஒரு மாதம்', + MM: '%d மாதங்கள்', + y: 'ஒரு வருடம்', + yy: '%d ஆண்டுகள்', + }, + dayOfMonthOrdinalParse: /\d{1,2}வது/, + ordinal: function (e) { + return e + 'வது'; + }, + preparse: function (e) { + return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (e) { + return n[e]; + }); + }, + postformat: function (e) { + return e.replace(/\d/g, function (e) { + return t[e]; + }); + }, + meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/, + meridiem: function (e, t, n) { + return e < 2 + ? ' யாமம்' + : e < 6 + ? ' வைகறை' + : e < 10 + ? ' காலை' + : e < 14 + ? ' நண்பகல்' + : e < 18 + ? ' எற்பாடு' + : e < 22 + ? ' மாலை' + : ' யாமம்'; + }, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'யாமம்' === t + ? e < 2 + ? e + : e + 12 + : 'வைகறை' === t || 'காலை' === t + ? e + : 'நண்பகல்' === t && e >= 10 + ? e + : e + 12 + ); + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('te', { + months: 'జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్'.split( + '_' + ), + monthsShort: 'జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం'.split( + '_' + ), + weekdaysShort: 'ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని'.split('_'), + weekdaysMin: 'ఆ_సో_మం_బు_గు_శు_శ'.split('_'), + longDateFormat: { + LT: 'A h:mm', + LTS: 'A h:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY, A h:mm', + LLLL: 'dddd, D MMMM YYYY, A h:mm', + }, + calendar: { + sameDay: '[నేడు] LT', + nextDay: '[రేపు] LT', + nextWeek: 'dddd, LT', + lastDay: '[నిన్న] LT', + lastWeek: '[గత] dddd, LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s లో', + past: '%s క్రితం', + s: 'కొన్ని క్షణాలు', + ss: '%d సెకన్లు', + m: 'ఒక నిమిషం', + mm: '%d నిమిషాలు', + h: 'ఒక గంట', + hh: '%d గంటలు', + d: 'ఒక రోజు', + dd: '%d రోజులు', + M: 'ఒక నెల', + MM: '%d నెలలు', + y: 'ఒక సంవత్సరం', + yy: '%d సంవత్సరాలు', + }, + dayOfMonthOrdinalParse: /\d{1,2}వ/, + ordinal: '%dవ', + meridiemParse: /రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'రాత్రి' === t + ? e < 4 + ? e + : e + 12 + : 'ఉదయం' === t + ? e + : 'మధ్యాహ్నం' === t + ? e >= 10 + ? e + : e + 12 + : 'సాయంత్రం' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'రాత్రి' + : e < 10 + ? 'ఉదయం' + : e < 17 + ? 'మధ్యాహ్నం' + : e < 20 + ? 'సాయంత్రం' + : 'రాత్రి'; + }, + week: { dow: 0, doy: 6 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('tet', { + months: 'Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez'.split( + '_' + ), + weekdays: 'Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu'.split('_'), + weekdaysShort: 'Dom_Seg_Ters_Kua_Kint_Sest_Sab'.split('_'), + weekdaysMin: 'Do_Seg_Te_Ku_Ki_Ses_Sa'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Ohin iha] LT', + nextDay: '[Aban iha] LT', + nextWeek: 'dddd [iha] LT', + lastDay: '[Horiseik iha] LT', + lastWeek: 'dddd [semana kotuk] [iha] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'iha %s', + past: '%s liuba', + s: 'minutu balun', + ss: 'minutu %d', + m: 'minutu ida', + mm: 'minutu %d', + h: 'oras ida', + hh: 'oras %d', + d: 'loron ida', + dd: 'loron %d', + M: 'fulan ida', + MM: 'fulan %d', + y: 'tinan ida', + yy: 'tinan %d', + }, + dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 0: '-ум', + 1: '-ум', + 2: '-юм', + 3: '-юм', + 4: '-ум', + 5: '-ум', + 6: '-ум', + 7: '-ум', + 8: '-ум', + 9: '-ум', + 10: '-ум', + 12: '-ум', + 13: '-ум', + 20: '-ум', + 30: '-юм', + 40: '-ум', + 50: '-ум', + 60: '-ум', + 70: '-ум', + 80: '-ум', + 90: '-ум', + 100: '-ум', + }; + e.defineLocale('tg', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе'.split( + '_' + ), + weekdaysShort: 'яшб_дшб_сшб_чшб_пшб_ҷум_шнб'.split('_'), + weekdaysMin: 'яш_дш_сш_чш_пш_ҷм_шб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Имрӯз соати] LT', + nextDay: '[Пагоҳ соати] LT', + lastDay: '[Дирӯз соати] LT', + nextWeek: 'dddd[и] [ҳафтаи оянда соати] LT', + lastWeek: 'dddd[и] [ҳафтаи гузашта соати] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'баъди %s', + past: '%s пеш', + s: 'якчанд сония', + m: 'як дақиқа', + mm: '%d дақиқа', + h: 'як соат', + hh: '%d соат', + d: 'як рӯз', + dd: '%d рӯз', + M: 'як моҳ', + MM: '%d моҳ', + y: 'як сол', + yy: '%d сол', + }, + meridiemParse: /шаб|субҳ|рӯз|бегоҳ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'шаб' === t + ? e < 4 + ? e + : e + 12 + : 'субҳ' === t + ? e + : 'рӯз' === t + ? e >= 11 + ? e + : e + 12 + : 'бегоҳ' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + return e < 4 + ? 'шаб' + : e < 11 + ? 'субҳ' + : e < 16 + ? 'рӯз' + : e < 19 + ? 'бегоҳ' + : 'шаб'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(ум|юм)/, + ordinal: function (e) { + return e + (t[e] || t[e % 10] || t[e >= 100 ? 100 : null]); + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('th', { + months: 'มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม'.split( + '_' + ), + monthsShort: 'ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์'.split('_'), + weekdaysShort: 'อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์'.split('_'), + weekdaysMin: 'อา._จ._อ._พ._พฤ._ศ._ส.'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'H:mm', + LTS: 'H:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY เวลา H:mm', + LLLL: 'วันddddที่ D MMMM YYYY เวลา H:mm', + }, + meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/, + isPM: function (e) { + return 'หลังเที่ยง' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'ก่อนเที่ยง' : 'หลังเที่ยง'; + }, + calendar: { + sameDay: '[วันนี้ เวลา] LT', + nextDay: '[พรุ่งนี้ เวลา] LT', + nextWeek: 'dddd[หน้า เวลา] LT', + lastDay: '[เมื่อวานนี้ เวลา] LT', + lastWeek: '[วัน]dddd[ที่แล้ว เวลา] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'อีก %s', + past: '%sที่แล้ว', + s: 'ไม่กี่วินาที', + ss: '%d วินาที', + m: '1 นาที', + mm: '%d นาที', + h: '1 ชั่วโมง', + hh: '%d ชั่วโมง', + d: '1 วัน', + dd: '%d วัน', + M: '1 เดือน', + MM: '%d เดือน', + y: '1 ปี', + yy: '%d ปี', + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('tl-ph', { + months: 'Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre'.split( + '_' + ), + monthsShort: 'Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis'.split( + '_' + ), + weekdays: 'Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado'.split( + '_' + ), + weekdaysShort: 'Lin_Lun_Mar_Miy_Huw_Biy_Sab'.split('_'), + weekdaysMin: 'Li_Lu_Ma_Mi_Hu_Bi_Sab'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'MM/D/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY HH:mm', + LLLL: 'dddd, MMMM DD, YYYY HH:mm', + }, + calendar: { + sameDay: 'LT [ngayong araw]', + nextDay: '[Bukas ng] LT', + nextWeek: 'LT [sa susunod na] dddd', + lastDay: 'LT [kahapon]', + lastWeek: 'LT [noong nakaraang] dddd', + sameElse: 'L', + }, + relativeTime: { + future: 'sa loob ng %s', + past: '%s ang nakalipas', + s: 'ilang segundo', + ss: '%d segundo', + m: 'isang minuto', + mm: '%d minuto', + h: 'isang oras', + hh: '%d oras', + d: 'isang araw', + dd: '%d araw', + M: 'isang buwan', + MM: '%d buwan', + y: 'isang taon', + yy: '%d taon', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (e) { + return e; + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = 'pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut'.split('_'); + function n(e, n, r, i) { + var o = (function (e) { + var n = Math.floor((e % 1e3) / 100), + r = Math.floor((e % 100) / 10), + i = e % 10, + o = ''; + return ( + n > 0 && (o += t[n] + 'vatlh'), + r > 0 && (o += ('' !== o ? ' ' : '') + t[r] + 'maH'), + i > 0 && (o += ('' !== o ? ' ' : '') + t[i]), + '' === o ? 'pagh' : o + ); + })(e); + switch (r) { + case 'ss': + return o + ' lup'; + case 'mm': + return o + ' tup'; + case 'hh': + return o + ' rep'; + case 'dd': + return o + ' jaj'; + case 'MM': + return o + ' jar'; + case 'yy': + return o + ' DIS'; + } + } + e.defineLocale('tlh', { + months: 'tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’'.split( + '_' + ), + monthsShort: 'jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysShort: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + weekdaysMin: 'lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[DaHjaj] LT', + nextDay: '[wa’leS] LT', + nextWeek: 'LLL', + lastDay: '[wa’Hu’] LT', + lastWeek: 'LLL', + sameElse: 'L', + }, + relativeTime: { + future: function (e) { + var t = e; + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'leS' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'waQ' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'nem' + : t + ' pIq'); + }, + past: function (e) { + var t = e; + return (t = + -1 !== e.indexOf('jaj') + ? t.slice(0, -3) + 'Hu’' + : -1 !== e.indexOf('jar') + ? t.slice(0, -3) + 'wen' + : -1 !== e.indexOf('DIS') + ? t.slice(0, -3) + 'ben' + : t + ' ret'); + }, + s: 'puS lup', + ss: n, + m: 'wa’ tup', + mm: n, + h: 'wa’ rep', + hh: n, + d: 'wa’ jaj', + dd: n, + M: 'wa’ jar', + MM: n, + y: 'wa’ DIS', + yy: n, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = { + 1: "'inci", + 5: "'inci", + 8: "'inci", + 70: "'inci", + 80: "'inci", + 2: "'nci", + 7: "'nci", + 20: "'nci", + 50: "'nci", + 3: "'üncü", + 4: "'üncü", + 100: "'üncü", + 6: "'ncı", + 9: "'uncu", + 10: "'uncu", + 30: "'uncu", + 60: "'ıncı", + 90: "'ıncı", + }; + e.defineLocale('tr', { + months: 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split( + '_' + ), + monthsShort: 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split( + '_' + ), + weekdays: 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split( + '_' + ), + weekdaysShort: 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'), + weekdaysMin: 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[bugün saat] LT', + nextDay: '[yarın saat] LT', + nextWeek: '[gelecek] dddd [saat] LT', + lastDay: '[dün] LT', + lastWeek: '[geçen] dddd [saat] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s sonra', + past: '%s önce', + s: 'birkaç saniye', + ss: '%d saniye', + m: 'bir dakika', + mm: '%d dakika', + h: 'bir saat', + hh: '%d saat', + d: 'bir gün', + dd: '%d gün', + M: 'bir ay', + MM: '%d ay', + y: 'bir yıl', + yy: '%d yıl', + }, + ordinal: function (e, n) { + switch (n) { + case 'd': + case 'D': + case 'Do': + case 'DD': + return e; + default: + if (0 === e) return e + "'ıncı"; + var r = e % 10; + return e + (t[r] || t[(e % 100) - r] || t[e >= 100 ? 100 : null]); + } + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n, r) { + var i = { + s: ['viensas secunds', "'iensas secunds"], + ss: [e + ' secunds', e + ' secunds'], + m: ["'n míut", "'iens míut"], + mm: [e + ' míuts', e + ' míuts'], + h: ["'n þora", "'iensa þora"], + hh: [e + ' þoras', e + ' þoras'], + d: ["'n ziua", "'iensa ziua"], + dd: [e + ' ziuas', e + ' ziuas'], + M: ["'n mes", "'iens mes"], + MM: [e + ' mesen', e + ' mesen'], + y: ["'n ar", "'iens ar"], + yy: [e + ' ars', e + ' ars'], + }; + return r ? i[n][0] : t ? i[n][0] : i[n][1]; + } + e.defineLocale('tzl', { + months: 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split( + '_' + ), + monthsShort: 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split( + '_' + ), + weekdays: 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split( + '_' + ), + weekdaysShort: 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), + weekdaysMin: 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), + longDateFormat: { + LT: 'HH.mm', + LTS: 'HH.mm.ss', + L: 'DD.MM.YYYY', + LL: 'D. MMMM [dallas] YYYY', + LLL: 'D. MMMM [dallas] YYYY HH.mm', + LLLL: 'dddd, [li] D. MMMM [dallas] YYYY HH.mm', + }, + meridiemParse: /d\'o|d\'a/i, + isPM: function (e) { + return "d'o" === e.toLowerCase(); + }, + meridiem: function (e, t, n) { + return e > 11 ? (n ? "d'o" : "D'O") : n ? "d'a" : "D'A"; + }, + calendar: { + sameDay: '[oxhi à] LT', + nextDay: '[demà à] LT', + nextWeek: 'dddd [à] LT', + lastDay: '[ieiri à] LT', + lastWeek: '[sür el] dddd [lasteu à] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'osprei %s', + past: 'ja%s', + s: t, + ss: t, + m: t, + mm: t, + h: t, + hh: t, + d: t, + dd: t, + M: t, + MM: t, + y: t, + yy: t, + }, + dayOfMonthOrdinalParse: /\d{1,2}\./, + ordinal: '%d.', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('tzm', { + months: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + monthsShort: 'ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ'.split( + '_' + ), + weekdays: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split('_'), + weekdaysShort: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + weekdaysMin: 'ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[ⴰⵙⴷⵅ ⴴ] LT', + nextDay: '[ⴰⵙⴽⴰ ⴴ] LT', + nextWeek: 'dddd [ⴴ] LT', + lastDay: '[ⴰⵚⴰⵏⵜ ⴴ] LT', + lastWeek: 'dddd [ⴴ] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s', + past: 'ⵢⴰⵏ %s', + s: 'ⵉⵎⵉⴽ', + ss: '%d ⵉⵎⵉⴽ', + m: 'ⵎⵉⵏⵓⴺ', + mm: '%d ⵎⵉⵏⵓⴺ', + h: 'ⵙⴰⵄⴰ', + hh: '%d ⵜⴰⵙⵙⴰⵄⵉⵏ', + d: 'ⴰⵙⵙ', + dd: '%d oⵙⵙⴰⵏ', + M: 'ⴰⵢoⵓⵔ', + MM: '%d ⵉⵢⵢⵉⵔⵏ', + y: 'ⴰⵙⴳⴰⵙ', + yy: '%d ⵉⵙⴳⴰⵙⵏ', + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('tzm-latn', { + months: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + monthsShort: 'innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir'.split( + '_' + ), + weekdays: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split('_'), + weekdaysShort: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + weekdaysMin: 'asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas'.split( + '_' + ), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[asdkh g] LT', + nextDay: '[aska g] LT', + nextWeek: 'dddd [g] LT', + lastDay: '[assant g] LT', + lastWeek: 'dddd [g] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'dadkh s yan %s', + past: 'yan %s', + s: 'imik', + ss: '%d imik', + m: 'minuḍ', + mm: '%d minuḍ', + h: 'saɛa', + hh: '%d tassaɛin', + d: 'ass', + dd: '%d ossan', + M: 'ayowr', + MM: '%d iyyirn', + y: 'asgas', + yy: '%d isgasn', + }, + week: { dow: 6, doy: 12 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('ug-cn', { + months: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + monthsShort: 'يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر'.split( + '_' + ), + weekdays: 'يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە'.split( + '_' + ), + weekdaysShort: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + weekdaysMin: 'يە_دۈ_سە_چا_پە_جۈ_شە'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY-MM-DD', + LL: 'YYYY-يىلىM-ئاينىڭD-كۈنى', + LLL: 'YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + LLLL: 'dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm', + }, + meridiemParse: /يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + 'يېرىم كېچە' === t || 'سەھەر' === t || 'چۈشتىن بۇرۇن' === t + ? e + : 'چۈشتىن كېيىن' === t || 'كەچ' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 + ); + }, + meridiem: function (e, t, n) { + var r = 100 * e + t; + return r < 600 + ? 'يېرىم كېچە' + : r < 900 + ? 'سەھەر' + : r < 1130 + ? 'چۈشتىن بۇرۇن' + : r < 1230 + ? 'چۈش' + : r < 1800 + ? 'چۈشتىن كېيىن' + : 'كەچ'; + }, + calendar: { + sameDay: '[بۈگۈن سائەت] LT', + nextDay: '[ئەتە سائەت] LT', + nextWeek: '[كېلەركى] dddd [سائەت] LT', + lastDay: '[تۆنۈگۈن] LT', + lastWeek: '[ئالدىنقى] dddd [سائەت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s كېيىن', + past: '%s بۇرۇن', + s: 'نەچچە سېكونت', + ss: '%d سېكونت', + m: 'بىر مىنۇت', + mm: '%d مىنۇت', + h: 'بىر سائەت', + hh: '%d سائەت', + d: 'بىر كۈن', + dd: '%d كۈن', + M: 'بىر ئاي', + MM: '%d ئاي', + y: 'بىر يىل', + yy: '%d يىل', + }, + dayOfMonthOrdinalParse: /\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '-كۈنى'; + case 'w': + case 'W': + return e + '-ھەپتە'; + default: + return e; + } + }, + preparse: function (e) { + return e.replace(/،/g, ','); + }, + postformat: function (e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + function t(e, t, n) { + var r, i; + return 'm' === n + ? t + ? 'хвилина' + : 'хвилину' + : 'h' === n + ? t + ? 'година' + : 'годину' + : e + + ' ' + + ((r = +e), + (i = { + ss: t ? 'секунда_секунди_секунд' : 'секунду_секунди_секунд', + mm: t ? 'хвилина_хвилини_хвилин' : 'хвилину_хвилини_хвилин', + hh: t ? 'година_години_годин' : 'годину_години_годин', + dd: 'день_дні_днів', + MM: 'місяць_місяці_місяців', + yy: 'рік_роки_років', + }[n].split('_')), + r % 10 == 1 && r % 100 != 11 + ? i[0] + : r % 10 >= 2 && r % 10 <= 4 && (r % 100 < 10 || r % 100 >= 20) + ? i[1] + : i[2]); + } + function n(e) { + return function () { + return e + 'о' + (11 === this.hours() ? 'б' : '') + '] LT'; + }; + } + e.defineLocale('uk', { + months: { + format: 'січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня'.split( + '_' + ), + standalone: 'січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень'.split( + '_' + ), + }, + monthsShort: 'січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд'.split( + '_' + ), + weekdays: function (e, t) { + var n = { + nominative: 'неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота'.split( + '_' + ), + accusative: 'неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу'.split( + '_' + ), + genitive: 'неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи'.split( + '_' + ), + }; + return !0 === e + ? n.nominative.slice(1, 7).concat(n.nominative.slice(0, 1)) + : e + ? n[ + /(\[[ВвУу]\]) ?dddd/.test(t) + ? 'accusative' + : /\[?(?:минулої|наступної)? ?\] ?dddd/.test(t) + ? 'genitive' + : 'nominative' + ][e.day()] + : n.nominative; + }, + weekdaysShort: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD.MM.YYYY', + LL: 'D MMMM YYYY р.', + LLL: 'D MMMM YYYY р., HH:mm', + LLLL: 'dddd, D MMMM YYYY р., HH:mm', + }, + calendar: { + sameDay: n('[Сьогодні '), + nextDay: n('[Завтра '), + lastDay: n('[Вчора '), + nextWeek: n('[У] dddd ['), + lastWeek: function () { + switch (this.day()) { + case 0: + case 3: + case 5: + case 6: + return n('[Минулої] dddd [').call(this); + case 1: + case 2: + case 4: + return n('[Минулого] dddd [').call(this); + } + }, + sameElse: 'L', + }, + relativeTime: { + future: 'за %s', + past: '%s тому', + s: 'декілька секунд', + ss: t, + m: t, + mm: t, + h: 'годину', + hh: t, + d: 'день', + dd: t, + M: 'місяць', + MM: t, + y: 'рік', + yy: t, + }, + meridiemParse: /ночі|ранку|дня|вечора/, + isPM: function (e) { + return /^(дня|вечора)$/.test(e); + }, + meridiem: function (e, t, n) { + return e < 4 ? 'ночі' : e < 12 ? 'ранку' : e < 17 ? 'дня' : 'вечора'; + }, + dayOfMonthOrdinalParse: /\d{1,2}-(й|го)/, + ordinal: function (e, t) { + switch (t) { + case 'M': + case 'd': + case 'DDD': + case 'w': + case 'W': + return e + '-й'; + case 'D': + return e + '-го'; + default: + return e; + } + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + var t = [ + 'جنوری', + 'فروری', + 'مارچ', + 'اپریل', + 'مئی', + 'جون', + 'جولائی', + 'اگست', + 'ستمبر', + 'اکتوبر', + 'نومبر', + 'دسمبر', + ], + n = ['اتوار', 'پیر', 'منگل', 'بدھ', 'جمعرات', 'جمعہ', 'ہفتہ']; + e.defineLocale('ur', { + months: t, + monthsShort: t, + weekdays: n, + weekdaysShort: n, + weekdaysMin: n, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd، D MMMM YYYY HH:mm', + }, + meridiemParse: /صبح|شام/, + isPM: function (e) { + return 'شام' === e; + }, + meridiem: function (e, t, n) { + return e < 12 ? 'صبح' : 'شام'; + }, + calendar: { + sameDay: '[آج بوقت] LT', + nextDay: '[کل بوقت] LT', + nextWeek: 'dddd [بوقت] LT', + lastDay: '[گذشتہ روز بوقت] LT', + lastWeek: '[گذشتہ] dddd [بوقت] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s بعد', + past: '%s قبل', + s: 'چند سیکنڈ', + ss: '%d سیکنڈ', + m: 'ایک منٹ', + mm: '%d منٹ', + h: 'ایک گھنٹہ', + hh: '%d گھنٹے', + d: 'ایک دن', + dd: '%d دن', + M: 'ایک ماہ', + MM: '%d ماہ', + y: 'ایک سال', + yy: '%d سال', + }, + preparse: function (e) { + return e.replace(/،/g, ','); + }, + postformat: function (e) { + return e.replace(/,/g, '،'); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('uz', { + months: 'январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр'.split( + '_' + ), + monthsShort: 'янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек'.split( + '_' + ), + weekdays: 'Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба'.split( + '_' + ), + weekdaysShort: 'Якш_Душ_Сеш_Чор_Пай_Жум_Шан'.split('_'), + weekdaysMin: 'Як_Ду_Се_Чо_Па_Жу_Ша'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Бугун соат] LT [да]', + nextDay: '[Эртага] LT [да]', + nextWeek: 'dddd [куни соат] LT [да]', + lastDay: '[Кеча соат] LT [да]', + lastWeek: '[Утган] dddd [куни соат] LT [да]', + sameElse: 'L', + }, + relativeTime: { + future: 'Якин %s ичида', + past: 'Бир неча %s олдин', + s: 'фурсат', + ss: '%d фурсат', + m: 'бир дакика', + mm: '%d дакика', + h: 'бир соат', + hh: '%d соат', + d: 'бир кун', + dd: '%d кун', + M: 'бир ой', + MM: '%d ой', + y: 'бир йил', + yy: '%d йил', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('uz-latn', { + months: 'Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr'.split( + '_' + ), + monthsShort: 'Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek'.split( + '_' + ), + weekdays: 'Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba'.split( + '_' + ), + weekdaysShort: 'Yak_Dush_Sesh_Chor_Pay_Jum_Shan'.split('_'), + weekdaysMin: 'Ya_Du_Se_Cho_Pa_Ju_Sha'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'D MMMM YYYY, dddd HH:mm', + }, + calendar: { + sameDay: '[Bugun soat] LT [da]', + nextDay: '[Ertaga] LT [da]', + nextWeek: 'dddd [kuni soat] LT [da]', + lastDay: '[Kecha soat] LT [da]', + lastWeek: "[O'tgan] dddd [kuni soat] LT [da]", + sameElse: 'L', + }, + relativeTime: { + future: 'Yaqin %s ichida', + past: 'Bir necha %s oldin', + s: 'soniya', + ss: '%d soniya', + m: 'bir daqiqa', + mm: '%d daqiqa', + h: 'bir soat', + hh: '%d soat', + d: 'bir kun', + dd: '%d kun', + M: 'bir oy', + MM: '%d oy', + y: 'bir yil', + yy: '%d yil', + }, + week: { dow: 1, doy: 7 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('vi', { + months: 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split( + '_' + ), + monthsShort: 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split( + '_' + ), + weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'), + weekdaysParseExact: !0, + meridiemParse: /sa|ch/i, + isPM: function (e) { + return /^ch$/i.test(e); + }, + meridiem: function (e, t, n) { + return e < 12 ? (n ? 'sa' : 'SA') : n ? 'ch' : 'CH'; + }, + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'DD/MM/YYYY', + LL: 'D MMMM [năm] YYYY', + LLL: 'D MMMM [năm] YYYY HH:mm', + LLLL: 'dddd, D MMMM [năm] YYYY HH:mm', + l: 'DD/M/YYYY', + ll: 'D MMM YYYY', + lll: 'D MMM YYYY HH:mm', + llll: 'ddd, D MMM YYYY HH:mm', + }, + calendar: { + sameDay: '[Hôm nay lúc] LT', + nextDay: '[Ngày mai lúc] LT', + nextWeek: 'dddd [tuần tới lúc] LT', + lastDay: '[Hôm qua lúc] LT', + lastWeek: 'dddd [tuần rồi lúc] LT', + sameElse: 'L', + }, + relativeTime: { + future: '%s tới', + past: '%s trước', + s: 'vài giây', + ss: '%d giây', + m: 'một phút', + mm: '%d phút', + h: 'một giờ', + hh: '%d giờ', + d: 'một ngày', + dd: '%d ngày', + M: 'một tháng', + MM: '%d tháng', + y: 'một năm', + yy: '%d năm', + }, + dayOfMonthOrdinalParse: /\d{1,2}/, + ordinal: function (e) { + return e; + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('x-pseudo', { + months: 'J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér'.split( + '_' + ), + monthsShort: 'J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc'.split( + '_' + ), + monthsParseExact: !0, + weekdays: 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split( + '_' + ), + weekdaysShort: 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), + weekdaysMin: 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), + weekdaysParseExact: !0, + longDateFormat: { + LT: 'HH:mm', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY HH:mm', + LLLL: 'dddd, D MMMM YYYY HH:mm', + }, + calendar: { + sameDay: '[T~ódá~ý át] LT', + nextDay: '[T~ómó~rró~w át] LT', + nextWeek: 'dddd [át] LT', + lastDay: '[Ý~ést~érdá~ý át] LT', + lastWeek: '[L~ást] dddd [át] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'í~ñ %s', + past: '%s á~gó', + s: 'á ~féw ~sécó~ñds', + ss: '%d s~écóñ~ds', + m: 'á ~míñ~úté', + mm: '%d m~íñú~tés', + h: 'á~ñ hó~úr', + hh: '%d h~óúrs', + d: 'á ~dáý', + dd: '%d d~áýs', + M: 'á ~móñ~th', + MM: '%d m~óñt~hs', + y: 'á ~ýéár', + yy: '%d ý~éárs', + }, + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 == ~~((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('yo', { + months: 'Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀'.split( + '_' + ), + monthsShort: 'Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀'.split( + '_' + ), + weekdays: 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), + weekdaysShort: 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), + weekdaysMin: 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), + longDateFormat: { + LT: 'h:mm A', + LTS: 'h:mm:ss A', + L: 'DD/MM/YYYY', + LL: 'D MMMM YYYY', + LLL: 'D MMMM YYYY h:mm A', + LLLL: 'dddd, D MMMM YYYY h:mm A', + }, + calendar: { + sameDay: '[Ònì ni] LT', + nextDay: '[Ọ̀la ni] LT', + nextWeek: "dddd [Ọsẹ̀ tón'bọ] [ni] LT", + lastDay: '[Àna ni] LT', + lastWeek: 'dddd [Ọsẹ̀ tólọ́] [ni] LT', + sameElse: 'L', + }, + relativeTime: { + future: 'ní %s', + past: '%s kọjá', + s: 'ìsẹjú aayá die', + ss: 'aayá %d', + m: 'ìsẹjú kan', + mm: 'ìsẹjú %d', + h: 'wákati kan', + hh: 'wákati %d', + d: 'ọjọ́ kan', + dd: 'ọjọ́ %d', + M: 'osù kan', + MM: 'osù %d', + y: 'ọdún kan', + yy: 'ọdún %d', + }, + dayOfMonthOrdinalParse: /ọjọ́\s\d{1,2}/, + ordinal: 'ọjọ́ %d', + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('zh-cn', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '周日_周一_周二_周三_周四_周五_周六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日Ah点mm分', + LLLL: 'YYYY年M月D日ddddAh点mm分', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '下午' === t || '晚上' === t + ? e + 12 + : e >= 11 + ? e + : e + 12 + ); + }, + meridiem: function (e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '周'; + default: + return e; + } + }, + relativeTime: { + future: '%s内', + past: '%s前', + s: '几秒', + ss: '%d 秒', + m: '1 分钟', + mm: '%d 分钟', + h: '1 小时', + hh: '%d 小时', + d: '1 天', + dd: '%d 天', + M: '1 个月', + MM: '%d 个月', + y: '1 年', + yy: '%d 年', + }, + week: { dow: 1, doy: 4 }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('zh-hk', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天]LT', + nextDay: '[明天]LT', + nextWeek: '[下]ddddLT', + lastDay: '[昨天]LT', + lastWeek: '[上]ddddLT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '週'; + default: + return e; + } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }); + })(n(0)); + }, + function (e, t, n) { + !(function (e) { + 'use strict'; + e.defineLocale('zh-tw', { + months: '一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月'.split( + '_' + ), + monthsShort: '1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月'.split( + '_' + ), + weekdays: '星期日_星期一_星期二_星期三_星期四_星期五_星期六'.split('_'), + weekdaysShort: '週日_週一_週二_週三_週四_週五_週六'.split('_'), + weekdaysMin: '日_一_二_三_四_五_六'.split('_'), + longDateFormat: { + LT: 'HH:mm', + LTS: 'HH:mm:ss', + L: 'YYYY/MM/DD', + LL: 'YYYY年M月D日', + LLL: 'YYYY年M月D日 HH:mm', + LLLL: 'YYYY年M月D日dddd HH:mm', + l: 'YYYY/M/D', + ll: 'YYYY年M月D日', + lll: 'YYYY年M月D日 HH:mm', + llll: 'YYYY年M月D日dddd HH:mm', + }, + meridiemParse: /凌晨|早上|上午|中午|下午|晚上/, + meridiemHour: function (e, t) { + return ( + 12 === e && (e = 0), + '凌晨' === t || '早上' === t || '上午' === t + ? e + : '中午' === t + ? e >= 11 + ? e + : e + 12 + : '下午' === t || '晚上' === t + ? e + 12 + : void 0 + ); + }, + meridiem: function (e, t, n) { + var r = 100 * e + t; + return r < 600 + ? '凌晨' + : r < 900 + ? '早上' + : r < 1130 + ? '上午' + : r < 1230 + ? '中午' + : r < 1800 + ? '下午' + : '晚上'; + }, + calendar: { + sameDay: '[今天] LT', + nextDay: '[明天] LT', + nextWeek: '[下]dddd LT', + lastDay: '[昨天] LT', + lastWeek: '[上]dddd LT', + sameElse: 'L', + }, + dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/, + ordinal: function (e, t) { + switch (t) { + case 'd': + case 'D': + case 'DDD': + return e + '日'; + case 'M': + return e + '月'; + case 'w': + case 'W': + return e + '週'; + default: + return e; + } + }, + relativeTime: { + future: '%s內', + past: '%s前', + s: '幾秒', + ss: '%d 秒', + m: '1 分鐘', + mm: '%d 分鐘', + h: '1 小時', + hh: '%d 小時', + d: '1 天', + dd: '%d 天', + M: '1 個月', + MM: '%d 個月', + y: '1 年', + yy: '%d 年', + }, + }); + })(n(0)); + }, + function (e, t, n) { + 'use strict'; + n.r(t); + var r = function (e, t) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + }, + i = function (e) { + var t; + return ( + 1 === e.length && + ((t = e), + (e = function (e, n) { + return r(t(e), n); + })), + { + left: function (t, n, r, i) { + for (null == r && (r = 0), null == i && (i = t.length); r < i; ) { + var o = (r + i) >>> 1; + e(t[o], n) < 0 ? (r = o + 1) : (i = o); + } + return r; + }, + right: function (t, n, r, i) { + for (null == r && (r = 0), null == i && (i = t.length); r < i; ) { + var o = (r + i) >>> 1; + e(t[o], n) > 0 ? (i = o) : (r = o + 1); + } + return r; + }, + } + ); + }; + var o = i(r), + s = o.right, + a = o.left, + u = s, + l = function (e, t) { + null == t && (t = c); + for ( + var n = 0, r = e.length - 1, i = e[0], o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = t(i, (i = e[++n])); + return o; + }; + function c(e, t) { + return [e, t]; + } + var d = function (e, t, n) { + var r, + i, + o, + s, + a = e.length, + u = t.length, + l = new Array(a * u); + for (null == n && (n = c), r = o = 0; r < a; ++r) + for (s = e[r], i = 0; i < u; ++i, ++o) l[o] = n(s, t[i]); + return l; + }, + h = function (e, t) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + f = function (e) { + return null === e ? NaN : +e; + }, + p = function (e, t) { + var n, + r, + i = e.length, + o = 0, + s = -1, + a = 0, + u = 0; + if (null == t) + for (; ++s < i; ) + isNaN((n = f(e[s]))) || (u += (r = n - a) * (n - (a += r / ++o))); + else + for (; ++s < i; ) + isNaN((n = f(t(e[s], s, e)))) || + (u += (r = n - a) * (n - (a += r / ++o))); + if (o > 1) return u / (o - 1); + }, + g = function (e, t) { + var n = p(e, t); + return n ? Math.sqrt(n) : n; + }, + m = function (e, t) { + var n, + r, + i, + o = e.length, + s = -1; + if (null == t) { + for (; ++s < o; ) + if (null != (n = e[s]) && n >= n) + for (r = i = n; ++s < o; ) + null != (n = e[s]) && (r > n && (r = n), i < n && (i = n)); + } else + for (; ++s < o; ) + if (null != (n = t(e[s], s, e)) && n >= n) + for (r = i = n; ++s < o; ) + null != (n = t(e[s], s, e)) && + (r > n && (r = n), i < n && (i = n)); + return [r, i]; + }, + _ = Array.prototype, + y = _.slice, + v = _.map, + b = function (e) { + return function () { + return e; + }; + }, + w = function (e) { + return e; + }, + C = function (e, t, n) { + (e = +e), + (t = +t), + (n = + (i = arguments.length) < 2 + ? ((t = e), (e = 0), 1) + : i < 3 + ? 1 + : +n); + for ( + var r = -1, + i = 0 | Math.max(0, Math.ceil((t - e) / n)), + o = new Array(i); + ++r < i; + + ) + o[r] = e + r * n; + return o; + }, + S = Math.sqrt(50), + x = Math.sqrt(10), + L = Math.sqrt(2), + k = function (e, t, n) { + var r, + i, + o, + s, + a = -1; + if (((n = +n), (e = +e) === (t = +t) && n > 0)) return [e]; + if ( + ((r = t < e) && ((i = e), (e = t), (t = i)), + 0 === (s = M(e, t, n)) || !isFinite(s)) + ) + return []; + if (s > 0) + for ( + e = Math.ceil(e / s), + t = Math.floor(t / s), + o = new Array((i = Math.ceil(t - e + 1))); + ++a < i; + + ) + o[a] = (e + a) * s; + else + for ( + e = Math.floor(e * s), + t = Math.ceil(t * s), + o = new Array((i = Math.ceil(e - t + 1))); + ++a < i; + + ) + o[a] = (e - a) / s; + return r && o.reverse(), o; + }; + function M(e, t, n) { + var r = (t - e) / Math.max(0, n), + i = Math.floor(Math.log(r) / Math.LN10), + o = r / Math.pow(10, i); + return i >= 0 + ? (o >= S ? 10 : o >= x ? 5 : o >= L ? 2 : 1) * Math.pow(10, i) + : -Math.pow(10, -i) / (o >= S ? 10 : o >= x ? 5 : o >= L ? 2 : 1); + } + function D(e, t, n) { + var r = Math.abs(t - e) / Math.max(0, n), + i = Math.pow(10, Math.floor(Math.log(r) / Math.LN10)), + o = r / i; + return ( + o >= S ? (i *= 10) : o >= x ? (i *= 5) : o >= L && (i *= 2), + t < e ? -i : i + ); + } + var E = function (e) { + return Math.ceil(Math.log(e.length) / Math.LN2) + 1; + }, + T = function () { + var e = w, + t = m, + n = E; + function r(r) { + var i, + o, + s = r.length, + a = new Array(s); + for (i = 0; i < s; ++i) a[i] = e(r[i], i, r); + var l = t(a), + c = l[0], + d = l[1], + h = n(a, c, d); + Array.isArray(h) || + ((h = D(c, d, h)), (h = C(Math.ceil(c / h) * h, d, h))); + for (var f = h.length; h[0] <= c; ) h.shift(), --f; + for (; h[f - 1] > d; ) h.pop(), --f; + var p, + g = new Array(f + 1); + for (i = 0; i <= f; ++i) + ((p = g[i] = []).x0 = i > 0 ? h[i - 1] : c), + (p.x1 = i < f ? h[i] : d); + for (i = 0; i < s; ++i) + c <= (o = a[i]) && o <= d && g[u(h, o, 0, f)].push(r[i]); + return g; + } + return ( + (r.value = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : b(t)), r) + : e; + }), + (r.domain = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : b([e[0], e[1]])), r) + : t; + }), + (r.thresholds = function (e) { + return arguments.length + ? ((n = + 'function' == typeof e + ? e + : Array.isArray(e) + ? b(y.call(e)) + : b(e)), + r) + : n; + }), + r + ); + }, + N = function (e, t, n) { + if ((null == n && (n = f), (r = e.length))) { + if ((t = +t) <= 0 || r < 2) return +n(e[0], 0, e); + if (t >= 1) return +n(e[r - 1], r - 1, e); + var r, + i = (r - 1) * t, + o = Math.floor(i), + s = +n(e[o], o, e); + return s + (+n(e[o + 1], o + 1, e) - s) * (i - o); + } + }, + O = function (e, t, n) { + return ( + (e = v.call(e, f).sort(r)), + Math.ceil( + (n - t) / + (2 * (N(e, 0.75) - N(e, 0.25)) * Math.pow(e.length, -1 / 3)) + ) + ); + }, + A = function (e, t, n) { + return Math.ceil((n - t) / (3.5 * g(e) * Math.pow(e.length, -1 / 3))); + }, + I = function (e, t) { + var n, + r, + i = e.length, + o = -1; + if (null == t) { + for (; ++o < i; ) + if (null != (n = e[o]) && n >= n) + for (r = n; ++o < i; ) null != (n = e[o]) && n > r && (r = n); + } else + for (; ++o < i; ) + if (null != (n = t(e[o], o, e)) && n >= n) + for (r = n; ++o < i; ) + null != (n = t(e[o], o, e)) && n > r && (r = n); + return r; + }, + P = function (e, t) { + var n, + r = e.length, + i = r, + o = -1, + s = 0; + if (null == t) for (; ++o < r; ) isNaN((n = f(e[o]))) ? --i : (s += n); + else for (; ++o < r; ) isNaN((n = f(t(e[o], o, e)))) ? --i : (s += n); + if (i) return s / i; + }, + R = function (e, t) { + var n, + i = e.length, + o = -1, + s = []; + if (null == t) for (; ++o < i; ) isNaN((n = f(e[o]))) || s.push(n); + else for (; ++o < i; ) isNaN((n = f(t(e[o], o, e)))) || s.push(n); + return N(s.sort(r), 0.5); + }, + F = function (e) { + for (var t, n, r, i = e.length, o = -1, s = 0; ++o < i; ) + s += e[o].length; + for (n = new Array(s); --i >= 0; ) + for (t = (r = e[i]).length; --t >= 0; ) n[--s] = r[t]; + return n; + }, + Y = function (e, t) { + var n, + r, + i = e.length, + o = -1; + if (null == t) { + for (; ++o < i; ) + if (null != (n = e[o]) && n >= n) + for (r = n; ++o < i; ) null != (n = e[o]) && r > n && (r = n); + } else + for (; ++o < i; ) + if (null != (n = t(e[o], o, e)) && n >= n) + for (r = n; ++o < i; ) + null != (n = t(e[o], o, e)) && r > n && (r = n); + return r; + }, + j = function (e, t) { + for (var n = t.length, r = new Array(n); n--; ) r[n] = e[t[n]]; + return r; + }, + B = function (e, t) { + if ((n = e.length)) { + var n, + i, + o = 0, + s = 0, + a = e[s]; + for (null == t && (t = r); ++o < n; ) + (t((i = e[o]), a) < 0 || 0 !== t(a, a)) && ((a = i), (s = o)); + return 0 === t(a, a) ? s : void 0; + } + }, + W = function (e, t, n) { + for ( + var r, i, o = (null == n ? e.length : n) - (t = null == t ? 0 : +t); + o; + + ) + (i = (Math.random() * o--) | 0), + (r = e[o + t]), + (e[o + t] = e[i + t]), + (e[i + t] = r); + return e; + }, + H = function (e, t) { + var n, + r = e.length, + i = -1, + o = 0; + if (null == t) for (; ++i < r; ) (n = +e[i]) && (o += n); + else for (; ++i < r; ) (n = +t(e[i], i, e)) && (o += n); + return o; + }, + V = function (e) { + if (!(i = e.length)) return []; + for (var t = -1, n = Y(e, z), r = new Array(n); ++t < n; ) + for (var i, o = -1, s = (r[t] = new Array(i)); ++o < i; ) + s[o] = e[o][t]; + return r; + }; + function z(e) { + return e.length; + } + var U = function () { + return V(arguments); + }, + q = Array.prototype.slice, + K = function (e) { + return e; + }, + G = 1, + $ = 2, + Z = 3, + X = 4, + J = 1e-6; + function Q(e) { + return 'translate(' + (e + 0.5) + ',0)'; + } + function ee(e) { + return 'translate(0,' + (e + 0.5) + ')'; + } + function te(e) { + return function (t) { + return +e(t); + }; + } + function ne(e) { + var t = Math.max(0, e.bandwidth() - 1) / 2; + return ( + e.round() && (t = Math.round(t)), + function (n) { + return +e(n) + t; + } + ); + } + function re() { + return !this.__axis; + } + function ie(e, t) { + var n = [], + r = null, + i = null, + o = 6, + s = 6, + a = 3, + u = e === G || e === X ? -1 : 1, + l = e === X || e === $ ? 'x' : 'y', + c = e === G || e === Z ? Q : ee; + function d(d) { + var h = null == r ? (t.ticks ? t.ticks.apply(t, n) : t.domain()) : r, + f = null == i ? (t.tickFormat ? t.tickFormat.apply(t, n) : K) : i, + p = Math.max(o, 0) + a, + g = t.range(), + m = +g[0] + 0.5, + _ = +g[g.length - 1] + 0.5, + y = (t.bandwidth ? ne : te)(t.copy()), + v = d.selection ? d.selection() : d, + b = v.selectAll('.domain').data([null]), + w = v.selectAll('.tick').data(h, t).order(), + C = w.exit(), + S = w.enter().append('g').attr('class', 'tick'), + x = w.select('line'), + L = w.select('text'); + (b = b.merge( + b + .enter() + .insert('path', '.tick') + .attr('class', 'domain') + .attr('stroke', 'currentColor') + )), + (w = w.merge(S)), + (x = x.merge( + S.append('line') + .attr('stroke', 'currentColor') + .attr(l + '2', u * o) + )), + (L = L.merge( + S.append('text') + .attr('fill', 'currentColor') + .attr(l, u * p) + .attr('dy', e === G ? '0em' : e === Z ? '0.71em' : '0.32em') + )), + d !== v && + ((b = b.transition(d)), + (w = w.transition(d)), + (x = x.transition(d)), + (L = L.transition(d)), + (C = C.transition(d) + .attr('opacity', J) + .attr('transform', function (e) { + return isFinite((e = y(e))) + ? c(e) + : this.getAttribute('transform'); + })), + S.attr('opacity', J).attr('transform', function (e) { + var t = this.parentNode.__axis; + return c(t && isFinite((t = t(e))) ? t : y(e)); + })), + C.remove(), + b.attr( + 'd', + e === X || e == $ + ? s + ? 'M' + u * s + ',' + m + 'H0.5V' + _ + 'H' + u * s + : 'M0.5,' + m + 'V' + _ + : s + ? 'M' + m + ',' + u * s + 'V0.5H' + _ + 'V' + u * s + : 'M' + m + ',0.5H' + _ + ), + w.attr('opacity', 1).attr('transform', function (e) { + return c(y(e)); + }), + x.attr(l + '2', u * o), + L.attr(l, u * p).text(f), + v + .filter(re) + .attr('fill', 'none') + .attr('font-size', 10) + .attr('font-family', 'sans-serif') + .attr( + 'text-anchor', + e === $ ? 'start' : e === X ? 'end' : 'middle' + ), + v.each(function () { + this.__axis = y; + }); + } + return ( + (d.scale = function (e) { + return arguments.length ? ((t = e), d) : t; + }), + (d.ticks = function () { + return (n = q.call(arguments)), d; + }), + (d.tickArguments = function (e) { + return arguments.length + ? ((n = null == e ? [] : q.call(e)), d) + : n.slice(); + }), + (d.tickValues = function (e) { + return arguments.length + ? ((r = null == e ? null : q.call(e)), d) + : r && r.slice(); + }), + (d.tickFormat = function (e) { + return arguments.length ? ((i = e), d) : i; + }), + (d.tickSize = function (e) { + return arguments.length ? ((o = s = +e), d) : o; + }), + (d.tickSizeInner = function (e) { + return arguments.length ? ((o = +e), d) : o; + }), + (d.tickSizeOuter = function (e) { + return arguments.length ? ((s = +e), d) : s; + }), + (d.tickPadding = function (e) { + return arguments.length ? ((a = +e), d) : a; + }), + d + ); + } + function oe(e) { + return ie(G, e); + } + function se(e) { + return ie($, e); + } + function ae(e) { + return ie(Z, e); + } + function ue(e) { + return ie(X, e); + } + var le = { value: function () {} }; + function ce() { + for (var e, t = 0, n = arguments.length, r = {}; t < n; ++t) { + if (!(e = arguments[t] + '') || e in r || /[\s.]/.test(e)) + throw new Error('illegal type: ' + e); + r[e] = []; + } + return new de(r); + } + function de(e) { + this._ = e; + } + function he(e, t) { + return e + .trim() + .split(/^|\s+/) + .map(function (e) { + var n = '', + r = e.indexOf('.'); + if ( + (r >= 0 && ((n = e.slice(r + 1)), (e = e.slice(0, r))), + e && !t.hasOwnProperty(e)) + ) + throw new Error('unknown type: ' + e); + return { type: e, name: n }; + }); + } + function fe(e, t) { + for (var n, r = 0, i = e.length; r < i; ++r) + if ((n = e[r]).name === t) return n.value; + } + function pe(e, t, n) { + for (var r = 0, i = e.length; r < i; ++r) + if (e[r].name === t) { + (e[r] = le), (e = e.slice(0, r).concat(e.slice(r + 1))); + break; + } + return null != n && e.push({ name: t, value: n }), e; + } + de.prototype = ce.prototype = { + constructor: de, + on: function (e, t) { + var n, + r = this._, + i = he(e + '', r), + o = -1, + s = i.length; + if (!(arguments.length < 2)) { + if (null != t && 'function' != typeof t) + throw new Error('invalid callback: ' + t); + for (; ++o < s; ) + if ((n = (e = i[o]).type)) r[n] = pe(r[n], e.name, t); + else if (null == t) for (n in r) r[n] = pe(r[n], e.name, null); + return this; + } + for (; ++o < s; ) + if ((n = (e = i[o]).type) && (n = fe(r[n], e.name))) return n; + }, + copy: function () { + var e = {}, + t = this._; + for (var n in t) e[n] = t[n].slice(); + return new de(e); + }, + call: function (e, t) { + if ((n = arguments.length - 2) > 0) + for (var n, r, i = new Array(n), o = 0; o < n; ++o) + i[o] = arguments[o + 2]; + if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); + for (o = 0, n = (r = this._[e]).length; o < n; ++o) + r[o].value.apply(t, i); + }, + apply: function (e, t, n) { + if (!this._.hasOwnProperty(e)) throw new Error('unknown type: ' + e); + for (var r = this._[e], i = 0, o = r.length; i < o; ++i) + r[i].value.apply(t, n); + }, + }; + var ge = ce; + function me() {} + var _e = function (e) { + return null == e + ? me + : function () { + return this.querySelector(e); + }; + }; + function ye() { + return []; + } + var ve = function (e) { + return null == e + ? ye + : function () { + return this.querySelectorAll(e); + }; + }, + be = function (e) { + return function () { + return this.matches(e); + }; + }, + we = function (e) { + return new Array(e.length); + }; + function Ce(e, t) { + (this.ownerDocument = e.ownerDocument), + (this.namespaceURI = e.namespaceURI), + (this._next = null), + (this._parent = e), + (this.__data__ = t); + } + Ce.prototype = { + constructor: Ce, + appendChild: function (e) { + return this._parent.insertBefore(e, this._next); + }, + insertBefore: function (e, t) { + return this._parent.insertBefore(e, t); + }, + querySelector: function (e) { + return this._parent.querySelector(e); + }, + querySelectorAll: function (e) { + return this._parent.querySelectorAll(e); + }, + }; + var Se = '$'; + function xe(e, t, n, r, i, o) { + for (var s, a = 0, u = t.length, l = o.length; a < l; ++a) + (s = t[a]) + ? ((s.__data__ = o[a]), (r[a] = s)) + : (n[a] = new Ce(e, o[a])); + for (; a < u; ++a) (s = t[a]) && (i[a] = s); + } + function Le(e, t, n, r, i, o, s) { + var a, + u, + l, + c = {}, + d = t.length, + h = o.length, + f = new Array(d); + for (a = 0; a < d; ++a) + (u = t[a]) && + ((f[a] = l = Se + s.call(u, u.__data__, a, t)), + l in c ? (i[a] = u) : (c[l] = u)); + for (a = 0; a < h; ++a) + (u = c[(l = Se + s.call(e, o[a], a, o))]) + ? ((r[a] = u), (u.__data__ = o[a]), (c[l] = null)) + : (n[a] = new Ce(e, o[a])); + for (a = 0; a < d; ++a) (u = t[a]) && c[f[a]] === u && (i[a] = u); + } + function ke(e, t) { + return e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN; + } + var Me = 'http://www.w3.org/1999/xhtml', + De = { + svg: 'http://www.w3.org/2000/svg', + xhtml: Me, + xlink: 'http://www.w3.org/1999/xlink', + xml: 'http://www.w3.org/XML/1998/namespace', + xmlns: 'http://www.w3.org/2000/xmlns/', + }, + Ee = function (e) { + var t = (e += ''), + n = t.indexOf(':'); + return ( + n >= 0 && 'xmlns' !== (t = e.slice(0, n)) && (e = e.slice(n + 1)), + De.hasOwnProperty(t) ? { space: De[t], local: e } : e + ); + }; + function Te(e) { + return function () { + this.removeAttribute(e); + }; + } + function Ne(e) { + return function () { + this.removeAttributeNS(e.space, e.local); + }; + } + function Oe(e, t) { + return function () { + this.setAttribute(e, t); + }; + } + function Ae(e, t) { + return function () { + this.setAttributeNS(e.space, e.local, t); + }; + } + function Ie(e, t) { + return function () { + var n = t.apply(this, arguments); + null == n ? this.removeAttribute(e) : this.setAttribute(e, n); + }; + } + function Pe(e, t) { + return function () { + var n = t.apply(this, arguments); + null == n + ? this.removeAttributeNS(e.space, e.local) + : this.setAttributeNS(e.space, e.local, n); + }; + } + var Re = function (e) { + return ( + (e.ownerDocument && e.ownerDocument.defaultView) || + (e.document && e) || + e.defaultView + ); + }; + function Fe(e) { + return function () { + this.style.removeProperty(e); + }; + } + function Ye(e, t, n) { + return function () { + this.style.setProperty(e, t, n); + }; + } + function je(e, t, n) { + return function () { + var r = t.apply(this, arguments); + null == r + ? this.style.removeProperty(e) + : this.style.setProperty(e, r, n); + }; + } + function Be(e, t) { + return ( + e.style.getPropertyValue(t) || + Re(e).getComputedStyle(e, null).getPropertyValue(t) + ); + } + function We(e) { + return function () { + delete this[e]; + }; + } + function He(e, t) { + return function () { + this[e] = t; + }; + } + function Ve(e, t) { + return function () { + var n = t.apply(this, arguments); + null == n ? delete this[e] : (this[e] = n); + }; + } + function ze(e) { + return e.trim().split(/^|\s+/); + } + function Ue(e) { + return e.classList || new qe(e); + } + function qe(e) { + (this._node = e), (this._names = ze(e.getAttribute('class') || '')); + } + function Ke(e, t) { + for (var n = Ue(e), r = -1, i = t.length; ++r < i; ) n.add(t[r]); + } + function Ge(e, t) { + for (var n = Ue(e), r = -1, i = t.length; ++r < i; ) n.remove(t[r]); + } + function $e(e) { + return function () { + Ke(this, e); + }; + } + function Ze(e) { + return function () { + Ge(this, e); + }; + } + function Xe(e, t) { + return function () { + (t.apply(this, arguments) ? Ke : Ge)(this, e); + }; + } + qe.prototype = { + add: function (e) { + this._names.indexOf(e) < 0 && + (this._names.push(e), + this._node.setAttribute('class', this._names.join(' '))); + }, + remove: function (e) { + var t = this._names.indexOf(e); + t >= 0 && + (this._names.splice(t, 1), + this._node.setAttribute('class', this._names.join(' '))); + }, + contains: function (e) { + return this._names.indexOf(e) >= 0; + }, + }; + function Je() { + this.textContent = ''; + } + function Qe(e) { + return function () { + this.textContent = e; + }; + } + function et(e) { + return function () { + var t = e.apply(this, arguments); + this.textContent = null == t ? '' : t; + }; + } + function tt() { + this.innerHTML = ''; + } + function nt(e) { + return function () { + this.innerHTML = e; + }; + } + function rt(e) { + return function () { + var t = e.apply(this, arguments); + this.innerHTML = null == t ? '' : t; + }; + } + function it() { + this.nextSibling && this.parentNode.appendChild(this); + } + function ot() { + this.previousSibling && + this.parentNode.insertBefore(this, this.parentNode.firstChild); + } + function st(e) { + return function () { + var t = this.ownerDocument, + n = this.namespaceURI; + return n === Me && t.documentElement.namespaceURI === Me + ? t.createElement(e) + : t.createElementNS(n, e); + }; + } + function at(e) { + return function () { + return this.ownerDocument.createElementNS(e.space, e.local); + }; + } + var ut = function (e) { + var t = Ee(e); + return (t.local ? at : st)(t); + }; + function lt() { + return null; + } + function ct() { + var e = this.parentNode; + e && e.removeChild(this); + } + function dt() { + var e = this.cloneNode(!1), + t = this.parentNode; + return t ? t.insertBefore(e, this.nextSibling) : e; + } + function ht() { + var e = this.cloneNode(!0), + t = this.parentNode; + return t ? t.insertBefore(e, this.nextSibling) : e; + } + var ft = {}, + pt = null; + 'undefined' != typeof document && + ('onmouseenter' in document.documentElement || + (ft = { mouseenter: 'mouseover', mouseleave: 'mouseout' })); + function gt(e, t, n) { + return ( + (e = mt(e, t, n)), + function (t) { + var n = t.relatedTarget; + (n && (n === this || 8 & n.compareDocumentPosition(this))) || + e.call(this, t); + } + ); + } + function mt(e, t, n) { + return function (r) { + var i = pt; + pt = r; + try { + e.call(this, this.__data__, t, n); + } finally { + pt = i; + } + }; + } + function _t(e) { + return e + .trim() + .split(/^|\s+/) + .map(function (e) { + var t = '', + n = e.indexOf('.'); + return ( + n >= 0 && ((t = e.slice(n + 1)), (e = e.slice(0, n))), + { type: e, name: t } + ); + }); + } + function yt(e) { + return function () { + var t = this.__on; + if (t) { + for (var n, r = 0, i = -1, o = t.length; r < o; ++r) + (n = t[r]), + (e.type && n.type !== e.type) || n.name !== e.name + ? (t[++i] = n) + : this.removeEventListener(n.type, n.listener, n.capture); + ++i ? (t.length = i) : delete this.__on; + } + }; + } + function vt(e, t, n) { + var r = ft.hasOwnProperty(e.type) ? gt : mt; + return function (i, o, s) { + var a, + u = this.__on, + l = r(t, o, s); + if (u) + for (var c = 0, d = u.length; c < d; ++c) + if ((a = u[c]).type === e.type && a.name === e.name) + return ( + this.removeEventListener(a.type, a.listener, a.capture), + this.addEventListener( + a.type, + (a.listener = l), + (a.capture = n) + ), + void (a.value = t) + ); + this.addEventListener(e.type, l, n), + (a = { + type: e.type, + name: e.name, + value: t, + listener: l, + capture: n, + }), + u ? u.push(a) : (this.__on = [a]); + }; + } + function bt(e, t, n, r) { + var i = pt; + (e.sourceEvent = pt), (pt = e); + try { + return t.apply(n, r); + } finally { + pt = i; + } + } + function wt(e, t, n) { + var r = Re(e), + i = r.CustomEvent; + 'function' == typeof i + ? (i = new i(t, n)) + : ((i = r.document.createEvent('Event')), + n + ? (i.initEvent(t, n.bubbles, n.cancelable), (i.detail = n.detail)) + : i.initEvent(t, !1, !1)), + e.dispatchEvent(i); + } + function Ct(e, t) { + return function () { + return wt(this, e, t); + }; + } + function St(e, t) { + return function () { + return wt(this, e, t.apply(this, arguments)); + }; + } + var xt = [null]; + function Lt(e, t) { + (this._groups = e), (this._parents = t); + } + function kt() { + return new Lt([[document.documentElement]], xt); + } + Lt.prototype = kt.prototype = { + constructor: Lt, + select: function (e) { + 'function' != typeof e && (e = _e(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, s, a = t[i], u = a.length, l = (r[i] = new Array(u)), c = 0; + c < u; + ++c + ) + (o = a[c]) && + (s = e.call(o, o.__data__, c, a)) && + ('__data__' in o && (s.__data__ = o.__data__), (l[c] = s)); + return new Lt(r, this._parents); + }, + selectAll: function (e) { + 'function' != typeof e && (e = ve(e)); + for ( + var t = this._groups, n = t.length, r = [], i = [], o = 0; + o < n; + ++o + ) + for (var s, a = t[o], u = a.length, l = 0; l < u; ++l) + (s = a[l]) && (r.push(e.call(s, s.__data__, l, a)), i.push(s)); + return new Lt(r, i); + }, + filter: function (e) { + 'function' != typeof e && (e = be(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, s = t[i], a = s.length, u = (r[i] = []), l = 0; + l < a; + ++l + ) + (o = s[l]) && e.call(o, o.__data__, l, s) && u.push(o); + return new Lt(r, this._parents); + }, + data: function (e, t) { + if (!e) + return ( + (p = new Array(this.size())), + (c = -1), + this.each(function (e) { + p[++c] = e; + }), + p + ); + var n, + r = t ? Le : xe, + i = this._parents, + o = this._groups; + 'function' != typeof e && + ((n = e), + (e = function () { + return n; + })); + for ( + var s = o.length, + a = new Array(s), + u = new Array(s), + l = new Array(s), + c = 0; + c < s; + ++c + ) { + var d = i[c], + h = o[c], + f = h.length, + p = e.call(d, d && d.__data__, c, i), + g = p.length, + m = (u[c] = new Array(g)), + _ = (a[c] = new Array(g)); + r(d, h, m, _, (l[c] = new Array(f)), p, t); + for (var y, v, b = 0, w = 0; b < g; ++b) + if ((y = m[b])) { + for (b >= w && (w = b + 1); !(v = _[w]) && ++w < g; ); + y._next = v || null; + } + } + return ((a = new Lt(a, i))._enter = u), (a._exit = l), a; + }, + enter: function () { + return new Lt(this._enter || this._groups.map(we), this._parents); + }, + exit: function () { + return new Lt(this._exit || this._groups.map(we), this._parents); + }, + join: function (e, t, n) { + var r = this.enter(), + i = this, + o = this.exit(); + return ( + (r = 'function' == typeof e ? e(r) : r.append(e + '')), + null != t && (i = t(i)), + null == n ? o.remove() : n(o), + r && i ? r.merge(i).order() : i + ); + }, + merge: function (e) { + for ( + var t = this._groups, + n = e._groups, + r = t.length, + i = n.length, + o = Math.min(r, i), + s = new Array(r), + a = 0; + a < o; + ++a + ) + for ( + var u, + l = t[a], + c = n[a], + d = l.length, + h = (s[a] = new Array(d)), + f = 0; + f < d; + ++f + ) + (u = l[f] || c[f]) && (h[f] = u); + for (; a < r; ++a) s[a] = t[a]; + return new Lt(s, this._parents); + }, + order: function () { + for (var e = this._groups, t = -1, n = e.length; ++t < n; ) + for (var r, i = e[t], o = i.length - 1, s = i[o]; --o >= 0; ) + (r = i[o]) && + (s && + 4 ^ r.compareDocumentPosition(s) && + s.parentNode.insertBefore(r, s), + (s = r)); + return this; + }, + sort: function (e) { + function t(t, n) { + return t && n ? e(t.__data__, n.__data__) : !t - !n; + } + e || (e = ke); + for ( + var n = this._groups, r = n.length, i = new Array(r), o = 0; + o < r; + ++o + ) { + for ( + var s, a = n[o], u = a.length, l = (i[o] = new Array(u)), c = 0; + c < u; + ++c + ) + (s = a[c]) && (l[c] = s); + l.sort(t); + } + return new Lt(i, this._parents).order(); + }, + call: function () { + var e = arguments[0]; + return (arguments[0] = this), e.apply(null, arguments), this; + }, + nodes: function () { + var e = new Array(this.size()), + t = -1; + return ( + this.each(function () { + e[++t] = this; + }), + e + ); + }, + node: function () { + for (var e = this._groups, t = 0, n = e.length; t < n; ++t) + for (var r = e[t], i = 0, o = r.length; i < o; ++i) { + var s = r[i]; + if (s) return s; + } + return null; + }, + size: function () { + var e = 0; + return ( + this.each(function () { + ++e; + }), + e + ); + }, + empty: function () { + return !this.node(); + }, + each: function (e) { + for (var t = this._groups, n = 0, r = t.length; n < r; ++n) + for (var i, o = t[n], s = 0, a = o.length; s < a; ++s) + (i = o[s]) && e.call(i, i.__data__, s, o); + return this; + }, + attr: function (e, t) { + var n = Ee(e); + if (arguments.length < 2) { + var r = this.node(); + return n.local + ? r.getAttributeNS(n.space, n.local) + : r.getAttribute(n); + } + return this.each( + (null == t + ? n.local + ? Ne + : Te + : 'function' == typeof t + ? n.local + ? Pe + : Ie + : n.local + ? Ae + : Oe)(n, t) + ); + }, + style: function (e, t, n) { + return arguments.length > 1 + ? this.each( + (null == t ? Fe : 'function' == typeof t ? je : Ye)( + e, + t, + null == n ? '' : n + ) + ) + : Be(this.node(), e); + }, + property: function (e, t) { + return arguments.length > 1 + ? this.each((null == t ? We : 'function' == typeof t ? Ve : He)(e, t)) + : this.node()[e]; + }, + classed: function (e, t) { + var n = ze(e + ''); + if (arguments.length < 2) { + for (var r = Ue(this.node()), i = -1, o = n.length; ++i < o; ) + if (!r.contains(n[i])) return !1; + return !0; + } + return this.each(('function' == typeof t ? Xe : t ? $e : Ze)(n, t)); + }, + text: function (e) { + return arguments.length + ? this.each(null == e ? Je : ('function' == typeof e ? et : Qe)(e)) + : this.node().textContent; + }, + html: function (e) { + return arguments.length + ? this.each(null == e ? tt : ('function' == typeof e ? rt : nt)(e)) + : this.node().innerHTML; + }, + raise: function () { + return this.each(it); + }, + lower: function () { + return this.each(ot); + }, + append: function (e) { + var t = 'function' == typeof e ? e : ut(e); + return this.select(function () { + return this.appendChild(t.apply(this, arguments)); + }); + }, + insert: function (e, t) { + var n = 'function' == typeof e ? e : ut(e), + r = null == t ? lt : 'function' == typeof t ? t : _e(t); + return this.select(function () { + return this.insertBefore( + n.apply(this, arguments), + r.apply(this, arguments) || null + ); + }); + }, + remove: function () { + return this.each(ct); + }, + clone: function (e) { + return this.select(e ? ht : dt); + }, + datum: function (e) { + return arguments.length + ? this.property('__data__', e) + : this.node().__data__; + }, + on: function (e, t, n) { + var r, + i, + o = _t(e + ''), + s = o.length; + if (!(arguments.length < 2)) { + for (a = t ? vt : yt, null == n && (n = !1), r = 0; r < s; ++r) + this.each(a(o[r], t, n)); + return this; + } + var a = this.node().__on; + if (a) + for (var u, l = 0, c = a.length; l < c; ++l) + for (r = 0, u = a[l]; r < s; ++r) + if ((i = o[r]).type === u.type && i.name === u.name) + return u.value; + }, + dispatch: function (e, t) { + return this.each(('function' == typeof t ? St : Ct)(e, t)); + }, + }; + var Mt = kt, + Dt = function (e) { + return 'string' == typeof e + ? new Lt([[document.querySelector(e)]], [document.documentElement]) + : new Lt([[e]], xt); + }; + function Et() { + pt.stopImmediatePropagation(); + } + var Tt = function () { + pt.preventDefault(), pt.stopImmediatePropagation(); + }, + Nt = function (e) { + var t = e.document.documentElement, + n = Dt(e).on('dragstart.drag', Tt, !0); + 'onselectstart' in t + ? n.on('selectstart.drag', Tt, !0) + : ((t.__noselect = t.style.MozUserSelect), + (t.style.MozUserSelect = 'none')); + }; + function Ot(e, t) { + var n = e.document.documentElement, + r = Dt(e).on('dragstart.drag', null); + t && + (r.on('click.drag', Tt, !0), + setTimeout(function () { + r.on('click.drag', null); + }, 0)), + 'onselectstart' in n + ? r.on('selectstart.drag', null) + : ((n.style.MozUserSelect = n.__noselect), delete n.__noselect); + } + var At = function (e, t, n) { + (e.prototype = t.prototype = n), (n.constructor = e); + }; + function It(e, t) { + var n = Object.create(e.prototype); + for (var r in t) n[r] = t[r]; + return n; + } + function Pt() {} + var Rt = '\\s*([+-]?\\d+)\\s*', + Ft = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*', + Yt = '\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*', + jt = /^#([0-9a-f]{3,8})$/, + Bt = new RegExp('^rgb\\(' + [Rt, Rt, Rt] + '\\)$'), + Wt = new RegExp('^rgb\\(' + [Yt, Yt, Yt] + '\\)$'), + Ht = new RegExp('^rgba\\(' + [Rt, Rt, Rt, Ft] + '\\)$'), + Vt = new RegExp('^rgba\\(' + [Yt, Yt, Yt, Ft] + '\\)$'), + zt = new RegExp('^hsl\\(' + [Ft, Yt, Yt] + '\\)$'), + Ut = new RegExp('^hsla\\(' + [Ft, Yt, Yt, Ft] + '\\)$'), + qt = { + 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, + }; + function Kt() { + return this.rgb().formatHex(); + } + function Gt() { + return this.rgb().formatRgb(); + } + function $t(e) { + var t, n; + return ( + (e = (e + '').trim().toLowerCase()), + (t = jt.exec(e)) + ? ((n = t[1].length), + (t = parseInt(t[1], 16)), + 6 === n + ? Zt(t) + : 3 === n + ? new en( + ((t >> 8) & 15) | ((t >> 4) & 240), + ((t >> 4) & 15) | (240 & t), + ((15 & t) << 4) | (15 & t), + 1 + ) + : 8 === n + ? new en( + (t >> 24) & 255, + (t >> 16) & 255, + (t >> 8) & 255, + (255 & t) / 255 + ) + : 4 === n + ? new en( + ((t >> 12) & 15) | ((t >> 8) & 240), + ((t >> 8) & 15) | ((t >> 4) & 240), + ((t >> 4) & 15) | (240 & t), + (((15 & t) << 4) | (15 & t)) / 255 + ) + : null) + : (t = Bt.exec(e)) + ? new en(t[1], t[2], t[3], 1) + : (t = Wt.exec(e)) + ? new en( + (255 * t[1]) / 100, + (255 * t[2]) / 100, + (255 * t[3]) / 100, + 1 + ) + : (t = Ht.exec(e)) + ? Xt(t[1], t[2], t[3], t[4]) + : (t = Vt.exec(e)) + ? Xt((255 * t[1]) / 100, (255 * t[2]) / 100, (255 * t[3]) / 100, t[4]) + : (t = zt.exec(e)) + ? on(t[1], t[2] / 100, t[3] / 100, 1) + : (t = Ut.exec(e)) + ? on(t[1], t[2] / 100, t[3] / 100, t[4]) + : qt.hasOwnProperty(e) + ? Zt(qt[e]) + : 'transparent' === e + ? new en(NaN, NaN, NaN, 0) + : null + ); + } + function Zt(e) { + return new en((e >> 16) & 255, (e >> 8) & 255, 255 & e, 1); + } + function Xt(e, t, n, r) { + return r <= 0 && (e = t = n = NaN), new en(e, t, n, r); + } + function Jt(e) { + return ( + e instanceof Pt || (e = $t(e)), + e ? new en((e = e.rgb()).r, e.g, e.b, e.opacity) : new en() + ); + } + function Qt(e, t, n, r) { + return 1 === arguments.length + ? Jt(e) + : new en(e, t, n, null == r ? 1 : r); + } + function en(e, t, n, r) { + (this.r = +e), (this.g = +t), (this.b = +n), (this.opacity = +r); + } + function tn() { + return '#' + rn(this.r) + rn(this.g) + rn(this.b); + } + function nn() { + var e = this.opacity; + return ( + (1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e))) + ? 'rgb(' + : 'rgba(') + + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + + ', ' + + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + + ', ' + + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + + (1 === e ? ')' : ', ' + e + ')') + ); + } + function rn(e) { + return ( + ((e = Math.max(0, Math.min(255, Math.round(e) || 0))) < 16 ? '0' : '') + + e.toString(16) + ); + } + function on(e, t, n, r) { + return ( + r <= 0 + ? (e = t = n = NaN) + : n <= 0 || n >= 1 + ? (e = t = NaN) + : t <= 0 && (e = NaN), + new un(e, t, n, r) + ); + } + function sn(e) { + if (e instanceof un) return new un(e.h, e.s, e.l, e.opacity); + if ((e instanceof Pt || (e = $t(e)), !e)) return new un(); + if (e instanceof un) return e; + var t = (e = e.rgb()).r / 255, + n = e.g / 255, + r = e.b / 255, + i = Math.min(t, n, r), + o = Math.max(t, n, r), + s = NaN, + a = o - i, + u = (o + i) / 2; + return ( + a + ? ((s = + t === o + ? (n - r) / a + 6 * (n < r) + : n === o + ? (r - t) / a + 2 + : (t - n) / a + 4), + (a /= u < 0.5 ? o + i : 2 - o - i), + (s *= 60)) + : (a = u > 0 && u < 1 ? 0 : s), + new un(s, a, u, e.opacity) + ); + } + function an(e, t, n, r) { + return 1 === arguments.length + ? sn(e) + : new un(e, t, n, null == r ? 1 : r); + } + function un(e, t, n, r) { + (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); + } + function ln(e, t, n) { + return ( + 255 * + (e < 60 + ? t + ((n - t) * e) / 60 + : e < 180 + ? n + : e < 240 + ? t + ((n - t) * (240 - e)) / 60 + : t) + ); + } + function cn(e, t, n, r, i) { + var o = e * e, + s = o * e; + return ( + ((1 - 3 * e + 3 * o - s) * t + + (4 - 6 * o + 3 * s) * n + + (1 + 3 * e + 3 * o - 3 * s) * r + + s * i) / + 6 + ); + } + At(Pt, $t, { + copy: function (e) { + return Object.assign(new this.constructor(), this, e); + }, + displayable: function () { + return this.rgb().displayable(); + }, + hex: Kt, + formatHex: Kt, + formatHsl: function () { + return sn(this).formatHsl(); + }, + formatRgb: Gt, + toString: Gt, + }), + At( + en, + Qt, + It(Pt, { + brighter: function (e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new en(this.r * e, this.g * e, this.b * e, this.opacity) + ); + }, + darker: function (e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new en(this.r * e, this.g * e, this.b * e, this.opacity) + ); + }, + rgb: function () { + return this; + }, + displayable: function () { + return ( + -0.5 <= this.r && + this.r < 255.5 && + -0.5 <= this.g && + this.g < 255.5 && + -0.5 <= this.b && + this.b < 255.5 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + hex: tn, + formatHex: tn, + formatRgb: nn, + toString: nn, + }) + ), + At( + un, + an, + It(Pt, { + brighter: function (e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new un(this.h, this.s, this.l * e, this.opacity) + ); + }, + darker: function (e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new un(this.h, this.s, this.l * e, this.opacity) + ); + }, + rgb: function () { + var e = (this.h % 360) + 360 * (this.h < 0), + t = isNaN(e) || isNaN(this.s) ? 0 : this.s, + n = this.l, + r = n + (n < 0.5 ? n : 1 - n) * t, + i = 2 * n - r; + return new en( + ln(e >= 240 ? e - 240 : e + 120, i, r), + ln(e, i, r), + ln(e < 120 ? e + 240 : e - 120, i, r), + this.opacity + ); + }, + displayable: function () { + return ( + ((0 <= this.s && this.s <= 1) || isNaN(this.s)) && + 0 <= this.l && + this.l <= 1 && + 0 <= this.opacity && + this.opacity <= 1 + ); + }, + formatHsl: function () { + var e = this.opacity; + return ( + (1 === (e = isNaN(e) ? 1 : Math.max(0, Math.min(1, e))) + ? 'hsl(' + : 'hsla(') + + (this.h || 0) + + ', ' + + 100 * (this.s || 0) + + '%, ' + + 100 * (this.l || 0) + + '%' + + (1 === e ? ')' : ', ' + e + ')') + ); + }, + }) + ); + var dn = function (e) { + var t = e.length - 1; + return function (n) { + var r = + n <= 0 ? (n = 0) : n >= 1 ? ((n = 1), t - 1) : Math.floor(n * t), + i = e[r], + o = e[r + 1], + s = r > 0 ? e[r - 1] : 2 * i - o, + a = r < t - 1 ? e[r + 2] : 2 * o - i; + return cn((n - r / t) * t, s, i, o, a); + }; + }, + hn = function (e) { + var t = e.length; + return function (n) { + var r = Math.floor(((n %= 1) < 0 ? ++n : n) * t), + i = e[(r + t - 1) % t], + o = e[r % t], + s = e[(r + 1) % t], + a = e[(r + 2) % t]; + return cn((n - r / t) * t, i, o, s, a); + }; + }, + fn = function (e) { + return function () { + return e; + }; + }; + function pn(e, t) { + return function (n) { + return e + n * t; + }; + } + function gn(e, t) { + var n = t - e; + return n + ? pn(e, n > 180 || n < -180 ? n - 360 * Math.round(n / 360) : n) + : fn(isNaN(e) ? t : e); + } + function mn(e) { + return 1 == (e = +e) + ? _n + : function (t, n) { + return n - t + ? (function (e, t, n) { + return ( + (e = Math.pow(e, n)), + (t = Math.pow(t, n) - e), + (n = 1 / n), + function (r) { + return Math.pow(e + r * t, n); + } + ); + })(t, n, e) + : fn(isNaN(t) ? n : t); + }; + } + function _n(e, t) { + var n = t - e; + return n ? pn(e, n) : fn(isNaN(e) ? t : e); + } + var yn = (function e(t) { + var n = mn(t); + function r(e, t) { + var r = n((e = Qt(e)).r, (t = Qt(t)).r), + i = n(e.g, t.g), + o = n(e.b, t.b), + s = _n(e.opacity, t.opacity); + return function (t) { + return ( + (e.r = r(t)), (e.g = i(t)), (e.b = o(t)), (e.opacity = s(t)), e + '' + ); + }; + } + return (r.gamma = e), r; + })(1); + function vn(e) { + return function (t) { + var n, + r, + i = t.length, + o = new Array(i), + s = new Array(i), + a = new Array(i); + for (n = 0; n < i; ++n) + (r = Qt(t[n])), + (o[n] = r.r || 0), + (s[n] = r.g || 0), + (a[n] = r.b || 0); + return ( + (o = e(o)), + (s = e(s)), + (a = e(a)), + (r.opacity = 1), + function (e) { + return (r.r = o(e)), (r.g = s(e)), (r.b = a(e)), r + ''; + } + ); + }; + } + var bn = vn(dn), + wn = vn(hn), + Cn = function (e, t) { + t || (t = []); + var n, + r = e ? Math.min(t.length, e.length) : 0, + i = t.slice(); + return function (o) { + for (n = 0; n < r; ++n) i[n] = e[n] * (1 - o) + t[n] * o; + return i; + }; + }; + function Sn(e) { + return ArrayBuffer.isView(e) && !(e instanceof DataView); + } + var xn = function (e, t) { + return (Sn(t) ? Cn : Ln)(e, t); + }; + function Ln(e, t) { + var n, + r = t ? t.length : 0, + i = e ? Math.min(r, e.length) : 0, + o = new Array(i), + s = new Array(r); + for (n = 0; n < i; ++n) o[n] = In(e[n], t[n]); + for (; n < r; ++n) s[n] = t[n]; + return function (e) { + for (n = 0; n < i; ++n) s[n] = o[n](e); + return s; + }; + } + var kn = function (e, t) { + var n = new Date(); + return ( + (e = +e), + (t = +t), + function (r) { + return n.setTime(e * (1 - r) + t * r), n; + } + ); + }, + Mn = function (e, t) { + return ( + (e = +e), + (t = +t), + function (n) { + return e * (1 - n) + t * n; + } + ); + }, + Dn = function (e, t) { + var n, + r = {}, + i = {}; + for (n in ((null !== e && 'object' == typeof e) || (e = {}), + (null !== t && 'object' == typeof t) || (t = {}), + t)) + n in e ? (r[n] = In(e[n], t[n])) : (i[n] = t[n]); + return function (e) { + for (n in r) i[n] = r[n](e); + return i; + }; + }, + En = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, + Tn = new RegExp(En.source, 'g'); + var Nn, + On, + An = function (e, t) { + var n, + r, + i, + o = (En.lastIndex = Tn.lastIndex = 0), + s = -1, + a = [], + u = []; + for (e += '', t += ''; (n = En.exec(e)) && (r = Tn.exec(t)); ) + (i = r.index) > o && + ((i = t.slice(o, i)), a[s] ? (a[s] += i) : (a[++s] = i)), + (n = n[0]) === (r = r[0]) + ? a[s] + ? (a[s] += r) + : (a[++s] = r) + : ((a[++s] = null), u.push({ i: s, x: Mn(n, r) })), + (o = Tn.lastIndex); + return ( + o < t.length && ((i = t.slice(o)), a[s] ? (a[s] += i) : (a[++s] = i)), + a.length < 2 + ? u[0] + ? (function (e) { + return function (t) { + return e(t) + ''; + }; + })(u[0].x) + : (function (e) { + return function () { + return e; + }; + })(t) + : ((t = u.length), + function (e) { + for (var n, r = 0; r < t; ++r) a[(n = u[r]).i] = n.x(e); + return a.join(''); + }) + ); + }, + In = function (e, t) { + var n, + r = typeof t; + return null == t || 'boolean' === r + ? fn(t) + : ('number' === r + ? Mn + : 'string' === r + ? (n = $t(t)) + ? ((t = n), yn) + : An + : t instanceof $t + ? yn + : t instanceof Date + ? kn + : Sn(t) + ? Cn + : Array.isArray(t) + ? Ln + : ('function' != typeof t.valueOf && + 'function' != typeof t.toString) || + isNaN(t) + ? Dn + : Mn)(e, t); + }, + Pn = function () { + for (var e, t = pt; (e = t.sourceEvent); ) t = e; + return t; + }, + Rn = function (e, t) { + var n = e.ownerSVGElement || e; + if (n.createSVGPoint) { + var r = n.createSVGPoint(); + return ( + (r.x = t.clientX), + (r.y = t.clientY), + [(r = r.matrixTransform(e.getScreenCTM().inverse())).x, r.y] + ); + } + var i = e.getBoundingClientRect(); + return [ + t.clientX - i.left - e.clientLeft, + t.clientY - i.top - e.clientTop, + ]; + }, + Fn = function (e, t, n) { + arguments.length < 3 && ((n = t), (t = Pn().changedTouches)); + for (var r, i = 0, o = t ? t.length : 0; i < o; ++i) + if ((r = t[i]).identifier === n) return Rn(e, r); + return null; + }, + Yn = function (e) { + var t = Pn(); + return t.changedTouches && (t = t.changedTouches[0]), Rn(e, t); + }, + jn = 0, + Bn = 0, + Wn = 0, + Hn = 1e3, + Vn = 0, + zn = 0, + Un = 0, + qn = + 'object' == typeof performance && performance.now ? performance : Date, + Kn = + 'object' == typeof window && window.requestAnimationFrame + ? window.requestAnimationFrame.bind(window) + : function (e) { + setTimeout(e, 17); + }; + function Gn() { + return zn || (Kn($n), (zn = qn.now() + Un)); + } + function $n() { + zn = 0; + } + function Zn() { + this._call = this._time = this._next = null; + } + function Xn(e, t, n) { + var r = new Zn(); + return r.restart(e, t, n), r; + } + function Jn() { + Gn(), ++jn; + for (var e, t = Nn; t; ) + (e = zn - t._time) >= 0 && t._call.call(null, e), (t = t._next); + --jn; + } + function Qn() { + (zn = (Vn = qn.now()) + Un), (jn = Bn = 0); + try { + Jn(); + } finally { + (jn = 0), + (function () { + var e, + t, + n = Nn, + r = 1 / 0; + for (; n; ) + n._call + ? (r > n._time && (r = n._time), (e = n), (n = n._next)) + : ((t = n._next), + (n._next = null), + (n = e ? (e._next = t) : (Nn = t))); + (On = e), tr(r); + })(), + (zn = 0); + } + } + function er() { + var e = qn.now(), + t = e - Vn; + t > Hn && ((Un -= t), (Vn = e)); + } + function tr(e) { + jn || + (Bn && (Bn = clearTimeout(Bn)), + e - zn > 24 + ? (e < 1 / 0 && (Bn = setTimeout(Qn, e - qn.now() - Un)), + Wn && (Wn = clearInterval(Wn))) + : (Wn || ((Vn = qn.now()), (Wn = setInterval(er, Hn))), + (jn = 1), + Kn(Qn))); + } + Zn.prototype = Xn.prototype = { + constructor: Zn, + restart: function (e, t, n) { + if ('function' != typeof e) + throw new TypeError('callback is not a function'); + (n = (null == n ? Gn() : +n) + (null == t ? 0 : +t)), + this._next || + On === this || + (On ? (On._next = this) : (Nn = this), (On = this)), + (this._call = e), + (this._time = n), + tr(); + }, + stop: function () { + this._call && ((this._call = null), (this._time = 1 / 0), tr()); + }, + }; + var nr = function (e, t, n) { + var r = new Zn(); + return ( + (t = null == t ? 0 : +t), + r.restart( + function (n) { + r.stop(), e(n + t); + }, + t, + n + ), + r + ); + }, + rr = ge('start', 'end', 'cancel', 'interrupt'), + ir = [], + or = 0, + sr = 1, + ar = 2, + ur = 3, + lr = 4, + cr = 5, + dr = 6, + hr = function (e, t, n, r, i, o) { + var s = e.__transition; + if (s) { + if (n in s) return; + } else e.__transition = {}; + !(function (e, t, n) { + var r, + i = e.__transition; + function o(u) { + var l, c, d, h; + if (n.state !== sr) return a(); + for (l in i) + if ((h = i[l]).name === n.name) { + if (h.state === ur) return nr(o); + h.state === lr + ? ((h.state = dr), + h.timer.stop(), + h.on.call('interrupt', e, e.__data__, h.index, h.group), + delete i[l]) + : +l < t && + ((h.state = dr), + h.timer.stop(), + h.on.call('cancel', e, e.__data__, h.index, h.group), + delete i[l]); + } + if ( + (nr(function () { + n.state === ur && + ((n.state = lr), n.timer.restart(s, n.delay, n.time), s(u)); + }), + (n.state = ar), + n.on.call('start', e, e.__data__, n.index, n.group), + n.state === ar) + ) { + for ( + n.state = ur, + r = new Array((d = n.tween.length)), + l = 0, + c = -1; + l < d; + ++l + ) + (h = n.tween[l].value.call(e, e.__data__, n.index, n.group)) && + (r[++c] = h); + r.length = c + 1; + } + } + function s(t) { + for ( + var i = + t < n.duration + ? n.ease.call(null, t / n.duration) + : (n.timer.restart(a), (n.state = cr), 1), + o = -1, + s = r.length; + ++o < s; + + ) + r[o].call(e, i); + n.state === cr && + (n.on.call('end', e, e.__data__, n.index, n.group), a()); + } + function a() { + for (var r in ((n.state = dr), n.timer.stop(), delete i[t], i)) + return; + delete e.__transition; + } + (i[t] = n), + (n.timer = Xn( + function (e) { + (n.state = sr), + n.timer.restart(o, n.delay, n.time), + n.delay <= e && o(e - n.delay); + }, + 0, + n.time + )); + })(e, n, { + name: t, + index: r, + group: i, + on: rr, + tween: ir, + time: o.time, + delay: o.delay, + duration: o.duration, + ease: o.ease, + timer: null, + state: or, + }); + }; + function fr(e, t) { + var n = gr(e, t); + if (n.state > or) throw new Error('too late; already scheduled'); + return n; + } + function pr(e, t) { + var n = gr(e, t); + if (n.state > ur) throw new Error('too late; already running'); + return n; + } + function gr(e, t) { + var n = e.__transition; + if (!n || !(n = n[t])) throw new Error('transition not found'); + return n; + } + var mr, + _r, + yr, + vr, + br = function (e, t) { + var n, + r, + i, + o = e.__transition, + s = !0; + if (o) { + for (i in ((t = null == t ? null : t + ''), o)) + (n = o[i]).name === t + ? ((r = n.state > ar && n.state < cr), + (n.state = dr), + n.timer.stop(), + n.on.call( + r ? 'interrupt' : 'cancel', + e, + e.__data__, + n.index, + n.group + ), + delete o[i]) + : (s = !1); + s && delete e.__transition; + } + }, + wr = 180 / Math.PI, + Cr = { + translateX: 0, + translateY: 0, + rotate: 0, + skewX: 0, + scaleX: 1, + scaleY: 1, + }, + Sr = function (e, t, n, r, i, o) { + var s, a, u; + return ( + (s = Math.sqrt(e * e + t * t)) && ((e /= s), (t /= s)), + (u = e * n + t * r) && ((n -= e * u), (r -= t * u)), + (a = Math.sqrt(n * n + r * r)) && ((n /= a), (r /= a), (u /= a)), + e * r < t * n && ((e = -e), (t = -t), (u = -u), (s = -s)), + { + translateX: i, + translateY: o, + rotate: Math.atan2(t, e) * wr, + skewX: Math.atan(u) * wr, + scaleX: s, + scaleY: a, + } + ); + }; + function xr(e, t, n, r) { + function i(e) { + return e.length ? e.pop() + ' ' : ''; + } + return function (o, s) { + var a = [], + u = []; + return ( + (o = e(o)), + (s = e(s)), + (function (e, r, i, o, s, a) { + if (e !== i || r !== o) { + var u = s.push('translate(', null, t, null, n); + a.push({ i: u - 4, x: Mn(e, i) }, { i: u - 2, x: Mn(r, o) }); + } else (i || o) && s.push('translate(' + i + t + o + n); + })(o.translateX, o.translateY, s.translateX, s.translateY, a, u), + (function (e, t, n, o) { + e !== t + ? (e - t > 180 ? (t += 360) : t - e > 180 && (e += 360), + o.push({ + i: n.push(i(n) + 'rotate(', null, r) - 2, + x: Mn(e, t), + })) + : t && n.push(i(n) + 'rotate(' + t + r); + })(o.rotate, s.rotate, a, u), + (function (e, t, n, o) { + e !== t + ? o.push({ i: n.push(i(n) + 'skewX(', null, r) - 2, x: Mn(e, t) }) + : t && n.push(i(n) + 'skewX(' + t + r); + })(o.skewX, s.skewX, a, u), + (function (e, t, n, r, o, s) { + if (e !== n || t !== r) { + var a = o.push(i(o) + 'scale(', null, ',', null, ')'); + s.push({ i: a - 4, x: Mn(e, n) }, { i: a - 2, x: Mn(t, r) }); + } else + (1 === n && 1 === r) || + o.push(i(o) + 'scale(' + n + ',' + r + ')'); + })(o.scaleX, o.scaleY, s.scaleX, s.scaleY, a, u), + (o = s = null), + function (e) { + for (var t, n = -1, r = u.length; ++n < r; ) + a[(t = u[n]).i] = t.x(e); + return a.join(''); + } + ); + }; + } + var Lr = xr( + function (e) { + return 'none' === e + ? Cr + : (mr || + ((mr = document.createElement('DIV')), + (_r = document.documentElement), + (yr = document.defaultView)), + (mr.style.transform = e), + (e = yr + .getComputedStyle(_r.appendChild(mr), null) + .getPropertyValue('transform')), + _r.removeChild(mr), + (e = e.slice(7, -1).split(',')), + Sr(+e[0], +e[1], +e[2], +e[3], +e[4], +e[5])); + }, + 'px, ', + 'px)', + 'deg)' + ), + kr = xr( + function (e) { + return null == e + ? Cr + : (vr || + (vr = document.createElementNS( + 'http://www.w3.org/2000/svg', + 'g' + )), + vr.setAttribute('transform', e), + (e = vr.transform.baseVal.consolidate()) + ? ((e = e.matrix), Sr(e.a, e.b, e.c, e.d, e.e, e.f)) + : Cr); + }, + ', ', + ')', + ')' + ); + function Mr(e, t) { + var n, r; + return function () { + var i = pr(this, e), + o = i.tween; + if (o !== n) + for (var s = 0, a = (r = n = o).length; s < a; ++s) + if (r[s].name === t) { + (r = r.slice()).splice(s, 1); + break; + } + i.tween = r; + }; + } + function Dr(e, t, n) { + var r, i; + if ('function' != typeof n) throw new Error(); + return function () { + var o = pr(this, e), + s = o.tween; + if (s !== r) { + i = (r = s).slice(); + for (var a = { name: t, value: n }, u = 0, l = i.length; u < l; ++u) + if (i[u].name === t) { + i[u] = a; + break; + } + u === l && i.push(a); + } + o.tween = i; + }; + } + function Er(e, t, n) { + var r = e._id; + return ( + e.each(function () { + var e = pr(this, r); + (e.value || (e.value = {}))[t] = n.apply(this, arguments); + }), + function (e) { + return gr(e, r).value[t]; + } + ); + } + var Tr = function (e, t) { + var n; + return ('number' == typeof t + ? Mn + : t instanceof $t + ? yn + : (n = $t(t)) + ? ((t = n), yn) + : An)(e, t); + }; + function Nr(e) { + return function () { + this.removeAttribute(e); + }; + } + function Or(e) { + return function () { + this.removeAttributeNS(e.space, e.local); + }; + } + function Ar(e, t, n) { + var r, + i, + o = n + ''; + return function () { + var s = this.getAttribute(e); + return s === o ? null : s === r ? i : (i = t((r = s), n)); + }; + } + function Ir(e, t, n) { + var r, + i, + o = n + ''; + return function () { + var s = this.getAttributeNS(e.space, e.local); + return s === o ? null : s === r ? i : (i = t((r = s), n)); + }; + } + function Pr(e, t, n) { + var r, i, o; + return function () { + var s, + a, + u = n(this); + if (null != u) + return (s = this.getAttribute(e)) === (a = u + '') + ? null + : s === r && a === i + ? o + : ((i = a), (o = t((r = s), u))); + this.removeAttribute(e); + }; + } + function Rr(e, t, n) { + var r, i, o; + return function () { + var s, + a, + u = n(this); + if (null != u) + return (s = this.getAttributeNS(e.space, e.local)) === (a = u + '') + ? null + : s === r && a === i + ? o + : ((i = a), (o = t((r = s), u))); + this.removeAttributeNS(e.space, e.local); + }; + } + function Fr(e, t) { + var n, r; + function i() { + var i = t.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function (e, t) { + return function (n) { + this.setAttributeNS(e.space, e.local, t.call(this, n)); + }; + })(e, i)), + n + ); + } + return (i._value = t), i; + } + function Yr(e, t) { + var n, r; + function i() { + var i = t.apply(this, arguments); + return ( + i !== r && + (n = + (r = i) && + (function (e, t) { + return function (n) { + this.setAttribute(e, t.call(this, n)); + }; + })(e, i)), + n + ); + } + return (i._value = t), i; + } + function jr(e, t) { + return function () { + fr(this, e).delay = +t.apply(this, arguments); + }; + } + function Br(e, t) { + return ( + (t = +t), + function () { + fr(this, e).delay = t; + } + ); + } + function Wr(e, t) { + return function () { + pr(this, e).duration = +t.apply(this, arguments); + }; + } + function Hr(e, t) { + return ( + (t = +t), + function () { + pr(this, e).duration = t; + } + ); + } + function Vr(e, t) { + if ('function' != typeof t) throw new Error(); + return function () { + pr(this, e).ease = t; + }; + } + function zr(e, t, n) { + var r, + i, + o = (function (e) { + return (e + '') + .trim() + .split(/^|\s+/) + .every(function (e) { + var t = e.indexOf('.'); + return t >= 0 && (e = e.slice(0, t)), !e || 'start' === e; + }); + })(t) + ? fr + : pr; + return function () { + var s = o(this, e), + a = s.on; + a !== r && (i = (r = a).copy()).on(t, n), (s.on = i); + }; + } + var Ur = Mt.prototype.constructor; + function qr(e) { + return function () { + this.style.removeProperty(e); + }; + } + function Kr(e, t, n) { + var r, i; + function o() { + var o = t.apply(this, arguments); + return ( + o !== i && + (r = + (i = o) && + (function (e, t, n) { + return function (r) { + this.style.setProperty(e, t.call(this, r), n); + }; + })(e, o, n)), + r + ); + } + return (o._value = t), o; + } + function Gr(e) { + var t, n; + function r() { + var r = e.apply(this, arguments); + return ( + r !== n && + (t = + (n = r) && + (function (e) { + return function (t) { + this.textContent = e.call(this, t); + }; + })(r)), + t + ); + } + return (r._value = e), r; + } + var $r = 0; + function Zr(e, t, n, r) { + (this._groups = e), (this._parents = t), (this._name = n), (this._id = r); + } + function Xr(e) { + return Mt().transition(e); + } + function Jr() { + return ++$r; + } + var Qr = Mt.prototype; + function ei(e) { + return e * e * e; + } + function ti(e) { + return --e * e * e + 1; + } + function ni(e) { + return ((e *= 2) <= 1 ? e * e * e : (e -= 2) * e * e + 2) / 2; + } + Zr.prototype = Xr.prototype = { + constructor: Zr, + select: function (e) { + var t = this._name, + n = this._id; + 'function' != typeof e && (e = _e(e)); + for ( + var r = this._groups, i = r.length, o = new Array(i), s = 0; + s < i; + ++s + ) + for ( + var a, u, l = r[s], c = l.length, d = (o[s] = new Array(c)), h = 0; + h < c; + ++h + ) + (a = l[h]) && + (u = e.call(a, a.__data__, h, l)) && + ('__data__' in a && (u.__data__ = a.__data__), + (d[h] = u), + hr(d[h], t, n, h, d, gr(a, n))); + return new Zr(o, this._parents, t, n); + }, + selectAll: function (e) { + var t = this._name, + n = this._id; + 'function' != typeof e && (e = ve(e)); + for ( + var r = this._groups, i = r.length, o = [], s = [], a = 0; + a < i; + ++a + ) + for (var u, l = r[a], c = l.length, d = 0; d < c; ++d) + if ((u = l[d])) { + for ( + var h, + f = e.call(u, u.__data__, d, l), + p = gr(u, n), + g = 0, + m = f.length; + g < m; + ++g + ) + (h = f[g]) && hr(h, t, n, g, f, p); + o.push(f), s.push(u); + } + return new Zr(o, s, t, n); + }, + filter: function (e) { + 'function' != typeof e && (e = be(e)); + for ( + var t = this._groups, n = t.length, r = new Array(n), i = 0; + i < n; + ++i + ) + for ( + var o, s = t[i], a = s.length, u = (r[i] = []), l = 0; + l < a; + ++l + ) + (o = s[l]) && e.call(o, o.__data__, l, s) && u.push(o); + return new Zr(r, this._parents, this._name, this._id); + }, + merge: function (e) { + if (e._id !== this._id) throw new Error(); + for ( + var t = this._groups, + n = e._groups, + r = t.length, + i = n.length, + o = Math.min(r, i), + s = new Array(r), + a = 0; + a < o; + ++a + ) + for ( + var u, + l = t[a], + c = n[a], + d = l.length, + h = (s[a] = new Array(d)), + f = 0; + f < d; + ++f + ) + (u = l[f] || c[f]) && (h[f] = u); + for (; a < r; ++a) s[a] = t[a]; + return new Zr(s, this._parents, this._name, this._id); + }, + selection: function () { + return new Ur(this._groups, this._parents); + }, + transition: function () { + for ( + var e = this._name, + t = this._id, + n = Jr(), + r = this._groups, + i = r.length, + o = 0; + o < i; + ++o + ) + for (var s, a = r[o], u = a.length, l = 0; l < u; ++l) + if ((s = a[l])) { + var c = gr(s, t); + hr(s, e, n, l, a, { + time: c.time + c.delay + c.duration, + delay: 0, + duration: c.duration, + ease: c.ease, + }); + } + return new Zr(r, this._parents, e, n); + }, + call: Qr.call, + nodes: Qr.nodes, + node: Qr.node, + size: Qr.size, + empty: Qr.empty, + each: Qr.each, + on: function (e, t) { + var n = this._id; + return arguments.length < 2 + ? gr(this.node(), n).on.on(e) + : this.each(zr(n, e, t)); + }, + attr: function (e, t) { + var n = Ee(e), + r = 'transform' === n ? kr : Tr; + return this.attrTween( + e, + 'function' == typeof t + ? (n.local ? Rr : Pr)(n, r, Er(this, 'attr.' + e, t)) + : null == t + ? (n.local ? Or : Nr)(n) + : (n.local ? Ir : Ar)(n, r, t) + ); + }, + attrTween: function (e, t) { + var n = 'attr.' + e; + if (arguments.length < 2) return (n = this.tween(n)) && n._value; + if (null == t) return this.tween(n, null); + if ('function' != typeof t) throw new Error(); + var r = Ee(e); + return this.tween(n, (r.local ? Fr : Yr)(r, t)); + }, + style: function (e, t, n) { + var r = 'transform' == (e += '') ? Lr : Tr; + return null == t + ? this.styleTween( + e, + (function (e, t) { + var n, r, i; + return function () { + var o = Be(this, e), + s = (this.style.removeProperty(e), Be(this, e)); + return o === s + ? null + : o === n && s === r + ? i + : (i = t((n = o), (r = s))); + }; + })(e, r) + ).on('end.style.' + e, qr(e)) + : 'function' == typeof t + ? this.styleTween( + e, + (function (e, t, n) { + var r, i, o; + return function () { + var s = Be(this, e), + a = n(this), + u = a + ''; + return ( + null == a && + (this.style.removeProperty(e), (u = a = Be(this, e))), + s === u + ? null + : s === r && u === i + ? o + : ((i = u), (o = t((r = s), a))) + ); + }; + })(e, r, Er(this, 'style.' + e, t)) + ).each( + (function (e, t) { + var n, + r, + i, + o, + s = 'style.' + t, + a = 'end.' + s; + return function () { + var u = pr(this, e), + l = u.on, + c = null == u.value[s] ? o || (o = qr(t)) : void 0; + (l === n && i === c) || (r = (n = l).copy()).on(a, (i = c)), + (u.on = r); + }; + })(this._id, e) + ) + : this.styleTween( + e, + (function (e, t, n) { + var r, + i, + o = n + ''; + return function () { + var s = Be(this, e); + return s === o ? null : s === r ? i : (i = t((r = s), n)); + }; + })(e, r, t), + n + ).on('end.style.' + e, null); + }, + styleTween: function (e, t, n) { + var r = 'style.' + (e += ''); + if (arguments.length < 2) return (r = this.tween(r)) && r._value; + if (null == t) return this.tween(r, null); + if ('function' != typeof t) throw new Error(); + return this.tween(r, Kr(e, t, null == n ? '' : n)); + }, + text: function (e) { + return this.tween( + 'text', + 'function' == typeof e + ? (function (e) { + return function () { + var t = e(this); + this.textContent = null == t ? '' : t; + }; + })(Er(this, 'text', e)) + : (function (e) { + return function () { + this.textContent = e; + }; + })(null == e ? '' : e + '') + ); + }, + textTween: function (e) { + var t = 'text'; + if (arguments.length < 1) return (t = this.tween(t)) && t._value; + if (null == e) return this.tween(t, null); + if ('function' != typeof e) throw new Error(); + return this.tween(t, Gr(e)); + }, + remove: function () { + return this.on( + 'end.remove', + ((e = this._id), + function () { + var t = this.parentNode; + for (var n in this.__transition) if (+n !== e) return; + t && t.removeChild(this); + }) + ); + var e; + }, + tween: function (e, t) { + var n = this._id; + if (((e += ''), arguments.length < 2)) { + for ( + var r, i = gr(this.node(), n).tween, o = 0, s = i.length; + o < s; + ++o + ) + if ((r = i[o]).name === e) return r.value; + return null; + } + return this.each((null == t ? Mr : Dr)(n, e, t)); + }, + delay: function (e) { + var t = this._id; + return arguments.length + ? this.each(('function' == typeof e ? jr : Br)(t, e)) + : gr(this.node(), t).delay; + }, + duration: function (e) { + var t = this._id; + return arguments.length + ? this.each(('function' == typeof e ? Wr : Hr)(t, e)) + : gr(this.node(), t).duration; + }, + ease: function (e) { + var t = this._id; + return arguments.length ? this.each(Vr(t, e)) : gr(this.node(), t).ease; + }, + end: function () { + var e, + t, + n = this, + r = n._id, + i = n.size(); + return new Promise(function (o, s) { + var a = { value: s }, + u = { + value: function () { + 0 == --i && o(); + }, + }; + n.each(function () { + var n = pr(this, r), + i = n.on; + i !== e && + ((t = (e = i).copy())._.cancel.push(a), + t._.interrupt.push(a), + t._.end.push(u)), + (n.on = t); + }); + }); + }, + }; + var ri = { time: null, delay: 0, duration: 250, ease: ni }; + function ii(e, t) { + for (var n; !(n = e.__transition) || !(n = n[t]); ) + if (!(e = e.parentNode)) return (ri.time = Gn()), ri; + return n; + } + (Mt.prototype.interrupt = function (e) { + return this.each(function () { + br(this, e); + }); + }), + (Mt.prototype.transition = function (e) { + var t, n; + e instanceof Zr + ? ((t = e._id), (e = e._name)) + : ((t = Jr()), + ((n = ri).time = Gn()), + (e = null == e ? null : e + '')); + for (var r = this._groups, i = r.length, o = 0; o < i; ++o) + for (var s, a = r[o], u = a.length, l = 0; l < u; ++l) + (s = a[l]) && hr(s, e, t, l, a, n || ii(s, t)); + return new Zr(r, this._parents, e, t); + }); + var oi = [null], + si = function (e, t) { + var n, + r, + i = e.__transition; + if (i) + for (r in ((t = null == t ? null : t + ''), i)) + if ((n = i[r]).state > sr && n.name === t) + return new Zr([[e]], oi, t, +r); + return null; + }, + ai = function (e) { + return function () { + return e; + }; + }, + ui = function (e, t, n) { + (this.target = e), (this.type = t), (this.selection = n); + }; + function li() { + pt.stopImmediatePropagation(); + } + var ci = function () { + pt.preventDefault(), pt.stopImmediatePropagation(); + }, + di = { name: 'drag' }, + hi = { name: 'space' }, + fi = { name: 'handle' }, + pi = { name: 'center' }; + function gi(e) { + return [+e[0], +e[1]]; + } + function mi(e) { + return [gi(e[0]), gi(e[1])]; + } + var _i = { + name: 'x', + handles: ['w', 'e'].map(Li), + input: function (e, t) { + return null == e + ? null + : [ + [+e[0], t[0][1]], + [+e[1], t[1][1]], + ]; + }, + output: function (e) { + return e && [e[0][0], e[1][0]]; + }, + }, + yi = { + name: 'y', + handles: ['n', 's'].map(Li), + input: function (e, t) { + return null == e + ? null + : [ + [t[0][0], +e[0]], + [t[1][0], +e[1]], + ]; + }, + output: function (e) { + return e && [e[0][1], e[1][1]]; + }, + }, + vi = { + name: 'xy', + handles: ['n', 'w', 'e', 's', 'nw', 'ne', 'sw', 'se'].map(Li), + input: function (e) { + return null == e ? null : mi(e); + }, + output: function (e) { + return e; + }, + }, + bi = { + overlay: 'crosshair', + selection: 'move', + n: 'ns-resize', + e: 'ew-resize', + s: 'ns-resize', + w: 'ew-resize', + nw: 'nwse-resize', + ne: 'nesw-resize', + se: 'nwse-resize', + sw: 'nesw-resize', + }, + wi = { e: 'w', w: 'e', nw: 'ne', ne: 'nw', se: 'sw', sw: 'se' }, + Ci = { n: 's', s: 'n', nw: 'sw', ne: 'se', se: 'ne', sw: 'nw' }, + Si = { + overlay: 1, + selection: 1, + n: null, + e: 1, + s: null, + w: -1, + nw: -1, + ne: 1, + se: 1, + sw: -1, + }, + xi = { + overlay: 1, + selection: 1, + n: -1, + e: null, + s: 1, + w: null, + nw: -1, + ne: -1, + se: 1, + sw: 1, + }; + function Li(e) { + return { type: e }; + } + function ki() { + return !pt.ctrlKey && !pt.button; + } + function Mi() { + var e = this.ownerSVGElement || this; + return e.hasAttribute('viewBox') + ? [ + [(e = e.viewBox.baseVal).x, e.y], + [e.x + e.width, e.y + e.height], + ] + : [ + [0, 0], + [e.width.baseVal.value, e.height.baseVal.value], + ]; + } + function Di() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function Ei(e) { + for (; !e.__brush; ) if (!(e = e.parentNode)) return; + return e.__brush; + } + function Ti(e) { + var t = e.__brush; + return t ? t.dim.output(t.selection) : null; + } + function Ni() { + return Ii(_i); + } + function Oi() { + return Ii(yi); + } + var Ai = function () { + return Ii(vi); + }; + function Ii(e) { + var t, + n = Mi, + r = ki, + i = Di, + o = !0, + s = ge('start', 'brush', 'end'), + a = 6; + function u(t) { + var n = t + .property('__brush', g) + .selectAll('.overlay') + .data([Li('overlay')]); + n + .enter() + .append('rect') + .attr('class', 'overlay') + .attr('pointer-events', 'all') + .attr('cursor', bi.overlay) + .merge(n) + .each(function () { + var e = Ei(this).extent; + Dt(this) + .attr('x', e[0][0]) + .attr('y', e[0][1]) + .attr('width', e[1][0] - e[0][0]) + .attr('height', e[1][1] - e[0][1]); + }), + t + .selectAll('.selection') + .data([Li('selection')]) + .enter() + .append('rect') + .attr('class', 'selection') + .attr('cursor', bi.selection) + .attr('fill', '#777') + .attr('fill-opacity', 0.3) + .attr('stroke', '#fff') + .attr('shape-rendering', 'crispEdges'); + var r = t.selectAll('.handle').data(e.handles, function (e) { + return e.type; + }); + r.exit().remove(), + r + .enter() + .append('rect') + .attr('class', function (e) { + return 'handle handle--' + e.type; + }) + .attr('cursor', function (e) { + return bi[e.type]; + }), + t + .each(l) + .attr('fill', 'none') + .attr('pointer-events', 'all') + .on('mousedown.brush', h) + .filter(i) + .on('touchstart.brush', h) + .on('touchmove.brush', f) + .on('touchend.brush touchcancel.brush', p) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function l() { + var e = Dt(this), + t = Ei(this).selection; + t + ? (e + .selectAll('.selection') + .style('display', null) + .attr('x', t[0][0]) + .attr('y', t[0][1]) + .attr('width', t[1][0] - t[0][0]) + .attr('height', t[1][1] - t[0][1]), + e + .selectAll('.handle') + .style('display', null) + .attr('x', function (e) { + return 'e' === e.type[e.type.length - 1] + ? t[1][0] - a / 2 + : t[0][0] - a / 2; + }) + .attr('y', function (e) { + return 's' === e.type[0] ? t[1][1] - a / 2 : t[0][1] - a / 2; + }) + .attr('width', function (e) { + return 'n' === e.type || 's' === e.type + ? t[1][0] - t[0][0] + a + : a; + }) + .attr('height', function (e) { + return 'e' === e.type || 'w' === e.type + ? t[1][1] - t[0][1] + a + : a; + })) + : e + .selectAll('.selection,.handle') + .style('display', 'none') + .attr('x', null) + .attr('y', null) + .attr('width', null) + .attr('height', null); + } + function c(e, t, n) { + return (!n && e.__brush.emitter) || new d(e, t); + } + function d(e, t) { + (this.that = e), + (this.args = t), + (this.state = e.__brush), + (this.active = 0); + } + function h() { + if ((!t || pt.touches) && r.apply(this, arguments)) { + var n, + i, + s, + a, + u, + d, + h, + f, + p, + g, + m, + _, + y = this, + v = pt.target.__data__.type, + b = + 'selection' === (o && pt.metaKey ? (v = 'overlay') : v) + ? di + : o && pt.altKey + ? pi + : fi, + w = e === yi ? null : Si[v], + C = e === _i ? null : xi[v], + S = Ei(y), + x = S.extent, + L = S.selection, + k = x[0][0], + M = x[0][1], + D = x[1][0], + E = x[1][1], + T = 0, + N = 0, + O = w && C && o && pt.shiftKey, + A = pt.touches + ? ((_ = pt.changedTouches[0].identifier), + function (e) { + return Fn(e, pt.touches, _); + }) + : Yn, + I = A(y), + P = I, + R = c(y, arguments, !0).beforestart(); + 'overlay' === v + ? (L && (p = !0), + (S.selection = L = [ + [(n = e === yi ? k : I[0]), (s = e === _i ? M : I[1])], + [(u = e === yi ? D : n), (h = e === _i ? E : s)], + ])) + : ((n = L[0][0]), (s = L[0][1]), (u = L[1][0]), (h = L[1][1])), + (i = n), + (a = s), + (d = u), + (f = h); + var F = Dt(y).attr('pointer-events', 'none'), + Y = F.selectAll('.overlay').attr('cursor', bi[v]); + if (pt.touches) (R.moved = B), (R.ended = H); + else { + var j = Dt(pt.view) + .on('mousemove.brush', B, !0) + .on('mouseup.brush', H, !0); + o && + j + .on( + 'keydown.brush', + function () { + switch (pt.keyCode) { + case 16: + O = w && C; + break; + case 18: + b === fi && + (w && ((u = d - T * w), (n = i + T * w)), + C && ((h = f - N * C), (s = a + N * C)), + (b = pi), + W()); + break; + case 32: + (b !== fi && b !== pi) || + (w < 0 ? (u = d - T) : w > 0 && (n = i - T), + C < 0 ? (h = f - N) : C > 0 && (s = a - N), + (b = hi), + Y.attr('cursor', bi.selection), + W()); + break; + default: + return; + } + ci(); + }, + !0 + ) + .on( + 'keyup.brush', + function () { + switch (pt.keyCode) { + case 16: + O && ((g = m = O = !1), W()); + break; + case 18: + b === pi && + (w < 0 ? (u = d) : w > 0 && (n = i), + C < 0 ? (h = f) : C > 0 && (s = a), + (b = fi), + W()); + break; + case 32: + b === hi && + (pt.altKey + ? (w && ((u = d - T * w), (n = i + T * w)), + C && ((h = f - N * C), (s = a + N * C)), + (b = pi)) + : (w < 0 ? (u = d) : w > 0 && (n = i), + C < 0 ? (h = f) : C > 0 && (s = a), + (b = fi)), + Y.attr('cursor', bi[v]), + W()); + break; + default: + return; + } + ci(); + }, + !0 + ), + Nt(pt.view); + } + li(), br(y), l.call(y), R.start(); + } + function B() { + var e = A(y); + !O || + g || + m || + (Math.abs(e[0] - P[0]) > Math.abs(e[1] - P[1]) + ? (m = !0) + : (g = !0)), + (P = e), + (p = !0), + ci(), + W(); + } + function W() { + var e; + switch (((T = P[0] - I[0]), (N = P[1] - I[1]), b)) { + case hi: + case di: + w && + ((T = Math.max(k - n, Math.min(D - u, T))), + (i = n + T), + (d = u + T)), + C && + ((N = Math.max(M - s, Math.min(E - h, N))), + (a = s + N), + (f = h + N)); + break; + case fi: + w < 0 + ? ((T = Math.max(k - n, Math.min(D - n, T))), + (i = n + T), + (d = u)) + : w > 0 && + ((T = Math.max(k - u, Math.min(D - u, T))), + (i = n), + (d = u + T)), + C < 0 + ? ((N = Math.max(M - s, Math.min(E - s, N))), + (a = s + N), + (f = h)) + : C > 0 && + ((N = Math.max(M - h, Math.min(E - h, N))), + (a = s), + (f = h + N)); + break; + case pi: + w && + ((i = Math.max(k, Math.min(D, n - T * w))), + (d = Math.max(k, Math.min(D, u + T * w)))), + C && + ((a = Math.max(M, Math.min(E, s - N * C))), + (f = Math.max(M, Math.min(E, h + N * C)))); + } + d < i && + ((w *= -1), + (e = n), + (n = u), + (u = e), + (e = i), + (i = d), + (d = e), + v in wi && Y.attr('cursor', bi[(v = wi[v])])), + f < a && + ((C *= -1), + (e = s), + (s = h), + (h = e), + (e = a), + (a = f), + (f = e), + v in Ci && Y.attr('cursor', bi[(v = Ci[v])])), + S.selection && (L = S.selection), + g && ((i = L[0][0]), (d = L[1][0])), + m && ((a = L[0][1]), (f = L[1][1])), + (L[0][0] === i && + L[0][1] === a && + L[1][0] === d && + L[1][1] === f) || + ((S.selection = [ + [i, a], + [d, f], + ]), + l.call(y), + R.brush()); + } + function H() { + if ((li(), pt.touches)) { + if (pt.touches.length) return; + t && clearTimeout(t), + (t = setTimeout(function () { + t = null; + }, 500)); + } else + Ot(pt.view, p), + j.on( + 'keydown.brush keyup.brush mousemove.brush mouseup.brush', + null + ); + F.attr('pointer-events', 'all'), + Y.attr('cursor', bi.overlay), + S.selection && (L = S.selection), + (function (e) { + return e[0][0] === e[1][0] || e[0][1] === e[1][1]; + })(L) && ((S.selection = null), l.call(y)), + R.end(); + } + } + function f() { + c(this, arguments).moved(); + } + function p() { + c(this, arguments).ended(); + } + function g() { + var t = this.__brush || { selection: null }; + return (t.extent = mi(n.apply(this, arguments))), (t.dim = e), t; + } + return ( + (u.move = function (t, n) { + t.selection + ? t + .on('start.brush', function () { + c(this, arguments).beforestart().start(); + }) + .on('interrupt.brush end.brush', function () { + c(this, arguments).end(); + }) + .tween('brush', function () { + var t = this, + r = t.__brush, + i = c(t, arguments), + o = r.selection, + s = e.input( + 'function' == typeof n ? n.apply(this, arguments) : n, + r.extent + ), + a = In(o, s); + function u(e) { + (r.selection = 1 === e && null === s ? null : a(e)), + l.call(t), + i.brush(); + } + return null !== o && null !== s ? u : u(1); + }) + : t.each(function () { + var t = this, + r = arguments, + i = t.__brush, + o = e.input( + 'function' == typeof n ? n.apply(t, r) : n, + i.extent + ), + s = c(t, r).beforestart(); + br(t), + (i.selection = null === o ? null : o), + l.call(t), + s.start().brush().end(); + }); + }), + (u.clear = function (e) { + u.move(e, null); + }), + (d.prototype = { + beforestart: function () { + return ( + 1 == ++this.active && + ((this.state.emitter = this), (this.starting = !0)), + this + ); + }, + start: function () { + return ( + this.starting + ? ((this.starting = !1), this.emit('start')) + : this.emit('brush'), + this + ); + }, + brush: function () { + return this.emit('brush'), this; + }, + end: function () { + return ( + 0 == --this.active && + (delete this.state.emitter, this.emit('end')), + this + ); + }, + emit: function (t) { + bt(new ui(u, t, e.output(this.state.selection)), s.apply, s, [ + t, + this.that, + this.args, + ]); + }, + }), + (u.extent = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : ai(mi(e))), u) + : n; + }), + (u.filter = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : ai(!!e)), u) + : r; + }), + (u.touchable = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : ai(!!e)), u) + : i; + }), + (u.handleSize = function (e) { + return arguments.length ? ((a = +e), u) : a; + }), + (u.keyModifiers = function (e) { + return arguments.length ? ((o = !!e), u) : o; + }), + (u.on = function () { + var e = s.on.apply(s, arguments); + return e === s ? u : e; + }), + u + ); + } + var Pi = Math.cos, + Ri = Math.sin, + Fi = Math.PI, + Yi = Fi / 2, + ji = 2 * Fi, + Bi = Math.max; + function Wi(e) { + return function (t, n) { + return e( + t.source.value + t.target.value, + n.source.value + n.target.value + ); + }; + } + var Hi = function () { + var e = 0, + t = null, + n = null, + r = null; + function i(i) { + var o, + s, + a, + u, + l, + c, + d = i.length, + h = [], + f = C(d), + p = [], + g = [], + m = (g.groups = new Array(d)), + _ = new Array(d * d); + for (o = 0, l = -1; ++l < d; ) { + for (s = 0, c = -1; ++c < d; ) s += i[l][c]; + h.push(s), p.push(C(d)), (o += s); + } + for ( + t && + f.sort(function (e, n) { + return t(h[e], h[n]); + }), + n && + p.forEach(function (e, t) { + e.sort(function (e, r) { + return n(i[t][e], i[t][r]); + }); + }), + u = (o = Bi(0, ji - e * d) / o) ? e : ji / d, + s = 0, + l = -1; + ++l < d; + + ) { + for (a = s, c = -1; ++c < d; ) { + var y = f[l], + v = p[y][c], + b = i[y][v], + w = s, + S = (s += b * o); + _[v * d + y] = { + index: y, + subindex: v, + startAngle: w, + endAngle: S, + value: b, + }; + } + (m[y] = { index: y, startAngle: a, endAngle: s, value: h[y] }), + (s += u); + } + for (l = -1; ++l < d; ) + for (c = l - 1; ++c < d; ) { + var x = _[c * d + l], + L = _[l * d + c]; + (x.value || L.value) && + g.push( + x.value < L.value + ? { source: L, target: x } + : { source: x, target: L } + ); + } + return r ? g.sort(r) : g; + } + return ( + (i.padAngle = function (t) { + return arguments.length ? ((e = Bi(0, t)), i) : e; + }), + (i.sortGroups = function (e) { + return arguments.length ? ((t = e), i) : t; + }), + (i.sortSubgroups = function (e) { + return arguments.length ? ((n = e), i) : n; + }), + (i.sortChords = function (e) { + return arguments.length + ? (null == e ? (r = null) : ((r = Wi(e))._ = e), i) + : r && r._; + }), + i + ); + }, + Vi = Array.prototype.slice, + zi = function (e) { + return function () { + return e; + }; + }, + Ui = Math.PI, + qi = 2 * Ui, + Ki = qi - 1e-6; + function Gi() { + (this._x0 = this._y0 = this._x1 = this._y1 = null), (this._ = ''); + } + function $i() { + return new Gi(); + } + Gi.prototype = $i.prototype = { + constructor: Gi, + moveTo: function (e, t) { + this._ += + 'M' + (this._x0 = this._x1 = +e) + ',' + (this._y0 = this._y1 = +t); + }, + closePath: function () { + null !== this._x1 && + ((this._x1 = this._x0), (this._y1 = this._y0), (this._ += 'Z')); + }, + lineTo: function (e, t) { + this._ += 'L' + (this._x1 = +e) + ',' + (this._y1 = +t); + }, + quadraticCurveTo: function (e, t, n, r) { + this._ += + 'Q' + +e + ',' + +t + ',' + (this._x1 = +n) + ',' + (this._y1 = +r); + }, + bezierCurveTo: function (e, t, n, r, i, o) { + this._ += + 'C' + + +e + + ',' + + +t + + ',' + + +n + + ',' + + +r + + ',' + + (this._x1 = +i) + + ',' + + (this._y1 = +o); + }, + arcTo: function (e, t, n, r, i) { + (e = +e), (t = +t), (n = +n), (r = +r), (i = +i); + var o = this._x1, + s = this._y1, + a = n - e, + u = r - t, + l = o - e, + c = s - t, + d = l * l + c * c; + if (i < 0) throw new Error('negative radius: ' + i); + if (null === this._x1) + this._ += 'M' + (this._x1 = e) + ',' + (this._y1 = t); + else if (d > 1e-6) + if (Math.abs(c * a - u * l) > 1e-6 && i) { + var h = n - o, + f = r - s, + p = a * a + u * u, + g = h * h + f * f, + m = Math.sqrt(p), + _ = Math.sqrt(d), + y = i * Math.tan((Ui - Math.acos((p + d - g) / (2 * m * _))) / 2), + v = y / _, + b = y / m; + Math.abs(v - 1) > 1e-6 && + (this._ += 'L' + (e + v * l) + ',' + (t + v * c)), + (this._ += + 'A' + + i + + ',' + + i + + ',0,0,' + + +(c * h > l * f) + + ',' + + (this._x1 = e + b * a) + + ',' + + (this._y1 = t + b * u)); + } else this._ += 'L' + (this._x1 = e) + ',' + (this._y1 = t); + else; + }, + arc: function (e, t, n, r, i, o) { + (e = +e), (t = +t), (o = !!o); + var s = (n = +n) * Math.cos(r), + a = n * Math.sin(r), + u = e + s, + l = t + a, + c = 1 ^ o, + d = o ? r - i : i - r; + if (n < 0) throw new Error('negative radius: ' + n); + null === this._x1 + ? (this._ += 'M' + u + ',' + l) + : (Math.abs(this._x1 - u) > 1e-6 || Math.abs(this._y1 - l) > 1e-6) && + (this._ += 'L' + u + ',' + l), + n && + (d < 0 && (d = (d % qi) + qi), + d > Ki + ? (this._ += + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (e - s) + + ',' + + (t - a) + + 'A' + + n + + ',' + + n + + ',0,1,' + + c + + ',' + + (this._x1 = u) + + ',' + + (this._y1 = l)) + : d > 1e-6 && + (this._ += + 'A' + + n + + ',' + + n + + ',0,' + + +(d >= Ui) + + ',' + + c + + ',' + + (this._x1 = e + n * Math.cos(i)) + + ',' + + (this._y1 = t + n * Math.sin(i)))); + }, + rect: function (e, t, n, r) { + this._ += + 'M' + + (this._x0 = this._x1 = +e) + + ',' + + (this._y0 = this._y1 = +t) + + 'h' + + +n + + 'v' + + +r + + 'h' + + -n + + 'Z'; + }, + toString: function () { + return this._; + }, + }; + var Zi = $i; + function Xi(e) { + return e.source; + } + function Ji(e) { + return e.target; + } + function Qi(e) { + return e.radius; + } + function eo(e) { + return e.startAngle; + } + function to(e) { + return e.endAngle; + } + var no = function () { + var e = Xi, + t = Ji, + n = Qi, + r = eo, + i = to, + o = null; + function s() { + var s, + a = Vi.call(arguments), + u = e.apply(this, a), + l = t.apply(this, a), + c = +n.apply(this, ((a[0] = u), a)), + d = r.apply(this, a) - Yi, + h = i.apply(this, a) - Yi, + f = c * Pi(d), + p = c * Ri(d), + g = +n.apply(this, ((a[0] = l), a)), + m = r.apply(this, a) - Yi, + _ = i.apply(this, a) - Yi; + if ( + (o || (o = s = Zi()), + o.moveTo(f, p), + o.arc(0, 0, c, d, h), + (d === m && h === _) || + (o.quadraticCurveTo(0, 0, g * Pi(m), g * Ri(m)), + o.arc(0, 0, g, m, _)), + o.quadraticCurveTo(0, 0, f, p), + o.closePath(), + s) + ) + return (o = null), s + '' || null; + } + return ( + (s.radius = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : zi(+e)), s) + : n; + }), + (s.startAngle = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : zi(+e)), s) + : r; + }), + (s.endAngle = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : zi(+e)), s) + : i; + }), + (s.source = function (t) { + return arguments.length ? ((e = t), s) : e; + }), + (s.target = function (e) { + return arguments.length ? ((t = e), s) : t; + }), + (s.context = function (e) { + return arguments.length ? ((o = null == e ? null : e), s) : o; + }), + s + ); + }; + function ro() {} + function io(e, t) { + var n = new ro(); + if (e instanceof ro) + e.each(function (e, t) { + n.set(t, e); + }); + else if (Array.isArray(e)) { + var r, + i = -1, + o = e.length; + if (null == t) for (; ++i < o; ) n.set(i, e[i]); + else for (; ++i < o; ) n.set(t((r = e[i]), i, e), r); + } else if (e) for (var s in e) n.set(s, e[s]); + return n; + } + ro.prototype = io.prototype = { + constructor: ro, + has: function (e) { + return '$' + e in this; + }, + get: function (e) { + return this['$' + e]; + }, + set: function (e, t) { + return (this['$' + e] = t), this; + }, + remove: function (e) { + var t = '$' + e; + return t in this && delete this[t]; + }, + clear: function () { + for (var e in this) '$' === e[0] && delete this[e]; + }, + keys: function () { + var e = []; + for (var t in this) '$' === t[0] && e.push(t.slice(1)); + return e; + }, + values: function () { + var e = []; + for (var t in this) '$' === t[0] && e.push(this[t]); + return e; + }, + entries: function () { + var e = []; + for (var t in this) + '$' === t[0] && e.push({ key: t.slice(1), value: this[t] }); + return e; + }, + size: function () { + var e = 0; + for (var t in this) '$' === t[0] && ++e; + return e; + }, + empty: function () { + for (var e in this) if ('$' === e[0]) return !1; + return !0; + }, + each: function (e) { + for (var t in this) '$' === t[0] && e(this[t], t.slice(1), this); + }, + }; + var oo = io, + so = function () { + var e, + t, + n, + r = [], + i = []; + function o(n, i, s, a) { + if (i >= r.length) + return null != e && n.sort(e), null != t ? t(n) : n; + for ( + var u, l, c, d = -1, h = n.length, f = r[i++], p = oo(), g = s(); + ++d < h; + + ) + (c = p.get((u = f((l = n[d])) + ''))) ? c.push(l) : p.set(u, [l]); + return ( + p.each(function (e, t) { + a(g, t, o(e, i, s, a)); + }), + g + ); + } + return (n = { + object: function (e) { + return o(e, 0, ao, uo); + }, + map: function (e) { + return o(e, 0, lo, co); + }, + entries: function (e) { + return (function e(n, o) { + if (++o > r.length) return n; + var s, + a = i[o - 1]; + return ( + null != t && o >= r.length + ? (s = n.entries()) + : ((s = []), + n.each(function (t, n) { + s.push({ key: n, values: e(t, o) }); + })), + null != a + ? s.sort(function (e, t) { + return a(e.key, t.key); + }) + : s + ); + })(o(e, 0, lo, co), 0); + }, + key: function (e) { + return r.push(e), n; + }, + sortKeys: function (e) { + return (i[r.length - 1] = e), n; + }, + sortValues: function (t) { + return (e = t), n; + }, + rollup: function (e) { + return (t = e), n; + }, + }); + }; + function ao() { + return {}; + } + function uo(e, t, n) { + e[t] = n; + } + function lo() { + return oo(); + } + function co(e, t, n) { + e.set(t, n); + } + function ho() {} + var fo = oo.prototype; + function po(e, t) { + var n = new ho(); + if (e instanceof ho) + e.each(function (e) { + n.add(e); + }); + else if (e) { + var r = -1, + i = e.length; + if (null == t) for (; ++r < i; ) n.add(e[r]); + else for (; ++r < i; ) n.add(t(e[r], r, e)); + } + return n; + } + ho.prototype = po.prototype = { + constructor: ho, + has: fo.has, + add: function (e) { + return (this['$' + (e += '')] = e), this; + }, + remove: fo.remove, + clear: fo.clear, + values: fo.keys, + size: fo.size, + empty: fo.empty, + each: fo.each, + }; + var go = po, + mo = function (e) { + var t = []; + for (var n in e) t.push(n); + return t; + }, + _o = function (e) { + var t = []; + for (var n in e) t.push(e[n]); + return t; + }, + yo = function (e) { + var t = []; + for (var n in e) t.push({ key: n, value: e[n] }); + return t; + }, + vo = Math.PI / 180, + bo = 180 / Math.PI, + wo = 0.96422, + Co = 1, + So = 0.82521, + xo = 4 / 29, + Lo = 6 / 29, + ko = 3 * Lo * Lo, + Mo = Lo * Lo * Lo; + function Do(e) { + if (e instanceof No) return new No(e.l, e.a, e.b, e.opacity); + if (e instanceof jo) return Bo(e); + e instanceof en || (e = Jt(e)); + var t, + n, + r = Po(e.r), + i = Po(e.g), + o = Po(e.b), + s = Oo((0.2225045 * r + 0.7168786 * i + 0.0606169 * o) / Co); + return ( + r === i && i === o + ? (t = n = s) + : ((t = Oo((0.4360747 * r + 0.3850649 * i + 0.1430804 * o) / wo)), + (n = Oo((0.0139322 * r + 0.0971045 * i + 0.7141733 * o) / So))), + new No(116 * s - 16, 500 * (t - s), 200 * (s - n), e.opacity) + ); + } + function Eo(e, t) { + return new No(e, 0, 0, null == t ? 1 : t); + } + function To(e, t, n, r) { + return 1 === arguments.length + ? Do(e) + : new No(e, t, n, null == r ? 1 : r); + } + function No(e, t, n, r) { + (this.l = +e), (this.a = +t), (this.b = +n), (this.opacity = +r); + } + function Oo(e) { + return e > Mo ? Math.pow(e, 1 / 3) : e / ko + xo; + } + function Ao(e) { + return e > Lo ? e * e * e : ko * (e - xo); + } + function Io(e) { + return ( + 255 * + (e <= 0.0031308 ? 12.92 * e : 1.055 * Math.pow(e, 1 / 2.4) - 0.055) + ); + } + function Po(e) { + return (e /= 255) <= 0.04045 + ? e / 12.92 + : Math.pow((e + 0.055) / 1.055, 2.4); + } + function Ro(e) { + if (e instanceof jo) return new jo(e.h, e.c, e.l, e.opacity); + if ((e instanceof No || (e = Do(e)), 0 === e.a && 0 === e.b)) + return new jo(NaN, 0 < e.l && e.l < 100 ? 0 : NaN, e.l, e.opacity); + var t = Math.atan2(e.b, e.a) * bo; + return new jo( + t < 0 ? t + 360 : t, + Math.sqrt(e.a * e.a + e.b * e.b), + e.l, + e.opacity + ); + } + function Fo(e, t, n, r) { + return 1 === arguments.length + ? Ro(e) + : new jo(n, t, e, null == r ? 1 : r); + } + function Yo(e, t, n, r) { + return 1 === arguments.length + ? Ro(e) + : new jo(e, t, n, null == r ? 1 : r); + } + function jo(e, t, n, r) { + (this.h = +e), (this.c = +t), (this.l = +n), (this.opacity = +r); + } + function Bo(e) { + if (isNaN(e.h)) return new No(e.l, 0, 0, e.opacity); + var t = e.h * vo; + return new No(e.l, Math.cos(t) * e.c, Math.sin(t) * e.c, e.opacity); + } + At( + No, + To, + It(Pt, { + brighter: function (e) { + return new No( + this.l + 18 * (null == e ? 1 : e), + this.a, + this.b, + this.opacity + ); + }, + darker: function (e) { + return new No( + this.l - 18 * (null == e ? 1 : e), + this.a, + this.b, + this.opacity + ); + }, + rgb: function () { + var e = (this.l + 16) / 116, + t = isNaN(this.a) ? e : e + this.a / 500, + n = isNaN(this.b) ? e : e - this.b / 200; + return new en( + Io( + 3.1338561 * (t = wo * Ao(t)) - + 1.6168667 * (e = Co * Ao(e)) - + 0.4906146 * (n = So * Ao(n)) + ), + Io(-0.9787684 * t + 1.9161415 * e + 0.033454 * n), + Io(0.0719453 * t - 0.2289914 * e + 1.4052427 * n), + this.opacity + ); + }, + }) + ), + At( + jo, + Yo, + It(Pt, { + brighter: function (e) { + return new jo( + this.h, + this.c, + this.l + 18 * (null == e ? 1 : e), + this.opacity + ); + }, + darker: function (e) { + return new jo( + this.h, + this.c, + this.l - 18 * (null == e ? 1 : e), + this.opacity + ); + }, + rgb: function () { + return Bo(this).rgb(); + }, + }) + ); + var Wo = -0.29227, + Ho = -0.90649, + Vo = 1.97294, + zo = Vo * Ho, + Uo = 1.78277 * Vo, + qo = 1.78277 * Wo - -0.14861 * Ho; + function Ko(e, t, n, r) { + return 1 === arguments.length + ? (function (e) { + if (e instanceof Go) return new Go(e.h, e.s, e.l, e.opacity); + e instanceof en || (e = Jt(e)); + var t = e.r / 255, + n = e.g / 255, + r = e.b / 255, + i = (qo * r + zo * t - Uo * n) / (qo + zo - Uo), + o = r - i, + s = (Vo * (n - i) - Wo * o) / Ho, + a = Math.sqrt(s * s + o * o) / (Vo * i * (1 - i)), + u = a ? Math.atan2(s, o) * bo - 120 : NaN; + return new Go(u < 0 ? u + 360 : u, a, i, e.opacity); + })(e) + : new Go(e, t, n, null == r ? 1 : r); + } + function Go(e, t, n, r) { + (this.h = +e), (this.s = +t), (this.l = +n), (this.opacity = +r); + } + At( + Go, + Ko, + It(Pt, { + brighter: function (e) { + return ( + (e = null == e ? 1 / 0.7 : Math.pow(1 / 0.7, e)), + new Go(this.h, this.s, this.l * e, this.opacity) + ); + }, + darker: function (e) { + return ( + (e = null == e ? 0.7 : Math.pow(0.7, e)), + new Go(this.h, this.s, this.l * e, this.opacity) + ); + }, + rgb: function () { + var e = isNaN(this.h) ? 0 : (this.h + 120) * vo, + t = +this.l, + n = isNaN(this.s) ? 0 : this.s * t * (1 - t), + r = Math.cos(e), + i = Math.sin(e); + return new en( + 255 * (t + n * (-0.14861 * r + 1.78277 * i)), + 255 * (t + n * (Wo * r + Ho * i)), + 255 * (t + n * (Vo * r)), + this.opacity + ); + }, + }) + ); + var $o = Array.prototype.slice, + Zo = function (e, t) { + return e - t; + }, + Xo = function (e) { + for ( + var t = 0, + n = e.length, + r = e[n - 1][1] * e[0][0] - e[n - 1][0] * e[0][1]; + ++t < n; + + ) + r += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1]; + return r; + }, + Jo = function (e) { + return function () { + return e; + }; + }, + Qo = function (e, t) { + for (var n, r = -1, i = t.length; ++r < i; ) + if ((n = es(e, t[r]))) return n; + return 0; + }; + function es(e, t) { + for ( + var n = t[0], r = t[1], i = -1, o = 0, s = e.length, a = s - 1; + o < s; + a = o++ + ) { + var u = e[o], + l = u[0], + c = u[1], + d = e[a], + h = d[0], + f = d[1]; + if (ts(u, d, t)) return 0; + c > r != f > r && n < ((h - l) * (r - c)) / (f - c) + l && (i = -i); + } + return i; + } + function ts(e, t, n) { + var r, i, o, s; + return ( + (function (e, t, n) { + return (t[0] - e[0]) * (n[1] - e[1]) == (n[0] - e[0]) * (t[1] - e[1]); + })(e, t, n) && + ((i = e[(r = +(e[0] === t[0]))]), + (o = n[r]), + (s = t[r]), + (i <= o && o <= s) || (s <= o && o <= i)) + ); + } + var ns = function () {}, + rs = [ + [], + [ + [ + [1, 1.5], + [0.5, 1], + ], + ], + [ + [ + [1.5, 1], + [1, 1.5], + ], + ], + [ + [ + [1.5, 1], + [0.5, 1], + ], + ], + [ + [ + [1, 0.5], + [1.5, 1], + ], + ], + [ + [ + [1, 1.5], + [0.5, 1], + ], + [ + [1, 0.5], + [1.5, 1], + ], + ], + [ + [ + [1, 0.5], + [1, 1.5], + ], + ], + [ + [ + [1, 0.5], + [0.5, 1], + ], + ], + [ + [ + [0.5, 1], + [1, 0.5], + ], + ], + [ + [ + [1, 1.5], + [1, 0.5], + ], + ], + [ + [ + [0.5, 1], + [1, 0.5], + ], + [ + [1.5, 1], + [1, 1.5], + ], + ], + [ + [ + [1.5, 1], + [1, 0.5], + ], + ], + [ + [ + [0.5, 1], + [1.5, 1], + ], + ], + [ + [ + [1, 1.5], + [1.5, 1], + ], + ], + [ + [ + [0.5, 1], + [1, 1.5], + ], + ], + [], + ], + is = function () { + var e = 1, + t = 1, + n = E, + r = a; + function i(e) { + var t = n(e); + if (Array.isArray(t)) t = t.slice().sort(Zo); + else { + var r = m(e), + i = r[0], + s = r[1]; + (t = D(i, s, t)), + (t = C(Math.floor(i / t) * t, Math.floor(s / t) * t, t)); + } + return t.map(function (t) { + return o(e, t); + }); + } + function o(n, i) { + var o = [], + a = []; + return ( + (function (n, r, i) { + var o, + a, + u, + l, + c, + d, + h = new Array(), + f = new Array(); + (o = a = -1), (l = n[0] >= r), rs[l << 1].forEach(p); + for (; ++o < e - 1; ) + (u = l), (l = n[o + 1] >= r), rs[u | (l << 1)].forEach(p); + rs[l << 0].forEach(p); + for (; ++a < t - 1; ) { + for ( + o = -1, + l = n[a * e + e] >= r, + c = n[a * e] >= r, + rs[(l << 1) | (c << 2)].forEach(p); + ++o < e - 1; + + ) + (u = l), + (l = n[a * e + e + o + 1] >= r), + (d = c), + (c = n[a * e + o + 1] >= r), + rs[u | (l << 1) | (c << 2) | (d << 3)].forEach(p); + rs[l | (c << 3)].forEach(p); + } + (o = -1), (c = n[a * e] >= r), rs[c << 2].forEach(p); + for (; ++o < e - 1; ) + (d = c), + (c = n[a * e + o + 1] >= r), + rs[(c << 2) | (d << 3)].forEach(p); + function p(e) { + var t, + n, + r = [e[0][0] + o, e[0][1] + a], + u = [e[1][0] + o, e[1][1] + a], + l = s(r), + c = s(u); + (t = f[l]) + ? (n = h[c]) + ? (delete f[t.end], + delete h[n.start], + t === n + ? (t.ring.push(u), i(t.ring)) + : (h[t.start] = f[n.end] = { + start: t.start, + end: n.end, + ring: t.ring.concat(n.ring), + })) + : (delete f[t.end], t.ring.push(u), (f[(t.end = c)] = t)) + : (t = h[c]) + ? (n = f[l]) + ? (delete h[t.start], + delete f[n.end], + t === n + ? (t.ring.push(u), i(t.ring)) + : (h[n.start] = f[t.end] = { + start: n.start, + end: t.end, + ring: n.ring.concat(t.ring), + })) + : (delete h[t.start], + t.ring.unshift(r), + (h[(t.start = l)] = t)) + : (h[l] = f[c] = { start: l, end: c, ring: [r, u] }); + } + rs[c << 3].forEach(p); + })(n, i, function (e) { + r(e, n, i), Xo(e) > 0 ? o.push([e]) : a.push(e); + }), + a.forEach(function (e) { + for (var t, n = 0, r = o.length; n < r; ++n) + if (-1 !== Qo((t = o[n])[0], e)) return void t.push(e); + }), + { type: 'MultiPolygon', value: i, coordinates: o } + ); + } + function s(t) { + return 2 * t[0] + t[1] * (e + 1) * 4; + } + function a(n, r, i) { + n.forEach(function (n) { + var o, + s = n[0], + a = n[1], + u = 0 | s, + l = 0 | a, + c = r[l * e + u]; + s > 0 && + s < e && + u === s && + ((o = r[l * e + u - 1]), (n[0] = s + (i - o) / (c - o) - 0.5)), + a > 0 && + a < t && + l === a && + ((o = r[(l - 1) * e + u]), + (n[1] = a + (i - o) / (c - o) - 0.5)); + }); + } + return ( + (i.contour = o), + (i.size = function (n) { + if (!arguments.length) return [e, t]; + var r = Math.ceil(n[0]), + o = Math.ceil(n[1]); + if (!(r > 0 && o > 0)) throw new Error('invalid size'); + return (e = r), (t = o), i; + }), + (i.thresholds = function (e) { + return arguments.length + ? ((n = + 'function' == typeof e + ? e + : Array.isArray(e) + ? Jo($o.call(e)) + : Jo(e)), + i) + : n; + }), + (i.smooth = function (e) { + return arguments.length ? ((r = e ? a : ns), i) : r === a; + }), + i + ); + }; + function os(e, t, n) { + for (var r = e.width, i = e.height, o = 1 + (n << 1), s = 0; s < i; ++s) + for (var a = 0, u = 0; a < r + n; ++a) + a < r && (u += e.data[a + s * r]), + a >= n && + (a >= o && (u -= e.data[a - o + s * r]), + (t.data[a - n + s * r] = u / Math.min(a + 1, r - 1 + o - a, o))); + } + function ss(e, t, n) { + for (var r = e.width, i = e.height, o = 1 + (n << 1), s = 0; s < r; ++s) + for (var a = 0, u = 0; a < i + n; ++a) + a < i && (u += e.data[s + a * r]), + a >= n && + (a >= o && (u -= e.data[s + (a - o) * r]), + (t.data[s + (a - n) * r] = + u / Math.min(a + 1, i - 1 + o - a, o))); + } + function as(e) { + return e[0]; + } + function us(e) { + return e[1]; + } + function ls() { + return 1; + } + var cs = function () { + var e = as, + t = us, + n = ls, + r = 960, + i = 500, + o = 20, + s = 2, + a = 3 * o, + u = (r + 2 * a) >> s, + l = (i + 2 * a) >> s, + c = Jo(20); + function d(r) { + var i = new Float32Array(u * l), + d = new Float32Array(u * l); + r.forEach(function (r, o, c) { + var d = (+e(r, o, c) + a) >> s, + h = (+t(r, o, c) + a) >> s, + f = +n(r, o, c); + d >= 0 && d < u && h >= 0 && h < l && (i[d + h * u] += f); + }), + os( + { width: u, height: l, data: i }, + { width: u, height: l, data: d }, + o >> s + ), + ss( + { width: u, height: l, data: d }, + { width: u, height: l, data: i }, + o >> s + ), + os( + { width: u, height: l, data: i }, + { width: u, height: l, data: d }, + o >> s + ), + ss( + { width: u, height: l, data: d }, + { width: u, height: l, data: i }, + o >> s + ), + os( + { width: u, height: l, data: i }, + { width: u, height: l, data: d }, + o >> s + ), + ss( + { width: u, height: l, data: d }, + { width: u, height: l, data: i }, + o >> s + ); + var f = c(i); + if (!Array.isArray(f)) { + var p = I(i); + (f = D(0, p, f)), (f = C(0, Math.floor(p / f) * f, f)).shift(); + } + return is().thresholds(f).size([u, l])(i).map(h); + } + function h(e) { + return (e.value *= Math.pow(2, -2 * s)), e.coordinates.forEach(f), e; + } + function f(e) { + e.forEach(p); + } + function p(e) { + e.forEach(g); + } + function g(e) { + (e[0] = e[0] * Math.pow(2, s) - a), + (e[1] = e[1] * Math.pow(2, s) - a); + } + function m() { + return (u = (r + 2 * (a = 3 * o)) >> s), (l = (i + 2 * a) >> s), d; + } + return ( + (d.x = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Jo(+t)), d) + : e; + }), + (d.y = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : Jo(+e)), d) + : t; + }), + (d.weight = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : Jo(+e)), d) + : n; + }), + (d.size = function (e) { + if (!arguments.length) return [r, i]; + var t = Math.ceil(e[0]), + n = Math.ceil(e[1]); + if (!(t >= 0 || t >= 0)) throw new Error('invalid size'); + return (r = t), (i = n), m(); + }), + (d.cellSize = function (e) { + if (!arguments.length) return 1 << s; + if (!((e = +e) >= 1)) throw new Error('invalid cell size'); + return (s = Math.floor(Math.log(e) / Math.LN2)), m(); + }), + (d.thresholds = function (e) { + return arguments.length + ? ((c = + 'function' == typeof e + ? e + : Array.isArray(e) + ? Jo($o.call(e)) + : Jo(e)), + d) + : c; + }), + (d.bandwidth = function (e) { + if (!arguments.length) return Math.sqrt(o * (o + 1)); + if (!((e = +e) >= 0)) throw new Error('invalid bandwidth'); + return (o = Math.round((Math.sqrt(4 * e * e + 1) - 1) / 2)), m(); + }), + d + ); + }, + ds = function (e) { + return function () { + return e; + }; + }; + function hs(e, t, n, r, i, o, s, a, u, l) { + (this.target = e), + (this.type = t), + (this.subject = n), + (this.identifier = r), + (this.active = i), + (this.x = o), + (this.y = s), + (this.dx = a), + (this.dy = u), + (this._ = l); + } + function fs() { + return !pt.ctrlKey && !pt.button; + } + function ps() { + return this.parentNode; + } + function gs(e) { + return null == e ? { x: pt.x, y: pt.y } : e; + } + function ms() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + hs.prototype.on = function () { + var e = this._.on.apply(this._, arguments); + return e === this._ ? this : e; + }; + var _s = function () { + var e, + t, + n, + r, + i = fs, + o = ps, + s = gs, + a = ms, + u = {}, + l = ge('start', 'drag', 'end'), + c = 0, + d = 0; + function h(e) { + e.on('mousedown.drag', f) + .filter(a) + .on('touchstart.drag', m) + .on('touchmove.drag', _) + .on('touchend.drag touchcancel.drag', y) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function f() { + if (!r && i.apply(this, arguments)) { + var s = v('mouse', o.apply(this, arguments), Yn, this, arguments); + s && + (Dt(pt.view) + .on('mousemove.drag', p, !0) + .on('mouseup.drag', g, !0), + Nt(pt.view), + Et(), + (n = !1), + (e = pt.clientX), + (t = pt.clientY), + s('start')); + } + } + function p() { + if ((Tt(), !n)) { + var r = pt.clientX - e, + i = pt.clientY - t; + n = r * r + i * i > d; + } + u.mouse('drag'); + } + function g() { + Dt(pt.view).on('mousemove.drag mouseup.drag', null), + Ot(pt.view, n), + Tt(), + u.mouse('end'); + } + function m() { + if (i.apply(this, arguments)) { + var e, + t, + n = pt.changedTouches, + r = o.apply(this, arguments), + s = n.length; + for (e = 0; e < s; ++e) + (t = v(n[e].identifier, r, Fn, this, arguments)) && + (Et(), t('start')); + } + } + function _() { + var e, + t, + n = pt.changedTouches, + r = n.length; + for (e = 0; e < r; ++e) (t = u[n[e].identifier]) && (Tt(), t('drag')); + } + function y() { + var e, + t, + n = pt.changedTouches, + i = n.length; + for ( + r && clearTimeout(r), + r = setTimeout(function () { + r = null; + }, 500), + e = 0; + e < i; + ++e + ) + (t = u[n[e].identifier]) && (Et(), t('end')); + } + function v(e, t, n, r, i) { + var o, + a, + d, + f = n(t, e), + p = l.copy(); + if ( + bt( + new hs(h, 'beforestart', o, e, c, f[0], f[1], 0, 0, p), + function () { + return ( + null != (pt.subject = o = s.apply(r, i)) && + ((a = o.x - f[0] || 0), (d = o.y - f[1] || 0), !0) + ); + } + ) + ) + return function s(l) { + var g, + m = f; + switch (l) { + case 'start': + (u[e] = s), (g = c++); + break; + case 'end': + delete u[e], --c; + case 'drag': + (f = n(t, e)), (g = c); + } + bt( + new hs( + h, + l, + o, + e, + g, + f[0] + a, + f[1] + d, + f[0] - m[0], + f[1] - m[1], + p + ), + p.apply, + p, + [l, r, i] + ); + }; + } + return ( + (h.filter = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : ds(!!e)), h) + : i; + }), + (h.container = function (e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : ds(e)), h) + : o; + }), + (h.subject = function (e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : ds(e)), h) + : s; + }), + (h.touchable = function (e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : ds(!!e)), h) + : a; + }), + (h.on = function () { + var e = l.on.apply(l, arguments); + return e === l ? h : e; + }), + (h.clickDistance = function (e) { + return arguments.length ? ((d = (e = +e) * e), h) : Math.sqrt(d); + }), + h + ); + }, + ys = {}, + vs = {}, + bs = 34, + ws = 10, + Cs = 13; + function Ss(e) { + return new Function( + 'd', + 'return {' + + e + .map(function (e, t) { + return JSON.stringify(e) + ': d[' + t + '] || ""'; + }) + .join(',') + + '}' + ); + } + function xs(e) { + var t = Object.create(null), + n = []; + return ( + e.forEach(function (e) { + for (var r in e) r in t || n.push((t[r] = r)); + }), + n + ); + } + function Ls(e, t) { + var n = e + '', + r = n.length; + return r < t ? new Array(t - r + 1).join(0) + n : n; + } + function ks(e) { + var t, + n = e.getUTCHours(), + r = e.getUTCMinutes(), + i = e.getUTCSeconds(), + o = e.getUTCMilliseconds(); + return isNaN(e) + ? 'Invalid Date' + : ((t = e.getUTCFullYear()) < 0 + ? '-' + Ls(-t, 6) + : t > 9999 + ? '+' + Ls(t, 6) + : Ls(t, 4)) + + '-' + + Ls(e.getUTCMonth() + 1, 2) + + '-' + + Ls(e.getUTCDate(), 2) + + (o + ? 'T' + + Ls(n, 2) + + ':' + + Ls(r, 2) + + ':' + + Ls(i, 2) + + '.' + + Ls(o, 3) + + 'Z' + : i + ? 'T' + Ls(n, 2) + ':' + Ls(r, 2) + ':' + Ls(i, 2) + 'Z' + : r || n + ? 'T' + Ls(n, 2) + ':' + Ls(r, 2) + 'Z' + : ''); + } + var Ms = function (e) { + var t = new RegExp('["' + e + '\n\r]'), + n = e.charCodeAt(0); + function r(e, t) { + var r, + i = [], + o = e.length, + s = 0, + a = 0, + u = o <= 0, + l = !1; + function c() { + if (u) return vs; + if (l) return (l = !1), ys; + var t, + r, + i = s; + if (e.charCodeAt(i) === bs) { + for ( + ; + (s++ < o && e.charCodeAt(s) !== bs) || e.charCodeAt(++s) === bs; + + ); + return ( + (t = s) >= o + ? (u = !0) + : (r = e.charCodeAt(s++)) === ws + ? (l = !0) + : r === Cs && ((l = !0), e.charCodeAt(s) === ws && ++s), + e.slice(i + 1, t - 1).replace(/""/g, '"') + ); + } + for (; s < o; ) { + if ((r = e.charCodeAt((t = s++))) === ws) l = !0; + else if (r === Cs) (l = !0), e.charCodeAt(s) === ws && ++s; + else if (r !== n) continue; + return e.slice(i, t); + } + return (u = !0), e.slice(i, o); + } + for ( + e.charCodeAt(o - 1) === ws && --o, + e.charCodeAt(o - 1) === Cs && --o; + (r = c()) !== vs; + + ) { + for (var d = []; r !== ys && r !== vs; ) d.push(r), (r = c()); + (t && null == (d = t(d, a++))) || i.push(d); + } + return i; + } + function i(t, n) { + return t.map(function (t) { + return n + .map(function (e) { + return s(t[e]); + }) + .join(e); + }); + } + function o(t) { + return t.map(s).join(e); + } + function s(e) { + return null == e + ? '' + : e instanceof Date + ? ks(e) + : t.test((e += '')) + ? '"' + e.replace(/"/g, '""') + '"' + : e; + } + return { + parse: function (e, t) { + var n, + i, + o = r(e, function (e, r) { + if (n) return n(e, r - 1); + (i = e), + (n = t + ? (function (e, t) { + var n = Ss(e); + return function (r, i) { + return t(n(r), i, e); + }; + })(e, t) + : Ss(e)); + }); + return (o.columns = i || []), o; + }, + parseRows: r, + format: function (t, n) { + return ( + null == n && (n = xs(t)), + [n.map(s).join(e)].concat(i(t, n)).join('\n') + ); + }, + formatBody: function (e, t) { + return null == t && (t = xs(e)), i(e, t).join('\n'); + }, + formatRows: function (e) { + return e.map(o).join('\n'); + }, + formatRow: o, + formatValue: s, + }; + }, + Ds = Ms(','), + Es = Ds.parse, + Ts = Ds.parseRows, + Ns = Ds.format, + Os = Ds.formatBody, + As = Ds.formatRows, + Is = Ds.formatRow, + Ps = Ds.formatValue, + Rs = Ms('\t'), + Fs = Rs.parse, + Ys = Rs.parseRows, + js = Rs.format, + Bs = Rs.formatBody, + Ws = Rs.formatRows, + Hs = Rs.formatRow, + Vs = Rs.formatValue; + function zs(e) { + for (var t in e) { + var n, + r, + i = e[t].trim(); + if (i) + if ('true' === i) i = !0; + else if ('false' === i) i = !1; + else if ('NaN' === i) i = NaN; + else if (isNaN((n = +i))) { + if ( + !(r = i.match( + /^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/ + )) + ) + continue; + Us && r[4] && !r[7] && (i = i.replace(/-/g, '/').replace(/T/, ' ')), + (i = new Date(i)); + } else i = n; + else i = null; + e[t] = i; + } + return e; + } + var Us = + new Date('2019-01-01T00:00').getHours() || + new Date('2019-07-01T00:00').getHours(); + function qs(e) { + return +e; + } + function Ks(e) { + return e * e; + } + function Gs(e) { + return e * (2 - e); + } + function $s(e) { + return ((e *= 2) <= 1 ? e * e : --e * (2 - e) + 1) / 2; + } + var Zs = (function e(t) { + function n(e) { + return Math.pow(e, t); + } + return (t = +t), (n.exponent = e), n; + })(3), + Xs = (function e(t) { + function n(e) { + return 1 - Math.pow(1 - e, t); + } + return (t = +t), (n.exponent = e), n; + })(3), + Js = (function e(t) { + function n(e) { + return ((e *= 2) <= 1 ? Math.pow(e, t) : 2 - Math.pow(2 - e, t)) / 2; + } + return (t = +t), (n.exponent = e), n; + })(3), + Qs = Math.PI, + ea = Qs / 2; + function ta(e) { + return 1 - Math.cos(e * ea); + } + function na(e) { + return Math.sin(e * ea); + } + function ra(e) { + return (1 - Math.cos(Qs * e)) / 2; + } + function ia(e) { + return Math.pow(2, 10 * e - 10); + } + function oa(e) { + return 1 - Math.pow(2, -10 * e); + } + function sa(e) { + return ( + ((e *= 2) <= 1 + ? Math.pow(2, 10 * e - 10) + : 2 - Math.pow(2, 10 - 10 * e)) / 2 + ); + } + function aa(e) { + return 1 - Math.sqrt(1 - e * e); + } + function ua(e) { + return Math.sqrt(1 - --e * e); + } + function la(e) { + return ( + ((e *= 2) <= 1 + ? 1 - Math.sqrt(1 - e * e) + : Math.sqrt(1 - (e -= 2) * e) + 1) / 2 + ); + } + var ca = 4 / 11, + da = 6 / 11, + ha = 8 / 11, + fa = 0.75, + pa = 9 / 11, + ga = 10 / 11, + ma = 0.9375, + _a = 21 / 22, + ya = 63 / 64, + va = 1 / ca / ca; + function ba(e) { + return 1 - wa(1 - e); + } + function wa(e) { + return (e = +e) < ca + ? va * e * e + : e < ha + ? va * (e -= da) * e + fa + : e < ga + ? va * (e -= pa) * e + ma + : va * (e -= _a) * e + ya; + } + function Ca(e) { + return ((e *= 2) <= 1 ? 1 - wa(1 - e) : wa(e - 1) + 1) / 2; + } + var Sa = (function e(t) { + function n(e) { + return e * e * ((t + 1) * e - t); + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + xa = (function e(t) { + function n(e) { + return --e * e * ((t + 1) * e + t) + 1; + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + La = (function e(t) { + function n(e) { + return ( + ((e *= 2) < 1 + ? e * e * ((t + 1) * e - t) + : (e -= 2) * e * ((t + 1) * e + t) + 2) / 2 + ); + } + return (t = +t), (n.overshoot = e), n; + })(1.70158), + ka = 2 * Math.PI, + Ma = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= ka); + function i(e) { + return t * Math.pow(2, 10 * --e) * Math.sin((r - e) / n); + } + return ( + (i.amplitude = function (t) { + return e(t, n * ka); + }), + (i.period = function (n) { + return e(t, n); + }), + i + ); + })(1, 0.3), + Da = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= ka); + function i(e) { + return 1 - t * Math.pow(2, -10 * (e = +e)) * Math.sin((e + r) / n); + } + return ( + (i.amplitude = function (t) { + return e(t, n * ka); + }), + (i.period = function (n) { + return e(t, n); + }), + i + ); + })(1, 0.3), + Ea = (function e(t, n) { + var r = Math.asin(1 / (t = Math.max(1, t))) * (n /= ka); + function i(e) { + return ( + ((e = 2 * e - 1) < 0 + ? t * Math.pow(2, 10 * e) * Math.sin((r - e) / n) + : 2 - t * Math.pow(2, -10 * e) * Math.sin((r + e) / n)) / 2 + ); + } + return ( + (i.amplitude = function (t) { + return e(t, n * ka); + }), + (i.period = function (n) { + return e(t, n); + }), + i + ); + })(1, 0.3); + function Ta(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.blob(); + } + var Na = function (e, t) { + return fetch(e, t).then(Ta); + }; + function Oa(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.arrayBuffer(); + } + var Aa = function (e, t) { + return fetch(e, t).then(Oa); + }; + function Ia(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.text(); + } + var Pa = function (e, t) { + return fetch(e, t).then(Ia); + }; + function Ra(e) { + return function (t, n, r) { + return ( + 2 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)), + Pa(t, n).then(function (t) { + return e(t, r); + }) + ); + }; + } + function Fa(e, t, n, r) { + 3 === arguments.length && + 'function' == typeof n && + ((r = n), (n = void 0)); + var i = Ms(e); + return Pa(t, n).then(function (e) { + return i.parse(e, r); + }); + } + var Ya = Ra(Es), + ja = Ra(Fs), + Ba = function (e, t) { + return new Promise(function (n, r) { + var i = new Image(); + for (var o in t) i[o] = t[o]; + (i.onerror = r), + (i.onload = function () { + n(i); + }), + (i.src = e); + }); + }; + function Wa(e) { + if (!e.ok) throw new Error(e.status + ' ' + e.statusText); + return e.json(); + } + var Ha = function (e, t) { + return fetch(e, t).then(Wa); + }; + function Va(e) { + return function (t, n) { + return Pa(t, n).then(function (t) { + return new DOMParser().parseFromString(t, e); + }); + }; + } + var za = Va('application/xml'), + Ua = Va('text/html'), + qa = Va('image/svg+xml'), + Ka = function (e, t) { + var n; + function r() { + var r, + i, + o = n.length, + s = 0, + a = 0; + for (r = 0; r < o; ++r) (s += (i = n[r]).x), (a += i.y); + for (s = s / o - e, a = a / o - t, r = 0; r < o; ++r) + ((i = n[r]).x -= s), (i.y -= a); + } + return ( + null == e && (e = 0), + null == t && (t = 0), + (r.initialize = function (e) { + n = e; + }), + (r.x = function (t) { + return arguments.length ? ((e = +t), r) : e; + }), + (r.y = function (e) { + return arguments.length ? ((t = +e), r) : t; + }), + r + ); + }, + Ga = function (e) { + return function () { + return e; + }; + }, + $a = function () { + return 1e-6 * (Math.random() - 0.5); + }; + function Za(e, t, n, r) { + if (isNaN(t) || isNaN(n)) return e; + var i, + o, + s, + a, + u, + l, + c, + d, + h, + f = e._root, + p = { data: r }, + g = e._x0, + m = e._y0, + _ = e._x1, + y = e._y1; + if (!f) return (e._root = p), e; + for (; f.length; ) + if ( + ((l = t >= (o = (g + _) / 2)) ? (g = o) : (_ = o), + (c = n >= (s = (m + y) / 2)) ? (m = s) : (y = s), + (i = f), + !(f = f[(d = (c << 1) | l)])) + ) + return (i[d] = p), e; + if ( + ((a = +e._x.call(null, f.data)), + (u = +e._y.call(null, f.data)), + t === a && n === u) + ) + return (p.next = f), i ? (i[d] = p) : (e._root = p), e; + do { + (i = i ? (i[d] = new Array(4)) : (e._root = new Array(4))), + (l = t >= (o = (g + _) / 2)) ? (g = o) : (_ = o), + (c = n >= (s = (m + y) / 2)) ? (m = s) : (y = s); + } while ((d = (c << 1) | l) == (h = ((u >= s) << 1) | (a >= o))); + return (i[h] = f), (i[d] = p), e; + } + var Xa = function (e, t, n, r, i) { + (this.node = e), + (this.x0 = t), + (this.y0 = n), + (this.x1 = r), + (this.y1 = i); + }; + function Ja(e) { + return e[0]; + } + function Qa(e) { + return e[1]; + } + function eu(e, t, n) { + var r = new tu( + null == t ? Ja : t, + null == n ? Qa : n, + NaN, + NaN, + NaN, + NaN + ); + return null == e ? r : r.addAll(e); + } + function tu(e, t, n, r, i, o) { + (this._x = e), + (this._y = t), + (this._x0 = n), + (this._y0 = r), + (this._x1 = i), + (this._y1 = o), + (this._root = void 0); + } + function nu(e) { + for (var t = { data: e.data }, n = t; (e = e.next); ) + n = n.next = { data: e.data }; + return t; + } + var ru = (eu.prototype = tu.prototype); + function iu(e) { + return e.x + e.vx; + } + function ou(e) { + return e.y + e.vy; + } + (ru.copy = function () { + var e, + t, + n = new tu(this._x, this._y, this._x0, this._y0, this._x1, this._y1), + r = this._root; + if (!r) return n; + if (!r.length) return (n._root = nu(r)), n; + for ( + e = [{ source: r, target: (n._root = new Array(4)) }]; + (r = e.pop()); + + ) + for (var i = 0; i < 4; ++i) + (t = r.source[i]) && + (t.length + ? e.push({ source: t, target: (r.target[i] = new Array(4)) }) + : (r.target[i] = nu(t))); + return n; + }), + (ru.add = function (e) { + var t = +this._x.call(null, e), + n = +this._y.call(null, e); + return Za(this.cover(t, n), t, n, e); + }), + (ru.addAll = function (e) { + var t, + n, + r, + i, + o = e.length, + s = new Array(o), + a = new Array(o), + u = 1 / 0, + l = 1 / 0, + c = -1 / 0, + d = -1 / 0; + for (n = 0; n < o; ++n) + isNaN((r = +this._x.call(null, (t = e[n])))) || + isNaN((i = +this._y.call(null, t))) || + ((s[n] = r), + (a[n] = i), + r < u && (u = r), + r > c && (c = r), + i < l && (l = i), + i > d && (d = i)); + if (u > c || l > d) return this; + for (this.cover(u, l).cover(c, d), n = 0; n < o; ++n) + Za(this, s[n], a[n], e[n]); + return this; + }), + (ru.cover = function (e, t) { + if (isNaN((e = +e)) || isNaN((t = +t))) return this; + var n = this._x0, + r = this._y0, + i = this._x1, + o = this._y1; + if (isNaN(n)) + (i = (n = Math.floor(e)) + 1), (o = (r = Math.floor(t)) + 1); + else { + for ( + var s, a, u = i - n, l = this._root; + n > e || e >= i || r > t || t >= o; + + ) + switch ( + ((a = ((t < r) << 1) | (e < n)), + ((s = new Array(4))[a] = l), + (l = s), + (u *= 2), + a) + ) { + case 0: + (i = n + u), (o = r + u); + break; + case 1: + (n = i - u), (o = r + u); + break; + case 2: + (i = n + u), (r = o - u); + break; + case 3: + (n = i - u), (r = o - u); + } + this._root && this._root.length && (this._root = l); + } + return ( + (this._x0 = n), (this._y0 = r), (this._x1 = i), (this._y1 = o), this + ); + }), + (ru.data = function () { + var e = []; + return ( + this.visit(function (t) { + if (!t.length) + do { + e.push(t.data); + } while ((t = t.next)); + }), + e + ); + }), + (ru.extent = function (e) { + return arguments.length + ? this.cover(+e[0][0], +e[0][1]).cover(+e[1][0], +e[1][1]) + : isNaN(this._x0) + ? void 0 + : [ + [this._x0, this._y0], + [this._x1, this._y1], + ]; + }), + (ru.find = function (e, t, n) { + var r, + i, + o, + s, + a, + u, + l, + c = this._x0, + d = this._y0, + h = this._x1, + f = this._y1, + p = [], + g = this._root; + for ( + g && p.push(new Xa(g, c, d, h, f)), + null == n + ? (n = 1 / 0) + : ((c = e - n), (d = t - n), (h = e + n), (f = t + n), (n *= n)); + (u = p.pop()); + + ) + if ( + !( + !(g = u.node) || + (i = u.x0) > h || + (o = u.y0) > f || + (s = u.x1) < c || + (a = u.y1) < d + ) + ) + if (g.length) { + var m = (i + s) / 2, + _ = (o + a) / 2; + p.push( + new Xa(g[3], m, _, s, a), + new Xa(g[2], i, _, m, a), + new Xa(g[1], m, o, s, _), + new Xa(g[0], i, o, m, _) + ), + (l = ((t >= _) << 1) | (e >= m)) && + ((u = p[p.length - 1]), + (p[p.length - 1] = p[p.length - 1 - l]), + (p[p.length - 1 - l] = u)); + } else { + var y = e - +this._x.call(null, g.data), + v = t - +this._y.call(null, g.data), + b = y * y + v * v; + if (b < n) { + var w = Math.sqrt((n = b)); + (c = e - w), + (d = t - w), + (h = e + w), + (f = t + w), + (r = g.data); + } + } + return r; + }), + (ru.remove = function (e) { + if ( + isNaN((o = +this._x.call(null, e))) || + isNaN((s = +this._y.call(null, e))) + ) + return this; + var t, + n, + r, + i, + o, + s, + a, + u, + l, + c, + d, + h, + f = this._root, + p = this._x0, + g = this._y0, + m = this._x1, + _ = this._y1; + if (!f) return this; + if (f.length) + for (;;) { + if ( + ((l = o >= (a = (p + m) / 2)) ? (p = a) : (m = a), + (c = s >= (u = (g + _) / 2)) ? (g = u) : (_ = u), + (t = f), + !(f = f[(d = (c << 1) | l)])) + ) + return this; + if (!f.length) break; + (t[(d + 1) & 3] || t[(d + 2) & 3] || t[(d + 3) & 3]) && + ((n = t), (h = d)); + } + for (; f.data !== e; ) if (((r = f), !(f = f.next))) return this; + return ( + (i = f.next) && delete f.next, + r + ? (i ? (r.next = i) : delete r.next, this) + : t + ? (i ? (t[d] = i) : delete t[d], + (f = t[0] || t[1] || t[2] || t[3]) && + f === (t[3] || t[2] || t[1] || t[0]) && + !f.length && + (n ? (n[h] = f) : (this._root = f)), + this) + : ((this._root = i), this) + ); + }), + (ru.removeAll = function (e) { + for (var t = 0, n = e.length; t < n; ++t) this.remove(e[t]); + return this; + }), + (ru.root = function () { + return this._root; + }), + (ru.size = function () { + var e = 0; + return ( + this.visit(function (t) { + if (!t.length) + do { + ++e; + } while ((t = t.next)); + }), + e + ); + }), + (ru.visit = function (e) { + var t, + n, + r, + i, + o, + s, + a = [], + u = this._root; + for ( + u && a.push(new Xa(u, this._x0, this._y0, this._x1, this._y1)); + (t = a.pop()); + + ) + if ( + !e((u = t.node), (r = t.x0), (i = t.y0), (o = t.x1), (s = t.y1)) && + u.length + ) { + var l = (r + o) / 2, + c = (i + s) / 2; + (n = u[3]) && a.push(new Xa(n, l, c, o, s)), + (n = u[2]) && a.push(new Xa(n, r, c, l, s)), + (n = u[1]) && a.push(new Xa(n, l, i, o, c)), + (n = u[0]) && a.push(new Xa(n, r, i, l, c)); + } + return this; + }), + (ru.visitAfter = function (e) { + var t, + n = [], + r = []; + for ( + this._root && + n.push(new Xa(this._root, this._x0, this._y0, this._x1, this._y1)); + (t = n.pop()); + + ) { + var i = t.node; + if (i.length) { + var o, + s = t.x0, + a = t.y0, + u = t.x1, + l = t.y1, + c = (s + u) / 2, + d = (a + l) / 2; + (o = i[0]) && n.push(new Xa(o, s, a, c, d)), + (o = i[1]) && n.push(new Xa(o, c, a, u, d)), + (o = i[2]) && n.push(new Xa(o, s, d, c, l)), + (o = i[3]) && n.push(new Xa(o, c, d, u, l)); + } + r.push(t); + } + for (; (t = r.pop()); ) e(t.node, t.x0, t.y0, t.x1, t.y1); + return this; + }), + (ru.x = function (e) { + return arguments.length ? ((this._x = e), this) : this._x; + }), + (ru.y = function (e) { + return arguments.length ? ((this._y = e), this) : this._y; + }); + var su = function (e) { + var t, + n, + r = 1, + i = 1; + function o() { + for (var e, o, a, u, l, c, d, h = t.length, f = 0; f < i; ++f) + for (o = eu(t, iu, ou).visitAfter(s), e = 0; e < h; ++e) + (a = t[e]), + (c = n[a.index]), + (d = c * c), + (u = a.x + a.vx), + (l = a.y + a.vy), + o.visit(p); + function p(e, t, n, i, o) { + var s = e.data, + h = e.r, + f = c + h; + if (!s) return t > u + f || i < u - f || n > l + f || o < l - f; + if (s.index > a.index) { + var p = u - s.x - s.vx, + g = l - s.y - s.vy, + m = p * p + g * g; + m < f * f && + (0 === p && (m += (p = $a()) * p), + 0 === g && (m += (g = $a()) * g), + (m = ((f - (m = Math.sqrt(m))) / m) * r), + (a.vx += (p *= m) * (f = (h *= h) / (d + h))), + (a.vy += (g *= m) * f), + (s.vx -= p * (f = 1 - f)), + (s.vy -= g * f)); + } + } + } + function s(e) { + if (e.data) return (e.r = n[e.data.index]); + for (var t = (e.r = 0); t < 4; ++t) + e[t] && e[t].r > e.r && (e.r = e[t].r); + } + function a() { + if (t) { + var r, + i, + o = t.length; + for (n = new Array(o), r = 0; r < o; ++r) + (i = t[r]), (n[i.index] = +e(i, r, t)); + } + } + return ( + 'function' != typeof e && (e = Ga(null == e ? 1 : +e)), + (o.initialize = function (e) { + (t = e), a(); + }), + (o.iterations = function (e) { + return arguments.length ? ((i = +e), o) : i; + }), + (o.strength = function (e) { + return arguments.length ? ((r = +e), o) : r; + }), + (o.radius = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Ga(+t)), a(), o) + : e; + }), + o + ); + }; + function au(e) { + return e.index; + } + function uu(e, t) { + var n = e.get(t); + if (!n) throw new Error('missing: ' + t); + return n; + } + var lu = function (e) { + var t, + n, + r, + i, + o, + s = au, + a = function (e) { + return 1 / Math.min(i[e.source.index], i[e.target.index]); + }, + u = Ga(30), + l = 1; + function c(r) { + for (var i = 0, s = e.length; i < l; ++i) + for (var a, u, c, d, h, f, p, g = 0; g < s; ++g) + (u = (a = e[g]).source), + (d = (c = a.target).x + c.vx - u.x - u.vx || $a()), + (h = c.y + c.vy - u.y - u.vy || $a()), + (d *= f = + (((f = Math.sqrt(d * d + h * h)) - n[g]) / f) * r * t[g]), + (h *= f), + (c.vx -= d * (p = o[g])), + (c.vy -= h * p), + (u.vx += d * (p = 1 - p)), + (u.vy += h * p); + } + function d() { + if (r) { + var a, + u, + l = r.length, + c = e.length, + d = oo(r, s); + for (a = 0, i = new Array(l); a < c; ++a) + ((u = e[a]).index = a), + 'object' != typeof u.source && (u.source = uu(d, u.source)), + 'object' != typeof u.target && (u.target = uu(d, u.target)), + (i[u.source.index] = (i[u.source.index] || 0) + 1), + (i[u.target.index] = (i[u.target.index] || 0) + 1); + for (a = 0, o = new Array(c); a < c; ++a) + (u = e[a]), + (o[a] = + i[u.source.index] / (i[u.source.index] + i[u.target.index])); + (t = new Array(c)), h(), (n = new Array(c)), f(); + } + } + function h() { + if (r) for (var n = 0, i = e.length; n < i; ++n) t[n] = +a(e[n], n, e); + } + function f() { + if (r) for (var t = 0, i = e.length; t < i; ++t) n[t] = +u(e[t], t, e); + } + return ( + null == e && (e = []), + (c.initialize = function (e) { + (r = e), d(); + }), + (c.links = function (t) { + return arguments.length ? ((e = t), d(), c) : e; + }), + (c.id = function (e) { + return arguments.length ? ((s = e), c) : s; + }), + (c.iterations = function (e) { + return arguments.length ? ((l = +e), c) : l; + }), + (c.strength = function (e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : Ga(+e)), h(), c) + : a; + }), + (c.distance = function (e) { + return arguments.length + ? ((u = 'function' == typeof e ? e : Ga(+e)), f(), c) + : u; + }), + c + ); + }; + function cu(e) { + return e.x; + } + function du(e) { + return e.y; + } + var hu = 10, + fu = Math.PI * (3 - Math.sqrt(5)), + pu = function (e) { + var t, + n = 1, + r = 0.001, + i = 1 - Math.pow(r, 1 / 300), + o = 0, + s = 0.6, + a = oo(), + u = Xn(c), + l = ge('tick', 'end'); + function c() { + d(), l.call('tick', t), n < r && (u.stop(), l.call('end', t)); + } + function d(r) { + var u, + l, + c = e.length; + void 0 === r && (r = 1); + for (var d = 0; d < r; ++d) + for ( + n += (o - n) * i, + a.each(function (e) { + e(n); + }), + u = 0; + u < c; + ++u + ) + null == (l = e[u]).fx + ? (l.x += l.vx *= s) + : ((l.x = l.fx), (l.vx = 0)), + null == l.fy ? (l.y += l.vy *= s) : ((l.y = l.fy), (l.vy = 0)); + return t; + } + function h() { + for (var t, n = 0, r = e.length; n < r; ++n) { + if ( + (((t = e[n]).index = n), + null != t.fx && (t.x = t.fx), + null != t.fy && (t.y = t.fy), + isNaN(t.x) || isNaN(t.y)) + ) { + var i = hu * Math.sqrt(n), + o = n * fu; + (t.x = i * Math.cos(o)), (t.y = i * Math.sin(o)); + } + (isNaN(t.vx) || isNaN(t.vy)) && (t.vx = t.vy = 0); + } + } + function f(t) { + return t.initialize && t.initialize(e), t; + } + return ( + null == e && (e = []), + h(), + (t = { + tick: d, + restart: function () { + return u.restart(c), t; + }, + stop: function () { + return u.stop(), t; + }, + nodes: function (n) { + return arguments.length ? ((e = n), h(), a.each(f), t) : e; + }, + alpha: function (e) { + return arguments.length ? ((n = +e), t) : n; + }, + alphaMin: function (e) { + return arguments.length ? ((r = +e), t) : r; + }, + alphaDecay: function (e) { + return arguments.length ? ((i = +e), t) : +i; + }, + alphaTarget: function (e) { + return arguments.length ? ((o = +e), t) : o; + }, + velocityDecay: function (e) { + return arguments.length ? ((s = 1 - e), t) : 1 - s; + }, + force: function (e, n) { + return arguments.length > 1 + ? (null == n ? a.remove(e) : a.set(e, f(n)), t) + : a.get(e); + }, + find: function (t, n, r) { + var i, + o, + s, + a, + u, + l = 0, + c = e.length; + for (null == r ? (r = 1 / 0) : (r *= r), l = 0; l < c; ++l) + (s = (i = t - (a = e[l]).x) * i + (o = n - a.y) * o) < r && + ((u = a), (r = s)); + return u; + }, + on: function (e, n) { + return arguments.length > 1 ? (l.on(e, n), t) : l.on(e); + }, + }) + ); + }, + gu = function () { + var e, + t, + n, + r, + i = Ga(-30), + o = 1, + s = 1 / 0, + a = 0.81; + function u(r) { + var i, + o = e.length, + s = eu(e, cu, du).visitAfter(c); + for (n = r, i = 0; i < o; ++i) (t = e[i]), s.visit(d); + } + function l() { + if (e) { + var t, + n, + o = e.length; + for (r = new Array(o), t = 0; t < o; ++t) + (n = e[t]), (r[n.index] = +i(n, t, e)); + } + } + function c(e) { + var t, + n, + i, + o, + s, + a = 0, + u = 0; + if (e.length) { + for (i = o = s = 0; s < 4; ++s) + (t = e[s]) && + (n = Math.abs(t.value)) && + ((a += t.value), (u += n), (i += n * t.x), (o += n * t.y)); + (e.x = i / u), (e.y = o / u); + } else { + ((t = e).x = t.data.x), (t.y = t.data.y); + do { + a += r[t.data.index]; + } while ((t = t.next)); + } + e.value = a; + } + function d(e, i, u, l) { + if (!e.value) return !0; + var c = e.x - t.x, + d = e.y - t.y, + h = l - i, + f = c * c + d * d; + if ((h * h) / a < f) + return ( + f < s && + (0 === c && (f += (c = $a()) * c), + 0 === d && (f += (d = $a()) * d), + f < o && (f = Math.sqrt(o * f)), + (t.vx += (c * e.value * n) / f), + (t.vy += (d * e.value * n) / f)), + !0 + ); + if (!(e.length || f >= s)) { + (e.data !== t || e.next) && + (0 === c && (f += (c = $a()) * c), + 0 === d && (f += (d = $a()) * d), + f < o && (f = Math.sqrt(o * f))); + do { + e.data !== t && + ((h = (r[e.data.index] * n) / f), + (t.vx += c * h), + (t.vy += d * h)); + } while ((e = e.next)); + } + } + return ( + (u.initialize = function (t) { + (e = t), l(); + }), + (u.strength = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : Ga(+e)), l(), u) + : i; + }), + (u.distanceMin = function (e) { + return arguments.length ? ((o = e * e), u) : Math.sqrt(o); + }), + (u.distanceMax = function (e) { + return arguments.length ? ((s = e * e), u) : Math.sqrt(s); + }), + (u.theta = function (e) { + return arguments.length ? ((a = e * e), u) : Math.sqrt(a); + }), + u + ); + }, + mu = function (e, t, n) { + var r, + i, + o, + s = Ga(0.1); + function a(e) { + for (var s = 0, a = r.length; s < a; ++s) { + var u = r[s], + l = u.x - t || 1e-6, + c = u.y - n || 1e-6, + d = Math.sqrt(l * l + c * c), + h = ((o[s] - d) * i[s] * e) / d; + (u.vx += l * h), (u.vy += c * h); + } + } + function u() { + if (r) { + var t, + n = r.length; + for (i = new Array(n), o = new Array(n), t = 0; t < n; ++t) + (o[t] = +e(r[t], t, r)), + (i[t] = isNaN(o[t]) ? 0 : +s(r[t], t, r)); + } + } + return ( + 'function' != typeof e && (e = Ga(+e)), + null == t && (t = 0), + null == n && (n = 0), + (a.initialize = function (e) { + (r = e), u(); + }), + (a.strength = function (e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : Ga(+e)), u(), a) + : s; + }), + (a.radius = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Ga(+t)), u(), a) + : e; + }), + (a.x = function (e) { + return arguments.length ? ((t = +e), a) : t; + }), + (a.y = function (e) { + return arguments.length ? ((n = +e), a) : n; + }), + a + ); + }, + _u = function (e) { + var t, + n, + r, + i = Ga(0.1); + function o(e) { + for (var i, o = 0, s = t.length; o < s; ++o) + (i = t[o]).vx += (r[o] - i.x) * n[o] * e; + } + function s() { + if (t) { + var o, + s = t.length; + for (n = new Array(s), r = new Array(s), o = 0; o < s; ++o) + n[o] = isNaN((r[o] = +e(t[o], o, t))) ? 0 : +i(t[o], o, t); + } + } + return ( + 'function' != typeof e && (e = Ga(null == e ? 0 : +e)), + (o.initialize = function (e) { + (t = e), s(); + }), + (o.strength = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : Ga(+e)), s(), o) + : i; + }), + (o.x = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Ga(+t)), s(), o) + : e; + }), + o + ); + }, + yu = function (e) { + var t, + n, + r, + i = Ga(0.1); + function o(e) { + for (var i, o = 0, s = t.length; o < s; ++o) + (i = t[o]).vy += (r[o] - i.y) * n[o] * e; + } + function s() { + if (t) { + var o, + s = t.length; + for (n = new Array(s), r = new Array(s), o = 0; o < s; ++o) + n[o] = isNaN((r[o] = +e(t[o], o, t))) ? 0 : +i(t[o], o, t); + } + } + return ( + 'function' != typeof e && (e = Ga(null == e ? 0 : +e)), + (o.initialize = function (e) { + (t = e), s(); + }), + (o.strength = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : Ga(+e)), s(), o) + : i; + }), + (o.y = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : Ga(+t)), s(), o) + : e; + }), + o + ); + }, + vu = function (e, t) { + if ( + (n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf( + 'e' + )) < 0 + ) + return null; + var n, + r = e.slice(0, n); + return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)]; + }, + bu = function (e) { + return (e = vu(Math.abs(e))) ? e[1] : NaN; + }, + wu = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i; + function Cu(e) { + if (!(t = wu.exec(e))) throw new Error('invalid format: ' + e); + var t; + return new Su({ + fill: t[1], + align: t[2], + sign: t[3], + symbol: t[4], + zero: t[5], + width: t[6], + comma: t[7], + precision: t[8] && t[8].slice(1), + trim: t[9], + type: t[10], + }); + } + function Su(e) { + (this.fill = void 0 === e.fill ? ' ' : e.fill + ''), + (this.align = void 0 === e.align ? '>' : e.align + ''), + (this.sign = void 0 === e.sign ? '-' : e.sign + ''), + (this.symbol = void 0 === e.symbol ? '' : e.symbol + ''), + (this.zero = !!e.zero), + (this.width = void 0 === e.width ? void 0 : +e.width), + (this.comma = !!e.comma), + (this.precision = void 0 === e.precision ? void 0 : +e.precision), + (this.trim = !!e.trim), + (this.type = void 0 === e.type ? '' : e.type + ''); + } + (Cu.prototype = Su.prototype), + (Su.prototype.toString = function () { + return ( + this.fill + + this.align + + this.sign + + this.symbol + + (this.zero ? '0' : '') + + (void 0 === this.width ? '' : Math.max(1, 0 | this.width)) + + (this.comma ? ',' : '') + + (void 0 === this.precision + ? '' + : '.' + Math.max(0, 0 | this.precision)) + + (this.trim ? '~' : '') + + this.type + ); + }); + var xu, + Lu, + ku, + Mu, + Du = function (e) { + e: for (var t, n = e.length, r = 1, i = -1; r < n; ++r) + switch (e[r]) { + case '.': + i = t = r; + break; + case '0': + 0 === i && (i = r), (t = r); + break; + default: + if (i > 0) { + if (!+e[r]) break e; + i = 0; + } + } + return i > 0 ? e.slice(0, i) + e.slice(t + 1) : e; + }, + Eu = function (e, t) { + var n = vu(e, t); + if (!n) return e + ''; + var r = n[0], + i = n[1]; + return i < 0 + ? '0.' + new Array(-i).join('0') + r + : r.length > i + 1 + ? r.slice(0, i + 1) + '.' + r.slice(i + 1) + : r + new Array(i - r.length + 2).join('0'); + }, + Tu = { + '%': function (e, t) { + return (100 * e).toFixed(t); + }, + b: function (e) { + return Math.round(e).toString(2); + }, + c: function (e) { + return e + ''; + }, + d: function (e) { + return Math.round(e).toString(10); + }, + e: function (e, t) { + return e.toExponential(t); + }, + f: function (e, t) { + return e.toFixed(t); + }, + g: function (e, t) { + return e.toPrecision(t); + }, + o: function (e) { + return Math.round(e).toString(8); + }, + p: function (e, t) { + return Eu(100 * e, t); + }, + r: Eu, + s: function (e, t) { + var n = vu(e, t); + if (!n) return e + ''; + var r = n[0], + i = n[1], + o = i - (xu = 3 * Math.max(-8, Math.min(8, Math.floor(i / 3)))) + 1, + s = r.length; + return o === s + ? r + : o > s + ? r + new Array(o - s + 1).join('0') + : o > 0 + ? r.slice(0, o) + '.' + r.slice(o) + : '0.' + + new Array(1 - o).join('0') + + vu(e, Math.max(0, t + o - 1))[0]; + }, + X: function (e) { + return Math.round(e).toString(16).toUpperCase(); + }, + x: function (e) { + return Math.round(e).toString(16); + }, + }, + Nu = function (e) { + return e; + }, + Ou = Array.prototype.map, + Au = [ + 'y', + 'z', + 'a', + 'f', + 'p', + 'n', + 'µ', + 'm', + '', + 'k', + 'M', + 'G', + 'T', + 'P', + 'E', + 'Z', + 'Y', + ], + Iu = function (e) { + var t, + n, + r = + void 0 === e.grouping || void 0 === e.thousands + ? Nu + : ((t = Ou.call(e.grouping, Number)), + (n = e.thousands + ''), + function (e, r) { + for ( + var i = e.length, o = [], s = 0, a = t[0], u = 0; + i > 0 && + a > 0 && + (u + a + 1 > r && (a = Math.max(1, r - u)), + o.push(e.substring((i -= a), i + a)), + !((u += a + 1) > r)); + + ) + a = t[(s = (s + 1) % t.length)]; + return o.reverse().join(n); + }), + i = void 0 === e.currency ? '' : e.currency[0] + '', + o = void 0 === e.currency ? '' : e.currency[1] + '', + s = void 0 === e.decimal ? '.' : e.decimal + '', + a = + void 0 === e.numerals + ? Nu + : (function (e) { + return function (t) { + return t.replace(/[0-9]/g, function (t) { + return e[+t]; + }); + }; + })(Ou.call(e.numerals, String)), + u = void 0 === e.percent ? '%' : e.percent + '', + l = void 0 === e.minus ? '-' : e.minus + '', + c = void 0 === e.nan ? 'NaN' : e.nan + ''; + function d(e) { + var t = (e = Cu(e)).fill, + n = e.align, + d = e.sign, + h = e.symbol, + f = e.zero, + p = e.width, + g = e.comma, + m = e.precision, + _ = e.trim, + y = e.type; + 'n' === y + ? ((g = !0), (y = 'g')) + : Tu[y] || (void 0 === m && (m = 12), (_ = !0), (y = 'g')), + (f || ('0' === t && '=' === n)) && ((f = !0), (t = '0'), (n = '=')); + var v = + '$' === h + ? i + : '#' === h && /[boxX]/.test(y) + ? '0' + y.toLowerCase() + : '', + b = '$' === h ? o : /[%p]/.test(y) ? u : '', + w = Tu[y], + C = /[defgprs%]/.test(y); + function S(e) { + var i, + o, + u, + h = v, + S = b; + if ('c' === y) (S = w(e) + S), (e = ''); + else { + var x = (e = +e) < 0; + if ( + ((e = isNaN(e) ? c : w(Math.abs(e), m)), + _ && (e = Du(e)), + x && 0 == +e && (x = !1), + (h = + (x ? ('(' === d ? d : l) : '-' === d || '(' === d ? '' : d) + + h), + (S = + ('s' === y ? Au[8 + xu / 3] : '') + + S + + (x && '(' === d ? ')' : '')), + C) + ) + for (i = -1, o = e.length; ++i < o; ) + if (48 > (u = e.charCodeAt(i)) || u > 57) { + (S = (46 === u ? s + e.slice(i + 1) : e.slice(i)) + S), + (e = e.slice(0, i)); + break; + } + } + g && !f && (e = r(e, 1 / 0)); + var L = h.length + e.length + S.length, + k = L < p ? new Array(p - L + 1).join(t) : ''; + switch ( + (g && + f && + ((e = r(k + e, k.length ? p - S.length : 1 / 0)), (k = '')), + n) + ) { + case '<': + e = h + e + S + k; + break; + case '=': + e = h + k + e + S; + break; + case '^': + e = k.slice(0, (L = k.length >> 1)) + h + e + S + k.slice(L); + break; + default: + e = k + h + e + S; + } + return a(e); + } + return ( + (m = + void 0 === m + ? 6 + : /[gprs]/.test(y) + ? Math.max(1, Math.min(21, m)) + : Math.max(0, Math.min(20, m))), + (S.toString = function () { + return e + ''; + }), + S + ); + } + return { + format: d, + formatPrefix: function (e, t) { + var n = d((((e = Cu(e)).type = 'f'), e)), + r = 3 * Math.max(-8, Math.min(8, Math.floor(bu(t) / 3))), + i = Math.pow(10, -r), + o = Au[8 + r / 3]; + return function (e) { + return n(i * e) + o; + }; + }, + }; + }; + function Pu(e) { + return (Lu = Iu(e)), (ku = Lu.format), (Mu = Lu.formatPrefix), Lu; + } + Pu({ + decimal: '.', + thousands: ',', + grouping: [3], + currency: ['$', ''], + minus: '-', + }); + var Ru = function (e) { + return Math.max(0, -bu(Math.abs(e))); + }, + Fu = function (e, t) { + return Math.max( + 0, + 3 * Math.max(-8, Math.min(8, Math.floor(bu(t) / 3))) - bu(Math.abs(e)) + ); + }, + Yu = function (e, t) { + return ( + (e = Math.abs(e)), + (t = Math.abs(t) - e), + Math.max(0, bu(t) - bu(e)) + 1 + ); + }, + ju = function () { + return new Bu(); + }; + function Bu() { + this.reset(); + } + Bu.prototype = { + constructor: Bu, + reset: function () { + this.s = this.t = 0; + }, + add: function (e) { + Hu(Wu, e, this.t), + Hu(this, Wu.s, this.s), + this.s ? (this.t += Wu.t) : (this.s = Wu.t); + }, + valueOf: function () { + return this.s; + }, + }; + var Wu = new Bu(); + function Hu(e, t, n) { + var r = (e.s = t + n), + i = r - t, + o = r - i; + e.t = t - o + (n - i); + } + var Vu = 1e-6, + zu = 1e-12, + Uu = Math.PI, + qu = Uu / 2, + Ku = Uu / 4, + Gu = 2 * Uu, + $u = 180 / Uu, + Zu = Uu / 180, + Xu = Math.abs, + Ju = Math.atan, + Qu = Math.atan2, + el = Math.cos, + tl = Math.ceil, + nl = Math.exp, + rl = (Math.floor, Math.log), + il = Math.pow, + ol = Math.sin, + sl = + Math.sign || + function (e) { + return e > 0 ? 1 : e < 0 ? -1 : 0; + }, + al = Math.sqrt, + ul = Math.tan; + function ll(e) { + return e > 1 ? 0 : e < -1 ? Uu : Math.acos(e); + } + function cl(e) { + return e > 1 ? qu : e < -1 ? -qu : Math.asin(e); + } + function dl(e) { + return (e = ol(e / 2)) * e; + } + function hl() {} + function fl(e, t) { + e && gl.hasOwnProperty(e.type) && gl[e.type](e, t); + } + var pl = { + Feature: function (e, t) { + fl(e.geometry, t); + }, + FeatureCollection: function (e, t) { + for (var n = e.features, r = -1, i = n.length; ++r < i; ) + fl(n[r].geometry, t); + }, + }, + gl = { + Sphere: function (e, t) { + t.sphere(); + }, + Point: function (e, t) { + (e = e.coordinates), t.point(e[0], e[1], e[2]); + }, + MultiPoint: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + (e = n[r]), t.point(e[0], e[1], e[2]); + }, + LineString: function (e, t) { + ml(e.coordinates, t, 0); + }, + MultiLineString: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + ml(n[r], t, 0); + }, + Polygon: function (e, t) { + _l(e.coordinates, t); + }, + MultiPolygon: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + _l(n[r], t); + }, + GeometryCollection: function (e, t) { + for (var n = e.geometries, r = -1, i = n.length; ++r < i; ) + fl(n[r], t); + }, + }; + function ml(e, t, n) { + var r, + i = -1, + o = e.length - n; + for (t.lineStart(); ++i < o; ) (r = e[i]), t.point(r[0], r[1], r[2]); + t.lineEnd(); + } + function _l(e, t) { + var n = -1, + r = e.length; + for (t.polygonStart(); ++n < r; ) ml(e[n], t, 1); + t.polygonEnd(); + } + var yl, + vl, + bl, + wl, + Cl, + Sl = function (e, t) { + e && pl.hasOwnProperty(e.type) ? pl[e.type](e, t) : fl(e, t); + }, + xl = ju(), + Ll = ju(), + kl = { + point: hl, + lineStart: hl, + lineEnd: hl, + polygonStart: function () { + xl.reset(), (kl.lineStart = Ml), (kl.lineEnd = Dl); + }, + polygonEnd: function () { + var e = +xl; + Ll.add(e < 0 ? Gu + e : e), + (this.lineStart = this.lineEnd = this.point = hl); + }, + sphere: function () { + Ll.add(Gu); + }, + }; + function Ml() { + kl.point = El; + } + function Dl() { + Tl(yl, vl); + } + function El(e, t) { + (kl.point = Tl), + (yl = e), + (vl = t), + (bl = e *= Zu), + (wl = el((t = (t *= Zu) / 2 + Ku))), + (Cl = ol(t)); + } + function Tl(e, t) { + var n = (e *= Zu) - bl, + r = n >= 0 ? 1 : -1, + i = r * n, + o = el((t = (t *= Zu) / 2 + Ku)), + s = ol(t), + a = Cl * s, + u = wl * o + a * el(i), + l = a * r * ol(i); + xl.add(Qu(l, u)), (bl = e), (wl = o), (Cl = s); + } + var Nl = function (e) { + return Ll.reset(), Sl(e, kl), 2 * Ll; + }; + function Ol(e) { + return [Qu(e[1], e[0]), cl(e[2])]; + } + function Al(e) { + var t = e[0], + n = e[1], + r = el(n); + return [r * el(t), r * ol(t), ol(n)]; + } + function Il(e, t) { + return e[0] * t[0] + e[1] * t[1] + e[2] * t[2]; + } + function Pl(e, t) { + return [ + e[1] * t[2] - e[2] * t[1], + e[2] * t[0] - e[0] * t[2], + e[0] * t[1] - e[1] * t[0], + ]; + } + function Rl(e, t) { + (e[0] += t[0]), (e[1] += t[1]), (e[2] += t[2]); + } + function Fl(e, t) { + return [e[0] * t, e[1] * t, e[2] * t]; + } + function Yl(e) { + var t = al(e[0] * e[0] + e[1] * e[1] + e[2] * e[2]); + (e[0] /= t), (e[1] /= t), (e[2] /= t); + } + var jl, + Bl, + Wl, + Hl, + Vl, + zl, + Ul, + ql, + Kl, + Gl, + $l = ju(), + Zl = { + point: Xl, + lineStart: Ql, + lineEnd: ec, + polygonStart: function () { + (Zl.point = tc), + (Zl.lineStart = nc), + (Zl.lineEnd = rc), + $l.reset(), + kl.polygonStart(); + }, + polygonEnd: function () { + kl.polygonEnd(), + (Zl.point = Xl), + (Zl.lineStart = Ql), + (Zl.lineEnd = ec), + xl < 0 + ? ((jl = -(Wl = 180)), (Bl = -(Hl = 90))) + : $l > Vu + ? (Hl = 90) + : $l < -Vu && (Bl = -90), + (Gl[0] = jl), + (Gl[1] = Wl); + }, + sphere: function () { + (jl = -(Wl = 180)), (Bl = -(Hl = 90)); + }, + }; + function Xl(e, t) { + Kl.push((Gl = [(jl = e), (Wl = e)])), + t < Bl && (Bl = t), + t > Hl && (Hl = t); + } + function Jl(e, t) { + var n = Al([e * Zu, t * Zu]); + if (ql) { + var r = Pl(ql, n), + i = Pl([r[1], -r[0], 0], r); + Yl(i), (i = Ol(i)); + var o, + s = e - Vl, + a = s > 0 ? 1 : -1, + u = i[0] * $u * a, + l = Xu(s) > 180; + l ^ (a * Vl < u && u < a * e) + ? (o = i[1] * $u) > Hl && (Hl = o) + : l ^ (a * Vl < (u = ((u + 360) % 360) - 180) && u < a * e) + ? (o = -i[1] * $u) < Bl && (Bl = o) + : (t < Bl && (Bl = t), t > Hl && (Hl = t)), + l + ? e < Vl + ? ic(jl, e) > ic(jl, Wl) && (Wl = e) + : ic(e, Wl) > ic(jl, Wl) && (jl = e) + : Wl >= jl + ? (e < jl && (jl = e), e > Wl && (Wl = e)) + : e > Vl + ? ic(jl, e) > ic(jl, Wl) && (Wl = e) + : ic(e, Wl) > ic(jl, Wl) && (jl = e); + } else Kl.push((Gl = [(jl = e), (Wl = e)])); + t < Bl && (Bl = t), t > Hl && (Hl = t), (ql = n), (Vl = e); + } + function Ql() { + Zl.point = Jl; + } + function ec() { + (Gl[0] = jl), (Gl[1] = Wl), (Zl.point = Xl), (ql = null); + } + function tc(e, t) { + if (ql) { + var n = e - Vl; + $l.add(Xu(n) > 180 ? n + (n > 0 ? 360 : -360) : n); + } else (zl = e), (Ul = t); + kl.point(e, t), Jl(e, t); + } + function nc() { + kl.lineStart(); + } + function rc() { + tc(zl, Ul), + kl.lineEnd(), + Xu($l) > Vu && (jl = -(Wl = 180)), + (Gl[0] = jl), + (Gl[1] = Wl), + (ql = null); + } + function ic(e, t) { + return (t -= e) < 0 ? t + 360 : t; + } + function oc(e, t) { + return e[0] - t[0]; + } + function sc(e, t) { + return e[0] <= e[1] ? e[0] <= t && t <= e[1] : t < e[0] || e[1] < t; + } + var ac, + uc, + lc, + cc, + dc, + hc, + fc, + pc, + gc, + mc, + _c, + yc, + vc, + bc, + wc, + Cc, + Sc = function (e) { + var t, n, r, i, o, s, a; + if ( + ((Hl = Wl = -(jl = Bl = 1 / 0)), + (Kl = []), + Sl(e, Zl), + (n = Kl.length)) + ) { + for (Kl.sort(oc), t = 1, o = [(r = Kl[0])]; t < n; ++t) + sc(r, (i = Kl[t])[0]) || sc(r, i[1]) + ? (ic(r[0], i[1]) > ic(r[0], r[1]) && (r[1] = i[1]), + ic(i[0], r[1]) > ic(r[0], r[1]) && (r[0] = i[0])) + : o.push((r = i)); + for (s = -1 / 0, t = 0, r = o[(n = o.length - 1)]; t <= n; r = i, ++t) + (i = o[t]), + (a = ic(r[1], i[0])) > s && ((s = a), (jl = i[0]), (Wl = r[1])); + } + return ( + (Kl = Gl = null), + jl === 1 / 0 || Bl === 1 / 0 + ? [ + [NaN, NaN], + [NaN, NaN], + ] + : [ + [jl, Bl], + [Wl, Hl], + ] + ); + }, + xc = { + sphere: hl, + point: Lc, + lineStart: Mc, + lineEnd: Tc, + polygonStart: function () { + (xc.lineStart = Nc), (xc.lineEnd = Oc); + }, + polygonEnd: function () { + (xc.lineStart = Mc), (xc.lineEnd = Tc); + }, + }; + function Lc(e, t) { + e *= Zu; + var n = el((t *= Zu)); + kc(n * el(e), n * ol(e), ol(t)); + } + function kc(e, t, n) { + ++ac, (lc += (e - lc) / ac), (cc += (t - cc) / ac), (dc += (n - dc) / ac); + } + function Mc() { + xc.point = Dc; + } + function Dc(e, t) { + e *= Zu; + var n = el((t *= Zu)); + (bc = n * el(e)), + (wc = n * ol(e)), + (Cc = ol(t)), + (xc.point = Ec), + kc(bc, wc, Cc); + } + function Ec(e, t) { + e *= Zu; + var n = el((t *= Zu)), + r = n * el(e), + i = n * ol(e), + o = ol(t), + s = Qu( + al( + (s = wc * o - Cc * i) * s + + (s = Cc * r - bc * o) * s + + (s = bc * i - wc * r) * s + ), + bc * r + wc * i + Cc * o + ); + (uc += s), + (hc += s * (bc + (bc = r))), + (fc += s * (wc + (wc = i))), + (pc += s * (Cc + (Cc = o))), + kc(bc, wc, Cc); + } + function Tc() { + xc.point = Lc; + } + function Nc() { + xc.point = Ac; + } + function Oc() { + Ic(yc, vc), (xc.point = Lc); + } + function Ac(e, t) { + (yc = e), (vc = t), (e *= Zu), (t *= Zu), (xc.point = Ic); + var n = el(t); + (bc = n * el(e)), (wc = n * ol(e)), (Cc = ol(t)), kc(bc, wc, Cc); + } + function Ic(e, t) { + e *= Zu; + var n = el((t *= Zu)), + r = n * el(e), + i = n * ol(e), + o = ol(t), + s = wc * o - Cc * i, + a = Cc * r - bc * o, + u = bc * i - wc * r, + l = al(s * s + a * a + u * u), + c = cl(l), + d = l && -c / l; + (gc += d * s), + (mc += d * a), + (_c += d * u), + (uc += c), + (hc += c * (bc + (bc = r))), + (fc += c * (wc + (wc = i))), + (pc += c * (Cc + (Cc = o))), + kc(bc, wc, Cc); + } + var Pc = function (e) { + (ac = uc = lc = cc = dc = hc = fc = pc = gc = mc = _c = 0), Sl(e, xc); + var t = gc, + n = mc, + r = _c, + i = t * t + n * n + r * r; + return i < zu && + ((t = hc), + (n = fc), + (r = pc), + uc < Vu && ((t = lc), (n = cc), (r = dc)), + (i = t * t + n * n + r * r) < zu) + ? [NaN, NaN] + : [Qu(n, t) * $u, cl(r / al(i)) * $u]; + }, + Rc = function (e) { + return function () { + return e; + }; + }, + Fc = function (e, t) { + function n(n, r) { + return (n = e(n, r)), t(n[0], n[1]); + } + return ( + e.invert && + t.invert && + (n.invert = function (n, r) { + return (n = t.invert(n, r)) && e.invert(n[0], n[1]); + }), + n + ); + }; + function Yc(e, t) { + return [Xu(e) > Uu ? e + Math.round(-e / Gu) * Gu : e, t]; + } + function jc(e, t, n) { + return (e %= Gu) + ? t || n + ? Fc(Wc(e), Hc(t, n)) + : Wc(e) + : t || n + ? Hc(t, n) + : Yc; + } + function Bc(e) { + return function (t, n) { + return [(t += e) > Uu ? t - Gu : t < -Uu ? t + Gu : t, n]; + }; + } + function Wc(e) { + var t = Bc(e); + return (t.invert = Bc(-e)), t; + } + function Hc(e, t) { + var n = el(e), + r = ol(e), + i = el(t), + o = ol(t); + function s(e, t) { + var s = el(t), + a = el(e) * s, + u = ol(e) * s, + l = ol(t), + c = l * n + a * r; + return [Qu(u * i - c * o, a * n - l * r), cl(c * i + u * o)]; + } + return ( + (s.invert = function (e, t) { + var s = el(t), + a = el(e) * s, + u = ol(e) * s, + l = ol(t), + c = l * i - u * o; + return [Qu(u * i + l * o, a * n + c * r), cl(c * n - a * r)]; + }), + s + ); + } + Yc.invert = Yc; + var Vc = function (e) { + function t(t) { + return ((t = e(t[0] * Zu, t[1] * Zu))[0] *= $u), (t[1] *= $u), t; + } + return ( + (e = jc(e[0] * Zu, e[1] * Zu, e.length > 2 ? e[2] * Zu : 0)), + (t.invert = function (t) { + return ( + ((t = e.invert(t[0] * Zu, t[1] * Zu))[0] *= $u), (t[1] *= $u), t + ); + }), + t + ); + }; + function zc(e, t, n, r, i, o) { + if (n) { + var s = el(t), + a = ol(t), + u = r * n; + null == i + ? ((i = t + r * Gu), (o = t - u / 2)) + : ((i = Uc(s, i)), + (o = Uc(s, o)), + (r > 0 ? i < o : i > o) && (i += r * Gu)); + for (var l, c = i; r > 0 ? c > o : c < o; c -= u) + (l = Ol([s, -a * el(c), -a * ol(c)])), e.point(l[0], l[1]); + } + } + function Uc(e, t) { + ((t = Al(t))[0] -= e), Yl(t); + var n = ll(-t[1]); + return ((-t[2] < 0 ? -n : n) + Gu - Vu) % Gu; + } + var qc = function () { + var e, + t, + n = Rc([0, 0]), + r = Rc(90), + i = Rc(6), + o = { + point: function (n, r) { + e.push((n = t(n, r))), (n[0] *= $u), (n[1] *= $u); + }, + }; + function s() { + var s = n.apply(this, arguments), + a = r.apply(this, arguments) * Zu, + u = i.apply(this, arguments) * Zu; + return ( + (e = []), + (t = jc(-s[0] * Zu, -s[1] * Zu, 0).invert), + zc(o, a, u, 1), + (s = { type: 'Polygon', coordinates: [e] }), + (e = t = null), + s + ); + } + return ( + (s.center = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : Rc([+e[0], +e[1]])), s) + : n; + }), + (s.radius = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : Rc(+e)), s) + : r; + }), + (s.precision = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : Rc(+e)), s) + : i; + }), + s + ); + }, + Kc = function () { + var e, + t = []; + return { + point: function (t, n) { + e.push([t, n]); + }, + lineStart: function () { + t.push((e = [])); + }, + lineEnd: hl, + rejoin: function () { + t.length > 1 && t.push(t.pop().concat(t.shift())); + }, + result: function () { + var n = t; + return (t = []), (e = null), n; + }, + }; + }, + Gc = function (e, t) { + return Xu(e[0] - t[0]) < Vu && Xu(e[1] - t[1]) < Vu; + }; + function $c(e, t, n, r) { + (this.x = e), + (this.z = t), + (this.o = n), + (this.e = r), + (this.v = !1), + (this.n = this.p = null); + } + var Zc = function (e, t, n, r, i) { + var o, + s, + a = [], + u = []; + if ( + (e.forEach(function (e) { + if (!((t = e.length - 1) <= 0)) { + var t, + n, + r = e[0], + s = e[t]; + if (Gc(r, s)) { + for (i.lineStart(), o = 0; o < t; ++o) + i.point((r = e[o])[0], r[1]); + i.lineEnd(); + } else + a.push((n = new $c(r, e, null, !0))), + u.push((n.o = new $c(r, null, n, !1))), + a.push((n = new $c(s, e, null, !1))), + u.push((n.o = new $c(s, null, n, !0))); + } + }), + a.length) + ) { + for (u.sort(t), Xc(a), Xc(u), o = 0, s = u.length; o < s; ++o) + u[o].e = n = !n; + for (var l, c, d = a[0]; ; ) { + for (var h = d, f = !0; h.v; ) if ((h = h.n) === d) return; + (l = h.z), i.lineStart(); + do { + if (((h.v = h.o.v = !0), h.e)) { + if (f) + for (o = 0, s = l.length; o < s; ++o) + i.point((c = l[o])[0], c[1]); + else r(h.x, h.n.x, 1, i); + h = h.n; + } else { + if (f) + for (l = h.p.z, o = l.length - 1; o >= 0; --o) + i.point((c = l[o])[0], c[1]); + else r(h.x, h.p.x, -1, i); + h = h.p; + } + (l = (h = h.o).z), (f = !f); + } while (!h.v); + i.lineEnd(); + } + } + }; + function Xc(e) { + if ((t = e.length)) { + for (var t, n, r = 0, i = e[0]; ++r < t; ) + (i.n = n = e[r]), (n.p = i), (i = n); + (i.n = n = e[0]), (n.p = i); + } + } + var Jc = ju(); + function Qc(e) { + return Xu(e[0]) <= Uu ? e[0] : sl(e[0]) * (((Xu(e[0]) + Uu) % Gu) - Uu); + } + var ed = function (e, t) { + var n = Qc(t), + r = t[1], + i = ol(r), + o = [ol(n), -el(n), 0], + s = 0, + a = 0; + Jc.reset(), 1 === i ? (r = qu + Vu) : -1 === i && (r = -qu - Vu); + for (var u = 0, l = e.length; u < l; ++u) + if ((d = (c = e[u]).length)) + for ( + var c, + d, + h = c[d - 1], + f = Qc(h), + p = h[1] / 2 + Ku, + g = ol(p), + m = el(p), + _ = 0; + _ < d; + ++_, f = v, g = w, m = C, h = y + ) { + var y = c[_], + v = Qc(y), + b = y[1] / 2 + Ku, + w = ol(b), + C = el(b), + S = v - f, + x = S >= 0 ? 1 : -1, + L = x * S, + k = L > Uu, + M = g * w; + if ( + (Jc.add(Qu(M * x * ol(L), m * C + M * el(L))), + (s += k ? S + x * Gu : S), + k ^ (f >= n) ^ (v >= n)) + ) { + var D = Pl(Al(h), Al(y)); + Yl(D); + var E = Pl(o, D); + Yl(E); + var T = (k ^ (S >= 0) ? -1 : 1) * cl(E[2]); + (r > T || (r === T && (D[0] || D[1]))) && + (a += k ^ (S >= 0) ? 1 : -1); + } + } + return (s < -Vu || (s < Vu && Jc < -Vu)) ^ (1 & a); + }, + td = function (e, t, n, r) { + return function (i) { + var o, + s, + a, + u = t(i), + l = Kc(), + c = t(l), + d = !1, + h = { + point: f, + lineStart: g, + lineEnd: m, + polygonStart: function () { + (h.point = _), + (h.lineStart = y), + (h.lineEnd = v), + (s = []), + (o = []); + }, + polygonEnd: function () { + (h.point = f), (h.lineStart = g), (h.lineEnd = m), (s = F(s)); + var e = ed(o, r); + s.length + ? (d || (i.polygonStart(), (d = !0)), Zc(s, rd, e, n, i)) + : e && + (d || (i.polygonStart(), (d = !0)), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd()), + d && (i.polygonEnd(), (d = !1)), + (s = o = null); + }, + sphere: function () { + i.polygonStart(), + i.lineStart(), + n(null, null, 1, i), + i.lineEnd(), + i.polygonEnd(); + }, + }; + function f(t, n) { + e(t, n) && i.point(t, n); + } + function p(e, t) { + u.point(e, t); + } + function g() { + (h.point = p), u.lineStart(); + } + function m() { + (h.point = f), u.lineEnd(); + } + function _(e, t) { + a.push([e, t]), c.point(e, t); + } + function y() { + c.lineStart(), (a = []); + } + function v() { + _(a[0][0], a[0][1]), c.lineEnd(); + var e, + t, + n, + r, + u = c.clean(), + h = l.result(), + f = h.length; + if ((a.pop(), o.push(a), (a = null), f)) + if (1 & u) { + if ((t = (n = h[0]).length - 1) > 0) { + for ( + d || (i.polygonStart(), (d = !0)), i.lineStart(), e = 0; + e < t; + ++e + ) + i.point((r = n[e])[0], r[1]); + i.lineEnd(); + } + } else + f > 1 && 2 & u && h.push(h.pop().concat(h.shift())), + s.push(h.filter(nd)); + } + return h; + }; + }; + function nd(e) { + return e.length > 1; + } + function rd(e, t) { + return ( + ((e = e.x)[0] < 0 ? e[1] - qu - Vu : qu - e[1]) - + ((t = t.x)[0] < 0 ? t[1] - qu - Vu : qu - t[1]) + ); + } + var id = td( + function () { + return !0; + }, + function (e) { + var t, + n = NaN, + r = NaN, + i = NaN; + return { + lineStart: function () { + e.lineStart(), (t = 1); + }, + point: function (o, s) { + var a = o > 0 ? Uu : -Uu, + u = Xu(o - n); + Xu(u - Uu) < Vu + ? (e.point(n, (r = (r + s) / 2 > 0 ? qu : -qu)), + e.point(i, r), + e.lineEnd(), + e.lineStart(), + e.point(a, r), + e.point(o, r), + (t = 0)) + : i !== a && + u >= Uu && + (Xu(n - i) < Vu && (n -= i * Vu), + Xu(o - a) < Vu && (o -= a * Vu), + (r = (function (e, t, n, r) { + var i, + o, + s = ol(e - n); + return Xu(s) > Vu + ? Ju( + (ol(t) * (o = el(r)) * ol(n) - + ol(r) * (i = el(t)) * ol(e)) / + (i * o * s) + ) + : (t + r) / 2; + })(n, r, o, s)), + e.point(i, r), + e.lineEnd(), + e.lineStart(), + e.point(a, r), + (t = 0)), + e.point((n = o), (r = s)), + (i = a); + }, + lineEnd: function () { + e.lineEnd(), (n = r = NaN); + }, + clean: function () { + return 2 - t; + }, + }; + }, + function (e, t, n, r) { + var i; + if (null == e) + (i = n * qu), + r.point(-Uu, i), + r.point(0, i), + r.point(Uu, i), + r.point(Uu, 0), + r.point(Uu, -i), + r.point(0, -i), + r.point(-Uu, -i), + r.point(-Uu, 0), + r.point(-Uu, i); + else if (Xu(e[0] - t[0]) > Vu) { + var o = e[0] < t[0] ? Uu : -Uu; + (i = (n * o) / 2), r.point(-o, i), r.point(0, i), r.point(o, i); + } else r.point(t[0], t[1]); + }, + [-Uu, -qu] + ); + var od = function (e) { + var t = el(e), + n = 6 * Zu, + r = t > 0, + i = Xu(t) > Vu; + function o(e, n) { + return el(e) * el(n) > t; + } + function s(e, n, r) { + var i = [1, 0, 0], + o = Pl(Al(e), Al(n)), + s = Il(o, o), + a = o[0], + u = s - a * a; + if (!u) return !r && e; + var l = (t * s) / u, + c = (-t * a) / u, + d = Pl(i, o), + h = Fl(i, l); + Rl(h, Fl(o, c)); + var f = d, + p = Il(h, f), + g = Il(f, f), + m = p * p - g * (Il(h, h) - 1); + if (!(m < 0)) { + var _ = al(m), + y = Fl(f, (-p - _) / g); + if ((Rl(y, h), (y = Ol(y)), !r)) return y; + var v, + b = e[0], + w = n[0], + C = e[1], + S = n[1]; + w < b && ((v = b), (b = w), (w = v)); + var x = w - b, + L = Xu(x - Uu) < Vu; + if ( + (!L && S < C && ((v = C), (C = S), (S = v)), + L || x < Vu + ? L + ? (C + S > 0) ^ (y[1] < (Xu(y[0] - b) < Vu ? C : S)) + : C <= y[1] && y[1] <= S + : (x > Uu) ^ (b <= y[0] && y[0] <= w)) + ) { + var k = Fl(f, (-p + _) / g); + return Rl(k, h), [y, Ol(k)]; + } + } + } + function a(t, n) { + var i = r ? e : Uu - e, + o = 0; + return ( + t < -i ? (o |= 1) : t > i && (o |= 2), + n < -i ? (o |= 4) : n > i && (o |= 8), + o + ); + } + return td( + o, + function (e) { + var t, n, u, l, c; + return { + lineStart: function () { + (l = u = !1), (c = 1); + }, + point: function (d, h) { + var f, + p = [d, h], + g = o(d, h), + m = r + ? g + ? 0 + : a(d, h) + : g + ? a(d + (d < 0 ? Uu : -Uu), h) + : 0; + if ( + (!t && (l = u = g) && e.lineStart(), + g !== u && + (!(f = s(t, p)) || Gc(t, f) || Gc(p, f)) && + ((p[0] += Vu), (p[1] += Vu), (g = o(p[0], p[1]))), + g !== u) + ) + (c = 0), + g + ? (e.lineStart(), (f = s(p, t)), e.point(f[0], f[1])) + : ((f = s(t, p)), e.point(f[0], f[1]), e.lineEnd()), + (t = f); + else if (i && t && r ^ g) { + var _; + m & n || + !(_ = s(p, t, !0)) || + ((c = 0), + r + ? (e.lineStart(), + e.point(_[0][0], _[0][1]), + e.point(_[1][0], _[1][1]), + e.lineEnd()) + : (e.point(_[1][0], _[1][1]), + e.lineEnd(), + e.lineStart(), + e.point(_[0][0], _[0][1]))); + } + !g || (t && Gc(t, p)) || e.point(p[0], p[1]), + (t = p), + (u = g), + (n = m); + }, + lineEnd: function () { + u && e.lineEnd(), (t = null); + }, + clean: function () { + return c | ((l && u) << 1); + }, + }; + }, + function (t, r, i, o) { + zc(o, e, n, i, t, r); + }, + r ? [0, -e] : [-Uu, e - Uu] + ); + }, + sd = function (e, t, n, r, i, o) { + var s, + a = e[0], + u = e[1], + l = 0, + c = 1, + d = t[0] - a, + h = t[1] - u; + if (((s = n - a), d || !(s > 0))) { + if (((s /= d), d < 0)) { + if (s < l) return; + s < c && (c = s); + } else if (d > 0) { + if (s > c) return; + s > l && (l = s); + } + if (((s = i - a), d || !(s < 0))) { + if (((s /= d), d < 0)) { + if (s > c) return; + s > l && (l = s); + } else if (d > 0) { + if (s < l) return; + s < c && (c = s); + } + if (((s = r - u), h || !(s > 0))) { + if (((s /= h), h < 0)) { + if (s < l) return; + s < c && (c = s); + } else if (h > 0) { + if (s > c) return; + s > l && (l = s); + } + if (((s = o - u), h || !(s < 0))) { + if (((s /= h), h < 0)) { + if (s > c) return; + s > l && (l = s); + } else if (h > 0) { + if (s < l) return; + s < c && (c = s); + } + return ( + l > 0 && ((e[0] = a + l * d), (e[1] = u + l * h)), + c < 1 && ((t[0] = a + c * d), (t[1] = u + c * h)), + !0 + ); + } + } + } + } + }, + ad = 1e9, + ud = -ad; + function ld(e, t, n, r) { + function i(i, o) { + return e <= i && i <= n && t <= o && o <= r; + } + function o(i, o, a, l) { + var c = 0, + d = 0; + if ( + null == i || + (c = s(i, a)) !== (d = s(o, a)) || + (u(i, o) < 0) ^ (a > 0) + ) + do { + l.point(0 === c || 3 === c ? e : n, c > 1 ? r : t); + } while ((c = (c + a + 4) % 4) !== d); + else l.point(o[0], o[1]); + } + function s(r, i) { + return Xu(r[0] - e) < Vu + ? i > 0 + ? 0 + : 3 + : Xu(r[0] - n) < Vu + ? i > 0 + ? 2 + : 1 + : Xu(r[1] - t) < Vu + ? i > 0 + ? 1 + : 0 + : i > 0 + ? 3 + : 2; + } + function a(e, t) { + return u(e.x, t.x); + } + function u(e, t) { + var n = s(e, 1), + r = s(t, 1); + return n !== r + ? n - r + : 0 === n + ? t[1] - e[1] + : 1 === n + ? e[0] - t[0] + : 2 === n + ? e[1] - t[1] + : t[0] - e[0]; + } + return function (s) { + var u, + l, + c, + d, + h, + f, + p, + g, + m, + _, + y, + v = s, + b = Kc(), + w = { + point: C, + lineStart: function () { + (w.point = S), l && l.push((c = [])); + (_ = !0), (m = !1), (p = g = NaN); + }, + lineEnd: function () { + u && (S(d, h), f && m && b.rejoin(), u.push(b.result())); + (w.point = C), m && v.lineEnd(); + }, + polygonStart: function () { + (v = b), (u = []), (l = []), (y = !0); + }, + polygonEnd: function () { + var t = (function () { + for (var t = 0, n = 0, i = l.length; n < i; ++n) + for ( + var o, + s, + a = l[n], + u = 1, + c = a.length, + d = a[0], + h = d[0], + f = d[1]; + u < c; + ++u + ) + (o = h), + (s = f), + (d = a[u]), + (h = d[0]), + (f = d[1]), + s <= r + ? f > r && + (h - o) * (r - s) > (f - s) * (e - o) && + ++t + : f <= r && + (h - o) * (r - s) < (f - s) * (e - o) && + --t; + return t; + })(), + n = y && t, + i = (u = F(u)).length; + (n || i) && + (s.polygonStart(), + n && (s.lineStart(), o(null, null, 1, s), s.lineEnd()), + i && Zc(u, a, t, o, s), + s.polygonEnd()); + (v = s), (u = l = c = null); + }, + }; + function C(e, t) { + i(e, t) && v.point(e, t); + } + function S(o, s) { + var a = i(o, s); + if ((l && c.push([o, s]), _)) + (d = o), + (h = s), + (f = a), + (_ = !1), + a && (v.lineStart(), v.point(o, s)); + else if (a && m) v.point(o, s); + else { + var u = [ + (p = Math.max(ud, Math.min(ad, p))), + (g = Math.max(ud, Math.min(ad, g))), + ], + b = [ + (o = Math.max(ud, Math.min(ad, o))), + (s = Math.max(ud, Math.min(ad, s))), + ]; + sd(u, b, e, t, n, r) + ? (m || (v.lineStart(), v.point(u[0], u[1])), + v.point(b[0], b[1]), + a || v.lineEnd(), + (y = !1)) + : a && (v.lineStart(), v.point(o, s), (y = !1)); + } + (p = o), (g = s), (m = a); + } + return w; + }; + } + var cd, + dd, + hd, + fd = function () { + var e, + t, + n, + r = 0, + i = 0, + o = 960, + s = 500; + return (n = { + stream: function (n) { + return e && t === n ? e : (e = ld(r, i, o, s)((t = n))); + }, + extent: function (a) { + return arguments.length + ? ((r = +a[0][0]), + (i = +a[0][1]), + (o = +a[1][0]), + (s = +a[1][1]), + (e = t = null), + n) + : [ + [r, i], + [o, s], + ]; + }, + }); + }, + pd = ju(), + gd = { + sphere: hl, + point: hl, + lineStart: function () { + (gd.point = _d), (gd.lineEnd = md); + }, + lineEnd: hl, + polygonStart: hl, + polygonEnd: hl, + }; + function md() { + gd.point = gd.lineEnd = hl; + } + function _d(e, t) { + (cd = e *= Zu), (dd = ol((t *= Zu))), (hd = el(t)), (gd.point = yd); + } + function yd(e, t) { + e *= Zu; + var n = ol((t *= Zu)), + r = el(t), + i = Xu(e - cd), + o = el(i), + s = r * ol(i), + a = hd * n - dd * r * o, + u = dd * n + hd * r * o; + pd.add(Qu(al(s * s + a * a), u)), (cd = e), (dd = n), (hd = r); + } + var vd = function (e) { + return pd.reset(), Sl(e, gd), +pd; + }, + bd = [null, null], + wd = { type: 'LineString', coordinates: bd }, + Cd = function (e, t) { + return (bd[0] = e), (bd[1] = t), vd(wd); + }, + Sd = { + Feature: function (e, t) { + return Ld(e.geometry, t); + }, + FeatureCollection: function (e, t) { + for (var n = e.features, r = -1, i = n.length; ++r < i; ) + if (Ld(n[r].geometry, t)) return !0; + return !1; + }, + }, + xd = { + Sphere: function () { + return !0; + }, + Point: function (e, t) { + return kd(e.coordinates, t); + }, + MultiPoint: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + if (kd(n[r], t)) return !0; + return !1; + }, + LineString: function (e, t) { + return Md(e.coordinates, t); + }, + MultiLineString: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + if (Md(n[r], t)) return !0; + return !1; + }, + Polygon: function (e, t) { + return Dd(e.coordinates, t); + }, + MultiPolygon: function (e, t) { + for (var n = e.coordinates, r = -1, i = n.length; ++r < i; ) + if (Dd(n[r], t)) return !0; + return !1; + }, + GeometryCollection: function (e, t) { + for (var n = e.geometries, r = -1, i = n.length; ++r < i; ) + if (Ld(n[r], t)) return !0; + return !1; + }, + }; + function Ld(e, t) { + return !(!e || !xd.hasOwnProperty(e.type)) && xd[e.type](e, t); + } + function kd(e, t) { + return 0 === Cd(e, t); + } + function Md(e, t) { + for (var n, r, i, o = 0, s = e.length; o < s; o++) { + if (0 === (r = Cd(e[o], t))) return !0; + if ( + o > 0 && + (i = Cd(e[o], e[o - 1])) > 0 && + n <= i && + r <= i && + (n + r - i) * (1 - Math.pow((n - r) / i, 2)) < zu * i + ) + return !0; + n = r; + } + return !1; + } + function Dd(e, t) { + return !!ed(e.map(Ed), Td(t)); + } + function Ed(e) { + return (e = e.map(Td)).pop(), e; + } + function Td(e) { + return [e[0] * Zu, e[1] * Zu]; + } + var Nd = function (e, t) { + return (e && Sd.hasOwnProperty(e.type) ? Sd[e.type] : Ld)(e, t); + }; + function Od(e, t, n) { + var r = C(e, t - Vu, n).concat(t); + return function (e) { + return r.map(function (t) { + return [e, t]; + }); + }; + } + function Ad(e, t, n) { + var r = C(e, t - Vu, n).concat(t); + return function (e) { + return r.map(function (t) { + return [t, e]; + }); + }; + } + function Id() { + var e, + t, + n, + r, + i, + o, + s, + a, + u, + l, + c, + d, + h = 10, + f = h, + p = 90, + g = 360, + m = 2.5; + function _() { + return { type: 'MultiLineString', coordinates: y() }; + } + function y() { + return C(tl(r / p) * p, n, p) + .map(c) + .concat(C(tl(a / g) * g, s, g).map(d)) + .concat( + C(tl(t / h) * h, e, h) + .filter(function (e) { + return Xu(e % p) > Vu; + }) + .map(u) + ) + .concat( + C(tl(o / f) * f, i, f) + .filter(function (e) { + return Xu(e % g) > Vu; + }) + .map(l) + ); + } + return ( + (_.lines = function () { + return y().map(function (e) { + return { type: 'LineString', coordinates: e }; + }); + }), + (_.outline = function () { + return { + type: 'Polygon', + coordinates: [ + c(r).concat( + d(s).slice(1), + c(n).reverse().slice(1), + d(a).reverse().slice(1) + ), + ], + }; + }), + (_.extent = function (e) { + return arguments.length + ? _.extentMajor(e).extentMinor(e) + : _.extentMinor(); + }), + (_.extentMajor = function (e) { + return arguments.length + ? ((r = +e[0][0]), + (n = +e[1][0]), + (a = +e[0][1]), + (s = +e[1][1]), + r > n && ((e = r), (r = n), (n = e)), + a > s && ((e = a), (a = s), (s = e)), + _.precision(m)) + : [ + [r, a], + [n, s], + ]; + }), + (_.extentMinor = function (n) { + return arguments.length + ? ((t = +n[0][0]), + (e = +n[1][0]), + (o = +n[0][1]), + (i = +n[1][1]), + t > e && ((n = t), (t = e), (e = n)), + o > i && ((n = o), (o = i), (i = n)), + _.precision(m)) + : [ + [t, o], + [e, i], + ]; + }), + (_.step = function (e) { + return arguments.length ? _.stepMajor(e).stepMinor(e) : _.stepMinor(); + }), + (_.stepMajor = function (e) { + return arguments.length ? ((p = +e[0]), (g = +e[1]), _) : [p, g]; + }), + (_.stepMinor = function (e) { + return arguments.length ? ((h = +e[0]), (f = +e[1]), _) : [h, f]; + }), + (_.precision = function (h) { + return arguments.length + ? ((m = +h), + (u = Od(o, i, 90)), + (l = Ad(t, e, m)), + (c = Od(a, s, 90)), + (d = Ad(r, n, m)), + _) + : m; + }), + _.extentMajor([ + [-180, -90 + Vu], + [180, 90 - Vu], + ]).extentMinor([ + [-180, -80 - Vu], + [180, 80 + Vu], + ]) + ); + } + function Pd() { + return Id()(); + } + var Rd, + Fd, + Yd, + jd, + Bd = function (e, t) { + var n = e[0] * Zu, + r = e[1] * Zu, + i = t[0] * Zu, + o = t[1] * Zu, + s = el(r), + a = ol(r), + u = el(o), + l = ol(o), + c = s * el(n), + d = s * ol(n), + h = u * el(i), + f = u * ol(i), + p = 2 * cl(al(dl(o - r) + s * u * dl(i - n))), + g = ol(p), + m = p + ? function (e) { + var t = ol((e *= p)) / g, + n = ol(p - e) / g, + r = n * c + t * h, + i = n * d + t * f, + o = n * a + t * l; + return [Qu(i, r) * $u, Qu(o, al(r * r + i * i)) * $u]; + } + : function () { + return [n * $u, r * $u]; + }; + return (m.distance = p), m; + }, + Wd = function (e) { + return e; + }, + Hd = ju(), + Vd = ju(), + zd = { + point: hl, + lineStart: hl, + lineEnd: hl, + polygonStart: function () { + (zd.lineStart = Ud), (zd.lineEnd = Gd); + }, + polygonEnd: function () { + (zd.lineStart = zd.lineEnd = zd.point = hl), + Hd.add(Xu(Vd)), + Vd.reset(); + }, + result: function () { + var e = Hd / 2; + return Hd.reset(), e; + }, + }; + function Ud() { + zd.point = qd; + } + function qd(e, t) { + (zd.point = Kd), (Rd = Yd = e), (Fd = jd = t); + } + function Kd(e, t) { + Vd.add(jd * e - Yd * t), (Yd = e), (jd = t); + } + function Gd() { + Kd(Rd, Fd); + } + var $d = zd, + Zd = 1 / 0, + Xd = Zd, + Jd = -Zd, + Qd = Jd; + var eh, + th, + nh, + rh, + ih = { + point: function (e, t) { + e < Zd && (Zd = e); + e > Jd && (Jd = e); + t < Xd && (Xd = t); + t > Qd && (Qd = t); + }, + lineStart: hl, + lineEnd: hl, + polygonStart: hl, + polygonEnd: hl, + result: function () { + var e = [ + [Zd, Xd], + [Jd, Qd], + ]; + return (Jd = Qd = -(Xd = Zd = 1 / 0)), e; + }, + }, + oh = 0, + sh = 0, + ah = 0, + uh = 0, + lh = 0, + ch = 0, + dh = 0, + hh = 0, + fh = 0, + ph = { + point: gh, + lineStart: mh, + lineEnd: vh, + polygonStart: function () { + (ph.lineStart = bh), (ph.lineEnd = wh); + }, + polygonEnd: function () { + (ph.point = gh), (ph.lineStart = mh), (ph.lineEnd = vh); + }, + result: function () { + var e = fh + ? [dh / fh, hh / fh] + : ch + ? [uh / ch, lh / ch] + : ah + ? [oh / ah, sh / ah] + : [NaN, NaN]; + return (oh = sh = ah = uh = lh = ch = dh = hh = fh = 0), e; + }, + }; + function gh(e, t) { + (oh += e), (sh += t), ++ah; + } + function mh() { + ph.point = _h; + } + function _h(e, t) { + (ph.point = yh), gh((nh = e), (rh = t)); + } + function yh(e, t) { + var n = e - nh, + r = t - rh, + i = al(n * n + r * r); + (uh += (i * (nh + e)) / 2), + (lh += (i * (rh + t)) / 2), + (ch += i), + gh((nh = e), (rh = t)); + } + function vh() { + ph.point = gh; + } + function bh() { + ph.point = Ch; + } + function wh() { + Sh(eh, th); + } + function Ch(e, t) { + (ph.point = Sh), gh((eh = nh = e), (th = rh = t)); + } + function Sh(e, t) { + var n = e - nh, + r = t - rh, + i = al(n * n + r * r); + (uh += (i * (nh + e)) / 2), + (lh += (i * (rh + t)) / 2), + (ch += i), + (dh += (i = rh * e - nh * t) * (nh + e)), + (hh += i * (rh + t)), + (fh += 3 * i), + gh((nh = e), (rh = t)); + } + var xh = ph; + function Lh(e) { + this._context = e; + } + Lh.prototype = { + _radius: 4.5, + pointRadius: function (e) { + return (this._radius = e), this; + }, + polygonStart: function () { + this._line = 0; + }, + polygonEnd: function () { + this._line = NaN; + }, + lineStart: function () { + this._point = 0; + }, + lineEnd: function () { + 0 === this._line && this._context.closePath(), (this._point = NaN); + }, + point: function (e, t) { + switch (this._point) { + case 0: + this._context.moveTo(e, t), (this._point = 1); + break; + case 1: + this._context.lineTo(e, t); + break; + default: + this._context.moveTo(e + this._radius, t), + this._context.arc(e, t, this._radius, 0, Gu); + } + }, + result: hl, + }; + var kh, + Mh, + Dh, + Eh, + Th, + Nh = ju(), + Oh = { + point: hl, + lineStart: function () { + Oh.point = Ah; + }, + lineEnd: function () { + kh && Ih(Mh, Dh), (Oh.point = hl); + }, + polygonStart: function () { + kh = !0; + }, + polygonEnd: function () { + kh = null; + }, + result: function () { + var e = +Nh; + return Nh.reset(), e; + }, + }; + function Ah(e, t) { + (Oh.point = Ih), (Mh = Eh = e), (Dh = Th = t); + } + function Ih(e, t) { + (Eh -= e), (Th -= t), Nh.add(al(Eh * Eh + Th * Th)), (Eh = e), (Th = t); + } + var Ph = Oh; + function Rh() { + this._string = []; + } + function Fh(e) { + return ( + 'm0,' + + e + + 'a' + + e + + ',' + + e + + ' 0 1,1 0,' + + -2 * e + + 'a' + + e + + ',' + + e + + ' 0 1,1 0,' + + 2 * e + + 'z' + ); + } + Rh.prototype = { + _radius: 4.5, + _circle: Fh(4.5), + pointRadius: function (e) { + return ( + (e = +e) !== this._radius && + ((this._radius = e), (this._circle = null)), + this + ); + }, + polygonStart: function () { + this._line = 0; + }, + polygonEnd: function () { + this._line = NaN; + }, + lineStart: function () { + this._point = 0; + }, + lineEnd: function () { + 0 === this._line && this._string.push('Z'), (this._point = NaN); + }, + point: function (e, t) { + switch (this._point) { + case 0: + this._string.push('M', e, ',', t), (this._point = 1); + break; + case 1: + this._string.push('L', e, ',', t); + break; + default: + null == this._circle && (this._circle = Fh(this._radius)), + this._string.push('M', e, ',', t, this._circle); + } + }, + result: function () { + if (this._string.length) { + var e = this._string.join(''); + return (this._string = []), e; + } + return null; + }, + }; + var Yh = function (e, t) { + var n, + r, + i = 4.5; + function o(e) { + return ( + e && + ('function' == typeof i && + r.pointRadius(+i.apply(this, arguments)), + Sl(e, n(r))), + r.result() + ); + } + return ( + (o.area = function (e) { + return Sl(e, n($d)), $d.result(); + }), + (o.measure = function (e) { + return Sl(e, n(Ph)), Ph.result(); + }), + (o.bounds = function (e) { + return Sl(e, n(ih)), ih.result(); + }), + (o.centroid = function (e) { + return Sl(e, n(xh)), xh.result(); + }), + (o.projection = function (t) { + return arguments.length + ? ((n = null == t ? ((e = null), Wd) : (e = t).stream), o) + : e; + }), + (o.context = function (e) { + return arguments.length + ? ((r = null == e ? ((t = null), new Rh()) : new Lh((t = e))), + 'function' != typeof i && r.pointRadius(i), + o) + : t; + }), + (o.pointRadius = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : (r.pointRadius(+e), +e)), o) + : i; + }), + o.projection(e).context(t) + ); + }, + jh = function (e) { + return { stream: Bh(e) }; + }; + function Bh(e) { + return function (t) { + var n = new Wh(); + for (var r in e) n[r] = e[r]; + return (n.stream = t), n; + }; + } + function Wh() {} + function Hh(e, t, n) { + var r = e.clipExtent && e.clipExtent(); + return ( + e.scale(150).translate([0, 0]), + null != r && e.clipExtent(null), + Sl(n, e.stream(ih)), + t(ih.result()), + null != r && e.clipExtent(r), + e + ); + } + function Vh(e, t, n) { + return Hh( + e, + function (n) { + var r = t[1][0] - t[0][0], + i = t[1][1] - t[0][1], + o = Math.min(r / (n[1][0] - n[0][0]), i / (n[1][1] - n[0][1])), + s = +t[0][0] + (r - o * (n[1][0] + n[0][0])) / 2, + a = +t[0][1] + (i - o * (n[1][1] + n[0][1])) / 2; + e.scale(150 * o).translate([s, a]); + }, + n + ); + } + function zh(e, t, n) { + return Vh(e, [[0, 0], t], n); + } + function Uh(e, t, n) { + return Hh( + e, + function (n) { + var r = +t, + i = r / (n[1][0] - n[0][0]), + o = (r - i * (n[1][0] + n[0][0])) / 2, + s = -i * n[0][1]; + e.scale(150 * i).translate([o, s]); + }, + n + ); + } + function qh(e, t, n) { + return Hh( + e, + function (n) { + var r = +t, + i = r / (n[1][1] - n[0][1]), + o = -i * n[0][0], + s = (r - i * (n[1][1] + n[0][1])) / 2; + e.scale(150 * i).translate([o, s]); + }, + n + ); + } + Wh.prototype = { + constructor: Wh, + point: function (e, t) { + this.stream.point(e, t); + }, + 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(); + }, + }; + var Kh = 16, + Gh = el(30 * Zu), + $h = function (e, t) { + return +t + ? (function (e, t) { + function n(r, i, o, s, a, u, l, c, d, h, f, p, g, m) { + var _ = l - r, + y = c - i, + v = _ * _ + y * y; + if (v > 4 * t && g--) { + var b = s + h, + w = a + f, + C = u + p, + S = al(b * b + w * w + C * C), + x = cl((C /= S)), + L = + Xu(Xu(C) - 1) < Vu || Xu(o - d) < Vu + ? (o + d) / 2 + : Qu(w, b), + k = e(L, x), + M = k[0], + D = k[1], + E = M - r, + T = D - i, + N = y * E - _ * T; + ((N * N) / v > t || + Xu((_ * E + y * T) / v - 0.5) > 0.3 || + s * h + a * f + u * p < Gh) && + (n(r, i, o, s, a, u, M, D, L, (b /= S), (w /= S), C, g, m), + m.point(M, D), + n(M, D, L, b, w, C, l, c, d, h, f, p, g, m)); + } + } + return function (t) { + var r, + i, + o, + s, + a, + u, + l, + c, + d, + h, + f, + p, + g = { + point: m, + lineStart: _, + lineEnd: v, + polygonStart: function () { + t.polygonStart(), (g.lineStart = b); + }, + polygonEnd: function () { + t.polygonEnd(), (g.lineStart = _); + }, + }; + function m(n, r) { + (n = e(n, r)), t.point(n[0], n[1]); + } + function _() { + (c = NaN), (g.point = y), t.lineStart(); + } + function y(r, i) { + var o = Al([r, i]), + s = e(r, i); + n( + c, + d, + l, + h, + f, + p, + (c = s[0]), + (d = s[1]), + (l = r), + (h = o[0]), + (f = o[1]), + (p = o[2]), + Kh, + t + ), + t.point(c, d); + } + function v() { + (g.point = m), t.lineEnd(); + } + function b() { + _(), (g.point = w), (g.lineEnd = C); + } + function w(e, t) { + y((r = e), t), + (i = c), + (o = d), + (s = h), + (a = f), + (u = p), + (g.point = y); + } + function C() { + n(c, d, l, h, f, p, i, o, r, s, a, u, Kh, t), + (g.lineEnd = v), + v(); + } + return g; + }; + })(e, t) + : (function (e) { + return Bh({ + point: function (t, n) { + (t = e(t, n)), this.stream.point(t[0], t[1]); + }, + }); + })(e); + }; + var Zh = Bh({ + point: function (e, t) { + this.stream.point(e * Zu, t * Zu); + }, + }); + function Xh(e, t, n) { + function r(r, i) { + return [t + e * r, n - e * i]; + } + return ( + (r.invert = function (r, i) { + return [(r - t) / e, (n - i) / e]; + }), + r + ); + } + function Jh(e, t, n, r) { + var i = el(r), + o = ol(r), + s = i * e, + a = o * e, + u = i / e, + l = o / e, + c = (o * n - i * t) / e, + d = (o * t + i * n) / e; + function h(e, r) { + return [s * e - a * r + t, n - a * e - s * r]; + } + return ( + (h.invert = function (e, t) { + return [u * e - l * t + c, d - l * e - u * t]; + }), + h + ); + } + function Qh(e) { + return ef(function () { + return e; + })(); + } + function ef(e) { + var t, + n, + r, + i, + o, + s, + a, + u, + l, + c, + d = 150, + h = 480, + f = 250, + p = 0, + g = 0, + m = 0, + _ = 0, + y = 0, + v = 0, + b = null, + w = id, + C = null, + S = Wd, + x = 0.5; + function L(e) { + return u(e[0] * Zu, e[1] * Zu); + } + function k(e) { + return (e = u.invert(e[0], e[1])) && [e[0] * $u, e[1] * $u]; + } + function M() { + var e = Jh(d, 0, 0, v).apply(null, t(p, g)), + r = (v ? Jh : Xh)(d, h - e[0], f - e[1], v); + return ( + (n = jc(m, _, y)), (a = Fc(t, r)), (u = Fc(n, a)), (s = $h(a, x)), D() + ); + } + function D() { + return (l = c = null), L; + } + return ( + (L.stream = function (e) { + return l && c === e + ? l + : (l = Zh( + (function (e) { + return Bh({ + point: function (t, n) { + var r = e(t, n); + return this.stream.point(r[0], r[1]); + }, + }); + })(n)(w(s(S((c = e))))) + )); + }), + (L.preclip = function (e) { + return arguments.length ? ((w = e), (b = void 0), D()) : w; + }), + (L.postclip = function (e) { + return arguments.length ? ((S = e), (C = r = i = o = null), D()) : S; + }), + (L.clipAngle = function (e) { + return arguments.length + ? ((w = +e ? od((b = e * Zu)) : ((b = null), id)), D()) + : b * $u; + }), + (L.clipExtent = function (e) { + return arguments.length + ? ((S = + null == e + ? ((C = r = i = o = null), Wd) + : ld( + (C = +e[0][0]), + (r = +e[0][1]), + (i = +e[1][0]), + (o = +e[1][1]) + )), + D()) + : null == C + ? null + : [ + [C, r], + [i, o], + ]; + }), + (L.scale = function (e) { + return arguments.length ? ((d = +e), M()) : d; + }), + (L.translate = function (e) { + return arguments.length ? ((h = +e[0]), (f = +e[1]), M()) : [h, f]; + }), + (L.center = function (e) { + return arguments.length + ? ((p = (e[0] % 360) * Zu), (g = (e[1] % 360) * Zu), M()) + : [p * $u, g * $u]; + }), + (L.rotate = function (e) { + return arguments.length + ? ((m = (e[0] % 360) * Zu), + (_ = (e[1] % 360) * Zu), + (y = e.length > 2 ? (e[2] % 360) * Zu : 0), + M()) + : [m * $u, _ * $u, y * $u]; + }), + (L.angle = function (e) { + return arguments.length ? ((v = (e % 360) * Zu), M()) : v * $u; + }), + (L.precision = function (e) { + return arguments.length ? ((s = $h(a, (x = e * e))), D()) : al(x); + }), + (L.fitExtent = function (e, t) { + return Vh(L, e, t); + }), + (L.fitSize = function (e, t) { + return zh(L, e, t); + }), + (L.fitWidth = function (e, t) { + return Uh(L, e, t); + }), + (L.fitHeight = function (e, t) { + return qh(L, e, t); + }), + function () { + return ( + (t = e.apply(this, arguments)), (L.invert = t.invert && k), M() + ); + } + ); + } + function tf(e) { + var t = 0, + n = Uu / 3, + r = ef(e), + i = r(t, n); + return ( + (i.parallels = function (e) { + return arguments.length + ? r((t = e[0] * Zu), (n = e[1] * Zu)) + : [t * $u, n * $u]; + }), + i + ); + } + function nf(e, t) { + var n = ol(e), + r = (n + ol(t)) / 2; + if (Xu(r) < Vu) + return (function (e) { + var t = el(e); + function n(e, n) { + return [e * t, ol(n) / t]; + } + return ( + (n.invert = function (e, n) { + return [e / t, cl(n * t)]; + }), + n + ); + })(e); + var i = 1 + n * (2 * r - n), + o = al(i) / r; + function s(e, t) { + var n = al(i - 2 * r * ol(t)) / r; + return [n * ol((e *= r)), o - n * el(e)]; + } + return ( + (s.invert = function (e, t) { + var n = o - t; + return [ + (Qu(e, Xu(n)) / r) * sl(n), + cl((i - (e * e + n * n) * r * r) / (2 * r)), + ]; + }), + s + ); + } + var rf = function () { + return tf(nf).scale(155.424).center([0, 33.6442]); + }, + of = function () { + return rf() + .parallels([29.5, 45.5]) + .scale(1070) + .translate([480, 250]) + .rotate([96, 0]) + .center([-0.6, 38.7]); + }; + var sf = function () { + var e, + t, + n, + r, + i, + o, + s = of(), + a = rf().rotate([154, 0]).center([-2, 58.5]).parallels([55, 65]), + u = rf().rotate([157, 0]).center([-3, 19.9]).parallels([8, 18]), + l = { + point: function (e, t) { + o = [e, t]; + }, + }; + function c(e) { + var t = e[0], + s = e[1]; + return ( + (o = null), + n.point(t, s), + o || (r.point(t, s), o) || (i.point(t, s), o) + ); + } + function d() { + return (e = t = null), c; + } + return ( + (c.invert = function (e) { + var t = s.scale(), + n = s.translate(), + r = (e[0] - n[0]) / t, + i = (e[1] - n[1]) / t; + return (i >= 0.12 && i < 0.234 && r >= -0.425 && r < -0.214 + ? a + : i >= 0.166 && i < 0.234 && r >= -0.214 && r < -0.115 + ? u + : s + ).invert(e); + }), + (c.stream = function (n) { + return e && t === n + ? e + : ((r = [s.stream((t = n)), a.stream(n), u.stream(n)]), + (i = r.length), + (e = { + point: function (e, t) { + for (var n = -1; ++n < i; ) r[n].point(e, t); + }, + sphere: function () { + for (var e = -1; ++e < i; ) r[e].sphere(); + }, + lineStart: function () { + for (var e = -1; ++e < i; ) r[e].lineStart(); + }, + lineEnd: function () { + for (var e = -1; ++e < i; ) r[e].lineEnd(); + }, + polygonStart: function () { + for (var e = -1; ++e < i; ) r[e].polygonStart(); + }, + polygonEnd: function () { + for (var e = -1; ++e < i; ) r[e].polygonEnd(); + }, + })); + var r, i; + }), + (c.precision = function (e) { + return arguments.length + ? (s.precision(e), a.precision(e), u.precision(e), d()) + : s.precision(); + }), + (c.scale = function (e) { + return arguments.length + ? (s.scale(e), + a.scale(0.35 * e), + u.scale(e), + c.translate(s.translate())) + : s.scale(); + }), + (c.translate = function (e) { + if (!arguments.length) return s.translate(); + var t = s.scale(), + o = +e[0], + c = +e[1]; + return ( + (n = s + .translate(e) + .clipExtent([ + [o - 0.455 * t, c - 0.238 * t], + [o + 0.455 * t, c + 0.238 * t], + ]) + .stream(l)), + (r = a + .translate([o - 0.307 * t, c + 0.201 * t]) + .clipExtent([ + [o - 0.425 * t + Vu, c + 0.12 * t + Vu], + [o - 0.214 * t - Vu, c + 0.234 * t - Vu], + ]) + .stream(l)), + (i = u + .translate([o - 0.205 * t, c + 0.212 * t]) + .clipExtent([ + [o - 0.214 * t + Vu, c + 0.166 * t + Vu], + [o - 0.115 * t - Vu, c + 0.234 * t - Vu], + ]) + .stream(l)), + d() + ); + }), + (c.fitExtent = function (e, t) { + return Vh(c, e, t); + }), + (c.fitSize = function (e, t) { + return zh(c, e, t); + }), + (c.fitWidth = function (e, t) { + return Uh(c, e, t); + }), + (c.fitHeight = function (e, t) { + return qh(c, e, t); + }), + c.scale(1070) + ); + }; + function af(e) { + return function (t, n) { + var r = el(t), + i = el(n), + o = e(r * i); + return [o * i * ol(t), o * ol(n)]; + }; + } + function uf(e) { + return function (t, n) { + var r = al(t * t + n * n), + i = e(r), + o = ol(i), + s = el(i); + return [Qu(t * o, r * s), cl(r && (n * o) / r)]; + }; + } + var lf = af(function (e) { + return al(2 / (1 + e)); + }); + lf.invert = uf(function (e) { + return 2 * cl(e / 2); + }); + var cf = function () { + return Qh(lf).scale(124.75).clipAngle(179.999); + }, + df = af(function (e) { + return (e = ll(e)) && e / ol(e); + }); + df.invert = uf(function (e) { + return e; + }); + var hf = function () { + return Qh(df).scale(79.4188).clipAngle(179.999); + }; + function ff(e, t) { + return [e, rl(ul((qu + t) / 2))]; + } + ff.invert = function (e, t) { + return [e, 2 * Ju(nl(t)) - qu]; + }; + var pf = function () { + return gf(ff).scale(961 / Gu); + }; + function gf(e) { + var t, + n, + r, + i = Qh(e), + o = i.center, + s = i.scale, + a = i.translate, + u = i.clipExtent, + l = null; + function c() { + var o = Uu * s(), + a = i(Vc(i.rotate()).invert([0, 0])); + return u( + null == l + ? [ + [a[0] - o, a[1] - o], + [a[0] + o, a[1] + o], + ] + : e === ff + ? [ + [Math.max(a[0] - o, l), t], + [Math.min(a[0] + o, n), r], + ] + : [ + [l, Math.max(a[1] - o, t)], + [n, Math.min(a[1] + o, r)], + ] + ); + } + return ( + (i.scale = function (e) { + return arguments.length ? (s(e), c()) : s(); + }), + (i.translate = function (e) { + return arguments.length ? (a(e), c()) : a(); + }), + (i.center = function (e) { + return arguments.length ? (o(e), c()) : o(); + }), + (i.clipExtent = function (e) { + return arguments.length + ? (null == e + ? (l = t = n = r = null) + : ((l = +e[0][0]), + (t = +e[0][1]), + (n = +e[1][0]), + (r = +e[1][1])), + c()) + : null == l + ? null + : [ + [l, t], + [n, r], + ]; + }), + c() + ); + } + function mf(e) { + return ul((qu + e) / 2); + } + function _f(e, t) { + var n = el(e), + r = e === t ? ol(e) : rl(n / el(t)) / rl(mf(t) / mf(e)), + i = (n * il(mf(e), r)) / r; + if (!r) return ff; + function o(e, t) { + i > 0 ? t < -qu + Vu && (t = -qu + Vu) : t > qu - Vu && (t = qu - Vu); + var n = i / il(mf(t), r); + return [n * ol(r * e), i - n * el(r * e)]; + } + return ( + (o.invert = function (e, t) { + var n = i - t, + o = sl(r) * al(e * e + n * n); + return [(Qu(e, Xu(n)) / r) * sl(n), 2 * Ju(il(i / o, 1 / r)) - qu]; + }), + o + ); + } + var yf = function () { + return tf(_f).scale(109.5).parallels([30, 30]); + }; + function vf(e, t) { + return [e, t]; + } + vf.invert = vf; + var bf = function () { + return Qh(vf).scale(152.63); + }; + function wf(e, t) { + var n = el(e), + r = e === t ? ol(e) : (n - el(t)) / (t - e), + i = n / r + e; + if (Xu(r) < Vu) return vf; + function o(e, t) { + var n = i - t, + o = r * e; + return [n * ol(o), i - n * el(o)]; + } + return ( + (o.invert = function (e, t) { + var n = i - t; + return [(Qu(e, Xu(n)) / r) * sl(n), i - sl(r) * al(e * e + n * n)]; + }), + o + ); + } + var Cf = function () { + return tf(wf).scale(131.154).center([0, 13.9389]); + }, + Sf = 1.340264, + xf = -0.081106, + Lf = 893e-6, + kf = 0.003796, + Mf = al(3) / 2; + function Df(e, t) { + var n = cl(Mf * ol(t)), + r = n * n, + i = r * r * r; + return [ + (e * el(n)) / (Mf * (Sf + 3 * xf * r + i * (7 * Lf + 9 * kf * r))), + n * (Sf + xf * r + i * (Lf + kf * r)), + ]; + } + Df.invert = function (e, t) { + for ( + var n, r = t, i = r * r, o = i * i * i, s = 0; + s < 12 && + ((o = + (i = + (r -= n = + (r * (Sf + xf * i + o * (Lf + kf * i)) - t) / + (Sf + 3 * xf * i + o * (7 * Lf + 9 * kf * i))) * r) * + i * + i), + !(Xu(n) < zu)); + ++s + ); + return [ + (Mf * e * (Sf + 3 * xf * i + o * (7 * Lf + 9 * kf * i))) / el(r), + cl(ol(r) / Mf), + ]; + }; + var Ef = function () { + return Qh(Df).scale(177.158); + }; + function Tf(e, t) { + var n = el(t), + r = el(e) * n; + return [(n * ol(e)) / r, ol(t) / r]; + } + Tf.invert = uf(Ju); + var Nf = function () { + return Qh(Tf).scale(144.049).clipAngle(60); + }; + function Of(e, t, n, r) { + return 1 === e && 1 === t && 0 === n && 0 === r + ? Wd + : Bh({ + point: function (i, o) { + this.stream.point(i * e + n, o * t + r); + }, + }); + } + var Af = function () { + var e, + t, + n, + r, + i, + o, + s = 1, + a = 0, + u = 0, + l = 1, + c = 1, + d = Wd, + h = null, + f = Wd; + function p() { + return (r = i = null), o; + } + return (o = { + stream: function (e) { + return r && i === e ? r : (r = d(f((i = e)))); + }, + postclip: function (r) { + return arguments.length ? ((f = r), (h = e = t = n = null), p()) : f; + }, + clipExtent: function (r) { + return arguments.length + ? ((f = + null == r + ? ((h = e = t = n = null), Wd) + : ld( + (h = +r[0][0]), + (e = +r[0][1]), + (t = +r[1][0]), + (n = +r[1][1]) + )), + p()) + : null == h + ? null + : [ + [h, e], + [t, n], + ]; + }, + scale: function (e) { + return arguments.length + ? ((d = Of((s = +e) * l, s * c, a, u)), p()) + : s; + }, + translate: function (e) { + return arguments.length + ? ((d = Of(s * l, s * c, (a = +e[0]), (u = +e[1]))), p()) + : [a, u]; + }, + reflectX: function (e) { + return arguments.length + ? ((d = Of(s * (l = e ? -1 : 1), s * c, a, u)), p()) + : l < 0; + }, + reflectY: function (e) { + return arguments.length + ? ((d = Of(s * l, s * (c = e ? -1 : 1), a, u)), p()) + : c < 0; + }, + fitExtent: function (e, t) { + return Vh(o, e, t); + }, + fitSize: function (e, t) { + return zh(o, e, t); + }, + fitWidth: function (e, t) { + return Uh(o, e, t); + }, + fitHeight: function (e, t) { + return qh(o, e, t); + }, + }); + }; + function If(e, t) { + var n = t * t, + r = n * n; + return [ + e * + (0.8707 - + 0.131979 * n + + r * (r * (0.003971 * n - 0.001529 * r) - 0.013791)), + t * + (1.007226 + + n * (0.015085 + r * (0.028874 * n - 0.044475 - 0.005916 * r))), + ]; + } + If.invert = function (e, t) { + var n, + r = t, + i = 25; + do { + var o = r * r, + s = o * o; + r -= n = + (r * + (1.007226 + + o * (0.015085 + s * (0.028874 * o - 0.044475 - 0.005916 * s))) - + t) / + (1.007226 + + o * (0.045255 + s * (0.259866 * o - 0.311325 - 0.005916 * 11 * s))); + } while (Xu(n) > Vu && --i > 0); + return [ + e / + (0.8707 + + (o = r * r) * + (o * (o * o * o * (0.003971 - 0.001529 * o) - 0.013791) - + 0.131979)), + r, + ]; + }; + var Pf = function () { + return Qh(If).scale(175.295); + }; + function Rf(e, t) { + return [el(t) * ol(e), ol(t)]; + } + Rf.invert = uf(cl); + var Ff = function () { + return Qh(Rf) + .scale(249.5) + .clipAngle(90 + Vu); + }; + function Yf(e, t) { + var n = el(t), + r = 1 + el(e) * n; + return [(n * ol(e)) / r, ol(t) / r]; + } + Yf.invert = uf(function (e) { + return 2 * Ju(e); + }); + var jf = function () { + return Qh(Yf).scale(250).clipAngle(142); + }; + function Bf(e, t) { + return [rl(ul((qu + t) / 2)), -e]; + } + Bf.invert = function (e, t) { + return [-t, 2 * Ju(nl(e)) - qu]; + }; + var Wf = function () { + var e = gf(Bf), + t = e.center, + n = e.rotate; + return ( + (e.center = function (e) { + return arguments.length ? t([-e[1], e[0]]) : [(e = t())[1], -e[0]]; + }), + (e.rotate = function (e) { + return arguments.length + ? n([e[0], e[1], e.length > 2 ? e[2] + 90 : 90]) + : [(e = n())[0], e[1], e[2] - 90]; + }), + n([0, 0, 90]).scale(159.155) + ); + }; + function Hf(e, t) { + return e.parent === t.parent ? 1 : 2; + } + function Vf(e, t) { + return e + t.x; + } + function zf(e, t) { + return Math.max(e, t.y); + } + var Uf = function () { + var e = Hf, + t = 1, + n = 1, + r = !1; + function i(i) { + var o, + s = 0; + i.eachAfter(function (t) { + var n = t.children; + n + ? ((t.x = (function (e) { + return e.reduce(Vf, 0) / e.length; + })(n)), + (t.y = (function (e) { + return 1 + e.reduce(zf, 0); + })(n))) + : ((t.x = o ? (s += e(t, o)) : 0), (t.y = 0), (o = t)); + }); + var a = (function (e) { + for (var t; (t = e.children); ) e = t[0]; + return e; + })(i), + u = (function (e) { + for (var t; (t = e.children); ) e = t[t.length - 1]; + return e; + })(i), + l = a.x - e(a, u) / 2, + c = u.x + e(u, a) / 2; + return i.eachAfter( + r + ? function (e) { + (e.x = (e.x - i.x) * t), (e.y = (i.y - e.y) * n); + } + : function (e) { + (e.x = ((e.x - l) / (c - l)) * t), + (e.y = (1 - (i.y ? e.y / i.y : 1)) * n); + } + ); + } + return ( + (i.separation = function (t) { + return arguments.length ? ((e = t), i) : e; + }), + (i.size = function (e) { + return arguments.length + ? ((r = !1), (t = +e[0]), (n = +e[1]), i) + : r + ? null + : [t, n]; + }), + (i.nodeSize = function (e) { + return arguments.length + ? ((r = !0), (t = +e[0]), (n = +e[1]), i) + : r + ? [t, n] + : null; + }), + i + ); + }; + function qf(e) { + var t = 0, + n = e.children, + r = n && n.length; + if (r) for (; --r >= 0; ) t += n[r].value; + else t = 1; + e.value = t; + } + function Kf(e, t) { + var n, + r, + i, + o, + s, + a = new Xf(e), + u = +e.value && (a.value = e.value), + l = [a]; + for (null == t && (t = Gf); (n = l.pop()); ) + if ((u && (n.value = +n.data.value), (i = t(n.data)) && (s = i.length))) + for (n.children = new Array(s), o = s - 1; o >= 0; --o) + l.push((r = n.children[o] = new Xf(i[o]))), + (r.parent = n), + (r.depth = n.depth + 1); + return a.eachBefore(Zf); + } + function Gf(e) { + return e.children; + } + function $f(e) { + e.data = e.data.data; + } + function Zf(e) { + var t = 0; + do { + e.height = t; + } while ((e = e.parent) && e.height < ++t); + } + function Xf(e) { + (this.data = e), (this.depth = this.height = 0), (this.parent = null); + } + Xf.prototype = Kf.prototype = { + constructor: Xf, + count: function () { + return this.eachAfter(qf); + }, + each: function (e) { + var t, + n, + r, + i, + o = this, + s = [o]; + do { + for (t = s.reverse(), s = []; (o = t.pop()); ) + if ((e(o), (n = o.children))) + for (r = 0, i = n.length; r < i; ++r) s.push(n[r]); + } while (s.length); + return this; + }, + eachAfter: function (e) { + for (var t, n, r, i = this, o = [i], s = []; (i = o.pop()); ) + if ((s.push(i), (t = i.children))) + for (n = 0, r = t.length; n < r; ++n) o.push(t[n]); + for (; (i = s.pop()); ) e(i); + return this; + }, + eachBefore: function (e) { + for (var t, n, r = this, i = [r]; (r = i.pop()); ) + if ((e(r), (t = r.children))) + for (n = t.length - 1; n >= 0; --n) i.push(t[n]); + return this; + }, + sum: function (e) { + return this.eachAfter(function (t) { + for ( + var n = +e(t.data) || 0, r = t.children, i = r && r.length; + --i >= 0; + + ) + n += r[i].value; + t.value = n; + }); + }, + sort: function (e) { + return this.eachBefore(function (t) { + t.children && t.children.sort(e); + }); + }, + path: function (e) { + for ( + var t = this, + n = (function (e, t) { + if (e === t) return e; + var n = e.ancestors(), + r = t.ancestors(), + i = null; + (e = n.pop()), (t = r.pop()); + for (; e === t; ) (i = e), (e = n.pop()), (t = r.pop()); + return i; + })(t, e), + r = [t]; + t !== n; + + ) + (t = t.parent), r.push(t); + for (var i = r.length; e !== n; ) r.splice(i, 0, e), (e = e.parent); + return r; + }, + ancestors: function () { + for (var e = this, t = [e]; (e = e.parent); ) t.push(e); + return t; + }, + descendants: function () { + var e = []; + return ( + this.each(function (t) { + e.push(t); + }), + e + ); + }, + leaves: function () { + var e = []; + return ( + this.eachBefore(function (t) { + t.children || e.push(t); + }), + e + ); + }, + links: function () { + var e = this, + t = []; + return ( + e.each(function (n) { + n !== e && t.push({ source: n.parent, target: n }); + }), + t + ); + }, + copy: function () { + return Kf(this).eachBefore($f); + }, + }; + var Jf = Array.prototype.slice; + var Qf = function (e) { + for ( + var t, + n, + r = 0, + i = (e = (function (e) { + for (var t, n, r = e.length; r; ) + (n = (Math.random() * r--) | 0), + (t = e[r]), + (e[r] = e[n]), + (e[n] = t); + return e; + })(Jf.call(e))).length, + o = []; + r < i; + + ) + (t = e[r]), n && np(n, t) ? ++r : ((n = ip((o = ep(o, t)))), (r = 0)); + return n; + }; + function ep(e, t) { + var n, r; + if (rp(t, e)) return [t]; + for (n = 0; n < e.length; ++n) + if (tp(t, e[n]) && rp(op(e[n], t), e)) return [e[n], t]; + for (n = 0; n < e.length - 1; ++n) + for (r = n + 1; r < e.length; ++r) + if ( + tp(op(e[n], e[r]), t) && + tp(op(e[n], t), e[r]) && + tp(op(e[r], t), e[n]) && + rp(sp(e[n], e[r], t), e) + ) + return [e[n], e[r], t]; + throw new Error(); + } + function tp(e, t) { + var n = e.r - t.r, + r = t.x - e.x, + i = t.y - e.y; + return n < 0 || n * n < r * r + i * i; + } + function np(e, t) { + var n = e.r - t.r + 1e-6, + r = t.x - e.x, + i = t.y - e.y; + return n > 0 && n * n > r * r + i * i; + } + function rp(e, t) { + for (var n = 0; n < t.length; ++n) if (!np(e, t[n])) return !1; + return !0; + } + function ip(e) { + switch (e.length) { + case 1: + return { x: (t = e[0]).x, y: t.y, r: t.r }; + case 2: + return op(e[0], e[1]); + case 3: + return sp(e[0], e[1], e[2]); + } + var t; + } + function op(e, t) { + var n = e.x, + r = e.y, + i = e.r, + o = t.x, + s = t.y, + a = t.r, + u = o - n, + l = s - r, + c = a - i, + d = Math.sqrt(u * u + l * l); + return { + x: (n + o + (u / d) * c) / 2, + y: (r + s + (l / d) * c) / 2, + r: (d + i + a) / 2, + }; + } + function sp(e, t, n) { + var r = e.x, + i = e.y, + o = e.r, + s = t.x, + a = t.y, + u = t.r, + l = n.x, + c = n.y, + d = n.r, + h = r - s, + f = r - l, + p = i - a, + g = i - c, + m = u - o, + _ = d - o, + y = r * r + i * i - o * o, + v = y - s * s - a * a + u * u, + b = y - l * l - c * c + d * d, + w = f * p - h * g, + C = (p * b - g * v) / (2 * w) - r, + S = (g * m - p * _) / w, + x = (f * v - h * b) / (2 * w) - i, + L = (h * _ - f * m) / w, + k = S * S + L * L - 1, + M = 2 * (o + C * S + x * L), + D = C * C + x * x - o * o, + E = -(k ? (M + Math.sqrt(M * M - 4 * k * D)) / (2 * k) : D / M); + return { x: r + C + S * E, y: i + x + L * E, r: E }; + } + function ap(e, t, n) { + var r, + i, + o, + s, + a = e.x - t.x, + u = e.y - t.y, + l = a * a + u * u; + l + ? ((i = t.r + n.r), + (i *= i), + (s = e.r + n.r), + i > (s *= s) + ? ((r = (l + s - i) / (2 * l)), + (o = Math.sqrt(Math.max(0, s / l - r * r))), + (n.x = e.x - r * a - o * u), + (n.y = e.y - r * u + o * a)) + : ((r = (l + i - s) / (2 * l)), + (o = Math.sqrt(Math.max(0, i / l - r * r))), + (n.x = t.x + r * a - o * u), + (n.y = t.y + r * u + o * a))) + : ((n.x = t.x + n.r), (n.y = t.y)); + } + function up(e, t) { + var n = e.r + t.r - 1e-6, + r = t.x - e.x, + i = t.y - e.y; + return n > 0 && n * n > r * r + i * i; + } + function lp(e) { + var t = e._, + n = e.next._, + r = t.r + n.r, + i = (t.x * n.r + n.x * t.r) / r, + o = (t.y * n.r + n.y * t.r) / r; + return i * i + o * o; + } + function cp(e) { + (this._ = e), (this.next = null), (this.previous = null); + } + function dp(e) { + if (!(i = e.length)) return 0; + var t, n, r, i, o, s, a, u, l, c, d; + if ((((t = e[0]).x = 0), (t.y = 0), !(i > 1))) return t.r; + if (((n = e[1]), (t.x = -n.r), (n.x = t.r), (n.y = 0), !(i > 2))) + return t.r + n.r; + ap(n, t, (r = e[2])), + (t = new cp(t)), + (n = new cp(n)), + (r = new cp(r)), + (t.next = r.previous = n), + (n.next = t.previous = r), + (r.next = n.previous = t); + e: for (a = 3; a < i; ++a) { + ap(t._, n._, (r = e[a])), + (r = new cp(r)), + (u = n.next), + (l = t.previous), + (c = n._.r), + (d = t._.r); + do { + if (c <= d) { + if (up(u._, r._)) { + (n = u), (t.next = n), (n.previous = t), --a; + continue e; + } + (c += u._.r), (u = u.next); + } else { + if (up(l._, r._)) { + ((t = l).next = n), (n.previous = t), --a; + continue e; + } + (d += l._.r), (l = l.previous); + } + } while (u !== l.next); + for ( + r.previous = t, r.next = n, t.next = n.previous = n = r, o = lp(t); + (r = r.next) !== n; + + ) + (s = lp(r)) < o && ((t = r), (o = s)); + n = t.next; + } + for (t = [n._], r = n; (r = r.next) !== n; ) t.push(r._); + for (r = Qf(t), a = 0; a < i; ++a) ((t = e[a]).x -= r.x), (t.y -= r.y); + return r.r; + } + var hp = function (e) { + return dp(e), e; + }; + function fp(e) { + return null == e ? null : pp(e); + } + function pp(e) { + if ('function' != typeof e) throw new Error(); + return e; + } + function gp() { + return 0; + } + var mp = function (e) { + return function () { + return e; + }; + }; + function _p(e) { + return Math.sqrt(e.value); + } + var yp = function () { + var e = null, + t = 1, + n = 1, + r = gp; + function i(i) { + return ( + (i.x = t / 2), + (i.y = n / 2), + e + ? i.eachBefore(vp(e)).eachAfter(bp(r, 0.5)).eachBefore(wp(1)) + : i + .eachBefore(vp(_p)) + .eachAfter(bp(gp, 1)) + .eachAfter(bp(r, i.r / Math.min(t, n))) + .eachBefore(wp(Math.min(t, n) / (2 * i.r))), + i + ); + } + return ( + (i.radius = function (t) { + return arguments.length ? ((e = fp(t)), i) : e; + }), + (i.size = function (e) { + return arguments.length ? ((t = +e[0]), (n = +e[1]), i) : [t, n]; + }), + (i.padding = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : mp(+e)), i) + : r; + }), + i + ); + }; + function vp(e) { + return function (t) { + t.children || (t.r = Math.max(0, +e(t) || 0)); + }; + } + function bp(e, t) { + return function (n) { + if ((r = n.children)) { + var r, + i, + o, + s = r.length, + a = e(n) * t || 0; + if (a) for (i = 0; i < s; ++i) r[i].r += a; + if (((o = dp(r)), a)) for (i = 0; i < s; ++i) r[i].r -= a; + n.r = o + a; + } + }; + } + function wp(e) { + return function (t) { + var n = t.parent; + (t.r *= e), n && ((t.x = n.x + e * t.x), (t.y = n.y + e * t.y)); + }; + } + var Cp = function (e) { + (e.x0 = Math.round(e.x0)), + (e.y0 = Math.round(e.y0)), + (e.x1 = Math.round(e.x1)), + (e.y1 = Math.round(e.y1)); + }, + Sp = function (e, t, n, r, i) { + for ( + var o, + s = e.children, + a = -1, + u = s.length, + l = e.value && (r - t) / e.value; + ++a < u; + + ) + ((o = s[a]).y0 = n), + (o.y1 = i), + (o.x0 = t), + (o.x1 = t += o.value * l); + }, + xp = function () { + var e = 1, + t = 1, + n = 0, + r = !1; + function i(i) { + var o = i.height + 1; + return ( + (i.x0 = i.y0 = n), + (i.x1 = e), + (i.y1 = t / o), + i.eachBefore( + (function (e, t) { + return function (r) { + r.children && + Sp( + r, + r.x0, + (e * (r.depth + 1)) / t, + r.x1, + (e * (r.depth + 2)) / t + ); + var i = r.x0, + o = r.y0, + s = r.x1 - n, + a = r.y1 - n; + s < i && (i = s = (i + s) / 2), + a < o && (o = a = (o + a) / 2), + (r.x0 = i), + (r.y0 = o), + (r.x1 = s), + (r.y1 = a); + }; + })(t, o) + ), + r && i.eachBefore(Cp), + i + ); + } + return ( + (i.round = function (e) { + return arguments.length ? ((r = !!e), i) : r; + }), + (i.size = function (n) { + return arguments.length ? ((e = +n[0]), (t = +n[1]), i) : [e, t]; + }), + (i.padding = function (e) { + return arguments.length ? ((n = +e), i) : n; + }), + i + ); + }, + Lp = '$', + kp = { depth: -1 }, + Mp = {}; + function Dp(e) { + return e.id; + } + function Ep(e) { + return e.parentId; + } + var Tp = function () { + var e = Dp, + t = Ep; + function n(n) { + var r, + i, + o, + s, + a, + u, + l, + c = n.length, + d = new Array(c), + h = {}; + for (i = 0; i < c; ++i) + (r = n[i]), + (a = d[i] = new Xf(r)), + null != (u = e(r, i, n)) && + (u += '') && + (h[(l = Lp + (a.id = u))] = l in h ? Mp : a); + for (i = 0; i < c; ++i) + if (((a = d[i]), null != (u = t(n[i], i, n)) && (u += ''))) { + if (!(s = h[Lp + u])) throw new Error('missing: ' + u); + if (s === Mp) throw new Error('ambiguous: ' + u); + s.children ? s.children.push(a) : (s.children = [a]), + (a.parent = s); + } else { + if (o) throw new Error('multiple roots'); + o = a; + } + if (!o) throw new Error('no root'); + if ( + ((o.parent = kp), + o + .eachBefore(function (e) { + (e.depth = e.parent.depth + 1), --c; + }) + .eachBefore(Zf), + (o.parent = null), + c > 0) + ) + throw new Error('cycle'); + return o; + } + return ( + (n.id = function (t) { + return arguments.length ? ((e = pp(t)), n) : e; + }), + (n.parentId = function (e) { + return arguments.length ? ((t = pp(e)), n) : t; + }), + n + ); + }; + function Np(e, t) { + return e.parent === t.parent ? 1 : 2; + } + function Op(e) { + var t = e.children; + return t ? t[0] : e.t; + } + function Ap(e) { + var t = e.children; + return t ? t[t.length - 1] : e.t; + } + function Ip(e, t, n) { + var r = n / (t.i - e.i); + (t.c -= r), (t.s += n), (e.c += r), (t.z += n), (t.m += n); + } + function Pp(e, t, n) { + return e.a.parent === t.parent ? e.a : n; + } + function Rp(e, t) { + (this._ = e), + (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 = t); + } + Rp.prototype = Object.create(Xf.prototype); + var Fp = function () { + var e = Np, + t = 1, + n = 1, + r = null; + function i(i) { + var u = (function (e) { + for (var t, n, r, i, o, s = new Rp(e, 0), a = [s]; (t = a.pop()); ) + if ((r = t._.children)) + for ( + t.children = new Array((o = r.length)), i = o - 1; + i >= 0; + --i + ) + a.push((n = t.children[i] = new Rp(r[i], i))), (n.parent = t); + return ((s.parent = new Rp(null, 0)).children = [s]), s; + })(i); + if ((u.eachAfter(o), (u.parent.m = -u.z), u.eachBefore(s), r)) + i.eachBefore(a); + else { + var l = i, + c = i, + d = i; + i.eachBefore(function (e) { + e.x < l.x && (l = e), + e.x > c.x && (c = e), + e.depth > d.depth && (d = e); + }); + var h = l === c ? 1 : e(l, c) / 2, + f = h - l.x, + p = t / (c.x + h + f), + g = n / (d.depth || 1); + i.eachBefore(function (e) { + (e.x = (e.x + f) * p), (e.y = e.depth * g); + }); + } + return i; + } + function o(t) { + var n = t.children, + r = t.parent.children, + i = t.i ? r[t.i - 1] : null; + if (n) { + !(function (e) { + for ( + var t, n = 0, r = 0, i = e.children, o = i.length; + --o >= 0; + + ) + ((t = i[o]).z += n), (t.m += n), (n += t.s + (r += t.c)); + })(t); + var o = (n[0].z + n[n.length - 1].z) / 2; + i ? ((t.z = i.z + e(t._, i._)), (t.m = t.z - o)) : (t.z = o); + } else i && (t.z = i.z + e(t._, i._)); + t.parent.A = (function (t, n, r) { + if (n) { + for ( + var i, + o = t, + s = t, + a = n, + u = o.parent.children[0], + l = o.m, + c = s.m, + d = a.m, + h = u.m; + (a = Ap(a)), (o = Op(o)), a && o; + + ) + (u = Op(u)), + ((s = Ap(s)).a = t), + (i = a.z + d - o.z - l + e(a._, o._)) > 0 && + (Ip(Pp(a, t, r), t, i), (l += i), (c += i)), + (d += a.m), + (l += o.m), + (h += u.m), + (c += s.m); + a && !Ap(s) && ((s.t = a), (s.m += d - c)), + o && !Op(u) && ((u.t = o), (u.m += l - h), (r = t)); + } + return r; + })(t, i, t.parent.A || r[0]); + } + function s(e) { + (e._.x = e.z + e.parent.m), (e.m += e.parent.m); + } + function a(e) { + (e.x *= t), (e.y = e.depth * n); + } + return ( + (i.separation = function (t) { + return arguments.length ? ((e = t), i) : e; + }), + (i.size = function (e) { + return arguments.length + ? ((r = !1), (t = +e[0]), (n = +e[1]), i) + : r + ? null + : [t, n]; + }), + (i.nodeSize = function (e) { + return arguments.length + ? ((r = !0), (t = +e[0]), (n = +e[1]), i) + : r + ? [t, n] + : null; + }), + i + ); + }, + Yp = function (e, t, n, r, i) { + for ( + var o, + s = e.children, + a = -1, + u = s.length, + l = e.value && (i - n) / e.value; + ++a < u; + + ) + ((o = s[a]).x0 = t), + (o.x1 = r), + (o.y0 = n), + (o.y1 = n += o.value * l); + }, + jp = (1 + Math.sqrt(5)) / 2; + function Bp(e, t, n, r, i, o) { + for ( + var s, + a, + u, + l, + c, + d, + h, + f, + p, + g, + m, + _ = [], + y = t.children, + v = 0, + b = 0, + w = y.length, + C = t.value; + v < w; + + ) { + (u = i - n), (l = o - r); + do { + c = y[b++].value; + } while (!c && b < w); + for ( + d = h = c, + m = c * c * (g = Math.max(l / u, u / l) / (C * e)), + p = Math.max(h / m, m / d); + b < w; + ++b + ) { + if ( + ((c += a = y[b].value), + a < d && (d = a), + a > h && (h = a), + (m = c * c * g), + (f = Math.max(h / m, m / d)) > p) + ) { + c -= a; + break; + } + p = f; + } + _.push((s = { value: c, dice: u < l, children: y.slice(v, b) })), + s.dice + ? Sp(s, n, r, i, C ? (r += (l * c) / C) : o) + : Yp(s, n, r, C ? (n += (u * c) / C) : i, o), + (C -= c), + (v = b); + } + return _; + } + var Wp = (function e(t) { + function n(e, n, r, i, o) { + Bp(t, e, n, r, i, o); + } + return ( + (n.ratio = function (t) { + return e((t = +t) > 1 ? t : 1); + }), + n + ); + })(jp), + Hp = function () { + var e = Wp, + t = !1, + n = 1, + r = 1, + i = [0], + o = gp, + s = gp, + a = gp, + u = gp, + l = gp; + function c(e) { + return ( + (e.x0 = e.y0 = 0), + (e.x1 = n), + (e.y1 = r), + e.eachBefore(d), + (i = [0]), + t && e.eachBefore(Cp), + e + ); + } + function d(t) { + var n = i[t.depth], + r = t.x0 + n, + c = t.y0 + n, + d = t.x1 - n, + h = t.y1 - n; + d < r && (r = d = (r + d) / 2), + h < c && (c = h = (c + h) / 2), + (t.x0 = r), + (t.y0 = c), + (t.x1 = d), + (t.y1 = h), + t.children && + ((n = i[t.depth + 1] = o(t) / 2), + (r += l(t) - n), + (c += s(t) - n), + (d -= a(t) - n) < r && (r = d = (r + d) / 2), + (h -= u(t) - n) < c && (c = h = (c + h) / 2), + e(t, r, c, d, h)); + } + return ( + (c.round = function (e) { + return arguments.length ? ((t = !!e), c) : t; + }), + (c.size = function (e) { + return arguments.length ? ((n = +e[0]), (r = +e[1]), c) : [n, r]; + }), + (c.tile = function (t) { + return arguments.length ? ((e = pp(t)), c) : e; + }), + (c.padding = function (e) { + return arguments.length + ? c.paddingInner(e).paddingOuter(e) + : c.paddingInner(); + }), + (c.paddingInner = function (e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : mp(+e)), c) + : o; + }), + (c.paddingOuter = function (e) { + return arguments.length + ? c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) + : c.paddingTop(); + }), + (c.paddingTop = function (e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : mp(+e)), c) + : s; + }), + (c.paddingRight = function (e) { + return arguments.length + ? ((a = 'function' == typeof e ? e : mp(+e)), c) + : a; + }), + (c.paddingBottom = function (e) { + return arguments.length + ? ((u = 'function' == typeof e ? e : mp(+e)), c) + : u; + }), + (c.paddingLeft = function (e) { + return arguments.length + ? ((l = 'function' == typeof e ? e : mp(+e)), c) + : l; + }), + c + ); + }, + Vp = function (e, t, n, r, i) { + var o, + s, + a = e.children, + u = a.length, + l = new Array(u + 1); + for (l[0] = s = o = 0; o < u; ++o) l[o + 1] = s += a[o].value; + !(function e(t, n, r, i, o, s, u) { + if (t >= n - 1) { + var c = a[t]; + return (c.x0 = i), (c.y0 = o), (c.x1 = s), void (c.y1 = u); + } + var d = l[t], + h = r / 2 + d, + f = t + 1, + p = n - 1; + for (; f < p; ) { + var g = (f + p) >>> 1; + l[g] < h ? (f = g + 1) : (p = g); + } + h - l[f - 1] < l[f] - h && t + 1 < f && --f; + var m = l[f] - d, + _ = r - m; + if (s - i > u - o) { + var y = (i * _ + s * m) / r; + e(t, f, m, i, o, y, u), e(f, n, _, y, o, s, u); + } else { + var v = (o * _ + u * m) / r; + e(t, f, m, i, o, s, v), e(f, n, _, i, v, s, u); + } + })(0, u, e.value, t, n, r, i); + }, + zp = function (e, t, n, r, i) { + (1 & e.depth ? Yp : Sp)(e, t, n, r, i); + }, + Up = (function e(t) { + function n(e, n, r, i, o) { + if ((s = e._squarify) && s.ratio === t) + for ( + var s, a, u, l, c, d = -1, h = s.length, f = e.value; + ++d < h; + + ) { + for ( + u = (a = s[d]).children, l = a.value = 0, c = u.length; + l < c; + ++l + ) + a.value += u[l].value; + a.dice + ? Sp(a, n, r, i, (r += ((o - r) * a.value) / f)) + : Yp(a, n, r, (n += ((i - n) * a.value) / f), o), + (f -= a.value); + } + else (e._squarify = s = Bp(t, e, n, r, i, o)), (s.ratio = t); + } + return ( + (n.ratio = function (t) { + return e((t = +t) > 1 ? t : 1); + }), + n + ); + })(jp), + qp = function (e) { + var t = e.length; + return function (n) { + return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; + }; + }, + Kp = function (e, t) { + var n = gn(+e, +t); + return function (e) { + var t = n(e); + return t - 360 * Math.floor(t / 360); + }; + }, + Gp = function (e, t) { + return ( + (e = +e), + (t = +t), + function (n) { + return Math.round(e * (1 - n) + t * n); + } + ); + }, + $p = Math.SQRT2; + function Zp(e) { + return ((e = Math.exp(e)) + 1 / e) / 2; + } + var Xp = function (e, t) { + var n, + r, + i = e[0], + o = e[1], + s = e[2], + a = t[0], + u = t[1], + l = t[2], + c = a - i, + d = u - o, + h = c * c + d * d; + if (h < 1e-12) + (r = Math.log(l / s) / $p), + (n = function (e) { + return [i + e * c, o + e * d, s * Math.exp($p * e * r)]; + }); + else { + var f = Math.sqrt(h), + p = (l * l - s * s + 4 * h) / (2 * s * 2 * f), + g = (l * l - s * s - 4 * h) / (2 * l * 2 * f), + m = Math.log(Math.sqrt(p * p + 1) - p), + _ = Math.log(Math.sqrt(g * g + 1) - g); + (r = (_ - m) / $p), + (n = function (e) { + var t, + n = e * r, + a = Zp(m), + u = + (s / (2 * f)) * + (a * ((t = $p * n + m), ((t = Math.exp(2 * t)) - 1) / (t + 1)) - + (function (e) { + return ((e = Math.exp(e)) - 1 / e) / 2; + })(m)); + return [i + u * c, o + u * d, (s * a) / Zp($p * n + m)]; + }); + } + return (n.duration = 1e3 * r), n; + }; + function Jp(e) { + return function (t, n) { + var r = e((t = an(t)).h, (n = an(n)).h), + i = _n(t.s, n.s), + o = _n(t.l, n.l), + s = _n(t.opacity, n.opacity); + return function (e) { + return ( + (t.h = r(e)), (t.s = i(e)), (t.l = o(e)), (t.opacity = s(e)), t + '' + ); + }; + }; + } + var Qp = Jp(gn), + eg = Jp(_n); + function tg(e, t) { + var n = _n((e = To(e)).l, (t = To(t)).l), + r = _n(e.a, t.a), + i = _n(e.b, t.b), + o = _n(e.opacity, t.opacity); + return function (t) { + return ( + (e.l = n(t)), (e.a = r(t)), (e.b = i(t)), (e.opacity = o(t)), e + '' + ); + }; + } + function ng(e) { + return function (t, n) { + var r = e((t = Yo(t)).h, (n = Yo(n)).h), + i = _n(t.c, n.c), + o = _n(t.l, n.l), + s = _n(t.opacity, n.opacity); + return function (e) { + return ( + (t.h = r(e)), (t.c = i(e)), (t.l = o(e)), (t.opacity = s(e)), t + '' + ); + }; + }; + } + var rg = ng(gn), + ig = ng(_n); + function og(e) { + return (function t(n) { + function r(t, r) { + var i = e((t = Ko(t)).h, (r = Ko(r)).h), + o = _n(t.s, r.s), + s = _n(t.l, r.l), + a = _n(t.opacity, r.opacity); + return function (e) { + return ( + (t.h = i(e)), + (t.s = o(e)), + (t.l = s(Math.pow(e, n))), + (t.opacity = a(e)), + t + '' + ); + }; + } + return (n = +n), (r.gamma = t), r; + })(1); + } + var sg = og(gn), + ag = og(_n); + function ug(e, t) { + for ( + var n = 0, r = t.length - 1, i = t[0], o = new Array(r < 0 ? 0 : r); + n < r; + + ) + o[n] = e(i, (i = t[++n])); + return function (e) { + var t = Math.max(0, Math.min(r - 1, Math.floor((e *= r)))); + return o[t](e - t); + }; + } + var lg = function (e, t) { + for (var n = new Array(t), r = 0; r < t; ++r) n[r] = e(r / (t - 1)); + return n; + }, + cg = function (e) { + for (var t, n = -1, r = e.length, i = e[r - 1], o = 0; ++n < r; ) + (t = i), (i = e[n]), (o += t[1] * i[0] - t[0] * i[1]); + return o / 2; + }, + dg = function (e) { + for ( + var t, n, r = -1, i = e.length, o = 0, s = 0, a = e[i - 1], u = 0; + ++r < i; + + ) + (t = a), + (a = e[r]), + (u += n = t[0] * a[1] - a[0] * t[1]), + (o += (t[0] + a[0]) * n), + (s += (t[1] + a[1]) * n); + return [o / (u *= 3), s / u]; + }, + hg = function (e, t, n) { + return (t[0] - e[0]) * (n[1] - e[1]) - (t[1] - e[1]) * (n[0] - e[0]); + }; + function fg(e, t) { + return e[0] - t[0] || e[1] - t[1]; + } + function pg(e) { + for (var t = e.length, n = [0, 1], r = 2, i = 2; i < t; ++i) { + for (; r > 1 && hg(e[n[r - 2]], e[n[r - 1]], e[i]) <= 0; ) --r; + n[r++] = i; + } + return n.slice(0, r); + } + var gg = function (e) { + if ((n = e.length) < 3) return null; + var t, + n, + r = new Array(n), + i = new Array(n); + for (t = 0; t < n; ++t) r[t] = [+e[t][0], +e[t][1], t]; + for (r.sort(fg), t = 0; t < n; ++t) i[t] = [r[t][0], -r[t][1]]; + var o = pg(r), + s = pg(i), + a = s[0] === o[0], + u = s[s.length - 1] === o[o.length - 1], + l = []; + for (t = o.length - 1; t >= 0; --t) l.push(e[r[o[t]][2]]); + for (t = +a; t < s.length - u; ++t) l.push(e[r[s[t]][2]]); + return l; + }, + mg = function (e, t) { + for ( + var n, + r, + i = e.length, + o = e[i - 1], + s = t[0], + a = t[1], + u = o[0], + l = o[1], + c = !1, + d = 0; + d < i; + ++d + ) + (n = (o = e[d])[0]), + (r = o[1]) > a != l > a && + s < ((u - n) * (a - r)) / (l - r) + n && + (c = !c), + (u = n), + (l = r); + return c; + }, + _g = function (e) { + for ( + var t, + n, + r = -1, + i = e.length, + o = e[i - 1], + s = o[0], + a = o[1], + u = 0; + ++r < i; + + ) + (t = s), + (n = a), + (t -= s = (o = e[r])[0]), + (n -= a = o[1]), + (u += Math.sqrt(t * t + n * n)); + return u; + }, + yg = function () { + return Math.random(); + }, + vg = (function e(t) { + function n(e, n) { + return ( + (e = null == e ? 0 : +e), + (n = null == n ? 1 : +n), + 1 === arguments.length ? ((n = e), (e = 0)) : (n -= e), + function () { + return t() * n + e; + } + ); + } + return (n.source = e), n; + })(yg), + bg = (function e(t) { + function n(e, n) { + var r, i; + return ( + (e = null == e ? 0 : +e), + (n = null == n ? 1 : +n), + function () { + var o; + if (null != r) (o = r), (r = null); + else + do { + (r = 2 * t() - 1), (o = 2 * t() - 1), (i = r * r + o * o); + } while (!i || i > 1); + return e + n * o * Math.sqrt((-2 * Math.log(i)) / i); + } + ); + } + return (n.source = e), n; + })(yg), + wg = (function e(t) { + function n() { + var e = bg.source(t).apply(this, arguments); + return function () { + return Math.exp(e()); + }; + } + return (n.source = e), n; + })(yg), + Cg = (function e(t) { + function n(e) { + return function () { + for (var n = 0, r = 0; r < e; ++r) n += t(); + return n; + }; + } + return (n.source = e), n; + })(yg), + Sg = (function e(t) { + function n(e) { + var n = Cg.source(t)(e); + return function () { + return n() / e; + }; + } + return (n.source = e), n; + })(yg), + xg = (function e(t) { + function n(e) { + return function () { + return -Math.log(1 - t()) / e; + }; + } + return (n.source = e), n; + })(yg); + function Lg(e, t) { + switch (arguments.length) { + case 0: + break; + case 1: + this.range(e); + break; + default: + this.range(t).domain(e); + } + return this; + } + function kg(e, t) { + switch (arguments.length) { + case 0: + break; + case 1: + this.interpolator(e); + break; + default: + this.interpolator(t).domain(e); + } + return this; + } + var Mg = Array.prototype, + Dg = Mg.map, + Eg = Mg.slice, + Tg = { name: 'implicit' }; + function Ng() { + var e = oo(), + t = [], + n = [], + r = Tg; + function i(i) { + var o = i + '', + s = e.get(o); + if (!s) { + if (r !== Tg) return r; + e.set(o, (s = t.push(i))); + } + return n[(s - 1) % n.length]; + } + return ( + (i.domain = function (n) { + if (!arguments.length) return t.slice(); + (t = []), (e = oo()); + for (var r, o, s = -1, a = n.length; ++s < a; ) + e.has((o = (r = n[s]) + '')) || e.set(o, t.push(r)); + return i; + }), + (i.range = function (e) { + return arguments.length ? ((n = Eg.call(e)), i) : n.slice(); + }), + (i.unknown = function (e) { + return arguments.length ? ((r = e), i) : r; + }), + (i.copy = function () { + return Ng(t, n).unknown(r); + }), + Lg.apply(i, arguments), + i + ); + } + function Og() { + var e, + t, + n = Ng().unknown(void 0), + r = n.domain, + i = n.range, + o = [0, 1], + s = !1, + a = 0, + u = 0, + l = 0.5; + function c() { + var n = r().length, + c = o[1] < o[0], + d = o[c - 0], + h = o[1 - c]; + (e = (h - d) / Math.max(1, n - a + 2 * u)), + s && (e = Math.floor(e)), + (d += (h - d - e * (n - a)) * l), + (t = e * (1 - a)), + s && ((d = Math.round(d)), (t = Math.round(t))); + var f = C(n).map(function (t) { + return d + e * t; + }); + return i(c ? f.reverse() : f); + } + return ( + delete n.unknown, + (n.domain = function (e) { + return arguments.length ? (r(e), c()) : r(); + }), + (n.range = function (e) { + return arguments.length ? ((o = [+e[0], +e[1]]), c()) : o.slice(); + }), + (n.rangeRound = function (e) { + return (o = [+e[0], +e[1]]), (s = !0), c(); + }), + (n.bandwidth = function () { + return t; + }), + (n.step = function () { + return e; + }), + (n.round = function (e) { + return arguments.length ? ((s = !!e), c()) : s; + }), + (n.padding = function (e) { + return arguments.length ? ((a = Math.min(1, (u = +e))), c()) : a; + }), + (n.paddingInner = function (e) { + return arguments.length ? ((a = Math.min(1, e)), c()) : a; + }), + (n.paddingOuter = function (e) { + return arguments.length ? ((u = +e), c()) : u; + }), + (n.align = function (e) { + return arguments.length + ? ((l = Math.max(0, Math.min(1, e))), c()) + : l; + }), + (n.copy = function () { + return Og(r(), o).round(s).paddingInner(a).paddingOuter(u).align(l); + }), + Lg.apply(c(), arguments) + ); + } + function Ag() { + return (function e(t) { + var n = t.copy; + return ( + (t.padding = t.paddingOuter), + delete t.paddingInner, + delete t.paddingOuter, + (t.copy = function () { + return e(n()); + }), + t + ); + })(Og.apply(null, arguments).paddingInner(1)); + } + var Ig = function (e) { + return function () { + return e; + }; + }, + Pg = function (e) { + return +e; + }, + Rg = [0, 1]; + function Fg(e) { + return e; + } + function Yg(e, t) { + return (t -= e = +e) + ? function (n) { + return (n - e) / t; + } + : Ig(isNaN(t) ? NaN : 0.5); + } + function jg(e) { + var t, + n = e[0], + r = e[e.length - 1]; + return ( + n > r && ((t = n), (n = r), (r = t)), + function (e) { + return Math.max(n, Math.min(r, e)); + } + ); + } + function Bg(e, t, n) { + var r = e[0], + i = e[1], + o = t[0], + s = t[1]; + return ( + i < r + ? ((r = Yg(i, r)), (o = n(s, o))) + : ((r = Yg(r, i)), (o = n(o, s))), + function (e) { + return o(r(e)); + } + ); + } + function Wg(e, t, n) { + var r = Math.min(e.length, t.length) - 1, + i = new Array(r), + o = new Array(r), + s = -1; + for ( + e[r] < e[0] && ((e = e.slice().reverse()), (t = t.slice().reverse())); + ++s < r; + + ) + (i[s] = Yg(e[s], e[s + 1])), (o[s] = n(t[s], t[s + 1])); + return function (t) { + var n = u(e, t, 1, r) - 1; + return o[n](i[n](t)); + }; + } + function Hg(e, t) { + return t + .domain(e.domain()) + .range(e.range()) + .interpolate(e.interpolate()) + .clamp(e.clamp()) + .unknown(e.unknown()); + } + function Vg() { + var e, + t, + n, + r, + i, + o, + s = Rg, + a = Rg, + u = In, + l = Fg; + function c() { + return ( + (r = Math.min(s.length, a.length) > 2 ? Wg : Bg), (i = o = null), d + ); + } + function d(t) { + return isNaN((t = +t)) ? n : (i || (i = r(s.map(e), a, u)))(e(l(t))); + } + return ( + (d.invert = function (n) { + return l(t((o || (o = r(a, s.map(e), Mn)))(n))); + }), + (d.domain = function (e) { + return arguments.length + ? ((s = Dg.call(e, Pg)), l === Fg || (l = jg(s)), c()) + : s.slice(); + }), + (d.range = function (e) { + return arguments.length ? ((a = Eg.call(e)), c()) : a.slice(); + }), + (d.rangeRound = function (e) { + return (a = Eg.call(e)), (u = Gp), c(); + }), + (d.clamp = function (e) { + return arguments.length ? ((l = e ? jg(s) : Fg), d) : l !== Fg; + }), + (d.interpolate = function (e) { + return arguments.length ? ((u = e), c()) : u; + }), + (d.unknown = function (e) { + return arguments.length ? ((n = e), d) : n; + }), + function (n, r) { + return (e = n), (t = r), c(); + } + ); + } + function zg(e, t) { + return Vg()(e, t); + } + var Ug = function (e, t, n, r) { + var i, + o = D(e, t, n); + switch ((r = Cu(null == r ? ',f' : r)).type) { + case 's': + var s = Math.max(Math.abs(e), Math.abs(t)); + return ( + null != r.precision || isNaN((i = Fu(o, s))) || (r.precision = i), + Mu(r, s) + ); + case '': + case 'e': + case 'g': + case 'p': + case 'r': + null != r.precision || + isNaN((i = Yu(o, Math.max(Math.abs(e), Math.abs(t))))) || + (r.precision = i - ('e' === r.type)); + break; + case 'f': + case '%': + null != r.precision || + isNaN((i = Ru(o))) || + (r.precision = i - 2 * ('%' === r.type)); + } + return ku(r); + }; + function qg(e) { + var t = e.domain; + return ( + (e.ticks = function (e) { + var n = t(); + return k(n[0], n[n.length - 1], null == e ? 10 : e); + }), + (e.tickFormat = function (e, n) { + var r = t(); + return Ug(r[0], r[r.length - 1], null == e ? 10 : e, n); + }), + (e.nice = function (n) { + null == n && (n = 10); + var r, + i = t(), + o = 0, + s = i.length - 1, + a = i[o], + u = i[s]; + return ( + u < a && ((r = a), (a = u), (u = r), (r = o), (o = s), (s = r)), + (r = M(a, u, n)) > 0 + ? (r = M( + (a = Math.floor(a / r) * r), + (u = Math.ceil(u / r) * r), + n + )) + : r < 0 && + (r = M( + (a = Math.ceil(a * r) / r), + (u = Math.floor(u * r) / r), + n + )), + r > 0 + ? ((i[o] = Math.floor(a / r) * r), + (i[s] = Math.ceil(u / r) * r), + t(i)) + : r < 0 && + ((i[o] = Math.ceil(a * r) / r), + (i[s] = Math.floor(u * r) / r), + t(i)), + e + ); + }), + e + ); + } + function Kg() { + var e = zg(Fg, Fg); + return ( + (e.copy = function () { + return Hg(e, Kg()); + }), + Lg.apply(e, arguments), + qg(e) + ); + } + function Gg(e) { + var t; + function n(e) { + return isNaN((e = +e)) ? t : e; + } + return ( + (n.invert = n), + (n.domain = n.range = function (t) { + return arguments.length ? ((e = Dg.call(t, Pg)), n) : e.slice(); + }), + (n.unknown = function (e) { + return arguments.length ? ((t = e), n) : t; + }), + (n.copy = function () { + return Gg(e).unknown(t); + }), + (e = arguments.length ? Dg.call(e, Pg) : [0, 1]), + qg(n) + ); + } + var $g = function (e, t) { + var n, + r = 0, + i = (e = e.slice()).length - 1, + o = e[r], + s = e[i]; + return ( + s < o && ((n = r), (r = i), (i = n), (n = o), (o = s), (s = n)), + (e[r] = t.floor(o)), + (e[i] = t.ceil(s)), + e + ); + }; + function Zg(e) { + return Math.log(e); + } + function Xg(e) { + return Math.exp(e); + } + function Jg(e) { + return -Math.log(-e); + } + function Qg(e) { + return -Math.exp(-e); + } + function em(e) { + return isFinite(e) ? +('1e' + e) : e < 0 ? 0 : e; + } + function tm(e) { + return function (t) { + return -e(-t); + }; + } + function nm(e) { + var t, + n, + r = e(Zg, Xg), + i = r.domain, + o = 10; + function s() { + return ( + (t = (function (e) { + return e === Math.E + ? Math.log + : (10 === e && Math.log10) || + (2 === e && Math.log2) || + ((e = Math.log(e)), + function (t) { + return Math.log(t) / e; + }); + })(o)), + (n = (function (e) { + return 10 === e + ? em + : e === Math.E + ? Math.exp + : function (t) { + return Math.pow(e, t); + }; + })(o)), + i()[0] < 0 ? ((t = tm(t)), (n = tm(n)), e(Jg, Qg)) : e(Zg, Xg), + r + ); + } + return ( + (r.base = function (e) { + return arguments.length ? ((o = +e), s()) : o; + }), + (r.domain = function (e) { + return arguments.length ? (i(e), s()) : i(); + }), + (r.ticks = function (e) { + var r, + s = i(), + a = s[0], + u = s[s.length - 1]; + (r = u < a) && ((h = a), (a = u), (u = h)); + var l, + c, + d, + h = t(a), + f = t(u), + p = null == e ? 10 : +e, + g = []; + if (!(o % 1) && f - h < p) { + if (((h = Math.round(h) - 1), (f = Math.round(f) + 1), a > 0)) { + for (; h < f; ++h) + for (c = 1, l = n(h); c < o; ++c) + if (!((d = l * c) < a)) { + if (d > u) break; + g.push(d); + } + } else + for (; h < f; ++h) + for (c = o - 1, l = n(h); c >= 1; --c) + if (!((d = l * c) < a)) { + if (d > u) break; + g.push(d); + } + } else g = k(h, f, Math.min(f - h, p)).map(n); + return r ? g.reverse() : g; + }), + (r.tickFormat = function (e, i) { + if ( + (null == i && (i = 10 === o ? '.0e' : ','), + 'function' != typeof i && (i = ku(i)), + e === 1 / 0) + ) + return i; + null == e && (e = 10); + var s = Math.max(1, (o * e) / r.ticks().length); + return function (e) { + var r = e / n(Math.round(t(e))); + return r * o < o - 0.5 && (r *= o), r <= s ? i(e) : ''; + }; + }), + (r.nice = function () { + return i( + $g(i(), { + floor: function (e) { + return n(Math.floor(t(e))); + }, + ceil: function (e) { + return n(Math.ceil(t(e))); + }, + }) + ); + }), + r + ); + } + function rm() { + var e = nm(Vg()).domain([1, 10]); + return ( + (e.copy = function () { + return Hg(e, rm()).base(e.base()); + }), + Lg.apply(e, arguments), + e + ); + } + function im(e) { + return function (t) { + return Math.sign(t) * Math.log1p(Math.abs(t / e)); + }; + } + function om(e) { + return function (t) { + return Math.sign(t) * Math.expm1(Math.abs(t)) * e; + }; + } + function sm(e) { + var t = 1, + n = e(im(t), om(t)); + return ( + (n.constant = function (n) { + return arguments.length ? e(im((t = +n)), om(t)) : t; + }), + qg(n) + ); + } + function am() { + var e = sm(Vg()); + return ( + (e.copy = function () { + return Hg(e, am()).constant(e.constant()); + }), + Lg.apply(e, arguments) + ); + } + function um(e) { + return function (t) { + return t < 0 ? -Math.pow(-t, e) : Math.pow(t, e); + }; + } + function lm(e) { + return e < 0 ? -Math.sqrt(-e) : Math.sqrt(e); + } + function cm(e) { + return e < 0 ? -e * e : e * e; + } + function dm(e) { + var t = e(Fg, Fg), + n = 1; + function r() { + return 1 === n + ? e(Fg, Fg) + : 0.5 === n + ? e(lm, cm) + : e(um(n), um(1 / n)); + } + return ( + (t.exponent = function (e) { + return arguments.length ? ((n = +e), r()) : n; + }), + qg(t) + ); + } + function hm() { + var e = dm(Vg()); + return ( + (e.copy = function () { + return Hg(e, hm()).exponent(e.exponent()); + }), + Lg.apply(e, arguments), + e + ); + } + function fm() { + return hm.apply(null, arguments).exponent(0.5); + } + function pm() { + var e, + t = [], + n = [], + i = []; + function o() { + var e = 0, + r = Math.max(1, n.length); + for (i = new Array(r - 1); ++e < r; ) i[e - 1] = N(t, e / r); + return s; + } + function s(t) { + return isNaN((t = +t)) ? e : n[u(i, t)]; + } + return ( + (s.invertExtent = function (e) { + var r = n.indexOf(e); + return r < 0 + ? [NaN, NaN] + : [r > 0 ? i[r - 1] : t[0], r < i.length ? i[r] : t[t.length - 1]]; + }), + (s.domain = function (e) { + if (!arguments.length) return t.slice(); + t = []; + for (var n, i = 0, s = e.length; i < s; ++i) + null == (n = e[i]) || isNaN((n = +n)) || t.push(n); + return t.sort(r), o(); + }), + (s.range = function (e) { + return arguments.length ? ((n = Eg.call(e)), o()) : n.slice(); + }), + (s.unknown = function (t) { + return arguments.length ? ((e = t), s) : e; + }), + (s.quantiles = function () { + return i.slice(); + }), + (s.copy = function () { + return pm().domain(t).range(n).unknown(e); + }), + Lg.apply(s, arguments) + ); + } + function gm() { + var e, + t = 0, + n = 1, + r = 1, + i = [0.5], + o = [0, 1]; + function s(t) { + return t <= t ? o[u(i, t, 0, r)] : e; + } + function a() { + var e = -1; + for (i = new Array(r); ++e < r; ) + i[e] = ((e + 1) * n - (e - r) * t) / (r + 1); + return s; + } + return ( + (s.domain = function (e) { + return arguments.length ? ((t = +e[0]), (n = +e[1]), a()) : [t, n]; + }), + (s.range = function (e) { + return arguments.length + ? ((r = (o = Eg.call(e)).length - 1), a()) + : o.slice(); + }), + (s.invertExtent = function (e) { + var s = o.indexOf(e); + return s < 0 + ? [NaN, NaN] + : s < 1 + ? [t, i[0]] + : s >= r + ? [i[r - 1], n] + : [i[s - 1], i[s]]; + }), + (s.unknown = function (t) { + return arguments.length ? ((e = t), s) : s; + }), + (s.thresholds = function () { + return i.slice(); + }), + (s.copy = function () { + return gm().domain([t, n]).range(o).unknown(e); + }), + Lg.apply(qg(s), arguments) + ); + } + function mm() { + var e, + t = [0.5], + n = [0, 1], + r = 1; + function i(i) { + return i <= i ? n[u(t, i, 0, r)] : e; + } + return ( + (i.domain = function (e) { + return arguments.length + ? ((t = Eg.call(e)), (r = Math.min(t.length, n.length - 1)), i) + : t.slice(); + }), + (i.range = function (e) { + return arguments.length + ? ((n = Eg.call(e)), (r = Math.min(t.length, n.length - 1)), i) + : n.slice(); + }), + (i.invertExtent = function (e) { + var r = n.indexOf(e); + return [t[r - 1], t[r]]; + }), + (i.unknown = function (t) { + return arguments.length ? ((e = t), i) : e; + }), + (i.copy = function () { + return mm().domain(t).range(n).unknown(e); + }), + Lg.apply(i, arguments) + ); + } + var _m = new Date(), + ym = new Date(); + function vm(e, t, n, r) { + function i(t) { + return e((t = 0 === arguments.length ? new Date() : new Date(+t))), t; + } + return ( + (i.floor = function (t) { + return e((t = new Date(+t))), t; + }), + (i.ceil = function (n) { + return e((n = new Date(n - 1))), t(n, 1), e(n), n; + }), + (i.round = function (e) { + var t = i(e), + n = i.ceil(e); + return e - t < n - e ? t : n; + }), + (i.offset = function (e, n) { + return t((e = new Date(+e)), null == n ? 1 : Math.floor(n)), e; + }), + (i.range = function (n, r, o) { + var s, + a = []; + if ( + ((n = i.ceil(n)), + (o = null == o ? 1 : Math.floor(o)), + !(n < r && o > 0)) + ) + return a; + do { + a.push((s = new Date(+n))), t(n, o), e(n); + } while (s < n && n < r); + return a; + }), + (i.filter = function (n) { + return vm( + function (t) { + if (t >= t) for (; e(t), !n(t); ) t.setTime(t - 1); + }, + function (e, r) { + if (e >= e) + if (r < 0) for (; ++r <= 0; ) for (; t(e, -1), !n(e); ); + else for (; --r >= 0; ) for (; t(e, 1), !n(e); ); + } + ); + }), + n && + ((i.count = function (t, r) { + return ( + _m.setTime(+t), + ym.setTime(+r), + e(_m), + e(ym), + Math.floor(n(_m, ym)) + ); + }), + (i.every = function (e) { + return ( + (e = Math.floor(e)), + isFinite(e) && e > 0 + ? e > 1 + ? i.filter( + r + ? function (t) { + return r(t) % e == 0; + } + : function (t) { + return i.count(0, t) % e == 0; + } + ) + : i + : null + ); + })), + i + ); + } + var bm = vm( + function (e) { + e.setMonth(0, 1), e.setHours(0, 0, 0, 0); + }, + function (e, t) { + e.setFullYear(e.getFullYear() + t); + }, + function (e, t) { + return t.getFullYear() - e.getFullYear(); + }, + function (e) { + return e.getFullYear(); + } + ); + bm.every = function (e) { + return isFinite((e = Math.floor(e))) && e > 0 + ? vm( + function (t) { + t.setFullYear(Math.floor(t.getFullYear() / e) * e), + t.setMonth(0, 1), + t.setHours(0, 0, 0, 0); + }, + function (t, n) { + t.setFullYear(t.getFullYear() + n * e); + } + ) + : null; + }; + var wm = bm, + Cm = bm.range, + Sm = vm( + function (e) { + e.setDate(1), e.setHours(0, 0, 0, 0); + }, + function (e, t) { + e.setMonth(e.getMonth() + t); + }, + function (e, t) { + return ( + t.getMonth() - + e.getMonth() + + 12 * (t.getFullYear() - e.getFullYear()) + ); + }, + function (e) { + return e.getMonth(); + } + ), + xm = Sm, + Lm = Sm.range, + km = 6e4, + Mm = 6048e5; + function Dm(e) { + return vm( + function (t) { + t.setDate(t.getDate() - ((t.getDay() + 7 - e) % 7)), + t.setHours(0, 0, 0, 0); + }, + function (e, t) { + e.setDate(e.getDate() + 7 * t); + }, + function (e, t) { + return ( + (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * km) / Mm + ); + } + ); + } + var Em = Dm(0), + Tm = Dm(1), + Nm = Dm(2), + Om = Dm(3), + Am = Dm(4), + Im = Dm(5), + Pm = Dm(6), + Rm = Em.range, + Fm = Tm.range, + Ym = Nm.range, + jm = Om.range, + Bm = Am.range, + Wm = Im.range, + Hm = Pm.range, + Vm = vm( + function (e) { + e.setHours(0, 0, 0, 0); + }, + function (e, t) { + e.setDate(e.getDate() + t); + }, + function (e, t) { + return ( + (t - e - (t.getTimezoneOffset() - e.getTimezoneOffset()) * km) / + 864e5 + ); + }, + function (e) { + return e.getDate() - 1; + } + ), + zm = Vm, + Um = Vm.range, + qm = vm( + function (e) { + e.setTime( + e - e.getMilliseconds() - 1e3 * e.getSeconds() - e.getMinutes() * km + ); + }, + function (e, t) { + e.setTime(+e + 36e5 * t); + }, + function (e, t) { + return (t - e) / 36e5; + }, + function (e) { + return e.getHours(); + } + ), + Km = qm, + Gm = qm.range, + $m = vm( + function (e) { + e.setTime(e - e.getMilliseconds() - 1e3 * e.getSeconds()); + }, + function (e, t) { + e.setTime(+e + t * km); + }, + function (e, t) { + return (t - e) / km; + }, + function (e) { + return e.getMinutes(); + } + ), + Zm = $m, + Xm = $m.range, + Jm = vm( + function (e) { + e.setTime(e - e.getMilliseconds()); + }, + function (e, t) { + e.setTime(+e + 1e3 * t); + }, + function (e, t) { + return (t - e) / 1e3; + }, + function (e) { + return e.getUTCSeconds(); + } + ), + Qm = Jm, + e_ = Jm.range, + t_ = vm( + function () {}, + function (e, t) { + e.setTime(+e + t); + }, + function (e, t) { + return t - e; + } + ); + t_.every = function (e) { + return ( + (e = Math.floor(e)), + isFinite(e) && e > 0 + ? e > 1 + ? vm( + function (t) { + t.setTime(Math.floor(t / e) * e); + }, + function (t, n) { + t.setTime(+t + n * e); + }, + function (t, n) { + return (n - t) / e; + } + ) + : t_ + : null + ); + }; + var n_ = t_, + r_ = t_.range; + function i_(e) { + return vm( + function (t) { + t.setUTCDate(t.getUTCDate() - ((t.getUTCDay() + 7 - e) % 7)), + t.setUTCHours(0, 0, 0, 0); + }, + function (e, t) { + e.setUTCDate(e.getUTCDate() + 7 * t); + }, + function (e, t) { + return (t - e) / Mm; + } + ); + } + var o_ = i_(0), + s_ = i_(1), + a_ = i_(2), + u_ = i_(3), + l_ = i_(4), + c_ = i_(5), + d_ = i_(6), + h_ = o_.range, + f_ = s_.range, + p_ = a_.range, + g_ = u_.range, + m_ = l_.range, + __ = c_.range, + y_ = d_.range, + v_ = vm( + function (e) { + e.setUTCHours(0, 0, 0, 0); + }, + function (e, t) { + e.setUTCDate(e.getUTCDate() + t); + }, + function (e, t) { + return (t - e) / 864e5; + }, + function (e) { + return e.getUTCDate() - 1; + } + ), + b_ = v_, + w_ = v_.range, + C_ = vm( + function (e) { + e.setUTCMonth(0, 1), e.setUTCHours(0, 0, 0, 0); + }, + function (e, t) { + e.setUTCFullYear(e.getUTCFullYear() + t); + }, + function (e, t) { + return t.getUTCFullYear() - e.getUTCFullYear(); + }, + function (e) { + return e.getUTCFullYear(); + } + ); + C_.every = function (e) { + return isFinite((e = Math.floor(e))) && e > 0 + ? vm( + function (t) { + t.setUTCFullYear(Math.floor(t.getUTCFullYear() / e) * e), + t.setUTCMonth(0, 1), + t.setUTCHours(0, 0, 0, 0); + }, + function (t, n) { + t.setUTCFullYear(t.getUTCFullYear() + n * e); + } + ) + : null; + }; + var S_ = C_, + x_ = C_.range; + function L_(e) { + if (0 <= e.y && e.y < 100) { + var t = new Date(-1, e.m, e.d, e.H, e.M, e.S, e.L); + return t.setFullYear(e.y), t; + } + return new Date(e.y, e.m, e.d, e.H, e.M, e.S, e.L); + } + function k_(e) { + if (0 <= e.y && e.y < 100) { + var t = new Date(Date.UTC(-1, e.m, e.d, e.H, e.M, e.S, e.L)); + return t.setUTCFullYear(e.y), t; + } + return new Date(Date.UTC(e.y, e.m, e.d, e.H, e.M, e.S, e.L)); + } + function M_(e, t, n) { + return { y: e, m: t, d: n, H: 0, M: 0, S: 0, L: 0 }; + } + function D_(e) { + var t = e.dateTime, + n = e.date, + r = e.time, + i = e.periods, + o = e.days, + s = e.shortDays, + a = e.months, + u = e.shortMonths, + l = B_(i), + c = W_(i), + d = B_(o), + h = W_(o), + f = B_(s), + p = W_(s), + g = B_(a), + m = W_(a), + _ = B_(u), + y = W_(u), + v = { + a: function (e) { + return s[e.getDay()]; + }, + A: function (e) { + return o[e.getDay()]; + }, + b: function (e) { + return u[e.getMonth()]; + }, + B: function (e) { + return a[e.getMonth()]; + }, + c: null, + d: uy, + e: uy, + f: fy, + H: ly, + I: cy, + j: dy, + L: hy, + m: py, + M: gy, + p: function (e) { + return i[+(e.getHours() >= 12)]; + }, + q: function (e) { + return 1 + ~~(e.getMonth() / 3); + }, + Q: Vy, + s: zy, + S: my, + u: _y, + U: yy, + V: vy, + w: by, + W: wy, + x: null, + X: null, + y: Cy, + Y: Sy, + Z: xy, + '%': Hy, + }, + b = { + a: function (e) { + return s[e.getUTCDay()]; + }, + A: function (e) { + return o[e.getUTCDay()]; + }, + b: function (e) { + return u[e.getUTCMonth()]; + }, + B: function (e) { + return a[e.getUTCMonth()]; + }, + c: null, + d: Ly, + e: Ly, + f: Ty, + H: ky, + I: My, + j: Dy, + L: Ey, + m: Ny, + M: Oy, + p: function (e) { + return i[+(e.getUTCHours() >= 12)]; + }, + q: function (e) { + return 1 + ~~(e.getUTCMonth() / 3); + }, + Q: Vy, + s: zy, + S: Ay, + u: Iy, + U: Py, + V: Ry, + w: Fy, + W: Yy, + x: null, + X: null, + y: jy, + Y: By, + Z: Wy, + '%': Hy, + }, + w = { + a: function (e, t, n) { + var r = f.exec(t.slice(n)); + return r ? ((e.w = p[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + A: function (e, t, n) { + var r = d.exec(t.slice(n)); + return r ? ((e.w = h[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + b: function (e, t, n) { + var r = _.exec(t.slice(n)); + return r ? ((e.m = y[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + B: function (e, t, n) { + var r = g.exec(t.slice(n)); + return r ? ((e.m = m[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + c: function (e, n, r) { + return x(e, t, n, r); + }, + d: J_, + e: J_, + f: iy, + H: ey, + I: ey, + j: Q_, + L: ry, + m: X_, + M: ty, + p: function (e, t, n) { + var r = l.exec(t.slice(n)); + return r ? ((e.p = c[r[0].toLowerCase()]), n + r[0].length) : -1; + }, + q: Z_, + Q: sy, + s: ay, + S: ny, + u: V_, + U: z_, + V: U_, + w: H_, + W: q_, + x: function (e, t, r) { + return x(e, n, t, r); + }, + X: function (e, t, n) { + return x(e, r, t, n); + }, + y: G_, + Y: K_, + Z: $_, + '%': oy, + }; + function C(e, t) { + return function (n) { + var r, + i, + o, + s = [], + a = -1, + u = 0, + l = e.length; + for (n instanceof Date || (n = new Date(+n)); ++a < l; ) + 37 === e.charCodeAt(a) && + (s.push(e.slice(u, a)), + null != (i = I_[(r = e.charAt(++a))]) + ? (r = e.charAt(++a)) + : (i = 'e' === r ? ' ' : '0'), + (o = t[r]) && (r = o(n, i)), + s.push(r), + (u = a + 1)); + return s.push(e.slice(u, a)), s.join(''); + }; + } + function S(e, t) { + return function (n) { + var r, + i, + o = M_(1900, void 0, 1); + if (x(o, e, (n += ''), 0) != n.length) return null; + if ('Q' in o) return new Date(o.Q); + if ('s' in o) return new Date(1e3 * o.s + ('L' in o ? o.L : 0)); + if ( + (!t || 'Z' in o || (o.Z = 0), + 'p' in o && (o.H = (o.H % 12) + 12 * o.p), + void 0 === o.m && (o.m = 'q' in o ? o.q : 0), + 'V' in o) + ) { + if (o.V < 1 || o.V > 53) return null; + 'w' in o || (o.w = 1), + 'Z' in o + ? ((i = (r = k_(M_(o.y, 0, 1))).getUTCDay()), + (r = i > 4 || 0 === i ? s_.ceil(r) : s_(r)), + (r = b_.offset(r, 7 * (o.V - 1))), + (o.y = r.getUTCFullYear()), + (o.m = r.getUTCMonth()), + (o.d = r.getUTCDate() + ((o.w + 6) % 7))) + : ((i = (r = L_(M_(o.y, 0, 1))).getDay()), + (r = i > 4 || 0 === i ? Tm.ceil(r) : Tm(r)), + (r = zm.offset(r, 7 * (o.V - 1))), + (o.y = r.getFullYear()), + (o.m = r.getMonth()), + (o.d = r.getDate() + ((o.w + 6) % 7))); + } else + ('W' in o || 'U' in o) && + ('w' in o || (o.w = 'u' in o ? o.u % 7 : 'W' in o ? 1 : 0), + (i = + 'Z' in o + ? k_(M_(o.y, 0, 1)).getUTCDay() + : L_(M_(o.y, 0, 1)).getDay()), + (o.m = 0), + (o.d = + 'W' in o + ? ((o.w + 6) % 7) + 7 * o.W - ((i + 5) % 7) + : o.w + 7 * o.U - ((i + 6) % 7))); + return 'Z' in o + ? ((o.H += (o.Z / 100) | 0), (o.M += o.Z % 100), k_(o)) + : L_(o); + }; + } + function x(e, t, n, r) { + for (var i, o, s = 0, a = t.length, u = n.length; s < a; ) { + if (r >= u) return -1; + if (37 === (i = t.charCodeAt(s++))) { + if ( + ((i = t.charAt(s++)), + !(o = w[i in I_ ? t.charAt(s++) : i]) || (r = o(e, n, r)) < 0) + ) + return -1; + } else if (i != n.charCodeAt(r++)) return -1; + } + return r; + } + return ( + (v.x = C(n, v)), + (v.X = C(r, v)), + (v.c = C(t, v)), + (b.x = C(n, b)), + (b.X = C(r, b)), + (b.c = C(t, b)), + { + format: function (e) { + var t = C((e += ''), v); + return ( + (t.toString = function () { + return e; + }), + t + ); + }, + parse: function (e) { + var t = S((e += ''), !1); + return ( + (t.toString = function () { + return e; + }), + t + ); + }, + utcFormat: function (e) { + var t = C((e += ''), b); + return ( + (t.toString = function () { + return e; + }), + t + ); + }, + utcParse: function (e) { + var t = S((e += ''), !0); + return ( + (t.toString = function () { + return e; + }), + t + ); + }, + } + ); + } + var E_, + T_, + N_, + O_, + A_, + I_ = { '-': '', _: ' ', 0: '0' }, + P_ = /^\s*\d+/, + R_ = /^%/, + F_ = /[\\^$*+?|[\]().{}]/g; + function Y_(e, t, n) { + var r = e < 0 ? '-' : '', + i = (r ? -e : e) + '', + o = i.length; + return r + (o < n ? new Array(n - o + 1).join(t) + i : i); + } + function j_(e) { + return e.replace(F_, '\\$&'); + } + function B_(e) { + return new RegExp('^(?:' + e.map(j_).join('|') + ')', 'i'); + } + function W_(e) { + for (var t = {}, n = -1, r = e.length; ++n < r; ) + t[e[n].toLowerCase()] = n; + return t; + } + function H_(e, t, n) { + var r = P_.exec(t.slice(n, n + 1)); + return r ? ((e.w = +r[0]), n + r[0].length) : -1; + } + function V_(e, t, n) { + var r = P_.exec(t.slice(n, n + 1)); + return r ? ((e.u = +r[0]), n + r[0].length) : -1; + } + function z_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.U = +r[0]), n + r[0].length) : -1; + } + function U_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.V = +r[0]), n + r[0].length) : -1; + } + function q_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.W = +r[0]), n + r[0].length) : -1; + } + function K_(e, t, n) { + var r = P_.exec(t.slice(n, n + 4)); + return r ? ((e.y = +r[0]), n + r[0].length) : -1; + } + function G_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r + ? ((e.y = +r[0] + (+r[0] > 68 ? 1900 : 2e3)), n + r[0].length) + : -1; + } + function $_(e, t, n) { + var r = /^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n, n + 6)); + return r + ? ((e.Z = r[1] ? 0 : -(r[2] + (r[3] || '00'))), n + r[0].length) + : -1; + } + function Z_(e, t, n) { + var r = P_.exec(t.slice(n, n + 1)); + return r ? ((e.q = 3 * r[0] - 3), n + r[0].length) : -1; + } + function X_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.m = r[0] - 1), n + r[0].length) : -1; + } + function J_(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.d = +r[0]), n + r[0].length) : -1; + } + function Q_(e, t, n) { + var r = P_.exec(t.slice(n, n + 3)); + return r ? ((e.m = 0), (e.d = +r[0]), n + r[0].length) : -1; + } + function ey(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.H = +r[0]), n + r[0].length) : -1; + } + function ty(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.M = +r[0]), n + r[0].length) : -1; + } + function ny(e, t, n) { + var r = P_.exec(t.slice(n, n + 2)); + return r ? ((e.S = +r[0]), n + r[0].length) : -1; + } + function ry(e, t, n) { + var r = P_.exec(t.slice(n, n + 3)); + return r ? ((e.L = +r[0]), n + r[0].length) : -1; + } + function iy(e, t, n) { + var r = P_.exec(t.slice(n, n + 6)); + return r ? ((e.L = Math.floor(r[0] / 1e3)), n + r[0].length) : -1; + } + function oy(e, t, n) { + var r = R_.exec(t.slice(n, n + 1)); + return r ? n + r[0].length : -1; + } + function sy(e, t, n) { + var r = P_.exec(t.slice(n)); + return r ? ((e.Q = +r[0]), n + r[0].length) : -1; + } + function ay(e, t, n) { + var r = P_.exec(t.slice(n)); + return r ? ((e.s = +r[0]), n + r[0].length) : -1; + } + function uy(e, t) { + return Y_(e.getDate(), t, 2); + } + function ly(e, t) { + return Y_(e.getHours(), t, 2); + } + function cy(e, t) { + return Y_(e.getHours() % 12 || 12, t, 2); + } + function dy(e, t) { + return Y_(1 + zm.count(wm(e), e), t, 3); + } + function hy(e, t) { + return Y_(e.getMilliseconds(), t, 3); + } + function fy(e, t) { + return hy(e, t) + '000'; + } + function py(e, t) { + return Y_(e.getMonth() + 1, t, 2); + } + function gy(e, t) { + return Y_(e.getMinutes(), t, 2); + } + function my(e, t) { + return Y_(e.getSeconds(), t, 2); + } + function _y(e) { + var t = e.getDay(); + return 0 === t ? 7 : t; + } + function yy(e, t) { + return Y_(Em.count(wm(e) - 1, e), t, 2); + } + function vy(e, t) { + var n = e.getDay(); + return ( + (e = n >= 4 || 0 === n ? Am(e) : Am.ceil(e)), + Y_(Am.count(wm(e), e) + (4 === wm(e).getDay()), t, 2) + ); + } + function by(e) { + return e.getDay(); + } + function wy(e, t) { + return Y_(Tm.count(wm(e) - 1, e), t, 2); + } + function Cy(e, t) { + return Y_(e.getFullYear() % 100, t, 2); + } + function Sy(e, t) { + return Y_(e.getFullYear() % 1e4, t, 4); + } + function xy(e) { + var t = e.getTimezoneOffset(); + return ( + (t > 0 ? '-' : ((t *= -1), '+')) + + Y_((t / 60) | 0, '0', 2) + + Y_(t % 60, '0', 2) + ); + } + function Ly(e, t) { + return Y_(e.getUTCDate(), t, 2); + } + function ky(e, t) { + return Y_(e.getUTCHours(), t, 2); + } + function My(e, t) { + return Y_(e.getUTCHours() % 12 || 12, t, 2); + } + function Dy(e, t) { + return Y_(1 + b_.count(S_(e), e), t, 3); + } + function Ey(e, t) { + return Y_(e.getUTCMilliseconds(), t, 3); + } + function Ty(e, t) { + return Ey(e, t) + '000'; + } + function Ny(e, t) { + return Y_(e.getUTCMonth() + 1, t, 2); + } + function Oy(e, t) { + return Y_(e.getUTCMinutes(), t, 2); + } + function Ay(e, t) { + return Y_(e.getUTCSeconds(), t, 2); + } + function Iy(e) { + var t = e.getUTCDay(); + return 0 === t ? 7 : t; + } + function Py(e, t) { + return Y_(o_.count(S_(e) - 1, e), t, 2); + } + function Ry(e, t) { + var n = e.getUTCDay(); + return ( + (e = n >= 4 || 0 === n ? l_(e) : l_.ceil(e)), + Y_(l_.count(S_(e), e) + (4 === S_(e).getUTCDay()), t, 2) + ); + } + function Fy(e) { + return e.getUTCDay(); + } + function Yy(e, t) { + return Y_(s_.count(S_(e) - 1, e), t, 2); + } + function jy(e, t) { + return Y_(e.getUTCFullYear() % 100, t, 2); + } + function By(e, t) { + return Y_(e.getUTCFullYear() % 1e4, t, 4); + } + function Wy() { + return '+0000'; + } + function Hy() { + return '%'; + } + function Vy(e) { + return +e; + } + function zy(e) { + return Math.floor(+e / 1e3); + } + function Uy(e) { + return ( + (E_ = D_(e)), + (T_ = E_.format), + (N_ = E_.parse), + (O_ = E_.utcFormat), + (A_ = E_.utcParse), + E_ + ); + } + Uy({ + 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', + ], + }); + var qy = 1e3, + Ky = 60 * qy, + Gy = 60 * Ky, + $y = 24 * Gy, + Zy = 7 * $y, + Xy = 30 * $y, + Jy = 365 * $y; + function Qy(e) { + return new Date(e); + } + function ev(e) { + return e instanceof Date ? +e : +new Date(+e); + } + function tv(e, t, n, r, o, s, a, u, l) { + var c = zg(Fg, Fg), + d = c.invert, + h = c.domain, + f = l('.%L'), + p = l(':%S'), + g = l('%I:%M'), + m = l('%I %p'), + _ = l('%a %d'), + y = l('%b %d'), + v = l('%B'), + b = l('%Y'), + w = [ + [a, 1, qy], + [a, 5, 5 * qy], + [a, 15, 15 * qy], + [a, 30, 30 * qy], + [s, 1, Ky], + [s, 5, 5 * Ky], + [s, 15, 15 * Ky], + [s, 30, 30 * Ky], + [o, 1, Gy], + [o, 3, 3 * Gy], + [o, 6, 6 * Gy], + [o, 12, 12 * Gy], + [r, 1, $y], + [r, 2, 2 * $y], + [n, 1, Zy], + [t, 1, Xy], + [t, 3, 3 * Xy], + [e, 1, Jy], + ]; + function C(i) { + return (a(i) < i + ? f + : s(i) < i + ? p + : o(i) < i + ? g + : r(i) < i + ? m + : t(i) < i + ? n(i) < i + ? _ + : y + : e(i) < i + ? v + : b)(i); + } + function S(t, n, r, o) { + if ((null == t && (t = 10), 'number' == typeof t)) { + var s = Math.abs(r - n) / t, + a = i(function (e) { + return e[2]; + }).right(w, s); + a === w.length + ? ((o = D(n / Jy, r / Jy, t)), (t = e)) + : a + ? ((o = (a = w[s / w[a - 1][2] < w[a][2] / s ? a - 1 : a])[1]), + (t = a[0])) + : ((o = Math.max(D(n, r, t), 1)), (t = u)); + } + return null == o ? t : t.every(o); + } + return ( + (c.invert = function (e) { + return new Date(d(e)); + }), + (c.domain = function (e) { + return arguments.length ? h(Dg.call(e, ev)) : h().map(Qy); + }), + (c.ticks = function (e, t) { + var n, + r = h(), + i = r[0], + o = r[r.length - 1], + s = o < i; + return ( + s && ((n = i), (i = o), (o = n)), + (n = (n = S(e, i, o, t)) ? n.range(i, o + 1) : []), + s ? n.reverse() : n + ); + }), + (c.tickFormat = function (e, t) { + return null == t ? C : l(t); + }), + (c.nice = function (e, t) { + var n = h(); + return (e = S(e, n[0], n[n.length - 1], t)) ? h($g(n, e)) : c; + }), + (c.copy = function () { + return Hg(c, tv(e, t, n, r, o, s, a, u, l)); + }), + c + ); + } + var nv = function () { + return Lg.apply( + tv(wm, xm, Em, zm, Km, Zm, Qm, n_, T_).domain([ + new Date(2e3, 0, 1), + new Date(2e3, 0, 2), + ]), + arguments + ); + }, + rv = vm( + function (e) { + e.setUTCDate(1), e.setUTCHours(0, 0, 0, 0); + }, + function (e, t) { + e.setUTCMonth(e.getUTCMonth() + t); + }, + function (e, t) { + return ( + t.getUTCMonth() - + e.getUTCMonth() + + 12 * (t.getUTCFullYear() - e.getUTCFullYear()) + ); + }, + function (e) { + return e.getUTCMonth(); + } + ), + iv = rv, + ov = rv.range, + sv = vm( + function (e) { + e.setUTCMinutes(0, 0, 0); + }, + function (e, t) { + e.setTime(+e + 36e5 * t); + }, + function (e, t) { + return (t - e) / 36e5; + }, + function (e) { + return e.getUTCHours(); + } + ), + av = sv, + uv = sv.range, + lv = vm( + function (e) { + e.setUTCSeconds(0, 0); + }, + function (e, t) { + e.setTime(+e + t * km); + }, + function (e, t) { + return (t - e) / km; + }, + function (e) { + return e.getUTCMinutes(); + } + ), + cv = lv, + dv = lv.range, + hv = function () { + return Lg.apply( + tv(S_, iv, o_, b_, av, cv, Qm, n_, O_).domain([ + Date.UTC(2e3, 0, 1), + Date.UTC(2e3, 0, 2), + ]), + arguments + ); + }; + function fv() { + var e, + t, + n, + r, + i, + o = 0, + s = 1, + a = Fg, + u = !1; + function l(t) { + return isNaN((t = +t)) + ? i + : a( + 0 === n + ? 0.5 + : ((t = (r(t) - e) * n), u ? Math.max(0, Math.min(1, t)) : t) + ); + } + return ( + (l.domain = function (i) { + return arguments.length + ? ((e = r((o = +i[0]))), + (t = r((s = +i[1]))), + (n = e === t ? 0 : 1 / (t - e)), + l) + : [o, s]; + }), + (l.clamp = function (e) { + return arguments.length ? ((u = !!e), l) : u; + }), + (l.interpolator = function (e) { + return arguments.length ? ((a = e), l) : a; + }), + (l.unknown = function (e) { + return arguments.length ? ((i = e), l) : i; + }), + function (i) { + return ( + (r = i), (e = i(o)), (t = i(s)), (n = e === t ? 0 : 1 / (t - e)), l + ); + } + ); + } + function pv(e, t) { + return t + .domain(e.domain()) + .interpolator(e.interpolator()) + .clamp(e.clamp()) + .unknown(e.unknown()); + } + function gv() { + var e = qg(fv()(Fg)); + return ( + (e.copy = function () { + return pv(e, gv()); + }), + kg.apply(e, arguments) + ); + } + function mv() { + var e = nm(fv()).domain([1, 10]); + return ( + (e.copy = function () { + return pv(e, mv()).base(e.base()); + }), + kg.apply(e, arguments) + ); + } + function _v() { + var e = sm(fv()); + return ( + (e.copy = function () { + return pv(e, _v()).constant(e.constant()); + }), + kg.apply(e, arguments) + ); + } + function yv() { + var e = dm(fv()); + return ( + (e.copy = function () { + return pv(e, yv()).exponent(e.exponent()); + }), + kg.apply(e, arguments) + ); + } + function vv() { + return yv.apply(null, arguments).exponent(0.5); + } + function bv() { + var e = [], + t = Fg; + function n(n) { + if (!isNaN((n = +n))) return t((u(e, n) - 1) / (e.length - 1)); + } + return ( + (n.domain = function (t) { + if (!arguments.length) return e.slice(); + e = []; + for (var i, o = 0, s = t.length; o < s; ++o) + null == (i = t[o]) || isNaN((i = +i)) || e.push(i); + return e.sort(r), n; + }), + (n.interpolator = function (e) { + return arguments.length ? ((t = e), n) : t; + }), + (n.copy = function () { + return bv(t).domain(e); + }), + kg.apply(n, arguments) + ); + } + function wv() { + var e, + t, + n, + r, + i, + o, + s, + a = 0, + u = 0.5, + l = 1, + c = Fg, + d = !1; + function h(e) { + return isNaN((e = +e)) + ? s + : ((e = 0.5 + ((e = +o(e)) - t) * (e < t ? r : i)), + c(d ? Math.max(0, Math.min(1, e)) : e)); + } + return ( + (h.domain = function (s) { + return arguments.length + ? ((e = o((a = +s[0]))), + (t = o((u = +s[1]))), + (n = o((l = +s[2]))), + (r = e === t ? 0 : 0.5 / (t - e)), + (i = t === n ? 0 : 0.5 / (n - t)), + h) + : [a, u, l]; + }), + (h.clamp = function (e) { + return arguments.length ? ((d = !!e), h) : d; + }), + (h.interpolator = function (e) { + return arguments.length ? ((c = e), h) : c; + }), + (h.unknown = function (e) { + return arguments.length ? ((s = e), h) : s; + }), + function (s) { + return ( + (o = s), + (e = s(a)), + (t = s(u)), + (n = s(l)), + (r = e === t ? 0 : 0.5 / (t - e)), + (i = t === n ? 0 : 0.5 / (n - t)), + h + ); + } + ); + } + function Cv() { + var e = qg(wv()(Fg)); + return ( + (e.copy = function () { + return pv(e, Cv()); + }), + kg.apply(e, arguments) + ); + } + function Sv() { + var e = nm(wv()).domain([0.1, 1, 10]); + return ( + (e.copy = function () { + return pv(e, Sv()).base(e.base()); + }), + kg.apply(e, arguments) + ); + } + function xv() { + var e = sm(wv()); + return ( + (e.copy = function () { + return pv(e, xv()).constant(e.constant()); + }), + kg.apply(e, arguments) + ); + } + function Lv() { + var e = dm(wv()); + return ( + (e.copy = function () { + return pv(e, Lv()).exponent(e.exponent()); + }), + kg.apply(e, arguments) + ); + } + function kv() { + return Lv.apply(null, arguments).exponent(0.5); + } + var Mv = function (e) { + for (var t = (e.length / 6) | 0, n = new Array(t), r = 0; r < t; ) + n[r] = '#' + e.slice(6 * r, 6 * ++r); + return n; + }, + Dv = Mv('1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf'), + Ev = Mv('7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666'), + Tv = Mv('1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666'), + Nv = Mv( + 'a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928' + ), + Ov = Mv('fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2'), + Av = Mv('b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc'), + Iv = Mv('e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999'), + Pv = Mv('66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3'), + Rv = Mv( + '8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f' + ), + Fv = Mv('4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab'), + Yv = function (e) { + return bn(e[e.length - 1]); + }, + jv = new Array(3) + .concat( + 'd8b365f5f5f55ab4ac', + 'a6611adfc27d80cdc1018571', + 'a6611adfc27df5f5f580cdc1018571', + '8c510ad8b365f6e8c3c7eae55ab4ac01665e', + '8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e', + '8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e', + '8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e', + '5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30', + '5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30' + ) + .map(Mv), + Bv = Yv(jv), + Wv = new Array(3) + .concat( + 'af8dc3f7f7f77fbf7b', + '7b3294c2a5cfa6dba0008837', + '7b3294c2a5cff7f7f7a6dba0008837', + '762a83af8dc3e7d4e8d9f0d37fbf7b1b7837', + '762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837', + '762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837', + '762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837', + '40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b', + '40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b' + ) + .map(Mv), + Hv = Yv(Wv), + Vv = new Array(3) + .concat( + 'e9a3c9f7f7f7a1d76a', + 'd01c8bf1b6dab8e1864dac26', + 'd01c8bf1b6daf7f7f7b8e1864dac26', + 'c51b7de9a3c9fde0efe6f5d0a1d76a4d9221', + 'c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221', + 'c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221', + 'c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221', + '8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419', + '8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419' + ) + .map(Mv), + zv = Yv(Vv), + Uv = new Array(3) + .concat( + '998ec3f7f7f7f1a340', + '5e3c99b2abd2fdb863e66101', + '5e3c99b2abd2f7f7f7fdb863e66101', + '542788998ec3d8daebfee0b6f1a340b35806', + '542788998ec3d8daebf7f7f7fee0b6f1a340b35806', + '5427888073acb2abd2d8daebfee0b6fdb863e08214b35806', + '5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806', + '2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08', + '2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08' + ) + .map(Mv), + qv = Yv(Uv), + Kv = new Array(3) + .concat( + 'ef8a62f7f7f767a9cf', + 'ca0020f4a58292c5de0571b0', + 'ca0020f4a582f7f7f792c5de0571b0', + 'b2182bef8a62fddbc7d1e5f067a9cf2166ac', + 'b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac', + 'b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac', + 'b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac', + '67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061', + '67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061' + ) + .map(Mv), + Gv = Yv(Kv), + $v = new Array(3) + .concat( + 'ef8a62ffffff999999', + 'ca0020f4a582bababa404040', + 'ca0020f4a582ffffffbababa404040', + 'b2182bef8a62fddbc7e0e0e09999994d4d4d', + 'b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d', + 'b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d', + 'b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d', + '67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a', + '67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a' + ) + .map(Mv), + Zv = Yv($v), + Xv = new Array(3) + .concat( + 'fc8d59ffffbf91bfdb', + 'd7191cfdae61abd9e92c7bb6', + 'd7191cfdae61ffffbfabd9e92c7bb6', + 'd73027fc8d59fee090e0f3f891bfdb4575b4', + 'd73027fc8d59fee090ffffbfe0f3f891bfdb4575b4', + 'd73027f46d43fdae61fee090e0f3f8abd9e974add14575b4', + 'd73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4', + 'a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695', + 'a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695' + ) + .map(Mv), + Jv = Yv(Xv), + Qv = new Array(3) + .concat( + 'fc8d59ffffbf91cf60', + 'd7191cfdae61a6d96a1a9641', + 'd7191cfdae61ffffbfa6d96a1a9641', + 'd73027fc8d59fee08bd9ef8b91cf601a9850', + 'd73027fc8d59fee08bffffbfd9ef8b91cf601a9850', + 'd73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850', + 'd73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850', + 'a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837', + 'a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837' + ) + .map(Mv), + eb = Yv(Qv), + tb = new Array(3) + .concat( + 'fc8d59ffffbf99d594', + 'd7191cfdae61abdda42b83ba', + 'd7191cfdae61ffffbfabdda42b83ba', + 'd53e4ffc8d59fee08be6f59899d5943288bd', + 'd53e4ffc8d59fee08bffffbfe6f59899d5943288bd', + 'd53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd', + 'd53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd', + '9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2', + '9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2' + ) + .map(Mv), + nb = Yv(tb), + rb = new Array(3) + .concat( + 'e5f5f999d8c92ca25f', + 'edf8fbb2e2e266c2a4238b45', + 'edf8fbb2e2e266c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a42ca25f006d2c', + 'edf8fbccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824', + 'f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b' + ) + .map(Mv), + ib = Yv(rb), + ob = new Array(3) + .concat( + 'e0ecf49ebcda8856a7', + 'edf8fbb3cde38c96c688419d', + 'edf8fbb3cde38c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68856a7810f7c', + 'edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b', + 'f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b' + ) + .map(Mv), + sb = Yv(ob), + ab = new Array(3) + .concat( + 'e0f3dba8ddb543a2ca', + 'f0f9e8bae4bc7bccc42b8cbe', + 'f0f9e8bae4bc7bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc443a2ca0868ac', + 'f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e', + 'f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081' + ) + .map(Mv), + ub = Yv(ab), + lb = new Array(3) + .concat( + 'fee8c8fdbb84e34a33', + 'fef0d9fdcc8afc8d59d7301f', + 'fef0d9fdcc8afc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59e34a33b30000', + 'fef0d9fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000', + 'fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000' + ) + .map(Mv), + cb = Yv(lb), + db = new Array(3) + .concat( + 'ece2f0a6bddb1c9099', + 'f6eff7bdc9e167a9cf02818a', + 'f6eff7bdc9e167a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf1c9099016c59', + 'f6eff7d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450', + 'fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636' + ) + .map(Mv), + hb = Yv(db), + fb = new Array(3) + .concat( + 'ece7f2a6bddb2b8cbe', + 'f1eef6bdc9e174a9cf0570b0', + 'f1eef6bdc9e174a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d', + 'f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b', + 'fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858' + ) + .map(Mv), + pb = Yv(fb), + gb = new Array(3) + .concat( + 'e7e1efc994c7dd1c77', + 'f1eef6d7b5d8df65b0ce1256', + 'f1eef6d7b5d8df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0dd1c77980043', + 'f1eef6d4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f', + 'f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f' + ) + .map(Mv), + mb = Yv(gb), + _b = new Array(3) + .concat( + 'fde0ddfa9fb5c51b8a', + 'feebe2fbb4b9f768a1ae017e', + 'feebe2fbb4b9f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1c51b8a7a0177', + 'feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177', + 'fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a' + ) + .map(Mv), + yb = Yv(_b), + vb = new Array(3) + .concat( + 'edf8b17fcdbb2c7fb8', + 'ffffcca1dab441b6c4225ea8', + 'ffffcca1dab441b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c42c7fb8253494', + 'ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84', + 'ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58' + ) + .map(Mv), + bb = Yv(vb), + wb = new Array(3) + .concat( + 'f7fcb9addd8e31a354', + 'ffffccc2e69978c679238443', + 'ffffccc2e69978c67931a354006837', + 'ffffccd9f0a3addd8e78c67931a354006837', + 'ffffccd9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32', + 'ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529' + ) + .map(Mv), + Cb = Yv(wb), + Sb = new Array(3) + .concat( + 'fff7bcfec44fd95f0e', + 'ffffd4fed98efe9929cc4c02', + 'ffffd4fed98efe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929d95f0e993404', + 'ffffd4fee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04', + 'ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506' + ) + .map(Mv), + xb = Yv(Sb), + Lb = new Array(3) + .concat( + 'ffeda0feb24cf03b20', + 'ffffb2fecc5cfd8d3ce31a1c', + 'ffffb2fecc5cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cf03b20bd0026', + 'ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026', + 'ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026' + ) + .map(Mv), + kb = Yv(Lb), + Mb = new Array(3) + .concat( + 'deebf79ecae13182bd', + 'eff3ffbdd7e76baed62171b5', + 'eff3ffbdd7e76baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed63182bd08519c', + 'eff3ffc6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594', + 'f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b' + ) + .map(Mv), + Db = Yv(Mb), + Eb = new Array(3) + .concat( + 'e5f5e0a1d99b31a354', + 'edf8e9bae4b374c476238b45', + 'edf8e9bae4b374c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47631a354006d2c', + 'edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32', + 'f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b' + ) + .map(Mv), + Tb = Yv(Eb), + Nb = new Array(3) + .concat( + 'f0f0f0bdbdbd636363', + 'f7f7f7cccccc969696525252', + 'f7f7f7cccccc969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696636363252525', + 'f7f7f7d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525', + 'fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000' + ) + .map(Mv), + Ob = Yv(Nb), + Ab = new Array(3) + .concat( + 'efedf5bcbddc756bb1', + 'f2f0f7cbc9e29e9ac86a51a3', + 'f2f0f7cbc9e29e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8756bb154278f', + 'f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486', + 'fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d' + ) + .map(Mv), + Ib = Yv(Ab), + Pb = new Array(3) + .concat( + 'fee0d2fc9272de2d26', + 'fee5d9fcae91fb6a4acb181d', + 'fee5d9fcae91fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4ade2d26a50f15', + 'fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d', + 'fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d' + ) + .map(Mv), + Rb = Yv(Pb), + Fb = new Array(3) + .concat( + 'fee6cefdae6be6550d', + 'feeddefdbe85fd8d3cd94701', + 'feeddefdbe85fd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3ce6550da63603', + 'feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04', + 'fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704' + ) + .map(Mv), + Yb = Yv(Fb), + jb = function (e) { + return ( + (e = Math.max(0, Math.min(1, e))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + -4.54 - + e * + (35.34 - + e * + (2381.73 - + e * (6402.7 - e * (7024.72 - 2710.57 * e)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 32.49 + + e * + (170.73 + + e * (52.82 - e * (131.46 - e * (176.58 - 67.37 * e)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 81.24 + + e * + (442.36 - + e * + (2482.43 - + e * (6167.24 - e * (6614.94 - 2475.67 * e)))) + ) + ) + ) + + ')' + ); + }, + Bb = ag(Ko(300, 0.5, 0), Ko(-240, 0.5, 1)), + Wb = ag(Ko(-100, 0.75, 0.35), Ko(80, 1.5, 0.8)), + Hb = ag(Ko(260, 0.75, 0.35), Ko(80, 1.5, 0.8)), + Vb = Ko(), + zb = function (e) { + (e < 0 || e > 1) && (e -= Math.floor(e)); + var t = Math.abs(e - 0.5); + return ( + (Vb.h = 360 * e - 100), + (Vb.s = 1.5 - 1.5 * t), + (Vb.l = 0.8 - 0.9 * t), + Vb + '' + ); + }, + Ub = Qt(), + qb = Math.PI / 3, + Kb = (2 * Math.PI) / 3, + Gb = function (e) { + var t; + return ( + (e = (0.5 - e) * Math.PI), + (Ub.r = 255 * (t = Math.sin(e)) * t), + (Ub.g = 255 * (t = Math.sin(e + qb)) * t), + (Ub.b = 255 * (t = Math.sin(e + Kb)) * t), + Ub + '' + ); + }, + $b = function (e) { + return ( + (e = Math.max(0, Math.min(1, e))), + 'rgb(' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 34.61 + + e * + (1172.33 - + e * + (10793.56 - + e * (33300.12 - e * (38394.49 - 14825.05 * e)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 23.31 + + e * + (557.33 + + e * + (1225.33 - + e * (3574.96 - e * (1073.77 + 707.56 * e)))) + ) + ) + ) + + ', ' + + Math.max( + 0, + Math.min( + 255, + Math.round( + 27.2 + + e * + (3211.1 - + e * + (15327.97 - + e * (27814 - e * (22569.18 - 6838.66 * e)))) + ) + ) + ) + + ')' + ); + }; + function Zb(e) { + var t = e.length; + return function (n) { + return e[Math.max(0, Math.min(t - 1, Math.floor(n * t)))]; + }; + } + var Xb = Zb( + Mv( + '44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725' + ) + ), + Jb = Zb( + Mv( + '00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf' + ) + ), + Qb = Zb( + Mv( + '00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4' + ) + ), + ew = Zb( + Mv( + '0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921' + ) + ), + tw = function (e) { + return Dt(ut(e).call(document.documentElement)); + }, + nw = 0; + function rw() { + return new iw(); + } + function iw() { + this._ = '@' + (++nw).toString(36); + } + iw.prototype = rw.prototype = { + constructor: iw, + get: function (e) { + for (var t = this._; !(t in e); ) if (!(e = e.parentNode)) return; + return e[t]; + }, + set: function (e, t) { + return (e[this._] = t); + }, + remove: function (e) { + return this._ in e && delete e[this._]; + }, + toString: function () { + return this._; + }, + }; + var ow = function (e) { + return 'string' == typeof e + ? new Lt([document.querySelectorAll(e)], [document.documentElement]) + : new Lt([null == e ? [] : e], xt); + }, + sw = function (e, t) { + null == t && (t = Pn().touches); + for (var n = 0, r = t ? t.length : 0, i = new Array(r); n < r; ++n) + i[n] = Rn(e, t[n]); + return i; + }, + aw = function (e) { + return function () { + return e; + }; + }, + uw = Math.abs, + lw = Math.atan2, + cw = Math.cos, + dw = Math.max, + hw = Math.min, + fw = Math.sin, + pw = Math.sqrt, + gw = 1e-12, + mw = Math.PI, + _w = mw / 2, + yw = 2 * mw; + function vw(e) { + return e >= 1 ? _w : e <= -1 ? -_w : Math.asin(e); + } + function bw(e) { + return e.innerRadius; + } + function ww(e) { + return e.outerRadius; + } + function Cw(e) { + return e.startAngle; + } + function Sw(e) { + return e.endAngle; + } + function xw(e) { + return e && e.padAngle; + } + function Lw(e, t, n, r, i, o, s) { + var a = e - n, + u = t - r, + l = (s ? o : -o) / pw(a * a + u * u), + c = l * u, + d = -l * a, + h = e + c, + f = t + d, + p = n + c, + g = r + d, + m = (h + p) / 2, + _ = (f + g) / 2, + y = p - h, + v = g - f, + b = y * y + v * v, + w = i - o, + C = h * g - p * f, + S = (v < 0 ? -1 : 1) * pw(dw(0, w * w * b - C * C)), + x = (C * v - y * S) / b, + L = (-C * y - v * S) / b, + k = (C * v + y * S) / b, + M = (-C * y + v * S) / b, + D = x - m, + E = L - _, + T = k - m, + N = M - _; + return ( + D * D + E * E > T * T + N * N && ((x = k), (L = M)), + { + cx: x, + cy: L, + x01: -c, + y01: -d, + x11: x * (i / w - 1), + y11: L * (i / w - 1), + } + ); + } + var kw = function () { + var e = bw, + t = ww, + n = aw(0), + r = null, + i = Cw, + o = Sw, + s = xw, + a = null; + function u() { + var u, + l, + c, + d = +e.apply(this, arguments), + h = +t.apply(this, arguments), + f = i.apply(this, arguments) - _w, + p = o.apply(this, arguments) - _w, + g = uw(p - f), + m = p > f; + if ((a || (a = u = Zi()), h < d && ((l = h), (h = d), (d = l)), h > gw)) + if (g > yw - gw) + a.moveTo(h * cw(f), h * fw(f)), + a.arc(0, 0, h, f, p, !m), + d > gw && + (a.moveTo(d * cw(p), d * fw(p)), a.arc(0, 0, d, p, f, m)); + else { + var _, + y, + v = f, + b = p, + w = f, + C = p, + S = g, + x = g, + L = s.apply(this, arguments) / 2, + k = L > gw && (r ? +r.apply(this, arguments) : pw(d * d + h * h)), + M = hw(uw(h - d) / 2, +n.apply(this, arguments)), + D = M, + E = M; + if (k > gw) { + var T = vw((k / d) * fw(L)), + N = vw((k / h) * fw(L)); + (S -= 2 * T) > gw + ? ((w += T *= m ? 1 : -1), (C -= T)) + : ((S = 0), (w = C = (f + p) / 2)), + (x -= 2 * N) > gw + ? ((v += N *= m ? 1 : -1), (b -= N)) + : ((x = 0), (v = b = (f + p) / 2)); + } + var O = h * cw(v), + A = h * fw(v), + I = d * cw(C), + P = d * fw(C); + if (M > gw) { + var R, + F = h * cw(b), + Y = h * fw(b), + j = d * cw(w), + B = d * fw(w); + if ( + g < mw && + (R = (function (e, t, n, r, i, o, s, a) { + var u = n - e, + l = r - t, + c = s - i, + d = a - o, + h = d * u - c * l; + if (!(h * h < gw)) + return [ + e + (h = (c * (t - o) - d * (e - i)) / h) * u, + t + h * l, + ]; + })(O, A, j, B, F, Y, I, P)) + ) { + var W = O - R[0], + H = A - R[1], + V = F - R[0], + z = Y - R[1], + U = + 1 / + fw( + ((c = + (W * V + H * z) / + (pw(W * W + H * H) * pw(V * V + z * z))) > 1 + ? 0 + : c < -1 + ? mw + : Math.acos(c)) / 2 + ), + q = pw(R[0] * R[0] + R[1] * R[1]); + (D = hw(M, (d - q) / (U - 1))), (E = hw(M, (h - q) / (U + 1))); + } + } + x > gw + ? E > gw + ? ((_ = Lw(j, B, O, A, h, E, m)), + (y = Lw(F, Y, I, P, h, E, m)), + a.moveTo(_.cx + _.x01, _.cy + _.y01), + E < M + ? a.arc( + _.cx, + _.cy, + E, + lw(_.y01, _.x01), + lw(y.y01, y.x01), + !m + ) + : (a.arc( + _.cx, + _.cy, + E, + lw(_.y01, _.x01), + lw(_.y11, _.x11), + !m + ), + a.arc( + 0, + 0, + h, + lw(_.cy + _.y11, _.cx + _.x11), + lw(y.cy + y.y11, y.cx + y.x11), + !m + ), + a.arc( + y.cx, + y.cy, + E, + lw(y.y11, y.x11), + lw(y.y01, y.x01), + !m + ))) + : (a.moveTo(O, A), a.arc(0, 0, h, v, b, !m)) + : a.moveTo(O, A), + d > gw && S > gw + ? D > gw + ? ((_ = Lw(I, P, F, Y, d, -D, m)), + (y = Lw(O, A, j, B, d, -D, m)), + a.lineTo(_.cx + _.x01, _.cy + _.y01), + D < M + ? a.arc( + _.cx, + _.cy, + D, + lw(_.y01, _.x01), + lw(y.y01, y.x01), + !m + ) + : (a.arc( + _.cx, + _.cy, + D, + lw(_.y01, _.x01), + lw(_.y11, _.x11), + !m + ), + a.arc( + 0, + 0, + d, + lw(_.cy + _.y11, _.cx + _.x11), + lw(y.cy + y.y11, y.cx + y.x11), + m + ), + a.arc( + y.cx, + y.cy, + D, + lw(y.y11, y.x11), + lw(y.y01, y.x01), + !m + ))) + : a.arc(0, 0, d, C, w, m) + : a.lineTo(I, P); + } + else a.moveTo(0, 0); + if ((a.closePath(), u)) return (a = null), u + '' || null; + } + return ( + (u.centroid = function () { + var n = (+e.apply(this, arguments) + +t.apply(this, arguments)) / 2, + r = + (+i.apply(this, arguments) + +o.apply(this, arguments)) / 2 - + mw / 2; + return [cw(r) * n, fw(r) * n]; + }), + (u.innerRadius = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(+t)), u) + : e; + }), + (u.outerRadius = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : aw(+e)), u) + : t; + }), + (u.cornerRadius = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : aw(+e)), u) + : n; + }), + (u.padRadius = function (e) { + return arguments.length + ? ((r = null == e ? null : 'function' == typeof e ? e : aw(+e)), u) + : r; + }), + (u.startAngle = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : aw(+e)), u) + : i; + }), + (u.endAngle = function (e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : aw(+e)), u) + : o; + }), + (u.padAngle = function (e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : aw(+e)), u) + : s; + }), + (u.context = function (e) { + return arguments.length ? ((a = null == e ? null : e), u) : a; + }), + u + ); + }; + function Mw(e) { + this._context = e; + } + Mw.prototype = { + areaStart: function () { + this._line = 0; + }, + areaEnd: function () { + this._line = NaN; + }, + lineStart: function () { + this._point = 0; + }, + lineEnd: function () { + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + this._point = 2; + default: + this._context.lineTo(e, t); + } + }, + }; + var Dw = function (e) { + return new Mw(e); + }; + function Ew(e) { + return e[0]; + } + function Tw(e) { + return e[1]; + } + var Nw = function () { + var e = Ew, + t = Tw, + n = aw(!0), + r = null, + i = Dw, + o = null; + function s(s) { + var a, + u, + l, + c = s.length, + d = !1; + for (null == r && (o = i((l = Zi()))), a = 0; a <= c; ++a) + !(a < c && n((u = s[a]), a, s)) === d && + ((d = !d) ? o.lineStart() : o.lineEnd()), + d && o.point(+e(u, a, s), +t(u, a, s)); + if (l) return (o = null), l + '' || null; + } + return ( + (s.x = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(+t)), s) + : e; + }), + (s.y = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : aw(+e)), s) + : t; + }), + (s.defined = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : aw(!!e)), s) + : n; + }), + (s.curve = function (e) { + return arguments.length ? ((i = e), null != r && (o = i(r)), s) : i; + }), + (s.context = function (e) { + return arguments.length + ? (null == e ? (r = o = null) : (o = i((r = e))), s) + : r; + }), + s + ); + }, + Ow = function () { + var e = Ew, + t = null, + n = aw(0), + r = Tw, + i = aw(!0), + o = null, + s = Dw, + a = null; + function u(u) { + var l, + c, + d, + h, + f, + p = u.length, + g = !1, + m = new Array(p), + _ = new Array(p); + for (null == o && (a = s((f = Zi()))), l = 0; l <= p; ++l) { + if (!(l < p && i((h = u[l]), l, u)) === g) + if ((g = !g)) (c = l), a.areaStart(), a.lineStart(); + else { + for (a.lineEnd(), a.lineStart(), d = l - 1; d >= c; --d) + a.point(m[d], _[d]); + a.lineEnd(), a.areaEnd(); + } + g && + ((m[l] = +e(h, l, u)), + (_[l] = +n(h, l, u)), + a.point(t ? +t(h, l, u) : m[l], r ? +r(h, l, u) : _[l])); + } + if (f) return (a = null), f + '' || null; + } + function l() { + return Nw().defined(i).curve(s).context(o); + } + return ( + (u.x = function (n) { + return arguments.length + ? ((e = 'function' == typeof n ? n : aw(+n)), (t = null), u) + : e; + }), + (u.x0 = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(+t)), u) + : e; + }), + (u.x1 = function (e) { + return arguments.length + ? ((t = null == e ? null : 'function' == typeof e ? e : aw(+e)), + u) + : t; + }), + (u.y = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : aw(+e)), (r = null), u) + : n; + }), + (u.y0 = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : aw(+e)), u) + : n; + }), + (u.y1 = function (e) { + return arguments.length + ? ((r = null == e ? null : 'function' == typeof e ? e : aw(+e)), + u) + : r; + }), + (u.lineX0 = u.lineY0 = function () { + return l().x(e).y(n); + }), + (u.lineY1 = function () { + return l().x(e).y(r); + }), + (u.lineX1 = function () { + return l().x(t).y(n); + }), + (u.defined = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : aw(!!e)), u) + : i; + }), + (u.curve = function (e) { + return arguments.length ? ((s = e), null != o && (a = s(o)), u) : s; + }), + (u.context = function (e) { + return arguments.length + ? (null == e ? (o = a = null) : (a = s((o = e))), u) + : o; + }), + u + ); + }, + Aw = function (e, t) { + return t < e ? -1 : t > e ? 1 : t >= e ? 0 : NaN; + }, + Iw = function (e) { + return e; + }, + Pw = function () { + var e = Iw, + t = Aw, + n = null, + r = aw(0), + i = aw(yw), + o = aw(0); + function s(s) { + var a, + u, + l, + c, + d, + h = s.length, + f = 0, + p = new Array(h), + g = new Array(h), + m = +r.apply(this, arguments), + _ = Math.min(yw, Math.max(-yw, i.apply(this, arguments) - m)), + y = Math.min(Math.abs(_) / h, o.apply(this, arguments)), + v = y * (_ < 0 ? -1 : 1); + for (a = 0; a < h; ++a) + (d = g[(p[a] = a)] = +e(s[a], a, s)) > 0 && (f += d); + for ( + null != t + ? p.sort(function (e, n) { + return t(g[e], g[n]); + }) + : null != n && + p.sort(function (e, t) { + return n(s[e], s[t]); + }), + a = 0, + l = f ? (_ - h * v) / f : 0; + a < h; + ++a, m = c + ) + (u = p[a]), + (c = m + ((d = g[u]) > 0 ? d * l : 0) + v), + (g[u] = { + data: s[u], + index: a, + value: d, + startAngle: m, + endAngle: c, + padAngle: y, + }); + return g; + } + return ( + (s.value = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(+t)), s) + : e; + }), + (s.sortValues = function (e) { + return arguments.length ? ((t = e), (n = null), s) : t; + }), + (s.sort = function (e) { + return arguments.length ? ((n = e), (t = null), s) : n; + }), + (s.startAngle = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : aw(+e)), s) + : r; + }), + (s.endAngle = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : aw(+e)), s) + : i; + }), + (s.padAngle = function (e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : aw(+e)), s) + : o; + }), + s + ); + }, + Rw = Yw(Dw); + function Fw(e) { + this._curve = e; + } + function Yw(e) { + function t(t) { + return new Fw(e(t)); + } + return (t._curve = e), t; + } + function jw(e) { + var t = e.curve; + return ( + (e.angle = e.x), + delete e.x, + (e.radius = e.y), + delete e.y, + (e.curve = function (e) { + return arguments.length ? t(Yw(e)) : t()._curve; + }), + e + ); + } + Fw.prototype = { + areaStart: function () { + this._curve.areaStart(); + }, + areaEnd: function () { + this._curve.areaEnd(); + }, + lineStart: function () { + this._curve.lineStart(); + }, + lineEnd: function () { + this._curve.lineEnd(); + }, + point: function (e, t) { + this._curve.point(t * Math.sin(e), t * -Math.cos(e)); + }, + }; + var Bw = function () { + return jw(Nw().curve(Rw)); + }, + Ww = function () { + var e = Ow().curve(Rw), + t = e.curve, + n = e.lineX0, + r = e.lineX1, + i = e.lineY0, + o = e.lineY1; + return ( + (e.angle = e.x), + delete e.x, + (e.startAngle = e.x0), + delete e.x0, + (e.endAngle = e.x1), + delete e.x1, + (e.radius = e.y), + delete e.y, + (e.innerRadius = e.y0), + delete e.y0, + (e.outerRadius = e.y1), + delete e.y1, + (e.lineStartAngle = function () { + return jw(n()); + }), + delete e.lineX0, + (e.lineEndAngle = function () { + return jw(r()); + }), + delete e.lineX1, + (e.lineInnerRadius = function () { + return jw(i()); + }), + delete e.lineY0, + (e.lineOuterRadius = function () { + return jw(o()); + }), + delete e.lineY1, + (e.curve = function (e) { + return arguments.length ? t(Yw(e)) : t()._curve; + }), + e + ); + }, + Hw = function (e, t) { + return [(t = +t) * Math.cos((e -= Math.PI / 2)), t * Math.sin(e)]; + }, + Vw = Array.prototype.slice; + function zw(e) { + return e.source; + } + function Uw(e) { + return e.target; + } + function qw(e) { + var t = zw, + n = Uw, + r = Ew, + i = Tw, + o = null; + function s() { + var s, + a = Vw.call(arguments), + u = t.apply(this, a), + l = n.apply(this, a); + if ( + (o || (o = s = Zi()), + e( + o, + +r.apply(this, ((a[0] = u), a)), + +i.apply(this, a), + +r.apply(this, ((a[0] = l), a)), + +i.apply(this, a) + ), + s) + ) + return (o = null), s + '' || null; + } + return ( + (s.source = function (e) { + return arguments.length ? ((t = e), s) : t; + }), + (s.target = function (e) { + return arguments.length ? ((n = e), s) : n; + }), + (s.x = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : aw(+e)), s) + : r; + }), + (s.y = function (e) { + return arguments.length + ? ((i = 'function' == typeof e ? e : aw(+e)), s) + : i; + }), + (s.context = function (e) { + return arguments.length ? ((o = null == e ? null : e), s) : o; + }), + s + ); + } + function Kw(e, t, n, r, i) { + e.moveTo(t, n), e.bezierCurveTo((t = (t + r) / 2), n, t, i, r, i); + } + function Gw(e, t, n, r, i) { + e.moveTo(t, n), e.bezierCurveTo(t, (n = (n + i) / 2), r, n, r, i); + } + function $w(e, t, n, r, i) { + var o = Hw(t, n), + s = Hw(t, (n = (n + i) / 2)), + a = Hw(r, n), + u = Hw(r, i); + e.moveTo(o[0], o[1]), e.bezierCurveTo(s[0], s[1], a[0], a[1], u[0], u[1]); + } + function Zw() { + return qw(Kw); + } + function Xw() { + return qw(Gw); + } + function Jw() { + var e = qw($w); + return (e.angle = e.x), delete e.x, (e.radius = e.y), delete e.y, e; + } + var Qw = { + draw: function (e, t) { + var n = Math.sqrt(t / mw); + e.moveTo(n, 0), e.arc(0, 0, n, 0, yw); + }, + }, + eC = { + draw: function (e, t) { + var n = Math.sqrt(t / 5) / 2; + e.moveTo(-3 * n, -n), + e.lineTo(-n, -n), + e.lineTo(-n, -3 * n), + e.lineTo(n, -3 * n), + e.lineTo(n, -n), + e.lineTo(3 * n, -n), + e.lineTo(3 * n, n), + e.lineTo(n, n), + e.lineTo(n, 3 * n), + e.lineTo(-n, 3 * n), + e.lineTo(-n, n), + e.lineTo(-3 * n, n), + e.closePath(); + }, + }, + tC = Math.sqrt(1 / 3), + nC = 2 * tC, + rC = { + draw: function (e, t) { + var n = Math.sqrt(t / nC), + r = n * tC; + e.moveTo(0, -n), + e.lineTo(r, 0), + e.lineTo(0, n), + e.lineTo(-r, 0), + e.closePath(); + }, + }, + iC = Math.sin(mw / 10) / Math.sin((7 * mw) / 10), + oC = Math.sin(yw / 10) * iC, + sC = -Math.cos(yw / 10) * iC, + aC = { + draw: function (e, t) { + var n = Math.sqrt(0.8908130915292852 * t), + r = oC * n, + i = sC * n; + e.moveTo(0, -n), e.lineTo(r, i); + for (var o = 1; o < 5; ++o) { + var s = (yw * o) / 5, + a = Math.cos(s), + u = Math.sin(s); + e.lineTo(u * n, -a * n), e.lineTo(a * r - u * i, u * r + a * i); + } + e.closePath(); + }, + }, + uC = { + draw: function (e, t) { + var n = Math.sqrt(t), + r = -n / 2; + e.rect(r, r, n, n); + }, + }, + lC = Math.sqrt(3), + cC = { + draw: function (e, t) { + var n = -Math.sqrt(t / (3 * lC)); + e.moveTo(0, 2 * n), + e.lineTo(-lC * n, -n), + e.lineTo(lC * n, -n), + e.closePath(); + }, + }, + dC = Math.sqrt(3) / 2, + hC = 1 / Math.sqrt(12), + fC = 3 * (hC / 2 + 1), + pC = { + draw: function (e, t) { + var n = Math.sqrt(t / fC), + r = n / 2, + i = n * hC, + o = r, + s = n * hC + n, + a = -o, + u = s; + e.moveTo(r, i), + e.lineTo(o, s), + e.lineTo(a, u), + e.lineTo(-0.5 * r - dC * i, dC * r + -0.5 * i), + e.lineTo(-0.5 * o - dC * s, dC * o + -0.5 * s), + e.lineTo(-0.5 * a - dC * u, dC * a + -0.5 * u), + e.lineTo(-0.5 * r + dC * i, -0.5 * i - dC * r), + e.lineTo(-0.5 * o + dC * s, -0.5 * s - dC * o), + e.lineTo(-0.5 * a + dC * u, -0.5 * u - dC * a), + e.closePath(); + }, + }, + gC = [Qw, eC, rC, uC, aC, cC, pC], + mC = function () { + var e = aw(Qw), + t = aw(64), + n = null; + function r() { + var r; + if ( + (n || (n = r = Zi()), + e.apply(this, arguments).draw(n, +t.apply(this, arguments)), + r) + ) + return (n = null), r + '' || null; + } + return ( + (r.type = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(t)), r) + : e; + }), + (r.size = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : aw(+e)), r) + : t; + }), + (r.context = function (e) { + return arguments.length ? ((n = null == e ? null : e), r) : n; + }), + r + ); + }, + _C = function () {}; + function yC(e, t, n) { + e._context.bezierCurveTo( + (2 * e._x0 + e._x1) / 3, + (2 * e._y0 + e._y1) / 3, + (e._x0 + 2 * e._x1) / 3, + (e._y0 + 2 * e._y1) / 3, + (e._x0 + 4 * e._x1 + t) / 6, + (e._y0 + 4 * e._y1 + n) / 6 + ); + } + function vC(e) { + this._context = e; + } + vC.prototype = { + areaStart: function () { + this._line = 0; + }, + areaEnd: function () { + this._line = NaN; + }, + lineStart: function () { + (this._x0 = this._x1 = this._y0 = this._y1 = NaN), (this._point = 0); + }, + lineEnd: function () { + switch (this._point) { + case 3: + yC(this, this._x1, this._y1); + case 2: + this._context.lineTo(this._x1, this._y1); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + this._point = 2; + break; + case 2: + (this._point = 3), + this._context.lineTo( + (5 * this._x0 + this._x1) / 6, + (5 * this._y0 + this._y1) / 6 + ); + default: + yC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); + }, + }; + var bC = function (e) { + return new vC(e); + }; + function wC(e) { + this._context = e; + } + wC.prototype = { + areaStart: _C, + areaEnd: _C, + lineStart: function () { + (this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN), + (this._point = 0); + }, + lineEnd: function () { + switch (this._point) { + case 1: + this._context.moveTo(this._x2, this._y2), this._context.closePath(); + break; + case 2: + this._context.moveTo( + (this._x2 + 2 * this._x3) / 3, + (this._y2 + 2 * this._y3) / 3 + ), + this._context.lineTo( + (this._x3 + 2 * this._x2) / 3, + (this._y3 + 2 * this._y2) / 3 + ), + this._context.closePath(); + break; + case 3: + this.point(this._x2, this._y2), + this.point(this._x3, this._y3), + this.point(this._x4, this._y4); + } + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), (this._x2 = e), (this._y2 = t); + break; + case 1: + (this._point = 2), (this._x3 = e), (this._y3 = t); + break; + case 2: + (this._point = 3), + (this._x4 = e), + (this._y4 = t), + this._context.moveTo( + (this._x0 + 4 * this._x1 + e) / 6, + (this._y0 + 4 * this._y1 + t) / 6 + ); + break; + default: + yC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); + }, + }; + var CC = function (e) { + return new wC(e); + }; + function SC(e) { + this._context = e; + } + SC.prototype = { + areaStart: function () { + this._line = 0; + }, + areaEnd: function () { + this._line = NaN; + }, + lineStart: function () { + (this._x0 = this._x1 = this._y0 = this._y1 = NaN), (this._point = 0); + }, + lineEnd: function () { + (this._line || (0 !== this._line && 3 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + this._point = 1; + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + var n = (this._x0 + 4 * this._x1 + e) / 6, + r = (this._y0 + 4 * this._y1 + t) / 6; + this._line + ? this._context.lineTo(n, r) + : this._context.moveTo(n, r); + break; + case 3: + this._point = 4; + default: + yC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t); + }, + }; + var xC = function (e) { + return new SC(e); + }; + function LC(e, t) { + (this._basis = new vC(e)), (this._beta = t); + } + LC.prototype = { + lineStart: function () { + (this._x = []), (this._y = []), this._basis.lineStart(); + }, + lineEnd: function () { + var e = this._x, + t = this._y, + n = e.length - 1; + if (n > 0) + for ( + var r, i = e[0], o = t[0], s = e[n] - i, a = t[n] - o, u = -1; + ++u <= n; + + ) + (r = u / n), + this._basis.point( + this._beta * e[u] + (1 - this._beta) * (i + r * s), + this._beta * t[u] + (1 - this._beta) * (o + r * a) + ); + (this._x = this._y = null), this._basis.lineEnd(); + }, + point: function (e, t) { + this._x.push(+e), this._y.push(+t); + }, + }; + var kC = (function e(t) { + function n(e) { + return 1 === t ? new vC(e) : new LC(e, t); + } + return ( + (n.beta = function (t) { + return e(+t); + }), + n + ); + })(0.85); + function MC(e, t, n) { + e._context.bezierCurveTo( + e._x1 + e._k * (e._x2 - e._x0), + e._y1 + e._k * (e._y2 - e._y0), + e._x2 + e._k * (e._x1 - t), + e._y2 + e._k * (e._y1 - n), + e._x2, + e._y2 + ); + } + function DC(e, t) { + (this._context = e), (this._k = (1 - t) / 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 () { + switch (this._point) { + case 2: + this._context.lineTo(this._x2, this._y2); + break; + case 3: + MC(this, this._x1, this._y1); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + (this._point = 2), (this._x1 = e), (this._y1 = t); + break; + case 2: + this._point = 3; + default: + MC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var EC = (function e(t) { + function n(e) { + return new DC(e, t); + } + return ( + (n.tension = function (t) { + return e(+t); + }), + n + ); + })(0); + function TC(e, t) { + (this._context = e), (this._k = (1 - t) / 6); + } + TC.prototype = { + areaStart: _C, + areaEnd: _C, + 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); + } + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), (this._x3 = e), (this._y3 = t); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = e), (this._y4 = t)); + break; + case 2: + (this._point = 3), (this._x5 = e), (this._y5 = t); + break; + default: + MC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var NC = (function e(t) { + function n(e) { + return new TC(e, t); + } + return ( + (n.tension = function (t) { + return e(+t); + }), + n + ); + })(0); + function OC(e, t) { + (this._context = e), (this._k = (1 - t) / 6); + } + 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._point = 0); + }, + lineEnd: function () { + (this._line || (0 !== this._line && 3 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), 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: + MC(this, e, t); + } + (this._x0 = this._x1), + (this._x1 = this._x2), + (this._x2 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var AC = (function e(t) { + function n(e) { + return new OC(e, t); + } + return ( + (n.tension = function (t) { + return e(+t); + }), + n + ); + })(0); + function IC(e, t, n) { + var r = e._x1, + i = e._y1, + o = e._x2, + s = e._y2; + if (e._l01_a > gw) { + var a = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, + u = 3 * e._l01_a * (e._l01_a + e._l12_a); + (r = (r * a - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / u), + (i = (i * a - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / u); + } + if (e._l23_a > gw) { + var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, + c = 3 * e._l23_a * (e._l23_a + e._l12_a); + (o = (o * l + e._x1 * e._l23_2a - t * e._l12_2a) / c), + (s = (s * l + e._y1 * e._l23_2a - n * e._l12_2a) / c); + } + e._context.bezierCurveTo(r, i, o, s, e._x2, e._y2); + } + function PC(e, t) { + (this._context = e), (this._alpha = t); + } + PC.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); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + if (((e = +e), (t = +t), this._point)) { + var n = this._x2 - e, + r = this._y2 - t; + this._l23_a = Math.sqrt( + (this._l23_2a = Math.pow(n * n + r * r, this._alpha)) + ); + } + switch (this._point) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + this._point = 2; + break; + case 2: + this._point = 3; + default: + IC(this, e, t); + } + (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 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var RC = (function e(t) { + function n(e) { + return t ? new PC(e, t) : new DC(e, 0); + } + return ( + (n.alpha = function (t) { + return e(+t); + }), + n + ); + })(0.5); + function FC(e, t) { + (this._context = e), (this._alpha = t); + } + FC.prototype = { + areaStart: _C, + areaEnd: _C, + 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); + } + }, + point: function (e, t) { + if (((e = +e), (t = +t), this._point)) { + var n = this._x2 - e, + r = this._y2 - t; + this._l23_a = Math.sqrt( + (this._l23_2a = Math.pow(n * n + r * r, this._alpha)) + ); + } + switch (this._point) { + case 0: + (this._point = 1), (this._x3 = e), (this._y3 = t); + break; + case 1: + (this._point = 2), + this._context.moveTo((this._x4 = e), (this._y4 = t)); + break; + case 2: + (this._point = 3), (this._x5 = e), (this._y5 = t); + break; + default: + IC(this, e, t); + } + (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 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var YC = (function e(t) { + function n(e) { + return t ? new FC(e, t) : new TC(e, 0); + } + return ( + (n.alpha = function (t) { + return e(+t); + }), + n + ); + })(0.5); + function jC(e, t) { + (this._context = e), (this._alpha = t); + } + jC.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 () { + (this._line || (0 !== this._line && 3 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + if (((e = +e), (t = +t), this._point)) { + var n = this._x2 - e, + r = this._y2 - t; + this._l23_a = Math.sqrt( + (this._l23_2a = Math.pow(n * n + r * r, 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: + IC(this, e, t); + } + (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 = e), + (this._y0 = this._y1), + (this._y1 = this._y2), + (this._y2 = t); + }, + }; + var BC = (function e(t) { + function n(e) { + return t ? new jC(e, t) : new OC(e, 0); + } + return ( + (n.alpha = function (t) { + return e(+t); + }), + n + ); + })(0.5); + function WC(e) { + this._context = e; + } + WC.prototype = { + areaStart: _C, + areaEnd: _C, + lineStart: function () { + this._point = 0; + }, + lineEnd: function () { + this._point && this._context.closePath(); + }, + point: function (e, t) { + (e = +e), + (t = +t), + this._point + ? this._context.lineTo(e, t) + : ((this._point = 1), this._context.moveTo(e, t)); + }, + }; + var HC = function (e) { + return new WC(e); + }; + function VC(e) { + return e < 0 ? -1 : 1; + } + function zC(e, t, n) { + var r = e._x1 - e._x0, + i = t - e._x1, + o = (e._y1 - e._y0) / (r || (i < 0 && -0)), + s = (n - e._y1) / (i || (r < 0 && -0)), + a = (o * i + s * r) / (r + i); + return ( + (VC(o) + VC(s)) * + Math.min(Math.abs(o), Math.abs(s), 0.5 * Math.abs(a)) || 0 + ); + } + function UC(e, t) { + var n = e._x1 - e._x0; + return n ? ((3 * (e._y1 - e._y0)) / n - t) / 2 : t; + } + function qC(e, t, n) { + var r = e._x0, + i = e._y0, + o = e._x1, + s = e._y1, + a = (o - r) / 3; + e._context.bezierCurveTo(r + a, i + a * t, o - a, s - a * n, o, s); + } + function KC(e) { + this._context = e; + } + function GC(e) { + this._context = new $C(e); + } + function $C(e) { + this._context = e; + } + function ZC(e) { + return new KC(e); + } + function XC(e) { + return new GC(e); + } + function JC(e) { + this._context = e; + } + function QC(e) { + var t, + n, + r = e.length - 1, + i = new Array(r), + o = new Array(r), + s = new Array(r); + for (i[0] = 0, o[0] = 2, s[0] = e[0] + 2 * e[1], t = 1; t < r - 1; ++t) + (i[t] = 1), (o[t] = 4), (s[t] = 4 * e[t] + 2 * e[t + 1]); + for ( + i[r - 1] = 2, o[r - 1] = 7, s[r - 1] = 8 * e[r - 1] + e[r], t = 1; + t < r; + ++t + ) + (n = i[t] / o[t - 1]), (o[t] -= n), (s[t] -= n * s[t - 1]); + for (i[r - 1] = s[r - 1] / o[r - 1], t = r - 2; t >= 0; --t) + i[t] = (s[t] - i[t + 1]) / o[t]; + for (o[r - 1] = (e[r] + i[r - 1]) / 2, t = 0; t < r - 1; ++t) + o[t] = 2 * e[t + 1] - i[t + 1]; + return [i, o]; + } + (KC.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: + qC(this, this._t0, UC(this, this._t0)); + } + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + (this._line = 1 - this._line); + }, + point: function (e, t) { + var n = NaN; + if (((t = +t), (e = +e) !== this._x1 || t !== this._y1)) { + switch (this._point) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + this._point = 2; + break; + case 2: + (this._point = 3), qC(this, UC(this, (n = zC(this, e, t))), n); + break; + default: + qC(this, this._t0, (n = zC(this, e, t))); + } + (this._x0 = this._x1), + (this._x1 = e), + (this._y0 = this._y1), + (this._y1 = t), + (this._t0 = n); + } + }, + }), + ((GC.prototype = Object.create(KC.prototype)).point = function (e, t) { + KC.prototype.point.call(this, t, e); + }), + ($C.prototype = { + moveTo: function (e, t) { + this._context.moveTo(t, e); + }, + closePath: function () { + this._context.closePath(); + }, + lineTo: function (e, t) { + this._context.lineTo(t, e); + }, + bezierCurveTo: function (e, t, n, r, i, o) { + this._context.bezierCurveTo(t, e, r, n, o, i); + }, + }), + (JC.prototype = { + areaStart: function () { + this._line = 0; + }, + areaEnd: function () { + this._line = NaN; + }, + lineStart: function () { + (this._x = []), (this._y = []); + }, + lineEnd: function () { + var e = this._x, + t = this._y, + n = e.length; + if (n) + if ( + (this._line + ? this._context.lineTo(e[0], t[0]) + : this._context.moveTo(e[0], t[0]), + 2 === n) + ) + this._context.lineTo(e[1], t[1]); + else + for (var r = QC(e), i = QC(t), o = 0, s = 1; s < n; ++o, ++s) + this._context.bezierCurveTo( + r[0][o], + i[0][o], + r[1][o], + i[1][o], + e[s], + t[s] + ); + (this._line || (0 !== this._line && 1 === n)) && + this._context.closePath(), + (this._line = 1 - this._line), + (this._x = this._y = null); + }, + point: function (e, t) { + this._x.push(+e), this._y.push(+t); + }, + }); + var eS = function (e) { + return new JC(e); + }; + function tS(e, t) { + (this._context = e), (this._t = t); + } + tS.prototype = { + areaStart: function () { + this._line = 0; + }, + areaEnd: function () { + this._line = NaN; + }, + lineStart: function () { + (this._x = this._y = NaN), (this._point = 0); + }, + lineEnd: function () { + 0 < this._t && + this._t < 1 && + 2 === this._point && + this._context.lineTo(this._x, this._y), + (this._line || (0 !== this._line && 1 === this._point)) && + this._context.closePath(), + this._line >= 0 && + ((this._t = 1 - this._t), (this._line = 1 - this._line)); + }, + point: function (e, t) { + switch (((e = +e), (t = +t), this._point)) { + case 0: + (this._point = 1), + this._line + ? this._context.lineTo(e, t) + : this._context.moveTo(e, t); + break; + case 1: + this._point = 2; + default: + if (this._t <= 0) + this._context.lineTo(this._x, t), this._context.lineTo(e, t); + else { + var n = this._x * (1 - this._t) + e * this._t; + this._context.lineTo(n, this._y), this._context.lineTo(n, t); + } + } + (this._x = e), (this._y = t); + }, + }; + var nS = function (e) { + return new tS(e, 0.5); + }; + function rS(e) { + return new tS(e, 0); + } + function iS(e) { + return new tS(e, 1); + } + var oS = function (e, t) { + if ((i = e.length) > 1) + for (var n, r, i, o = 1, s = e[t[0]], a = s.length; o < i; ++o) + for (r = s, s = e[t[o]], n = 0; n < a; ++n) + s[n][1] += s[n][0] = isNaN(r[n][1]) ? r[n][0] : r[n][1]; + }, + sS = function (e) { + for (var t = e.length, n = new Array(t); --t >= 0; ) n[t] = t; + return n; + }; + function aS(e, t) { + return e[t]; + } + var uS = function () { + var e = aw([]), + t = sS, + n = oS, + r = aS; + function i(i) { + var o, + s, + a = e.apply(this, arguments), + u = i.length, + l = a.length, + c = new Array(l); + for (o = 0; o < l; ++o) { + for (var d, h = a[o], f = (c[o] = new Array(u)), p = 0; p < u; ++p) + (f[p] = d = [0, +r(i[p], h, p, i)]), (d.data = i[p]); + f.key = h; + } + for (o = 0, s = t(c); o < l; ++o) c[s[o]].index = o; + return n(c, s), c; + } + return ( + (i.keys = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : aw(Vw.call(t))), i) + : e; + }), + (i.value = function (e) { + return arguments.length + ? ((r = 'function' == typeof e ? e : aw(+e)), i) + : r; + }), + (i.order = function (e) { + return arguments.length + ? ((t = + null == e ? sS : 'function' == typeof e ? e : aw(Vw.call(e))), + i) + : t; + }), + (i.offset = function (e) { + return arguments.length ? ((n = null == e ? oS : e), i) : n; + }), + i + ); + }, + lS = function (e, t) { + if ((r = e.length) > 0) { + for (var n, r, i, o = 0, s = e[0].length; o < s; ++o) { + for (i = n = 0; n < r; ++n) i += e[n][o][1] || 0; + if (i) for (n = 0; n < r; ++n) e[n][o][1] /= i; + } + oS(e, t); + } + }, + cS = function (e, t) { + if ((a = e.length) > 0) + for (var n, r, i, o, s, a, u = 0, l = e[t[0]].length; u < l; ++u) + for (o = s = 0, n = 0; n < a; ++n) + (i = (r = e[t[n]][u])[1] - r[0]) > 0 + ? ((r[0] = o), (r[1] = o += i)) + : i < 0 + ? ((r[1] = s), (r[0] = s += i)) + : ((r[0] = 0), (r[1] = i)); + }, + dS = function (e, t) { + if ((n = e.length) > 0) { + for (var n, r = 0, i = e[t[0]], o = i.length; r < o; ++r) { + for (var s = 0, a = 0; s < n; ++s) a += e[s][r][1] || 0; + i[r][1] += i[r][0] = -a / 2; + } + oS(e, t); + } + }, + hS = function (e, t) { + if ((i = e.length) > 0 && (r = (n = e[t[0]]).length) > 0) { + for (var n, r, i, o = 0, s = 1; s < r; ++s) { + for (var a = 0, u = 0, l = 0; a < i; ++a) { + for ( + var c = e[t[a]], + d = c[s][1] || 0, + h = (d - (c[s - 1][1] || 0)) / 2, + f = 0; + f < a; + ++f + ) { + var p = e[t[f]]; + h += (p[s][1] || 0) - (p[s - 1][1] || 0); + } + (u += d), (l += h * d); + } + (n[s - 1][1] += n[s - 1][0] = o), u && (o -= l / u); + } + (n[s - 1][1] += n[s - 1][0] = o), oS(e, t); + } + }, + fS = function (e) { + var t = e.map(pS); + return sS(e).sort(function (e, n) { + return t[e] - t[n]; + }); + }; + function pS(e) { + for (var t, n = -1, r = 0, i = e.length, o = -1 / 0; ++n < i; ) + (t = +e[n][1]) > o && ((o = t), (r = n)); + return r; + } + var gS = function (e) { + var t = e.map(mS); + return sS(e).sort(function (e, n) { + return t[e] - t[n]; + }); + }; + function mS(e) { + for (var t, n = 0, r = -1, i = e.length; ++r < i; ) + (t = +e[r][1]) && (n += t); + return n; + } + var _S = function (e) { + return gS(e).reverse(); + }, + yS = function (e) { + var t, + n, + r = e.length, + i = e.map(mS), + o = fS(e), + s = 0, + a = 0, + u = [], + l = []; + for (t = 0; t < r; ++t) + (n = o[t]), + s < a ? ((s += i[n]), u.push(n)) : ((a += i[n]), l.push(n)); + return l.reverse().concat(u); + }, + vS = function (e) { + return sS(e).reverse(); + }; + var bS = Date.prototype.toISOString + ? function (e) { + return e.toISOString(); + } + : O_('%Y-%m-%dT%H:%M:%S.%LZ'); + var wS = +new Date('2000-01-01T00:00:00.000Z') + ? function (e) { + var t = new Date(e); + return isNaN(t) ? null : t; + } + : A_('%Y-%m-%dT%H:%M:%S.%LZ'), + CS = function (e, t, n) { + var r = new Zn(), + i = t; + return null == t + ? (r.restart(e, t, n), r) + : ((t = +t), + (n = null == n ? Gn() : +n), + r.restart( + function o(s) { + (s += i), r.restart(o, (i += t), n), e(s); + }, + t, + n + ), + r); + }, + SS = function (e) { + return function () { + return e; + }; + }; + function xS(e) { + return e[0]; + } + function LS(e) { + return e[1]; + } + function kS() { + this._ = null; + } + function MS(e) { + e.U = e.C = e.L = e.R = e.P = e.N = null; + } + function DS(e, t) { + var n = t, + r = t.R, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (e._ = r), + (r.U = i), + (n.U = r), + (n.R = r.L), + n.R && (n.R.U = n), + (r.L = n); + } + function ES(e, t) { + var n = t, + r = t.L, + i = n.U; + i ? (i.L === n ? (i.L = r) : (i.R = r)) : (e._ = r), + (r.U = i), + (n.U = r), + (n.L = r.R), + n.L && (n.L.U = n), + (r.R = n); + } + function TS(e) { + for (; e.L; ) e = e.L; + return e; + } + kS.prototype = { + constructor: kS, + insert: function (e, t) { + var n, r, i; + if (e) { + if (((t.P = e), (t.N = e.N), e.N && (e.N.P = t), (e.N = t), e.R)) { + for (e = e.R; e.L; ) e = e.L; + e.L = t; + } else e.R = t; + n = e; + } else + this._ + ? ((e = TS(this._)), + (t.P = null), + (t.N = e), + (e.P = e.L = t), + (n = e)) + : ((t.P = t.N = null), (this._ = t), (n = null)); + for (t.L = t.R = null, t.U = n, t.C = !0, e = t; n && n.C; ) + n === (r = n.U).L + ? (i = r.R) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (e = r)) + : (e === n.R && (DS(this, n), (n = (e = n).U)), + (n.C = !1), + (r.C = !0), + ES(this, r)) + : (i = r.L) && i.C + ? ((n.C = i.C = !1), (r.C = !0), (e = r)) + : (e === n.L && (ES(this, n), (n = (e = n).U)), + (n.C = !1), + (r.C = !0), + DS(this, r)), + (n = e.U); + this._.C = !1; + }, + remove: function (e) { + e.N && (e.N.P = e.P), e.P && (e.P.N = e.N), (e.N = e.P = null); + var t, + n, + r, + i = e.U, + o = e.L, + s = e.R; + if ( + ((n = o ? (s ? TS(s) : o) : s), + i ? (i.L === e ? (i.L = n) : (i.R = n)) : (this._ = n), + o && s + ? ((r = n.C), + (n.C = e.C), + (n.L = o), + (o.U = n), + n !== s + ? ((i = n.U), + (n.U = e.U), + (e = n.R), + (i.L = e), + (n.R = s), + (s.U = n)) + : ((n.U = i), (i = n), (e = n.R))) + : ((r = e.C), (e = n)), + e && (e.U = i), + !r) + ) + if (e && e.C) e.C = !1; + else { + do { + if (e === this._) break; + if (e === i.L) { + if ( + ((t = i.R).C && + ((t.C = !1), (i.C = !0), DS(this, i), (t = i.R)), + (t.L && t.L.C) || (t.R && t.R.C)) + ) { + (t.R && t.R.C) || + ((t.L.C = !1), (t.C = !0), ES(this, t), (t = i.R)), + (t.C = i.C), + (i.C = t.R.C = !1), + DS(this, i), + (e = this._); + break; + } + } else if ( + ((t = i.L).C && + ((t.C = !1), (i.C = !0), ES(this, i), (t = i.L)), + (t.L && t.L.C) || (t.R && t.R.C)) + ) { + (t.L && t.L.C) || + ((t.R.C = !1), (t.C = !0), DS(this, t), (t = i.L)), + (t.C = i.C), + (i.C = t.L.C = !1), + ES(this, i), + (e = this._); + break; + } + (t.C = !0), (e = i), (i = i.U); + } while (!e.C); + e && (e.C = !1); + } + }, + }; + var NS = kS; + function OS(e, t, n, r) { + var i = [null, null], + o = nx.push(i) - 1; + return ( + (i.left = e), + (i.right = t), + n && IS(i, e, t, n), + r && IS(i, t, e, r), + ex[e.index].halfedges.push(o), + ex[t.index].halfedges.push(o), + i + ); + } + function AS(e, t, n) { + var r = [t, n]; + return (r.left = e), r; + } + function IS(e, t, n, r) { + e[0] || e[1] + ? e.left === n + ? (e[1] = r) + : (e[0] = r) + : ((e[0] = r), (e.left = t), (e.right = n)); + } + function PS(e, t, n, r, i) { + var o, + s = e[0], + a = e[1], + u = s[0], + l = s[1], + c = 0, + d = 1, + h = a[0] - u, + f = a[1] - l; + if (((o = t - u), h || !(o > 0))) { + if (((o /= h), h < 0)) { + if (o < c) return; + o < d && (d = o); + } else if (h > 0) { + if (o > d) return; + o > c && (c = o); + } + if (((o = r - u), h || !(o < 0))) { + if (((o /= h), h < 0)) { + if (o > d) return; + o > c && (c = o); + } else if (h > 0) { + if (o < c) return; + o < d && (d = o); + } + if (((o = n - l), f || !(o > 0))) { + if (((o /= f), f < 0)) { + if (o < c) return; + o < d && (d = o); + } else if (f > 0) { + if (o > d) return; + o > c && (c = o); + } + if (((o = i - l), f || !(o < 0))) { + if (((o /= f), f < 0)) { + if (o > d) return; + o > c && (c = o); + } else if (f > 0) { + if (o < c) return; + o < d && (d = o); + } + return ( + !(c > 0 || d < 1) || + (c > 0 && (e[0] = [u + c * h, l + c * f]), + d < 1 && (e[1] = [u + d * h, l + d * f]), + !0) + ); + } + } + } + } + } + function RS(e, t, n, r, i) { + var o = e[1]; + if (o) return !0; + var s, + a, + u = e[0], + l = e.left, + c = e.right, + d = l[0], + h = l[1], + f = c[0], + p = c[1], + g = (d + f) / 2, + m = (h + p) / 2; + if (p === h) { + if (g < t || g >= r) return; + if (d > f) { + if (u) { + if (u[1] >= i) return; + } else u = [g, n]; + o = [g, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [g, i]; + o = [g, n]; + } + } else if (((a = m - (s = (d - f) / (p - h)) * g), s < -1 || s > 1)) + if (d > f) { + if (u) { + if (u[1] >= i) return; + } else u = [(n - a) / s, n]; + o = [(i - a) / s, i]; + } else { + if (u) { + if (u[1] < n) return; + } else u = [(i - a) / s, i]; + o = [(n - a) / s, n]; + } + else if (h < p) { + if (u) { + if (u[0] >= r) return; + } else u = [t, s * t + a]; + o = [r, s * r + a]; + } else { + if (u) { + if (u[0] < t) return; + } else u = [r, s * r + a]; + o = [t, s * t + a]; + } + return (e[0] = u), (e[1] = o), !0; + } + function FS(e, t) { + var n = e.site, + r = t.left, + i = t.right; + return ( + n === i && ((i = r), (r = n)), + i + ? Math.atan2(i[1] - r[1], i[0] - r[0]) + : (n === r ? ((r = t[1]), (i = t[0])) : ((r = t[0]), (i = t[1])), + Math.atan2(r[0] - i[0], i[1] - r[1])) + ); + } + function YS(e, t) { + return t[+(t.left !== e.site)]; + } + function jS(e, t) { + return t[+(t.left === e.site)]; + } + var BS, + WS = []; + function HS() { + MS(this), (this.x = this.y = this.arc = this.site = this.cy = null); + } + function VS(e) { + var t = e.P, + n = e.N; + if (t && n) { + var r = t.site, + i = e.site, + o = n.site; + if (r !== o) { + var s = i[0], + a = i[1], + u = r[0] - s, + l = r[1] - a, + c = o[0] - s, + d = o[1] - a, + h = 2 * (u * d - l * c); + if (!(h >= -ix)) { + var f = u * u + l * l, + p = c * c + d * d, + g = (d * f - l * p) / h, + m = (u * p - c * f) / h, + _ = WS.pop() || new HS(); + (_.arc = e), + (_.site = i), + (_.x = g + s), + (_.y = (_.cy = m + a) + Math.sqrt(g * g + m * m)), + (e.circle = _); + for (var y = null, v = tx._; v; ) + if (_.y < v.y || (_.y === v.y && _.x <= v.x)) { + if (!v.L) { + y = v.P; + break; + } + v = v.L; + } else { + if (!v.R) { + y = v; + break; + } + v = v.R; + } + tx.insert(y, _), y || (BS = _); + } + } + } + } + function zS(e) { + var t = e.circle; + t && + (t.P || (BS = t.N), tx.remove(t), WS.push(t), MS(t), (e.circle = null)); + } + var US = []; + function qS() { + MS(this), (this.edge = this.site = this.circle = null); + } + function KS(e) { + var t = US.pop() || new qS(); + return (t.site = e), t; + } + function GS(e) { + zS(e), QS.remove(e), US.push(e), MS(e); + } + function $S(e) { + var t = e.circle, + n = t.x, + r = t.cy, + i = [n, r], + o = e.P, + s = e.N, + a = [e]; + GS(e); + for ( + var u = o; + u.circle && + Math.abs(n - u.circle.x) < rx && + Math.abs(r - u.circle.cy) < rx; + + ) + (o = u.P), a.unshift(u), GS(u), (u = o); + a.unshift(u), zS(u); + for ( + var l = s; + l.circle && + Math.abs(n - l.circle.x) < rx && + Math.abs(r - l.circle.cy) < rx; + + ) + (s = l.N), a.push(l), GS(l), (l = s); + a.push(l), zS(l); + var c, + d = a.length; + for (c = 1; c < d; ++c) + (l = a[c]), (u = a[c - 1]), IS(l.edge, u.site, l.site, i); + (u = a[0]), + ((l = a[d - 1]).edge = OS(u.site, l.site, null, i)), + VS(u), + VS(l); + } + function ZS(e) { + for (var t, n, r, i, o = e[0], s = e[1], a = QS._; a; ) + if ((r = XS(a, s) - o) > rx) a = a.L; + else { + if (!((i = o - JS(a, s)) > rx)) { + r > -rx + ? ((t = a.P), (n = a)) + : i > -rx + ? ((t = a), (n = a.N)) + : (t = n = a); + break; + } + if (!a.R) { + t = a; + break; + } + a = a.R; + } + !(function (e) { + ex[e.index] = { site: e, halfedges: [] }; + })(e); + var u = KS(e); + if ((QS.insert(t, u), t || n)) { + if (t === n) + return ( + zS(t), + (n = KS(t.site)), + QS.insert(u, n), + (u.edge = n.edge = OS(t.site, u.site)), + VS(t), + void VS(n) + ); + if (n) { + zS(t), zS(n); + var l = t.site, + c = l[0], + d = l[1], + h = e[0] - c, + f = e[1] - d, + p = n.site, + g = p[0] - c, + m = p[1] - d, + _ = 2 * (h * m - f * g), + y = h * h + f * f, + v = g * g + m * m, + b = [(m * y - f * v) / _ + c, (h * v - g * y) / _ + d]; + IS(n.edge, l, p, b), + (u.edge = OS(l, e, null, b)), + (n.edge = OS(e, p, null, b)), + VS(t), + VS(n); + } else u.edge = OS(t.site, u.site); + } + } + function XS(e, t) { + var n = e.site, + r = n[0], + i = n[1], + o = i - t; + if (!o) return r; + var s = e.P; + if (!s) return -1 / 0; + var a = (n = s.site)[0], + u = n[1], + l = u - t; + if (!l) return a; + var c = a - r, + d = 1 / o - 1 / l, + h = c / l; + return d + ? (-h + + Math.sqrt( + h * h - 2 * d * ((c * c) / (-2 * l) - u + l / 2 + i - o / 2) + )) / + d + + r + : (r + a) / 2; + } + function JS(e, t) { + var n = e.N; + if (n) return XS(n, t); + var r = e.site; + return r[1] === t ? r[0] : 1 / 0; + } + var QS, + ex, + tx, + nx, + rx = 1e-6, + ix = 1e-12; + function ox(e, t) { + return t[1] - e[1] || t[0] - e[0]; + } + function sx(e, t) { + var n, + r, + i, + o = e.sort(ox).pop(); + for (nx = [], ex = new Array(e.length), QS = new NS(), tx = new NS(); ; ) + if (((i = BS), o && (!i || o[1] < i.y || (o[1] === i.y && o[0] < i.x)))) + (o[0] === n && o[1] === r) || (ZS(o), (n = o[0]), (r = o[1])), + (o = e.pop()); + else { + if (!i) break; + $S(i.arc); + } + if ( + ((function () { + for (var e, t, n, r, i = 0, o = ex.length; i < o; ++i) + if ((e = ex[i]) && (r = (t = e.halfedges).length)) { + var s = new Array(r), + a = new Array(r); + for (n = 0; n < r; ++n) (s[n] = n), (a[n] = FS(e, nx[t[n]])); + for ( + s.sort(function (e, t) { + return a[t] - a[e]; + }), + n = 0; + n < r; + ++n + ) + a[n] = t[s[n]]; + for (n = 0; n < r; ++n) t[n] = a[n]; + } + })(), + t) + ) { + var s = +t[0][0], + a = +t[0][1], + u = +t[1][0], + l = +t[1][1]; + !(function (e, t, n, r) { + for (var i, o = nx.length; o--; ) + (RS((i = nx[o]), e, t, n, r) && + PS(i, e, t, n, r) && + (Math.abs(i[0][0] - i[1][0]) > rx || + Math.abs(i[0][1] - i[1][1]) > rx)) || + delete nx[o]; + })(s, a, u, l), + (function (e, t, n, r) { + var i, + o, + s, + a, + u, + l, + c, + d, + h, + f, + p, + g, + m = ex.length, + _ = !0; + for (i = 0; i < m; ++i) + if ((o = ex[i])) { + for (s = o.site, a = (u = o.halfedges).length; a--; ) + nx[u[a]] || u.splice(a, 1); + for (a = 0, l = u.length; a < l; ) + (p = (f = jS(o, nx[u[a]]))[0]), + (g = f[1]), + (d = (c = YS(o, nx[u[++a % l]]))[0]), + (h = c[1]), + (Math.abs(p - d) > rx || Math.abs(g - h) > rx) && + (u.splice( + a, + 0, + nx.push( + AS( + s, + f, + Math.abs(p - e) < rx && r - g > rx + ? [e, Math.abs(d - e) < rx ? h : r] + : Math.abs(g - r) < rx && n - p > rx + ? [Math.abs(h - r) < rx ? d : n, r] + : Math.abs(p - n) < rx && g - t > rx + ? [n, Math.abs(d - n) < rx ? h : t] + : Math.abs(g - t) < rx && p - e > rx + ? [Math.abs(h - t) < rx ? d : e, t] + : null + ) + ) - 1 + ), + ++l); + l && (_ = !1); + } + if (_) { + var y, + v, + b, + w = 1 / 0; + for (i = 0, _ = null; i < m; ++i) + (o = ex[i]) && + (b = (y = (s = o.site)[0] - e) * y + (v = s[1] - t) * v) < + w && + ((w = b), (_ = o)); + if (_) { + var C = [e, t], + S = [e, r], + x = [n, r], + L = [n, t]; + _.halfedges.push( + nx.push(AS((s = _.site), C, S)) - 1, + nx.push(AS(s, S, x)) - 1, + nx.push(AS(s, x, L)) - 1, + nx.push(AS(s, L, C)) - 1 + ); + } + } + for (i = 0; i < m; ++i) + (o = ex[i]) && (o.halfedges.length || delete ex[i]); + })(s, a, u, l); + } + (this.edges = nx), (this.cells = ex), (QS = tx = nx = ex = null); + } + sx.prototype = { + constructor: sx, + polygons: function () { + var e = this.edges; + return this.cells.map(function (t) { + var n = t.halfedges.map(function (n) { + return YS(t, e[n]); + }); + return (n.data = t.site.data), n; + }); + }, + triangles: function () { + var e = [], + t = this.edges; + return ( + this.cells.forEach(function (n, r) { + if ((o = (i = n.halfedges).length)) + for ( + var i, + o, + s, + a, + u, + l, + c = n.site, + d = -1, + h = t[i[o - 1]], + f = h.left === c ? h.right : h.left; + ++d < o; + + ) + (s = f), + (f = (h = t[i[d]]).left === c ? h.right : h.left), + s && + f && + r < s.index && + r < f.index && + ((u = s), + (l = f), + ((a = c)[0] - l[0]) * (u[1] - a[1]) - + (a[0] - u[0]) * (l[1] - a[1]) < + 0) && + e.push([c.data, s.data, f.data]); + }), + e + ); + }, + links: function () { + return this.edges + .filter(function (e) { + return e.right; + }) + .map(function (e) { + return { source: e.left.data, target: e.right.data }; + }); + }, + find: function (e, t, n) { + for ( + var r, i, o = this, s = o._found || 0, a = o.cells.length; + !(i = o.cells[s]); + + ) + if (++s >= a) return null; + var u = e - i.site[0], + l = t - i.site[1], + c = u * u + l * l; + do { + (i = o.cells[(r = s)]), + (s = null), + i.halfedges.forEach(function (n) { + var r = o.edges[n], + a = r.left; + if ((a !== i.site && a) || (a = r.right)) { + var u = e - a[0], + l = t - a[1], + d = u * u + l * l; + d < c && ((c = d), (s = a.index)); + } + }); + } while (null !== s); + return (o._found = r), null == n || c <= n * n ? i.site : null; + }, + }; + var ax = function () { + var e = xS, + t = LS, + n = null; + function r(r) { + return new sx( + r.map(function (n, i) { + var o = [ + Math.round(e(n, i, r) / rx) * rx, + Math.round(t(n, i, r) / rx) * rx, + ]; + return (o.index = i), (o.data = n), o; + }), + n + ); + } + return ( + (r.polygons = function (e) { + return r(e).polygons(); + }), + (r.links = function (e) { + return r(e).links(); + }), + (r.triangles = function (e) { + return r(e).triangles(); + }), + (r.x = function (t) { + return arguments.length + ? ((e = 'function' == typeof t ? t : SS(+t)), r) + : e; + }), + (r.y = function (e) { + return arguments.length + ? ((t = 'function' == typeof e ? e : SS(+e)), r) + : t; + }), + (r.extent = function (e) { + return arguments.length + ? ((n = + null == e + ? null + : [ + [+e[0][0], +e[0][1]], + [+e[1][0], +e[1][1]], + ]), + r) + : n && [ + [n[0][0], n[0][1]], + [n[1][0], n[1][1]], + ]; + }), + (r.size = function (e) { + return arguments.length + ? ((n = + null == e + ? null + : [ + [0, 0], + [+e[0], +e[1]], + ]), + r) + : n && [n[1][0] - n[0][0], n[1][1] - n[0][1]]; + }), + r + ); + }, + ux = function (e) { + return function () { + return e; + }; + }; + function lx(e, t, n) { + (this.target = e), (this.type = t), (this.transform = n); + } + function cx(e, t, n) { + (this.k = e), (this.x = t), (this.y = n); + } + cx.prototype = { + constructor: cx, + scale: function (e) { + return 1 === e ? this : new cx(this.k * e, this.x, this.y); + }, + translate: function (e, t) { + return (0 === e) & (0 === t) + ? this + : new cx(this.k, this.x + this.k * e, this.y + this.k * t); + }, + apply: function (e) { + return [e[0] * this.k + this.x, e[1] * this.k + this.y]; + }, + applyX: function (e) { + return e * this.k + this.x; + }, + applyY: function (e) { + return e * this.k + this.y; + }, + invert: function (e) { + return [(e[0] - this.x) / this.k, (e[1] - this.y) / this.k]; + }, + invertX: function (e) { + return (e - this.x) / this.k; + }, + invertY: function (e) { + return (e - this.y) / this.k; + }, + rescaleX: function (e) { + return e + .copy() + .domain(e.range().map(this.invertX, this).map(e.invert, e)); + }, + rescaleY: function (e) { + return e + .copy() + .domain(e.range().map(this.invertY, this).map(e.invert, e)); + }, + toString: function () { + return 'translate(' + this.x + ',' + this.y + ') scale(' + this.k + ')'; + }, + }; + var dx = new cx(1, 0, 0); + function hx(e) { + for (; !e.__zoom; ) if (!(e = e.parentNode)) return dx; + return e.__zoom; + } + function fx() { + pt.stopImmediatePropagation(); + } + hx.prototype = cx.prototype; + var px = function () { + pt.preventDefault(), pt.stopImmediatePropagation(); + }; + function gx() { + return !pt.ctrlKey && !pt.button; + } + function mx() { + var e = this; + return e instanceof SVGElement + ? (e = e.ownerSVGElement || e).hasAttribute('viewBox') + ? [ + [(e = e.viewBox.baseVal).x, e.y], + [e.x + e.width, e.y + e.height], + ] + : [ + [0, 0], + [e.width.baseVal.value, e.height.baseVal.value], + ] + : [ + [0, 0], + [e.clientWidth, e.clientHeight], + ]; + } + function _x() { + return this.__zoom || dx; + } + function yx() { + return ( + -pt.deltaY * (1 === pt.deltaMode ? 0.05 : pt.deltaMode ? 1 : 0.002) + ); + } + function vx() { + return navigator.maxTouchPoints || 'ontouchstart' in this; + } + function bx(e, t, n) { + var r = e.invertX(t[0][0]) - n[0][0], + i = e.invertX(t[1][0]) - n[1][0], + o = e.invertY(t[0][1]) - n[0][1], + s = e.invertY(t[1][1]) - n[1][1]; + return e.translate( + i > r ? (r + i) / 2 : Math.min(0, r) || Math.max(0, i), + s > o ? (o + s) / 2 : Math.min(0, o) || Math.max(0, s) + ); + } + var wx = function () { + var e, + t, + n = gx, + r = mx, + i = bx, + o = yx, + s = vx, + a = [0, 1 / 0], + u = [ + [-1 / 0, -1 / 0], + [1 / 0, 1 / 0], + ], + l = 250, + c = Xp, + d = ge('start', 'zoom', 'end'), + h = 500, + f = 150, + p = 0; + function g(e) { + e.property('__zoom', _x) + .on('wheel.zoom', C) + .on('mousedown.zoom', S) + .on('dblclick.zoom', x) + .filter(s) + .on('touchstart.zoom', L) + .on('touchmove.zoom', k) + .on('touchend.zoom touchcancel.zoom', M) + .style('touch-action', 'none') + .style('-webkit-tap-highlight-color', 'rgba(0,0,0,0)'); + } + function m(e, t) { + return (t = Math.max(a[0], Math.min(a[1], t))) === e.k + ? e + : new cx(t, e.x, e.y); + } + function _(e, t, n) { + var r = t[0] - n[0] * e.k, + i = t[1] - n[1] * e.k; + return r === e.x && i === e.y ? e : new cx(e.k, r, i); + } + function y(e) { + return [(+e[0][0] + +e[1][0]) / 2, (+e[0][1] + +e[1][1]) / 2]; + } + function v(e, t, n) { + e.on('start.zoom', function () { + b(this, arguments).start(); + }) + .on('interrupt.zoom end.zoom', function () { + b(this, arguments).end(); + }) + .tween('zoom', function () { + var e = this, + i = arguments, + o = b(e, i), + s = r.apply(e, i), + a = null == n ? y(s) : 'function' == typeof n ? n.apply(e, i) : n, + u = Math.max(s[1][0] - s[0][0], s[1][1] - s[0][1]), + l = e.__zoom, + d = 'function' == typeof t ? t.apply(e, i) : t, + h = c(l.invert(a).concat(u / l.k), d.invert(a).concat(u / d.k)); + return function (e) { + if (1 === e) e = d; + else { + var t = h(e), + n = u / t[2]; + e = new cx(n, a[0] - t[0] * n, a[1] - t[1] * n); + } + o.zoom(null, e); + }; + }); + } + function b(e, t, n) { + return (!n && e.__zooming) || new w(e, t); + } + function w(e, t) { + (this.that = e), + (this.args = t), + (this.active = 0), + (this.extent = r.apply(e, t)), + (this.taps = 0); + } + function C() { + if (n.apply(this, arguments)) { + var e = b(this, arguments), + t = this.__zoom, + r = Math.max( + a[0], + Math.min(a[1], t.k * Math.pow(2, o.apply(this, arguments))) + ), + s = Yn(this); + if (e.wheel) + (e.mouse[0][0] === s[0] && e.mouse[0][1] === s[1]) || + (e.mouse[1] = t.invert((e.mouse[0] = s))), + clearTimeout(e.wheel); + else { + if (t.k === r) return; + (e.mouse = [s, t.invert(s)]), br(this), e.start(); + } + px(), + (e.wheel = setTimeout(function () { + (e.wheel = null), e.end(); + }, f)), + e.zoom('mouse', i(_(m(t, r), e.mouse[0], e.mouse[1]), e.extent, u)); + } + } + function S() { + if (!t && n.apply(this, arguments)) { + var e = b(this, arguments, !0), + r = Dt(pt.view) + .on( + 'mousemove.zoom', + function () { + if ((px(), !e.moved)) { + var t = pt.clientX - s, + n = pt.clientY - a; + e.moved = t * t + n * n > p; + } + e.zoom( + 'mouse', + i( + _(e.that.__zoom, (e.mouse[0] = Yn(e.that)), e.mouse[1]), + e.extent, + u + ) + ); + }, + !0 + ) + .on( + 'mouseup.zoom', + function () { + r.on('mousemove.zoom mouseup.zoom', null), + Ot(pt.view, e.moved), + px(), + e.end(); + }, + !0 + ), + o = Yn(this), + s = pt.clientX, + a = pt.clientY; + Nt(pt.view), + fx(), + (e.mouse = [o, this.__zoom.invert(o)]), + br(this), + e.start(); + } + } + function x() { + if (n.apply(this, arguments)) { + var e = this.__zoom, + t = Yn(this), + o = e.invert(t), + s = e.k * (pt.shiftKey ? 0.5 : 2), + a = i(_(m(e, s), t, o), r.apply(this, arguments), u); + px(), + l > 0 + ? Dt(this).transition().duration(l).call(v, a, t) + : Dt(this).call(g.transform, a); + } + } + function L() { + if (n.apply(this, arguments)) { + var t, + r, + i, + o, + s = pt.touches, + a = s.length, + u = b(this, arguments, pt.changedTouches.length === a); + for (fx(), r = 0; r < a; ++r) + (i = s[r]), + (o = [ + (o = Fn(this, s, i.identifier)), + this.__zoom.invert(o), + i.identifier, + ]), + u.touch0 + ? u.touch1 || + u.touch0[2] === o[2] || + ((u.touch1 = o), (u.taps = 0)) + : ((u.touch0 = o), (t = !0), (u.taps = 1 + !!e)); + e && (e = clearTimeout(e)), + t && + (u.taps < 2 && + (e = setTimeout(function () { + e = null; + }, h)), + br(this), + u.start()); + } + } + function k() { + if (this.__zooming) { + var t, + n, + r, + o, + s = b(this, arguments), + a = pt.changedTouches, + l = a.length; + for (px(), e && (e = clearTimeout(e)), s.taps = 0, t = 0; t < l; ++t) + (n = a[t]), + (r = Fn(this, a, n.identifier)), + s.touch0 && s.touch0[2] === n.identifier + ? (s.touch0[0] = r) + : s.touch1 && s.touch1[2] === n.identifier && (s.touch1[0] = r); + if (((n = s.that.__zoom), s.touch1)) { + var c = s.touch0[0], + d = s.touch0[1], + h = s.touch1[0], + f = s.touch1[1], + p = (p = h[0] - c[0]) * p + (p = h[1] - c[1]) * p, + g = (g = f[0] - d[0]) * g + (g = f[1] - d[1]) * g; + (n = m(n, Math.sqrt(p / g))), + (r = [(c[0] + h[0]) / 2, (c[1] + h[1]) / 2]), + (o = [(d[0] + f[0]) / 2, (d[1] + f[1]) / 2]); + } else { + if (!s.touch0) return; + (r = s.touch0[0]), (o = s.touch0[1]); + } + s.zoom('touch', i(_(n, r, o), s.extent, u)); + } + } + function M() { + if (this.__zooming) { + var e, + n, + r = b(this, arguments), + i = pt.changedTouches, + o = i.length; + for ( + fx(), + t && clearTimeout(t), + t = setTimeout(function () { + t = null; + }, h), + e = 0; + e < o; + ++e + ) + (n = i[e]), + r.touch0 && r.touch0[2] === n.identifier + ? delete r.touch0 + : r.touch1 && r.touch1[2] === n.identifier && delete r.touch1; + if ( + (r.touch1 && !r.touch0 && ((r.touch0 = r.touch1), delete r.touch1), + r.touch0) + ) + r.touch0[1] = this.__zoom.invert(r.touch0[0]); + else if ((r.end(), 2 === r.taps)) { + var s = Dt(this).on('dblclick.zoom'); + s && s.apply(this, arguments); + } + } + } + return ( + (g.transform = function (e, t, n) { + var r = e.selection ? e.selection() : e; + r.property('__zoom', _x), + e !== r + ? v(e, t, n) + : r.interrupt().each(function () { + b(this, arguments) + .start() + .zoom( + null, + 'function' == typeof t ? t.apply(this, arguments) : t + ) + .end(); + }); + }), + (g.scaleBy = function (e, t, n) { + g.scaleTo( + e, + function () { + var e = this.__zoom.k, + n = 'function' == typeof t ? t.apply(this, arguments) : t; + return e * n; + }, + n + ); + }), + (g.scaleTo = function (e, t, n) { + g.transform( + e, + function () { + var e = r.apply(this, arguments), + o = this.__zoom, + s = + null == n + ? y(e) + : 'function' == typeof n + ? n.apply(this, arguments) + : n, + a = o.invert(s), + l = 'function' == typeof t ? t.apply(this, arguments) : t; + return i(_(m(o, l), s, a), e, u); + }, + n + ); + }), + (g.translateBy = function (e, t, n) { + g.transform(e, function () { + return i( + this.__zoom.translate( + 'function' == typeof t ? t.apply(this, arguments) : t, + 'function' == typeof n ? n.apply(this, arguments) : n + ), + r.apply(this, arguments), + u + ); + }); + }), + (g.translateTo = function (e, t, n, o) { + g.transform( + e, + function () { + var e = r.apply(this, arguments), + s = this.__zoom, + a = + null == o + ? y(e) + : 'function' == typeof o + ? o.apply(this, arguments) + : o; + return i( + dx + .translate(a[0], a[1]) + .scale(s.k) + .translate( + 'function' == typeof t ? -t.apply(this, arguments) : -t, + 'function' == typeof n ? -n.apply(this, arguments) : -n + ), + e, + u + ); + }, + o + ); + }), + (w.prototype = { + start: function () { + return ( + 1 == ++this.active && + ((this.that.__zooming = this), this.emit('start')), + this + ); + }, + zoom: function (e, t) { + return ( + this.mouse && + 'mouse' !== e && + (this.mouse[1] = t.invert(this.mouse[0])), + this.touch0 && + 'touch' !== e && + (this.touch0[1] = t.invert(this.touch0[0])), + this.touch1 && + 'touch' !== e && + (this.touch1[1] = t.invert(this.touch1[0])), + (this.that.__zoom = t), + this.emit('zoom'), + this + ); + }, + end: function () { + return ( + 0 == --this.active && + (delete this.that.__zooming, this.emit('end')), + this + ); + }, + emit: function (e) { + bt(new lx(g, e, this.that.__zoom), d.apply, d, [ + e, + this.that, + this.args, + ]); + }, + }), + (g.wheelDelta = function (e) { + return arguments.length + ? ((o = 'function' == typeof e ? e : ux(+e)), g) + : o; + }), + (g.filter = function (e) { + return arguments.length + ? ((n = 'function' == typeof e ? e : ux(!!e)), g) + : n; + }), + (g.touchable = function (e) { + return arguments.length + ? ((s = 'function' == typeof e ? e : ux(!!e)), g) + : s; + }), + (g.extent = function (e) { + return arguments.length + ? ((r = + 'function' == typeof e + ? e + : ux([ + [+e[0][0], +e[0][1]], + [+e[1][0], +e[1][1]], + ])), + g) + : r; + }), + (g.scaleExtent = function (e) { + return arguments.length + ? ((a[0] = +e[0]), (a[1] = +e[1]), g) + : [a[0], a[1]]; + }), + (g.translateExtent = function (e) { + return arguments.length + ? ((u[0][0] = +e[0][0]), + (u[1][0] = +e[1][0]), + (u[0][1] = +e[0][1]), + (u[1][1] = +e[1][1]), + g) + : [ + [u[0][0], u[0][1]], + [u[1][0], u[1][1]], + ]; + }), + (g.constrain = function (e) { + return arguments.length ? ((i = e), g) : i; + }), + (g.duration = function (e) { + return arguments.length ? ((l = +e), g) : l; + }), + (g.interpolate = function (e) { + return arguments.length ? ((c = e), g) : c; + }), + (g.on = function () { + var e = d.on.apply(d, arguments); + return e === d ? g : e; + }), + (g.clickDistance = function (e) { + return arguments.length ? ((p = (e = +e) * e), g) : Math.sqrt(p); + }), + g + ); + }; + n.d(t, 'version', function () { + return '5.14.2'; + }), + n.d(t, 'bisect', function () { + return u; + }), + n.d(t, 'bisectRight', function () { + return s; + }), + n.d(t, 'bisectLeft', function () { + return a; + }), + n.d(t, 'ascending', function () { + return r; + }), + n.d(t, 'bisector', function () { + return i; + }), + n.d(t, 'cross', function () { + return d; + }), + n.d(t, 'descending', function () { + return h; + }), + n.d(t, 'deviation', function () { + return g; + }), + n.d(t, 'extent', function () { + return m; + }), + n.d(t, 'histogram', function () { + return T; + }), + n.d(t, 'thresholdFreedmanDiaconis', function () { + return O; + }), + n.d(t, 'thresholdScott', function () { + return A; + }), + n.d(t, 'thresholdSturges', function () { + return E; + }), + n.d(t, 'max', function () { + return I; + }), + n.d(t, 'mean', function () { + return P; + }), + n.d(t, 'median', function () { + return R; + }), + n.d(t, 'merge', function () { + return F; + }), + n.d(t, 'min', function () { + return Y; + }), + n.d(t, 'pairs', function () { + return l; + }), + n.d(t, 'permute', function () { + return j; + }), + n.d(t, 'quantile', function () { + return N; + }), + n.d(t, 'range', function () { + return C; + }), + n.d(t, 'scan', function () { + return B; + }), + n.d(t, 'shuffle', function () { + return W; + }), + n.d(t, 'sum', function () { + return H; + }), + n.d(t, 'ticks', function () { + return k; + }), + n.d(t, 'tickIncrement', function () { + return M; + }), + n.d(t, 'tickStep', function () { + return D; + }), + n.d(t, 'transpose', function () { + return V; + }), + n.d(t, 'variance', function () { + return p; + }), + n.d(t, 'zip', function () { + return U; + }), + n.d(t, 'axisTop', function () { + return oe; + }), + n.d(t, 'axisRight', function () { + return se; + }), + n.d(t, 'axisBottom', function () { + return ae; + }), + n.d(t, 'axisLeft', function () { + return ue; + }), + n.d(t, 'brush', function () { + return Ai; + }), + n.d(t, 'brushX', function () { + return Ni; + }), + n.d(t, 'brushY', function () { + return Oi; + }), + n.d(t, 'brushSelection', function () { + return Ti; + }), + n.d(t, 'chord', function () { + return Hi; + }), + n.d(t, 'ribbon', function () { + return no; + }), + n.d(t, 'nest', function () { + return so; + }), + n.d(t, 'set', function () { + return go; + }), + n.d(t, 'map', function () { + return oo; + }), + n.d(t, 'keys', function () { + return mo; + }), + n.d(t, 'values', function () { + return _o; + }), + n.d(t, 'entries', function () { + return yo; + }), + n.d(t, 'color', function () { + return $t; + }), + n.d(t, 'rgb', function () { + return Qt; + }), + n.d(t, 'hsl', function () { + return an; + }), + n.d(t, 'lab', function () { + return To; + }), + n.d(t, 'hcl', function () { + return Yo; + }), + n.d(t, 'lch', function () { + return Fo; + }), + n.d(t, 'gray', function () { + return Eo; + }), + n.d(t, 'cubehelix', function () { + return Ko; + }), + n.d(t, 'contours', function () { + return is; + }), + n.d(t, 'contourDensity', function () { + return cs; + }), + n.d(t, 'dispatch', function () { + return ge; + }), + n.d(t, 'drag', function () { + return _s; + }), + n.d(t, 'dragDisable', function () { + return Nt; + }), + n.d(t, 'dragEnable', function () { + return Ot; + }), + n.d(t, 'dsvFormat', function () { + return Ms; + }), + n.d(t, 'csvParse', function () { + return Es; + }), + n.d(t, 'csvParseRows', function () { + return Ts; + }), + n.d(t, 'csvFormat', function () { + return Ns; + }), + n.d(t, 'csvFormatBody', function () { + return Os; + }), + n.d(t, 'csvFormatRows', function () { + return As; + }), + n.d(t, 'csvFormatRow', function () { + return Is; + }), + n.d(t, 'csvFormatValue', function () { + return Ps; + }), + n.d(t, 'tsvParse', function () { + return Fs; + }), + n.d(t, 'tsvParseRows', function () { + return Ys; + }), + n.d(t, 'tsvFormat', function () { + return js; + }), + n.d(t, 'tsvFormatBody', function () { + return Bs; + }), + n.d(t, 'tsvFormatRows', function () { + return Ws; + }), + n.d(t, 'tsvFormatRow', function () { + return Hs; + }), + n.d(t, 'tsvFormatValue', function () { + return Vs; + }), + n.d(t, 'autoType', function () { + return zs; + }), + n.d(t, 'easeLinear', function () { + return qs; + }), + n.d(t, 'easeQuad', function () { + return $s; + }), + n.d(t, 'easeQuadIn', function () { + return Ks; + }), + n.d(t, 'easeQuadOut', function () { + return Gs; + }), + n.d(t, 'easeQuadInOut', function () { + return $s; + }), + n.d(t, 'easeCubic', function () { + return ni; + }), + n.d(t, 'easeCubicIn', function () { + return ei; + }), + n.d(t, 'easeCubicOut', function () { + return ti; + }), + n.d(t, 'easeCubicInOut', function () { + return ni; + }), + n.d(t, 'easePoly', function () { + return Js; + }), + n.d(t, 'easePolyIn', function () { + return Zs; + }), + n.d(t, 'easePolyOut', function () { + return Xs; + }), + n.d(t, 'easePolyInOut', function () { + return Js; + }), + n.d(t, 'easeSin', function () { + return ra; + }), + n.d(t, 'easeSinIn', function () { + return ta; + }), + n.d(t, 'easeSinOut', function () { + return na; + }), + n.d(t, 'easeSinInOut', function () { + return ra; + }), + n.d(t, 'easeExp', function () { + return sa; + }), + n.d(t, 'easeExpIn', function () { + return ia; + }), + n.d(t, 'easeExpOut', function () { + return oa; + }), + n.d(t, 'easeExpInOut', function () { + return sa; + }), + n.d(t, 'easeCircle', function () { + return la; + }), + n.d(t, 'easeCircleIn', function () { + return aa; + }), + n.d(t, 'easeCircleOut', function () { + return ua; + }), + n.d(t, 'easeCircleInOut', function () { + return la; + }), + n.d(t, 'easeBounce', function () { + return wa; + }), + n.d(t, 'easeBounceIn', function () { + return ba; + }), + n.d(t, 'easeBounceOut', function () { + return wa; + }), + n.d(t, 'easeBounceInOut', function () { + return Ca; + }), + n.d(t, 'easeBack', function () { + return La; + }), + n.d(t, 'easeBackIn', function () { + return Sa; + }), + n.d(t, 'easeBackOut', function () { + return xa; + }), + n.d(t, 'easeBackInOut', function () { + return La; + }), + n.d(t, 'easeElastic', function () { + return Da; + }), + n.d(t, 'easeElasticIn', function () { + return Ma; + }), + n.d(t, 'easeElasticOut', function () { + return Da; + }), + n.d(t, 'easeElasticInOut', function () { + return Ea; + }), + n.d(t, 'blob', function () { + return Na; + }), + n.d(t, 'buffer', function () { + return Aa; + }), + n.d(t, 'dsv', function () { + return Fa; + }), + n.d(t, 'csv', function () { + return Ya; + }), + n.d(t, 'tsv', function () { + return ja; + }), + n.d(t, 'image', function () { + return Ba; + }), + n.d(t, 'json', function () { + return Ha; + }), + n.d(t, 'text', function () { + return Pa; + }), + n.d(t, 'xml', function () { + return za; + }), + n.d(t, 'html', function () { + return Ua; + }), + n.d(t, 'svg', function () { + return qa; + }), + n.d(t, 'forceCenter', function () { + return Ka; + }), + n.d(t, 'forceCollide', function () { + return su; + }), + n.d(t, 'forceLink', function () { + return lu; + }), + n.d(t, 'forceManyBody', function () { + return gu; + }), + n.d(t, 'forceRadial', function () { + return mu; + }), + n.d(t, 'forceSimulation', function () { + return pu; + }), + n.d(t, 'forceX', function () { + return _u; + }), + n.d(t, 'forceY', function () { + return yu; + }), + n.d(t, 'formatDefaultLocale', function () { + return Pu; + }), + n.d(t, 'format', function () { + return ku; + }), + n.d(t, 'formatPrefix', function () { + return Mu; + }), + n.d(t, 'formatLocale', function () { + return Iu; + }), + n.d(t, 'formatSpecifier', function () { + return Cu; + }), + n.d(t, 'FormatSpecifier', function () { + return Su; + }), + n.d(t, 'precisionFixed', function () { + return Ru; + }), + n.d(t, 'precisionPrefix', function () { + return Fu; + }), + n.d(t, 'precisionRound', function () { + return Yu; + }), + n.d(t, 'geoArea', function () { + return Nl; + }), + n.d(t, 'geoBounds', function () { + return Sc; + }), + n.d(t, 'geoCentroid', function () { + return Pc; + }), + n.d(t, 'geoCircle', function () { + return qc; + }), + n.d(t, 'geoClipAntimeridian', function () { + return id; + }), + n.d(t, 'geoClipCircle', function () { + return od; + }), + n.d(t, 'geoClipExtent', function () { + return fd; + }), + n.d(t, 'geoClipRectangle', function () { + return ld; + }), + n.d(t, 'geoContains', function () { + return Nd; + }), + n.d(t, 'geoDistance', function () { + return Cd; + }), + n.d(t, 'geoGraticule', function () { + return Id; + }), + n.d(t, 'geoGraticule10', function () { + return Pd; + }), + n.d(t, 'geoInterpolate', function () { + return Bd; + }), + n.d(t, 'geoLength', function () { + return vd; + }), + n.d(t, 'geoPath', function () { + return Yh; + }), + n.d(t, 'geoAlbers', function () { + return of; + }), + n.d(t, 'geoAlbersUsa', function () { + return sf; + }), + n.d(t, 'geoAzimuthalEqualArea', function () { + return cf; + }), + n.d(t, 'geoAzimuthalEqualAreaRaw', function () { + return lf; + }), + n.d(t, 'geoAzimuthalEquidistant', function () { + return hf; + }), + n.d(t, 'geoAzimuthalEquidistantRaw', function () { + return df; + }), + n.d(t, 'geoConicConformal', function () { + return yf; + }), + n.d(t, 'geoConicConformalRaw', function () { + return _f; + }), + n.d(t, 'geoConicEqualArea', function () { + return rf; + }), + n.d(t, 'geoConicEqualAreaRaw', function () { + return nf; + }), + n.d(t, 'geoConicEquidistant', function () { + return Cf; + }), + n.d(t, 'geoConicEquidistantRaw', function () { + return wf; + }), + n.d(t, 'geoEqualEarth', function () { + return Ef; + }), + n.d(t, 'geoEqualEarthRaw', function () { + return Df; + }), + n.d(t, 'geoEquirectangular', function () { + return bf; + }), + n.d(t, 'geoEquirectangularRaw', function () { + return vf; + }), + n.d(t, 'geoGnomonic', function () { + return Nf; + }), + n.d(t, 'geoGnomonicRaw', function () { + return Tf; + }), + n.d(t, 'geoIdentity', function () { + return Af; + }), + n.d(t, 'geoProjection', function () { + return Qh; + }), + n.d(t, 'geoProjectionMutator', function () { + return ef; + }), + n.d(t, 'geoMercator', function () { + return pf; + }), + n.d(t, 'geoMercatorRaw', function () { + return ff; + }), + n.d(t, 'geoNaturalEarth1', function () { + return Pf; + }), + n.d(t, 'geoNaturalEarth1Raw', function () { + return If; + }), + n.d(t, 'geoOrthographic', function () { + return Ff; + }), + n.d(t, 'geoOrthographicRaw', function () { + return Rf; + }), + n.d(t, 'geoStereographic', function () { + return jf; + }), + n.d(t, 'geoStereographicRaw', function () { + return Yf; + }), + n.d(t, 'geoTransverseMercator', function () { + return Wf; + }), + n.d(t, 'geoTransverseMercatorRaw', function () { + return Bf; + }), + n.d(t, 'geoRotation', function () { + return Vc; + }), + n.d(t, 'geoStream', function () { + return Sl; + }), + n.d(t, 'geoTransform', function () { + return jh; + }), + n.d(t, 'cluster', function () { + return Uf; + }), + n.d(t, 'hierarchy', function () { + return Kf; + }), + n.d(t, 'pack', function () { + return yp; + }), + n.d(t, 'packSiblings', function () { + return hp; + }), + n.d(t, 'packEnclose', function () { + return Qf; + }), + n.d(t, 'partition', function () { + return xp; + }), + n.d(t, 'stratify', function () { + return Tp; + }), + n.d(t, 'tree', function () { + return Fp; + }), + n.d(t, 'treemap', function () { + return Hp; + }), + n.d(t, 'treemapBinary', function () { + return Vp; + }), + n.d(t, 'treemapDice', function () { + return Sp; + }), + n.d(t, 'treemapSlice', function () { + return Yp; + }), + n.d(t, 'treemapSliceDice', function () { + return zp; + }), + n.d(t, 'treemapSquarify', function () { + return Wp; + }), + n.d(t, 'treemapResquarify', function () { + return Up; + }), + n.d(t, 'interpolate', function () { + return In; + }), + n.d(t, 'interpolateArray', function () { + return xn; + }), + n.d(t, 'interpolateBasis', function () { + return dn; + }), + n.d(t, 'interpolateBasisClosed', function () { + return hn; + }), + n.d(t, 'interpolateDate', function () { + return kn; + }), + n.d(t, 'interpolateDiscrete', function () { + return qp; + }), + n.d(t, 'interpolateHue', function () { + return Kp; + }), + n.d(t, 'interpolateNumber', function () { + return Mn; + }), + n.d(t, 'interpolateNumberArray', function () { + return Cn; + }), + n.d(t, 'interpolateObject', function () { + return Dn; + }), + n.d(t, 'interpolateRound', function () { + return Gp; + }), + n.d(t, 'interpolateString', function () { + return An; + }), + n.d(t, 'interpolateTransformCss', function () { + return Lr; + }), + n.d(t, 'interpolateTransformSvg', function () { + return kr; + }), + n.d(t, 'interpolateZoom', function () { + return Xp; + }), + n.d(t, 'interpolateRgb', function () { + return yn; + }), + n.d(t, 'interpolateRgbBasis', function () { + return bn; + }), + n.d(t, 'interpolateRgbBasisClosed', function () { + return wn; + }), + n.d(t, 'interpolateHsl', function () { + return Qp; + }), + n.d(t, 'interpolateHslLong', function () { + return eg; + }), + n.d(t, 'interpolateLab', function () { + return tg; + }), + n.d(t, 'interpolateHcl', function () { + return rg; + }), + n.d(t, 'interpolateHclLong', function () { + return ig; + }), + n.d(t, 'interpolateCubehelix', function () { + return sg; + }), + n.d(t, 'interpolateCubehelixLong', function () { + return ag; + }), + n.d(t, 'piecewise', function () { + return ug; + }), + n.d(t, 'quantize', function () { + return lg; + }), + n.d(t, 'path', function () { + return Zi; + }), + n.d(t, 'polygonArea', function () { + return cg; + }), + n.d(t, 'polygonCentroid', function () { + return dg; + }), + n.d(t, 'polygonHull', function () { + return gg; + }), + n.d(t, 'polygonContains', function () { + return mg; + }), + n.d(t, 'polygonLength', function () { + return _g; + }), + n.d(t, 'quadtree', function () { + return eu; + }), + n.d(t, 'randomUniform', function () { + return vg; + }), + n.d(t, 'randomNormal', function () { + return bg; + }), + n.d(t, 'randomLogNormal', function () { + return wg; + }), + n.d(t, 'randomBates', function () { + return Sg; + }), + n.d(t, 'randomIrwinHall', function () { + return Cg; + }), + n.d(t, 'randomExponential', function () { + return xg; + }), + n.d(t, 'scaleBand', function () { + return Og; + }), + n.d(t, 'scalePoint', function () { + return Ag; + }), + n.d(t, 'scaleIdentity', function () { + return Gg; + }), + n.d(t, 'scaleLinear', function () { + return Kg; + }), + n.d(t, 'scaleLog', function () { + return rm; + }), + n.d(t, 'scaleSymlog', function () { + return am; + }), + n.d(t, 'scaleOrdinal', function () { + return Ng; + }), + n.d(t, 'scaleImplicit', function () { + return Tg; + }), + n.d(t, 'scalePow', function () { + return hm; + }), + n.d(t, 'scaleSqrt', function () { + return fm; + }), + n.d(t, 'scaleQuantile', function () { + return pm; + }), + n.d(t, 'scaleQuantize', function () { + return gm; + }), + n.d(t, 'scaleThreshold', function () { + return mm; + }), + n.d(t, 'scaleTime', function () { + return nv; + }), + n.d(t, 'scaleUtc', function () { + return hv; + }), + n.d(t, 'scaleSequential', function () { + return gv; + }), + n.d(t, 'scaleSequentialLog', function () { + return mv; + }), + n.d(t, 'scaleSequentialPow', function () { + return yv; + }), + n.d(t, 'scaleSequentialSqrt', function () { + return vv; + }), + n.d(t, 'scaleSequentialSymlog', function () { + return _v; + }), + n.d(t, 'scaleSequentialQuantile', function () { + return bv; + }), + n.d(t, 'scaleDiverging', function () { + return Cv; + }), + n.d(t, 'scaleDivergingLog', function () { + return Sv; + }), + n.d(t, 'scaleDivergingPow', function () { + return Lv; + }), + n.d(t, 'scaleDivergingSqrt', function () { + return kv; + }), + n.d(t, 'scaleDivergingSymlog', function () { + return xv; + }), + n.d(t, 'tickFormat', function () { + return Ug; + }), + n.d(t, 'schemeCategory10', function () { + return Dv; + }), + n.d(t, 'schemeAccent', function () { + return Ev; + }), + n.d(t, 'schemeDark2', function () { + return Tv; + }), + n.d(t, 'schemePaired', function () { + return Nv; + }), + n.d(t, 'schemePastel1', function () { + return Ov; + }), + n.d(t, 'schemePastel2', function () { + return Av; + }), + n.d(t, 'schemeSet1', function () { + return Iv; + }), + n.d(t, 'schemeSet2', function () { + return Pv; + }), + n.d(t, 'schemeSet3', function () { + return Rv; + }), + n.d(t, 'schemeTableau10', function () { + return Fv; + }), + n.d(t, 'interpolateBrBG', function () { + return Bv; + }), + n.d(t, 'schemeBrBG', function () { + return jv; + }), + n.d(t, 'interpolatePRGn', function () { + return Hv; + }), + n.d(t, 'schemePRGn', function () { + return Wv; + }), + n.d(t, 'interpolatePiYG', function () { + return zv; + }), + n.d(t, 'schemePiYG', function () { + return Vv; + }), + n.d(t, 'interpolatePuOr', function () { + return qv; + }), + n.d(t, 'schemePuOr', function () { + return Uv; + }), + n.d(t, 'interpolateRdBu', function () { + return Gv; + }), + n.d(t, 'schemeRdBu', function () { + return Kv; + }), + n.d(t, 'interpolateRdGy', function () { + return Zv; + }), + n.d(t, 'schemeRdGy', function () { + return $v; + }), + n.d(t, 'interpolateRdYlBu', function () { + return Jv; + }), + n.d(t, 'schemeRdYlBu', function () { + return Xv; + }), + n.d(t, 'interpolateRdYlGn', function () { + return eb; + }), + n.d(t, 'schemeRdYlGn', function () { + return Qv; + }), + n.d(t, 'interpolateSpectral', function () { + return nb; + }), + n.d(t, 'schemeSpectral', function () { + return tb; + }), + n.d(t, 'interpolateBuGn', function () { + return ib; + }), + n.d(t, 'schemeBuGn', function () { + return rb; + }), + n.d(t, 'interpolateBuPu', function () { + return sb; + }), + n.d(t, 'schemeBuPu', function () { + return ob; + }), + n.d(t, 'interpolateGnBu', function () { + return ub; + }), + n.d(t, 'schemeGnBu', function () { + return ab; + }), + n.d(t, 'interpolateOrRd', function () { + return cb; + }), + n.d(t, 'schemeOrRd', function () { + return lb; + }), + n.d(t, 'interpolatePuBuGn', function () { + return hb; + }), + n.d(t, 'schemePuBuGn', function () { + return db; + }), + n.d(t, 'interpolatePuBu', function () { + return pb; + }), + n.d(t, 'schemePuBu', function () { + return fb; + }), + n.d(t, 'interpolatePuRd', function () { + return mb; + }), + n.d(t, 'schemePuRd', function () { + return gb; + }), + n.d(t, 'interpolateRdPu', function () { + return yb; + }), + n.d(t, 'schemeRdPu', function () { + return _b; + }), + n.d(t, 'interpolateYlGnBu', function () { + return bb; + }), + n.d(t, 'schemeYlGnBu', function () { + return vb; + }), + n.d(t, 'interpolateYlGn', function () { + return Cb; + }), + n.d(t, 'schemeYlGn', function () { + return wb; + }), + n.d(t, 'interpolateYlOrBr', function () { + return xb; + }), + n.d(t, 'schemeYlOrBr', function () { + return Sb; + }), + n.d(t, 'interpolateYlOrRd', function () { + return kb; + }), + n.d(t, 'schemeYlOrRd', function () { + return Lb; + }), + n.d(t, 'interpolateBlues', function () { + return Db; + }), + n.d(t, 'schemeBlues', function () { + return Mb; + }), + n.d(t, 'interpolateGreens', function () { + return Tb; + }), + n.d(t, 'schemeGreens', function () { + return Eb; + }), + n.d(t, 'interpolateGreys', function () { + return Ob; + }), + n.d(t, 'schemeGreys', function () { + return Nb; + }), + n.d(t, 'interpolatePurples', function () { + return Ib; + }), + n.d(t, 'schemePurples', function () { + return Ab; + }), + n.d(t, 'interpolateReds', function () { + return Rb; + }), + n.d(t, 'schemeReds', function () { + return Pb; + }), + n.d(t, 'interpolateOranges', function () { + return Yb; + }), + n.d(t, 'schemeOranges', function () { + return Fb; + }), + n.d(t, 'interpolateCividis', function () { + return jb; + }), + n.d(t, 'interpolateCubehelixDefault', function () { + return Bb; + }), + n.d(t, 'interpolateRainbow', function () { + return zb; + }), + n.d(t, 'interpolateWarm', function () { + return Wb; + }), + n.d(t, 'interpolateCool', function () { + return Hb; + }), + n.d(t, 'interpolateSinebow', function () { + return Gb; + }), + n.d(t, 'interpolateTurbo', function () { + return $b; + }), + n.d(t, 'interpolateViridis', function () { + return Xb; + }), + n.d(t, 'interpolateMagma', function () { + return Jb; + }), + n.d(t, 'interpolateInferno', function () { + return Qb; + }), + n.d(t, 'interpolatePlasma', function () { + return ew; + }), + n.d(t, 'create', function () { + return tw; + }), + n.d(t, 'creator', function () { + return ut; + }), + n.d(t, 'local', function () { + return rw; + }), + n.d(t, 'matcher', function () { + return be; + }), + n.d(t, 'mouse', function () { + return Yn; + }), + n.d(t, 'namespace', function () { + return Ee; + }), + n.d(t, 'namespaces', function () { + return De; + }), + n.d(t, 'clientPoint', function () { + return Rn; + }), + n.d(t, 'select', function () { + return Dt; + }), + n.d(t, 'selectAll', function () { + return ow; + }), + n.d(t, 'selection', function () { + return Mt; + }), + n.d(t, 'selector', function () { + return _e; + }), + n.d(t, 'selectorAll', function () { + return ve; + }), + n.d(t, 'style', function () { + return Be; + }), + n.d(t, 'touch', function () { + return Fn; + }), + n.d(t, 'touches', function () { + return sw; + }), + n.d(t, 'window', function () { + return Re; + }), + n.d(t, 'event', function () { + return pt; + }), + n.d(t, 'customEvent', function () { + return bt; + }), + n.d(t, 'arc', function () { + return kw; + }), + n.d(t, 'area', function () { + return Ow; + }), + n.d(t, 'line', function () { + return Nw; + }), + n.d(t, 'pie', function () { + return Pw; + }), + n.d(t, 'areaRadial', function () { + return Ww; + }), + n.d(t, 'radialArea', function () { + return Ww; + }), + n.d(t, 'lineRadial', function () { + return Bw; + }), + n.d(t, 'radialLine', function () { + return Bw; + }), + n.d(t, 'pointRadial', function () { + return Hw; + }), + n.d(t, 'linkHorizontal', function () { + return Zw; + }), + n.d(t, 'linkVertical', function () { + return Xw; + }), + n.d(t, 'linkRadial', function () { + return Jw; + }), + n.d(t, 'symbol', function () { + return mC; + }), + n.d(t, 'symbols', function () { + return gC; + }), + n.d(t, 'symbolCircle', function () { + return Qw; + }), + n.d(t, 'symbolCross', function () { + return eC; + }), + n.d(t, 'symbolDiamond', function () { + return rC; + }), + n.d(t, 'symbolSquare', function () { + return uC; + }), + n.d(t, 'symbolStar', function () { + return aC; + }), + n.d(t, 'symbolTriangle', function () { + return cC; + }), + n.d(t, 'symbolWye', function () { + return pC; + }), + n.d(t, 'curveBasisClosed', function () { + return CC; + }), + n.d(t, 'curveBasisOpen', function () { + return xC; + }), + n.d(t, 'curveBasis', function () { + return bC; + }), + n.d(t, 'curveBundle', function () { + return kC; + }), + n.d(t, 'curveCardinalClosed', function () { + return NC; + }), + n.d(t, 'curveCardinalOpen', function () { + return AC; + }), + n.d(t, 'curveCardinal', function () { + return EC; + }), + n.d(t, 'curveCatmullRomClosed', function () { + return YC; + }), + n.d(t, 'curveCatmullRomOpen', function () { + return BC; + }), + n.d(t, 'curveCatmullRom', function () { + return RC; + }), + n.d(t, 'curveLinearClosed', function () { + return HC; + }), + n.d(t, 'curveLinear', function () { + return Dw; + }), + n.d(t, 'curveMonotoneX', function () { + return ZC; + }), + n.d(t, 'curveMonotoneY', function () { + return XC; + }), + n.d(t, 'curveNatural', function () { + return eS; + }), + n.d(t, 'curveStep', function () { + return nS; + }), + n.d(t, 'curveStepAfter', function () { + return iS; + }), + n.d(t, 'curveStepBefore', function () { + return rS; + }), + n.d(t, 'stack', function () { + return uS; + }), + n.d(t, 'stackOffsetExpand', function () { + return lS; + }), + n.d(t, 'stackOffsetDiverging', function () { + return cS; + }), + n.d(t, 'stackOffsetNone', function () { + return oS; + }), + n.d(t, 'stackOffsetSilhouette', function () { + return dS; + }), + n.d(t, 'stackOffsetWiggle', function () { + return hS; + }), + n.d(t, 'stackOrderAppearance', function () { + return fS; + }), + n.d(t, 'stackOrderAscending', function () { + return gS; + }), + n.d(t, 'stackOrderDescending', function () { + return _S; + }), + n.d(t, 'stackOrderInsideOut', function () { + return yS; + }), + n.d(t, 'stackOrderNone', function () { + return sS; + }), + n.d(t, 'stackOrderReverse', function () { + return vS; + }), + n.d(t, 'timeInterval', function () { + return vm; + }), + n.d(t, 'timeMillisecond', function () { + return n_; + }), + n.d(t, 'timeMilliseconds', function () { + return r_; + }), + n.d(t, 'utcMillisecond', function () { + return n_; + }), + n.d(t, 'utcMilliseconds', function () { + return r_; + }), + n.d(t, 'timeSecond', function () { + return Qm; + }), + n.d(t, 'timeSeconds', function () { + return e_; + }), + n.d(t, 'utcSecond', function () { + return Qm; + }), + n.d(t, 'utcSeconds', function () { + return e_; + }), + n.d(t, 'timeMinute', function () { + return Zm; + }), + n.d(t, 'timeMinutes', function () { + return Xm; + }), + n.d(t, 'timeHour', function () { + return Km; + }), + n.d(t, 'timeHours', function () { + return Gm; + }), + n.d(t, 'timeDay', function () { + return zm; + }), + n.d(t, 'timeDays', function () { + return Um; + }), + n.d(t, 'timeWeek', function () { + return Em; + }), + n.d(t, 'timeWeeks', function () { + return Rm; + }), + n.d(t, 'timeSunday', function () { + return Em; + }), + n.d(t, 'timeSundays', function () { + return Rm; + }), + n.d(t, 'timeMonday', function () { + return Tm; + }), + n.d(t, 'timeMondays', function () { + return Fm; + }), + n.d(t, 'timeTuesday', function () { + return Nm; + }), + n.d(t, 'timeTuesdays', function () { + return Ym; + }), + n.d(t, 'timeWednesday', function () { + return Om; + }), + n.d(t, 'timeWednesdays', function () { + return jm; + }), + n.d(t, 'timeThursday', function () { + return Am; + }), + n.d(t, 'timeThursdays', function () { + return Bm; + }), + n.d(t, 'timeFriday', function () { + return Im; + }), + n.d(t, 'timeFridays', function () { + return Wm; + }), + n.d(t, 'timeSaturday', function () { + return Pm; + }), + n.d(t, 'timeSaturdays', function () { + return Hm; + }), + n.d(t, 'timeMonth', function () { + return xm; + }), + n.d(t, 'timeMonths', function () { + return Lm; + }), + n.d(t, 'timeYear', function () { + return wm; + }), + n.d(t, 'timeYears', function () { + return Cm; + }), + n.d(t, 'utcMinute', function () { + return cv; + }), + n.d(t, 'utcMinutes', function () { + return dv; + }), + n.d(t, 'utcHour', function () { + return av; + }), + n.d(t, 'utcHours', function () { + return uv; + }), + n.d(t, 'utcDay', function () { + return b_; + }), + n.d(t, 'utcDays', function () { + return w_; + }), + n.d(t, 'utcWeek', function () { + return o_; + }), + n.d(t, 'utcWeeks', function () { + return h_; + }), + n.d(t, 'utcSunday', function () { + return o_; + }), + n.d(t, 'utcSundays', function () { + return h_; + }), + n.d(t, 'utcMonday', function () { + return s_; + }), + n.d(t, 'utcMondays', function () { + return f_; + }), + n.d(t, 'utcTuesday', function () { + return a_; + }), + n.d(t, 'utcTuesdays', function () { + return p_; + }), + n.d(t, 'utcWednesday', function () { + return u_; + }), + n.d(t, 'utcWednesdays', function () { + return g_; + }), + n.d(t, 'utcThursday', function () { + return l_; + }), + n.d(t, 'utcThursdays', function () { + return m_; + }), + n.d(t, 'utcFriday', function () { + return c_; + }), + n.d(t, 'utcFridays', function () { + return __; + }), + n.d(t, 'utcSaturday', function () { + return d_; + }), + n.d(t, 'utcSaturdays', function () { + return y_; + }), + n.d(t, 'utcMonth', function () { + return iv; + }), + n.d(t, 'utcMonths', function () { + return ov; + }), + n.d(t, 'utcYear', function () { + return S_; + }), + n.d(t, 'utcYears', function () { + return x_; + }), + n.d(t, 'timeFormatDefaultLocale', function () { + return Uy; + }), + n.d(t, 'timeFormat', function () { + return T_; + }), + n.d(t, 'timeParse', function () { + return N_; + }), + n.d(t, 'utcFormat', function () { + return O_; + }), + n.d(t, 'utcParse', function () { + return A_; + }), + n.d(t, 'timeFormatLocale', function () { + return D_; + }), + n.d(t, 'isoFormat', function () { + return bS; + }), + n.d(t, 'isoParse', function () { + return wS; + }), + n.d(t, 'now', function () { + return Gn; + }), + n.d(t, 'timer', function () { + return Xn; + }), + n.d(t, 'timerFlush', function () { + return Jn; + }), + n.d(t, 'timeout', function () { + return nr; + }), + n.d(t, 'interval', function () { + return CS; + }), + n.d(t, 'transition', function () { + return Xr; + }), + n.d(t, 'active', function () { + return si; + }), + n.d(t, 'interrupt', function () { + return br; + }), + n.d(t, 'voronoi', function () { + return ax; + }), + n.d(t, 'zoom', function () { + return wx; + }), + n.d(t, 'zoomTransform', function () { + return hx; + }), + n.d(t, 'zoomIdentity', function () { + return dx; + }); + }, + function (e, t, n) { + 'use strict'; + var r = n(101).forEach, + i = n(358), + o = n(359), + s = n(360), + a = n(361), + u = n(362), + l = n(102), + c = n(363), + d = n(365), + h = n(366), + f = n(367); + function p(e) { + return Array.isArray(e) || void 0 !== e.length; + } + function g(e) { + if (Array.isArray(e)) return e; + var t = []; + return ( + r(e, function (e) { + t.push(e); + }), + t + ); + } + function m(e) { + return e && 1 === e.nodeType; + } + function _(e, t, n) { + var r = e[t]; + return null == r && void 0 !== n ? n : r; + } + e.exports = function (e) { + var t; + if ((e = e || {}).idHandler) + t = { + get: function (t) { + return e.idHandler.get(t, !0); + }, + set: e.idHandler.set, + }; + else { + var n = s(), + y = a({ idGenerator: n, stateHandler: d }); + t = y; + } + var v = e.reporter; + v || (v = u(!1 === v)); + var b = _(e, 'batchProcessor', c({ reporter: v })), + w = {}; + (w.callOnAdd = !!_(e, 'callOnAdd', !0)), (w.debug = !!_(e, 'debug', !1)); + var C, + S = o(t), + x = i({ stateHandler: d }), + L = _(e, 'strategy', 'object'), + k = _(e, 'important', !1), + M = { + reporter: v, + batchProcessor: b, + stateHandler: d, + idHandler: t, + important: k, + }; + if ( + ('scroll' === L && + (l.isLegacyOpera() + ? (v.warn( + 'Scroll strategy is not supported on legacy Opera. Changing to object strategy.' + ), + (L = 'object')) + : l.isIE(9) && + (v.warn( + 'Scroll strategy is not supported on IE9. Changing to object strategy.' + ), + (L = 'object'))), + 'scroll' === L) + ) + C = f(M); + else { + if ('object' !== L) throw new Error('Invalid strategy name: ' + L); + C = h(M); + } + var D = {}; + return { + listenTo: function (e, n, i) { + function o(e) { + var t = S.get(e); + r(t, function (t) { + t(e); + }); + } + function s(e, t, n) { + S.add(t, n), e && n(t); + } + if ((i || ((i = n), (n = e), (e = {})), !n)) + throw new Error('At least one element required.'); + if (!i) throw new Error('Listener required.'); + if (m(n)) n = [n]; + else { + if (!p(n)) + return v.error( + 'Invalid arguments. Must be a DOM element or a collection of DOM elements.' + ); + n = g(n); + } + var a = 0, + u = _(e, 'callOnAdd', w.callOnAdd), + l = _(e, 'onReady', function () {}), + c = _(e, 'debug', w.debug); + r(n, function (e) { + d.getState(e) || (d.initState(e), t.set(e)); + var h = t.get(e); + if ( + (c && v.log('Attaching listener to element', h, e), + !x.isDetectable(e)) + ) + return ( + c && v.log(h, 'Not detectable.'), + x.isBusy(e) + ? (c && v.log(h, 'System busy making it detectable'), + s(u, e, i), + (D[h] = D[h] || []), + void D[h].push(function () { + ++a === n.length && l(); + })) + : (c && v.log(h, 'Making detectable...'), + x.markBusy(e, !0), + C.makeDetectable( + { debug: c, important: k }, + e, + function (e) { + if ( + (c && v.log(h, 'onElementDetectable'), d.getState(e)) + ) { + x.markAsDetectable(e), + x.markBusy(e, !1), + C.addListener(e, o), + s(u, e, i); + var t = d.getState(e); + if (t && t.startSize) { + var f = e.offsetWidth, + p = e.offsetHeight; + (t.startSize.width === f && + t.startSize.height === p) || + o(e); + } + D[h] && + r(D[h], function (e) { + e(); + }); + } else + c && + v.log( + h, + 'Element uninstalled before being detectable.' + ); + delete D[h], ++a === n.length && l(); + } + )) + ); + c && v.log(h, 'Already detecable, adding listener.'), + s(u, e, i), + a++; + }), + a === n.length && l(); + }, + removeListener: S.removeListener, + removeAllListeners: S.removeAllListeners, + uninstall: function (e) { + if (!e) return v.error('At least one element is required.'); + if (m(e)) e = [e]; + else { + if (!p(e)) + return v.error( + 'Invalid arguments. Must be a DOM element or a collection of DOM elements.' + ); + e = g(e); + } + r(e, function (e) { + S.removeAllListeners(e), C.uninstall(e), d.cleanState(e); + }); + }, + initDocument: function (e) { + C.initDocument && C.initDocument(e); + }, + }; + }; + }, + function (e) { + e.exports = JSON.parse( + '{"name":"mermaid","version":"8.8.4","description":"Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.","main":"dist/mermaid.core.js","keywords":["diagram","markdown","flowchart","sequence diagram","gantt","class diagram","git graph"],"scripts":{"build:development":"webpack --progress --colors","build:production":"yarn build:development -p --config webpack.config.prod.babel.js","build":"yarn build:development && yarn build:production","postbuild":"documentation build src/mermaidAPI.js src/config.js --shallow -f md --markdown-toc false > docs/Setup.md","build:watch":"yarn build --watch","minify":"minify ./dist/mermaid.js > ./dist/mermaid.min.js","release":"yarn build","lint":"eslint src","e2e:depr":"yarn lint && jest e2e --config e2e/jest.config.js","cypress":"percy exec -- cypress run","e2e":"start-server-and-test dev http://localhost:9000/ cypress","e2e-upd":"yarn lint && jest e2e -u --config e2e/jest.config.js","dev":"webpack-dev-server --config webpack.config.e2e.js","test":"yarn lint && jest src/.*","test:watch":"jest --watch src","prepublishOnly":"yarn build && yarn test","prepare":"yarn build"},"repository":{"type":"git","url":"https://github.com/knsv/mermaid"},"author":"Knut Sveidqvist","license":"MIT","standard":{"ignore":["**/parser/*.js","dist/**/*.js","cypress/**/*.js"],"globals":["page"]},"dependencies":{"@braintree/sanitize-url":"^3.1.0","d3":"^5.7.0","dagre":"^0.8.4","dagre-d3":"^0.6.4","entity-decode":"^2.0.2","graphlib":"^2.1.7","he":"^1.2.0","khroma":"^1.1.0","minify":"^4.1.1","moment-mini":"^2.22.1","stylis":"^3.5.2"},"devDependencies":{"@babel/core":"^7.2.2","@babel/preset-env":"^7.8.4","@babel/register":"^7.0.0","@percy/cypress":"*","babel-core":"7.0.0-bridge.0","babel-eslint":"^10.1.0","babel-jest":"^24.9.0","babel-loader":"^8.0.4","coveralls":"^3.0.2","css-loader":"^2.0.1","css-to-string-loader":"^0.1.3","cypress":"4.0.1","documentation":"^12.0.1","eslint":"^6.3.0","eslint-config-prettier":"^6.3.0","eslint-plugin-prettier":"^3.1.0","husky":"^1.2.1","identity-obj-proxy":"^3.0.0","jest":"^24.9.0","jison":"^0.4.18","moment":"^2.23.0","node-sass":"^4.12.0","prettier":"^1.18.2","puppeteer":"^1.17.0","sass-loader":"^7.1.0","start-server-and-test":"^1.10.6","terser-webpack-plugin":"^2.2.2","webpack":"^4.41.2","webpack-bundle-analyzer":"^3.7.0","webpack-cli":"^3.1.2","webpack-dev-server":"^3.4.1","webpack-node-externals":"^1.7.2","yarn-upgrade-all":"^0.5.0"},"files":["dist"],"yarn-upgrade-all":{"ignore":["babel-core"]},"sideEffects":["**/*.css","**/*.scss"],"husky":{"hooks":{"pre-push":"yarn test"}}}' + ); + }, + function (e, t, n) { + e.exports = n(615); + }, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) { + (function (e, t) { + (function () { + 'use strict'; + function n(e) { + var t = this.constructor; + return this.then( + function (n) { + return t.resolve(e()).then(function () { + return n; + }); + }, + function (n) { + return t.resolve(e()).then(function () { + return t.reject(n); + }); + } + ); + } + var r = setTimeout; + function i() {} + function o(e) { + if (!(this instanceof o)) + throw new TypeError('Promises must be constructed via new'); + if ('function' != typeof e) throw new TypeError('not a function'); + (this._state = 0), + (this._handled = !1), + (this._value = void 0), + (this._deferreds = []), + d(e, this); + } + function s(e, t) { + for (; 3 === e._state; ) e = e._value; + 0 !== e._state + ? ((e._handled = !0), + o._immediateFn(function () { + var n = 1 === e._state ? t.onFulfilled : t.onRejected; + if (null !== n) { + var r; + try { + r = n(e._value); + } catch (e) { + return void u(t.promise, e); + } + a(t.promise, r); + } else (1 === e._state ? a : u)(t.promise, e._value); + })) + : e._deferreds.push(t); + } + function a(e, t) { + try { + if (t === e) + throw new TypeError('A promise cannot be resolved with itself.'); + if (t && ('object' == typeof t || 'function' == typeof t)) { + var n = t.then; + if (t instanceof o) + return (e._state = 3), (e._value = t), void l(e); + if ('function' == typeof n) + return void d( + ((r = n), + (i = t), + function () { + r.apply(i, arguments); + }), + e + ); + } + (e._state = 1), (e._value = t), l(e); + } catch (t) { + u(e, t); + } + var r, i; + } + function u(e, t) { + (e._state = 2), (e._value = t), l(e); + } + function l(e) { + 2 === e._state && + 0 === e._deferreds.length && + o._immediateFn(function () { + e._handled || o._unhandledRejectionFn(e._value); + }); + for (var t = 0, n = e._deferreds.length; t < n; t++) + s(e, e._deferreds[t]); + e._deferreds = null; + } + function c(e, t, n) { + (this.onFulfilled = 'function' == typeof e ? e : null), + (this.onRejected = 'function' == typeof t ? t : null), + (this.promise = n); + } + function d(e, t) { + var n = !1; + try { + e( + function (e) { + n || ((n = !0), a(t, e)); + }, + function (e) { + n || ((n = !0), u(t, e)); + } + ); + } catch (e) { + if (n) return; + (n = !0), u(t, e); + } + } + (o.prototype.catch = function (e) { + return this.then(null, e); + }), + (o.prototype.then = function (e, t) { + var n = new this.constructor(i); + return s(this, new c(e, t, n)), n; + }), + (o.prototype.finally = n), + (o.all = function (e) { + return new o(function (t, n) { + if (!e || void 0 === e.length) + throw new TypeError('Promise.all accepts an array'); + var r = Array.prototype.slice.call(e); + if (0 === r.length) return t([]); + var i = r.length; + function o(e, s) { + try { + if (s && ('object' == typeof s || 'function' == typeof s)) { + var a = s.then; + if ('function' == typeof a) + return void a.call( + s, + function (t) { + o(e, t); + }, + n + ); + } + (r[e] = s), 0 == --i && t(r); + } catch (e) { + n(e); + } + } + for (var s = 0; s < r.length; s++) o(s, r[s]); + }); + }), + (o.resolve = function (e) { + return e && 'object' == typeof e && e.constructor === o + ? e + : new o(function (t) { + t(e); + }); + }), + (o.reject = function (e) { + return new o(function (t, n) { + n(e); + }); + }), + (o.race = function (e) { + return new o(function (t, n) { + for (var r = 0, i = e.length; r < i; r++) e[r].then(t, n); + }); + }), + (o._immediateFn = + ('function' == typeof e && + function (t) { + e(t); + }) || + function (e) { + r(e, 0); + }), + (o._unhandledRejectionFn = function (e) { + 'undefined' != typeof console && + console && + console.warn('Possible Unhandled Promise Rejection:', e); + }); + var h = (function () { + if ('undefined' != typeof self) return self; + if ('undefined' != typeof window) return window; + if (void 0 !== t) return t; + throw new Error('unable to locate global object'); + })(); + 'Promise' in h + ? h.Promise.prototype.finally || (h.Promise.prototype.finally = n) + : (h.Promise = o); + })(); + }.call(this, n(330).setImmediate, n(30))); + }, + function (e, t, n) { + (function (e) { + var r = + (void 0 !== e && e) || ('undefined' != typeof self && self) || window, + i = Function.prototype.apply; + function o(e, t) { + (this._id = e), (this._clearFn = t); + } + (t.setTimeout = function () { + return new o(i.call(setTimeout, r, arguments), clearTimeout); + }), + (t.setInterval = function () { + return new o(i.call(setInterval, r, arguments), clearInterval); + }), + (t.clearTimeout = t.clearInterval = function (e) { + e && e.close(); + }), + (o.prototype.unref = o.prototype.ref = function () {}), + (o.prototype.close = function () { + this._clearFn.call(r, this._id); + }), + (t.enroll = function (e, t) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = t); + }), + (t.unenroll = function (e) { + clearTimeout(e._idleTimeoutId), (e._idleTimeout = -1); + }), + (t._unrefActive = t.active = function (e) { + clearTimeout(e._idleTimeoutId); + var t = e._idleTimeout; + t >= 0 && + (e._idleTimeoutId = setTimeout(function () { + e._onTimeout && e._onTimeout(); + }, t)); + }), + n(331), + (t.setImmediate = + ('undefined' != typeof self && self.setImmediate) || + (void 0 !== e && e.setImmediate) || + (this && this.setImmediate)), + (t.clearImmediate = + ('undefined' != typeof self && self.clearImmediate) || + (void 0 !== e && e.clearImmediate) || + (this && this.clearImmediate)); + }.call(this, n(30))); + }, + function (e, t, n) { + (function (e, t) { + !(function (e, n) { + 'use strict'; + if (!e.setImmediate) { + var r, + i, + o, + s, + a, + u = 1, + l = {}, + c = !1, + d = e.document, + h = Object.getPrototypeOf && Object.getPrototypeOf(e); + (h = h && h.setTimeout ? h : e), + '[object process]' === {}.toString.call(e.process) + ? (r = function (e) { + t.nextTick(function () { + p(e); + }); + }) + : !(function () { + if (e.postMessage && !e.importScripts) { + var t = !0, + n = e.onmessage; + return ( + (e.onmessage = function () { + t = !1; + }), + e.postMessage('', '*'), + (e.onmessage = n), + t + ); + } + })() + ? e.MessageChannel + ? (((o = new MessageChannel()).port1.onmessage = function (e) { + p(e.data); + }), + (r = function (e) { + o.port2.postMessage(e); + })) + : d && 'onreadystatechange' in d.createElement('script') + ? ((i = d.documentElement), + (r = function (e) { + var t = d.createElement('script'); + (t.onreadystatechange = function () { + p(e), + (t.onreadystatechange = null), + i.removeChild(t), + (t = null); + }), + i.appendChild(t); + })) + : (r = function (e) { + setTimeout(p, 0, e); + }) + : ((s = 'setImmediate$' + Math.random() + '$'), + (a = function (t) { + t.source === e && + 'string' == typeof t.data && + 0 === t.data.indexOf(s) && + p(+t.data.slice(s.length)); + }), + e.addEventListener + ? e.addEventListener('message', a, !1) + : e.attachEvent('onmessage', a), + (r = function (t) { + e.postMessage(s + t, '*'); + })), + (h.setImmediate = function (e) { + 'function' != typeof e && (e = new Function('' + e)); + for ( + var t = new Array(arguments.length - 1), n = 0; + n < t.length; + n++ + ) + t[n] = arguments[n + 1]; + var i = { callback: e, args: t }; + return (l[u] = i), r(u), u++; + }), + (h.clearImmediate = f); + } + function f(e) { + delete l[e]; + } + function p(e) { + if (c) setTimeout(p, 0, e); + else { + var t = l[e]; + if (t) { + c = !0; + try { + !(function (e) { + var t = e.callback, + r = e.args; + switch (r.length) { + case 0: + t(); + break; + case 1: + t(r[0]); + break; + case 2: + t(r[0], r[1]); + break; + case 3: + t(r[0], r[1], r[2]); + break; + default: + t.apply(n, r); + } + })(t); + } finally { + f(e), (c = !1); + } + } + } + } + })('undefined' == typeof self ? (void 0 === e ? this : e) : self); + }.call(this, n(30), n(72))); + }, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) { + 'use strict'; + e.exports = function (e) { + var t = e.stateHandler.getState; + return { + isDetectable: function (e) { + var n = t(e); + return n && !!n.isDetectable; + }, + markAsDetectable: function (e) { + t(e).isDetectable = !0; + }, + isBusy: function (e) { + return !!t(e).busy; + }, + markBusy: function (e, n) { + t(e).busy = !!n; + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + e.exports = function (e) { + var t = {}; + function n(n) { + var r = e.get(n); + return void 0 === r ? [] : t[r] || []; + } + return { + get: n, + add: function (n, r) { + var i = e.get(n); + t[i] || (t[i] = []), t[i].push(r); + }, + removeListener: function (e, t) { + for (var r = n(e), i = 0, o = r.length; i < o; ++i) + if (r[i] === t) { + r.splice(i, 1); + break; + } + }, + removeAllListeners: function (e) { + var t = n(e); + t && (t.length = 0); + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + e.exports = function () { + var e = 1; + return { + generate: function () { + return e++; + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + e.exports = function (e) { + var t = e.idGenerator, + n = e.stateHandler.getState; + return { + get: function (e) { + var t = n(e); + return t && void 0 !== t.id ? t.id : null; + }, + set: function (e) { + var r = n(e); + if (!r) + throw new Error( + 'setId required the element to have a resize detection state.' + ); + var i = t.generate(); + return (r.id = i), i; + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + e.exports = function (e) { + function t() {} + var n = { log: t, warn: t, error: t }; + if (!e && window.console) { + var r = function (e, t) { + e[t] = function () { + var e = console[t]; + if (e.apply) e.apply(console, arguments); + else for (var n = 0; n < arguments.length; n++) e(arguments[n]); + }; + }; + r(n, 'log'), r(n, 'warn'), r(n, 'error'); + } + return n; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(364); + function i() { + var e = {}, + t = 0, + n = 0, + r = 0; + return { + add: function (i, o) { + o || ((o = i), (i = 0)), + i > n ? (n = i) : i < r && (r = i), + e[i] || (e[i] = []), + e[i].push(o), + t++; + }, + process: function () { + for (var t = r; t <= n; t++) + for (var i = e[t], o = 0; o < i.length; o++) { + (0, i[o])(); + } + }, + size: function () { + return t; + }, + }; + } + e.exports = function (e) { + var t = (e = e || {}).reporter, + n = r.getOption(e, 'async', !0), + o = r.getOption(e, 'auto', !0); + o && + !n && + (t && + t.warn( + 'Invalid options combination. auto=true and async=false is invalid. Setting async=true.' + ), + (n = !0)); + var s, + a = i(), + u = !1; + function l() { + for (u = !0; a.size(); ) { + var e = a; + (a = i()), e.process(); + } + u = !1; + } + function c() { + var e; + (e = l), (s = setTimeout(e, 0)); + } + return { + add: function (e, t) { + !u && o && n && 0 === a.size() && c(), a.add(e, t); + }, + force: function (e) { + u || + (void 0 === e && (e = n), + s && (clearTimeout(s), (s = null)), + e ? c() : l()); + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + (e.exports = {}).getOption = function (e, t, n) { + var r = e[t]; + if (null == r && void 0 !== n) return n; + return r; + }; + }, + function (e, t, n) { + 'use strict'; + var r = '_erd'; + function i(e) { + return e[r]; + } + e.exports = { + initState: function (e) { + return (e[r] = {}), i(e); + }, + getState: i, + cleanState: function (e) { + delete e[r]; + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(102); + e.exports = function (e) { + var t = (e = e || {}).reporter, + n = e.batchProcessor, + i = e.stateHandler.getState; + if (!t) throw new Error('Missing required dependency: reporter.'); + function o(t) { + var n = e.important ? ' !important; ' : '; '; + return (t.join(n) + n).trim(); + } + function s(e) { + return i(e).object; + } + return { + makeDetectable: function (e, s, a) { + a || ((a = s), (s = e), (e = null)), + (e = e || {}).debug, + r.isIE(8) + ? a(s) + : (function (s, a) { + var u = o([ + 'display: block', + 'position: absolute', + 'top: 0', + 'left: 0', + 'width: 100%', + 'height: 100%', + 'border: none', + 'padding: 0', + 'margin: 0', + 'opacity: 0', + 'z-index: -1000', + 'pointer-events: none', + ]), + l = !1, + c = window.getComputedStyle(s), + d = s.offsetWidth, + h = s.offsetHeight; + function f() { + function n() { + if ('static' === c.position) { + s.style.setProperty( + 'position', + 'relative', + e.important ? 'important' : '' + ); + var n = function (t, n, r, i) { + var o = r[i]; + 'auto' !== o && + '0' !== + (function (e) { + return e.replace(/[^-\d\.]/g, ''); + })(o) && + (t.warn( + 'An element that is positioned static has style.' + + i + + '=' + + o + + ' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' + + i + + ' will be set to 0. Element: ', + n + ), + n.style.setProperty( + i, + '0', + e.important ? 'important' : '' + )); + }; + n(t, s, c, 'top'), + n(t, s, c, 'right'), + n(t, s, c, 'bottom'), + n(t, s, c, 'left'); + } + } + '' !== c.position && (n(), (l = !0)); + var o = document.createElement('object'); + (o.style.cssText = u), + (o.tabIndex = -1), + (o.type = 'text/html'), + o.setAttribute('aria-hidden', 'true'), + (o.onload = function () { + l || n(), + (function e(t, n) { + if (!t.contentDocument) { + var r = i(t); + return ( + r.checkForObjectDocumentTimeoutId && + window.clearTimeout( + r.checkForObjectDocumentTimeoutId + ), + void (r.checkForObjectDocumentTimeoutId = setTimeout( + function () { + (r.checkForObjectDocumentTimeoutId = 0), + e(t, n); + }, + 100 + )) + ); + } + n(t.contentDocument); + })(this, function (e) { + a(s); + }); + }), + r.isIE() || (o.data = 'about:blank'), + i(s) && + (s.appendChild(o), + (i(s).object = o), + r.isIE() && (o.data = 'about:blank')); + } + (i(s).startSize = { width: d, height: h }), + n ? n.add(f) : f(); + })(s, a); + }, + addListener: function (e, t) { + function n() { + t(e); + } + if (r.isIE(8)) + (i(e).object = { proxy: n }), e.attachEvent('onresize', n); + else { + var o = s(e); + if (!o) + throw new Error('Element is not detectable by this strategy.'); + o.contentDocument.defaultView.addEventListener('resize', n); + } + }, + uninstall: function (e) { + if (i(e)) { + var t = s(e); + t && + (r.isIE(8) + ? e.detachEvent('onresize', t.proxy) + : e.removeChild(t), + i(e).checkForObjectDocumentTimeoutId && + window.clearTimeout(i(e).checkForObjectDocumentTimeoutId), + delete i(e).object); + } + }, + }; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(101).forEach; + e.exports = function (e) { + var t = (e = e || {}).reporter, + n = e.batchProcessor, + i = e.stateHandler.getState, + o = (e.stateHandler.hasState, e.idHandler); + if (!n) throw new Error('Missing required dependency: batchProcessor'); + if (!t) throw new Error('Missing required dependency: reporter.'); + var s = (function () { + var e = document.createElement('div'); + e.style.cssText = c([ + 'position: absolute', + 'width: 1000px', + 'height: 1000px', + 'visibility: hidden', + 'margin: 0', + 'padding: 0', + ]); + var t = document.createElement('div'); + (t.style.cssText = c([ + 'position: absolute', + 'width: 500px', + 'height: 500px', + 'overflow: scroll', + 'visibility: none', + 'top: -1500px', + 'left: -1500px', + 'visibility: hidden', + 'margin: 0', + 'padding: 0', + ])), + t.appendChild(e), + document.body.insertBefore(t, document.body.firstChild); + var n = 500 - t.clientWidth, + r = 500 - t.clientHeight; + return document.body.removeChild(t), { width: n, height: r }; + })(), + a = 'erd_scroll_detection_scrollbar_style', + u = 'erd_scroll_detection_container'; + function l(e) { + !(function (e, t, n) { + if (!e.getElementById(t)) { + var r = n + '_animation', + i = n + '_animation_active', + o = '/* Created by the element-resize-detector library. */\n'; + (o += + '.' + + n + + ' > div::-webkit-scrollbar { ' + + c(['display: none']) + + ' }\n\n'), + (o += + '.' + + i + + ' { ' + + c([ + '-webkit-animation-duration: 0.1s', + 'animation-duration: 0.1s', + '-webkit-animation-name: ' + r, + 'animation-name: ' + r, + ]) + + ' }\n'), + (o += + '@-webkit-keyframes ' + + r + + ' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n'), + (function (n, r) { + r = + r || + function (t) { + e.head.appendChild(t); + }; + var i = e.createElement('style'); + (i.innerHTML = n), (i.id = t), r(i); + })( + (o += + '@keyframes ' + + r + + ' { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }') + ); + } + })(e, a, u); + } + function c(t) { + var n = e.important ? ' !important; ' : '; '; + return (t.join(n) + n).trim(); + } + function d(e, n, r) { + if (e.addEventListener) e.addEventListener(n, r); + else { + if (!e.attachEvent) + return t.error("[scroll] Don't know how to add event listeners."); + e.attachEvent('on' + n, r); + } + } + function h(e, n, r) { + if (e.removeEventListener) e.removeEventListener(n, r); + else { + if (!e.detachEvent) + return t.error( + "[scroll] Don't know how to remove event listeners." + ); + e.detachEvent('on' + n, r); + } + } + function f(e) { + return i(e).container.childNodes[0].childNodes[0].childNodes[0]; + } + function p(e) { + return i(e).container.childNodes[0].childNodes[0].childNodes[1]; + } + return ( + l(window.document), + { + makeDetectable: function (e, a, l) { + function h() { + if (e.debug) { + var n = Array.prototype.slice.call(arguments); + if ((n.unshift(o.get(a), 'Scroll: '), t.log.apply)) + t.log.apply(null, n); + else for (var r = 0; r < n.length; r++) t.log(n[r]); + } + } + function g(e) { + var t = i(e).container.childNodes[0], + n = window.getComputedStyle(t); + return !n.width || -1 === n.width.indexOf('px'); + } + function m() { + var e = window.getComputedStyle(a), + t = {}; + return ( + (t.position = e.position), + (t.width = a.offsetWidth), + (t.height = a.offsetHeight), + (t.top = e.top), + (t.right = e.right), + (t.bottom = e.bottom), + (t.left = e.left), + (t.widthCSS = e.width), + (t.heightCSS = e.height), + t + ); + } + function _() { + if ((h('storeStyle invoked.'), i(a))) { + var e = m(); + i(a).style = e; + } else h('Aborting because element has been uninstalled'); + } + function y(e, t, n) { + (i(e).lastWidth = t), (i(e).lastHeight = n); + } + function v() { + return 2 * s.width + 1; + } + function b() { + return 2 * s.height + 1; + } + function w(e) { + return e + 10 + v(); + } + function C(e) { + return e + 10 + b(); + } + function S(e, t, n) { + var r = f(e), + i = p(e), + o = w(t), + s = C(n), + a = (function (e) { + return 2 * e + v(); + })(t), + u = (function (e) { + return 2 * e + b(); + })(n); + (r.scrollLeft = o), + (r.scrollTop = s), + (i.scrollLeft = a), + (i.scrollTop = u); + } + function x() { + var e = i(a).container; + if (!e) { + ((e = document.createElement('div')).className = u), + (e.style.cssText = c([ + 'visibility: hidden', + 'display: inline', + 'width: 0px', + 'height: 0px', + 'z-index: -1', + 'overflow: hidden', + 'margin: 0', + 'padding: 0', + ])), + (i(a).container = e), + (function (e) { + e.className += ' ' + u + '_animation_active'; + })(e), + a.appendChild(e); + var t = function () { + i(a).onRendered && i(a).onRendered(); + }; + d(e, 'animationstart', t), (i(a).onAnimationStart = t); + } + return e; + } + function L() { + if ((h('Injecting elements'), i(a))) { + !(function () { + var n = i(a).style; + if ('static' === n.position) { + a.style.setProperty( + 'position', + 'relative', + e.important ? 'important' : '' + ); + var r = function (e, t, n, r) { + var i = n[r]; + 'auto' !== i && + '0' !== + (function (e) { + return e.replace(/[^-\d\.]/g, ''); + })(i) && + (e.warn( + 'An element that is positioned static has style.' + + r + + '=' + + i + + ' which is ignored due to the static positioning. The element will need to be positioned relative, so the style.' + + r + + ' will be set to 0. Element: ', + t + ), + (t.style[r] = 0)); + }; + r(t, a, n, 'top'), + r(t, a, n, 'right'), + r(t, a, n, 'bottom'), + r(t, a, n, 'left'); + } + })(); + var n = i(a).container; + n || (n = x()); + var r, + o, + l, + f, + p = s.width, + g = s.height, + m = c([ + 'position: absolute', + 'flex: none', + 'overflow: hidden', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + 'left: 0px', + 'top: 0px', + ]), + _ = c( + [ + 'position: absolute', + 'flex: none', + 'overflow: hidden', + 'z-index: -1', + 'visibility: hidden', + ].concat([ + 'left: ' + (r = (r = -(1 + p)) ? r + 'px' : '0'), + 'top: ' + (o = (o = -(1 + g)) ? o + 'px' : '0'), + 'right: ' + (f = (f = -p) ? f + 'px' : '0'), + 'bottom: ' + (l = (l = -g) ? l + 'px' : '0'), + ]) + ), + y = c([ + 'position: absolute', + 'flex: none', + 'overflow: scroll', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + ]), + v = c([ + 'position: absolute', + 'flex: none', + 'overflow: scroll', + 'z-index: -1', + 'visibility: hidden', + 'width: 100%', + 'height: 100%', + ]), + b = c(['position: absolute', 'left: 0', 'top: 0']), + w = c(['position: absolute', 'width: 200%', 'height: 200%']), + C = document.createElement('div'), + S = document.createElement('div'), + L = document.createElement('div'), + k = document.createElement('div'), + M = document.createElement('div'), + D = document.createElement('div'); + (C.dir = 'ltr'), + (C.style.cssText = m), + (C.className = u), + (S.className = u), + (S.style.cssText = _), + (L.style.cssText = y), + (k.style.cssText = b), + (M.style.cssText = v), + (D.style.cssText = w), + L.appendChild(k), + M.appendChild(D), + S.appendChild(L), + S.appendChild(M), + C.appendChild(S), + n.appendChild(C), + d(L, 'scroll', E), + d(M, 'scroll', T), + (i(a).onExpandScroll = E), + (i(a).onShrinkScroll = T); + } else h('Aborting because element has been uninstalled'); + function E() { + i(a).onExpand && i(a).onExpand(); + } + function T() { + i(a).onShrink && i(a).onShrink(); + } + } + function k() { + function s(t, n, r) { + var i = (function (e) { + return f(e).childNodes[0]; + })(t), + o = w(n), + s = C(r); + i.style.setProperty( + 'width', + o + 'px', + e.important ? 'important' : '' + ), + i.style.setProperty( + 'height', + s + 'px', + e.important ? 'important' : '' + ); + } + function u(r) { + var u = a.offsetWidth, + c = a.offsetHeight, + d = u !== i(a).lastWidth || c !== i(a).lastHeight; + h('Storing current size', u, c), + y(a, u, c), + n.add(0, function () { + if (d) + if (i(a)) + if (l()) { + if (e.debug) { + var n = a.offsetWidth, + r = a.offsetHeight; + (n === u && r === c) || + t.warn( + o.get(a), + 'Scroll: Size changed before updating detector elements.' + ); + } + s(a, u, c); + } else + h( + 'Aborting because element container has not been initialized' + ); + else h('Aborting because element has been uninstalled'); + }), + n.add(1, function () { + i(a) + ? l() + ? S(a, u, c) + : h( + 'Aborting because element container has not been initialized' + ) + : h('Aborting because element has been uninstalled'); + }), + d && + r && + n.add(2, function () { + i(a) + ? l() + ? r() + : h( + 'Aborting because element container has not been initialized' + ) + : h('Aborting because element has been uninstalled'); + }); + } + function l() { + return !!i(a).container; + } + function c() { + h('notifyListenersIfNeeded invoked'); + var e = i(a); + return void 0 === i(a).lastNotifiedWidth && + e.lastWidth === e.startSize.width && + e.lastHeight === e.startSize.height + ? h( + 'Not notifying: Size is the same as the start size, and there has been no notification yet.' + ) + : e.lastWidth === e.lastNotifiedWidth && + e.lastHeight === e.lastNotifiedHeight + ? h('Not notifying: Size already notified') + : (h('Current size not notified, notifying...'), + (e.lastNotifiedWidth = e.lastWidth), + (e.lastNotifiedHeight = e.lastHeight), + void r(i(a).listeners, function (e) { + e(a); + })); + } + function d() { + h('Scroll detected.'), + g(a) + ? h('Scroll event fired while unrendered. Ignoring...') + : u(c); + } + if ((h('registerListenersAndPositionElements invoked.'), i(a))) { + (i(a).onRendered = function () { + if ((h('startanimation triggered.'), g(a))) + h('Ignoring since element is still unrendered...'); + else { + h('Element rendered.'); + var e = f(a), + t = p(a); + (0 !== e.scrollLeft && + 0 !== e.scrollTop && + 0 !== t.scrollLeft && + 0 !== t.scrollTop) || + (h( + 'Scrollbars out of sync. Updating detector elements...' + ), + u(c)); + } + }), + (i(a).onExpand = d), + (i(a).onShrink = d); + var m = i(a).style; + s(a, m.width, m.height); + } else h('Aborting because element has been uninstalled'); + } + function M() { + if ((h('finalizeDomMutation invoked.'), i(a))) { + var e = i(a).style; + y(a, e.width, e.height), S(a, e.width, e.height); + } else h('Aborting because element has been uninstalled'); + } + function D() { + l(a); + } + function E() { + var e; + h('Installing...'), + (i(a).listeners = []), + (e = m()), + (i(a).startSize = { width: e.width, height: e.height }), + h('Element start size', i(a).startSize), + n.add(0, _), + n.add(1, L), + n.add(2, k), + n.add(3, M), + n.add(4, D); + } + l || ((l = a), (a = e), (e = null)), + (e = e || {}), + h('Making detectable...'), + !(function (e) { + return ( + !(function (e) { + return ( + e === e.ownerDocument.body || + e.ownerDocument.body.contains(e) + ); + })(e) || null === window.getComputedStyle(e) + ); + })(a) + ? E() + : (h('Element is detached'), + x(), + h('Waiting until element is attached...'), + (i(a).onRendered = function () { + h('Element is now attached'), E(); + })); + }, + addListener: function (e, t) { + if (!i(e).listeners.push) + throw new Error( + 'Cannot add listener to an element that is not detectable.' + ); + i(e).listeners.push(t); + }, + uninstall: function (e) { + var t = i(e); + t && + (t.onExpandScroll && h(f(e), 'scroll', t.onExpandScroll), + t.onShrinkScroll && h(p(e), 'scroll', t.onShrinkScroll), + t.onAnimationStart && + h(t.container, 'animationstart', t.onAnimationStart), + t.container && e.removeChild(t.container)); + }, + initDocument: l, + } + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r = /^(%20|\s)*(javascript|data)/im, + i = /[^\x20-\x7E]/gim, + o = /^([^:]+):/gm, + s = ['.', '/']; + e.exports = { + sanitizeUrl: function (e) { + if (!e) return 'about:blank'; + var t, + n, + a = e.replace(i, '').trim(); + return (function (e) { + return s.indexOf(e[0]) > -1; + })(a) + ? a + : (n = a.match(o)) + ? ((t = n[0]), r.test(t) ? 'about:blank' : a) + : 'about:blank'; + }, + }; + }, + function (e, t, n) { + e.exports = { + graphlib: n(13), + layout: n(477), + debug: n(519), + util: { time: n(5).time, notime: n(5).notime }, + version: n(520), + }; + }, + function (e, t, n) { + e.exports = { Graph: n(73), version: n(466) }; + }, + function (e, t) { + e.exports = function () { + (this.__data__ = []), (this.size = 0); + }; + }, + function (e, t, n) { + var r = n(49), + i = Array.prototype.splice; + e.exports = function (e) { + var t = this.__data__, + n = r(t, e); + return ( + !(n < 0) && + (n == t.length - 1 ? t.pop() : i.call(t, n, 1), --this.size, !0) + ); + }; + }, + function (e, t, n) { + var r = n(49); + e.exports = function (e) { + var t = this.__data__, + n = r(t, e); + return n < 0 ? void 0 : t[n][1]; + }; + }, + function (e, t, n) { + var r = n(49); + e.exports = function (e) { + return r(this.__data__, e) > -1; + }; + }, + function (e, t, n) { + var r = n(49); + e.exports = function (e, t) { + var n = this.__data__, + i = r(n, e); + return i < 0 ? (++this.size, n.push([e, t])) : (n[i][1] = t), this; + }; + }, + function (e, t, n) { + var r = n(48); + e.exports = function () { + (this.__data__ = new r()), (this.size = 0); + }; + }, + function (e, t) { + e.exports = function (e) { + var t = this.__data__, + n = t.delete(e); + return (this.size = t.size), n; + }; + }, + function (e, t) { + e.exports = function (e) { + return this.__data__.get(e); + }; + }, + function (e, t) { + e.exports = function (e) { + return this.__data__.has(e); + }; + }, + function (e, t, n) { + var r = n(48), + i = n(74), + o = n(75), + s = 200; + e.exports = function (e, t) { + var n = this.__data__; + if (n instanceof r) { + var a = n.__data__; + if (!i || a.length < s - 1) + return a.push([e, t]), (this.size = ++n.size), this; + n = this.__data__ = new o(a); + } + return n.set(e, t), (this.size = n.size), this; + }; + }, + function (e, t, n) { + var r = n(26), + i = n(384), + o = n(8), + s = n(107), + a = /^\[object .+?Constructor\]$/, + u = Function.prototype, + l = Object.prototype, + c = u.toString, + d = l.hasOwnProperty, + h = RegExp( + '^' + + c + .call(d) + .replace(/[\\^$.*+?()[\]{}|]/g, '\\$&') + .replace( + /hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, + '$1.*?' + ) + + '$' + ); + e.exports = function (e) { + return !(!o(e) || i(e)) && (r(e) ? h : a).test(s(e)); + }; + }, + function (e, t, n) { + var r = n(32), + i = Object.prototype, + o = i.hasOwnProperty, + s = i.toString, + a = r ? r.toStringTag : void 0; + e.exports = function (e) { + var t = o.call(e, a), + n = e[a]; + try { + e[a] = void 0; + var r = !0; + } catch (e) {} + var i = s.call(e); + return r && (t ? (e[a] = n) : delete e[a]), i; + }; + }, + function (e, t) { + var n = Object.prototype.toString; + e.exports = function (e) { + return n.call(e); + }; + }, + function (e, t, n) { + var r, + i = n(385), + o = (r = /[^.]+$/.exec((i && i.keys && i.keys.IE_PROTO) || '')) + ? 'Symbol(src)_1.' + r + : ''; + e.exports = function (e) { + return !!o && o in e; + }; + }, + function (e, t, n) { + var r = n(14)['__core-js_shared__']; + e.exports = r; + }, + function (e, t) { + e.exports = function (e, t) { + return null == e ? void 0 : e[t]; + }; + }, + function (e, t, n) { + var r = n(388), + i = n(48), + o = n(74); + e.exports = function () { + (this.size = 0), + (this.__data__ = { + hash: new r(), + map: new (o || i)(), + string: new r(), + }); + }; + }, + function (e, t, n) { + var r = n(389), + i = n(390), + o = n(391), + s = n(392), + a = n(393); + function u(e) { + var t = -1, + n = null == e ? 0 : e.length; + for (this.clear(); ++t < n; ) { + var r = e[t]; + this.set(r[0], r[1]); + } + } + (u.prototype.clear = r), + (u.prototype.delete = i), + (u.prototype.get = o), + (u.prototype.has = s), + (u.prototype.set = a), + (e.exports = u); + }, + function (e, t, n) { + var r = n(50); + e.exports = function () { + (this.__data__ = r ? r(null) : {}), (this.size = 0); + }; + }, + function (e, t) { + e.exports = function (e) { + var t = this.has(e) && delete this.__data__[e]; + return (this.size -= t ? 1 : 0), t; + }; + }, + function (e, t, n) { + var r = n(50), + i = '__lodash_hash_undefined__', + o = Object.prototype.hasOwnProperty; + e.exports = function (e) { + var t = this.__data__; + if (r) { + var n = t[e]; + return n === i ? void 0 : n; + } + return o.call(t, e) ? t[e] : void 0; + }; + }, + function (e, t, n) { + var r = n(50), + i = Object.prototype.hasOwnProperty; + e.exports = function (e) { + var t = this.__data__; + return r ? void 0 !== t[e] : i.call(t, e); + }; + }, + function (e, t, n) { + var r = n(50), + i = '__lodash_hash_undefined__'; + e.exports = function (e, t) { + var n = this.__data__; + return ( + (this.size += this.has(e) ? 0 : 1), + (n[e] = r && void 0 === t ? i : t), + this + ); + }; + }, + function (e, t, n) { + var r = n(51); + e.exports = function (e) { + var t = r(this, e).delete(e); + return (this.size -= t ? 1 : 0), t; + }; + }, + function (e, t) { + e.exports = function (e) { + var t = typeof e; + return 'string' == t || 'number' == t || 'symbol' == t || 'boolean' == t + ? '__proto__' !== e + : null === e; + }; + }, + function (e, t, n) { + var r = n(51); + e.exports = function (e) { + return r(this, e).get(e); + }; + }, + function (e, t, n) { + var r = n(51); + e.exports = function (e) { + return r(this, e).has(e); + }; + }, + function (e, t, n) { + var r = n(51); + e.exports = function (e, t) { + var n = r(this, e), + i = n.size; + return n.set(e, t), (this.size += n.size == i ? 0 : 1), this; + }; + }, + function (e, t, n) { + var r = n(38), + i = n(19); + e.exports = function (e, t) { + return e && r(t, i(t), e); + }; + }, + function (e, t) { + e.exports = function (e, t) { + for (var n = -1, r = Array(e); ++n < e; ) r[n] = t(n); + return r; + }; + }, + function (e, t, n) { + var r = n(27), + i = n(18), + o = '[object Arguments]'; + e.exports = function (e) { + return i(e) && r(e) == o; + }; + }, + function (e, t) { + e.exports = function () { + return !1; + }; + }, + function (e, t, n) { + var r = n(27), + i = n(77), + o = n(18), + s = {}; + (s['[object Float32Array]'] = s['[object Float64Array]'] = s[ + '[object Int8Array]' + ] = s['[object Int16Array]'] = s['[object Int32Array]'] = s[ + '[object Uint8Array]' + ] = s['[object Uint8ClampedArray]'] = s['[object Uint16Array]'] = s[ + '[object Uint32Array]' + ] = !0), + (s['[object Arguments]'] = s['[object Array]'] = s[ + '[object ArrayBuffer]' + ] = s['[object Boolean]'] = s['[object DataView]'] = s[ + '[object Date]' + ] = s['[object Error]'] = s['[object Function]'] = s['[object Map]'] = s[ + '[object Number]' + ] = s['[object Object]'] = s['[object RegExp]'] = s['[object Set]'] = s[ + '[object String]' + ] = s['[object WeakMap]'] = !1), + (e.exports = function (e) { + return o(e) && i(e.length) && !!s[r(e)]; + }); + }, + function (e, t, n) { + var r = n(110)(Object.keys, Object); + e.exports = r; + }, + function (e, t, n) { + var r = n(38), + i = n(34); + e.exports = function (e, t) { + return e && r(t, i(t), e); + }; + }, + function (e, t, n) { + var r = n(8), + i = n(56), + o = n(407), + s = Object.prototype.hasOwnProperty; + e.exports = function (e) { + if (!r(e)) return o(e); + var t = i(e), + n = []; + for (var a in e) + ('constructor' != a || (!t && s.call(e, a))) && n.push(a); + return n; + }; + }, + function (e, t) { + e.exports = function (e) { + var t = []; + if (null != e) for (var n in Object(e)) t.push(n); + return t; + }; + }, + function (e, t, n) { + var r = n(38), + i = n(80); + e.exports = function (e, t) { + return r(e, i(e), t); + }; + }, + function (e, t, n) { + var r = n(38), + i = n(115); + e.exports = function (e, t) { + return r(e, i(e), t); + }; + }, + function (e, t, n) { + var r = n(117), + i = n(115), + o = n(34); + e.exports = function (e) { + return r(e, o, i); + }; + }, + function (e, t, n) { + var r = n(25)(n(14), 'DataView'); + e.exports = r; + }, + function (e, t, n) { + var r = n(25)(n(14), 'Promise'); + e.exports = r; + }, + function (e, t, n) { + var r = n(25)(n(14), 'WeakMap'); + e.exports = r; + }, + function (e, t) { + var n = Object.prototype.hasOwnProperty; + e.exports = function (e) { + var t = e.length, + r = new e.constructor(t); + return ( + t && + 'string' == typeof e[0] && + n.call(e, 'index') && + ((r.index = e.index), (r.input = e.input)), + r + ); + }; + }, + function (e, t, n) { + var r = n(82), + i = n(416), + o = n(417), + s = n(418), + a = n(120), + u = '[object Boolean]', + l = '[object Date]', + c = '[object Map]', + d = '[object Number]', + h = '[object RegExp]', + f = '[object Set]', + p = '[object String]', + g = '[object Symbol]', + m = '[object ArrayBuffer]', + _ = '[object DataView]', + y = '[object Float32Array]', + v = '[object Float64Array]', + b = '[object Int8Array]', + w = '[object Int16Array]', + C = '[object Int32Array]', + S = '[object Uint8Array]', + x = '[object Uint8ClampedArray]', + L = '[object Uint16Array]', + k = '[object Uint32Array]'; + e.exports = function (e, t, n) { + var M = e.constructor; + switch (t) { + case m: + return r(e); + case u: + case l: + return new M(+e); + case _: + return i(e, n); + case y: + case v: + case b: + case w: + case C: + case S: + case x: + case L: + case k: + return a(e, n); + case c: + return new M(); + case d: + case p: + return new M(e); + case h: + return o(e); + case f: + return new M(); + case g: + return s(e); + } + }; + }, + function (e, t, n) { + var r = n(82); + e.exports = function (e, t) { + var n = t ? r(e.buffer) : e.buffer; + return new e.constructor(n, e.byteOffset, e.byteLength); + }; + }, + function (e, t) { + var n = /\w*$/; + e.exports = function (e) { + var t = new e.constructor(e.source, n.exec(e)); + return (t.lastIndex = e.lastIndex), t; + }; + }, + function (e, t, n) { + var r = n(32), + i = r ? r.prototype : void 0, + o = i ? i.valueOf : void 0; + e.exports = function (e) { + return o ? Object(o.call(e)) : {}; + }; + }, + function (e, t, n) { + var r = n(420), + i = n(55), + o = n(78), + s = o && o.isMap, + a = s ? i(s) : r; + e.exports = a; + }, + function (e, t, n) { + var r = n(35), + i = n(18), + o = '[object Map]'; + e.exports = function (e) { + return i(e) && r(e) == o; + }; + }, + function (e, t, n) { + var r = n(422), + i = n(55), + o = n(78), + s = o && o.isSet, + a = s ? i(s) : r; + e.exports = a; + }, + function (e, t, n) { + var r = n(35), + i = n(18), + o = '[object Set]'; + e.exports = function (e) { + return i(e) && r(e) == o; + }; + }, + function (e, t) { + e.exports = function (e) { + return function (t, n, r) { + for (var i = -1, o = Object(t), s = r(t), a = s.length; a--; ) { + var u = s[e ? a : ++i]; + if (!1 === n(o[u], u, o)) break; + } + return t; + }; + }; + }, + function (e, t, n) { + var r = n(20); + e.exports = function (e, t) { + return function (n, i) { + if (null == n) return n; + if (!r(n)) return e(n, i); + for ( + var o = n.length, s = t ? o : -1, a = Object(n); + (t ? s-- : ++s < o) && !1 !== i(a[s], s, a); + + ); + return n; + }; + }; + }, + function (e, t, n) { + var r = n(58); + e.exports = function (e, t) { + var n = []; + return ( + r(e, function (e, r, i) { + t(e, r, i) && n.push(e); + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(427), + i = n(435), + o = n(129); + e.exports = function (e) { + var t = i(e); + return 1 == t.length && t[0][2] + ? o(t[0][0], t[0][1]) + : function (n) { + return n === e || r(n, e, t); + }; + }; + }, + function (e, t, n) { + var r = n(47), + i = n(124), + o = 1, + s = 2; + e.exports = function (e, t, n, a) { + var u = n.length, + l = u, + c = !a; + if (null == e) return !l; + for (e = Object(e); u--; ) { + var d = n[u]; + if (c && d[2] ? d[1] !== e[d[0]] : !(d[0] in e)) return !1; + } + for (; ++u < l; ) { + var h = (d = n[u])[0], + f = e[h], + p = d[1]; + if (c && d[2]) { + if (void 0 === f && !(h in e)) return !1; + } else { + var g = new r(); + if (a) var m = a(f, p, h, e, t, g); + if (!(void 0 === m ? i(p, f, o | s, a, g) : m)) return !1; + } + } + return !0; + }; + }, + function (e, t, n) { + var r = n(47), + i = n(125), + o = n(432), + s = n(434), + a = n(35), + u = n(4), + l = n(33), + c = n(41), + d = 1, + h = '[object Arguments]', + f = '[object Array]', + p = '[object Object]', + g = Object.prototype.hasOwnProperty; + e.exports = function (e, t, n, m, _, y) { + var v = u(e), + b = u(t), + w = v ? f : a(e), + C = b ? f : a(t), + S = (w = w == h ? p : w) == p, + x = (C = C == h ? p : C) == p, + L = w == C; + if (L && l(e)) { + if (!l(t)) return !1; + (v = !0), (S = !1); + } + if (L && !S) + return ( + y || (y = new r()), + v || c(e) ? i(e, t, n, m, _, y) : o(e, t, w, n, m, _, y) + ); + if (!(n & d)) { + var k = S && g.call(e, '__wrapped__'), + M = x && g.call(t, '__wrapped__'); + if (k || M) { + var D = k ? e.value() : e, + E = M ? t.value() : t; + return y || (y = new r()), _(D, E, n, m, y); + } + } + return !!L && (y || (y = new r()), s(e, t, n, m, _, y)); + }; + }, + function (e, t) { + var n = '__lodash_hash_undefined__'; + e.exports = function (e) { + return this.__data__.set(e, n), this; + }; + }, + function (e, t) { + e.exports = function (e) { + return this.__data__.has(e); + }; + }, + function (e, t) { + e.exports = function (e, t) { + for (var n = -1, r = null == e ? 0 : e.length; ++n < r; ) + if (t(e[n], n, e)) return !0; + return !1; + }; + }, + function (e, t, n) { + var r = n(32), + i = n(119), + o = n(31), + s = n(125), + a = n(433), + u = n(86), + l = 1, + c = 2, + d = '[object Boolean]', + h = '[object Date]', + f = '[object Error]', + p = '[object Map]', + g = '[object Number]', + m = '[object RegExp]', + _ = '[object Set]', + y = '[object String]', + v = '[object Symbol]', + b = '[object ArrayBuffer]', + w = '[object DataView]', + C = r ? r.prototype : void 0, + S = C ? C.valueOf : void 0; + e.exports = function (e, t, n, r, C, x, L) { + switch (n) { + case w: + if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) + return !1; + (e = e.buffer), (t = t.buffer); + case b: + return !(e.byteLength != t.byteLength || !x(new i(e), new i(t))); + case d: + case h: + case g: + return o(+e, +t); + case f: + return e.name == t.name && e.message == t.message; + case m: + case y: + return e == t + ''; + case p: + var k = a; + case _: + var M = r & l; + if ((k || (k = u), e.size != t.size && !M)) return !1; + var D = L.get(e); + if (D) return D == t; + (r |= c), L.set(e, t); + var E = s(k(e), k(t), r, C, x, L); + return L.delete(e), E; + case v: + if (S) return S.call(e) == S.call(t); + } + return !1; + }; + }, + function (e, t) { + e.exports = function (e) { + var t = -1, + n = Array(e.size); + return ( + e.forEach(function (e, r) { + n[++t] = [r, e]; + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(116), + i = 1, + o = Object.prototype.hasOwnProperty; + e.exports = function (e, t, n, s, a, u) { + var l = n & i, + c = r(e), + d = c.length; + if (d != r(t).length && !l) return !1; + for (var h = d; h--; ) { + var f = c[h]; + if (!(l ? f in t : o.call(t, f))) return !1; + } + var p = u.get(e); + if (p && u.get(t)) return p == t; + var g = !0; + u.set(e, t), u.set(t, e); + for (var m = l; ++h < d; ) { + var _ = e[(f = c[h])], + y = t[f]; + if (s) var v = l ? s(y, _, f, t, e, u) : s(_, y, f, e, t, u); + if (!(void 0 === v ? _ === y || a(_, y, n, s, u) : v)) { + g = !1; + break; + } + m || (m = 'constructor' == f); + } + if (g && !m) { + var b = e.constructor, + w = t.constructor; + b != w && + 'constructor' in e && + 'constructor' in t && + !( + 'function' == typeof b && + b instanceof b && + 'function' == typeof w && + w instanceof w + ) && + (g = !1); + } + return u.delete(e), u.delete(t), g; + }; + }, + function (e, t, n) { + var r = n(128), + i = n(19); + e.exports = function (e) { + for (var t = i(e), n = t.length; n--; ) { + var o = t[n], + s = e[o]; + t[n] = [o, s, r(s)]; + } + return t; + }; + }, + function (e, t, n) { + var r = n(124), + i = n(437), + o = n(131), + s = n(88), + a = n(128), + u = n(129), + l = n(44), + c = 1, + d = 2; + e.exports = function (e, t) { + return s(e) && a(t) + ? u(l(e), t) + : function (n) { + var s = i(n, e); + return void 0 === s && s === t ? o(n, e) : r(t, s, c | d); + }; + }; + }, + function (e, t, n) { + var r = n(87); + e.exports = function (e, t, n) { + var i = null == e ? void 0 : r(e, t); + return void 0 === i ? n : i; + }; + }, + function (e, t, n) { + var r = n(439), + i = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, + o = /\\(\\)?/g, + s = r(function (e) { + var t = []; + return ( + 46 === e.charCodeAt(0) && t.push(''), + e.replace(i, function (e, n, r, i) { + t.push(r ? i.replace(o, '$1') : n || e); + }), + t + ); + }); + e.exports = s; + }, + function (e, t, n) { + var r = n(440), + i = 500; + e.exports = function (e) { + var t = r(e, function (e) { + return n.size === i && n.clear(), e; + }), + n = t.cache; + return t; + }; + }, + function (e, t, n) { + var r = n(75), + i = 'Expected a function'; + function o(e, t) { + if ('function' != typeof e || (null != t && 'function' != typeof t)) + throw new TypeError(i); + var n = function () { + var r = arguments, + i = t ? t.apply(this, r) : r[0], + o = n.cache; + if (o.has(i)) return o.get(i); + var s = e.apply(this, r); + return (n.cache = o.set(i, s) || o), s; + }; + return (n.cache = new (o.Cache || r)()), n; + } + (o.Cache = r), (e.exports = o); + }, + function (e, t, n) { + var r = n(32), + i = n(61), + o = n(4), + s = n(36), + a = 1 / 0, + u = r ? r.prototype : void 0, + l = u ? u.toString : void 0; + e.exports = function e(t) { + if ('string' == typeof t) return t; + if (o(t)) return i(t, e) + ''; + if (s(t)) return l ? l.call(t) : ''; + var n = t + ''; + return '0' == n && 1 / t == -a ? '-0' : n; + }; + }, + function (e, t) { + e.exports = function (e, t) { + return null != e && t in Object(e); + }; + }, + function (e, t, n) { + var r = n(133), + i = n(444), + o = n(88), + s = n(44); + e.exports = function (e) { + return o(e) ? r(s(e)) : i(e); + }; + }, + function (e, t, n) { + var r = n(87); + e.exports = function (e) { + return function (t) { + return r(t, e); + }; + }; + }, + function (e, t) { + var n = Object.prototype.hasOwnProperty; + e.exports = function (e, t) { + return null != e && n.call(e, t); + }; + }, + function (e, t) { + e.exports = function (e, t, n, r) { + var i = -1, + o = null == e ? 0 : e.length; + for (r && o && (n = e[++i]); ++i < o; ) n = t(n, e[i], i, e); + return n; + }; + }, + function (e, t) { + e.exports = function (e, t, n, r, i) { + return ( + i(e, function (e, i, o) { + n = r ? ((r = !1), e) : t(n, e, i, o); + }), + n + ); + }; + }, + function (e, t, n) { + var r = n(27), + i = n(4), + o = n(18), + s = '[object String]'; + e.exports = function (e) { + return 'string' == typeof e || (!i(e) && o(e) && r(e) == s); + }; + }, + function (e, t, n) { + var r = n(450), + i = n(451), + o = n(452); + e.exports = function (e) { + return i(e) ? o(e) : r(e); + }; + }, + function (e, t, n) { + var r = n(133)('length'); + e.exports = r; + }, + function (e, t) { + var n = RegExp( + '[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]' + ); + e.exports = function (e) { + return n.test(e); + }; + }, + function (e, t) { + var n = '[\\ud800-\\udfff]', + r = '[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]', + i = '\\ud83c[\\udffb-\\udfff]', + o = '[^\\ud800-\\udfff]', + s = '(?:\\ud83c[\\udde6-\\uddff]){2}', + a = '[\\ud800-\\udbff][\\udc00-\\udfff]', + u = '(?:' + r + '|' + i + ')' + '?', + l = + '[\\ufe0e\\ufe0f]?' + + u + + ('(?:\\u200d(?:' + + [o, s, a].join('|') + + ')[\\ufe0e\\ufe0f]?' + + u + + ')*'), + c = '(?:' + [o + r + '?', r, s, a, n].join('|') + ')', + d = RegExp(i + '(?=' + i + ')|' + c + l, 'g'); + e.exports = function (e) { + for (var t = (d.lastIndex = 0); d.test(e); ) ++t; + return t; + }; + }, + function (e, t, n) { + var r = n(32), + i = n(39), + o = n(4), + s = r ? r.isConcatSpreadable : void 0; + e.exports = function (e) { + return o(e) || i(e) || !!(s && e && e[s]); + }; + }, + function (e, t) { + e.exports = function (e, t, n) { + switch (n.length) { + case 0: + return e.call(t); + case 1: + return e.call(t, n[0]); + case 2: + return e.call(t, n[0], n[1]); + case 3: + return e.call(t, n[0], n[1], n[2]); + } + return e.apply(t, n); + }; + }, + function (e, t, n) { + var r = n(42), + i = n(108), + o = n(28), + s = i + ? function (e, t) { + return i(e, 'toString', { + configurable: !0, + enumerable: !1, + value: r(t), + writable: !0, + }); + } + : o; + e.exports = s; + }, + function (e, t) { + var n = 800, + r = 16, + i = Date.now; + e.exports = function (e) { + var t = 0, + o = 0; + return function () { + var s = i(), + a = r - (s - o); + if (((o = s), a > 0)) { + if (++t >= n) return arguments[0]; + } else t = 0; + return e.apply(void 0, arguments); + }; + }; + }, + function (e, t, n) { + var r = n(126), + i = n(458), + o = n(462), + s = n(127), + a = n(463), + u = n(86), + l = 200; + e.exports = function (e, t, n) { + var c = -1, + d = i, + h = e.length, + f = !0, + p = [], + g = p; + if (n) (f = !1), (d = o); + else if (h >= l) { + var m = t ? null : a(e); + if (m) return u(m); + (f = !1), (d = s), (g = new r()); + } else g = t ? [] : p; + e: for (; ++c < h; ) { + var _ = e[c], + y = t ? t(_) : _; + if (((_ = n || 0 !== _ ? _ : 0), f && y == y)) { + for (var v = g.length; v--; ) if (g[v] === y) continue e; + t && g.push(y), p.push(_); + } else d(g, y, n) || (g !== p && g.push(y), p.push(_)); + } + return p; + }; + }, + function (e, t, n) { + var r = n(459); + e.exports = function (e, t) { + return !!(null == e ? 0 : e.length) && r(e, t, 0) > -1; + }; + }, + function (e, t, n) { + var r = n(141), + i = n(460), + o = n(461); + e.exports = function (e, t, n) { + return t == t ? o(e, t, n) : r(e, i, n); + }; + }, + function (e, t) { + e.exports = function (e) { + return e != e; + }; + }, + function (e, t) { + e.exports = function (e, t, n) { + for (var r = n - 1, i = e.length; ++r < i; ) if (e[r] === t) return r; + return -1; + }; + }, + function (e, t) { + e.exports = function (e, t, n) { + for (var r = -1, i = null == e ? 0 : e.length; ++r < i; ) + if (n(t, e[r])) return !0; + return !1; + }; + }, + function (e, t, n) { + var r = n(118), + i = n(464), + o = n(86), + s = + r && 1 / o(new r([, -0]))[1] == 1 / 0 + ? function (e) { + return new r(e); + } + : i; + e.exports = s; + }, + function (e, t) { + e.exports = function () {}; + }, + function (e, t, n) { + var r = n(61); + e.exports = function (e, t) { + return r(t, function (t) { + return e[t]; + }); + }; + }, + function (e, t) { + e.exports = '2.1.7'; + }, + function (e, t, n) { + var r = n(7), + i = n(73); + function o(e) { + return r.map(e.nodes(), function (t) { + var n = e.node(t), + i = e.parent(t), + o = { v: t }; + return ( + r.isUndefined(n) || (o.value = n), + r.isUndefined(i) || (o.parent = i), + o + ); + }); + } + function s(e) { + return r.map(e.edges(), function (t) { + var n = e.edge(t), + i = { v: t.v, w: t.w }; + return ( + r.isUndefined(t.name) || (i.name = t.name), + r.isUndefined(n) || (i.value = n), + i + ); + }); + } + e.exports = { + write: function (e) { + var t = { + options: { + directed: e.isDirected(), + multigraph: e.isMultigraph(), + compound: e.isCompound(), + }, + nodes: o(e), + edges: s(e), + }; + r.isUndefined(e.graph()) || (t.value = r.clone(e.graph())); + return t; + }, + read: function (e) { + var t = new i(e.options).setGraph(e.value); + return ( + r.each(e.nodes, function (e) { + t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent); + }), + r.each(e.edges, function (e) { + t.setEdge({ v: e.v, w: e.w, name: e.name }, e.value); + }), + t + ); + }, + }; + }, + function (e, t, n) { + e.exports = { + components: n(469), + dijkstra: n(143), + dijkstraAll: n(470), + findCycles: n(471), + floydWarshall: n(472), + isAcyclic: n(473), + postorder: n(474), + preorder: n(475), + prim: n(476), + tarjan: n(145), + topsort: n(146), + }; + }, + function (e, t, n) { + var r = n(7); + e.exports = function (e) { + var t, + n = {}, + i = []; + function o(i) { + r.has(n, i) || + ((n[i] = !0), + t.push(i), + r.each(e.successors(i), o), + r.each(e.predecessors(i), o)); + } + return ( + r.each(e.nodes(), function (e) { + (t = []), o(e), t.length && i.push(t); + }), + i + ); + }; + }, + function (e, t, n) { + var r = n(143), + i = n(7); + e.exports = function (e, t, n) { + return i.transform( + e.nodes(), + function (i, o) { + i[o] = r(e, o, t, n); + }, + {} + ); + }; + }, + function (e, t, n) { + var r = n(7), + i = n(145); + e.exports = function (e) { + return r.filter(i(e), function (t) { + return t.length > 1 || (1 === t.length && e.hasEdge(t[0], t[0])); + }); + }; + }, + function (e, t, n) { + var r = n(7); + e.exports = function (e, t, n) { + return (function (e, t, n) { + var r = {}, + i = e.nodes(); + return ( + i.forEach(function (e) { + (r[e] = {}), + (r[e][e] = { distance: 0 }), + i.forEach(function (t) { + e !== t && (r[e][t] = { distance: Number.POSITIVE_INFINITY }); + }), + n(e).forEach(function (n) { + var i = n.v === e ? n.w : n.v, + o = t(n); + r[e][i] = { distance: o, predecessor: e }; + }); + }), + i.forEach(function (e) { + var t = r[e]; + i.forEach(function (n) { + var o = r[n]; + i.forEach(function (n) { + var r = o[e], + i = t[n], + s = o[n], + a = r.distance + i.distance; + a < s.distance && + ((s.distance = a), (s.predecessor = i.predecessor)); + }); + }); + }), + r + ); + })( + e, + t || i, + n || + function (t) { + return e.outEdges(t); + } + ); + }; + var i = r.constant(1); + }, + function (e, t, n) { + var r = n(146); + e.exports = function (e) { + try { + r(e); + } catch (e) { + if (e instanceof r.CycleException) return !1; + throw e; + } + return !0; + }; + }, + function (e, t, n) { + var r = n(147); + e.exports = function (e, t) { + return r(e, t, 'post'); + }; + }, + function (e, t, n) { + var r = n(147); + e.exports = function (e, t) { + return r(e, t, 'pre'); + }; + }, + function (e, t, n) { + var r = n(7), + i = n(73), + o = n(144); + e.exports = function (e, t) { + var n, + s = new i(), + a = {}, + u = new o(); + function l(e) { + var r = e.v === n ? e.w : e.v, + i = u.priority(r); + if (void 0 !== i) { + var o = t(e); + o < i && ((a[r] = n), u.decrease(r, o)); + } + } + if (0 === e.nodeCount()) return s; + r.each(e.nodes(), function (e) { + u.add(e, Number.POSITIVE_INFINITY), s.setNode(e); + }), + u.decrease(e.nodes()[0], 0); + var c = !1; + for (; u.size() > 0; ) { + if (((n = u.removeMin()), r.has(a, n))) s.setEdge(n, a[n]); + else { + if (c) throw new Error('Input graph is not connected: ' + e); + c = !0; + } + e.nodeEdges(n).forEach(l); + } + return s; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(498), + o = n(501), + s = n(502), + a = n(5).normalizeRanks, + u = n(504), + l = n(5).removeEmptyRanks, + c = n(505), + d = n(506), + h = n(507), + f = n(508), + p = n(517), + g = n(5), + m = n(13).Graph; + e.exports = function (e, t) { + var n = t && t.debugTiming ? g.time : g.notime; + n('layout', function () { + var t = n(' buildLayoutGraph', function () { + return (function (e) { + var t = new m({ multigraph: !0, compound: !0 }), + n = k(e.graph()); + return ( + t.setGraph(r.merge({}, y, L(n, _), r.pick(n, v))), + r.forEach(e.nodes(), function (n) { + var i = k(e.node(n)); + t.setNode(n, r.defaults(L(i, b), w)), + t.setParent(n, e.parent(n)); + }), + r.forEach(e.edges(), function (n) { + var i = k(e.edge(n)); + t.setEdge(n, r.merge({}, S, L(i, C), r.pick(i, x))); + }), + t + ); + })(e); + }); + n(' runLayout', function () { + !(function (e, t) { + t(' makeSpaceForEdgeLabels', function () { + !(function (e) { + var t = e.graph(); + (t.ranksep /= 2), + r.forEach(e.edges(), function (n) { + var r = e.edge(n); + (r.minlen *= 2), + 'c' !== r.labelpos.toLowerCase() && + ('TB' === t.rankdir || 'BT' === t.rankdir + ? (r.width += r.labeloffset) + : (r.height += r.labeloffset)); + }); + })(e); + }), + t(' removeSelfEdges', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + if (t.v === t.w) { + var n = e.node(t.v); + n.selfEdges || (n.selfEdges = []), + n.selfEdges.push({ e: t, label: e.edge(t) }), + e.removeEdge(t); + } + }); + })(e); + }), + t(' acyclic', function () { + i.run(e); + }), + t(' nestingGraph.run', function () { + c.run(e); + }), + t(' rank', function () { + s(g.asNonCompoundGraph(e)); + }), + t(' injectEdgeLabelProxies', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (n.width && n.height) { + var r = e.node(t.v), + i = { + rank: (e.node(t.w).rank - r.rank) / 2 + r.rank, + e: t, + }; + g.addDummyNode(e, 'edge-proxy', i, '_ep'); + } + }); + })(e); + }), + t(' removeEmptyRanks', function () { + l(e); + }), + t(' nestingGraph.cleanup', function () { + c.cleanup(e); + }), + t(' normalizeRanks', function () { + a(e); + }), + t(' assignRankMinMax', function () { + !(function (e) { + var t = 0; + r.forEach(e.nodes(), function (n) { + var i = e.node(n); + i.borderTop && + ((i.minRank = e.node(i.borderTop).rank), + (i.maxRank = e.node(i.borderBottom).rank), + (t = r.max(t, i.maxRank))); + }), + (e.graph().maxRank = t); + })(e); + }), + t(' removeEdgeLabelProxies', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + var n = e.node(t); + 'edge-proxy' === n.dummy && + ((e.edge(n.e).labelRank = n.rank), e.removeNode(t)); + }); + })(e); + }), + t(' normalize.run', function () { + o.run(e); + }), + t(' parentDummyChains', function () { + u(e); + }), + t(' addBorderSegments', function () { + d(e); + }), + t(' order', function () { + f(e); + }), + t(' insertSelfEdges', function () { + !(function (e) { + var t = g.buildLayerMatrix(e); + r.forEach(t, function (t) { + var n = 0; + r.forEach(t, function (t, i) { + var o = e.node(t); + (o.order = i + n), + r.forEach(o.selfEdges, function (t) { + g.addDummyNode( + e, + 'selfedge', + { + width: t.label.width, + height: t.label.height, + rank: o.rank, + order: i + ++n, + e: t.e, + label: t.label, + }, + '_se' + ); + }), + delete o.selfEdges; + }); + }); + })(e); + }), + t(' adjustCoordinateSystem', function () { + h.adjust(e); + }), + t(' position', function () { + p(e); + }), + t(' positionSelfEdges', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + var n = e.node(t); + if ('selfedge' === n.dummy) { + var r = e.node(n.e.v), + i = r.x + r.width / 2, + o = r.y, + s = n.x - i, + a = r.height / 2; + e.setEdge(n.e, n.label), + e.removeNode(t), + (n.label.points = [ + { x: i + (2 * s) / 3, y: o - a }, + { x: i + (5 * s) / 6, y: o - a }, + { x: i + s, y: o }, + { x: i + (5 * s) / 6, y: o + a }, + { x: i + (2 * s) / 3, y: o + a }, + ]), + (n.label.x = n.x), + (n.label.y = n.y); + } + }); + })(e); + }), + t(' removeBorderNodes', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + if (e.children(t).length) { + var n = e.node(t), + i = e.node(n.borderTop), + o = e.node(n.borderBottom), + s = e.node(r.last(n.borderLeft)), + a = e.node(r.last(n.borderRight)); + (n.width = Math.abs(a.x - s.x)), + (n.height = Math.abs(o.y - i.y)), + (n.x = s.x + n.width / 2), + (n.y = i.y + n.height / 2); + } + }), + r.forEach(e.nodes(), function (t) { + 'border' === e.node(t).dummy && e.removeNode(t); + }); + })(e); + }), + t(' normalize.undo', function () { + o.undo(e); + }), + t(' fixupEdgeLabelCoords', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (r.has(n, 'x')) + switch ( + (('l' !== n.labelpos && 'r' !== n.labelpos) || + (n.width -= n.labeloffset), + n.labelpos) + ) { + case 'l': + n.x -= n.width / 2 + n.labeloffset; + break; + case 'r': + n.x += n.width / 2 + n.labeloffset; + } + }); + })(e); + }), + t(' undoCoordinateSystem', function () { + h.undo(e); + }), + t(' translateGraph', function () { + !(function (e) { + var t = Number.POSITIVE_INFINITY, + n = 0, + i = Number.POSITIVE_INFINITY, + o = 0, + s = e.graph(), + a = s.marginx || 0, + u = s.marginy || 0; + function l(e) { + var r = e.x, + s = e.y, + a = e.width, + u = e.height; + (t = Math.min(t, r - a / 2)), + (n = Math.max(n, r + a / 2)), + (i = Math.min(i, s - u / 2)), + (o = Math.max(o, s + u / 2)); + } + r.forEach(e.nodes(), function (t) { + l(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.has(n, 'x') && l(n); + }), + (t -= a), + (i -= u), + r.forEach(e.nodes(), function (n) { + var r = e.node(n); + (r.x -= t), (r.y -= i); + }), + r.forEach(e.edges(), function (n) { + var o = e.edge(n); + r.forEach(o.points, function (e) { + (e.x -= t), (e.y -= i); + }), + r.has(o, 'x') && (o.x -= t), + r.has(o, 'y') && (o.y -= i); + }), + (s.width = n - t + a), + (s.height = o - i + u); + })(e); + }), + t(' assignNodeIntersects', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n, + r, + i = e.edge(t), + o = e.node(t.v), + s = e.node(t.w); + i.points + ? ((n = i.points[0]), (r = i.points[i.points.length - 1])) + : ((i.points = []), (n = s), (r = o)), + i.points.unshift(g.intersectRect(o, n)), + i.points.push(g.intersectRect(s, r)); + }); + })(e); + }), + t(' reversePoints', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + n.reversed && n.points.reverse(); + }); + })(e); + }), + t(' acyclic.undo', function () { + i.undo(e); + }); + })(t, n); + }), + n(' updateInputGraph', function () { + !(function (e, t) { + r.forEach(e.nodes(), function (n) { + var r = e.node(n), + i = t.node(n); + r && + ((r.x = i.x), + (r.y = i.y), + t.children(n).length && + ((r.width = i.width), (r.height = i.height))); + }), + r.forEach(e.edges(), function (n) { + var i = e.edge(n), + o = t.edge(n); + (i.points = o.points), + r.has(o, 'x') && ((i.x = o.x), (i.y = o.y)); + }), + (e.graph().width = t.graph().width), + (e.graph().height = t.graph().height); + })(e, t); + }); + }); + }; + var _ = ['nodesep', 'edgesep', 'ranksep', 'marginx', 'marginy'], + y = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: 'tb' }, + v = ['acyclicer', 'ranker', 'rankdir', 'align'], + b = ['width', 'height'], + w = { width: 0, height: 0 }, + C = ['minlen', 'weight', 'width', 'height', 'labeloffset'], + S = { + minlen: 1, + weight: 1, + width: 0, + height: 0, + labeloffset: 10, + labelpos: 'r', + }, + x = ['labelpos']; + function L(e, t) { + return r.mapValues(r.pick(e, t), Number); + } + function k(e) { + var t = {}; + return ( + r.forEach(e, function (e, n) { + t[n.toLowerCase()] = e; + }), + t + ); + } + }, + function (e, t, n) { + var r = n(21), + i = n(20), + o = n(19); + e.exports = function (e) { + return function (t, n, s) { + var a = Object(t); + if (!i(t)) { + var u = r(n, 3); + (t = o(t)), + (n = function (e) { + return u(a[e], e, a); + }); + } + var l = e(t, n, s); + return l > -1 ? a[u ? t[l] : l] : void 0; + }; + }; + }, + function (e, t, n) { + var r = n(141), + i = n(21), + o = n(480), + s = Math.max; + e.exports = function (e, t, n) { + var a = null == e ? 0 : e.length; + if (!a) return -1; + var u = null == n ? 0 : o(n); + return u < 0 && (u = s(a + u, 0)), r(e, i(t, 3), u); + }; + }, + function (e, t, n) { + var r = n(150); + e.exports = function (e) { + var t = r(e), + n = t % 1; + return t == t ? (n ? t - n : t) : 0; + }; + }, + function (e, t, n) { + var r = n(8), + i = n(36), + o = NaN, + s = /^\s+|\s+$/g, + a = /^[-+]0x[0-9a-f]+$/i, + u = /^0b[01]+$/i, + l = /^0o[0-7]+$/i, + c = parseInt; + e.exports = function (e) { + if ('number' == typeof e) return e; + if (i(e)) return o; + if (r(e)) { + var t = 'function' == typeof e.valueOf ? e.valueOf() : e; + e = r(t) ? t + '' : t; + } + if ('string' != typeof e) return 0 === e ? e : +e; + e = e.replace(s, ''); + var n = u.test(e); + return n || l.test(e) ? c(e.slice(2), n ? 2 : 8) : a.test(e) ? o : +e; + }; + }, + function (e, t) { + e.exports = function (e, t) { + return e > t; + }; + }, + function (e, t, n) { + var r = n(47), + i = n(156), + o = n(85), + s = n(484), + a = n(8), + u = n(34), + l = n(158); + e.exports = function e(t, n, c, d, h) { + t !== n && + o( + n, + function (o, u) { + if ((h || (h = new r()), a(o))) s(t, n, u, c, e, d, h); + else { + var f = d ? d(l(t, u), o, u + '', t, n, h) : void 0; + void 0 === f && (f = o), i(t, u, f); + } + }, + u + ); + }; + }, + function (e, t, n) { + var r = n(156), + i = n(111), + o = n(120), + s = n(112), + a = n(121), + u = n(39), + l = n(4), + c = n(142), + d = n(33), + h = n(26), + f = n(8), + p = n(157), + g = n(41), + m = n(158), + _ = n(485); + e.exports = function (e, t, n, y, v, b, w) { + var C = m(e, n), + S = m(t, n), + x = w.get(S); + if (x) r(e, n, x); + else { + var L = b ? b(C, S, n + '', e, t, w) : void 0, + k = void 0 === L; + if (k) { + var M = l(S), + D = !M && d(S), + E = !M && !D && g(S); + (L = S), + M || D || E + ? l(C) + ? (L = C) + : c(C) + ? (L = s(C)) + : D + ? ((k = !1), (L = i(S, !0))) + : E + ? ((k = !1), (L = o(S, !0))) + : (L = []) + : p(S) || u(S) + ? ((L = C), u(C) ? (L = _(C)) : (f(C) && !h(C)) || (L = a(S))) + : (k = !1); + } + k && (w.set(S, L), v(L, S, y, b, w), w.delete(S)), r(e, n, L); + } + }; + }, + function (e, t, n) { + var r = n(38), + i = n(34); + e.exports = function (e) { + return r(e, i(e)); + }; + }, + function (e, t, n) { + var r = n(65), + i = n(67); + e.exports = function (e) { + return r(function (t, n) { + var r = -1, + o = n.length, + s = o > 1 ? n[o - 1] : void 0, + a = o > 2 ? n[2] : void 0; + for ( + s = e.length > 3 && 'function' == typeof s ? (o--, s) : void 0, + a && i(n[0], n[1], a) && ((s = o < 3 ? void 0 : s), (o = 1)), + t = Object(t); + ++r < o; + + ) { + var u = n[r]; + u && e(t, u, r, s); + } + return t; + }); + }; + }, + function (e, t, n) { + var r = n(488), + i = n(131); + e.exports = function (e, t) { + return r(e, t, function (t, n) { + return i(e, n); + }); + }; + }, + function (e, t, n) { + var r = n(87), + i = n(489), + o = n(60); + e.exports = function (e, t, n) { + for (var s = -1, a = t.length, u = {}; ++s < a; ) { + var l = t[s], + c = r(e, l); + n(c, l) && i(u, o(l, e), c); + } + return u; + }; + }, + function (e, t, n) { + var r = n(52), + i = n(60), + o = n(54), + s = n(8), + a = n(44); + e.exports = function (e, t, n, u) { + if (!s(e)) return e; + for ( + var l = -1, c = (t = i(t, e)).length, d = c - 1, h = e; + null != h && ++l < c; + + ) { + var f = a(t[l]), + p = n; + if (l != d) { + var g = h[f]; + void 0 === (p = u ? u(g, f, h) : void 0) && + (p = s(g) ? g : o(t[l + 1]) ? [] : {}); + } + r(h, f, p), (h = h[f]); + } + return e; + }; + }, + function (e, t, n) { + var r = n(91), + i = n(139), + o = n(140); + e.exports = function (e) { + return o(i(e, void 0, r), e + ''); + }; + }, + function (e, t, n) { + var r = n(492), + i = n(67), + o = n(150); + e.exports = function (e) { + return function (t, n, s) { + return ( + s && 'number' != typeof s && i(t, n, s) && (n = s = void 0), + (t = o(t)), + void 0 === n ? ((n = t), (t = 0)) : (n = o(n)), + (s = void 0 === s ? (t < n ? 1 : -1) : o(s)), + r(t, n, s, e) + ); + }; + }; + }, + function (e, t) { + var n = Math.ceil, + r = Math.max; + e.exports = function (e, t, i, o) { + for (var s = -1, a = r(n((t - e) / (i || 1)), 0), u = Array(a); a--; ) + (u[o ? a : ++s] = e), (e += i); + return u; + }; + }, + function (e, t, n) { + var r = n(61), + i = n(21), + o = n(135), + s = n(494), + a = n(55), + u = n(495), + l = n(28); + e.exports = function (e, t, n) { + var c = -1; + t = r(t.length ? t : [l], a(i)); + var d = o(e, function (e, n, i) { + return { + criteria: r(t, function (t) { + return t(e); + }), + index: ++c, + value: e, + }; + }); + return s(d, function (e, t) { + return u(e, t, n); + }); + }; + }, + function (e, t) { + e.exports = function (e, t) { + var n = e.length; + for (e.sort(t); n--; ) e[n] = e[n].value; + return e; + }; + }, + function (e, t, n) { + var r = n(496); + e.exports = function (e, t, n) { + for ( + var i = -1, o = e.criteria, s = t.criteria, a = o.length, u = n.length; + ++i < a; + + ) { + var l = r(o[i], s[i]); + if (l) return i >= u ? l : l * ('desc' == n[i] ? -1 : 1); + } + return e.index - t.index; + }; + }, + function (e, t, n) { + var r = n(36); + e.exports = function (e, t) { + if (e !== t) { + var n = void 0 !== e, + i = null === e, + o = e == e, + s = r(e), + a = void 0 !== t, + u = null === t, + l = t == t, + c = r(t); + if ( + (!u && !c && !s && e > t) || + (s && a && l && !u && !c) || + (i && a && l) || + (!n && l) || + !o + ) + return 1; + if ( + (!i && !s && !c && e < t) || + (c && n && o && !i && !s) || + (u && n && o) || + (!a && o) || + !l + ) + return -1; + } + return 0; + }; + }, + function (e, t) { + e.exports = function (e, t, n) { + for (var r = -1, i = e.length, o = t.length, s = {}; ++r < i; ) { + var a = r < o ? t[r] : void 0; + n(s, e[r], a); + } + return s; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(499); + e.exports = { + run: function (e) { + var t = + 'greedy' === e.graph().acyclicer + ? i( + e, + (function (e) { + return function (t) { + return e.edge(t).weight; + }; + })(e) + ) + : (function (e) { + var t = [], + n = {}, + i = {}; + return ( + r.forEach(e.nodes(), function o(s) { + if (r.has(i, s)) return; + (i[s] = !0), + (n[s] = !0), + r.forEach(e.outEdges(s), function (e) { + r.has(n, e.w) ? t.push(e) : o(e.w); + }), + delete n[s]; + }), + t + ); + })(e); + r.forEach(t, function (t) { + var n = e.edge(t); + e.removeEdge(t), + (n.forwardName = t.name), + (n.reversed = !0), + e.setEdge(t.w, t.v, n, r.uniqueId('rev')); + }); + }, + undo: function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (n.reversed) { + e.removeEdge(t); + var r = n.forwardName; + delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r); + } + }); + }, + }; + }, + function (e, t, n) { + var r = n(2), + i = n(13).Graph, + o = n(500); + e.exports = function (e, t) { + if (e.nodeCount() <= 1) return []; + var n = (function (e, t) { + var n = new i(), + s = 0, + a = 0; + r.forEach(e.nodes(), function (e) { + n.setNode(e, { v: e, in: 0, out: 0 }); + }), + r.forEach(e.edges(), function (e) { + var r = n.edge(e.v, e.w) || 0, + i = t(e), + o = r + i; + n.setEdge(e.v, e.w, o), + (a = Math.max(a, (n.node(e.v).out += i))), + (s = Math.max(s, (n.node(e.w).in += i))); + }); + var l = r.range(a + s + 3).map(function () { + return new o(); + }), + c = s + 1; + return ( + r.forEach(n.nodes(), function (e) { + u(l, c, n.node(e)); + }), + { graph: n, buckets: l, zeroIdx: c } + ); + })(e, t || s), + l = (function (e, t, n) { + var r, + i = [], + o = t[t.length - 1], + s = t[0]; + for (; e.nodeCount(); ) { + for (; (r = s.dequeue()); ) a(e, t, n, r); + for (; (r = o.dequeue()); ) a(e, t, n, r); + if (e.nodeCount()) + for (var u = t.length - 2; u > 0; --u) + if ((r = t[u].dequeue())) { + i = i.concat(a(e, t, n, r, !0)); + break; + } + } + return i; + })(n.graph, n.buckets, n.zeroIdx); + return r.flatten( + r.map(l, function (t) { + return e.outEdges(t.v, t.w); + }), + !0 + ); + }; + var s = r.constant(1); + function a(e, t, n, i, o) { + var s = o ? [] : void 0; + return ( + r.forEach(e.inEdges(i.v), function (r) { + var i = e.edge(r), + a = e.node(r.v); + o && s.push({ v: r.v, w: r.w }), (a.out -= i), u(t, n, a); + }), + r.forEach(e.outEdges(i.v), function (r) { + var i = e.edge(r), + o = r.w, + s = e.node(o); + (s.in -= i), u(t, n, s); + }), + e.removeNode(i.v), + s + ); + } + function u(e, t, n) { + n.out + ? n.in + ? e[n.out - n.in + t].enqueue(n) + : e[e.length - 1].enqueue(n) + : e[0].enqueue(n); + } + }, + function (e, t) { + function n() { + var e = {}; + (e._next = e._prev = e), (this._sentinel = e); + } + function r(e) { + (e._prev._next = e._next), + (e._next._prev = e._prev), + delete e._next, + delete e._prev; + } + function i(e, t) { + if ('_next' !== e && '_prev' !== e) return t; + } + (e.exports = n), + (n.prototype.dequeue = function () { + var e = this._sentinel, + t = e._prev; + if (t !== e) return r(t), t; + }), + (n.prototype.enqueue = function (e) { + var t = this._sentinel; + e._prev && e._next && r(e), + (e._next = t._next), + (t._next._prev = e), + (t._next = e), + (e._prev = t); + }), + (n.prototype.toString = function () { + for (var e = [], t = this._sentinel, n = t._prev; n !== t; ) + e.push(JSON.stringify(n, i)), (n = n._prev); + return '[' + e.join(', ') + ']'; + }); + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(5); + e.exports = { + run: function (e) { + (e.graph().dummyChains = []), + r.forEach(e.edges(), function (t) { + !(function (e, t) { + var n, + r, + o, + s = t.v, + a = e.node(s).rank, + u = t.w, + l = e.node(u).rank, + c = t.name, + d = e.edge(t), + h = d.labelRank; + if (l === a + 1) return; + for (e.removeEdge(t), o = 0, ++a; a < l; ++o, ++a) + (d.points = []), + (r = { + width: 0, + height: 0, + edgeLabel: d, + edgeObj: t, + rank: a, + }), + (n = i.addDummyNode(e, 'edge', r, '_d')), + a === h && + ((r.width = d.width), + (r.height = d.height), + (r.dummy = 'edge-label'), + (r.labelpos = d.labelpos)), + e.setEdge(s, n, { weight: d.weight }, c), + 0 === o && e.graph().dummyChains.push(n), + (s = n); + e.setEdge(s, u, { weight: d.weight }, c); + })(e, t); + }); + }, + undo: function (e) { + r.forEach(e.graph().dummyChains, function (t) { + var n, + r = e.node(t), + i = r.edgeLabel; + for (e.setEdge(r.edgeObj, i); r.dummy; ) + (n = e.successors(t)[0]), + e.removeNode(t), + i.points.push({ x: r.x, y: r.y }), + 'edge-label' === r.dummy && + ((i.x = r.x), + (i.y = r.y), + (i.width = r.width), + (i.height = r.height)), + (t = n), + (r = e.node(t)); + }); + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(68).longestPath, + i = n(165), + o = n(503); + e.exports = function (e) { + switch (e.graph().ranker) { + case 'network-simplex': + a(e); + break; + case 'tight-tree': + !(function (e) { + r(e), i(e); + })(e); + break; + case 'longest-path': + s(e); + break; + default: + a(e); + } + }; + var s = r; + function a(e) { + o(e); + } + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(165), + o = n(68).slack, + s = n(68).longestPath, + a = n(13).alg.preorder, + u = n(13).alg.postorder, + l = n(5).simplify; + function c(e) { + (e = l(e)), s(e); + var t, + n = i(e); + for (f(n), d(n, e); (t = p(n)); ) m(n, e, t, g(n, e, t)); + } + function d(e, t) { + var n = u(e, e.nodes()); + (n = n.slice(0, n.length - 1)), + r.forEach(n, function (n) { + !(function (e, t, n) { + var r = e.node(n).parent; + e.edge(n, r).cutvalue = h(e, t, n); + })(e, t, n); + }); + } + function h(e, t, n) { + var i = e.node(n).parent, + o = !0, + s = t.edge(n, i), + a = 0; + return ( + s || ((o = !1), (s = t.edge(i, n))), + (a = s.weight), + r.forEach(t.nodeEdges(n), function (r) { + var s, + u, + l = r.v === n, + c = l ? r.w : r.v; + if (c !== i) { + var d = l === o, + h = t.edge(r).weight; + if (((a += d ? h : -h), (s = n), (u = c), e.hasEdge(s, u))) { + var f = e.edge(n, c).cutvalue; + a += d ? -f : f; + } + } + }), + a + ); + } + function f(e, t) { + arguments.length < 2 && (t = e.nodes()[0]), + (function e(t, n, i, o, s) { + var a = i, + u = t.node(o); + (n[o] = !0), + r.forEach(t.neighbors(o), function (s) { + r.has(n, s) || (i = e(t, n, i, s, o)); + }), + (u.low = a), + (u.lim = i++), + s ? (u.parent = s) : delete u.parent; + return i; + })(e, {}, 1, t); + } + function p(e) { + return r.find(e.edges(), function (t) { + return e.edge(t).cutvalue < 0; + }); + } + function g(e, t, n) { + var i = n.v, + s = n.w; + t.hasEdge(i, s) || ((i = n.w), (s = n.v)); + var a = e.node(i), + u = e.node(s), + l = a, + c = !1; + a.lim > u.lim && ((l = u), (c = !0)); + var d = r.filter(t.edges(), function (t) { + return c === _(e, e.node(t.v), l) && c !== _(e, e.node(t.w), l); + }); + return r.minBy(d, function (e) { + return o(t, e); + }); + } + function m(e, t, n, i) { + var o = n.v, + s = n.w; + e.removeEdge(o, s), + e.setEdge(i.v, i.w, {}), + f(e), + d(e, t), + (function (e, t) { + var n = r.find(e.nodes(), function (e) { + return !t.node(e).parent; + }), + i = a(e, n); + (i = i.slice(1)), + r.forEach(i, function (n) { + var r = e.node(n).parent, + i = t.edge(n, r), + o = !1; + i || ((i = t.edge(r, n)), (o = !0)), + (t.node(n).rank = t.node(r).rank + (o ? i.minlen : -i.minlen)); + }); + })(e, t); + } + function _(e, t, n) { + return n.low <= t.lim && t.lim <= n.lim; + } + (e.exports = c), + (c.initLowLimValues = f), + (c.initCutValues = d), + (c.calcCutValue = h), + (c.leaveEdge = p), + (c.enterEdge = g), + (c.exchangeEdges = m); + }, + function (e, t, n) { + var r = n(2); + e.exports = function (e) { + var t = (function (e) { + var t = {}, + n = 0; + return ( + r.forEach(e.children(), function i(o) { + var s = n; + r.forEach(e.children(o), i), (t[o] = { low: s, lim: n++ }); + }), + t + ); + })(e); + r.forEach(e.graph().dummyChains, function (n) { + for ( + var r = e.node(n), + i = r.edgeObj, + o = (function (e, t, n, r) { + var i, + o, + s = [], + a = [], + u = Math.min(t[n].low, t[r].low), + l = Math.max(t[n].lim, t[r].lim); + i = n; + do { + (i = e.parent(i)), s.push(i); + } while (i && (t[i].low > u || l > t[i].lim)); + (o = i), (i = r); + for (; (i = e.parent(i)) !== o; ) a.push(i); + return { path: s.concat(a.reverse()), lca: o }; + })(e, t, i.v, i.w), + s = o.path, + a = o.lca, + u = 0, + l = s[u], + c = !0; + n !== i.w; + + ) { + if (((r = e.node(n)), c)) { + for (; (l = s[u]) !== a && e.node(l).maxRank < r.rank; ) u++; + l === a && (c = !1); + } + if (!c) { + for ( + ; + u < s.length - 1 && e.node((l = s[u + 1])).minRank <= r.rank; + + ) + u++; + l = s[u]; + } + e.setParent(n, l), (n = e.successors(n)[0]); + } + }); + }; + }, + function (e, t, n) { + var r = n(2), + i = n(5); + e.exports = { + run: function (e) { + var t = i.addDummyNode(e, 'root', {}, '_root'), + n = (function (e) { + var t = {}; + return ( + r.forEach(e.children(), function (n) { + !(function n(i, o) { + var s = e.children(i); + s && + s.length && + r.forEach(s, function (e) { + n(e, o + 1); + }); + t[i] = o; + })(n, 1); + }), + t + ); + })(e), + o = r.max(r.values(n)) - 1, + s = 2 * o + 1; + (e.graph().nestingRoot = t), + r.forEach(e.edges(), function (t) { + e.edge(t).minlen *= s; + }); + var a = + (function (e) { + return r.reduce( + e.edges(), + function (t, n) { + return t + e.edge(n).weight; + }, + 0 + ); + })(e) + 1; + r.forEach(e.children(), function (u) { + !(function e(t, n, o, s, a, u, l) { + var c = t.children(l); + if (!c.length) + return void ( + l !== n && t.setEdge(n, l, { weight: 0, minlen: o }) + ); + var d = i.addBorderNode(t, '_bt'), + h = i.addBorderNode(t, '_bb'), + f = t.node(l); + t.setParent(d, l), + (f.borderTop = d), + t.setParent(h, l), + (f.borderBottom = h), + r.forEach(c, function (r) { + e(t, n, o, s, a, u, r); + var i = t.node(r), + c = i.borderTop ? i.borderTop : r, + f = i.borderBottom ? i.borderBottom : r, + p = i.borderTop ? s : 2 * s, + g = c !== f ? 1 : a - u[l] + 1; + t.setEdge(d, c, { weight: p, minlen: g, nestingEdge: !0 }), + t.setEdge(f, h, { weight: p, minlen: g, nestingEdge: !0 }); + }), + t.parent(l) || t.setEdge(n, d, { weight: 0, minlen: a + u[l] }); + })(e, t, s, a, o, n, u); + }), + (e.graph().nodeRankFactor = s); + }, + cleanup: function (e) { + var t = e.graph(); + e.removeNode(t.nestingRoot), + delete t.nestingRoot, + r.forEach(e.edges(), function (t) { + e.edge(t).nestingEdge && e.removeEdge(t); + }); + }, + }; + }, + function (e, t, n) { + var r = n(2), + i = n(5); + function o(e, t, n, r, o, s) { + var a = { width: 0, height: 0, rank: s, borderType: t }, + u = o[t][s - 1], + l = i.addDummyNode(e, 'border', a, n); + (o[t][s] = l), e.setParent(l, r), u && e.setEdge(u, l, { weight: 1 }); + } + e.exports = function (e) { + r.forEach(e.children(), function t(n) { + var i = e.children(n), + s = e.node(n); + if ((i.length && r.forEach(i, t), r.has(s, 'minRank'))) { + (s.borderLeft = []), (s.borderRight = []); + for (var a = s.minRank, u = s.maxRank + 1; a < u; ++a) + o(e, 'borderLeft', '_bl', n, s, a), + o(e, 'borderRight', '_br', n, s, a); + } + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2); + function i(e) { + r.forEach(e.nodes(), function (t) { + o(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + o(e.edge(t)); + }); + } + function o(e) { + var t = e.width; + (e.width = e.height), (e.height = t); + } + function s(e) { + e.y = -e.y; + } + function a(e) { + var t = e.x; + (e.x = e.y), (e.y = t); + } + e.exports = { + adjust: function (e) { + var t = e.graph().rankdir.toLowerCase(); + ('lr' !== t && 'rl' !== t) || i(e); + }, + undo: function (e) { + var t = e.graph().rankdir.toLowerCase(); + ('bt' !== t && 'rl' !== t) || + (function (e) { + r.forEach(e.nodes(), function (t) { + s(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.forEach(n.points, s), r.has(n, 'y') && s(n); + }); + })(e); + ('lr' !== t && 'rl' !== t) || + (!(function (e) { + r.forEach(e.nodes(), function (t) { + a(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.forEach(n.points, a), r.has(n, 'x') && a(n); + }); + })(e), + i(e)); + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(509), + o = n(510), + s = n(511), + a = n(515), + u = n(516), + l = n(13).Graph, + c = n(5); + function d(e, t, n) { + return r.map(t, function (t) { + return a(e, t, n); + }); + } + function h(e, t) { + var n = new l(); + r.forEach(e, function (e) { + var i = e.graph().root, + o = s(e, i, n, t); + r.forEach(o.vs, function (t, n) { + e.node(t).order = n; + }), + u(e, n, o.vs); + }); + } + function f(e, t) { + r.forEach(t, function (t) { + r.forEach(t, function (t, n) { + e.node(t).order = n; + }); + }); + } + e.exports = function (e) { + var t = c.maxRank(e), + n = d(e, r.range(1, t + 1), 'inEdges'), + s = d(e, r.range(t - 1, -1, -1), 'outEdges'), + a = i(e); + f(e, a); + for (var u, l = Number.POSITIVE_INFINITY, p = 0, g = 0; g < 4; ++p, ++g) { + h(p % 2 ? n : s, p % 4 >= 2), (a = c.buildLayerMatrix(e)); + var m = o(e, a); + m < l && ((g = 0), (u = r.cloneDeep(a)), (l = m)); + } + f(e, u); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2); + e.exports = function (e) { + var t = {}, + n = r.filter(e.nodes(), function (t) { + return !e.children(t).length; + }), + i = r.max( + r.map(n, function (t) { + return e.node(t).rank; + }) + ), + o = r.map(r.range(i + 1), function () { + return []; + }); + var s = r.sortBy(n, function (t) { + return e.node(t).rank; + }); + return ( + r.forEach(s, function n(i) { + if (r.has(t, i)) return; + t[i] = !0; + var s = e.node(i); + o[s.rank].push(i), r.forEach(e.successors(i), n); + }), + o + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2); + function i(e, t, n) { + for ( + var i = r.zipObject( + n, + r.map(n, function (e, t) { + return t; + }) + ), + o = r.flatten( + r.map(t, function (t) { + return r.sortBy( + r.map(e.outEdges(t), function (t) { + return { pos: i[t.w], weight: e.edge(t).weight }; + }), + 'pos' + ); + }), + !0 + ), + s = 1; + s < n.length; + + ) + s <<= 1; + var a = 2 * s - 1; + s -= 1; + var u = r.map(new Array(a), function () { + return 0; + }), + l = 0; + return ( + r.forEach( + o.forEach(function (e) { + var t = e.pos + s; + u[t] += e.weight; + for (var n = 0; t > 0; ) + t % 2 && (n += u[t + 1]), (u[(t = (t - 1) >> 1)] += e.weight); + l += e.weight * n; + }) + ), + l + ); + } + e.exports = function (e, t) { + for (var n = 0, r = 1; r < t.length; ++r) n += i(e, t[r - 1], t[r]); + return n; + }; + }, + function (e, t, n) { + var r = n(2), + i = n(512), + o = n(513), + s = n(514); + e.exports = function e(t, n, a, u) { + var l = t.children(n), + c = t.node(n), + d = c ? c.borderLeft : void 0, + h = c ? c.borderRight : void 0, + f = {}; + d && + (l = r.filter(l, function (e) { + return e !== d && e !== h; + })); + var p = i(t, l); + r.forEach(p, function (n) { + if (t.children(n.v).length) { + var i = e(t, n.v, a, u); + (f[n.v] = i), + r.has(i, 'barycenter') && + ((o = n), + (s = i), + r.isUndefined(o.barycenter) + ? ((o.barycenter = s.barycenter), (o.weight = s.weight)) + : ((o.barycenter = + (o.barycenter * o.weight + s.barycenter * s.weight) / + (o.weight + s.weight)), + (o.weight += s.weight))); + } + var o, s; + }); + var g = o(p, a); + !(function (e, t) { + r.forEach(e, function (e) { + e.vs = r.flatten( + e.vs.map(function (e) { + return t[e] ? t[e].vs : e; + }), + !0 + ); + }); + })(g, f); + var m = s(g, u); + if ( + d && + ((m.vs = r.flatten([d, m.vs, h], !0)), t.predecessors(d).length) + ) { + var _ = t.node(t.predecessors(d)[0]), + y = t.node(t.predecessors(h)[0]); + r.has(m, 'barycenter') || ((m.barycenter = 0), (m.weight = 0)), + (m.barycenter = + (m.barycenter * m.weight + _.order + y.order) / (m.weight + 2)), + (m.weight += 2); + } + return m; + }; + }, + function (e, t, n) { + var r = n(2); + e.exports = function (e, t) { + return r.map(t, function (t) { + var n = e.inEdges(t); + if (n.length) { + var i = r.reduce( + n, + function (t, n) { + var r = e.edge(n), + i = e.node(n.v); + return { + sum: t.sum + r.weight * i.order, + weight: t.weight + r.weight, + }; + }, + { sum: 0, weight: 0 } + ); + return { v: t, barycenter: i.sum / i.weight, weight: i.weight }; + } + return { v: t }; + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2); + e.exports = function (e, t) { + var n = {}; + return ( + r.forEach(e, function (e, t) { + var i = (n[e.v] = { indegree: 0, in: [], out: [], vs: [e.v], i: t }); + r.isUndefined(e.barycenter) || + ((i.barycenter = e.barycenter), (i.weight = e.weight)); + }), + r.forEach(t.edges(), function (e) { + var t = n[e.v], + i = n[e.w]; + r.isUndefined(t) || + r.isUndefined(i) || + (i.indegree++, t.out.push(n[e.w])); + }), + (function (e) { + var t = []; + function n(e) { + return function (t) { + t.merged || + ((r.isUndefined(t.barycenter) || + r.isUndefined(e.barycenter) || + t.barycenter >= e.barycenter) && + (function (e, t) { + var n = 0, + r = 0; + e.weight && + ((n += e.barycenter * e.weight), (r += e.weight)); + t.weight && + ((n += t.barycenter * t.weight), (r += t.weight)); + (e.vs = t.vs.concat(e.vs)), + (e.barycenter = n / r), + (e.weight = r), + (e.i = Math.min(t.i, e.i)), + (t.merged = !0); + })(e, t)); + }; + } + function i(t) { + return function (n) { + n.in.push(t), 0 == --n.indegree && e.push(n); + }; + } + for (; e.length; ) { + var o = e.pop(); + t.push(o), r.forEach(o.in.reverse(), n(o)), r.forEach(o.out, i(o)); + } + return r.map( + r.filter(t, function (e) { + return !e.merged; + }), + function (e) { + return r.pick(e, ['vs', 'i', 'barycenter', 'weight']); + } + ); + })( + r.filter(n, function (e) { + return !e.indegree; + }) + ) + ); + }; + }, + function (e, t, n) { + var r = n(2), + i = n(5); + function o(e, t, n) { + for (var i; t.length && (i = r.last(t)).i <= n; ) + t.pop(), e.push(i.vs), n++; + return n; + } + e.exports = function (e, t) { + var n = i.partition(e, function (e) { + return r.has(e, 'barycenter'); + }), + s = n.lhs, + a = r.sortBy(n.rhs, function (e) { + return -e.i; + }), + u = [], + l = 0, + c = 0, + d = 0; + s.sort( + ((h = !!t), + function (e, t) { + return e.barycenter < t.barycenter + ? -1 + : e.barycenter > t.barycenter + ? 1 + : h + ? t.i - e.i + : e.i - t.i; + }) + ), + (d = o(u, a, d)), + r.forEach(s, function (e) { + (d += e.vs.length), + u.push(e.vs), + (l += e.barycenter * e.weight), + (c += e.weight), + (d = o(u, a, d)); + }); + var h; + var f = { vs: r.flatten(u, !0) }; + c && ((f.barycenter = l / c), (f.weight = c)); + return f; + }; + }, + function (e, t, n) { + var r = n(2), + i = n(13).Graph; + e.exports = function (e, t, n) { + var o = (function (e) { + var t; + for (; e.hasNode((t = r.uniqueId('_root'))); ); + return t; + })(e), + s = new i({ compound: !0 }) + .setGraph({ root: o }) + .setDefaultNodeLabel(function (t) { + return e.node(t); + }); + return ( + r.forEach(e.nodes(), function (i) { + var a = e.node(i), + u = e.parent(i); + (a.rank === t || (a.minRank <= t && t <= a.maxRank)) && + (s.setNode(i), + s.setParent(i, u || o), + r.forEach(e[n](i), function (t) { + var n = t.v === i ? t.w : t.v, + o = s.edge(n, i), + a = r.isUndefined(o) ? 0 : o.weight; + s.setEdge(n, i, { weight: e.edge(t).weight + a }); + }), + r.has(a, 'minRank') && + s.setNode(i, { + borderLeft: a.borderLeft[t], + borderRight: a.borderRight[t], + })); + }), + s + ); + }; + }, + function (e, t, n) { + var r = n(2); + e.exports = function (e, t, n) { + var i, + o = {}; + r.forEach(n, function (n) { + for (var r, s, a = e.parent(n); a; ) { + if ( + ((r = e.parent(a)) ? ((s = o[r]), (o[r] = a)) : ((s = i), (i = a)), + s && s !== a) + ) + return void t.setEdge(s, a); + a = r; + } + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(5), + o = n(518).positionX; + e.exports = function (e) { + (function (e) { + var t = i.buildLayerMatrix(e), + n = e.graph().ranksep, + o = 0; + r.forEach(t, function (t) { + var i = r.max( + r.map(t, function (t) { + return e.node(t).height; + }) + ); + r.forEach(t, function (t) { + e.node(t).y = o + i / 2; + }), + (o += i + n); + }); + })((e = i.asNonCompoundGraph(e))), + r.forEach(o(e), function (t, n) { + e.node(n).x = t; + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(2), + i = n(13).Graph, + o = n(5); + function s(e, t) { + var n = {}; + return ( + r.reduce(t, function (t, i) { + var o = 0, + s = 0, + a = t.length, + l = r.last(i); + return ( + r.forEach(i, function (t, c) { + var d = (function (e, t) { + if (e.node(t).dummy) + return r.find(e.predecessors(t), function (t) { + return e.node(t).dummy; + }); + })(e, t), + h = d ? e.node(d).order : a; + (d || t === l) && + (r.forEach(i.slice(s, c + 1), function (t) { + r.forEach(e.predecessors(t), function (r) { + var i = e.node(r), + s = i.order; + !(s < o || h < s) || + (i.dummy && e.node(t).dummy) || + u(n, r, t); + }); + }), + (s = c + 1), + (o = h)); + }), + i + ); + }), + n + ); + } + function a(e, t) { + var n = {}; + function i(t, i, o, s, a) { + var l; + r.forEach(r.range(i, o), function (i) { + (l = t[i]), + e.node(l).dummy && + r.forEach(e.predecessors(l), function (t) { + var r = e.node(t); + r.dummy && (r.order < s || r.order > a) && u(n, t, l); + }); + }); + } + return ( + r.reduce(t, function (t, n) { + var o, + s = -1, + a = 0; + return ( + r.forEach(n, function (r, u) { + if ('border' === e.node(r).dummy) { + var l = e.predecessors(r); + l.length && + ((o = e.node(l[0]).order), + i(n, a, u, s, o), + (a = u), + (s = o)); + } + i(n, a, n.length, o, t.length); + }), + n + ); + }), + n + ); + } + function u(e, t, n) { + if (t > n) { + var r = t; + (t = n), (n = r); + } + var i = e[t]; + i || (e[t] = i = {}), (i[n] = !0); + } + function l(e, t, n) { + if (t > n) { + var i = t; + (t = n), (n = i); + } + return r.has(e[t], n); + } + function c(e, t, n, i) { + var o = {}, + s = {}, + a = {}; + return ( + r.forEach(t, function (e) { + r.forEach(e, function (e, t) { + (o[e] = e), (s[e] = e), (a[e] = t); + }); + }), + r.forEach(t, function (e) { + var t = -1; + r.forEach(e, function (e) { + var u = i(e); + if (u.length) + for ( + var c = + ((u = r.sortBy(u, function (e) { + return a[e]; + })).length - + 1) / + 2, + d = Math.floor(c), + h = Math.ceil(c); + d <= h; + ++d + ) { + var f = u[d]; + s[e] === e && + t < a[f] && + !l(n, e, f) && + ((s[f] = e), (s[e] = o[e] = o[f]), (t = a[f])); + } + }); + }), + { root: o, align: s } + ); + } + function d(e, t, n, o, s) { + var a = {}, + u = (function (e, t, n, o) { + var s = new i(), + a = e.graph(), + u = (function (e, t, n) { + return function (i, o, s) { + var a, + u = i.node(o), + l = i.node(s), + c = 0; + if (((c += u.width / 2), r.has(u, 'labelpos'))) + switch (u.labelpos.toLowerCase()) { + case 'l': + a = -u.width / 2; + break; + case 'r': + a = u.width / 2; + } + if ( + (a && (c += n ? a : -a), + (a = 0), + (c += (u.dummy ? t : e) / 2), + (c += (l.dummy ? t : e) / 2), + (c += l.width / 2), + r.has(l, 'labelpos')) + ) + switch (l.labelpos.toLowerCase()) { + case 'l': + a = l.width / 2; + break; + case 'r': + a = -l.width / 2; + } + return a && (c += n ? a : -a), (a = 0), c; + }; + })(a.nodesep, a.edgesep, o); + return ( + r.forEach(t, function (t) { + var i; + r.forEach(t, function (t) { + var r = n[t]; + if ((s.setNode(r), i)) { + var o = n[i], + a = s.edge(o, r); + s.setEdge(o, r, Math.max(u(e, t, i), a || 0)); + } + i = t; + }); + }), + s + ); + })(e, t, n, s), + l = s ? 'borderLeft' : 'borderRight'; + function c(e, t) { + for (var n = u.nodes(), r = n.pop(), i = {}; r; ) + i[r] ? e(r) : ((i[r] = !0), n.push(r), (n = n.concat(t(r)))), + (r = n.pop()); + } + return ( + c(function (e) { + a[e] = u.inEdges(e).reduce(function (e, t) { + return Math.max(e, a[t.v] + u.edge(t)); + }, 0); + }, u.predecessors.bind(u)), + c(function (t) { + var n = u.outEdges(t).reduce(function (e, t) { + return Math.min(e, a[t.w] - u.edge(t)); + }, Number.POSITIVE_INFINITY), + r = e.node(t); + n !== Number.POSITIVE_INFINITY && + r.borderType !== l && + (a[t] = Math.max(a[t], n)); + }, u.successors.bind(u)), + r.forEach(o, function (e) { + a[e] = a[n[e]]; + }), + a + ); + } + function h(e, t) { + return r.minBy(r.values(t), function (t) { + var n = Number.NEGATIVE_INFINITY, + i = Number.POSITIVE_INFINITY; + return ( + r.forIn(t, function (t, r) { + var o = + (function (e, t) { + return e.node(t).width; + })(e, r) / 2; + (n = Math.max(t + o, n)), (i = Math.min(t - o, i)); + }), + n - i + ); + }); + } + function f(e, t) { + var n = r.values(t), + i = r.min(n), + o = r.max(n); + r.forEach(['u', 'd'], function (n) { + r.forEach(['l', 'r'], function (s) { + var a, + u = n + s, + l = e[u]; + if (l !== t) { + var c = r.values(l); + (a = 'l' === s ? i - r.min(c) : o - r.max(c)) && + (e[u] = r.mapValues(l, function (e) { + return e + a; + })); + } + }); + }); + } + function p(e, t) { + return r.mapValues(e.ul, function (n, i) { + if (t) return e[t.toLowerCase()][i]; + var o = r.sortBy(r.map(e, i)); + return (o[1] + o[2]) / 2; + }); + } + e.exports = { + positionX: function (e) { + var t, + n = o.buildLayerMatrix(e), + i = r.merge(s(e, n), a(e, n)), + u = {}; + r.forEach(['u', 'd'], function (o) { + (t = 'u' === o ? n : r.values(n).reverse()), + r.forEach(['l', 'r'], function (n) { + 'r' === n && + (t = r.map(t, function (e) { + return r.values(e).reverse(); + })); + var s = ('u' === o ? e.predecessors : e.successors).bind(e), + a = c(e, t, i, s), + l = d(e, t, a.root, a.align, 'r' === n); + 'r' === n && + (l = r.mapValues(l, function (e) { + return -e; + })), + (u[o + n] = l); + }); + }); + var l = h(e, u); + return f(u, l), p(u, e.graph().align); + }, + findType1Conflicts: s, + findType2Conflicts: a, + addConflict: u, + hasConflict: l, + verticalAlignment: c, + horizontalCompaction: d, + alignCoordinates: f, + findSmallestWidthAlignment: h, + balance: p, + }; + }, + function (e, t, n) { + var r = n(2), + i = n(5), + o = n(13).Graph; + e.exports = { + debugOrdering: function (e) { + var t = i.buildLayerMatrix(e), + n = new o({ compound: !0, multigraph: !0 }).setGraph({}); + return ( + r.forEach(e.nodes(), function (t) { + n.setNode(t, { label: t }), + n.setParent(t, 'layer' + e.node(t).rank); + }), + r.forEach(e.edges(), function (e) { + n.setEdge(e.v, e.w, {}, e.name); + }), + r.forEach(t, function (e, t) { + var i = 'layer' + t; + n.setNode(i, { rank: 'same' }), + r.reduce(e, function (e, t) { + return n.setEdge(e, t, { style: 'invis' }), t; + }); + }), + n + ); + }, + }; + }, + function (e, t) { + e.exports = '0.8.4'; + }, + function (e, t, n) { + /** + * @license + * Copyright (c) 2012-2013 Chris Pettitt + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + */ + e.exports = { + graphlib: n(522), + dagre: n(172), + intersect: n(560), + render: n(562), + util: n(10), + version: n(574), + }; + }, + function (e, t, n) { + var r; + try { + r = n(166); + } catch (e) {} + r || (r = window.graphlib), (e.exports = r); + }, + function (e, t, n) { + e.exports = { Graph: n(96), version: n(524) }; + }, + function (e, t) { + e.exports = '2.1.8'; + }, + function (e, t, n) { + var r = n(9), + i = n(96); + function o(e) { + return r.map(e.nodes(), function (t) { + var n = e.node(t), + i = e.parent(t), + o = { v: t }; + return ( + r.isUndefined(n) || (o.value = n), + r.isUndefined(i) || (o.parent = i), + o + ); + }); + } + function s(e) { + return r.map(e.edges(), function (t) { + var n = e.edge(t), + i = { v: t.v, w: t.w }; + return ( + r.isUndefined(t.name) || (i.name = t.name), + r.isUndefined(n) || (i.value = n), + i + ); + }); + } + e.exports = { + write: function (e) { + var t = { + options: { + directed: e.isDirected(), + multigraph: e.isMultigraph(), + compound: e.isCompound(), + }, + nodes: o(e), + edges: s(e), + }; + r.isUndefined(e.graph()) || (t.value = r.clone(e.graph())); + return t; + }, + read: function (e) { + var t = new i(e.options).setGraph(e.value); + return ( + r.each(e.nodes, function (e) { + t.setNode(e.v, e.value), e.parent && t.setParent(e.v, e.parent); + }), + r.each(e.edges, function (e) { + t.setEdge({ v: e.v, w: e.w, name: e.name }, e.value); + }), + t + ); + }, + }; + }, + function (e, t, n) { + e.exports = { + components: n(527), + dijkstra: n(167), + dijkstraAll: n(528), + findCycles: n(529), + floydWarshall: n(530), + isAcyclic: n(531), + postorder: n(532), + preorder: n(533), + prim: n(534), + tarjan: n(169), + topsort: n(170), + }; + }, + function (e, t, n) { + var r = n(9); + e.exports = function (e) { + var t, + n = {}, + i = []; + function o(i) { + r.has(n, i) || + ((n[i] = !0), + t.push(i), + r.each(e.successors(i), o), + r.each(e.predecessors(i), o)); + } + return ( + r.each(e.nodes(), function (e) { + (t = []), o(e), t.length && i.push(t); + }), + i + ); + }; + }, + function (e, t, n) { + var r = n(167), + i = n(9); + e.exports = function (e, t, n) { + return i.transform( + e.nodes(), + function (i, o) { + i[o] = r(e, o, t, n); + }, + {} + ); + }; + }, + function (e, t, n) { + var r = n(9), + i = n(169); + e.exports = function (e) { + return r.filter(i(e), function (t) { + return t.length > 1 || (1 === t.length && e.hasEdge(t[0], t[0])); + }); + }; + }, + function (e, t, n) { + var r = n(9); + e.exports = function (e, t, n) { + return (function (e, t, n) { + var r = {}, + i = e.nodes(); + return ( + i.forEach(function (e) { + (r[e] = {}), + (r[e][e] = { distance: 0 }), + i.forEach(function (t) { + e !== t && (r[e][t] = { distance: Number.POSITIVE_INFINITY }); + }), + n(e).forEach(function (n) { + var i = n.v === e ? n.w : n.v, + o = t(n); + r[e][i] = { distance: o, predecessor: e }; + }); + }), + i.forEach(function (e) { + var t = r[e]; + i.forEach(function (n) { + var o = r[n]; + i.forEach(function (n) { + var r = o[e], + i = t[n], + s = o[n], + a = r.distance + i.distance; + a < s.distance && + ((s.distance = a), (s.predecessor = i.predecessor)); + }); + }); + }), + r + ); + })( + e, + t || i, + n || + function (t) { + return e.outEdges(t); + } + ); + }; + var i = r.constant(1); + }, + function (e, t, n) { + var r = n(170); + e.exports = function (e) { + try { + r(e); + } catch (e) { + if (e instanceof r.CycleException) return !1; + throw e; + } + return !0; + }; + }, + function (e, t, n) { + var r = n(171); + e.exports = function (e, t) { + return r(e, t, 'post'); + }; + }, + function (e, t, n) { + var r = n(171); + e.exports = function (e, t) { + return r(e, t, 'pre'); + }; + }, + function (e, t, n) { + var r = n(9), + i = n(96), + o = n(168); + e.exports = function (e, t) { + var n, + s = new i(), + a = {}, + u = new o(); + function l(e) { + var r = e.v === n ? e.w : e.v, + i = u.priority(r); + if (void 0 !== i) { + var o = t(e); + o < i && ((a[r] = n), u.decrease(r, o)); + } + } + if (0 === e.nodeCount()) return s; + r.each(e.nodes(), function (e) { + u.add(e, Number.POSITIVE_INFINITY), s.setNode(e); + }), + u.decrease(e.nodes()[0], 0); + var c = !1; + for (; u.size() > 0; ) { + if (((n = u.removeMin()), r.has(a, n))) s.setEdge(n, a[n]); + else { + if (c) throw new Error('Input graph is not connected: ' + e); + c = !0; + } + e.nodeEdges(n).forEach(l); + } + return s; + }; + }, + function (e, t, n) { + e.exports = { + graphlib: n(15), + layout: n(536), + debug: n(558), + util: { time: n(6).time, notime: n(6).notime }, + version: n(559), + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(537), + o = n(540), + s = n(541), + a = n(6).normalizeRanks, + u = n(543), + l = n(6).removeEmptyRanks, + c = n(544), + d = n(545), + h = n(546), + f = n(547), + p = n(556), + g = n(6), + m = n(15).Graph; + e.exports = function (e, t) { + var n = t && t.debugTiming ? g.time : g.notime; + n('layout', function () { + var t = n(' buildLayoutGraph', function () { + return (function (e) { + var t = new m({ multigraph: !0, compound: !0 }), + n = k(e.graph()); + return ( + t.setGraph(r.merge({}, y, L(n, _), r.pick(n, v))), + r.forEach(e.nodes(), function (n) { + var i = k(e.node(n)); + t.setNode(n, r.defaults(L(i, b), w)), + t.setParent(n, e.parent(n)); + }), + r.forEach(e.edges(), function (n) { + var i = k(e.edge(n)); + t.setEdge(n, r.merge({}, S, L(i, C), r.pick(i, x))); + }), + t + ); + })(e); + }); + n(' runLayout', function () { + !(function (e, t) { + t(' makeSpaceForEdgeLabels', function () { + !(function (e) { + var t = e.graph(); + (t.ranksep /= 2), + r.forEach(e.edges(), function (n) { + var r = e.edge(n); + (r.minlen *= 2), + 'c' !== r.labelpos.toLowerCase() && + ('TB' === t.rankdir || 'BT' === t.rankdir + ? (r.width += r.labeloffset) + : (r.height += r.labeloffset)); + }); + })(e); + }), + t(' removeSelfEdges', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + if (t.v === t.w) { + var n = e.node(t.v); + n.selfEdges || (n.selfEdges = []), + n.selfEdges.push({ e: t, label: e.edge(t) }), + e.removeEdge(t); + } + }); + })(e); + }), + t(' acyclic', function () { + i.run(e); + }), + t(' nestingGraph.run', function () { + c.run(e); + }), + t(' rank', function () { + s(g.asNonCompoundGraph(e)); + }), + t(' injectEdgeLabelProxies', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (n.width && n.height) { + var r = e.node(t.v), + i = { + rank: (e.node(t.w).rank - r.rank) / 2 + r.rank, + e: t, + }; + g.addDummyNode(e, 'edge-proxy', i, '_ep'); + } + }); + })(e); + }), + t(' removeEmptyRanks', function () { + l(e); + }), + t(' nestingGraph.cleanup', function () { + c.cleanup(e); + }), + t(' normalizeRanks', function () { + a(e); + }), + t(' assignRankMinMax', function () { + !(function (e) { + var t = 0; + r.forEach(e.nodes(), function (n) { + var i = e.node(n); + i.borderTop && + ((i.minRank = e.node(i.borderTop).rank), + (i.maxRank = e.node(i.borderBottom).rank), + (t = r.max(t, i.maxRank))); + }), + (e.graph().maxRank = t); + })(e); + }), + t(' removeEdgeLabelProxies', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + var n = e.node(t); + 'edge-proxy' === n.dummy && + ((e.edge(n.e).labelRank = n.rank), e.removeNode(t)); + }); + })(e); + }), + t(' normalize.run', function () { + o.run(e); + }), + t(' parentDummyChains', function () { + u(e); + }), + t(' addBorderSegments', function () { + d(e); + }), + t(' order', function () { + f(e); + }), + t(' insertSelfEdges', function () { + !(function (e) { + var t = g.buildLayerMatrix(e); + r.forEach(t, function (t) { + var n = 0; + r.forEach(t, function (t, i) { + var o = e.node(t); + (o.order = i + n), + r.forEach(o.selfEdges, function (t) { + g.addDummyNode( + e, + 'selfedge', + { + width: t.label.width, + height: t.label.height, + rank: o.rank, + order: i + ++n, + e: t.e, + label: t.label, + }, + '_se' + ); + }), + delete o.selfEdges; + }); + }); + })(e); + }), + t(' adjustCoordinateSystem', function () { + h.adjust(e); + }), + t(' position', function () { + p(e); + }), + t(' positionSelfEdges', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + var n = e.node(t); + if ('selfedge' === n.dummy) { + var r = e.node(n.e.v), + i = r.x + r.width / 2, + o = r.y, + s = n.x - i, + a = r.height / 2; + e.setEdge(n.e, n.label), + e.removeNode(t), + (n.label.points = [ + { x: i + (2 * s) / 3, y: o - a }, + { x: i + (5 * s) / 6, y: o - a }, + { x: i + s, y: o }, + { x: i + (5 * s) / 6, y: o + a }, + { x: i + (2 * s) / 3, y: o + a }, + ]), + (n.label.x = n.x), + (n.label.y = n.y); + } + }); + })(e); + }), + t(' removeBorderNodes', function () { + !(function (e) { + r.forEach(e.nodes(), function (t) { + if (e.children(t).length) { + var n = e.node(t), + i = e.node(n.borderTop), + o = e.node(n.borderBottom), + s = e.node(r.last(n.borderLeft)), + a = e.node(r.last(n.borderRight)); + (n.width = Math.abs(a.x - s.x)), + (n.height = Math.abs(o.y - i.y)), + (n.x = s.x + n.width / 2), + (n.y = i.y + n.height / 2); + } + }), + r.forEach(e.nodes(), function (t) { + 'border' === e.node(t).dummy && e.removeNode(t); + }); + })(e); + }), + t(' normalize.undo', function () { + o.undo(e); + }), + t(' fixupEdgeLabelCoords', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (r.has(n, 'x')) + switch ( + (('l' !== n.labelpos && 'r' !== n.labelpos) || + (n.width -= n.labeloffset), + n.labelpos) + ) { + case 'l': + n.x -= n.width / 2 + n.labeloffset; + break; + case 'r': + n.x += n.width / 2 + n.labeloffset; + } + }); + })(e); + }), + t(' undoCoordinateSystem', function () { + h.undo(e); + }), + t(' translateGraph', function () { + !(function (e) { + var t = Number.POSITIVE_INFINITY, + n = 0, + i = Number.POSITIVE_INFINITY, + o = 0, + s = e.graph(), + a = s.marginx || 0, + u = s.marginy || 0; + function l(e) { + var r = e.x, + s = e.y, + a = e.width, + u = e.height; + (t = Math.min(t, r - a / 2)), + (n = Math.max(n, r + a / 2)), + (i = Math.min(i, s - u / 2)), + (o = Math.max(o, s + u / 2)); + } + r.forEach(e.nodes(), function (t) { + l(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.has(n, 'x') && l(n); + }), + (t -= a), + (i -= u), + r.forEach(e.nodes(), function (n) { + var r = e.node(n); + (r.x -= t), (r.y -= i); + }), + r.forEach(e.edges(), function (n) { + var o = e.edge(n); + r.forEach(o.points, function (e) { + (e.x -= t), (e.y -= i); + }), + r.has(o, 'x') && (o.x -= t), + r.has(o, 'y') && (o.y -= i); + }), + (s.width = n - t + a), + (s.height = o - i + u); + })(e); + }), + t(' assignNodeIntersects', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n, + r, + i = e.edge(t), + o = e.node(t.v), + s = e.node(t.w); + i.points + ? ((n = i.points[0]), (r = i.points[i.points.length - 1])) + : ((i.points = []), (n = s), (r = o)), + i.points.unshift(g.intersectRect(o, n)), + i.points.push(g.intersectRect(s, r)); + }); + })(e); + }), + t(' reversePoints', function () { + !(function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + n.reversed && n.points.reverse(); + }); + })(e); + }), + t(' acyclic.undo', function () { + i.undo(e); + }); + })(t, n); + }), + n(' updateInputGraph', function () { + !(function (e, t) { + r.forEach(e.nodes(), function (n) { + var r = e.node(n), + i = t.node(n); + r && + ((r.x = i.x), + (r.y = i.y), + t.children(n).length && + ((r.width = i.width), (r.height = i.height))); + }), + r.forEach(e.edges(), function (n) { + var i = e.edge(n), + o = t.edge(n); + (i.points = o.points), + r.has(o, 'x') && ((i.x = o.x), (i.y = o.y)); + }), + (e.graph().width = t.graph().width), + (e.graph().height = t.graph().height); + })(e, t); + }); + }); + }; + var _ = ['nodesep', 'edgesep', 'ranksep', 'marginx', 'marginy'], + y = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: 'tb' }, + v = ['acyclicer', 'ranker', 'rankdir', 'align'], + b = ['width', 'height'], + w = { width: 0, height: 0 }, + C = ['minlen', 'weight', 'width', 'height', 'labeloffset'], + S = { + minlen: 1, + weight: 1, + width: 0, + height: 0, + labeloffset: 10, + labelpos: 'r', + }, + x = ['labelpos']; + function L(e, t) { + return r.mapValues(r.pick(e, t), Number); + } + function k(e) { + var t = {}; + return ( + r.forEach(e, function (e, n) { + t[n.toLowerCase()] = e; + }), + t + ); + } + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(538); + e.exports = { + run: function (e) { + var t = + 'greedy' === e.graph().acyclicer + ? i( + e, + (function (e) { + return function (t) { + return e.edge(t).weight; + }; + })(e) + ) + : (function (e) { + var t = [], + n = {}, + i = {}; + return ( + r.forEach(e.nodes(), function o(s) { + if (r.has(i, s)) return; + (i[s] = !0), + (n[s] = !0), + r.forEach(e.outEdges(s), function (e) { + r.has(n, e.w) ? t.push(e) : o(e.w); + }), + delete n[s]; + }), + t + ); + })(e); + r.forEach(t, function (t) { + var n = e.edge(t); + e.removeEdge(t), + (n.forwardName = t.name), + (n.reversed = !0), + e.setEdge(t.w, t.v, n, r.uniqueId('rev')); + }); + }, + undo: function (e) { + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + if (n.reversed) { + e.removeEdge(t); + var r = n.forwardName; + delete n.reversed, delete n.forwardName, e.setEdge(t.w, t.v, n, r); + } + }); + }, + }; + }, + function (e, t, n) { + var r = n(3), + i = n(15).Graph, + o = n(539); + e.exports = function (e, t) { + if (e.nodeCount() <= 1) return []; + var n = (function (e, t) { + var n = new i(), + s = 0, + a = 0; + r.forEach(e.nodes(), function (e) { + n.setNode(e, { v: e, in: 0, out: 0 }); + }), + r.forEach(e.edges(), function (e) { + var r = n.edge(e.v, e.w) || 0, + i = t(e), + o = r + i; + n.setEdge(e.v, e.w, o), + (a = Math.max(a, (n.node(e.v).out += i))), + (s = Math.max(s, (n.node(e.w).in += i))); + }); + var l = r.range(a + s + 3).map(function () { + return new o(); + }), + c = s + 1; + return ( + r.forEach(n.nodes(), function (e) { + u(l, c, n.node(e)); + }), + { graph: n, buckets: l, zeroIdx: c } + ); + })(e, t || s), + l = (function (e, t, n) { + var r, + i = [], + o = t[t.length - 1], + s = t[0]; + for (; e.nodeCount(); ) { + for (; (r = s.dequeue()); ) a(e, t, n, r); + for (; (r = o.dequeue()); ) a(e, t, n, r); + if (e.nodeCount()) + for (var u = t.length - 2; u > 0; --u) + if ((r = t[u].dequeue())) { + i = i.concat(a(e, t, n, r, !0)); + break; + } + } + return i; + })(n.graph, n.buckets, n.zeroIdx); + return r.flatten( + r.map(l, function (t) { + return e.outEdges(t.v, t.w); + }), + !0 + ); + }; + var s = r.constant(1); + function a(e, t, n, i, o) { + var s = o ? [] : void 0; + return ( + r.forEach(e.inEdges(i.v), function (r) { + var i = e.edge(r), + a = e.node(r.v); + o && s.push({ v: r.v, w: r.w }), (a.out -= i), u(t, n, a); + }), + r.forEach(e.outEdges(i.v), function (r) { + var i = e.edge(r), + o = r.w, + s = e.node(o); + (s.in -= i), u(t, n, s); + }), + e.removeNode(i.v), + s + ); + } + function u(e, t, n) { + n.out + ? n.in + ? e[n.out - n.in + t].enqueue(n) + : e[e.length - 1].enqueue(n) + : e[0].enqueue(n); + } + }, + function (e, t) { + function n() { + var e = {}; + (e._next = e._prev = e), (this._sentinel = e); + } + function r(e) { + (e._prev._next = e._next), + (e._next._prev = e._prev), + delete e._next, + delete e._prev; + } + function i(e, t) { + if ('_next' !== e && '_prev' !== e) return t; + } + (e.exports = n), + (n.prototype.dequeue = function () { + var e = this._sentinel, + t = e._prev; + if (t !== e) return r(t), t; + }), + (n.prototype.enqueue = function (e) { + var t = this._sentinel; + e._prev && e._next && r(e), + (e._next = t._next), + (t._next._prev = e), + (t._next = e), + (e._prev = t); + }), + (n.prototype.toString = function () { + for (var e = [], t = this._sentinel, n = t._prev; n !== t; ) + e.push(JSON.stringify(n, i)), (n = n._prev); + return '[' + e.join(', ') + ']'; + }); + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(6); + e.exports = { + run: function (e) { + (e.graph().dummyChains = []), + r.forEach(e.edges(), function (t) { + !(function (e, t) { + var n, + r, + o, + s = t.v, + a = e.node(s).rank, + u = t.w, + l = e.node(u).rank, + c = t.name, + d = e.edge(t), + h = d.labelRank; + if (l === a + 1) return; + for (e.removeEdge(t), o = 0, ++a; a < l; ++o, ++a) + (d.points = []), + (r = { + width: 0, + height: 0, + edgeLabel: d, + edgeObj: t, + rank: a, + }), + (n = i.addDummyNode(e, 'edge', r, '_d')), + a === h && + ((r.width = d.width), + (r.height = d.height), + (r.dummy = 'edge-label'), + (r.labelpos = d.labelpos)), + e.setEdge(s, n, { weight: d.weight }, c), + 0 === o && e.graph().dummyChains.push(n), + (s = n); + e.setEdge(s, u, { weight: d.weight }, c); + })(e, t); + }); + }, + undo: function (e) { + r.forEach(e.graph().dummyChains, function (t) { + var n, + r = e.node(t), + i = r.edgeLabel; + for (e.setEdge(r.edgeObj, i); r.dummy; ) + (n = e.successors(t)[0]), + e.removeNode(t), + i.points.push({ x: r.x, y: r.y }), + 'edge-label' === r.dummy && + ((i.x = r.x), + (i.y = r.y), + (i.width = r.width), + (i.height = r.height)), + (t = n), + (r = e.node(t)); + }); + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(69).longestPath, + i = n(173), + o = n(542); + e.exports = function (e) { + switch (e.graph().ranker) { + case 'network-simplex': + a(e); + break; + case 'tight-tree': + !(function (e) { + r(e), i(e); + })(e); + break; + case 'longest-path': + s(e); + break; + default: + a(e); + } + }; + var s = r; + function a(e) { + o(e); + } + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(173), + o = n(69).slack, + s = n(69).longestPath, + a = n(15).alg.preorder, + u = n(15).alg.postorder, + l = n(6).simplify; + function c(e) { + (e = l(e)), s(e); + var t, + n = i(e); + for (f(n), d(n, e); (t = p(n)); ) m(n, e, t, g(n, e, t)); + } + function d(e, t) { + var n = u(e, e.nodes()); + (n = n.slice(0, n.length - 1)), + r.forEach(n, function (n) { + !(function (e, t, n) { + var r = e.node(n).parent; + e.edge(n, r).cutvalue = h(e, t, n); + })(e, t, n); + }); + } + function h(e, t, n) { + var i = e.node(n).parent, + o = !0, + s = t.edge(n, i), + a = 0; + return ( + s || ((o = !1), (s = t.edge(i, n))), + (a = s.weight), + r.forEach(t.nodeEdges(n), function (r) { + var s, + u, + l = r.v === n, + c = l ? r.w : r.v; + if (c !== i) { + var d = l === o, + h = t.edge(r).weight; + if (((a += d ? h : -h), (s = n), (u = c), e.hasEdge(s, u))) { + var f = e.edge(n, c).cutvalue; + a += d ? -f : f; + } + } + }), + a + ); + } + function f(e, t) { + arguments.length < 2 && (t = e.nodes()[0]), + (function e(t, n, i, o, s) { + var a = i, + u = t.node(o); + (n[o] = !0), + r.forEach(t.neighbors(o), function (s) { + r.has(n, s) || (i = e(t, n, i, s, o)); + }), + (u.low = a), + (u.lim = i++), + s ? (u.parent = s) : delete u.parent; + return i; + })(e, {}, 1, t); + } + function p(e) { + return r.find(e.edges(), function (t) { + return e.edge(t).cutvalue < 0; + }); + } + function g(e, t, n) { + var i = n.v, + s = n.w; + t.hasEdge(i, s) || ((i = n.w), (s = n.v)); + var a = e.node(i), + u = e.node(s), + l = a, + c = !1; + a.lim > u.lim && ((l = u), (c = !0)); + var d = r.filter(t.edges(), function (t) { + return c === _(e, e.node(t.v), l) && c !== _(e, e.node(t.w), l); + }); + return r.minBy(d, function (e) { + return o(t, e); + }); + } + function m(e, t, n, i) { + var o = n.v, + s = n.w; + e.removeEdge(o, s), + e.setEdge(i.v, i.w, {}), + f(e), + d(e, t), + (function (e, t) { + var n = r.find(e.nodes(), function (e) { + return !t.node(e).parent; + }), + i = a(e, n); + (i = i.slice(1)), + r.forEach(i, function (n) { + var r = e.node(n).parent, + i = t.edge(n, r), + o = !1; + i || ((i = t.edge(r, n)), (o = !0)), + (t.node(n).rank = t.node(r).rank + (o ? i.minlen : -i.minlen)); + }); + })(e, t); + } + function _(e, t, n) { + return n.low <= t.lim && t.lim <= n.lim; + } + (e.exports = c), + (c.initLowLimValues = f), + (c.initCutValues = d), + (c.calcCutValue = h), + (c.leaveEdge = p), + (c.enterEdge = g), + (c.exchangeEdges = m); + }, + function (e, t, n) { + var r = n(3); + e.exports = function (e) { + var t = (function (e) { + var t = {}, + n = 0; + return ( + r.forEach(e.children(), function i(o) { + var s = n; + r.forEach(e.children(o), i), (t[o] = { low: s, lim: n++ }); + }), + t + ); + })(e); + r.forEach(e.graph().dummyChains, function (n) { + for ( + var r = e.node(n), + i = r.edgeObj, + o = (function (e, t, n, r) { + var i, + o, + s = [], + a = [], + u = Math.min(t[n].low, t[r].low), + l = Math.max(t[n].lim, t[r].lim); + i = n; + do { + (i = e.parent(i)), s.push(i); + } while (i && (t[i].low > u || l > t[i].lim)); + (o = i), (i = r); + for (; (i = e.parent(i)) !== o; ) a.push(i); + return { path: s.concat(a.reverse()), lca: o }; + })(e, t, i.v, i.w), + s = o.path, + a = o.lca, + u = 0, + l = s[u], + c = !0; + n !== i.w; + + ) { + if (((r = e.node(n)), c)) { + for (; (l = s[u]) !== a && e.node(l).maxRank < r.rank; ) u++; + l === a && (c = !1); + } + if (!c) { + for ( + ; + u < s.length - 1 && e.node((l = s[u + 1])).minRank <= r.rank; + + ) + u++; + l = s[u]; + } + e.setParent(n, l), (n = e.successors(n)[0]); + } + }); + }; + }, + function (e, t, n) { + var r = n(3), + i = n(6); + e.exports = { + run: function (e) { + var t = i.addDummyNode(e, 'root', {}, '_root'), + n = (function (e) { + var t = {}; + return ( + r.forEach(e.children(), function (n) { + !(function n(i, o) { + var s = e.children(i); + s && + s.length && + r.forEach(s, function (e) { + n(e, o + 1); + }); + t[i] = o; + })(n, 1); + }), + t + ); + })(e), + o = r.max(r.values(n)) - 1, + s = 2 * o + 1; + (e.graph().nestingRoot = t), + r.forEach(e.edges(), function (t) { + e.edge(t).minlen *= s; + }); + var a = + (function (e) { + return r.reduce( + e.edges(), + function (t, n) { + return t + e.edge(n).weight; + }, + 0 + ); + })(e) + 1; + r.forEach(e.children(), function (u) { + !(function e(t, n, o, s, a, u, l) { + var c = t.children(l); + if (!c.length) + return void ( + l !== n && t.setEdge(n, l, { weight: 0, minlen: o }) + ); + var d = i.addBorderNode(t, '_bt'), + h = i.addBorderNode(t, '_bb'), + f = t.node(l); + t.setParent(d, l), + (f.borderTop = d), + t.setParent(h, l), + (f.borderBottom = h), + r.forEach(c, function (r) { + e(t, n, o, s, a, u, r); + var i = t.node(r), + c = i.borderTop ? i.borderTop : r, + f = i.borderBottom ? i.borderBottom : r, + p = i.borderTop ? s : 2 * s, + g = c !== f ? 1 : a - u[l] + 1; + t.setEdge(d, c, { weight: p, minlen: g, nestingEdge: !0 }), + t.setEdge(f, h, { weight: p, minlen: g, nestingEdge: !0 }); + }), + t.parent(l) || t.setEdge(n, d, { weight: 0, minlen: a + u[l] }); + })(e, t, s, a, o, n, u); + }), + (e.graph().nodeRankFactor = s); + }, + cleanup: function (e) { + var t = e.graph(); + e.removeNode(t.nestingRoot), + delete t.nestingRoot, + r.forEach(e.edges(), function (t) { + e.edge(t).nestingEdge && e.removeEdge(t); + }); + }, + }; + }, + function (e, t, n) { + var r = n(3), + i = n(6); + function o(e, t, n, r, o, s) { + var a = { width: 0, height: 0, rank: s, borderType: t }, + u = o[t][s - 1], + l = i.addDummyNode(e, 'border', a, n); + (o[t][s] = l), e.setParent(l, r), u && e.setEdge(u, l, { weight: 1 }); + } + e.exports = function (e) { + r.forEach(e.children(), function t(n) { + var i = e.children(n), + s = e.node(n); + if ((i.length && r.forEach(i, t), r.has(s, 'minRank'))) { + (s.borderLeft = []), (s.borderRight = []); + for (var a = s.minRank, u = s.maxRank + 1; a < u; ++a) + o(e, 'borderLeft', '_bl', n, s, a), + o(e, 'borderRight', '_br', n, s, a); + } + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3); + function i(e) { + r.forEach(e.nodes(), function (t) { + o(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + o(e.edge(t)); + }); + } + function o(e) { + var t = e.width; + (e.width = e.height), (e.height = t); + } + function s(e) { + e.y = -e.y; + } + function a(e) { + var t = e.x; + (e.x = e.y), (e.y = t); + } + e.exports = { + adjust: function (e) { + var t = e.graph().rankdir.toLowerCase(); + ('lr' !== t && 'rl' !== t) || i(e); + }, + undo: function (e) { + var t = e.graph().rankdir.toLowerCase(); + ('bt' !== t && 'rl' !== t) || + (function (e) { + r.forEach(e.nodes(), function (t) { + s(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.forEach(n.points, s), r.has(n, 'y') && s(n); + }); + })(e); + ('lr' !== t && 'rl' !== t) || + (!(function (e) { + r.forEach(e.nodes(), function (t) { + a(e.node(t)); + }), + r.forEach(e.edges(), function (t) { + var n = e.edge(t); + r.forEach(n.points, a), r.has(n, 'x') && a(n); + }); + })(e), + i(e)); + }, + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(548), + o = n(549), + s = n(550), + a = n(554), + u = n(555), + l = n(15).Graph, + c = n(6); + function d(e, t, n) { + return r.map(t, function (t) { + return a(e, t, n); + }); + } + function h(e, t) { + var n = new l(); + r.forEach(e, function (e) { + var i = e.graph().root, + o = s(e, i, n, t); + r.forEach(o.vs, function (t, n) { + e.node(t).order = n; + }), + u(e, n, o.vs); + }); + } + function f(e, t) { + r.forEach(t, function (t) { + r.forEach(t, function (t, n) { + e.node(t).order = n; + }); + }); + } + e.exports = function (e) { + var t = c.maxRank(e), + n = d(e, r.range(1, t + 1), 'inEdges'), + s = d(e, r.range(t - 1, -1, -1), 'outEdges'), + a = i(e); + f(e, a); + for (var u, l = Number.POSITIVE_INFINITY, p = 0, g = 0; g < 4; ++p, ++g) { + h(p % 2 ? n : s, p % 4 >= 2), (a = c.buildLayerMatrix(e)); + var m = o(e, a); + m < l && ((g = 0), (u = r.cloneDeep(a)), (l = m)); + } + f(e, u); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3); + e.exports = function (e) { + var t = {}, + n = r.filter(e.nodes(), function (t) { + return !e.children(t).length; + }), + i = r.max( + r.map(n, function (t) { + return e.node(t).rank; + }) + ), + o = r.map(r.range(i + 1), function () { + return []; + }); + var s = r.sortBy(n, function (t) { + return e.node(t).rank; + }); + return ( + r.forEach(s, function n(i) { + if (r.has(t, i)) return; + t[i] = !0; + var s = e.node(i); + o[s.rank].push(i), r.forEach(e.successors(i), n); + }), + o + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3); + function i(e, t, n) { + for ( + var i = r.zipObject( + n, + r.map(n, function (e, t) { + return t; + }) + ), + o = r.flatten( + r.map(t, function (t) { + return r.sortBy( + r.map(e.outEdges(t), function (t) { + return { pos: i[t.w], weight: e.edge(t).weight }; + }), + 'pos' + ); + }), + !0 + ), + s = 1; + s < n.length; + + ) + s <<= 1; + var a = 2 * s - 1; + s -= 1; + var u = r.map(new Array(a), function () { + return 0; + }), + l = 0; + return ( + r.forEach( + o.forEach(function (e) { + var t = e.pos + s; + u[t] += e.weight; + for (var n = 0; t > 0; ) + t % 2 && (n += u[t + 1]), (u[(t = (t - 1) >> 1)] += e.weight); + l += e.weight * n; + }) + ), + l + ); + } + e.exports = function (e, t) { + for (var n = 0, r = 1; r < t.length; ++r) n += i(e, t[r - 1], t[r]); + return n; + }; + }, + function (e, t, n) { + var r = n(3), + i = n(551), + o = n(552), + s = n(553); + e.exports = function e(t, n, a, u) { + var l = t.children(n), + c = t.node(n), + d = c ? c.borderLeft : void 0, + h = c ? c.borderRight : void 0, + f = {}; + d && + (l = r.filter(l, function (e) { + return e !== d && e !== h; + })); + var p = i(t, l); + r.forEach(p, function (n) { + if (t.children(n.v).length) { + var i = e(t, n.v, a, u); + (f[n.v] = i), + r.has(i, 'barycenter') && + ((o = n), + (s = i), + r.isUndefined(o.barycenter) + ? ((o.barycenter = s.barycenter), (o.weight = s.weight)) + : ((o.barycenter = + (o.barycenter * o.weight + s.barycenter * s.weight) / + (o.weight + s.weight)), + (o.weight += s.weight))); + } + var o, s; + }); + var g = o(p, a); + !(function (e, t) { + r.forEach(e, function (e) { + e.vs = r.flatten( + e.vs.map(function (e) { + return t[e] ? t[e].vs : e; + }), + !0 + ); + }); + })(g, f); + var m = s(g, u); + if ( + d && + ((m.vs = r.flatten([d, m.vs, h], !0)), t.predecessors(d).length) + ) { + var _ = t.node(t.predecessors(d)[0]), + y = t.node(t.predecessors(h)[0]); + r.has(m, 'barycenter') || ((m.barycenter = 0), (m.weight = 0)), + (m.barycenter = + (m.barycenter * m.weight + _.order + y.order) / (m.weight + 2)), + (m.weight += 2); + } + return m; + }; + }, + function (e, t, n) { + var r = n(3); + e.exports = function (e, t) { + return r.map(t, function (t) { + var n = e.inEdges(t); + if (n.length) { + var i = r.reduce( + n, + function (t, n) { + var r = e.edge(n), + i = e.node(n.v); + return { + sum: t.sum + r.weight * i.order, + weight: t.weight + r.weight, + }; + }, + { sum: 0, weight: 0 } + ); + return { v: t, barycenter: i.sum / i.weight, weight: i.weight }; + } + return { v: t }; + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3); + e.exports = function (e, t) { + var n = {}; + return ( + r.forEach(e, function (e, t) { + var i = (n[e.v] = { indegree: 0, in: [], out: [], vs: [e.v], i: t }); + r.isUndefined(e.barycenter) || + ((i.barycenter = e.barycenter), (i.weight = e.weight)); + }), + r.forEach(t.edges(), function (e) { + var t = n[e.v], + i = n[e.w]; + r.isUndefined(t) || + r.isUndefined(i) || + (i.indegree++, t.out.push(n[e.w])); + }), + (function (e) { + var t = []; + function n(e) { + return function (t) { + t.merged || + ((r.isUndefined(t.barycenter) || + r.isUndefined(e.barycenter) || + t.barycenter >= e.barycenter) && + (function (e, t) { + var n = 0, + r = 0; + e.weight && + ((n += e.barycenter * e.weight), (r += e.weight)); + t.weight && + ((n += t.barycenter * t.weight), (r += t.weight)); + (e.vs = t.vs.concat(e.vs)), + (e.barycenter = n / r), + (e.weight = r), + (e.i = Math.min(t.i, e.i)), + (t.merged = !0); + })(e, t)); + }; + } + function i(t) { + return function (n) { + n.in.push(t), 0 == --n.indegree && e.push(n); + }; + } + for (; e.length; ) { + var o = e.pop(); + t.push(o), r.forEach(o.in.reverse(), n(o)), r.forEach(o.out, i(o)); + } + return r.map( + r.filter(t, function (e) { + return !e.merged; + }), + function (e) { + return r.pick(e, ['vs', 'i', 'barycenter', 'weight']); + } + ); + })( + r.filter(n, function (e) { + return !e.indegree; + }) + ) + ); + }; + }, + function (e, t, n) { + var r = n(3), + i = n(6); + function o(e, t, n) { + for (var i; t.length && (i = r.last(t)).i <= n; ) + t.pop(), e.push(i.vs), n++; + return n; + } + e.exports = function (e, t) { + var n = i.partition(e, function (e) { + return r.has(e, 'barycenter'); + }), + s = n.lhs, + a = r.sortBy(n.rhs, function (e) { + return -e.i; + }), + u = [], + l = 0, + c = 0, + d = 0; + s.sort( + ((h = !!t), + function (e, t) { + return e.barycenter < t.barycenter + ? -1 + : e.barycenter > t.barycenter + ? 1 + : h + ? t.i - e.i + : e.i - t.i; + }) + ), + (d = o(u, a, d)), + r.forEach(s, function (e) { + (d += e.vs.length), + u.push(e.vs), + (l += e.barycenter * e.weight), + (c += e.weight), + (d = o(u, a, d)); + }); + var h; + var f = { vs: r.flatten(u, !0) }; + c && ((f.barycenter = l / c), (f.weight = c)); + return f; + }; + }, + function (e, t, n) { + var r = n(3), + i = n(15).Graph; + e.exports = function (e, t, n) { + var o = (function (e) { + var t; + for (; e.hasNode((t = r.uniqueId('_root'))); ); + return t; + })(e), + s = new i({ compound: !0 }) + .setGraph({ root: o }) + .setDefaultNodeLabel(function (t) { + return e.node(t); + }); + return ( + r.forEach(e.nodes(), function (i) { + var a = e.node(i), + u = e.parent(i); + (a.rank === t || (a.minRank <= t && t <= a.maxRank)) && + (s.setNode(i), + s.setParent(i, u || o), + r.forEach(e[n](i), function (t) { + var n = t.v === i ? t.w : t.v, + o = s.edge(n, i), + a = r.isUndefined(o) ? 0 : o.weight; + s.setEdge(n, i, { weight: e.edge(t).weight + a }); + }), + r.has(a, 'minRank') && + s.setNode(i, { + borderLeft: a.borderLeft[t], + borderRight: a.borderRight[t], + })); + }), + s + ); + }; + }, + function (e, t, n) { + var r = n(3); + e.exports = function (e, t, n) { + var i, + o = {}; + r.forEach(n, function (n) { + for (var r, s, a = e.parent(n); a; ) { + if ( + ((r = e.parent(a)) ? ((s = o[r]), (o[r] = a)) : ((s = i), (i = a)), + s && s !== a) + ) + return void t.setEdge(s, a); + a = r; + } + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(6), + o = n(557).positionX; + e.exports = function (e) { + (function (e) { + var t = i.buildLayerMatrix(e), + n = e.graph().ranksep, + o = 0; + r.forEach(t, function (t) { + var i = r.max( + r.map(t, function (t) { + return e.node(t).height; + }) + ); + r.forEach(t, function (t) { + e.node(t).y = o + i / 2; + }), + (o += i + n); + }); + })((e = i.asNonCompoundGraph(e))), + r.forEach(o(e), function (t, n) { + e.node(n).x = t; + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(3), + i = n(15).Graph, + o = n(6); + function s(e, t) { + var n = {}; + return ( + r.reduce(t, function (t, i) { + var o = 0, + s = 0, + a = t.length, + l = r.last(i); + return ( + r.forEach(i, function (t, c) { + var d = (function (e, t) { + if (e.node(t).dummy) + return r.find(e.predecessors(t), function (t) { + return e.node(t).dummy; + }); + })(e, t), + h = d ? e.node(d).order : a; + (d || t === l) && + (r.forEach(i.slice(s, c + 1), function (t) { + r.forEach(e.predecessors(t), function (r) { + var i = e.node(r), + s = i.order; + !(s < o || h < s) || + (i.dummy && e.node(t).dummy) || + u(n, r, t); + }); + }), + (s = c + 1), + (o = h)); + }), + i + ); + }), + n + ); + } + function a(e, t) { + var n = {}; + function i(t, i, o, s, a) { + var l; + r.forEach(r.range(i, o), function (i) { + (l = t[i]), + e.node(l).dummy && + r.forEach(e.predecessors(l), function (t) { + var r = e.node(t); + r.dummy && (r.order < s || r.order > a) && u(n, t, l); + }); + }); + } + return ( + r.reduce(t, function (t, n) { + var o, + s = -1, + a = 0; + return ( + r.forEach(n, function (r, u) { + if ('border' === e.node(r).dummy) { + var l = e.predecessors(r); + l.length && + ((o = e.node(l[0]).order), + i(n, a, u, s, o), + (a = u), + (s = o)); + } + i(n, a, n.length, o, t.length); + }), + n + ); + }), + n + ); + } + function u(e, t, n) { + if (t > n) { + var r = t; + (t = n), (n = r); + } + var i = e[t]; + i || (e[t] = i = {}), (i[n] = !0); + } + function l(e, t, n) { + if (t > n) { + var i = t; + (t = n), (n = i); + } + return r.has(e[t], n); + } + function c(e, t, n, i) { + var o = {}, + s = {}, + a = {}; + return ( + r.forEach(t, function (e) { + r.forEach(e, function (e, t) { + (o[e] = e), (s[e] = e), (a[e] = t); + }); + }), + r.forEach(t, function (e) { + var t = -1; + r.forEach(e, function (e) { + var u = i(e); + if (u.length) + for ( + var c = + ((u = r.sortBy(u, function (e) { + return a[e]; + })).length - + 1) / + 2, + d = Math.floor(c), + h = Math.ceil(c); + d <= h; + ++d + ) { + var f = u[d]; + s[e] === e && + t < a[f] && + !l(n, e, f) && + ((s[f] = e), (s[e] = o[e] = o[f]), (t = a[f])); + } + }); + }), + { root: o, align: s } + ); + } + function d(e, t, n, o, s) { + var a = {}, + u = (function (e, t, n, o) { + var s = new i(), + a = e.graph(), + u = (function (e, t, n) { + return function (i, o, s) { + var a, + u = i.node(o), + l = i.node(s), + c = 0; + if (((c += u.width / 2), r.has(u, 'labelpos'))) + switch (u.labelpos.toLowerCase()) { + case 'l': + a = -u.width / 2; + break; + case 'r': + a = u.width / 2; + } + if ( + (a && (c += n ? a : -a), + (a = 0), + (c += (u.dummy ? t : e) / 2), + (c += (l.dummy ? t : e) / 2), + (c += l.width / 2), + r.has(l, 'labelpos')) + ) + switch (l.labelpos.toLowerCase()) { + case 'l': + a = l.width / 2; + break; + case 'r': + a = -l.width / 2; + } + return a && (c += n ? a : -a), (a = 0), c; + }; + })(a.nodesep, a.edgesep, o); + return ( + r.forEach(t, function (t) { + var i; + r.forEach(t, function (t) { + var r = n[t]; + if ((s.setNode(r), i)) { + var o = n[i], + a = s.edge(o, r); + s.setEdge(o, r, Math.max(u(e, t, i), a || 0)); + } + i = t; + }); + }), + s + ); + })(e, t, n, s), + l = s ? 'borderLeft' : 'borderRight'; + function c(e, t) { + for (var n = u.nodes(), r = n.pop(), i = {}; r; ) + i[r] ? e(r) : ((i[r] = !0), n.push(r), (n = n.concat(t(r)))), + (r = n.pop()); + } + return ( + c(function (e) { + a[e] = u.inEdges(e).reduce(function (e, t) { + return Math.max(e, a[t.v] + u.edge(t)); + }, 0); + }, u.predecessors.bind(u)), + c(function (t) { + var n = u.outEdges(t).reduce(function (e, t) { + return Math.min(e, a[t.w] - u.edge(t)); + }, Number.POSITIVE_INFINITY), + r = e.node(t); + n !== Number.POSITIVE_INFINITY && + r.borderType !== l && + (a[t] = Math.max(a[t], n)); + }, u.successors.bind(u)), + r.forEach(o, function (e) { + a[e] = a[n[e]]; + }), + a + ); + } + function h(e, t) { + return r.minBy(r.values(t), function (t) { + var n = Number.NEGATIVE_INFINITY, + i = Number.POSITIVE_INFINITY; + return ( + r.forIn(t, function (t, r) { + var o = + (function (e, t) { + return e.node(t).width; + })(e, r) / 2; + (n = Math.max(t + o, n)), (i = Math.min(t - o, i)); + }), + n - i + ); + }); + } + function f(e, t) { + var n = r.values(t), + i = r.min(n), + o = r.max(n); + r.forEach(['u', 'd'], function (n) { + r.forEach(['l', 'r'], function (s) { + var a, + u = n + s, + l = e[u]; + if (l !== t) { + var c = r.values(l); + (a = 'l' === s ? i - r.min(c) : o - r.max(c)) && + (e[u] = r.mapValues(l, function (e) { + return e + a; + })); + } + }); + }); + } + function p(e, t) { + return r.mapValues(e.ul, function (n, i) { + if (t) return e[t.toLowerCase()][i]; + var o = r.sortBy(r.map(e, i)); + return (o[1] + o[2]) / 2; + }); + } + e.exports = { + positionX: function (e) { + var t, + n = o.buildLayerMatrix(e), + i = r.merge(s(e, n), a(e, n)), + u = {}; + r.forEach(['u', 'd'], function (o) { + (t = 'u' === o ? n : r.values(n).reverse()), + r.forEach(['l', 'r'], function (n) { + 'r' === n && + (t = r.map(t, function (e) { + return r.values(e).reverse(); + })); + var s = ('u' === o ? e.predecessors : e.successors).bind(e), + a = c(e, t, i, s), + l = d(e, t, a.root, a.align, 'r' === n); + 'r' === n && + (l = r.mapValues(l, function (e) { + return -e; + })), + (u[o + n] = l); + }); + }); + var l = h(e, u); + return f(u, l), p(u, e.graph().align); + }, + findType1Conflicts: s, + findType2Conflicts: a, + addConflict: u, + hasConflict: l, + verticalAlignment: c, + horizontalCompaction: d, + alignCoordinates: f, + findSmallestWidthAlignment: h, + balance: p, + }; + }, + function (e, t, n) { + var r = n(3), + i = n(6), + o = n(15).Graph; + e.exports = { + debugOrdering: function (e) { + var t = i.buildLayerMatrix(e), + n = new o({ compound: !0, multigraph: !0 }).setGraph({}); + return ( + r.forEach(e.nodes(), function (t) { + n.setNode(t, { label: t }), + n.setParent(t, 'layer' + e.node(t).rank); + }), + r.forEach(e.edges(), function (e) { + n.setEdge(e.v, e.w, {}, e.name); + }), + r.forEach(t, function (e, t) { + var i = 'layer' + t; + n.setNode(i, { rank: 'same' }), + r.reduce(e, function (e, t) { + return n.setEdge(e, t, { style: 'invis' }), t; + }); + }), + n + ); + }, + }; + }, + function (e, t) { + e.exports = '0.8.5'; + }, + function (e, t, n) { + e.exports = { + node: n(174), + circle: n(175), + ellipse: n(97), + polygon: n(176), + rect: n(177), + }; + }, + function (e, t) { + function n(e, t) { + return e * t > 0; + } + e.exports = function (e, t, r, i) { + var o, s, a, u, l, c, d, h, f, p, g, m, _; + if ( + ((o = t.y - e.y), + (a = e.x - t.x), + (l = t.x * e.y - e.x * t.y), + (f = o * r.x + a * r.y + l), + (p = o * i.x + a * i.y + l), + 0 !== f && 0 !== p && n(f, p)) + ) + return; + if ( + ((s = i.y - r.y), + (u = r.x - i.x), + (c = i.x * r.y - r.x * i.y), + (d = s * e.x + u * e.y + c), + (h = s * t.x + u * t.y + c), + 0 !== d && 0 !== h && n(d, h)) + ) + return; + if (0 === (g = o * u - s * a)) return; + return ( + (m = Math.abs(g / 2)), + { + x: (_ = a * c - u * l) < 0 ? (_ - m) / g : (_ + m) / g, + y: (_ = s * l - o * c) < 0 ? (_ - m) / g : (_ + m) / g, + } + ); + }; + }, + function (e, t, n) { + var r = n(37), + i = n(22), + o = n(172).layout; + e.exports = function () { + var e = n(563), + t = n(566), + i = n(567), + l = n(568), + c = n(569), + d = n(570), + h = n(571), + f = n(572), + p = n(573), + g = function (n, g) { + !(function (e) { + e.nodes().forEach(function (t) { + var n = e.node(t); + r.has(n, 'label') || e.children(t).length || (n.label = t), + r.has(n, 'paddingX') && + r.defaults(n, { + paddingLeft: n.paddingX, + paddingRight: n.paddingX, + }), + r.has(n, 'paddingY') && + r.defaults(n, { + paddingTop: n.paddingY, + paddingBottom: n.paddingY, + }), + r.has(n, 'padding') && + r.defaults(n, { + paddingLeft: n.padding, + paddingRight: n.padding, + paddingTop: n.padding, + paddingBottom: n.padding, + }), + r.defaults(n, s), + r.each( + [ + 'paddingLeft', + 'paddingRight', + 'paddingTop', + 'paddingBottom', + ], + function (e) { + n[e] = Number(n[e]); + } + ), + r.has(n, 'width') && (n._prevWidth = n.width), + r.has(n, 'height') && (n._prevHeight = n.height); + }), + e.edges().forEach(function (t) { + var n = e.edge(t); + r.has(n, 'label') || (n.label = ''), r.defaults(n, a); + }); + })(g); + var m = u(n, 'output'), + _ = u(m, 'clusters'), + y = u(m, 'edgePaths'), + v = i(u(m, 'edgeLabels'), g), + b = e(u(m, 'nodes'), g, f); + o(g), c(b, g), d(v, g), l(y, g, p); + var w = t(_, g); + h(w, g), + (function (e) { + r.each(e.nodes(), function (t) { + var n = e.node(t); + r.has(n, '_prevWidth') + ? (n.width = n._prevWidth) + : delete n.width, + r.has(n, '_prevHeight') + ? (n.height = n._prevHeight) + : delete n.height, + delete n._prevWidth, + delete n._prevHeight; + }); + })(g); + }; + return ( + (g.createNodes = function (t) { + return arguments.length ? ((e = t), g) : e; + }), + (g.createClusters = function (e) { + return arguments.length ? ((t = e), g) : t; + }), + (g.createEdgeLabels = function (e) { + return arguments.length ? ((i = e), g) : i; + }), + (g.createEdgePaths = function (e) { + return arguments.length ? ((l = e), g) : l; + }), + (g.shapes = function (e) { + return arguments.length ? ((f = e), g) : f; + }), + (g.arrows = function (e) { + return arguments.length ? ((p = e), g) : p; + }), + g + ); + }; + var s = { + paddingLeft: 10, + paddingRight: 10, + paddingTop: 10, + paddingBottom: 10, + rx: 0, + ry: 0, + shape: 'rect', + }, + a = { arrowhead: 'normal', curve: i.curveLinear }; + function u(e, t) { + var n = e.select('g.' + t); + return n.empty() && (n = e.append('g').attr('class', t)), n; + } + }, + function (e, t, n) { + 'use strict'; + var r = n(37), + i = n(98), + o = n(10), + s = n(22); + e.exports = function (e, t, n) { + var a, + u = t.nodes().filter(function (e) { + return !o.isSubgraph(t, e); + }), + l = e + .selectAll('g.node') + .data(u, function (e) { + return e; + }) + .classed('update', !0); + l.exit().remove(), + l.enter().append('g').attr('class', 'node').style('opacity', 0), + (l = e.selectAll('g.node')).each(function (e) { + var a = t.node(e), + u = s.select(this); + o.applyClass( + u, + a.class, + (u.classed('update') ? 'update ' : '') + 'node' + ), + u.select('g.label').remove(); + var l = u.append('g').attr('class', 'label'), + c = i(l, a), + d = n[a.shape], + h = r.pick(c.node().getBBox(), 'width', 'height'); + (a.elem = this), + a.id && u.attr('id', a.id), + a.labelId && l.attr('id', a.labelId), + r.has(a, 'width') && (h.width = a.width), + r.has(a, 'height') && (h.height = a.height), + (h.width += a.paddingLeft + a.paddingRight), + (h.height += a.paddingTop + a.paddingBottom), + l.attr( + 'transform', + 'translate(' + + (a.paddingLeft - a.paddingRight) / 2 + + ',' + + (a.paddingTop - a.paddingBottom) / 2 + + ')' + ); + var f = s.select(this); + f.select('.label-container').remove(); + var p = d(f, h, a).classed('label-container', !0); + o.applyStyle(p, a.style); + var g = p.node().getBBox(); + (a.width = g.width), (a.height = g.height); + }), + (a = l.exit ? l.exit() : l.selectAll(null)); + return o.applyTransition(a, t).style('opacity', 0).remove(), l; + }; + }, + function (e, t, n) { + var r = n(10); + e.exports = function (e, t) { + for ( + var n = e.append('text'), + i = (function (e) { + for (var t, n = '', r = !1, i = 0; i < e.length; ++i) + if (((t = e[i]), r)) { + switch (t) { + case 'n': + n += '\n'; + break; + default: + n += t; + } + r = !1; + } else '\\' === t ? (r = !0) : (n += t); + return n; + })(t.label).split('\n'), + o = 0; + o < i.length; + o++ + ) + n.append('tspan') + .attr('xml:space', 'preserve') + .attr('dy', '1em') + .attr('x', '1') + .text(i[o]); + return r.applyStyle(n, t.labelStyle), n; + }; + }, + function (e, t, n) { + var r = n(10); + e.exports = function (e, t) { + var n = e; + return n.node().appendChild(t.label), r.applyStyle(n, t.labelStyle), n; + }; + }, + function (e, t, n) { + var r = n(10), + i = n(22), + o = n(98); + e.exports = function (e, t) { + var n, + s = t.nodes().filter(function (e) { + return r.isSubgraph(t, e); + }), + a = e.selectAll('g.cluster').data(s, function (e) { + return e; + }); + a.selectAll('*').remove(), + a + .enter() + .append('g') + .attr('class', 'cluster') + .attr('id', function (e) { + return t.node(e).id; + }) + .style('opacity', 0), + (a = e.selectAll('g.cluster')), + r.applyTransition(a, t).style('opacity', 1), + a.each(function (e) { + var n = t.node(e), + r = i.select(this); + i.select(this).append('rect'); + var s = r.append('g').attr('class', 'label'); + o(s, n, n.clusterLabelPos); + }), + a.selectAll('rect').each(function (e) { + var n = t.node(e), + o = i.select(this); + r.applyStyle(o, n.style); + }), + (n = a.exit ? a.exit() : a.selectAll(null)); + return r.applyTransition(n, t).style('opacity', 0).remove(), a; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(37), + i = n(98), + o = n(10), + s = n(22); + e.exports = function (e, t) { + var n, + a = e + .selectAll('g.edgeLabel') + .data(t.edges(), function (e) { + return o.edgeToId(e); + }) + .classed('update', !0); + a.exit().remove(), + a.enter().append('g').classed('edgeLabel', !0).style('opacity', 0), + (a = e.selectAll('g.edgeLabel')).each(function (e) { + var n = s.select(this); + n.select('.label').remove(); + var o = t.edge(e), + a = i(n, t.edge(e), 0, 0).classed('label', !0), + u = a.node().getBBox(); + o.labelId && a.attr('id', o.labelId), + r.has(o, 'width') || (o.width = u.width), + r.has(o, 'height') || (o.height = u.height); + }), + (n = a.exit ? a.exit() : a.selectAll(null)); + return o.applyTransition(n, t).style('opacity', 0).remove(), a; + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(37), + i = n(174), + o = n(10), + s = n(22); + function a(e, t) { + var n = (s.line || s.svg.line)() + .x(function (e) { + return e.x; + }) + .y(function (e) { + return e.y; + }); + return (n.curve || n.interpolate)(e.curve), n(t); + } + e.exports = function (e, t, n) { + var u = e + .selectAll('g.edgePath') + .data(t.edges(), function (e) { + return o.edgeToId(e); + }) + .classed('update', !0), + l = (function (e, t) { + var n = e + .enter() + .append('g') + .attr('class', 'edgePath') + .style('opacity', 0); + return ( + n + .append('path') + .attr('class', 'path') + .attr('d', function (e) { + var n = t.edge(e), + i = t.node(e.v).elem; + return a( + n, + r.range(n.points.length).map(function () { + return ( + (t = (e = i).getBBox()), + { + x: (n = e.ownerSVGElement + .getScreenCTM() + .inverse() + .multiply(e.getScreenCTM()) + .translate(t.width / 2, t.height / 2)).e, + y: n.f, + } + ); + var e, t, n; + }) + ); + }), + n.append('defs'), + n + ); + })(u, t); + !(function (e, t) { + var n = e.exit(); + o.applyTransition(n, t).style('opacity', 0).remove(); + })(u, t); + var c = void 0 !== u.merge ? u.merge(l) : u; + return ( + o.applyTransition(c, t).style('opacity', 1), + c.each(function (e) { + var n = s.select(this), + r = t.edge(e); + (r.elem = this), + r.id && n.attr('id', r.id), + o.applyClass( + n, + r.class, + (n.classed('update') ? 'update ' : '') + 'edgePath' + ); + }), + c.selectAll('path.path').each(function (e) { + var n = t.edge(e); + n.arrowheadId = r.uniqueId('arrowhead'); + var u = s + .select(this) + .attr('marker-end', function () { + return ( + 'url(' + + ((e = location.href), + (t = n.arrowheadId), + e.split('#')[0] + '#' + t) + + ')' + ); + var e, t; + }) + .style('fill', 'none'); + o.applyTransition(u, t).attr('d', function (e) { + return (function (e, t) { + var n = e.edge(t), + r = e.node(t.v), + o = e.node(t.w), + s = n.points.slice(1, n.points.length - 1); + return ( + s.unshift(i(r, s[0])), s.push(i(o, s[s.length - 1])), a(n, s) + ); + })(t, e); + }), + o.applyStyle(u, n.style); + }), + c.selectAll('defs *').remove(), + c.selectAll('defs').each(function (e) { + var r = t.edge(e); + (0, n[r.arrowhead])(s.select(this), r.arrowheadId, r, 'arrowhead'); + }), + c + ); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(10), + i = n(22); + e.exports = function (e, t) { + function n(e) { + var n = t.node(e); + return 'translate(' + n.x + ',' + n.y + ')'; + } + e + .filter(function () { + return !i.select(this).classed('update'); + }) + .attr('transform', n), + r.applyTransition(e, t).style('opacity', 1).attr('transform', n); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(10), + i = n(22), + o = n(37); + e.exports = function (e, t) { + function n(e) { + var n = t.edge(e); + return o.has(n, 'x') ? 'translate(' + n.x + ',' + n.y + ')' : ''; + } + e + .filter(function () { + return !i.select(this).classed('update'); + }) + .attr('transform', n), + r.applyTransition(e, t).style('opacity', 1).attr('transform', n); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(10), + i = n(22); + e.exports = function (e, t) { + var n = e.filter(function () { + return !i.select(this).classed('update'); + }); + function o(e) { + var n = t.node(e); + return 'translate(' + n.x + ',' + n.y + ')'; + } + n.attr('transform', o), + r.applyTransition(e, t).style('opacity', 1).attr('transform', o), + r + .applyTransition(n.selectAll('rect'), t) + .attr('width', function (e) { + return t.node(e).width; + }) + .attr('height', function (e) { + return t.node(e).height; + }) + .attr('x', function (e) { + return -t.node(e).width / 2; + }) + .attr('y', function (e) { + return -t.node(e).height / 2; + }); + }; + }, + function (e, t, n) { + 'use strict'; + var r = n(177), + i = n(97), + o = n(175), + s = n(176); + e.exports = { + rect: function (e, t, n) { + var i = e + .insert('rect', ':first-child') + .attr('rx', n.rx) + .attr('ry', n.ry) + .attr('x', -t.width / 2) + .attr('y', -t.height / 2) + .attr('width', t.width) + .attr('height', t.height); + return ( + (n.intersect = function (e) { + return r(n, e); + }), + i + ); + }, + ellipse: function (e, t, n) { + var r = t.width / 2, + o = t.height / 2, + s = e + .insert('ellipse', ':first-child') + .attr('x', -t.width / 2) + .attr('y', -t.height / 2) + .attr('rx', r) + .attr('ry', o); + return ( + (n.intersect = function (e) { + return i(n, r, o, e); + }), + s + ); + }, + circle: function (e, t, n) { + var r = Math.max(t.width, t.height) / 2, + i = e + .insert('circle', ':first-child') + .attr('x', -t.width / 2) + .attr('y', -t.height / 2) + .attr('r', r); + return ( + (n.intersect = function (e) { + return o(n, r, e); + }), + i + ); + }, + diamond: function (e, t, n) { + var r = (t.width * Math.SQRT2) / 2, + i = (t.height * Math.SQRT2) / 2, + o = [ + { x: 0, y: -i }, + { x: -r, y: 0 }, + { x: 0, y: i }, + { x: r, y: 0 }, + ], + a = e.insert('polygon', ':first-child').attr( + 'points', + o + .map(function (e) { + return e.x + ',' + e.y; + }) + .join(' ') + ); + return ( + (n.intersect = function (e) { + return s(n, o, e); + }), + a + ); + }, + }; + }, + function (e, t, n) { + var r = n(10); + function i(e, t, n, i) { + var o = e + .append('marker') + .attr('id', t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'strokeWidth') + .attr('markerWidth', 8) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 10 5 L 0 10 z') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + r.applyStyle(o, n[i + 'Style']), + n[i + 'Class'] && o.attr('class', n[i + 'Class']); + } + e.exports = { + default: i, + normal: i, + vee: function (e, t, n, i) { + var o = e + .append('marker') + .attr('id', t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'strokeWidth') + .attr('markerWidth', 8) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 0 L 10 5 L 0 10 L 4 5 z') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + r.applyStyle(o, n[i + 'Style']), + n[i + 'Class'] && o.attr('class', n[i + 'Class']); + }, + undirected: function (e, t, n, i) { + var o = e + .append('marker') + .attr('id', t) + .attr('viewBox', '0 0 10 10') + .attr('refX', 9) + .attr('refY', 5) + .attr('markerUnits', 'strokeWidth') + .attr('markerWidth', 8) + .attr('markerHeight', 6) + .attr('orient', 'auto') + .append('path') + .attr('d', 'M 0 5 L 10 5') + .style('stroke-width', 1) + .style('stroke-dasharray', '1,0'); + r.applyStyle(o, n[i + 'Style']), + n[i + 'Class'] && o.attr('class', n[i + 'Class']); + }, + }; + }, + function (e, t) { + e.exports = '0.6.4'; + }, + function (e, t, n) { + 'use strict'; + var r; + function i(e) { + return ( + (r = r || document.createElement('div')), + (e = escape(e) + .replace(/%26/g, '&') + .replace(/%23/g, '#') + .replace(/%3B/g, ';')), + (r.innerHTML = e), + unescape(r.textContent) + ); + } + n.r(t), + n.d(t, 'default', function () { + return i; + }); + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }), + (function (e) { + for (var n in e) t.hasOwnProperty(n) || (t[n] = e[n]); + })(n(577)); + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(70); + t.hex = r.default; + var i = n(70); + t.rgb = i.default; + var o = n(70); + t.rgba = o.default; + var s = n(180); + t.hsl = s.default; + var a = n(180); + t.hsla = a.default; + var u = n(23); + t.channel = u.default; + var l = n(587); + t.red = l.default; + var c = n(588); + t.green = c.default; + var d = n(589); + t.blue = d.default; + var h = n(590); + t.hue = h.default; + var f = n(591); + t.saturation = f.default; + var p = n(592); + t.lightness = p.default; + var g = n(181); + t.alpha = g.default; + var m = n(181); + t.opacity = m.default; + var _ = n(182); + t.luminance = _.default; + var y = n(593); + t.isDark = y.default; + var v = n(183); + t.isLight = v.default; + var b = n(594); + t.isValid = b.default; + var w = n(595); + t.saturate = w.default; + var C = n(596); + t.desaturate = C.default; + var S = n(597); + t.lighten = S.default; + var x = n(598); + t.darken = x.default; + var L = n(184); + t.opacify = L.default; + var k = n(184); + t.fadeIn = k.default; + var M = n(185); + t.transparentize = M.default; + var D = n(185); + t.fadeOut = D.default; + var E = n(599); + t.complement = E.default; + var T = n(600); + t.grayscale = T.default; + var N = n(186); + t.adjust = N.default; + var O = n(71); + t.change = O.default; + var A = n(601); + t.invert = A.default; + var I = n(187); + t.mix = I.default; + var P = n(602); + t.scale = P.default; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = { + min: { r: 0, g: 0, b: 0, s: 0, l: 0, a: 0 }, + max: { r: 255, g: 255, b: 255, h: 360, s: 100, l: 100, a: 1 }, + clamp: { + r: function (e) { + return e >= 255 ? 255 : e < 0 ? 0 : e; + }, + g: function (e) { + return e >= 255 ? 255 : e < 0 ? 0 : e; + }, + b: function (e) { + return e >= 255 ? 255 : e < 0 ? 0 : e; + }, + h: function (e) { + return e % 360; + }, + s: function (e) { + return e >= 100 ? 100 : e < 0 ? 0 : e; + }, + l: function (e) { + return e >= 100 ? 100 : e < 0 ? 0 : e; + }, + a: function (e) { + return e >= 1 ? 1 : e < 0 ? 0 : e; + }, + }, + toLinear: function (e) { + var t = e / 255; + return e > 0.03928 ? Math.pow((t + 0.055) / 1.055, 2.4) : t / 12.92; + }, + hue2rgb: function (e, t, n) { + return ( + n < 0 && (n += 1), + n > 1 && (n -= 1), + n < 1 / 6 + ? e + 6 * (t - e) * n + : n < 0.5 + ? t + : n < 2 / 3 + ? e + (t - e) * (2 / 3 - n) * 6 + : e + ); + }, + hsl2rgb: function (e, t) { + var n = e.h, + i = e.s, + o = e.l; + if (100 === i) return 2.55 * o; + (n /= 360), (i /= 100); + var s = (o /= 100) < 0.5 ? o * (1 + i) : o + i - o * i, + a = 2 * o - s; + switch (t) { + case 'r': + return 255 * r.hue2rgb(a, s, n + 1 / 3); + case 'g': + return 255 * r.hue2rgb(a, s, n); + case 'b': + return 255 * r.hue2rgb(a, s, n - 1 / 3); + } + }, + rgb2hsl: function (e, t) { + var n = e.r, + r = e.g, + i = e.b; + (n /= 255), (r /= 255), (i /= 255); + var o = Math.max(n, r, i), + s = Math.min(n, r, i), + a = (o + s) / 2; + if ('l' === t) return 100 * a; + if (o === s) return 0; + var u = o - s; + if ('s' === t) return 100 * (a > 0.5 ? u / (2 - o - s) : u / (o + s)); + switch (o) { + case n: + return 60 * ((r - i) / u + (r < i ? 6 : 0)); + case r: + return 60 * ((i - n) / u + 2); + case i: + return 60 * ((n - r) / u + 4); + default: + return -1; + } + }, + }; + t.default = r; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = { + round: function (e) { + return Math.round(1e10 * e) / 1e10; + }, + }; + t.default = r; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = { + frac2hex: function (e) { + var t = Math.round(255 * e).toString(16); + return t.length > 1 ? t : '0' + t; + }, + dec2hex: function (e) { + var t = Math.round(e).toString(16); + return t.length > 1 ? t : '0' + t; + }, + }; + t.default = r; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(99), + o = n(582), + s = (function () { + function e(e, t) { + (this.color = t), + (this.changed = !1), + (this.data = e), + (this.type = new o.default()); + } + return ( + (e.prototype.set = function (e, t) { + return ( + (this.color = t), + (this.changed = !1), + (this.data = e), + (this.type.type = i.TYPE.ALL), + this + ); + }), + (e.prototype._ensureHSL = function () { + void 0 === this.data.h && + (this.data.h = r.default.channel.rgb2hsl(this.data, 'h')), + void 0 === this.data.s && + (this.data.s = r.default.channel.rgb2hsl(this.data, 's')), + void 0 === this.data.l && + (this.data.l = r.default.channel.rgb2hsl(this.data, 'l')); + }), + (e.prototype._ensureRGB = function () { + void 0 === this.data.r && + (this.data.r = r.default.channel.hsl2rgb(this.data, 'r')), + void 0 === this.data.g && + (this.data.g = r.default.channel.hsl2rgb(this.data, 'g')), + void 0 === this.data.b && + (this.data.b = r.default.channel.hsl2rgb(this.data, 'b')); + }), + Object.defineProperty(e.prototype, 'r', { + get: function () { + return this.type.is(i.TYPE.HSL) || void 0 === this.data.r + ? (this._ensureHSL(), r.default.channel.hsl2rgb(this.data, 'r')) + : this.data.r; + }, + set: function (e) { + this.type.set(i.TYPE.RGB), (this.changed = !0), (this.data.r = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'g', { + get: function () { + return this.type.is(i.TYPE.HSL) || void 0 === this.data.g + ? (this._ensureHSL(), r.default.channel.hsl2rgb(this.data, 'g')) + : this.data.g; + }, + set: function (e) { + this.type.set(i.TYPE.RGB), (this.changed = !0), (this.data.g = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'b', { + get: function () { + return this.type.is(i.TYPE.HSL) || void 0 === this.data.b + ? (this._ensureHSL(), r.default.channel.hsl2rgb(this.data, 'b')) + : this.data.b; + }, + set: function (e) { + this.type.set(i.TYPE.RGB), (this.changed = !0), (this.data.b = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'h', { + get: function () { + return this.type.is(i.TYPE.RGB) || void 0 === this.data.h + ? (this._ensureRGB(), r.default.channel.rgb2hsl(this.data, 'h')) + : this.data.h; + }, + set: function (e) { + this.type.set(i.TYPE.HSL), (this.changed = !0), (this.data.h = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 's', { + get: function () { + return this.type.is(i.TYPE.RGB) || void 0 === this.data.s + ? (this._ensureRGB(), r.default.channel.rgb2hsl(this.data, 's')) + : this.data.s; + }, + set: function (e) { + this.type.set(i.TYPE.HSL), (this.changed = !0), (this.data.s = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'l', { + get: function () { + return this.type.is(i.TYPE.RGB) || void 0 === this.data.l + ? (this._ensureRGB(), r.default.channel.rgb2hsl(this.data, 'l')) + : this.data.l; + }, + set: function (e) { + this.type.set(i.TYPE.HSL), (this.changed = !0), (this.data.l = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'a', { + get: function () { + return this.data.a; + }, + set: function (e) { + (this.changed = !0), (this.data.a = e); + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(); + t.default = s; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(99), + i = (function () { + function e() { + this.type = r.TYPE.ALL; + } + return ( + (e.prototype.get = function () { + return this.type; + }), + (e.prototype.set = function (e) { + if (this.type && this.type !== e) + throw new Error( + 'Cannot change both RGB and HSL channels at the same time' + ); + this.type = e; + }), + (e.prototype.reset = function () { + this.type = r.TYPE.ALL; + }), + (e.prototype.is = function (e) { + return this.type === e; + }), + e + ); + })(); + t.default = i; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = {}; + t.DEC2HEX = i; + for (var o = 0; o <= 255; o++) i[o] = r.default.unit.dec2hex(o); + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(179), + i = { + colors: { + aliceblue: '#f0f8ff', + antiquewhite: '#faebd7', + aqua: '#00ffff', + aquamarine: '#7fffd4', + azure: '#f0ffff', + beige: '#f5f5dc', + bisque: '#ffe4c4', + black: '#000000', + blanchedalmond: '#ffebcd', + blue: '#0000ff', + blueviolet: '#8a2be2', + brown: '#a52a2a', + burlywood: '#deb887', + cadetblue: '#5f9ea0', + chartreuse: '#7fff00', + chocolate: '#d2691e', + coral: '#ff7f50', + cornflowerblue: '#6495ed', + cornsilk: '#fff8dc', + crimson: '#dc143c', + cyanaqua: '#00ffff', + darkblue: '#00008b', + darkcyan: '#008b8b', + darkgoldenrod: '#b8860b', + darkgray: '#a9a9a9', + darkgreen: '#006400', + darkgrey: '#a9a9a9', + darkkhaki: '#bdb76b', + darkmagenta: '#8b008b', + darkolivegreen: '#556b2f', + darkorange: '#ff8c00', + darkorchid: '#9932cc', + darkred: '#8b0000', + darksalmon: '#e9967a', + darkseagreen: '#8fbc8f', + darkslateblue: '#483d8b', + darkslategray: '#2f4f4f', + darkslategrey: '#2f4f4f', + darkturquoise: '#00ced1', + darkviolet: '#9400d3', + deeppink: '#ff1493', + deepskyblue: '#00bfff', + dimgray: '#696969', + dimgrey: '#696969', + dodgerblue: '#1e90ff', + firebrick: '#b22222', + floralwhite: '#fffaf0', + forestgreen: '#228b22', + fuchsia: '#ff00ff', + gainsboro: '#dcdcdc', + ghostwhite: '#f8f8ff', + gold: '#ffd700', + goldenrod: '#daa520', + gray: '#808080', + green: '#008000', + greenyellow: '#adff2f', + grey: '#808080', + honeydew: '#f0fff0', + hotpink: '#ff69b4', + indianred: '#cd5c5c', + indigo: '#4b0082', + ivory: '#fffff0', + khaki: '#f0e68c', + lavender: '#e6e6fa', + lavenderblush: '#fff0f5', + lawngreen: '#7cfc00', + lemonchiffon: '#fffacd', + lightblue: '#add8e6', + lightcoral: '#f08080', + lightcyan: '#e0ffff', + lightgoldenrodyellow: '#fafad2', + lightgray: '#d3d3d3', + lightgreen: '#90ee90', + lightgrey: '#d3d3d3', + lightpink: '#ffb6c1', + lightsalmon: '#ffa07a', + lightseagreen: '#20b2aa', + lightskyblue: '#87cefa', + lightslategray: '#778899', + lightslategrey: '#778899', + lightsteelblue: '#b0c4de', + lightyellow: '#ffffe0', + lime: '#00ff00', + limegreen: '#32cd32', + linen: '#faf0e6', + magenta: '#ff00ff', + maroon: '#800000', + mediumaquamarine: '#66cdaa', + mediumblue: '#0000cd', + mediumorchid: '#ba55d3', + mediumpurple: '#9370db', + mediumseagreen: '#3cb371', + mediumslateblue: '#7b68ee', + mediumspringgreen: '#00fa9a', + mediumturquoise: '#48d1cc', + mediumvioletred: '#c71585', + midnightblue: '#191970', + mintcream: '#f5fffa', + mistyrose: '#ffe4e1', + moccasin: '#ffe4b5', + navajowhite: '#ffdead', + navy: '#000080', + oldlace: '#fdf5e6', + olive: '#808000', + olivedrab: '#6b8e23', + orange: '#ffa500', + orangered: '#ff4500', + orchid: '#da70d6', + palegoldenrod: '#eee8aa', + palegreen: '#98fb98', + paleturquoise: '#afeeee', + palevioletred: '#db7093', + papayawhip: '#ffefd5', + peachpuff: '#ffdab9', + peru: '#cd853f', + pink: '#ffc0cb', + plum: '#dda0dd', + powderblue: '#b0e0e6', + purple: '#800080', + rebeccapurple: '#663399', + red: '#ff0000', + rosybrown: '#bc8f8f', + royalblue: '#4169e1', + saddlebrown: '#8b4513', + salmon: '#fa8072', + sandybrown: '#f4a460', + seagreen: '#2e8b57', + seashell: '#fff5ee', + sienna: '#a0522d', + silver: '#c0c0c0', + skyblue: '#87ceeb', + slateblue: '#6a5acd', + slategray: '#708090', + slategrey: '#708090', + snow: '#fffafa', + springgreen: '#00ff7f', + tan: '#d2b48c', + teal: '#008080', + thistle: '#d8bfd8', + transparent: '#00000000', + turquoise: '#40e0d0', + violet: '#ee82ee', + wheat: '#f5deb3', + white: '#ffffff', + whitesmoke: '#f5f5f5', + yellow: '#ffff00', + yellowgreen: '#9acd32', + }, + parse: function (e) { + e = e.toLowerCase(); + var t = i.colors[e]; + if (t) return r.default.parse(t); + }, + stringify: function (e) { + var t = r.default.stringify(e); + for (var n in i.colors) if (i.colors[n] === t) return n; + }, + }; + t.default = i; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(46), + o = { + re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i, + parse: function (e) { + var t = e.charCodeAt(0); + if (114 === t || 82 === t) { + var n = e.match(o.re); + if (n) { + var s = n[1], + a = n[2], + u = n[3], + l = n[4], + c = n[5], + d = n[6], + h = n[7], + f = n[8]; + return i.default.set( + { + r: r.default.channel.clamp.r( + a ? 2.55 * parseFloat(s) : parseFloat(s) + ), + g: r.default.channel.clamp.g( + l ? 2.55 * parseFloat(u) : parseFloat(u) + ), + b: r.default.channel.clamp.b( + d ? 2.55 * parseFloat(c) : parseFloat(c) + ), + a: h + ? r.default.channel.clamp.a( + f ? parseFloat(h) / 100 : parseFloat(h) + ) + : 1, + }, + e + ); + } + } + }, + stringify: function (e) { + return e.a < 1 + ? 'rgba(' + + r.default.lang.round(e.r) + + ', ' + + r.default.lang.round(e.g) + + ', ' + + r.default.lang.round(e.b) + + ', ' + + r.default.lang.round(e.a) + + ')' + : 'rgb(' + + r.default.lang.round(e.r) + + ', ' + + r.default.lang.round(e.g) + + ', ' + + r.default.lang.round(e.b) + + ')'; + }, + }; + t.default = o; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(46), + o = { + re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i, + hueRe: /^(.+?)(deg|grad|rad|turn)$/i, + _hue2deg: function (e) { + var t = e.match(o.hueRe); + if (t) { + var n = t[1]; + switch (t[2]) { + case 'grad': + return r.default.channel.clamp.h(0.9 * parseFloat(n)); + case 'rad': + return r.default.channel.clamp.h( + (180 * parseFloat(n)) / Math.PI + ); + case 'turn': + return r.default.channel.clamp.h(360 * parseFloat(n)); + } + } + return r.default.channel.clamp.h(parseFloat(e)); + }, + parse: function (e) { + var t = e.charCodeAt(0); + if (104 === t || 72 === t) { + var n = e.match(o.re); + if (n) { + var s = n[1], + a = n[2], + u = n[3], + l = n[4], + c = n[5]; + return i.default.set( + { + h: o._hue2deg(s), + s: r.default.channel.clamp.s(parseFloat(a)), + l: r.default.channel.clamp.l(parseFloat(u)), + a: l + ? r.default.channel.clamp.a( + c ? parseFloat(l) / 100 : parseFloat(l) + ) + : 1, + }, + e + ); + } + } + }, + stringify: function (e) { + return e.a < 1 + ? 'hsla(' + + r.default.lang.round(e.h) + + ', ' + + r.default.lang.round(e.s) + + '%, ' + + r.default.lang.round(e.l) + + '%, ' + + e.a + + ')' + : 'hsl(' + + r.default.lang.round(e.h) + + ', ' + + r.default.lang.round(e.s) + + '%, ' + + r.default.lang.round(e.l) + + '%)'; + }, + }; + t.default = o; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'r'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'g'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'b'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'h'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 's'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(23); + t.default = function (e) { + return r.default(e, 'l'); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(183); + t.default = function (e) { + return !r.default(e); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(16); + t.default = function (e) { + try { + return r.default.parse(e), !0; + } catch (e) { + return !1; + } + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 's', t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 's', -t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 'l', t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e, t) { + return r.default(e, 'l', -t); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(29); + t.default = function (e) { + return r.default(e, 'h', 180); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(71); + t.default = function (e) { + return r.default(e, { s: 0 }); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(16), + i = n(187); + t.default = function (e, t) { + void 0 === t && (t = 100); + var n = r.default.parse(e); + return ( + (n.r = 255 - n.r), + (n.g = 255 - n.g), + (n.b = 255 - n.b), + i.default(n, e, t) + ); + }; + }, + function (e, t, n) { + 'use strict'; + Object.defineProperty(t, '__esModule', { value: !0 }); + var r = n(11), + i = n(16), + o = n(186); + t.default = function (e, t) { + var n, + s, + a, + u = i.default.parse(e), + l = {}; + for (var c in t) + l[c] = + ((n = u[c]), + (s = t[c]), + (a = r.default.channel.max[c]), + s > 0 ? ((a - n) * s) / 100 : (n * s) / 100); + return o.default(e, l); + }; + }, + function (e, t, n) { + (function (e) { + e.exports = (function () { + 'use strict'; + var t, r; + function i() { + return t.apply(null, arguments); + } + function o(e) { + return ( + e instanceof Array || + '[object Array]' === Object.prototype.toString.call(e) + ); + } + function s(e) { + return ( + null != e && '[object Object]' === Object.prototype.toString.call(e) + ); + } + function a(e) { + return void 0 === e; + } + function u(e) { + return ( + 'number' == typeof e || + '[object Number]' === Object.prototype.toString.call(e) + ); + } + function l(e) { + return ( + e instanceof Date || + '[object Date]' === Object.prototype.toString.call(e) + ); + } + function c(e, t) { + var n, + r = []; + for (n = 0; n < e.length; ++n) r.push(t(e[n], n)); + return r; + } + function d(e, t) { + return Object.prototype.hasOwnProperty.call(e, t); + } + function h(e, t) { + for (var n in t) d(t, n) && (e[n] = t[n]); + return ( + d(t, 'toString') && (e.toString = t.toString), + d(t, 'valueOf') && (e.valueOf = t.valueOf), + e + ); + } + function f(e, t, n, r) { + return Mt(e, t, n, r, !0).utc(); + } + function p(e) { + return ( + null == e._pf && + (e._pf = { + empty: !1, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: !1, + invalidMonth: null, + invalidFormat: !1, + userInvalidated: !1, + iso: !1, + parsedDateParts: [], + meridiem: null, + rfc2822: !1, + weekdayMismatch: !1, + }), + e._pf + ); + } + function g(e) { + if (null == e._isValid) { + var t = p(e), + n = r.call(t.parsedDateParts, function (e) { + return null != e; + }), + i = + !isNaN(e._d.getTime()) && + t.overflow < 0 && + !t.empty && + !t.invalidMonth && + !t.invalidWeekday && + !t.weekdayMismatch && + !t.nullInput && + !t.invalidFormat && + !t.userInvalidated && + (!t.meridiem || (t.meridiem && n)); + if ( + (e._strict && + (i = + i && + 0 === t.charsLeftOver && + 0 === t.unusedTokens.length && + void 0 === t.bigHour), + null != Object.isFrozen && Object.isFrozen(e)) + ) + return i; + e._isValid = i; + } + return e._isValid; + } + function m(e) { + var t = f(NaN); + return null != e ? h(p(t), e) : (p(t).userInvalidated = !0), t; + } + r = Array.prototype.some + ? Array.prototype.some + : function (e) { + for (var t = Object(this), n = t.length >>> 0, r = 0; r < n; r++) + if (r in t && e.call(this, t[r], r, t)) return !0; + return !1; + }; + var _ = (i.momentProperties = []); + function y(e, t) { + var n, r, i; + if ( + (a(t._isAMomentObject) || (e._isAMomentObject = t._isAMomentObject), + a(t._i) || (e._i = t._i), + a(t._f) || (e._f = t._f), + a(t._l) || (e._l = t._l), + a(t._strict) || (e._strict = t._strict), + a(t._tzm) || (e._tzm = t._tzm), + a(t._isUTC) || (e._isUTC = t._isUTC), + a(t._offset) || (e._offset = t._offset), + a(t._pf) || (e._pf = p(t)), + a(t._locale) || (e._locale = t._locale), + 0 < _.length) + ) + for (n = 0; n < _.length; n++) a((i = t[(r = _[n])])) || (e[r] = i); + return e; + } + var v = !1; + function b(e) { + y(this, e), + (this._d = new Date(null != e._d ? e._d.getTime() : NaN)), + this.isValid() || (this._d = new Date(NaN)), + !1 === v && ((v = !0), i.updateOffset(this), (v = !1)); + } + function w(e) { + return e instanceof b || (null != e && null != e._isAMomentObject); + } + function C(e) { + return e < 0 ? Math.ceil(e) || 0 : Math.floor(e); + } + function S(e) { + var t = +e, + n = 0; + return 0 !== t && isFinite(t) && (n = C(t)), n; + } + function x(e, t, n) { + var r, + i = Math.min(e.length, t.length), + o = Math.abs(e.length - t.length), + s = 0; + for (r = 0; r < i; r++) + ((n && e[r] !== t[r]) || (!n && S(e[r]) !== S(t[r]))) && s++; + return s + o; + } + function L(e) { + !1 === i.suppressDeprecationWarnings && + 'undefined' != typeof console && + console.warn && + console.warn('Deprecation warning: ' + e); + } + function k(e, t) { + var n = !0; + return h(function () { + if ( + (null != i.deprecationHandler && i.deprecationHandler(null, e), n) + ) { + for (var r, o = [], s = 0; s < arguments.length; s++) { + if (((r = ''), 'object' == typeof arguments[s])) { + for (var a in ((r += '\n[' + s + '] '), arguments[0])) + r += a + ': ' + arguments[0][a] + ', '; + r = r.slice(0, -2); + } else r = arguments[s]; + o.push(r); + } + L( + e + + '\nArguments: ' + + Array.prototype.slice.call(o).join('') + + '\n' + + new Error().stack + ), + (n = !1); + } + return t.apply(this, arguments); + }, t); + } + var M, + D = {}; + function E(e, t) { + null != i.deprecationHandler && i.deprecationHandler(e, t), + D[e] || (L(t), (D[e] = !0)); + } + function T(e) { + return ( + e instanceof Function || + '[object Function]' === Object.prototype.toString.call(e) + ); + } + function N(e, t) { + var n, + r = h({}, e); + for (n in t) + d(t, n) && + (s(e[n]) && s(t[n]) + ? ((r[n] = {}), h(r[n], e[n]), h(r[n], t[n])) + : null != t[n] + ? (r[n] = t[n]) + : delete r[n]); + for (n in e) d(e, n) && !d(t, n) && s(e[n]) && (r[n] = h({}, r[n])); + return r; + } + function O(e) { + null != e && this.set(e); + } + (i.suppressDeprecationWarnings = !1), + (i.deprecationHandler = null), + (M = Object.keys + ? Object.keys + : function (e) { + var t, + n = []; + for (t in e) d(e, t) && n.push(t); + return n; + }); + var A = {}; + function I(e, t) { + var n = e.toLowerCase(); + A[n] = A[n + 's'] = A[t] = e; + } + function P(e) { + return 'string' == typeof e ? A[e] || A[e.toLowerCase()] : void 0; + } + function R(e) { + var t, + n, + r = {}; + for (n in e) d(e, n) && (t = P(n)) && (r[t] = e[n]); + return r; + } + var F = {}; + function Y(e, t) { + F[e] = t; + } + function j(e, t, n) { + var r = '' + Math.abs(e), + i = t - r.length; + return ( + (0 <= e ? (n ? '+' : '') : '-') + + Math.pow(10, Math.max(0, i)).toString().substr(1) + + r + ); + } + var B = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, + W = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, + H = {}, + V = {}; + function z(e, t, n, r) { + var i = r; + 'string' == typeof r && + (i = function () { + return this[r](); + }), + e && (V[e] = i), + t && + (V[t[0]] = function () { + return j(i.apply(this, arguments), t[1], t[2]); + }), + n && + (V[n] = function () { + return this.localeData().ordinal(i.apply(this, arguments), e); + }); + } + function U(e, t) { + return e.isValid() + ? ((t = q(t, e.localeData())), + (H[t] = + H[t] || + (function (e) { + var t, + n, + r, + i = e.match(B); + for (t = 0, n = i.length; t < n; t++) + V[i[t]] + ? (i[t] = V[i[t]]) + : (i[t] = (r = i[t]).match(/\[[\s\S]/) + ? r.replace(/^\[|\]$/g, '') + : r.replace(/\\/g, '')); + return function (t) { + var r, + o = ''; + for (r = 0; r < n; r++) + o += T(i[r]) ? i[r].call(t, e) : i[r]; + return o; + }; + })(t)), + H[t](e)) + : e.localeData().invalidDate(); + } + function q(e, t) { + var n = 5; + function r(e) { + return t.longDateFormat(e) || e; + } + for (W.lastIndex = 0; 0 <= n && W.test(e); ) + (e = e.replace(W, r)), (W.lastIndex = 0), (n -= 1); + return e; + } + var K = /\d/, + G = /\d\d/, + $ = /\d{3}/, + Z = /\d{4}/, + X = /[+-]?\d{6}/, + J = /\d\d?/, + Q = /\d\d\d\d?/, + ee = /\d\d\d\d\d\d?/, + te = /\d{1,3}/, + ne = /\d{1,4}/, + re = /[+-]?\d{1,6}/, + ie = /\d+/, + oe = /[+-]?\d+/, + se = /Z|[+-]\d\d:?\d\d/gi, + ae = /Z|[+-]\d\d(?::?\d\d)?/gi, + ue = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, + le = {}; + function ce(e, t, n) { + le[e] = T(t) + ? t + : function (e, r) { + return e && n ? n : t; + }; + } + function de(e, t) { + return d(le, e) + ? le[e](t._strict, t._locale) + : new RegExp( + he( + e + .replace('\\', '') + .replace( + /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, + function (e, t, n, r, i) { + return t || n || r || i; + } + ) + ) + ); + } + function he(e) { + return e.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + } + var fe = {}; + function pe(e, t) { + var n, + r = t; + for ( + 'string' == typeof e && (e = [e]), + u(t) && + (r = function (e, n) { + n[t] = S(e); + }), + n = 0; + n < e.length; + n++ + ) + fe[e[n]] = r; + } + function ge(e, t) { + pe(e, function (e, n, r, i) { + (r._w = r._w || {}), t(e, r._w, r, i); + }); + } + var me = 0, + _e = 1, + ye = 2, + ve = 3, + be = 4, + we = 5, + Ce = 6, + Se = 7, + xe = 8; + function Le(e) { + return ke(e) ? 366 : 365; + } + function ke(e) { + return (e % 4 == 0 && e % 100 != 0) || e % 400 == 0; + } + z('Y', 0, 0, function () { + var e = this.year(); + return e <= 9999 ? '' + e : '+' + e; + }), + z(0, ['YY', 2], 0, function () { + return this.year() % 100; + }), + z(0, ['YYYY', 4], 0, 'year'), + z(0, ['YYYYY', 5], 0, 'year'), + z(0, ['YYYYYY', 6, !0], 0, 'year'), + I('year', 'y'), + Y('year', 1), + ce('Y', oe), + ce('YY', J, G), + ce('YYYY', ne, Z), + ce('YYYYY', re, X), + ce('YYYYYY', re, X), + pe(['YYYYY', 'YYYYYY'], me), + pe('YYYY', function (e, t) { + t[me] = 2 === e.length ? i.parseTwoDigitYear(e) : S(e); + }), + pe('YY', function (e, t) { + t[me] = i.parseTwoDigitYear(e); + }), + pe('Y', function (e, t) { + t[me] = parseInt(e, 10); + }), + (i.parseTwoDigitYear = function (e) { + return S(e) + (68 < S(e) ? 1900 : 2e3); + }); + var Me, + De = Ee('FullYear', !0); + function Ee(e, t) { + return function (n) { + return null != n + ? (Ne(this, e, n), i.updateOffset(this, t), this) + : Te(this, e); + }; + } + function Te(e, t) { + return e.isValid() + ? e._d['get' + (e._isUTC ? 'UTC' : '') + t]() + : NaN; + } + function Ne(e, t, n) { + e.isValid() && + !isNaN(n) && + ('FullYear' === t && + ke(e.year()) && + 1 === e.month() && + 29 === e.date() + ? e._d['set' + (e._isUTC ? 'UTC' : '') + t]( + n, + e.month(), + Oe(n, e.month()) + ) + : e._d['set' + (e._isUTC ? 'UTC' : '') + t](n)); + } + function Oe(e, t) { + if (isNaN(e) || isNaN(t)) return NaN; + var n = ((t % 12) + 12) % 12; + return ( + (e += (t - n) / 12), + 1 === n ? (ke(e) ? 29 : 28) : 31 - ((n % 7) % 2) + ); + } + (Me = Array.prototype.indexOf + ? Array.prototype.indexOf + : function (e) { + var t; + for (t = 0; t < this.length; ++t) if (this[t] === e) return t; + return -1; + }), + z('M', ['MM', 2], 'Mo', function () { + return this.month() + 1; + }), + z('MMM', 0, 0, function (e) { + return this.localeData().monthsShort(this, e); + }), + z('MMMM', 0, 0, function (e) { + return this.localeData().months(this, e); + }), + I('month', 'M'), + Y('month', 8), + ce('M', J), + ce('MM', J, G), + ce('MMM', function (e, t) { + return t.monthsShortRegex(e); + }), + ce('MMMM', function (e, t) { + return t.monthsRegex(e); + }), + pe(['M', 'MM'], function (e, t) { + t[_e] = S(e) - 1; + }), + pe(['MMM', 'MMMM'], function (e, t, n, r) { + var i = n._locale.monthsParse(e, r, n._strict); + null != i ? (t[_e] = i) : (p(n).invalidMonth = e); + }); + var Ae = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, + Ie = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( + '_' + ), + Pe = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); + function Re(e, t) { + var n; + if (!e.isValid()) return e; + if ('string' == typeof t) + if (/^\d+$/.test(t)) t = S(t); + else if (!u((t = e.localeData().monthsParse(t)))) return e; + return ( + (n = Math.min(e.date(), Oe(e.year(), t))), + e._d['set' + (e._isUTC ? 'UTC' : '') + 'Month'](t, n), + e + ); + } + function Fe(e) { + return null != e + ? (Re(this, e), i.updateOffset(this, !0), this) + : Te(this, 'Month'); + } + var Ye = ue, + je = ue; + function Be() { + function e(e, t) { + return t.length - e.length; + } + var t, + n, + r = [], + i = [], + o = []; + for (t = 0; t < 12; t++) + (n = f([2e3, t])), + r.push(this.monthsShort(n, '')), + i.push(this.months(n, '')), + o.push(this.months(n, '')), + o.push(this.monthsShort(n, '')); + for (r.sort(e), i.sort(e), o.sort(e), t = 0; t < 12; t++) + (r[t] = he(r[t])), (i[t] = he(i[t])); + for (t = 0; t < 24; t++) o[t] = he(o[t]); + (this._monthsRegex = new RegExp('^(' + o.join('|') + ')', 'i')), + (this._monthsShortRegex = this._monthsRegex), + (this._monthsStrictRegex = new RegExp( + '^(' + i.join('|') + ')', + 'i' + )), + (this._monthsShortStrictRegex = new RegExp( + '^(' + r.join('|') + ')', + 'i' + )); + } + function We(e) { + var t = new Date(Date.UTC.apply(null, arguments)); + return ( + e < 100 && + 0 <= e && + isFinite(t.getUTCFullYear()) && + t.setUTCFullYear(e), + t + ); + } + function He(e, t, n) { + var r = 7 + t - n; + return (-(7 + We(e, 0, r).getUTCDay() - t) % 7) + r - 1; + } + function Ve(e, t, n, r, i) { + var o, + s, + a = 1 + 7 * (t - 1) + ((7 + n - r) % 7) + He(e, r, i); + return ( + a <= 0 + ? (s = Le((o = e - 1)) + a) + : a > Le(e) + ? ((o = e + 1), (s = a - Le(e))) + : ((o = e), (s = a)), + { year: o, dayOfYear: s } + ); + } + function ze(e, t, n) { + var r, + i, + o = He(e.year(), t, n), + s = Math.floor((e.dayOfYear() - o - 1) / 7) + 1; + return ( + s < 1 + ? (r = s + Ue((i = e.year() - 1), t, n)) + : s > Ue(e.year(), t, n) + ? ((r = s - Ue(e.year(), t, n)), (i = e.year() + 1)) + : ((i = e.year()), (r = s)), + { week: r, year: i } + ); + } + function Ue(e, t, n) { + var r = He(e, t, n), + i = He(e + 1, t, n); + return (Le(e) - r + i) / 7; + } + z('w', ['ww', 2], 'wo', 'week'), + z('W', ['WW', 2], 'Wo', 'isoWeek'), + I('week', 'w'), + I('isoWeek', 'W'), + Y('week', 5), + Y('isoWeek', 5), + ce('w', J), + ce('ww', J, G), + ce('W', J), + ce('WW', J, G), + ge(['w', 'ww', 'W', 'WW'], function (e, t, n, r) { + t[r.substr(0, 1)] = S(e); + }), + z('d', 0, 'do', 'day'), + z('dd', 0, 0, function (e) { + return this.localeData().weekdaysMin(this, e); + }), + z('ddd', 0, 0, function (e) { + return this.localeData().weekdaysShort(this, e); + }), + z('dddd', 0, 0, function (e) { + return this.localeData().weekdays(this, e); + }), + z('e', 0, 0, 'weekday'), + z('E', 0, 0, 'isoWeekday'), + I('day', 'd'), + I('weekday', 'e'), + I('isoWeekday', 'E'), + Y('day', 11), + Y('weekday', 11), + Y('isoWeekday', 11), + ce('d', J), + ce('e', J), + ce('E', J), + ce('dd', function (e, t) { + return t.weekdaysMinRegex(e); + }), + ce('ddd', function (e, t) { + return t.weekdaysShortRegex(e); + }), + ce('dddd', function (e, t) { + return t.weekdaysRegex(e); + }), + ge(['dd', 'ddd', 'dddd'], function (e, t, n, r) { + var i = n._locale.weekdaysParse(e, r, n._strict); + null != i ? (t.d = i) : (p(n).invalidWeekday = e); + }), + ge(['d', 'e', 'E'], function (e, t, n, r) { + t[r] = S(e); + }); + var qe = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( + '_' + ), + Ke = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), + Ge = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), + $e = ue, + Ze = ue, + Xe = ue; + function Je() { + function e(e, t) { + return t.length - e.length; + } + var t, + n, + r, + i, + o, + s = [], + a = [], + u = [], + l = []; + for (t = 0; t < 7; t++) + (n = f([2e3, 1]).day(t)), + (r = this.weekdaysMin(n, '')), + (i = this.weekdaysShort(n, '')), + (o = this.weekdays(n, '')), + s.push(r), + a.push(i), + u.push(o), + l.push(r), + l.push(i), + l.push(o); + for (s.sort(e), a.sort(e), u.sort(e), l.sort(e), t = 0; t < 7; t++) + (a[t] = he(a[t])), (u[t] = he(u[t])), (l[t] = he(l[t])); + (this._weekdaysRegex = new RegExp('^(' + l.join('|') + ')', 'i')), + (this._weekdaysShortRegex = this._weekdaysRegex), + (this._weekdaysMinRegex = this._weekdaysRegex), + (this._weekdaysStrictRegex = new RegExp( + '^(' + u.join('|') + ')', + 'i' + )), + (this._weekdaysShortStrictRegex = new RegExp( + '^(' + a.join('|') + ')', + 'i' + )), + (this._weekdaysMinStrictRegex = new RegExp( + '^(' + s.join('|') + ')', + 'i' + )); + } + function Qe() { + return this.hours() % 12 || 12; + } + function et(e, t) { + z(e, 0, 0, function () { + return this.localeData().meridiem(this.hours(), this.minutes(), t); + }); + } + function tt(e, t) { + return t._meridiemParse; + } + z('H', ['HH', 2], 0, 'hour'), + z('h', ['hh', 2], 0, Qe), + z('k', ['kk', 2], 0, function () { + return this.hours() || 24; + }), + z('hmm', 0, 0, function () { + return '' + Qe.apply(this) + j(this.minutes(), 2); + }), + z('hmmss', 0, 0, function () { + return ( + '' + Qe.apply(this) + j(this.minutes(), 2) + j(this.seconds(), 2) + ); + }), + z('Hmm', 0, 0, function () { + return '' + this.hours() + j(this.minutes(), 2); + }), + z('Hmmss', 0, 0, function () { + return ( + '' + this.hours() + j(this.minutes(), 2) + j(this.seconds(), 2) + ); + }), + et('a', !0), + et('A', !1), + I('hour', 'h'), + Y('hour', 13), + ce('a', tt), + ce('A', tt), + ce('H', J), + ce('h', J), + ce('k', J), + ce('HH', J, G), + ce('hh', J, G), + ce('kk', J, G), + ce('hmm', Q), + ce('hmmss', ee), + ce('Hmm', Q), + ce('Hmmss', ee), + pe(['H', 'HH'], ve), + pe(['k', 'kk'], function (e, t, n) { + var r = S(e); + t[ve] = 24 === r ? 0 : r; + }), + pe(['a', 'A'], function (e, t, n) { + (n._isPm = n._locale.isPM(e)), (n._meridiem = e); + }), + pe(['h', 'hh'], function (e, t, n) { + (t[ve] = S(e)), (p(n).bigHour = !0); + }), + pe('hmm', function (e, t, n) { + var r = e.length - 2; + (t[ve] = S(e.substr(0, r))), + (t[be] = S(e.substr(r))), + (p(n).bigHour = !0); + }), + pe('hmmss', function (e, t, n) { + var r = e.length - 4, + i = e.length - 2; + (t[ve] = S(e.substr(0, r))), + (t[be] = S(e.substr(r, 2))), + (t[we] = S(e.substr(i))), + (p(n).bigHour = !0); + }), + pe('Hmm', function (e, t, n) { + var r = e.length - 2; + (t[ve] = S(e.substr(0, r))), (t[be] = S(e.substr(r))); + }), + pe('Hmmss', function (e, t, n) { + var r = e.length - 4, + i = e.length - 2; + (t[ve] = S(e.substr(0, r))), + (t[be] = S(e.substr(r, 2))), + (t[we] = S(e.substr(i))); + }); + var nt, + rt = Ee('Hours', !0), + it = { + calendar: { + sameDay: '[Today at] LT', + nextDay: '[Tomorrow at] LT', + nextWeek: 'dddd [at] LT', + lastDay: '[Yesterday at] LT', + lastWeek: '[Last] dddd [at] LT', + sameElse: 'L', + }, + longDateFormat: { + LTS: 'h:mm:ss A', + LT: 'h:mm A', + L: 'MM/DD/YYYY', + LL: 'MMMM D, YYYY', + LLL: 'MMMM D, YYYY h:mm A', + LLLL: 'dddd, MMMM D, YYYY h:mm A', + }, + invalidDate: 'Invalid date', + ordinal: '%d', + dayOfMonthOrdinalParse: /\d{1,2}/, + relativeTime: { + future: 'in %s', + past: '%s ago', + s: 'a few seconds', + ss: '%d seconds', + m: 'a minute', + mm: '%d minutes', + h: 'an hour', + hh: '%d hours', + d: 'a day', + dd: '%d days', + M: 'a month', + MM: '%d months', + y: 'a year', + yy: '%d years', + }, + months: Ie, + monthsShort: Pe, + week: { dow: 0, doy: 6 }, + weekdays: qe, + weekdaysMin: Ge, + weekdaysShort: Ke, + meridiemParse: /[ap]\.?m?\.?/i, + }, + ot = {}, + st = {}; + function at(e) { + return e ? e.toLowerCase().replace('_', '-') : e; + } + function ut(t) { + var r = null; + if (!ot[t] && void 0 !== e && e && e.exports) + try { + (r = nt._abbr), n(604)('./' + t), lt(r); + } catch (t) {} + return ot[t]; + } + function lt(e, t) { + var n; + return ( + e && + ((n = a(t) ? dt(e) : ct(e, t)) + ? (nt = n) + : 'undefined' != typeof console && + console.warn && + console.warn( + 'Locale ' + e + ' not found. Did you forget to load it?' + )), + nt._abbr + ); + } + function ct(e, t) { + if (null !== t) { + var n, + r = it; + if (((t.abbr = e), null != ot[e])) + E( + 'defineLocaleOverride', + 'use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.' + ), + (r = ot[e]._config); + else if (null != t.parentLocale) + if (null != ot[t.parentLocale]) r = ot[t.parentLocale]._config; + else { + if (null == (n = ut(t.parentLocale))) + return ( + st[t.parentLocale] || (st[t.parentLocale] = []), + st[t.parentLocale].push({ name: e, config: t }), + null + ); + r = n._config; + } + return ( + (ot[e] = new O(N(r, t))), + st[e] && + st[e].forEach(function (e) { + ct(e.name, e.config); + }), + lt(e), + ot[e] + ); + } + return delete ot[e], null; + } + function dt(e) { + var t; + if ((e && e._locale && e._locale._abbr && (e = e._locale._abbr), !e)) + return nt; + if (!o(e)) { + if ((t = ut(e))) return t; + e = [e]; + } + return (function (e) { + for (var t, n, r, i, o = 0; o < e.length; ) { + for ( + t = (i = at(e[o]).split('-')).length, + n = (n = at(e[o + 1])) ? n.split('-') : null; + 0 < t; + + ) { + if ((r = ut(i.slice(0, t).join('-')))) return r; + if (n && n.length >= t && x(i, n, !0) >= t - 1) break; + t--; + } + o++; + } + return nt; + })(e); + } + function ht(e) { + var t, + n = e._a; + return ( + n && + -2 === p(e).overflow && + ((t = + n[_e] < 0 || 11 < n[_e] + ? _e + : n[ye] < 1 || n[ye] > Oe(n[me], n[_e]) + ? ye + : n[ve] < 0 || + 24 < n[ve] || + (24 === n[ve] && + (0 !== n[be] || 0 !== n[we] || 0 !== n[Ce])) + ? ve + : n[be] < 0 || 59 < n[be] + ? be + : n[we] < 0 || 59 < n[we] + ? we + : n[Ce] < 0 || 999 < n[Ce] + ? Ce + : -1), + p(e)._overflowDayOfYear && (t < me || ye < t) && (t = ye), + p(e)._overflowWeeks && -1 === t && (t = Se), + p(e)._overflowWeekday && -1 === t && (t = xe), + (p(e).overflow = t)), + e + ); + } + function ft(e, t, n) { + return null != e ? e : null != t ? t : n; + } + function pt(e) { + var t, + n, + r, + o, + s, + a = []; + if (!e._d) { + var u, l; + for ( + u = e, + l = new Date(i.now()), + r = u._useUTC + ? [l.getUTCFullYear(), l.getUTCMonth(), l.getUTCDate()] + : [l.getFullYear(), l.getMonth(), l.getDate()], + e._w && + null == e._a[ye] && + null == e._a[_e] && + (function (e) { + var t, n, r, i, o, s, a, u; + if (null != (t = e._w).GG || null != t.W || null != t.E) + (o = 1), + (s = 4), + (n = ft(t.GG, e._a[me], ze(Dt(), 1, 4).year)), + (r = ft(t.W, 1)), + ((i = ft(t.E, 1)) < 1 || 7 < i) && (u = !0); + else { + (o = e._locale._week.dow), (s = e._locale._week.doy); + var l = ze(Dt(), o, s); + (n = ft(t.gg, e._a[me], l.year)), + (r = ft(t.w, l.week)), + null != t.d + ? ((i = t.d) < 0 || 6 < i) && (u = !0) + : null != t.e + ? ((i = t.e + o), (t.e < 0 || 6 < t.e) && (u = !0)) + : (i = o); + } + r < 1 || r > Ue(n, o, s) + ? (p(e)._overflowWeeks = !0) + : null != u + ? (p(e)._overflowWeekday = !0) + : ((a = Ve(n, r, i, o, s)), + (e._a[me] = a.year), + (e._dayOfYear = a.dayOfYear)); + })(e), + null != e._dayOfYear && + ((s = ft(e._a[me], r[me])), + (e._dayOfYear > Le(s) || 0 === e._dayOfYear) && + (p(e)._overflowDayOfYear = !0), + (n = We(s, 0, e._dayOfYear)), + (e._a[_e] = n.getUTCMonth()), + (e._a[ye] = n.getUTCDate())), + t = 0; + t < 3 && null == e._a[t]; + ++t + ) + e._a[t] = a[t] = r[t]; + for (; t < 7; t++) + e._a[t] = a[t] = null == e._a[t] ? (2 === t ? 1 : 0) : e._a[t]; + 24 === e._a[ve] && + 0 === e._a[be] && + 0 === e._a[we] && + 0 === e._a[Ce] && + ((e._nextDay = !0), (e._a[ve] = 0)), + (e._d = (e._useUTC + ? We + : function (e, t, n, r, i, o, s) { + var a = new Date(e, t, n, r, i, o, s); + return ( + e < 100 && + 0 <= e && + isFinite(a.getFullYear()) && + a.setFullYear(e), + a + ); + } + ).apply(null, a)), + (o = e._useUTC ? e._d.getUTCDay() : e._d.getDay()), + null != e._tzm && + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + e._nextDay && (e._a[ve] = 24), + e._w && + void 0 !== e._w.d && + e._w.d !== o && + (p(e).weekdayMismatch = !0); + } + } + var gt = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + mt = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, + _t = /Z|[+-]\d\d(?::?\d\d)?/, + yt = [ + ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], + ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], + ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], + ['GGGG-[W]WW', /\d{4}-W\d\d/, !1], + ['YYYY-DDD', /\d{4}-\d{3}/], + ['YYYY-MM', /\d{4}-\d\d/, !1], + ['YYYYYYMMDD', /[+-]\d{10}/], + ['YYYYMMDD', /\d{8}/], + ['GGGG[W]WWE', /\d{4}W\d{3}/], + ['GGGG[W]WW', /\d{4}W\d{2}/, !1], + ['YYYYDDD', /\d{7}/], + ], + vt = [ + ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], + ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], + ['HH:mm:ss', /\d\d:\d\d:\d\d/], + ['HH:mm', /\d\d:\d\d/], + ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], + ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], + ['HHmmss', /\d\d\d\d\d\d/], + ['HHmm', /\d\d\d\d/], + ['HH', /\d\d/], + ], + bt = /^\/?Date\((\-?\d+)/i; + function wt(e) { + var t, + n, + r, + i, + o, + s, + a = e._i, + u = gt.exec(a) || mt.exec(a); + if (u) { + for (p(e).iso = !0, t = 0, n = yt.length; t < n; t++) + if (yt[t][1].exec(u[1])) { + (i = yt[t][0]), (r = !1 !== yt[t][2]); + break; + } + if (null == i) return void (e._isValid = !1); + if (u[3]) { + for (t = 0, n = vt.length; t < n; t++) + if (vt[t][1].exec(u[3])) { + o = (u[2] || ' ') + vt[t][0]; + break; + } + if (null == o) return void (e._isValid = !1); + } + if (!r && null != o) return void (e._isValid = !1); + if (u[4]) { + if (!_t.exec(u[4])) return void (e._isValid = !1); + s = 'Z'; + } + (e._f = i + (o || '') + (s || '')), Lt(e); + } else e._isValid = !1; + } + var Ct = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, + St = { + UT: 0, + GMT: 0, + EDT: -240, + EST: -300, + CDT: -300, + CST: -360, + MDT: -360, + MST: -420, + PDT: -420, + PST: -480, + }; + function xt(e) { + var t, + n, + r, + i = Ct.exec( + e._i + .replace(/\([^)]*\)|[\n\t]/g, ' ') + .replace(/(\s\s+)/g, ' ') + .trim() + ); + if (i) { + var o = (function (e, t, n, r, i, o) { + var s = [ + (function (e) { + var t = parseInt(e, 10); + return t <= 49 ? 2e3 + t : t <= 999 ? 1900 + t : t; + })(e), + Pe.indexOf(t), + parseInt(n, 10), + parseInt(r, 10), + parseInt(i, 10), + ]; + return o && s.push(parseInt(o, 10)), s; + })(i[4], i[3], i[2], i[5], i[6], i[7]); + if ( + ((n = o), + (r = e), + (t = i[1]) && + Ke.indexOf(t) !== new Date(n[0], n[1], n[2]).getDay() && + ((p(r).weekdayMismatch = !0), !(r._isValid = !1))) + ) + return; + (e._a = o), + (e._tzm = (function (e, t, n) { + if (e) return St[e]; + if (t) return 0; + var r = parseInt(n, 10), + i = r % 100; + return ((r - i) / 100) * 60 + i; + })(i[8], i[9], i[10])), + (e._d = We.apply(null, e._a)), + e._d.setUTCMinutes(e._d.getUTCMinutes() - e._tzm), + (p(e).rfc2822 = !0); + } else e._isValid = !1; + } + function Lt(e) { + if (e._f !== i.ISO_8601) + if (e._f !== i.RFC_2822) { + (e._a = []), (p(e).empty = !0); + var t, + n, + r, + o, + s, + a, + u, + l, + c = '' + e._i, + h = c.length, + f = 0; + for ( + r = q(e._f, e._locale).match(B) || [], t = 0; + t < r.length; + t++ + ) + (o = r[t]), + (n = (c.match(de(o, e)) || [])[0]) && + (0 < (s = c.substr(0, c.indexOf(n))).length && + p(e).unusedInput.push(s), + (c = c.slice(c.indexOf(n) + n.length)), + (f += n.length)), + V[o] + ? (n ? (p(e).empty = !1) : p(e).unusedTokens.push(o), + (a = o), + (l = e), + null != (u = n) && d(fe, a) && fe[a](u, l._a, l, a)) + : e._strict && !n && p(e).unusedTokens.push(o); + (p(e).charsLeftOver = h - f), + 0 < c.length && p(e).unusedInput.push(c), + e._a[ve] <= 12 && + !0 === p(e).bigHour && + 0 < e._a[ve] && + (p(e).bigHour = void 0), + (p(e).parsedDateParts = e._a.slice(0)), + (p(e).meridiem = e._meridiem), + (e._a[ve] = (function (e, t, n) { + var r; + return null == n + ? t + : null != e.meridiemHour + ? e.meridiemHour(t, n) + : (null != e.isPM && + ((r = e.isPM(n)) && t < 12 && (t += 12), + r || 12 !== t || (t = 0)), + t); + })(e._locale, e._a[ve], e._meridiem)), + pt(e), + ht(e); + } else xt(e); + else wt(e); + } + function kt(e) { + var t, + n, + r, + d, + f = e._i, + _ = e._f; + return ( + (e._locale = e._locale || dt(e._l)), + null === f || (void 0 === _ && '' === f) + ? m({ nullInput: !0 }) + : ('string' == typeof f && (e._i = f = e._locale.preparse(f)), + w(f) + ? new b(ht(f)) + : (l(f) + ? (e._d = f) + : o(_) + ? (function (e) { + var t, n, r, i, o; + if (0 === e._f.length) + return ( + (p(e).invalidFormat = !0), (e._d = new Date(NaN)) + ); + for (i = 0; i < e._f.length; i++) + (o = 0), + (t = y({}, e)), + null != e._useUTC && (t._useUTC = e._useUTC), + (t._f = e._f[i]), + Lt(t), + g(t) && + ((o += p(t).charsLeftOver), + (o += 10 * p(t).unusedTokens.length), + (p(t).score = o), + (null == r || o < r) && ((r = o), (n = t))); + h(e, n || t); + })(e) + : _ + ? Lt(e) + : a((n = (t = e)._i)) + ? (t._d = new Date(i.now())) + : l(n) + ? (t._d = new Date(n.valueOf())) + : 'string' == typeof n + ? ((r = t), + null === (d = bt.exec(r._i)) + ? (wt(r), + !1 === r._isValid && + (delete r._isValid, + xt(r), + !1 === r._isValid && + (delete r._isValid, + i.createFromInputFallback(r)))) + : (r._d = new Date(+d[1]))) + : o(n) + ? ((t._a = c(n.slice(0), function (e) { + return parseInt(e, 10); + })), + pt(t)) + : s(n) + ? (function (e) { + if (!e._d) { + var t = R(e._i); + (e._a = c( + [ + t.year, + t.month, + t.day || t.date, + t.hour, + t.minute, + t.second, + t.millisecond, + ], + function (e) { + return e && parseInt(e, 10); + } + )), + pt(e); + } + })(t) + : u(n) + ? (t._d = new Date(n)) + : i.createFromInputFallback(t), + g(e) || (e._d = null), + e)) + ); + } + function Mt(e, t, n, r, i) { + var a, + u = {}; + return ( + (!0 !== n && !1 !== n) || ((r = n), (n = void 0)), + ((s(e) && + (function (e) { + if (Object.getOwnPropertyNames) + return 0 === Object.getOwnPropertyNames(e).length; + var t; + for (t in e) if (e.hasOwnProperty(t)) return !1; + return !0; + })(e)) || + (o(e) && 0 === e.length)) && + (e = void 0), + (u._isAMomentObject = !0), + (u._useUTC = u._isUTC = i), + (u._l = n), + (u._i = e), + (u._f = t), + (u._strict = r), + (a = new b(ht(kt(u))))._nextDay && + (a.add(1, 'd'), (a._nextDay = void 0)), + a + ); + } + function Dt(e, t, n, r) { + return Mt(e, t, n, r, !1); + } + (i.createFromInputFallback = k( + 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', + function (e) { + e._d = new Date(e._i + (e._useUTC ? ' UTC' : '')); + } + )), + (i.ISO_8601 = function () {}), + (i.RFC_2822 = function () {}); + var Et = k( + 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = Dt.apply(null, arguments); + return this.isValid() && e.isValid() + ? e < this + ? this + : e + : m(); + } + ), + Tt = k( + 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', + function () { + var e = Dt.apply(null, arguments); + return this.isValid() && e.isValid() + ? this < e + ? this + : e + : m(); + } + ); + function Nt(e, t) { + var n, r; + if ((1 === t.length && o(t[0]) && (t = t[0]), !t.length)) return Dt(); + for (n = t[0], r = 1; r < t.length; ++r) + (t[r].isValid() && !t[r][e](n)) || (n = t[r]); + return n; + } + var Ot = [ + 'year', + 'quarter', + 'month', + 'week', + 'day', + 'hour', + 'minute', + 'second', + 'millisecond', + ]; + function At(e) { + var t = R(e), + n = t.year || 0, + r = t.quarter || 0, + i = t.month || 0, + o = t.week || 0, + s = t.day || 0, + a = t.hour || 0, + u = t.minute || 0, + l = t.second || 0, + c = t.millisecond || 0; + (this._isValid = (function (e) { + for (var t in e) + if (-1 === Me.call(Ot, t) || (null != e[t] && isNaN(e[t]))) + return !1; + for (var n = !1, r = 0; r < Ot.length; ++r) + if (e[Ot[r]]) { + if (n) return !1; + parseFloat(e[Ot[r]]) !== S(e[Ot[r]]) && (n = !0); + } + return !0; + })(t)), + (this._milliseconds = +c + 1e3 * l + 6e4 * u + 1e3 * a * 60 * 60), + (this._days = +s + 7 * o), + (this._months = +i + 3 * r + 12 * n), + (this._data = {}), + (this._locale = dt()), + this._bubble(); + } + function It(e) { + return e instanceof At; + } + function Pt(e) { + return e < 0 ? -1 * Math.round(-1 * e) : Math.round(e); + } + function Rt(e, t) { + z(e, 0, 0, function () { + var e = this.utcOffset(), + n = '+'; + return ( + e < 0 && ((e = -e), (n = '-')), + n + j(~~(e / 60), 2) + t + j(~~e % 60, 2) + ); + }); + } + Rt('Z', ':'), + Rt('ZZ', ''), + ce('Z', ae), + ce('ZZ', ae), + pe(['Z', 'ZZ'], function (e, t, n) { + (n._useUTC = !0), (n._tzm = Yt(ae, e)); + }); + var Ft = /([\+\-]|\d\d)/gi; + function Yt(e, t) { + var n = (t || '').match(e); + if (null === n) return null; + var r = ((n[n.length - 1] || []) + '').match(Ft) || ['-', 0, 0], + i = 60 * r[1] + S(r[2]); + return 0 === i ? 0 : '+' === r[0] ? i : -i; + } + function jt(e, t) { + var n, r; + return t._isUTC + ? ((n = t.clone()), + (r = + (w(e) || l(e) ? e.valueOf() : Dt(e).valueOf()) - n.valueOf()), + n._d.setTime(n._d.valueOf() + r), + i.updateOffset(n, !1), + n) + : Dt(e).local(); + } + function Bt(e) { + return 15 * -Math.round(e._d.getTimezoneOffset() / 15); + } + function Wt() { + return !!this.isValid() && this._isUTC && 0 === this._offset; + } + i.updateOffset = function () {}; + var Ht = /^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/, + Vt = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function zt(e, t) { + var n, + r, + i, + o = e, + s = null; + return ( + It(e) + ? (o = { ms: e._milliseconds, d: e._days, M: e._months }) + : u(e) + ? ((o = {}), t ? (o[t] = e) : (o.milliseconds = e)) + : (s = Ht.exec(e)) + ? ((n = '-' === s[1] ? -1 : 1), + (o = { + y: 0, + d: S(s[ye]) * n, + h: S(s[ve]) * n, + m: S(s[be]) * n, + s: S(s[we]) * n, + ms: S(Pt(1e3 * s[Ce])) * n, + })) + : (s = Vt.exec(e)) + ? ((n = '-' === s[1] ? -1 : (s[1], 1)), + (o = { + y: Ut(s[2], n), + M: Ut(s[3], n), + w: Ut(s[4], n), + d: Ut(s[5], n), + h: Ut(s[6], n), + m: Ut(s[7], n), + s: Ut(s[8], n), + })) + : null == o + ? (o = {}) + : 'object' == typeof o && + ('from' in o || 'to' in o) && + ((i = (function (e, t) { + var n; + return e.isValid() && t.isValid() + ? ((t = jt(t, e)), + e.isBefore(t) + ? (n = qt(e, t)) + : (((n = qt(t, e)).milliseconds = -n.milliseconds), + (n.months = -n.months)), + n) + : { milliseconds: 0, months: 0 }; + })(Dt(o.from), Dt(o.to))), + ((o = {}).ms = i.milliseconds), + (o.M = i.months)), + (r = new At(o)), + It(e) && d(e, '_locale') && (r._locale = e._locale), + r + ); + } + function Ut(e, t) { + var n = e && parseFloat(e.replace(',', '.')); + return (isNaN(n) ? 0 : n) * t; + } + function qt(e, t) { + var n = { milliseconds: 0, months: 0 }; + return ( + (n.months = t.month() - e.month() + 12 * (t.year() - e.year())), + e.clone().add(n.months, 'M').isAfter(t) && --n.months, + (n.milliseconds = +t - +e.clone().add(n.months, 'M')), + n + ); + } + function Kt(e, t) { + return function (n, r) { + var i; + return ( + null === r || + isNaN(+r) || + (E( + t, + 'moment().' + + t + + '(period, number) is deprecated. Please use moment().' + + t + + '(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' + ), + (i = n), + (n = r), + (r = i)), + Gt(this, zt((n = 'string' == typeof n ? +n : n), r), e), + this + ); + }; + } + function Gt(e, t, n, r) { + var o = t._milliseconds, + s = Pt(t._days), + a = Pt(t._months); + e.isValid() && + ((r = null == r || r), + a && Re(e, Te(e, 'Month') + a * n), + s && Ne(e, 'Date', Te(e, 'Date') + s * n), + o && e._d.setTime(e._d.valueOf() + o * n), + r && i.updateOffset(e, s || a)); + } + (zt.fn = At.prototype), + (zt.invalid = function () { + return zt(NaN); + }); + var $t = Kt(1, 'add'), + Zt = Kt(-1, 'subtract'); + function Xt(e, t) { + var n = 12 * (t.year() - e.year()) + (t.month() - e.month()), + r = e.clone().add(n, 'months'); + return ( + -( + n + + (t - r < 0 + ? (t - r) / (r - e.clone().add(n - 1, 'months')) + : (t - r) / (e.clone().add(n + 1, 'months') - r)) + ) || 0 + ); + } + function Jt(e) { + var t; + return void 0 === e + ? this._locale._abbr + : (null != (t = dt(e)) && (this._locale = t), this); + } + (i.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'), + (i.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'); + var Qt = k( + 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', + function (e) { + return void 0 === e ? this.localeData() : this.locale(e); + } + ); + function en() { + return this._locale; + } + function tn(e, t) { + z(0, [e, e.length], 0, t); + } + function nn(e, t, n, r, i) { + var o; + return null == e + ? ze(this, r, i).year + : ((o = Ue(e, r, i)) < t && (t = o), + function (e, t, n, r, i) { + var o = Ve(e, t, n, r, i), + s = We(o.year, 0, o.dayOfYear); + return ( + this.year(s.getUTCFullYear()), + this.month(s.getUTCMonth()), + this.date(s.getUTCDate()), + this + ); + }.call(this, e, t, n, r, i)); + } + z(0, ['gg', 2], 0, function () { + return this.weekYear() % 100; + }), + z(0, ['GG', 2], 0, function () { + return this.isoWeekYear() % 100; + }), + tn('gggg', 'weekYear'), + tn('ggggg', 'weekYear'), + tn('GGGG', 'isoWeekYear'), + tn('GGGGG', 'isoWeekYear'), + I('weekYear', 'gg'), + I('isoWeekYear', 'GG'), + Y('weekYear', 1), + Y('isoWeekYear', 1), + ce('G', oe), + ce('g', oe), + ce('GG', J, G), + ce('gg', J, G), + ce('GGGG', ne, Z), + ce('gggg', ne, Z), + ce('GGGGG', re, X), + ce('ggggg', re, X), + ge(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (e, t, n, r) { + t[r.substr(0, 2)] = S(e); + }), + ge(['gg', 'GG'], function (e, t, n, r) { + t[r] = i.parseTwoDigitYear(e); + }), + z('Q', 0, 'Qo', 'quarter'), + I('quarter', 'Q'), + Y('quarter', 7), + ce('Q', K), + pe('Q', function (e, t) { + t[_e] = 3 * (S(e) - 1); + }), + z('D', ['DD', 2], 'Do', 'date'), + I('date', 'D'), + Y('date', 9), + ce('D', J), + ce('DD', J, G), + ce('Do', function (e, t) { + return e + ? t._dayOfMonthOrdinalParse || t._ordinalParse + : t._dayOfMonthOrdinalParseLenient; + }), + pe(['D', 'DD'], ye), + pe('Do', function (e, t) { + t[ye] = S(e.match(J)[0]); + }); + var rn = Ee('Date', !0); + z('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'), + I('dayOfYear', 'DDD'), + Y('dayOfYear', 4), + ce('DDD', te), + ce('DDDD', $), + pe(['DDD', 'DDDD'], function (e, t, n) { + n._dayOfYear = S(e); + }), + z('m', ['mm', 2], 0, 'minute'), + I('minute', 'm'), + Y('minute', 14), + ce('m', J), + ce('mm', J, G), + pe(['m', 'mm'], be); + var on = Ee('Minutes', !1); + z('s', ['ss', 2], 0, 'second'), + I('second', 's'), + Y('second', 15), + ce('s', J), + ce('ss', J, G), + pe(['s', 'ss'], we); + var sn, + an = Ee('Seconds', !1); + for ( + z('S', 0, 0, function () { + return ~~(this.millisecond() / 100); + }), + z(0, ['SS', 2], 0, function () { + return ~~(this.millisecond() / 10); + }), + z(0, ['SSS', 3], 0, 'millisecond'), + z(0, ['SSSS', 4], 0, function () { + return 10 * this.millisecond(); + }), + z(0, ['SSSSS', 5], 0, function () { + return 100 * this.millisecond(); + }), + z(0, ['SSSSSS', 6], 0, function () { + return 1e3 * this.millisecond(); + }), + z(0, ['SSSSSSS', 7], 0, function () { + return 1e4 * this.millisecond(); + }), + z(0, ['SSSSSSSS', 8], 0, function () { + return 1e5 * this.millisecond(); + }), + z(0, ['SSSSSSSSS', 9], 0, function () { + return 1e6 * this.millisecond(); + }), + I('millisecond', 'ms'), + Y('millisecond', 16), + ce('S', te, K), + ce('SS', te, G), + ce('SSS', te, $), + sn = 'SSSS'; + sn.length <= 9; + sn += 'S' + ) + ce(sn, ie); + function un(e, t) { + t[Ce] = S(1e3 * ('0.' + e)); + } + for (sn = 'S'; sn.length <= 9; sn += 'S') pe(sn, un); + var ln = Ee('Milliseconds', !1); + z('z', 0, 0, 'zoneAbbr'), z('zz', 0, 0, 'zoneName'); + var cn = b.prototype; + function dn(e) { + return e; + } + (cn.add = $t), + (cn.calendar = function (e, t) { + var n = e || Dt(), + r = jt(n, this).startOf('day'), + o = i.calendarFormat(this, r) || 'sameElse', + s = t && (T(t[o]) ? t[o].call(this, n) : t[o]); + return this.format(s || this.localeData().calendar(o, this, Dt(n))); + }), + (cn.clone = function () { + return new b(this); + }), + (cn.diff = function (e, t, n) { + var r, i, o; + if (!this.isValid()) return NaN; + if (!(r = jt(e, this)).isValid()) return NaN; + switch ( + ((i = 6e4 * (r.utcOffset() - this.utcOffset())), (t = P(t))) + ) { + case 'year': + o = Xt(this, r) / 12; + break; + case 'month': + o = Xt(this, r); + break; + case 'quarter': + o = Xt(this, r) / 3; + break; + case 'second': + o = (this - r) / 1e3; + break; + case 'minute': + o = (this - r) / 6e4; + break; + case 'hour': + o = (this - r) / 36e5; + break; + case 'day': + o = (this - r - i) / 864e5; + break; + case 'week': + o = (this - r - i) / 6048e5; + break; + default: + o = this - r; + } + return n ? o : C(o); + }), + (cn.endOf = function (e) { + return void 0 === (e = P(e)) || 'millisecond' === e + ? this + : ('date' === e && (e = 'day'), + this.startOf(e) + .add(1, 'isoWeek' === e ? 'week' : e) + .subtract(1, 'ms')); + }), + (cn.format = function (e) { + e || (e = this.isUtc() ? i.defaultFormatUtc : i.defaultFormat); + var t = U(this, e); + return this.localeData().postformat(t); + }), + (cn.from = function (e, t) { + return this.isValid() && ((w(e) && e.isValid()) || Dt(e).isValid()) + ? zt({ to: this, from: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate(); + }), + (cn.fromNow = function (e) { + return this.from(Dt(), e); + }), + (cn.to = function (e, t) { + return this.isValid() && ((w(e) && e.isValid()) || Dt(e).isValid()) + ? zt({ from: this, to: e }).locale(this.locale()).humanize(!t) + : this.localeData().invalidDate(); + }), + (cn.toNow = function (e) { + return this.to(Dt(), e); + }), + (cn.get = function (e) { + return T(this[(e = P(e))]) ? this[e]() : this; + }), + (cn.invalidAt = function () { + return p(this).overflow; + }), + (cn.isAfter = function (e, t) { + var n = w(e) ? e : Dt(e); + return ( + !(!this.isValid() || !n.isValid()) && + ('millisecond' === (t = P(a(t) ? 'millisecond' : t)) + ? this.valueOf() > n.valueOf() + : n.valueOf() < this.clone().startOf(t).valueOf()) + ); + }), + (cn.isBefore = function (e, t) { + var n = w(e) ? e : Dt(e); + return ( + !(!this.isValid() || !n.isValid()) && + ('millisecond' === (t = P(a(t) ? 'millisecond' : t)) + ? this.valueOf() < n.valueOf() + : this.clone().endOf(t).valueOf() < n.valueOf()) + ); + }), + (cn.isBetween = function (e, t, n, r) { + return ( + ('(' === (r = r || '()')[0] + ? this.isAfter(e, n) + : !this.isBefore(e, n)) && + (')' === r[1] ? this.isBefore(t, n) : !this.isAfter(t, n)) + ); + }), + (cn.isSame = function (e, t) { + var n, + r = w(e) ? e : Dt(e); + return ( + !(!this.isValid() || !r.isValid()) && + ('millisecond' === (t = P(t || 'millisecond')) + ? this.valueOf() === r.valueOf() + : ((n = r.valueOf()), + this.clone().startOf(t).valueOf() <= n && + n <= this.clone().endOf(t).valueOf())) + ); + }), + (cn.isSameOrAfter = function (e, t) { + return this.isSame(e, t) || this.isAfter(e, t); + }), + (cn.isSameOrBefore = function (e, t) { + return this.isSame(e, t) || this.isBefore(e, t); + }), + (cn.isValid = function () { + return g(this); + }), + (cn.lang = Qt), + (cn.locale = Jt), + (cn.localeData = en), + (cn.max = Tt), + (cn.min = Et), + (cn.parsingFlags = function () { + return h({}, p(this)); + }), + (cn.set = function (e, t) { + if ('object' == typeof e) + for ( + var n = (function (e) { + var t = []; + for (var n in e) t.push({ unit: n, priority: F[n] }); + return ( + t.sort(function (e, t) { + return e.priority - t.priority; + }), + t + ); + })((e = R(e))), + r = 0; + r < n.length; + r++ + ) + this[n[r].unit](e[n[r].unit]); + else if (T(this[(e = P(e))])) return this[e](t); + return this; + }), + (cn.startOf = function (e) { + switch ((e = P(e))) { + case 'year': + this.month(0); + case 'quarter': + case 'month': + this.date(1); + case 'week': + case 'isoWeek': + case 'day': + case 'date': + this.hours(0); + case 'hour': + this.minutes(0); + case 'minute': + this.seconds(0); + case 'second': + this.milliseconds(0); + } + return ( + 'week' === e && this.weekday(0), + 'isoWeek' === e && this.isoWeekday(1), + 'quarter' === e && this.month(3 * Math.floor(this.month() / 3)), + this + ); + }), + (cn.subtract = Zt), + (cn.toArray = function () { + var e = this; + return [ + e.year(), + e.month(), + e.date(), + e.hour(), + e.minute(), + e.second(), + e.millisecond(), + ]; + }), + (cn.toObject = function () { + var e = this; + return { + years: e.year(), + months: e.month(), + date: e.date(), + hours: e.hours(), + minutes: e.minutes(), + seconds: e.seconds(), + milliseconds: e.milliseconds(), + }; + }), + (cn.toDate = function () { + return new Date(this.valueOf()); + }), + (cn.toISOString = function (e) { + if (!this.isValid()) return null; + var t = !0 !== e, + n = t ? this.clone().utc() : this; + return n.year() < 0 || 9999 < n.year() + ? U( + n, + t + ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' + ) + : T(Date.prototype.toISOString) + ? t + ? this.toDate().toISOString() + : new Date(this.valueOf() + 60 * this.utcOffset() * 1e3) + .toISOString() + .replace('Z', U(n, 'Z')) + : U( + n, + t + ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' + : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + ); + }), + (cn.inspect = function () { + if (!this.isValid()) return 'moment.invalid(/* ' + this._i + ' */)'; + var e = 'moment', + t = ''; + this.isLocal() || + ((e = 0 === this.utcOffset() ? 'moment.utc' : 'moment.parseZone'), + (t = 'Z')); + var n = '[' + e + '("]', + r = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY', + i = t + '[")]'; + return this.format(n + r + '-MM-DD[T]HH:mm:ss.SSS' + i); + }), + (cn.toJSON = function () { + return this.isValid() ? this.toISOString() : null; + }), + (cn.toString = function () { + return this.clone() + .locale('en') + .format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); + }), + (cn.unix = function () { + return Math.floor(this.valueOf() / 1e3); + }), + (cn.valueOf = function () { + return this._d.valueOf() - 6e4 * (this._offset || 0); + }), + (cn.creationData = function () { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict, + }; + }), + (cn.year = De), + (cn.isLeapYear = function () { + return ke(this.year()); + }), + (cn.weekYear = function (e) { + return nn.call( + this, + e, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy + ); + }), + (cn.isoWeekYear = function (e) { + return nn.call(this, e, this.isoWeek(), this.isoWeekday(), 1, 4); + }), + (cn.quarter = cn.quarters = function (e) { + return null == e + ? Math.ceil((this.month() + 1) / 3) + : this.month(3 * (e - 1) + (this.month() % 3)); + }), + (cn.month = Fe), + (cn.daysInMonth = function () { + return Oe(this.year(), this.month()); + }), + (cn.week = cn.weeks = function (e) { + var t = this.localeData().week(this); + return null == e ? t : this.add(7 * (e - t), 'd'); + }), + (cn.isoWeek = cn.isoWeeks = function (e) { + var t = ze(this, 1, 4).week; + return null == e ? t : this.add(7 * (e - t), 'd'); + }), + (cn.weeksInYear = function () { + var e = this.localeData()._week; + return Ue(this.year(), e.dow, e.doy); + }), + (cn.isoWeeksInYear = function () { + return Ue(this.year(), 1, 4); + }), + (cn.date = rn), + (cn.day = cn.days = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + var t, + n, + r = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + return null != e + ? ((t = e), + (n = this.localeData()), + (e = + 'string' != typeof t + ? t + : isNaN(t) + ? 'number' == typeof (t = n.weekdaysParse(t)) + ? t + : null + : parseInt(t, 10)), + this.add(e - r, 'd')) + : r; + }), + (cn.weekday = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + var t = (this.day() + 7 - this.localeData()._week.dow) % 7; + return null == e ? t : this.add(e - t, 'd'); + }), + (cn.isoWeekday = function (e) { + if (!this.isValid()) return null != e ? this : NaN; + if (null != e) { + var t = + ((n = e), + (r = this.localeData()), + 'string' == typeof n + ? r.weekdaysParse(n) % 7 || 7 + : isNaN(n) + ? null + : n); + return this.day(this.day() % 7 ? t : t - 7); + } + return this.day() || 7; + var n, r; + }), + (cn.dayOfYear = function (e) { + var t = + Math.round( + (this.clone().startOf('day') - this.clone().startOf('year')) / + 864e5 + ) + 1; + return null == e ? t : this.add(e - t, 'd'); + }), + (cn.hour = cn.hours = rt), + (cn.minute = cn.minutes = on), + (cn.second = cn.seconds = an), + (cn.millisecond = cn.milliseconds = ln), + (cn.utcOffset = function (e, t, n) { + var r, + o = this._offset || 0; + if (!this.isValid()) return null != e ? this : NaN; + if (null != e) { + if ('string' == typeof e) { + if (null === (e = Yt(ae, e))) return this; + } else Math.abs(e) < 16 && !n && (e *= 60); + return ( + !this._isUTC && t && (r = Bt(this)), + (this._offset = e), + (this._isUTC = !0), + null != r && this.add(r, 'm'), + o !== e && + (!t || this._changeInProgress + ? Gt(this, zt(e - o, 'm'), 1, !1) + : this._changeInProgress || + ((this._changeInProgress = !0), + i.updateOffset(this, !0), + (this._changeInProgress = null))), + this + ); + } + return this._isUTC ? o : Bt(this); + }), + (cn.utc = function (e) { + return this.utcOffset(0, e); + }), + (cn.local = function (e) { + return ( + this._isUTC && + (this.utcOffset(0, e), + (this._isUTC = !1), + e && this.subtract(Bt(this), 'm')), + this + ); + }), + (cn.parseZone = function () { + if (null != this._tzm) this.utcOffset(this._tzm, !1, !0); + else if ('string' == typeof this._i) { + var e = Yt(se, this._i); + null != e ? this.utcOffset(e) : this.utcOffset(0, !0); + } + return this; + }), + (cn.hasAlignedHourOffset = function (e) { + return ( + !!this.isValid() && + ((e = e ? Dt(e).utcOffset() : 0), + (this.utcOffset() - e) % 60 == 0) + ); + }), + (cn.isDST = function () { + return ( + this.utcOffset() > this.clone().month(0).utcOffset() || + this.utcOffset() > this.clone().month(5).utcOffset() + ); + }), + (cn.isLocal = function () { + return !!this.isValid() && !this._isUTC; + }), + (cn.isUtcOffset = function () { + return !!this.isValid() && this._isUTC; + }), + (cn.isUtc = Wt), + (cn.isUTC = Wt), + (cn.zoneAbbr = function () { + return this._isUTC ? 'UTC' : ''; + }), + (cn.zoneName = function () { + return this._isUTC ? 'Coordinated Universal Time' : ''; + }), + (cn.dates = k('dates accessor is deprecated. Use date instead.', rn)), + (cn.months = k( + 'months accessor is deprecated. Use month instead', + Fe + )), + (cn.years = k('years accessor is deprecated. Use year instead', De)), + (cn.zone = k( + 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + function (e, t) { + return null != e + ? ('string' != typeof e && (e = -e), this.utcOffset(e, t), this) + : -this.utcOffset(); + } + )), + (cn.isDSTShifted = k( + 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + function () { + if (!a(this._isDSTShifted)) return this._isDSTShifted; + var e = {}; + if ((y(e, this), (e = kt(e))._a)) { + var t = e._isUTC ? f(e._a) : Dt(e._a); + this._isDSTShifted = this.isValid() && 0 < x(e._a, t.toArray()); + } else this._isDSTShifted = !1; + return this._isDSTShifted; + } + )); + var hn = O.prototype; + function fn(e, t, n, r) { + var i = dt(), + o = f().set(r, t); + return i[n](o, e); + } + function pn(e, t, n) { + if ((u(e) && ((t = e), (e = void 0)), (e = e || ''), null != t)) + return fn(e, t, n, 'month'); + var r, + i = []; + for (r = 0; r < 12; r++) i[r] = fn(e, r, n, 'month'); + return i; + } + function gn(e, t, n, r) { + 'boolean' == typeof e + ? u(t) && ((n = t), (t = void 0)) + : ((t = e), (e = !1), u((n = t)) && ((n = t), (t = void 0))), + (t = t || ''); + var i, + o = dt(), + s = e ? o._week.dow : 0; + if (null != n) return fn(t, (n + s) % 7, r, 'day'); + var a = []; + for (i = 0; i < 7; i++) a[i] = fn(t, (i + s) % 7, r, 'day'); + return a; + } + (hn.calendar = function (e, t, n) { + var r = this._calendar[e] || this._calendar.sameElse; + return T(r) ? r.call(t, n) : r; + }), + (hn.longDateFormat = function (e) { + var t = this._longDateFormat[e], + n = this._longDateFormat[e.toUpperCase()]; + return t || !n + ? t + : ((this._longDateFormat[e] = n.replace( + /MMMM|MM|DD|dddd/g, + function (e) { + return e.slice(1); + } + )), + this._longDateFormat[e]); + }), + (hn.invalidDate = function () { + return this._invalidDate; + }), + (hn.ordinal = function (e) { + return this._ordinal.replace('%d', e); + }), + (hn.preparse = dn), + (hn.postformat = dn), + (hn.relativeTime = function (e, t, n, r) { + var i = this._relativeTime[n]; + return T(i) ? i(e, t, n, r) : i.replace(/%d/i, e); + }), + (hn.pastFuture = function (e, t) { + var n = this._relativeTime[0 < e ? 'future' : 'past']; + return T(n) ? n(t) : n.replace(/%s/i, t); + }), + (hn.set = function (e) { + var t, n; + for (n in e) T((t = e[n])) ? (this[n] = t) : (this['_' + n] = t); + (this._config = e), + (this._dayOfMonthOrdinalParseLenient = new RegExp( + (this._dayOfMonthOrdinalParse.source || + this._ordinalParse.source) + + '|' + + /\d{1,2}/.source + )); + }), + (hn.months = function (e, t) { + return e + ? o(this._months) + ? this._months[e.month()] + : this._months[ + (this._months.isFormat || Ae).test(t) + ? 'format' + : 'standalone' + ][e.month()] + : o(this._months) + ? this._months + : this._months.standalone; + }), + (hn.monthsShort = function (e, t) { + return e + ? o(this._monthsShort) + ? this._monthsShort[e.month()] + : this._monthsShort[Ae.test(t) ? 'format' : 'standalone'][ + e.month() + ] + : o(this._monthsShort) + ? this._monthsShort + : this._monthsShort.standalone; + }), + (hn.monthsParse = function (e, t, n) { + var r, i, o; + if (this._monthsParseExact) + return function (e, t, n) { + var r, + i, + o, + s = e.toLocaleLowerCase(); + if (!this._monthsParse) + for ( + this._monthsParse = [], + this._longMonthsParse = [], + this._shortMonthsParse = [], + r = 0; + r < 12; + ++r + ) + (o = f([2e3, r])), + (this._shortMonthsParse[r] = this.monthsShort( + o, + '' + ).toLocaleLowerCase()), + (this._longMonthsParse[r] = this.months( + o, + '' + ).toLocaleLowerCase()); + return n + ? 'MMM' === t + ? -1 !== (i = Me.call(this._shortMonthsParse, s)) + ? i + : null + : -1 !== (i = Me.call(this._longMonthsParse, s)) + ? i + : null + : 'MMM' === t + ? -1 !== (i = Me.call(this._shortMonthsParse, s)) + ? i + : -1 !== (i = Me.call(this._longMonthsParse, s)) + ? i + : null + : -1 !== (i = Me.call(this._longMonthsParse, s)) + ? i + : -1 !== (i = Me.call(this._shortMonthsParse, s)) + ? i + : null; + }.call(this, e, t, n); + for ( + this._monthsParse || + ((this._monthsParse = []), + (this._longMonthsParse = []), + (this._shortMonthsParse = [])), + r = 0; + r < 12; + r++ + ) { + if ( + ((i = f([2e3, r])), + n && + !this._longMonthsParse[r] && + ((this._longMonthsParse[r] = new RegExp( + '^' + this.months(i, '').replace('.', '') + '$', + 'i' + )), + (this._shortMonthsParse[r] = new RegExp( + '^' + this.monthsShort(i, '').replace('.', '') + '$', + 'i' + ))), + n || + this._monthsParse[r] || + ((o = + '^' + this.months(i, '') + '|^' + this.monthsShort(i, '')), + (this._monthsParse[r] = new RegExp(o.replace('.', ''), 'i'))), + n && 'MMMM' === t && this._longMonthsParse[r].test(e)) + ) + return r; + if (n && 'MMM' === t && this._shortMonthsParse[r].test(e)) + return r; + if (!n && this._monthsParse[r].test(e)) return r; + } + }), + (hn.monthsRegex = function (e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || Be.call(this), + e ? this._monthsStrictRegex : this._monthsRegex) + : (d(this, '_monthsRegex') || (this._monthsRegex = je), + this._monthsStrictRegex && e + ? this._monthsStrictRegex + : this._monthsRegex); + }), + (hn.monthsShortRegex = function (e) { + return this._monthsParseExact + ? (d(this, '_monthsRegex') || Be.call(this), + e ? this._monthsShortStrictRegex : this._monthsShortRegex) + : (d(this, '_monthsShortRegex') || (this._monthsShortRegex = Ye), + this._monthsShortStrictRegex && e + ? this._monthsShortStrictRegex + : this._monthsShortRegex); + }), + (hn.week = function (e) { + return ze(e, this._week.dow, this._week.doy).week; + }), + (hn.firstDayOfYear = function () { + return this._week.doy; + }), + (hn.firstDayOfWeek = function () { + return this._week.dow; + }), + (hn.weekdays = function (e, t) { + return e + ? o(this._weekdays) + ? this._weekdays[e.day()] + : this._weekdays[ + this._weekdays.isFormat.test(t) ? 'format' : 'standalone' + ][e.day()] + : o(this._weekdays) + ? this._weekdays + : this._weekdays.standalone; + }), + (hn.weekdaysMin = function (e) { + return e ? this._weekdaysMin[e.day()] : this._weekdaysMin; + }), + (hn.weekdaysShort = function (e) { + return e ? this._weekdaysShort[e.day()] : this._weekdaysShort; + }), + (hn.weekdaysParse = function (e, t, n) { + var r, i, o; + if (this._weekdaysParseExact) + return function (e, t, n) { + var r, + i, + o, + s = e.toLocaleLowerCase(); + if (!this._weekdaysParse) + for ( + this._weekdaysParse = [], + this._shortWeekdaysParse = [], + this._minWeekdaysParse = [], + r = 0; + r < 7; + ++r + ) + (o = f([2e3, 1]).day(r)), + (this._minWeekdaysParse[r] = this.weekdaysMin( + o, + '' + ).toLocaleLowerCase()), + (this._shortWeekdaysParse[r] = this.weekdaysShort( + o, + '' + ).toLocaleLowerCase()), + (this._weekdaysParse[r] = this.weekdays( + o, + '' + ).toLocaleLowerCase()); + return n + ? 'dddd' === t + ? -1 !== (i = Me.call(this._weekdaysParse, s)) + ? i + : null + : 'ddd' === t + ? -1 !== (i = Me.call(this._shortWeekdaysParse, s)) + ? i + : null + : -1 !== (i = Me.call(this._minWeekdaysParse, s)) + ? i + : null + : 'dddd' === t + ? -1 !== (i = Me.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._shortWeekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._minWeekdaysParse, s)) + ? i + : null + : 'ddd' === t + ? -1 !== (i = Me.call(this._shortWeekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._minWeekdaysParse, s)) + ? i + : null + : -1 !== (i = Me.call(this._minWeekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._weekdaysParse, s)) + ? i + : -1 !== (i = Me.call(this._shortWeekdaysParse, s)) + ? i + : null; + }.call(this, e, t, n); + for ( + this._weekdaysParse || + ((this._weekdaysParse = []), + (this._minWeekdaysParse = []), + (this._shortWeekdaysParse = []), + (this._fullWeekdaysParse = [])), + r = 0; + r < 7; + r++ + ) { + if ( + ((i = f([2e3, 1]).day(r)), + n && + !this._fullWeekdaysParse[r] && + ((this._fullWeekdaysParse[r] = new RegExp( + '^' + this.weekdays(i, '').replace('.', '.?') + '$', + 'i' + )), + (this._shortWeekdaysParse[r] = new RegExp( + '^' + this.weekdaysShort(i, '').replace('.', '.?') + '$', + 'i' + )), + (this._minWeekdaysParse[r] = new RegExp( + '^' + this.weekdaysMin(i, '').replace('.', '.?') + '$', + 'i' + ))), + this._weekdaysParse[r] || + ((o = + '^' + + this.weekdays(i, '') + + '|^' + + this.weekdaysShort(i, '') + + '|^' + + this.weekdaysMin(i, '')), + (this._weekdaysParse[r] = new RegExp( + o.replace('.', ''), + 'i' + ))), + n && 'dddd' === t && this._fullWeekdaysParse[r].test(e)) + ) + return r; + if (n && 'ddd' === t && this._shortWeekdaysParse[r].test(e)) + return r; + if (n && 'dd' === t && this._minWeekdaysParse[r].test(e)) + return r; + if (!n && this._weekdaysParse[r].test(e)) return r; + } + }), + (hn.weekdaysRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Je.call(this), + e ? this._weekdaysStrictRegex : this._weekdaysRegex) + : (d(this, '_weekdaysRegex') || (this._weekdaysRegex = $e), + this._weekdaysStrictRegex && e + ? this._weekdaysStrictRegex + : this._weekdaysRegex); + }), + (hn.weekdaysShortRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Je.call(this), + e ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex) + : (d(this, '_weekdaysShortRegex') || + (this._weekdaysShortRegex = Ze), + this._weekdaysShortStrictRegex && e + ? this._weekdaysShortStrictRegex + : this._weekdaysShortRegex); + }), + (hn.weekdaysMinRegex = function (e) { + return this._weekdaysParseExact + ? (d(this, '_weekdaysRegex') || Je.call(this), + e ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) + : (d(this, '_weekdaysMinRegex') || (this._weekdaysMinRegex = Xe), + this._weekdaysMinStrictRegex && e + ? this._weekdaysMinStrictRegex + : this._weekdaysMinRegex); + }), + (hn.isPM = function (e) { + return 'p' === (e + '').toLowerCase().charAt(0); + }), + (hn.meridiem = function (e, t, n) { + return 11 < e ? (n ? 'pm' : 'PM') : n ? 'am' : 'AM'; + }), + lt('en', { + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function (e) { + var t = e % 10; + return ( + e + + (1 === S((e % 100) / 10) + ? 'th' + : 1 === t + ? 'st' + : 2 === t + ? 'nd' + : 3 === t + ? 'rd' + : 'th') + ); + }, + }), + (i.lang = k( + 'moment.lang is deprecated. Use moment.locale instead.', + lt + )), + (i.langData = k( + 'moment.langData is deprecated. Use moment.localeData instead.', + dt + )); + var mn = Math.abs; + function _n(e, t, n, r) { + var i = zt(t, n); + return ( + (e._milliseconds += r * i._milliseconds), + (e._days += r * i._days), + (e._months += r * i._months), + e._bubble() + ); + } + function yn(e) { + return e < 0 ? Math.floor(e) : Math.ceil(e); + } + function vn(e) { + return (4800 * e) / 146097; + } + function bn(e) { + return (146097 * e) / 4800; + } + function wn(e) { + return function () { + return this.as(e); + }; + } + var Cn = wn('ms'), + Sn = wn('s'), + xn = wn('m'), + Ln = wn('h'), + kn = wn('d'), + Mn = wn('w'), + Dn = wn('M'), + En = wn('y'); + function Tn(e) { + return function () { + return this.isValid() ? this._data[e] : NaN; + }; + } + var Nn = Tn('milliseconds'), + On = Tn('seconds'), + An = Tn('minutes'), + In = Tn('hours'), + Pn = Tn('days'), + Rn = Tn('months'), + Fn = Tn('years'), + Yn = Math.round, + jn = { ss: 44, s: 45, m: 45, h: 22, d: 26, M: 11 }, + Bn = Math.abs; + function Wn(e) { + return (0 < e) - (e < 0) || +e; + } + function Hn() { + if (!this.isValid()) return this.localeData().invalidDate(); + var e, + t, + n = Bn(this._milliseconds) / 1e3, + r = Bn(this._days), + i = Bn(this._months); + (t = C((e = C(n / 60)) / 60)), (n %= 60), (e %= 60); + var o = C(i / 12), + s = (i %= 12), + a = r, + u = t, + l = e, + c = n ? n.toFixed(3).replace(/\.?0+$/, '') : '', + d = this.asSeconds(); + if (!d) return 'P0D'; + var h = d < 0 ? '-' : '', + f = Wn(this._months) !== Wn(d) ? '-' : '', + p = Wn(this._days) !== Wn(d) ? '-' : '', + g = Wn(this._milliseconds) !== Wn(d) ? '-' : ''; + return ( + h + + 'P' + + (o ? f + o + 'Y' : '') + + (s ? f + s + 'M' : '') + + (a ? p + a + 'D' : '') + + (u || l || c ? 'T' : '') + + (u ? g + u + 'H' : '') + + (l ? g + l + 'M' : '') + + (c ? g + c + 'S' : '') + ); + } + var Vn = At.prototype; + return ( + (Vn.isValid = function () { + return this._isValid; + }), + (Vn.abs = function () { + var e = this._data; + return ( + (this._milliseconds = mn(this._milliseconds)), + (this._days = mn(this._days)), + (this._months = mn(this._months)), + (e.milliseconds = mn(e.milliseconds)), + (e.seconds = mn(e.seconds)), + (e.minutes = mn(e.minutes)), + (e.hours = mn(e.hours)), + (e.months = mn(e.months)), + (e.years = mn(e.years)), + this + ); + }), + (Vn.add = function (e, t) { + return _n(this, e, t, 1); + }), + (Vn.subtract = function (e, t) { + return _n(this, e, t, -1); + }), + (Vn.as = function (e) { + if (!this.isValid()) return NaN; + var t, + n, + r = this._milliseconds; + if ('month' === (e = P(e)) || 'year' === e) + return ( + (t = this._days + r / 864e5), + (n = this._months + vn(t)), + 'month' === e ? n : n / 12 + ); + switch (((t = this._days + Math.round(bn(this._months))), e)) { + case 'week': + return t / 7 + r / 6048e5; + case 'day': + return t + r / 864e5; + case 'hour': + return 24 * t + r / 36e5; + case 'minute': + return 1440 * t + r / 6e4; + case 'second': + return 86400 * t + r / 1e3; + case 'millisecond': + return Math.floor(864e5 * t) + r; + default: + throw new Error('Unknown unit ' + e); + } + }), + (Vn.asMilliseconds = Cn), + (Vn.asSeconds = Sn), + (Vn.asMinutes = xn), + (Vn.asHours = Ln), + (Vn.asDays = kn), + (Vn.asWeeks = Mn), + (Vn.asMonths = Dn), + (Vn.asYears = En), + (Vn.valueOf = function () { + return this.isValid() + ? this._milliseconds + + 864e5 * this._days + + (this._months % 12) * 2592e6 + + 31536e6 * S(this._months / 12) + : NaN; + }), + (Vn._bubble = function () { + var e, + t, + n, + r, + i, + o = this._milliseconds, + s = this._days, + a = this._months, + u = this._data; + return ( + (0 <= o && 0 <= s && 0 <= a) || + (o <= 0 && s <= 0 && a <= 0) || + ((o += 864e5 * yn(bn(a) + s)), (a = s = 0)), + (u.milliseconds = o % 1e3), + (e = C(o / 1e3)), + (u.seconds = e % 60), + (t = C(e / 60)), + (u.minutes = t % 60), + (n = C(t / 60)), + (u.hours = n % 24), + (a += i = C(vn((s += C(n / 24))))), + (s -= yn(bn(i))), + (r = C(a / 12)), + (a %= 12), + (u.days = s), + (u.months = a), + (u.years = r), + this + ); + }), + (Vn.clone = function () { + return zt(this); + }), + (Vn.get = function (e) { + return (e = P(e)), this.isValid() ? this[e + 's']() : NaN; + }), + (Vn.milliseconds = Nn), + (Vn.seconds = On), + (Vn.minutes = An), + (Vn.hours = In), + (Vn.days = Pn), + (Vn.weeks = function () { + return C(this.days() / 7); + }), + (Vn.months = Rn), + (Vn.years = Fn), + (Vn.humanize = function (e) { + if (!this.isValid()) return this.localeData().invalidDate(); + var t, + n, + r, + i, + o, + s, + a, + u, + l, + c, + d = this.localeData(), + h = + ((t = !e), + (n = d), + (r = zt(this).abs()), + (i = Yn(r.as('s'))), + (o = Yn(r.as('m'))), + (s = Yn(r.as('h'))), + (a = Yn(r.as('d'))), + (u = Yn(r.as('M'))), + (l = Yn(r.as('y'))), + ((c = (i <= jn.ss && ['s', i]) || + (i < jn.s && ['ss', i]) || + (o <= 1 && ['m']) || + (o < jn.m && ['mm', o]) || + (s <= 1 && ['h']) || + (s < jn.h && ['hh', s]) || + (a <= 1 && ['d']) || + (a < jn.d && ['dd', a]) || + (u <= 1 && ['M']) || + (u < jn.M && ['MM', u]) || + (l <= 1 && ['y']) || ['yy', l])[2] = t), + (c[3] = 0 < +this), + (c[4] = n), + function (e, t, n, r, i) { + return i.relativeTime(t || 1, !!n, e, r); + }.apply(null, c)); + return e && (h = d.pastFuture(+this, h)), d.postformat(h); + }), + (Vn.toISOString = Hn), + (Vn.toString = Hn), + (Vn.toJSON = Hn), + (Vn.locale = Jt), + (Vn.localeData = en), + (Vn.toIsoString = k( + 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + Hn + )), + (Vn.lang = Qt), + z('X', 0, 0, 'unix'), + z('x', 0, 0, 'valueOf'), + ce('x', oe), + ce('X', /[+-]?\d+(\.\d{1,3})?/), + pe('X', function (e, t, n) { + n._d = new Date(1e3 * parseFloat(e, 10)); + }), + pe('x', function (e, t, n) { + n._d = new Date(S(e)); + }), + (i.version = '2.22.1'), + (t = Dt), + (i.fn = cn), + (i.min = function () { + return Nt('isBefore', [].slice.call(arguments, 0)); + }), + (i.max = function () { + return Nt('isAfter', [].slice.call(arguments, 0)); + }), + (i.now = function () { + return Date.now ? Date.now() : +new Date(); + }), + (i.utc = f), + (i.unix = function (e) { + return Dt(1e3 * e); + }), + (i.months = function (e, t) { + return pn(e, t, 'months'); + }), + (i.isDate = l), + (i.locale = lt), + (i.invalid = m), + (i.duration = zt), + (i.isMoment = w), + (i.weekdays = function (e, t, n) { + return gn(e, t, n, 'weekdays'); + }), + (i.parseZone = function () { + return Dt.apply(null, arguments).parseZone(); + }), + (i.localeData = dt), + (i.isDuration = It), + (i.monthsShort = function (e, t) { + return pn(e, t, 'monthsShort'); + }), + (i.weekdaysMin = function (e, t, n) { + return gn(e, t, n, 'weekdaysMin'); + }), + (i.defineLocale = ct), + (i.updateLocale = function (e, t) { + if (null != t) { + var n, + r, + i = it; + null != (r = ut(e)) && (i = r._config), + ((n = new O((t = N(i, t)))).parentLocale = ot[e]), + (ot[e] = n), + lt(e); + } else + null != ot[e] && + (null != ot[e].parentLocale + ? (ot[e] = ot[e].parentLocale) + : null != ot[e] && delete ot[e]); + return ot[e]; + }), + (i.locales = function () { + return M(ot); + }), + (i.weekdaysShort = function (e, t, n) { + return gn(e, t, n, 'weekdaysShort'); + }), + (i.normalizeUnits = P), + (i.relativeTimeRounding = function (e) { + return void 0 === e ? Yn : 'function' == typeof e && ((Yn = e), !0); + }), + (i.relativeTimeThreshold = function (e, t) { + return ( + void 0 !== jn[e] && + (void 0 === t + ? jn[e] + : ((jn[e] = t), 's' === e && (jn.ss = t - 1), !0)) + ); + }), + (i.calendarFormat = function (e, t) { + var n = e.diff(t, 'days', !0); + return n < -6 + ? 'sameElse' + : n < -1 + ? 'lastWeek' + : n < 0 + ? 'lastDay' + : n < 1 + ? 'sameDay' + : n < 2 + ? 'nextDay' + : n < 7 + ? 'nextWeek' + : 'sameElse'; + }), + (i.prototype = cn), + (i.HTML5_FMT = { + DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', + DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', + DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', + DATE: 'YYYY-MM-DD', + TIME: 'HH:mm', + TIME_SECONDS: 'HH:mm:ss', + TIME_MS: 'HH:mm:ss.SSS', + WEEK: 'YYYY-[W]WW', + MONTH: 'YYYY-MM', + }), + i + ); + })(); + }.call(this, n(40)(e))); + }, + function (e, t, n) { + var r = { './locale': 188, './locale.js': 188 }; + function i(e) { + var t = o(e); + return n(t); + } + function o(e) { + if (!n.o(r, e)) { + var t = new Error("Cannot find module '" + e + "'"); + throw ((t.code = 'MODULE_NOT_FOUND'), t); + } + return r[e]; + } + (i.keys = function () { + return Object.keys(r); + }), + (i.resolve = o), + (e.exports = i), + (i.id = 604); + }, + function (e, t, n) { + e.exports = (function e(t) { + 'use strict'; + var n = /^\0+/g, + r = /[\0\r\f]/g, + i = /: */g, + o = /zoo|gra/, + s = /([,: ])(transform)/g, + a = /,+\s*(?![^(]*[)])/g, + u = / +\s*(?![^(]*[)])/g, + l = / *[\0] */g, + c = /,\r+?/g, + d = /([\t\r\n ])*\f?&/g, + h = /:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g, + f = /\W+/g, + p = /@(k\w+)\s*(\S*)\s*/, + g = /::(place)/g, + m = /:(read-only)/g, + _ = /\s+(?=[{\];=:>])/g, + y = /([[}=:>])\s+/g, + v = /(\{[^{]+?);(?=\})/g, + b = /\s{2,}/g, + w = /([^\(])(:+) */g, + C = /[svh]\w+-[tblr]{2}/, + S = /\(\s*(.*)\s*\)/g, + x = /([\s\S]*?);/g, + L = /-self|flex-/g, + k = /[^]*?(:[rp][el]a[\w-]+)[^]*/, + M = /stretch|:\s*\w+\-(?:conte|avail)/, + D = /([^-])(image-set\()/, + E = '-webkit-', + T = '-moz-', + N = '-ms-', + O = 59, + A = 125, + I = 123, + P = 40, + R = 41, + F = 91, + Y = 93, + j = 10, + B = 13, + W = 9, + H = 64, + V = 32, + z = 38, + U = 45, + q = 95, + K = 42, + G = 44, + $ = 58, + Z = 39, + X = 34, + J = 47, + Q = 62, + ee = 43, + te = 126, + ne = 0, + re = 12, + ie = 11, + oe = 107, + se = 109, + ae = 115, + ue = 112, + le = 111, + ce = 105, + de = 99, + he = 100, + fe = 112, + pe = 1, + ge = 1, + me = 0, + _e = 1, + ye = 1, + ve = 1, + be = 0, + we = 0, + Ce = 0, + Se = [], + xe = [], + Le = 0, + ke = null, + Me = -2, + De = -1, + Ee = 0, + Te = 1, + Ne = 2, + Oe = 3, + Ae = 0, + Ie = 1, + Pe = '', + Re = '', + Fe = ''; + function Ye(e, t, i, o, s) { + for ( + var a, + u, + c = 0, + d = 0, + h = 0, + f = 0, + _ = 0, + y = 0, + v = 0, + b = 0, + C = 0, + x = 0, + L = 0, + k = 0, + M = 0, + D = 0, + q = 0, + be = 0, + xe = 0, + ke = 0, + Me = 0, + De = i.length, + Be = De - 1, + qe = '', + Ke = '', + Ge = '', + $e = '', + Ze = '', + Xe = ''; + q < De; + + ) { + if ( + ((v = i.charCodeAt(q)), + q === Be && + d + f + h + c !== 0 && + (0 !== d && (v = d === J ? j : J), (f = h = c = 0), De++, Be++), + d + f + h + c === 0) + ) { + if ( + q === Be && + (be > 0 && (Ke = Ke.replace(r, '')), Ke.trim().length > 0) + ) { + switch (v) { + case V: + case W: + case O: + case B: + case j: + break; + default: + Ke += i.charAt(q); + } + v = O; + } + if (1 === xe) + switch (v) { + case I: + case A: + case O: + case X: + case Z: + case P: + case R: + case G: + xe = 0; + case W: + case B: + case j: + case V: + break; + default: + for (xe = 0, Me = q, _ = v, q--, v = O; Me < De; ) + switch (i.charCodeAt(Me++)) { + case j: + case B: + case O: + ++q, (v = _), (Me = De); + break; + case $: + be > 0 && (++q, (v = _)); + case I: + Me = De; + } + } + switch (v) { + case I: + for ( + _ = (Ke = Ke.trim()).charCodeAt(0), L = 1, Me = ++q; + q < De; + + ) { + switch ((v = i.charCodeAt(q))) { + case I: + L++; + break; + case A: + L--; + break; + case J: + switch ((y = i.charCodeAt(q + 1))) { + case K: + case J: + q = Ue(y, q, Be, i); + } + break; + case F: + v++; + case P: + v++; + case X: + case Z: + for (; q++ < Be && i.charCodeAt(q) !== v; ); + } + if (0 === L) break; + q++; + } + switch ( + ((Ge = i.substring(Me, q)), + _ === ne && + (_ = (Ke = Ke.replace(n, '').trim()).charCodeAt(0)), + _) + ) { + case H: + switch ( + (be > 0 && (Ke = Ke.replace(r, '')), + (y = Ke.charCodeAt(1))) + ) { + case he: + case se: + case ae: + case U: + a = t; + break; + default: + a = Se; + } + if ( + ((Me = (Ge = Ye(t, a, Ge, y, s + 1)).length), + Ce > 0 && 0 === Me && (Me = Ke.length), + Le > 0 && + ((a = je(Se, Ke, ke)), + (u = ze(Oe, Ge, a, t, ge, pe, Me, y, s, o)), + (Ke = a.join('')), + void 0 !== u && + 0 === (Me = (Ge = u.trim()).length) && + ((y = 0), (Ge = ''))), + Me > 0) + ) + switch (y) { + case ae: + Ke = Ke.replace(S, Ve); + case he: + case se: + case U: + Ge = Ke + '{' + Ge + '}'; + break; + case oe: + (Ge = + (Ke = Ke.replace(p, '$1 $2' + (Ie > 0 ? Pe : ''))) + + '{' + + Ge + + '}'), + (Ge = + 1 === ye || (2 === ye && He('@' + Ge, 3)) + ? '@' + E + Ge + '@' + Ge + : '@' + Ge); + break; + default: + (Ge = Ke + Ge), o === fe && (($e += Ge), (Ge = '')); + } + else Ge = ''; + break; + default: + Ge = Ye(t, je(t, Ke, ke), Ge, o, s + 1); + } + (Ze += Ge), + (k = 0), + (xe = 0), + (D = 0), + (be = 0), + (ke = 0), + (M = 0), + (Ke = ''), + (Ge = ''), + (v = i.charCodeAt(++q)); + break; + case A: + case O: + if ( + (Me = (Ke = (be > 0 ? Ke.replace(r, '') : Ke).trim()) + .length) > 1 + ) + switch ( + (0 === D && + ((_ = Ke.charCodeAt(0)) === U || (_ > 96 && _ < 123)) && + (Me = (Ke = Ke.replace(' ', ':')).length), + Le > 0 && + void 0 !== + (u = ze(Te, Ke, t, e, ge, pe, $e.length, o, s, o)) && + 0 === (Me = (Ke = u.trim()).length) && + (Ke = '\0\0'), + (_ = Ke.charCodeAt(0)), + (y = Ke.charCodeAt(1)), + _) + ) { + case ne: + break; + case H: + if (y === ce || y === de) { + Xe += Ke + i.charAt(q); + break; + } + default: + if (Ke.charCodeAt(Me - 1) === $) break; + $e += We(Ke, _, y, Ke.charCodeAt(2)); + } + (k = 0), + (xe = 0), + (D = 0), + (be = 0), + (ke = 0), + (Ke = ''), + (v = i.charCodeAt(++q)); + } + } + switch (v) { + case B: + case j: + if (d + f + h + c + we === 0) + switch (x) { + case R: + case Z: + case X: + case H: + case te: + case Q: + case K: + case ee: + case J: + case U: + case $: + case G: + case O: + case I: + case A: + break; + default: + D > 0 && (xe = 1); + } + d === J + ? (d = 0) + : _e + k === 0 && + o !== oe && + Ke.length > 0 && + ((be = 1), (Ke += '\0')), + Le * Ae > 0 && ze(Ee, Ke, t, e, ge, pe, $e.length, o, s, o), + (pe = 1), + ge++; + break; + case O: + case A: + if (d + f + h + c === 0) { + pe++; + break; + } + default: + switch ((pe++, (qe = i.charAt(q)), v)) { + case W: + case V: + if (f + c + d === 0) + switch (b) { + case G: + case $: + case W: + case V: + qe = ''; + break; + default: + v !== V && (qe = ' '); + } + break; + case ne: + qe = '\\0'; + break; + case re: + qe = '\\f'; + break; + case ie: + qe = '\\v'; + break; + case z: + f + d + c === 0 && + _e > 0 && + ((ke = 1), (be = 1), (qe = '\f' + qe)); + break; + case 108: + if (f + d + c + me === 0 && D > 0) + switch (q - D) { + case 2: + b === ue && i.charCodeAt(q - 3) === $ && (me = b); + case 8: + C === le && (me = C); + } + break; + case $: + f + d + c === 0 && (D = q); + break; + case G: + d + h + f + c === 0 && ((be = 1), (qe += '\r')); + break; + case X: + case Z: + 0 === d && (f = f === v ? 0 : 0 === f ? v : f); + break; + case F: + f + d + h === 0 && c++; + break; + case Y: + f + d + h === 0 && c--; + break; + case R: + f + d + c === 0 && h--; + break; + case P: + if (f + d + c === 0) { + if (0 === k) + switch (2 * b + 3 * C) { + case 533: + break; + default: + (L = 0), (k = 1); + } + h++; + } + break; + case H: + d + h + f + c + D + M === 0 && (M = 1); + break; + case K: + case J: + if (f + c + h > 0) break; + switch (d) { + case 0: + switch (2 * v + 3 * i.charCodeAt(q + 1)) { + case 235: + d = J; + break; + case 220: + (Me = q), (d = K); + } + break; + case K: + v === J && + b === K && + Me + 2 !== q && + (33 === i.charCodeAt(Me + 2) && + ($e += i.substring(Me, q + 1)), + (qe = ''), + (d = 0)); + } + } + if (0 === d) { + if (_e + f + c + M === 0 && o !== oe && v !== O) + switch (v) { + case G: + case te: + case Q: + case ee: + case R: + case P: + if (0 === k) { + switch (b) { + case W: + case V: + case j: + case B: + qe += '\0'; + break; + default: + qe = '\0' + qe + (v === G ? '' : '\0'); + } + be = 1; + } else + switch (v) { + case P: + D + 7 === q && 108 === b && (D = 0), (k = ++L); + break; + case R: + 0 == (k = --L) && ((be = 1), (qe += '\0')); + } + break; + case W: + case V: + switch (b) { + case ne: + case I: + case A: + case O: + case G: + case re: + case W: + case V: + case j: + case B: + break; + default: + 0 === k && ((be = 1), (qe += '\0')); + } + } + (Ke += qe), v !== V && v !== W && (x = v); + } + } + (C = b), (b = v), q++; + } + if ( + ((Me = $e.length), + Ce > 0 && + 0 === Me && + 0 === Ze.length && + (0 === t[0].length) == 0 && + (o !== se || (1 === t.length && (_e > 0 ? Re : Fe) === t[0])) && + (Me = t.join(',').length + 2), + Me > 0) + ) { + if ( + ((a = + 0 === _e && o !== oe + ? (function (e) { + for ( + var t, n, i = 0, o = e.length, s = Array(o); + i < o; + ++i + ) { + for ( + var a = e[i].split(l), + u = '', + c = 0, + d = 0, + h = 0, + f = 0, + p = a.length; + c < p; + ++c + ) + if (!(0 === (d = (n = a[c]).length) && p > 1)) { + if ( + ((h = u.charCodeAt(u.length - 1)), + (f = n.charCodeAt(0)), + (t = ''), + 0 !== c) + ) + switch (h) { + case K: + case te: + case Q: + case ee: + case V: + case P: + break; + default: + t = ' '; + } + switch (f) { + case z: + n = t + Re; + case te: + case Q: + case ee: + case V: + case R: + case P: + break; + case F: + n = t + n + Re; + break; + case $: + switch ( + 2 * n.charCodeAt(1) + + 3 * n.charCodeAt(2) + ) { + case 530: + if (ve > 0) { + n = t + n.substring(8, d - 1); + break; + } + default: + (c < 1 || a[c - 1].length < 1) && + (n = t + Re + n); + } + break; + case G: + t = ''; + default: + n = + d > 1 && n.indexOf(':') > 0 + ? t + n.replace(w, '$1' + Re + '$2') + : t + n + Re; + } + u += n; + } + s[i] = u.replace(r, '').trim(); + } + return s; + })(t) + : t), + Le > 0 && + void 0 !== (u = ze(Ne, $e, a, e, ge, pe, Me, o, s, o)) && + 0 === ($e = u).length) + ) + return Xe + $e + Ze; + if ((($e = a.join(',') + '{' + $e + '}'), ye * me != 0)) { + switch ((2 !== ye || He($e, 2) || (me = 0), me)) { + case le: + $e = $e.replace(m, ':' + T + '$1') + $e; + break; + case ue: + $e = + $e.replace(g, '::' + E + 'input-$1') + + $e.replace(g, '::' + T + '$1') + + $e.replace(g, ':' + N + 'input-$1') + + $e; + } + me = 0; + } + } + return Xe + $e + Ze; + } + function je(e, t, n) { + var r = t.trim().split(c), + i = r, + o = r.length, + s = e.length; + switch (s) { + case 0: + case 1: + for (var a = 0, u = 0 === s ? '' : e[0] + ' '; a < o; ++a) + i[a] = Be(u, i[a], n, s).trim(); + break; + default: + a = 0; + var l = 0; + for (i = []; a < o; ++a) + for (var d = 0; d < s; ++d) + i[l++] = Be(e[d] + ' ', r[a], n, s).trim(); + } + return i; + } + function Be(e, t, n, r) { + var i = t, + o = i.charCodeAt(0); + switch ((o < 33 && (o = (i = i.trim()).charCodeAt(0)), o)) { + case z: + switch (_e + r) { + case 0: + case 1: + if (0 === e.trim().length) break; + default: + return i.replace(d, '$1' + e.trim()); + } + break; + case $: + switch (i.charCodeAt(1)) { + case 103: + if (ve > 0 && _e > 0) + return i.replace(h, '$1').replace(d, '$1' + Fe); + break; + default: + return e.trim() + i.replace(d, '$1' + e.trim()); + } + default: + if (n * _e > 0 && i.indexOf('\f') > 0) + return i.replace( + d, + (e.charCodeAt(0) === $ ? '' : '$1') + e.trim() + ); + } + return e + i; + } + function We(e, t, n, r) { + var l, + c = 0, + d = e + ';', + h = 2 * t + 3 * n + 4 * r; + if (944 === h) + return (function (e) { + var t = e.length, + n = e.indexOf(':', 9) + 1, + r = e.substring(0, n).trim(), + i = e.substring(n, t - 1).trim(); + switch (e.charCodeAt(9) * Ie) { + case 0: + break; + case U: + if (110 !== e.charCodeAt(10)) break; + default: + var o = i.split(((i = ''), a)), + s = 0; + for (n = 0, t = o.length; s < t; n = 0, ++s) { + for (var l = o[s], c = l.split(u); (l = c[n]); ) { + var d = l.charCodeAt(0); + if ( + 1 === Ie && + ((d > H && d < 90) || + (d > 96 && d < 123) || + d === q || + (d === U && l.charCodeAt(1) !== U)) + ) + switch (isNaN(parseFloat(l)) + (-1 !== l.indexOf('('))) { + case 1: + switch (l) { + case 'infinite': + case 'alternate': + case 'backwards': + case 'running': + case 'normal': + case 'forwards': + case 'both': + case 'none': + case 'linear': + case 'ease': + case 'ease-in': + case 'ease-out': + case 'ease-in-out': + case 'paused': + case 'reverse': + case 'alternate-reverse': + case 'inherit': + case 'initial': + case 'unset': + case 'step-start': + case 'step-end': + break; + default: + l += Pe; + } + } + c[n++] = l; + } + i += (0 === s ? '' : ',') + c.join(' '); + } + } + return ( + (i = r + i + ';'), + 1 === ye || (2 === ye && He(i, 1)) ? E + i + i : i + ); + })(d); + if (0 === ye || (2 === ye && !He(d, 1))) return d; + switch (h) { + case 1015: + return 97 === d.charCodeAt(10) ? E + d + d : d; + case 951: + return 116 === d.charCodeAt(3) ? E + d + d : d; + case 963: + return 110 === d.charCodeAt(5) ? E + d + d : d; + case 1009: + if (100 !== d.charCodeAt(4)) break; + case 969: + case 942: + return E + d + d; + case 978: + return E + d + T + d + d; + case 1019: + case 983: + return E + d + T + d + N + d + d; + case 883: + return d.charCodeAt(8) === U + ? E + d + d + : d.indexOf('image-set(', 11) > 0 + ? d.replace(D, '$1' + E + '$2') + d + : d; + case 932: + if (d.charCodeAt(4) === U) + switch (d.charCodeAt(5)) { + case 103: + return ( + E + + 'box-' + + d.replace('-grow', '') + + E + + d + + N + + d.replace('grow', 'positive') + + d + ); + case 115: + return E + d + N + d.replace('shrink', 'negative') + d; + case 98: + return E + d + N + d.replace('basis', 'preferred-size') + d; + } + return E + d + N + d + d; + case 964: + return E + d + N + 'flex-' + d + d; + case 1023: + if (99 !== d.charCodeAt(8)) break; + return ( + (l = d + .substring(d.indexOf(':', 15)) + .replace('flex-', '') + .replace('space-between', 'justify')), + E + 'box-pack' + l + E + d + N + 'flex-pack' + l + d + ); + case 1005: + return o.test(d) + ? d.replace(i, ':' + E) + d.replace(i, ':' + T) + d + : d; + case 1e3: + switch ( + ((c = (l = d.substring(13).trim()).indexOf('-') + 1), + l.charCodeAt(0) + l.charCodeAt(c)) + ) { + case 226: + l = d.replace(C, 'tb'); + break; + case 232: + l = d.replace(C, 'tb-rl'); + break; + case 220: + l = d.replace(C, 'lr'); + break; + default: + return d; + } + return E + d + N + l + d; + case 1017: + if (-1 === d.indexOf('sticky', 9)) return d; + case 975: + switch ( + ((c = (d = e).length - 10), + (h = + (l = (33 === d.charCodeAt(c) ? d.substring(0, c) : d) + .substring(e.indexOf(':', 7) + 1) + .trim()).charCodeAt(0) + + (0 | l.charCodeAt(7)))) + ) { + case 203: + if (l.charCodeAt(8) < 111) break; + case 115: + d = d.replace(l, E + l) + ';' + d; + break; + case 207: + case 102: + d = + d.replace(l, E + (h > 102 ? 'inline-' : '') + 'box') + + ';' + + d.replace(l, E + l) + + ';' + + d.replace(l, N + l + 'box') + + ';' + + d; + } + return d + ';'; + case 938: + if (d.charCodeAt(5) === U) + switch (d.charCodeAt(6)) { + case 105: + return ( + (l = d.replace('-items', '')), + E + d + E + 'box-' + l + N + 'flex-' + l + d + ); + case 115: + return E + d + N + 'flex-item-' + d.replace(L, '') + d; + default: + return ( + E + + d + + N + + 'flex-line-pack' + + d.replace('align-content', '').replace(L, '') + + d + ); + } + break; + case 973: + case 989: + if (d.charCodeAt(3) !== U || 122 === d.charCodeAt(4)) break; + case 931: + case 953: + if (!0 === M.test(e)) + return 115 === (l = e.substring(e.indexOf(':') + 1)).charCodeAt(0) + ? We(e.replace('stretch', 'fill-available'), t, n, r).replace( + ':fill-available', + ':stretch' + ) + : d.replace(l, E + l) + + d.replace(l, T + l.replace('fill-', '')) + + d; + break; + case 962: + if ( + ((d = E + d + (102 === d.charCodeAt(5) ? N + d : '') + d), + n + r === 211 && + 105 === d.charCodeAt(13) && + d.indexOf('transform', 10) > 0) + ) + return ( + d + .substring(0, d.indexOf(';', 27) + 1) + .replace(s, '$1' + E + '$2') + d + ); + } + return d; + } + function He(e, t) { + var n = e.indexOf(1 === t ? ':' : '{'), + r = e.substring(0, 3 !== t ? n : 10), + i = e.substring(n + 1, e.length - 1); + return ke(2 !== t ? r : r.replace(k, '$1'), i, t); + } + function Ve(e, t) { + var n = We(t, t.charCodeAt(0), t.charCodeAt(1), t.charCodeAt(2)); + return n !== t + ';' + ? n.replace(x, ' or ($1)').substring(4) + : '(' + t + ')'; + } + function ze(e, t, n, r, i, o, s, a, u, l) { + for (var c, d = 0, h = t; d < Le; ++d) + switch ((c = xe[d].call(Ke, e, h, n, r, i, o, s, a, u, l))) { + case void 0: + case !1: + case !0: + case null: + break; + default: + h = c; + } + if (h !== t) return h; + } + function Ue(e, t, n, r) { + for (var i = t + 1; i < n; ++i) + switch (r.charCodeAt(i)) { + case J: + if (e === K && r.charCodeAt(i - 1) === K && t + 2 !== i) + return i + 1; + break; + case j: + if (e === J) return i + 1; + } + return i; + } + function qe(e) { + for (var t in e) { + var n = e[t]; + switch (t) { + case 'keyframe': + Ie = 0 | n; + break; + case 'global': + ve = 0 | n; + break; + case 'cascade': + _e = 0 | n; + break; + case 'compress': + be = 0 | n; + break; + case 'semicolon': + we = 0 | n; + break; + case 'preserve': + Ce = 0 | n; + break; + case 'prefix': + (ke = null), + n + ? 'function' != typeof n + ? (ye = 1) + : ((ye = 2), (ke = n)) + : (ye = 0); + } + } + return qe; + } + function Ke(t, n) { + if (void 0 !== this && this.constructor === Ke) return e(t); + var i = t, + o = i.charCodeAt(0); + o < 33 && (o = (i = i.trim()).charCodeAt(0)), + Ie > 0 && (Pe = i.replace(f, o === F ? '' : '-')), + (o = 1), + 1 === _e ? (Fe = i) : (Re = i); + var s, + a = [Fe]; + Le > 0 && + void 0 !== (s = ze(De, n, a, a, ge, pe, 0, 0, 0, 0)) && + 'string' == typeof s && + (n = s); + var u = Ye(Se, a, n, 0, 0); + return ( + Le > 0 && + void 0 !== (s = ze(Me, u, a, a, ge, pe, u.length, 0, 0, 0)) && + 'string' != typeof (u = s) && + (o = 0), + (Pe = ''), + (Fe = ''), + (Re = ''), + (me = 0), + (ge = 1), + (pe = 1), + be * o == 0 + ? u + : (function (e) { + return e + .replace(r, '') + .replace(_, '') + .replace(y, '$1') + .replace(v, '$1') + .replace(b, ' '); + })(u) + ); + } + return ( + (Ke.use = function e(t) { + switch (t) { + case void 0: + case null: + Le = xe.length = 0; + break; + default: + if ('function' == typeof t) xe[Le++] = t; + else if ('object' == typeof t) + for (var n = 0, r = t.length; n < r; ++n) e(t[n]); + else Ae = 0 | !!t; + } + return e; + }), + (Ke.set = qe), + void 0 !== t && qe(t), + Ke + ); + })(null); + }, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) { + var r = { + './af': 189, + './af.js': 189, + './ar': 190, + './ar-dz': 191, + './ar-dz.js': 191, + './ar-kw': 192, + './ar-kw.js': 192, + './ar-ly': 193, + './ar-ly.js': 193, + './ar-ma': 194, + './ar-ma.js': 194, + './ar-sa': 195, + './ar-sa.js': 195, + './ar-tn': 196, + './ar-tn.js': 196, + './ar.js': 190, + './az': 197, + './az.js': 197, + './be': 198, + './be.js': 198, + './bg': 199, + './bg.js': 199, + './bm': 200, + './bm.js': 200, + './bn': 201, + './bn.js': 201, + './bo': 202, + './bo.js': 202, + './br': 203, + './br.js': 203, + './bs': 204, + './bs.js': 204, + './ca': 205, + './ca.js': 205, + './cs': 206, + './cs.js': 206, + './cv': 207, + './cv.js': 207, + './cy': 208, + './cy.js': 208, + './da': 209, + './da.js': 209, + './de': 210, + './de-at': 211, + './de-at.js': 211, + './de-ch': 212, + './de-ch.js': 212, + './de.js': 210, + './dv': 213, + './dv.js': 213, + './el': 214, + './el.js': 214, + './en-SG': 215, + './en-SG.js': 215, + './en-au': 216, + './en-au.js': 216, + './en-ca': 217, + './en-ca.js': 217, + './en-gb': 218, + './en-gb.js': 218, + './en-ie': 219, + './en-ie.js': 219, + './en-il': 220, + './en-il.js': 220, + './en-nz': 221, + './en-nz.js': 221, + './eo': 222, + './eo.js': 222, + './es': 223, + './es-do': 224, + './es-do.js': 224, + './es-us': 225, + './es-us.js': 225, + './es.js': 223, + './et': 226, + './et.js': 226, + './eu': 227, + './eu.js': 227, + './fa': 228, + './fa.js': 228, + './fi': 229, + './fi.js': 229, + './fo': 230, + './fo.js': 230, + './fr': 231, + './fr-ca': 232, + './fr-ca.js': 232, + './fr-ch': 233, + './fr-ch.js': 233, + './fr.js': 231, + './fy': 234, + './fy.js': 234, + './ga': 235, + './ga.js': 235, + './gd': 236, + './gd.js': 236, + './gl': 237, + './gl.js': 237, + './gom-latn': 238, + './gom-latn.js': 238, + './gu': 239, + './gu.js': 239, + './he': 240, + './he.js': 240, + './hi': 241, + './hi.js': 241, + './hr': 242, + './hr.js': 242, + './hu': 243, + './hu.js': 243, + './hy-am': 244, + './hy-am.js': 244, + './id': 245, + './id.js': 245, + './is': 246, + './is.js': 246, + './it': 247, + './it-ch': 248, + './it-ch.js': 248, + './it.js': 247, + './ja': 249, + './ja.js': 249, + './jv': 250, + './jv.js': 250, + './ka': 251, + './ka.js': 251, + './kk': 252, + './kk.js': 252, + './km': 253, + './km.js': 253, + './kn': 254, + './kn.js': 254, + './ko': 255, + './ko.js': 255, + './ku': 256, + './ku.js': 256, + './ky': 257, + './ky.js': 257, + './lb': 258, + './lb.js': 258, + './lo': 259, + './lo.js': 259, + './lt': 260, + './lt.js': 260, + './lv': 261, + './lv.js': 261, + './me': 262, + './me.js': 262, + './mi': 263, + './mi.js': 263, + './mk': 264, + './mk.js': 264, + './ml': 265, + './ml.js': 265, + './mn': 266, + './mn.js': 266, + './mr': 267, + './mr.js': 267, + './ms': 268, + './ms-my': 269, + './ms-my.js': 269, + './ms.js': 268, + './mt': 270, + './mt.js': 270, + './my': 271, + './my.js': 271, + './nb': 272, + './nb.js': 272, + './ne': 273, + './ne.js': 273, + './nl': 274, + './nl-be': 275, + './nl-be.js': 275, + './nl.js': 274, + './nn': 276, + './nn.js': 276, + './pa-in': 277, + './pa-in.js': 277, + './pl': 278, + './pl.js': 278, + './pt': 279, + './pt-br': 280, + './pt-br.js': 280, + './pt.js': 279, + './ro': 281, + './ro.js': 281, + './ru': 282, + './ru.js': 282, + './sd': 283, + './sd.js': 283, + './se': 284, + './se.js': 284, + './si': 285, + './si.js': 285, + './sk': 286, + './sk.js': 286, + './sl': 287, + './sl.js': 287, + './sq': 288, + './sq.js': 288, + './sr': 289, + './sr-cyrl': 290, + './sr-cyrl.js': 290, + './sr.js': 289, + './ss': 291, + './ss.js': 291, + './sv': 292, + './sv.js': 292, + './sw': 293, + './sw.js': 293, + './ta': 294, + './ta.js': 294, + './te': 295, + './te.js': 295, + './tet': 296, + './tet.js': 296, + './tg': 297, + './tg.js': 297, + './th': 298, + './th.js': 298, + './tl-ph': 299, + './tl-ph.js': 299, + './tlh': 300, + './tlh.js': 300, + './tr': 301, + './tr.js': 301, + './tzl': 302, + './tzl.js': 302, + './tzm': 303, + './tzm-latn': 304, + './tzm-latn.js': 304, + './tzm.js': 303, + './ug-cn': 305, + './ug-cn.js': 305, + './uk': 306, + './uk.js': 306, + './ur': 307, + './ur.js': 307, + './uz': 308, + './uz-latn': 309, + './uz-latn.js': 309, + './uz.js': 308, + './vi': 310, + './vi.js': 310, + './x-pseudo': 311, + './x-pseudo.js': 311, + './yo': 312, + './yo.js': 312, + './zh-cn': 313, + './zh-cn.js': 313, + './zh-hk': 314, + './zh-hk.js': 314, + './zh-tw': 315, + './zh-tw.js': 315, + }; + function i(e) { + var t = o(e); + return n(t); + } + function o(e) { + if (!n.o(r, e)) { + var t = new Error("Cannot find module '" + e + "'"); + throw ((t.code = 'MODULE_NOT_FOUND'), t); + } + return r[e]; + } + (i.keys = function () { + return Object.keys(r); + }), + (i.resolve = o), + (e.exports = i), + (i.id = 611); + }, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) {}, + function (e, t, n) { + 'use strict'; + n.r(t); + var r = {}; + n.r(r), + n.d(r, 'win32', function () { + return hs; + }), + n.d(r, 'posix', function () { + return fs; + }), + n.d(r, 'normalize', function () { + return ps; + }), + n.d(r, 'join', function () { + return gs; + }), + n.d(r, 'relative', function () { + return ms; + }), + n.d(r, 'dirname', function () { + return _s; + }), + n.d(r, 'basename', function () { + return ys; + }), + n.d(r, 'extname', function () { + return vs; + }), + n.d(r, 'sep', function () { + return bs; + }); + var i = {}; + function o() {} + n.r(i), + n.d(i, 'CancellationTokenSource', function () { + return sA; + }), + n.d(i, 'Emitter', function () { + return aA; + }), + n.d(i, 'KeyCode', function () { + return uA; + }), + n.d(i, 'KeyMod', function () { + return lA; + }), + n.d(i, 'Position', function () { + return cA; + }), + n.d(i, 'Range', function () { + return dA; + }), + n.d(i, 'Selection', function () { + return hA; + }), + n.d(i, 'SelectionDirection', function () { + return fA; + }), + n.d(i, 'MarkerSeverity', function () { + return pA; + }), + n.d(i, 'MarkerTag', function () { + return gA; + }), + n.d(i, 'Uri', function () { + return mA; + }), + n.d(i, 'Token', function () { + return _A; + }), + n.d(i, 'editor', function () { + return yA; + }), + n.d(i, 'languages', function () { + return vA; + }); + function s(e) { + return e(); + } + function a() { + return Object.create(null); + } + function u(e) { + e.forEach(s); + } + function l(e) { + return 'function' == typeof e; + } + function c(e, t) { + return e != e + ? t == t + : e !== t || (e && 'object' == typeof e) || 'function' == typeof e; + } + function d(e, t) { + const n = e.subscribe(t); + return n.unsubscribe ? () => n.unsubscribe() : n; + } + function h(e) { + let t; + return d(e, (e) => (t = e))(), t; + } + function f(e, t, n, r) { + if (e) { + const i = p(e, t, n, r); + return e[0](i); + } + } + function p(e, t, n, r) { + return e[1] && r + ? (function (e, t) { + for (const n in t) e[n] = t[n]; + return e; + })(n.ctx.slice(), e[1](r(t))) + : n.ctx; + } + function g(e, t, n, r) { + return e[2] && r ? t.dirty | e[2](r(n)) : t.dirty; + } + function m(e) { + return null == e ? '' : e; + } + new Set(); + function _(e, t) { + e.appendChild(t); + } + function y(e, t, n) { + e.insertBefore(t, n || null); + } + function v(e) { + e.parentNode.removeChild(e); + } + function b(e) { + return document.createElement(e); + } + function w(e) { + return document.createTextNode(e); + } + function C() { + return w(' '); + } + function S() { + return w(''); + } + function x(e, t, n, r) { + return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r); + } + function L(e, t, n) { + null == n + ? e.removeAttribute(t) + : e.getAttribute(t) !== n && e.setAttribute(t, n); + } + function k(e) { + return '' === e ? void 0 : +e; + } + function M(e, t) { + (t = '' + t), e.data !== t && (e.data = t); + } + function D(e, t) { + (null != t || e.value) && (e.value = t); + } + function E(e, t) { + const n = document.createEvent('CustomEvent'); + return n.initCustomEvent(e, !1, !1, t), n; + } + let T; + function N(e) { + T = e; + } + function O() { + if (!T) + throw new Error('Function called outside component initialization'); + return T; + } + function A(e) { + O().$$.on_mount.push(e); + } + const I = [], + P = [], + R = [], + F = [], + Y = Promise.resolve(); + let j = !1; + function B() { + j || ((j = !0), Y.then(H)); + } + function W(e) { + R.push(e); + } + function H() { + const e = new Set(); + do { + for (; I.length; ) { + const e = I.shift(); + N(e), V(e.$$); + } + for (; P.length; ) P.pop()(); + for (let t = 0; t < R.length; t += 1) { + const n = R[t]; + e.has(n) || (n(), e.add(n)); + } + R.length = 0; + } while (I.length); + for (; F.length; ) F.pop()(); + j = !1; + } + function V(e) { + null !== e.fragment && + (e.update(), + u(e.before_update), + e.fragment && e.fragment.p(e.ctx, e.dirty), + (e.dirty = [-1]), + e.after_update.forEach(W)); + } + const z = new Set(); + let U; + function q() { + U = { r: 0, c: [], p: U }; + } + function K() { + U.r || u(U.c), (U = U.p); + } + function G(e, t) { + e && e.i && (z.delete(e), e.i(t)); + } + function $(e, t, n, r) { + if (e && e.o) { + if (z.has(e)) return; + z.add(e), + U.c.push(() => { + z.delete(e), r && (n && e.d(1), r()); + }), + e.o(t); + } + } + 'undefined' != typeof window ? window : global; + new Set([ + 'allowfullscreen', + 'allowpaymentrequest', + 'async', + 'autofocus', + 'autoplay', + 'checked', + 'controls', + 'default', + 'defer', + 'disabled', + 'formnovalidate', + 'hidden', + 'ismap', + 'loop', + 'multiple', + 'muted', + 'nomodule', + 'novalidate', + 'open', + 'playsinline', + 'readonly', + 'required', + 'reversed', + 'selected', + ]); + let Z; + function X(e) { + e && e.c(); + } + function J(e, t, n) { + const { fragment: r, on_mount: i, on_destroy: o, after_update: a } = e.$$; + r && r.m(t, n), + W(() => { + const t = i.map(s).filter(l); + o ? o.push(...t) : u(t), (e.$$.on_mount = []); + }), + a.forEach(W); + } + function Q(e, t) { + const n = e.$$; + null !== n.fragment && + (u(n.on_destroy), + n.fragment && n.fragment.d(t), + (n.on_destroy = n.fragment = null), + (n.ctx = [])); + } + function ee(e, t, n, r, i, s, l = [-1]) { + const c = T; + N(e); + const d = t.props || {}, + h = (e.$$ = { + fragment: null, + ctx: null, + props: s, + update: o, + not_equal: i, + bound: a(), + on_mount: [], + on_destroy: [], + before_update: [], + after_update: [], + context: new Map(c ? c.$$.context : []), + callbacks: a(), + dirty: l, + }); + let f = !1; + var p; + (h.ctx = n + ? n( + e, + d, + (t, n, r = n) => ( + h.ctx && + i(h.ctx[t], (h.ctx[t] = r)) && + (h.bound[t] && h.bound[t](r), + f && + (function (e, t) { + -1 === e.$$.dirty[0] && + (I.push(e), B(), e.$$.dirty.fill(0)), + (e.$$.dirty[(t / 31) | 0] |= 1 << t % 31); + })(e, t)), + n + ) + ) + : []), + h.update(), + (f = !0), + u(h.before_update), + (h.fragment = !!r && r(h.ctx)), + t.target && + (t.hydrate + ? h.fragment && + h.fragment.l(((p = t.target), Array.from(p.childNodes))) + : h.fragment && h.fragment.c(), + t.intro && G(e.$$.fragment), + J(e, t.target, t.anchor), + H()), + N(c); + } + 'function' == typeof HTMLElement && + (Z = class extends HTMLElement { + constructor() { + super(), this.attachShadow({ mode: 'open' }); + } + connectedCallback() { + for (const e in this.$$.slotted) this.appendChild(this.$$.slotted[e]); + } + attributeChangedCallback(e, t, n) { + this[e] = n; + } + $destroy() { + Q(this, 1), (this.$destroy = o); + } + $on(e, t) { + const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []); + return ( + n.push(t), + () => { + const e = n.indexOf(t); + -1 !== e && n.splice(e, 1); + } + ); + } + $set() {} + }); + class te { + $destroy() { + Q(this, 1), (this.$destroy = o); + } + $on(e, t) { + const n = this.$$.callbacks[e] || (this.$$.callbacks[e] = []); + return ( + n.push(t), + () => { + const e = n.indexOf(t); + -1 !== e && n.splice(e, 1); + } + ); + } + $set() {} + } + const ne = []; + function re(e, t) { + return { subscribe: ie(e, t).subscribe }; + } + function ie(e, t = o) { + let n; + const r = []; + function i(t) { + if (c(e, t) && ((e = t), n)) { + const t = !ne.length; + for (let t = 0; t < r.length; t += 1) { + const n = r[t]; + n[1](), ne.push(n, e); + } + if (t) { + for (let e = 0; e < ne.length; e += 2) ne[e][0](ne[e + 1]); + ne.length = 0; + } + } + } + return { + set: i, + update: function (t) { + i(t(e)); + }, + subscribe: function (s, a = o) { + const u = [s, a]; + return ( + r.push(u), + 1 === r.length && (n = t(i) || o), + s(e), + () => { + const e = r.indexOf(u); + -1 !== e && r.splice(e, 1), 0 === r.length && (n(), (n = null)); + } + ); + }, + }; + } + function oe(e, t, n) { + const r = !Array.isArray(e), + i = r ? [e] : e, + s = t.length < 2; + return re(n, (e) => { + let n = !1; + const a = []; + let c = 0, + d = o; + const h = () => { + if (c) return; + d(); + const n = t(r ? a[0] : a, e); + s ? e(n) : (d = l(n) ? n : o); + }, + f = i.map((e, t) => + e.subscribe( + (e) => { + (a[t] = e), (c &= ~(1 << t)), n && h(); + }, + () => { + c |= 1 << t; + } + ) + ); + return ( + (n = !0), + h(), + function () { + u(f), d(); + } + ); + }); + } + var se = function (e, t) { + if (e instanceof RegExp) return { keys: !1, pattern: e }; + var n, + r, + i, + o, + s = [], + a = '', + u = e.split('/'); + for (u[0] || u.shift(); (i = u.shift()); ) + '*' === (n = i[0]) + ? (s.push('wild'), (a += '/(.*)')) + : ':' === n + ? ((r = i.indexOf('?', 1)), + (o = i.indexOf('.', 1)), + s.push(i.substring(1, ~r ? r : ~o ? o : i.length)), + (a += ~r && !~o ? '(?:/([^/]+?))?' : '/([^/]+?)'), + ~o && (a += (~r ? '?' : '') + '\\' + i.substring(o))) + : (a += '/' + i); + return { + keys: s, + pattern: new RegExp('^' + a + (t ? '(?=$|/)' : '/?$'), 'i'), + }; + }; + function ae(e) { + let t, n; + var r = e[0]; + function i(e) { + return { props: { params: e[1] } }; + } + if (r) var o = new r(i(e)); + return { + c() { + o && X(o.$$.fragment), (t = S()); + }, + m(e, r) { + o && J(o, e, r), y(e, t, r), (n = !0); + }, + p(e, [n]) { + const s = {}; + if ((2 & n && (s.params = e[1]), r !== (r = e[0]))) { + if (o) { + q(); + const e = o; + $(e.$$.fragment, 1, 0, () => { + Q(e, 1); + }), + K(); + } + r + ? (X((o = new r(i(e))).$$.fragment), + G(o.$$.fragment, 1), + J(o, t.parentNode, t)) + : (o = null); + } else r && o.$set(s); + }, + i(e) { + n || (o && G(o.$$.fragment, e), (n = !0)); + }, + o(e) { + o && $(o.$$.fragment, e), (n = !1); + }, + d(e) { + e && v(t), o && Q(o, e); + }, + }; + } + function ue() { + const e = window.location.href.indexOf('#/'); + let t = e > -1 ? window.location.href.substr(e + 1) : '/'; + const n = t.indexOf('?'); + let r = ''; + return ( + n > -1 && ((r = t.substr(n + 1)), (t = t.substr(0, n))), + { location: t, querystring: r } + ); + } + const le = re(ue(), function (e) { + const t = () => { + e(ue()); + }; + return ( + window.addEventListener('hashchange', t, !1), + function () { + window.removeEventListener('hashchange', t, !1); + } + ); + }); + oe(le, (e) => e.location), oe(le, (e) => e.querystring); + function ce(e) { + if (!e || e.length < 1 || ('/' != e.charAt(0) && 0 !== e.indexOf('#/'))) + throw Error('Invalid parameter location'); + setTimeout(() => { + const t = ('#' == e.charAt(0) ? '' : '#') + e; + history.replaceState(void 0, void 0, t), + window.dispatchEvent(new Event('hashchange')); + }, 0); + } + function de(e) { + if (!e || !e.tagName || 'a' != e.tagName.toLowerCase()) + throw Error('Action "link" can only be used with tags'); + const t = e.getAttribute('href'); + if (!t || t.length < 1 || '/' != t.charAt(0)) + throw Error('Invalid value for "href" attribute'); + e.setAttribute('href', '#' + t); + } + function he(e, t, n) { + let r, + i = o; + !(function (e, t, n) { + e.$$.on_destroy.push(d(t, n)); + })(e, le, (e) => n(3, (r = e))), + e.$$.on_destroy.push(() => i()); + let { routes: s = {} } = t; + class a { + constructor(e, t) { + if ( + !t || + ('function' != typeof t && + ('object' != typeof t || !0 !== t._sveltesparouter)) + ) + throw Error('Invalid component object'); + if ( + !e || + ('string' == typeof e && + (e.length < 1 || ('/' != e.charAt(0) && '*' != e.charAt(0)))) || + ('object' == typeof e && !(e instanceof RegExp)) + ) + throw Error('Invalid value for "path" argument'); + const { pattern: n, keys: r } = se(e); + (this.path = e), + 'object' == typeof t && !0 === t._sveltesparouter + ? ((this.component = t.route), + (this.conditions = t.conditions || [])) + : ((this.component = t), (this.conditions = [])), + (this._pattern = n), + (this._keys = r); + } + match(e) { + const t = this._pattern.exec(e); + if (null === t) return null; + if (!1 === this._keys) return t; + const n = {}; + let r = 0; + for (; r < this._keys.length; ) n[this._keys[r]] = t[++r] || null; + return n; + } + checkConditions(e, t) { + for (let n = 0; n < this.conditions.length; n++) + if (!this.conditions[n](e, t)) return !1; + return !0; + } + } + const u = s instanceof Map ? s : Object.entries(s), + l = []; + for (const [e, t] of u) l.push(new a(e, t)); + let c = null, + h = {}; + const f = (function () { + const e = O(); + return (t, n) => { + const r = e.$$.callbacks[t]; + if (r) { + const i = E(t, n); + r.slice().forEach((t) => { + t.call(e, i); + }); + } + }; + })(), + p = (e, t) => { + setTimeout(() => { + f(e, t); + }, 0); + }; + return ( + (e.$set = (e) => { + 'routes' in e && n(2, (s = e.routes)); + }), + (e.$$.update = () => { + if (9 & e.$$.dirty) { + n(0, (c = null)); + let e = 0; + for (; !c && e < l.length; ) { + const t = l[e].match(r.location); + if (t) { + const i = { + component: l[e].component.name, + location: r.location, + querystring: r.querystring, + }; + if (!l[e].checkConditions(r.location, r.querystring)) { + p('conditionsFailed', i); + break; + } + n(0, (c = l[e].component)), n(1, (h = t)), p('routeLoaded', i); + } + e++; + } + } + }), + [c, h, s] + ); + } + var fe = class extends te { + constructor(e) { + super(), ee(this, e, he, ae, c, { routes: 2 }); + } + }, + pe = n(17); + const ge = ie({}), + me = (e) => { + let t, n; + const r = + window.matchMedia('(prefers-color-scheme: dark)').matches && !1; + try { + let r = pe.Base64.decode(e); + console.log('state from url', r), + (n = JSON.parse(r)).code, + (t = n.code); + } catch (e) { + n = { + code: (t = + 'graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n\t\t'), + mermaid: { theme: r ? 'dark' : 'default' }, + }; + } + ge.set(n); + }, + _e = (e) => { + ge.set(e), ce('/edit/' + pe.Base64.encodeURI(JSON.stringify(e))); + }, + ye = (e, t) => { + const n = h(ge); + (n.code = e), (n.updateEditor = t), ge.set(n); + }, + ve = (e) => { + const t = h(ge); + (t.mermaid = e), ge.set(t); + }, + be = + (ge.subscribe((e) => { + ce('/edit/' + pe.Base64.encodeURI(JSON.stringify(e))); + }), + ie(void 0)); + var we = n(24), + Ce = n.n(we); + n(320); + function Se(e) { + let t, n, r; + return { + c() { + (t = b('div')), + (n = w(e[1])), + L(t, 'id', 'error'), + L(t, 'class', (r = m(e[0]) + ' svelte-1af9dx4')); + }, + m(e, r) { + y(e, t, r), _(t, n); + }, + p(e, [i]) { + 2 & i && M(n, e[1]), + 1 & i && + r !== (r = m(e[0]) + ' svelte-1af9dx4') && + L(t, 'class', r); + }, + i: o, + o: o, + d(e) { + e && v(t); + }, + }; + } + function xe(e, t, n) { + A(async () => {}); + let { classes: r = '' } = t, + { errorText: i = '' } = t; + return ( + (e.$set = (e) => { + 'classes' in e && n(0, (r = e.classes)), + 'errorText' in e && n(1, (i = e.errorText)); + }), + [r, i] + ); + } + var Le = class extends te { + constructor(e) { + super(), ee(this, e, xe, Se, c, { classes: 0, errorText: 1 }); + } + }; + const ke = (e) => { + e.languages.register({ id: 'mermaid' }), + e.languages.setMonarchTokensProvider('mermaid', { + typeKeywords: [ + 'graph', + 'stateDiagram', + 'sequenceDiagram', + 'classDiagram', + 'pie', + 'flowchart', + 'gantt', + ], + keywords: ['patricipant', 'as'], + arrows: ['---', '===', '--\x3e', '==>'], + tokenizer: { + root: [ + [/[{}]/, 'delimiter.bracket'], + [ + /[a-z_$][\w$]*/, + { + cases: { + '@typeKeywords': 'keyword', + '@keywords': 'keyword', + }, + }, + ], + [/[-=>ox]+/, { cases: { '@arrows': 'transition' } }], + [/[\[\{\(}]+.+?[\)\]\}]+/, 'string'], + [/\".*\"/, 'string'], + ], + }, + whitespace: [ + [/[ \t\r\n]+/, 'white'], + [/\%\%.*$/, 'comment'], + ], + }), + e.editor.defineTheme('myCoolTheme', { + base: 'vs', + inherit: !1, + rules: [ + { token: 'keyword', foreground: '880000', fontStyle: 'bold' }, + { + token: 'custom-error', + foreground: 'ff0000', + fontStyle: 'bold', + }, + { token: 'string', foreground: 'AA8500' }, + { token: 'transition', foreground: '008800', fontStyle: 'bold' }, + { + token: 'delimiter.bracket', + foreground: '000000', + fontStyle: 'bold', + }, + ], + }), + e.languages.registerCompletionItemProvider('mermaid', { + provideCompletionItems: () => { + return { + suggestions: [ + { + label: 'simpleText', + kind: e.languages.CompletionItemKind.Text, + insertText: 'simpleText', + }, + { + label: 'testing', + kind: e.languages.CompletionItemKind.Keyword, + insertText: 'testing(${1:condition})', + insertTextRules: + e.languages.CompletionItemInsertTextRule.InsertAsSnippet, + }, + { + label: 'ifelse', + kind: e.languages.CompletionItemKind.Snippet, + insertText: [ + 'if (${1:condition}) {', + '\t$0', + '} else {', + '\t', + '}', + ].join('\n'), + insertTextRules: + e.languages.CompletionItemInsertTextRule.InsertAsSnippet, + documentation: 'If-Else Statement', + }, + ], + }; + }, + }); + }, + Me = (e) => (t) => e && e.layout(); + function De(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) + n[r - 2] = arguments[r]; + return (function (e, t) { + return 0 === t.length + ? e + : e.replace(/\{(\d+)\}/g, function (e, n) { + var r = n[0]; + return void 0 !== t[r] ? t[r] : e; + }); + })(t, n); + } + var Ee = { + number: 'number', + string: 'string', + undefined: 'undefined', + object: 'object', + function: 'function', + }; + function Te(e) { + return typeof e === Ee.string || e instanceof String; + } + function Ne(e) { + return !( + typeof e !== Ee.object || + null === e || + Array.isArray(e) || + e instanceof RegExp || + e instanceof Date + ); + } + function Oe(e) { + return (typeof e === Ee.number || e instanceof Number) && !isNaN(e); + } + function Ae(e) { + return !0 === e || !1 === e; + } + function Ie(e) { + return typeof e === Ee.undefined; + } + function Pe(e) { + return Ie(e) || null === e; + } + var Re = Object.prototype.hasOwnProperty; + function Fe(e) { + if (!Ne(e)) return !1; + for (var t in e) if (Re.call(e, t)) return !1; + return !0; + } + function Ye(e) { + return typeof e === Ee.function; + } + function je(e, t) { + for (var n = Math.min(e.length, t.length), r = 0; r < n; r++) + Be(e[r], t[r]); + } + function Be(e, t) { + if (Te(t)) { + if (typeof e !== t) + throw new Error('argument does not match constraint: typeof ' + t); + } else if (Ye(t)) { + try { + if (e instanceof t) return; + } catch (e) {} + if (!Pe(e) && e.constructor === t) return; + if (1 === t.length && !0 === t.call(void 0, e)) return; + throw new Error( + 'argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true' + ); + } + } + function We(e) { + for ( + var t = [], + n = 0, + r = (function (e) { + for ( + var t = [], n = Object.getPrototypeOf(e); + Object.prototype !== n; + + ) + (t = t.concat(Object.getOwnPropertyNames(n))), + (n = Object.getPrototypeOf(n)); + return t; + })(e); + n < r.length; + n++ + ) { + var i = r[n]; + 'function' == typeof e[i] && t.push(i); + } + return t; + } + function He(e, t) { + for ( + var n = function (e) { + return function () { + var n = Array.prototype.slice.call(arguments, 0); + return t(e, n); + }; + }, + r = {}, + i = 0, + o = e; + i < o.length; + i++ + ) { + var s = o[i]; + r[s] = n(s); + } + return r; + } + function Ve(e) { + return null === e ? void 0 : e; + } + function ze(e) { + return void 0 === e ? null : e; + } + var Ue = new ((function () { + function e() { + (this.listeners = []), + (this.unexpectedErrorHandler = function (e) { + setTimeout(function () { + if (e.stack) throw new Error(e.message + '\n\n' + e.stack); + throw e; + }, 0); + }); + } + return ( + (e.prototype.emit = function (e) { + this.listeners.forEach(function (t) { + t(e); + }); + }), + (e.prototype.onUnexpectedError = function (e) { + this.unexpectedErrorHandler(e), this.emit(e); + }), + (e.prototype.onUnexpectedExternalError = function (e) { + this.unexpectedErrorHandler(e); + }), + e + ); + })())(); + function qe(e) { + $e(e) || Ue.onUnexpectedError(e); + } + function Ke(e) { + return e instanceof Error + ? { + $isError: !0, + name: e.name, + message: e.message, + stack: e.stacktrace || e.stack, + } + : e; + } + var Ge = 'Canceled'; + function $e(e) { + return e instanceof Error && e.name === Ge && e.message === Ge; + } + function Ze() { + var e = new Error(Ge); + return (e.name = e.message), e; + } + function Xe(e) { + return e + ? new Error('Illegal argument: ' + e) + : new Error('Illegal argument'); + } + function Je(e) { + return e ? new Error('Illegal state: ' + e) : new Error('Illegal state'); + } + var Qe, + et, + tt = n(1), + nt = + ((Qe = function (e, t) { + return (Qe = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(e, t); + }), + function (e, t) { + function n() { + this.constructor = e; + } + Qe(e, t), + (e.prototype = + null === t + ? Object.create(t) + : ((n.prototype = t.prototype), new n())); + }), + rt = /^\w[\w\d+.-]*$/, + it = /^\//, + ot = /^\/\//, + st = !0; + var at, + ut = '', + lt = '/', + ct = /^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/, + dt = (function () { + function e(e, t, n, r, i, o) { + void 0 === o && (o = !1), + 'object' == typeof e + ? ((this.scheme = e.scheme || ut), + (this.authority = e.authority || ut), + (this.path = e.path || ut), + (this.query = e.query || ut), + (this.fragment = e.fragment || ut)) + : ((this.scheme = (function (e, t) { + return t || st + ? e || ut + : (e || + (console.trace( + 'BAD uri lacks scheme, falling back to file-scheme.' + ), + (e = 'file')), + e); + })(e, o)), + (this.authority = t || ut), + (this.path = (function (e, t) { + switch (e) { + case 'https': + case 'http': + case 'file': + t ? t[0] !== lt && (t = lt + t) : (t = lt); + } + return t; + })(this.scheme, n || ut)), + (this.query = r || ut), + (this.fragment = i || ut), + (function (e, t) { + if (!e.scheme) { + if (t || st) + throw new Error( + '[UriError]: Scheme is missing: {scheme: "", authority: "' + + e.authority + + '", path: "' + + e.path + + '", query: "' + + e.query + + '", fragment: "' + + e.fragment + + '"}' + ); + console.warn( + '[UriError]: Scheme is missing: {scheme: "", authority: "' + + e.authority + + '", path: "' + + e.path + + '", query: "' + + e.query + + '", fragment: "' + + e.fragment + + '"}' + ); + } + if (e.scheme && !rt.test(e.scheme)) + throw new Error( + '[UriError]: Scheme contains illegal characters.' + ); + if (e.path) + if (e.authority) { + if (!it.test(e.path)) + throw new Error( + '[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character' + ); + } else if (ot.test(e.path)) + throw new Error( + '[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")' + ); + })(this, o)); + } + return ( + (e.isUri = function (t) { + return ( + t instanceof e || + (!!t && + 'string' == typeof t.authority && + 'string' == typeof t.fragment && + 'string' == typeof t.path && + 'string' == typeof t.query && + 'string' == typeof t.scheme && + 'function' == typeof t.fsPath && + 'function' == typeof t.with && + 'function' == typeof t.toString) + ); + }), + Object.defineProperty(e.prototype, 'fsPath', { + get: function () { + return _t(this); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.with = function (e) { + if (!e) return this; + var t = e.scheme, + n = e.authority, + r = e.path, + i = e.query, + o = e.fragment; + return ( + void 0 === t ? (t = this.scheme) : null === t && (t = ut), + void 0 === n ? (n = this.authority) : null === n && (n = ut), + void 0 === r ? (r = this.path) : null === r && (r = ut), + void 0 === i ? (i = this.query) : null === i && (i = ut), + void 0 === o ? (o = this.fragment) : null === o && (o = ut), + t === this.scheme && + n === this.authority && + r === this.path && + i === this.query && + o === this.fragment + ? this + : new ft(t, n, r, i, o) + ); + }), + (e.parse = function (e, t) { + void 0 === t && (t = !1); + var n = ct.exec(e); + return n + ? new ft( + n[2] || ut, + decodeURIComponent(n[4] || ut), + decodeURIComponent(n[5] || ut), + decodeURIComponent(n[7] || ut), + decodeURIComponent(n[9] || ut), + t + ) + : new ft(ut, ut, ut, ut, ut); + }), + (e.file = function (e) { + var t = ut; + if ( + (tt.g && (e = e.replace(/\\/g, lt)), e[0] === lt && e[1] === lt) + ) { + var n = e.indexOf(lt, 2); + -1 === n + ? ((t = e.substring(2)), (e = lt)) + : ((t = e.substring(2, n)), (e = e.substring(n) || lt)); + } + return new ft('file', t, e, ut, ut); + }), + (e.from = function (e) { + return new ft(e.scheme, e.authority, e.path, e.query, e.fragment); + }), + (e.prototype.toString = function (e) { + return void 0 === e && (e = !1), yt(this, e); + }), + (e.prototype.toJSON = function () { + return this; + }), + (e.revive = function (t) { + if (t) { + if (t instanceof e) return t; + var n = new ft(t); + return ( + (n._formatted = t.external), + (n._fsPath = t._sep === ht ? t.fsPath : null), + n + ); + } + return t; + }), + e + ); + })(), + ht = tt.g ? 1 : void 0, + ft = (function (e) { + function t() { + var t = (null !== e && e.apply(this, arguments)) || this; + return (t._formatted = null), (t._fsPath = null), t; + } + return ( + nt(t, e), + Object.defineProperty(t.prototype, 'fsPath', { + get: function () { + return this._fsPath || (this._fsPath = _t(this)), this._fsPath; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.toString = function (e) { + return ( + void 0 === e && (e = !1), + e + ? yt(this, !0) + : (this._formatted || (this._formatted = yt(this, !1)), + this._formatted) + ); + }), + (t.prototype.toJSON = function () { + var e = { $mid: 1 }; + return ( + this._fsPath && ((e.fsPath = this._fsPath), (e._sep = ht)), + this._formatted && (e.external = this._formatted), + this.path && (e.path = this.path), + this.scheme && (e.scheme = this.scheme), + this.authority && (e.authority = this.authority), + this.query && (e.query = this.query), + this.fragment && (e.fragment = this.fragment), + e + ); + }), + t + ); + })(dt), + pt = + (((et = {})[58] = '%3A'), + (et[47] = '%2F'), + (et[63] = '%3F'), + (et[35] = '%23'), + (et[91] = '%5B'), + (et[93] = '%5D'), + (et[64] = '%40'), + (et[33] = '%21'), + (et[36] = '%24'), + (et[38] = '%26'), + (et[39] = '%27'), + (et[40] = '%28'), + (et[41] = '%29'), + (et[42] = '%2A'), + (et[43] = '%2B'), + (et[44] = '%2C'), + (et[59] = '%3B'), + (et[61] = '%3D'), + (et[32] = '%20'), + et); + function gt(e, t) { + for (var n = void 0, r = -1, i = 0; i < e.length; i++) { + var o = e.charCodeAt(i); + if ( + (o >= 97 && o <= 122) || + (o >= 65 && o <= 90) || + (o >= 48 && o <= 57) || + 45 === o || + 46 === o || + 95 === o || + 126 === o || + (t && 47 === o) + ) + -1 !== r && ((n += encodeURIComponent(e.substring(r, i))), (r = -1)), + void 0 !== n && (n += e.charAt(i)); + else { + void 0 === n && (n = e.substr(0, i)); + var s = pt[o]; + void 0 !== s + ? (-1 !== r && + ((n += encodeURIComponent(e.substring(r, i))), (r = -1)), + (n += s)) + : -1 === r && (r = i); + } + } + return ( + -1 !== r && (n += encodeURIComponent(e.substring(r))), + void 0 !== n ? n : e + ); + } + function mt(e) { + for (var t = void 0, n = 0; n < e.length; n++) { + var r = e.charCodeAt(n); + 35 === r || 63 === r + ? (void 0 === t && (t = e.substr(0, n)), (t += pt[r])) + : void 0 !== t && (t += e[n]); + } + return void 0 !== t ? t : e; + } + function _t(e) { + var t; + return ( + (t = + e.authority && e.path.length > 1 && 'file' === e.scheme + ? '//' + e.authority + e.path + : 47 === e.path.charCodeAt(0) && + ((e.path.charCodeAt(1) >= 65 && e.path.charCodeAt(1) <= 90) || + (e.path.charCodeAt(1) >= 97 && e.path.charCodeAt(1) <= 122)) && + 58 === e.path.charCodeAt(2) + ? e.path[1].toLowerCase() + e.path.substr(2) + : e.path), + tt.g && (t = t.replace(/\//g, '\\')), + t + ); + } + function yt(e, t) { + var n = t ? mt : gt, + r = '', + i = e.scheme, + o = e.authority, + s = e.path, + a = e.query, + u = e.fragment; + if ( + (i && ((r += i), (r += ':')), + (o || 'file' === i) && ((r += lt), (r += lt)), + o) + ) { + var l = o.indexOf('@'); + if (-1 !== l) { + var c = o.substr(0, l); + (o = o.substr(l + 1)), + -1 === (l = c.indexOf(':')) + ? (r += n(c, !1)) + : ((r += n(c.substr(0, l), !1)), + (r += ':'), + (r += n(c.substr(l + 1), !1))), + (r += '@'); + } + -1 === (l = (o = o.toLowerCase()).indexOf(':')) + ? (r += n(o, !1)) + : ((r += n(o.substr(0, l), !1)), (r += o.substr(l))); + } + if (s) { + if (s.length >= 3 && 47 === s.charCodeAt(0) && 58 === s.charCodeAt(2)) + (d = s.charCodeAt(1)) >= 65 && + d <= 90 && + (s = '/' + String.fromCharCode(d + 32) + ':' + s.substr(3)); + else if (s.length >= 2 && 58 === s.charCodeAt(1)) { + var d; + (d = s.charCodeAt(0)) >= 65 && + d <= 90 && + (s = String.fromCharCode(d + 32) + ':' + s.substr(2)); + } + r += n(s, !0); + } + return ( + a && ((r += '?'), (r += n(a, !1))), + u && ((r += '#'), (r += t ? u : gt(u, !1))), + r + ); + } + !(function (e) { + (e.serviceIds = new Map()), + (e.DI_TARGET = '$di$target'), + (e.DI_DEPENDENCIES = '$di$dependencies'), + (e.getServiceDependencies = function (t) { + return t[e.DI_DEPENDENCIES] || []; + }); + })(at || (at = {})); + var vt = wt('instantiationService'); + function bt(e, t, n, r) { + t[at.DI_TARGET] === t + ? t[at.DI_DEPENDENCIES].push({ id: e, index: n, optional: r }) + : ((t[at.DI_DEPENDENCIES] = [{ id: e, index: n, optional: r }]), + (t[at.DI_TARGET] = t)); + } + function wt(e) { + if (at.serviceIds.has(e)) return at.serviceIds.get(e); + var t = function (e, n, r) { + if (3 !== arguments.length) + throw new Error( + '@IServiceName-decorator can only be used to decorate a parameter' + ); + bt(t, e, r, !1); + }; + return ( + (t.toString = function () { + return e; + }), + at.serviceIds.set(e, t), + t + ); + } + function Ct(e) { + return function (t, n, r) { + if (3 !== arguments.length) + throw new Error( + '@optional-decorator can only be used to decorate a parameter' + ); + bt(e, t, r, !0); + }; + } + var St = wt('codeEditorService'), + xt = (function () { + function e(e, t) { + (this.lineNumber = e), (this.column = t); + } + return ( + (e.prototype.with = function (t, n) { + return ( + void 0 === t && (t = this.lineNumber), + void 0 === n && (n = this.column), + t === this.lineNumber && n === this.column ? this : new e(t, n) + ); + }), + (e.prototype.delta = function (e, t) { + return ( + void 0 === e && (e = 0), + void 0 === t && (t = 0), + this.with(this.lineNumber + e, this.column + t) + ); + }), + (e.prototype.equals = function (t) { + return e.equals(this, t); + }), + (e.equals = function (e, t) { + return ( + (!e && !t) || + (!!e && + !!t && + e.lineNumber === t.lineNumber && + e.column === t.column) + ); + }), + (e.prototype.isBefore = function (t) { + return e.isBefore(this, t); + }), + (e.isBefore = function (e, t) { + return ( + e.lineNumber < t.lineNumber || + (!(t.lineNumber < e.lineNumber) && e.column < t.column) + ); + }), + (e.prototype.isBeforeOrEqual = function (t) { + return e.isBeforeOrEqual(this, t); + }), + (e.isBeforeOrEqual = function (e, t) { + return ( + e.lineNumber < t.lineNumber || + (!(t.lineNumber < e.lineNumber) && e.column <= t.column) + ); + }), + (e.compare = function (e, t) { + var n = 0 | e.lineNumber, + r = 0 | t.lineNumber; + return n === r ? (0 | e.column) - (0 | t.column) : n - r; + }), + (e.prototype.clone = function () { + return new e(this.lineNumber, this.column); + }), + (e.prototype.toString = function () { + return '(' + this.lineNumber + ',' + this.column + ')'; + }), + (e.lift = function (t) { + return new e(t.lineNumber, t.column); + }), + (e.isIPosition = function (e) { + return ( + e && + 'number' == typeof e.lineNumber && + 'number' == typeof e.column + ); + }), + e + ); + })(), + Lt = wt('modelService'); + function kt(e) { + return !e.isTooLargeForSyncing() && !e.isForSimpleWidget; + } + var Mt = wt('textModelService'), + Dt = !1, + Et = '__is_disposable_tracked__'; + function Tt(e) { + if (Dt && e && e !== Rt.None) + try { + e[Et] = !0; + } catch (e) {} + } + function Nt(e) { + if (!Dt) return e; + var t = new Error('Potentially leaked disposable').stack; + return ( + setTimeout(function () { + e[Et] || console.log(t); + }, 3e3), + e + ); + } + function Ot(e) { + return Array.isArray(e) + ? (e.forEach(function (e) { + e && (Tt(e), e.dispose()); + }), + []) + : e + ? (Tt(e), e.dispose(), e) + : void 0; + } + function At() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return ( + e.forEach(Tt), + Nt({ + dispose: function () { + return Ot(e); + }, + }) + ); + } + function It(e) { + var t = Nt({ + dispose: function () { + Tt(t), e(); + }, + }); + return t; + } + var Pt = (function () { + function e() { + (this._toDispose = new Set()), (this._isDisposed = !1); + } + return ( + (e.prototype.dispose = function () { + this._isDisposed || + (Tt(this), (this._isDisposed = !0), this.clear()); + }), + (e.prototype.clear = function () { + this._toDispose.forEach(function (e) { + return e.dispose(); + }), + this._toDispose.clear(); + }), + (e.prototype.add = function (e) { + if (!e) return e; + if (e === this) + throw new Error('Cannot register a disposable on itself!'); + return ( + Tt(e), + this._isDisposed + ? console.warn( + new Error( + 'Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!' + ).stack + ) + : this._toDispose.add(e), + e + ); + }), + e + ); + })(), + Rt = (function () { + function e() { + (this._store = new Pt()), Nt(this); + } + return ( + (e.prototype.dispose = function () { + Tt(this), this._store.dispose(); + }), + (e.prototype._register = function (e) { + if (e === this) + throw new Error('Cannot register a disposable on itself!'); + return this._store.add(e); + }), + (e.None = Object.freeze({ dispose: function () {} })), + e + ); + })(), + Ft = + ((function () { + function e() { + (this._isDisposed = !1), Nt(this); + } + Object.defineProperty(e.prototype, 'value', { + get: function () { + return this._isDisposed ? void 0 : this._value; + }, + set: function (e) { + this._isDisposed || + e === this._value || + (this._value && this._value.dispose(), + e && Tt(e), + (this._value = e)); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.clear = function () { + this.value = void 0; + }), + (e.prototype.dispose = function () { + (this._isDisposed = !0), + Tt(this), + this._value && this._value.dispose(), + (this._value = void 0); + }); + })(), + (function () { + function e(e) { + this.object = e; + } + return (e.prototype.dispose = function () {}), e; + })()); + var Yt, + jt = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Bt = { done: !0, value: void 0 }; + !(function (e) { + var t = { + next: function () { + return Bt; + }, + }; + (e.empty = function () { + return t; + }), + (e.single = function (e) { + var t = !1; + return { + next: function () { + return t ? Bt : ((t = !0), { done: !1, value: e }); + }, + }; + }), + (e.fromArray = function (e, t, n) { + return ( + void 0 === t && (t = 0), + void 0 === n && (n = e.length), + { + next: function () { + return t >= n ? Bt : { done: !1, value: e[t++] }; + }, + } + ); + }), + (e.from = function (t) { + return t ? (Array.isArray(t) ? e.fromArray(t) : t) : e.empty(); + }), + (e.map = function (e, t) { + return { + next: function () { + var n = e.next(); + return n.done ? Bt : { done: !1, value: t(n.value) }; + }, + }; + }), + (e.filter = function (e, t) { + return { + next: function () { + for (;;) { + var n = e.next(); + if (n.done) return Bt; + if (t(n.value)) return { done: !1, value: n.value }; + } + }, + }; + }), + (e.forEach = function (e, t) { + for (var n = e.next(); !n.done; n = e.next()) t(n.value); + }), + (e.collect = function (e, t) { + void 0 === t && (t = Number.POSITIVE_INFINITY); + var n = []; + if (0 === t) return n; + for ( + var r = 0, i = e.next(); + !i.done && (n.push(i.value), !(++r >= t)); + i = e.next() + ); + return n; + }), + (e.concat = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + var n = 0; + return { + next: function () { + if (n >= e.length) return Bt; + var t = e[n].next(); + return t.done ? (n++, this.next()) : t; + }, + }; + }); + })(Yt || (Yt = {})); + var Wt, + Ht = (function (e) { + function t(t, n, r, i) { + return ( + void 0 === n && (n = 0), + void 0 === r && (r = t.length), + void 0 === i && (i = n - 1), + e.call(this, t, n, r, i) || this + ); + } + return ( + jt(t, e), + (t.prototype.current = function () { + return e.prototype.current.call(this); + }), + (t.prototype.previous = function () { + return ( + (this.index = Math.max(this.index - 1, this.start - 1)), + this.current() + ); + }), + (t.prototype.first = function () { + return (this.index = this.start), this.current(); + }), + (t.prototype.last = function () { + return (this.index = this.end - 1), this.current(); + }), + (t.prototype.parent = function () { + return null; + }), + t + ); + })( + (function () { + function e(e, t, n, r) { + void 0 === t && (t = 0), + void 0 === n && (n = e.length), + void 0 === r && (r = t - 1), + (this.items = e), + (this.start = t), + (this.end = n), + (this.index = r); + } + return ( + (e.prototype.first = function () { + return (this.index = this.start), this.current(); + }), + (e.prototype.next = function () { + return ( + (this.index = Math.min(this.index + 1, this.end)), + this.current() + ); + }), + (e.prototype.current = function () { + return this.index === this.start - 1 || this.index === this.end + ? null + : this.items[this.index]; + }), + e + ); + })() + ), + Vt = + ((function () { + function e(e, t) { + (this.iterator = e), (this.fn = t); + } + e.prototype.next = function () { + return this.fn(this.iterator.next()); + }; + })(), + (function () { + function e(t) { + (this.element = t), + (this.next = e.Undefined), + (this.prev = e.Undefined); + } + return (e.Undefined = new e(void 0)), e; + })()), + zt = (function () { + function e() { + (this._first = Vt.Undefined), + (this._last = Vt.Undefined), + (this._size = 0); + } + return ( + Object.defineProperty(e.prototype, 'size', { + get: function () { + return this._size; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.isEmpty = function () { + return this._first === Vt.Undefined; + }), + (e.prototype.clear = function () { + (this._first = Vt.Undefined), + (this._last = Vt.Undefined), + (this._size = 0); + }), + (e.prototype.unshift = function (e) { + return this._insert(e, !1); + }), + (e.prototype.push = function (e) { + return this._insert(e, !0); + }), + (e.prototype._insert = function (e, t) { + var n = this, + r = new Vt(e); + if (this._first === Vt.Undefined) + (this._first = r), (this._last = r); + else if (t) { + var i = this._last; + (this._last = r), (r.prev = i), (i.next = r); + } else { + var o = this._first; + (this._first = r), (r.next = o), (o.prev = r); + } + this._size += 1; + var s = !1; + return function () { + s || ((s = !0), n._remove(r)); + }; + }), + (e.prototype.shift = function () { + if (this._first !== Vt.Undefined) { + var e = this._first.element; + return this._remove(this._first), e; + } + }), + (e.prototype.pop = function () { + if (this._last !== Vt.Undefined) { + var e = this._last.element; + return this._remove(this._last), e; + } + }), + (e.prototype._remove = function (e) { + if (e.prev !== Vt.Undefined && e.next !== Vt.Undefined) { + var t = e.prev; + (t.next = e.next), (e.next.prev = t); + } else + e.prev === Vt.Undefined && e.next === Vt.Undefined + ? ((this._first = Vt.Undefined), (this._last = Vt.Undefined)) + : e.next === Vt.Undefined + ? ((this._last = this._last.prev), + (this._last.next = Vt.Undefined)) + : e.prev === Vt.Undefined && + ((this._first = this._first.next), + (this._first.prev = Vt.Undefined)); + this._size -= 1; + }), + (e.prototype.iterator = function () { + var e, + t = this._first; + return { + next: function () { + return t === Vt.Undefined + ? Bt + : (e + ? (e.value = t.element) + : (e = { done: !1, value: t.element }), + (t = t.next), + e); + }, + }; + }), + (e.prototype.toArray = function () { + for (var e = [], t = this._first; t !== Vt.Undefined; t = t.next) + e.push(t.element); + return e; + }), + e + ); + })(), + Ut = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + !(function (e) { + function t(e) { + return function (t, n, r) { + void 0 === n && (n = null); + var i, + o = !1; + return ( + (i = e( + function (e) { + if (!o) return i ? i.dispose() : (o = !0), t.call(n, e); + }, + null, + r + )), + o && i.dispose(), + i + ); + }; + } + function n(e, t) { + return s(function (n, r, i) { + return ( + void 0 === r && (r = null), + e( + function (e) { + return n.call(r, t(e)); + }, + null, + i + ) + ); + }); + } + function r(e, t) { + return s(function (n, r, i) { + return ( + void 0 === r && (r = null), + e( + function (e) { + t(e), n.call(r, e); + }, + null, + i + ) + ); + }); + } + function i(e, t) { + return s(function (n, r, i) { + return ( + void 0 === r && (r = null), + e( + function (e) { + return t(e) && n.call(r, e); + }, + null, + i + ) + ); + }); + } + function o(e, t, r) { + var i = r; + return n(e, function (e) { + return (i = t(i, e)); + }); + } + function s(e) { + var t, + n = new Gt({ + onFirstListenerAdd: function () { + t = e(n.fire, n); + }, + onLastListenerRemove: function () { + t.dispose(); + }, + }); + return n.event; + } + function a(e) { + var t, + n = !0; + return i(e, function (e) { + var r = n || e !== t; + return (n = !1), (t = e), r; + }); + } + (e.None = function () { + return Rt.None; + }), + (e.once = t), + (e.map = n), + (e.forEach = r), + (e.filter = i), + (e.signal = function (e) { + return e; + }), + (e.any = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return function (t, n, r) { + return ( + void 0 === n && (n = null), + At.apply( + void 0, + e.map(function (e) { + return e( + function (e) { + return t.call(n, e); + }, + null, + r + ); + }) + ) + ); + }; + }), + (e.reduce = o), + (e.snapshot = s), + (e.debounce = function (e, t, n, r, i) { + var o; + void 0 === n && (n = 100), void 0 === r && (r = !1); + var s = void 0, + a = void 0, + u = 0, + l = new Gt({ + leakWarningThreshold: i, + onFirstListenerAdd: function () { + o = e(function (e) { + u++, + (s = t(s, e)), + r && !a && l.fire(s), + clearTimeout(a), + (a = setTimeout(function () { + var e = s; + (s = void 0), + (a = void 0), + (!r || u > 1) && l.fire(e), + (u = 0); + }, n)); + }); + }, + onLastListenerRemove: function () { + o.dispose(); + }, + }); + return l.event; + }), + (e.stopwatch = function (e) { + var r = new Date().getTime(); + return n(t(e), function (e) { + return new Date().getTime() - r; + }); + }), + (e.latch = a), + (e.buffer = function (e, t, n) { + void 0 === t && (t = !1), void 0 === n && (n = []); + var r = n.slice(), + i = e(function (e) { + r ? r.push(e) : s.fire(e); + }), + o = function () { + r && + r.forEach(function (e) { + return s.fire(e); + }), + (r = null); + }, + s = new Gt({ + onFirstListenerAdd: function () { + i || + (i = e(function (e) { + return s.fire(e); + })); + }, + onFirstListenerDidAdd: function () { + r && (t ? setTimeout(o) : o()); + }, + onLastListenerRemove: function () { + i && i.dispose(), (i = null); + }, + }); + return s.event; + }); + var u = (function () { + function e(e) { + this.event = e; + } + return ( + (e.prototype.map = function (t) { + return new e(n(this.event, t)); + }), + (e.prototype.forEach = function (t) { + return new e(r(this.event, t)); + }), + (e.prototype.filter = function (t) { + return new e(i(this.event, t)); + }), + (e.prototype.reduce = function (t, n) { + return new e(o(this.event, t, n)); + }), + (e.prototype.latch = function () { + return new e(a(this.event)); + }), + (e.prototype.on = function (e, t, n) { + return this.event(e, t, n); + }), + (e.prototype.once = function (e, n, r) { + return t(this.event)(e, n, r); + }), + e + ); + })(); + (e.chain = function (e) { + return new u(e); + }), + (e.fromNodeEventEmitter = function (e, t, n) { + void 0 === n && + (n = function (e) { + return e; + }); + var r = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return i.fire(n.apply(void 0, e)); + }, + i = new Gt({ + onFirstListenerAdd: function () { + return e.on(t, r); + }, + onLastListenerRemove: function () { + return e.removeListener(t, r); + }, + }); + return i.event; + }), + (e.fromDOMEventEmitter = function (e, t, n) { + void 0 === n && + (n = function (e) { + return e; + }); + var r = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return i.fire(n.apply(void 0, e)); + }, + i = new Gt({ + onFirstListenerAdd: function () { + return e.addEventListener(t, r); + }, + onLastListenerRemove: function () { + return e.removeEventListener(t, r); + }, + }); + return i.event; + }), + (e.fromPromise = function (e) { + var t = new Gt(), + n = !1; + return ( + e + .then(void 0, function () { + return null; + }) + .then(function () { + n + ? t.fire(void 0) + : setTimeout(function () { + return t.fire(void 0); + }, 0); + }), + (n = !0), + t.event + ); + }), + (e.toPromise = function (e) { + return new Promise(function (n) { + return t(e)(n); + }); + }); + })(Wt || (Wt = {})); + var qt = -1, + Kt = (function () { + function e(e, t) { + void 0 === t && (t = Math.random().toString(18).slice(2, 5)), + (this.customThreshold = e), + (this.name = t), + (this._warnCountdown = 0); + } + return ( + (e.prototype.dispose = function () { + this._stacks && this._stacks.clear(); + }), + (e.prototype.check = function (e) { + var t = this, + n = qt; + if ( + ('number' == typeof this.customThreshold && + (n = this.customThreshold), + !(n <= 0 || e < n)) + ) { + this._stacks || (this._stacks = new Map()); + var r = new Error().stack.split('\n').slice(3).join('\n'), + i = this._stacks.get(r) || 0; + if ( + (this._stacks.set(r, i + 1), + (this._warnCountdown -= 1), + this._warnCountdown <= 0) + ) { + var o; + this._warnCountdown = 0.5 * n; + var s = 0; + this._stacks.forEach(function (e, t) { + (!o || s < e) && ((o = t), (s = e)); + }), + console.warn( + '[' + + this.name + + '] potential listener LEAK detected, having ' + + e + + ' listeners already. MOST frequent listener (' + + s + + '):' + ), + console.warn(o); + } + return function () { + var e = t._stacks.get(r) || 0; + t._stacks.set(r, e - 1); + }; + } + }), + e + ); + })(), + Gt = (function () { + function e(e) { + (this._disposed = !1), + (this._options = e), + (this._leakageMon = + qt > 0 + ? new Kt(this._options && this._options.leakWarningThreshold) + : void 0); + } + return ( + Object.defineProperty(e.prototype, 'event', { + get: function () { + var t = this; + return ( + this._event || + (this._event = function (n, r, i) { + t._listeners || (t._listeners = new zt()); + var o = t._listeners.isEmpty(); + o && + t._options && + t._options.onFirstListenerAdd && + t._options.onFirstListenerAdd(t); + var s, + a, + u = t._listeners.push(r ? [n, r] : n); + return ( + o && + t._options && + t._options.onFirstListenerDidAdd && + t._options.onFirstListenerDidAdd(t), + t._options && + t._options.onListenerDidAdd && + t._options.onListenerDidAdd(t, n, r), + t._leakageMon && + (s = t._leakageMon.check(t._listeners.size)), + (a = { + dispose: function () { + (s && s(), (a.dispose = e._noop), t._disposed) || + (u(), + t._options && + t._options.onLastListenerRemove && + ((t._listeners && !t._listeners.isEmpty()) || + t._options.onLastListenerRemove(t))); + }, + }), + i instanceof Pt + ? i.add(a) + : Array.isArray(i) && i.push(a), + a + ); + }), + this._event + ); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.fire = function (e) { + if (this._listeners) { + this._deliveryQueue || (this._deliveryQueue = new zt()); + for ( + var t = this._listeners.iterator(), n = t.next(); + !n.done; + n = t.next() + ) + this._deliveryQueue.push([n.value, e]); + for (; this._deliveryQueue.size > 0; ) { + var r = this._deliveryQueue.shift(), + i = r[0], + o = r[1]; + try { + 'function' == typeof i + ? i.call(void 0, o) + : i[0].call(i[1], o); + } catch (n) { + qe(n); + } + } + } + }), + (e.prototype.dispose = function () { + this._listeners && this._listeners.clear(), + this._deliveryQueue && this._deliveryQueue.clear(), + this._leakageMon && this._leakageMon.dispose(), + (this._disposed = !0); + }), + (e._noop = function () {}), + e + ); + })(), + $t = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._isPaused = 0), + (n._eventQueue = new zt()), + (n._mergeFn = t && t.merge), + n + ); + } + return ( + Ut(t, e), + (t.prototype.pause = function () { + this._isPaused++; + }), + (t.prototype.resume = function () { + if (0 !== this._isPaused && 0 == --this._isPaused) + if (this._mergeFn) { + var t = this._eventQueue.toArray(); + this._eventQueue.clear(), + e.prototype.fire.call(this, this._mergeFn(t)); + } else + for (; !this._isPaused && 0 !== this._eventQueue.size; ) + e.prototype.fire.call(this, this._eventQueue.shift()); + }), + (t.prototype.fire = function (t) { + this._listeners && + (0 !== this._isPaused + ? this._eventQueue.push(t) + : e.prototype.fire.call(this, t)); + }), + t + ); + })(Gt), + Zt = + ((function () { + function e() { + var e = this; + (this.hasListeners = !1), + (this.events = []), + (this.emitter = new Gt({ + onFirstListenerAdd: function () { + return e.onFirstListenerAdd(); + }, + onLastListenerRemove: function () { + return e.onLastListenerRemove(); + }, + })); + } + Object.defineProperty(e.prototype, 'event', { + get: function () { + return this.emitter.event; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.add = function (e) { + var t = this, + n = { event: e, listener: null }; + this.events.push(n), this.hasListeners && this.hook(n); + return It( + (function (e) { + var t, + n = this, + r = !1; + return function () { + return r ? t : ((r = !0), (t = e.apply(n, arguments))); + }; + })(function () { + t.hasListeners && t.unhook(n); + var e = t.events.indexOf(n); + t.events.splice(e, 1); + }) + ); + }), + (e.prototype.onFirstListenerAdd = function () { + var e = this; + (this.hasListeners = !0), + this.events.forEach(function (t) { + return e.hook(t); + }); + }), + (e.prototype.onLastListenerRemove = function () { + var e = this; + (this.hasListeners = !1), + this.events.forEach(function (t) { + return e.unhook(t); + }); + }), + (e.prototype.hook = function (e) { + var t = this; + e.listener = e.event(function (e) { + return t.emitter.fire(e); + }); + }), + (e.prototype.unhook = function (e) { + e.listener && e.listener.dispose(), (e.listener = null); + }), + (e.prototype.dispose = function () { + this.emitter.dispose(); + }); + })(), + (function () { + function e() { + this.buffers = []; + } + return ( + (e.prototype.wrapEvent = function (e) { + var t = this; + return function (n, r, i) { + return e( + function (e) { + var i = t.buffers[t.buffers.length - 1]; + i + ? i.push(function () { + return n.call(r, e); + }) + : n.call(r, e); + }, + void 0, + i + ); + }; + }), + (e.prototype.bufferEvents = function (e) { + var t = []; + this.buffers.push(t); + var n = e(); + return ( + this.buffers.pop(), + t.forEach(function (e) { + return e(); + }), + n + ); + }), + e + ); + })()), + Xt = (function () { + function e() { + var e = this; + (this.listening = !1), + (this.inputEvent = Wt.None), + (this.inputEventListener = Rt.None), + (this.emitter = new Gt({ + onFirstListenerDidAdd: function () { + (e.listening = !0), + (e.inputEventListener = e.inputEvent( + e.emitter.fire, + e.emitter + )); + }, + onLastListenerRemove: function () { + (e.listening = !1), e.inputEventListener.dispose(); + }, + })), + (this.event = this.emitter.event); + } + return ( + Object.defineProperty(e.prototype, 'input', { + set: function (e) { + (this.inputEvent = e), + this.listening && + (this.inputEventListener.dispose(), + (this.inputEventListener = e( + this.emitter.fire, + this.emitter + ))); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.dispose = function () { + this.inputEventListener.dispose(), this.emitter.dispose(); + }), + e + ); + })(), + Jt = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Qt = function (e, t, n, r) { + return new (n || (n = Promise))(function (i, o) { + function s(e) { + try { + u(r.next(e)); + } catch (e) { + o(e); + } + } + function a(e) { + try { + u(r.throw(e)); + } catch (e) { + o(e); + } + } + function u(e) { + e.done + ? i(e.value) + : new n(function (t) { + t(e.value); + }).then(s, a); + } + u((r = r.apply(e, t || [])).next()); + }); + }, + en = function (e, t) { + var n, + r, + i, + o, + s = { + label: 0, + sent: function () { + if (1 & i[0]) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }; + return ( + (o = { next: a(0), throw: a(1), return: a(2) }), + 'function' == typeof Symbol && + (o[Symbol.iterator] = function () { + return this; + }), + o + ); + function a(o) { + return function (a) { + return (function (o) { + if (n) throw new TypeError('Generator is already executing.'); + for (; s; ) + try { + if ( + ((n = 1), + r && + (i = + 2 & o[0] + ? r.return + : o[0] + ? r.throw || ((i = r.return) && i.call(r), 0) + : r.next) && + !(i = i.call(r, o[1])).done) + ) + return i; + switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) { + case 0: + case 1: + i = o; + break; + case 4: + return s.label++, { value: o[1], done: !1 }; + case 5: + s.label++, (r = o[1]), (o = [0]); + continue; + case 7: + (o = s.ops.pop()), s.trys.pop(); + continue; + default: + if ( + !(i = (i = s.trys).length > 0 && i[i.length - 1]) && + (6 === o[0] || 2 === o[0]) + ) { + s = 0; + continue; + } + if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) { + s.label = o[1]; + break; + } + if (6 === o[0] && s.label < i[1]) { + (s.label = i[1]), (i = o); + break; + } + if (i && s.label < i[2]) { + (s.label = i[2]), s.ops.push(o); + break; + } + i[2] && s.ops.pop(), s.trys.pop(); + continue; + } + o = t.call(e, s); + } catch (e) { + (o = [6, e]), (r = 0); + } finally { + n = i = 0; + } + if (5 & o[0]) throw o[1]; + return { value: o[0] ? o[1] : void 0, done: !0 }; + })([o, a]); + }; + } + }, + tn = (function (e) { + function t(t, n, r, i, o) { + void 0 === n && (n = ''), + void 0 === r && (r = ''), + void 0 === i && (i = !0); + var s = e.call(this) || this; + return ( + (s._onDidChange = s._register(new Gt())), + (s.onDidChange = s._onDidChange.event), + (s._enabled = !0), + (s._checked = !1), + (s._radio = !1), + (s._id = t), + (s._label = n), + (s._cssClass = r), + (s._enabled = i), + (s._actionCallback = o), + s + ); + } + return ( + Jt(t, e), + Object.defineProperty(t.prototype, 'id', { + get: function () { + return this._id; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'label', { + get: function () { + return this._label; + }, + set: function (e) { + this._setLabel(e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._setLabel = function (e) { + this._label !== e && + ((this._label = e), this._onDidChange.fire({ label: e })); + }), + Object.defineProperty(t.prototype, 'tooltip', { + get: function () { + return this._tooltip || ''; + }, + set: function (e) { + this._setTooltip(e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._setTooltip = function (e) { + this._tooltip !== e && + ((this._tooltip = e), this._onDidChange.fire({ tooltip: e })); + }), + Object.defineProperty(t.prototype, 'class', { + get: function () { + return this._cssClass; + }, + set: function (e) { + this._setClass(e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._setClass = function (e) { + this._cssClass !== e && + ((this._cssClass = e), this._onDidChange.fire({ class: e })); + }), + Object.defineProperty(t.prototype, 'enabled', { + get: function () { + return this._enabled; + }, + set: function (e) { + this._setEnabled(e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._setEnabled = function (e) { + this._enabled !== e && + ((this._enabled = e), this._onDidChange.fire({ enabled: e })); + }), + Object.defineProperty(t.prototype, 'checked', { + get: function () { + return this._checked; + }, + set: function (e) { + this._setChecked(e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'radio', { + get: function () { + return this._radio; + }, + set: function (e) { + this._setRadio(e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._setChecked = function (e) { + this._checked !== e && + ((this._checked = e), this._onDidChange.fire({ checked: e })); + }), + (t.prototype._setRadio = function (e) { + this._radio !== e && + ((this._radio = e), this._onDidChange.fire({ radio: e })); + }), + (t.prototype.run = function (e, t) { + return this._actionCallback + ? this._actionCallback(e) + : Promise.resolve(!0); + }), + t + ); + })(Rt), + nn = (function (e) { + function t() { + var t = (null !== e && e.apply(this, arguments)) || this; + return ( + (t._onDidBeforeRun = t._register(new Gt())), + (t.onDidBeforeRun = t._onDidBeforeRun.event), + (t._onDidRun = t._register(new Gt())), + (t.onDidRun = t._onDidRun.event), + t + ); + } + return ( + Jt(t, e), + (t.prototype.run = function (e, t) { + return Qt(this, void 0, void 0, function () { + var n, r; + return en(this, function (i) { + switch (i.label) { + case 0: + if (!e.enabled) return [2, Promise.resolve(null)]; + this._onDidBeforeRun.fire({ action: e }), (i.label = 1); + case 1: + return i.trys.push([1, 3, , 4]), [4, this.runAction(e, t)]; + case 2: + return ( + (n = i.sent()), + this._onDidRun.fire({ action: e, result: n }), + [3, 4] + ); + case 3: + return ( + (r = i.sent()), + this._onDidRun.fire({ action: e, error: r }), + [3, 4] + ); + case 4: + return [2]; + } + }); + }); + }), + (t.prototype.runAction = function (e, t) { + var n = t ? e.run(t) : e.run(); + return Promise.resolve(n); + }), + t + ); + })(Rt), + rn = ''; + var on = /{(\d+)}/g; + function sn(e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + return 0 === t.length + ? e + : e.replace(on, function (e, n) { + var r = parseInt(n, 10); + return isNaN(r) || r < 0 || r >= t.length ? e : t[r]; + }); + } + function an(e) { + return e.replace(/[<>&]/g, function (e) { + switch (e) { + case '<': + return '<'; + case '>': + return '>'; + case '&': + return '&'; + default: + return e; + } + }); + } + function un(e) { + return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g, '\\$&'); + } + function ln(e, t) { + if (!e || !t) return e; + var n = t.length; + if (0 === n || 0 === e.length) return e; + for (var r = 0; e.indexOf(t, r) === r; ) r += n; + return e.substring(r); + } + function cn(e, t) { + if (e.length < t.length) return !1; + if (e === t) return !0; + for (var n = 0; n < t.length; n++) if (e[n] !== t[n]) return !1; + return !0; + } + function dn(e, t) { + var n = e.length - t.length; + return n > 0 ? e.indexOf(t, n) === n : 0 === n && e === t; + } + function hn(e, t, n) { + if ((void 0 === n && (n = {}), !e)) + throw new Error('Cannot create regex from empty string'); + t || (e = un(e)), + n.wholeWord && + (/\B/.test(e.charAt(0)) || (e = '\\b' + e), + /\B/.test(e.charAt(e.length - 1)) || (e += '\\b')); + var r = ''; + return ( + n.global && (r += 'g'), + n.matchCase || (r += 'i'), + n.multiline && (r += 'm'), + n.unicode && (r += 'u'), + new RegExp(e, r) + ); + } + function fn(e) { + return ( + (e.global ? 'g' : '') + + (e.ignoreCase ? 'i' : '') + + (e.multiline ? 'm' : '') + + (e.unicode ? 'u' : '') + ); + } + function pn(e) { + for (var t = 0, n = e.length; t < n; t++) { + var r = e.charCodeAt(t); + if (32 !== r && 9 !== r) return t; + } + return -1; + } + function gn(e, t, n) { + void 0 === t && (t = 0), void 0 === n && (n = e.length); + for (var r = t; r < n; r++) { + var i = e.charCodeAt(r); + if (32 !== i && 9 !== i) return e.substring(t, r); + } + return e.substring(t, n); + } + function mn(e, t) { + void 0 === t && (t = e.length - 1); + for (var n = t; n >= 0; n--) { + var r = e.charCodeAt(n); + if (32 !== r && 9 !== r) return n; + } + return -1; + } + function _n(e) { + return e >= 97 && e <= 122; + } + function yn(e) { + return e >= 65 && e <= 90; + } + function vn(e) { + return _n(e) || yn(e); + } + function bn(e, t) { + return (e ? e.length : 0) === (t ? t.length : 0) && wn(e, t); + } + function wn(e, t, n) { + if ( + (void 0 === n && (n = e.length), + 'string' != typeof e || 'string' != typeof t) + ) + return !1; + for (var r = 0; r < n; r++) { + var i = e.charCodeAt(r), + o = t.charCodeAt(r); + if (i !== o) + if (vn(i) && vn(o)) { + var s = Math.abs(i - o); + if (0 !== s && 32 !== s) return !1; + } else if ( + String.fromCharCode(i).toLowerCase() !== + String.fromCharCode(o).toLowerCase() + ) + return !1; + } + return !0; + } + function Cn(e, t) { + var n = t.length; + return !(t.length > e.length) && wn(e, t, n); + } + function Sn(e) { + return 55296 <= e && e <= 56319; + } + function xn(e) { + return 56320 <= e && e <= 57343; + } + var Ln = /(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/; + function kn(e) { + return Ln.test(e); + } + var Mn = /(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/; + var Dn = /^[\t\n\r\x20-\x7E]*$/; + function En(e) { + return Dn.test(e); + } + function Tn(e) { + return ( + ((e = +e) >= 11904 && e <= 55215) || + (e >= 63744 && e <= 64255) || + (e >= 65281 && e <= 65374) + ); + } + var Nn = String.fromCharCode(65279); + function On(e) { + return !!(e && e.length > 0 && 65279 === e.charCodeAt(0)); + } + function An(e) { + return (e %= 52) < 26 + ? String.fromCharCode(97 + e) + : String.fromCharCode(65 + e - 26); + } + var In = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Pn = (function () { + function e() {} + return ( + (e.has = function (e) { + return Fn.create(e); + }), + (e.equals = function (e, t) { + return Yn.create(e, t); + }), + (e.regex = function (e, t) { + return Wn.create(e, t); + }), + (e.not = function (e) { + return Bn.create(e); + }), + (e.and = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return Vn.create(e); + }), + (e.or = function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return zn.create(e); + }), + (e.deserialize = function (e, t) { + if ((void 0 === t && (t = !1), e)) + return this._deserializeOrExpression(e, t); + }), + (e._deserializeOrExpression = function (e, t) { + var n = this, + r = e.split('||'); + return zn.create( + r.map(function (e) { + return n._deserializeAndExpression(e, t); + }) + ); + }), + (e._deserializeAndExpression = function (e, t) { + var n = this, + r = e.split('&&'); + return Vn.create( + r.map(function (e) { + return n._deserializeOne(e, t); + }) + ); + }), + (e._deserializeOne = function (e, t) { + if ((e = e.trim()).indexOf('!=') >= 0) { + var n = e.split('!='); + return jn.create(n[0].trim(), this._deserializeValue(n[1], t)); + } + if (e.indexOf('==') >= 0) { + n = e.split('=='); + return Yn.create(n[0].trim(), this._deserializeValue(n[1], t)); + } + if (e.indexOf('=~') >= 0) { + n = e.split('=~'); + return Wn.create( + n[0].trim(), + this._deserializeRegexValue(n[1], t) + ); + } + return /^\!\s*/.test(e) + ? Bn.create(e.substr(1).trim()) + : Fn.create(e); + }), + (e._deserializeValue = function (e, t) { + if ('true' === (e = e.trim())) return !0; + if ('false' === e) return !1; + var n = /^'([^']*)'$/.exec(e); + return n ? n[1].trim() : e; + }), + (e._deserializeRegexValue = function (e, t) { + if (!(n = e) || 'string' != typeof n || 0 === n.trim().length) { + if (t) throw new Error('missing regexp-value for =~-expression'); + return ( + console.warn('missing regexp-value for =~-expression'), null + ); + } + var n, + r = e.indexOf('/'), + i = e.lastIndexOf('/'); + if (r === i || r < 0) { + if (t) + throw new Error( + "bad regexp-value '" + e + "', missing /-enclosure" + ); + return ( + console.warn( + "bad regexp-value '" + e + "', missing /-enclosure" + ), + null + ); + } + var o = e.slice(r + 1, i), + s = 'i' === e[i + 1] ? 'i' : ''; + try { + return new RegExp(o, s); + } catch (n) { + if (t) + throw new Error( + "bad regexp-value '" + e + "', parse error: " + n + ); + return ( + console.warn("bad regexp-value '" + e + "', parse error: " + n), + null + ); + } + }), + e + ); + })(); + function Rn(e, t) { + var n = e.getType(), + r = t.getType(); + if (n !== r) return n - r; + switch (n) { + case 1: + case 2: + case 3: + case 4: + case 6: + case 7: + case 5: + return e.cmp(t); + default: + throw new Error('Unknown ContextKeyExpr!'); + } + } + var Fn = (function () { + function e(e) { + this.key = e; + } + return ( + (e.create = function (t) { + return new e(t); + }), + (e.prototype.getType = function () { + return 1; + }), + (e.prototype.cmp = function (e) { + return this.key < e.key ? -1 : this.key > e.key ? 1 : 0; + }), + (e.prototype.equals = function (t) { + return t instanceof e && this.key === t.key; + }), + (e.prototype.evaluate = function (e) { + return !!e.getValue(this.key); + }), + (e.prototype.keys = function () { + return [this.key]; + }), + (e.prototype.negate = function () { + return Bn.create(this.key); + }), + e + ); + })(), + Yn = (function () { + function e(e, t) { + (this.key = e), (this.value = t); + } + return ( + (e.create = function (t, n) { + return 'boolean' == typeof n + ? n + ? Fn.create(t) + : Bn.create(t) + : new e(t, n); + }), + (e.prototype.getType = function () { + return 3; + }), + (e.prototype.cmp = function (e) { + return this.key < e.key + ? -1 + : this.key > e.key + ? 1 + : this.value < e.value + ? -1 + : this.value > e.value + ? 1 + : 0; + }), + (e.prototype.equals = function (t) { + return ( + t instanceof e && this.key === t.key && this.value === t.value + ); + }), + (e.prototype.evaluate = function (e) { + return e.getValue(this.key) == this.value; + }), + (e.prototype.keys = function () { + return [this.key]; + }), + (e.prototype.negate = function () { + return jn.create(this.key, this.value); + }), + e + ); + })(), + jn = (function () { + function e(e, t) { + (this.key = e), (this.value = t); + } + return ( + (e.create = function (t, n) { + return 'boolean' == typeof n + ? n + ? Bn.create(t) + : Fn.create(t) + : new e(t, n); + }), + (e.prototype.getType = function () { + return 4; + }), + (e.prototype.cmp = function (e) { + return this.key < e.key + ? -1 + : this.key > e.key + ? 1 + : this.value < e.value + ? -1 + : this.value > e.value + ? 1 + : 0; + }), + (e.prototype.equals = function (t) { + return ( + t instanceof e && this.key === t.key && this.value === t.value + ); + }), + (e.prototype.evaluate = function (e) { + return e.getValue(this.key) != this.value; + }), + (e.prototype.keys = function () { + return [this.key]; + }), + (e.prototype.negate = function () { + return Yn.create(this.key, this.value); + }), + e + ); + })(), + Bn = (function () { + function e(e) { + this.key = e; + } + return ( + (e.create = function (t) { + return new e(t); + }), + (e.prototype.getType = function () { + return 2; + }), + (e.prototype.cmp = function (e) { + return this.key < e.key ? -1 : this.key > e.key ? 1 : 0; + }), + (e.prototype.equals = function (t) { + return t instanceof e && this.key === t.key; + }), + (e.prototype.evaluate = function (e) { + return !e.getValue(this.key); + }), + (e.prototype.keys = function () { + return [this.key]; + }), + (e.prototype.negate = function () { + return Fn.create(this.key); + }), + e + ); + })(), + Wn = (function () { + function e(e, t) { + (this.key = e), (this.regexp = t); + } + return ( + (e.create = function (t, n) { + return new e(t, n); + }), + (e.prototype.getType = function () { + return 6; + }), + (e.prototype.cmp = function (e) { + if (this.key < e.key) return -1; + if (this.key > e.key) return 1; + var t = this.regexp ? this.regexp.source : '', + n = e.regexp ? e.regexp.source : ''; + return t < n ? -1 : t > n ? 1 : 0; + }), + (e.prototype.equals = function (t) { + if (t instanceof e) { + var n = this.regexp ? this.regexp.source : '', + r = t.regexp ? t.regexp.source : ''; + return this.key === t.key && n === r; + } + return !1; + }), + (e.prototype.evaluate = function (e) { + var t = e.getValue(this.key); + return !!this.regexp && this.regexp.test(t); + }), + (e.prototype.keys = function () { + return [this.key]; + }), + (e.prototype.negate = function () { + return Hn.create(this); + }), + e + ); + })(), + Hn = (function () { + function e(e) { + this._actual = e; + } + return ( + (e.create = function (t) { + return new e(t); + }), + (e.prototype.getType = function () { + return 7; + }), + (e.prototype.cmp = function (e) { + return this._actual.cmp(e._actual); + }), + (e.prototype.equals = function (t) { + return t instanceof e && this._actual.equals(t._actual); + }), + (e.prototype.evaluate = function (e) { + return !this._actual.evaluate(e); + }), + (e.prototype.keys = function () { + return this._actual.keys(); + }), + (e.prototype.negate = function () { + return this._actual; + }), + e + ); + })(), + Vn = (function () { + function e(e) { + this.expr = e; + } + return ( + (e.create = function (t) { + var n = e._normalizeArr(t); + if (0 !== n.length) return 1 === n.length ? n[0] : new e(n); + }), + (e.prototype.getType = function () { + return 5; + }), + (e.prototype.cmp = function (e) { + if (this.expr.length < e.expr.length) return -1; + if (this.expr.length > e.expr.length) return 1; + for (var t = 0, n = this.expr.length; t < n; t++) { + var r = Rn(this.expr[t], e.expr[t]); + if (0 !== r) return r; + } + return 0; + }), + (e.prototype.equals = function (t) { + if (t instanceof e) { + if (this.expr.length !== t.expr.length) return !1; + for (var n = 0, r = this.expr.length; n < r; n++) + if (!this.expr[n].equals(t.expr[n])) return !1; + return !0; + } + return !1; + }), + (e.prototype.evaluate = function (e) { + for (var t = 0, n = this.expr.length; t < n; t++) + if (!this.expr[t].evaluate(e)) return !1; + return !0; + }), + (e._normalizeArr = function (t) { + var n = []; + if (t) { + for (var r = 0, i = t.length; r < i; r++) { + var o = t[r]; + if (o) + if (o instanceof e) n = n.concat(o.expr); + else { + if (o instanceof zn) + throw new Error( + 'It is not allowed to have an or expression here due to lack of parens!' + ); + n.push(o); + } + } + n.sort(Rn); + } + return n; + }), + (e.prototype.keys = function () { + for (var e = [], t = 0, n = this.expr; t < n.length; t++) { + var r = n[t]; + e.push.apply(e, r.keys()); + } + return e; + }), + (e.prototype.negate = function () { + for (var e = [], t = 0, n = this.expr; t < n.length; t++) { + var r = n[t]; + e.push(r.negate()); + } + return zn.create(e); + }), + e + ); + })(), + zn = (function () { + function e(e) { + this.expr = e; + } + return ( + (e.create = function (t) { + var n = e._normalizeArr(t); + if (0 !== n.length) return 1 === n.length ? n[0] : new e(n); + }), + (e.prototype.getType = function () { + return 8; + }), + (e.prototype.equals = function (t) { + if (t instanceof e) { + if (this.expr.length !== t.expr.length) return !1; + for (var n = 0, r = this.expr.length; n < r; n++) + if (!this.expr[n].equals(t.expr[n])) return !1; + return !0; + } + return !1; + }), + (e.prototype.evaluate = function (e) { + for (var t = 0, n = this.expr.length; t < n; t++) + if (this.expr[t].evaluate(e)) return !0; + return !1; + }), + (e._normalizeArr = function (t) { + var n = []; + if (t) { + for (var r = 0, i = t.length; r < i; r++) { + var o = t[r]; + o && (o instanceof e ? (n = n.concat(o.expr)) : n.push(o)); + } + n.sort(Rn); + } + return n; + }), + (e.prototype.keys = function () { + for (var e = [], t = 0, n = this.expr; t < n.length; t++) { + var r = n[t]; + e.push.apply(e, r.keys()); + } + return e; + }), + (e.prototype.negate = function () { + for (var t = [], n = 0, r = this.expr; n < r.length; n++) { + var i = r[n]; + t.push(i.negate()); + } + for ( + var o = function (t) { + return t instanceof e ? t.expr : [t]; + }; + t.length > 1; + + ) { + for ( + var s = t.shift(), a = t.shift(), u = [], l = 0, c = o(s); + l < c.length; + l++ + ) + for (var d = c[l], h = 0, f = o(a); h < f.length; h++) { + var p = f[h]; + u.push(Pn.and(d, p)); + } + t.unshift(Pn.or.apply(Pn, u)); + } + return t[0]; + }), + e + ); + })(), + Un = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return (r._defaultValue = n), r; + } + return ( + In(t, e), + (t.prototype.bindTo = function (e) { + return e.createKey(this.key, this._defaultValue); + }), + (t.prototype.getValue = function (e) { + return e.getContextKeyValue(this.key); + }), + (t.prototype.toNegated = function () { + return Pn.not(this.key); + }), + t + ); + })(Fn), + qn = wt('contextKeyService'), + Kn = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function Gn(e) { + var t = []; + return ( + e.forEach(function (e) { + return t.push(e); + }), + t + ); + } + function $n(e) { + var t = []; + return ( + e.forEach(function (e, n) { + return t.push(n); + }), + t + ); + } + var Zn = (function () { + function e() { + (this._value = ''), (this._pos = 0); + } + return ( + (e.prototype.reset = function (e) { + return (this._value = e), (this._pos = 0), this; + }), + (e.prototype.next = function () { + return (this._pos += 1), this; + }), + (e.prototype.hasNext = function () { + return this._pos < this._value.length - 1; + }), + (e.prototype.cmp = function (e) { + return e.charCodeAt(0) - this._value.charCodeAt(this._pos); + }), + (e.prototype.value = function () { + return this._value[this._pos]; + }), + e + ); + })(), + Xn = (function () { + function e() {} + return ( + (e.prototype.reset = function (e) { + return ( + (this._value = e.replace(/\\$|\/$/, '')), + (this._from = 0), + (this._to = 0), + this.next() + ); + }), + (e.prototype.hasNext = function () { + return this._to < this._value.length; + }), + (e.prototype.next = function () { + this._from = this._to; + for (var e = !0; this._to < this._value.length; this._to++) { + var t = this._value.charCodeAt(this._to); + if (47 === t || 92 === t) { + if (!e) break; + this._from++; + } else e = !1; + } + return this; + }), + (e.prototype.cmp = function (e) { + for ( + var t = 0, n = e.length, r = this._from; + t < n && r < this._to; + + ) { + var i = e.charCodeAt(t) - this._value.charCodeAt(r); + if (0 !== i) return i; + (t += 1), (r += 1); + } + return n === this._to - this._from ? 0 : t < n ? -1 : 1; + }), + (e.prototype.value = function () { + return this._value.substring(this._from, this._to); + }), + e + ); + })(), + Jn = function () {}, + Qn = (function () { + function e(e) { + this._iter = e; + } + return ( + (e.forPaths = function () { + return new e(new Xn()); + }), + (e.forStrings = function () { + return new e(new Zn()); + }), + (e.prototype.clear = function () { + this._root = void 0; + }), + (e.prototype.set = function (e, t) { + var n, + r = this._iter.reset(e); + for ( + this._root || + ((this._root = new Jn()), (this._root.segment = r.value())), + n = this._root; + ; + + ) { + var i = r.cmp(n.segment); + if (i > 0) + n.left || ((n.left = new Jn()), (n.left.segment = r.value())), + (n = n.left); + else if (i < 0) + n.right || + ((n.right = new Jn()), (n.right.segment = r.value())), + (n = n.right); + else { + if (!r.hasNext()) break; + r.next(), + n.mid || ((n.mid = new Jn()), (n.mid.segment = r.value())), + (n = n.mid); + } + } + var o = n.value; + return (n.value = t), (n.key = e), o; + }), + (e.prototype.get = function (e) { + for (var t = this._iter.reset(e), n = this._root; n; ) { + var r = t.cmp(n.segment); + if (r > 0) n = n.left; + else if (r < 0) n = n.right; + else { + if (!t.hasNext()) break; + t.next(), (n = n.mid); + } + } + return n ? n.value : void 0; + }), + (e.prototype.findSubstr = function (e) { + for (var t = this._iter.reset(e), n = this._root, r = void 0; n; ) { + var i = t.cmp(n.segment); + if (i > 0) n = n.left; + else if (i < 0) n = n.right; + else { + if (!t.hasNext()) break; + t.next(), (r = n.value || r), (n = n.mid); + } + } + return (n && n.value) || r; + }), + (e.prototype.forEach = function (e) { + this._forEach(this._root, e); + }), + (e.prototype._forEach = function (e, t) { + e && + (this._forEach(e.left, t), + e.value && t(e.value, e.key), + this._forEach(e.mid, t), + this._forEach(e.right, t)); + }), + e + ); + })(), + er = (function () { + function e() { + (this.map = new Map()), (this.ignoreCase = !1); + } + return ( + (e.prototype.set = function (e, t) { + this.map.set(this.toKey(e), t); + }), + (e.prototype.get = function (e) { + return this.map.get(this.toKey(e)); + }), + (e.prototype.toKey = function (e) { + var t = e.toString(); + return this.ignoreCase && (t = t.toLowerCase()), t; + }), + e + ); + })(), + tr = (function (e) { + function t(t, n) { + void 0 === n && (n = 1); + var r = e.call(this) || this; + return (r._limit = t), (r._ratio = Math.min(Math.max(0, n), 1)), r; + } + return ( + Kn(t, e), + (t.prototype.get = function (t) { + return e.prototype.get.call(this, t, 2); + }), + (t.prototype.peek = function (t) { + return e.prototype.get.call(this, t, 0); + }), + (t.prototype.set = function (t, n) { + e.prototype.set.call(this, t, n, 2), this.checkTrim(); + }), + (t.prototype.checkTrim = function () { + this.size > this._limit && + this.trimOld(Math.round(this._limit * this._ratio)); + }), + t + ); + })( + (function () { + function e() { + (this._map = new Map()), + (this._head = void 0), + (this._tail = void 0), + (this._size = 0); + } + return ( + (e.prototype.clear = function () { + this._map.clear(), + (this._head = void 0), + (this._tail = void 0), + (this._size = 0); + }), + Object.defineProperty(e.prototype, 'size', { + get: function () { + return this._size; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.get = function (e, t) { + void 0 === t && (t = 0); + var n = this._map.get(e); + if (n) return 0 !== t && this.touch(n, t), n.value; + }), + (e.prototype.set = function (e, t, n) { + void 0 === n && (n = 0); + var r = this._map.get(e); + if (r) (r.value = t), 0 !== n && this.touch(r, n); + else { + switch ( + ((r = { key: e, value: t, next: void 0, previous: void 0 }), + n) + ) { + case 0: + this.addItemLast(r); + break; + case 1: + this.addItemFirst(r); + break; + case 2: + default: + this.addItemLast(r); + } + this._map.set(e, r), this._size++; + } + }), + (e.prototype.delete = function (e) { + return !!this.remove(e); + }), + (e.prototype.remove = function (e) { + var t = this._map.get(e); + if (t) + return ( + this._map.delete(e), this.removeItem(t), this._size--, t.value + ); + }), + (e.prototype.forEach = function (e, t) { + for (var n = this._head; n; ) + t ? e.bind(t)(n.value, n.key, this) : e(n.value, n.key, this), + (n = n.next); + }), + (e.prototype.trimOld = function (e) { + if (!(e >= this.size)) + if (0 !== e) { + for (var t = this._head, n = this.size; t && n > e; ) + this._map.delete(t.key), (t = t.next), n--; + (this._head = t), + (this._size = n), + t && (t.previous = void 0); + } else this.clear(); + }), + (e.prototype.addItemFirst = function (e) { + if (this._head || this._tail) { + if (!this._head) throw new Error('Invalid list'); + (e.next = this._head), (this._head.previous = e); + } else this._tail = e; + this._head = e; + }), + (e.prototype.addItemLast = function (e) { + if (this._head || this._tail) { + if (!this._tail) throw new Error('Invalid list'); + (e.previous = this._tail), (this._tail.next = e); + } else this._head = e; + this._tail = e; + }), + (e.prototype.removeItem = function (e) { + if (e === this._head && e === this._tail) + (this._head = void 0), (this._tail = void 0); + else if (e === this._head) { + if (!e.next) throw new Error('Invalid list'); + (e.next.previous = void 0), (this._head = e.next); + } else if (e === this._tail) { + if (!e.previous) throw new Error('Invalid list'); + (e.previous.next = void 0), (this._tail = e.previous); + } else { + var t = e.next, + n = e.previous; + if (!t || !n) throw new Error('Invalid list'); + (t.previous = n), (n.next = t); + } + (e.next = void 0), (e.previous = void 0); + }), + (e.prototype.touch = function (e, t) { + if (!this._head || !this._tail) throw new Error('Invalid list'); + if (1 === t || 2 === t) + if (1 === t) { + if (e === this._head) return; + var n = e.next, + r = e.previous; + e === this._tail + ? ((r.next = void 0), (this._tail = r)) + : ((n.previous = r), (r.next = n)), + (e.previous = void 0), + (e.next = this._head), + (this._head.previous = e), + (this._head = e); + } else if (2 === t) { + if (e === this._tail) return; + (n = e.next), (r = e.previous); + e === this._head + ? ((n.previous = void 0), (this._head = n)) + : ((n.previous = r), (r.next = n)), + (e.next = void 0), + (e.previous = this._tail), + (this._tail.next = e), + (this._tail = e); + } + }), + (e.prototype.toJSON = function () { + var e = []; + return ( + this.forEach(function (t, n) { + e.push([n, t]); + }), + e + ); + }), + e + ); + })() + ), + nr = wt('commandService'), + rr = new ((function () { + function e() { + (this._commands = new Map()), + (this._onDidRegisterCommand = new Gt()), + (this.onDidRegisterCommand = this._onDidRegisterCommand.event); + } + return ( + (e.prototype.registerCommand = function (e, t) { + var n = this; + if (!e) throw new Error('invalid command'); + if ('string' == typeof e) { + if (!t) throw new Error('invalid command'); + return this.registerCommand({ id: e, handler: t }); + } + if (e.description) { + for ( + var r = [], i = 0, o = e.description.args; + i < o.length; + i++ + ) { + var s = o[i]; + r.push(s.constraint); + } + var a = e.handler; + e.handler = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + return je(t, r), a.apply(void 0, [e].concat(t)); + }; + } + var u = e.id, + l = this._commands.get(u); + l || ((l = new zt()), this._commands.set(u, l)); + var c = l.unshift(e), + d = It(function () { + c(); + var e = n._commands.get(u); + e && e.isEmpty() && n._commands.delete(u); + }); + return this._onDidRegisterCommand.fire(u), d; + }), + (e.prototype.registerCommandAlias = function (e, t) { + return rr.registerCommand(e, function (e) { + for (var n, r = [], i = 1; i < arguments.length; i++) + r[i - 1] = arguments[i]; + return (n = e.get(nr)).executeCommand.apply(n, [t].concat(r)); + }); + }), + (e.prototype.getCommand = function (e) { + var t = this._commands.get(e); + if (t && !t.isEmpty()) return t.iterator().next().value; + }), + (e.prototype.getCommands = function () { + for ( + var e = new Map(), t = 0, n = $n(this._commands); + t < n.length; + t++ + ) { + var r = n[t], + i = this.getCommand(r); + i && e.set(r, i); + } + return e; + }), + e + ); + })())(), + ir = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + or = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + sr = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }; + function ar(e) { + return void 0 !== e.command; + } + var ur, + lr = wt('menuService'), + cr = new ((function () { + function e() { + (this._commands = new Map()), + (this._menuItems = new Map()), + (this._onDidChangeMenu = new Gt()), + (this.onDidChangeMenu = this._onDidChangeMenu.event); + } + return ( + (e.prototype.addCommand = function (e) { + var t = this; + return ( + this._commands.set(e.id, e), + this._onDidChangeMenu.fire(0), + { + dispose: function () { + t._commands.delete(e.id) && t._onDidChangeMenu.fire(0); + }, + } + ); + }), + (e.prototype.getCommand = function (e) { + return this._commands.get(e); + }), + (e.prototype.getCommands = function () { + var e = new Map(); + return ( + this._commands.forEach(function (t, n) { + return e.set(n, t); + }), + e + ); + }), + (e.prototype.appendMenuItem = function (e, t) { + var n = this, + r = this._menuItems.get(e); + return ( + r ? r.push(t) : ((r = [t]), this._menuItems.set(e, r)), + this._onDidChangeMenu.fire(e), + { + dispose: function () { + var i = r.indexOf(t); + i >= 0 && (r.splice(i, 1), n._onDidChangeMenu.fire(e)); + }, + } + ); + }), + (e.prototype.getMenuItems = function (e) { + var t = (this._menuItems.get(e) || []).slice(0); + return 0 === e && this._appendImplicitItems(t), t; + }), + (e.prototype._appendImplicitItems = function (e) { + for ( + var t = new Set(), + n = 0, + r = e.filter(function (e) { + return ar(e); + }); + n < r.length; + n++ + ) { + var i = r[n], + o = i.command, + s = i.alt; + t.add(o.id), s && t.add(s.id); + } + this._commands.forEach(function (n, r) { + t.has(r) || e.push({ command: n }); + }); + }), + e + ); + })())(), + dr = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n) || this; + return (i._commandService = r), i; + } + return ( + ir(t, e), + (t.prototype.run = function () { + for (var e, t = [], n = 0; n < arguments.length; n++) + t[n] = arguments[n]; + return (e = this._commandService).executeCommand.apply( + e, + [this.id].concat(t) + ); + }), + (t = or([sr(2, nr)], t)) + ); + })(tn), + hr = (function (e) { + function t(t) { + var n = this; + return ( + ((n = + 'string' == typeof t.title + ? e.call(this, '', t.title, 'submenu') || this + : e.call(this, '', t.title.value, 'submenu') || this).item = t), + n + ); + } + return ir(t, e), t; + })(tn), + fr = (function (e) { + function t(n, r, i, o, s) { + var a = this; + return ( + ((a = + 'string' == typeof n.title + ? e.call(this, n.id, n.title, s) || this + : e.call(this, n.id, n.title.value, s) || + this)._cssClass = void 0), + (a._enabled = + !n.precondition || o.contextMatchesRules(n.precondition)), + (a._checked = Boolean( + n.toggled && o.contextMatchesRules(n.toggled) + )), + (a._options = i || {}), + (a.item = n), + (a.alt = r ? new t(r, void 0, a._options, o, s) : void 0), + a + ); + } + return ( + ir(t, e), + (t.prototype.dispose = function () { + this.alt && this.alt.dispose(), e.prototype.dispose.call(this); + }), + (t.prototype.run = function () { + for (var t = [], n = 0; n < arguments.length; n++) + t[n] = arguments[n]; + var r = []; + return ( + this._options.arg && (r = r.concat([this._options.arg])), + this._options.shouldForwardArgs && (r = r.concat(t)), + e.prototype.run.apply(this, r) + ); + }), + (t = or([sr(3, qn), sr(4, nr)], t)) + ); + })(dr), + pr = (function () { + function e() { + (this._keyCodeToStr = []), (this._strToKeyCode = Object.create(null)); + } + return ( + (e.prototype.define = function (e, t) { + (this._keyCodeToStr[e] = t), + (this._strToKeyCode[t.toLowerCase()] = e); + }), + (e.prototype.keyCodeToStr = function (e) { + return this._keyCodeToStr[e]; + }), + (e.prototype.strToKeyCode = function (e) { + return this._strToKeyCode[e.toLowerCase()] || 0; + }), + e + ); + })(), + gr = new pr(), + mr = new pr(), + _r = new pr(); + function yr(e, t) { + if (0 === e) return null; + var n = (65535 & e) >>> 0, + r = (4294901760 & e) >>> 16; + return new wr(0 !== r ? [vr(n, t), vr(r, t)] : [vr(n, t)]); + } + function vr(e, t) { + var n = !!(2048 & e), + r = !!(256 & e); + return new br( + 2 === t ? r : n, + !!(1024 & e), + !!(512 & e), + 2 === t ? n : r, + 255 & e + ); + } + !(function () { + function e(e, t, n, r) { + void 0 === n && (n = t), + void 0 === r && (r = n), + gr.define(e, t), + mr.define(e, n), + _r.define(e, r); + } + e(0, 'unknown'), + e(1, 'Backspace'), + e(2, 'Tab'), + e(3, 'Enter'), + e(4, 'Shift'), + e(5, 'Ctrl'), + e(6, 'Alt'), + e(7, 'PauseBreak'), + e(8, 'CapsLock'), + e(9, 'Escape'), + e(10, 'Space'), + e(11, 'PageUp'), + e(12, 'PageDown'), + e(13, 'End'), + e(14, 'Home'), + e(15, 'LeftArrow', 'Left'), + e(16, 'UpArrow', 'Up'), + e(17, 'RightArrow', 'Right'), + e(18, 'DownArrow', 'Down'), + e(19, 'Insert'), + e(20, 'Delete'), + e(21, '0'), + e(22, '1'), + e(23, '2'), + e(24, '3'), + e(25, '4'), + e(26, '5'), + e(27, '6'), + e(28, '7'), + e(29, '8'), + e(30, '9'), + e(31, 'A'), + e(32, 'B'), + e(33, 'C'), + e(34, 'D'), + e(35, 'E'), + e(36, 'F'), + e(37, 'G'), + e(38, 'H'), + e(39, 'I'), + e(40, 'J'), + e(41, 'K'), + e(42, 'L'), + e(43, 'M'), + e(44, 'N'), + e(45, 'O'), + e(46, 'P'), + e(47, 'Q'), + e(48, 'R'), + e(49, 'S'), + e(50, 'T'), + e(51, 'U'), + e(52, 'V'), + e(53, 'W'), + e(54, 'X'), + e(55, 'Y'), + e(56, 'Z'), + e(57, 'Meta'), + e(58, 'ContextMenu'), + e(59, 'F1'), + e(60, 'F2'), + e(61, 'F3'), + e(62, 'F4'), + e(63, 'F5'), + e(64, 'F6'), + e(65, 'F7'), + e(66, 'F8'), + e(67, 'F9'), + e(68, 'F10'), + e(69, 'F11'), + e(70, 'F12'), + e(71, 'F13'), + e(72, 'F14'), + e(73, 'F15'), + e(74, 'F16'), + e(75, 'F17'), + e(76, 'F18'), + e(77, 'F19'), + e(78, 'NumLock'), + e(79, 'ScrollLock'), + e(80, ';', ';', 'OEM_1'), + e(81, '=', '=', 'OEM_PLUS'), + e(82, ',', ',', 'OEM_COMMA'), + e(83, '-', '-', 'OEM_MINUS'), + e(84, '.', '.', 'OEM_PERIOD'), + e(85, '/', '/', 'OEM_2'), + e(86, '`', '`', 'OEM_3'), + e(110, 'ABNT_C1'), + e(111, 'ABNT_C2'), + e(87, '[', '[', 'OEM_4'), + e(88, '\\', '\\', 'OEM_5'), + e(89, ']', ']', 'OEM_6'), + e(90, "'", "'", 'OEM_7'), + e(91, 'OEM_8'), + e(92, 'OEM_102'), + e(93, 'NumPad0'), + e(94, 'NumPad1'), + e(95, 'NumPad2'), + e(96, 'NumPad3'), + e(97, 'NumPad4'), + e(98, 'NumPad5'), + e(99, 'NumPad6'), + e(100, 'NumPad7'), + e(101, 'NumPad8'), + e(102, 'NumPad9'), + e(103, 'NumPad_Multiply'), + e(104, 'NumPad_Add'), + e(105, 'NumPad_Separator'), + e(106, 'NumPad_Subtract'), + e(107, 'NumPad_Decimal'), + e(108, 'NumPad_Divide'); + })(), + (function (e) { + (e.toString = function (e) { + return gr.keyCodeToStr(e); + }), + (e.fromString = function (e) { + return gr.strToKeyCode(e); + }), + (e.toUserSettingsUS = function (e) { + return mr.keyCodeToStr(e); + }), + (e.toUserSettingsGeneral = function (e) { + return _r.keyCodeToStr(e); + }), + (e.fromUserSettings = function (e) { + return mr.strToKeyCode(e) || _r.strToKeyCode(e); + }); + })(ur || (ur = {})); + var br = (function () { + function e(e, t, n, r, i) { + (this.ctrlKey = e), + (this.shiftKey = t), + (this.altKey = n), + (this.metaKey = r), + (this.keyCode = i); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.ctrlKey === e.ctrlKey && + this.shiftKey === e.shiftKey && + this.altKey === e.altKey && + this.metaKey === e.metaKey && + this.keyCode === e.keyCode + ); + }), + (e.prototype.isModifierKey = function () { + return ( + 0 === this.keyCode || + 5 === this.keyCode || + 57 === this.keyCode || + 6 === this.keyCode || + 4 === this.keyCode + ); + }), + (e.prototype.toChord = function () { + return new wr([this]); + }), + (e.prototype.isDuplicateModifierCase = function () { + return ( + (this.ctrlKey && 5 === this.keyCode) || + (this.shiftKey && 4 === this.keyCode) || + (this.altKey && 6 === this.keyCode) || + (this.metaKey && 57 === this.keyCode) + ); + }), + e + ); + })(), + wr = (function () { + function e(e) { + if (0 === e.length) throw Xe('parts'); + this.parts = e; + } + return ( + (e.prototype.equals = function (e) { + if (null === e) return !1; + if (this.parts.length !== e.parts.length) return !1; + for (var t = 0; t < this.parts.length; t++) + if (!this.parts[t].equals(e.parts[t])) return !1; + return !0; + }), + e + ); + })(), + Cr = function (e, t, n, r, i, o) { + (this.ctrlKey = e), + (this.shiftKey = t), + (this.altKey = n), + (this.metaKey = r), + (this.keyLabel = i), + (this.keyAriaLabel = o); + }, + Sr = function () {}; + function xr(e, t) { + if (!e) + throw new Error( + t ? 'Assertion failed (' + t + ')' : 'Assertion Failed' + ); + } + var Lr = new ((function () { + function e() { + this.data = new Map(); + } + return ( + (e.prototype.add = function (e, t) { + xr(Te(e)), + xr(Ne(t)), + xr( + !this.data.has(e), + 'There is already an extension with this id' + ), + this.data.set(e, t); + }), + (e.prototype.as = function (e) { + return this.data.get(e) || null; + }), + e + ); + })())(), + kr = new ((function () { + function e() { + (this._coreKeybindings = []), + (this._extensionKeybindings = []), + (this._cachedMergedKeybindings = null); + } + return ( + (e.bindToCurrentPlatform = function (e) { + if (1 === tt.a) { + if (e && e.win) return e.win; + } else if (2 === tt.a) { + if (e && e.mac) return e.mac; + } else if (e && e.linux) return e.linux; + return e; + }), + (e.prototype.registerKeybindingRule = function (t) { + var n = e.bindToCurrentPlatform(t); + n && + n.primary && + (o = yr(n.primary, tt.a)) && + this._registerDefaultKeybinding( + o, + t.id, + void 0, + t.weight, + 0, + t.when + ); + if (n && Array.isArray(n.secondary)) + for (var r = 0, i = n.secondary.length; r < i; r++) { + var o; + (o = yr(n.secondary[r], tt.a)) && + this._registerDefaultKeybinding( + o, + t.id, + void 0, + t.weight, + -r - 1, + t.when + ); + } + }), + (e.prototype.registerCommandAndKeybindingRule = function (e) { + this.registerKeybindingRule(e), rr.registerCommand(e); + }), + (e._mightProduceChar = function (e) { + return ( + (e >= 21 && e <= 30) || + (e >= 31 && e <= 56) || + 80 === e || + 81 === e || + 82 === e || + 83 === e || + 84 === e || + 85 === e || + 86 === e || + 110 === e || + 111 === e || + 87 === e || + 88 === e || + 89 === e || + 90 === e || + 91 === e || + 92 === e + ); + }), + (e.prototype._assertNoCtrlAlt = function (t, n) { + t.ctrlKey && + t.altKey && + !t.metaKey && + e._mightProduceChar(t.keyCode) && + console.warn( + 'Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ', + t, + ' for ', + n + ); + }), + (e.prototype._registerDefaultKeybinding = function ( + e, + t, + n, + r, + i, + o + ) { + 1 === tt.a && this._assertNoCtrlAlt(e.parts[0], t), + this._coreKeybindings.push({ + keybinding: e, + command: t, + commandArgs: n, + when: o, + weight1: r, + weight2: i, + }), + (this._cachedMergedKeybindings = null); + }), + (e.prototype.getDefaultKeybindings = function () { + return ( + this._cachedMergedKeybindings || + ((this._cachedMergedKeybindings = [] + .concat(this._coreKeybindings) + .concat(this._extensionKeybindings)), + this._cachedMergedKeybindings.sort(Mr)), + this._cachedMergedKeybindings.slice(0) + ); + }), + e + ); + })())(); + function Mr(e, t) { + return e.weight1 !== t.weight1 + ? e.weight1 - t.weight1 + : e.command < t.command + ? -1 + : e.command > t.command + ? 1 + : e.weight2 - t.weight2; + } + Lr.add('platform.keybindingsRegistry', kr); + var Dr, + Er = wt('telemetryService'), + Tr = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Nr = (function () { + function e(e) { + (this.id = e.id), + (this.precondition = e.precondition), + (this._kbOpts = e.kbOpts), + (this._menubarOpts = e.menubarOpts), + (this._description = e.description); + } + return ( + (e.prototype.register = function () { + var e = this; + if ( + (this._menubarOpts && + cr.appendMenuItem(this._menubarOpts.menuId, { + group: this._menubarOpts.group, + command: { id: this.id, title: this._menubarOpts.title }, + when: this._menubarOpts.when, + order: this._menubarOpts.order, + }), + this._kbOpts) + ) { + var t = this._kbOpts.kbExpr; + this.precondition && + (t = t ? Pn.and(t, this.precondition) : this.precondition), + kr.registerCommandAndKeybindingRule({ + id: this.id, + handler: function (t, n) { + return e.runCommand(t, n); + }, + weight: this._kbOpts.weight, + when: t, + primary: this._kbOpts.primary, + secondary: this._kbOpts.secondary, + win: this._kbOpts.win, + linux: this._kbOpts.linux, + mac: this._kbOpts.mac, + description: this._description, + }); + } else + rr.registerCommand({ + id: this.id, + handler: function (t, n) { + return e.runCommand(t, n); + }, + description: this._description, + }); + }), + e + ); + })(), + Or = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + Tr(t, e), + (t.bindToContribution = function (e) { + return (function (t) { + function n(e) { + var n = t.call(this, e) || this; + return (n._callback = e.handler), n; + } + return ( + Tr(n, t), + (n.prototype.runEditorCommand = function (t, n, r) { + e(n) && this._callback(e(n), r); + }), + n + ); + })(t); + }), + (t.prototype.runCommand = function (e, t) { + var n = this, + r = e.get(St), + i = r.getFocusedCodeEditor() || r.getActiveCodeEditor(); + if (i) + return i.invokeWithinContext(function (e) { + if (e.get(qn).contextMatchesRules(Ve(n.precondition))) + return n.runEditorCommand(e, i, t); + }); + }), + t + ); + })(Nr), + Ar = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n.label = t.label), + (n.alias = t.alias), + (n.menuOpts = t.menuOpts), + n + ); + } + return ( + Tr(t, e), + (t.prototype.register = function () { + this.menuOpts && + cr.appendMenuItem(7, { + command: { id: this.id, title: this.label }, + when: Pn.and(this.precondition, this.menuOpts.when), + group: this.menuOpts.group, + order: this.menuOpts.order, + }), + e.prototype.register.call(this); + }), + (t.prototype.runEditorCommand = function (e, t, n) { + return this.reportTelemetry(e, t), this.run(e, t, n || {}); + }), + (t.prototype.reportTelemetry = function (e, t) { + e.get(Er).publicLog2('editorActionInvoked', { + name: this.label, + id: this.id, + }); + }), + t + ); + })(Or); + function Ir(e) { + return Rr.INSTANCE.registerEditorCommand(e), e; + } + function Pr(e) { + Rr.INSTANCE.registerEditorAction(new e()); + } + !(function (e) { + (e.getEditorCommand = function (e) { + return Rr.INSTANCE.getEditorCommand(e); + }), + (e.getEditorActions = function () { + return Rr.INSTANCE.getEditorActions(); + }), + (e.getEditorContributions = function () { + return Rr.INSTANCE.getEditorContributions(); + }); + })(Dr || (Dr = {})); + var Rr = (function () { + function e() { + (this.editorContributions = []), + (this.editorActions = []), + (this.editorCommands = Object.create(null)); + } + return ( + (e.prototype.registerEditorContribution = function (e) { + this.editorContributions.push(e); + }), + (e.prototype.registerEditorAction = function (e) { + e.register(), this.editorActions.push(e); + }), + (e.prototype.getEditorContributions = function () { + return this.editorContributions.slice(0); + }), + (e.prototype.getEditorActions = function () { + return this.editorActions.slice(0); + }), + (e.prototype.registerEditorCommand = function (e) { + e.register(), (this.editorCommands[e.id] = e); + }), + (e.prototype.getEditorCommand = function (e) { + return this.editorCommands[e] || null; + }), + (e.INSTANCE = new e()), + e + ); + })(); + Lr.add('editor.contributions', Rr.INSTANCE); + var Fr = (function () { + function e(e, t, n, r) { + e > n || (e === n && t > r) + ? ((this.startLineNumber = n), + (this.startColumn = r), + (this.endLineNumber = e), + (this.endColumn = t)) + : ((this.startLineNumber = e), + (this.startColumn = t), + (this.endLineNumber = n), + (this.endColumn = r)); + } + return ( + (e.prototype.isEmpty = function () { + return e.isEmpty(this); + }), + (e.isEmpty = function (e) { + return ( + e.startLineNumber === e.endLineNumber && + e.startColumn === e.endColumn + ); + }), + (e.prototype.containsPosition = function (t) { + return e.containsPosition(this, t); + }), + (e.containsPosition = function (e, t) { + return ( + !( + t.lineNumber < e.startLineNumber || + t.lineNumber > e.endLineNumber + ) && + !( + t.lineNumber === e.startLineNumber && t.column < e.startColumn + ) && + !(t.lineNumber === e.endLineNumber && t.column > e.endColumn) + ); + }), + (e.prototype.containsRange = function (t) { + return e.containsRange(this, t); + }), + (e.containsRange = function (e, t) { + return ( + !( + t.startLineNumber < e.startLineNumber || + t.endLineNumber < e.startLineNumber + ) && + !( + t.startLineNumber > e.endLineNumber || + t.endLineNumber > e.endLineNumber + ) && + !( + t.startLineNumber === e.startLineNumber && + t.startColumn < e.startColumn + ) && + !( + t.endLineNumber === e.endLineNumber && t.endColumn > e.endColumn + ) + ); + }), + (e.prototype.strictContainsRange = function (t) { + return e.strictContainsRange(this, t); + }), + (e.strictContainsRange = function (e, t) { + return ( + !( + t.startLineNumber < e.startLineNumber || + t.endLineNumber < e.startLineNumber + ) && + !( + t.startLineNumber > e.endLineNumber || + t.endLineNumber > e.endLineNumber + ) && + !( + t.startLineNumber === e.startLineNumber && + t.startColumn <= e.startColumn + ) && + !( + t.endLineNumber === e.endLineNumber && + t.endColumn >= e.endColumn + ) + ); + }), + (e.prototype.plusRange = function (t) { + return e.plusRange(this, t); + }), + (e.plusRange = function (t, n) { + var r, i, o, s; + return ( + n.startLineNumber < t.startLineNumber + ? ((r = n.startLineNumber), (i = n.startColumn)) + : n.startLineNumber === t.startLineNumber + ? ((r = n.startLineNumber), + (i = Math.min(n.startColumn, t.startColumn))) + : ((r = t.startLineNumber), (i = t.startColumn)), + n.endLineNumber > t.endLineNumber + ? ((o = n.endLineNumber), (s = n.endColumn)) + : n.endLineNumber === t.endLineNumber + ? ((o = n.endLineNumber), + (s = Math.max(n.endColumn, t.endColumn))) + : ((o = t.endLineNumber), (s = t.endColumn)), + new e(r, i, o, s) + ); + }), + (e.prototype.intersectRanges = function (t) { + return e.intersectRanges(this, t); + }), + (e.intersectRanges = function (t, n) { + var r = t.startLineNumber, + i = t.startColumn, + o = t.endLineNumber, + s = t.endColumn, + a = n.startLineNumber, + u = n.startColumn, + l = n.endLineNumber, + c = n.endColumn; + return ( + r < a ? ((r = a), (i = u)) : r === a && (i = Math.max(i, u)), + o > l ? ((o = l), (s = c)) : o === l && (s = Math.min(s, c)), + r > o ? null : r === o && i > s ? null : new e(r, i, o, s) + ); + }), + (e.prototype.equalsRange = function (t) { + return e.equalsRange(this, t); + }), + (e.equalsRange = function (e, t) { + return ( + !!e && + !!t && + e.startLineNumber === t.startLineNumber && + e.startColumn === t.startColumn && + e.endLineNumber === t.endLineNumber && + e.endColumn === t.endColumn + ); + }), + (e.prototype.getEndPosition = function () { + return new xt(this.endLineNumber, this.endColumn); + }), + (e.prototype.getStartPosition = function () { + return new xt(this.startLineNumber, this.startColumn); + }), + (e.prototype.toString = function () { + return ( + '[' + + this.startLineNumber + + ',' + + this.startColumn + + ' -> ' + + this.endLineNumber + + ',' + + this.endColumn + + ']' + ); + }), + (e.prototype.setEndPosition = function (t, n) { + return new e(this.startLineNumber, this.startColumn, t, n); + }), + (e.prototype.setStartPosition = function (t, n) { + return new e(t, n, this.endLineNumber, this.endColumn); + }), + (e.prototype.collapseToStart = function () { + return e.collapseToStart(this); + }), + (e.collapseToStart = function (t) { + return new e( + t.startLineNumber, + t.startColumn, + t.startLineNumber, + t.startColumn + ); + }), + (e.fromPositions = function (t, n) { + return ( + void 0 === n && (n = t), + new e(t.lineNumber, t.column, n.lineNumber, n.column) + ); + }), + (e.lift = function (t) { + return t + ? new e( + t.startLineNumber, + t.startColumn, + t.endLineNumber, + t.endColumn + ) + : null; + }), + (e.isIRange = function (e) { + return ( + e && + 'number' == typeof e.startLineNumber && + 'number' == typeof e.startColumn && + 'number' == typeof e.endLineNumber && + 'number' == typeof e.endColumn + ); + }), + (e.areIntersectingOrTouching = function (e, t) { + return ( + !( + e.endLineNumber < t.startLineNumber || + (e.endLineNumber === t.startLineNumber && + e.endColumn < t.startColumn) + ) && + !( + t.endLineNumber < e.startLineNumber || + (t.endLineNumber === e.startLineNumber && + t.endColumn < e.startColumn) + ) + ); + }), + (e.areIntersecting = function (e, t) { + return ( + !( + e.endLineNumber < t.startLineNumber || + (e.endLineNumber === t.startLineNumber && + e.endColumn <= t.startColumn) + ) && + !( + t.endLineNumber < e.startLineNumber || + (t.endLineNumber === e.startLineNumber && + t.endColumn <= e.startColumn) + ) + ); + }), + (e.compareRangesUsingStarts = function (e, t) { + if (e && t) { + var n = 0 | e.startLineNumber, + r = 0 | t.startLineNumber; + if (n === r) { + var i = 0 | e.startColumn, + o = 0 | t.startColumn; + if (i === o) { + var s = 0 | e.endLineNumber, + a = 0 | t.endLineNumber; + return s === a + ? (0 | e.endColumn) - (0 | t.endColumn) + : s - a; + } + return i - o; + } + return n - r; + } + return (e ? 1 : 0) - (t ? 1 : 0); + }), + (e.compareRangesUsingEnds = function (e, t) { + return e.endLineNumber === t.endLineNumber + ? e.endColumn === t.endColumn + ? e.startLineNumber === t.startLineNumber + ? e.startColumn - t.startColumn + : e.startLineNumber - t.startLineNumber + : e.endColumn - t.endColumn + : e.endLineNumber - t.endLineNumber; + }), + (e.spansMultipleLines = function (e) { + return e.endLineNumber > e.startLineNumber; + }), + e + ); + })(), + Yr = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + jr = (function (e) { + function t(t, n, r, i) { + var o = e.call(this, t, n, r, i) || this; + return ( + (o.selectionStartLineNumber = t), + (o.selectionStartColumn = n), + (o.positionLineNumber = r), + (o.positionColumn = i), + o + ); + } + return ( + Yr(t, e), + (t.prototype.clone = function () { + return new t( + this.selectionStartLineNumber, + this.selectionStartColumn, + this.positionLineNumber, + this.positionColumn + ); + }), + (t.prototype.toString = function () { + return ( + '[' + + this.selectionStartLineNumber + + ',' + + this.selectionStartColumn + + ' -> ' + + this.positionLineNumber + + ',' + + this.positionColumn + + ']' + ); + }), + (t.prototype.equalsSelection = function (e) { + return t.selectionsEqual(this, e); + }), + (t.selectionsEqual = function (e, t) { + return ( + e.selectionStartLineNumber === t.selectionStartLineNumber && + e.selectionStartColumn === t.selectionStartColumn && + e.positionLineNumber === t.positionLineNumber && + e.positionColumn === t.positionColumn + ); + }), + (t.prototype.getDirection = function () { + return this.selectionStartLineNumber === this.startLineNumber && + this.selectionStartColumn === this.startColumn + ? 0 + : 1; + }), + (t.prototype.setEndPosition = function (e, n) { + return 0 === this.getDirection() + ? new t(this.startLineNumber, this.startColumn, e, n) + : new t(e, n, this.startLineNumber, this.startColumn); + }), + (t.prototype.getPosition = function () { + return new xt(this.positionLineNumber, this.positionColumn); + }), + (t.prototype.setStartPosition = function (e, n) { + return 0 === this.getDirection() + ? new t(e, n, this.endLineNumber, this.endColumn) + : new t(this.endLineNumber, this.endColumn, e, n); + }), + (t.fromPositions = function (e, n) { + return ( + void 0 === n && (n = e), + new t(e.lineNumber, e.column, n.lineNumber, n.column) + ); + }), + (t.liftSelection = function (e) { + return new t( + e.selectionStartLineNumber, + e.selectionStartColumn, + e.positionLineNumber, + e.positionColumn + ); + }), + (t.selectionsArrEqual = function (e, t) { + if ((e && !t) || (!e && t)) return !1; + if (!e && !t) return !0; + if (e.length !== t.length) return !1; + for (var n = 0, r = e.length; n < r; n++) + if (!this.selectionsEqual(e[n], t[n])) return !1; + return !0; + }), + (t.isISelection = function (e) { + return ( + e && + 'number' == typeof e.selectionStartLineNumber && + 'number' == typeof e.selectionStartColumn && + 'number' == typeof e.positionLineNumber && + 'number' == typeof e.positionColumn + ); + }), + (t.createWithDirection = function (e, n, r, i, o) { + return 0 === o ? new t(e, n, r, i) : new t(r, i, e, n); + }), + t + ); + })(Fr); + function Br(e, t) { + return void 0 === t && (t = 0), e[e.length - (1 + t)]; + } + function Wr(e, t, n) { + if ( + (void 0 === n && + (n = function (e, t) { + return e === t; + }), + e === t) + ) + return !0; + if (!e || !t) return !1; + if (e.length !== t.length) return !1; + for (var r = 0, i = e.length; r < i; r++) if (!n(e[r], t[r])) return !1; + return !0; + } + function Hr(e, t) { + return ( + (function e(t, n, r, i, o) { + if (i <= r) return; + var s = (r + (i - r) / 2) | 0; + if ((e(t, n, r, s, o), e(t, n, s + 1, i, o), n(t[s], t[s + 1]) <= 0)) + return; + !(function (e, t, n, r, i, o) { + for (var s = n, a = r + 1, u = n; u <= i; u++) o[u] = e[u]; + for (u = n; u <= i; u++) + s > r + ? (e[u] = o[a++]) + : a > i + ? (e[u] = o[s++]) + : t(o[a], o[s]) < 0 + ? (e[u] = o[a++]) + : (e[u] = o[s++]); + })(t, n, r, s, i, o); + })(e, t, 0, e.length - 1, []), + e + ); + } + function Vr(e, t) { + if (!t) + return e.filter(function (t, n) { + return e.indexOf(t) === n; + }); + var n = Object.create(null); + return e.filter(function (e) { + var r = t(e); + return !n[r] && ((n[r] = !0), !0); + }); + } + function zr(e) { + var t = new Set(); + return e.filter(function (e) { + return !t.has(e) && (t.add(e), !0); + }); + } + function Ur(e, t) { + for (var n = 0; n < e.length; n++) { + if (t(e[n])) return n; + } + return -1; + } + function qr(e, t, n) { + void 0 === n && (n = void 0); + var r = Ur(e, t); + return r < 0 ? n : e[r]; + } + function Kr(e, t) { + var n = 'number' == typeof t ? e : 0; + 'number' == typeof t ? (n = e) : ((n = 0), (t = e)); + var r = []; + if (n <= t) for (var i = n; i < t; i++) r.push(i); + else for (i = n; i > t; i--) r.push(i); + return r; + } + function Gr(e, t, n) { + var r = e.slice(0, t), + i = e.slice(t); + return r.concat(n, i); + } + function $r(e) { + if (!e || 'object' != typeof e) return e; + if (e instanceof RegExp) return e; + var t = Array.isArray(e) ? [] : {}; + return ( + Object.keys(e).forEach(function (n) { + e[n] && 'object' == typeof e[n] ? (t[n] = $r(e[n])) : (t[n] = e[n]); + }), + t + ); + } + var Zr = Object.prototype.hasOwnProperty; + function Xr(e, t, n) { + return ( + void 0 === n && (n = !0), + Ne(e) + ? (Ne(t) && + Object.keys(t).forEach(function (r) { + r in e + ? n && + (Ne(e[r]) && Ne(t[r]) ? Xr(e[r], t[r], n) : (e[r] = t[r])) + : (e[r] = t[r]); + }), + e) + : t + ); + } + function Jr(e, t) { + if (e === t) return !0; + if (null == e || null == t) return !1; + if (typeof e != typeof t) return !1; + if ('object' != typeof e) return !1; + if (Array.isArray(e) !== Array.isArray(t)) return !1; + var n, r; + if (Array.isArray(e)) { + if (e.length !== t.length) return !1; + for (n = 0; n < e.length; n++) if (!Jr(e[n], t[n])) return !1; + } else { + var i = []; + for (r in e) i.push(r); + i.sort(); + var o = []; + for (r in t) o.push(r); + if ((o.sort(), !Jr(i, o))) return !1; + for (n = 0; n < i.length; n++) if (!Jr(e[i[n]], t[i[n]])) return !1; + } + return !0; + } + function Qr(e, t, n) { + var r = t(e); + return void 0 === r ? n : r; + } + var ei = '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?'; + var ti = (function (e) { + void 0 === e && (e = ''); + for (var t = '(-?\\d*\\.\\d\\w*)|([^', n = 0, r = ei; n < r.length; n++) { + var i = r[n]; + e.indexOf(i) >= 0 || (t += '\\' + i); + } + return (t += '\\s]+)'), new RegExp(t, 'g'); + })(); + function ni(e) { + var t = ti; + if (e && e instanceof RegExp) + if (e.global) t = e; + else { + var n = 'g'; + e.ignoreCase && (n += 'i'), + e.multiline && (n += 'm'), + e.unicode && (n += 'u'), + (t = new RegExp(e.source, n)); + } + return (t.lastIndex = 0), t; + } + function ri(e, t, n, r) { + t.lastIndex = 0; + var i = t.exec(n); + if (!i) return null; + var o = + i[0].indexOf(' ') >= 0 + ? (function (e, t, n, r) { + var i, + o = e - 1 - r; + for (t.lastIndex = 0; (i = t.exec(n)); ) { + var s = i.index || 0; + if (s > o) return null; + if (t.lastIndex >= o) + return { + word: i[0], + startColumn: r + 1 + s, + endColumn: r + 1 + t.lastIndex, + }; + } + return null; + })(e, t, n, r) + : (function (e, t, n, r) { + var i, + o = e - 1 - r, + s = n.lastIndexOf(' ', o - 1) + 1; + for (t.lastIndex = s; (i = t.exec(n)); ) { + var a = i.index || 0; + if (a <= o && t.lastIndex >= o) + return { + word: i[0], + startColumn: r + 1 + a, + endColumn: r + 1 + t.lastIndex, + }; + } + return null; + })(e, t, n, r); + return (t.lastIndex = 0), o; + } + var ii, + oi = function () { + return (oi = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }; + !(function (e) { + (e[(e.Line = 1)] = 'Line'), + (e[(e.Block = 2)] = 'Block'), + (e[(e.Underline = 3)] = 'Underline'), + (e[(e.LineThin = 4)] = 'LineThin'), + (e[(e.BlockOutline = 5)] = 'BlockOutline'), + (e[(e.UnderlineThin = 6)] = 'UnderlineThin'); + })(ii || (ii = {})); + var si = (function () { + function e(e) { + (this.canUseLayerHinting = e.canUseLayerHinting), + (this.pixelRatio = e.pixelRatio), + (this.editorClassName = e.editorClassName), + (this.lineHeight = 0 | e.lineHeight), + (this.readOnly = e.readOnly), + (this.accessibilitySupport = e.accessibilitySupport), + (this.multiCursorModifier = e.multiCursorModifier), + (this.multiCursorMergeOverlapping = e.multiCursorMergeOverlapping), + (this.wordSeparators = e.wordSeparators), + (this.autoClosingBrackets = e.autoClosingBrackets), + (this.autoClosingQuotes = e.autoClosingQuotes), + (this.autoClosingOvertype = e.autoClosingOvertype), + (this.autoSurround = e.autoSurround), + (this.autoIndent = e.autoIndent), + (this.useTabStops = e.useTabStops), + (this.tabFocusMode = e.tabFocusMode), + (this.dragAndDrop = e.dragAndDrop), + (this.emptySelectionClipboard = e.emptySelectionClipboard), + (this.copyWithSyntaxHighlighting = e.copyWithSyntaxHighlighting), + (this.layoutInfo = e.layoutInfo), + (this.fontInfo = e.fontInfo), + (this.viewInfo = e.viewInfo), + (this.wrappingInfo = e.wrappingInfo), + (this.contribInfo = e.contribInfo), + (this.showUnused = e.showUnused); + } + return ( + (e.prototype.equals = function (t) { + return ( + this.canUseLayerHinting === t.canUseLayerHinting && + this.pixelRatio === t.pixelRatio && + this.editorClassName === t.editorClassName && + this.lineHeight === t.lineHeight && + this.readOnly === t.readOnly && + this.accessibilitySupport === t.accessibilitySupport && + this.multiCursorModifier === t.multiCursorModifier && + this.multiCursorMergeOverlapping === + t.multiCursorMergeOverlapping && + this.wordSeparators === t.wordSeparators && + this.autoClosingBrackets === t.autoClosingBrackets && + this.autoClosingQuotes === t.autoClosingQuotes && + this.autoClosingOvertype === t.autoClosingOvertype && + this.autoSurround === t.autoSurround && + this.autoIndent === t.autoIndent && + this.useTabStops === t.useTabStops && + this.tabFocusMode === t.tabFocusMode && + this.dragAndDrop === t.dragAndDrop && + this.showUnused === t.showUnused && + this.emptySelectionClipboard === t.emptySelectionClipboard && + this.copyWithSyntaxHighlighting === t.copyWithSyntaxHighlighting && + e._equalsLayoutInfo(this.layoutInfo, t.layoutInfo) && + this.fontInfo.equals(t.fontInfo) && + e._equalsViewOptions(this.viewInfo, t.viewInfo) && + e._equalsWrappingInfo(this.wrappingInfo, t.wrappingInfo) && + e._equalsContribOptions(this.contribInfo, t.contribInfo) + ); + }), + (e.prototype.createChangeEvent = function (t) { + return { + canUseLayerHinting: + this.canUseLayerHinting !== t.canUseLayerHinting, + pixelRatio: this.pixelRatio !== t.pixelRatio, + editorClassName: this.editorClassName !== t.editorClassName, + lineHeight: this.lineHeight !== t.lineHeight, + readOnly: this.readOnly !== t.readOnly, + accessibilitySupport: + this.accessibilitySupport !== t.accessibilitySupport, + multiCursorModifier: + this.multiCursorModifier !== t.multiCursorModifier, + multiCursorMergeOverlapping: + this.multiCursorMergeOverlapping !== + t.multiCursorMergeOverlapping, + wordSeparators: this.wordSeparators !== t.wordSeparators, + autoClosingBrackets: + this.autoClosingBrackets !== t.autoClosingBrackets, + autoClosingQuotes: this.autoClosingQuotes !== t.autoClosingQuotes, + autoClosingOvertype: + this.autoClosingOvertype !== t.autoClosingOvertype, + autoSurround: this.autoSurround !== t.autoSurround, + autoIndent: this.autoIndent !== t.autoIndent, + useTabStops: this.useTabStops !== t.useTabStops, + tabFocusMode: this.tabFocusMode !== t.tabFocusMode, + dragAndDrop: this.dragAndDrop !== t.dragAndDrop, + emptySelectionClipboard: + this.emptySelectionClipboard !== t.emptySelectionClipboard, + copyWithSyntaxHighlighting: + this.copyWithSyntaxHighlighting !== t.copyWithSyntaxHighlighting, + layoutInfo: !e._equalsLayoutInfo(this.layoutInfo, t.layoutInfo), + fontInfo: !this.fontInfo.equals(t.fontInfo), + viewInfo: !e._equalsViewOptions(this.viewInfo, t.viewInfo), + wrappingInfo: !e._equalsWrappingInfo( + this.wrappingInfo, + t.wrappingInfo + ), + contribInfo: !e._equalsContribOptions( + this.contribInfo, + t.contribInfo + ), + }; + }), + (e._equalsLayoutInfo = function (e, t) { + return ( + e.width === t.width && + e.height === t.height && + e.glyphMarginLeft === t.glyphMarginLeft && + e.glyphMarginWidth === t.glyphMarginWidth && + e.glyphMarginHeight === t.glyphMarginHeight && + e.lineNumbersLeft === t.lineNumbersLeft && + e.lineNumbersWidth === t.lineNumbersWidth && + e.lineNumbersHeight === t.lineNumbersHeight && + e.decorationsLeft === t.decorationsLeft && + e.decorationsWidth === t.decorationsWidth && + e.decorationsHeight === t.decorationsHeight && + e.contentLeft === t.contentLeft && + e.contentWidth === t.contentWidth && + e.contentHeight === t.contentHeight && + e.renderMinimap === t.renderMinimap && + e.minimapLeft === t.minimapLeft && + e.minimapWidth === t.minimapWidth && + e.viewportColumn === t.viewportColumn && + e.verticalScrollbarWidth === t.verticalScrollbarWidth && + e.horizontalScrollbarHeight === t.horizontalScrollbarHeight && + this._equalsOverviewRuler(e.overviewRuler, t.overviewRuler) + ); + }), + (e._equalsOverviewRuler = function (e, t) { + return ( + e.width === t.width && + e.height === t.height && + e.top === t.top && + e.right === t.right + ); + }), + (e._equalsViewOptions = function (e, t) { + return ( + e.extraEditorClassName === t.extraEditorClassName && + e.disableMonospaceOptimizations === + t.disableMonospaceOptimizations && + Wr(e.rulers, t.rulers) && + e.ariaLabel === t.ariaLabel && + e.renderLineNumbers === t.renderLineNumbers && + e.renderCustomLineNumbers === t.renderCustomLineNumbers && + e.cursorSurroundingLines === t.cursorSurroundingLines && + e.renderFinalNewline === t.renderFinalNewline && + e.selectOnLineNumbers === t.selectOnLineNumbers && + e.glyphMargin === t.glyphMargin && + e.revealHorizontalRightPadding === t.revealHorizontalRightPadding && + e.roundedSelection === t.roundedSelection && + e.overviewRulerLanes === t.overviewRulerLanes && + e.overviewRulerBorder === t.overviewRulerBorder && + e.cursorBlinking === t.cursorBlinking && + e.mouseWheelZoom === t.mouseWheelZoom && + e.cursorSmoothCaretAnimation === t.cursorSmoothCaretAnimation && + e.cursorStyle === t.cursorStyle && + e.cursorWidth === t.cursorWidth && + e.hideCursorInOverviewRuler === t.hideCursorInOverviewRuler && + e.scrollBeyondLastLine === t.scrollBeyondLastLine && + e.scrollBeyondLastColumn === t.scrollBeyondLastColumn && + e.smoothScrolling === t.smoothScrolling && + e.stopRenderingLineAfter === t.stopRenderingLineAfter && + e.renderWhitespace === t.renderWhitespace && + e.renderControlCharacters === t.renderControlCharacters && + e.fontLigatures === t.fontLigatures && + e.renderIndentGuides === t.renderIndentGuides && + e.highlightActiveIndentGuide === t.highlightActiveIndentGuide && + e.renderLineHighlight === t.renderLineHighlight && + this._equalsScrollbarOptions(e.scrollbar, t.scrollbar) && + this._equalsMinimapOptions(e.minimap, t.minimap) && + e.fixedOverflowWidgets === t.fixedOverflowWidgets + ); + }), + (e._equalsScrollbarOptions = function (e, t) { + return ( + e.arrowSize === t.arrowSize && + e.vertical === t.vertical && + e.horizontal === t.horizontal && + e.useShadows === t.useShadows && + e.verticalHasArrows === t.verticalHasArrows && + e.horizontalHasArrows === t.horizontalHasArrows && + e.handleMouseWheel === t.handleMouseWheel && + e.horizontalScrollbarSize === t.horizontalScrollbarSize && + e.horizontalSliderSize === t.horizontalSliderSize && + e.verticalScrollbarSize === t.verticalScrollbarSize && + e.verticalSliderSize === t.verticalSliderSize && + e.mouseWheelScrollSensitivity === t.mouseWheelScrollSensitivity && + e.fastScrollSensitivity === t.fastScrollSensitivity + ); + }), + (e._equalsMinimapOptions = function (e, t) { + return ( + e.enabled === t.enabled && + e.side === t.side && + e.showSlider === t.showSlider && + e.renderCharacters === t.renderCharacters && + e.maxColumn === t.maxColumn + ); + }), + (e._equalFindOptions = function (e, t) { + return ( + e.seedSearchStringFromSelection === + t.seedSearchStringFromSelection && + e.autoFindInSelection === t.autoFindInSelection && + e.globalFindClipboard === t.globalFindClipboard && + e.addExtraSpaceOnTop === t.addExtraSpaceOnTop + ); + }), + (e._equalsParameterHintOptions = function (e, t) { + return e.enabled === t.enabled && e.cycle === t.cycle; + }), + (e._equalsHoverOptions = function (e, t) { + return ( + e.enabled === t.enabled && + e.delay === t.delay && + e.sticky === t.sticky + ); + }), + (e._equalsSuggestOptions = function (e, t) { + return ( + e === t || + (!(!e || !t) && + e.filterGraceful === t.filterGraceful && + e.snippets === t.snippets && + e.snippetsPreventQuickSuggestions === + t.snippetsPreventQuickSuggestions && + e.localityBonus === t.localityBonus && + e.shareSuggestSelections === t.shareSuggestSelections && + e.showIcons === t.showIcons && + e.maxVisibleSuggestions === t.maxVisibleSuggestions && + Jr(e.filteredTypes, t.filteredTypes)) + ); + }), + (e._equalsGotoLocationOptions = function (e, t) { + return e === t || (!(!e || !t) && e.multiple === t.multiple); + }), + (e._equalsWrappingInfo = function (e, t) { + return ( + e.inDiffEditor === t.inDiffEditor && + e.isDominatedByLongLines === t.isDominatedByLongLines && + e.isWordWrapMinified === t.isWordWrapMinified && + e.isViewportWrapping === t.isViewportWrapping && + e.wrappingColumn === t.wrappingColumn && + e.wrappingIndent === t.wrappingIndent && + e.wordWrapBreakBeforeCharacters === + t.wordWrapBreakBeforeCharacters && + e.wordWrapBreakAfterCharacters === t.wordWrapBreakAfterCharacters && + e.wordWrapBreakObtrusiveCharacters === + t.wordWrapBreakObtrusiveCharacters + ); + }), + (e._equalsContribOptions = function (t, n) { + return ( + t.selectionClipboard === n.selectionClipboard && + this._equalsHoverOptions(t.hover, n.hover) && + t.links === n.links && + t.contextmenu === n.contextmenu && + e._equalsQuickSuggestions(t.quickSuggestions, n.quickSuggestions) && + t.quickSuggestionsDelay === n.quickSuggestionsDelay && + this._equalsParameterHintOptions( + t.parameterHints, + n.parameterHints + ) && + t.formatOnType === n.formatOnType && + t.formatOnPaste === n.formatOnPaste && + t.suggestOnTriggerCharacters === n.suggestOnTriggerCharacters && + t.acceptSuggestionOnEnter === n.acceptSuggestionOnEnter && + t.acceptSuggestionOnCommitCharacter === + n.acceptSuggestionOnCommitCharacter && + t.wordBasedSuggestions === n.wordBasedSuggestions && + t.suggestSelection === n.suggestSelection && + t.suggestFontSize === n.suggestFontSize && + t.suggestLineHeight === n.suggestLineHeight && + t.tabCompletion === n.tabCompletion && + this._equalsSuggestOptions(t.suggest, n.suggest) && + e._equalsGotoLocationOptions(t.gotoLocation, n.gotoLocation) && + t.selectionHighlight === n.selectionHighlight && + t.occurrencesHighlight === n.occurrencesHighlight && + t.codeLens === n.codeLens && + t.folding === n.folding && + t.foldingStrategy === n.foldingStrategy && + t.showFoldingControls === n.showFoldingControls && + t.matchBrackets === n.matchBrackets && + this._equalFindOptions(t.find, n.find) && + t.colorDecorators === n.colorDecorators && + Jr(t.codeActionsOnSave, n.codeActionsOnSave) && + t.codeActionsOnSaveTimeout === n.codeActionsOnSaveTimeout && + t.lightbulbEnabled === n.lightbulbEnabled + ); + }), + (e._equalsQuickSuggestions = function (e, t) { + return 'boolean' == typeof e + ? 'boolean' == typeof t && e === t + : 'boolean' != typeof t && + e.comments === t.comments && + e.other === t.other && + e.strings === t.strings; + }), + e + ); + })(); + function ai(e, t) { + return void 0 === e ? t : 'false' !== e && Boolean(e); + } + function ui(e, t) { + if (!e) return t; + for ( + var n = Object.create(null), r = 0, i = Object.keys(e); + r < i.length; + r++ + ) { + var o = i[r], + s = e[o]; + 'boolean' == typeof s && (n[o] = s); + } + return n; + } + function li(e, t) { + return 'string' != typeof e ? t : e; + } + function ci(e, t, n) { + return 'string' != typeof e ? t : -1 === n.indexOf(e) ? t : e; + } + function di(e, t, n, r) { + var i; + return ( + void 0 === e ? (i = t) : ((i = parseInt(e, 10)), isNaN(i) && (i = t)), + (i = Math.max(n, i)), + 0 | (i = Math.min(r, i)) + ); + } + function hi(e, t) { + var n = parseFloat(e); + return isNaN(n) && (n = t), n; + } + function fi(e, t) { + if ('string' != typeof e) return t; + switch (e) { + case 'blink': + return 1; + case 'smooth': + return 2; + case 'phase': + return 3; + case 'expand': + return 4; + case 'visible': + case 'solid': + return 5; + } + return 1; + } + function pi(e, t) { + if ('string' != typeof e) return t; + switch (e) { + case 'hidden': + return 2; + case 'visible': + return 3; + default: + return 1; + } + } + var gi, + mi, + _i = (function () { + function e() {} + return ( + (e.validate = function (e, t) { + var n = e.wordWrap; + !0 === n ? (n = 'on') : !1 === n && (n = 'off'), + (n = ci(n, t.wordWrap, [ + 'off', + 'on', + 'wordWrapColumn', + 'bounded', + ])); + var r = this._sanitizeViewInfo(e, t.viewInfo), + i = this._sanitizeContribInfo(e, t.contribInfo), + o = void 0; + 'string' == typeof e.multiCursorModifier && + (o = + 'ctrlCmd' === e.multiCursorModifier + ? tt.d + ? 'metaKey' + : 'ctrlKey' + : 'altKey'); + var s, + a, + u, + l, + c, + d = ci(o, t.multiCursorModifier, [ + 'altKey', + 'metaKey', + 'ctrlKey', + ]); + return ( + 'boolean' == typeof e.autoClosingBrackets && + !1 === e.autoClosingBrackets + ? ((s = 'never'), (a = 'never'), (u = 'never')) + : ((s = ci(e.autoClosingBrackets, t.autoClosingBrackets, [ + 'always', + 'languageDefined', + 'beforeWhitespace', + 'never', + ])), + (a = ci(e.autoClosingQuotes, t.autoClosingQuotes, [ + 'always', + 'languageDefined', + 'beforeWhitespace', + 'never', + ])), + (u = ci(e.autoSurround, t.autoSurround, [ + 'languageDefined', + 'brackets', + 'quotes', + 'never', + ]))), + { + inDiffEditor: ai(e.inDiffEditor, t.inDiffEditor), + wordSeparators: li(e.wordSeparators, t.wordSeparators), + lineNumbersMinChars: di( + e.lineNumbersMinChars, + t.lineNumbersMinChars, + 1, + 10 + ), + lineDecorationsWidth: + void 0 === e.lineDecorationsWidth + ? t.lineDecorationsWidth + : e.lineDecorationsWidth, + readOnly: ai(e.readOnly, t.readOnly), + mouseStyle: ci(e.mouseStyle, t.mouseStyle, [ + 'text', + 'default', + 'copy', + ]), + disableLayerHinting: ai( + e.disableLayerHinting, + t.disableLayerHinting + ), + automaticLayout: ai(e.automaticLayout, t.automaticLayout), + wordWrap: n, + wordWrapColumn: di( + e.wordWrapColumn, + t.wordWrapColumn, + 1, + 1073741824 + ), + wordWrapMinified: ai(e.wordWrapMinified, t.wordWrapMinified), + wrappingIndent: + ((l = e.wrappingIndent), + (c = t.wrappingIndent), + 'string' != typeof l + ? c + : 'same' === l + ? 1 + : 'indent' === l + ? 2 + : 'deepIndent' === l + ? 3 + : 0), + wordWrapBreakBeforeCharacters: li( + e.wordWrapBreakBeforeCharacters, + t.wordWrapBreakBeforeCharacters + ), + wordWrapBreakAfterCharacters: li( + e.wordWrapBreakAfterCharacters, + t.wordWrapBreakAfterCharacters + ), + wordWrapBreakObtrusiveCharacters: li( + e.wordWrapBreakObtrusiveCharacters, + t.wordWrapBreakObtrusiveCharacters + ), + autoClosingBrackets: s, + autoClosingQuotes: a, + autoClosingOvertype: ci( + e.autoClosingOvertype, + t.autoClosingOvertype, + ['always', 'auto', 'never'] + ), + autoSurround: u, + autoIndent: ai(e.autoIndent, t.autoIndent), + dragAndDrop: ai(e.dragAndDrop, t.dragAndDrop), + emptySelectionClipboard: ai( + e.emptySelectionClipboard, + t.emptySelectionClipboard + ), + copyWithSyntaxHighlighting: ai( + e.copyWithSyntaxHighlighting, + t.copyWithSyntaxHighlighting + ), + useTabStops: ai(e.useTabStops, t.useTabStops), + multiCursorModifier: d, + multiCursorMergeOverlapping: ai( + e.multiCursorMergeOverlapping, + t.multiCursorMergeOverlapping + ), + accessibilitySupport: ci( + e.accessibilitySupport, + t.accessibilitySupport, + ['auto', 'on', 'off'] + ), + showUnused: ai(e.showUnused, t.showUnused), + viewInfo: r, + contribInfo: i, + } + ); + }), + (e._sanitizeScrollbarOpts = function (e, t, n, r) { + if ('object' != typeof e) return t; + var i = di( + e.horizontalScrollbarSize, + t.horizontalScrollbarSize, + 0, + 1e3 + ), + o = di(e.verticalScrollbarSize, t.verticalScrollbarSize, 0, 1e3); + return { + vertical: pi(e.vertical, t.vertical), + horizontal: pi(e.horizontal, t.horizontal), + arrowSize: di(e.arrowSize, t.arrowSize, 0, 1e3), + useShadows: ai(e.useShadows, t.useShadows), + verticalHasArrows: ai(e.verticalHasArrows, t.verticalHasArrows), + horizontalHasArrows: ai( + e.horizontalHasArrows, + t.horizontalHasArrows + ), + horizontalScrollbarSize: i, + horizontalSliderSize: di(e.horizontalSliderSize, i, 0, 1e3), + verticalScrollbarSize: o, + verticalSliderSize: di(e.verticalSliderSize, o, 0, 1e3), + handleMouseWheel: ai(e.handleMouseWheel, t.handleMouseWheel), + mouseWheelScrollSensitivity: n, + fastScrollSensitivity: r, + }; + }), + (e._sanitizeMinimapOpts = function (e, t) { + return 'object' != typeof e + ? t + : { + enabled: ai(e.enabled, t.enabled), + side: ci(e.side, t.side, ['right', 'left']), + showSlider: ci(e.showSlider, t.showSlider, [ + 'always', + 'mouseover', + ]), + renderCharacters: ai(e.renderCharacters, t.renderCharacters), + maxColumn: di(e.maxColumn, t.maxColumn, 1, 1e4), + }; + }), + (e._sanitizeFindOpts = function (e, t) { + return 'object' != typeof e + ? t + : { + seedSearchStringFromSelection: ai( + e.seedSearchStringFromSelection, + t.seedSearchStringFromSelection + ), + autoFindInSelection: ai( + e.autoFindInSelection, + t.autoFindInSelection + ), + globalFindClipboard: ai( + e.globalFindClipboard, + t.globalFindClipboard + ), + addExtraSpaceOnTop: ai( + e.addExtraSpaceOnTop, + t.addExtraSpaceOnTop + ), + }; + }), + (e._sanitizeParameterHintOpts = function (e, t) { + return 'object' != typeof e + ? t + : { + enabled: ai(e.enabled, t.enabled), + cycle: ai(e.cycle, t.cycle), + }; + }), + (e._sanitizeHoverOpts = function (e, t) { + var n; + if ('boolean' == typeof e) n = { enabled: e }; + else { + if ('object' != typeof e) return t; + n = e; + } + return { + enabled: ai(n.enabled, t.enabled), + delay: di(n.delay, t.delay, 0, 1e4), + sticky: ai(n.sticky, t.sticky), + }; + }), + (e._sanitizeSuggestOpts = function (e, t) { + var n = e.suggest || {}; + return { + filterGraceful: ai(n.filterGraceful, t.filterGraceful), + snippets: ci(e.snippetSuggestions, t.snippets, [ + 'top', + 'bottom', + 'inline', + 'none', + ]), + snippetsPreventQuickSuggestions: ai( + n.snippetsPreventQuickSuggestions, + t.filterGraceful + ), + localityBonus: ai(n.localityBonus, t.localityBonus), + shareSuggestSelections: ai( + n.shareSuggestSelections, + t.shareSuggestSelections + ), + showIcons: ai(n.showIcons, t.showIcons), + maxVisibleSuggestions: di( + n.maxVisibleSuggestions, + t.maxVisibleSuggestions, + 1, + 15 + ), + filteredTypes: Ne(n.filteredTypes) + ? n.filteredTypes + : Object.create(null), + }; + }), + (e._sanitizeGotoLocationOpts = function (e, t) { + return { + multiple: ci((e.gotoLocation || {}).multiple, t.multiple, [ + 'peek', + 'gotoAndPeek', + 'goto', + ]), + }; + }), + (e._sanitizeTabCompletionOpts = function (e, t) { + return !1 === e + ? 'off' + : !0 === e + ? 'onlySnippets' + : ci(e, t, ['on', 'off', 'onlySnippets']); + }), + (e._sanitizeViewInfo = function (e, t) { + var n = []; + if (Array.isArray(e.rulers)) { + for (var r = 0, i = e.rulers.length; r < i; r++) + n.push(di(e.rulers[r], 0, 0, 1e4)); + n.sort(); + } + var o = t.renderLineNumbers, + s = t.renderCustomLineNumbers; + if (void 0 !== e.lineNumbers) { + var a = e.lineNumbers; + !0 === a ? (a = 'on') : !1 === a && (a = 'off'), + 'function' == typeof a + ? ((o = 4), (s = a)) + : (o = + 'interval' === a + ? 3 + : 'relative' === a + ? 2 + : 'on' === a + ? 1 + : 0); + } + var u = ai(e.fontLigatures, t.fontLigatures), + l = + ai( + e.disableMonospaceOptimizations, + t.disableMonospaceOptimizations + ) || u, + c = e.renderWhitespace; + !0 === c ? (c = 'boundary') : !1 === c && (c = 'none'), + (c = ci(c, t.renderWhitespace, [ + 'none', + 'boundary', + 'selection', + 'all', + ])); + var d = e.renderLineHighlight; + !0 === d ? (d = 'line') : !1 === d && (d = 'none'), + (d = ci(d, t.renderLineHighlight, [ + 'none', + 'gutter', + 'line', + 'all', + ])); + var h = hi( + e.mouseWheelScrollSensitivity, + t.scrollbar.mouseWheelScrollSensitivity + ); + 0 === h && (h = 1); + var f = hi( + e.fastScrollSensitivity, + t.scrollbar.fastScrollSensitivity + ); + f <= 0 && (f = t.scrollbar.fastScrollSensitivity); + var p, + g, + m = this._sanitizeScrollbarOpts(e.scrollbar, t.scrollbar, h, f), + _ = this._sanitizeMinimapOpts(e.minimap, t.minimap); + return { + extraEditorClassName: li( + e.extraEditorClassName, + t.extraEditorClassName + ), + disableMonospaceOptimizations: l, + rulers: n, + ariaLabel: li(e.ariaLabel, t.ariaLabel), + cursorSurroundingLines: di( + e.cursorSurroundingLines, + t.cursorWidth, + 0, + Number.MAX_VALUE + ), + renderLineNumbers: o, + renderCustomLineNumbers: s, + renderFinalNewline: ai( + e.renderFinalNewline, + t.renderFinalNewline + ), + selectOnLineNumbers: ai( + e.selectOnLineNumbers, + t.selectOnLineNumbers + ), + glyphMargin: ai(e.glyphMargin, t.glyphMargin), + revealHorizontalRightPadding: di( + e.revealHorizontalRightPadding, + t.revealHorizontalRightPadding, + 0, + 1e3 + ), + roundedSelection: ai(e.roundedSelection, t.roundedSelection), + overviewRulerLanes: di( + e.overviewRulerLanes, + t.overviewRulerLanes, + 0, + 3 + ), + overviewRulerBorder: ai( + e.overviewRulerBorder, + t.overviewRulerBorder + ), + cursorBlinking: fi(e.cursorBlinking, t.cursorBlinking), + mouseWheelZoom: ai(e.mouseWheelZoom, t.mouseWheelZoom), + cursorSmoothCaretAnimation: ai( + e.cursorSmoothCaretAnimation, + t.cursorSmoothCaretAnimation + ), + cursorStyle: + ((p = e.cursorStyle), + (g = t.cursorStyle), + 'string' != typeof p + ? g + : 'line' === p + ? ii.Line + : 'block' === p + ? ii.Block + : 'underline' === p + ? ii.Underline + : 'line-thin' === p + ? ii.LineThin + : 'block-outline' === p + ? ii.BlockOutline + : 'underline-thin' === p + ? ii.UnderlineThin + : ii.Line), + cursorWidth: di( + e.cursorWidth, + t.cursorWidth, + 0, + Number.MAX_VALUE + ), + hideCursorInOverviewRuler: ai( + e.hideCursorInOverviewRuler, + t.hideCursorInOverviewRuler + ), + scrollBeyondLastLine: ai( + e.scrollBeyondLastLine, + t.scrollBeyondLastLine + ), + scrollBeyondLastColumn: di( + e.scrollBeyondLastColumn, + t.scrollBeyondLastColumn, + 0, + 1073741824 + ), + smoothScrolling: ai(e.smoothScrolling, t.smoothScrolling), + stopRenderingLineAfter: di( + e.stopRenderingLineAfter, + t.stopRenderingLineAfter, + -1, + 1073741824 + ), + renderWhitespace: c, + renderControlCharacters: ai( + e.renderControlCharacters, + t.renderControlCharacters + ), + fontLigatures: u, + renderIndentGuides: ai( + e.renderIndentGuides, + t.renderIndentGuides + ), + highlightActiveIndentGuide: ai( + e.highlightActiveIndentGuide, + t.highlightActiveIndentGuide + ), + renderLineHighlight: d, + scrollbar: m, + minimap: _, + fixedOverflowWidgets: ai( + e.fixedOverflowWidgets, + t.fixedOverflowWidgets + ), + }; + }), + (e._sanitizeContribInfo = function (e, t) { + var n; + (n = + 'object' == typeof e.quickSuggestions + ? oi({ other: !0 }, e.quickSuggestions) + : ai(e.quickSuggestions, t.quickSuggestions)), + 'boolean' == typeof e.acceptSuggestionOnEnter && + (e.acceptSuggestionOnEnter = e.acceptSuggestionOnEnter + ? 'on' + : 'off'); + var r = this._sanitizeFindOpts(e.find, t.find); + return { + selectionClipboard: ai( + e.selectionClipboard, + t.selectionClipboard + ), + hover: this._sanitizeHoverOpts(e.hover, t.hover), + links: ai(e.links, t.links), + contextmenu: ai(e.contextmenu, t.contextmenu), + quickSuggestions: n, + quickSuggestionsDelay: di( + e.quickSuggestionsDelay, + t.quickSuggestionsDelay, + -1073741824, + 1073741824 + ), + parameterHints: this._sanitizeParameterHintOpts( + e.parameterHints, + t.parameterHints + ), + formatOnType: ai(e.formatOnType, t.formatOnType), + formatOnPaste: ai(e.formatOnPaste, t.formatOnPaste), + suggestOnTriggerCharacters: ai( + e.suggestOnTriggerCharacters, + t.suggestOnTriggerCharacters + ), + acceptSuggestionOnEnter: ci( + e.acceptSuggestionOnEnter, + t.acceptSuggestionOnEnter, + ['on', 'smart', 'off'] + ), + acceptSuggestionOnCommitCharacter: ai( + e.acceptSuggestionOnCommitCharacter, + t.acceptSuggestionOnCommitCharacter + ), + wordBasedSuggestions: ai( + e.wordBasedSuggestions, + t.wordBasedSuggestions + ), + suggestSelection: ci(e.suggestSelection, t.suggestSelection, [ + 'first', + 'recentlyUsed', + 'recentlyUsedByPrefix', + ]), + suggestFontSize: di(e.suggestFontSize, t.suggestFontSize, 0, 1e3), + suggestLineHeight: di( + e.suggestLineHeight, + t.suggestLineHeight, + 0, + 1e3 + ), + tabCompletion: this._sanitizeTabCompletionOpts( + e.tabCompletion, + t.tabCompletion + ), + suggest: this._sanitizeSuggestOpts(e, t.suggest), + gotoLocation: this._sanitizeGotoLocationOpts(e, t.gotoLocation), + selectionHighlight: ai( + e.selectionHighlight, + t.selectionHighlight + ), + occurrencesHighlight: ai( + e.occurrencesHighlight, + t.occurrencesHighlight + ), + codeLens: ai(e.codeLens, t.codeLens), + folding: ai(e.folding, t.folding), + foldingStrategy: ci(e.foldingStrategy, t.foldingStrategy, [ + 'auto', + 'indentation', + ]), + showFoldingControls: ci( + e.showFoldingControls, + t.showFoldingControls, + ['always', 'mouseover'] + ), + matchBrackets: ai(e.matchBrackets, t.matchBrackets), + find: r, + colorDecorators: ai(e.colorDecorators, t.colorDecorators), + lightbulbEnabled: ai( + !!e.lightbulb && e.lightbulb.enabled, + t.lightbulbEnabled + ), + codeActionsOnSave: ui(e.codeActionsOnSave, {}), + codeActionsOnSaveTimeout: di( + e.codeActionsOnSaveTimeout, + t.codeActionsOnSaveTimeout, + 1, + 1e4 + ), + }; + }), + e + ); + })(), + yi = (function () { + function e() {} + return ( + (e._tweakValidatedOptions = function (e, t) { + var n = 1 === t; + return { + inDiffEditor: e.inDiffEditor, + wordSeparators: e.wordSeparators, + lineNumbersMinChars: e.lineNumbersMinChars, + lineDecorationsWidth: e.lineDecorationsWidth, + readOnly: e.readOnly, + mouseStyle: e.mouseStyle, + disableLayerHinting: e.disableLayerHinting, + automaticLayout: e.automaticLayout, + wordWrap: e.wordWrap, + wordWrapColumn: e.wordWrapColumn, + wordWrapMinified: e.wordWrapMinified, + wrappingIndent: e.wrappingIndent, + wordWrapBreakBeforeCharacters: e.wordWrapBreakBeforeCharacters, + wordWrapBreakAfterCharacters: e.wordWrapBreakAfterCharacters, + wordWrapBreakObtrusiveCharacters: + e.wordWrapBreakObtrusiveCharacters, + autoClosingBrackets: e.autoClosingBrackets, + autoClosingQuotes: e.autoClosingQuotes, + autoClosingOvertype: e.autoClosingOvertype, + autoSurround: e.autoSurround, + autoIndent: e.autoIndent, + dragAndDrop: e.dragAndDrop, + emptySelectionClipboard: e.emptySelectionClipboard, + copyWithSyntaxHighlighting: e.copyWithSyntaxHighlighting, + useTabStops: e.useTabStops, + multiCursorModifier: e.multiCursorModifier, + multiCursorMergeOverlapping: e.multiCursorMergeOverlapping, + accessibilitySupport: e.accessibilitySupport, + showUnused: e.showUnused, + viewInfo: { + extraEditorClassName: e.viewInfo.extraEditorClassName, + disableMonospaceOptimizations: + e.viewInfo.disableMonospaceOptimizations, + rulers: e.viewInfo.rulers, + ariaLabel: n + ? De( + 'accessibilityOffAriaLabel', + 'The editor is not accessible at this time. Press Alt+F1 for options.' + ) + : e.viewInfo.ariaLabel, + renderLineNumbers: e.viewInfo.renderLineNumbers, + renderCustomLineNumbers: e.viewInfo.renderCustomLineNumbers, + cursorSurroundingLines: e.viewInfo.cursorSurroundingLines, + renderFinalNewline: e.viewInfo.renderFinalNewline, + selectOnLineNumbers: e.viewInfo.selectOnLineNumbers, + glyphMargin: e.viewInfo.glyphMargin, + revealHorizontalRightPadding: + e.viewInfo.revealHorizontalRightPadding, + roundedSelection: e.viewInfo.roundedSelection, + overviewRulerLanes: e.viewInfo.overviewRulerLanes, + overviewRulerBorder: e.viewInfo.overviewRulerBorder, + cursorBlinking: e.viewInfo.cursorBlinking, + mouseWheelZoom: e.viewInfo.mouseWheelZoom, + cursorSmoothCaretAnimation: + e.viewInfo.cursorSmoothCaretAnimation, + cursorStyle: e.viewInfo.cursorStyle, + cursorWidth: e.viewInfo.cursorWidth, + hideCursorInOverviewRuler: e.viewInfo.hideCursorInOverviewRuler, + scrollBeyondLastLine: e.viewInfo.scrollBeyondLastLine, + scrollBeyondLastColumn: e.viewInfo.scrollBeyondLastColumn, + smoothScrolling: e.viewInfo.smoothScrolling, + stopRenderingLineAfter: e.viewInfo.stopRenderingLineAfter, + renderWhitespace: e.viewInfo.renderWhitespace, + renderControlCharacters: e.viewInfo.renderControlCharacters, + fontLigatures: e.viewInfo.fontLigatures, + renderIndentGuides: e.viewInfo.renderIndentGuides, + highlightActiveIndentGuide: + e.viewInfo.highlightActiveIndentGuide, + renderLineHighlight: e.viewInfo.renderLineHighlight, + scrollbar: e.viewInfo.scrollbar, + minimap: { + enabled: e.viewInfo.minimap.enabled, + side: e.viewInfo.minimap.side, + renderCharacters: e.viewInfo.minimap.renderCharacters, + showSlider: e.viewInfo.minimap.showSlider, + maxColumn: e.viewInfo.minimap.maxColumn, + }, + fixedOverflowWidgets: e.viewInfo.fixedOverflowWidgets, + }, + contribInfo: { + selectionClipboard: e.contribInfo.selectionClipboard, + hover: e.contribInfo.hover, + links: e.contribInfo.links, + contextmenu: e.contribInfo.contextmenu, + quickSuggestions: e.contribInfo.quickSuggestions, + quickSuggestionsDelay: e.contribInfo.quickSuggestionsDelay, + parameterHints: e.contribInfo.parameterHints, + formatOnType: e.contribInfo.formatOnType, + formatOnPaste: e.contribInfo.formatOnPaste, + suggestOnTriggerCharacters: + e.contribInfo.suggestOnTriggerCharacters, + acceptSuggestionOnEnter: e.contribInfo.acceptSuggestionOnEnter, + acceptSuggestionOnCommitCharacter: + e.contribInfo.acceptSuggestionOnCommitCharacter, + wordBasedSuggestions: e.contribInfo.wordBasedSuggestions, + suggestSelection: e.contribInfo.suggestSelection, + suggestFontSize: e.contribInfo.suggestFontSize, + suggestLineHeight: e.contribInfo.suggestLineHeight, + tabCompletion: e.contribInfo.tabCompletion, + suggest: e.contribInfo.suggest, + gotoLocation: e.contribInfo.gotoLocation, + selectionHighlight: e.contribInfo.selectionHighlight, + occurrencesHighlight: e.contribInfo.occurrencesHighlight, + codeLens: e.contribInfo.codeLens, + folding: e.contribInfo.folding, + foldingStrategy: e.contribInfo.foldingStrategy, + showFoldingControls: e.contribInfo.showFoldingControls, + matchBrackets: e.contribInfo.matchBrackets, + find: e.contribInfo.find, + colorDecorators: e.contribInfo.colorDecorators, + lightbulbEnabled: e.contribInfo.lightbulbEnabled, + codeActionsOnSave: e.contribInfo.codeActionsOnSave, + codeActionsOnSaveTimeout: + e.contribInfo.codeActionsOnSaveTimeout, + }, + }; + }), + (e.createInternalEditorOptions = function (e, t) { + var n; + n = + 'auto' === t.accessibilitySupport + ? e.accessibilitySupport + : 'on' === t.accessibilitySupport + ? 2 + : 1; + var r, + i = this._tweakValidatedOptions(t, n); + 'string' == typeof i.lineDecorationsWidth && + /^\d+(\.\d+)?ch$/.test(i.lineDecorationsWidth) + ? (r = + parseFloat( + i.lineDecorationsWidth.substr( + 0, + i.lineDecorationsWidth.length - 2 + ) + ) * e.fontInfo.typicalHalfwidthCharacterWidth) + : (r = di(i.lineDecorationsWidth, 0, 0, 1e3)); + i.contribInfo.folding && (r += 16); + var o = vi.compute({ + outerWidth: e.outerWidth, + outerHeight: e.outerHeight, + showGlyphMargin: i.viewInfo.glyphMargin, + lineHeight: e.fontInfo.lineHeight, + showLineNumbers: 0 !== i.viewInfo.renderLineNumbers, + lineNumbersMinChars: i.lineNumbersMinChars, + lineNumbersDigitCount: e.lineNumbersDigitCount, + lineDecorationsWidth: r, + typicalHalfwidthCharacterWidth: + e.fontInfo.typicalHalfwidthCharacterWidth, + maxDigitWidth: e.fontInfo.maxDigitWidth, + verticalScrollbarWidth: + i.viewInfo.scrollbar.verticalScrollbarSize, + horizontalScrollbarHeight: + i.viewInfo.scrollbar.horizontalScrollbarSize, + scrollbarArrowSize: i.viewInfo.scrollbar.arrowSize, + verticalScrollbarHasArrows: + i.viewInfo.scrollbar.verticalHasArrows, + minimap: i.viewInfo.minimap.enabled, + minimapSide: i.viewInfo.minimap.side, + minimapRenderCharacters: i.viewInfo.minimap.renderCharacters, + minimapMaxColumn: i.viewInfo.minimap.maxColumn, + pixelRatio: e.pixelRatio, + }), + s = null, + a = i.wordWrap, + u = i.wordWrapColumn, + l = i.wordWrapMinified; + s = + 2 === n + ? { + isWordWrapMinified: !1, + isViewportWrapping: !1, + wrappingColumn: -1, + } + : l && e.isDominatedByLongLines + ? { + isWordWrapMinified: !0, + isViewportWrapping: !0, + wrappingColumn: Math.max(1, o.viewportColumn), + } + : 'on' === a + ? { + isWordWrapMinified: !1, + isViewportWrapping: !0, + wrappingColumn: Math.max(1, o.viewportColumn), + } + : 'bounded' === a + ? { + isWordWrapMinified: !1, + isViewportWrapping: !0, + wrappingColumn: Math.min(Math.max(1, o.viewportColumn), u), + } + : 'wordWrapColumn' === a + ? { + isWordWrapMinified: !1, + isViewportWrapping: !1, + wrappingColumn: u, + } + : { + isWordWrapMinified: !1, + isViewportWrapping: !1, + wrappingColumn: -1, + }; + var c = { + inDiffEditor: i.inDiffEditor, + isDominatedByLongLines: e.isDominatedByLongLines, + isWordWrapMinified: s.isWordWrapMinified, + isViewportWrapping: s.isViewportWrapping, + wrappingColumn: s.wrappingColumn, + wrappingIndent: i.wrappingIndent, + wordWrapBreakBeforeCharacters: i.wordWrapBreakBeforeCharacters, + wordWrapBreakAfterCharacters: i.wordWrapBreakAfterCharacters, + wordWrapBreakObtrusiveCharacters: + i.wordWrapBreakObtrusiveCharacters, + }, + d = 'monaco-editor'; + return ( + i.viewInfo.extraEditorClassName && + (d += ' ' + i.viewInfo.extraEditorClassName), + e.extraEditorClassName && (d += ' ' + e.extraEditorClassName), + i.viewInfo.fontLigatures && (d += ' enable-ligatures'), + 'default' === i.mouseStyle + ? (d += ' mouse-default') + : 'copy' === i.mouseStyle && (d += ' mouse-copy'), + new si({ + canUseLayerHinting: !i.disableLayerHinting, + pixelRatio: e.pixelRatio, + editorClassName: d, + lineHeight: e.fontInfo.lineHeight, + readOnly: i.readOnly, + accessibilitySupport: n, + multiCursorModifier: i.multiCursorModifier, + multiCursorMergeOverlapping: i.multiCursorMergeOverlapping, + wordSeparators: i.wordSeparators, + autoClosingBrackets: i.autoClosingBrackets, + autoClosingQuotes: i.autoClosingQuotes, + autoClosingOvertype: i.autoClosingOvertype, + autoSurround: i.autoSurround, + autoIndent: i.autoIndent, + useTabStops: i.useTabStops, + tabFocusMode: !!i.readOnly || e.tabFocusMode, + dragAndDrop: i.dragAndDrop, + emptySelectionClipboard: + i.emptySelectionClipboard && e.emptySelectionClipboard, + copyWithSyntaxHighlighting: i.copyWithSyntaxHighlighting, + layoutInfo: o, + fontInfo: e.fontInfo, + viewInfo: i.viewInfo, + wrappingInfo: c, + contribInfo: i.contribInfo, + showUnused: i.showUnused, + }) + ); + }), + e + ); + })(), + vi = (function () { + function e() {} + return ( + (e.compute = function (e) { + var t = 0 | e.outerWidth, + n = 0 | e.outerHeight, + r = e.showGlyphMargin, + i = 0 | e.lineHeight, + o = e.showLineNumbers, + s = 0 | e.lineNumbersMinChars, + a = 0 | e.lineNumbersDigitCount, + u = 0 | e.lineDecorationsWidth, + l = e.typicalHalfwidthCharacterWidth, + c = e.maxDigitWidth, + d = 0 | e.verticalScrollbarWidth, + h = e.verticalScrollbarHasArrows, + f = 0 | e.scrollbarArrowSize, + p = 0 | e.horizontalScrollbarHeight, + g = e.minimap, + m = e.minimapSide, + _ = e.minimapRenderCharacters, + y = 0 | e.minimapMaxColumn, + v = e.pixelRatio, + b = 0; + if (o) { + var w = Math.max(a, s); + b = Math.round(w * c); + } + var C = 0; + r && (C = i); + var S, + x, + L, + k, + M = 0, + D = M + C, + E = D + b, + T = E + u, + N = t - C - b - u; + if (g) { + var O = void 0; + v >= 2 + ? ((S = _ ? 2 : 4), (O = 2 / v)) + : ((S = _ ? 1 : 3), (O = 1 / v)), + (L = Math.max(0, Math.floor(((N - d - 2) * O) / (l + O)))) / O > + y && (L = Math.floor(y * O)), + (k = N - L), + 'left' === m + ? ((x = 0), (M += L), (D += L), (E += L), (T += L)) + : (x = t - L - d); + } else (x = 0), (L = 0), (S = 0), (k = N); + var A = h ? f : 0; + return { + width: t, + height: n, + glyphMarginLeft: M, + glyphMarginWidth: C, + glyphMarginHeight: n, + lineNumbersLeft: D, + lineNumbersWidth: b, + lineNumbersHeight: n, + decorationsLeft: E, + decorationsWidth: u, + decorationsHeight: n, + contentLeft: T, + contentWidth: k, + contentHeight: n, + renderMinimap: S, + minimapLeft: x, + minimapWidth: L, + viewportColumn: Math.max(1, Math.floor((k - d - 2) / l)), + verticalScrollbarWidth: d, + horizontalScrollbarHeight: p, + overviewRuler: { top: A, width: d, height: n - 2 * A, right: 0 }, + }; + }), + e + ); + })(), + bi = { + fontFamily: tt.d + ? "Menlo, Monaco, 'Courier New', monospace" + : tt.c + ? "'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'" + : "Consolas, 'Courier New', monospace", + fontWeight: 'normal', + fontSize: tt.d ? 12 : 14, + lineHeight: 0, + letterSpacing: 0, + }, + wi = { + tabSize: 4, + indentSize: 4, + insertSpaces: !0, + detectIndentation: !0, + trimAutoWhitespace: !0, + largeFileOptimizations: !0, + }, + Ci = { + inDiffEditor: !1, + wordSeparators: ei, + lineNumbersMinChars: 5, + lineDecorationsWidth: 10, + readOnly: !1, + mouseStyle: 'text', + disableLayerHinting: !1, + automaticLayout: !1, + wordWrap: 'off', + wordWrapColumn: 80, + wordWrapMinified: !0, + wrappingIndent: 1, + wordWrapBreakBeforeCharacters: '([{‘“〈《「『【〔([{「£¥$£¥++', + wordWrapBreakAfterCharacters: + ' \t})]?|/&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」', + wordWrapBreakObtrusiveCharacters: '.', + autoClosingBrackets: 'languageDefined', + autoClosingQuotes: 'languageDefined', + autoClosingOvertype: 'auto', + autoSurround: 'languageDefined', + autoIndent: !0, + dragAndDrop: !0, + emptySelectionClipboard: !0, + copyWithSyntaxHighlighting: !0, + useTabStops: !0, + multiCursorModifier: 'altKey', + multiCursorMergeOverlapping: !0, + accessibilitySupport: 'auto', + showUnused: !0, + viewInfo: { + extraEditorClassName: '', + disableMonospaceOptimizations: !1, + rulers: [], + ariaLabel: De('editorViewAccessibleLabel', 'Editor content'), + renderLineNumbers: 1, + renderCustomLineNumbers: null, + cursorSurroundingLines: 0, + renderFinalNewline: !0, + selectOnLineNumbers: !0, + glyphMargin: !0, + revealHorizontalRightPadding: 30, + roundedSelection: !0, + overviewRulerLanes: 2, + overviewRulerBorder: !0, + cursorBlinking: 1, + mouseWheelZoom: !1, + cursorSmoothCaretAnimation: !1, + cursorStyle: ii.Line, + cursorWidth: 0, + hideCursorInOverviewRuler: !1, + scrollBeyondLastLine: !0, + scrollBeyondLastColumn: 5, + smoothScrolling: !1, + stopRenderingLineAfter: 1e4, + renderWhitespace: 'none', + renderControlCharacters: !1, + fontLigatures: !1, + renderIndentGuides: !0, + highlightActiveIndentGuide: !0, + renderLineHighlight: 'line', + scrollbar: { + vertical: 1, + horizontal: 1, + arrowSize: 11, + useShadows: !0, + verticalHasArrows: !1, + horizontalHasArrows: !1, + horizontalScrollbarSize: 10, + horizontalSliderSize: 10, + verticalScrollbarSize: 14, + verticalSliderSize: 14, + handleMouseWheel: !0, + mouseWheelScrollSensitivity: 1, + fastScrollSensitivity: 5, + }, + minimap: { + enabled: !0, + side: 'right', + showSlider: 'mouseover', + renderCharacters: !0, + maxColumn: 120, + }, + fixedOverflowWidgets: !1, + }, + contribInfo: { + selectionClipboard: !0, + hover: { enabled: !0, delay: 300, sticky: !0 }, + links: !0, + contextmenu: !0, + quickSuggestions: { other: !0, comments: !1, strings: !1 }, + quickSuggestionsDelay: 10, + parameterHints: { enabled: !0, cycle: !1 }, + formatOnType: !1, + formatOnPaste: !1, + suggestOnTriggerCharacters: !0, + acceptSuggestionOnEnter: 'on', + acceptSuggestionOnCommitCharacter: !0, + wordBasedSuggestions: !0, + suggestSelection: 'recentlyUsed', + suggestFontSize: 0, + suggestLineHeight: 0, + tabCompletion: 'off', + suggest: { + filterGraceful: !0, + snippets: 'inline', + snippetsPreventQuickSuggestions: !0, + localityBonus: !1, + shareSuggestSelections: !1, + showIcons: !0, + maxVisibleSuggestions: 12, + filteredTypes: Object.create(null), + }, + gotoLocation: { multiple: 'peek' }, + selectionHighlight: !0, + occurrencesHighlight: !0, + codeLens: !0, + folding: !0, + foldingStrategy: 'auto', + showFoldingControls: 'mouseover', + matchBrackets: !0, + find: { + seedSearchStringFromSelection: !0, + autoFindInSelection: !1, + globalFindClipboard: !1, + addExtraSpaceOnTop: !0, + }, + colorDecorators: !0, + lightbulbEnabled: !0, + codeActionsOnSave: {}, + codeActionsOnSaveTimeout: 750, + }, + }; + !(function (e) { + (e[(e.Left = 1)] = 'Left'), + (e[(e.Center = 2)] = 'Center'), + (e[(e.Right = 4)] = 'Right'), + (e[(e.Full = 7)] = 'Full'); + })(gi || (gi = {})), + (function (e) { + e[(e.Inline = 1)] = 'Inline'; + })(mi || (mi = {})); + var Si = (function () { + function e(e) { + (this.tabSize = 0 | e.tabSize), + (this.indentSize = 0 | e.tabSize), + (this.insertSpaces = Boolean(e.insertSpaces)), + (this.defaultEOL = 0 | e.defaultEOL), + (this.trimAutoWhitespace = Boolean(e.trimAutoWhitespace)); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.tabSize === e.tabSize && + this.indentSize === e.indentSize && + this.insertSpaces === e.insertSpaces && + this.defaultEOL === e.defaultEOL && + this.trimAutoWhitespace === e.trimAutoWhitespace + ); + }), + (e.prototype.createChangeEvent = function (e) { + return { + tabSize: this.tabSize !== e.tabSize, + indentSize: this.indentSize !== e.indentSize, + insertSpaces: this.insertSpaces !== e.insertSpaces, + trimAutoWhitespace: + this.trimAutoWhitespace !== e.trimAutoWhitespace, + }; + }), + e + ); + })(), + xi = function (e, t) { + (this.range = e), (this.matches = t); + }, + Li = function (e, t, n) { + (this.reverseEdits = e), + (this.changes = t), + (this.trimAutoWhitespaceLineNumbers = n); + }, + ki = (function () { + function e(e, t) { + (this.beforeVersionId = e), + (this.beforeCursorState = t), + (this.afterCursorState = null), + (this.afterVersionId = -1), + (this.editOperations = []); + } + return ( + (e.prototype.undo = function (e) { + for (var t = this.editOperations.length - 1; t >= 0; t--) + this.editOperations[t] = { + operations: e.applyEdits(this.editOperations[t].operations), + }; + }), + (e.prototype.redo = function (e) { + for (var t = 0; t < this.editOperations.length; t++) + this.editOperations[t] = { + operations: e.applyEdits(this.editOperations[t].operations), + }; + }), + e + ); + })(); + function Mi(e) { + return '\n' === e.getEOL() ? 0 : 1; + } + var Di = (function () { + function e(e, t) { + (this.beforeVersionId = e), + (this.beforeCursorState = null), + (this.afterCursorState = null), + (this.afterVersionId = -1), + (this.eol = t); + } + return ( + (e.prototype.undo = function (e) { + var t = Mi(e); + e.setEOL(this.eol), (this.eol = t); + }), + (e.prototype.redo = function (e) { + var t = Mi(e); + e.setEOL(this.eol), (this.eol = t); + }), + e + ); + })(), + Ei = (function () { + function e(e) { + (this.model = e), + (this.currentOpenStackElement = null), + (this.past = []), + (this.future = []); + } + return ( + (e.prototype.pushStackElement = function () { + null !== this.currentOpenStackElement && + (this.past.push(this.currentOpenStackElement), + (this.currentOpenStackElement = null)); + }), + (e.prototype.clear = function () { + (this.currentOpenStackElement = null), + (this.past = []), + (this.future = []); + }), + (e.prototype.pushEOL = function (e) { + (this.future = []), + this.currentOpenStackElement && this.pushStackElement(); + var t = Mi(this.model), + n = new Di(this.model.getAlternativeVersionId(), t); + this.model.setEOL(e), + (n.afterVersionId = this.model.getVersionId()), + (this.currentOpenStackElement = n), + this.pushStackElement(); + }), + (e.prototype.pushEditOperation = function (t, n, r) { + this.future = []; + var i = null; + this.currentOpenStackElement && + (this.currentOpenStackElement instanceof ki + ? (i = this.currentOpenStackElement) + : this.pushStackElement()), + this.currentOpenStackElement || + ((i = new ki(this.model.getAlternativeVersionId(), t)), + (this.currentOpenStackElement = i)); + var o = { operations: this.model.applyEdits(n) }; + return ( + i.editOperations.push(o), + (i.afterCursorState = e._computeCursorState(r, o.operations)), + (i.afterVersionId = this.model.getVersionId()), + i.afterCursorState + ); + }), + (e._computeCursorState = function (e, t) { + try { + return e ? e(t) : null; + } catch (e) { + return qe(e), null; + } + }), + (e.prototype.undo = function () { + if ((this.pushStackElement(), this.past.length > 0)) { + var e = this.past.pop(); + try { + e.undo(this.model); + } catch (e) { + return qe(e), this.clear(), null; + } + return ( + this.future.push(e), + { + selections: e.beforeCursorState, + recordedVersionId: e.beforeVersionId, + } + ); + } + return null; + }), + (e.prototype.canUndo = function () { + return ( + this.past.length > 0 || null !== this.currentOpenStackElement + ); + }), + (e.prototype.redo = function () { + if (this.future.length > 0) { + var e = this.future.pop(); + try { + e.redo(this.model); + } catch (e) { + return qe(e), this.clear(), null; + } + return ( + this.past.push(e), + { + selections: e.afterCursorState, + recordedVersionId: e.afterVersionId, + } + ); + } + return null; + }), + (e.prototype.canRedo = function () { + return this.future.length > 0; + }), + e + ); + })(), + Ti = function () { + (this.spacesDiff = 0), (this.looksLikeAlignment = !1); + }; + function Ni(e, t, n, r, i) { + var o; + for ( + i.spacesDiff = 0, i.looksLikeAlignment = !1, o = 0; + o < t && o < r; + o++ + ) { + if (e.charCodeAt(o) !== n.charCodeAt(o)) break; + } + for (var s = 0, a = 0, u = o; u < t; u++) { + 32 === e.charCodeAt(u) ? s++ : a++; + } + var l = 0, + c = 0; + for (u = o; u < r; u++) { + 32 === n.charCodeAt(u) ? l++ : c++; + } + if (!((s > 0 && a > 0) || (l > 0 && c > 0))) { + var d = Math.abs(a - c), + h = Math.abs(s - l); + if (0 === d) + return ( + (i.spacesDiff = h), + void ( + h > 0 && + 0 <= l - 1 && + l - 1 < e.length && + l < n.length && + 32 !== n.charCodeAt(l) && + 32 === e.charCodeAt(l - 1) && + (i.looksLikeAlignment = !0) + ) + ); + h % d != 0 || (i.spacesDiff = h / d); + } + } + function Oi(e, t, n) { + for ( + var r = Math.min(e.getLineCount(), 1e4), + i = 0, + o = 0, + s = '', + a = 0, + u = [0, 0, 0, 0, 0, 0, 0, 0, 0], + l = new Ti(), + c = 1; + c <= r; + c++ + ) { + for ( + var d = e.getLineLength(c), + h = e.getLineContent(c), + f = d <= 65536, + p = !1, + g = 0, + m = 0, + _ = 0, + y = 0, + v = d; + y < v; + y++ + ) { + var b = f ? h.charCodeAt(y) : e.getLineCharCode(c, y); + if (9 === b) _++; + else { + if (32 !== b) { + (p = !0), (g = y); + break; + } + m++; + } + } + if ( + p && + (_ > 0 ? i++ : m > 1 && o++, + Ni(s, a, h, g, l), + !l.looksLikeAlignment || (n && t === l.spacesDiff)) + ) { + var w = l.spacesDiff; + w <= 8 && u[w]++, (s = h), (a = g); + } + } + var C = n; + i !== o && (C = i < o); + var S = t; + if (C) { + var x = C ? 0 : 0.1 * r; + [2, 4, 6, 8, 3, 5, 7].forEach(function (e) { + var t = u[e]; + t > x && ((x = t), (S = e)); + }), + 4 === S && u[4] > 0 && u[2] > 0 && u[2] >= u[4] / 2 && (S = 2); + } + return { insertSpaces: C, tabSize: S }; + } + function Ai(e) { + return (1 & e.metadata) >>> 0; + } + function Ii(e, t) { + e.metadata = (254 & e.metadata) | (t << 0); + } + function Pi(e) { + return (2 & e.metadata) >>> 1 == 1; + } + function Ri(e, t) { + e.metadata = (253 & e.metadata) | ((t ? 1 : 0) << 1); + } + function Fi(e) { + return (4 & e.metadata) >>> 2 == 1; + } + function Yi(e, t) { + e.metadata = (251 & e.metadata) | ((t ? 1 : 0) << 2); + } + function ji(e) { + return (8 & e.metadata) >>> 3 == 1; + } + function Bi(e, t) { + e.metadata = (247 & e.metadata) | ((t ? 1 : 0) << 3); + } + function Wi(e, t) { + e.metadata = (207 & e.metadata) | (t << 4); + } + function Hi(e, t) { + e.metadata = (191 & e.metadata) | ((t ? 1 : 0) << 6); + } + var Vi = (function () { + function e(e, t, n) { + (this.metadata = 0), + (this.parent = this), + (this.left = this), + (this.right = this), + Ii(this, 1), + (this.start = t), + (this.end = n), + (this.delta = 0), + (this.maxEnd = n), + (this.id = e), + (this.ownerId = 0), + (this.options = null), + Yi(this, !1), + Wi(this, 1), + Bi(this, !1), + Hi(this, !1), + (this.cachedVersionId = 0), + (this.cachedAbsoluteStart = t), + (this.cachedAbsoluteEnd = n), + (this.range = null), + Ri(this, !1); + } + return ( + (e.prototype.reset = function (e, t, n, r) { + (this.start = t), + (this.end = n), + (this.maxEnd = n), + (this.cachedVersionId = e), + (this.cachedAbsoluteStart = t), + (this.cachedAbsoluteEnd = n), + (this.range = r); + }), + (e.prototype.setOptions = function (e) { + this.options = e; + var t = this.options.className; + Yi( + this, + 'squiggly-error' === t || + 'squiggly-warning' === t || + 'squiggly-info' === t + ), + Wi(this, this.options.stickiness), + Bi( + this, + !( + !this.options.overviewRuler || + !this.options.overviewRuler.color + ) + ), + Hi(this, this.options.collapseOnReplaceEdit); + }), + (e.prototype.setCachedOffsets = function (e, t, n) { + this.cachedVersionId !== n && (this.range = null), + (this.cachedVersionId = n), + (this.cachedAbsoluteStart = e), + (this.cachedAbsoluteEnd = t); + }), + (e.prototype.detach = function () { + (this.parent = null), (this.left = null), (this.right = null); + }), + e + ); + })(), + zi = new Vi(null, 0, 0); + (zi.parent = zi), (zi.left = zi), (zi.right = zi), Ii(zi, 0); + var Ui = (function () { + function e() { + (this.root = zi), (this.requestNormalizeDelta = !1); + } + return ( + (e.prototype.intervalSearch = function (e, t, n, r, i) { + return this.root === zi + ? [] + : (function (e, t, n, r, i, o) { + var s = e.root, + a = 0, + u = 0, + l = 0, + c = [], + d = 0; + for (; s !== zi; ) + if (Pi(s)) + Ri(s.left, !1), + Ri(s.right, !1), + s === s.parent.right && (a -= s.parent.delta), + (s = s.parent); + else { + if (!Pi(s.left)) { + if (a + s.maxEnd < t) { + Ri(s, !0); + continue; + } + if (s.left !== zi) { + s = s.left; + continue; + } + } + if ((u = a + s.start) > n) Ri(s, !0); + else { + if ((l = a + s.end) >= t) { + s.setCachedOffsets(u, l, o); + var h = !0; + r && s.ownerId && s.ownerId !== r && (h = !1), + i && Fi(s) && (h = !1), + h && (c[d++] = s); + } + Ri(s, !0), + s.right === zi || + Pi(s.right) || + ((a += s.delta), (s = s.right)); + } + } + return Ri(e.root, !1), c; + })(this, e, t, n, r, i); + }), + (e.prototype.search = function (e, t, n) { + return this.root === zi + ? [] + : (function (e, t, n, r) { + var i = e.root, + o = 0, + s = 0, + a = 0, + u = [], + l = 0; + for (; i !== zi; ) + if (Pi(i)) + Ri(i.left, !1), + Ri(i.right, !1), + i === i.parent.right && (o -= i.parent.delta), + (i = i.parent); + else if (i.left === zi || Pi(i.left)) { + (s = o + i.start), + (a = o + i.end), + i.setCachedOffsets(s, a, r); + var c = !0; + t && i.ownerId && i.ownerId !== t && (c = !1), + n && Fi(i) && (c = !1), + c && (u[l++] = i), + Ri(i, !0), + i.right === zi || + Pi(i.right) || + ((o += i.delta), (i = i.right)); + } else i = i.left; + return Ri(e.root, !1), u; + })(this, e, t, n); + }), + (e.prototype.collectNodesFromOwner = function (e) { + return (function (e, t) { + var n = e.root, + r = [], + i = 0; + for (; n !== zi; ) + Pi(n) + ? (Ri(n.left, !1), Ri(n.right, !1), (n = n.parent)) + : n.left === zi || Pi(n.left) + ? (n.ownerId === t && (r[i++] = n), + Ri(n, !0), + n.right === zi || Pi(n.right) || (n = n.right)) + : (n = n.left); + return Ri(e.root, !1), r; + })(this, e); + }), + (e.prototype.collectNodesPostOrder = function () { + return (function (e) { + var t = e.root, + n = [], + r = 0; + for (; t !== zi; ) + Pi(t) + ? (Ri(t.left, !1), Ri(t.right, !1), (t = t.parent)) + : t.left === zi || Pi(t.left) + ? t.right === zi || Pi(t.right) + ? ((n[r++] = t), Ri(t, !0)) + : (t = t.right) + : (t = t.left); + return Ri(e.root, !1), n; + })(this); + }), + (e.prototype.insert = function (e) { + Gi(this, e), this._normalizeDeltaIfNecessary(); + }), + (e.prototype.delete = function (e) { + $i(this, e), this._normalizeDeltaIfNecessary(); + }), + (e.prototype.resolveNode = function (e, t) { + for (var n = e, r = 0; e !== this.root; ) + e === e.parent.right && (r += e.parent.delta), (e = e.parent); + var i = n.start + r, + o = n.end + r; + n.setCachedOffsets(i, o, t); + }), + (e.prototype.acceptReplace = function (e, t, n, r) { + for ( + var i = (function (e, t, n) { + var r = e.root, + i = 0, + o = 0, + s = 0, + a = [], + u = 0; + for (; r !== zi; ) + if (Pi(r)) + Ri(r.left, !1), + Ri(r.right, !1), + r === r.parent.right && (i -= r.parent.delta), + (r = r.parent); + else { + if (!Pi(r.left)) { + if (i + r.maxEnd < t) { + Ri(r, !0); + continue; + } + if (r.left !== zi) { + r = r.left; + continue; + } + } + (o = i + r.start) > n + ? Ri(r, !0) + : ((s = i + r.end) >= t && + (r.setCachedOffsets(o, s, 0), (a[u++] = r)), + Ri(r, !0), + r.right === zi || + Pi(r.right) || + ((i += r.delta), (r = r.right))); + } + return Ri(e.root, !1), a; + })(this, e, e + t), + o = 0, + s = i.length; + o < s; + o++ + ) { + $i(this, (a = i[o])); + } + this._normalizeDeltaIfNecessary(), + (function (e, t, n, r) { + var i = e.root, + o = 0, + s = r - (n - t); + for (; i !== zi; ) + if (Pi(i)) + Ri(i.left, !1), + Ri(i.right, !1), + i === i.parent.right && (o -= i.parent.delta), + eo(i), + (i = i.parent); + else { + if (!Pi(i.left)) { + if (o + i.maxEnd < t) { + Ri(i, !0); + continue; + } + if (i.left !== zi) { + i = i.left; + continue; + } + } + o + i.start > n + ? ((i.start += s), + (i.end += s), + (i.delta += s), + (i.delta < -1073741824 || i.delta > 1073741824) && + (e.requestNormalizeDelta = !0), + Ri(i, !0)) + : (Ri(i, !0), + i.right === zi || + Pi(i.right) || + ((o += i.delta), (i = i.right))); + } + Ri(e.root, !1); + })(this, e, e + t, n), + this._normalizeDeltaIfNecessary(); + for (o = 0, s = i.length; o < s; o++) { + var a; + ((a = i[o]).start = a.cachedAbsoluteStart), + (a.end = a.cachedAbsoluteEnd), + Ki(a, e, e + t, n, r), + (a.maxEnd = a.end), + Gi(this, a); + } + this._normalizeDeltaIfNecessary(); + }), + (e.prototype._normalizeDeltaIfNecessary = function () { + this.requestNormalizeDelta && + ((this.requestNormalizeDelta = !1), + (function (e) { + var t = e.root, + n = 0; + for (; t !== zi; ) + t.left === zi || Pi(t.left) + ? t.right === zi || Pi(t.right) + ? ((t.start = n + t.start), + (t.end = n + t.end), + (t.delta = 0), + eo(t), + Ri(t, !0), + Ri(t.left, !1), + Ri(t.right, !1), + t === t.parent.right && (n -= t.parent.delta), + (t = t.parent)) + : ((n += t.delta), (t = t.right)) + : (t = t.left); + Ri(e.root, !1); + })(this)); + }), + e + ); + })(); + function qi(e, t, n, r) { + return e < n || (!(e > n) && 1 !== r && (2 === r || t)); + } + function Ki(e, t, n, r, i) { + var o = (function (e) { + return (48 & e.metadata) >>> 4; + })(e), + s = 0 === o || 2 === o, + a = 1 === o || 2 === o, + u = n - t, + l = r, + c = Math.min(u, l), + d = e.start, + h = !1, + f = e.end, + p = !1; + t <= d && + f <= n && + (function (e) { + return (64 & e.metadata) >>> 6 == 1; + })(e) && + ((e.start = t), (h = !0), (e.end = t), (p = !0)); + var g = i ? 1 : u > 0 ? 2 : 0; + if ( + (!h && qi(d, s, t, g) && (h = !0), + !p && qi(f, a, t, g) && (p = !0), + c > 0 && !i) + ) { + g = u > l ? 2 : 0; + !h && qi(d, s, t + c, g) && (h = !0), + !p && qi(f, a, t + c, g) && (p = !0); + } + g = i ? 1 : 0; + !h && qi(d, s, n, g) && ((e.start = t + l), (h = !0)), + !p && qi(f, a, n, g) && ((e.end = t + l), (p = !0)); + var m = l - u; + h || (e.start = Math.max(0, d + m)), + p || (e.end = Math.max(0, f + m)), + e.start > e.end && (e.end = e.start); + } + function Gi(e, t) { + if (e.root === zi) + return ( + (t.parent = zi), + (t.left = zi), + (t.right = zi), + Ii(t, 0), + (e.root = t), + e.root + ); + !(function (e, t) { + var n = 0, + r = e.root, + i = t.start, + o = t.end; + for (;;) { + if (no(i, o, r.start + n, r.end + n) < 0) { + if (r.left === zi) { + (t.start -= n), (t.end -= n), (t.maxEnd -= n), (r.left = t); + break; + } + r = r.left; + } else { + if (r.right === zi) { + (t.start -= n + r.delta), + (t.end -= n + r.delta), + (t.maxEnd -= n + r.delta), + (r.right = t); + break; + } + (n += r.delta), (r = r.right); + } + } + (t.parent = r), (t.left = zi), (t.right = zi), Ii(t, 1); + })(e, t), + to(t.parent); + for (var n = t; n !== e.root && 1 === Ai(n.parent); ) { + var r; + if (n.parent === n.parent.parent.left) + 1 === Ai((r = n.parent.parent.right)) + ? (Ii(n.parent, 0), + Ii(r, 0), + Ii(n.parent.parent, 1), + (n = n.parent.parent)) + : (n === n.parent.right && Xi(e, (n = n.parent)), + Ii(n.parent, 0), + Ii(n.parent.parent, 1), + Ji(e, n.parent.parent)); + else + 1 === Ai((r = n.parent.parent.left)) + ? (Ii(n.parent, 0), + Ii(r, 0), + Ii(n.parent.parent, 1), + (n = n.parent.parent)) + : (n === n.parent.left && Ji(e, (n = n.parent)), + Ii(n.parent, 0), + Ii(n.parent.parent, 1), + Xi(e, n.parent.parent)); + } + return Ii(e.root, 0), t; + } + function $i(e, t) { + var n, r; + if ( + (t.left === zi + ? ((r = t), + ((n = t.right).delta += t.delta), + (n.delta < -1073741824 || n.delta > 1073741824) && + (e.requestNormalizeDelta = !0), + (n.start += t.delta), + (n.end += t.delta)) + : t.right === zi + ? ((n = t.left), (r = t)) + : (((n = (r = (function (e) { + for (; e.left !== zi; ) e = e.left; + return e; + })(t.right)).right).start += r.delta), + (n.end += r.delta), + (n.delta += r.delta), + (n.delta < -1073741824 || n.delta > 1073741824) && + (e.requestNormalizeDelta = !0), + (r.start += t.delta), + (r.end += t.delta), + (r.delta = t.delta), + (r.delta < -1073741824 || r.delta > 1073741824) && + (e.requestNormalizeDelta = !0)), + r === e.root) + ) + return ( + (e.root = n), + Ii(n, 0), + t.detach(), + Zi(), + eo(n), + void (e.root.parent = zi) + ); + var i, + o = 1 === Ai(r); + if ( + (r === r.parent.left ? (r.parent.left = n) : (r.parent.right = n), + r === t + ? (n.parent = r.parent) + : (r.parent === t ? (n.parent = r) : (n.parent = r.parent), + (r.left = t.left), + (r.right = t.right), + (r.parent = t.parent), + Ii(r, Ai(t)), + t === e.root + ? (e.root = r) + : t === t.parent.left + ? (t.parent.left = r) + : (t.parent.right = r), + r.left !== zi && (r.left.parent = r), + r.right !== zi && (r.right.parent = r)), + t.detach(), + o) + ) + return to(n.parent), r !== t && (to(r), to(r.parent)), void Zi(); + for ( + to(n), to(n.parent), r !== t && (to(r), to(r.parent)); + n !== e.root && 0 === Ai(n); + + ) + n === n.parent.left + ? (1 === Ai((i = n.parent.right)) && + (Ii(i, 0), + Ii(n.parent, 1), + Xi(e, n.parent), + (i = n.parent.right)), + 0 === Ai(i.left) && 0 === Ai(i.right) + ? (Ii(i, 1), (n = n.parent)) + : (0 === Ai(i.right) && + (Ii(i.left, 0), Ii(i, 1), Ji(e, i), (i = n.parent.right)), + Ii(i, Ai(n.parent)), + Ii(n.parent, 0), + Ii(i.right, 0), + Xi(e, n.parent), + (n = e.root))) + : (1 === Ai((i = n.parent.left)) && + (Ii(i, 0), Ii(n.parent, 1), Ji(e, n.parent), (i = n.parent.left)), + 0 === Ai(i.left) && 0 === Ai(i.right) + ? (Ii(i, 1), (n = n.parent)) + : (0 === Ai(i.left) && + (Ii(i.right, 0), Ii(i, 1), Xi(e, i), (i = n.parent.left)), + Ii(i, Ai(n.parent)), + Ii(n.parent, 0), + Ii(i.left, 0), + Ji(e, n.parent), + (n = e.root))); + Ii(n, 0), Zi(); + } + function Zi() { + (zi.parent = zi), (zi.delta = 0), (zi.start = 0), (zi.end = 0); + } + function Xi(e, t) { + var n = t.right; + (n.delta += t.delta), + (n.delta < -1073741824 || n.delta > 1073741824) && + (e.requestNormalizeDelta = !0), + (n.start += t.delta), + (n.end += t.delta), + (t.right = n.left), + n.left !== zi && (n.left.parent = t), + (n.parent = t.parent), + t.parent === zi + ? (e.root = n) + : t === t.parent.left + ? (t.parent.left = n) + : (t.parent.right = n), + (n.left = t), + (t.parent = n), + eo(t), + eo(n); + } + function Ji(e, t) { + var n = t.left; + (t.delta -= n.delta), + (t.delta < -1073741824 || t.delta > 1073741824) && + (e.requestNormalizeDelta = !0), + (t.start -= n.delta), + (t.end -= n.delta), + (t.left = n.right), + n.right !== zi && (n.right.parent = t), + (n.parent = t.parent), + t.parent === zi + ? (e.root = n) + : t === t.parent.right + ? (t.parent.right = n) + : (t.parent.left = n), + (n.right = t), + (t.parent = n), + eo(t), + eo(n); + } + function Qi(e) { + var t = e.end; + if (e.left !== zi) { + var n = e.left.maxEnd; + n > t && (t = n); + } + if (e.right !== zi) { + var r = e.right.maxEnd + e.delta; + r > t && (t = r); + } + return t; + } + function eo(e) { + e.maxEnd = Qi(e); + } + function to(e) { + for (; e !== zi; ) { + var t = Qi(e); + if (e.maxEnd === t) return; + (e.maxEnd = t), (e = e.parent); + } + } + function no(e, t, n, r) { + return e === n ? t - r : e - n; + } + var ro = (function () { + function e(e, t) { + (this.piece = e), + (this.color = t), + (this.size_left = 0), + (this.lf_left = 0), + (this.parent = this), + (this.left = this), + (this.right = this); + } + return ( + (e.prototype.next = function () { + if (this.right !== io) return oo(this.right); + for (var e = this; e.parent !== io && e.parent.left !== e; ) + e = e.parent; + return e.parent === io ? io : e.parent; + }), + (e.prototype.prev = function () { + if (this.left !== io) return so(this.left); + for (var e = this; e.parent !== io && e.parent.right !== e; ) + e = e.parent; + return e.parent === io ? io : e.parent; + }), + (e.prototype.detach = function () { + (this.parent = null), (this.left = null), (this.right = null); + }), + e + ); + })(), + io = new ro(null, 0); + function oo(e) { + for (; e.left !== io; ) e = e.left; + return e; + } + function so(e) { + for (; e.right !== io; ) e = e.right; + return e; + } + function ao(e) { + return e === io ? 0 : e.size_left + e.piece.length + ao(e.right); + } + function uo(e) { + return e === io ? 0 : e.lf_left + e.piece.lineFeedCnt + uo(e.right); + } + function lo() { + io.parent = io; + } + function co(e, t) { + var n = t.right; + (n.size_left += t.size_left + (t.piece ? t.piece.length : 0)), + (n.lf_left += t.lf_left + (t.piece ? t.piece.lineFeedCnt : 0)), + (t.right = n.left), + n.left !== io && (n.left.parent = t), + (n.parent = t.parent), + t.parent === io + ? (e.root = n) + : t.parent.left === t + ? (t.parent.left = n) + : (t.parent.right = n), + (n.left = t), + (t.parent = n); + } + function ho(e, t) { + var n = t.left; + (t.left = n.right), + n.right !== io && (n.right.parent = t), + (n.parent = t.parent), + (t.size_left -= n.size_left + (n.piece ? n.piece.length : 0)), + (t.lf_left -= n.lf_left + (n.piece ? n.piece.lineFeedCnt : 0)), + t.parent === io + ? (e.root = n) + : t === t.parent.right + ? (t.parent.right = n) + : (t.parent.left = n), + (n.right = t), + (t.parent = n); + } + function fo(e, t) { + var n, r; + if ( + ((n = + t.left === io + ? (r = t).right + : t.right === io + ? (r = t).left + : (r = oo(t.right)).right), + r === e.root) + ) + return ( + (e.root = n), + (n.color = 0), + t.detach(), + lo(), + void (e.root.parent = io) + ); + var i = 1 === r.color; + if ( + (r === r.parent.left ? (r.parent.left = n) : (r.parent.right = n), + r === t + ? ((n.parent = r.parent), mo(e, n)) + : (r.parent === t ? (n.parent = r) : (n.parent = r.parent), + mo(e, n), + (r.left = t.left), + (r.right = t.right), + (r.parent = t.parent), + (r.color = t.color), + t === e.root + ? (e.root = r) + : t === t.parent.left + ? (t.parent.left = r) + : (t.parent.right = r), + r.left !== io && (r.left.parent = r), + r.right !== io && (r.right.parent = r), + (r.size_left = t.size_left), + (r.lf_left = t.lf_left), + mo(e, r)), + t.detach(), + n.parent.left === n) + ) { + var o = ao(n), + s = uo(n); + if (o !== n.parent.size_left || s !== n.parent.lf_left) { + var a = o - n.parent.size_left, + u = s - n.parent.lf_left; + (n.parent.size_left = o), + (n.parent.lf_left = s), + go(e, n.parent, a, u); + } + } + if ((mo(e, n.parent), i)) lo(); + else { + for (var l; n !== e.root && 0 === n.color; ) + n === n.parent.left + ? (1 === (l = n.parent.right).color && + ((l.color = 0), + (n.parent.color = 1), + co(e, n.parent), + (l = n.parent.right)), + 0 === l.left.color && 0 === l.right.color + ? ((l.color = 1), (n = n.parent)) + : (0 === l.right.color && + ((l.left.color = 0), + (l.color = 1), + ho(e, l), + (l = n.parent.right)), + (l.color = n.parent.color), + (n.parent.color = 0), + (l.right.color = 0), + co(e, n.parent), + (n = e.root))) + : (1 === (l = n.parent.left).color && + ((l.color = 0), + (n.parent.color = 1), + ho(e, n.parent), + (l = n.parent.left)), + 0 === l.left.color && 0 === l.right.color + ? ((l.color = 1), (n = n.parent)) + : (0 === l.left.color && + ((l.right.color = 0), + (l.color = 1), + co(e, l), + (l = n.parent.left)), + (l.color = n.parent.color), + (n.parent.color = 0), + (l.left.color = 0), + ho(e, n.parent), + (n = e.root))); + (n.color = 0), lo(); + } + } + function po(e, t) { + for (mo(e, t); t !== e.root && 1 === t.parent.color; ) { + var n; + if (t.parent === t.parent.parent.left) + 1 === (n = t.parent.parent.right).color + ? ((t.parent.color = 0), + (n.color = 0), + (t.parent.parent.color = 1), + (t = t.parent.parent)) + : (t === t.parent.right && co(e, (t = t.parent)), + (t.parent.color = 0), + (t.parent.parent.color = 1), + ho(e, t.parent.parent)); + else + 1 === (n = t.parent.parent.left).color + ? ((t.parent.color = 0), + (n.color = 0), + (t.parent.parent.color = 1), + (t = t.parent.parent)) + : (t === t.parent.left && ho(e, (t = t.parent)), + (t.parent.color = 0), + (t.parent.parent.color = 1), + co(e, t.parent.parent)); + } + e.root.color = 0; + } + function go(e, t, n, r) { + for (; t !== e.root && t !== io; ) + t.parent.left === t && + ((t.parent.size_left += n), (t.parent.lf_left += r)), + (t = t.parent); + } + function mo(e, t) { + var n = 0, + r = 0; + if (t !== e.root) { + if (0 === n) { + for (; t !== e.root && t === t.parent.right; ) t = t.parent; + if (t === e.root) return; + (n = ao((t = t.parent).left) - t.size_left), + (r = uo(t.left) - t.lf_left), + (t.size_left += n), + (t.lf_left += r); + } + for (; t !== e.root && (0 !== n || 0 !== r); ) + t.parent.left === t && + ((t.parent.size_left += n), (t.parent.lf_left += r)), + (t = t.parent); + } + } + (io.parent = io), (io.left = io), (io.right = io), (io.color = 0); + var _o = (function () { + function e(e, t, n) { + for (var r = new Uint8Array(e * t), i = 0, o = e * t; i < o; i++) + r[i] = n; + (this._data = r), (this.rows = e), (this.cols = t); + } + return ( + (e.prototype.get = function (e, t) { + return this._data[e * this.cols + t]; + }), + (e.prototype.set = function (e, t, n) { + this._data[e * this.cols + t] = n; + }), + e + ); + })(); + function yo(e) { + return e < 0 ? 0 : e > 255 ? 255 : 0 | e; + } + function vo(e) { + return e < 0 ? 0 : e > 4294967295 ? 4294967295 : 0 | e; + } + var bo = (function () { + function e(t) { + var n = yo(t); + (this._defaultValue = n), + (this._asciiMap = e._createAsciiMap(n)), + (this._map = new Map()); + } + return ( + (e._createAsciiMap = function (e) { + for (var t = new Uint8Array(256), n = 0; n < 256; n++) t[n] = e; + return t; + }), + (e.prototype.set = function (e, t) { + var n = yo(t); + e >= 0 && e < 256 ? (this._asciiMap[e] = n) : this._map.set(e, n); + }), + (e.prototype.get = function (e) { + return e >= 0 && e < 256 + ? this._asciiMap[e] + : this._map.get(e) || this._defaultValue; + }), + e + ); + })(), + wo = + ((function () { + function e() { + this._actual = new bo(0); + } + (e.prototype.add = function (e) { + this._actual.set(e, 1); + }), + (e.prototype.has = function (e) { + return 1 === this._actual.get(e); + }); + })(), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + Co = (function (e) { + function t(t) { + for (var n = e.call(this, 0) || this, r = 0, i = t.length; r < i; r++) + n.set(t.charCodeAt(r), 2); + return n.set(32, 1), n.set(9, 1), n; + } + return wo(t, e), t; + })(bo); + var So, + xo, + Lo = + ((So = function (e) { + return new Co(e); + }), + (xo = {}), + function (e) { + return xo.hasOwnProperty(e) || (xo[e] = So(e)), xo[e]; + }), + ko = (function () { + function e(e, t, n, r) { + (this.searchString = e), + (this.isRegex = t), + (this.matchCase = n), + (this.wordSeparators = r); + } + return ( + (e.prototype.parseSearchRequest = function () { + if ('' === this.searchString) return null; + var e; + e = this.isRegex + ? (function (e) { + if (!e || 0 === e.length) return !1; + for (var t = 0, n = e.length; t < n; t++) { + if (92 === e.charCodeAt(t)) { + if (++t >= n) break; + var r = e.charCodeAt(t); + if (110 === r || 114 === r || 87 === r) return !0; + } + } + return !1; + })(this.searchString) + : this.searchString.indexOf('\n') >= 0; + var t = null; + try { + t = hn(this.searchString, this.isRegex, { + matchCase: this.matchCase, + wholeWord: !1, + multiline: e, + global: !0, + }); + } catch (e) { + return null; + } + if (!t) return null; + var n = !this.isRegex && !e; + return ( + n && + this.searchString.toLowerCase() !== + this.searchString.toUpperCase() && + (n = this.matchCase), + new Mo( + t, + this.wordSeparators ? Lo(this.wordSeparators) : null, + n ? this.searchString : null + ) + ); + }), + e + ); + })(); + var Mo = function (e, t, n) { + (this.regex = e), (this.wordSeparators = t), (this.simpleSearch = n); + }; + function Do(e, t, n) { + if (!n) return new xi(e, null); + for (var r = [], i = 0, o = t.length; i < o; i++) r[i] = t[i]; + return new xi(e, r); + } + var Eo = (function () { + function e(e) { + for (var t = [], n = 0, r = 0, i = e.length; r < i; r++) + 10 === e.charCodeAt(r) && (t[n++] = r); + this._lineFeedsOffsets = t; + } + return ( + (e.prototype.findLineFeedCountBeforeOffset = function (e) { + var t = this._lineFeedsOffsets, + n = 0, + r = t.length - 1; + if (-1 === r) return 0; + if (e <= t[0]) return 0; + for (; n < r; ) { + var i = n + (((r - n) / 2) >> 0); + t[i] >= e + ? (r = i - 1) + : t[i + 1] >= e + ? ((n = i), (r = i)) + : (n = i + 1); + } + return n + 1; + }), + e + ); + })(), + To = (function () { + function e() {} + return ( + (e.findMatches = function (e, t, n, r, i) { + var o = t.parseSearchRequest(); + return o + ? o.regex.multiline + ? this._doFindMatchesMultiline( + e, + n, + new Oo(o.wordSeparators, o.regex), + r, + i + ) + : this._doFindMatchesLineByLine(e, n, o, r, i) + : []; + }), + (e._getMultilineMatchRange = function (e, t, n, r, i, o) { + var s, + a, + u = 0; + if ( + ((s = r + ? t + i + (u = r.findLineFeedCountBeforeOffset(i)) + : t + i), + r) + ) { + var l = r.findLineFeedCountBeforeOffset(i + o.length) - u; + a = s + o.length + l; + } else a = s + o.length; + var c = e.getPositionAt(s), + d = e.getPositionAt(a); + return new Fr(c.lineNumber, c.column, d.lineNumber, d.column); + }), + (e._doFindMatchesMultiline = function (e, t, n, r, i) { + var o, + s = e.getOffsetAt(t.getStartPosition()), + a = e.getValueInRange(t, 1), + u = '\r\n' === e.getEOL() ? new Eo(a) : null, + l = [], + c = 0; + for (n.reset(0); (o = n.next(a)); ) + if ( + ((l[c++] = Do( + this._getMultilineMatchRange(e, s, a, u, o.index, o[0]), + o, + r + )), + c >= i) + ) + return l; + return l; + }), + (e._doFindMatchesLineByLine = function (e, t, n, r, i) { + var o = [], + s = 0; + if (t.startLineNumber === t.endLineNumber) { + var a = e + .getLineContent(t.startLineNumber) + .substring(t.startColumn - 1, t.endColumn - 1); + return ( + (s = this._findMatchesInLine( + n, + a, + t.startLineNumber, + t.startColumn - 1, + s, + o, + r, + i + )), + o + ); + } + var u = e + .getLineContent(t.startLineNumber) + .substring(t.startColumn - 1); + s = this._findMatchesInLine( + n, + u, + t.startLineNumber, + t.startColumn - 1, + s, + o, + r, + i + ); + for ( + var l = t.startLineNumber + 1; + l < t.endLineNumber && s < i; + l++ + ) + s = this._findMatchesInLine( + n, + e.getLineContent(l), + l, + 0, + s, + o, + r, + i + ); + if (s < i) { + var c = e + .getLineContent(t.endLineNumber) + .substring(0, t.endColumn - 1); + s = this._findMatchesInLine(n, c, t.endLineNumber, 0, s, o, r, i); + } + return o; + }), + (e._findMatchesInLine = function (e, t, n, r, i, o, s, a) { + var u = e.wordSeparators; + if (!s && e.simpleSearch) { + for ( + var l = e.simpleSearch, c = l.length, d = t.length, h = -c; + -1 !== (h = t.indexOf(l, h + c)); + + ) + if ( + (!u || No(u, t, d, h, c)) && + ((o[i++] = new xi( + new Fr(n, h + 1 + r, n, h + 1 + c + r), + null + )), + i >= a) + ) + return i; + return i; + } + var f, + p = new Oo(e.wordSeparators, e.regex); + p.reset(0); + do { + if ( + (f = p.next(t)) && + ((o[i++] = Do( + new Fr(n, f.index + 1 + r, n, f.index + 1 + f[0].length + r), + f, + s + )), + i >= a) + ) + return i; + } while (f); + return i; + }), + (e.findNextMatch = function (e, t, n, r) { + var i = t.parseSearchRequest(); + if (!i) return null; + var o = new Oo(i.wordSeparators, i.regex); + return i.regex.multiline + ? this._doFindNextMatchMultiline(e, n, o, r) + : this._doFindNextMatchLineByLine(e, n, o, r); + }), + (e._doFindNextMatchMultiline = function (e, t, n, r) { + var i = new xt(t.lineNumber, 1), + o = e.getOffsetAt(i), + s = e.getLineCount(), + a = e.getValueInRange( + new Fr(i.lineNumber, i.column, s, e.getLineMaxColumn(s)), + 1 + ), + u = '\r\n' === e.getEOL() ? new Eo(a) : null; + n.reset(t.column - 1); + var l = n.next(a); + return l + ? Do( + this._getMultilineMatchRange(e, o, a, u, l.index, l[0]), + l, + r + ) + : 1 !== t.lineNumber || 1 !== t.column + ? this._doFindNextMatchMultiline(e, new xt(1, 1), n, r) + : null; + }), + (e._doFindNextMatchLineByLine = function (e, t, n, r) { + var i = e.getLineCount(), + o = t.lineNumber, + s = e.getLineContent(o), + a = this._findFirstMatchInLine(n, s, o, t.column, r); + if (a) return a; + for (var u = 1; u <= i; u++) { + var l = (o + u - 1) % i, + c = e.getLineContent(l + 1), + d = this._findFirstMatchInLine(n, c, l + 1, 1, r); + if (d) return d; + } + return null; + }), + (e._findFirstMatchInLine = function (e, t, n, r, i) { + e.reset(r - 1); + var o = e.next(t); + return o + ? Do(new Fr(n, o.index + 1, n, o.index + 1 + o[0].length), o, i) + : null; + }), + (e.findPreviousMatch = function (e, t, n, r) { + var i = t.parseSearchRequest(); + if (!i) return null; + var o = new Oo(i.wordSeparators, i.regex); + return i.regex.multiline + ? this._doFindPreviousMatchMultiline(e, n, o, r) + : this._doFindPreviousMatchLineByLine(e, n, o, r); + }), + (e._doFindPreviousMatchMultiline = function (e, t, n, r) { + var i = this._doFindMatchesMultiline( + e, + new Fr(1, 1, t.lineNumber, t.column), + n, + r, + 9990 + ); + if (i.length > 0) return i[i.length - 1]; + var o = e.getLineCount(); + return t.lineNumber !== o || t.column !== e.getLineMaxColumn(o) + ? this._doFindPreviousMatchMultiline( + e, + new xt(o, e.getLineMaxColumn(o)), + n, + r + ) + : null; + }), + (e._doFindPreviousMatchLineByLine = function (e, t, n, r) { + var i = e.getLineCount(), + o = t.lineNumber, + s = e.getLineContent(o).substring(0, t.column - 1), + a = this._findLastMatchInLine(n, s, o, r); + if (a) return a; + for (var u = 1; u <= i; u++) { + var l = (i + o - u - 1) % i, + c = e.getLineContent(l + 1), + d = this._findLastMatchInLine(n, c, l + 1, r); + if (d) return d; + } + return null; + }), + (e._findLastMatchInLine = function (e, t, n, r) { + var i, + o = null; + for (e.reset(0); (i = e.next(t)); ) + o = Do( + new Fr(n, i.index + 1, n, i.index + 1 + i[0].length), + i, + r + ); + return o; + }), + e + ); + })(); + function No(e, t, n, r, i) { + return ( + (function (e, t, n, r, i) { + if (0 === r) return !0; + var o = t.charCodeAt(r - 1); + if (0 !== e.get(o)) return !0; + if (13 === o || 10 === o) return !0; + if (i > 0) { + var s = t.charCodeAt(r); + if (0 !== e.get(s)) return !0; + } + return !1; + })(e, t, 0, r, i) && + (function (e, t, n, r, i) { + if (r + i === n) return !0; + var o = t.charCodeAt(r + i); + if (0 !== e.get(o)) return !0; + if (13 === o || 10 === o) return !0; + if (i > 0) { + var s = t.charCodeAt(r + i - 1); + if (0 !== e.get(s)) return !0; + } + return !1; + })(e, t, n, r, i) + ); + } + var Oo = (function () { + function e(e, t) { + (this._wordSeparators = e), + (this._searchRegex = t), + (this._prevMatchStartIndex = -1), + (this._prevMatchLength = 0); + } + return ( + (e.prototype.reset = function (e) { + (this._searchRegex.lastIndex = e), + (this._prevMatchStartIndex = -1), + (this._prevMatchLength = 0); + }), + (e.prototype.next = function (e) { + var t, + n = e.length; + do { + if (this._prevMatchStartIndex + this._prevMatchLength === n) + return null; + if (!(t = this._searchRegex.exec(e))) return null; + var r = t.index, + i = t[0].length; + if ( + r === this._prevMatchStartIndex && + i === this._prevMatchLength + ) { + if (0 === i) { + this._searchRegex.lastIndex += 1; + continue; + } + return null; + } + if ( + ((this._prevMatchStartIndex = r), + (this._prevMatchLength = i), + !this._wordSeparators || No(this._wordSeparators, e, n, r, i)) + ) + return t; + } while (t); + return null; + }), + e + ); + })(); + function Ao(e) { + var t; + return ( + (t = + e[e.length - 1] < 65536 + ? new Uint16Array(e.length) + : new Uint32Array(e.length)).set(e, 0), + t + ); + } + var Io = function (e, t, n, r, i) { + (this.lineStarts = e), + (this.cr = t), + (this.lf = n), + (this.crlf = r), + (this.isBasicASCII = i); + }; + function Po(e, t) { + void 0 === t && (t = !0); + for (var n = [0], r = 1, i = 0, o = e.length; i < o; i++) { + var s = e.charCodeAt(i); + 13 === s + ? i + 1 < o && 10 === e.charCodeAt(i + 1) + ? ((n[r++] = i + 2), i++) + : (n[r++] = i + 1) + : 10 === s && (n[r++] = i + 1); + } + return t ? Ao(n) : n; + } + var Ro = function (e, t, n, r, i) { + (this.bufferIndex = e), + (this.start = t), + (this.end = n), + (this.lineFeedCnt = r), + (this.length = i); + }, + Fo = function (e, t) { + (this.buffer = e), (this.lineStarts = t); + }, + Yo = (function () { + function e(e) { + (this._limit = e), (this._cache = []); + } + return ( + (e.prototype.get = function (e) { + for (var t = this._cache.length - 1; t >= 0; t--) { + var n = this._cache[t]; + if ( + n.nodeStartOffset <= e && + n.nodeStartOffset + n.node.piece.length >= e + ) + return n; + } + return null; + }), + (e.prototype.get2 = function (e) { + for (var t = this._cache.length - 1; t >= 0; t--) { + var n = this._cache[t]; + if ( + n.nodeStartLineNumber && + n.nodeStartLineNumber < e && + n.nodeStartLineNumber + n.node.piece.lineFeedCnt >= e + ) + return n; + } + return null; + }), + (e.prototype.set = function (e) { + this._cache.length >= this._limit && this._cache.shift(), + this._cache.push(e); + }), + (e.prototype.valdiate = function (e) { + for (var t = !1, n = this._cache, r = 0; r < n.length; r++) { + var i = n[r]; + (null === i.node.parent || i.nodeStartOffset >= e) && + ((n[r] = null), (t = !0)); + } + if (t) { + for (var o = [], s = 0, a = n; s < a.length; s++) { + var u = a[s]; + null !== u && o.push(u); + } + this._cache = o; + } + }), + e + ); + })(), + jo = (function () { + function e(e, t, n) { + this.create(e, t, n); + } + return ( + (e.prototype.create = function (e, t, n) { + (this._buffers = [new Fo('', [0])]), + (this._lastChangeBufferPos = { line: 0, column: 0 }), + (this.root = io), + (this._lineCnt = 1), + (this._length = 0), + (this._EOL = t), + (this._EOLLength = t.length), + (this._EOLNormalized = n); + for (var r = null, i = 0, o = e.length; i < o; i++) + if (e[i].buffer.length > 0) { + e[i].lineStarts || (e[i].lineStarts = Po(e[i].buffer)); + var s = new Ro( + i + 1, + { line: 0, column: 0 }, + { + line: e[i].lineStarts.length - 1, + column: + e[i].buffer.length - + e[i].lineStarts[e[i].lineStarts.length - 1], + }, + e[i].lineStarts.length - 1, + e[i].buffer.length + ); + this._buffers.push(e[i]), (r = this.rbInsertRight(r, s)); + } + (this._searchCache = new Yo(1)), + (this._lastVisitedLine = { lineNumber: 0, value: '' }), + this.computeBufferMetadata(); + }), + (e.prototype.normalizeEOL = function (e) { + var t = this, + n = 65535 - Math.floor(21845), + r = 2 * n, + i = '', + o = 0, + s = []; + if ( + (this.iterate(this.root, function (a) { + var u = t.getNodeContent(a), + l = u.length; + if (o <= n || o + l < r) return (i += u), (o += l), !0; + var c = i.replace(/\r\n|\r|\n/g, e); + return s.push(new Fo(c, Po(c))), (i = u), (o = l), !0; + }), + o > 0) + ) { + var a = i.replace(/\r\n|\r|\n/g, e); + s.push(new Fo(a, Po(a))); + } + this.create(s, e, !0); + }), + (e.prototype.getEOL = function () { + return this._EOL; + }), + (e.prototype.setEOL = function (e) { + (this._EOL = e), + (this._EOLLength = this._EOL.length), + this.normalizeEOL(e); + }), + (e.prototype.getOffsetAt = function (e, t) { + for (var n = 0, r = this.root; r !== io; ) + if (r.left !== io && r.lf_left + 1 >= e) r = r.left; + else { + if (r.lf_left + r.piece.lineFeedCnt + 1 >= e) + return ( + (n += r.size_left) + + (this.getAccumulatedValue(r, e - r.lf_left - 2) + t - 1) + ); + (e -= r.lf_left + r.piece.lineFeedCnt), + (n += r.size_left + r.piece.length), + (r = r.right); + } + return n; + }), + (e.prototype.getPositionAt = function (e) { + (e = Math.floor(e)), (e = Math.max(0, e)); + for (var t = this.root, n = 0, r = e; t !== io; ) + if (0 !== t.size_left && t.size_left >= e) t = t.left; + else { + if (t.size_left + t.piece.length >= e) { + var i = this.getIndexOf(t, e - t.size_left); + if (((n += t.lf_left + i.index), 0 === i.index)) { + var o = this.getOffsetAt(n + 1, 1); + return new xt(n + 1, r - o + 1); + } + return new xt(n + 1, i.remainder + 1); + } + if ( + ((e -= t.size_left + t.piece.length), + (n += t.lf_left + t.piece.lineFeedCnt), + t.right === io) + ) { + o = this.getOffsetAt(n + 1, 1); + return new xt(n + 1, r - e - o + 1); + } + t = t.right; + } + return new xt(1, 1); + }), + (e.prototype.getValueInRange = function (e, t) { + if ( + e.startLineNumber === e.endLineNumber && + e.startColumn === e.endColumn + ) + return ''; + var n = this.nodeAt2(e.startLineNumber, e.startColumn), + r = this.nodeAt2(e.endLineNumber, e.endColumn), + i = this.getValueInRange2(n, r); + return t + ? t === this._EOL && + this._EOLNormalized && + t === this.getEOL() && + this._EOLNormalized + ? i + : i.replace(/\r\n|\r|\n/g, t) + : i; + }), + (e.prototype.getValueInRange2 = function (e, t) { + if (e.node === t.node) { + var n = e.node, + r = this._buffers[n.piece.bufferIndex].buffer, + i = this.offsetInBuffer(n.piece.bufferIndex, n.piece.start); + return r.substring(i + e.remainder, i + t.remainder); + } + var o = e.node, + s = this._buffers[o.piece.bufferIndex].buffer, + a = this.offsetInBuffer(o.piece.bufferIndex, o.piece.start), + u = s.substring(a + e.remainder, a + o.piece.length); + for (o = o.next(); o !== io; ) { + var l = this._buffers[o.piece.bufferIndex].buffer, + c = this.offsetInBuffer(o.piece.bufferIndex, o.piece.start); + if (o === t.node) { + u += l.substring(c, c + t.remainder); + break; + } + (u += l.substr(c, o.piece.length)), (o = o.next()); + } + return u; + }), + (e.prototype.getLinesContent = function () { + return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/); + }), + (e.prototype.getLength = function () { + return this._length; + }), + (e.prototype.getLineCount = function () { + return this._lineCnt; + }), + (e.prototype.getLineContent = function (e) { + return this._lastVisitedLine.lineNumber === e + ? this._lastVisitedLine.value + : ((this._lastVisitedLine.lineNumber = e), + e === this._lineCnt + ? (this._lastVisitedLine.value = this.getLineRawContent(e)) + : this._EOLNormalized + ? (this._lastVisitedLine.value = this.getLineRawContent( + e, + this._EOLLength + )) + : (this._lastVisitedLine.value = this.getLineRawContent( + e + ).replace(/(\r\n|\r|\n)$/, '')), + this._lastVisitedLine.value); + }), + (e.prototype.getLineCharCode = function (e, t) { + var n = this.nodeAt2(e, t + 1); + if (n.remainder === n.node.piece.length) { + var r = n.node.next(); + if (!r) return 0; + var i = this._buffers[r.piece.bufferIndex], + o = this.offsetInBuffer(r.piece.bufferIndex, r.piece.start); + return i.buffer.charCodeAt(o); + } + i = this._buffers[n.node.piece.bufferIndex]; + var s = + (o = this.offsetInBuffer( + n.node.piece.bufferIndex, + n.node.piece.start + )) + n.remainder; + return i.buffer.charCodeAt(s); + }), + (e.prototype.getLineLength = function (e) { + if (e === this.getLineCount()) { + var t = this.getOffsetAt(e, 1); + return this.getLength() - t; + } + return ( + this.getOffsetAt(e + 1, 1) - + this.getOffsetAt(e, 1) - + this._EOLLength + ); + }), + (e.prototype.findMatchesInNode = function ( + e, + t, + n, + r, + i, + o, + s, + a, + u, + l, + c + ) { + var d, + h = this._buffers[e.piece.bufferIndex], + f = this.offsetInBuffer(e.piece.bufferIndex, e.piece.start), + p = this.offsetInBuffer(e.piece.bufferIndex, i), + g = this.offsetInBuffer(e.piece.bufferIndex, o); + t.reset(p); + var m = { line: 0, column: 0 }; + do { + if ((d = t.next(h.buffer))) { + if (d.index >= g) return l; + this.positionInBuffer(e, d.index - f, m); + var _ = this.getLineFeedCnt(e.piece.bufferIndex, i, m), + y = + m.line === i.line ? m.column - i.column + r : m.column + 1, + v = y + d[0].length; + if ( + ((c[l++] = Do(new Fr(n + _, y, n + _, v), d, a)), + d.index + d[0].length >= g) + ) + return l; + if (l >= u) return l; + } + } while (d); + return l; + }), + (e.prototype.findMatchesLineByLine = function (e, t, n, r) { + var i = [], + o = 0, + s = new Oo(t.wordSeparators, t.regex), + a = this.nodeAt2(e.startLineNumber, e.startColumn); + if (null === a) return []; + var u = this.nodeAt2(e.endLineNumber, e.endColumn); + if (null === u) return []; + var l = this.positionInBuffer(a.node, a.remainder), + c = this.positionInBuffer(u.node, u.remainder); + if (a.node === u.node) + return ( + this.findMatchesInNode( + a.node, + s, + e.startLineNumber, + e.startColumn, + l, + c, + t, + n, + r, + o, + i + ), + i + ); + for (var d = e.startLineNumber, h = a.node; h !== u.node; ) { + var f = this.getLineFeedCnt(h.piece.bufferIndex, l, h.piece.end); + if (f >= 1) { + var p = this._buffers[h.piece.bufferIndex].lineStarts, + g = this.offsetInBuffer(h.piece.bufferIndex, h.piece.start), + m = p[l.line + f], + _ = d === e.startLineNumber ? e.startColumn : 1; + if ( + (o = this.findMatchesInNode( + h, + s, + d, + _, + l, + this.positionInBuffer(h, m - g), + t, + n, + r, + o, + i + )) >= r + ) + return i; + d += f; + } + var y = d === e.startLineNumber ? e.startColumn - 1 : 0; + if (d === e.endLineNumber) { + var v = this.getLineContent(d).substring(y, e.endColumn - 1); + return ( + (o = this._findMatchesInLine( + t, + s, + v, + e.endLineNumber, + y, + o, + i, + n, + r + )), + i + ); + } + if ( + (o = this._findMatchesInLine( + t, + s, + this.getLineContent(d).substr(y), + d, + y, + o, + i, + n, + r + )) >= r + ) + return i; + d++, + (h = (a = this.nodeAt2(d, 1)).node), + (l = this.positionInBuffer(a.node, a.remainder)); + } + if (d === e.endLineNumber) { + var b = d === e.startLineNumber ? e.startColumn - 1 : 0; + v = this.getLineContent(d).substring(b, e.endColumn - 1); + return ( + (o = this._findMatchesInLine( + t, + s, + v, + e.endLineNumber, + b, + o, + i, + n, + r + )), + i + ); + } + var w = d === e.startLineNumber ? e.startColumn : 1; + return ( + (o = this.findMatchesInNode( + u.node, + s, + d, + w, + l, + c, + t, + n, + r, + o, + i + )), + i + ); + }), + (e.prototype._findMatchesInLine = function ( + e, + t, + n, + r, + i, + o, + s, + a, + u + ) { + var l, + c = e.wordSeparators; + if (!a && e.simpleSearch) { + for ( + var d = e.simpleSearch, h = d.length, f = n.length, p = -h; + -1 !== (p = n.indexOf(d, p + h)); + + ) + if ( + (!c || No(c, n, f, p, h)) && + ((s[o++] = new xi( + new Fr(r, p + 1 + i, r, p + 1 + h + i), + null + )), + o >= u) + ) + return o; + return o; + } + t.reset(0); + do { + if ( + (l = t.next(n)) && + ((s[o++] = Do( + new Fr(r, l.index + 1 + i, r, l.index + 1 + l[0].length + i), + l, + a + )), + o >= u) + ) + return o; + } while (l); + return o; + }), + (e.prototype.insert = function (e, t, n) { + if ( + (void 0 === n && (n = !1), + (this._EOLNormalized = this._EOLNormalized && n), + (this._lastVisitedLine.lineNumber = 0), + (this._lastVisitedLine.value = ''), + this.root !== io) + ) { + var r = this.nodeAt(e), + i = r.node, + o = r.remainder, + s = r.nodeStartOffset, + a = i.piece, + u = a.bufferIndex, + l = this.positionInBuffer(i, o); + if ( + 0 === i.piece.bufferIndex && + a.end.line === this._lastChangeBufferPos.line && + a.end.column === this._lastChangeBufferPos.column && + s + a.length === e && + t.length < 65535 + ) + return ( + this.appendToNode(i, t), void this.computeBufferMetadata() + ); + if (s === e) + this.insertContentToNodeLeft(t, i), + this._searchCache.valdiate(e); + else if (s + i.piece.length > e) { + var c = [], + d = new Ro( + a.bufferIndex, + l, + a.end, + this.getLineFeedCnt(a.bufferIndex, l, a.end), + this.offsetInBuffer(u, a.end) - this.offsetInBuffer(u, l) + ); + if (this.shouldCheckCRLF() && this.endWithCR(t)) + if (10 === this.nodeCharCodeAt(i, o)) { + var h = { line: d.start.line + 1, column: 0 }; + (d = new Ro( + d.bufferIndex, + h, + d.end, + this.getLineFeedCnt(d.bufferIndex, h, d.end), + d.length - 1 + )), + (t += '\n'); + } + if (this.shouldCheckCRLF() && this.startWithLF(t)) + if (13 === this.nodeCharCodeAt(i, o - 1)) { + var f = this.positionInBuffer(i, o - 1); + this.deleteNodeTail(i, f), + (t = '\r' + t), + 0 === i.piece.length && c.push(i); + } else this.deleteNodeTail(i, l); + else this.deleteNodeTail(i, l); + var p = this.createNewPieces(t); + d.length > 0 && this.rbInsertRight(i, d); + for (var g = i, m = 0; m < p.length; m++) + g = this.rbInsertRight(g, p[m]); + this.deleteNodes(c); + } else this.insertContentToNodeRight(t, i); + } else { + var _ = this.createNewPieces(t); + for (i = this.rbInsertLeft(null, _[0]), m = 1; m < _.length; m++) + i = this.rbInsertRight(i, _[m]); + } + this.computeBufferMetadata(); + }), + (e.prototype.delete = function (e, t) { + if ( + ((this._lastVisitedLine.lineNumber = 0), + (this._lastVisitedLine.value = ''), + !(t <= 0 || this.root === io)) + ) { + var n = this.nodeAt(e), + r = this.nodeAt(e + t), + i = n.node, + o = r.node; + if (i === o) { + var s = this.positionInBuffer(i, n.remainder), + a = this.positionInBuffer(i, r.remainder); + if (n.nodeStartOffset === e) { + if (t === i.piece.length) { + var u = i.next(); + return ( + fo(this, i), + this.validateCRLFWithPrevNode(u), + void this.computeBufferMetadata() + ); + } + return ( + this.deleteNodeHead(i, a), + this._searchCache.valdiate(e), + this.validateCRLFWithPrevNode(i), + void this.computeBufferMetadata() + ); + } + return n.nodeStartOffset + i.piece.length === e + t + ? (this.deleteNodeTail(i, s), + this.validateCRLFWithNextNode(i), + void this.computeBufferMetadata()) + : (this.shrinkNode(i, s, a), + void this.computeBufferMetadata()); + } + var l = [], + c = this.positionInBuffer(i, n.remainder); + this.deleteNodeTail(i, c), + this._searchCache.valdiate(e), + 0 === i.piece.length && l.push(i); + var d = this.positionInBuffer(o, r.remainder); + this.deleteNodeHead(o, d), 0 === o.piece.length && l.push(o); + for (var h = i.next(); h !== io && h !== o; h = h.next()) + l.push(h); + var f = 0 === i.piece.length ? i.prev() : i; + this.deleteNodes(l), + this.validateCRLFWithNextNode(f), + this.computeBufferMetadata(); + } + }), + (e.prototype.insertContentToNodeLeft = function (e, t) { + var n = []; + if ( + this.shouldCheckCRLF() && + this.endWithCR(e) && + this.startWithLF(t) + ) { + var r = t.piece, + i = { line: r.start.line + 1, column: 0 }, + o = new Ro( + r.bufferIndex, + i, + r.end, + this.getLineFeedCnt(r.bufferIndex, i, r.end), + r.length - 1 + ); + (t.piece = o), + (e += '\n'), + go(this, t, -1, -1), + 0 === t.piece.length && n.push(t); + } + for ( + var s = this.createNewPieces(e), + a = this.rbInsertLeft(t, s[s.length - 1]), + u = s.length - 2; + u >= 0; + u-- + ) + a = this.rbInsertLeft(a, s[u]); + this.validateCRLFWithPrevNode(a), this.deleteNodes(n); + }), + (e.prototype.insertContentToNodeRight = function (e, t) { + this.adjustCarriageReturnFromNext(e, t) && (e += '\n'); + for ( + var n = this.createNewPieces(e), + r = this.rbInsertRight(t, n[0]), + i = r, + o = 1; + o < n.length; + o++ + ) + i = this.rbInsertRight(i, n[o]); + this.validateCRLFWithPrevNode(r); + }), + (e.prototype.positionInBuffer = function (e, t, n) { + for ( + var r = e.piece, + i = e.piece.bufferIndex, + o = this._buffers[i].lineStarts, + s = o[r.start.line] + r.start.column + t, + a = r.start.line, + u = r.end.line, + l = 0, + c = 0, + d = 0; + a <= u && ((d = o[(l = (a + (u - a) / 2) | 0)]), l !== u); + + ) + if (((c = o[l + 1]), s < d)) u = l - 1; + else { + if (!(s >= c)) break; + a = l + 1; + } + return n + ? ((n.line = l), (n.column = s - d), null) + : { line: l, column: s - d }; + }), + (e.prototype.getLineFeedCnt = function (e, t, n) { + if (0 === n.column) return n.line - t.line; + var r = this._buffers[e].lineStarts; + if (n.line === r.length - 1) return n.line - t.line; + var i = r[n.line + 1], + o = r[n.line] + n.column; + if (i > o + 1) return n.line - t.line; + var s = o - 1; + return 13 === this._buffers[e].buffer.charCodeAt(s) + ? n.line - t.line + 1 + : n.line - t.line; + }), + (e.prototype.offsetInBuffer = function (e, t) { + return this._buffers[e].lineStarts[t.line] + t.column; + }), + (e.prototype.deleteNodes = function (e) { + for (var t = 0; t < e.length; t++) fo(this, e[t]); + }), + (e.prototype.createNewPieces = function (e) { + if (e.length > 65535) { + for (var t = []; e.length > 65535; ) { + var n = e.charCodeAt(65534), + r = void 0; + 13 === n || (n >= 55296 && n <= 56319) + ? ((r = e.substring(0, 65534)), (e = e.substring(65534))) + : ((r = e.substring(0, 65535)), (e = e.substring(65535))); + var i = Po(r); + t.push( + new Ro( + this._buffers.length, + { line: 0, column: 0 }, + { line: i.length - 1, column: r.length - i[i.length - 1] }, + i.length - 1, + r.length + ) + ), + this._buffers.push(new Fo(r, i)); + } + var o = Po(e); + return ( + t.push( + new Ro( + this._buffers.length, + { line: 0, column: 0 }, + { line: o.length - 1, column: e.length - o[o.length - 1] }, + o.length - 1, + e.length + ) + ), + this._buffers.push(new Fo(e, o)), + t + ); + } + var s = this._buffers[0].buffer.length, + a = Po(e, !1), + u = this._lastChangeBufferPos; + if ( + this._buffers[0].lineStarts[ + this._buffers[0].lineStarts.length - 1 + ] === s && + 0 !== s && + this.startWithLF(e) && + this.endWithCR(this._buffers[0].buffer) + ) { + (this._lastChangeBufferPos = { + line: this._lastChangeBufferPos.line, + column: this._lastChangeBufferPos.column + 1, + }), + (u = this._lastChangeBufferPos); + for (var l = 0; l < a.length; l++) a[l] += s + 1; + (this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat( + a.slice(1) + )), + (this._buffers[0].buffer += '_' + e), + (s += 1); + } else { + if (0 !== s) for (l = 0; l < a.length; l++) a[l] += s; + (this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat( + a.slice(1) + )), + (this._buffers[0].buffer += e); + } + var c = this._buffers[0].buffer.length, + d = this._buffers[0].lineStarts.length - 1, + h = { line: d, column: c - this._buffers[0].lineStarts[d] }, + f = new Ro(0, u, h, this.getLineFeedCnt(0, u, h), c - s); + return (this._lastChangeBufferPos = h), [f]; + }), + (e.prototype.getLineRawContent = function (e, t) { + void 0 === t && (t = 0); + var n = this.root, + r = '', + i = this._searchCache.get2(e); + if (i) { + n = i.node; + var o = this.getAccumulatedValue( + n, + e - i.nodeStartLineNumber - 1 + ), + s = this._buffers[n.piece.bufferIndex].buffer, + a = this.offsetInBuffer(n.piece.bufferIndex, n.piece.start); + if (i.nodeStartLineNumber + n.piece.lineFeedCnt !== e) { + var u = this.getAccumulatedValue(n, e - i.nodeStartLineNumber); + return s.substring(a + o, a + u - t); + } + r = s.substring(a + o, a + n.piece.length); + } else + for (var l = 0, c = e; n !== io; ) + if (n.left !== io && n.lf_left >= e - 1) n = n.left; + else { + if (n.lf_left + n.piece.lineFeedCnt > e - 1) { + (o = this.getAccumulatedValue(n, e - n.lf_left - 2)), + (u = this.getAccumulatedValue(n, e - n.lf_left - 1)), + (s = this._buffers[n.piece.bufferIndex].buffer), + (a = this.offsetInBuffer( + n.piece.bufferIndex, + n.piece.start + )); + return ( + (l += n.size_left), + this._searchCache.set({ + node: n, + nodeStartOffset: l, + nodeStartLineNumber: c - (e - 1 - n.lf_left), + }), + s.substring(a + o, a + u - t) + ); + } + if (n.lf_left + n.piece.lineFeedCnt === e - 1) { + (o = this.getAccumulatedValue(n, e - n.lf_left - 2)), + (s = this._buffers[n.piece.bufferIndex].buffer), + (a = this.offsetInBuffer( + n.piece.bufferIndex, + n.piece.start + )); + r = s.substring(a + o, a + n.piece.length); + break; + } + (e -= n.lf_left + n.piece.lineFeedCnt), + (l += n.size_left + n.piece.length), + (n = n.right); + } + for (n = n.next(); n !== io; ) { + s = this._buffers[n.piece.bufferIndex].buffer; + if (n.piece.lineFeedCnt > 0) { + (u = this.getAccumulatedValue(n, 0)), + (a = this.offsetInBuffer(n.piece.bufferIndex, n.piece.start)); + return (r += s.substring(a, a + u - t)); + } + a = this.offsetInBuffer(n.piece.bufferIndex, n.piece.start); + (r += s.substr(a, n.piece.length)), (n = n.next()); + } + return r; + }), + (e.prototype.computeBufferMetadata = function () { + for (var e = this.root, t = 1, n = 0; e !== io; ) + (t += e.lf_left + e.piece.lineFeedCnt), + (n += e.size_left + e.piece.length), + (e = e.right); + (this._lineCnt = t), + (this._length = n), + this._searchCache.valdiate(this._length); + }), + (e.prototype.getIndexOf = function (e, t) { + var n = e.piece, + r = this.positionInBuffer(e, t), + i = r.line - n.start.line; + if ( + this.offsetInBuffer(n.bufferIndex, n.end) - + this.offsetInBuffer(n.bufferIndex, n.start) === + t + ) { + var o = this.getLineFeedCnt(e.piece.bufferIndex, n.start, r); + if (o !== i) return { index: o, remainder: 0 }; + } + return { index: i, remainder: r.column }; + }), + (e.prototype.getAccumulatedValue = function (e, t) { + if (t < 0) return 0; + var n = e.piece, + r = this._buffers[n.bufferIndex].lineStarts, + i = n.start.line + t + 1; + return i > n.end.line + ? r[n.end.line] + n.end.column - r[n.start.line] - n.start.column + : r[i] - r[n.start.line] - n.start.column; + }), + (e.prototype.deleteNodeTail = function (e, t) { + var n = e.piece, + r = n.lineFeedCnt, + i = this.offsetInBuffer(n.bufferIndex, n.end), + o = t, + s = this.offsetInBuffer(n.bufferIndex, o), + a = this.getLineFeedCnt(n.bufferIndex, n.start, o), + u = a - r, + l = s - i, + c = n.length + l; + (e.piece = new Ro(n.bufferIndex, n.start, o, a, c)), + go(this, e, l, u); + }), + (e.prototype.deleteNodeHead = function (e, t) { + var n = e.piece, + r = n.lineFeedCnt, + i = this.offsetInBuffer(n.bufferIndex, n.start), + o = t, + s = this.getLineFeedCnt(n.bufferIndex, o, n.end), + a = s - r, + u = i - this.offsetInBuffer(n.bufferIndex, o), + l = n.length + u; + (e.piece = new Ro(n.bufferIndex, o, n.end, s, l)), + go(this, e, u, a); + }), + (e.prototype.shrinkNode = function (e, t, n) { + var r = e.piece, + i = r.start, + o = r.end, + s = r.length, + a = r.lineFeedCnt, + u = t, + l = this.getLineFeedCnt(r.bufferIndex, r.start, u), + c = + this.offsetInBuffer(r.bufferIndex, t) - + this.offsetInBuffer(r.bufferIndex, i); + (e.piece = new Ro(r.bufferIndex, r.start, u, l, c)), + go(this, e, c - s, l - a); + var d = new Ro( + r.bufferIndex, + n, + o, + this.getLineFeedCnt(r.bufferIndex, n, o), + this.offsetInBuffer(r.bufferIndex, o) - + this.offsetInBuffer(r.bufferIndex, n) + ), + h = this.rbInsertRight(e, d); + this.validateCRLFWithPrevNode(h); + }), + (e.prototype.appendToNode = function (e, t) { + this.adjustCarriageReturnFromNext(t, e) && (t += '\n'); + var n = + this.shouldCheckCRLF() && + this.startWithLF(t) && + this.endWithCR(e), + r = this._buffers[0].buffer.length; + this._buffers[0].buffer += t; + for (var i = Po(t, !1), o = 0; o < i.length; o++) i[o] += r; + if (n) { + var s = this._buffers[0].lineStarts[ + this._buffers[0].lineStarts.length - 2 + ]; + this._buffers[0].lineStarts.pop(), + (this._lastChangeBufferPos = { + line: this._lastChangeBufferPos.line - 1, + column: r - s, + }); + } + this._buffers[0].lineStarts = this._buffers[0].lineStarts.concat( + i.slice(1) + ); + var a = this._buffers[0].lineStarts.length - 1, + u = { + line: a, + column: + this._buffers[0].buffer.length - + this._buffers[0].lineStarts[a], + }, + l = e.piece.length + t.length, + c = e.piece.lineFeedCnt, + d = this.getLineFeedCnt(0, e.piece.start, u), + h = d - c; + (e.piece = new Ro(e.piece.bufferIndex, e.piece.start, u, d, l)), + (this._lastChangeBufferPos = u), + go(this, e, t.length, h); + }), + (e.prototype.nodeAt = function (e) { + var t = this.root, + n = this._searchCache.get(e); + if (n) + return { + node: n.node, + nodeStartOffset: n.nodeStartOffset, + remainder: e - n.nodeStartOffset, + }; + for (var r = 0; t !== io; ) + if (t.size_left > e) t = t.left; + else { + if (t.size_left + t.piece.length >= e) { + r += t.size_left; + var i = { + node: t, + remainder: e - t.size_left, + nodeStartOffset: r, + }; + return this._searchCache.set(i), i; + } + (e -= t.size_left + t.piece.length), + (r += t.size_left + t.piece.length), + (t = t.right); + } + return null; + }), + (e.prototype.nodeAt2 = function (e, t) { + for (var n = this.root, r = 0; n !== io; ) + if (n.left !== io && n.lf_left >= e - 1) n = n.left; + else { + if (n.lf_left + n.piece.lineFeedCnt > e - 1) { + var i = this.getAccumulatedValue(n, e - n.lf_left - 2), + o = this.getAccumulatedValue(n, e - n.lf_left - 1); + return ( + (r += n.size_left), + { + node: n, + remainder: Math.min(i + t - 1, o), + nodeStartOffset: r, + } + ); + } + if (n.lf_left + n.piece.lineFeedCnt === e - 1) { + if ( + (i = this.getAccumulatedValue(n, e - n.lf_left - 2)) + + t - + 1 <= + n.piece.length + ) + return { + node: n, + remainder: i + t - 1, + nodeStartOffset: r, + }; + t -= n.piece.length - i; + break; + } + (e -= n.lf_left + n.piece.lineFeedCnt), + (r += n.size_left + n.piece.length), + (n = n.right); + } + for (n = n.next(); n !== io; ) { + if (n.piece.lineFeedCnt > 0) { + o = this.getAccumulatedValue(n, 0); + var s = this.offsetOfNode(n); + return { + node: n, + remainder: Math.min(t - 1, o), + nodeStartOffset: s, + }; + } + if (n.piece.length >= t - 1) + return { + node: n, + remainder: t - 1, + nodeStartOffset: this.offsetOfNode(n), + }; + (t -= n.piece.length), (n = n.next()); + } + return null; + }), + (e.prototype.nodeCharCodeAt = function (e, t) { + if (e.piece.lineFeedCnt < 1) return -1; + var n = this._buffers[e.piece.bufferIndex], + r = this.offsetInBuffer(e.piece.bufferIndex, e.piece.start) + t; + return n.buffer.charCodeAt(r); + }), + (e.prototype.offsetOfNode = function (e) { + if (!e) return 0; + for (var t = e.size_left; e !== this.root; ) + e.parent.right === e && + (t += e.parent.size_left + e.parent.piece.length), + (e = e.parent); + return t; + }), + (e.prototype.shouldCheckCRLF = function () { + return !(this._EOLNormalized && '\n' === this._EOL); + }), + (e.prototype.startWithLF = function (e) { + if ('string' == typeof e) return 10 === e.charCodeAt(0); + if (e === io || 0 === e.piece.lineFeedCnt) return !1; + var t = e.piece, + n = this._buffers[t.bufferIndex].lineStarts, + r = t.start.line, + i = n[r] + t.start.column; + return ( + r !== n.length - 1 && + !(n[r + 1] > i + 1) && + 10 === this._buffers[t.bufferIndex].buffer.charCodeAt(i) + ); + }), + (e.prototype.endWithCR = function (e) { + return 'string' == typeof e + ? 13 === e.charCodeAt(e.length - 1) + : e !== io && + 0 !== e.piece.lineFeedCnt && + 13 === this.nodeCharCodeAt(e, e.piece.length - 1); + }), + (e.prototype.validateCRLFWithPrevNode = function (e) { + if (this.shouldCheckCRLF() && this.startWithLF(e)) { + var t = e.prev(); + this.endWithCR(t) && this.fixCRLF(t, e); + } + }), + (e.prototype.validateCRLFWithNextNode = function (e) { + if (this.shouldCheckCRLF() && this.endWithCR(e)) { + var t = e.next(); + this.startWithLF(t) && this.fixCRLF(e, t); + } + }), + (e.prototype.fixCRLF = function (e, t) { + var n, + r = [], + i = this._buffers[e.piece.bufferIndex].lineStarts; + n = + 0 === e.piece.end.column + ? { + line: e.piece.end.line - 1, + column: i[e.piece.end.line] - i[e.piece.end.line - 1] - 1, + } + : { line: e.piece.end.line, column: e.piece.end.column - 1 }; + var o = e.piece.length - 1, + s = e.piece.lineFeedCnt - 1; + (e.piece = new Ro(e.piece.bufferIndex, e.piece.start, n, s, o)), + go(this, e, -1, -1), + 0 === e.piece.length && r.push(e); + var a = { line: t.piece.start.line + 1, column: 0 }, + u = t.piece.length - 1, + l = this.getLineFeedCnt(t.piece.bufferIndex, a, t.piece.end); + (t.piece = new Ro(t.piece.bufferIndex, a, t.piece.end, l, u)), + go(this, t, -1, -1), + 0 === t.piece.length && r.push(t); + var c = this.createNewPieces('\r\n'); + this.rbInsertRight(e, c[0]); + for (var d = 0; d < r.length; d++) fo(this, r[d]); + }), + (e.prototype.adjustCarriageReturnFromNext = function (e, t) { + if (this.shouldCheckCRLF() && this.endWithCR(e)) { + var n = t.next(); + if (this.startWithLF(n)) { + if (((e += '\n'), 1 === n.piece.length)) fo(this, n); + else { + var r = n.piece, + i = { line: r.start.line + 1, column: 0 }, + o = r.length - 1, + s = this.getLineFeedCnt(r.bufferIndex, i, r.end); + (n.piece = new Ro(r.bufferIndex, i, r.end, s, o)), + go(this, n, -1, -1); + } + return !0; + } + } + return !1; + }), + (e.prototype.iterate = function (e, t) { + if (e === io) return t(io); + var n = this.iterate(e.left, t); + return n ? t(e) && this.iterate(e.right, t) : n; + }), + (e.prototype.getNodeContent = function (e) { + if (e === io) return ''; + var t = this._buffers[e.piece.bufferIndex], + n = e.piece, + r = this.offsetInBuffer(n.bufferIndex, n.start), + i = this.offsetInBuffer(n.bufferIndex, n.end); + return t.buffer.substring(r, i); + }), + (e.prototype.rbInsertRight = function (e, t) { + var n = new ro(t, 1); + if ( + ((n.left = io), + (n.right = io), + (n.parent = io), + (n.size_left = 0), + (n.lf_left = 0), + this.root === io) + ) + (this.root = n), (n.color = 0); + else if (e.right === io) (e.right = n), (n.parent = e); + else { + var r = oo(e.right); + (r.left = n), (n.parent = r); + } + return po(this, n), n; + }), + (e.prototype.rbInsertLeft = function (e, t) { + var n = new ro(t, 1); + if ( + ((n.left = io), + (n.right = io), + (n.parent = io), + (n.size_left = 0), + (n.lf_left = 0), + this.root === io) + ) + (this.root = n), (n.color = 0); + else if (e.left === io) (e.left = n), (n.parent = e); + else { + var r = so(e.left); + (r.right = n), (n.parent = r); + } + return po(this, n), n; + }), + (e.prototype.getContentOfSubTree = function (e) { + var t = this, + n = ''; + return ( + this.iterate(e, function (e) { + return (n += t.getNodeContent(e)), !0; + }), + n + ); + }), + e + ); + })(), + Bo = (function () { + function e(e, t, n, r, i, o) { + (this._BOM = t), + (this._mightContainNonBasicASCII = !i), + (this._mightContainRTL = r), + (this._pieceTree = new jo(e, n, o)); + } + return ( + (e.prototype.mightContainRTL = function () { + return this._mightContainRTL; + }), + (e.prototype.mightContainNonBasicASCII = function () { + return this._mightContainNonBasicASCII; + }), + (e.prototype.getBOM = function () { + return this._BOM; + }), + (e.prototype.getEOL = function () { + return this._pieceTree.getEOL(); + }), + (e.prototype.getOffsetAt = function (e, t) { + return this._pieceTree.getOffsetAt(e, t); + }), + (e.prototype.getPositionAt = function (e) { + return this._pieceTree.getPositionAt(e); + }), + (e.prototype.getRangeAt = function (e, t) { + var n = e + t, + r = this.getPositionAt(e), + i = this.getPositionAt(n); + return new Fr(r.lineNumber, r.column, i.lineNumber, i.column); + }), + (e.prototype.getValueInRange = function (e, t) { + if ((void 0 === t && (t = 0), e.isEmpty())) return ''; + var n = this._getEndOfLine(t); + return this._pieceTree.getValueInRange(e, n); + }), + (e.prototype.getValueLengthInRange = function (e, t) { + if ((void 0 === t && (t = 0), e.isEmpty())) return 0; + if (e.startLineNumber === e.endLineNumber) + return e.endColumn - e.startColumn; + var n = this.getOffsetAt(e.startLineNumber, e.startColumn); + return this.getOffsetAt(e.endLineNumber, e.endColumn) - n; + }), + (e.prototype.getLength = function () { + return this._pieceTree.getLength(); + }), + (e.prototype.getLineCount = function () { + return this._pieceTree.getLineCount(); + }), + (e.prototype.getLinesContent = function () { + return this._pieceTree.getLinesContent(); + }), + (e.prototype.getLineContent = function (e) { + return this._pieceTree.getLineContent(e); + }), + (e.prototype.getLineCharCode = function (e, t) { + return this._pieceTree.getLineCharCode(e, t); + }), + (e.prototype.getLineLength = function (e) { + return this._pieceTree.getLineLength(e); + }), + (e.prototype.getLineFirstNonWhitespaceColumn = function (e) { + var t = pn(this.getLineContent(e)); + return -1 === t ? 0 : t + 1; + }), + (e.prototype.getLineLastNonWhitespaceColumn = function (e) { + var t = mn(this.getLineContent(e)); + return -1 === t ? 0 : t + 2; + }), + (e.prototype._getEndOfLine = function (e) { + switch (e) { + case 1: + return '\n'; + case 2: + return '\r\n'; + case 0: + return this.getEOL(); + } + throw new Error('Unknown EOL preference'); + }), + (e.prototype.setEOL = function (e) { + this._pieceTree.setEOL(e); + }), + (e.prototype.applyEdits = function (t, n) { + for ( + var r = this._mightContainRTL, + i = this._mightContainNonBasicASCII, + o = !0, + s = [], + a = 0; + a < t.length; + a++ + ) { + var u = t[a]; + o && u._isTracked && (o = !1); + var l = u.range; + !r && u.text && (r = kn(u.text)), + !i && u.text && (i = !En(u.text)), + (s[a] = { + sortIndex: a, + identifier: u.identifier || null, + range: l, + rangeOffset: this.getOffsetAt( + l.startLineNumber, + l.startColumn + ), + rangeLength: this.getValueLengthInRange(l), + lines: u.text ? u.text.split(/\r\n|\r|\n/) : null, + forceMoveMarkers: Boolean(u.forceMoveMarkers), + isAutoWhitespaceEdit: u.isAutoWhitespaceEdit || !1, + }); + } + s.sort(e._sortOpsAscending); + for (var c = !1, d = ((a = 0), s.length - 1); a < d; a++) { + var h = s[a].range.getEndPosition(), + f = s[a + 1].range.getStartPosition(); + if (f.isBeforeOrEqual(h)) { + if (f.isBefore(h)) + throw new Error('Overlapping ranges are not allowed!'); + c = !0; + } + } + o && (s = this._reduceOperations(s)); + var p = e._getInverseEditRanges(s), + g = []; + for (a = 0; a < s.length; a++) { + u = s[a]; + var m = p[a]; + if (n && u.isAutoWhitespaceEdit && u.range.isEmpty()) + for (var _ = m.startLineNumber; _ <= m.endLineNumber; _++) { + var y = ''; + (_ === m.startLineNumber && + -1 !== + pn((y = this.getLineContent(u.range.startLineNumber)))) || + g.push({ lineNumber: _, oldContent: y }); + } + } + var v = []; + for (a = 0; a < s.length; a++) { + (u = s[a]), (m = p[a]); + v[a] = { + sortIndex: u.sortIndex, + identifier: u.identifier, + range: m, + text: this.getValueInRange(u.range), + forceMoveMarkers: u.forceMoveMarkers, + }; + } + c || + v.sort(function (e, t) { + return e.sortIndex - t.sortIndex; + }), + (this._mightContainRTL = r), + (this._mightContainNonBasicASCII = i); + var b = this._doApplyEdits(s), + w = null; + if (n && g.length > 0) { + g.sort(function (e, t) { + return t.lineNumber - e.lineNumber; + }), + (w = []); + a = 0; + for (var C = g.length; a < C; a++) { + _ = g[a].lineNumber; + if (!(a > 0 && g[a - 1].lineNumber === _)) { + var S = g[a].oldContent, + x = this.getLineContent(_); + 0 !== x.length && x !== S && -1 === pn(x) && w.push(_); + } + } + } + return new Li(v, b, w); + }), + (e.prototype._reduceOperations = function (e) { + return e.length < 1e3 ? e : [this._toSingleEditOperation(e)]; + }), + (e.prototype._toSingleEditOperation = function (e) { + for ( + var t = !1, + n = e[0].range, + r = e[e.length - 1].range, + i = new Fr( + n.startLineNumber, + n.startColumn, + r.endLineNumber, + r.endColumn + ), + o = n.startLineNumber, + s = n.startColumn, + a = [], + u = 0, + l = e.length; + u < l; + u++ + ) { + var c = e[u], + d = c.range; + t = t || c.forceMoveMarkers; + for (var h = o; h < d.startLineNumber; h++) + h === o + ? a.push(this.getLineContent(h).substring(s - 1)) + : (a.push('\n'), a.push(this.getLineContent(h))); + if ( + (d.startLineNumber === o + ? a.push( + this.getLineContent(d.startLineNumber).substring( + s - 1, + d.startColumn - 1 + ) + ) + : (a.push('\n'), + a.push( + this.getLineContent(d.startLineNumber).substring( + 0, + d.startColumn - 1 + ) + )), + c.lines) + ) + for (var f = 0, p = c.lines.length; f < p; f++) + 0 !== f && a.push('\n'), a.push(c.lines[f]); + (o = c.range.endLineNumber), (s = c.range.endColumn); + } + return { + sortIndex: 0, + identifier: e[0].identifier, + range: i, + rangeOffset: this.getOffsetAt(i.startLineNumber, i.startColumn), + rangeLength: this.getValueLengthInRange(i, 0), + lines: a.join('').split('\n'), + forceMoveMarkers: t, + isAutoWhitespaceEdit: !1, + }; + }), + (e.prototype._doApplyEdits = function (t) { + t.sort(e._sortOpsDescending); + for (var n = [], r = 0; r < t.length; r++) { + var i = t[r], + o = i.range.startLineNumber, + s = i.range.startColumn, + a = i.range.endLineNumber, + u = i.range.endColumn; + if (o !== a || s !== u || (i.lines && 0 !== i.lines.length)) { + var l = a - o, + c = i.lines ? i.lines.length - 1 : 0, + d = Math.min(l, c), + h = i.lines ? i.lines.join(this.getEOL()) : ''; + if ( + (h + ? (this._pieceTree.delete(i.rangeOffset, i.rangeLength), + this._pieceTree.insert(i.rangeOffset, h, !0)) + : this._pieceTree.delete(i.rangeOffset, i.rangeLength), + d < c) + ) { + for (var f = [], p = d + 1; p <= c; p++) f.push(i.lines[p]); + f[f.length - 1] = this.getLineContent(o + c - 1); + } + var g = new Fr(o, s, a, u); + n.push({ + range: g, + rangeLength: i.rangeLength, + text: h, + rangeOffset: i.rangeOffset, + forceMoveMarkers: i.forceMoveMarkers, + }); + } + } + return n; + }), + (e.prototype.findMatchesLineByLine = function (e, t, n, r) { + return this._pieceTree.findMatchesLineByLine(e, t, n, r); + }), + (e._getInverseEditRanges = function (e) { + for ( + var t = [], n = 0, r = 0, i = null, o = 0, s = e.length; + o < s; + o++ + ) { + var a = e[o], + u = void 0, + l = void 0; + i + ? i.range.endLineNumber === a.range.startLineNumber + ? ((u = n), + (l = r + (a.range.startColumn - i.range.endColumn))) + : ((u = + n + (a.range.startLineNumber - i.range.endLineNumber)), + (l = a.range.startColumn)) + : ((u = a.range.startLineNumber), (l = a.range.startColumn)); + var c = void 0; + if (a.lines && a.lines.length > 0) { + var d = a.lines.length, + h = a.lines[0], + f = a.lines[d - 1]; + c = + 1 === d + ? new Fr(u, l, u, l + h.length) + : new Fr(u, l, u + d - 1, f.length + 1); + } else c = new Fr(u, l, u, l); + (n = c.endLineNumber), (r = c.endColumn), t.push(c), (i = a); + } + return t; + }), + (e._sortOpsAscending = function (e, t) { + var n = Fr.compareRangesUsingEnds(e.range, t.range); + return 0 === n ? e.sortIndex - t.sortIndex : n; + }), + (e._sortOpsDescending = function (e, t) { + var n = Fr.compareRangesUsingEnds(e.range, t.range); + return 0 === n ? t.sortIndex - e.sortIndex : -n; + }), + e + ); + })(), + Wo = (function () { + function e(e, t, n, r, i, o, s, a) { + (this._chunks = e), + (this._bom = t), + (this._cr = n), + (this._lf = r), + (this._crlf = i), + (this._containsRTL = o), + (this._isBasicASCII = s), + (this._normalizeEOL = a); + } + return ( + (e.prototype._getEOL = function (e) { + var t = this._cr + this._lf + this._crlf, + n = this._cr + this._crlf; + return 0 === t + ? 1 === e + ? '\n' + : '\r\n' + : n > t / 2 + ? '\r\n' + : '\n'; + }), + (e.prototype.create = function (e) { + var t = this._getEOL(e), + n = this._chunks; + if ( + this._normalizeEOL && + (('\r\n' === t && (this._cr > 0 || this._lf > 0)) || + ('\n' === t && (this._cr > 0 || this._crlf > 0))) + ) + for (var r = 0, i = n.length; r < i; r++) { + var o = n[r].buffer.replace(/\r\n|\r|\n/g, t), + s = Po(o); + n[r] = new Fo(o, s); + } + return new Bo( + n, + this._bom, + t, + this._containsRTL, + this._isBasicASCII, + this._normalizeEOL + ); + }), + e + ); + })(), + Ho = (function () { + function e() { + (this.chunks = []), + (this.BOM = ''), + (this._hasPreviousChar = !1), + (this._previousChar = 0), + (this._tmpLineStarts = []), + (this.cr = 0), + (this.lf = 0), + (this.crlf = 0), + (this.containsRTL = !1), + (this.isBasicASCII = !0); + } + return ( + (e.prototype.acceptChunk = function (e) { + if (0 !== e.length) { + 0 === this.chunks.length && + On(e) && + ((this.BOM = Nn), (e = e.substr(1))); + var t = e.charCodeAt(e.length - 1); + 13 === t || (t >= 55296 && t <= 56319) + ? (this._acceptChunk1(e.substr(0, e.length - 1), !1), + (this._hasPreviousChar = !0), + (this._previousChar = t)) + : (this._acceptChunk1(e, !1), + (this._hasPreviousChar = !1), + (this._previousChar = t)); + } + }), + (e.prototype._acceptChunk1 = function (e, t) { + (t || 0 !== e.length) && + (this._hasPreviousChar + ? this._acceptChunk2( + String.fromCharCode(this._previousChar) + e + ) + : this._acceptChunk2(e)); + }), + (e.prototype._acceptChunk2 = function (e) { + var t = (function (e, t) { + (e.length = 0), (e[0] = 0); + for ( + var n = 1, r = 0, i = 0, o = 0, s = !0, a = 0, u = t.length; + a < u; + a++ + ) { + var l = t.charCodeAt(a); + 13 === l + ? a + 1 < u && 10 === t.charCodeAt(a + 1) + ? (o++, (e[n++] = a + 2), a++) + : (r++, (e[n++] = a + 1)) + : 10 === l + ? (i++, (e[n++] = a + 1)) + : s && 9 !== l && (l < 32 || l > 126) && (s = !1); + } + var c = new Io(Ao(e), r, i, o, s); + return (e.length = 0), c; + })(this._tmpLineStarts, e); + this.chunks.push(new Fo(e, t.lineStarts)), + (this.cr += t.cr), + (this.lf += t.lf), + (this.crlf += t.crlf), + this.isBasicASCII && (this.isBasicASCII = t.isBasicASCII), + this.isBasicASCII || + this.containsRTL || + (this.containsRTL = kn(e)); + }), + (e.prototype.finish = function (e) { + return ( + void 0 === e && (e = !0), + this._finish(), + new Wo( + this.chunks, + this.BOM, + this.cr, + this.lf, + this.crlf, + this.containsRTL, + this.isBasicASCII, + e + ) + ); + }), + (e.prototype._finish = function () { + if ( + (0 === this.chunks.length && this._acceptChunk1('', !0), + this._hasPreviousChar) + ) { + this._hasPreviousChar = !1; + var e = this.chunks[this.chunks.length - 1]; + e.buffer += String.fromCharCode(this._previousChar); + var t = Po(e.buffer); + (e.lineStarts = t), 13 === this._previousChar && this.cr++; + } + }), + e + ); + })(), + Vo = function () { + this.changeType = 1; + }, + zo = function (e, t) { + (this.changeType = 2), (this.lineNumber = e), (this.detail = t); + }, + Uo = function (e, t) { + (this.changeType = 3), + (this.fromLineNumber = e), + (this.toLineNumber = t); + }, + qo = function (e, t, n) { + (this.changeType = 4), + (this.fromLineNumber = e), + (this.toLineNumber = t), + (this.detail = n); + }, + Ko = function () { + this.changeType = 5; + }, + Go = (function () { + function e(e, t, n, r) { + (this.changes = e), + (this.versionId = t), + (this.isUndoing = n), + (this.isRedoing = r); + } + return ( + (e.prototype.containsEvent = function (e) { + for (var t = 0, n = this.changes.length; t < n; t++) { + if (this.changes[t].changeType === e) return !0; + } + return !1; + }), + (e.merge = function (t, n) { + return new e( + [].concat(t.changes).concat(n.changes), + n.versionId, + t.isUndoing || n.isUndoing, + t.isRedoing || n.isRedoing + ); + }), + e + ); + })(), + $o = (function () { + function e(e, t) { + (this.rawContentChangedEvent = e), (this.contentChangedEvent = t); + } + return ( + (e.prototype.merge = function (t) { + var n = Go.merge( + this.rawContentChangedEvent, + t.rawContentChangedEvent + ), + r = e._mergeChangeEvents( + this.contentChangedEvent, + t.contentChangedEvent + ); + return new e(n, r); + }), + (e._mergeChangeEvents = function (e, t) { + return { + changes: [].concat(e.changes).concat(t.changes), + eol: t.eol, + versionId: t.versionId, + isUndoing: e.isUndoing || t.isUndoing, + isRedoing: e.isRedoing || t.isRedoing, + isFlush: e.isFlush || t.isFlush, + }; + }), + e + ); + })(), + Zo = n(12), + Xo = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Jo = 65, + Qo = 97, + es = 90, + ts = 122, + ns = 46, + rs = 47, + is = 92, + os = (function (e) { + function t(t, n, r) { + var i, + o = this; + 'string' == typeof n && 0 === n.indexOf('not ') + ? ((i = 'must not be'), (n = n.replace(/^not /, ''))) + : (i = 'must be'); + var s = -1 !== t.indexOf('.') ? 'property' : 'argument', + a = 'The "' + t + '" ' + s + ' ' + i + ' of type ' + n; + return ( + (a += '. Received type ' + typeof r), + ((o = e.call(this, a) || this).code = 'ERR_INVALID_ARG_TYPE'), + o + ); + } + return Xo(t, e), t; + })(Error); + function ss(e, t) { + if ('string' != typeof e) throw new os(t, 'string', e); + } + function as(e) { + return e === rs || e === is; + } + function us(e) { + return e === rs; + } + function ls(e) { + return (e >= Jo && e <= es) || (e >= Qo && e <= ts); + } + function cs(e, t, n, r) { + for (var i, o = '', s = 0, a = -1, u = 0, l = 0; l <= e.length; ++l) { + if (l < e.length) i = e.charCodeAt(l); + else { + if (r(i)) break; + i = rs; + } + if (r(i)) { + if (a === l - 1 || 1 === u); + else if (a !== l - 1 && 2 === u) { + if ( + o.length < 2 || + 2 !== s || + o.charCodeAt(o.length - 1) !== ns || + o.charCodeAt(o.length - 2) !== ns + ) { + if (o.length > 2) { + var c = o.lastIndexOf(n); + -1 === c + ? ((o = ''), (s = 0)) + : (s = (o = o.slice(0, c)).length - 1 - o.lastIndexOf(n)), + (a = l), + (u = 0); + continue; + } + if (2 === o.length || 1 === o.length) { + (o = ''), (s = 0), (a = l), (u = 0); + continue; + } + } + t && (o.length > 0 ? (o += n + '..') : (o = '..'), (s = 2)); + } else + o.length > 0 + ? (o += n + e.slice(a + 1, l)) + : (o = e.slice(a + 1, l)), + (s = l - a - 1); + (a = l), (u = 0); + } else i === ns && -1 !== u ? ++u : (u = -1); + } + return o; + } + function ds(e, t) { + var n = t.dir || t.root, + r = t.base || (t.name || '') + (t.ext || ''); + return n ? (n === t.root ? n + r : n + e + r) : r; + } + var hs = { + resolve: function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + for (var n = '', r = '', i = !1, o = e.length - 1; o >= -1; o--) { + var s = void 0; + if ( + (o >= 0 + ? (s = e[o]) + : n + ? (void 0 !== (s = Zo.b['=' + n] || Zo.a()) && + s.slice(0, 3).toLowerCase() === n.toLowerCase() + '\\') || + (s = n + '\\') + : (s = Zo.a()), + ss(s, 'path'), + 0 !== s.length) + ) { + var a = s.length, + u = 0, + l = '', + c = !1, + d = s.charCodeAt(0); + if (a > 1) + if (as(d)) + if (((c = !0), as(s.charCodeAt(1)))) { + for (var h = 2, f = h; h < a && !as(s.charCodeAt(h)); ++h); + if (h < a && h !== f) { + var p = s.slice(f, h); + for (f = h; h < a && as(s.charCodeAt(h)); ++h); + if (h < a && h !== f) { + for (f = h; h < a && !as(s.charCodeAt(h)); ++h); + h === a + ? ((l = '\\\\' + p + '\\' + s.slice(f)), (u = h)) + : h !== f && + ((l = '\\\\' + p + '\\' + s.slice(f, h)), (u = h)); + } + } + } else u = 1; + else + ls(d) && + 58 === s.charCodeAt(1) && + ((l = s.slice(0, 2)), + (u = 2), + a > 2 && as(s.charCodeAt(2)) && ((c = !0), (u = 3))); + else as(d) && ((u = 1), (c = !0)); + if ( + !( + l.length > 0 && + n.length > 0 && + l.toLowerCase() !== n.toLowerCase() + ) && + (0 === n.length && l.length > 0 && (n = l), + i || ((r = s.slice(u) + '\\' + r), (i = c)), + n.length > 0 && i) + ) + break; + } + } + return n + (i ? '\\' : '') + (r = cs(r, !i, '\\', as)) || '.'; + }, + normalize: function (e) { + ss(e, 'path'); + var t = e.length; + if (0 === t) return '.'; + var n, + r, + i = 0, + o = !1, + s = e.charCodeAt(0); + if (t > 1) + if (as(s)) + if (((o = !0), as(e.charCodeAt(1)))) { + for (var a = 2, u = a; a < t && !as(e.charCodeAt(a)); ++a); + if (a < t && a !== u) { + var l = e.slice(u, a); + for (u = a; a < t && as(e.charCodeAt(a)); ++a); + if (a < t && a !== u) { + for (u = a; a < t && !as(e.charCodeAt(a)); ++a); + if (a === t) return '\\\\' + l + '\\' + e.slice(u) + '\\'; + a !== u && + ((n = '\\\\' + l + '\\' + e.slice(u, a)), (i = a)); + } + } + } else i = 1; + else + ls(s) && + 58 === e.charCodeAt(1) && + ((n = e.slice(0, 2)), + (i = 2), + t > 2 && as(e.charCodeAt(2)) && ((o = !0), (i = 3))); + else if (as(s)) return '\\'; + return ( + 0 !== (r = i < t ? cs(e.slice(i), !o, '\\', as) : '').length || + o || + (r = '.'), + r.length > 0 && as(e.charCodeAt(t - 1)) && (r += '\\'), + void 0 === n + ? o + ? r.length > 0 + ? '\\' + r + : '\\' + : r.length > 0 + ? r + : '' + : o + ? r.length > 0 + ? n + '\\' + r + : n + '\\' + : r.length > 0 + ? n + r + : n + ); + }, + isAbsolute: function (e) { + ss(e, 'path'); + var t = e.length; + if (0 === t) return !1; + var n = e.charCodeAt(0); + return ( + !!as(n) || + !!(ls(n) && t > 2 && 58 === e.charCodeAt(1) && as(e.charCodeAt(2))) + ); + }, + join: function () { + for (var e, t, n = [], r = 0; r < arguments.length; r++) + n[r] = arguments[r]; + if (0 === n.length) return '.'; + for (var i = 0; i < n.length; ++i) { + var o = n[i]; + ss(o, 'path'), + o.length > 0 && (void 0 === e ? (e = t = o) : (e += '\\' + o)); + } + if (void 0 === e) return '.'; + var s = !0, + a = 0; + if ('string' == typeof t && as(t.charCodeAt(0))) { + ++a; + var u = t.length; + u > 1 && + as(t.charCodeAt(1)) && + (++a, u > 2 && (as(t.charCodeAt(2)) ? ++a : (s = !1))); + } + if (s) { + for (; a < e.length && as(e.charCodeAt(a)); ++a); + a >= 2 && (e = '\\' + e.slice(a)); + } + return hs.normalize(e); + }, + relative: function (e, t) { + if ((ss(e, 'from'), ss(t, 'to'), e === t)) return ''; + var n = hs.resolve(e), + r = hs.resolve(t); + if (n === r) return ''; + if ((e = n.toLowerCase()) === (t = r.toLowerCase())) return ''; + for (var i = 0; i < e.length && e.charCodeAt(i) === is; ++i); + for (var o = e.length; o - 1 > i && e.charCodeAt(o - 1) === is; --o); + for ( + var s = o - i, a = 0; + a < t.length && t.charCodeAt(a) === is; + ++a + ); + for (var u = t.length; u - 1 > a && t.charCodeAt(u - 1) === is; --u); + for (var l = u - a, c = s < l ? s : l, d = -1, h = 0; h <= c; ++h) { + if (h === c) { + if (l > c) { + if (t.charCodeAt(a + h) === is) return r.slice(a + h + 1); + if (2 === h) return r.slice(a + h); + } + s > c && + (e.charCodeAt(i + h) === is ? (d = h) : 2 === h && (d = 3)); + break; + } + var f = e.charCodeAt(i + h); + if (f !== t.charCodeAt(a + h)) break; + f === is && (d = h); + } + if (h !== c && -1 === d) return r; + var p = ''; + for (-1 === d && (d = 0), h = i + d + 1; h <= o; ++h) + (h !== o && e.charCodeAt(h) !== is) || + (0 === p.length ? (p += '..') : (p += '\\..')); + return p.length > 0 + ? p + r.slice(a + d, u) + : ((a += d), r.charCodeAt(a) === is && ++a, r.slice(a, u)); + }, + toNamespacedPath: function (e) { + if ('string' != typeof e) return e; + if (0 === e.length) return ''; + var t = hs.resolve(e); + if (t.length >= 3) + if (t.charCodeAt(0) === is) { + if (t.charCodeAt(1) === is) { + var n = t.charCodeAt(2); + if (63 !== n && n !== ns) return '\\\\?\\UNC\\' + t.slice(2); + } + } else if ( + ls(t.charCodeAt(0)) && + 58 === t.charCodeAt(1) && + t.charCodeAt(2) === is + ) + return '\\\\?\\' + t; + return e; + }, + dirname: function (e) { + ss(e, 'path'); + var t = e.length; + if (0 === t) return '.'; + var n = -1, + r = -1, + i = !0, + o = 0, + s = e.charCodeAt(0); + if (t > 1) + if (as(s)) { + if (((n = o = 1), as(e.charCodeAt(1)))) { + for (var a = 2, u = a; a < t && !as(e.charCodeAt(a)); ++a); + if (a < t && a !== u) { + for (u = a; a < t && as(e.charCodeAt(a)); ++a); + if (a < t && a !== u) { + for (u = a; a < t && !as(e.charCodeAt(a)); ++a); + if (a === t) return e; + a !== u && (n = o = a + 1); + } + } + } + } else + ls(s) && + 58 === e.charCodeAt(1) && + ((n = o = 2), t > 2 && as(e.charCodeAt(2)) && (n = o = 3)); + else if (as(s)) return e; + for (var l = t - 1; l >= o; --l) + if (as(e.charCodeAt(l))) { + if (!i) { + r = l; + break; + } + } else i = !1; + if (-1 === r) { + if (-1 === n) return '.'; + r = n; + } + return e.slice(0, r); + }, + basename: function (e, t) { + void 0 !== t && ss(t, 'ext'), ss(e, 'path'); + var n, + r = 0, + i = -1, + o = !0; + e.length >= 2 && + ls(e.charCodeAt(0)) && + 58 === e.charCodeAt(1) && + (r = 2); + if (void 0 !== t && t.length > 0 && t.length <= e.length) { + if (t.length === e.length && t === e) return ''; + var s = t.length - 1, + a = -1; + for (n = e.length - 1; n >= r; --n) { + var u = e.charCodeAt(n); + if (as(u)) { + if (!o) { + r = n + 1; + break; + } + } else + -1 === a && ((o = !1), (a = n + 1)), + s >= 0 && + (u === t.charCodeAt(s) + ? -1 == --s && (i = n) + : ((s = -1), (i = a))); + } + return ( + r === i ? (i = a) : -1 === i && (i = e.length), e.slice(r, i) + ); + } + for (n = e.length - 1; n >= r; --n) + if (as(e.charCodeAt(n))) { + if (!o) { + r = n + 1; + break; + } + } else -1 === i && ((o = !1), (i = n + 1)); + return -1 === i ? '' : e.slice(r, i); + }, + extname: function (e) { + ss(e, 'path'); + var t = 0, + n = -1, + r = 0, + i = -1, + o = !0, + s = 0; + e.length >= 2 && + 58 === e.charCodeAt(1) && + ls(e.charCodeAt(0)) && + (t = r = 2); + for (var a = e.length - 1; a >= t; --a) { + var u = e.charCodeAt(a); + if (as(u)) { + if (!o) { + r = a + 1; + break; + } + } else + -1 === i && ((o = !1), (i = a + 1)), + u === ns + ? -1 === n + ? (n = a) + : 1 !== s && (s = 1) + : -1 !== n && (s = -1); + } + return -1 === n || + -1 === i || + 0 === s || + (1 === s && n === i - 1 && n === r + 1) + ? '' + : e.slice(n, i); + }, + format: function (e) { + if (null === e || 'object' != typeof e) + throw new os('pathObject', 'Object', e); + return ds('\\', e); + }, + parse: function (e) { + ss(e, 'path'); + var t = { root: '', dir: '', base: '', ext: '', name: '' }; + if (0 === e.length) return t; + var n = e.length, + r = 0, + i = e.charCodeAt(0); + if (n > 1) { + if (as(i)) { + if (((r = 1), as(e.charCodeAt(1)))) { + for (var o = 2, s = o; o < n && !as(e.charCodeAt(o)); ++o); + if (o < n && o !== s) { + for (s = o; o < n && as(e.charCodeAt(o)); ++o); + if (o < n && o !== s) { + for (s = o; o < n && !as(e.charCodeAt(o)); ++o); + o === n ? (r = o) : o !== s && (r = o + 1); + } + } + } + } else if (ls(i) && 58 === e.charCodeAt(1)) { + if (((r = 2), !(n > 2))) return (t.root = t.dir = e), t; + if (as(e.charCodeAt(2))) { + if (3 === n) return (t.root = t.dir = e), t; + r = 3; + } + } + } else if (as(i)) return (t.root = t.dir = e), t; + r > 0 && (t.root = e.slice(0, r)); + for ( + var a = -1, u = r, l = -1, c = !0, d = e.length - 1, h = 0; + d >= r; + --d + ) + if (as((i = e.charCodeAt(d)))) { + if (!c) { + u = d + 1; + break; + } + } else + -1 === l && ((c = !1), (l = d + 1)), + i === ns + ? -1 === a + ? (a = d) + : 1 !== h && (h = 1) + : -1 !== a && (h = -1); + return ( + -1 === a || + -1 === l || + 0 === h || + (1 === h && a === l - 1 && a === u + 1) + ? -1 !== l && (t.base = t.name = e.slice(u, l)) + : ((t.name = e.slice(u, a)), + (t.base = e.slice(u, l)), + (t.ext = e.slice(a, l))), + (t.dir = u > 0 && u !== r ? e.slice(0, u - 1) : t.root), + t + ); + }, + sep: '\\', + delimiter: ';', + win32: null, + posix: null, + }, + fs = { + resolve: function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + for (var n = '', r = !1, i = e.length - 1; i >= -1 && !r; i--) { + var o = void 0; + ss((o = i >= 0 ? e[i] : Zo.a()), 'path'), + 0 !== o.length && + ((n = o + '/' + n), (r = o.charCodeAt(0) === rs)); + } + return ( + (n = cs(n, !r, '/', us)), + r ? (n.length > 0 ? '/' + n : '/') : n.length > 0 ? n : '.' + ); + }, + normalize: function (e) { + if ((ss(e, 'path'), 0 === e.length)) return '.'; + var t = e.charCodeAt(0) === rs, + n = e.charCodeAt(e.length - 1) === rs; + return ( + 0 !== (e = cs(e, !t, '/', us)).length || t || (e = '.'), + e.length > 0 && n && (e += '/'), + t ? '/' + e : e + ); + }, + isAbsolute: function (e) { + return ss(e, 'path'), e.length > 0 && e.charCodeAt(0) === rs; + }, + join: function () { + for (var e, t = [], n = 0; n < arguments.length; n++) + t[n] = arguments[n]; + if (0 === t.length) return '.'; + for (var r = 0; r < t.length; ++r) { + var i = arguments[r]; + ss(i, 'path'), + i.length > 0 && (void 0 === e ? (e = i) : (e += '/' + i)); + } + return void 0 === e ? '.' : fs.normalize(e); + }, + relative: function (e, t) { + if ((ss(e, 'from'), ss(t, 'to'), e === t)) return ''; + if ((e = fs.resolve(e)) === (t = fs.resolve(t))) return ''; + for (var n = 1; n < e.length && e.charCodeAt(n) === rs; ++n); + for ( + var r = e.length, i = r - n, o = 1; + o < t.length && t.charCodeAt(o) === rs; + ++o + ); + for ( + var s = t.length - o, a = i < s ? i : s, u = -1, l = 0; + l <= a; + ++l + ) { + if (l === a) { + if (s > a) { + if (t.charCodeAt(o + l) === rs) return t.slice(o + l + 1); + if (0 === l) return t.slice(o + l); + } else + i > a && + (e.charCodeAt(n + l) === rs ? (u = l) : 0 === l && (u = 0)); + break; + } + var c = e.charCodeAt(n + l); + if (c !== t.charCodeAt(o + l)) break; + c === rs && (u = l); + } + var d = ''; + for (l = n + u + 1; l <= r; ++l) + (l !== r && e.charCodeAt(l) !== rs) || + (0 === d.length ? (d += '..') : (d += '/..')); + return d.length > 0 + ? d + t.slice(o + u) + : ((o += u), t.charCodeAt(o) === rs && ++o, t.slice(o)); + }, + toNamespacedPath: function (e) { + return e; + }, + dirname: function (e) { + if ((ss(e, 'path'), 0 === e.length)) return '.'; + for ( + var t = e.charCodeAt(0) === rs, n = -1, r = !0, i = e.length - 1; + i >= 1; + --i + ) + if (e.charCodeAt(i) === rs) { + if (!r) { + n = i; + break; + } + } else r = !1; + return -1 === n + ? t + ? '/' + : '.' + : t && 1 === n + ? '//' + : e.slice(0, n); + }, + basename: function (e, t) { + void 0 !== t && ss(t, 'ext'), ss(e, 'path'); + var n, + r = 0, + i = -1, + o = !0; + if (void 0 !== t && t.length > 0 && t.length <= e.length) { + if (t.length === e.length && t === e) return ''; + var s = t.length - 1, + a = -1; + for (n = e.length - 1; n >= 0; --n) { + var u = e.charCodeAt(n); + if (u === rs) { + if (!o) { + r = n + 1; + break; + } + } else + -1 === a && ((o = !1), (a = n + 1)), + s >= 0 && + (u === t.charCodeAt(s) + ? -1 == --s && (i = n) + : ((s = -1), (i = a))); + } + return ( + r === i ? (i = a) : -1 === i && (i = e.length), e.slice(r, i) + ); + } + for (n = e.length - 1; n >= 0; --n) + if (e.charCodeAt(n) === rs) { + if (!o) { + r = n + 1; + break; + } + } else -1 === i && ((o = !1), (i = n + 1)); + return -1 === i ? '' : e.slice(r, i); + }, + extname: function (e) { + ss(e, 'path'); + for ( + var t = -1, n = 0, r = -1, i = !0, o = 0, s = e.length - 1; + s >= 0; + --s + ) { + var a = e.charCodeAt(s); + if (a !== rs) + -1 === r && ((i = !1), (r = s + 1)), + a === ns + ? -1 === t + ? (t = s) + : 1 !== o && (o = 1) + : -1 !== t && (o = -1); + else if (!i) { + n = s + 1; + break; + } + } + return -1 === t || + -1 === r || + 0 === o || + (1 === o && t === r - 1 && t === n + 1) + ? '' + : e.slice(t, r); + }, + format: function (e) { + if (null === e || 'object' != typeof e) + throw new os('pathObject', 'Object', e); + return ds('/', e); + }, + parse: function (e) { + ss(e, 'path'); + var t = { root: '', dir: '', base: '', ext: '', name: '' }; + if (0 === e.length) return t; + var n, + r = e.charCodeAt(0) === rs; + r ? ((t.root = '/'), (n = 1)) : (n = 0); + for ( + var i = -1, o = 0, s = -1, a = !0, u = e.length - 1, l = 0; + u >= n; + --u + ) { + var c = e.charCodeAt(u); + if (c !== rs) + -1 === s && ((a = !1), (s = u + 1)), + c === ns + ? -1 === i + ? (i = u) + : 1 !== l && (l = 1) + : -1 !== i && (l = -1); + else if (!a) { + o = u + 1; + break; + } + } + return ( + -1 === i || + -1 === s || + 0 === l || + (1 === l && i === s - 1 && i === o + 1) + ? -1 !== s && + (t.base = t.name = 0 === o && r ? e.slice(1, s) : e.slice(o, s)) + : (0 === o && r + ? ((t.name = e.slice(1, i)), (t.base = e.slice(1, s))) + : ((t.name = e.slice(o, i)), (t.base = e.slice(o, s))), + (t.ext = e.slice(i, s))), + o > 0 ? (t.dir = e.slice(0, o - 1)) : r && (t.dir = '/'), + t + ); + }, + sep: '/', + delimiter: ':', + win32: null, + posix: null, + }; + (fs.win32 = hs.win32 = hs), (fs.posix = hs.posix = fs); + var ps = 'win32' === Zo.c ? hs.normalize : fs.normalize, + gs = 'win32' === Zo.c ? hs.join : fs.join, + ms = 'win32' === Zo.c ? hs.relative : fs.relative, + _s = 'win32' === Zo.c ? hs.dirname : fs.dirname, + ys = 'win32' === Zo.c ? hs.basename : fs.basename, + vs = 'win32' === Zo.c ? hs.extname : fs.extname, + bs = 'win32' === Zo.c ? hs.sep : fs.sep; + var ws, + Cs, + Ss = Object.freeze(function (e, t) { + var n = setTimeout(e.bind(t), 0); + return { + dispose: function () { + clearTimeout(n); + }, + }; + }); + ((Cs = ws || (ws = {})).isCancellationToken = function (e) { + return ( + e === Cs.None || + e === Cs.Cancelled || + e instanceof xs || + (!(!e || 'object' != typeof e) && + 'boolean' == typeof e.isCancellationRequested && + 'function' == typeof e.onCancellationRequested) + ); + }), + (Cs.None = Object.freeze({ + isCancellationRequested: !1, + onCancellationRequested: Wt.None, + })), + (Cs.Cancelled = Object.freeze({ + isCancellationRequested: !0, + onCancellationRequested: Ss, + })); + var xs = (function () { + function e() { + (this._isCancelled = !1), (this._emitter = null); + } + return ( + (e.prototype.cancel = function () { + this._isCancelled || + ((this._isCancelled = !0), + this._emitter && (this._emitter.fire(void 0), this.dispose())); + }), + Object.defineProperty(e.prototype, 'isCancellationRequested', { + get: function () { + return this._isCancelled; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onCancellationRequested', { + get: function () { + return this._isCancelled + ? Ss + : (this._emitter || (this._emitter = new Gt()), + this._emitter.event); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.dispose = function () { + this._emitter && (this._emitter.dispose(), (this._emitter = null)); + }), + e + ); + })(), + Ls = (function () { + function e(e) { + (this._token = void 0), + (this._parentListener = void 0), + (this._parentListener = + e && e.onCancellationRequested(this.cancel, this)); + } + return ( + Object.defineProperty(e.prototype, 'token', { + get: function () { + return this._token || (this._token = new xs()), this._token; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.cancel = function () { + this._token + ? this._token instanceof xs && this._token.cancel() + : (this._token = ws.Cancelled); + }), + (e.prototype.dispose = function () { + this._parentListener && this._parentListener.dispose(), + this._token + ? this._token instanceof xs && this._token.dispose() + : (this._token = ws.None); + }), + e + ); + })(); + function ks(e) { + var t = new Ls(), + n = e(t.token), + r = new Promise(function (e, r) { + t.token.onCancellationRequested(function () { + r(Ze()); + }), + Promise.resolve(n).then( + function (n) { + t.dispose(), e(n); + }, + function (e) { + t.dispose(), r(e); + } + ); + }); + return new ((function () { + function e() {} + return ( + (e.prototype.cancel = function () { + t.cancel(); + }), + (e.prototype.then = function (e, t) { + return r.then(e, t); + }), + (e.prototype.catch = function (e) { + return this.then(void 0, e); + }), + (e.prototype.finally = function (e) { + return r.finally(e); + }), + e + ); + })())(); + } + var Ms = (function () { + function e(e) { + (this.defaultDelay = e), + (this.timeout = null), + (this.completionPromise = null), + (this.doResolve = null), + (this.task = null); + } + return ( + (e.prototype.trigger = function (e, t) { + var n = this; + return ( + void 0 === t && (t = this.defaultDelay), + (this.task = e), + this.cancelTimeout(), + this.completionPromise || + (this.completionPromise = new Promise(function (e, t) { + (n.doResolve = e), (n.doReject = t); + }).then(function () { + (n.completionPromise = null), (n.doResolve = null); + var e = n.task; + return (n.task = null), e(); + })), + (this.timeout = setTimeout(function () { + (n.timeout = null), n.doResolve(null); + }, t)), + this.completionPromise + ); + }), + (e.prototype.isTriggered = function () { + return null !== this.timeout; + }), + (e.prototype.cancel = function () { + this.cancelTimeout(), + this.completionPromise && + (this.doReject(Ze()), (this.completionPromise = null)); + }), + (e.prototype.cancelTimeout = function () { + null !== this.timeout && + (clearTimeout(this.timeout), (this.timeout = null)); + }), + (e.prototype.dispose = function () { + this.cancelTimeout(); + }), + e + ); + })(); + function Ds(e, t) { + void 0 === t && (t = 0); + var n = setTimeout(e, t); + return It(function () { + return clearTimeout(n); + }); + } + var Es, + Ts = (function () { + function e(e, t) { + (this._token = -1), + 'function' == typeof e && + 'number' == typeof t && + this.setIfNotSet(e, t); + } + return ( + (e.prototype.dispose = function () { + this.cancel(); + }), + (e.prototype.cancel = function () { + -1 !== this._token && + (clearTimeout(this._token), (this._token = -1)); + }), + (e.prototype.cancelAndSet = function (e, t) { + var n = this; + this.cancel(), + (this._token = setTimeout(function () { + (n._token = -1), e(); + }, t)); + }), + (e.prototype.setIfNotSet = function (e, t) { + var n = this; + -1 === this._token && + (this._token = setTimeout(function () { + (n._token = -1), e(); + }, t)); + }), + e + ); + })(), + Ns = (function () { + function e() { + this._token = -1; + } + return ( + (e.prototype.dispose = function () { + this.cancel(); + }), + (e.prototype.cancel = function () { + -1 !== this._token && + (clearInterval(this._token), (this._token = -1)); + }), + (e.prototype.cancelAndSet = function (e, t) { + this.cancel(), + (this._token = setInterval(function () { + e(); + }, t)); + }), + e + ); + })(), + Os = (function () { + function e(e, t) { + (this.timeoutToken = -1), + (this.runner = e), + (this.timeout = t), + (this.timeoutHandler = this.onTimeout.bind(this)); + } + return ( + (e.prototype.dispose = function () { + this.cancel(), (this.runner = null); + }), + (e.prototype.cancel = function () { + this.isScheduled() && + (clearTimeout(this.timeoutToken), (this.timeoutToken = -1)); + }), + (e.prototype.schedule = function (e) { + void 0 === e && (e = this.timeout), + this.cancel(), + (this.timeoutToken = setTimeout(this.timeoutHandler, e)); + }), + (e.prototype.isScheduled = function () { + return -1 !== this.timeoutToken; + }), + (e.prototype.onTimeout = function () { + (this.timeoutToken = -1), this.runner && this.doRun(); + }), + (e.prototype.doRun = function () { + this.runner && this.runner(); + }), + e + ); + })(); + !(function () { + if ( + 'function' != typeof requestIdleCallback || + 'function' != typeof cancelIdleCallback + ) { + var e = Object.freeze({ + didTimeout: !0, + timeRemaining: function () { + return 15; + }, + }); + Es = function (t) { + var n = setTimeout(function () { + return t(e); + }), + r = !1; + return { + dispose: function () { + r || ((r = !0), clearTimeout(n)); + }, + }; + }; + } else + Es = function (e, t) { + var n = requestIdleCallback( + e, + 'number' == typeof t ? { timeout: t } : void 0 + ), + r = !1; + return { + dispose: function () { + r || ((r = !0), cancelIdleCallback(n)); + }, + }; + }; + })(); + var As = (function () { + function e(e) { + var t = this; + (this._didRun = !1), + (this._executor = function () { + try { + t._value = e(); + } catch (e) { + t._error = e; + } finally { + t._didRun = !0; + } + }), + (this._handle = Es(function () { + return t._executor(); + })); + } + return ( + (e.prototype.dispose = function () { + this._handle.dispose(); + }), + (e.prototype.getValue = function () { + if ( + (this._didRun || (this._handle.dispose(), this._executor()), + this._error) + ) + throw this._error; + return this._value; + }), + e + ); + })(), + Is = '**', + Ps = '/', + Rs = '[/\\\\]', + Fs = '[^/\\\\]', + Ys = /\//g; + function js(e) { + switch (e) { + case 0: + return ''; + case 1: + return Fs + '*?'; + default: + return '(?:' + Rs + '|' + Fs + '+' + Rs + '|' + Rs + Fs + '+)*?'; + } + } + function Bs(e, t) { + if (!e) return []; + for ( + var n = [], r = !1, i = !1, o = '', s = 0, a = e; + s < a.length; + s++ + ) { + var u = a[s]; + switch (u) { + case t: + if (!r && !i) { + n.push(o), (o = ''); + continue; + } + break; + case '{': + r = !0; + break; + case '}': + r = !1; + break; + case '[': + i = !0; + break; + case ']': + i = !1; + } + o += u; + } + return o && n.push(o), n; + } + var Ws = /^\*\*\/\*\.[\w\.-]+$/, + Hs = /^\*\*\/([\w\.-]+)\/?$/, + Vs = /^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/, + zs = /^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/, + Us = /^\*\*((\/[\w\.-]+)+)\/?$/, + qs = /^([\w\.-]+(\/[\w\.-]+)*)\/?$/, + Ks = new tr(1e4), + Gs = function () { + return !1; + }, + $s = function () { + return null; + }; + function Zs(e, t) { + if (!e) return $s; + var n, + r, + i = + (n = (n = 'string' != typeof e ? e.pattern : e).trim()) + + '_' + + !!t.trimForExclusions, + o = Ks.get(i); + if (o) return Xs(o, e); + if (Ws.test(n)) { + var s = n.substr(4); + o = function (e, t) { + return 'string' == typeof e && dn(e, s) ? n : null; + }; + } else + o = (r = Hs.exec(Js(n, t))) + ? (function (e, t) { + var n = '/' + e, + r = '\\' + e, + i = function (i, o) { + return 'string' != typeof i + ? null + : o + ? o === e + ? t + : null + : i === e || dn(i, n) || dn(i, r) + ? t + : null; + }, + o = [e]; + return ( + (i.basenames = o), (i.patterns = [t]), (i.allBasenames = o), i + ); + })(r[1], n) + : (t.trimForExclusions ? zs : Vs).test(n) + ? (function (e, t) { + var n = ta( + e + .slice(1, -1) + .split(',') + .map(function (e) { + return Zs(e, t); + }) + .filter(function (e) { + return e !== $s; + }), + e + ), + r = n.length; + if (!r) return $s; + if (1 === r) return n[0]; + var i = function (t, r) { + for (var i = 0, o = n.length; i < o; i++) + if (n[i](t, r)) return e; + return null; + }, + o = qr(n, function (e) { + return !!e.allBasenames; + }); + o && (i.allBasenames = o.allBasenames); + var s = n.reduce(function (e, t) { + return t.allPaths ? e.concat(t.allPaths) : e; + }, []); + s.length && (i.allPaths = s); + return i; + })(n, t) + : (r = Us.exec(Js(n, t))) + ? Qs(r[1].substr(1), n, !0) + : (r = qs.exec(Js(n, t))) + ? Qs(r[1], n, !1) + : (function (e) { + try { + var t = new RegExp( + '^' + + (function e(t) { + if (!t) return ''; + var n = '', + r = Bs(t, Ps); + if ( + r.every(function (e) { + return e === Is; + }) + ) + n = '.*'; + else { + var i = !1; + r.forEach(function (t, o) { + if (t !== Is) { + for ( + var s = !1, a = '', u = !1, l = '', c = 0, d = t; + c < d.length; + c++ + ) { + var h = d[c]; + if ('}' !== h && s) a += h; + else if (!u || (']' === h && l)) + switch (h) { + case '{': + s = !0; + continue; + case '[': + u = !0; + continue; + case '}': + var f = + '(?:' + + Bs(a, ',') + .map(function (t) { + return e(t); + }) + .join('|') + + ')'; + (n += f), (s = !1), (a = ''); + break; + case ']': + (n += '[' + l + ']'), (u = !1), (l = ''); + break; + case '?': + n += Fs; + continue; + case '*': + n += js(1); + continue; + default: + n += un(h); + } + else { + l += + '-' === h + ? h + : ('^' !== h && '!' !== h) || l + ? h === Ps + ? '' + : un(h) + : '^'; + } + } + o < r.length - 1 && + (r[o + 1] !== Is || o + 2 < r.length) && + (n += Rs), + (i = !1); + } else i || ((n += js(2)), (i = !0)); + }); + } + return n; + })(e) + + '$' + ); + return function (n, r) { + return ( + (t.lastIndex = 0), + 'string' == typeof n && t.test(n) ? e : null + ); + }; + } catch (e) { + return $s; + } + })(n); + return Ks.set(i, o), Xs(o, e); + } + function Xs(e, t) { + return 'string' == typeof t + ? e + : function (n, r) { + return (function (e, t, n, r) { + if ((void 0 === r && (r = bs), e === t)) return !0; + if (!e || !t) return !1; + if (t.length > e.length) return !1; + if (n) { + if (!Cn(e, t)) return !1; + if (t.length === e.length) return !0; + var i = t.length; + return t.charAt(t.length - 1) === r && i--, e.charAt(i) === r; + } + return ( + t.charAt(t.length - 1) !== r && (t += r), 0 === e.indexOf(t) + ); + })(n, t.base) + ? e(ms(t.base, n), r) + : null; + }; + } + function Js(e, t) { + return t.trimForExclusions && dn(e, '/**') + ? e.substr(0, e.length - 2) + : e; + } + function Qs(e, t, n) { + var r = bs !== fs.sep ? e.replace(Ys, bs) : e, + i = bs + r, + o = n + ? function (e, n) { + return 'string' != typeof e || (e !== r && !dn(e, i)) ? null : t; + } + : function (e, n) { + return 'string' == typeof e && e === r ? t : null; + }; + return (o.allPaths = [(n ? '*/' : './') + e]), o; + } + function ea(e, t, n) { + return ( + !(!e || 'string' != typeof t) && + (function (e, t) { + void 0 === t && (t = {}); + if (!e) return Gs; + if ( + 'string' == typeof e || + ((i = e), + (o = i), + o && 'string' == typeof o.base && 'string' == typeof o.pattern) + ) { + var n = Zs(e, t); + if (n === $s) return Gs; + var r = function (e, t) { + return !!n(e, t); + }; + return ( + n.allBasenames && (r.allBasenames = n.allBasenames), + n.allPaths && (r.allPaths = n.allPaths), + r + ); + } + var i, o; + return (function (e, t) { + var n = ta( + Object.getOwnPropertyNames(e) + .map(function (n) { + return (function (e, t, n) { + if (!1 === t) return $s; + var r = Zs(e, n); + if (r === $s) return $s; + if ('boolean' == typeof t) return r; + if (t) { + var i = t.when; + if ('string' == typeof i) { + var o = function (t, n, o, s) { + if (!s || !r(t, n)) return null; + var a, + u = s(i.replace('$(basename)', o)); + return (a = u) && 'function' == typeof a.then + ? u.then(function (t) { + return t ? e : null; + }) + : u + ? e + : null; + }; + return (o.requiresSiblings = !0), o; + } + } + return r; + })(n, e[n], t); + }) + .filter(function (e) { + return e !== $s; + }) + ), + r = n.length; + if (!r) return $s; + if ( + !n.some(function (e) { + return !!e.requiresSiblings; + }) + ) { + if (1 === r) return n[0]; + var i = function (e, t) { + for (var r = 0, i = n.length; r < i; r++) { + var o = n[r](e, t); + if (o) return o; + } + return null; + }, + o = qr(n, function (e) { + return !!e.allBasenames; + }); + o && (i.allBasenames = o.allBasenames); + var s = n.reduce(function (e, t) { + return t.allPaths ? e.concat(t.allPaths) : e; + }, []); + return s.length && (i.allPaths = s), i; + } + var a = function (e, t, r) { + for (var i = void 0, o = 0, s = n.length; o < s; o++) { + var a = n[o]; + a.requiresSiblings && + r && + (t || (t = ys(e)), + i || (i = t.substr(0, t.length - vs(e).length))); + var u = a(e, t, i, r); + if (u) return u; + } + return null; + }, + u = qr(n, function (e) { + return !!e.allBasenames; + }); + u && (a.allBasenames = u.allBasenames); + var l = n.reduce(function (e, t) { + return t.allPaths ? e.concat(t.allPaths) : e; + }, []); + l.length && (a.allPaths = l); + return a; + })(e, t); + })(e)(t, void 0, n) + ); + } + function ta(e, t) { + var n = e.filter(function (e) { + return !!e.basenames; + }); + if (n.length < 2) return e; + var r, + i = n.reduce(function (e, t) { + var n = t.basenames; + return n ? e.concat(n) : e; + }, []); + if (t) { + r = []; + for (var o = 0, s = i.length; o < s; o++) r.push(t); + } else + r = n.reduce(function (e, t) { + var n = t.patterns; + return n ? e.concat(n) : e; + }, []); + var a = function (e, t) { + if ('string' != typeof e) return null; + if (!t) { + var n = void 0; + for (n = e.length; n > 0; n--) { + var o = e.charCodeAt(n - 1); + if (47 === o || 92 === o) break; + } + t = e.substr(n); + } + var s = i.indexOf(t); + return -1 !== s ? r[s] : null; + }; + (a.basenames = i), (a.patterns = r), (a.allBasenames = i); + var u = e.filter(function (e) { + return !e.basenames; + }); + return u.push(a), u; + } + function na(e, t, n, r) { + if (Array.isArray(e)) { + for (var i = 0, o = 0, s = e; o < s.length; o++) { + var a = na(s[o], t, n, r); + if (10 === a) return a; + a > i && (i = a); + } + return i; + } + if ('string' == typeof e) + return r ? ('*' === e ? 5 : e === n ? 10 : 0) : 0; + if (e) { + var u = e.language, + l = e.pattern, + c = e.scheme, + d = e.hasAccessToAllModels; + if (!r && !d) return 0; + i = 0; + if (c) + if (c === t.scheme) i = 10; + else { + if ('*' !== c) return 0; + i = 5; + } + if (u) + if (u === n) i = 10; + else { + if ('*' !== u) return 0; + i = Math.max(i, 5); + } + if (l) { + if (l !== t.fsPath && !ea(l, t.fsPath)) return 0; + i = 10; + } + return i; + } + return 0; + } + function ra(e) { + return ( + 'string' != typeof e && (Array.isArray(e) ? e.every(ra) : !!e.exclusive) + ); + } + var ia, + oa, + sa, + aa = (function () { + function e() { + (this._clock = 0), + (this._entries = []), + (this._onDidChange = new Gt()); + } + return ( + Object.defineProperty(e.prototype, 'onDidChange', { + get: function () { + return this._onDidChange.event; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.register = function (e, t) { + var n = this, + r = { + selector: e, + provider: t, + _score: -1, + _time: this._clock++, + }; + return ( + this._entries.push(r), + (this._lastCandidate = void 0), + this._onDidChange.fire(this._entries.length), + It(function () { + if (r) { + var e = n._entries.indexOf(r); + e >= 0 && + (n._entries.splice(e, 1), + (n._lastCandidate = void 0), + n._onDidChange.fire(n._entries.length), + (r = void 0)); + } + }) + ); + }), + (e.prototype.has = function (e) { + return this.all(e).length > 0; + }), + (e.prototype.all = function (e) { + if (!e) return []; + this._updateScores(e); + for (var t = [], n = 0, r = this._entries; n < r.length; n++) { + var i = r[n]; + i._score > 0 && t.push(i.provider); + } + return t; + }), + (e.prototype.ordered = function (e) { + var t = []; + return ( + this._orderedForEach(e, function (e) { + return t.push(e.provider); + }), + t + ); + }), + (e.prototype.orderedGroups = function (e) { + var t, + n, + r = []; + return ( + this._orderedForEach(e, function (e) { + t && n === e._score + ? t.push(e.provider) + : ((n = e._score), (t = [e.provider]), r.push(t)); + }), + r + ); + }), + (e.prototype._orderedForEach = function (e, t) { + if (e) { + this._updateScores(e); + for (var n = 0, r = this._entries; n < r.length; n++) { + var i = r[n]; + i._score > 0 && t(i); + } + } + }), + (e.prototype._updateScores = function (t) { + var n = { + uri: t.uri.toString(), + language: t.getLanguageIdentifier().language, + }; + if ( + !this._lastCandidate || + this._lastCandidate.language !== n.language || + this._lastCandidate.uri !== n.uri + ) { + this._lastCandidate = n; + for (var r = 0, i = this._entries; r < i.length; r++) { + var o = i[r]; + if ( + ((o._score = na( + o.selector, + t.uri, + t.getLanguageIdentifier().language, + kt(t) + )), + ra(o.selector) && o._score > 0) + ) { + for (var s = 0, a = this._entries; s < a.length; s++) { + a[s]._score = 0; + } + o._score = 1e3; + break; + } + } + this._entries.sort(e._compareByScoreAndTime); + } + }), + (e._compareByScoreAndTime = function (e, t) { + return e._score < t._score + ? 1 + : e._score > t._score + ? -1 + : e._time < t._time + ? 1 + : e._time > t._time + ? -1 + : 0; + }), + e + ); + })(), + ua = (function () { + function e() { + (this._map = new Map()), + (this._promises = new Map()), + (this._onDidChange = new Gt()), + (this.onDidChange = this._onDidChange.event), + (this._colorMap = null); + } + return ( + (e.prototype.fire = function (e) { + this._onDidChange.fire({ + changedLanguages: e, + changedColorMap: !1, + }); + }), + (e.prototype.register = function (e, t) { + var n = this; + return ( + this._map.set(e, t), + this.fire([e]), + It(function () { + n._map.get(e) === t && (n._map.delete(e), n.fire([e])); + }) + ); + }), + (e.prototype.registerPromise = function (e, t) { + var n = this, + r = null, + i = !1; + return ( + this._promises.set( + e, + t.then(function (t) { + n._promises.delete(e), !i && t && (r = n.register(e, t)); + }) + ), + It(function () { + (i = !0), r && r.dispose(); + }) + ); + }), + (e.prototype.getPromise = function (e) { + var t = this, + n = this.get(e); + if (n) return Promise.resolve(n); + var r = this._promises.get(e); + return r + ? r.then(function (n) { + return t.get(e); + }) + : null; + }), + (e.prototype.get = function (e) { + return ze(this._map.get(e)); + }), + (e.prototype.setColorMap = function (e) { + (this._colorMap = e), + this._onDidChange.fire({ + changedLanguages: $n(this._map), + changedColorMap: !0, + }); + }), + (e.prototype.getColorMap = function () { + return this._colorMap; + }), + (e.prototype.getDefaultBackground = function () { + return this._colorMap && this._colorMap.length > 2 + ? this._colorMap[2] + : null; + }), + e + ); + })(), + la = function (e, t) { + (this.language = e), (this.id = t); + }, + ca = (function () { + function e() {} + return ( + (e.getLanguageId = function (e) { + return (255 & e) >>> 0; + }), + (e.getTokenType = function (e) { + return (1792 & e) >>> 8; + }), + (e.getFontStyle = function (e) { + return (14336 & e) >>> 11; + }), + (e.getForeground = function (e) { + return (8372224 & e) >>> 14; + }), + (e.getBackground = function (e) { + return (4286578688 & e) >>> 23; + }), + (e.getClassNameFromMetadata = function (e) { + var t = 'mtk' + this.getForeground(e), + n = this.getFontStyle(e); + return ( + 1 & n && (t += ' mtki'), + 2 & n && (t += ' mtkb'), + 4 & n && (t += ' mtku'), + t + ); + }), + (e.getInlineStyleFromMetadata = function (e, t) { + var n = this.getForeground(e), + r = this.getFontStyle(e), + i = 'color: ' + t[n] + ';'; + return ( + 1 & r && (i += 'font-style: italic;'), + 2 & r && (i += 'font-weight: bold;'), + 4 & r && (i += 'text-decoration: underline;'), + i + ); + }), + e + ); + })(); + ((ia = Object.create(null))[0] = 'method'), + (ia[1] = 'function'), + (ia[2] = 'constructor'), + (ia[3] = 'field'), + (ia[4] = 'variable'), + (ia[5] = 'class'), + (ia[6] = 'struct'), + (ia[7] = 'interface'), + (ia[8] = 'module'), + (ia[9] = 'property'), + (ia[10] = 'event'), + (ia[11] = 'operator'), + (ia[12] = 'unit'), + (ia[13] = 'value'), + (ia[14] = 'constant'), + (ia[15] = 'enum'), + (ia[16] = 'enum-member'), + (ia[17] = 'keyword'), + (ia[25] = 'snippet'), + (ia[18] = 'text'), + (ia[19] = 'color'), + (ia[20] = 'file'), + (ia[21] = 'reference'), + (ia[22] = 'customcolor'), + (ia[23] = 'folder'), + (ia[24] = 'type-parameter'), + (function () { + var e = Object.create(null); + (e.method = 0), + (e.function = 1), + (e.constructor = 2), + (e.field = 3), + (e.variable = 4), + (e.class = 5), + (e.struct = 6), + (e.interface = 7), + (e.module = 8), + (e.property = 9), + (e.event = 10), + (e.operator = 11), + (e.unit = 12), + (e.value = 13), + (e.constant = 14), + (e.enum = 15), + (e['enum-member'] = 16), + (e.enumMember = 16), + (e.keyword = 17), + (e.snippet = 25), + (e.text = 18), + (e.color = 19), + (e.file = 20), + (e.reference = 21), + (e.customcolor = 22), + (e.folder = 23), + (e['type-parameter'] = 24), + (e.typeParameter = 24); + })(); + !(function (e) { + (e[(e.Invoke = 1)] = 'Invoke'), + (e[(e.TriggerCharacter = 2)] = 'TriggerCharacter'), + (e[(e.ContentChange = 3)] = 'ContentChange'); + })(oa || (oa = {})), + (function (e) { + (e[(e.Text = 0)] = 'Text'), + (e[(e.Read = 1)] = 'Read'), + (e[(e.Write = 2)] = 'Write'); + })(sa || (sa = {})); + ((da = Object.create(null))[0] = 'file'), + (da[1] = 'module'), + (da[2] = 'namespace'), + (da[3] = 'package'), + (da[4] = 'class'), + (da[5] = 'method'), + (da[6] = 'property'), + (da[7] = 'field'), + (da[8] = 'constructor'), + (da[9] = 'enum'), + (da[10] = 'interface'), + (da[11] = 'function'), + (da[12] = 'variable'), + (da[13] = 'constant'), + (da[14] = 'string'), + (da[15] = 'number'), + (da[16] = 'boolean'), + (da[17] = 'array'), + (da[18] = 'object'), + (da[19] = 'key'), + (da[20] = 'null'), + (da[21] = 'enum-member'), + (da[22] = 'struct'), + (da[23] = 'event'), + (da[24] = 'operator'), + (da[25] = 'type-parameter'); + var da, + ha = (function () { + function e(e) { + this.value = e; + } + return ( + (e.Comment = new e('comment')), + (e.Imports = new e('imports')), + (e.Region = new e('region')), + e + ); + })(); + var fa = new aa(), + pa = new aa(), + ma = new aa(), + _a = new aa(), + ya = new aa(), + va = new aa(), + ba = new aa(), + wa = new aa(), + Ca = new aa(), + Sa = new aa(), + xa = new aa(), + La = new aa(), + ka = new aa(), + Ma = new aa(), + Da = new aa(), + Ea = new aa(), + Ta = new aa(), + Na = new aa(), + Oa = new aa(), + Aa = new aa(), + Ia = new ua(), + Pa = (function () { + function e(e, t) { + (this._tokens = e), + (this._tokensCount = this._tokens.length >>> 1), + (this._text = t); + } + return ( + (e.prototype.equals = function (t) { + return t instanceof e && this.slicedEquals(t, 0, this._tokensCount); + }), + (e.prototype.slicedEquals = function (e, t, n) { + if (this._text !== e._text) return !1; + if (this._tokensCount !== e._tokensCount) return !1; + for (var r = t << 1, i = r + (n << 1), o = r; o < i; o++) + if (this._tokens[o] !== e._tokens[o]) return !1; + return !0; + }), + (e.prototype.getLineContent = function () { + return this._text; + }), + (e.prototype.getCount = function () { + return this._tokensCount; + }), + (e.prototype.getStartOffset = function (e) { + return e > 0 ? this._tokens[(e - 1) << 1] : 0; + }), + (e.prototype.getLanguageId = function (e) { + var t = this._tokens[1 + (e << 1)]; + return ca.getLanguageId(t); + }), + (e.prototype.getStandardTokenType = function (e) { + var t = this._tokens[1 + (e << 1)]; + return ca.getTokenType(t); + }), + (e.prototype.getForeground = function (e) { + var t = this._tokens[1 + (e << 1)]; + return ca.getForeground(t); + }), + (e.prototype.getClassName = function (e) { + var t = this._tokens[1 + (e << 1)]; + return ca.getClassNameFromMetadata(t); + }), + (e.prototype.getInlineStyle = function (e, t) { + var n = this._tokens[1 + (e << 1)]; + return ca.getInlineStyleFromMetadata(n, t); + }), + (e.prototype.getEndOffset = function (e) { + return this._tokens[e << 1]; + }), + (e.prototype.findTokenIndexAtOffset = function (t) { + return e.findIndexInTokensArray(this._tokens, t); + }), + (e.prototype.inflate = function () { + return this; + }), + (e.prototype.sliceAndInflate = function (e, t, n) { + return new Ra(this, e, t, n); + }), + (e.convertToEndOffset = function (e, t) { + for (var n = (e.length >>> 1) - 1, r = 0; r < n; r++) + e[r << 1] = e[(r + 1) << 1]; + e[n << 1] = t; + }), + (e.findIndexInTokensArray = function (e, t) { + if (e.length <= 2) return 0; + for (var n = 0, r = (e.length >>> 1) - 1; n < r; ) { + var i = n + Math.floor((r - n) / 2), + o = e[i << 1]; + if (o === t) return i + 1; + o < t ? (n = i + 1) : o > t && (r = i); + } + return n; + }), + e + ); + })(), + Ra = (function () { + function e(e, t, n, r) { + (this._source = e), + (this._startOffset = t), + (this._endOffset = n), + (this._deltaOffset = r), + (this._firstTokenIndex = e.findTokenIndexAtOffset(t)), + (this._tokensCount = 0); + for (var i = this._firstTokenIndex, o = e.getCount(); i < o; i++) { + if (e.getStartOffset(i) >= n) break; + this._tokensCount++; + } + } + return ( + (e.prototype.equals = function (t) { + return ( + t instanceof e && + this._startOffset === t._startOffset && + this._endOffset === t._endOffset && + this._deltaOffset === t._deltaOffset && + this._source.slicedEquals( + t._source, + this._firstTokenIndex, + this._tokensCount + ) + ); + }), + (e.prototype.getCount = function () { + return this._tokensCount; + }), + (e.prototype.getForeground = function (e) { + return this._source.getForeground(this._firstTokenIndex + e); + }), + (e.prototype.getEndOffset = function (e) { + var t = this._source.getEndOffset(this._firstTokenIndex + e); + return ( + Math.min(this._endOffset, t) - + this._startOffset + + this._deltaOffset + ); + }), + (e.prototype.getClassName = function (e) { + return this._source.getClassName(this._firstTokenIndex + e); + }), + (e.prototype.getInlineStyle = function (e, t) { + return this._source.getInlineStyle(this._firstTokenIndex + e, t); + }), + (e.prototype.findTokenIndexAtOffset = function (e) { + return ( + this._source.findTokenIndexAtOffset( + e + this._startOffset - this._deltaOffset + ) - this._firstTokenIndex + ); + }), + e + ); + })(), + Fa = (function () { + function e(e, t, n) { + (this.offset = 0 | e), (this.type = t), (this.language = n); + } + return ( + (e.prototype.toString = function () { + return '(' + this.offset + ', ' + this.type + ')'; + }), + e + ); + })(), + Ya = function (e, t) { + (this.tokens = e), (this.endState = t); + }, + ja = function (e, t) { + (this.tokens = e), (this.endState = t); + }, + Ba = new ((function () { + function e() {} + return ( + (e.prototype.clone = function () { + return this; + }), + (e.prototype.equals = function (e) { + return this === e; + }), + e + ); + })())(), + Wa = new la('vs.editor.nullMode', 0); + function Ha(e, t, n, r) { + var i = new Uint32Array(2); + return ( + (i[0] = r), + (i[1] = (16384 | (e << 0) | (2 << 23)) >>> 0), + new ja(i, null === n ? Ba : n) + ); + } + var Va = tt.b.performance && 'function' == typeof tt.b.performance.now, + za = (function () { + function e(e) { + (this._highResolution = Va && e), + (this._startTime = this._now()), + (this._stopTime = -1); + } + return ( + (e.create = function (t) { + return void 0 === t && (t = !0), new e(t); + }), + (e.prototype.stop = function () { + this._stopTime = this._now(); + }), + (e.prototype.elapsed = function () { + return -1 !== this._stopTime + ? this._stopTime - this._startTime + : this._now() - this._startTime; + }), + (e.prototype._now = function () { + return this._highResolution + ? tt.b.performance.now() + : new Date().getTime(); + }), + e + ); + })(); + function Ua(e) { + for (var t = 0, n = 0, r = 0, i = e.length; r < i; r++) { + var o = e.charCodeAt(r); + 13 === o + ? (0 === t && (n = r), + t++, + r + 1 < i && 10 === e.charCodeAt(r + 1) && r++) + : 10 === o && (0 === t && (n = r), t++); + } + return 0 === t && (n = e.length), [t, n]; + } + function qa(e) { + return (16384 | (e << 0) | (2 << 23)) >>> 0; + } + var Ka = new Uint32Array(0).buffer, + Ga = (function () { + function e() { + this.tokens = []; + } + return ( + (e.prototype.add = function (e, t) { + if (this.tokens.length > 0) { + var n = this.tokens[this.tokens.length - 1]; + if (n.startLineNumber + n.tokens.length - 1 + 1 === e) + return void n.tokens.push(t); + } + this.tokens.push(new $a(e, [t])); + }), + e + ); + })(), + $a = function (e, t) { + (this.startLineNumber = e), (this.tokens = t); + }; + function Za(e) { + return e instanceof Uint32Array ? e : new Uint32Array(e); + } + var Xa, + Ja = (function () { + function e() { + (this._lineTokens = []), (this._len = 0); + } + return ( + (e.prototype.flush = function () { + (this._lineTokens = []), (this._len = 0); + }), + (e.prototype.getTokens = function (e, t, n) { + var r = null; + if ( + (t < this._len && (r = this._lineTokens[t]), + null !== r && r !== Ka) + ) + return new Pa(Za(r), n); + var i = new Uint32Array(2); + return (i[0] = n.length), (i[1] = qa(e)), new Pa(i, n); + }), + (e._massageTokens = function (e, t, n) { + var r = n ? Za(n) : null; + if (0 === t) { + var i = !1; + if ((r && r.length > 1 && (i = ca.getLanguageId(r[1]) !== e), !i)) + return Ka; + } + if (!r || 0 === r.length) { + var o = new Uint32Array(2); + return (o[0] = t), (o[1] = qa(e)), o.buffer; + } + return ( + (r[r.length - 2] = t), + 0 === r.byteOffset && r.byteLength === r.buffer.byteLength + ? r.buffer + : r + ); + }), + (e.prototype._ensureLine = function (e) { + for (; e >= this._len; ) + (this._lineTokens[this._len] = null), this._len++; + }), + (e.prototype._deleteLines = function (e, t) { + 0 !== t && + (e + t > this._len && (t = this._len - e), + this._lineTokens.splice(e, t), + (this._len -= t)); + }), + (e.prototype._insertLines = function (e, t) { + if (0 !== t) { + for (var n = [], r = 0; r < t; r++) n[r] = null; + (this._lineTokens = Gr(this._lineTokens, e, n)), (this._len += t); + } + }), + (e.prototype.setTokens = function (t, n, r, i) { + var o = e._massageTokens(t, r, i); + this._ensureLine(n), (this._lineTokens[n] = o); + }), + (e.prototype.acceptEdit = function (e, t, n) { + this._acceptDeleteRange(e), + this._acceptInsertText( + new xt(e.startLineNumber, e.startColumn), + t, + n + ); + }), + (e.prototype._acceptDeleteRange = function (t) { + var n = t.startLineNumber - 1; + if (!(n >= this._len)) + if (t.startLineNumber !== t.endLineNumber) { + this._lineTokens[n] = e._deleteEnding( + this._lineTokens[n], + t.startColumn - 1 + ); + var r = t.endLineNumber - 1, + i = null; + r < this._len && + (i = e._deleteBeginning( + this._lineTokens[r], + t.endColumn - 1 + )), + (this._lineTokens[n] = e._append(this._lineTokens[n], i)), + this._deleteLines( + t.startLineNumber, + t.endLineNumber - t.startLineNumber + ); + } else { + if (t.startColumn === t.endColumn) return; + this._lineTokens[n] = e._delete( + this._lineTokens[n], + t.startColumn - 1, + t.endColumn - 1 + ); + } + }), + (e.prototype._acceptInsertText = function (t, n, r) { + if (0 !== n || 0 !== r) { + var i = t.lineNumber - 1; + i >= this._len || + (0 !== n + ? ((this._lineTokens[i] = e._deleteEnding( + this._lineTokens[i], + t.column - 1 + )), + (this._lineTokens[i] = e._insert( + this._lineTokens[i], + t.column - 1, + r + )), + this._insertLines(t.lineNumber, n)) + : (this._lineTokens[i] = e._insert( + this._lineTokens[i], + t.column - 1, + r + ))); + } + }), + (e._deleteBeginning = function (t, n) { + return null === t || t === Ka ? t : e._delete(t, 0, n); + }), + (e._deleteEnding = function (t, n) { + if (null === t || t === Ka) return t; + var r = Za(t), + i = r[r.length - 2]; + return e._delete(t, n, i); + }), + (e._delete = function (e, t, n) { + if (null === e || e === Ka || t === n) return e; + var r = Za(e), + i = r.length >>> 1; + if (0 === t && r[r.length - 2] === n) return Ka; + var o, + s, + a = Pa.findIndexInTokensArray(r, t), + u = a > 0 ? r[(a - 1) << 1] : 0; + if (n < r[a << 1]) { + for (var l = n - t, c = a; c < i; c++) r[c << 1] -= l; + return e; + } + u !== t + ? ((r[a << 1] = t), (o = (a + 1) << 1), (s = t)) + : ((o = a << 1), (s = u)); + for (var d = n - t, h = a + 1; h < i; h++) { + var f = r[h << 1] - d; + f > s && ((r[o++] = f), (r[o++] = r[1 + (h << 1)]), (s = f)); + } + if (o === r.length) return e; + var p = new Uint32Array(o); + return p.set(r.subarray(0, o), 0), p.buffer; + }), + (e._append = function (e, t) { + if (t === Ka) return e; + if (e === Ka) return t; + if (null === e) return e; + if (null === t) return null; + var n = Za(e), + r = Za(t), + i = r.length >>> 1, + o = new Uint32Array(n.length + r.length); + o.set(n, 0); + for (var s = n.length, a = n[n.length - 2], u = 0; u < i; u++) + (o[s++] = r[u << 1] + a), (o[s++] = r[1 + (u << 1)]); + return o.buffer; + }), + (e._insert = function (e, t, n) { + if (null === e || e === Ka) return e; + var r = Za(e), + i = r.length >>> 1, + o = Pa.findIndexInTokensArray(r, t); + o > 0 && r[(o - 1) << 1] === t && o--; + for (var s = o; s < i; s++) r[s << 1] += n; + return e; + }), + e + ); + })(), + Qa = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + eu = (function () { + function e() { + (this._beginState = []), + (this._valid = []), + (this._len = 0), + (this._invalidLineStartIndex = 0); + } + return ( + (e.prototype._reset = function (e) { + (this._beginState = []), + (this._valid = []), + (this._len = 0), + (this._invalidLineStartIndex = 0), + e && this._setBeginState(0, e); + }), + (e.prototype.flush = function (e) { + this._reset(e); + }), + Object.defineProperty(e.prototype, 'invalidLineStartIndex', { + get: function () { + return this._invalidLineStartIndex; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype._invalidateLine = function (e) { + e < this._len && (this._valid[e] = !1), + e < this._invalidLineStartIndex && + (this._invalidLineStartIndex = e); + }), + (e.prototype._isValid = function (e) { + return e < this._len && this._valid[e]; + }), + (e.prototype.getBeginState = function (e) { + return e < this._len ? this._beginState[e] : null; + }), + (e.prototype._ensureLine = function (e) { + for (; e >= this._len; ) + (this._beginState[this._len] = null), + (this._valid[this._len] = !1), + this._len++; + }), + (e.prototype._deleteLines = function (e, t) { + 0 !== t && + (e + t > this._len && (t = this._len - e), + this._beginState.splice(e, t), + this._valid.splice(e, t), + (this._len -= t)); + }), + (e.prototype._insertLines = function (e, t) { + if (0 !== t) { + for (var n = [], r = [], i = 0; i < t; i++) + (n[i] = null), (r[i] = !1); + (this._beginState = Gr(this._beginState, e, n)), + (this._valid = Gr(this._valid, e, r)), + (this._len += t); + } + }), + (e.prototype._setValid = function (e, t) { + this._ensureLine(e), (this._valid[e] = t); + }), + (e.prototype._setBeginState = function (e, t) { + this._ensureLine(e), (this._beginState[e] = t); + }), + (e.prototype.setEndState = function (e, t, n) { + if ( + (this._setValid(t, !0), + (this._invalidLineStartIndex = t + 1), + t !== e - 1) + ) { + var r = this.getBeginState(t + 1); + if (null === r || !n.equals(r)) + return ( + this._setBeginState(t + 1, n), + void this._invalidateLine(t + 1) + ); + for (var i = t + 1; i < e && this._isValid(i); ) i++; + this._invalidLineStartIndex = i; + } + }), + (e.prototype.setFakeTokens = function (e) { + this._setValid(e, !1); + }), + (e.prototype.applyEdits = function (e, t) { + for ( + var n = e.endLineNumber - e.startLineNumber, + r = t, + i = Math.min(n, r); + i >= 0; + i-- + ) + this._invalidateLine(e.startLineNumber + i - 1); + this._acceptDeleteRange(e), + this._acceptInsertText( + new xt(e.startLineNumber, e.startColumn), + t + ); + }), + (e.prototype._acceptDeleteRange = function (e) { + e.startLineNumber - 1 >= this._len || + this._deleteLines( + e.startLineNumber, + e.endLineNumber - e.startLineNumber + ); + }), + (e.prototype._acceptInsertText = function (e, t) { + e.lineNumber - 1 >= this._len || this._insertLines(e.lineNumber, t); + }), + e + ); + })(), + tu = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._textModel = t), + (n._tokenizationStateStore = new eu()), + (n._revalidateTokensTimeout = -1), + (n._tokenizationSupport = null), + n._register( + Ia.onDidChange(function (e) { + var t = n._textModel.getLanguageIdentifier(); + -1 !== e.changedLanguages.indexOf(t.language) && + (n._resetTokenizationState(), n._textModel.clearTokens()); + }) + ), + n._register( + n._textModel.onDidChangeRawContentFast(function (e) { + e.containsEvent(1) && n._resetTokenizationState(); + }) + ), + n._register( + n._textModel.onDidChangeContentFast(function (e) { + for (var t = 0, r = e.changes.length; t < r; t++) { + var i = e.changes[t], + o = Ua(i.text)[0]; + n._tokenizationStateStore.applyEdits(i.range, o); + } + n._beginBackgroundTokenization(); + }) + ), + n._register( + n._textModel.onDidChangeAttached(function () { + n._beginBackgroundTokenization(); + }) + ), + n._register( + n._textModel.onDidChangeLanguage(function () { + n._resetTokenizationState(), n._textModel.clearTokens(); + }) + ), + n._resetTokenizationState(), + n + ); + } + return ( + Qa(t, e), + (t.prototype.dispose = function () { + this._clearTimers(), e.prototype.dispose.call(this); + }), + (t.prototype._clearTimers = function () { + -1 !== this._revalidateTokensTimeout && + (clearTimeout(this._revalidateTokensTimeout), + (this._revalidateTokensTimeout = -1)); + }), + (t.prototype._resetTokenizationState = function () { + this._clearTimers(); + var e = (function (e) { + var t = e.getLanguageIdentifier(), + n = e.isTooLargeForTokenization() ? null : Ia.get(t.language), + r = null; + if (n) + try { + r = n.getInitialState(); + } catch (e) { + qe(e), (n = null); + } + return [n, r]; + })(this._textModel), + t = e[0], + n = e[1]; + (this._tokenizationSupport = t), + this._tokenizationStateStore.flush(n), + this._beginBackgroundTokenization(); + }), + (t.prototype._beginBackgroundTokenization = function () { + var e = this; + this._textModel.isAttachedToEditor() && + this._hasLinesToTokenize() && + -1 === this._revalidateTokensTimeout && + (this._revalidateTokensTimeout = setTimeout(function () { + (e._revalidateTokensTimeout = -1), e._revalidateTokensNow(); + }, 0)); + }), + (t.prototype._revalidateTokensNow = function (e) { + void 0 === e && (e = this._textModel.getLineCount()); + for ( + var t = new Ga(), n = za.create(!1); + this._hasLinesToTokenize() && !(n.elapsed() > 20); + + ) { + if (this._tokenizeOneInvalidLine(t) >= e) break; + } + this._beginBackgroundTokenization(), + this._textModel.setTokens(t.tokens); + }), + (t.prototype.tokenizeViewport = function (e, t) { + var n = new Ga(); + this._tokenizeViewport(n, e, t), + this._textModel.setTokens(n.tokens); + }), + (t.prototype.reset = function () { + this._resetTokenizationState(), this._textModel.clearTokens(); + }), + (t.prototype.forceTokenization = function (e) { + var t = new Ga(); + this._updateTokensUntilLine(t, e), + this._textModel.setTokens(t.tokens); + }), + (t.prototype.isCheapToTokenize = function (e) { + if (!this._tokenizationSupport) return !0; + var t = this._tokenizationStateStore.invalidLineStartIndex + 1; + return ( + !(e > t) && (e < t || this._textModel.getLineLength(e) < 2048) + ); + }), + (t.prototype._hasLinesToTokenize = function () { + return ( + !!this._tokenizationSupport && + this._tokenizationStateStore.invalidLineStartIndex < + this._textModel.getLineCount() + ); + }), + (t.prototype._tokenizeOneInvalidLine = function (e) { + if (!this._hasLinesToTokenize()) + return this._textModel.getLineCount() + 1; + var t = this._tokenizationStateStore.invalidLineStartIndex + 1; + return this._updateTokensUntilLine(e, t), t; + }), + (t.prototype._updateTokensUntilLine = function (e, t) { + if (this._tokenizationSupport) + for ( + var n = this._textModel.getLanguageIdentifier(), + r = this._textModel.getLineCount(), + i = t - 1, + o = this._tokenizationStateStore.invalidLineStartIndex; + o <= i; + o++ + ) { + var s = this._textModel.getLineContent(o + 1), + a = this._tokenizationStateStore.getBeginState(o), + u = nu(n, this._tokenizationSupport, s, a); + e.add(o + 1, u.tokens), + this._tokenizationStateStore.setEndState(r, o, u.endState), + (o = this._tokenizationStateStore.invalidLineStartIndex - 1); + } + }), + (t.prototype._tokenizeViewport = function (e, t, n) { + if ( + this._tokenizationSupport && + !(n <= this._tokenizationStateStore.invalidLineStartIndex) + ) + if (t <= this._tokenizationStateStore.invalidLineStartIndex) + this._updateTokensUntilLine(e, n); + else { + for ( + var r = this._textModel.getLineFirstNonWhitespaceColumn(t), + i = [], + o = null, + s = t - 1; + r > 0 && s >= 1; + s-- + ) { + var a = this._textModel.getLineFirstNonWhitespaceColumn(s); + if (0 !== a && a < r) { + if ((o = this._tokenizationStateStore.getBeginState(s - 1))) + break; + i.push(this._textModel.getLineContent(s)), (r = a); + } + } + o || (o = this._tokenizationSupport.getInitialState()); + var u = this._textModel.getLanguageIdentifier(), + l = o; + for (s = i.length - 1; s >= 0; s--) { + l = (h = nu(u, this._tokenizationSupport, i[s], l)).endState; + } + for (var c = t; c <= n; c++) { + var d = this._textModel.getLineContent(c), + h = nu(u, this._tokenizationSupport, d, l); + e.add(c, h.tokens), + this._tokenizationStateStore.setFakeTokens(c - 1), + (l = h.endState); + } + } + }), + t + ); + })(Rt); + function nu(e, t, n, r) { + var i = null; + if (t) + try { + i = t.tokenize2(n, r.clone(), 0); + } catch (e) { + qe(e); + } + return ( + i || (i = Ha(e.id, 0, r, 0)), + Pa.convertToEndOffset(i.tokens, n.length), + i + ); + } + !(function (e) { + (e[(e.None = 0)] = 'None'), + (e[(e.Indent = 1)] = 'Indent'), + (e[(e.IndentOutdent = 2)] = 'IndentOutdent'), + (e[(e.Outdent = 3)] = 'Outdent'); + })(Xa || (Xa = {})); + var ru = (function () { + function e(e) { + if ( + ((this.open = e.open), + (this.close = e.close), + (this._standardTokenMask = 0), + Array.isArray(e.notIn)) + ) + for (var t = 0, n = e.notIn.length; t < n; t++) { + switch (e.notIn[t]) { + case 'string': + this._standardTokenMask |= 2; + break; + case 'comment': + this._standardTokenMask |= 1; + break; + case 'regex': + this._standardTokenMask |= 4; + } + } + } + return ( + (e.prototype.isOK = function (e) { + return 0 == (this._standardTokenMask & e); + }), + e + ); + })(); + function iu(e, t) { + for ( + var n = e.getCount(), + r = e.findTokenIndexAtOffset(t), + i = e.getLanguageId(r), + o = r; + o + 1 < n && e.getLanguageId(o + 1) === i; + + ) + o++; + for (var s = r; s > 0 && e.getLanguageId(s - 1) === i; ) s--; + return new ou(e, i, s, o + 1, e.getStartOffset(s), e.getEndOffset(o)); + } + var ou = (function () { + function e(e, t, n, r, i, o) { + (this._actual = e), + (this.languageId = t), + (this._firstTokenIndex = n), + (this._lastTokenIndex = r), + (this.firstCharOffset = i), + (this._lastCharOffset = o); + } + return ( + (e.prototype.getLineContent = function () { + return this._actual + .getLineContent() + .substring(this.firstCharOffset, this._lastCharOffset); + }), + (e.prototype.getTokenCount = function () { + return this._lastTokenIndex - this._firstTokenIndex; + }), + (e.prototype.findTokenIndexAtOffset = function (e) { + return ( + this._actual.findTokenIndexAtOffset(e + this.firstCharOffset) - + this._firstTokenIndex + ); + }), + (e.prototype.getStandardTokenType = function (e) { + return this._actual.getStandardTokenType(e + this._firstTokenIndex); + }), + e + ); + })(); + function su(e) { + return 0 != (7 & e); + } + var au = (function () { + function e(t) { + if ( + (t.autoClosingPairs + ? (this._autoClosingPairs = t.autoClosingPairs.map(function (e) { + return new ru(e); + })) + : t.brackets + ? (this._autoClosingPairs = t.brackets.map(function (e) { + return new ru({ open: e[0], close: e[1] }); + })) + : (this._autoClosingPairs = []), + t.__electricCharacterSupport && + t.__electricCharacterSupport.docComment) + ) { + var n = t.__electricCharacterSupport.docComment; + this._autoClosingPairs.push( + new ru({ open: n.open, close: n.close || '' }) + ); + } + (this._autoCloseBefore = + 'string' == typeof t.autoCloseBefore + ? t.autoCloseBefore + : e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED), + (this._surroundingPairs = + t.surroundingPairs || this._autoClosingPairs); + } + return ( + (e.prototype.getAutoClosingPairs = function () { + return this._autoClosingPairs; + }), + (e.prototype.getAutoCloseBeforeSet = function () { + return this._autoCloseBefore; + }), + (e.shouldAutoClosePair = function (e, t, n) { + if (0 === t.getTokenCount()) return !0; + var r = t.findTokenIndexAtOffset(n - 2), + i = t.getStandardTokenType(r); + return e.isOK(i); + }), + (e.prototype.getSurroundingPairs = function () { + return this._surroundingPairs; + }), + (e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED = ';:.,=}])> \n\t'), + e + ); + })(), + uu = function (e, t, n, r, i) { + (this.languageIdentifier = e), + (this.open = t), + (this.close = n), + (this.forwardRegex = r), + (this.reversedRegex = i); + }, + lu = function (e, t) { + var n = this; + (this.brackets = t.map(function (t) { + return new uu( + e, + t[0], + t[1], + du({ open: t[0], close: t[1] }), + hu({ open: t[0], close: t[1] }) + ); + })), + (this.forwardRegex = fu(this.brackets)), + (this.reversedRegex = pu(this.brackets)), + (this.textIsBracket = {}), + (this.textIsOpenBracket = {}); + var r = 0; + this.brackets.forEach(function (e) { + (n.textIsBracket[e.open.toLowerCase()] = e), + (n.textIsBracket[e.close.toLowerCase()] = e), + (n.textIsOpenBracket[e.open.toLowerCase()] = !0), + (n.textIsOpenBracket[e.close.toLowerCase()] = !1), + (r = Math.max(r, e.open.length)), + (r = Math.max(r, e.close.length)); + }), + (this.maxBracketLength = r); + }; + function cu(e, t) { + var n = {}; + return function (r) { + var i = e(r); + return n.hasOwnProperty(i) || (n[i] = t(r)), n[i]; + }; + } + var du = cu( + function (e) { + return e.open + ';' + e.close; + }, + function (e) { + return mu([e.open, e.close]); + } + ), + hu = cu( + function (e) { + return e.open + ';' + e.close; + }, + function (e) { + return mu([vu(e.open), vu(e.close)]); + } + ), + fu = cu( + function (e) { + return e + .map(function (e) { + return e.open + ';' + e.close; + }) + .join(';'); + }, + function (e) { + var t = []; + return ( + e.forEach(function (e) { + t.push(e.open), t.push(e.close); + }), + mu(t) + ); + } + ), + pu = cu( + function (e) { + return e + .map(function (e) { + return e.open + ';' + e.close; + }) + .join(';'); + }, + function (e) { + var t = []; + return ( + e.forEach(function (e) { + t.push(vu(e.open)), t.push(vu(e.close)); + }), + mu(t) + ); + } + ); + function gu(e) { + var t = /^[\w]+$/.test(e); + return (e = un(e)), t ? '\\b' + e + '\\b' : e; + } + function mu(e) { + return hn('(' + e.map(gu).join(')|(') + ')', !0); + } + var _u, + yu, + vu = + ((_u = null), + (yu = null), + function (e) { + return ( + _u !== e && + (yu = (function (e) { + for (var t = '', n = e.length - 1; n >= 0; n--) + t += e.charAt(n); + return t; + })((_u = e))), + yu + ); + }), + bu = (function () { + function e() {} + return ( + (e._findPrevBracketInText = function (e, t, n, r) { + var i = n.match(e); + if (!i) return null; + var o = n.length - (i.index || 0), + s = i[0].length, + a = r + o; + return new Fr(t, a - s + 1, t, a + 1); + }), + (e.findPrevBracketInToken = function (e, t, n, r, i) { + var o = vu(n).substring(n.length - i, n.length - r); + return this._findPrevBracketInText(e, t, o, r); + }), + (e.findNextBracketInText = function (e, t, n, r) { + var i = n.match(e); + if (!i) return null; + var o = i.index || 0, + s = i[0].length; + if (0 === s) return null; + var a = r + o; + return new Fr(t, a + 1, t, a + 1 + s); + }), + (e.findNextBracketInToken = function (e, t, n, r, i) { + var o = n.substring(r, i); + return this.findNextBracketInText(e, t, o, r); + }), + e + ); + })(), + wu = (function () { + function e(e) { + this._richEditBrackets = e; + } + return ( + (e.prototype.getElectricCharacters = function () { + var e = []; + if (this._richEditBrackets) + for ( + var t = 0, n = this._richEditBrackets.brackets.length; + t < n; + t++ + ) { + var r = this._richEditBrackets.brackets[t], + i = r.close.charAt(r.close.length - 1); + e.push(i); + } + return (e = e.filter(function (e, t, n) { + return n.indexOf(e) === t; + })); + }), + (e.prototype.onElectricCharacter = function (e, t, n) { + if ( + !this._richEditBrackets || + 0 === this._richEditBrackets.brackets.length + ) + return null; + var r = t.findTokenIndexAtOffset(n - 1); + if (su(t.getStandardTokenType(r))) return null; + var i = this._richEditBrackets.reversedRegex, + o = t.getLineContent().substring(0, n - 1) + e, + s = bu.findPrevBracketInToken(i, 1, o, 0, o.length); + if (!s) return null; + var a = o.substring(s.startColumn - 1, s.endColumn - 1); + if ( + ((a = a.toLowerCase()), + this._richEditBrackets.textIsOpenBracket[a]) + ) + return null; + var u = o.substring(0, s.startColumn - 1); + return /^\s*$/.test(u) ? { matchOpenBracket: a } : null; + }), + e + ); + })(), + Cu = (function () { + function e(e) { + this._indentationRules = e; + } + return ( + (e.prototype.shouldIncrease = function (e) { + return !!( + this._indentationRules && + this._indentationRules.increaseIndentPattern && + this._indentationRules.increaseIndentPattern.test(e) + ); + }), + (e.prototype.shouldDecrease = function (e) { + return !!( + this._indentationRules && + this._indentationRules.decreaseIndentPattern && + this._indentationRules.decreaseIndentPattern.test(e) + ); + }), + (e.prototype.shouldIndentNextLine = function (e) { + return !!( + this._indentationRules && + this._indentationRules.indentNextLinePattern && + this._indentationRules.indentNextLinePattern.test(e) + ); + }), + (e.prototype.shouldIgnore = function (e) { + return !!( + this._indentationRules && + this._indentationRules.unIndentedLinePattern && + this._indentationRules.unIndentedLinePattern.test(e) + ); + }), + (e.prototype.getIndentMetadata = function (e) { + var t = 0; + return ( + this.shouldIncrease(e) && (t += 1), + this.shouldDecrease(e) && (t += 2), + this.shouldIndentNextLine(e) && (t += 4), + this.shouldIgnore(e) && (t += 8), + t + ); + }), + e + ); + })(), + Su = (function () { + function e(t) { + var n = this; + ((t = t || {}).brackets = t.brackets || [ + ['(', ')'], + ['{', '}'], + ['[', ']'], + ]), + (this._brackets = []), + t.brackets.forEach(function (t) { + var r = e._createOpenBracketRegExp(t[0]), + i = e._createCloseBracketRegExp(t[1]); + r && + i && + n._brackets.push({ + open: t[0], + openRegExp: r, + close: t[1], + closeRegExp: i, + }); + }), + (this._regExpRules = t.regExpRules || []); + } + return ( + (e.prototype.onEnter = function (e, t, n) { + for (var r = 0, i = this._regExpRules.length; r < i; r++) { + var o = this._regExpRules[r]; + if ( + [ + { reg: o.beforeText, text: t }, + { reg: o.afterText, text: n }, + { reg: o.oneLineAboveText, text: e }, + ].every(function (e) { + return !e.reg || e.reg.test(e.text); + }) + ) + return o.action; + } + if (t.length > 0 && n.length > 0) + for (r = 0, i = this._brackets.length; r < i; r++) { + if ( + (s = this._brackets[r]).openRegExp.test(t) && + s.closeRegExp.test(n) + ) + return { indentAction: Xa.IndentOutdent }; + } + if (t.length > 0) + for (r = 0, i = this._brackets.length; r < i; r++) { + var s; + if ((s = this._brackets[r]).openRegExp.test(t)) + return { indentAction: Xa.Indent }; + } + return null; + }), + (e._createOpenBracketRegExp = function (t) { + var n = un(t); + return ( + /\B/.test(n.charAt(0)) || (n = '\\b' + n), + (n += '\\s*$'), + e._safeRegExp(n) + ); + }), + (e._createCloseBracketRegExp = function (t) { + var n = un(t); + return ( + /\B/.test(n.charAt(n.length - 1)) || (n += '\\b'), + (n = '^\\s*' + n), + e._safeRegExp(n) + ); + }), + (e._safeRegExp = function (e) { + try { + return new RegExp(e); + } catch (e) { + return qe(e), null; + } + }), + e + ); + })(), + xu = (function () { + function e(t, n, r) { + (this._languageIdentifier = t), + (this._brackets = null), + (this._electricCharacter = null); + var i = null; + n && (i = n._conf), + (this._conf = e._mergeConf(i, r)), + (this.onEnter = e._handleOnEnter(this._conf)), + (this.comments = e._handleComments(this._conf)), + (this.characterPair = new au(this._conf)), + (this.wordDefinition = this._conf.wordPattern || ti), + (this.indentationRules = this._conf.indentationRules), + this._conf.indentationRules + ? (this.indentRulesSupport = new Cu(this._conf.indentationRules)) + : (this.indentRulesSupport = null), + (this.foldingRules = this._conf.folding || {}); + } + return ( + Object.defineProperty(e.prototype, 'brackets', { + get: function () { + return ( + !this._brackets && + this._conf.brackets && + (this._brackets = new lu( + this._languageIdentifier, + this._conf.brackets + )), + this._brackets + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'electricCharacter', { + get: function () { + return ( + this._electricCharacter || + (this._electricCharacter = new wu(this.brackets)), + this._electricCharacter + ); + }, + enumerable: !0, + configurable: !0, + }), + (e._mergeConf = function (e, t) { + return { + comments: e ? t.comments || e.comments : t.comments, + brackets: e ? t.brackets || e.brackets : t.brackets, + wordPattern: e ? t.wordPattern || e.wordPattern : t.wordPattern, + indentationRules: e + ? t.indentationRules || e.indentationRules + : t.indentationRules, + onEnterRules: e + ? t.onEnterRules || e.onEnterRules + : t.onEnterRules, + autoClosingPairs: e + ? t.autoClosingPairs || e.autoClosingPairs + : t.autoClosingPairs, + surroundingPairs: e + ? t.surroundingPairs || e.surroundingPairs + : t.surroundingPairs, + autoCloseBefore: e + ? t.autoCloseBefore || e.autoCloseBefore + : t.autoCloseBefore, + folding: e ? t.folding || e.folding : t.folding, + __electricCharacterSupport: e + ? t.__electricCharacterSupport || e.__electricCharacterSupport + : t.__electricCharacterSupport, + }; + }), + (e._handleOnEnter = function (e) { + var t = {}, + n = !0; + return ( + e.brackets && ((n = !1), (t.brackets = e.brackets)), + e.indentationRules && (n = !1), + e.onEnterRules && ((n = !1), (t.regExpRules = e.onEnterRules)), + n ? null : new Su(t) + ); + }), + (e._handleComments = function (e) { + var t = e.comments; + if (!t) return null; + var n = {}; + if ( + (t.lineComment && (n.lineCommentToken = t.lineComment), + t.blockComment) + ) { + var r = t.blockComment, + i = r[0], + o = r[1]; + (n.blockCommentStartToken = i), (n.blockCommentEndToken = o); + } + return n; + }), + e + ); + })(), + Lu = function (e) { + this.languageIdentifier = e; + }, + ku = new ((function () { + function e() { + (this._entries = new Map()), + (this._onDidChange = new Gt()), + (this.onDidChange = this._onDidChange.event); + } + return ( + (e.prototype.register = function (e, t) { + var n = this, + r = this._getRichEditSupport(e.id), + i = new xu(e, r, t); + return ( + this._entries.set(e.id, i), + this._onDidChange.fire(new Lu(e)), + It(function () { + n._entries.get(e.id) === i && + (n._entries.set(e.id, r), n._onDidChange.fire(new Lu(e))); + }) + ); + }), + (e.prototype._getRichEditSupport = function (e) { + return this._entries.get(e); + }), + (e.prototype._getElectricCharacterSupport = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.electricCharacter) || null; + }), + (e.prototype.getElectricCharacters = function (e) { + var t = this._getElectricCharacterSupport(e); + return t ? t.getElectricCharacters() : []; + }), + (e.prototype.onElectricCharacter = function (e, t, n) { + var r = iu(t, n - 1), + i = this._getElectricCharacterSupport(r.languageId); + return i + ? i.onElectricCharacter(e, r, n - r.firstCharOffset) + : null; + }), + (e.prototype.getComments = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.comments) || null; + }), + (e.prototype._getCharacterPairSupport = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.characterPair) || null; + }), + (e.prototype.getAutoClosingPairs = function (e) { + var t = this._getCharacterPairSupport(e); + return t ? t.getAutoClosingPairs() : []; + }), + (e.prototype.getAutoCloseBeforeSet = function (e) { + var t = this._getCharacterPairSupport(e); + return t + ? t.getAutoCloseBeforeSet() + : au.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED; + }), + (e.prototype.getSurroundingPairs = function (e) { + var t = this._getCharacterPairSupport(e); + return t ? t.getSurroundingPairs() : []; + }), + (e.prototype.shouldAutoClosePair = function (e, t, n) { + var r = iu(t, n - 1); + return au.shouldAutoClosePair(e, r, n - r.firstCharOffset); + }), + (e.prototype.getWordDefinition = function (e) { + var t = this._getRichEditSupport(e); + return ni((t && t.wordDefinition) || null); + }), + (e.prototype.getFoldingRules = function (e) { + var t = this._getRichEditSupport(e); + return t ? t.foldingRules : {}; + }), + (e.prototype.getIndentRulesSupport = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.indentRulesSupport) || null; + }), + (e.prototype.getPrecedingValidLine = function (e, t, n) { + var r = e.getLanguageIdAtPosition(t, 0); + if (t > 1) { + var i = void 0, + o = -1; + for (i = t - 1; i >= 1; i--) { + if (e.getLanguageIdAtPosition(i, 0) !== r) return o; + var s = e.getLineContent(i); + if (!n.shouldIgnore(s) && !/^\s+$/.test(s) && '' !== s) + return i; + o = i; + } + } + return -1; + }), + (e.prototype.getInheritIndentForLine = function (e, t, n) { + void 0 === n && (n = !0); + var r = this.getIndentRulesSupport(e.getLanguageIdentifier().id); + if (!r) return null; + if (t <= 1) return { indentation: '', action: null }; + var i = this.getPrecedingValidLine(e, t, r); + if (i < 0) return null; + if (i < 1) return { indentation: '', action: null }; + var o = e.getLineContent(i); + if (r.shouldIncrease(o) || r.shouldIndentNextLine(o)) + return { indentation: gn(o), action: Xa.Indent, line: i }; + if (r.shouldDecrease(o)) + return { indentation: gn(o), action: null, line: i }; + if (1 === i) + return { + indentation: gn(e.getLineContent(i)), + action: null, + line: i, + }; + var s = i - 1, + a = r.getIndentMetadata(e.getLineContent(s)); + if (!(3 & a) && 4 & a) { + for (var u = 0, l = s - 1; l > 0; l--) + if (!r.shouldIndentNextLine(e.getLineContent(l))) { + u = l; + break; + } + return { + indentation: gn(e.getLineContent(u + 1)), + action: null, + line: u + 1, + }; + } + if (n) + return { + indentation: gn(e.getLineContent(i)), + action: null, + line: i, + }; + for (l = i; l > 0; l--) { + var c = e.getLineContent(l); + if (r.shouldIncrease(c)) + return { indentation: gn(c), action: Xa.Indent, line: l }; + if (r.shouldIndentNextLine(c)) { + u = 0; + for (var d = l - 1; d > 0; d--) + if (!r.shouldIndentNextLine(e.getLineContent(l))) { + u = d; + break; + } + return { + indentation: gn(e.getLineContent(u + 1)), + action: null, + line: u + 1, + }; + } + if (r.shouldDecrease(c)) + return { indentation: gn(c), action: null, line: l }; + } + return { + indentation: gn(e.getLineContent(1)), + action: null, + line: 1, + }; + }), + (e.prototype.getGoodIndentForLine = function (e, t, n, r) { + var i = this.getIndentRulesSupport(t); + if (!i) return null; + var o = this.getInheritIndentForLine(e, n), + s = e.getLineContent(n); + if (o) { + var a = o.line; + if (void 0 !== a) { + var u = this._getOnEnterSupport(t), + l = null; + try { + u && (l = u.onEnter('', e.getLineContent(a), '')); + } catch (e) { + qe(e); + } + if (l) { + var c = gn(e.getLineContent(a)); + return ( + l.removeText && + (c = c.substring(0, c.length - l.removeText)), + l.indentAction === Xa.Indent || + l.indentAction === Xa.IndentOutdent + ? (c = r.shiftIndent(c)) + : l.indentAction === Xa.Outdent && + (c = r.unshiftIndent(c)), + i.shouldDecrease(s) && (c = r.unshiftIndent(c)), + l.appendText && (c += l.appendText), + gn(c) + ); + } + } + return i.shouldDecrease(s) + ? o.action === Xa.Indent + ? o.indentation + : r.unshiftIndent(o.indentation) + : o.action === Xa.Indent + ? r.shiftIndent(o.indentation) + : o.indentation; + } + return null; + }), + (e.prototype.getIndentForEnter = function (e, t, n, r) { + e.forceTokenization(t.startLineNumber); + var i, + o, + s = e.getLineTokens(t.startLineNumber), + a = iu(s, t.startColumn - 1), + u = a.getLineContent(), + l = !1; + (a.firstCharOffset > 0 && s.getLanguageId(0) !== a.languageId + ? ((l = !0), + (i = u.substr(0, t.startColumn - 1 - a.firstCharOffset))) + : (i = s.getLineContent().substring(0, t.startColumn - 1)), + t.isEmpty()) + ? (o = u.substr(t.startColumn - 1 - a.firstCharOffset)) + : (o = this.getScopedLineTokens(e, t.endLineNumber, t.endColumn) + .getLineContent() + .substr(t.endColumn - 1 - a.firstCharOffset)); + var c = this.getIndentRulesSupport(a.languageId); + if (!c) return null; + var d = i, + h = gn(i); + if (!r && !l) { + var f = this.getInheritIndentForLine(e, t.startLineNumber); + c.shouldDecrease(i) && + f && + ((h = f.indentation), + f.action !== Xa.Indent && (h = n.unshiftIndent(h))), + (d = h + ln(ln(i, ' '), '\t')); + } + var p = { + getLineTokens: function (t) { + return e.getLineTokens(t); + }, + getLanguageIdentifier: function () { + return e.getLanguageIdentifier(); + }, + getLanguageIdAtPosition: function (t, n) { + return e.getLanguageIdAtPosition(t, n); + }, + getLineContent: function (n) { + return n === t.startLineNumber ? d : e.getLineContent(n); + }, + }, + g = gn(s.getLineContent()), + m = this.getInheritIndentForLine(p, t.startLineNumber + 1); + if (!m) { + var _ = l ? g : h; + return { beforeEnter: _, afterEnter: _ }; + } + var y = l ? g : m.indentation; + return ( + m.action === Xa.Indent && (y = n.shiftIndent(y)), + c.shouldDecrease(o) && (y = n.unshiftIndent(y)), + { beforeEnter: l ? g : h, afterEnter: y } + ); + }), + (e.prototype.getIndentActionForType = function (e, t, n, r) { + var i = this.getScopedLineTokens( + e, + t.startLineNumber, + t.startColumn + ), + o = this.getIndentRulesSupport(i.languageId); + if (!o) return null; + var s, + a = i.getLineContent(), + u = a.substr(0, t.startColumn - 1 - i.firstCharOffset); + t.isEmpty() + ? (s = a.substr(t.startColumn - 1 - i.firstCharOffset)) + : (s = this.getScopedLineTokens(e, t.endLineNumber, t.endColumn) + .getLineContent() + .substr(t.endColumn - 1 - i.firstCharOffset)); + if (!o.shouldDecrease(u + s) && o.shouldDecrease(u + n + s)) { + var l = this.getInheritIndentForLine(e, t.startLineNumber, !1); + if (!l) return null; + var c = l.indentation; + return l.action !== Xa.Indent && (c = r.unshiftIndent(c)), c; + } + return null; + }), + (e.prototype.getIndentMetadata = function (e, t) { + var n = this.getIndentRulesSupport(e.getLanguageIdentifier().id); + return n + ? t < 1 || t > e.getLineCount() + ? null + : n.getIndentMetadata(e.getLineContent(t)) + : null; + }), + (e.prototype._getOnEnterSupport = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.onEnter) || null; + }), + (e.prototype.getRawEnterActionAtPosition = function (e, t, n) { + var r = this.getEnterAction(e, new Fr(t, n, t, n)); + return r ? r.enterAction : null; + }), + (e.prototype.getEnterAction = function (e, t) { + var n = this.getIndentationAtPosition( + e, + t.startLineNumber, + t.startColumn + ), + r = this.getScopedLineTokens(e, t.startLineNumber, t.startColumn), + i = this._getOnEnterSupport(r.languageId); + if (!i) return null; + var o, + s = r.getLineContent(), + a = s.substr(0, t.startColumn - 1 - r.firstCharOffset); + t.isEmpty() + ? (o = s.substr(t.startColumn - 1 - r.firstCharOffset)) + : (o = this.getScopedLineTokens(e, t.endLineNumber, t.endColumn) + .getLineContent() + .substr(t.endColumn - 1 - r.firstCharOffset)); + var u = t.startLineNumber, + l = ''; + if (u > 1 && 0 === r.firstCharOffset) { + var c = this.getScopedLineTokens(e, u - 1); + c.languageId === r.languageId && (l = c.getLineContent()); + } + var d = null; + try { + d = i.onEnter(l, a, o); + } catch (e) { + qe(e); + } + return d + ? (d.appendText || + (d.indentAction === Xa.Indent || + d.indentAction === Xa.IndentOutdent + ? (d.appendText = '\t') + : (d.appendText = '')), + d.removeText && (n = n.substring(0, n.length - d.removeText)), + { enterAction: d, indentation: n }) + : null; + }), + (e.prototype.getIndentationAtPosition = function (e, t, n) { + var r = gn(e.getLineContent(t)); + return r.length > n - 1 && (r = r.substring(0, n - 1)), r; + }), + (e.prototype.getScopedLineTokens = function (e, t, n) { + return ( + e.forceTokenization(t), + iu( + e.getLineTokens(t), + void 0 === n ? e.getLineMaxColumn(t) - 1 : n - 1 + ) + ); + }), + (e.prototype.getBracketsSupport = function (e) { + var t = this._getRichEditSupport(e); + return (t && t.brackets) || null; + }), + e + ); + })())(); + function Mu(e, t) { + var n = Math.pow(10, t); + return Math.round(e * n) / n; + } + var Du = (function () { + function e(e, t, n, r) { + void 0 === r && (r = 1), + (this.r = 0 | Math.min(255, Math.max(0, e))), + (this.g = 0 | Math.min(255, Math.max(0, t))), + (this.b = 0 | Math.min(255, Math.max(0, n))), + (this.a = Mu(Math.max(Math.min(1, r), 0), 3)); + } + return ( + (e.equals = function (e, t) { + return e.r === t.r && e.g === t.g && e.b === t.b && e.a === t.a; + }), + e + ); + })(), + Eu = (function () { + function e(e, t, n, r) { + (this.h = 0 | Math.max(Math.min(360, e), 0)), + (this.s = Mu(Math.max(Math.min(1, t), 0), 3)), + (this.l = Mu(Math.max(Math.min(1, n), 0), 3)), + (this.a = Mu(Math.max(Math.min(1, r), 0), 3)); + } + return ( + (e.equals = function (e, t) { + return e.h === t.h && e.s === t.s && e.l === t.l && e.a === t.a; + }), + (e.fromRGBA = function (t) { + var n = t.r / 255, + r = t.g / 255, + i = t.b / 255, + o = t.a, + s = Math.max(n, r, i), + a = Math.min(n, r, i), + u = 0, + l = 0, + c = (a + s) / 2, + d = s - a; + if (d > 0) { + switch ( + ((l = Math.min(c <= 0.5 ? d / (2 * c) : d / (2 - 2 * c), 1)), s) + ) { + case n: + u = (r - i) / d + (r < i ? 6 : 0); + break; + case r: + u = (i - n) / d + 2; + break; + case i: + u = (n - r) / d + 4; + } + (u *= 60), (u = Math.round(u)); + } + return new e(u, l, c, o); + }), + (e._hue2rgb = function (e, t, n) { + return ( + n < 0 && (n += 1), + n > 1 && (n -= 1), + n < 1 / 6 + ? e + 6 * (t - e) * n + : n < 0.5 + ? t + : n < 2 / 3 + ? e + (t - e) * (2 / 3 - n) * 6 + : e + ); + }), + (e.toRGBA = function (t) { + var n, + r, + i, + o = t.h / 360, + s = t.s, + a = t.l, + u = t.a; + if (0 === s) n = r = i = a; + else { + var l = a < 0.5 ? a * (1 + s) : a + s - a * s, + c = 2 * a - l; + (n = e._hue2rgb(c, l, o + 1 / 3)), + (r = e._hue2rgb(c, l, o)), + (i = e._hue2rgb(c, l, o - 1 / 3)); + } + return new Du( + Math.round(255 * n), + Math.round(255 * r), + Math.round(255 * i), + u + ); + }), + e + ); + })(), + Tu = (function () { + function e(e, t, n, r) { + (this.h = 0 | Math.max(Math.min(360, e), 0)), + (this.s = Mu(Math.max(Math.min(1, t), 0), 3)), + (this.v = Mu(Math.max(Math.min(1, n), 0), 3)), + (this.a = Mu(Math.max(Math.min(1, r), 0), 3)); + } + return ( + (e.equals = function (e, t) { + return e.h === t.h && e.s === t.s && e.v === t.v && e.a === t.a; + }), + (e.fromRGBA = function (t) { + var n, + r = t.r / 255, + i = t.g / 255, + o = t.b / 255, + s = Math.max(r, i, o), + a = s - Math.min(r, i, o), + u = 0 === s ? 0 : a / s; + return ( + (n = + 0 === a + ? 0 + : s === r + ? ((((i - o) / a) % 6) + 6) % 6 + : s === i + ? (o - r) / a + 2 + : (r - i) / a + 4), + new e(Math.round(60 * n), u, s, t.a) + ); + }), + (e.toRGBA = function (e) { + var t = e.h, + n = e.s, + r = e.v, + i = e.a, + o = r * n, + s = o * (1 - Math.abs(((t / 60) % 2) - 1)), + a = r - o, + u = [0, 0, 0], + l = u[0], + c = u[1], + d = u[2]; + return ( + t < 60 + ? ((l = o), (c = s)) + : t < 120 + ? ((l = s), (c = o)) + : t < 180 + ? ((c = o), (d = s)) + : t < 240 + ? ((c = s), (d = o)) + : t < 300 + ? ((l = s), (d = o)) + : t < 360 && ((l = o), (d = s)), + (l = Math.round(255 * (l + a))), + (c = Math.round(255 * (c + a))), + (d = Math.round(255 * (d + a))), + new Du(l, c, d, i) + ); + }), + e + ); + })(), + Nu = (function () { + function e(e) { + if (!e) throw new Error('Color needs a value'); + if (e instanceof Du) this.rgba = e; + else if (e instanceof Eu) + (this._hsla = e), (this.rgba = Eu.toRGBA(e)); + else { + if (!(e instanceof Tu)) + throw new Error('Invalid color ctor argument'); + (this._hsva = e), (this.rgba = Tu.toRGBA(e)); + } + } + return ( + (e.fromHex = function (t) { + return e.Format.CSS.parseHex(t) || e.red; + }), + Object.defineProperty(e.prototype, 'hsla', { + get: function () { + return this._hsla ? this._hsla : Eu.fromRGBA(this.rgba); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'hsva', { + get: function () { + return this._hsva ? this._hsva : Tu.fromRGBA(this.rgba); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.equals = function (e) { + return ( + !!e && + Du.equals(this.rgba, e.rgba) && + Eu.equals(this.hsla, e.hsla) && + Tu.equals(this.hsva, e.hsva) + ); + }), + (e.prototype.getRelativeLuminance = function () { + return Mu( + 0.2126 * e._relativeLuminanceForComponent(this.rgba.r) + + 0.7152 * e._relativeLuminanceForComponent(this.rgba.g) + + 0.0722 * e._relativeLuminanceForComponent(this.rgba.b), + 4 + ); + }), + (e._relativeLuminanceForComponent = function (e) { + var t = e / 255; + return t <= 0.03928 + ? t / 12.92 + : Math.pow((t + 0.055) / 1.055, 2.4); + }), + (e.prototype.isLighter = function () { + return ( + (299 * this.rgba.r + 587 * this.rgba.g + 114 * this.rgba.b) / + 1e3 >= + 128 + ); + }), + (e.prototype.isLighterThan = function (e) { + return this.getRelativeLuminance() > e.getRelativeLuminance(); + }), + (e.prototype.isDarkerThan = function (e) { + return this.getRelativeLuminance() < e.getRelativeLuminance(); + }), + (e.prototype.lighten = function (t) { + return new e( + new Eu( + this.hsla.h, + this.hsla.s, + this.hsla.l + this.hsla.l * t, + this.hsla.a + ) + ); + }), + (e.prototype.darken = function (t) { + return new e( + new Eu( + this.hsla.h, + this.hsla.s, + this.hsla.l - this.hsla.l * t, + this.hsla.a + ) + ); + }), + (e.prototype.transparent = function (t) { + var n = this.rgba, + r = n.r, + i = n.g, + o = n.b, + s = n.a; + return new e(new Du(r, i, o, s * t)); + }), + (e.prototype.isTransparent = function () { + return 0 === this.rgba.a; + }), + (e.prototype.isOpaque = function () { + return 1 === this.rgba.a; + }), + (e.prototype.opposite = function () { + return new e( + new Du( + 255 - this.rgba.r, + 255 - this.rgba.g, + 255 - this.rgba.b, + this.rgba.a + ) + ); + }), + (e.prototype.toString = function () { + return '' + e.Format.CSS.format(this); + }), + (e.getLighterColor = function (e, t, n) { + if (e.isLighterThan(t)) return e; + n = n || 0.5; + var r = e.getRelativeLuminance(), + i = t.getRelativeLuminance(); + return (n = (n * (i - r)) / i), e.lighten(n); + }), + (e.getDarkerColor = function (e, t, n) { + if (e.isDarkerThan(t)) return e; + n = n || 0.5; + var r = e.getRelativeLuminance(); + return (n = (n * (r - t.getRelativeLuminance())) / r), e.darken(n); + }), + (e.white = new e(new Du(255, 255, 255, 1))), + (e.black = new e(new Du(0, 0, 0, 1))), + (e.red = new e(new Du(255, 0, 0, 1))), + (e.blue = new e(new Du(0, 0, 255, 1))), + (e.cyan = new e(new Du(0, 255, 255, 1))), + (e.lightgrey = new e(new Du(211, 211, 211, 1))), + (e.transparent = new e(new Du(0, 0, 0, 0))), + e + ); + })(); + !(function (e) { + !(function (t) { + !(function (t) { + function n(e) { + var t = e.toString(16); + return 2 !== t.length ? '0' + t : t; + } + function r(e) { + switch (e) { + case 48: + return 0; + case 49: + return 1; + case 50: + return 2; + case 51: + return 3; + case 52: + return 4; + case 53: + return 5; + case 54: + return 6; + case 55: + return 7; + case 56: + return 8; + case 57: + return 9; + case 97: + case 65: + return 10; + case 98: + case 66: + return 11; + case 99: + case 67: + return 12; + case 100: + case 68: + return 13; + case 101: + case 69: + return 14; + case 102: + case 70: + return 15; + } + return 0; + } + (t.formatRGB = function (t) { + return 1 === t.rgba.a + ? 'rgb(' + t.rgba.r + ', ' + t.rgba.g + ', ' + t.rgba.b + ')' + : e.Format.CSS.formatRGBA(t); + }), + (t.formatRGBA = function (e) { + return ( + 'rgba(' + + e.rgba.r + + ', ' + + e.rgba.g + + ', ' + + e.rgba.b + + ', ' + + +e.rgba.a.toFixed(2) + + ')' + ); + }), + (t.formatHSL = function (t) { + return 1 === t.hsla.a + ? 'hsl(' + + t.hsla.h + + ', ' + + (100 * t.hsla.s).toFixed(2) + + '%, ' + + (100 * t.hsla.l).toFixed(2) + + '%)' + : e.Format.CSS.formatHSLA(t); + }), + (t.formatHSLA = function (e) { + return ( + 'hsla(' + + e.hsla.h + + ', ' + + (100 * e.hsla.s).toFixed(2) + + '%, ' + + (100 * e.hsla.l).toFixed(2) + + '%, ' + + e.hsla.a.toFixed(2) + + ')' + ); + }), + (t.formatHex = function (e) { + return '#' + n(e.rgba.r) + n(e.rgba.g) + n(e.rgba.b); + }), + (t.formatHexA = function (t, r) { + return ( + void 0 === r && (r = !1), + r && 1 === t.rgba.a + ? e.Format.CSS.formatHex(t) + : '#' + + n(t.rgba.r) + + n(t.rgba.g) + + n(t.rgba.b) + + n(Math.round(255 * t.rgba.a)) + ); + }), + (t.format = function (t) { + return t + ? t.isOpaque() + ? e.Format.CSS.formatHex(t) + : e.Format.CSS.formatRGBA(t) + : null; + }), + (t.parseHex = function (t) { + if (!t) return null; + var n = t.length; + if (0 === n) return null; + if (35 !== t.charCodeAt(0)) return null; + if (7 === n) { + var i = 16 * r(t.charCodeAt(1)) + r(t.charCodeAt(2)), + o = 16 * r(t.charCodeAt(3)) + r(t.charCodeAt(4)), + s = 16 * r(t.charCodeAt(5)) + r(t.charCodeAt(6)); + return new e(new Du(i, o, s, 1)); + } + if (9 === n) { + (i = 16 * r(t.charCodeAt(1)) + r(t.charCodeAt(2))), + (o = 16 * r(t.charCodeAt(3)) + r(t.charCodeAt(4))), + (s = 16 * r(t.charCodeAt(5)) + r(t.charCodeAt(6))); + var a = 16 * r(t.charCodeAt(7)) + r(t.charCodeAt(8)); + return new e(new Du(i, o, s, a / 255)); + } + if (4 === n) { + (i = r(t.charCodeAt(1))), + (o = r(t.charCodeAt(2))), + (s = r(t.charCodeAt(3))); + return new e(new Du(16 * i + i, 16 * o + o, 16 * s + s)); + } + if (5 === n) { + (i = r(t.charCodeAt(1))), + (o = r(t.charCodeAt(2))), + (s = r(t.charCodeAt(3))), + (a = r(t.charCodeAt(4))); + return new e( + new Du(16 * i + i, 16 * o + o, 16 * s + s, (16 * a + a) / 255) + ); + } + return null; + }); + })(t.CSS || (t.CSS = {})); + })(e.Format || (e.Format = {})); + })(Nu || (Nu = {})); + var Ou = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function Au(e) { + var t = new Ho(); + return t.acceptChunk(e), t.finish(); + } + function Iu(e, t) { + return ('string' == typeof e ? Au(e) : e).create(t); + } + var Pu = 0, + Ru = function () { + throw new Error('Invalid change accessor'); + }, + Fu = (function (e) { + function t(n, r, i, o) { + void 0 === o && (o = null); + var s = e.call(this) || this; + (s._onWillDispose = s._register(new Gt())), + (s.onWillDispose = s._onWillDispose.event), + (s._onDidChangeDecorations = s._register(new qu())), + (s.onDidChangeDecorations = s._onDidChangeDecorations.event), + (s._onDidChangeLanguage = s._register(new Gt())), + (s.onDidChangeLanguage = s._onDidChangeLanguage.event), + (s._onDidChangeLanguageConfiguration = s._register(new Gt())), + (s.onDidChangeLanguageConfiguration = + s._onDidChangeLanguageConfiguration.event), + (s._onDidChangeTokens = s._register(new Gt())), + (s.onDidChangeTokens = s._onDidChangeTokens.event), + (s._onDidChangeOptions = s._register(new Gt())), + (s.onDidChangeOptions = s._onDidChangeOptions.event), + (s._onDidChangeAttached = s._register(new Gt())), + (s.onDidChangeAttached = s._onDidChangeAttached.event), + (s._eventEmitter = s._register(new Ku())), + Pu++, + (s.id = '$model' + Pu), + (s.isForSimpleWidget = r.isForSimpleWidget), + (s._associatedResource = + null == o ? dt.parse('inmemory://model/' + Pu) : o), + (s._attachedEditorCount = 0), + (s._buffer = Iu(n, r.defaultEOL)), + (s._options = t.resolveOptions(s._buffer, r)); + var a = s._buffer.getLineCount(), + u = s._buffer.getValueLengthInRange( + new Fr(1, 1, a, s._buffer.getLineLength(a) + 1), + 0 + ); + return ( + r.largeFileOptimizations + ? (s._isTooLargeForTokenization = + u > t.LARGE_FILE_SIZE_THRESHOLD || + a > t.LARGE_FILE_LINE_COUNT_THRESHOLD) + : (s._isTooLargeForTokenization = !1), + (s._isTooLargeForSyncing = u > t.MODEL_SYNC_LIMIT), + (s._versionId = 1), + (s._alternativeVersionId = 1), + (s._isDisposed = !1), + (s._isDisposing = !1), + (s._languageIdentifier = i || Wa), + (s._languageRegistryListener = ku.onDidChange(function (e) { + e.languageIdentifier.id === s._languageIdentifier.id && + s._onDidChangeLanguageConfiguration.fire({}); + })), + (s._instanceId = An(Pu)), + (s._lastDecorationId = 0), + (s._decorations = Object.create(null)), + (s._decorationsTree = new Yu()), + (s._commandManager = new Ei(s)), + (s._isUndoing = !1), + (s._isRedoing = !1), + (s._trimAutoWhitespaceLines = null), + (s._tokens = new Ja()), + (s._tokenization = new tu(s)), + s + ); + } + return ( + Ou(t, e), + (t.createFromString = function (e, n, r, i) { + return ( + void 0 === n && (n = t.DEFAULT_CREATION_OPTIONS), + void 0 === r && (r = null), + void 0 === i && (i = null), + new t(e, n, r, i) + ); + }), + (t.resolveOptions = function (e, t) { + if (t.detectIndentation) { + var n = Oi(e, t.tabSize, t.insertSpaces); + return new Si({ + tabSize: n.tabSize, + indentSize: n.tabSize, + insertSpaces: n.insertSpaces, + trimAutoWhitespace: t.trimAutoWhitespace, + defaultEOL: t.defaultEOL, + }); + } + return new Si({ + tabSize: t.tabSize, + indentSize: t.indentSize, + insertSpaces: t.insertSpaces, + trimAutoWhitespace: t.trimAutoWhitespace, + defaultEOL: t.defaultEOL, + }); + }), + (t.prototype.onDidChangeRawContentFast = function (e) { + return this._eventEmitter.fastEvent(function (t) { + return e(t.rawContentChangedEvent); + }); + }), + (t.prototype.onDidChangeRawContent = function (e) { + return this._eventEmitter.slowEvent(function (t) { + return e(t.rawContentChangedEvent); + }); + }), + (t.prototype.onDidChangeContentFast = function (e) { + return this._eventEmitter.fastEvent(function (t) { + return e(t.contentChangedEvent); + }); + }), + (t.prototype.onDidChangeContent = function (e) { + return this._eventEmitter.slowEvent(function (t) { + return e(t.contentChangedEvent); + }); + }), + (t.prototype.dispose = function () { + (this._isDisposing = !0), + this._onWillDispose.fire(), + this._languageRegistryListener.dispose(), + this._tokenization.dispose(), + (this._isDisposed = !0), + e.prototype.dispose.call(this), + (this._isDisposing = !1); + }), + (t.prototype._assertNotDisposed = function () { + if (this._isDisposed) throw new Error('Model is disposed!'); + }), + (t.prototype._emitContentChangedEvent = function (e, t) { + this._isDisposing || this._eventEmitter.fire(new $o(e, t)); + }), + (t.prototype.setValue = function (e) { + if ((this._assertNotDisposed(), null !== e)) { + var t = Iu(e, this._options.defaultEOL); + this.setValueFromTextBuffer(t); + } + }), + (t.prototype._createContentChanged2 = function (e, t, n, r, i, o, s) { + return { + changes: [{ range: e, rangeOffset: t, rangeLength: n, text: r }], + eol: this._buffer.getEOL(), + versionId: this.getVersionId(), + isUndoing: i, + isRedoing: o, + isFlush: s, + }; + }), + (t.prototype.setValueFromTextBuffer = function (e) { + if ((this._assertNotDisposed(), null !== e)) { + var t = this.getFullModelRange(), + n = this.getValueLengthInRange(t), + r = this.getLineCount(), + i = this.getLineMaxColumn(r); + (this._buffer = e), + this._increaseVersionId(), + this._tokens.flush(), + (this._decorations = Object.create(null)), + (this._decorationsTree = new Yu()), + (this._commandManager = new Ei(this)), + (this._trimAutoWhitespaceLines = null), + this._emitContentChangedEvent( + new Go([new Vo()], this._versionId, !1, !1), + this._createContentChanged2( + new Fr(1, 1, r, i), + 0, + n, + this.getValue(), + !1, + !1, + !0 + ) + ); + } + }), + (t.prototype.setEOL = function (e) { + this._assertNotDisposed(); + var t = 1 === e ? '\r\n' : '\n'; + if (this._buffer.getEOL() !== t) { + var n = this.getFullModelRange(), + r = this.getValueLengthInRange(n), + i = this.getLineCount(), + o = this.getLineMaxColumn(i); + this._onBeforeEOLChange(), + this._buffer.setEOL(t), + this._increaseVersionId(), + this._onAfterEOLChange(), + this._emitContentChangedEvent( + new Go([new Ko()], this._versionId, !1, !1), + this._createContentChanged2( + new Fr(1, 1, i, o), + 0, + r, + this.getValue(), + !1, + !1, + !1 + ) + ); + } + }), + (t.prototype._onBeforeEOLChange = function () { + var e = this.getVersionId(), + t = this._decorationsTree.search(0, !1, !1, e); + this._ensureNodesHaveRanges(t); + }), + (t.prototype._onAfterEOLChange = function () { + for ( + var e = this.getVersionId(), + t = this._decorationsTree.collectNodesPostOrder(), + n = 0, + r = t.length; + n < r; + n++ + ) { + var i = t[n], + o = i.cachedAbsoluteStart - i.start, + s = this._buffer.getOffsetAt( + i.range.startLineNumber, + i.range.startColumn + ), + a = this._buffer.getOffsetAt( + i.range.endLineNumber, + i.range.endColumn + ); + (i.cachedAbsoluteStart = s), + (i.cachedAbsoluteEnd = a), + (i.cachedVersionId = e), + (i.start = s - o), + (i.end = a - o), + eo(i); + } + }), + (t.prototype.onBeforeAttached = function () { + this._attachedEditorCount++, + 1 === this._attachedEditorCount && + this._onDidChangeAttached.fire(void 0); + }), + (t.prototype.onBeforeDetached = function () { + this._attachedEditorCount--, + 0 === this._attachedEditorCount && + this._onDidChangeAttached.fire(void 0); + }), + (t.prototype.isAttachedToEditor = function () { + return this._attachedEditorCount > 0; + }), + (t.prototype.getAttachedEditorCount = function () { + return this._attachedEditorCount; + }), + (t.prototype.isTooLargeForSyncing = function () { + return this._isTooLargeForSyncing; + }), + (t.prototype.isTooLargeForTokenization = function () { + return this._isTooLargeForTokenization; + }), + (t.prototype.isDisposed = function () { + return this._isDisposed; + }), + (t.prototype.isDominatedByLongLines = function () { + if ((this._assertNotDisposed(), this.isTooLargeForTokenization())) + return !1; + for ( + var e = 0, t = 0, n = this._buffer.getLineCount(), r = 1; + r <= n; + r++ + ) { + var i = this._buffer.getLineLength(r); + i >= 1e4 ? (t += i) : (e += i); + } + return t > e; + }), + Object.defineProperty(t.prototype, 'uri', { + get: function () { + return this._associatedResource; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.getOptions = function () { + return this._assertNotDisposed(), this._options; + }), + (t.prototype.getFormattingOptions = function () { + return { + tabSize: this._options.indentSize, + insertSpaces: this._options.insertSpaces, + }; + }), + (t.prototype.updateOptions = function (e) { + this._assertNotDisposed(); + var t = void 0 !== e.tabSize ? e.tabSize : this._options.tabSize, + n = + void 0 !== e.indentSize + ? e.indentSize + : this._options.indentSize, + r = + void 0 !== e.insertSpaces + ? e.insertSpaces + : this._options.insertSpaces, + i = + void 0 !== e.trimAutoWhitespace + ? e.trimAutoWhitespace + : this._options.trimAutoWhitespace, + o = new Si({ + tabSize: t, + indentSize: n, + insertSpaces: r, + defaultEOL: this._options.defaultEOL, + trimAutoWhitespace: i, + }); + if (!this._options.equals(o)) { + var s = this._options.createChangeEvent(o); + (this._options = o), this._onDidChangeOptions.fire(s); + } + }), + (t.prototype.detectIndentation = function (e, t) { + this._assertNotDisposed(); + var n = Oi(this._buffer, t, e); + this.updateOptions({ + insertSpaces: n.insertSpaces, + tabSize: n.tabSize, + indentSize: n.tabSize, + }); + }), + (t._normalizeIndentationFromWhitespace = function (e, t, n) { + for (var r = 0, i = 0; i < e.length; i++) + '\t' === e.charAt(i) ? (r += t) : r++; + var o = ''; + if (!n) { + var s = Math.floor(r / t); + r %= t; + for (i = 0; i < s; i++) o += '\t'; + } + for (i = 0; i < r; i++) o += ' '; + return o; + }), + (t.normalizeIndentation = function (e, n, r) { + var i = pn(e); + return ( + -1 === i && (i = e.length), + t._normalizeIndentationFromWhitespace(e.substring(0, i), n, r) + + e.substring(i) + ); + }), + (t.prototype.normalizeIndentation = function (e) { + return ( + this._assertNotDisposed(), + t.normalizeIndentation( + e, + this._options.indentSize, + this._options.insertSpaces + ) + ); + }), + (t.prototype.getVersionId = function () { + return this._assertNotDisposed(), this._versionId; + }), + (t.prototype.mightContainRTL = function () { + return this._buffer.mightContainRTL(); + }), + (t.prototype.mightContainNonBasicASCII = function () { + return this._buffer.mightContainNonBasicASCII(); + }), + (t.prototype.getAlternativeVersionId = function () { + return this._assertNotDisposed(), this._alternativeVersionId; + }), + (t.prototype.getOffsetAt = function (e) { + this._assertNotDisposed(); + var t = this._validatePosition(e.lineNumber, e.column, !1); + return this._buffer.getOffsetAt(t.lineNumber, t.column); + }), + (t.prototype.getPositionAt = function (e) { + this._assertNotDisposed(); + var t = Math.min(this._buffer.getLength(), Math.max(0, e)); + return this._buffer.getPositionAt(t); + }), + (t.prototype._increaseVersionId = function () { + (this._versionId = this._versionId + 1), + (this._alternativeVersionId = this._versionId); + }), + (t.prototype._overwriteAlternativeVersionId = function (e) { + this._alternativeVersionId = e; + }), + (t.prototype.getValue = function (e, t) { + void 0 === t && (t = !1), this._assertNotDisposed(); + var n = this.getFullModelRange(), + r = this.getValueInRange(n, e); + return t ? this._buffer.getBOM() + r : r; + }), + (t.prototype.getValueLength = function (e, t) { + void 0 === t && (t = !1), this._assertNotDisposed(); + var n = this.getFullModelRange(), + r = this.getValueLengthInRange(n, e); + return t ? this._buffer.getBOM().length + r : r; + }), + (t.prototype.getValueInRange = function (e, t) { + return ( + void 0 === t && (t = 0), + this._assertNotDisposed(), + this._buffer.getValueInRange(this.validateRange(e), t) + ); + }), + (t.prototype.getValueLengthInRange = function (e, t) { + return ( + void 0 === t && (t = 0), + this._assertNotDisposed(), + this._buffer.getValueLengthInRange(this.validateRange(e), t) + ); + }), + (t.prototype.getLineCount = function () { + return this._assertNotDisposed(), this._buffer.getLineCount(); + }), + (t.prototype.getLineContent = function (e) { + if ((this._assertNotDisposed(), e < 1 || e > this.getLineCount())) + throw new Error('Illegal value for lineNumber'); + return this._buffer.getLineContent(e); + }), + (t.prototype.getLineLength = function (e) { + if ((this._assertNotDisposed(), e < 1 || e > this.getLineCount())) + throw new Error('Illegal value for lineNumber'); + return this._buffer.getLineLength(e); + }), + (t.prototype.getLinesContent = function () { + return this._assertNotDisposed(), this._buffer.getLinesContent(); + }), + (t.prototype.getEOL = function () { + return this._assertNotDisposed(), this._buffer.getEOL(); + }), + (t.prototype.getLineMinColumn = function (e) { + return this._assertNotDisposed(), 1; + }), + (t.prototype.getLineMaxColumn = function (e) { + if ((this._assertNotDisposed(), e < 1 || e > this.getLineCount())) + throw new Error('Illegal value for lineNumber'); + return this._buffer.getLineLength(e) + 1; + }), + (t.prototype.getLineFirstNonWhitespaceColumn = function (e) { + if ((this._assertNotDisposed(), e < 1 || e > this.getLineCount())) + throw new Error('Illegal value for lineNumber'); + return this._buffer.getLineFirstNonWhitespaceColumn(e); + }), + (t.prototype.getLineLastNonWhitespaceColumn = function (e) { + if ((this._assertNotDisposed(), e < 1 || e > this.getLineCount())) + throw new Error('Illegal value for lineNumber'); + return this._buffer.getLineLastNonWhitespaceColumn(e); + }), + (t.prototype._validateRangeRelaxedNoAllocations = function (e) { + var t, + n, + r = this._buffer.getLineCount(), + i = e.startLineNumber, + o = e.startColumn; + if (i < 1) (t = 1), (n = 1); + else if (i > r) (t = r), (n = this.getLineMaxColumn(t)); + else { + if (((t = 0 | i), o <= 1)) n = 1; + else n = o >= (c = this.getLineMaxColumn(t)) ? c : 0 | o; + } + var s, + a, + u = e.endLineNumber, + l = e.endColumn; + if (u < 1) (s = 1), (a = 1); + else if (u > r) (s = r), (a = this.getLineMaxColumn(s)); + else { + var c; + if (((s = 0 | u), l <= 1)) a = 1; + else a = l >= (c = this.getLineMaxColumn(s)) ? c : 0 | l; + } + return i === t && + o === n && + u === s && + l === a && + e instanceof Fr && + !(e instanceof jr) + ? e + : new Fr(t, n, s, a); + }), + (t.prototype._isValidPosition = function (e, t, n) { + if ('number' != typeof e || 'number' != typeof t) return !1; + if (isNaN(e) || isNaN(t)) return !1; + if (e < 1 || t < 1) return !1; + if ((0 | e) !== e || (0 | t) !== t) return !1; + if (e > this._buffer.getLineCount()) return !1; + if (t > this.getLineMaxColumn(e)) return !1; + if (n && t > 1 && Sn(this._buffer.getLineCharCode(e, t - 2))) + return !1; + return !0; + }), + (t.prototype._validatePosition = function (e, t, n) { + var r = Math.floor('number' != typeof e || isNaN(e) ? 1 : e), + i = Math.floor('number' != typeof t || isNaN(t) ? 1 : t), + o = this._buffer.getLineCount(); + if (r < 1) return new xt(1, 1); + if (r > o) return new xt(o, this.getLineMaxColumn(o)); + if (i <= 1) return new xt(r, 1); + var s = this.getLineMaxColumn(r); + if (i >= s) return new xt(r, s); + if (n && Sn(this._buffer.getLineCharCode(r, i - 2))) + return new xt(r, i - 1); + return new xt(r, i); + }), + (t.prototype.validatePosition = function (e) { + return ( + this._assertNotDisposed(), + e instanceof xt && + this._isValidPosition(e.lineNumber, e.column, !0) + ? e + : this._validatePosition(e.lineNumber, e.column, !0) + ); + }), + (t.prototype._isValidRange = function (e, t) { + var n = e.startLineNumber, + r = e.startColumn, + i = e.endLineNumber, + o = e.endColumn; + if (!this._isValidPosition(n, r, !1)) return !1; + if (!this._isValidPosition(i, o, !1)) return !1; + if (t) { + var s = r > 1 ? this._buffer.getLineCharCode(n, r - 2) : 0, + a = + o > 1 && o <= this._buffer.getLineLength(i) + ? this._buffer.getLineCharCode(i, o - 2) + : 0, + u = Sn(s), + l = Sn(a); + return !u && !l; + } + return !0; + }), + (t.prototype.validateRange = function (e) { + if ( + (this._assertNotDisposed(), + e instanceof Fr && + !(e instanceof jr) && + this._isValidRange(e, !0)) + ) + return e; + var t = this._validatePosition( + e.startLineNumber, + e.startColumn, + !1 + ), + n = this._validatePosition(e.endLineNumber, e.endColumn, !1), + r = t.lineNumber, + i = t.column, + o = n.lineNumber, + s = n.column, + a = i > 1 ? this._buffer.getLineCharCode(r, i - 2) : 0, + u = + s > 1 && s <= this._buffer.getLineLength(o) + ? this._buffer.getLineCharCode(o, s - 2) + : 0, + l = Sn(a), + c = Sn(u); + return l || c + ? r === o && i === s + ? new Fr(r, i - 1, o, s - 1) + : l && c + ? new Fr(r, i - 1, o, s + 1) + : l + ? new Fr(r, i - 1, o, s) + : new Fr(r, i, o, s + 1) + : new Fr(r, i, o, s); + }), + (t.prototype.modifyPosition = function (e, t) { + this._assertNotDisposed(); + var n = this.getOffsetAt(e) + t; + return this.getPositionAt( + Math.min(this._buffer.getLength(), Math.max(0, n)) + ); + }), + (t.prototype.getFullModelRange = function () { + this._assertNotDisposed(); + var e = this.getLineCount(); + return new Fr(1, 1, e, this.getLineMaxColumn(e)); + }), + (t.prototype.findMatchesLineByLine = function (e, t, n, r) { + return this._buffer.findMatchesLineByLine(e, t, n, r); + }), + (t.prototype.findMatches = function (e, t, n, r, i, o, s) { + var a; + if ( + (void 0 === s && (s = 999), + this._assertNotDisposed(), + (a = Fr.isIRange(t) + ? this.validateRange(t) + : this.getFullModelRange()), + !n && e.indexOf('\n') < 0) + ) { + var u = new ko(e, n, r, i).parseSearchRequest(); + return u ? this.findMatchesLineByLine(a, u, o, s) : []; + } + return To.findMatches(this, new ko(e, n, r, i), a, o, s); + }), + (t.prototype.findNextMatch = function (e, t, n, r, i, o) { + this._assertNotDisposed(); + var s = this.validatePosition(t); + if (!n && e.indexOf('\n') < 0) { + var a = new ko(e, n, r, i).parseSearchRequest(); + if (!a) return null; + var u = this.getLineCount(), + l = new Fr(s.lineNumber, s.column, u, this.getLineMaxColumn(u)), + c = this.findMatchesLineByLine(l, a, o, 1); + return ( + To.findNextMatch(this, new ko(e, n, r, i), s, o), + c.length > 0 + ? c[0] + : ((l = new Fr( + 1, + 1, + s.lineNumber, + this.getLineMaxColumn(s.lineNumber) + )), + (c = this.findMatchesLineByLine(l, a, o, 1)).length > 0 + ? c[0] + : null) + ); + } + return To.findNextMatch(this, new ko(e, n, r, i), s, o); + }), + (t.prototype.findPreviousMatch = function (e, t, n, r, i, o) { + this._assertNotDisposed(); + var s = this.validatePosition(t); + return To.findPreviousMatch(this, new ko(e, n, r, i), s, o); + }), + (t.prototype.pushStackElement = function () { + this._commandManager.pushStackElement(); + }), + (t.prototype.pushEOL = function (e) { + if (('\n' === this.getEOL() ? 0 : 1) !== e) + try { + this._onDidChangeDecorations.beginDeferredEmit(), + this._eventEmitter.beginDeferredEmit(), + this._commandManager.pushEOL(e); + } finally { + this._eventEmitter.endDeferredEmit(), + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype.pushEditOperations = function (e, t, n) { + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._eventEmitter.beginDeferredEmit(), + this._pushEditOperations(e, t, n) + ); + } finally { + this._eventEmitter.endDeferredEmit(), + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype._pushEditOperations = function (e, t, n) { + var r = this; + if ( + this._options.trimAutoWhitespace && + this._trimAutoWhitespaceLines + ) { + for ( + var i = t.map(function (e) { + return { range: r.validateRange(e.range), text: e.text }; + }), + o = !0, + s = 0, + a = e.length; + s < a; + s++ + ) { + for (var u = e[s], l = !1, c = 0, d = i.length; c < d; c++) { + var h = (_ = i[c].range).startLineNumber > u.endLineNumber, + f = u.startLineNumber > _.endLineNumber; + if (!h && !f) { + l = !0; + break; + } + } + if (!l) { + o = !1; + break; + } + } + if (o) + for ( + s = 0, a = this._trimAutoWhitespaceLines.length; + s < a; + s++ + ) { + var p = this._trimAutoWhitespaceLines[s], + g = this.getLineMaxColumn(p), + m = !0; + for (c = 0, d = i.length; c < d; c++) { + var _ = i[c].range, + y = i[c].text; + if ( + !(p < _.startLineNumber || p > _.endLineNumber) && + !( + (p === _.startLineNumber && + _.startColumn === g && + _.isEmpty() && + y && + y.length > 0 && + '\n' === y.charAt(0)) || + (p === _.startLineNumber && + 1 === _.startColumn && + _.isEmpty() && + y && + y.length > 0 && + '\n' === y.charAt(y.length - 1)) + ) + ) { + m = !1; + break; + } + } + m && t.push({ range: new Fr(p, 1, p, g), text: null }); + } + this._trimAutoWhitespaceLines = null; + } + return this._commandManager.pushEditOperation(e, t, n); + }), + (t.prototype.applyEdits = function (e) { + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._eventEmitter.beginDeferredEmit(), + this._applyEdits(e) + ); + } finally { + this._eventEmitter.endDeferredEmit(), + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype._applyEdits = function (e) { + for (var t = 0, n = e.length; t < n; t++) + e[t].range = this.validateRange(e[t].range); + var r = this._buffer.getLineCount(), + i = this._buffer.applyEdits(e, this._options.trimAutoWhitespace), + o = this._buffer.getLineCount(), + s = i.changes; + if ( + ((this._trimAutoWhitespaceLines = + i.trimAutoWhitespaceLineNumbers), + 0 !== s.length) + ) { + var a = [], + u = r; + for (t = 0, n = s.length; t < n; t++) { + var l = s[t], + c = Ua(l.text), + d = c[0], + h = c[1]; + this._tokens.acceptEdit(l.range, d, h), + this._onDidChangeDecorations.fire(), + this._decorationsTree.acceptReplace( + l.rangeOffset, + l.rangeLength, + l.text.length, + l.forceMoveMarkers + ); + for ( + var f = l.range.startLineNumber, + p = l.range.endLineNumber, + g = p - f, + m = d, + _ = Math.min(g, m), + y = m - g, + v = _; + v >= 0; + v-- + ) { + var b = f + v, + w = o - u - y + b; + a.push(new zo(b, this.getLineContent(w))); + } + if (_ < g) { + var C = f + _; + a.push(new Uo(C + 1, p)); + } + if (_ < m) { + for ( + var S = f + _, + x = m - _, + L = o - u - x + S + 1, + k = [], + M = 0; + M < x; + M++ + ) { + var D = L + M; + k[D - L] = this.getLineContent(D); + } + a.push(new qo(S + 1, f + m, k)); + } + u += y; + } + this._increaseVersionId(), + this._emitContentChangedEvent( + new Go( + a, + this.getVersionId(), + this._isUndoing, + this._isRedoing + ), + { + changes: s, + eol: this._buffer.getEOL(), + versionId: this.getVersionId(), + isUndoing: this._isUndoing, + isRedoing: this._isRedoing, + isFlush: !1, + } + ); + } + return i.reverseEdits; + }), + (t.prototype._undo = function () { + this._isUndoing = !0; + var e = this._commandManager.undo(); + return ( + (this._isUndoing = !1), + e + ? (this._overwriteAlternativeVersionId(e.recordedVersionId), + e.selections) + : null + ); + }), + (t.prototype.undo = function () { + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._eventEmitter.beginDeferredEmit(), + this._undo() + ); + } finally { + this._eventEmitter.endDeferredEmit(), + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype.canUndo = function () { + return this._commandManager.canUndo(); + }), + (t.prototype._redo = function () { + this._isRedoing = !0; + var e = this._commandManager.redo(); + return ( + (this._isRedoing = !1), + e + ? (this._overwriteAlternativeVersionId(e.recordedVersionId), + e.selections) + : null + ); + }), + (t.prototype.redo = function () { + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._eventEmitter.beginDeferredEmit(), + this._redo() + ); + } finally { + this._eventEmitter.endDeferredEmit(), + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype.canRedo = function () { + return this._commandManager.canRedo(); + }), + (t.prototype.changeDecorations = function (e, t) { + void 0 === t && (t = 0), this._assertNotDisposed(); + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._changeDecorations(t, e) + ); + } finally { + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype._changeDecorations = function (e, t) { + var n = this, + r = { + addDecoration: function (t, r) { + return ( + n._onDidChangeDecorations.fire(), + n._deltaDecorationsImpl( + e, + [], + [{ range: t, options: r }] + )[0] + ); + }, + changeDecoration: function (e, t) { + n._onDidChangeDecorations.fire(), + n._changeDecorationImpl(e, t); + }, + changeDecorationOptions: function (e, t) { + n._onDidChangeDecorations.fire(), + n._changeDecorationOptionsImpl(e, Uu(t)); + }, + removeDecoration: function (t) { + n._onDidChangeDecorations.fire(), + n._deltaDecorationsImpl(e, [t], []); + }, + deltaDecorations: function (t, r) { + return 0 === t.length && 0 === r.length + ? [] + : (n._onDidChangeDecorations.fire(), + n._deltaDecorationsImpl(e, t, r)); + }, + }, + i = null; + try { + i = t(r); + } catch (e) { + qe(e); + } + return ( + (r.addDecoration = Ru), + (r.changeDecoration = Ru), + (r.changeDecorationOptions = Ru), + (r.removeDecoration = Ru), + (r.deltaDecorations = Ru), + i + ); + }), + (t.prototype.deltaDecorations = function (e, t, n) { + if ( + (void 0 === n && (n = 0), + this._assertNotDisposed(), + e || (e = []), + 0 === e.length && 0 === t.length) + ) + return []; + try { + return ( + this._onDidChangeDecorations.beginDeferredEmit(), + this._onDidChangeDecorations.fire(), + this._deltaDecorationsImpl(n, e, t) + ); + } finally { + this._onDidChangeDecorations.endDeferredEmit(); + } + }), + (t.prototype._getTrackedRange = function (e) { + return this.getDecorationRange(e); + }), + (t.prototype._setTrackedRange = function (e, t, n) { + var r = e ? this._decorations[e] : null; + if (!r) + return t + ? this._deltaDecorationsImpl( + 0, + [], + [{ range: t, options: zu[n] }] + )[0] + : null; + if (!t) + return ( + this._decorationsTree.delete(r), + delete this._decorations[r.id], + null + ); + var i = this._validateRangeRelaxedNoAllocations(t), + o = this._buffer.getOffsetAt(i.startLineNumber, i.startColumn), + s = this._buffer.getOffsetAt(i.endLineNumber, i.endColumn); + return ( + this._decorationsTree.delete(r), + r.reset(this.getVersionId(), o, s, i), + r.setOptions(zu[n]), + this._decorationsTree.insert(r), + r.id + ); + }), + (t.prototype.removeAllDecorationsWithOwnerId = function (e) { + if (!this._isDisposed) + for ( + var t = this._decorationsTree.collectNodesFromOwner(e), + n = 0, + r = t.length; + n < r; + n++ + ) { + var i = t[n]; + this._decorationsTree.delete(i), delete this._decorations[i.id]; + } + }), + (t.prototype.getDecorationOptions = function (e) { + var t = this._decorations[e]; + return t ? t.options : null; + }), + (t.prototype.getDecorationRange = function (e) { + var t = this._decorations[e]; + if (!t) return null; + var n = this.getVersionId(); + return ( + t.cachedVersionId !== n && + this._decorationsTree.resolveNode(t, n), + null === t.range && + (t.range = this._getRangeAt( + t.cachedAbsoluteStart, + t.cachedAbsoluteEnd + )), + t.range + ); + }), + (t.prototype.getLineDecorations = function (e, t, n) { + return ( + void 0 === t && (t = 0), + void 0 === n && (n = !1), + e < 1 || e > this.getLineCount() + ? [] + : this.getLinesDecorations(e, e, t, n) + ); + }), + (t.prototype.getLinesDecorations = function (e, t, n, r) { + void 0 === n && (n = 0), void 0 === r && (r = !1); + var i = this.getLineCount(), + o = Math.min(i, Math.max(1, e)), + s = Math.min(i, Math.max(1, t)), + a = this.getLineMaxColumn(s); + return this._getDecorationsInRange(new Fr(o, 1, s, a), n, r); + }), + (t.prototype.getDecorationsInRange = function (e, t, n) { + void 0 === t && (t = 0), void 0 === n && (n = !1); + var r = this.validateRange(e); + return this._getDecorationsInRange(r, t, n); + }), + (t.prototype.getOverviewRulerDecorations = function (e, t) { + void 0 === e && (e = 0), void 0 === t && (t = !1); + var n = this.getVersionId(), + r = this._decorationsTree.search(e, t, !0, n); + return this._ensureNodesHaveRanges(r); + }), + (t.prototype.getAllDecorations = function (e, t) { + void 0 === e && (e = 0), void 0 === t && (t = !1); + var n = this.getVersionId(), + r = this._decorationsTree.search(e, t, !1, n); + return this._ensureNodesHaveRanges(r); + }), + (t.prototype._getDecorationsInRange = function (e, t, n) { + var r = this._buffer.getOffsetAt(e.startLineNumber, e.startColumn), + i = this._buffer.getOffsetAt(e.endLineNumber, e.endColumn), + o = this.getVersionId(), + s = this._decorationsTree.intervalSearch(r, i, t, n, o); + return this._ensureNodesHaveRanges(s); + }), + (t.prototype._ensureNodesHaveRanges = function (e) { + for (var t = 0, n = e.length; t < n; t++) { + var r = e[t]; + null === r.range && + (r.range = this._getRangeAt( + r.cachedAbsoluteStart, + r.cachedAbsoluteEnd + )); + } + return e; + }), + (t.prototype._getRangeAt = function (e, t) { + return this._buffer.getRangeAt(e, t - e); + }), + (t.prototype._changeDecorationImpl = function (e, t) { + var n = this._decorations[e]; + if (n) { + var r = this._validateRangeRelaxedNoAllocations(t), + i = this._buffer.getOffsetAt(r.startLineNumber, r.startColumn), + o = this._buffer.getOffsetAt(r.endLineNumber, r.endColumn); + this._decorationsTree.delete(n), + n.reset(this.getVersionId(), i, o, r), + this._decorationsTree.insert(n); + } + }), + (t.prototype._changeDecorationOptionsImpl = function (e, t) { + var n = this._decorations[e]; + n && + (!(!n.options.overviewRuler || !n.options.overviewRuler.color) !== + !(!t.overviewRuler || !t.overviewRuler.color) + ? (this._decorationsTree.delete(n), + n.setOptions(t), + this._decorationsTree.insert(n)) + : n.setOptions(t)); + }), + (t.prototype._deltaDecorationsImpl = function (e, t, n) { + for ( + var r = this.getVersionId(), + i = t.length, + o = 0, + s = n.length, + a = 0, + u = new Array(s); + o < i || a < s; + + ) { + var l = null; + if (o < i) { + do { + l = this._decorations[t[o++]]; + } while (!l && o < i); + l && this._decorationsTree.delete(l); + } + if (a < s) { + if (!l) { + var c = ++this._lastDecorationId, + d = this._instanceId + ';' + c; + (l = new Vi(d, 0, 0)), (this._decorations[d] = l); + } + var h = n[a], + f = this._validateRangeRelaxedNoAllocations(h.range), + p = Uu(h.options), + g = this._buffer.getOffsetAt( + f.startLineNumber, + f.startColumn + ), + m = this._buffer.getOffsetAt(f.endLineNumber, f.endColumn); + (l.ownerId = e), + l.reset(r, g, m, f), + l.setOptions(p), + this._decorationsTree.insert(l), + (u[a] = l.id), + a++; + } else l && delete this._decorations[l.id]; + } + return u; + }), + (t.prototype.setLineTokens = function (e, t) { + if (e < 1 || e > this.getLineCount()) + throw new Error('Illegal value for lineNumber'); + this._tokens.setTokens( + this._languageIdentifier.id, + e - 1, + this._buffer.getLineLength(e), + t + ); + }), + (t.prototype.setTokens = function (e) { + if (0 !== e.length) { + for (var t = [], n = 0, r = e.length; n < r; n++) { + var i = e[n]; + t.push({ + fromLineNumber: i.startLineNumber, + toLineNumber: i.startLineNumber + i.tokens.length - 1, + }); + for (var o = 0, s = i.tokens.length; o < s; o++) + this.setLineTokens(i.startLineNumber + o, i.tokens[o]); + } + this._emitModelTokensChangedEvent({ + tokenizationSupportChanged: !1, + ranges: t, + }); + } + }), + (t.prototype.tokenizeViewport = function (e, t) { + (e = Math.max(1, e)), + (t = Math.min(this._buffer.getLineCount(), t)), + this._tokenization.tokenizeViewport(e, t); + }), + (t.prototype.clearTokens = function () { + this._tokens.flush(), + this._emitModelTokensChangedEvent({ + tokenizationSupportChanged: !0, + ranges: [ + { + fromLineNumber: 1, + toLineNumber: this._buffer.getLineCount(), + }, + ], + }); + }), + (t.prototype._emitModelTokensChangedEvent = function (e) { + this._isDisposing || this._onDidChangeTokens.fire(e); + }), + (t.prototype.resetTokenization = function () { + this._tokenization.reset(); + }), + (t.prototype.forceTokenization = function (e) { + if (e < 1 || e > this.getLineCount()) + throw new Error('Illegal value for lineNumber'); + this._tokenization.forceTokenization(e); + }), + (t.prototype.isCheapToTokenize = function (e) { + return this._tokenization.isCheapToTokenize(e); + }), + (t.prototype.tokenizeIfCheap = function (e) { + this.isCheapToTokenize(e) && this.forceTokenization(e); + }), + (t.prototype.getLineTokens = function (e) { + if (e < 1 || e > this.getLineCount()) + throw new Error('Illegal value for lineNumber'); + return this._getLineTokens(e); + }), + (t.prototype._getLineTokens = function (e) { + var t = this.getLineContent(e); + return this._tokens.getTokens( + this._languageIdentifier.id, + e - 1, + t + ); + }), + (t.prototype.getLanguageIdentifier = function () { + return this._languageIdentifier; + }), + (t.prototype.getModeId = function () { + return this._languageIdentifier.language; + }), + (t.prototype.setMode = function (e) { + if (this._languageIdentifier.id !== e.id) { + var t = { + oldLanguage: this._languageIdentifier.language, + newLanguage: e.language, + }; + (this._languageIdentifier = e), + this._onDidChangeLanguage.fire(t), + this._onDidChangeLanguageConfiguration.fire({}); + } + }), + (t.prototype.getLanguageIdAtPosition = function (e, t) { + var n = this.validatePosition(new xt(e, t)), + r = this.getLineTokens(n.lineNumber); + return r.getLanguageId(r.findTokenIndexAtOffset(n.column - 1)); + }), + (t.prototype.getWordAtPosition = function (e) { + this._assertNotDisposed(); + var n = this.validatePosition(e), + r = this.getLineContent(n.lineNumber), + i = this._getLineTokens(n.lineNumber), + o = i.findTokenIndexAtOffset(n.column - 1), + s = t._findLanguageBoundaries(i, o), + a = s[0], + u = s[1], + l = ri( + n.column, + ku.getWordDefinition(i.getLanguageId(o)), + r.substring(a, u), + a + ); + if (l && l.startColumn <= e.column && e.column <= l.endColumn) + return l; + if (o > 0 && a === n.column - 1) { + var c = t._findLanguageBoundaries(i, o - 1), + d = c[0], + h = c[1], + f = ri( + n.column, + ku.getWordDefinition(i.getLanguageId(o - 1)), + r.substring(d, h), + d + ); + if (f && f.startColumn <= e.column && e.column <= f.endColumn) + return f; + } + return null; + }), + (t._findLanguageBoundaries = function (e, t) { + for ( + var n = e.getLanguageId(t), r = 0, i = t; + i >= 0 && e.getLanguageId(i) === n; + i-- + ) + r = e.getStartOffset(i); + for ( + var o = e.getLineContent().length, s = ((i = t), e.getCount()); + i < s && e.getLanguageId(i) === n; + i++ + ) + o = e.getEndOffset(i); + return [r, o]; + }), + (t.prototype.getWordUntilPosition = function (e) { + var t = this.getWordAtPosition(e); + return t + ? { + word: t.word.substr(0, e.column - t.startColumn), + startColumn: t.startColumn, + endColumn: e.column, + } + : { word: '', startColumn: e.column, endColumn: e.column }; + }), + (t.prototype.findMatchingBracketUp = function (e, t) { + var n = e.toLowerCase(), + r = this.validatePosition(t), + i = this._getLineTokens(r.lineNumber), + o = i.getLanguageId(i.findTokenIndexAtOffset(r.column - 1)), + s = ku.getBracketsSupport(o); + if (!s) return null; + var a = s.textIsBracket[n]; + return a ? this._findMatchingBracketUp(a, r) : null; + }), + (t.prototype.matchBracket = function (e) { + return this._matchBracket(this.validatePosition(e)); + }), + (t.prototype._matchBracket = function (e) { + var t = e.lineNumber, + n = this._getLineTokens(t), + r = this._buffer.getLineContent(t), + i = n.findTokenIndexAtOffset(e.column - 1); + if (i < 0) return null; + var o = ku.getBracketsSupport(n.getLanguageId(i)); + if (o && !su(n.getStandardTokenType(i))) { + for ( + var s = Math.max( + n.getStartOffset(i), + e.column - 1 - o.maxBracketLength + ), + a = Math.min( + n.getEndOffset(i), + e.column - 1 + o.maxBracketLength + ), + u = null; + ; + + ) { + if ( + !(c = bu.findNextBracketInToken(o.forwardRegex, t, r, s, a)) + ) + break; + if (c.startColumn <= e.column && e.column <= c.endColumn) + (d = (d = r.substring( + c.startColumn - 1, + c.endColumn - 1 + )).toLowerCase()), + (h = this._matchFoundBracket( + c, + o.textIsBracket[d], + o.textIsOpenBracket[d] + )) && (u = h); + s = c.endColumn - 1; + } + if (u) return u; + } + if (i > 0 && n.getStartOffset(i) === e.column - 1) { + a = n.getStartOffset(i); + i--; + var l = ku.getBracketsSupport(n.getLanguageId(i)); + if (l && !su(n.getStandardTokenType(i))) { + var c, d, h; + s = Math.max( + n.getStartOffset(i), + e.column - 1 - l.maxBracketLength + ); + if ( + (c = bu.findPrevBracketInToken( + l.reversedRegex, + t, + r, + s, + a + )) && + c.startColumn <= e.column && + e.column <= c.endColumn + ) + if ( + ((d = (d = r.substring( + c.startColumn - 1, + c.endColumn - 1 + )).toLowerCase()), + (h = this._matchFoundBracket( + c, + l.textIsBracket[d], + l.textIsOpenBracket[d] + ))) + ) + return h; + } + } + return null; + }), + (t.prototype._matchFoundBracket = function (e, t, n) { + if (!t) return null; + var r; + if (n) { + if ((r = this._findMatchingBracketDown(t, e.getEndPosition()))) + return [e, r]; + } else if ( + (r = this._findMatchingBracketUp(t, e.getStartPosition())) + ) + return [e, r]; + return null; + }), + (t.prototype._findMatchingBracketUp = function (e, t) { + for ( + var n = e.languageIdentifier.id, + r = e.reversedRegex, + i = -1, + o = t.lineNumber; + o >= 1; + o-- + ) { + var s = this._getLineTokens(o), + a = s.getCount(), + u = this._buffer.getLineContent(o), + l = a - 1, + c = -1; + for ( + o === t.lineNumber && + ((l = s.findTokenIndexAtOffset(t.column - 1)), + (c = t.column - 1)); + l >= 0; + l-- + ) { + var d = s.getLanguageId(l), + h = s.getStandardTokenType(l), + f = s.getStartOffset(l), + p = s.getEndOffset(l); + if ((-1 === c && (c = p), d === n && !su(h))) + for (;;) { + var g = bu.findPrevBracketInToken(r, o, u, f, c); + if (!g) break; + var m = u.substring(g.startColumn - 1, g.endColumn - 1); + if ( + ((m = m.toLowerCase()) === e.open + ? i++ + : m === e.close && i--, + 0 === i) + ) + return g; + c = g.startColumn - 1; + } + c = -1; + } + } + return null; + }), + (t.prototype._findMatchingBracketDown = function (e, t) { + for ( + var n = e.languageIdentifier.id, + r = e.forwardRegex, + i = 1, + o = t.lineNumber, + s = this.getLineCount(); + o <= s; + o++ + ) { + var a = this._getLineTokens(o), + u = a.getCount(), + l = this._buffer.getLineContent(o), + c = 0, + d = 0; + for ( + o === t.lineNumber && + ((c = a.findTokenIndexAtOffset(t.column - 1)), + (d = t.column - 1)); + c < u; + c++ + ) { + var h = a.getLanguageId(c), + f = a.getStandardTokenType(c), + p = a.getStartOffset(c), + g = a.getEndOffset(c); + if ((0 === d && (d = p), h === n && !su(f))) + for (;;) { + var m = bu.findNextBracketInToken(r, o, l, d, g); + if (!m) break; + var _ = l.substring(m.startColumn - 1, m.endColumn - 1); + if ( + ((_ = _.toLowerCase()) === e.open + ? i++ + : _ === e.close && i--, + 0 === i) + ) + return m; + d = m.endColumn - 1; + } + d = 0; + } + } + return null; + }), + (t.prototype.findPrevBracket = function (e) { + for ( + var t = this.validatePosition(e), + n = -1, + r = null, + i = t.lineNumber; + i >= 1; + i-- + ) { + var o = this._getLineTokens(i), + s = o.getCount(), + a = this._buffer.getLineContent(i), + u = s - 1, + l = -1; + for ( + i === t.lineNumber && + ((u = o.findTokenIndexAtOffset(t.column - 1)), + (l = t.column - 1)); + u >= 0; + u-- + ) { + var c = o.getLanguageId(u), + d = o.getStandardTokenType(u), + h = o.getStartOffset(u), + f = o.getEndOffset(u); + if ( + (-1 === l && (l = f), + n !== c && ((n = c), (r = ku.getBracketsSupport(n))), + r && !su(d)) + ) { + var p = bu.findPrevBracketInToken( + r.reversedRegex, + i, + a, + h, + l + ); + if (p) return this._toFoundBracket(r, p); + } + l = -1; + } + } + return null; + }), + (t.prototype.findNextBracket = function (e) { + for ( + var t = this.validatePosition(e), + n = -1, + r = null, + i = t.lineNumber, + o = this.getLineCount(); + i <= o; + i++ + ) { + var s = this._getLineTokens(i), + a = s.getCount(), + u = this._buffer.getLineContent(i), + l = 0, + c = 0; + for ( + i === t.lineNumber && + ((l = s.findTokenIndexAtOffset(t.column - 1)), + (c = t.column - 1)); + l < a; + l++ + ) { + var d = s.getLanguageId(l), + h = s.getStandardTokenType(l), + f = s.getStartOffset(l), + p = s.getEndOffset(l); + if ( + (0 === c && (c = f), + n !== d && ((n = d), (r = ku.getBracketsSupport(n))), + r && !su(h)) + ) { + var g = bu.findNextBracketInToken(r.forwardRegex, i, u, c, p); + if (g) return this._toFoundBracket(r, g); + } + c = 0; + } + } + return null; + }), + (t.prototype._toFoundBracket = function (e, t) { + if (!t) return null; + var n = this.getValueInRange(t); + n = n.toLowerCase(); + var r = e.textIsBracket[n]; + return r + ? { + range: t, + open: r.open, + close: r.close, + isOpen: e.textIsOpenBracket[n], + } + : null; + }), + (t.computeIndentLevel = function (e, t) { + for (var n = 0, r = 0, i = e.length; r < i; ) { + var o = e.charCodeAt(r); + if (32 === o) n++; + else { + if (9 !== o) break; + n = n - (n % t) + t; + } + r++; + } + return r === i ? -1 : n; + }), + (t.prototype._computeIndentLevel = function (e) { + return t.computeIndentLevel( + this._buffer.getLineContent(e + 1), + this._options.tabSize + ); + }), + (t.prototype.getActiveIndentGuide = function (e, t, n) { + var r = this; + this._assertNotDisposed(); + var i = this.getLineCount(); + if (e < 1 || e > i) throw new Error('Illegal value for lineNumber'); + for ( + var o = ku.getFoldingRules(this._languageIdentifier.id), + s = Boolean(o && o.offSide), + a = -2, + u = -1, + l = -2, + c = -1, + d = function (e) { + if (-1 !== a && (-2 === a || a > e - 1)) { + (a = -1), (u = -1); + for (var t = e - 2; t >= 0; t--) { + var n = r._computeIndentLevel(t); + if (n >= 0) { + (a = t), (u = n); + break; + } + } + } + if (-2 === l) { + (l = -1), (c = -1); + for (t = e; t < i; t++) { + var o = r._computeIndentLevel(t); + if (o >= 0) { + (l = t), (c = o); + break; + } + } + } + }, + h = -2, + f = -1, + p = -2, + g = -1, + m = function (e) { + if (-2 === h) { + (h = -1), (f = -1); + for (var t = e - 2; t >= 0; t--) { + var n = r._computeIndentLevel(t); + if (n >= 0) { + (h = t), (f = n); + break; + } + } + } + if (-1 !== p && (-2 === p || p < e - 1)) { + (p = -1), (g = -1); + for (t = e; t < i; t++) { + var o = r._computeIndentLevel(t); + if (o >= 0) { + (p = t), (g = o); + break; + } + } + } + }, + _ = 0, + y = !0, + v = 0, + b = !0, + w = 0, + C = 0; + y || b; + C++ + ) { + var S = e - C, + x = e + C; + if ( + (0 !== C && (S < 1 || S < t) && (y = !1), + 0 !== C && (x > i || x > n) && (b = !1), + C > 5e4 && ((y = !1), (b = !1)), + y) + ) { + var L = void 0; + if ( + ((k = this._computeIndentLevel(S - 1)) >= 0 + ? ((l = S - 1), + (c = k), + (L = Math.ceil(k / this._options.indentSize))) + : (d(S), + (L = this._getIndentLevelForWhitespaceLine(s, u, c))), + 0 === C) + ) { + if (((_ = S), (v = x), 0 === (w = L))) + return { startLineNumber: _, endLineNumber: v, indent: w }; + continue; + } + L >= w ? (_ = S) : (y = !1); + } + if (b) { + var k, + M = void 0; + (k = this._computeIndentLevel(x - 1)) >= 0 + ? ((h = x - 1), + (f = k), + (M = Math.ceil(k / this._options.indentSize))) + : (m(x), + (M = this._getIndentLevelForWhitespaceLine(s, f, g))), + M >= w ? (v = x) : (b = !1); + } + } + return { startLineNumber: _, endLineNumber: v, indent: w }; + }), + (t.prototype.getLinesIndentGuides = function (e, t) { + this._assertNotDisposed(); + var n = this.getLineCount(); + if (e < 1 || e > n) + throw new Error('Illegal value for startLineNumber'); + if (t < 1 || t > n) + throw new Error('Illegal value for endLineNumber'); + for ( + var r = ku.getFoldingRules(this._languageIdentifier.id), + i = Boolean(r && r.offSide), + o = new Array(t - e + 1), + s = -2, + a = -1, + u = -2, + l = -1, + c = e; + c <= t; + c++ + ) { + var d = c - e, + h = this._computeIndentLevel(c - 1); + if (h >= 0) + (s = c - 1), + (a = h), + (o[d] = Math.ceil(h / this._options.indentSize)); + else { + if (-2 === s) { + (s = -1), (a = -1); + for (var f = c - 2; f >= 0; f--) { + if ((p = this._computeIndentLevel(f)) >= 0) { + (s = f), (a = p); + break; + } + } + } + if (-1 !== u && (-2 === u || u < c - 1)) { + (u = -1), (l = -1); + for (f = c; f < n; f++) { + var p; + if ((p = this._computeIndentLevel(f)) >= 0) { + (u = f), (l = p); + break; + } + } + } + o[d] = this._getIndentLevelForWhitespaceLine(i, a, l); + } + } + return o; + }), + (t.prototype._getIndentLevelForWhitespaceLine = function (e, t, n) { + return -1 === t || -1 === n + ? 0 + : t < n + ? 1 + Math.floor(t / this._options.indentSize) + : t === n + ? Math.ceil(n / this._options.indentSize) + : e + ? Math.ceil(n / this._options.indentSize) + : 1 + Math.floor(n / this._options.indentSize); + }), + (t.MODEL_SYNC_LIMIT = 52428800), + (t.LARGE_FILE_SIZE_THRESHOLD = 20971520), + (t.LARGE_FILE_LINE_COUNT_THRESHOLD = 3e5), + (t.DEFAULT_CREATION_OPTIONS = { + isForSimpleWidget: !1, + tabSize: wi.tabSize, + indentSize: wi.indentSize, + insertSpaces: wi.insertSpaces, + detectIndentation: !1, + defaultEOL: 1, + trimAutoWhitespace: wi.trimAutoWhitespace, + largeFileOptimizations: wi.largeFileOptimizations, + }), + t + ); + })(Rt), + Yu = (function () { + function e() { + (this._decorationsTree0 = new Ui()), + (this._decorationsTree1 = new Ui()); + } + return ( + (e.prototype.intervalSearch = function (e, t, n, r, i) { + var o = this._decorationsTree0.intervalSearch(e, t, n, r, i), + s = this._decorationsTree1.intervalSearch(e, t, n, r, i); + return o.concat(s); + }), + (e.prototype.search = function (e, t, n, r) { + if (n) return this._decorationsTree1.search(e, t, r); + var i = this._decorationsTree0.search(e, t, r), + o = this._decorationsTree1.search(e, t, r); + return i.concat(o); + }), + (e.prototype.collectNodesFromOwner = function (e) { + var t = this._decorationsTree0.collectNodesFromOwner(e), + n = this._decorationsTree1.collectNodesFromOwner(e); + return t.concat(n); + }), + (e.prototype.collectNodesPostOrder = function () { + var e = this._decorationsTree0.collectNodesPostOrder(), + t = this._decorationsTree1.collectNodesPostOrder(); + return e.concat(t); + }), + (e.prototype.insert = function (e) { + ji(e) + ? this._decorationsTree1.insert(e) + : this._decorationsTree0.insert(e); + }), + (e.prototype.delete = function (e) { + ji(e) + ? this._decorationsTree1.delete(e) + : this._decorationsTree0.delete(e); + }), + (e.prototype.resolveNode = function (e, t) { + ji(e) + ? this._decorationsTree1.resolveNode(e, t) + : this._decorationsTree0.resolveNode(e, t); + }), + (e.prototype.acceptReplace = function (e, t, n, r) { + this._decorationsTree0.acceptReplace(e, t, n, r), + this._decorationsTree1.acceptReplace(e, t, n, r); + }), + e + ); + })(); + function ju(e) { + return e.replace(/[^a-z0-9\-_]/gi, ' '); + } + var Bu = function (e) { + (this.color = e.color || rn), (this.darkColor = e.darkColor || rn); + }, + Wu = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._resolvedColor = null), + (n.position = + 'number' == typeof t.position ? t.position : gi.Center), + n + ); + } + return ( + Ou(t, e), + (t.prototype.getColor = function (e) { + return ( + this._resolvedColor || + ('light' !== e.type && this.darkColor + ? (this._resolvedColor = this._resolveColor( + this.darkColor, + e + )) + : (this._resolvedColor = this._resolveColor(this.color, e))), + this._resolvedColor + ); + }), + (t.prototype.invalidateCachedColor = function () { + this._resolvedColor = null; + }), + (t.prototype._resolveColor = function (e, t) { + if ('string' == typeof e) return e; + var n = e ? t.getColor(e.id) : null; + return n ? n.toString() : rn; + }), + t + ); + })(Bu), + Hu = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n.position = t.position), n; + } + return ( + Ou(t, e), + (t.prototype.getColor = function (e) { + return ( + this._resolvedColor || + ('light' !== e.type && this.darkColor + ? (this._resolvedColor = this._resolveColor( + this.darkColor, + e + )) + : (this._resolvedColor = this._resolveColor(this.color, e))), + this._resolvedColor + ); + }), + (t.prototype.invalidateCachedColor = function () { + this._resolvedColor = void 0; + }), + (t.prototype._resolveColor = function (e, t) { + return 'string' == typeof e ? Nu.fromHex(e) : t.getColor(e.id); + }), + t + ); + })(Bu), + Vu = (function () { + function e(e) { + (this.stickiness = e.stickiness || 0), + (this.zIndex = e.zIndex || 0), + (this.className = e.className ? ju(e.className) : null), + (this.hoverMessage = ze(e.hoverMessage)), + (this.glyphMarginHoverMessage = ze(e.glyphMarginHoverMessage)), + (this.isWholeLine = e.isWholeLine || !1), + (this.showIfCollapsed = e.showIfCollapsed || !1), + (this.collapseOnReplaceEdit = e.collapseOnReplaceEdit || !1), + (this.overviewRuler = e.overviewRuler + ? new Wu(e.overviewRuler) + : null), + (this.minimap = e.minimap ? new Hu(e.minimap) : null), + (this.glyphMarginClassName = e.glyphMarginClassName + ? ju(e.glyphMarginClassName) + : null), + (this.linesDecorationsClassName = e.linesDecorationsClassName + ? ju(e.linesDecorationsClassName) + : null), + (this.marginClassName = e.marginClassName + ? ju(e.marginClassName) + : null), + (this.inlineClassName = e.inlineClassName + ? ju(e.inlineClassName) + : null), + (this.inlineClassNameAffectsLetterSpacing = + e.inlineClassNameAffectsLetterSpacing || !1), + (this.beforeContentClassName = e.beforeContentClassName + ? ju(e.beforeContentClassName) + : null), + (this.afterContentClassName = e.afterContentClassName + ? ju(e.afterContentClassName) + : null); + } + return ( + (e.register = function (t) { + return new e(t); + }), + (e.createDynamic = function (t) { + return new e(t); + }), + e + ); + })(); + Vu.EMPTY = Vu.register({}); + var zu = [ + Vu.register({ stickiness: 0 }), + Vu.register({ stickiness: 1 }), + Vu.register({ stickiness: 2 }), + Vu.register({ stickiness: 3 }), + ]; + function Uu(e) { + return e instanceof Vu ? e : Vu.createDynamic(e); + } + var qu = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._actual = t._register(new Gt())), + (t.event = t._actual.event), + (t._deferredCnt = 0), + (t._shouldFire = !1), + t + ); + } + return ( + Ou(t, e), + (t.prototype.beginDeferredEmit = function () { + this._deferredCnt++; + }), + (t.prototype.endDeferredEmit = function () { + this._deferredCnt--, + 0 === this._deferredCnt && + this._shouldFire && + ((this._shouldFire = !1), this._actual.fire({})); + }), + (t.prototype.fire = function () { + this._shouldFire = !0; + }), + t + ); + })(Rt), + Ku = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._fastEmitter = t._register(new Gt())), + (t.fastEvent = t._fastEmitter.event), + (t._slowEmitter = t._register(new Gt())), + (t.slowEvent = t._slowEmitter.event), + (t._deferredCnt = 0), + (t._deferredEvent = null), + t + ); + } + return ( + Ou(t, e), + (t.prototype.beginDeferredEmit = function () { + this._deferredCnt++; + }), + (t.prototype.endDeferredEmit = function () { + if ( + (this._deferredCnt--, + 0 === this._deferredCnt && null !== this._deferredEvent) + ) { + var e = this._deferredEvent; + (this._deferredEvent = null), + this._fastEmitter.fire(e), + this._slowEmitter.fire(e); + } + }), + (t.prototype.fire = function (e) { + this._deferredCnt > 0 + ? this._deferredEvent + ? (this._deferredEvent = this._deferredEvent.merge(e)) + : (this._deferredEvent = e) + : (this._fastEmitter.fire(e), this._slowEmitter.fire(e)); + }), + t + ); + })(Rt), + Gu = function () { + return !0; + }, + $u = function () { + return !1; + }, + Zu = function (e) { + return ' ' === e || '\t' === e; + }; + function Xu(e, t, n) { + e.has(t) ? e.get(t).push(n) : e.set(t, [n]); + } + var Ju = (function () { + function e(t, n, r) { + this._languageIdentifier = t; + var i = r.editor; + (this.readOnly = i.readOnly), + (this.tabSize = n.tabSize), + (this.indentSize = n.indentSize), + (this.insertSpaces = n.insertSpaces), + (this.pageSize = Math.max( + 1, + Math.floor(i.layoutInfo.height / i.fontInfo.lineHeight) - 2 + )), + (this.lineHeight = i.lineHeight), + (this.useTabStops = i.useTabStops), + (this.wordSeparators = i.wordSeparators), + (this.emptySelectionClipboard = i.emptySelectionClipboard), + (this.copyWithSyntaxHighlighting = i.copyWithSyntaxHighlighting), + (this.multiCursorMergeOverlapping = i.multiCursorMergeOverlapping), + (this.autoClosingBrackets = i.autoClosingBrackets), + (this.autoClosingQuotes = i.autoClosingQuotes), + (this.autoClosingOvertype = i.autoClosingOvertype), + (this.autoSurround = i.autoSurround), + (this.autoIndent = i.autoIndent), + (this.autoClosingPairsOpen2 = new Map()), + (this.autoClosingPairsClose2 = new Map()), + (this.surroundingPairs = {}), + (this._electricChars = null), + (this.shouldAutoCloseBefore = { + quote: e._getShouldAutoClose(t, this.autoClosingQuotes), + bracket: e._getShouldAutoClose(t, this.autoClosingBrackets), + }); + var o = e._getAutoClosingPairs(t); + if (o) + for (var s = 0, a = o; s < a.length; s++) { + var u = a[s]; + Xu( + this.autoClosingPairsOpen2, + u.open.charAt(u.open.length - 1), + u + ), + 1 === u.close.length && + Xu(this.autoClosingPairsClose2, u.close, u); + } + var l = e._getSurroundingPairs(t); + if (l) + for (var c = 0, d = l; c < d.length; c++) { + u = d[c]; + this.surroundingPairs[u.open] = u.close; + } + } + return ( + (e.shouldRecreate = function (e) { + return ( + e.layoutInfo || + e.wordSeparators || + e.emptySelectionClipboard || + e.multiCursorMergeOverlapping || + e.autoClosingBrackets || + e.autoClosingQuotes || + e.autoClosingOvertype || + e.autoSurround || + e.useTabStops || + e.lineHeight || + e.readOnly + ); + }), + Object.defineProperty(e.prototype, 'electricChars', { + get: function () { + if (!this._electricChars) { + this._electricChars = {}; + var t = e._getElectricCharacters(this._languageIdentifier); + if (t) + for (var n = 0, r = t; n < r.length; n++) { + var i = r[n]; + this._electricChars[i] = !0; + } + } + return this._electricChars; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.normalizeIndentation = function (e) { + return Fu.normalizeIndentation( + e, + this.indentSize, + this.insertSpaces + ); + }), + (e._getElectricCharacters = function (e) { + try { + return ku.getElectricCharacters(e.id); + } catch (e) { + return qe(e), null; + } + }), + (e._getAutoClosingPairs = function (e) { + try { + return ku.getAutoClosingPairs(e.id); + } catch (e) { + return qe(e), null; + } + }), + (e._getShouldAutoClose = function (t, n) { + switch (n) { + case 'beforeWhitespace': + return Zu; + case 'languageDefined': + return e._getLanguageDefinedShouldAutoClose(t); + case 'always': + return Gu; + case 'never': + return $u; + } + }), + (e._getLanguageDefinedShouldAutoClose = function (e) { + try { + var t = ku.getAutoCloseBeforeSet(e.id); + return function (e) { + return -1 !== t.indexOf(e); + }; + } catch (e) { + return qe(e), $u; + } + }), + (e._getSurroundingPairs = function (e) { + try { + return ku.getSurroundingPairs(e.id); + } catch (e) { + return qe(e), null; + } + }), + e + ); + })(), + Qu = (function () { + function e(t, n, r, i) { + (this.selectionStart = t), + (this.selectionStartLeftoverVisibleColumns = n), + (this.position = r), + (this.leftoverVisibleColumns = i), + (this.selection = e._computeSelection( + this.selectionStart, + this.position + )); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.selectionStartLeftoverVisibleColumns === + e.selectionStartLeftoverVisibleColumns && + this.leftoverVisibleColumns === e.leftoverVisibleColumns && + this.position.equals(e.position) && + this.selectionStart.equalsRange(e.selectionStart) + ); + }), + (e.prototype.hasSelection = function () { + return !this.selection.isEmpty() || !this.selectionStart.isEmpty(); + }), + (e.prototype.move = function (t, n, r, i) { + return t + ? new e( + this.selectionStart, + this.selectionStartLeftoverVisibleColumns, + new xt(n, r), + i + ) + : new e(new Fr(n, r, n, r), i, new xt(n, r), i); + }), + (e._computeSelection = function (e, t) { + var n, r, i, o; + return ( + e.isEmpty() + ? ((n = e.startLineNumber), + (r = e.startColumn), + (i = t.lineNumber), + (o = t.column)) + : t.isBeforeOrEqual(e.getStartPosition()) + ? ((n = e.endLineNumber), + (r = e.endColumn), + (i = t.lineNumber), + (o = t.column)) + : ((n = e.startLineNumber), + (r = e.startColumn), + (i = t.lineNumber), + (o = t.column)), + new jr(n, r, i, o) + ); + }), + e + ); + })(), + el = (function () { + function e(e, t, n) { + (this.model = t), + (this.viewModel = n), + (this.config = new Ju( + this.model.getLanguageIdentifier(), + this.model.getOptions(), + e + )); + } + return ( + (e.prototype.validateViewPosition = function (e, t) { + return this.viewModel.coordinatesConverter.validateViewPosition( + e, + t + ); + }), + (e.prototype.validateViewRange = function (e, t) { + return this.viewModel.coordinatesConverter.validateViewRange(e, t); + }), + (e.prototype.convertViewRangeToModelRange = function (e) { + return this.viewModel.coordinatesConverter.convertViewRangeToModelRange( + e + ); + }), + (e.prototype.convertViewPositionToModelPosition = function (e, t) { + return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition( + new xt(e, t) + ); + }), + (e.prototype.convertModelPositionToViewPosition = function (e) { + return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition( + e + ); + }), + (e.prototype.convertModelRangeToViewRange = function (e) { + return this.viewModel.coordinatesConverter.convertModelRangeToViewRange( + e + ); + }), + (e.prototype.getCurrentScrollTop = function () { + return this.viewModel.viewLayout.getCurrentScrollTop(); + }), + (e.prototype.getCompletelyVisibleViewRange = function () { + return this.viewModel.getCompletelyVisibleViewRange(); + }), + (e.prototype.getCompletelyVisibleModelRange = function () { + var e = this.viewModel.getCompletelyVisibleViewRange(); + return this.viewModel.coordinatesConverter.convertViewRangeToModelRange( + e + ); + }), + (e.prototype.getCompletelyVisibleViewRangeAtScrollTop = function (e) { + return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e); + }), + (e.prototype.getVerticalOffsetForViewLine = function (e) { + return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e); + }), + e + ); + })(), + tl = function (e) { + (this.modelState = e), (this.viewState = null); + }, + nl = function (e) { + (this.modelState = null), (this.viewState = e); + }, + rl = (function () { + function e(e, t) { + (this.modelState = e), (this.viewState = t); + } + return ( + (e.fromModelState = function (e) { + return new tl(e); + }), + (e.fromViewState = function (e) { + return new nl(e); + }), + (e.fromModelSelection = function (t) { + var n = t.selectionStartLineNumber, + r = t.selectionStartColumn, + i = t.positionLineNumber, + o = t.positionColumn, + s = new Qu(new Fr(n, r, n, r), 0, new xt(i, o), 0); + return e.fromModelState(s); + }), + (e.fromModelSelections = function (e) { + for (var t = [], n = 0, r = e.length; n < r; n++) + t[n] = this.fromModelSelection(e[n]); + return t; + }), + (e.prototype.equals = function (e) { + return ( + this.viewState.equals(e.viewState) && + this.modelState.equals(e.modelState) + ); + }), + e + ); + })(), + il = function (e, t, n) { + (this.type = e), + (this.commands = t), + (this.shouldPushStackElementBefore = n.shouldPushStackElementBefore), + (this.shouldPushStackElementAfter = n.shouldPushStackElementAfter); + }, + ol = (function () { + function e() {} + return ( + (e.isLowSurrogate = function (e, t, n) { + var r = e.getLineContent(t); + return !(n < 0 || n >= r.length) && xn(r.charCodeAt(n)); + }), + (e.isHighSurrogate = function (e, t, n) { + var r = e.getLineContent(t); + return !(n < 0 || n >= r.length) && Sn(r.charCodeAt(n)); + }), + (e.isInsideSurrogatePair = function (e, t, n) { + return this.isHighSurrogate(e, t, n - 2); + }), + (e.visibleColumnFromColumn = function (e, t, n) { + var r = e.length; + r > t - 1 && (r = t - 1); + for (var i = 0, o = 0; o < r; o++) { + var s = e.charCodeAt(o); + 9 === s + ? (i = this.nextRenderTabStop(i, n)) + : Tn(s) + ? (i += 2) + : (i += 1); + } + return i; + }), + (e.visibleColumnFromColumn2 = function (e, t, n) { + return this.visibleColumnFromColumn( + t.getLineContent(n.lineNumber), + n.column, + e.tabSize + ); + }), + (e.columnFromVisibleColumn = function (e, t, n) { + if (t <= 0) return 1; + for (var r = e.length, i = 0, o = 0; o < r; o++) { + var s = e.charCodeAt(o), + a = void 0; + if ( + (a = + 9 === s + ? this.nextRenderTabStop(i, n) + : Tn(s) + ? i + 2 + : i + 1) >= t + ) + return a - t < t - i ? o + 2 : o + 1; + i = a; + } + return r + 1; + }), + (e.columnFromVisibleColumn2 = function (e, t, n, r) { + var i = this.columnFromVisibleColumn( + t.getLineContent(n), + r, + e.tabSize + ), + o = t.getLineMinColumn(n); + if (i < o) return o; + var s = t.getLineMaxColumn(n); + return i > s ? s : i; + }), + (e.nextRenderTabStop = function (e, t) { + return e + t - (e % t); + }), + (e.nextIndentTabStop = function (e, t) { + return e + t - (e % t); + }), + (e.prevRenderTabStop = function (e, t) { + return e - 1 - ((e - 1) % t); + }), + (e.prevIndentTabStop = function (e, t) { + return e - 1 - ((e - 1) % t); + }), + e + ); + })(); + function sl(e) { + return "'" === e || '"' === e || '`' === e; + } + var al = (function () { + function e() {} + return ( + (e.columnSelect = function (e, t, n, r, i, o) { + for ( + var s = Math.abs(i - n) + 1, + a = n > i, + u = r > o, + l = r < o, + c = [], + d = 0; + d < s; + d++ + ) { + var h = n + (a ? -d : d), + f = ol.columnFromVisibleColumn2(e, t, h, r), + p = ol.columnFromVisibleColumn2(e, t, h, o), + g = ol.visibleColumnFromColumn2(e, t, new xt(h, f)), + m = ol.visibleColumnFromColumn2(e, t, new xt(h, p)); + if (l) { + if (g > o) continue; + if (m < r) continue; + } + if (u) { + if (m > r) continue; + if (g < o) continue; + } + c.push(new Qu(new Fr(h, f, h, f), 0, new xt(h, p), 0)); + } + if (0 === c.length) + for (d = 0; d < s; d++) { + h = n + (a ? -d : d); + var _ = t.getLineMaxColumn(h); + c.push(new Qu(new Fr(h, _, h, _), 0, new xt(h, _), 0)); + } + return { + viewStates: c, + reversed: a, + fromLineNumber: n, + fromVisualColumn: r, + toLineNumber: i, + toVisualColumn: o, + }; + }), + (e.columnSelectLeft = function (t, n, r) { + var i = r.toViewVisualColumn; + return ( + i > 1 && i--, + e.columnSelect( + t, + n, + r.fromViewLineNumber, + r.fromViewVisualColumn, + r.toViewLineNumber, + i + ) + ); + }), + (e.columnSelectRight = function (e, t, n) { + for ( + var r = 0, + i = Math.min(n.fromViewLineNumber, n.toViewLineNumber), + o = Math.max(n.fromViewLineNumber, n.toViewLineNumber), + s = i; + s <= o; + s++ + ) { + var a = t.getLineMaxColumn(s), + u = ol.visibleColumnFromColumn2(e, t, new xt(s, a)); + r = Math.max(r, u); + } + var l = n.toViewVisualColumn; + return ( + l < r && l++, + this.columnSelect( + e, + t, + n.fromViewLineNumber, + n.fromViewVisualColumn, + n.toViewLineNumber, + l + ) + ); + }), + (e.columnSelectUp = function (e, t, n, r) { + var i = r ? e.pageSize : 1, + o = Math.max(1, n.toViewLineNumber - i); + return this.columnSelect( + e, + t, + n.fromViewLineNumber, + n.fromViewVisualColumn, + o, + n.toViewVisualColumn + ); + }), + (e.columnSelectDown = function (e, t, n, r) { + var i = r ? e.pageSize : 1, + o = Math.min(t.getLineCount(), n.toViewLineNumber + i); + return this.columnSelect( + e, + t, + n.fromViewLineNumber, + n.fromViewVisualColumn, + o, + n.toViewVisualColumn + ); + }), + e + ); + })(), + ul = (function () { + function e(e, t, n) { + void 0 === n && (n = !1), + (this._range = e), + (this._text = t), + (this.insertsAutoWhitespace = n); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + t.addTrackedEditOperation(this._range, this._text); + }), + (e.prototype.computeCursorState = function (e, t) { + var n = t.getInverseEditOperations()[0].range; + return new jr( + n.endLineNumber, + n.endColumn, + n.endLineNumber, + n.endColumn + ); + }), + e + ); + })(), + ll = (function () { + function e(e, t, n) { + void 0 === n && (n = !1), + (this._range = e), + (this._text = t), + (this.insertsAutoWhitespace = n); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + t.addTrackedEditOperation(this._range, this._text); + }), + (e.prototype.computeCursorState = function (e, t) { + var n = t.getInverseEditOperations()[0].range; + return new jr( + n.startLineNumber, + n.startColumn, + n.startLineNumber, + n.startColumn + ); + }), + e + ); + })(), + cl = (function () { + function e(e, t, n, r, i) { + void 0 === i && (i = !1), + (this._range = e), + (this._text = t), + (this._columnDeltaOffset = r), + (this._lineNumberDeltaOffset = n), + (this.insertsAutoWhitespace = i); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + t.addTrackedEditOperation(this._range, this._text); + }), + (e.prototype.computeCursorState = function (e, t) { + var n = t.getInverseEditOperations()[0].range; + return new jr( + n.endLineNumber + this._lineNumberDeltaOffset, + n.endColumn + this._columnDeltaOffset, + n.endLineNumber + this._lineNumberDeltaOffset, + n.endColumn + this._columnDeltaOffset + ); + }), + e + ); + })(), + dl = (function () { + function e(e, t, n) { + (this._range = e), + (this._text = t), + (this._initialSelection = n), + (this._selectionId = null); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + t.addEditOperation(this._range, this._text), + (this._selectionId = t.trackSelection(this._initialSelection)); + }), + (e.prototype.computeCursorState = function (e, t) { + return t.getTrackedSelection(this._selectionId); + }), + e + ); + })(), + hl = function (e, t, n) { + (this.lineNumber = e), + (this.column = t), + (this.leftoverVisibleColumns = n); + }, + fl = (function () { + function e() {} + return ( + (e.left = function (e, t, n, r) { + return ( + r > t.getLineMinColumn(n) + ? ol.isLowSurrogate(t, n, r - 2) + ? (r -= 2) + : (r -= 1) + : n > 1 && ((n -= 1), (r = t.getLineMaxColumn(n))), + new hl(n, r, 0) + ); + }), + (e.moveLeft = function (t, n, r, i, o) { + var s, a; + if (r.hasSelection() && !i) + (s = r.selection.startLineNumber), (a = r.selection.startColumn); + else { + var u = e.left( + t, + n, + r.position.lineNumber, + r.position.column - (o - 1) + ); + (s = u.lineNumber), (a = u.column); + } + return r.move(i, s, a, 0); + }), + (e.right = function (e, t, n, r) { + return ( + r < t.getLineMaxColumn(n) + ? ol.isHighSurrogate(t, n, r - 1) + ? (r += 2) + : (r += 1) + : n < t.getLineCount() && + ((n += 1), (r = t.getLineMinColumn(n))), + new hl(n, r, 0) + ); + }), + (e.moveRight = function (t, n, r, i, o) { + var s, a; + if (r.hasSelection() && !i) + (s = r.selection.endLineNumber), (a = r.selection.endColumn); + else { + var u = e.right( + t, + n, + r.position.lineNumber, + r.position.column + (o - 1) + ); + (s = u.lineNumber), (a = u.column); + } + return r.move(i, s, a, 0); + }), + (e.down = function (e, t, n, r, i, o, s) { + var a = + ol.visibleColumnFromColumn(t.getLineContent(n), r, e.tabSize) + i; + n += o; + var u = t.getLineCount(); + return ( + n > u + ? ((n = u), + s + ? (r = t.getLineMaxColumn(n)) + : ((r = Math.min(t.getLineMaxColumn(n), r)), + ol.isInsideSurrogatePair(t, n, r) && (r -= 1))) + : ((r = ol.columnFromVisibleColumn2(e, t, n, a)), + ol.isInsideSurrogatePair(t, n, r) && (r -= 1)), + (i = + a - + ol.visibleColumnFromColumn(t.getLineContent(n), r, e.tabSize)), + new hl(n, r, i) + ); + }), + (e.moveDown = function (t, n, r, i, o) { + var s, a; + r.hasSelection() && !i + ? ((s = r.selection.endLineNumber), (a = r.selection.endColumn)) + : ((s = r.position.lineNumber), (a = r.position.column)); + var u = e.down(t, n, s, a, r.leftoverVisibleColumns, o, !0); + return r.move(i, u.lineNumber, u.column, u.leftoverVisibleColumns); + }), + (e.translateDown = function (t, n, r) { + var i = r.selection, + o = e.down( + t, + n, + i.selectionStartLineNumber, + i.selectionStartColumn, + r.selectionStartLeftoverVisibleColumns, + 1, + !1 + ), + s = e.down( + t, + n, + i.positionLineNumber, + i.positionColumn, + r.leftoverVisibleColumns, + 1, + !1 + ); + return new Qu( + new Fr(o.lineNumber, o.column, o.lineNumber, o.column), + o.leftoverVisibleColumns, + new xt(s.lineNumber, s.column), + s.leftoverVisibleColumns + ); + }), + (e.up = function (e, t, n, r, i, o, s) { + var a = + ol.visibleColumnFromColumn(t.getLineContent(n), r, e.tabSize) + i; + return ( + (n -= o) < 1 + ? ((n = 1), + s + ? (r = t.getLineMinColumn(n)) + : ((r = Math.min(t.getLineMaxColumn(n), r)), + ol.isInsideSurrogatePair(t, n, r) && (r -= 1))) + : ((r = ol.columnFromVisibleColumn2(e, t, n, a)), + ol.isInsideSurrogatePair(t, n, r) && (r -= 1)), + (i = + a - + ol.visibleColumnFromColumn(t.getLineContent(n), r, e.tabSize)), + new hl(n, r, i) + ); + }), + (e.moveUp = function (t, n, r, i, o) { + var s, a; + r.hasSelection() && !i + ? ((s = r.selection.startLineNumber), + (a = r.selection.startColumn)) + : ((s = r.position.lineNumber), (a = r.position.column)); + var u = e.up(t, n, s, a, r.leftoverVisibleColumns, o, !0); + return r.move(i, u.lineNumber, u.column, u.leftoverVisibleColumns); + }), + (e.translateUp = function (t, n, r) { + var i = r.selection, + o = e.up( + t, + n, + i.selectionStartLineNumber, + i.selectionStartColumn, + r.selectionStartLeftoverVisibleColumns, + 1, + !1 + ), + s = e.up( + t, + n, + i.positionLineNumber, + i.positionColumn, + r.leftoverVisibleColumns, + 1, + !1 + ); + return new Qu( + new Fr(o.lineNumber, o.column, o.lineNumber, o.column), + o.leftoverVisibleColumns, + new xt(s.lineNumber, s.column), + s.leftoverVisibleColumns + ); + }), + (e.moveToBeginningOfLine = function (e, t, n, r) { + var i, + o = n.position.lineNumber, + s = t.getLineMinColumn(o), + a = t.getLineFirstNonWhitespaceColumn(o) || s; + return (i = n.position.column === a ? s : a), n.move(r, o, i, 0); + }), + (e.moveToEndOfLine = function (e, t, n, r) { + var i = n.position.lineNumber, + o = t.getLineMaxColumn(i); + return n.move(r, i, o, 0); + }), + (e.moveToBeginningOfBuffer = function (e, t, n, r) { + return n.move(r, 1, 1, 0); + }), + (e.moveToEndOfBuffer = function (e, t, n, r) { + var i = t.getLineCount(), + o = t.getLineMaxColumn(i); + return n.move(r, i, o, 0); + }), + e + ); + })(), + pl = (function () { + function e() {} + return ( + (e.deleteRight = function (e, t, n, r) { + for (var i = [], o = 3 !== e, s = 0, a = r.length; s < a; s++) { + var u = r[s], + l = u; + if (l.isEmpty()) { + var c = u.getPosition(), + d = fl.right(t, n, c.lineNumber, c.column); + l = new Fr(d.lineNumber, d.column, c.lineNumber, c.column); + } + l.isEmpty() + ? (i[s] = null) + : (l.startLineNumber !== l.endLineNumber && (o = !0), + (i[s] = new ul(l, ''))); + } + return [o, i]; + }), + (e._isAutoClosingPairDelete = function (e, t, n) { + if ( + 'never' === e.autoClosingBrackets && + 'never' === e.autoClosingQuotes + ) + return !1; + for (var r = 0, i = n.length; r < i; r++) { + var o = n[r], + s = o.getPosition(); + if (!o.isEmpty()) return !1; + var a = t.getLineContent(s.lineNumber), + u = a[s.column - 2], + l = e.autoClosingPairsOpen2.get(u); + if (!l) return !1; + if (sl(u)) { + if ('never' === e.autoClosingQuotes) return !1; + } else if ('never' === e.autoClosingBrackets) return !1; + for ( + var c = a[s.column - 1], d = !1, h = 0, f = l; + h < f.length; + h++ + ) { + var p = f[h]; + p.open === u && p.close === c && (d = !0); + } + if (!d) return !1; + } + return !0; + }), + (e._runAutoClosingPairDelete = function (e, t, n) { + for (var r = [], i = 0, o = n.length; i < o; i++) { + var s = n[i].getPosition(), + a = new Fr( + s.lineNumber, + s.column - 1, + s.lineNumber, + s.column + 1 + ); + r[i] = new ul(a, ''); + } + return [!0, r]; + }), + (e.deleteLeft = function (e, t, n, r) { + if (this._isAutoClosingPairDelete(t, n, r)) + return this._runAutoClosingPairDelete(t, n, r); + for (var i = [], o = 2 !== e, s = 0, a = r.length; s < a; s++) { + var u = r[s], + l = u; + if (l.isEmpty()) { + var c = u.getPosition(); + if (t.useTabStops && c.column > 1) { + var d = n.getLineContent(c.lineNumber), + h = pn(d), + f = -1 === h ? d.length + 1 : h + 1; + if (c.column <= f) { + var p = ol.visibleColumnFromColumn2(t, n, c), + g = ol.prevIndentTabStop(p, t.indentSize), + m = ol.columnFromVisibleColumn2(t, n, c.lineNumber, g); + l = new Fr(c.lineNumber, m, c.lineNumber, c.column); + } else + l = new Fr( + c.lineNumber, + c.column - 1, + c.lineNumber, + c.column + ); + } else { + var _ = fl.left(t, n, c.lineNumber, c.column); + l = new Fr(_.lineNumber, _.column, c.lineNumber, c.column); + } + } + l.isEmpty() + ? (i[s] = null) + : (l.startLineNumber !== l.endLineNumber && (o = !0), + (i[s] = new ul(l, ''))); + } + return [o, i]; + }), + (e.cut = function (e, t, n) { + for (var r = [], i = 0, o = n.length; i < o; i++) { + var s = n[i]; + if (s.isEmpty()) + if (e.emptySelectionClipboard) { + var a = s.getPosition(), + u = void 0, + l = void 0, + c = void 0, + d = void 0; + a.lineNumber < t.getLineCount() + ? ((u = a.lineNumber), + (l = 1), + (c = a.lineNumber + 1), + (d = 1)) + : a.lineNumber > 1 + ? ((u = a.lineNumber - 1), + (l = t.getLineMaxColumn(a.lineNumber - 1)), + (c = a.lineNumber), + (d = t.getLineMaxColumn(a.lineNumber))) + : ((u = a.lineNumber), + (l = 1), + (c = a.lineNumber), + (d = t.getLineMaxColumn(a.lineNumber))); + var h = new Fr(u, l, c, d); + h.isEmpty() ? (r[i] = null) : (r[i] = new ul(h, '')); + } else r[i] = null; + else r[i] = new ul(s, ''); + } + return new il(0, r, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !0, + }); + }), + e + ); + })(), + gl = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ml = (function () { + function e() {} + return ( + (e._createWord = function (e, t, n, r, i) { + return { start: r, end: i, wordType: t, nextCharClass: n }; + }), + (e._findPreviousWordOnLine = function (e, t, n) { + var r = t.getLineContent(n.lineNumber); + return this._doFindPreviousWordOnLine(r, e, n); + }), + (e._doFindPreviousWordOnLine = function (e, t, n) { + for (var r = 0, i = n.column - 2; i >= 0; i--) { + var o = e.charCodeAt(i), + s = t.get(o); + if (0 === s) { + if (2 === r) + return this._createWord( + e, + r, + s, + i + 1, + this._findEndOfWord(e, t, r, i + 1) + ); + r = 1; + } else if (2 === s) { + if (1 === r) + return this._createWord( + e, + r, + s, + i + 1, + this._findEndOfWord(e, t, r, i + 1) + ); + r = 2; + } else if (1 === s && 0 !== r) + return this._createWord( + e, + r, + s, + i + 1, + this._findEndOfWord(e, t, r, i + 1) + ); + } + return 0 !== r + ? this._createWord(e, r, 1, 0, this._findEndOfWord(e, t, r, 0)) + : null; + }), + (e._findEndOfWord = function (e, t, n, r) { + for (var i = e.length, o = r; o < i; o++) { + var s = e.charCodeAt(o), + a = t.get(s); + if (1 === a) return o; + if (1 === n && 2 === a) return o; + if (2 === n && 0 === a) return o; + } + return i; + }), + (e._findNextWordOnLine = function (e, t, n) { + var r = t.getLineContent(n.lineNumber); + return this._doFindNextWordOnLine(r, e, n); + }), + (e._doFindNextWordOnLine = function (e, t, n) { + for (var r = 0, i = e.length, o = n.column - 1; o < i; o++) { + var s = e.charCodeAt(o), + a = t.get(s); + if (0 === a) { + if (2 === r) + return this._createWord( + e, + r, + a, + this._findStartOfWord(e, t, r, o - 1), + o + ); + r = 1; + } else if (2 === a) { + if (1 === r) + return this._createWord( + e, + r, + a, + this._findStartOfWord(e, t, r, o - 1), + o + ); + r = 2; + } else if (1 === a && 0 !== r) + return this._createWord( + e, + r, + a, + this._findStartOfWord(e, t, r, o - 1), + o + ); + } + return 0 !== r + ? this._createWord( + e, + r, + 1, + this._findStartOfWord(e, t, r, i - 1), + i + ) + : null; + }), + (e._findStartOfWord = function (e, t, n, r) { + for (var i = r; i >= 0; i--) { + var o = e.charCodeAt(i), + s = t.get(o); + if (1 === s) return i + 1; + if (1 === n && 2 === s) return i + 1; + if (2 === n && 0 === s) return i + 1; + } + return 0; + }), + (e.moveWordLeft = function (t, n, r, i) { + var o = r.lineNumber, + s = r.column, + a = !1; + 1 === s && + o > 1 && + ((a = !0), (o -= 1), (s = n.getLineMaxColumn(o))); + var u = e._findPreviousWordOnLine(t, n, new xt(o, s)); + if (0 === i) { + if (u && !a) + if (n.getLineLastNonWhitespaceColumn(o) < s) + return new xt(o, u.end + 1); + return new xt(o, u ? u.start + 1 : 1); + } + if (1 === i) + return ( + u && + 2 === u.wordType && + u.end - u.start == 1 && + 0 === u.nextCharClass && + (u = e._findPreviousWordOnLine(t, n, new xt(o, u.start + 1))), + new xt(o, u ? u.start + 1 : 1) + ); + if (3 === i) { + for (; u && 2 === u.wordType; ) + u = e._findPreviousWordOnLine(t, n, new xt(o, u.start + 1)); + return new xt(o, u ? u.start + 1 : 1); + } + return ( + u && + s <= u.end + 1 && + (u = e._findPreviousWordOnLine(t, n, new xt(o, u.start + 1))), + new xt(o, u ? u.end + 1 : 1) + ); + }), + (e._moveWordPartLeft = function (e, t) { + var n = t.lineNumber, + r = e.getLineMaxColumn(n); + if (1 === t.column) + return n > 1 ? new xt(n - 1, e.getLineMaxColumn(n - 1)) : t; + for (var i = e.getLineContent(n), o = t.column - 1; o > 1; o--) { + var s = i.charCodeAt(o - 2), + a = i.charCodeAt(o - 1); + if (95 !== s && 95 === a) return new xt(n, o); + if (_n(s) && yn(a)) return new xt(n, o); + if (yn(s) && yn(a)) + if (o + 1 < r) if (_n(i.charCodeAt(o))) return new xt(n, o); + } + return new xt(n, 1); + }), + (e.moveWordRight = function (t, n, r, i) { + var o = r.lineNumber, + s = r.column, + a = !1; + s === n.getLineMaxColumn(o) && + o < n.getLineCount() && + ((a = !0), (o += 1), (s = 1)); + var u = e._findNextWordOnLine(t, n, new xt(o, s)); + if (2 === i) + u && + 2 === u.wordType && + u.end - u.start == 1 && + 0 === u.nextCharClass && + (u = e._findNextWordOnLine(t, n, new xt(o, u.end + 1))), + (s = u ? u.end + 1 : n.getLineMaxColumn(o)); + else if (3 === i) { + for (; u && 2 === u.wordType; ) + u = e._findNextWordOnLine(t, n, new xt(o, u.end + 1)); + s = u ? u.end + 1 : n.getLineMaxColumn(o); + } else + u && + !a && + s >= u.start + 1 && + (u = e._findNextWordOnLine(t, n, new xt(o, u.end + 1))), + (s = u ? u.start + 1 : n.getLineMaxColumn(o)); + return new xt(o, s); + }), + (e._moveWordPartRight = function (e, t) { + var n = t.lineNumber, + r = e.getLineMaxColumn(n); + if (t.column === r) + return n < e.getLineCount() ? new xt(n + 1, 1) : t; + for (var i = e.getLineContent(n), o = t.column + 1; o < r; o++) { + var s = i.charCodeAt(o - 2), + a = i.charCodeAt(o - 1); + if (95 === s && 95 !== a) return new xt(n, o); + if (_n(s) && yn(a)) return new xt(n, o); + if (yn(s) && yn(a)) + if (o + 1 < r) if (_n(i.charCodeAt(o))) return new xt(n, o); + } + return new xt(n, r); + }), + (e._deleteWordLeftWhitespace = function (e, t) { + var n = e.getLineContent(t.lineNumber), + r = t.column - 2, + i = mn(n, r); + return i + 1 < r + ? new Fr(t.lineNumber, i + 2, t.lineNumber, t.column) + : null; + }), + (e.deleteWordLeft = function (t, n, r, i, o) { + if (!r.isEmpty()) return r; + var s = new xt(r.positionLineNumber, r.positionColumn), + a = s.lineNumber, + u = s.column; + if (1 === a && 1 === u) return null; + if (i) { + var l = this._deleteWordLeftWhitespace(n, s); + if (l) return l; + } + var c = e._findPreviousWordOnLine(t, n, s); + return ( + 0 === o + ? c + ? (u = c.start + 1) + : u > 1 + ? (u = 1) + : (a--, (u = n.getLineMaxColumn(a))) + : (c && + u <= c.end + 1 && + (c = e._findPreviousWordOnLine( + t, + n, + new xt(a, c.start + 1) + )), + c + ? (u = c.end + 1) + : u > 1 + ? (u = 1) + : (a--, (u = n.getLineMaxColumn(a)))), + new Fr(a, u, s.lineNumber, s.column) + ); + }), + (e._deleteWordPartLeft = function (t, n) { + if (!n.isEmpty()) return n; + var r = n.getPosition(), + i = e._moveWordPartLeft(t, r); + return new Fr(r.lineNumber, r.column, i.lineNumber, i.column); + }), + (e._findFirstNonWhitespaceChar = function (e, t) { + for (var n = e.length, r = t; r < n; r++) { + var i = e.charAt(r); + if (' ' !== i && '\t' !== i) return r; + } + return n; + }), + (e._deleteWordRightWhitespace = function (e, t) { + var n = e.getLineContent(t.lineNumber), + r = t.column - 1, + i = this._findFirstNonWhitespaceChar(n, r); + return r + 1 < i + ? new Fr(t.lineNumber, t.column, t.lineNumber, i + 1) + : null; + }), + (e.deleteWordRight = function (t, n, r, i, o) { + if (!r.isEmpty()) return r; + var s = new xt(r.positionLineNumber, r.positionColumn), + a = s.lineNumber, + u = s.column, + l = n.getLineCount(), + c = n.getLineMaxColumn(a); + if (a === l && u === c) return null; + if (i) { + var d = this._deleteWordRightWhitespace(n, s); + if (d) return d; + } + var h = e._findNextWordOnLine(t, n, s); + return ( + 2 === o + ? h + ? (u = h.end + 1) + : u < c || a === l + ? (u = c) + : (a++, + (u = (h = e._findNextWordOnLine(t, n, new xt(a, 1))) + ? h.start + 1 + : n.getLineMaxColumn(a))) + : (h && + u >= h.start + 1 && + (h = e._findNextWordOnLine(t, n, new xt(a, h.end + 1))), + h + ? (u = h.start + 1) + : u < c || a === l + ? (u = c) + : (a++, + (u = (h = e._findNextWordOnLine(t, n, new xt(a, 1))) + ? h.start + 1 + : n.getLineMaxColumn(a)))), + new Fr(a, u, s.lineNumber, s.column) + ); + }), + (e._deleteWordPartRight = function (t, n) { + if (!n.isEmpty()) return n; + var r = n.getPosition(), + i = e._moveWordPartRight(t, r); + return new Fr(r.lineNumber, r.column, i.lineNumber, i.column); + }), + (e.word = function (t, n, r, i, o) { + var s, + a, + u, + l, + c = Lo(t.wordSeparators), + d = e._findPreviousWordOnLine(c, n, o), + h = e._findNextWordOnLine(c, n, o); + if (!i) + return ( + d && + 1 === d.wordType && + d.start <= o.column - 1 && + o.column - 1 <= d.end + ? ((s = d.start + 1), (a = d.end + 1)) + : h && + 1 === h.wordType && + h.start <= o.column - 1 && + o.column - 1 <= h.end + ? ((s = h.start + 1), (a = h.end + 1)) + : ((s = d ? d.end + 1 : 1), + (a = h ? h.start + 1 : n.getLineMaxColumn(o.lineNumber))), + new Qu( + new Fr(o.lineNumber, s, o.lineNumber, a), + 0, + new xt(o.lineNumber, a), + 0 + ) + ); + d && + 1 === d.wordType && + d.start < o.column - 1 && + o.column - 1 < d.end + ? ((u = d.start + 1), (l = d.end + 1)) + : h && + 1 === h.wordType && + h.start < o.column - 1 && + o.column - 1 < h.end + ? ((u = h.start + 1), (l = h.end + 1)) + : ((u = o.column), (l = o.column)); + var f, + p = o.lineNumber; + if (r.selectionStart.containsPosition(o)) + f = r.selectionStart.endColumn; + else if (o.isBeforeOrEqual(r.selectionStart.getStartPosition())) { + var g = new xt(p, (f = u)); + r.selectionStart.containsPosition(g) && + (f = r.selectionStart.endColumn); + } else { + g = new xt(p, (f = l)); + r.selectionStart.containsPosition(g) && + (f = r.selectionStart.startColumn); + } + return r.move(!0, p, f, 0); + }), + e + ); + })(); + !(function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + gl(t, e), + (t.deleteWordPartLeft = function (e, t, n, r) { + var i = _l([ + ml.deleteWordLeft(e, t, n, r, 0), + ml.deleteWordLeft(e, t, n, r, 2), + ml._deleteWordPartLeft(t, n), + ]); + return i.sort(Fr.compareRangesUsingEnds), i[2]; + }), + (t.deleteWordPartRight = function (e, t, n, r) { + var i = _l([ + ml.deleteWordRight(e, t, n, r, 0), + ml.deleteWordRight(e, t, n, r, 2), + ml._deleteWordPartRight(t, n), + ]); + return i.sort(Fr.compareRangesUsingStarts), i[0]; + }), + (t.moveWordPartLeft = function (e, t, n) { + var r = _l([ + ml.moveWordLeft(e, t, n, 0), + ml.moveWordLeft(e, t, n, 2), + ml._moveWordPartLeft(t, n), + ]); + return r.sort(xt.compare), r[2]; + }), + (t.moveWordPartRight = function (e, t, n) { + var r = _l([ + ml.moveWordRight(e, t, n, 0), + ml.moveWordRight(e, t, n, 2), + ml._moveWordPartRight(t, n), + ]); + return r.sort(xt.compare), r[0]; + }); + })(ml); + function _l(e) { + return e.filter(function (e) { + return Boolean(e); + }); + } + var yl, + vl, + bl = (function () { + function e() {} + return ( + (e.addCursorDown = function (e, t, n) { + for (var r = [], i = 0, o = 0, s = t.length; o < s; o++) { + var a = t[o]; + (r[i++] = new rl(a.modelState, a.viewState)), + (r[i++] = n + ? rl.fromModelState( + fl.translateDown(e.config, e.model, a.modelState) + ) + : rl.fromViewState( + fl.translateDown(e.config, e.viewModel, a.viewState) + )); + } + return r; + }), + (e.addCursorUp = function (e, t, n) { + for (var r = [], i = 0, o = 0, s = t.length; o < s; o++) { + var a = t[o]; + (r[i++] = new rl(a.modelState, a.viewState)), + (r[i++] = n + ? rl.fromModelState( + fl.translateUp(e.config, e.model, a.modelState) + ) + : rl.fromViewState( + fl.translateUp(e.config, e.viewModel, a.viewState) + )); + } + return r; + }), + (e.moveToBeginningOfLine = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i]; + r[i] = this._moveToLineStart(e, s, n); + } + return r; + }), + (e._moveToLineStart = function (e, t, n) { + var r = t.viewState.position.column, + i = r === t.modelState.position.column, + o = t.viewState.position.lineNumber, + s = e.viewModel.getLineFirstNonWhitespaceColumn(o); + return i || r === s + ? this._moveToLineStartByModel(e, t, n) + : this._moveToLineStartByView(e, t, n); + }), + (e._moveToLineStartByView = function (e, t, n) { + return rl.fromViewState( + fl.moveToBeginningOfLine(e.config, e.viewModel, t.viewState, n) + ); + }), + (e._moveToLineStartByModel = function (e, t, n) { + return rl.fromModelState( + fl.moveToBeginningOfLine(e.config, e.model, t.modelState, n) + ); + }), + (e.moveToEndOfLine = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i]; + r[i] = this._moveToLineEnd(e, s, n); + } + return r; + }), + (e._moveToLineEnd = function (e, t, n) { + var r = t.viewState.position, + i = e.viewModel.getLineMaxColumn(r.lineNumber), + o = r.column === i, + s = t.modelState.position, + a = e.model.getLineMaxColumn(s.lineNumber), + u = i - r.column == a - s.column; + return o || u + ? this._moveToLineEndByModel(e, t, n) + : this._moveToLineEndByView(e, t, n); + }), + (e._moveToLineEndByView = function (e, t, n) { + return rl.fromViewState( + fl.moveToEndOfLine(e.config, e.viewModel, t.viewState, n) + ); + }), + (e._moveToLineEndByModel = function (e, t, n) { + return rl.fromModelState( + fl.moveToEndOfLine(e.config, e.model, t.modelState, n) + ); + }), + (e.expandLineSelection = function (e, t) { + for (var n = [], r = 0, i = t.length; r < i; r++) { + var o = t[r].viewState.selection, + s = o.startLineNumber, + a = e.viewModel.getLineCount(), + u = o.endLineNumber, + l = void 0; + u === a ? (l = e.viewModel.getLineMaxColumn(a)) : (u++, (l = 1)), + (n[r] = rl.fromViewState( + new Qu(new Fr(s, 1, s, 1), 0, new xt(u, l), 0) + )); + } + return n; + }), + (e.moveToBeginningOfBuffer = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i]; + r[i] = rl.fromModelState( + fl.moveToBeginningOfBuffer(e.config, e.model, s.modelState, n) + ); + } + return r; + }), + (e.moveToEndOfBuffer = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i]; + r[i] = rl.fromModelState( + fl.moveToEndOfBuffer(e.config, e.model, s.modelState, n) + ); + } + return r; + }), + (e.selectAll = function (e, t) { + var n = e.model.getLineCount(), + r = e.model.getLineMaxColumn(n); + return rl.fromModelState( + new Qu(new Fr(1, 1, 1, 1), 0, new xt(n, r), 0) + ); + }), + (e.line = function (e, t, n, r, i) { + var o = e.model.validatePosition(r), + s = i + ? e.validateViewPosition(new xt(i.lineNumber, i.column), o) + : e.convertModelPositionToViewPosition(o); + if (!n || !t.modelState.hasSelection()) { + var a = e.model.getLineCount(), + u = o.lineNumber + 1, + l = 1; + return ( + u > a && ((u = a), (l = e.model.getLineMaxColumn(u))), + rl.fromModelState( + new Qu(new Fr(o.lineNumber, 1, u, l), 0, new xt(u, l), 0) + ) + ); + } + var c = t.modelState.selectionStart.getStartPosition().lineNumber; + if (o.lineNumber < c) + return rl.fromViewState( + t.viewState.move( + t.modelState.hasSelection(), + s.lineNumber, + 1, + 0 + ) + ); + if (o.lineNumber > c) { + a = e.viewModel.getLineCount(); + var d = s.lineNumber + 1, + h = 1; + return ( + d > a && ((d = a), (h = e.viewModel.getLineMaxColumn(d))), + rl.fromViewState( + t.viewState.move(t.modelState.hasSelection(), d, h, 0) + ) + ); + } + var f = t.modelState.selectionStart.getEndPosition(); + return rl.fromModelState( + t.modelState.move( + t.modelState.hasSelection(), + f.lineNumber, + f.column, + 0 + ) + ); + }), + (e.word = function (e, t, n, r) { + var i = e.model.validatePosition(r); + return rl.fromModelState( + ml.word(e.config, e.model, t.modelState, n, i) + ); + }), + (e.cancelSelection = function (e, t) { + if (!t.modelState.hasSelection()) + return new rl(t.modelState, t.viewState); + var n = t.viewState.position.lineNumber, + r = t.viewState.position.column; + return rl.fromViewState( + new Qu(new Fr(n, r, n, r), 0, new xt(n, r), 0) + ); + }), + (e.moveTo = function (e, t, n, r, i) { + var o = e.model.validatePosition(r), + s = i + ? e.validateViewPosition(new xt(i.lineNumber, i.column), o) + : e.convertModelPositionToViewPosition(o); + return rl.fromViewState( + t.viewState.move(n, s.lineNumber, s.column, 0) + ); + }), + (e.move = function (e, t, n) { + var r = n.select, + i = n.value; + switch (n.direction) { + case 0: + return 4 === n.unit + ? this._moveHalfLineLeft(e, t, r) + : this._moveLeft(e, t, r, i); + case 1: + return 4 === n.unit + ? this._moveHalfLineRight(e, t, r) + : this._moveRight(e, t, r, i); + case 2: + return 2 === n.unit + ? this._moveUpByViewLines(e, t, r, i) + : this._moveUpByModelLines(e, t, r, i); + case 3: + return 2 === n.unit + ? this._moveDownByViewLines(e, t, r, i) + : this._moveDownByModelLines(e, t, r, i); + case 4: + return this._moveToViewMinColumn(e, t, r); + case 5: + return this._moveToViewFirstNonWhitespaceColumn(e, t, r); + case 6: + return this._moveToViewCenterColumn(e, t, r); + case 7: + return this._moveToViewMaxColumn(e, t, r); + case 8: + return this._moveToViewLastNonWhitespaceColumn(e, t, r); + case 9: + var o = t[0], + s = e.getCompletelyVisibleModelRange(), + a = this._firstLineNumberInRange(e.model, s, i), + u = e.model.getLineFirstNonWhitespaceColumn(a); + return [this._moveToModelPosition(e, o, r, a, u)]; + case 11: + (o = t[0]), + (s = e.getCompletelyVisibleModelRange()), + (a = this._lastLineNumberInRange(e.model, s, i)), + (u = e.model.getLineFirstNonWhitespaceColumn(a)); + return [this._moveToModelPosition(e, o, r, a, u)]; + case 10: + (o = t[0]), + (s = e.getCompletelyVisibleModelRange()), + (a = Math.round((s.startLineNumber + s.endLineNumber) / 2)), + (u = e.model.getLineFirstNonWhitespaceColumn(a)); + return [this._moveToModelPosition(e, o, r, a, u)]; + case 12: + for ( + var l = e.getCompletelyVisibleViewRange(), + c = [], + d = 0, + h = t.length; + d < h; + d++ + ) { + o = t[d]; + c[d] = this.findPositionInViewportIfOutside(e, o, l, r); + } + return c; + } + return null; + }), + (e.findPositionInViewportIfOutside = function (e, t, n, r) { + var i = t.viewState.position.lineNumber; + if (n.startLineNumber <= i && i <= n.endLineNumber - 1) + return new rl(t.modelState, t.viewState); + i > n.endLineNumber - 1 && (i = n.endLineNumber - 1), + i < n.startLineNumber && (i = n.startLineNumber); + var o = e.viewModel.getLineFirstNonWhitespaceColumn(i); + return this._moveToViewPosition(e, t, r, i, o); + }), + (e._firstLineNumberInRange = function (e, t, n) { + var r = t.startLineNumber; + return ( + t.startColumn !== e.getLineMinColumn(r) && r++, + Math.min(t.endLineNumber, r + n - 1) + ); + }), + (e._lastLineNumberInRange = function (e, t, n) { + var r = t.startLineNumber; + return ( + t.startColumn !== e.getLineMinColumn(r) && r++, + Math.max(r, t.endLineNumber - n + 1) + ); + }), + (e._moveLeft = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o], + u = fl.moveLeft(e.config, e.viewModel, a.viewState, n, r); + if ( + 1 === r && + u.position.lineNumber !== a.viewState.position.lineNumber + ) + e.viewModel.coordinatesConverter.convertViewPositionToModelPosition( + u.position + ).lineNumber === a.modelState.position.lineNumber && + (u = fl.moveLeft(e.config, e.viewModel, u, n, 1)); + i[o] = rl.fromViewState(u); + } + return i; + }), + (e._moveHalfLineLeft = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = Math.round(e.viewModel.getLineContent(a).length / 2); + r[i] = rl.fromViewState( + fl.moveLeft(e.config, e.viewModel, s.viewState, n, u) + ); + } + return r; + }), + (e._moveRight = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o], + u = fl.moveRight(e.config, e.viewModel, a.viewState, n, r); + if ( + 1 === r && + u.position.lineNumber !== a.viewState.position.lineNumber + ) + e.viewModel.coordinatesConverter.convertViewPositionToModelPosition( + u.position + ).lineNumber === a.modelState.position.lineNumber && + (u = fl.moveRight(e.config, e.viewModel, u, n, 1)); + i[o] = rl.fromViewState(u); + } + return i; + }), + (e._moveHalfLineRight = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = Math.round(e.viewModel.getLineContent(a).length / 2); + r[i] = rl.fromViewState( + fl.moveRight(e.config, e.viewModel, s.viewState, n, u) + ); + } + return r; + }), + (e._moveDownByViewLines = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o]; + i[o] = rl.fromViewState( + fl.moveDown(e.config, e.viewModel, a.viewState, n, r) + ); + } + return i; + }), + (e._moveDownByModelLines = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o]; + i[o] = rl.fromModelState( + fl.moveDown(e.config, e.model, a.modelState, n, r) + ); + } + return i; + }), + (e._moveUpByViewLines = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o]; + i[o] = rl.fromViewState( + fl.moveUp(e.config, e.viewModel, a.viewState, n, r) + ); + } + return i; + }), + (e._moveUpByModelLines = function (e, t, n, r) { + for (var i = [], o = 0, s = t.length; o < s; o++) { + var a = t[o]; + i[o] = rl.fromModelState( + fl.moveUp(e.config, e.model, a.modelState, n, r) + ); + } + return i; + }), + (e._moveToViewPosition = function (e, t, n, r, i) { + return rl.fromViewState(t.viewState.move(n, r, i, 0)); + }), + (e._moveToModelPosition = function (e, t, n, r, i) { + return rl.fromModelState(t.modelState.move(n, r, i, 0)); + }), + (e._moveToViewMinColumn = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = e.viewModel.getLineMinColumn(a); + r[i] = this._moveToViewPosition(e, s, n, a, u); + } + return r; + }), + (e._moveToViewFirstNonWhitespaceColumn = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = e.viewModel.getLineFirstNonWhitespaceColumn(a); + r[i] = this._moveToViewPosition(e, s, n, a, u); + } + return r; + }), + (e._moveToViewCenterColumn = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = Math.round( + (e.viewModel.getLineMaxColumn(a) + + e.viewModel.getLineMinColumn(a)) / + 2 + ); + r[i] = this._moveToViewPosition(e, s, n, a, u); + } + return r; + }), + (e._moveToViewMaxColumn = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = e.viewModel.getLineMaxColumn(a); + r[i] = this._moveToViewPosition(e, s, n, a, u); + } + return r; + }), + (e._moveToViewLastNonWhitespaceColumn = function (e, t, n) { + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = s.viewState.position.lineNumber, + u = e.viewModel.getLineLastNonWhitespaceColumn(a); + r[i] = this._moveToViewPosition(e, s, n, a, u); + } + return r; + }), + e + ); + })(); + ((vl = yl || (yl = {})).description = { + description: 'Move cursor to a logical position in the view', + args: [ + { + name: 'Cursor move argument object', + description: + "Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t", + constraint: function (e) { + if (!Ne(e)) return !1; + var t = e; + return !( + !Te(t.to) || + (!Ie(t.select) && !Ae(t.select)) || + (!Ie(t.by) && !Te(t.by)) || + (!Ie(t.value) && !Oe(t.value)) + ); + }, + schema: { + type: 'object', + required: ['to'], + properties: { + to: { + type: 'string', + enum: [ + 'left', + 'right', + 'up', + 'down', + 'wrappedLineStart', + 'wrappedLineEnd', + 'wrappedLineColumnCenter', + 'wrappedLineFirstNonWhitespaceCharacter', + 'wrappedLineLastNonWhitespaceCharacter', + 'viewPortTop', + 'viewPortCenter', + 'viewPortBottom', + 'viewPortIfOutside', + ], + }, + by: { + type: 'string', + enum: ['line', 'wrappedLine', 'character', 'halfLine'], + }, + value: { type: 'number', default: 1 }, + select: { type: 'boolean', default: !1 }, + }, + }, + }, + ], + }), + (vl.RawDirection = { + Left: 'left', + Right: 'right', + Up: 'up', + Down: 'down', + WrappedLineStart: 'wrappedLineStart', + WrappedLineFirstNonWhitespaceCharacter: + 'wrappedLineFirstNonWhitespaceCharacter', + WrappedLineColumnCenter: 'wrappedLineColumnCenter', + WrappedLineEnd: 'wrappedLineEnd', + WrappedLineLastNonWhitespaceCharacter: + 'wrappedLineLastNonWhitespaceCharacter', + ViewPortTop: 'viewPortTop', + ViewPortCenter: 'viewPortCenter', + ViewPortBottom: 'viewPortBottom', + ViewPortIfOutside: 'viewPortIfOutside', + }), + (vl.RawUnit = { + Line: 'line', + WrappedLine: 'wrappedLine', + Character: 'character', + HalfLine: 'halfLine', + }), + (vl.parse = function (e) { + if (!e.to) return null; + var t; + switch (e.to) { + case vl.RawDirection.Left: + t = 0; + break; + case vl.RawDirection.Right: + t = 1; + break; + case vl.RawDirection.Up: + t = 2; + break; + case vl.RawDirection.Down: + t = 3; + break; + case vl.RawDirection.WrappedLineStart: + t = 4; + break; + case vl.RawDirection.WrappedLineFirstNonWhitespaceCharacter: + t = 5; + break; + case vl.RawDirection.WrappedLineColumnCenter: + t = 6; + break; + case vl.RawDirection.WrappedLineEnd: + t = 7; + break; + case vl.RawDirection.WrappedLineLastNonWhitespaceCharacter: + t = 8; + break; + case vl.RawDirection.ViewPortTop: + t = 9; + break; + case vl.RawDirection.ViewPortBottom: + t = 11; + break; + case vl.RawDirection.ViewPortCenter: + t = 10; + break; + case vl.RawDirection.ViewPortIfOutside: + t = 12; + break; + default: + return null; + } + var n = 0; + switch (e.by) { + case vl.RawUnit.Line: + n = 1; + break; + case vl.RawUnit.WrappedLine: + n = 2; + break; + case vl.RawUnit.Character: + n = 3; + break; + case vl.RawUnit.HalfLine: + n = 4; + } + return { + direction: t, + unit: n, + select: !!e.select, + value: e.value || 1, + }; + }); + var wl = Object.create(null); + function Cl(e, t) { + wl[e] || (wl[e] = ['', e]); + for (var n = wl[e], r = n.length; r <= t; r++) n[r] = n[r - 1] + e; + return n[t]; + } + var Sl = (function () { + function e(e, t) { + (this._opts = t), + (this._selection = e), + (this._selectionId = null), + (this._useLastEditRangeForCursorEndPosition = !1), + (this._selectionStartColumnStaysPut = !1); + } + return ( + (e.unshiftIndent = function (e, t, n, r, i) { + var o = ol.visibleColumnFromColumn(e, t, n); + if (i) { + var s = Cl(' ', r); + return Cl(s, ol.prevIndentTabStop(o, r) / r); + } + return Cl((s = '\t'), ol.prevRenderTabStop(o, n) / n); + }), + (e.shiftIndent = function (e, t, n, r, i) { + var o = ol.visibleColumnFromColumn(e, t, n); + if (i) { + var s = Cl(' ', r); + return Cl(s, ol.nextIndentTabStop(o, r) / r); + } + return Cl((s = '\t'), ol.nextRenderTabStop(o, n) / n); + }), + (e.prototype._addEditOperation = function (e, t, n) { + this._useLastEditRangeForCursorEndPosition + ? e.addTrackedEditOperation(t, n) + : e.addEditOperation(t, n); + }), + (e.prototype.getEditOperations = function (t, n) { + var r = this._selection.startLineNumber, + i = this._selection.endLineNumber; + 1 === this._selection.endColumn && r !== i && (i -= 1); + var o = this._opts, + s = o.tabSize, + a = o.indentSize, + u = o.insertSpaces, + l = r === i; + if ( + (this._selection.isEmpty() && + /^\s*$/.test(t.getLineContent(r)) && + (this._useLastEditRangeForCursorEndPosition = !0), + this._opts.useTabStops) + ) + for (var c = 0, d = 0, h = r; h <= i; h++, c = d) { + d = 0; + var f = pn((v = t.getLineContent(h))); + if ( + (!this._opts.isUnshift || (0 !== v.length && 0 !== f)) && + (l || this._opts.isUnshift || 0 !== v.length) + ) { + if ((-1 === f && (f = v.length), h > 1)) + if ( + ol.visibleColumnFromColumn(v, f + 1, s) % a != 0 && + t.isCheapToTokenize(h - 1) + ) { + var p = ku.getRawEnterActionAtPosition( + t, + h - 1, + t.getLineMaxColumn(h - 1) + ); + if (p) { + if (((d = c), p.appendText)) + for ( + var g = 0, m = p.appendText.length; + g < m && d < a && 32 === p.appendText.charCodeAt(g); + g++ + ) + d++; + p.removeText && (d = Math.max(0, d - p.removeText)); + for ( + g = 0; + g < d && 0 !== f && 32 === v.charCodeAt(f - 1); + g++ + ) + f--; + } + } + if (!this._opts.isUnshift || 0 !== f) { + var _ = void 0; + (_ = this._opts.isUnshift + ? e.unshiftIndent(v, f + 1, s, a, u) + : e.shiftIndent(v, f + 1, s, a, u)), + this._addEditOperation(n, new Fr(h, 1, h, f + 1), _), + h === r && + (this._selectionStartColumnStaysPut = + this._selection.startColumn <= f + 1); + } + } + } + else { + var y = u ? Cl(' ', a) : '\t'; + for (h = r; h <= i; h++) { + var v; + f = pn((v = t.getLineContent(h))); + if ( + (!this._opts.isUnshift || (0 !== v.length && 0 !== f)) && + (l || this._opts.isUnshift || 0 !== v.length) && + (-1 === f && (f = v.length), !this._opts.isUnshift || 0 !== f) + ) + if (this._opts.isUnshift) { + f = Math.min(f, a); + for (var b = 0; b < f; b++) { + if (9 === v.charCodeAt(b)) { + f = b + 1; + break; + } + } + this._addEditOperation(n, new Fr(h, 1, h, f + 1), ''); + } else + this._addEditOperation(n, new Fr(h, 1, h, 1), y), + h === r && + (this._selectionStartColumnStaysPut = + 1 === this._selection.startColumn); + } + } + this._selectionId = n.trackSelection(this._selection); + }), + (e.prototype.computeCursorState = function (e, t) { + if (this._useLastEditRangeForCursorEndPosition) { + var n = t.getInverseEditOperations()[0]; + return new jr( + n.range.endLineNumber, + n.range.endColumn, + n.range.endLineNumber, + n.range.endColumn + ); + } + var r = t.getTrackedSelection(this._selectionId); + if (this._selectionStartColumnStaysPut) { + var i = this._selection.startColumn; + return r.startColumn <= i + ? r + : 0 === r.getDirection() + ? new jr(r.startLineNumber, i, r.endLineNumber, r.endColumn) + : new jr(r.endLineNumber, r.endColumn, r.startLineNumber, i); + } + return r; + }), + e + ); + })(), + xl = (function () { + function e(e, t, n) { + (this._range = e), + (this._charBeforeSelection = t), + (this._charAfterSelection = n); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + t.addTrackedEditOperation( + new Fr( + this._range.startLineNumber, + this._range.startColumn, + this._range.startLineNumber, + this._range.startColumn + ), + this._charBeforeSelection + ), + t.addTrackedEditOperation( + new Fr( + this._range.endLineNumber, + this._range.endColumn, + this._range.endLineNumber, + this._range.endColumn + ), + this._charAfterSelection + ); + }), + (e.prototype.computeCursorState = function (e, t) { + var n = t.getInverseEditOperations(), + r = n[0].range, + i = n[1].range; + return new jr( + r.endLineNumber, + r.endColumn, + i.endLineNumber, + i.endColumn - this._charAfterSelection.length + ); + }), + e + ); + })(), + Ll = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + kl = (function () { + function e() {} + return ( + (e.indent = function (e, t, n) { + if (null === t || null === n) return []; + for (var r = [], i = 0, o = n.length; i < o; i++) + r[i] = new Sl(n[i], { + isUnshift: !1, + tabSize: e.tabSize, + indentSize: e.indentSize, + insertSpaces: e.insertSpaces, + useTabStops: e.useTabStops, + }); + return r; + }), + (e.outdent = function (e, t, n) { + for (var r = [], i = 0, o = n.length; i < o; i++) + r[i] = new Sl(n[i], { + isUnshift: !0, + tabSize: e.tabSize, + indentSize: e.indentSize, + insertSpaces: e.insertSpaces, + useTabStops: e.useTabStops, + }); + return r; + }), + (e.shiftIndent = function (e, t, n) { + return ( + (n = n || 1), + Sl.shiftIndent( + t, + t.length + n, + e.tabSize, + e.indentSize, + e.insertSpaces + ) + ); + }), + (e.unshiftIndent = function (e, t, n) { + return ( + (n = n || 1), + Sl.unshiftIndent( + t, + t.length + n, + e.tabSize, + e.indentSize, + e.insertSpaces + ) + ); + }), + (e._distributedPaste = function (e, t, n, r) { + for (var i = [], o = 0, s = n.length; o < s; o++) + i[o] = new ul(n[o], r[o]); + return new il(0, i, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !0, + }); + }), + (e._simplePaste = function (e, t, n, r, i) { + for (var o = [], s = 0, a = n.length; s < a; s++) { + var u = n[s], + l = u.getPosition(); + if ( + (i && r.indexOf('\n') !== r.length - 1 && (i = !1), + i && u.startLineNumber !== u.endLineNumber && (i = !1), + i && + u.startColumn === t.getLineMinColumn(u.startLineNumber) && + u.endColumn === t.getLineMaxColumn(u.startLineNumber) && + (i = !1), + i) + ) { + var c = new Fr(l.lineNumber, 1, l.lineNumber, 1); + o[s] = new ul(c, r); + } else o[s] = new ul(u, r); + } + return new il(0, o, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !0, + }); + }), + (e._distributePasteToCursors = function (e, t, n, r) { + if (n) return null; + if (1 === e.length) return null; + if (r && r.length === e.length) return r; + 10 === t.charCodeAt(t.length - 1) && + (t = t.substr(0, t.length - 1)); + var i = t.split(/\r\n|\r|\n/); + return i.length === e.length ? i : null; + }), + (e.paste = function (e, t, n, r, i, o) { + var s = this._distributePasteToCursors(n, r, i, o); + return s + ? ((n = n.sort(Fr.compareRangesUsingStarts)), + this._distributedPaste(e, t, n, s)) + : this._simplePaste(e, t, n, r, i); + }), + (e._goodIndentForLine = function (t, n, r) { + var i = null, + o = '', + s = t.autoIndent ? ku.getInheritIndentForLine(n, r, !1) : null; + if (s) (i = s.action), (o = s.indentation); + else if (r > 1) { + var a = void 0; + for (a = r - 1; a >= 1; a--) { + if (mn(n.getLineContent(a)) >= 0) break; + } + if (a < 1) return null; + var u = n.getLineMaxColumn(a), + l = ku.getEnterAction(n, new Fr(a, u, a, u)); + l && + ((o = l.indentation), + (i = l.enterAction) && (o += i.appendText)); + } + return ( + i && + (i === Xa.Indent && (o = e.shiftIndent(t, o)), + i === Xa.Outdent && (o = e.unshiftIndent(t, o)), + (o = t.normalizeIndentation(o))), + o || null + ); + }), + (e._replaceJumpToNextIndent = function (e, t, n, r) { + var i = '', + o = n.getStartPosition(); + if (e.insertSpaces) + for ( + var s = ol.visibleColumnFromColumn2(e, t, o), + a = e.indentSize, + u = a - (s % a), + l = 0; + l < u; + l++ + ) + i += ' '; + else i = '\t'; + return new ul(n, i, r); + }), + (e.tab = function (e, t, n) { + for (var r = [], i = 0, o = n.length; i < o; i++) { + var s = n[i]; + if (s.isEmpty()) { + var a = t.getLineContent(s.startLineNumber); + if (/^\s*$/.test(a) && t.isCheapToTokenize(s.startLineNumber)) { + var u = this._goodIndentForLine(e, t, s.startLineNumber); + u = u || '\t'; + var l = e.normalizeIndentation(u); + if (!cn(a, l)) { + r[i] = new ul( + new Fr( + s.startLineNumber, + 1, + s.startLineNumber, + a.length + 1 + ), + l, + !0 + ); + continue; + } + } + r[i] = this._replaceJumpToNextIndent(e, t, s, !0); + } else { + if (s.startLineNumber === s.endLineNumber) { + var c = t.getLineMaxColumn(s.startLineNumber); + if (1 !== s.startColumn || s.endColumn !== c) { + r[i] = this._replaceJumpToNextIndent(e, t, s, !1); + continue; + } + } + r[i] = new Sl(s, { + isUnshift: !1, + tabSize: e.tabSize, + indentSize: e.indentSize, + insertSpaces: e.insertSpaces, + useTabStops: e.useTabStops, + }); + } + } + return r; + }), + (e.replacePreviousChar = function (e, t, n, r, i, o) { + for (var s = [], a = 0, u = r.length; a < u; a++) { + var l = r[a]; + if (l.isEmpty()) { + var c = l.getPosition(), + d = Math.max(1, c.column - o), + h = new Fr(c.lineNumber, d, c.lineNumber, c.column); + s[a] = new ul(h, i); + } else s[a] = null; + } + return new il(1, s, { + shouldPushStackElementBefore: 1 !== e, + shouldPushStackElementAfter: !1, + }); + }), + (e._typeCommand = function (e, t, n) { + return n ? new ll(e, t, !0) : new ul(e, t, !0); + }), + (e._enter = function (t, n, r, i) { + if (!n.isCheapToTokenize(i.getStartPosition().lineNumber)) { + var o = gn(n.getLineContent(i.startLineNumber)).substring( + 0, + i.startColumn - 1 + ); + return e._typeCommand(i, '\n' + t.normalizeIndentation(o), r); + } + var s = ku.getEnterAction(n, i); + if (s) { + var a = s.enterAction, + u = s.indentation; + if (a.indentAction === Xa.None) + return e._typeCommand( + i, + '\n' + t.normalizeIndentation(u + a.appendText), + r + ); + if (a.indentAction === Xa.Indent) + return e._typeCommand( + i, + '\n' + t.normalizeIndentation(u + a.appendText), + r + ); + if (a.indentAction === Xa.IndentOutdent) { + var l = t.normalizeIndentation(u), + c = t.normalizeIndentation(u + a.appendText), + d = '\n' + c + '\n' + l; + return r + ? new ll(i, d, !0) + : new cl(i, d, -1, c.length - l.length, !0); + } + if (a.indentAction === Xa.Outdent) { + var h = e.unshiftIndent(t, u); + return e._typeCommand( + i, + '\n' + t.normalizeIndentation(h + a.appendText), + r + ); + } + } + if (!t.autoIndent) { + var f = gn(n.getLineContent(i.startLineNumber)).substring( + 0, + i.startColumn - 1 + ); + return e._typeCommand(i, '\n' + t.normalizeIndentation(f), r); + } + var p = ku.getIndentForEnter( + n, + i, + { + unshiftIndent: function (n) { + return e.unshiftIndent(t, n); + }, + shiftIndent: function (n) { + return e.shiftIndent(t, n); + }, + normalizeIndentation: function (e) { + return t.normalizeIndentation(e); + }, + }, + t.autoIndent + ), + g = n.getLineContent(i.startLineNumber), + m = gn(g).substring(0, i.startColumn - 1); + if (p) { + var _ = ol.visibleColumnFromColumn2(t, n, i.getEndPosition()), + y = i.endColumn, + v = '\n'; + m !== t.normalizeIndentation(p.beforeEnter) && + ((v = + t.normalizeIndentation(p.beforeEnter) + + g.substring(m.length, i.startColumn - 1) + + '\n'), + (i = new Fr( + i.startLineNumber, + 1, + i.endLineNumber, + i.endColumn + ))); + var b = pn(n.getLineContent(i.endLineNumber)); + if ( + ((i = + b >= 0 + ? i.setEndPosition( + i.endLineNumber, + Math.max(i.endColumn, b + 1) + ) + : i.setEndPosition( + i.endLineNumber, + n.getLineMaxColumn(i.endLineNumber) + )), + r) + ) + return new ll(i, v + t.normalizeIndentation(p.afterEnter), !0); + var w = 0; + return ( + y <= b + 1 && + (t.insertSpaces || (_ = Math.ceil(_ / t.indentSize)), + (w = Math.min( + _ + 1 - t.normalizeIndentation(p.afterEnter).length - 1, + 0 + ))), + new cl(i, v + t.normalizeIndentation(p.afterEnter), 0, w, !0) + ); + } + return e._typeCommand(i, '\n' + t.normalizeIndentation(m), r); + }), + (e._isAutoIndentType = function (e, t, n) { + if (!e.autoIndent) return !1; + for (var r = 0, i = n.length; r < i; r++) + if (!t.isCheapToTokenize(n[r].getEndPosition().lineNumber)) + return !1; + return !0; + }), + (e._runAutoIndentType = function (t, n, r, i) { + var o = ku.getIndentationAtPosition( + n, + r.startLineNumber, + r.startColumn + ), + s = ku.getIndentActionForType(n, r, i, { + shiftIndent: function (n) { + return e.shiftIndent(t, n); + }, + unshiftIndent: function (n) { + return e.unshiftIndent(t, n); + }, + }); + if (null === s) return null; + if (s !== t.normalizeIndentation(o)) { + var a = n.getLineFirstNonWhitespaceColumn(r.startLineNumber); + return 0 === a + ? e._typeCommand( + new Fr(r.startLineNumber, 0, r.endLineNumber, r.endColumn), + t.normalizeIndentation(s) + i, + !1 + ) + : e._typeCommand( + new Fr(r.startLineNumber, 0, r.endLineNumber, r.endColumn), + t.normalizeIndentation(s) + + n + .getLineContent(r.startLineNumber) + .substring(a - 1, r.startColumn - 1) + + i, + !1 + ); + } + return null; + }), + (e._isAutoClosingOvertype = function (e, t, n, r, i) { + if ('never' === e.autoClosingOvertype) return !1; + if (!e.autoClosingPairsClose2.has(i)) return !1; + for (var o = 0, s = n.length; o < s; o++) { + var a = n[o]; + if (!a.isEmpty()) return !1; + var u = a.getPosition(); + if (t.getLineContent(u.lineNumber).charAt(u.column - 1) !== i) + return !1; + if ('auto' === e.autoClosingOvertype) { + for (var l = !1, c = 0, d = r.length; c < d; c++) { + var h = r[c]; + if ( + u.lineNumber === h.startLineNumber && + u.column === h.startColumn + ) { + l = !0; + break; + } + } + if (!l) return !1; + } + } + return !0; + }), + (e._runAutoClosingOvertype = function (e, t, n, r, i) { + for (var o = [], s = 0, a = r.length; s < a; s++) { + var u = r[s].getPosition(), + l = new Fr(u.lineNumber, u.column, u.lineNumber, u.column + 1); + o[s] = new ul(l, i); + } + return new il(1, o, { + shouldPushStackElementBefore: 1 !== e, + shouldPushStackElementAfter: !1, + }); + }), + (e._isBeforeClosingBrace = function (e, t, n) { + var r = e.autoClosingPairsClose2.get(n); + if (!r) return !1; + for (var i = t.open === t.close, o = 0, s = r; o < s.length; o++) { + var a = s[o], + u = a.open === a.close; + if (i || !u) return !0; + } + return !1; + }), + (e._findAutoClosingPairOpen = function (e, t, n, r) { + var i = e.autoClosingPairsOpen2.get(r); + if (!i) return null; + for (var o = null, s = 0, a = i; s < a.length; s++) { + var u = a[s]; + if (null === o || u.open.length > o.open.length) { + for (var l = !0, c = 0, d = n; c < d.length; c++) { + var h = d[c]; + if ( + t.getValueInRange( + new Fr( + h.lineNumber, + h.column - u.open.length + 1, + h.lineNumber, + h.column + ) + ) + + r !== + u.open + ) { + l = !1; + break; + } + } + l && (o = u); + } + } + return o; + }), + (e._isAutoClosingOpenCharType = function (t, n, r, i, o) { + var s = sl(i), + a = s ? t.autoClosingQuotes : t.autoClosingBrackets; + if ('never' === a) return null; + var u = this._findAutoClosingPairOpen( + t, + n, + r.map(function (e) { + return e.getPosition(); + }), + i + ); + if (!u) return null; + for ( + var l = s + ? t.shouldAutoCloseBefore.quote + : t.shouldAutoCloseBefore.bracket, + c = 0, + d = r.length; + c < d; + c++ + ) { + var h = r[c]; + if (!h.isEmpty()) return null; + var f = h.getPosition(), + p = n.getLineContent(f.lineNumber); + if (p.length > f.column - 1) { + var g = p.charAt(f.column - 1); + if (!e._isBeforeClosingBrace(t, u, g) && !l(g)) return null; + } + if (!n.isCheapToTokenize(f.lineNumber)) return null; + if (1 === u.open.length && s && 'always' !== a) { + var m = Lo(t.wordSeparators); + if ( + o && + f.column > 1 && + 0 === m.get(p.charCodeAt(f.column - 2)) + ) + return null; + if ( + !o && + f.column > 2 && + 0 === m.get(p.charCodeAt(f.column - 3)) + ) + return null; + } + n.forceTokenization(f.lineNumber); + var _ = n.getLineTokens(f.lineNumber), + y = !1; + try { + y = ku.shouldAutoClosePair(u, _, o ? f.column : f.column - 1); + } catch (e) { + qe(e); + } + if (!y) return null; + } + return u; + }), + (e._runAutoClosingOpenCharType = function (e, t, n, r, i, o, s) { + for (var a = [], u = 0, l = r.length; u < l; u++) { + var c = r[u]; + a[u] = new Ml(c, i, o, s.close); + } + return new il(1, a, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !1, + }); + }), + (e._shouldSurroundChar = function (e, t) { + return sl(t) + ? 'quotes' === e.autoSurround || + 'languageDefined' === e.autoSurround + : 'brackets' === e.autoSurround || + 'languageDefined' === e.autoSurround; + }), + (e._isSurroundSelectionType = function (t, n, r, i) { + if ( + !e._shouldSurroundChar(t, i) || + !t.surroundingPairs.hasOwnProperty(i) + ) + return !1; + for (var o = sl(i), s = 0, a = r.length; s < a; s++) { + var u = r[s]; + if (u.isEmpty()) return !1; + for ( + var l = !0, c = u.startLineNumber; + c <= u.endLineNumber; + c++ + ) { + var d = n.getLineContent(c), + h = c === u.startLineNumber ? u.startColumn - 1 : 0, + f = c === u.endLineNumber ? u.endColumn - 1 : d.length, + p = d.substring(h, f); + if (/[^ \t]/.test(p)) { + l = !1; + break; + } + } + if (l) return !1; + if ( + o && + u.startLineNumber === u.endLineNumber && + u.startColumn + 1 === u.endColumn + ) + if (sl(n.getValueInRange(u))) return !1; + } + return !0; + }), + (e._runSurroundSelectionType = function (e, t, n, r, i) { + for (var o = [], s = 0, a = r.length; s < a; s++) { + var u = r[s], + l = t.surroundingPairs[i]; + o[s] = new xl(u, i, l); + } + return new il(0, o, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !0, + }); + }), + (e._isTypeInterceptorElectricChar = function (e, t, n) { + return !( + 1 !== n.length || + !t.isCheapToTokenize(n[0].getEndPosition().lineNumber) + ); + }), + (e._typeInterceptorElectricChar = function (e, t, n, r, i) { + if (!t.electricChars.hasOwnProperty(i) || !r.isEmpty()) return null; + var o = r.getPosition(); + n.forceTokenization(o.lineNumber); + var s, + a = n.getLineTokens(o.lineNumber); + try { + s = ku.onElectricCharacter(i, a, o.column); + } catch (e) { + return qe(e), null; + } + if (!s) return null; + if (s.matchOpenBracket) { + var u = + (a.getLineContent() + i).lastIndexOf(s.matchOpenBracket) + 1, + l = n.findMatchingBracketUp(s.matchOpenBracket, { + lineNumber: o.lineNumber, + column: u, + }); + if (l) { + if (l.startLineNumber === o.lineNumber) return null; + var c = gn(n.getLineContent(l.startLineNumber)), + d = t.normalizeIndentation(c), + h = n.getLineContent(o.lineNumber), + f = + n.getLineFirstNonWhitespaceColumn(o.lineNumber) || o.column, + p = d + h.substring(f - 1, o.column - 1) + i, + g = new Fr(o.lineNumber, 1, o.lineNumber, o.column), + m = new ul(g, p); + return new il(1, [m], { + shouldPushStackElementBefore: !1, + shouldPushStackElementAfter: !0, + }); + } + } + return null; + }), + (e.compositionEndWithInterceptors = function (e, t, n, r, i) { + for (var o = null, s = 0, a = r; s < a.length; s++) { + var u = a[s]; + if (!u.isEmpty()) return null; + var l = u.getPosition(), + c = n.getValueInRange( + new Fr(l.lineNumber, l.column - 1, l.lineNumber, l.column) + ); + if (null === o) o = c; + else if (o !== c) return null; + } + if (!o) return null; + if (this._isAutoClosingOvertype(t, n, r, i, o)) { + var d = r.map(function (e) { + return new ul( + new Fr( + e.positionLineNumber, + e.positionColumn, + e.positionLineNumber, + e.positionColumn + 1 + ), + '', + !1 + ); + }); + return new il(1, d, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !1, + }); + } + var h = this._isAutoClosingOpenCharType(t, n, r, o, !1); + return h + ? this._runAutoClosingOpenCharType(e, t, n, r, o, !1, h) + : null; + }), + (e.typeWithInterceptors = function (t, n, r, i, o, s) { + if ('\n' === s) { + for (var a = [], u = 0, l = i.length; u < l; u++) + a[u] = e._enter(n, r, !1, i[u]); + return new il(1, a, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !1, + }); + } + if (this._isAutoIndentType(n, r, i)) { + var c = [], + d = !1; + for (u = 0, l = i.length; u < l; u++) + if (((c[u] = this._runAutoIndentType(n, r, i[u], s)), !c[u])) { + d = !0; + break; + } + if (!d) + return new il(1, c, { + shouldPushStackElementBefore: !0, + shouldPushStackElementAfter: !1, + }); + } + if (this._isAutoClosingOvertype(n, r, i, o, s)) + return this._runAutoClosingOvertype(t, n, r, i, s); + var h = this._isAutoClosingOpenCharType(n, r, i, s, !0); + if (h) + return this._runAutoClosingOpenCharType(t, n, r, i, s, !0, h); + if (this._isSurroundSelectionType(n, r, i, s)) + return this._runSurroundSelectionType(t, n, r, i, s); + if (this._isTypeInterceptorElectricChar(n, r, i)) { + var f = this._typeInterceptorElectricChar(t, n, r, i[0], s); + if (f) return f; + } + var p = []; + for (u = 0, l = i.length; u < l; u++) p[u] = new ul(i[u], s); + var g = 1 !== t; + return ( + ' ' === s && (g = !0), + new il(1, p, { + shouldPushStackElementBefore: g, + shouldPushStackElementAfter: !1, + }) + ); + }), + (e.typeWithoutInterceptors = function (e, t, n, r, i) { + for (var o = [], s = 0, a = r.length; s < a; s++) + o[s] = new ul(r[s], i); + return new il(1, o, { + shouldPushStackElementBefore: 1 !== e, + shouldPushStackElementAfter: !1, + }); + }), + (e.lineInsertBefore = function (e, t, n) { + if (null === t || null === n) return []; + for (var r = [], i = 0, o = n.length; i < o; i++) { + var s = n[i].positionLineNumber; + if (1 === s) r[i] = new ll(new Fr(1, 1, 1, 1), '\n'); + else { + s--; + var a = t.getLineMaxColumn(s); + r[i] = this._enter(e, t, !1, new Fr(s, a, s, a)); + } + } + return r; + }), + (e.lineInsertAfter = function (e, t, n) { + if (null === t || null === n) return []; + for (var r = [], i = 0, o = n.length; i < o; i++) { + var s = n[i].positionLineNumber, + a = t.getLineMaxColumn(s); + r[i] = this._enter(e, t, !1, new Fr(s, a, s, a)); + } + return r; + }), + (e.lineBreakInsert = function (e, t, n) { + for (var r = [], i = 0, o = n.length; i < o; i++) + r[i] = this._enter(e, t, !0, n[i]); + return r; + }), + e + ); + })(), + Ml = (function (e) { + function t(t, n, r, i) { + var o = e.call(this, t, (r ? n : '') + i, 0, -i.length) || this; + return ( + (o._openCharacter = n), + (o._closeCharacter = i), + (o.closeCharacterRange = null), + (o.enclosingRange = null), + o + ); + } + return ( + Ll(t, e), + (t.prototype.computeCursorState = function (t, n) { + var r = n.getInverseEditOperations()[0].range; + return ( + (this.closeCharacterRange = new Fr( + r.startLineNumber, + r.endColumn - this._closeCharacter.length, + r.endLineNumber, + r.endColumn + )), + (this.enclosingRange = new Fr( + r.startLineNumber, + r.endColumn - + this._openCharacter.length - + this._closeCharacter.length, + r.endLineNumber, + r.endColumn + )), + e.prototype.computeCursorState.call(this, t, n) + ); + }), + t + ); + })(cl); + var Dl, + El, + Tl = { + ICodeEditor: 'vs.editor.ICodeEditor', + IDiffEditor: 'vs.editor.IDiffEditor', + }, + Nl = { + ExecuteCommand: 'executeCommand', + ExecuteCommands: 'executeCommands', + Type: 'type', + ReplacePreviousChar: 'replacePreviousChar', + CompositionStart: 'compositionStart', + CompositionEnd: 'compositionEnd', + Paste: 'paste', + Cut: 'cut', + Undo: 'undo', + Redo: 'redo', + }; + ((El = Dl || (Dl = {})).editorTextFocus = new Un('editorTextFocus', !1)), + (El.focus = new Un('editorFocus', !1)), + (El.textInputFocus = new Un('textInputFocus', !1)), + (El.readOnly = new Un('editorReadonly', !1)), + (El.writable = El.readOnly.toNegated()), + (El.hasNonEmptySelection = new Un('editorHasSelection', !1)), + (El.hasOnlyEmptySelection = El.hasNonEmptySelection.toNegated()), + (El.hasMultipleSelections = new Un('editorHasMultipleSelections', !1)), + (El.hasSingleSelection = El.hasMultipleSelections.toNegated()), + (El.tabMovesFocus = new Un('editorTabMovesFocus', !1)), + (El.tabDoesNotMoveFocus = El.tabMovesFocus.toNegated()), + (El.isInEmbeddedEditor = new Un('isInEmbeddedEditor', !1)), + (El.canUndo = new Un('canUndo', !1)), + (El.canRedo = new Un('canRedo', !1)), + (El.languageId = new Un('editorLangId', '')), + (El.hasCompletionItemProvider = new Un( + 'editorHasCompletionItemProvider', + !1 + )), + (El.hasCodeActionsProvider = new Un('editorHasCodeActionsProvider', !1)), + (El.hasCodeLensProvider = new Un('editorHasCodeLensProvider', !1)), + (El.hasDefinitionProvider = new Un('editorHasDefinitionProvider', !1)), + (El.hasDeclarationProvider = new Un('editorHasDeclarationProvider', !1)), + (El.hasImplementationProvider = new Un( + 'editorHasImplementationProvider', + !1 + )), + (El.hasTypeDefinitionProvider = new Un( + 'editorHasTypeDefinitionProvider', + !1 + )), + (El.hasHoverProvider = new Un('editorHasHoverProvider', !1)), + (El.hasDocumentHighlightProvider = new Un( + 'editorHasDocumentHighlightProvider', + !1 + )), + (El.hasDocumentSymbolProvider = new Un( + 'editorHasDocumentSymbolProvider', + !1 + )), + (El.hasReferenceProvider = new Un('editorHasReferenceProvider', !1)), + (El.hasRenameProvider = new Un('editorHasRenameProvider', !1)), + (El.hasSignatureHelpProvider = new Un( + 'editorHasSignatureHelpProvider', + !1 + )), + (El.hasDocumentFormattingProvider = new Un( + 'editorHasDocumentFormattingProvider', + !1 + )), + (El.hasDocumentSelectionFormattingProvider = new Un( + 'editorHasDocumentSelectionFormattingProvider', + !1 + )), + (El.hasMultipleDocumentFormattingProvider = new Un( + 'editorHasMultipleDocumentFormattingProvider', + !1 + )), + (El.hasMultipleDocumentSelectionFormattingProvider = new Un( + 'editorHasMultipleDocumentSelectionFormattingProvider', + !1 + )); + var Ol, + Al, + Il, + Pl, + Rl, + Fl, + Yl, + jl, + Bl = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Wl = 0, + Hl = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + Bl(t, e), + (t.prototype.runEditorCommand = function (e, t, n) { + var r = t._getCursors(); + r && this.runCoreEditorCommand(r, n || {}); + }), + t + ); + })(Or); + function Vl(e) { + e.register(); + } + ((Al = Ol || (Ol = {})).description = { + description: 'Scroll editor in the given direction', + args: [ + { + name: 'Editor scroll argument object', + description: + "Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t", + constraint: function (e) { + if (!Ne(e)) return !1; + var t = e; + return !( + !Te(t.to) || + (!Ie(t.by) && !Te(t.by)) || + (!Ie(t.value) && !Oe(t.value)) || + (!Ie(t.revealCursor) && !Ae(t.revealCursor)) + ); + }, + schema: { + type: 'object', + required: ['to'], + properties: { + to: { type: 'string', enum: ['up', 'down'] }, + by: { + type: 'string', + enum: ['line', 'wrappedLine', 'page', 'halfPage'], + }, + value: { type: 'number', default: 1 }, + revealCursor: { type: 'boolean' }, + }, + }, + }, + ], + }), + (Al.RawDirection = { Up: 'up', Down: 'down' }), + (Al.RawUnit = { + Line: 'line', + WrappedLine: 'wrappedLine', + Page: 'page', + HalfPage: 'halfPage', + }), + (Al.parse = function (e) { + var t, n; + switch (e.to) { + case Al.RawDirection.Up: + t = 1; + break; + case Al.RawDirection.Down: + t = 2; + break; + default: + return null; + } + switch (e.by) { + case Al.RawUnit.Line: + n = 1; + break; + case Al.RawUnit.WrappedLine: + n = 2; + break; + case Al.RawUnit.Page: + n = 3; + break; + case Al.RawUnit.HalfPage: + n = 4; + break; + default: + n = 2; + } + return { + direction: t, + unit: n, + value: Math.floor(e.value || 1), + revealCursor: !!e.revealCursor, + select: !!e.select, + }; + }), + ((Pl = Il || (Il = {})).description = { + description: 'Reveal the given line at the given logical position', + args: [ + { + name: 'Reveal line argument object', + description: + "Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t", + constraint: function (e) { + if (!Ne(e)) return !1; + var t = e; + return !(!Oe(t.lineNumber) || (!Ie(t.at) && !Te(t.at))); + }, + schema: { + type: 'object', + required: ['lineNumber'], + properties: { + lineNumber: { type: 'number' }, + at: { type: 'string', enum: ['top', 'center', 'bottom'] }, + }, + }, + }, + ], + }), + (Pl.RawAtArgument = { Top: 'top', Center: 'center', Bottom: 'bottom' }), + (function (e) { + var t = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + bl.moveTo( + e.context, + e.getPrimaryCursor(), + this._inSelectionMode, + t.position, + t.viewPosition + ), + ]), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.MoveTo = Ir( + new t({ id: '_moveTo', inSelectionMode: !1, precondition: void 0 }) + )), + (e.MoveToSelect = Ir( + new t({ + id: '_moveToSelect', + inSelectionMode: !0, + precondition: void 0, + }) + )); + var n = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(); + var n = this._getColumnSelectResult( + e.context, + e.getPrimaryCursor(), + e.getColumnSelectData(), + t + ); + e.setStates( + t.source, + 3, + n.viewStates.map(function (e) { + return rl.fromViewState(e); + }) + ), + e.setColumnSelectData({ + isReal: !0, + fromViewLineNumber: n.fromLineNumber, + fromViewVisualColumn: n.fromVisualColumn, + toViewLineNumber: n.toLineNumber, + toViewVisualColumn: n.toVisualColumn, + }), + e.reveal(!0, n.reversed ? 1 : 2, 0); + }), + t + ); + })(Hl); + (e.ColumnSelect = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { id: 'columnSelect', precondition: void 0 }) || + this + ); + } + return ( + Bl(t, e), + (t.prototype._getColumnSelectResult = function (e, t, n, r) { + var i = e.model.validatePosition(r.position), + o = e.validateViewPosition( + new xt(r.viewPosition.lineNumber, r.viewPosition.column), + i + ), + s = n.fromViewLineNumber, + a = n.fromViewVisualColumn; + return ( + !n.isReal && + r.setAnchorIfNotSet && + ((s = o.lineNumber), (a = r.mouseColumn - 1)), + al.columnSelect( + e.config, + e.viewModel, + s, + a, + o.lineNumber, + r.mouseColumn - 1 + ) + ); + }), + t + ); + })(n))() + )), + (e.CursorColumnSelectLeft = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'cursorColumnSelectLeft', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3599, + linux: { primary: 0 }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype._getColumnSelectResult = function (e, t, n, r) { + return al.columnSelectLeft(e.config, e.viewModel, n); + }), + t + ); + })(n))() + )), + (e.CursorColumnSelectRight = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'cursorColumnSelectRight', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3601, + linux: { primary: 0 }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype._getColumnSelectResult = function (e, t, n, r) { + return al.columnSelectRight(e.config, e.viewModel, n); + }), + t + ); + })(n))() + )); + var r = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._isPaged = t.isPaged), n; + } + return ( + Bl(t, e), + (t.prototype._getColumnSelectResult = function (e, t, n, r) { + return al.columnSelectUp(e.config, e.viewModel, n, this._isPaged); + }), + t + ); + })(n); + (e.CursorColumnSelectUp = Ir( + new r({ + isPaged: !1, + id: 'cursorColumnSelectUp', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3600, + linux: { primary: 0 }, + }, + }) + )), + (e.CursorColumnSelectPageUp = Ir( + new r({ + isPaged: !0, + id: 'cursorColumnSelectPageUp', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3595, + linux: { primary: 0 }, + }, + }) + )); + var i = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._isPaged = t.isPaged), n; + } + return ( + Bl(t, e), + (t.prototype._getColumnSelectResult = function (e, t, n, r) { + return al.columnSelectDown( + e.config, + e.viewModel, + n, + this._isPaged + ); + }), + t + ); + })(n); + (e.CursorColumnSelectDown = Ir( + new i({ + isPaged: !1, + id: 'cursorColumnSelectDown', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3602, + linux: { primary: 0 }, + }, + }) + )), + (e.CursorColumnSelectPageDown = Ir( + new i({ + isPaged: !0, + id: 'cursorColumnSelectPageDown', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3596, + linux: { primary: 0 }, + }, + }) + )); + var o = (function (e) { + function t() { + return ( + e.call(this, { + id: 'cursorMove', + precondition: void 0, + description: yl.description, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = yl.parse(t); + n && this._runCursorMove(e, t.source, n); + }), + (t.prototype._runCursorMove = function (e, t, n) { + e.context.model.pushStackElement(), + e.setStates(t, 3, bl.move(e.context, e.getAll(), n)), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.CursorMoveImpl = o), (e.CursorMove = Ir(new o())); + var s = (function (t) { + function n(e) { + var n = t.call(this, e) || this; + return (n._staticArgs = e.args), n; + } + return ( + Bl(n, t), + (n.prototype.runCoreEditorCommand = function (t, n) { + var r = this._staticArgs; + -1 === this._staticArgs.value && + (r = { + direction: this._staticArgs.direction, + unit: this._staticArgs.unit, + select: this._staticArgs.select, + value: t.context.config.pageSize, + }), + e.CursorMove._runCursorMove(t, n.source, r); + }), + n + ); + })(Hl); + (e.CursorLeft = Ir( + new s({ + args: { direction: 0, unit: 0, select: !1, value: 1 }, + id: 'cursorLeft', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 15, + mac: { primary: 15, secondary: [288] }, + }, + }) + )), + (e.CursorLeftSelect = Ir( + new s({ + args: { direction: 0, unit: 0, select: !0, value: 1 }, + id: 'cursorLeftSelect', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 1039 }, + }) + )), + (e.CursorRight = Ir( + new s({ + args: { direction: 1, unit: 0, select: !1, value: 1 }, + id: 'cursorRight', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 17, + mac: { primary: 17, secondary: [292] }, + }, + }) + )), + (e.CursorRightSelect = Ir( + new s({ + args: { direction: 1, unit: 0, select: !0, value: 1 }, + id: 'cursorRightSelect', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 1041 }, + }) + )), + (e.CursorUp = Ir( + new s({ + args: { direction: 2, unit: 2, select: !1, value: 1 }, + id: 'cursorUp', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 16, + mac: { primary: 16, secondary: [302] }, + }, + }) + )), + (e.CursorUpSelect = Ir( + new s({ + args: { direction: 2, unit: 2, select: !0, value: 1 }, + id: 'cursorUpSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 1040, + secondary: [3088], + mac: { primary: 1040 }, + linux: { primary: 1040 }, + }, + }) + )), + (e.CursorPageUp = Ir( + new s({ + args: { direction: 2, unit: 2, select: !1, value: -1 }, + id: 'cursorPageUp', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 11 }, + }) + )), + (e.CursorPageUpSelect = Ir( + new s({ + args: { direction: 2, unit: 2, select: !0, value: -1 }, + id: 'cursorPageUpSelect', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 1035 }, + }) + )), + (e.CursorDown = Ir( + new s({ + args: { direction: 3, unit: 2, select: !1, value: 1 }, + id: 'cursorDown', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 18, + mac: { primary: 18, secondary: [300] }, + }, + }) + )), + (e.CursorDownSelect = Ir( + new s({ + args: { direction: 3, unit: 2, select: !0, value: 1 }, + id: 'cursorDownSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 1042, + secondary: [3090], + mac: { primary: 1042 }, + linux: { primary: 1042 }, + }, + }) + )), + (e.CursorPageDown = Ir( + new s({ + args: { direction: 3, unit: 2, select: !1, value: -1 }, + id: 'cursorPageDown', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 12 }, + }) + )), + (e.CursorPageDownSelect = Ir( + new s({ + args: { direction: 3, unit: 2, select: !0, value: -1 }, + id: 'cursorPageDownSelect', + precondition: void 0, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 1036 }, + }) + )), + (e.CreateCursor = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { id: 'createCursor', precondition: void 0 }) || + this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n, + r = e.context; + n = t.wholeLine + ? bl.line( + r, + e.getPrimaryCursor(), + !1, + t.position, + t.viewPosition + ) + : bl.moveTo( + r, + e.getPrimaryCursor(), + !1, + t.position, + t.viewPosition + ); + var i = e.getAll(); + if (i.length > 1) + for ( + var o = n.modelState ? n.modelState.position : null, + s = n.viewState ? n.viewState.position : null, + a = 0, + u = i.length; + a < u; + a++ + ) { + var l = i[a]; + if ( + (!o || l.modelState.selection.containsPosition(o)) && + (!s || l.viewState.selection.containsPosition(s)) + ) + return ( + i.splice(a, 1), + e.context.model.pushStackElement(), + void e.setStates(t.source, 3, i) + ); + } + i.push(n), + e.context.model.pushStackElement(), + e.setStates(t.source, 3, i); + }), + t + ); + })(Hl))() + )), + (e.LastCursorMoveToSelect = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: '_lastCursorMoveToSelect', + precondition: void 0, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = e.context, + r = e.getLastAddedCursorIndex(), + i = e.getAll(), + o = i.slice(0); + (o[r] = bl.moveTo(n, i[r], !0, t.position, t.viewPosition)), + e.context.model.pushStackElement(), + e.setStates(t.source, 3, o); + }), + t + ); + })(Hl))() + )); + var a = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates( + t.source, + 3, + bl.moveToBeginningOfLine( + e.context, + e.getAll(), + this._inSelectionMode + ) + ), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.CursorHome = Ir( + new a({ + inSelectionMode: !1, + id: 'cursorHome', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 14, + mac: { primary: 14, secondary: [2063] }, + }, + }) + )), + (e.CursorHomeSelect = Ir( + new a({ + inSelectionMode: !0, + id: 'cursorHomeSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 1038, + mac: { primary: 1038, secondary: [3087] }, + }, + }) + )), + (e.CursorLineStart = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'cursorLineStart', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 0, + mac: { primary: 287 }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, this._exec(e.context, e.getAll())), + e.reveal(!0, 0, 0); + }), + (t.prototype._exec = function (e, t) { + for (var n = [], r = 0, i = t.length; r < i; r++) { + var o = t[r], + s = o.modelState.position.lineNumber; + n[r] = rl.fromModelState(o.modelState.move(!1, s, 1, 0)); + } + return n; + }), + t + ); + })(Hl))() + )); + var u = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates( + t.source, + 3, + bl.moveToEndOfLine( + e.context, + e.getAll(), + this._inSelectionMode + ) + ), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.CursorEnd = Ir( + new u({ + inSelectionMode: !1, + id: 'cursorEnd', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 13, + mac: { primary: 13, secondary: [2065] }, + }, + }) + )), + (e.CursorEndSelect = Ir( + new u({ + inSelectionMode: !0, + id: 'cursorEndSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 1037, + mac: { primary: 1037, secondary: [3089] }, + }, + }) + )), + (e.CursorLineEnd = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'cursorLineEnd', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 0, + mac: { primary: 291 }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, this._exec(e.context, e.getAll())), + e.reveal(!0, 0, 0); + }), + (t.prototype._exec = function (e, t) { + for (var n = [], r = 0, i = t.length; r < i; r++) { + var o = t[r], + s = o.modelState.position.lineNumber, + a = e.model.getLineMaxColumn(s); + n[r] = rl.fromModelState(o.modelState.move(!1, s, a, 0)); + } + return n; + }), + t + ); + })(Hl))() + )); + var l = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates( + t.source, + 3, + bl.moveToBeginningOfBuffer( + e.context, + e.getAll(), + this._inSelectionMode + ) + ), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.CursorTop = Ir( + new l({ + inSelectionMode: !1, + id: 'cursorTop', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2062, + mac: { primary: 2064 }, + }, + }) + )), + (e.CursorTopSelect = Ir( + new l({ + inSelectionMode: !0, + id: 'cursorTopSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3086, + mac: { primary: 3088 }, + }, + }) + )); + var c = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates( + t.source, + 3, + bl.moveToEndOfBuffer( + e.context, + e.getAll(), + this._inSelectionMode + ) + ), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.CursorBottom = Ir( + new c({ + inSelectionMode: !1, + id: 'cursorBottom', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2061, + mac: { primary: 2066 }, + }, + }) + )), + (e.CursorBottomSelect = Ir( + new c({ + inSelectionMode: !0, + id: 'cursorBottomSelect', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 3085, + mac: { primary: 3090 }, + }, + }) + )); + var d = (function (e) { + function t() { + return ( + e.call(this, { + id: 'editorScroll', + precondition: void 0, + description: Ol.description, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = Ol.parse(t); + n && this._runEditorScroll(e, t.source, n); + }), + (t.prototype._runEditorScroll = function (e, t, n) { + var r = this._computeDesiredScrollTop(e.context, n); + if (n.revealCursor) { + var i = e.context.getCompletelyVisibleViewRangeAtScrollTop(r); + e.setStates(t, 3, [ + bl.findPositionInViewportIfOutside( + e.context, + e.getPrimaryCursor(), + i, + n.select + ), + ]); + } + e.scrollTo(r); + }), + (t.prototype._computeDesiredScrollTop = function (e, t) { + if (1 === t.unit) { + var n = e.getCompletelyVisibleModelRange(), + r = void 0; + r = + 1 === t.direction + ? Math.max(1, n.startLineNumber - t.value) + : Math.min( + e.model.getLineCount(), + n.startLineNumber + t.value + ); + var i = e.convertModelPositionToViewPosition(new xt(r, 1)); + return e.getVerticalOffsetForViewLine(i.lineNumber); + } + var o; + o = + 3 === t.unit + ? e.config.pageSize * t.value + : 4 === t.unit + ? Math.round(e.config.pageSize / 2) * t.value + : t.value; + var s = (1 === t.direction ? -1 : 1) * o; + return e.getCurrentScrollTop() + s * e.config.lineHeight; + }), + t + ); + })(Hl); + (e.EditorScrollImpl = d), + (e.EditorScroll = Ir(new d())), + (e.ScrollLineUp = Ir( + new ((function (t) { + function n() { + return ( + t.call(this, { + id: 'scrollLineUp', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2064, + mac: { primary: 267 }, + }, + }) || this + ); + } + return ( + Bl(n, t), + (n.prototype.runCoreEditorCommand = function (t, n) { + e.EditorScroll._runEditorScroll(t, n.source, { + direction: 1, + unit: 2, + value: 1, + revealCursor: !1, + select: !1, + }); + }), + n + ); + })(Hl))() + )), + (e.ScrollPageUp = Ir( + new ((function (t) { + function n() { + return ( + t.call(this, { + id: 'scrollPageUp', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2059, + win: { primary: 523 }, + linux: { primary: 523 }, + }, + }) || this + ); + } + return ( + Bl(n, t), + (n.prototype.runCoreEditorCommand = function (t, n) { + e.EditorScroll._runEditorScroll(t, n.source, { + direction: 1, + unit: 3, + value: 1, + revealCursor: !1, + select: !1, + }); + }), + n + ); + })(Hl))() + )), + (e.ScrollLineDown = Ir( + new ((function (t) { + function n() { + return ( + t.call(this, { + id: 'scrollLineDown', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2066, + mac: { primary: 268 }, + }, + }) || this + ); + } + return ( + Bl(n, t), + (n.prototype.runCoreEditorCommand = function (t, n) { + e.EditorScroll._runEditorScroll(t, n.source, { + direction: 2, + unit: 2, + value: 1, + revealCursor: !1, + select: !1, + }); + }), + n + ); + })(Hl))() + )), + (e.ScrollPageDown = Ir( + new ((function (t) { + function n() { + return ( + t.call(this, { + id: 'scrollPageDown', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2060, + win: { primary: 524 }, + linux: { primary: 524 }, + }, + }) || this + ); + } + return ( + Bl(n, t), + (n.prototype.runCoreEditorCommand = function (t, n) { + e.EditorScroll._runEditorScroll(t, n.source, { + direction: 2, + unit: 3, + value: 1, + revealCursor: !1, + select: !1, + }); + }), + n + ); + })(Hl))() + )); + var h = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + bl.word( + e.context, + e.getPrimaryCursor(), + this._inSelectionMode, + t.position + ), + ]), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl); + (e.WordSelect = Ir( + new h({ + inSelectionMode: !1, + id: '_wordSelect', + precondition: void 0, + }) + )), + (e.WordSelectDrag = Ir( + new h({ + inSelectionMode: !0, + id: '_wordSelectDrag', + precondition: void 0, + }) + )), + (e.LastCursorWordSelect = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'lastCursorWordSelect', + precondition: void 0, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = e.context, + r = e.getLastAddedCursorIndex(), + i = e.getAll(), + o = i.slice(0), + s = i[r]; + (o[r] = bl.word( + n, + s, + s.modelState.hasSelection(), + t.position + )), + n.model.pushStackElement(), + e.setStates(t.source, 3, o); + }), + t + ); + })(Hl))() + )); + var f = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + bl.line( + e.context, + e.getPrimaryCursor(), + this._inSelectionMode, + t.position, + t.viewPosition + ), + ]), + e.reveal(!1, 0, 0); + }), + t + ); + })(Hl); + (e.LineSelect = Ir( + new f({ + inSelectionMode: !1, + id: '_lineSelect', + precondition: void 0, + }) + )), + (e.LineSelectDrag = Ir( + new f({ + inSelectionMode: !0, + id: '_lineSelectDrag', + precondition: void 0, + }) + )); + var p = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n._inSelectionMode = t.inSelectionMode), n; + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = e.getLastAddedCursorIndex(), + r = e.getAll(), + i = r.slice(0); + (i[n] = bl.line( + e.context, + r[n], + this._inSelectionMode, + t.position, + t.viewPosition + )), + e.context.model.pushStackElement(), + e.setStates(t.source, 3, i); + }), + t + ); + })(Hl); + (e.LastCursorLineSelect = Ir( + new p({ + inSelectionMode: !1, + id: 'lastCursorLineSelect', + precondition: void 0, + }) + )), + (e.LastCursorLineSelectDrag = Ir( + new p({ + inSelectionMode: !0, + id: 'lastCursorLineSelectDrag', + precondition: void 0, + }) + )), + (e.ExpandLineSelection = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'expandLineSelection', + precondition: void 0, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2090, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates( + t.source, + 3, + bl.expandLineSelection(e.context, e.getAll()) + ), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl))() + )), + (e.CancelSelection = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'cancelSelection', + precondition: Dl.hasNonEmptySelection, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 9, + secondary: [1033], + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + bl.cancelSelection(e.context, e.getPrimaryCursor()), + ]), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl))() + )), + (e.RemoveSecondaryCursors = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'removeSecondaryCursors', + precondition: Dl.hasMultipleSelections, + kbOpts: { + weight: Wl + 1, + kbExpr: Dl.textInputFocus, + primary: 9, + secondary: [1033], + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [e.getPrimaryCursor()]), + e.reveal(!0, 0, 0); + }), + t + ); + })(Hl))() + )), + (e.RevealLine = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'revealLine', + precondition: void 0, + description: Il.description, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + var n = t, + r = (n.lineNumber || 0) + 1; + r < 1 && (r = 1); + var i = e.context.model.getLineCount(); + r > i && (r = i); + var o = new Fr(r, 1, r, e.context.model.getLineMaxColumn(r)), + s = 0; + if (n.at) + switch (n.at) { + case Il.RawAtArgument.Top: + s = 3; + break; + case Il.RawAtArgument.Center: + s = 1; + break; + case Il.RawAtArgument.Bottom: + s = 4; + } + var a = e.context.convertModelRangeToViewRange(o); + e.revealRange(!1, a, s, 0); + }), + t + ); + })(Hl))() + )), + (e.SelectAll = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { id: 'selectAll', precondition: void 0 }) || + this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + bl.selectAll(e.context, e.getPrimaryCursor()), + ]); + }), + t + ); + })(Hl))() + )), + (e.SetSelection = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { id: 'setSelection', precondition: void 0 }) || + this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditorCommand = function (e, t) { + e.context.model.pushStackElement(), + e.setStates(t.source, 3, [ + rl.fromModelSelection(t.selection), + ]); + }), + t + ); + })(Hl))() + )); + })(Rl || (Rl = {})), + (Yl = Fl || (Fl = {})), + (jl = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + Bl(t, e), + (t.prototype.runEditorCommand = function (e, t, n) { + var r = t._getCursors(); + r && this.runCoreEditingCommand(t, r, n || {}); + }), + t + ); + })(Or)), + (Yl.CoreEditingCommand = jl), + (Yl.LineBreakInsert = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'lineBreakInsert', + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 0, + mac: { primary: 301 }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditingCommand = function (e, t, n) { + e.pushUndoStop(), + e.executeCommands( + this.id, + kl.lineBreakInsert( + t.context.config, + t.context.model, + t.getAll().map(function (e) { + return e.modelState.selection; + }) + ) + ); + }), + t + ); + })(jl))() + )), + (Yl.Outdent = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'outdent', + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Pn.and(Dl.editorTextFocus, Dl.tabDoesNotMoveFocus), + primary: 1026, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditingCommand = function (e, t, n) { + e.pushUndoStop(), + e.executeCommands( + this.id, + kl.outdent( + t.context.config, + t.context.model, + t.getAll().map(function (e) { + return e.modelState.selection; + }) + ) + ), + e.pushUndoStop(); + }), + t + ); + })(jl))() + )), + (Yl.Tab = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'tab', + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Pn.and(Dl.editorTextFocus, Dl.tabDoesNotMoveFocus), + primary: 2, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditingCommand = function (e, t, n) { + e.pushUndoStop(), + e.executeCommands( + this.id, + kl.tab( + t.context.config, + t.context.model, + t.getAll().map(function (e) { + return e.modelState.selection; + }) + ) + ), + e.pushUndoStop(); + }), + t + ); + })(jl))() + )), + (Yl.DeleteLeft = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'deleteLeft', + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 1, + secondary: [1025], + mac: { primary: 1, secondary: [1025, 294, 257] }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditingCommand = function (e, t, n) { + var r = pl.deleteLeft( + t.getPrevEditOperationType(), + t.context.config, + t.context.model, + t.getAll().map(function (e) { + return e.modelState.selection; + }) + ), + i = r[0], + o = r[1]; + i && e.pushUndoStop(), + e.executeCommands(this.id, o), + t.setPrevEditOperationType(2); + }), + t + ); + })(jl))() + )), + (Yl.DeleteRight = Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'deleteRight', + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 20, + mac: { primary: 20, secondary: [290, 276] }, + }, + }) || this + ); + } + return ( + Bl(t, e), + (t.prototype.runCoreEditingCommand = function (e, t, n) { + var r = pl.deleteRight( + t.getPrevEditOperationType(), + t.context.config, + t.context.model, + t.getAll().map(function (e) { + return e.modelState.selection; + }) + ), + i = r[0], + o = r[1]; + i && e.pushUndoStop(), + e.executeCommands(this.id, o), + t.setPrevEditOperationType(3); + }), + t + ); + })(jl))() + )); + var zl = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._editorHandler = t.editorHandler), + (n._inputHandler = t.inputHandler), + n + ); + } + return ( + Bl(t, e), + (t.prototype.runCommand = function (e, t) { + var n = e.get(St).getFocusedCodeEditor(); + if (n && n.hasTextFocus()) return this._runEditorHandler(e, n, t); + var r = document.activeElement; + if ( + !( + r && ['input', 'textarea'].indexOf(r.tagName.toLowerCase()) >= 0 + ) + ) { + var i = e.get(St).getActiveCodeEditor(); + return i ? (i.focus(), this._runEditorHandler(e, i, t)) : void 0; + } + document.execCommand(this._inputHandler); + }), + (t.prototype._runEditorHandler = function (e, t, n) { + var r = this._editorHandler; + 'string' == typeof r + ? t.trigger('keyboard', r, n) + : (((n = n || {}).source = 'keyboard'), + r.runEditorCommand(e, t, n)); + }), + t + ); + })(Nr), + Ul = (function (e) { + function t(t, n, r) { + var i = + e.call(this, { id: t, precondition: void 0, description: r }) || + this; + return (i._handlerId = n), i; + } + return ( + Bl(t, e), + (t.prototype.runCommand = function (e, t) { + var n = e.get(St).getFocusedCodeEditor(); + n && n.trigger('keyboard', this._handlerId, t); + }), + t + ); + })(Nr); + function ql(e, t) { + Vl(new Ul('default:' + e, e)), Vl(new Ul(e, e, t)); + } + Vl( + new zl({ + editorHandler: Rl.SelectAll, + inputHandler: 'selectAll', + id: 'editor.action.selectAll', + precondition: Dl.textInputFocus, + kbOpts: { weight: Wl, kbExpr: null, primary: 2079 }, + menubarOpts: { + menuId: 22, + group: '1_basic', + title: De( + { key: 'miSelectAll', comment: ['&& denotes a mnemonic'] }, + '&&Select All' + ), + order: 1, + }, + }) + ), + Vl( + new zl({ + editorHandler: Nl.Undo, + inputHandler: 'undo', + id: Nl.Undo, + precondition: Dl.writable, + kbOpts: { weight: Wl, kbExpr: Dl.textInputFocus, primary: 2104 }, + menubarOpts: { + menuId: 14, + group: '1_do', + title: De( + { key: 'miUndo', comment: ['&& denotes a mnemonic'] }, + '&&Undo' + ), + order: 1, + }, + }) + ), + Vl(new Ul('default:' + Nl.Undo, Nl.Undo)), + Vl( + new zl({ + editorHandler: Nl.Redo, + inputHandler: 'redo', + id: Nl.Redo, + precondition: Dl.writable, + kbOpts: { + weight: Wl, + kbExpr: Dl.textInputFocus, + primary: 2103, + secondary: [3128], + mac: { primary: 3128 }, + }, + menubarOpts: { + menuId: 14, + group: '1_do', + title: De( + { key: 'miRedo', comment: ['&& denotes a mnemonic'] }, + '&&Redo' + ), + order: 2, + }, + }) + ), + Vl(new Ul('default:' + Nl.Redo, Nl.Redo)), + ql(Nl.Type, { + description: 'Type', + args: [ + { + name: 'args', + schema: { + type: 'object', + required: ['text'], + properties: { text: { type: 'string' } }, + }, + }, + ], + }), + ql(Nl.ReplacePreviousChar), + ql(Nl.CompositionStart), + ql(Nl.CompositionEnd), + ql(Nl.Paste), + ql(Nl.Cut); + var Kl = 'base.contributions.json'; + var Gl = new ((function () { + function e() { + (this._onDidChangeSchema = new Gt()), (this.schemasById = {}); + } + return ( + (e.prototype.registerSchema = function (e, t) { + var n; + (this.schemasById[ + ((n = e), + n.length > 0 && '#' === n.charAt(n.length - 1) + ? n.substring(0, n.length - 1) + : n) + ] = t), + this._onDidChangeSchema.fire(e); + }), + (e.prototype.notifySchemaChanged = function (e) { + this._onDidChangeSchema.fire(e); + }), + e + ); + })())(); + Lr.add(Kl, Gl); + var $l = 'base.contributions.colors', + Zl = new ((function () { + function e() { + (this._onDidChangeSchema = new Gt()), + (this.onDidChangeSchema = this._onDidChangeSchema.event), + (this.colorSchema = { type: 'object', properties: {} }), + (this.colorReferenceSchema = { + type: 'string', + enum: [], + enumDescriptions: [], + }), + (this.colorsById = {}); + } + return ( + (e.prototype.registerColor = function (e, t, n, r, i) { + void 0 === r && (r = !1); + var o = { + id: e, + description: n, + defaults: t, + needsTransparency: r, + deprecationMessage: i, + }; + this.colorsById[e] = o; + var s = { + type: 'string', + description: n, + format: 'color-hex', + default: '#ff0000', + }; + return ( + i && (s.deprecationMessage = i), + (this.colorSchema.properties[e] = s), + this.colorReferenceSchema.enum.push(e), + this.colorReferenceSchema.enumDescriptions.push(n), + this._onDidChangeSchema.fire(), + e + ); + }), + (e.prototype.resolveDefaultColor = function (e, t) { + var n = this.colorsById[e]; + if (n && n.defaults) return Td(n.defaults[t.type], t); + }), + (e.prototype.getColorSchema = function () { + return this.colorSchema; + }), + (e.prototype.toString = function () { + var e = this; + return Object.keys(this.colorsById) + .sort(function (e, t) { + var n = -1 === e.indexOf('.') ? 0 : 1, + r = -1 === t.indexOf('.') ? 0 : 1; + return n !== r ? n - r : e.localeCompare(t); + }) + .map(function (t) { + return '- `' + t + '`: ' + e.colorsById[t].description; + }) + .join('\n'); + }), + e + ); + })())(); + function Xl(e, t, n, r, i) { + return Zl.registerColor(e, t, n, r, i); + } + Lr.add($l, Zl); + var Jl, + Ql, + ec = Xl( + 'foreground', + { dark: '#CCCCCC', light: '#616161', hc: '#FFFFFF' }, + De( + 'foreground', + 'Overall foreground color. This color is only used if not overridden by a component.' + ) + ), + tc = Xl( + 'errorForeground', + { dark: '#F48771', light: '#A1260D', hc: '#F48771' }, + De( + 'errorForeground', + 'Overall foreground color for error messages. This color is only used if not overridden by a component.' + ) + ), + nc = Xl( + 'focusBorder', + { + dark: Nu.fromHex('#0E639C').transparent(0.8), + light: Nu.fromHex('#007ACC').transparent(0.4), + hc: '#F38518', + }, + De( + 'focusBorder', + 'Overall border color for focused elements. This color is only used if not overridden by a component.' + ) + ), + rc = Xl( + 'contrastBorder', + { light: null, dark: null, hc: '#6FC3DF' }, + De( + 'contrastBorder', + 'An extra border around elements to separate them from others for greater contrast.' + ) + ), + ic = Xl( + 'contrastActiveBorder', + { light: null, dark: null, hc: nc }, + De( + 'activeContrastBorder', + 'An extra border around active elements to separate them from others for greater contrast.' + ) + ), + oc = + (Xl( + 'textLink.foreground', + { light: '#006AB1', dark: '#3794FF', hc: '#3794FF' }, + De('textLinkForeground', 'Foreground color for links in text.') + ), + Xl( + 'textCodeBlock.background', + { light: '#dcdcdc66', dark: '#0a0a0a66', hc: Nu.black }, + De( + 'textCodeBlockBackground', + 'Background color for code blocks in text.' + ) + ), + Xl( + 'widget.shadow', + { dark: '#000000', light: '#A8A8A8', hc: null }, + De( + 'widgetShadow', + 'Shadow color of widgets such as find/replace inside the editor.' + ) + )), + sc = Xl( + 'input.background', + { dark: '#3C3C3C', light: Nu.white, hc: Nu.black }, + De('inputBoxBackground', 'Input box background.') + ), + ac = Xl( + 'input.foreground', + { dark: ec, light: ec, hc: ec }, + De('inputBoxForeground', 'Input box foreground.') + ), + uc = Xl( + 'input.border', + { dark: null, light: null, hc: rc }, + De('inputBoxBorder', 'Input box border.') + ), + lc = Xl( + 'inputOption.activeBorder', + { dark: '#007ACC00', light: '#007ACC00', hc: rc }, + De( + 'inputBoxActiveOptionBorder', + 'Border color of activated options in input fields.' + ) + ), + cc = Xl( + 'inputOption.activeBackground', + { dark: Dd(nc, 0.5), light: Dd(nc, 0.3), hc: null }, + De( + 'inputOption.activeBackground', + 'Background color of activated options in input fields.' + ) + ), + dc = Xl( + 'inputValidation.infoBackground', + { dark: '#063B49', light: '#D6ECF2', hc: Nu.black }, + De( + 'inputValidationInfoBackground', + 'Input validation background color for information severity.' + ) + ), + hc = Xl( + 'inputValidation.infoForeground', + { dark: null, light: null, hc: null }, + De( + 'inputValidationInfoForeground', + 'Input validation foreground color for information severity.' + ) + ), + fc = Xl( + 'inputValidation.infoBorder', + { dark: '#007acc', light: '#007acc', hc: rc }, + De( + 'inputValidationInfoBorder', + 'Input validation border color for information severity.' + ) + ), + pc = Xl( + 'inputValidation.warningBackground', + { dark: '#352A05', light: '#F6F5D2', hc: Nu.black }, + De( + 'inputValidationWarningBackground', + 'Input validation background color for warning severity.' + ) + ), + gc = Xl( + 'inputValidation.warningForeground', + { dark: null, light: null, hc: null }, + De( + 'inputValidationWarningForeground', + 'Input validation foreground color for warning severity.' + ) + ), + mc = Xl( + 'inputValidation.warningBorder', + { dark: '#B89500', light: '#B89500', hc: rc }, + De( + 'inputValidationWarningBorder', + 'Input validation border color for warning severity.' + ) + ), + _c = Xl( + 'inputValidation.errorBackground', + { dark: '#5A1D1D', light: '#F2DEDE', hc: Nu.black }, + De( + 'inputValidationErrorBackground', + 'Input validation background color for error severity.' + ) + ), + yc = Xl( + 'inputValidation.errorForeground', + { dark: null, light: null, hc: null }, + De( + 'inputValidationErrorForeground', + 'Input validation foreground color for error severity.' + ) + ), + vc = Xl( + 'inputValidation.errorBorder', + { dark: '#BE1100', light: '#BE1100', hc: rc }, + De( + 'inputValidationErrorBorder', + 'Input validation border color for error severity.' + ) + ), + bc = Xl( + 'dropdown.background', + { dark: '#3C3C3C', light: Nu.white, hc: Nu.black }, + De('dropdownBackground', 'Dropdown background.') + ), + wc = Xl( + 'dropdown.foreground', + { dark: '#F0F0F0', light: null, hc: Nu.white }, + De('dropdownForeground', 'Dropdown foreground.') + ), + Cc = Xl( + 'list.focusBackground', + { dark: '#062F4A', light: '#D6EBFF', hc: null }, + De( + 'listFocusBackground', + 'List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + Sc = Xl( + 'list.focusForeground', + { dark: null, light: null, hc: null }, + De( + 'listFocusForeground', + 'List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + xc = Xl( + 'list.activeSelectionBackground', + { dark: '#094771', light: '#0074E8', hc: null }, + De( + 'listActiveSelectionBackground', + 'List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + Lc = Xl( + 'list.activeSelectionForeground', + { dark: Nu.white, light: Nu.white, hc: null }, + De( + 'listActiveSelectionForeground', + 'List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + kc = Xl( + 'list.inactiveSelectionBackground', + { dark: '#37373D', light: '#E4E6F1', hc: null }, + De( + 'listInactiveSelectionBackground', + 'List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + Mc = Xl( + 'list.inactiveSelectionForeground', + { dark: null, light: null, hc: null }, + De( + 'listInactiveSelectionForeground', + 'List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + Dc = Xl( + 'list.inactiveFocusBackground', + { dark: null, light: null, hc: null }, + De( + 'listInactiveFocusBackground', + 'List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.' + ) + ), + Ec = Xl( + 'list.hoverBackground', + { dark: '#2A2D2E', light: '#F0F0F0', hc: null }, + De( + 'listHoverBackground', + 'List/Tree background when hovering over items using the mouse.' + ) + ), + Tc = Xl( + 'list.hoverForeground', + { dark: null, light: null, hc: null }, + De( + 'listHoverForeground', + 'List/Tree foreground when hovering over items using the mouse.' + ) + ), + Nc = Xl( + 'list.dropBackground', + { dark: Cc, light: Cc, hc: null }, + De( + 'listDropBackground', + 'List/Tree drag and drop background when moving items around using the mouse.' + ) + ), + Oc = + (Xl( + 'list.highlightForeground', + { dark: '#0097fb', light: '#0066BF', hc: nc }, + De( + 'highlight', + 'List/Tree foreground color of the match highlights when searching inside the list/tree.' + ) + ), + Xl( + 'listFilterWidget.background', + { light: '#efc1ad', dark: '#653723', hc: Nu.black }, + De( + 'listFilterWidgetBackground', + 'Background color of the type filter widget in lists and trees.' + ) + )), + Ac = Xl( + 'listFilterWidget.outline', + { dark: Nu.transparent, light: Nu.transparent, hc: '#f38518' }, + De( + 'listFilterWidgetOutline', + 'Outline color of the type filter widget in lists and trees.' + ) + ), + Ic = Xl( + 'listFilterWidget.noMatchesOutline', + { dark: '#BE1100', light: '#BE1100', hc: rc }, + De( + 'listFilterWidgetNoMatchesOutline', + 'Outline color of the type filter widget in lists and trees, when there are no matches.' + ) + ), + Pc = Xl( + 'tree.indentGuidesStroke', + { dark: '#585858', light: '#a9a9a9', hc: '#a9a9a9' }, + De( + 'treeIndentGuidesStroke', + 'Tree stroke color for the indentation guides.' + ) + ), + Rc = + (Xl( + 'pickerGroup.foreground', + { dark: '#3794FF', light: '#0066BF', hc: Nu.white }, + De('pickerGroupForeground', 'Quick picker color for grouping labels.') + ), + Xl( + 'pickerGroup.border', + { dark: '#3F3F46', light: '#CCCEDB', hc: Nu.white }, + De('pickerGroupBorder', 'Quick picker color for grouping borders.') + ), + Xl( + 'badge.background', + { dark: '#4D4D4D', light: '#C4C4C4', hc: Nu.black }, + De( + 'badgeBackground', + 'Badge background color. Badges are small information labels, e.g. for search results count.' + ) + ), + Xl( + 'badge.foreground', + { dark: Nu.white, light: '#333', hc: Nu.white }, + De( + 'badgeForeground', + 'Badge foreground color. Badges are small information labels, e.g. for search results count.' + ) + ), + Xl( + 'scrollbar.shadow', + { dark: '#000000', light: '#DDDDDD', hc: null }, + De( + 'scrollbarShadow', + 'Scrollbar shadow to indicate that the view is scrolled.' + ) + )), + Fc = Xl( + 'scrollbarSlider.background', + { + dark: Nu.fromHex('#797979').transparent(0.4), + light: Nu.fromHex('#646464').transparent(0.4), + hc: Dd(rc, 0.6), + }, + De('scrollbarSliderBackground', 'Scrollbar slider background color.') + ), + Yc = Xl( + 'scrollbarSlider.hoverBackground', + { + dark: Nu.fromHex('#646464').transparent(0.7), + light: Nu.fromHex('#646464').transparent(0.7), + hc: Dd(rc, 0.8), + }, + De( + 'scrollbarSliderHoverBackground', + 'Scrollbar slider background color when hovering.' + ) + ), + jc = Xl( + 'scrollbarSlider.activeBackground', + { + dark: Nu.fromHex('#BFBFBF').transparent(0.4), + light: Nu.fromHex('#000000').transparent(0.6), + hc: rc, + }, + De( + 'scrollbarSliderActiveBackground', + 'Scrollbar slider background color when clicked on.' + ) + ), + Bc = + (Xl( + 'progressBar.background', + { dark: Nu.fromHex('#0E70C0'), light: Nu.fromHex('#0E70C0'), hc: rc }, + De( + 'progressBarBackground', + 'Background color of the progress bar that can show for long running operations.' + ) + ), + Xl( + 'menu.border', + { dark: null, light: null, hc: rc }, + De('menuBorder', 'Border color of menus.') + )), + Wc = Xl( + 'menu.foreground', + { dark: wc, light: ec, hc: wc }, + De('menuForeground', 'Foreground color of menu items.') + ), + Hc = Xl( + 'menu.background', + { dark: bc, light: bc, hc: bc }, + De('menuBackground', 'Background color of menu items.') + ), + Vc = Xl( + 'menu.selectionForeground', + { dark: Lc, light: Lc, hc: Lc }, + De( + 'menuSelectionForeground', + 'Foreground color of the selected menu item in menus.' + ) + ), + zc = Xl( + 'menu.selectionBackground', + { dark: xc, light: xc, hc: xc }, + De( + 'menuSelectionBackground', + 'Background color of the selected menu item in menus.' + ) + ), + Uc = Xl( + 'menu.selectionBorder', + { dark: null, light: null, hc: ic }, + De( + 'menuSelectionBorder', + 'Border color of the selected menu item in menus.' + ) + ), + qc = Xl( + 'menu.separatorBackground', + { dark: '#BBBBBB', light: '#888888', hc: rc }, + De( + 'menuSeparatorBackground', + 'Color of a separator menu item in menus.' + ) + ), + Kc = Xl( + 'editorError.foreground', + { dark: '#F48771', light: '#E51400', hc: null }, + De( + 'editorError.foreground', + 'Foreground color of error squigglies in the editor.' + ) + ), + Gc = Xl( + 'editorError.border', + { dark: null, light: null, hc: Nu.fromHex('#E47777').transparent(0.8) }, + De('errorBorder', 'Border color of error boxes in the editor.') + ), + $c = Xl( + 'editorWarning.foreground', + { dark: '#CCA700', light: '#E9A700', hc: null }, + De( + 'editorWarning.foreground', + 'Foreground color of warning squigglies in the editor.' + ) + ), + Zc = Xl( + 'editorWarning.border', + { dark: null, light: null, hc: Nu.fromHex('#FFCC00').transparent(0.8) }, + De('warningBorder', 'Border color of warning boxes in the editor.') + ), + Xc = Xl( + 'editorInfo.foreground', + { dark: '#75BEFF', light: '#75BEFF', hc: null }, + De( + 'editorInfo.foreground', + 'Foreground color of info squigglies in the editor.' + ) + ), + Jc = Xl( + 'editorInfo.border', + { dark: null, light: null, hc: Nu.fromHex('#75BEFF').transparent(0.8) }, + De('infoBorder', 'Border color of info boxes in the editor.') + ), + Qc = Xl( + 'editorHint.foreground', + { + dark: Nu.fromHex('#eeeeee').transparent(0.7), + light: '#6c6c6c', + hc: null, + }, + De( + 'editorHint.foreground', + 'Foreground color of hint squigglies in the editor.' + ) + ), + ed = Xl( + 'editorHint.border', + { dark: null, light: null, hc: Nu.fromHex('#eeeeee').transparent(0.8) }, + De('hintBorder', 'Border color of hint boxes in the editor.') + ), + td = Xl( + 'editor.background', + { light: '#fffffe', dark: '#1E1E1E', hc: Nu.black }, + De('editorBackground', 'Editor background color.') + ), + nd = Xl( + 'editor.foreground', + { light: '#333333', dark: '#BBBBBB', hc: Nu.white }, + De('editorForeground', 'Editor default foreground color.') + ), + rd = Xl( + 'editorWidget.background', + { dark: '#252526', light: '#F3F3F3', hc: '#0C141F' }, + De( + 'editorWidgetBackground', + 'Background color of editor widgets, such as find/replace.' + ) + ), + id = Xl( + 'editorWidget.foreground', + { dark: ec, light: ec, hc: ec }, + De( + 'editorWidgetForeground', + 'Foreground color of editor widgets, such as find/replace.' + ) + ), + od = Xl( + 'editorWidget.border', + { dark: '#454545', light: '#C8C8C8', hc: rc }, + De( + 'editorWidgetBorder', + 'Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.' + ) + ), + sd = Xl( + 'editorWidget.resizeBorder', + { light: null, dark: null, hc: null }, + De( + 'editorWidgetResizeBorder', + 'Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.' + ) + ), + ad = Xl( + 'editor.selectionBackground', + { light: '#ADD6FF', dark: '#264F78', hc: '#f3f518' }, + De('editorSelectionBackground', 'Color of the editor selection.') + ), + ud = Xl( + 'editor.selectionForeground', + { light: null, dark: null, hc: '#000000' }, + De( + 'editorSelectionForeground', + 'Color of the selected text for high contrast.' + ) + ), + ld = Xl( + 'editor.inactiveSelectionBackground', + { light: Dd(ad, 0.5), dark: Dd(ad, 0.5), hc: Dd(ad, 0.5) }, + De( + 'editorInactiveSelection', + 'Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + cd = Xl( + 'editor.selectionHighlightBackground', + { light: Ed(ad, td, 0.3, 0.6), dark: Ed(ad, td, 0.3, 0.6), hc: null }, + De( + 'editorSelectionHighlight', + 'Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + dd = + (Xl( + 'editor.selectionHighlightBorder', + { light: null, dark: null, hc: ic }, + De( + 'editorSelectionHighlightBorder', + 'Border color for regions with the same content as the selection.' + ) + ), + Xl( + 'editor.findMatchBackground', + { light: '#A8AC94', dark: '#515C6A', hc: null }, + De('editorFindMatch', 'Color of the current search match.') + )), + hd = Xl( + 'editor.findMatchHighlightBackground', + { light: '#EA5C0055', dark: '#EA5C0055', hc: null }, + De( + 'findMatchHighlight', + 'Color of the other search matches. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + fd = Xl( + 'editor.findRangeHighlightBackground', + { dark: '#3a3d4166', light: '#b4b4b44d', hc: null }, + De( + 'findRangeHighlight', + 'Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + pd = Xl( + 'editor.findMatchBorder', + { light: null, dark: null, hc: ic }, + De('editorFindMatchBorder', 'Border color of the current search match.') + ), + gd = Xl( + 'editor.findMatchHighlightBorder', + { light: null, dark: null, hc: ic }, + De( + 'findMatchHighlightBorder', + 'Border color of the other search matches.' + ) + ), + md = Xl( + 'editor.findRangeHighlightBorder', + { dark: null, light: null, hc: Dd(ic, 0.4) }, + De( + 'findRangeHighlightBorder', + 'Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + _d = + (Xl( + 'editor.hoverHighlightBackground', + { light: '#ADD6FF26', dark: '#264f7840', hc: '#ADD6FF26' }, + De( + 'hoverHighlight', + 'Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + Xl( + 'editorHoverWidget.background', + { light: rd, dark: rd, hc: rd }, + De('hoverBackground', 'Background color of the editor hover.') + )), + yd = + (Xl( + 'editorHoverWidget.border', + { light: od, dark: od, hc: od }, + De('hoverBorder', 'Border color of the editor hover.') + ), + Xl( + 'editorHoverWidget.statusBarBackground', + { + dark: + ((Jl = _d), + (Ql = 0.2), + function (e) { + var t = Td(Jl, e); + if (t) return t.lighten(Ql); + }), + light: Md(_d, 0.05), + hc: rd, + }, + De( + 'statusBarBackground', + 'Background color of the editor hover status bar.' + ) + ), + Xl( + 'editorLink.activeForeground', + { dark: '#4E94CE', light: Nu.blue, hc: Nu.cyan }, + De('activeLinkForeground', 'Color of active links.') + ), + new Nu(new Du(155, 185, 85, 0.2))), + vd = new Nu(new Du(255, 0, 0, 0.2)), + bd = Xl( + 'diffEditor.insertedTextBackground', + { dark: yd, light: yd, hc: null }, + De( + 'diffEditorInserted', + 'Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + wd = Xl( + 'diffEditor.removedTextBackground', + { dark: vd, light: vd, hc: null }, + De( + 'diffEditorRemoved', + 'Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + Cd = Xl( + 'diffEditor.insertedTextBorder', + { dark: null, light: null, hc: '#33ff2eff' }, + De( + 'diffEditorInsertedOutline', + 'Outline color for the text that got inserted.' + ) + ), + Sd = Xl( + 'diffEditor.removedTextBorder', + { dark: null, light: null, hc: '#FF008F' }, + De( + 'diffEditorRemovedOutline', + 'Outline color for text that got removed.' + ) + ), + xd = Xl( + 'diffEditor.border', + { dark: null, light: null, hc: rc }, + De('diffEditorBorder', 'Border color between the two text editors.') + ), + Ld = + (Xl( + 'editor.snippetTabstopHighlightBackground', + { + dark: new Nu(new Du(124, 124, 124, 0.3)), + light: new Nu(new Du(10, 50, 100, 0.2)), + hc: new Nu(new Du(124, 124, 124, 0.3)), + }, + De( + 'snippetTabstopHighlightBackground', + 'Highlight background color of a snippet tabstop.' + ) + ), + Xl( + 'editor.snippetTabstopHighlightBorder', + { dark: null, light: null, hc: null }, + De( + 'snippetTabstopHighlightBorder', + 'Highlight border color of a snippet tabstop.' + ) + ), + Xl( + 'editor.snippetFinalTabstopHighlightBackground', + { dark: null, light: null, hc: null }, + De( + 'snippetFinalTabstopHighlightBackground', + 'Highlight background color of the final tabstop of a snippet.' + ) + ), + Xl( + 'editor.snippetFinalTabstopHighlightBorder', + { + dark: '#525252', + light: new Nu(new Du(10, 50, 100, 0.5)), + hc: '#525252', + }, + De( + 'snippetFinalTabstopHighlightBorder', + 'Highlight border color of the final stabstop of a snippet.' + ) + ), + Xl( + 'editorOverviewRuler.findMatchForeground', + { dark: '#d186167e', light: '#d186167e', hc: '#AB5A00' }, + De( + 'overviewRulerFindMatchForeground', + 'Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + )), + kd = + (Xl( + 'editorOverviewRuler.selectionHighlightForeground', + { dark: '#A0A0A0CC', light: '#A0A0A0CC', hc: '#A0A0A0CC' }, + De( + 'overviewRulerSelectionHighlightForeground', + 'Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + Xl( + 'minimap.findMatchHighlight', + { light: '#d18616', dark: '#d18616', hc: '#AB5A00' }, + De( + 'minimapFindMatchHighlight', + 'Minimap marker color for find matches.' + ), + !0 + )); + function Md(e, t) { + return function (n) { + var r = Td(e, n); + if (r) return r.darken(t); + }; + } + function Dd(e, t) { + return function (n) { + var r = Td(e, n); + if (r) return r.transparent(t); + }; + } + function Ed(e, t, n, r) { + return function (i) { + var o = Td(e, i); + if (o) { + var s = Td(t, i); + return s + ? o.isDarkerThan(s) + ? Nu.getLighterColor(o, s, n).transparent(r) + : Nu.getDarkerColor(o, s, n).transparent(r) + : o.transparent(n * r); + } + }; + } + function Td(e, t) { + if (null !== e) + return 'string' == typeof e + ? '#' === e[0] + ? Nu.fromHex(e) + : t.getColor(e) + : e instanceof Nu + ? e + : 'function' == typeof e + ? e(t) + : void 0; + } + var Nd = Lr.as(Kl); + Nd.registerSchema('vscode://schemas/workbench-colors', Zl.getColorSchema()); + var Od = new Os(function () { + return Nd.notifySchemaChanged('vscode://schemas/workbench-colors'); + }, 200); + Zl.onDidChangeSchema(function () { + Od.isScheduled() || Od.schedule(); + }); + var Ad = wt('themeService'); + function Id(e) { + return { id: e }; + } + var Pd = 'dark', + Rd = 'hc'; + function Fd(e) { + switch (e) { + case Pd: + return 'vs-dark'; + case Rd: + return 'hc-black'; + default: + return 'vs'; + } + } + var Yd = 'base.contributions.theming', + jd = new ((function () { + function e() { + (this.themingParticipants = []), + (this.themingParticipants = []), + (this.onThemingParticipantAddedEmitter = new Gt()); + } + return ( + (e.prototype.onThemeChange = function (e) { + var t = this; + return ( + this.themingParticipants.push(e), + this.onThemingParticipantAddedEmitter.fire(e), + It(function () { + var n = t.themingParticipants.indexOf(e); + t.themingParticipants.splice(n, 1); + }) + ); + }), + (e.prototype.getThemingParticipants = function () { + return this.themingParticipants; + }), + e + ); + })())(); + function Bd(e) { + return jd.onThemeChange(e); + } + Lr.add(Yd, jd); + var Wd = (function () { + function e(e) { + (this._editor = e), + (this._decorations = []), + (this._overviewRulerApproximateDecorations = []), + (this._findScopeDecorationId = null), + (this._rangeHighlightDecorationId = null), + (this._highlightedDecorationId = null), + (this._startPosition = this._editor.getPosition()); + } + return ( + (e.prototype.dispose = function () { + this._editor.deltaDecorations(this._allDecorations(), []), + (this._decorations = []), + (this._overviewRulerApproximateDecorations = []), + (this._findScopeDecorationId = null), + (this._rangeHighlightDecorationId = null), + (this._highlightedDecorationId = null); + }), + (e.prototype.reset = function () { + (this._decorations = []), + (this._overviewRulerApproximateDecorations = []), + (this._findScopeDecorationId = null), + (this._rangeHighlightDecorationId = null), + (this._highlightedDecorationId = null); + }), + (e.prototype.getCount = function () { + return this._decorations.length; + }), + (e.prototype.getFindScope = function () { + return this._findScopeDecorationId + ? this._editor + .getModel() + .getDecorationRange(this._findScopeDecorationId) + : null; + }), + (e.prototype.getStartPosition = function () { + return this._startPosition; + }), + (e.prototype.setStartPosition = function (e) { + (this._startPosition = e), this.setCurrentFindMatch(null); + }), + (e.prototype._getDecorationIndex = function (e) { + var t = this._decorations.indexOf(e); + return t >= 0 ? t + 1 : 1; + }), + (e.prototype.getCurrentMatchesPosition = function (t) { + for ( + var n = 0, r = this._editor.getModel().getDecorationsInRange(t); + n < r.length; + n++ + ) { + var i = r[n], + o = i.options; + if ( + o === e._FIND_MATCH_DECORATION || + o === e._CURRENT_FIND_MATCH_DECORATION + ) + return this._getDecorationIndex(i.id); + } + return 1; + }), + (e.prototype.setCurrentFindMatch = function (t) { + var n = this, + r = null, + i = 0; + if (t) + for (var o = 0, s = this._decorations.length; o < s; o++) { + var a = this._editor + .getModel() + .getDecorationRange(this._decorations[o]); + if (t.equalsRange(a)) { + (r = this._decorations[o]), (i = o + 1); + break; + } + } + return ( + (null === this._highlightedDecorationId && null === r) || + this._editor.changeDecorations(function (t) { + if ( + (null !== n._highlightedDecorationId && + (t.changeDecorationOptions( + n._highlightedDecorationId, + e._FIND_MATCH_DECORATION + ), + (n._highlightedDecorationId = null)), + null !== r && + ((n._highlightedDecorationId = r), + t.changeDecorationOptions( + n._highlightedDecorationId, + e._CURRENT_FIND_MATCH_DECORATION + )), + null !== n._rangeHighlightDecorationId && + (t.removeDecoration(n._rangeHighlightDecorationId), + (n._rangeHighlightDecorationId = null)), + null !== r) + ) { + var i = n._editor.getModel().getDecorationRange(r); + if ( + i.startLineNumber !== i.endLineNumber && + 1 === i.endColumn + ) { + var o = i.endLineNumber - 1, + s = n._editor.getModel().getLineMaxColumn(o); + i = new Fr(i.startLineNumber, i.startColumn, o, s); + } + n._rangeHighlightDecorationId = t.addDecoration( + i, + e._RANGE_HIGHLIGHT_DECORATION + ); + } + }), + i + ); + }), + (e.prototype.set = function (t, n) { + var r = this; + this._editor.changeDecorations(function (i) { + var o = e._FIND_MATCH_DECORATION, + s = []; + if (t.length > 1e3) { + o = e._FIND_MATCH_NO_OVERVIEW_DECORATION; + for ( + var a = r._editor.getModel().getLineCount(), + u = r._editor.getLayoutInfo().height / a, + l = Math.max(2, Math.ceil(3 / u)), + c = t[0].range.startLineNumber, + d = t[0].range.endLineNumber, + h = 1, + f = t.length; + h < f; + h++ + ) { + var p = t[h].range; + d + l >= p.startLineNumber + ? p.endLineNumber > d && (d = p.endLineNumber) + : (s.push({ + range: new Fr(c, 1, d, 1), + options: e._FIND_MATCH_ONLY_OVERVIEW_DECORATION, + }), + (c = p.startLineNumber), + (d = p.endLineNumber)); + } + s.push({ + range: new Fr(c, 1, d, 1), + options: e._FIND_MATCH_ONLY_OVERVIEW_DECORATION, + }); + } + var g = new Array(t.length); + for (h = 0, f = t.length; h < f; h++) + g[h] = { range: t[h].range, options: o }; + (r._decorations = i.deltaDecorations(r._decorations, g)), + (r._overviewRulerApproximateDecorations = i.deltaDecorations( + r._overviewRulerApproximateDecorations, + s + )), + r._rangeHighlightDecorationId && + (i.removeDecoration(r._rangeHighlightDecorationId), + (r._rangeHighlightDecorationId = null)), + r._findScopeDecorationId && + (i.removeDecoration(r._findScopeDecorationId), + (r._findScopeDecorationId = null)), + n && + (r._findScopeDecorationId = i.addDecoration( + n, + e._FIND_SCOPE_DECORATION + )); + }); + }), + (e.prototype.matchBeforePosition = function (e) { + if (0 === this._decorations.length) return null; + for (var t = this._decorations.length - 1; t >= 0; t--) { + var n = this._decorations[t], + r = this._editor.getModel().getDecorationRange(n); + if (r && !(r.endLineNumber > e.lineNumber)) { + if (r.endLineNumber < e.lineNumber) return r; + if (!(r.endColumn > e.column)) return r; + } + } + return this._editor + .getModel() + .getDecorationRange( + this._decorations[this._decorations.length - 1] + ); + }), + (e.prototype.matchAfterPosition = function (e) { + if (0 === this._decorations.length) return null; + for (var t = 0, n = this._decorations.length; t < n; t++) { + var r = this._decorations[t], + i = this._editor.getModel().getDecorationRange(r); + if (i && !(i.startLineNumber < e.lineNumber)) { + if (i.startLineNumber > e.lineNumber) return i; + if (!(i.startColumn < e.column)) return i; + } + } + return this._editor + .getModel() + .getDecorationRange(this._decorations[0]); + }), + (e.prototype._allDecorations = function () { + var e = []; + return ( + (e = (e = e.concat(this._decorations)).concat( + this._overviewRulerApproximateDecorations + )), + this._findScopeDecorationId && + e.push(this._findScopeDecorationId), + this._rangeHighlightDecorationId && + e.push(this._rangeHighlightDecorationId), + e + ); + }), + (e._CURRENT_FIND_MATCH_DECORATION = Vu.register({ + stickiness: 1, + zIndex: 13, + className: 'currentFindMatch', + showIfCollapsed: !0, + overviewRuler: { color: Id(Ld), position: gi.Center }, + minimap: { color: Id(kd), position: mi.Inline }, + })), + (e._FIND_MATCH_DECORATION = Vu.register({ + stickiness: 1, + className: 'findMatch', + showIfCollapsed: !0, + overviewRuler: { color: Id(Ld), position: gi.Center }, + minimap: { color: Id(kd), position: mi.Inline }, + })), + (e._FIND_MATCH_NO_OVERVIEW_DECORATION = Vu.register({ + stickiness: 1, + className: 'findMatch', + showIfCollapsed: !0, + })), + (e._FIND_MATCH_ONLY_OVERVIEW_DECORATION = Vu.register({ + stickiness: 1, + overviewRuler: { color: Id(Ld), position: gi.Center }, + })), + (e._RANGE_HIGHLIGHT_DECORATION = Vu.register({ + stickiness: 1, + className: 'rangeHighlight', + isWholeLine: !0, + })), + (e._FIND_SCOPE_DECORATION = Vu.register({ + className: 'findScope', + isWholeLine: !0, + })), + e + ); + })(), + Hd = (function () { + function e(e, t, n) { + (this._editorSelection = e), + (this._ranges = t), + (this._replaceStrings = n), + (this._trackedEditorSelectionId = null); + } + return ( + (e.prototype.getEditOperations = function (e, t) { + if (this._ranges.length > 0) { + for (var n = [], r = 0; r < this._ranges.length; r++) + n.push({ + range: this._ranges[r], + text: this._replaceStrings[r], + }); + n.sort(function (e, t) { + return Fr.compareRangesUsingStarts(e.range, t.range); + }); + var i = [], + o = n[0]; + for (r = 1; r < n.length; r++) + o.range.endLineNumber === n[r].range.startLineNumber && + o.range.endColumn === n[r].range.startColumn + ? ((o.range = o.range.plusRange(n[r].range)), + (o.text = o.text + n[r].text)) + : (i.push(o), (o = n[r])); + i.push(o); + for (var s = 0, a = i; s < a.length; s++) { + var u = a[s]; + t.addEditOperation(u.range, u.text); + } + } + this._trackedEditorSelectionId = t.trackSelection( + this._editorSelection + ); + }), + (e.prototype.computeCursorState = function (e, t) { + return t.getTrackedSelection(this._trackedEditorSelectionId); + }), + e + ); + })(); + function Vd(e, t) { + return e && '' !== e[0] + ? e[0].toUpperCase() === e[0] + ? t.toUpperCase() + : e[0].toLowerCase() === e[0] + ? t.toLowerCase() + : ((n = e[0][0]), + void 0 === r && (r = !1), + n && (r && (n = n.replace(/\\./g, '')), n.toLowerCase() !== n) + ? (function (e, t, n) { + return ( + -1 !== e[0].indexOf(n) && + -1 !== t.indexOf(n) && + e[0].split(n).length === t.split(n).length + ); + })(e, t, '-') + ? (function (e, t, n) { + var r = t.split(n), + i = e[0].split(n), + o = ''; + return ( + r.forEach(function (e, t) { + o += Vd([i[t]], e) + n; + }), + o.slice(0, -1) + ); + })(e, t, '-') + : t[0].toUpperCase() + t.substr(1) + : t) + : t; + var n, r; + } + var zd = function (e) { + (this.staticValue = e), (this.kind = 0); + }, + Ud = function (e) { + (this.pieces = e), (this.kind = 1); + }, + qd = (function () { + function e(e) { + e && 0 !== e.length + ? 1 === e.length && null !== e[0].staticValue + ? (this._state = new zd(e[0].staticValue)) + : (this._state = new Ud(e)) + : (this._state = new zd('')); + } + return ( + (e.fromStaticValue = function (t) { + return new e([Kd.staticValue(t)]); + }), + Object.defineProperty(e.prototype, 'hasReplacementPatterns', { + get: function () { + return 1 === this._state.kind; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.buildReplaceString = function (t, n) { + if (0 === this._state.kind) + return n + ? Vd(t, this._state.staticValue) + : this._state.staticValue; + for (var r = '', i = 0, o = this._state.pieces.length; i < o; i++) { + var s = this._state.pieces[i]; + null === s.staticValue + ? (r += e._substitute(s.matchIndex, t)) + : (r += s.staticValue); + } + return r; + }), + (e._substitute = function (e, t) { + if (null === t) return ''; + if (0 === e) return t[0]; + for (var n = ''; e > 0; ) { + if (e < t.length) return (t[e] || '') + n; + (n = String(e % 10) + n), (e = Math.floor(e / 10)); + } + return '$' + n; + }), + e + ); + })(), + Kd = (function () { + function e(e, t) { + (this.staticValue = e), (this.matchIndex = t); + } + return ( + (e.staticValue = function (t) { + return new e(t, -1); + }), + (e.matchIndex = function (t) { + return new e(null, t); + }), + e + ); + })(), + Gd = (function () { + function e(e) { + (this._source = e), + (this._lastCharIndex = 0), + (this._result = []), + (this._resultLen = 0), + (this._currentStaticPiece = ''); + } + return ( + (e.prototype.emitUnchanged = function (e) { + this._emitStatic(this._source.substring(this._lastCharIndex, e)), + (this._lastCharIndex = e); + }), + (e.prototype.emitStatic = function (e, t) { + this._emitStatic(e), (this._lastCharIndex = t); + }), + (e.prototype._emitStatic = function (e) { + 0 !== e.length && (this._currentStaticPiece += e); + }), + (e.prototype.emitMatchIndex = function (e, t) { + 0 !== this._currentStaticPiece.length && + ((this._result[this._resultLen++] = Kd.staticValue( + this._currentStaticPiece + )), + (this._currentStaticPiece = '')), + (this._result[this._resultLen++] = Kd.matchIndex(e)), + (this._lastCharIndex = t); + }), + (e.prototype.finalize = function () { + return ( + this.emitUnchanged(this._source.length), + 0 !== this._currentStaticPiece.length && + ((this._result[this._resultLen++] = Kd.staticValue( + this._currentStaticPiece + )), + (this._currentStaticPiece = '')), + new qd(this._result) + ); + }), + e + ); + })(); + var $d = new Un('findWidgetVisible', !1), + Zd = new Un('findInputFocussed', !1), + Xd = new Un('replaceInputFocussed', !1), + Jd = { primary: 545, mac: { primary: 2593 } }, + Qd = { primary: 565, mac: { primary: 2613 } }, + eh = { primary: 560, mac: { primary: 2608 } }, + th = { primary: 554, mac: { primary: 2602 } }, + nh = { + StartFindAction: 'actions.find', + StartFindWithSelection: 'actions.findWithSelection', + NextMatchFindAction: 'editor.action.nextMatchFindAction', + PreviousMatchFindAction: 'editor.action.previousMatchFindAction', + NextSelectionMatchFindAction: + 'editor.action.nextSelectionMatchFindAction', + PreviousSelectionMatchFindAction: + 'editor.action.previousSelectionMatchFindAction', + StartFindReplaceAction: 'editor.action.startFindReplaceAction', + CloseFindWidgetCommand: 'closeFindWidget', + ToggleCaseSensitiveCommand: 'toggleFindCaseSensitive', + ToggleWholeWordCommand: 'toggleFindWholeWord', + ToggleRegexCommand: 'toggleFindRegex', + ToggleSearchScopeCommand: 'toggleFindInSelection', + TogglePreserveCaseCommand: 'togglePreserveCase', + ReplaceOneAction: 'editor.action.replaceOne', + ReplaceAllAction: 'editor.action.replaceAll', + SelectAllMatchesAction: 'editor.action.selectAllMatches', + }, + rh = (function () { + function e(e, t) { + var n = this; + (this._toDispose = new Pt()), + (this._editor = e), + (this._state = t), + (this._isDisposed = !1), + (this._startSearchingTimer = new Ts()), + (this._decorations = new Wd(e)), + this._toDispose.add(this._decorations), + (this._updateDecorationsScheduler = new Os(function () { + return n.research(!1); + }, 100)), + this._toDispose.add(this._updateDecorationsScheduler), + this._toDispose.add( + this._editor.onDidChangeCursorPosition(function (e) { + (3 !== e.reason && 5 !== e.reason && 6 !== e.reason) || + n._decorations.setStartPosition(n._editor.getPosition()); + }) + ), + (this._ignoreModelContentChanged = !1), + this._toDispose.add( + this._editor.onDidChangeModelContent(function (e) { + n._ignoreModelContentChanged || + (e.isFlush && n._decorations.reset(), + n._decorations.setStartPosition(n._editor.getPosition()), + n._updateDecorationsScheduler.schedule()); + }) + ), + this._toDispose.add( + this._state.onFindReplaceStateChange(function (e) { + return n._onStateChanged(e); + }) + ), + this.research(!1, this._state.searchScope); + } + return ( + (e.prototype.dispose = function () { + (this._isDisposed = !0), + Ot(this._startSearchingTimer), + this._toDispose.dispose(); + }), + (e.prototype._onStateChanged = function (e) { + var t = this; + this._isDisposed || + (this._editor.hasModel() && + (e.searchString || + e.isReplaceRevealed || + e.isRegex || + e.wholeWord || + e.matchCase || + e.searchScope) && + (this._editor.getModel().isTooLargeForSyncing() + ? (this._startSearchingTimer.cancel(), + this._startSearchingTimer.setIfNotSet(function () { + e.searchScope + ? t.research(e.moveCursor, t._state.searchScope) + : t.research(e.moveCursor); + }, 240)) + : e.searchScope + ? this.research(e.moveCursor, this._state.searchScope) + : this.research(e.moveCursor))); + }), + (e._getSearchRange = function (e, t) { + return t || e.getFullModelRange(); + }), + (e.prototype.research = function (e, t) { + var n = null; + null !== + (n = void 0 !== t ? t : this._decorations.getFindScope()) && + n.startLineNumber !== n.endLineNumber && + (n = + 1 === n.endColumn + ? new Fr( + n.startLineNumber, + 1, + n.endLineNumber - 1, + this._editor + .getModel() + .getLineMaxColumn(n.endLineNumber - 1) + ) + : new Fr( + n.startLineNumber, + 1, + n.endLineNumber, + this._editor.getModel().getLineMaxColumn(n.endLineNumber) + )); + var r = this._findMatches(n, !1, 19999); + this._decorations.set(r, n), + this._state.changeMatchInfo( + this._decorations.getCurrentMatchesPosition( + this._editor.getSelection() + ), + this._decorations.getCount(), + void 0 + ), + e && this._moveToNextMatch(this._decorations.getStartPosition()); + }), + (e.prototype._hasMatches = function () { + return this._state.matchesCount > 0; + }), + (e.prototype._cannotFind = function () { + if (!this._hasMatches()) { + var e = this._decorations.getFindScope(); + return ( + e && this._editor.revealRangeInCenterIfOutsideViewport(e, 0), !0 + ); + } + return !1; + }), + (e.prototype._setCurrentFindMatch = function (e) { + var t = this._decorations.setCurrentFindMatch(e); + this._state.changeMatchInfo(t, this._decorations.getCount(), e), + this._editor.setSelection(e), + this._editor.revealRangeInCenterIfOutsideViewport(e, 0); + }), + (e.prototype._prevSearchPosition = function (e) { + var t = + this._state.isRegex && + (this._state.searchString.indexOf('^') >= 0 || + this._state.searchString.indexOf('$') >= 0), + n = e.lineNumber, + r = e.column, + i = this._editor.getModel(); + return ( + t || 1 === r + ? (1 === n ? (n = i.getLineCount()) : n--, + (r = i.getLineMaxColumn(n))) + : r--, + new xt(n, r) + ); + }), + (e.prototype._moveToPrevMatch = function (t, n) { + if ( + (void 0 === n && (n = !1), this._decorations.getCount() < 19999) + ) { + var r = this._decorations.matchBeforePosition(t); + return ( + r && + r.isEmpty() && + r.getStartPosition().equals(t) && + ((t = this._prevSearchPosition(t)), + (r = this._decorations.matchBeforePosition(t))), + void (r && this._setCurrentFindMatch(r)) + ); + } + if (!this._cannotFind()) { + var i = this._decorations.getFindScope(), + o = e._getSearchRange(this._editor.getModel(), i); + o.getEndPosition().isBefore(t) && (t = o.getEndPosition()), + t.isBefore(o.getStartPosition()) && (t = o.getEndPosition()); + var s = t.lineNumber, + a = t.column, + u = this._editor.getModel(), + l = new xt(s, a), + c = u.findPreviousMatch( + this._state.searchString, + l, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null, + !1 + ); + if ( + (c && + c.range.isEmpty() && + c.range.getStartPosition().equals(l) && + ((l = this._prevSearchPosition(l)), + (c = u.findPreviousMatch( + this._state.searchString, + l, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null, + !1 + ))), + c) + ) + return n || o.containsRange(c.range) + ? void this._setCurrentFindMatch(c.range) + : this._moveToPrevMatch(c.range.getStartPosition(), !0); + } + }), + (e.prototype.moveToPrevMatch = function () { + this._moveToPrevMatch( + this._editor.getSelection().getStartPosition() + ); + }), + (e.prototype._nextSearchPosition = function (e) { + var t = + this._state.isRegex && + (this._state.searchString.indexOf('^') >= 0 || + this._state.searchString.indexOf('$') >= 0), + n = e.lineNumber, + r = e.column, + i = this._editor.getModel(); + return ( + t || r === i.getLineMaxColumn(n) + ? (n === i.getLineCount() ? (n = 1) : n++, (r = 1)) + : r++, + new xt(n, r) + ); + }), + (e.prototype._moveToNextMatch = function (e) { + if (this._decorations.getCount() < 19999) { + var t = this._decorations.matchAfterPosition(e); + return ( + t && + t.isEmpty() && + t.getStartPosition().equals(e) && + ((e = this._nextSearchPosition(e)), + (t = this._decorations.matchAfterPosition(e))), + void (t && this._setCurrentFindMatch(t)) + ); + } + var n = this._getNextMatch(e, !1, !0); + n && this._setCurrentFindMatch(n.range); + }), + (e.prototype._getNextMatch = function (t, n, r, i) { + if ((void 0 === i && (i = !1), this._cannotFind())) return null; + var o = this._decorations.getFindScope(), + s = e._getSearchRange(this._editor.getModel(), o); + s.getEndPosition().isBefore(t) && (t = s.getStartPosition()), + t.isBefore(s.getStartPosition()) && (t = s.getStartPosition()); + var a = t.lineNumber, + u = t.column, + l = this._editor.getModel(), + c = new xt(a, u), + d = l.findNextMatch( + this._state.searchString, + c, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null, + n + ); + return ( + r && + d && + d.range.isEmpty() && + d.range.getStartPosition().equals(c) && + ((c = this._nextSearchPosition(c)), + (d = l.findNextMatch( + this._state.searchString, + c, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null, + n + ))), + d + ? i || s.containsRange(d.range) + ? d + : this._getNextMatch(d.range.getEndPosition(), n, r, !0) + : null + ); + }), + (e.prototype.moveToNextMatch = function () { + this._moveToNextMatch(this._editor.getSelection().getEndPosition()); + }), + (e.prototype._getReplacePattern = function () { + return this._state.isRegex + ? (function (e) { + if (!e || 0 === e.length) return new qd(null); + for (var t = new Gd(e), n = 0, r = e.length; n < r; n++) { + var i = e.charCodeAt(n); + if (92 !== i) { + if (36 === i) { + if (++n >= r) break; + if (36 === (a = e.charCodeAt(n))) { + t.emitUnchanged(n - 1), t.emitStatic('$', n + 1); + continue; + } + if (48 === a || 38 === a) { + t.emitUnchanged(n - 1), t.emitMatchIndex(0, n + 1); + continue; + } + if (49 <= a && a <= 57) { + var o = a - 48; + if (n + 1 < r) { + var s = e.charCodeAt(n + 1); + if (48 <= s && s <= 57) { + n++, + (o = 10 * o + (s - 48)), + t.emitUnchanged(n - 2), + t.emitMatchIndex(o, n + 1); + continue; + } + } + t.emitUnchanged(n - 1), t.emitMatchIndex(o, n + 1); + continue; + } + } + } else { + if (++n >= r) break; + var a; + switch ((a = e.charCodeAt(n))) { + case 92: + t.emitUnchanged(n - 1), t.emitStatic('\\', n + 1); + break; + case 110: + t.emitUnchanged(n - 1), t.emitStatic('\n', n + 1); + break; + case 116: + t.emitUnchanged(n - 1), t.emitStatic('\t', n + 1); + } + } + } + return t.finalize(); + })(this._state.replaceString) + : qd.fromStaticValue(this._state.replaceString); + }), + (e.prototype.replace = function () { + if (this._hasMatches()) { + var e = this._getReplacePattern(), + t = this._editor.getSelection(), + n = this._getNextMatch(t.getStartPosition(), !0, !1); + if (n) + if (t.equalsRange(n.range)) { + var r = e.buildReplaceString( + n.matches, + this._state.preserveCase + ), + i = new ul(t, r); + this._executeEditorCommand('replace', i), + this._decorations.setStartPosition( + new xt(t.startLineNumber, t.startColumn + r.length) + ), + this.research(!0); + } else + this._decorations.setStartPosition( + this._editor.getPosition() + ), + this._setCurrentFindMatch(n.range); + } + }), + (e.prototype._findMatches = function (t, n, r) { + var i = e._getSearchRange(this._editor.getModel(), t); + return this._editor + .getModel() + .findMatches( + this._state.searchString, + i, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null, + n, + r + ); + }), + (e.prototype.replaceAll = function () { + if (this._hasMatches()) { + var e = this._decorations.getFindScope(); + null === e && this._state.matchesCount >= 19999 + ? this._largeReplaceAll() + : this._regularReplaceAll(e), + this.research(!1); + } + }), + (e.prototype._largeReplaceAll = function () { + var e = new ko( + this._state.searchString, + this._state.isRegex, + this._state.matchCase, + this._state.wholeWord + ? this._editor.getConfiguration().wordSeparators + : null + ).parseSearchRequest(); + if (e) { + var t = e.regex; + if (!t.multiline) { + var n = 'm'; + t.ignoreCase && (n += 'i'), + t.global && (n += 'g'), + (t = new RegExp(t.source, n)); + } + var r, + i = this._editor.getModel(), + o = i.getValue(1), + s = i.getFullModelRange(), + a = this._getReplacePattern(), + u = this._state.preserveCase; + r = + a.hasReplacementPatterns || u + ? o.replace(t, function () { + return a.buildReplaceString(arguments, u); + }) + : o.replace(t, a.buildReplaceString(null, u)); + var l = new dl(s, r, this._editor.getSelection()); + this._executeEditorCommand('replaceAll', l); + } + }), + (e.prototype._regularReplaceAll = function (e) { + for ( + var t = this._getReplacePattern(), + n = this._findMatches( + e, + t.hasReplacementPatterns || this._state.preserveCase, + 1073741824 + ), + r = [], + i = 0, + o = n.length; + i < o; + i++ + ) + r[i] = t.buildReplaceString( + n[i].matches, + this._state.preserveCase + ); + var s = new Hd( + this._editor.getSelection(), + n.map(function (e) { + return e.range; + }), + r + ); + this._executeEditorCommand('replaceAll', s); + }), + (e.prototype.selectAllMatches = function () { + if (this._hasMatches()) { + for ( + var e = this._decorations.getFindScope(), + t = this._findMatches(e, !1, 1073741824).map(function (e) { + return new jr( + e.range.startLineNumber, + e.range.startColumn, + e.range.endLineNumber, + e.range.endColumn + ); + }), + n = this._editor.getSelection(), + r = 0, + i = t.length; + r < i; + r++ + ) { + if (t[r].equalsRange(n)) { + t = [n].concat(t.slice(0, r)).concat(t.slice(r + 1)); + break; + } + } + this._editor.setSelections(t); + } + }), + (e.prototype._executeEditorCommand = function (e, t) { + try { + (this._ignoreModelContentChanged = !0), + this._editor.pushUndoStop(), + this._editor.executeCommand(e, t), + this._editor.pushUndoStop(); + } finally { + this._ignoreModelContentChanged = !1; + } + }), + e + ); + })(), + ih = (function () { + function e() { + (this._zoomLevel = 0), + (this._lastZoomLevelChangeTime = 0), + (this._onDidChangeZoomLevel = new Gt()), + (this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event); + } + return ( + (e.prototype.getZoomLevel = function () { + return this._zoomLevel; + }), + (e.prototype.getTimeSinceLastZoomLevelChanged = function () { + return Date.now() - this._lastZoomLevelChangeTime; + }), + (e.prototype.getPixelRatio = function () { + var e = document.createElement('canvas').getContext('2d'); + return ( + (window.devicePixelRatio || 1) / + (e.webkitBackingStorePixelRatio || + e.mozBackingStorePixelRatio || + e.msBackingStorePixelRatio || + e.oBackingStorePixelRatio || + e.backingStorePixelRatio || + 1) + ); + }), + (e.INSTANCE = new e()), + e + ); + })(); + function oh() { + return ih.INSTANCE.getZoomLevel(); + } + var sh = navigator.userAgent, + ah = sh.indexOf('Trident') >= 0, + uh = sh.indexOf('Edge/') >= 0, + lh = ah || uh, + ch = sh.indexOf('Firefox') >= 0, + dh = sh.indexOf('AppleWebKit') >= 0, + hh = sh.indexOf('Chrome') >= 0, + fh = !hh && sh.indexOf('Safari') >= 0, + ph = !hh && !fh && dh, + gh = sh.indexOf('iPad') >= 0, + mh = uh && sh.indexOf('WebView/') >= 0; + var _h = function (e, t, n) { + var r = function (e) { + return i.fire(e); + }, + i = new Gt({ + onFirstListenerAdd: function () { + e.addEventListener(t, r, n); + }, + onLastListenerRemove: function () { + e.removeEventListener(t, r, n); + }, + }); + return i.event; + }; + var yh = new Array(230), + vh = new Array(112); + !(function () { + for (var e = 0; e < vh.length; e++) vh[e] = -1; + function t(e, t) { + (yh[e] = t), (vh[t] = e); + } + t(3, 7), + t(8, 1), + t(9, 2), + t(13, 3), + t(16, 4), + t(17, 5), + t(18, 6), + t(19, 7), + t(20, 8), + t(27, 9), + t(32, 10), + t(33, 11), + t(34, 12), + t(35, 13), + t(36, 14), + t(37, 15), + t(38, 16), + t(39, 17), + t(40, 18), + t(45, 19), + t(46, 20), + t(48, 21), + t(49, 22), + t(50, 23), + t(51, 24), + t(52, 25), + t(53, 26), + t(54, 27), + t(55, 28), + t(56, 29), + t(57, 30), + t(65, 31), + t(66, 32), + t(67, 33), + t(68, 34), + t(69, 35), + t(70, 36), + t(71, 37), + t(72, 38), + t(73, 39), + t(74, 40), + t(75, 41), + t(76, 42), + t(77, 43), + t(78, 44), + t(79, 45), + t(80, 46), + t(81, 47), + t(82, 48), + t(83, 49), + t(84, 50), + t(85, 51), + t(86, 52), + t(87, 53), + t(88, 54), + t(89, 55), + t(90, 56), + t(93, 58), + t(96, 93), + t(97, 94), + t(98, 95), + t(99, 96), + t(100, 97), + t(101, 98), + t(102, 99), + t(103, 100), + t(104, 101), + t(105, 102), + t(106, 103), + t(107, 104), + t(108, 105), + t(109, 106), + t(110, 107), + t(111, 108), + t(112, 59), + t(113, 60), + t(114, 61), + t(115, 62), + t(116, 63), + t(117, 64), + t(118, 65), + t(119, 66), + t(120, 67), + t(121, 68), + t(122, 69), + t(123, 70), + t(124, 71), + t(125, 72), + t(126, 73), + t(127, 74), + t(128, 75), + t(129, 76), + t(130, 77), + t(144, 78), + t(145, 79), + t(186, 80), + t(187, 81), + t(188, 82), + t(189, 83), + t(190, 84), + t(191, 85), + t(192, 86), + t(193, 110), + t(194, 111), + t(219, 87), + t(220, 88), + t(221, 89), + t(222, 90), + t(223, 91), + t(226, 92), + t(229, 109), + ah + ? t(91, 57) + : ch + ? (t(59, 80), t(107, 81), t(109, 83), tt.d && t(224, 57)) + : dh && (t(91, 57), tt.d ? t(93, 57) : t(92, 57)); + })(); + var bh = tt.d ? 256 : 2048, + wh = tt.d ? 2048 : 256, + Ch = (function () { + function e(e) { + this._standardKeyboardEventBrand = !0; + var t = e; + (this.browserEvent = t), + (this.target = t.target), + (this.ctrlKey = t.ctrlKey), + (this.shiftKey = t.shiftKey), + (this.altKey = t.altKey), + (this.metaKey = t.metaKey), + (this.keyCode = (function (e) { + if (e.charCode) { + var t = String.fromCharCode(e.charCode).toUpperCase(); + return ur.fromString(t); + } + return yh[e.keyCode] || 0; + })(t)), + (this.code = t.code), + (this.ctrlKey = this.ctrlKey || 5 === this.keyCode), + (this.altKey = this.altKey || 6 === this.keyCode), + (this.shiftKey = this.shiftKey || 4 === this.keyCode), + (this.metaKey = this.metaKey || 57 === this.keyCode), + (this._asKeybinding = this._computeKeybinding()), + (this._asRuntimeKeybinding = this._computeRuntimeKeybinding()); + } + return ( + (e.prototype.preventDefault = function () { + this.browserEvent && + this.browserEvent.preventDefault && + this.browserEvent.preventDefault(); + }), + (e.prototype.stopPropagation = function () { + this.browserEvent && + this.browserEvent.stopPropagation && + this.browserEvent.stopPropagation(); + }), + (e.prototype.toKeybinding = function () { + return this._asRuntimeKeybinding; + }), + (e.prototype.equals = function (e) { + return this._asKeybinding === e; + }), + (e.prototype._computeKeybinding = function () { + var e = 0; + 5 !== this.keyCode && + 4 !== this.keyCode && + 6 !== this.keyCode && + 57 !== this.keyCode && + (e = this.keyCode); + var t = 0; + return ( + this.ctrlKey && (t |= bh), + this.altKey && (t |= 512), + this.shiftKey && (t |= 1024), + this.metaKey && (t |= wh), + (t |= e) + ); + }), + (e.prototype._computeRuntimeKeybinding = function () { + var e = 0; + return ( + 5 !== this.keyCode && + 4 !== this.keyCode && + 6 !== this.keyCode && + 57 !== this.keyCode && + (e = this.keyCode), + new br(this.ctrlKey, this.shiftKey, this.altKey, this.metaKey, e) + ); + }), + e + ); + })(), + Sh = !1, + xh = null; + function Lh(e) { + if (!e.parent || e.parent === e) return null; + try { + var t = e.location, + n = e.parent.location; + if ( + t.protocol !== n.protocol || + t.hostname !== n.hostname || + t.port !== n.port + ) + return (Sh = !0), null; + } catch (e) { + return (Sh = !0), null; + } + return e.parent; + } + function kh(e, t) { + for ( + var n, + r = e.document.getElementsByTagName('iframe'), + i = 0, + o = r.length; + i < o; + i++ + ) + if ((n = r[i]).contentWindow === t) return n; + return null; + } + var Mh, + Dh = (function () { + function e() {} + return ( + (e.getSameOriginWindowChain = function () { + if (!xh) { + xh = []; + var e, + t = window; + do { + (e = Lh(t)) + ? xh.push({ window: t, iframeElement: kh(e, t) }) + : xh.push({ window: t, iframeElement: null }), + (t = e); + } while (t); + } + return xh.slice(0); + }), + (e.hasDifferentOriginAncestor = function () { + return xh || this.getSameOriginWindowChain(), Sh; + }), + (e.getPositionOfChildWindowRelativeToAncestorWindow = function ( + e, + t + ) { + if (!t || e === t) return { top: 0, left: 0 }; + for ( + var n = 0, r = 0, i = 0, o = this.getSameOriginWindowChain(); + i < o.length; + i++ + ) { + var s = o[i]; + if (s.window === t) break; + if (!s.iframeElement) break; + var a = s.iframeElement.getBoundingClientRect(); + (n += a.top), (r += a.left); + } + return { top: n, left: r }; + }), + e + ); + })(), + Eh = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Th = (function () { + function e(e) { + (this.timestamp = Date.now()), + (this.browserEvent = e), + (this.leftButton = 0 === e.button), + (this.middleButton = 1 === e.button), + (this.rightButton = 2 === e.button), + (this.target = e.target), + (this.detail = e.detail || 1), + 'dblclick' === e.type && (this.detail = 2), + (this.ctrlKey = e.ctrlKey), + (this.shiftKey = e.shiftKey), + (this.altKey = e.altKey), + (this.metaKey = e.metaKey), + 'number' == typeof e.pageX + ? ((this.posx = e.pageX), (this.posy = e.pageY)) + : ((this.posx = + e.clientX + + document.body.scrollLeft + + document.documentElement.scrollLeft), + (this.posy = + e.clientY + + document.body.scrollTop + + document.documentElement.scrollTop)); + var t = Dh.getPositionOfChildWindowRelativeToAncestorWindow( + self, + e.view + ); + (this.posx -= t.left), (this.posy -= t.top); + } + return ( + (e.prototype.preventDefault = function () { + this.browserEvent.preventDefault && + this.browserEvent.preventDefault(); + }), + (e.prototype.stopPropagation = function () { + this.browserEvent.stopPropagation && + this.browserEvent.stopPropagation(); + }), + e + ); + })(), + Nh = + ((function (e) { + function t(t) { + var n = e.call(this, t) || this; + return (n.dataTransfer = t.dataTransfer), n; + } + Eh(t, e); + })(Th), + (function () { + function e(e, t, n) { + if ( + (void 0 === t && (t = 0), + void 0 === n && (n = 0), + (this.browserEvent = e || null), + (this.target = e + ? e.target || e.targetNode || e.srcElement + : null), + (this.deltaY = n), + (this.deltaX = t), + e) + ) + if ('wheel' === e.type) { + var r = e; + r.deltaMode === r.DOM_DELTA_LINE + ? ((this.deltaY = -e.deltaY), (this.deltaX = -e.deltaX)) + : ((this.deltaY = -e.deltaY / 40), + (this.deltaX = -e.deltaX / 40)); + } else { + var i = e, + o = e; + void 0 !== i.wheelDeltaY + ? (this.deltaY = i.wheelDeltaY / 120) + : void 0 !== o.VERTICAL_AXIS && + o.axis === o.VERTICAL_AXIS && + (this.deltaY = -o.detail / 3), + void 0 !== i.wheelDeltaX + ? fh && tt.g + ? (this.deltaX = -i.wheelDeltaX / 120) + : (this.deltaX = i.wheelDeltaX / 120) + : void 0 !== o.HORIZONTAL_AXIS && + o.axis === o.HORIZONTAL_AXIS && + (this.deltaX = -e.detail / 3), + 0 === this.deltaY && + 0 === this.deltaX && + e.wheelDelta && + (this.deltaY = e.wheelDelta / 120); + } + } + return ( + (e.prototype.preventDefault = function () { + this.browserEvent && + this.browserEvent.preventDefault && + this.browserEvent.preventDefault(); + }), + (e.prototype.stopPropagation = function () { + this.browserEvent && + this.browserEvent.stopPropagation && + this.browserEvent.stopPropagation(); + }), + e + ); + })()); + !(function (e) { + (e.inMemory = 'inmemory'), + (e.vscode = 'vscode'), + (e.internal = 'private'), + (e.walkThrough = 'walkThrough'), + (e.walkThroughSnippet = 'walkThroughSnippet'), + (e.http = 'http'), + (e.https = 'https'), + (e.file = 'file'), + (e.mailto = 'mailto'), + (e.untitled = 'untitled'), + (e.data = 'data'), + (e.command = 'command'), + (e.vscodeRemote = 'vscode-remote'), + (e.vscodeRemoteResource = 'vscode-remote-resource'), + (e.userData = 'vscode-userdata'); + })(Mh || (Mh = {})); + var Oh = new ((function () { + function e() { + (this._hosts = Object.create(null)), + (this._ports = Object.create(null)), + (this._connectionTokens = Object.create(null)), + (this._preferredWebSchema = 'http'); + } + return ( + (e.prototype.setPreferredWebSchema = function (e) { + this._preferredWebSchema = e; + }), + (e.prototype.rewrite = function (e, t) { + var n = this._hosts[e], + r = this._ports[e], + i = this._connectionTokens[e]; + return dt.from({ + scheme: tt.f ? this._preferredWebSchema : Mh.vscodeRemoteResource, + authority: n + ':' + r, + path: '/vscode-remote-resource', + query: + 'path=' + + encodeURIComponent(t) + + '&tkn=' + + encodeURIComponent(i), + }); + }), + e + ); + })())(), + Ah = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Ih = function () { + return (Ih = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }; + function Ph(e) { + for (; e.firstChild; ) e.removeChild(e.firstChild); + } + function Rh(e) { + e.parentNode && e.parentNode.removeChild(e); + } + var Fh = new ((function () { + function e() { + (this._lastStart = -1), (this._lastEnd = -1); + } + return ( + (e.prototype._findClassName = function (e, t) { + var n = e.className; + if (n) { + t = t.trim(); + var r = n.length, + i = t.length; + if (0 !== i) + if (r < i) this._lastStart = -1; + else { + if (n === t) + return (this._lastStart = 0), void (this._lastEnd = r); + for (var o, s = -1; (s = n.indexOf(t, s + 1)) >= 0; ) { + if ( + ((o = s + i), + (0 === s || 32 === n.charCodeAt(s - 1)) && + 32 === n.charCodeAt(o)) + ) + return ( + (this._lastStart = s), void (this._lastEnd = o + 1) + ); + if (s > 0 && 32 === n.charCodeAt(s - 1) && o === r) + return ( + (this._lastStart = s - 1), void (this._lastEnd = o) + ); + if (0 === s && o === r) + return (this._lastStart = 0), void (this._lastEnd = o); + } + this._lastStart = -1; + } + else this._lastStart = -1; + } else this._lastStart = -1; + }), + (e.prototype.hasClass = function (e, t) { + return this._findClassName(e, t), -1 !== this._lastStart; + }), + (e.prototype.addClasses = function (e) { + for (var t = this, n = [], r = 1; r < arguments.length; r++) + n[r - 1] = arguments[r]; + n.forEach(function (n) { + return n.split(' ').forEach(function (n) { + return t.addClass(e, n); + }); + }); + }), + (e.prototype.addClass = function (e, t) { + e.className + ? (this._findClassName(e, t), + -1 === this._lastStart && (e.className = e.className + ' ' + t)) + : (e.className = t); + }), + (e.prototype.removeClass = function (e, t) { + this._findClassName(e, t), + -1 !== this._lastStart && + (e.className = + e.className.substring(0, this._lastStart) + + e.className.substring(this._lastEnd)); + }), + (e.prototype.removeClasses = function (e) { + for (var t = this, n = [], r = 1; r < arguments.length; r++) + n[r - 1] = arguments[r]; + n.forEach(function (n) { + return n.split(' ').forEach(function (n) { + return t.removeClass(e, n); + }); + }); + }), + (e.prototype.toggleClass = function (e, t, n) { + this._findClassName(e, t), + -1 === this._lastStart || + (void 0 !== n && n) || + this.removeClass(e, t), + -1 !== this._lastStart || + (void 0 !== n && !n) || + this.addClass(e, t); + }), + e + ); + })())(), + Yh = new ((function () { + function e() {} + return ( + (e.prototype.hasClass = function (e, t) { + return Boolean(t) && e.classList && e.classList.contains(t); + }), + (e.prototype.addClasses = function (e) { + for (var t = this, n = [], r = 1; r < arguments.length; r++) + n[r - 1] = arguments[r]; + n.forEach(function (n) { + return n.split(' ').forEach(function (n) { + return t.addClass(e, n); + }); + }); + }), + (e.prototype.addClass = function (e, t) { + t && e.classList && e.classList.add(t); + }), + (e.prototype.removeClass = function (e, t) { + t && e.classList && e.classList.remove(t); + }), + (e.prototype.removeClasses = function (e) { + for (var t = this, n = [], r = 1; r < arguments.length; r++) + n[r - 1] = arguments[r]; + n.forEach(function (n) { + return n.split(' ').forEach(function (n) { + return t.removeClass(e, n); + }); + }); + }), + (e.prototype.toggleClass = function (e, t, n) { + e.classList && e.classList.toggle(t, n); + }), + e + ); + })())(), + jh = ah ? Fh : Yh, + Bh = jh.hasClass.bind(jh), + Wh = jh.addClass.bind(jh), + Hh = jh.addClasses.bind(jh), + Vh = jh.removeClass.bind(jh), + zh = jh.removeClasses.bind(jh), + Uh = jh.toggleClass.bind(jh), + qh = (function () { + function e(e, t, n, r) { + (this._node = e), + (this._type = t), + (this._handler = n), + (this._useCapture = r || !1), + this._node.addEventListener( + this._type, + this._handler, + this._useCapture + ); + } + return ( + (e.prototype.dispose = function () { + this._handler && + (this._node.removeEventListener( + this._type, + this._handler, + this._useCapture + ), + (this._node = null), + (this._handler = null)); + }), + e + ); + })(); + function Kh(e, t, n, r) { + return new qh(e, t, n, r); + } + var Gh = function (e, t, n, r) { + var i = n; + return ( + 'click' === t || 'mousedown' === t + ? (i = (function (e) { + return function (t) { + return e(new Th(t)); + }; + })(n)) + : ('keydown' !== t && 'keypress' !== t && 'keyup' !== t) || + (i = (function (e) { + return function (t) { + return e(new Ch(t)); + }; + })(n)), + Kh(e, t, i, r) + ); + }; + function $h(e, t) { + return Kh(e, 'mouseout', function (n) { + for (var r = n.relatedTarget || n.target; r && r !== e; ) + r = r.parentNode; + r !== e && t(n); + }); + } + var Zh, + Xh, + Jh = null; + var Qh, + ef, + tf, + nf, + rf, + of = (function () { + function e(e, t) { + void 0 === t && (t = 0), + (this._runner = e), + (this.priority = t), + (this._canceled = !1); + } + return ( + (e.prototype.dispose = function () { + this._canceled = !0; + }), + (e.prototype.execute = function () { + if (!this._canceled) + try { + this._runner(); + } catch (e) { + qe(e); + } + }), + (e.sort = function (e, t) { + return t.priority - e.priority; + }), + e + ); + })(); + (Qh = []), + (ef = null), + (tf = !1), + (nf = !1), + (rf = function () { + for (tf = !1, ef = Qh, Qh = [], nf = !0; ef.length > 0; ) + ef.sort(of.sort), ef.shift().execute(); + nf = !1; + }), + (Xh = function (e, t) { + void 0 === t && (t = 0); + var n, + r = new of(e, t); + return ( + Qh.push(r), + tf || + ((tf = !0), + (n = rf), + Jh || + (Jh = + self.requestAnimationFrame || + self.msRequestAnimationFrame || + self.webkitRequestAnimationFrame || + self.mozRequestAnimationFrame || + self.oRequestAnimationFrame || + function (e) { + return setTimeout(function () { + return e(new Date().getTime()); + }, 0); + }), + Jh.call(self, n)), + r + ); + }), + (Zh = function (e, t) { + if (nf) { + var n = new of(e, t); + return ef.push(n), n; + } + return Xh(e, t); + }); + var sf = 16, + af = function (e, t) { + return t; + }, + uf = (function (e) { + function t(t, n, r, i, o) { + void 0 === i && (i = af), void 0 === o && (o = sf); + var s = e.call(this) || this, + a = null, + u = 0, + l = s._register(new Ts()), + c = function () { + (u = new Date().getTime()), r(a), (a = null); + }; + return ( + s._register( + Kh(t, n, function (e) { + a = i(a, e); + var t = new Date().getTime() - u; + t >= o ? (l.cancel(), c()) : l.setIfNotSet(c, o - t); + }) + ), + s + ); + } + return Ah(t, e), t; + })(Rt); + function lf(e, t, n, r, i) { + return new uf(e, t, n, r, i); + } + function cf(e) { + return document.defaultView.getComputedStyle(e, null); + } + var df = (function () { + function e() {} + return ( + (e.convertToPixels = function (e, t) { + return parseFloat(t) || 0; + }), + (e.getDimension = function (t, n, r) { + var i = cf(t), + o = '0'; + return ( + i && + (o = i.getPropertyValue + ? i.getPropertyValue(n) + : i.getAttribute(r)), + e.convertToPixels(t, o) + ); + }), + (e.getBorderLeftWidth = function (t) { + return e.getDimension(t, 'border-left-width', 'borderLeftWidth'); + }), + (e.getBorderRightWidth = function (t) { + return e.getDimension(t, 'border-right-width', 'borderRightWidth'); + }), + (e.getBorderTopWidth = function (t) { + return e.getDimension(t, 'border-top-width', 'borderTopWidth'); + }), + (e.getBorderBottomWidth = function (t) { + return e.getDimension(t, 'border-bottom-width', 'borderBottomWidth'); + }), + (e.getPaddingLeft = function (t) { + return e.getDimension(t, 'padding-left', 'paddingLeft'); + }), + (e.getPaddingRight = function (t) { + return e.getDimension(t, 'padding-right', 'paddingRight'); + }), + (e.getPaddingTop = function (t) { + return e.getDimension(t, 'padding-top', 'paddingTop'); + }), + (e.getPaddingBottom = function (t) { + return e.getDimension(t, 'padding-bottom', 'paddingBottom'); + }), + (e.getMarginLeft = function (t) { + return e.getDimension(t, 'margin-left', 'marginLeft'); + }), + (e.getMarginTop = function (t) { + return e.getDimension(t, 'margin-top', 'marginTop'); + }), + (e.getMarginRight = function (t) { + return e.getDimension(t, 'margin-right', 'marginRight'); + }), + (e.getMarginBottom = function (t) { + return e.getDimension(t, 'margin-bottom', 'marginBottom'); + }), + e + ); + })(); + function hf(e) { + for ( + var t = e.offsetParent, n = e.offsetTop, r = e.offsetLeft; + null !== (e = e.parentNode) && + e !== document.body && + e !== document.documentElement; + + ) { + n -= e.scrollTop; + var i = cf(e); + i && (r -= 'rtl' !== i.direction ? e.scrollLeft : -e.scrollLeft), + e === t && + ((r += df.getBorderLeftWidth(e)), + (n += df.getBorderTopWidth(e)), + (n += e.offsetTop), + (r += e.offsetLeft), + (t = e.offsetParent)); + } + return { left: r, top: n }; + } + function ff(e) { + var t = e.getBoundingClientRect(); + return { + left: t.left + pf.scrollX, + top: t.top + pf.scrollY, + width: t.width, + height: t.height, + }; + } + var pf = new ((function () { + function e() {} + return ( + Object.defineProperty(e.prototype, 'scrollX', { + get: function () { + return 'number' == typeof window.scrollX + ? window.scrollX + : document.body.scrollLeft + document.documentElement.scrollLeft; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'scrollY', { + get: function () { + return 'number' == typeof window.scrollY + ? window.scrollY + : document.body.scrollTop + document.documentElement.scrollTop; + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })())(); + function gf(e) { + var t = df.getMarginLeft(e) + df.getMarginRight(e); + return e.offsetWidth + t; + } + function mf(e) { + var t = df.getBorderLeftWidth(e) + df.getBorderRightWidth(e), + n = df.getPaddingLeft(e) + df.getPaddingRight(e); + return e.offsetWidth - t - n; + } + function _f(e) { + var t = df.getMarginTop(e) + df.getMarginBottom(e); + return e.offsetHeight + t; + } + function yf(e, t) { + for (; e; ) { + if (e === t) return !0; + e = e.parentNode; + } + return !1; + } + function vf(e) { + void 0 === e && (e = document.getElementsByTagName('head')[0]); + var t = document.createElement('style'); + return (t.type = 'text/css'), (t.media = 'screen'), e.appendChild(t), t; + } + var bf = null; + function wf() { + return bf || (bf = vf()), bf; + } + var Cf = { + CLICK: 'click', + DBLCLICK: 'dblclick', + MOUSE_UP: 'mouseup', + MOUSE_DOWN: 'mousedown', + MOUSE_OVER: 'mouseover', + MOUSE_MOVE: 'mousemove', + MOUSE_OUT: 'mouseout', + MOUSE_ENTER: 'mouseenter', + MOUSE_LEAVE: 'mouseleave', + CONTEXT_MENU: 'contextmenu', + WHEEL: 'wheel', + KEY_DOWN: 'keydown', + KEY_PRESS: 'keypress', + KEY_UP: 'keyup', + LOAD: 'load', + BEFORE_UNLOAD: 'beforeunload', + UNLOAD: 'unload', + ABORT: 'abort', + ERROR: 'error', + RESIZE: 'resize', + SCROLL: 'scroll', + FULLSCREEN_CHANGE: 'fullscreenchange', + WK_FULLSCREEN_CHANGE: 'webkitfullscreenchange', + SELECT: 'select', + CHANGE: 'change', + SUBMIT: 'submit', + RESET: 'reset', + FOCUS: 'focus', + FOCUS_IN: 'focusin', + FOCUS_OUT: 'focusout', + BLUR: 'blur', + INPUT: 'input', + STORAGE: 'storage', + DRAG_START: 'dragstart', + DRAG: 'drag', + DRAG_ENTER: 'dragenter', + DRAG_LEAVE: 'dragleave', + DRAG_OVER: 'dragover', + DROP: 'drop', + DRAG_END: 'dragend', + ANIMATION_START: dh ? 'webkitAnimationStart' : 'animationstart', + ANIMATION_END: dh ? 'webkitAnimationEnd' : 'animationend', + ANIMATION_ITERATION: dh + ? 'webkitAnimationIteration' + : 'animationiteration', + }, + Sf = { + stop: function (e, t) { + e.preventDefault ? e.preventDefault() : (e.returnValue = !1), + t && + (e.stopPropagation ? e.stopPropagation() : (e.cancelBubble = !0)); + }, + }; + var xf = (function (e) { + function t(t) { + var n = e.call(this) || this; + (n._onDidFocus = n._register(new Gt())), + (n.onDidFocus = n._onDidFocus.event), + (n._onDidBlur = n._register(new Gt())), + (n.onDidBlur = n._onDidBlur.event); + var r = yf(document.activeElement, t), + i = !1; + return ( + n._register( + _h( + t, + Cf.FOCUS, + !0 + )(function () { + (i = !1), r || ((r = !0), n._onDidFocus.fire()); + }) + ), + n._register( + _h( + t, + Cf.BLUR, + !0 + )(function () { + r && + ((i = !0), + window.setTimeout(function () { + i && ((i = !1), (r = !1), n._onDidBlur.fire()); + }, 0)); + }) + ), + n + ); + } + return Ah(t, e), t; + })(Rt); + function Lf(e) { + return new xf(e); + } + function kf(e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + return ( + t.forEach(function (t) { + return e.appendChild(t); + }), + t[t.length - 1] + ); + } + var Mf, + Df = /([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/; + function Ef(e, t, n) { + for (var r = [], i = 3; i < arguments.length; i++) + r[i - 3] = arguments[i]; + var o = Df.exec(t); + if (!o) throw new Error('Bad use of emmet'); + n = Ih({}, n || {}); + var s, + a, + u = o[1] || 'div'; + return ( + (s = + e !== Mf.HTML + ? document.createElementNS(e, u) + : document.createElement(u)), + o[3] && (s.id = o[3]), + o[4] && (s.className = o[4].replace(/\./g, ' ').trim()), + Object.keys(n).forEach(function (e) { + var t = n[e]; + /^on\w+$/.test(e) + ? (s[e] = t) + : 'selected' === e + ? t && s.setAttribute(e, 'true') + : s.setAttribute(e, t); + }), + ((a = r), + a.filter(function (e) { + return !!e; + })).forEach(function (e) { + e instanceof Node + ? s.appendChild(e) + : s.appendChild(document.createTextNode(e)); + }), + s + ); + } + function Tf(e, t) { + for (var n = [], r = 2; r < arguments.length; r++) + n[r - 2] = arguments[r]; + return Ef.apply(void 0, [Mf.HTML, e, t].concat(n)); + } + function Nf() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + for (var n = 0, r = e; n < r.length; n++) { + var i = r[n]; + (i.style.display = 'none'), i.setAttribute('aria-hidden', 'true'); + } + } + function Of(e) { + if (e && e.hasAttribute('tabIndex')) { + if (document.activeElement === e) { + var t = (function (e, t) { + for (; e; ) { + if (e instanceof HTMLElement && e.hasAttribute(t)) return e; + e = e.parentNode; + } + return null; + })(e.parentElement, 'tabIndex'); + t && t.focus(); + } + e.removeAttribute('tabindex'); + } + } + function Af(e) { + return Array.prototype.slice.call(document.getElementsByTagName(e), 0); + } + function If(e) { + var t = window.devicePixelRatio * e; + return Math.max(1, Math.floor(t)) / window.devicePixelRatio; + } + function Pf(e) { + if (tt.e || mh) window.open(e); + else { + var t = window.open(); + t && ((t.opener = null), (t.location.href = e)); + } + } + function Rf(e) { + return e + ? "url('" + + (function (e) { + return e && Mh.vscodeRemote === e.scheme + ? Oh.rewrite(e.authority, e.path) + : e; + })(e) + .toString(!0) + .replace(/'/g, '%27') + + "')" + : "url('')"; + } + !(function (e) { + (e.HTML = 'http://www.w3.org/1999/xhtml'), + (e.SVG = 'http://www.w3.org/2000/svg'); + })(Mf || (Mf = {})), + (Tf.SVG = function (e, t) { + for (var n = [], r = 2; r < arguments.length; r++) + n[r - 2] = arguments[r]; + return Ef.apply(void 0, [Mf.SVG, e, t].concat(n)); + }), + Oh.setPreferredWebSchema( + /^https:/.test(window.location.href) ? 'https' : 'http' + ); + n(321); + var Ff = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Yf = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + Ff(t, e), + (t.prototype.onclick = function (e, t) { + this._register( + Kh(e, Cf.CLICK, function (e) { + return t(new Th(e)); + }) + ); + }), + (t.prototype.onmousedown = function (e, t) { + this._register( + Kh(e, Cf.MOUSE_DOWN, function (e) { + return t(new Th(e)); + }) + ); + }), + (t.prototype.onmouseover = function (e, t) { + this._register( + Kh(e, Cf.MOUSE_OVER, function (e) { + return t(new Th(e)); + }) + ); + }), + (t.prototype.onnonbubblingmouseout = function (e, t) { + this._register( + $h(e, function (e) { + return t(new Th(e)); + }) + ); + }), + (t.prototype.onkeydown = function (e, t) { + this._register( + Kh(e, Cf.KEY_DOWN, function (e) { + return t(new Ch(e)); + }) + ); + }), + (t.prototype.onkeyup = function (e, t) { + this._register( + Kh(e, Cf.KEY_UP, function (e) { + return t(new Ch(e)); + }) + ); + }), + (t.prototype.oninput = function (e, t) { + this._register(Kh(e, Cf.INPUT, t)); + }), + (t.prototype.onblur = function (e, t) { + this._register(Kh(e, Cf.BLUR, t)); + }), + (t.prototype.onfocus = function (e, t) { + this._register(Kh(e, Cf.FOCUS, t)); + }), + (t.prototype.onchange = function (e, t) { + this._register(Kh(e, Cf.CHANGE, t)); + }), + t + ); + })(Rt), + jf = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Bf = { + inputActiveOptionBorder: Nu.fromHex('#007ACC00'), + inputActiveOptionBackground: Nu.fromHex('#0E639C50'), + }, + Wf = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._onChange = n._register(new Gt())), + (n.onChange = n._onChange.event), + (n._onKeyDown = n._register(new Gt())), + (n.onKeyDown = n._onKeyDown.event), + (n._opts = $r(t)), + Xr(n._opts, Bf, !1), + (n._checked = n._opts.isChecked), + (n.domNode = document.createElement('div')), + (n.domNode.title = n._opts.title), + (n.domNode.className = + 'monaco-custom-checkbox ' + + (n._opts.actionClassName || '') + + ' ' + + (n._checked ? 'checked' : 'unchecked')), + (n.domNode.tabIndex = 0), + n.domNode.setAttribute('role', 'checkbox'), + n.domNode.setAttribute('aria-checked', String(n._checked)), + n.domNode.setAttribute('aria-label', n._opts.title), + n.applyStyles(), + n.onclick(n.domNode, function (e) { + (n.checked = !n._checked), + n._onChange.fire(!1), + e.preventDefault(); + }), + n.onkeydown(n.domNode, function (e) { + if (10 === e.keyCode || 3 === e.keyCode) + return ( + (n.checked = !n._checked), + n._onChange.fire(!0), + void e.preventDefault() + ); + n._onKeyDown.fire(e); + }), + n + ); + } + return ( + jf(t, e), + (t.prototype.focus = function () { + this.domNode.focus(); + }), + Object.defineProperty(t.prototype, 'checked', { + get: function () { + return this._checked; + }, + set: function (e) { + (this._checked = e), + this.domNode.setAttribute( + 'aria-checked', + String(this._checked) + ), + this._checked + ? this.domNode.classList.add('checked') + : this.domNode.classList.remove('checked'), + this.applyStyles(); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.width = function () { + return 22; + }), + (t.prototype.style = function (e) { + e.inputActiveOptionBorder && + (this._opts.inputActiveOptionBorder = e.inputActiveOptionBorder), + e.inputActiveOptionBackground && + (this._opts.inputActiveOptionBackground = + e.inputActiveOptionBackground), + this.applyStyles(); + }), + (t.prototype.applyStyles = function () { + this.domNode && + ((this.domNode.style.borderColor = + this._checked && this._opts.inputActiveOptionBorder + ? this._opts.inputActiveOptionBorder.toString() + : 'transparent'), + (this.domNode.style.backgroundColor = + this._checked && this._opts.inputActiveOptionBackground + ? this._opts.inputActiveOptionBackground.toString() + : 'transparent')); + }), + (t.prototype.enable = function () { + (this.domNode.tabIndex = 0), + this.domNode.setAttribute('aria-disabled', String(!1)); + }), + (t.prototype.disable = function () { + Of(this.domNode), + this.domNode.setAttribute('aria-disabled', String(!0)); + }), + t + ); + })(Yf), + Hf = + (n(322), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + Vf = De('caseDescription', 'Match Case'), + zf = De('wordsDescription', 'Match Whole Word'), + Uf = De('regexDescription', 'Use Regular Expression'), + qf = (function (e) { + function t(t) { + return ( + e.call(this, { + actionClassName: 'monaco-case-sensitive', + title: Vf + t.appendTitle, + isChecked: t.isChecked, + inputActiveOptionBorder: t.inputActiveOptionBorder, + inputActiveOptionBackground: t.inputActiveOptionBackground, + }) || this + ); + } + return Hf(t, e), t; + })(Wf), + Kf = (function (e) { + function t(t) { + return ( + e.call(this, { + actionClassName: 'monaco-whole-word', + title: zf + t.appendTitle, + isChecked: t.isChecked, + inputActiveOptionBorder: t.inputActiveOptionBorder, + inputActiveOptionBackground: t.inputActiveOptionBackground, + }) || this + ); + } + return Hf(t, e), t; + })(Wf), + Gf = (function (e) { + function t(t) { + return ( + e.call(this, { + actionClassName: 'monaco-regex', + title: Uf + t.appendTitle, + isChecked: t.isChecked, + inputActiveOptionBorder: t.inputActiveOptionBorder, + inputActiveOptionBackground: t.inputActiveOptionBackground, + }) || this + ); + } + return Hf(t, e), t; + })(Wf), + $f = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Zf = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + (o._hideSoon = o._register( + new Os(function () { + return o._hide(); + }, 2e3) + )), + (o._isVisible = !1), + (o._editor = t), + (o._state = n), + (o._keybindingService = r), + (o._domNode = document.createElement('div')), + (o._domNode.className = 'findOptionsWidget'), + (o._domNode.style.display = 'none'), + (o._domNode.style.top = '10px'), + o._domNode.setAttribute('role', 'presentation'), + o._domNode.setAttribute('aria-hidden', 'true'); + var s = i.getTheme().getColor(lc), + a = i.getTheme().getColor(cc); + return ( + (o.caseSensitive = o._register( + new qf({ + appendTitle: o._keybindingLabelFor( + nh.ToggleCaseSensitiveCommand + ), + isChecked: o._state.matchCase, + inputActiveOptionBorder: s, + inputActiveOptionBackground: a, + }) + )), + o._domNode.appendChild(o.caseSensitive.domNode), + o._register( + o.caseSensitive.onChange(function () { + o._state.change({ matchCase: o.caseSensitive.checked }, !1); + }) + ), + (o.wholeWords = o._register( + new Kf({ + appendTitle: o._keybindingLabelFor(nh.ToggleWholeWordCommand), + isChecked: o._state.wholeWord, + inputActiveOptionBorder: s, + inputActiveOptionBackground: a, + }) + )), + o._domNode.appendChild(o.wholeWords.domNode), + o._register( + o.wholeWords.onChange(function () { + o._state.change({ wholeWord: o.wholeWords.checked }, !1); + }) + ), + (o.regex = o._register( + new Gf({ + appendTitle: o._keybindingLabelFor(nh.ToggleRegexCommand), + isChecked: o._state.isRegex, + inputActiveOptionBorder: s, + inputActiveOptionBackground: a, + }) + )), + o._domNode.appendChild(o.regex.domNode), + o._register( + o.regex.onChange(function () { + o._state.change({ isRegex: o.regex.checked }, !1); + }) + ), + o._editor.addOverlayWidget(o), + o._register( + o._state.onFindReplaceStateChange(function (e) { + var t = !1; + e.isRegex && ((o.regex.checked = o._state.isRegex), (t = !0)), + e.wholeWord && + ((o.wholeWords.checked = o._state.wholeWord), (t = !0)), + e.matchCase && + ((o.caseSensitive.checked = o._state.matchCase), (t = !0)), + !o._state.isRevealed && t && o._revealTemporarily(); + }) + ), + o._register( + $h(o._domNode, function (e) { + return o._onMouseOut(); + }) + ), + o._register( + Kh(o._domNode, 'mouseover', function (e) { + return o._onMouseOver(); + }) + ), + o._applyTheme(i.getTheme()), + o._register(i.onThemeChange(o._applyTheme.bind(o))), + o + ); + } + return ( + $f(t, e), + (t.prototype._keybindingLabelFor = function (e) { + var t = this._keybindingService.lookupKeybinding(e); + return t ? ' (' + t.getLabel() + ')' : ''; + }), + (t.prototype.dispose = function () { + this._editor.removeOverlayWidget(this), + e.prototype.dispose.call(this); + }), + (t.prototype.getId = function () { + return t.ID; + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.getPosition = function () { + return { preference: 0 }; + }), + (t.prototype.highlightFindOptions = function () { + this._revealTemporarily(); + }), + (t.prototype._revealTemporarily = function () { + this._show(), this._hideSoon.schedule(); + }), + (t.prototype._onMouseOut = function () { + this._hideSoon.schedule(); + }), + (t.prototype._onMouseOver = function () { + this._hideSoon.cancel(); + }), + (t.prototype._show = function () { + this._isVisible || + ((this._isVisible = !0), (this._domNode.style.display = 'block')); + }), + (t.prototype._hide = function () { + this._isVisible && + ((this._isVisible = !1), (this._domNode.style.display = 'none')); + }), + (t.prototype._applyTheme = function (e) { + var t = { + inputActiveOptionBorder: e.getColor(lc), + inputActiveOptionBackground: e.getColor(cc), + }; + this.caseSensitive.style(t), + this.wholeWords.style(t), + this.regex.style(t); + }), + (t.ID = 'editor.contrib.findOptionsWidget'), + t + ); + })(Yf); + function Xf(e, t) { + return 1 === e || (2 !== e && t); + } + Bd(function (e, t) { + var n = e.getColor(rd); + n && + t.addRule( + '.monaco-editor .findOptionsWidget { background-color: ' + n + '; }' + ); + var r = e.getColor(oc); + r && + t.addRule( + '.monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px ' + + r + + '; }' + ); + var i = e.getColor(rc); + i && + t.addRule( + '.monaco-editor .findOptionsWidget { border: 2px solid ' + i + '; }' + ); + }); + var Jf, + Qf, + ep, + tp = (function () { + function e() { + (this._onFindReplaceStateChange = new Gt()), + (this.onFindReplaceStateChange = this._onFindReplaceStateChange.event), + (this._searchString = ''), + (this._replaceString = ''), + (this._isRevealed = !1), + (this._isReplaceRevealed = !1), + (this._isRegex = !1), + (this._isRegexOverride = 0), + (this._wholeWord = !1), + (this._wholeWordOverride = 0), + (this._matchCase = !1), + (this._matchCaseOverride = 0), + (this._preserveCase = !1), + (this._preserveCaseOverride = 0), + (this._searchScope = null), + (this._matchesPosition = 0), + (this._matchesCount = 0), + (this._currentMatch = null); + } + return ( + Object.defineProperty(e.prototype, 'searchString', { + get: function () { + return this._searchString; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'replaceString', { + get: function () { + return this._replaceString; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'isRevealed', { + get: function () { + return this._isRevealed; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'isReplaceRevealed', { + get: function () { + return this._isReplaceRevealed; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'isRegex', { + get: function () { + return Xf(this._isRegexOverride, this._isRegex); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'wholeWord', { + get: function () { + return Xf(this._wholeWordOverride, this._wholeWord); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'matchCase', { + get: function () { + return Xf(this._matchCaseOverride, this._matchCase); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'preserveCase', { + get: function () { + return Xf(this._preserveCaseOverride, this._preserveCase); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'actualIsRegex', { + get: function () { + return this._isRegex; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'actualWholeWord', { + get: function () { + return this._wholeWord; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'actualMatchCase', { + get: function () { + return this._matchCase; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'actualPreserveCase', { + get: function () { + return this._preserveCase; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'searchScope', { + get: function () { + return this._searchScope; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'matchesPosition', { + get: function () { + return this._matchesPosition; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'matchesCount', { + get: function () { + return this._matchesCount; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'currentMatch', { + get: function () { + return this._currentMatch; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.dispose = function () {}), + (e.prototype.changeMatchInfo = function (e, t, n) { + var r = { + moveCursor: !1, + updateHistory: !1, + searchString: !1, + replaceString: !1, + isRevealed: !1, + isReplaceRevealed: !1, + isRegex: !1, + wholeWord: !1, + matchCase: !1, + preserveCase: !1, + searchScope: !1, + matchesPosition: !1, + matchesCount: !1, + currentMatch: !1, + }, + i = !1; + 0 === t && (e = 0), + e > t && (e = t), + this._matchesPosition !== e && + ((this._matchesPosition = e), + (r.matchesPosition = !0), + (i = !0)), + this._matchesCount !== t && + ((this._matchesCount = t), (r.matchesCount = !0), (i = !0)), + void 0 !== n && + (Fr.equalsRange(this._currentMatch, n) || + ((this._currentMatch = n), (r.currentMatch = !0), (i = !0))), + i && this._onFindReplaceStateChange.fire(r); + }), + (e.prototype.change = function (e, t, n) { + void 0 === n && (n = !0); + var r = { + moveCursor: t, + updateHistory: n, + searchString: !1, + replaceString: !1, + isRevealed: !1, + isReplaceRevealed: !1, + isRegex: !1, + wholeWord: !1, + matchCase: !1, + preserveCase: !1, + searchScope: !1, + matchesPosition: !1, + matchesCount: !1, + currentMatch: !1, + }, + i = !1, + o = this.isRegex, + s = this.wholeWord, + a = this.matchCase, + u = this.preserveCase; + void 0 !== e.searchString && + this._searchString !== e.searchString && + ((this._searchString = e.searchString), + (r.searchString = !0), + (i = !0)), + void 0 !== e.replaceString && + this._replaceString !== e.replaceString && + ((this._replaceString = e.replaceString), + (r.replaceString = !0), + (i = !0)), + void 0 !== e.isRevealed && + this._isRevealed !== e.isRevealed && + ((this._isRevealed = e.isRevealed), + (r.isRevealed = !0), + (i = !0)), + void 0 !== e.isReplaceRevealed && + this._isReplaceRevealed !== e.isReplaceRevealed && + ((this._isReplaceRevealed = e.isReplaceRevealed), + (r.isReplaceRevealed = !0), + (i = !0)), + void 0 !== e.isRegex && (this._isRegex = e.isRegex), + void 0 !== e.wholeWord && (this._wholeWord = e.wholeWord), + void 0 !== e.matchCase && (this._matchCase = e.matchCase), + void 0 !== e.preserveCase && + (this._preserveCase = e.preserveCase), + void 0 !== e.searchScope && + (Fr.equalsRange(this._searchScope, e.searchScope) || + ((this._searchScope = e.searchScope), + (r.searchScope = !0), + (i = !0))), + (this._isRegexOverride = + void 0 !== e.isRegexOverride ? e.isRegexOverride : 0), + (this._wholeWordOverride = + void 0 !== e.wholeWordOverride ? e.wholeWordOverride : 0), + (this._matchCaseOverride = + void 0 !== e.matchCaseOverride ? e.matchCaseOverride : 0), + (this._preserveCaseOverride = + void 0 !== e.preserveCaseOverride ? e.preserveCaseOverride : 0), + o !== this.isRegex && ((i = !0), (r.isRegex = !0)), + s !== this.wholeWord && ((i = !0), (r.wholeWord = !0)), + a !== this.matchCase && ((i = !0), (r.matchCase = !0)), + u !== this.preserveCase && ((i = !0), (r.preserveCase = !0)), + i && this._onFindReplaceStateChange.fire(r); + }), + e + ); + })(); + n(323), n(324); + function np(e, t) { + sp(Qf, e, t); + } + function rp(e, t) { + tt.d ? np(e, t) : sp(ep, e, t); + } + var ip = 0, + op = void 0; + function sp(e, t, n) { + if (Jf) { + if (!n) + switch ((op === t ? ip++ : ((op = t), (ip = 0)), ip)) { + case 0: + break; + case 1: + t = De('repeated', '{0} (occurred again)', t); + break; + default: + t = De('repeatedNtimes', '{0} (occurred {1} times)', t, ip); + } + Ph(e), + (e.textContent = t), + (e.style.visibility = 'hidden'), + (e.style.visibility = 'visible'); + } + } + n(325); + function ap(e, t, n) { + var r = null, + i = null; + if ( + ('function' == typeof n.value + ? ((r = 'value'), + 0 !== (i = n.value).length && + console.warn( + 'Memoize should only be used in functions with zero parameters' + )) + : 'function' == typeof n.get && ((r = 'get'), (i = n.get)), + !i) + ) + throw new Error('not supported'); + var o = '$memoize$' + t; + n[r] = function () { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return ( + this.hasOwnProperty(o) || + Object.defineProperty(this, o, { + configurable: !1, + enumerable: !1, + writable: !1, + value: i.apply(this, e), + }), + this[o] + ); + }; + } + var up, + lp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + cp = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }; + !(function (e) { + (e.Tap = '-monaco-gesturetap'), + (e.Change = '-monaco-gesturechange'), + (e.Start = '-monaco-gesturestart'), + (e.End = '-monaco-gesturesend'), + (e.Contextmenu = '-monaco-gesturecontextmenu'); + })(up || (up = {})); + var dp = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t.dispatched = !1), + (t.activeTouches = {}), + (t.handle = null), + (t.targets = []), + t._register( + Kh(document, 'touchstart', function (e) { + return t.onTouchStart(e); + }) + ), + t._register( + Kh(document, 'touchend', function (e) { + return t.onTouchEnd(e); + }) + ), + t._register( + Kh(document, 'touchmove', function (e) { + return t.onTouchMove(e); + }) + ), + t + ); + } + return ( + lp(t, e), + (t.addTarget = function (e) { + t.isTouchDevice() && + (t.INSTANCE || (t.INSTANCE = new t()), + t.INSTANCE.targets.push(e)); + }), + (t.isTouchDevice = function () { + return ( + 'ontouchstart' in window || + navigator.maxTouchPoints > 0 || + window.navigator.msMaxTouchPoints > 0 + ); + }), + (t.prototype.dispose = function () { + this.handle && (this.handle.dispose(), (this.handle = null)), + e.prototype.dispose.call(this); + }), + (t.prototype.onTouchStart = function (e) { + var t = Date.now(); + this.handle && (this.handle.dispose(), (this.handle = null)); + for (var n = 0, r = e.targetTouches.length; n < r; n++) { + var i = e.targetTouches.item(n); + this.activeTouches[i.identifier] = { + id: i.identifier, + initialTarget: i.target, + initialTimeStamp: t, + initialPageX: i.pageX, + initialPageY: i.pageY, + rollingTimestamps: [t], + rollingPageX: [i.pageX], + rollingPageY: [i.pageY], + }; + var o = this.newGestureEvent(up.Start, i.target); + (o.pageX = i.pageX), (o.pageY = i.pageY), this.dispatchEvent(o); + } + this.dispatched && + (e.preventDefault(), e.stopPropagation(), (this.dispatched = !1)); + }), + (t.prototype.onTouchEnd = function (e) { + for ( + var n = Date.now(), + r = Object.keys(this.activeTouches).length, + i = function (i, s) { + var a = e.changedTouches.item(i); + if (!o.activeTouches.hasOwnProperty(String(a.identifier))) + return ( + console.warn('move of an UNKNOWN touch', a), 'continue' + ); + var u = o.activeTouches[a.identifier], + l = Date.now() - u.initialTimeStamp; + if ( + l < t.HOLD_DELAY && + Math.abs(u.initialPageX - Br(u.rollingPageX)) < 30 && + Math.abs(u.initialPageY - Br(u.rollingPageY)) < 30 + ) + ((c = o.newGestureEvent( + up.Tap, + u.initialTarget + )).pageX = Br(u.rollingPageX)), + (c.pageY = Br(u.rollingPageY)), + o.dispatchEvent(c); + else if ( + l >= t.HOLD_DELAY && + Math.abs(u.initialPageX - Br(u.rollingPageX)) < 30 && + Math.abs(u.initialPageY - Br(u.rollingPageY)) < 30 + ) { + var c; + ((c = o.newGestureEvent( + up.Contextmenu, + u.initialTarget + )).pageX = Br(u.rollingPageX)), + (c.pageY = Br(u.rollingPageY)), + o.dispatchEvent(c); + } else if (1 === r) { + var d = Br(u.rollingPageX), + h = Br(u.rollingPageY), + f = Br(u.rollingTimestamps) - u.rollingTimestamps[0], + p = d - u.rollingPageX[0], + g = h - u.rollingPageY[0], + m = o.targets.filter(function (e) { + return ( + u.initialTarget instanceof Node && + e.contains(u.initialTarget) + ); + }); + o.inertia( + m, + n, + Math.abs(p) / f, + p > 0 ? 1 : -1, + d, + Math.abs(g) / f, + g > 0 ? 1 : -1, + h + ); + } + o.dispatchEvent(o.newGestureEvent(up.End, u.initialTarget)), + delete o.activeTouches[a.identifier]; + }, + o = this, + s = 0, + a = e.changedTouches.length; + s < a; + s++ + ) + i(s); + this.dispatched && + (e.preventDefault(), e.stopPropagation(), (this.dispatched = !1)); + }), + (t.prototype.newGestureEvent = function (e, t) { + var n = document.createEvent('CustomEvent'); + return n.initEvent(e, !1, !0), (n.initialTarget = t), n; + }), + (t.prototype.dispatchEvent = function (e) { + var t = this; + this.targets.forEach(function (n) { + e.initialTarget instanceof Node && + n.contains(e.initialTarget) && + (n.dispatchEvent(e), (t.dispatched = !0)); + }); + }), + (t.prototype.inertia = function (e, n, r, i, o, s, a, u) { + var l = this; + this.handle = Xh(function () { + var c = Date.now(), + d = c - n, + h = 0, + f = 0, + p = !0; + (r += t.SCROLL_FRICTION * d), + (s += t.SCROLL_FRICTION * d), + r > 0 && ((p = !1), (h = i * r * d)), + s > 0 && ((p = !1), (f = a * s * d)); + var g = l.newGestureEvent(up.Change); + (g.translationX = h), + (g.translationY = f), + e.forEach(function (e) { + return e.dispatchEvent(g); + }), + p || l.inertia(e, c, r, i, o + h, s, a, u + f); + }); + }), + (t.prototype.onTouchMove = function (e) { + for ( + var t = Date.now(), n = 0, r = e.changedTouches.length; + n < r; + n++ + ) { + var i = e.changedTouches.item(n); + if (this.activeTouches.hasOwnProperty(String(i.identifier))) { + var o = this.activeTouches[i.identifier], + s = this.newGestureEvent(up.Change, o.initialTarget); + (s.translationX = i.pageX - Br(o.rollingPageX)), + (s.translationY = i.pageY - Br(o.rollingPageY)), + (s.pageX = i.pageX), + (s.pageY = i.pageY), + this.dispatchEvent(s), + o.rollingPageX.length > 3 && + (o.rollingPageX.shift(), + o.rollingPageY.shift(), + o.rollingTimestamps.shift()), + o.rollingPageX.push(i.pageX), + o.rollingPageY.push(i.pageY), + o.rollingTimestamps.push(t); + } else console.warn('end of an UNKNOWN touch', i); + } + this.dispatched && + (e.preventDefault(), e.stopPropagation(), (this.dispatched = !1)); + }), + (t.SCROLL_FRICTION = -0.005), + (t.HOLD_DELAY = 700), + cp([ap], t, 'isTouchDevice', null), + t + ); + })(Rt), + hp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + fp = !1, + pp = (function (e) { + function t(t, n, r) { + void 0 === r && (r = {}); + var i = e.call(this) || this; + return ( + (i._state = 3), + (i._onDidEnablementChange = i._register(new Gt())), + (i.onDidEnablementChange = i._onDidEnablementChange.event), + (i._onDidStart = i._register(new Gt())), + (i.onDidStart = i._onDidStart.event), + (i._onDidChange = i._register(new Gt())), + (i.onDidChange = i._onDidChange.event), + (i._onDidReset = i._register(new Gt())), + (i.onDidReset = i._onDidReset.event), + (i._onDidEnd = i._register(new Gt())), + (i.onDidEnd = i._onDidEnd.event), + (i.linkedSash = void 0), + (i.orthogonalStartSashDisposables = i._register(new Pt())), + (i.orthogonalEndSashDisposables = i._register(new Pt())), + (i.el = kf(t, Tf('.monaco-sash'))), + tt.d && Wh(i.el, 'mac'), + i._register(_h(i.el, 'mousedown')(i.onMouseDown, i)), + i._register(_h(i.el, 'dblclick')(i.onMouseDoubleClick, i)), + dp.addTarget(i.el), + i._register(_h(i.el, up.Start)(i.onTouchStart, i)), + gh && Wh(i.el, 'touch'), + i.setOrientation(r.orientation || 0), + (i.hidden = !1), + (i.layoutProvider = n), + (i.orthogonalStartSash = r.orthogonalStartSash), + (i.orthogonalEndSash = r.orthogonalEndSash), + Uh(i.el, 'debug', fp), + i + ); + } + return ( + hp(t, e), + Object.defineProperty(t.prototype, 'state', { + get: function () { + return this._state; + }, + set: function (e) { + this._state !== e && + (Uh(this.el, 'disabled', 0 === e), + Uh(this.el, 'minimum', 1 === e), + Uh(this.el, 'maximum', 2 === e), + (this._state = e), + this._onDidEnablementChange.fire(e)); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'orthogonalStartSash', { + get: function () { + return this._orthogonalStartSash; + }, + set: function (e) { + this.orthogonalStartSashDisposables.clear(), + e + ? (this.orthogonalStartSashDisposables.add( + e.onDidEnablementChange( + this.onOrthogonalStartSashEnablementChange, + this + ) + ), + this.onOrthogonalStartSashEnablementChange(e.state)) + : this.onOrthogonalStartSashEnablementChange(0), + (this._orthogonalStartSash = e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'orthogonalEndSash', { + get: function () { + return this._orthogonalEndSash; + }, + set: function (e) { + this.orthogonalEndSashDisposables.clear(), + e + ? (this.orthogonalEndSashDisposables.add( + e.onDidEnablementChange( + this.onOrthogonalEndSashEnablementChange, + this + ) + ), + this.onOrthogonalEndSashEnablementChange(e.state)) + : this.onOrthogonalEndSashEnablementChange(0), + (this._orthogonalEndSash = e); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.setOrientation = function (e) { + (this.orientation = e), + 1 === this.orientation + ? (Wh(this.el, 'horizontal'), Vh(this.el, 'vertical')) + : (Vh(this.el, 'horizontal'), Wh(this.el, 'vertical')), + this.layoutProvider && this.layout(); + }), + (t.prototype.onMouseDown = function (e) { + var t = this; + Sf.stop(e, !1); + var n = !1; + if (!e.__orthogonalSashEvent) { + var r = this.getOrthogonalSash(e); + r && ((n = !0), (e.__orthogonalSashEvent = !0), r.onMouseDown(e)); + } + if ( + (this.linkedSash && + !e.__linkedSashEvent && + ((e.__linkedSashEvent = !0), this.linkedSash.onMouseDown(e)), + this.state) + ) { + for ( + var i = Af('iframe').concat(Af('webview')), o = 0, s = i; + o < s.length; + o++ + ) { + s[o].style.pointerEvents = 'none'; + } + var a = new Th(e), + u = a.posx, + l = a.posy, + c = a.altKey, + d = { + startX: u, + currentX: u, + startY: l, + currentY: l, + altKey: c, + }; + Wh(this.el, 'active'), this._onDidStart.fire(d); + var h = vf(this.el), + f = function () { + var e = ''; + (e = n + ? 'all-scroll' + : 1 === t.orientation + ? 1 === t.state + ? 's-resize' + : 2 === t.state + ? 'n-resize' + : tt.d + ? 'row-resize' + : 'ns-resize' + : 1 === t.state + ? 'e-resize' + : 2 === t.state + ? 'w-resize' + : tt.d + ? 'col-resize' + : 'ew-resize'), + (h.innerHTML = '* { cursor: ' + e + ' !important; }'); + }, + p = new Pt(); + f(), n || this.onDidEnablementChange(f, null, p); + _h(window, 'mousemove')( + function (e) { + Sf.stop(e, !1); + var n = new Th(e), + r = { + startX: u, + currentX: n.posx, + startY: l, + currentY: n.posy, + altKey: c, + }; + t._onDidChange.fire(r); + }, + null, + p + ), + _h(window, 'mouseup')( + function (e) { + Sf.stop(e, !1), + t.el.removeChild(h), + Vh(t.el, 'active'), + t._onDidEnd.fire(), + p.dispose(); + for (var n = 0, r = i; n < r.length; n++) { + r[n].style.pointerEvents = 'auto'; + } + }, + null, + p + ); + } + }), + (t.prototype.onMouseDoubleClick = function (e) { + var t = this.getOrthogonalSash(e); + t && t._onDidReset.fire(), + this.linkedSash && this.linkedSash._onDidReset.fire(), + this._onDidReset.fire(); + }), + (t.prototype.onTouchStart = function (e) { + var t = this; + Sf.stop(e); + var n = [], + r = e.pageX, + i = e.pageY, + o = e.altKey; + this._onDidStart.fire({ + startX: r, + currentX: r, + startY: i, + currentY: i, + altKey: o, + }), + n.push( + Kh(this.el, up.Change, function (e) { + Oe(e.pageX) && + Oe(e.pageY) && + t._onDidChange.fire({ + startX: r, + currentX: e.pageX, + startY: i, + currentY: e.pageY, + altKey: o, + }); + }) + ), + n.push( + Kh(this.el, up.End, function (e) { + t._onDidEnd.fire(), Ot(n); + }) + ); + }), + (t.prototype.layout = function () { + var e = gh ? 20 : 4; + if (0 === this.orientation) { + var t = this.layoutProvider; + (this.el.style.left = t.getVerticalSashLeft(this) - e / 2 + 'px'), + t.getVerticalSashTop && + (this.el.style.top = t.getVerticalSashTop(this) + 'px'), + t.getVerticalSashHeight && + (this.el.style.height = t.getVerticalSashHeight(this) + 'px'); + } else { + var n = this.layoutProvider; + (this.el.style.top = n.getHorizontalSashTop(this) - e / 2 + 'px'), + n.getHorizontalSashLeft && + (this.el.style.left = n.getHorizontalSashLeft(this) + 'px'), + n.getHorizontalSashWidth && + (this.el.style.width = n.getHorizontalSashWidth(this) + 'px'); + } + }), + (t.prototype.hide = function () { + (this.hidden = !0), + (this.el.style.display = 'none'), + this.el.setAttribute('aria-hidden', 'true'); + }), + (t.prototype.onOrthogonalStartSashEnablementChange = function (e) { + Uh(this.el, 'orthogonal-start', 0 !== e); + }), + (t.prototype.onOrthogonalEndSashEnablementChange = function (e) { + Uh(this.el, 'orthogonal-end', 0 !== e); + }), + (t.prototype.getOrthogonalSash = function (e) { + if (0 === this.orientation) { + if (e.offsetY <= 4) return this.orthogonalStartSash; + if (e.offsetY >= this.el.clientHeight - 4) + return this.orthogonalEndSash; + } else { + if (e.offsetX <= 4) return this.orthogonalStartSash; + if (e.offsetX >= this.el.clientWidth - 4) + return this.orthogonalEndSash; + } + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this.el && + this.el.parentElement && + this.el.parentElement.removeChild(this.el), + (this.el = null); + }), + t + ); + })(Rt); + n(100), n(326); + function gp(e, t) { + void 0 === t && (t = {}); + var n = mp(t); + return ( + (function e(t, n, r) { + var i; + if (2 === n.type) i = document.createTextNode(n.content || ''); + else if (3 === n.type) i = document.createElement('b'); + else if (4 === n.type) i = document.createElement('i'); + else if (5 === n.type && r) { + var o = document.createElement('a'); + (o.href = '#'), + r.disposeables.add( + Gh(o, 'click', function (e) { + r.callback(String(n.index), e); + }) + ), + (i = o); + } else + 7 === n.type + ? (i = document.createElement('br')) + : 1 === n.type && (i = t); + i && t !== i && t.appendChild(i); + i && + Array.isArray(n.children) && + n.children.forEach(function (t) { + e(i, t, r); + }); + })( + n, + (function (e) { + var t = { type: 1, children: [] }, + n = 0, + r = t, + i = [], + o = new _p(e); + for (; !o.eos(); ) { + var s = o.next(), + a = '\\' === s && 0 !== yp(o.peek()); + if ((a && (s = o.next()), a || 0 === yp(s) || s !== o.peek())) + if ('\n' === s) + 2 === r.type && (r = i.pop()), r.children.push({ type: 7 }); + else if (2 !== r.type) { + var u = { type: 2, content: s }; + r.children.push(u), i.push(r), (r = u); + } else r.content += s; + else { + o.advance(), 2 === r.type && (r = i.pop()); + var l = yp(s); + if (r.type === l || (5 === r.type && 6 === l)) r = i.pop(); + else { + var c = { type: l, children: [] }; + 5 === l && ((c.index = n), n++), + r.children.push(c), + i.push(r), + (r = c); + } + } + } + 2 === r.type && (r = i.pop()); + i.length; + return t; + })(e), + t.actionHandler + ), + n + ); + } + function mp(e) { + var t = e.inline ? 'span' : 'div', + n = document.createElement(t); + return e.className && (n.className = e.className), n; + } + var _p = (function () { + function e(e) { + (this.source = e), (this.index = 0); + } + return ( + (e.prototype.eos = function () { + return this.index >= this.source.length; + }), + (e.prototype.next = function () { + var e = this.peek(); + return this.advance(), e; + }), + (e.prototype.peek = function () { + return this.source[this.index]; + }), + (e.prototype.advance = function () { + this.index++; + }), + e + ); + })(); + function yp(e) { + switch (e) { + case '*': + return 3; + case '_': + return 4; + case '[': + return 5; + case ']': + return 6; + default: + return 0; + } + } + n(327); + var vp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + bp = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + (i.options = r), + (i._context = t || i), + (i._action = n), + n instanceof tn && + i._register( + n.onDidChange(function (e) { + i.element && i.handleActionChangeEvent(e); + }) + ), + i + ); + } + return ( + vp(t, e), + (t.prototype.handleActionChangeEvent = function (e) { + void 0 !== e.enabled && this.updateEnabled(), + void 0 !== e.checked && this.updateChecked(), + void 0 !== e.class && this.updateClass(), + void 0 !== e.label && (this.updateLabel(), this.updateTooltip()), + void 0 !== e.tooltip && this.updateTooltip(); + }), + Object.defineProperty(t.prototype, 'actionRunner', { + get: function () { + return this._actionRunner; + }, + set: function (e) { + this._actionRunner = e; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.getAction = function () { + return this._action; + }), + (t.prototype.isEnabled = function () { + return this._action.enabled; + }), + (t.prototype.setActionContext = function (e) { + this._context = e; + }), + (t.prototype.render = function (e) { + var t = this; + (this.element = e), dp.addTarget(e); + var n = this.options && this.options.draggable; + n && (e.draggable = !0), + this._register( + Kh(this.element, up.Tap, function (e) { + return t.onClick(e); + }) + ), + this._register( + Kh(this.element, Cf.MOUSE_DOWN, function (e) { + n || Sf.stop(e, !0), + t._action.enabled && + 0 === e.button && + t.element && + Wh(t.element, 'active'); + }) + ), + this._register( + Kh(this.element, Cf.CLICK, function (e) { + Sf.stop(e, !0), + t.options && t.options.isMenu + ? t.onClick(e) + : tt.h(function () { + return t.onClick(e); + }); + }) + ), + this._register( + Kh(this.element, Cf.DBLCLICK, function (e) { + Sf.stop(e, !0); + }) + ), + [Cf.MOUSE_UP, Cf.MOUSE_OUT].forEach(function (e) { + t._register( + Kh(t.element, e, function (e) { + Sf.stop(e), Vh(t.element, 'active'); + }) + ); + }); + }), + (t.prototype.onClick = function (e) { + var t; + Sf.stop(e, !0), + Pe(this._context) + ? (t = e) + : Ne((t = this._context)) && (t.event = e), + this._actionRunner.run(this._action, t); + }), + (t.prototype.focus = function () { + this.element && (this.element.focus(), Wh(this.element, 'focused')); + }), + (t.prototype.blur = function () { + this.element && (this.element.blur(), Vh(this.element, 'focused')); + }), + (t.prototype.updateEnabled = function () {}), + (t.prototype.updateLabel = function () {}), + (t.prototype.updateTooltip = function () {}), + (t.prototype.updateClass = function () {}), + (t.prototype.updateChecked = function () {}), + (t.prototype.dispose = function () { + this.element && (Rh(this.element), (this.element = void 0)), + e.prototype.dispose.call(this); + }), + t + ); + })(Rt), + wp = (function (e) { + function t(n) { + var r = + e.call(this, t.ID, n, n ? 'separator text' : 'separator') || this; + return (r.checked = !1), (r.radio = !1), (r.enabled = !1), r; + } + return vp(t, e), (t.ID = 'vs.actions.separator'), t; + })(tn), + Cp = (function (e) { + function t(t, n, r) { + void 0 === r && (r = {}); + var i = e.call(this, t, n, r) || this; + return ( + (i.options = r), + (i.options.icon = void 0 !== r.icon && r.icon), + (i.options.label = void 0 === r.label || r.label), + (i.cssClass = ''), + i + ); + } + return ( + vp(t, e), + (t.prototype.render = function (t) { + e.prototype.render.call(this, t), + this.element && + (this.label = kf(this.element, Tf('a.action-label'))), + this._action.id === wp.ID + ? this.label.setAttribute('role', 'presentation') + : this.options.isMenu + ? this.label.setAttribute('role', 'menuitem') + : this.label.setAttribute('role', 'button'), + this.options.label && + this.options.keybinding && + this.element && + (kf( + this.element, + Tf('span.keybinding') + ).textContent = this.options.keybinding), + this.updateClass(), + this.updateLabel(), + this.updateTooltip(), + this.updateEnabled(), + this.updateChecked(); + }), + (t.prototype.focus = function () { + e.prototype.focus.call(this), this.label.focus(); + }), + (t.prototype.updateLabel = function () { + this.options.label && + (this.label.textContent = this.getAction().label); + }), + (t.prototype.updateTooltip = function () { + var e = null; + this.getAction().tooltip + ? (e = this.getAction().tooltip) + : !this.options.label && + this.getAction().label && + this.options.icon && + ((e = this.getAction().label), + this.options.keybinding && + (e = De( + { + key: 'titleLabel', + comment: ['action title', 'action keybinding'], + }, + '{0} ({1})', + e, + this.options.keybinding + ))), + e && (this.label.title = e); + }), + (t.prototype.updateClass = function () { + this.cssClass && zh(this.label, this.cssClass), + this.options.icon + ? ((this.cssClass = this.getAction().class), + Wh(this.label, 'icon'), + this.cssClass && Hh(this.label, this.cssClass), + this.updateEnabled()) + : Vh(this.label, 'icon'); + }), + (t.prototype.updateEnabled = function () { + this.getAction().enabled + ? (this.label.removeAttribute('aria-disabled'), + this.element && Vh(this.element, 'disabled'), + Vh(this.label, 'disabled'), + (this.label.tabIndex = 0)) + : (this.label.setAttribute('aria-disabled', 'true'), + this.element && Wh(this.element, 'disabled'), + Wh(this.label, 'disabled'), + Of(this.label)); + }), + (t.prototype.updateChecked = function () { + this.getAction().checked + ? Wh(this.label, 'checked') + : Vh(this.label, 'checked'); + }), + t + ); + })(bp), + Sp = { + orientation: 0, + context: null, + triggerKeys: { keys: [3, 10], keyDown: !1 }, + }, + xp = (function (e) { + function t(t, n) { + void 0 === n && (n = Sp); + var r, + i, + o = e.call(this) || this; + switch ( + ((o._onDidBlur = o._register(new Gt())), + (o.onDidBlur = o._onDidBlur.event), + (o._onDidCancel = o._register(new Gt())), + (o.onDidCancel = o._onDidCancel.event), + (o._onDidRun = o._register(new Gt())), + (o.onDidRun = o._onDidRun.event), + (o._onDidBeforeRun = o._register(new Gt())), + (o.onDidBeforeRun = o._onDidBeforeRun.event), + (o.options = n), + (o._context = n.context), + o.options.triggerKeys || (o.options.triggerKeys = Sp.triggerKeys), + o.options.actionRunner + ? (o._actionRunner = o.options.actionRunner) + : ((o._actionRunner = new nn()), o._register(o._actionRunner)), + o._register( + o._actionRunner.onDidRun(function (e) { + return o._onDidRun.fire(e); + }) + ), + o._register( + o._actionRunner.onDidBeforeRun(function (e) { + return o._onDidBeforeRun.fire(e); + }) + ), + (o.viewItems = []), + (o.focusedItem = void 0), + (o.domNode = document.createElement('div')), + (o.domNode.className = 'monaco-action-bar'), + !1 !== n.animated && Wh(o.domNode, 'animated'), + o.options.orientation) + ) { + case 0: + (r = 15), (i = 17); + break; + case 1: + (r = 17), (i = 15), (o.domNode.className += ' reverse'); + break; + case 2: + (r = 16), (i = 18), (o.domNode.className += ' vertical'); + break; + case 3: + (r = 18), (i = 16), (o.domNode.className += ' vertical reverse'); + } + return ( + o._register( + Kh(o.domNode, Cf.KEY_DOWN, function (e) { + var t = new Ch(e), + n = !0; + t.equals(r) + ? o.focusPrevious() + : t.equals(i) + ? o.focusNext() + : t.equals(9) + ? o.cancel() + : o.isTriggerKeyEvent(t) + ? o.options.triggerKeys && + o.options.triggerKeys.keyDown && + o.doTrigger(t) + : (n = !1), + n && (t.preventDefault(), t.stopPropagation()); + }) + ), + o._register( + Kh(o.domNode, Cf.KEY_UP, function (e) { + var t = new Ch(e); + o.isTriggerKeyEvent(t) + ? (o.options.triggerKeys && + !o.options.triggerKeys.keyDown && + o.doTrigger(t), + t.preventDefault(), + t.stopPropagation()) + : (t.equals(2) || t.equals(1026)) && o.updateFocusedItem(); + }) + ), + (o.focusTracker = o._register(Lf(o.domNode))), + o._register( + o.focusTracker.onDidBlur(function () { + (document.activeElement !== o.domNode && + yf(document.activeElement, o.domNode)) || + (o._onDidBlur.fire(), (o.focusedItem = void 0)); + }) + ), + o._register( + o.focusTracker.onDidFocus(function () { + return o.updateFocusedItem(); + }) + ), + (o.actionsList = document.createElement('ul')), + (o.actionsList.className = 'actions-container'), + o.actionsList.setAttribute('role', 'toolbar'), + o.options.ariaLabel && + o.actionsList.setAttribute('aria-label', o.options.ariaLabel), + o.domNode.appendChild(o.actionsList), + t.appendChild(o.domNode), + o + ); + } + return ( + vp(t, e), + (t.prototype.isTriggerKeyEvent = function (e) { + var t = !1; + return ( + this.options.triggerKeys && + this.options.triggerKeys.keys.forEach(function (n) { + t = t || e.equals(n); + }), + t + ); + }), + (t.prototype.updateFocusedItem = function () { + for (var e = 0; e < this.actionsList.children.length; e++) { + var t = this.actionsList.children[e]; + if (yf(document.activeElement, t)) { + this.focusedItem = e; + break; + } + } + }), + Object.defineProperty(t.prototype, 'context', { + get: function () { + return this._context; + }, + set: function (e) { + (this._context = e), + this.viewItems.forEach(function (t) { + return t.setActionContext(e); + }); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.getContainer = function () { + return this.domNode; + }), + (t.prototype.push = function (e, t) { + var n = this; + void 0 === t && (t = {}); + var r = Array.isArray(e) ? e : [e], + i = Oe(t.index) ? t.index : null; + r.forEach(function (e) { + var r, + o = document.createElement('li'); + (o.className = 'action-item'), + o.setAttribute('role', 'presentation'), + n._register( + Kh(o, Cf.CONTEXT_MENU, function (e) { + e.preventDefault(), e.stopPropagation(); + }) + ), + n.options.actionViewItemProvider && + (r = n.options.actionViewItemProvider(e)), + r || (r = new Cp(n.context, e, t)), + (r.actionRunner = n._actionRunner), + r.setActionContext(n.context), + r.render(o), + null === i || i < 0 || i >= n.actionsList.children.length + ? (n.actionsList.appendChild(o), n.viewItems.push(r)) + : (n.actionsList.insertBefore(o, n.actionsList.children[i]), + n.viewItems.splice(i, 0, r), + i++); + }); + }), + (t.prototype.clear = function () { + (this.viewItems = Ot(this.viewItems)), Ph(this.actionsList); + }), + (t.prototype.isEmpty = function () { + return 0 === this.viewItems.length; + }), + (t.prototype.focus = function (e) { + var t = !1, + n = void 0; + void 0 === e + ? (t = !0) + : 'number' == typeof e + ? (n = e) + : 'boolean' == typeof e && (t = e), + t && void 0 === this.focusedItem + ? ((this.focusedItem = this.viewItems.length - 1), + this.focusNext()) + : (void 0 !== n && (this.focusedItem = n), this.updateFocus()); + }), + (t.prototype.focusNext = function () { + void 0 === this.focusedItem && + (this.focusedItem = this.viewItems.length - 1); + var e, + t = this.focusedItem; + do { + (this.focusedItem = + (this.focusedItem + 1) % this.viewItems.length), + (e = this.viewItems[this.focusedItem]); + } while (this.focusedItem !== t && !e.isEnabled()); + this.focusedItem !== t || + e.isEnabled() || + (this.focusedItem = void 0), + this.updateFocus(); + }), + (t.prototype.focusPrevious = function () { + void 0 === this.focusedItem && (this.focusedItem = 0); + var e, + t = this.focusedItem; + do { + (this.focusedItem = this.focusedItem - 1), + this.focusedItem < 0 && + (this.focusedItem = this.viewItems.length - 1), + (e = this.viewItems[this.focusedItem]); + } while (this.focusedItem !== t && !e.isEnabled()); + this.focusedItem !== t || + e.isEnabled() || + (this.focusedItem = void 0), + this.updateFocus(!0); + }), + (t.prototype.updateFocus = function (e) { + void 0 === this.focusedItem && this.actionsList.focus(); + for (var t = 0; t < this.viewItems.length; t++) { + var n = this.viewItems[t]; + t === this.focusedItem + ? Ye(n.isEnabled) && + (n.isEnabled() && Ye(n.focus) + ? n.focus(e) + : this.actionsList.focus()) + : Ye(n.blur) && n.blur(); + } + }), + (t.prototype.doTrigger = function (e) { + if (void 0 !== this.focusedItem) { + var t = this.viewItems[this.focusedItem]; + if (t instanceof bp) { + var n = + null === t._context || void 0 === t._context ? e : t._context; + this.run(t._action, n); + } + } + }), + (t.prototype.cancel = function () { + document.activeElement instanceof HTMLElement && + document.activeElement.blur(), + this._onDidCancel.fire(); + }), + (t.prototype.run = function (e, t) { + return this._actionRunner.run(e, t); + }), + (t.prototype.dispose = function () { + Ot(this.viewItems), + (this.viewItems = []), + Rh(this.getContainer()), + e.prototype.dispose.call(this); + }), + t + ); + })(Rt), + Lp = (function () { + function e(e, t) { + void 0 === e && (e = []), + void 0 === t && (t = 10), + this._initialize(e), + (this._limit = t), + this._onChange(); + } + return ( + (e.prototype.add = function (e) { + this._history.delete(e), this._history.add(e), this._onChange(); + }), + (e.prototype.next = function () { + return this._navigator.next(); + }), + (e.prototype.previous = function () { + return this._navigator.previous(); + }), + (e.prototype.current = function () { + return this._navigator.current(); + }), + (e.prototype.parent = function () { + return null; + }), + (e.prototype.first = function () { + return this._navigator.first(); + }), + (e.prototype.last = function () { + return this._navigator.last(); + }), + (e.prototype.has = function (e) { + return this._history.has(e); + }), + (e.prototype._onChange = function () { + this._reduceToLimit(), + (this._navigator = new Ht( + this._elements, + 0, + this._elements.length, + this._elements.length + )); + }), + (e.prototype._reduceToLimit = function () { + var e = this._elements; + e.length > this._limit && + this._initialize(e.slice(e.length - this._limit)); + }), + (e.prototype._initialize = function (e) { + this._history = new Set(); + for (var t = 0, n = e; t < n.length; t++) { + var r = n[t]; + this._history.add(r); + } + }), + Object.defineProperty(e.prototype, '_elements', { + get: function () { + var e = []; + return ( + this._history.forEach(function (t) { + return e.push(t); + }), + e + ); + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(), + kp = + (n(328), + (function () { + function e(e) { + (this.domNode = e), + (this._maxWidth = -1), + (this._width = -1), + (this._height = -1), + (this._top = -1), + (this._left = -1), + (this._bottom = -1), + (this._right = -1), + (this._fontFamily = ''), + (this._fontWeight = ''), + (this._fontSize = -1), + (this._lineHeight = -1), + (this._letterSpacing = -100), + (this._className = ''), + (this._display = ''), + (this._position = ''), + (this._visibility = ''), + (this._layerHint = !1); + } + return ( + (e.prototype.setMaxWidth = function (e) { + this._maxWidth !== e && + ((this._maxWidth = e), + (this.domNode.style.maxWidth = this._maxWidth + 'px')); + }), + (e.prototype.setWidth = function (e) { + this._width !== e && + ((this._width = e), + (this.domNode.style.width = this._width + 'px')); + }), + (e.prototype.setHeight = function (e) { + this._height !== e && + ((this._height = e), + (this.domNode.style.height = this._height + 'px')); + }), + (e.prototype.setTop = function (e) { + this._top !== e && + ((this._top = e), (this.domNode.style.top = this._top + 'px')); + }), + (e.prototype.unsetTop = function () { + -1 !== this._top && + ((this._top = -1), (this.domNode.style.top = '')); + }), + (e.prototype.setLeft = function (e) { + this._left !== e && + ((this._left = e), + (this.domNode.style.left = this._left + 'px')); + }), + (e.prototype.setBottom = function (e) { + this._bottom !== e && + ((this._bottom = e), + (this.domNode.style.bottom = this._bottom + 'px')); + }), + (e.prototype.setRight = function (e) { + this._right !== e && + ((this._right = e), + (this.domNode.style.right = this._right + 'px')); + }), + (e.prototype.setFontFamily = function (e) { + this._fontFamily !== e && + ((this._fontFamily = e), + (this.domNode.style.fontFamily = this._fontFamily)); + }), + (e.prototype.setFontWeight = function (e) { + this._fontWeight !== e && + ((this._fontWeight = e), + (this.domNode.style.fontWeight = this._fontWeight)); + }), + (e.prototype.setFontSize = function (e) { + this._fontSize !== e && + ((this._fontSize = e), + (this.domNode.style.fontSize = this._fontSize + 'px')); + }), + (e.prototype.setLineHeight = function (e) { + this._lineHeight !== e && + ((this._lineHeight = e), + (this.domNode.style.lineHeight = this._lineHeight + 'px')); + }), + (e.prototype.setLetterSpacing = function (e) { + this._letterSpacing !== e && + ((this._letterSpacing = e), + (this.domNode.style.letterSpacing = + this._letterSpacing + 'px')); + }), + (e.prototype.setClassName = function (e) { + this._className !== e && + ((this._className = e), + (this.domNode.className = this._className)); + }), + (e.prototype.toggleClassName = function (e, t) { + Uh(this.domNode, e, t), + (this._className = this.domNode.className); + }), + (e.prototype.setDisplay = function (e) { + this._display !== e && + ((this._display = e), + (this.domNode.style.display = this._display)); + }), + (e.prototype.setPosition = function (e) { + this._position !== e && + ((this._position = e), + (this.domNode.style.position = this._position)); + }), + (e.prototype.setVisibility = function (e) { + this._visibility !== e && + ((this._visibility = e), + (this.domNode.style.visibility = this._visibility)); + }), + (e.prototype.setLayerHinting = function (e) { + this._layerHint !== e && + ((this._layerHint = e), + (this.domNode.style.willChange = this._layerHint + ? 'transform' + : 'auto')); + }), + (e.prototype.setAttribute = function (e, t) { + this.domNode.setAttribute(e, t); + }), + (e.prototype.removeAttribute = function (e) { + this.domNode.removeAttribute(e); + }), + (e.prototype.appendChild = function (e) { + this.domNode.appendChild(e.domNode); + }), + (e.prototype.removeChild = function (e) { + this.domNode.removeChild(e.domNode); + }), + e + ); + })()); + function Mp(e) { + return new kp(e); + } + function Dp(e, t) { + var n = new Th(t); + return ( + n.preventDefault(), + { leftButton: n.leftButton, posx: n.posx, posy: n.posy } + ); + } + var Ep = (function () { + function e() { + (this.hooks = new Pt()), + (this.mouseMoveEventMerger = null), + (this.mouseMoveCallback = null), + (this.onStopCallback = null); + } + return ( + (e.prototype.dispose = function () { + this.stopMonitoring(!1), this.hooks.dispose(); + }), + (e.prototype.stopMonitoring = function (e) { + if (this.isMonitoring()) { + this.hooks.clear(), + (this.mouseMoveEventMerger = null), + (this.mouseMoveCallback = null); + var t = this.onStopCallback; + (this.onStopCallback = null), e && t && t(); + } + }), + (e.prototype.isMonitoring = function () { + return !!this.mouseMoveEventMerger; + }), + (e.prototype.startMonitoring = function (e, t, n) { + var r = this; + if (!this.isMonitoring()) { + (this.mouseMoveEventMerger = e), + (this.mouseMoveCallback = t), + (this.onStopCallback = n); + for ( + var i = Dh.getSameOriginWindowChain(), o = 0, s = i; + o < s.length; + o++ + ) { + var a = s[o]; + this.hooks.add( + lf( + a.window.document, + 'mousemove', + function (e) { + return r.mouseMoveCallback(e); + }, + function (e, t) { + return r.mouseMoveEventMerger(e, t); + } + ) + ), + this.hooks.add( + Kh(a.window.document, 'mouseup', function (e) { + return r.stopMonitoring(!0); + }) + ); + } + if (Dh.hasDifferentOriginAncestor()) { + var u = i[i.length - 1]; + this.hooks.add( + Kh(u.window.document, 'mouseout', function (e) { + 'html' === new Th(e).target.tagName.toLowerCase() && + r.stopMonitoring(!0); + }) + ), + this.hooks.add( + Kh(u.window.document, 'mouseover', function (e) { + 'html' === new Th(e).target.tagName.toLowerCase() && + r.stopMonitoring(!0); + }) + ), + this.hooks.add( + Kh(u.window.document.body, 'mouseleave', function (e) { + r.stopMonitoring(!0); + }) + ); + } + } + }), + e + ); + })(), + Tp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Np = 11, + Op = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._onActivate = t.onActivate), + (n.bgDomNode = document.createElement('div')), + (n.bgDomNode.className = 'arrow-background'), + (n.bgDomNode.style.position = 'absolute'), + (n.bgDomNode.style.width = t.bgWidth + 'px'), + (n.bgDomNode.style.height = t.bgHeight + 'px'), + void 0 !== t.top && (n.bgDomNode.style.top = '0px'), + void 0 !== t.left && (n.bgDomNode.style.left = '0px'), + void 0 !== t.bottom && (n.bgDomNode.style.bottom = '0px'), + void 0 !== t.right && (n.bgDomNode.style.right = '0px'), + (n.domNode = document.createElement('div')), + (n.domNode.className = t.className), + (n.domNode.style.position = 'absolute'), + (n.domNode.style.width = Np + 'px'), + (n.domNode.style.height = Np + 'px'), + void 0 !== t.top && (n.domNode.style.top = t.top + 'px'), + void 0 !== t.left && (n.domNode.style.left = t.left + 'px'), + void 0 !== t.bottom && (n.domNode.style.bottom = t.bottom + 'px'), + void 0 !== t.right && (n.domNode.style.right = t.right + 'px'), + (n._mouseMoveMonitor = n._register(new Ep())), + n.onmousedown(n.bgDomNode, function (e) { + return n._arrowMouseDown(e); + }), + n.onmousedown(n.domNode, function (e) { + return n._arrowMouseDown(e); + }), + (n._mousedownRepeatTimer = n._register(new Ns())), + (n._mousedownScheduleRepeatTimer = n._register(new Ts())), + n + ); + } + return ( + Tp(t, e), + (t.prototype._arrowMouseDown = function (e) { + var t = this; + this._onActivate(), + this._mousedownRepeatTimer.cancel(), + this._mousedownScheduleRepeatTimer.cancelAndSet(function () { + t._mousedownRepeatTimer.cancelAndSet(function () { + return t._onActivate(); + }, 1e3 / 24); + }, 200), + this._mouseMoveMonitor.startMonitoring( + Dp, + function (e) {}, + function () { + t._mousedownRepeatTimer.cancel(), + t._mousedownScheduleRepeatTimer.cancel(); + } + ), + e.preventDefault(); + }), + t + ); + })(Yf), + Ap = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Ip = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + (i._visibility = t), + (i._visibleClassName = n), + (i._invisibleClassName = r), + (i._domNode = null), + (i._isVisible = !1), + (i._isNeeded = !1), + (i._shouldBeVisible = !1), + (i._revealTimer = i._register(new Ts())), + i + ); + } + return ( + Ap(t, e), + (t.prototype.applyVisibilitySetting = function (e) { + return 2 !== this._visibility && (3 === this._visibility || e); + }), + (t.prototype.setShouldBeVisible = function (e) { + var t = this.applyVisibilitySetting(e); + this._shouldBeVisible !== t && + ((this._shouldBeVisible = t), this.ensureVisibility()); + }), + (t.prototype.setIsNeeded = function (e) { + this._isNeeded !== e && + ((this._isNeeded = e), this.ensureVisibility()); + }), + (t.prototype.setDomNode = function (e) { + (this._domNode = e), + this._domNode.setClassName(this._invisibleClassName), + this.setShouldBeVisible(!1); + }), + (t.prototype.ensureVisibility = function () { + this._isNeeded + ? this._shouldBeVisible + ? this._reveal() + : this._hide(!0) + : this._hide(!1); + }), + (t.prototype._reveal = function () { + var e = this; + this._isVisible || + ((this._isVisible = !0), + this._revealTimer.setIfNotSet(function () { + e._domNode && e._domNode.setClassName(e._visibleClassName); + }, 0)); + }), + (t.prototype._hide = function (e) { + this._revealTimer.cancel(), + this._isVisible && + ((this._isVisible = !1), + this._domNode && + this._domNode.setClassName( + this._invisibleClassName + (e ? ' fade' : '') + )); + }), + t + ); + })(Rt), + Pp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Rp = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._lazyRender = t.lazyRender), + (n._host = t.host), + (n._scrollable = t.scrollable), + (n._scrollbarState = t.scrollbarState), + (n._visibilityController = n._register( + new Ip( + t.visibility, + 'visible scrollbar ' + t.extraScrollbarClassName, + 'invisible scrollbar ' + t.extraScrollbarClassName + ) + )), + (n._mouseMoveMonitor = n._register(new Ep())), + (n._shouldRender = !0), + (n.domNode = Mp(document.createElement('div'))), + n.domNode.setAttribute('role', 'presentation'), + n.domNode.setAttribute('aria-hidden', 'true'), + n._visibilityController.setDomNode(n.domNode), + n.domNode.setPosition('absolute'), + n.onmousedown(n.domNode.domNode, function (e) { + return n._domNodeMouseDown(e); + }), + n + ); + } + return ( + Pp(t, e), + (t.prototype._createArrow = function (e) { + var t = this._register(new Op(e)); + this.domNode.domNode.appendChild(t.bgDomNode), + this.domNode.domNode.appendChild(t.domNode); + }), + (t.prototype._createSlider = function (e, t, n, r) { + var i = this; + (this.slider = Mp(document.createElement('div'))), + this.slider.setClassName('slider'), + this.slider.setPosition('absolute'), + this.slider.setTop(e), + this.slider.setLeft(t), + 'number' == typeof n && this.slider.setWidth(n), + 'number' == typeof r && this.slider.setHeight(r), + this.slider.setLayerHinting(!0), + this.domNode.domNode.appendChild(this.slider.domNode), + this.onmousedown(this.slider.domNode, function (e) { + e.leftButton && + (e.preventDefault(), i._sliderMouseDown(e, function () {})); + }), + this.onclick(this.slider.domNode, function (e) { + e.leftButton && e.stopPropagation(); + }); + }), + (t.prototype._onElementSize = function (e) { + return ( + this._scrollbarState.setVisibleSize(e) && + (this._visibilityController.setIsNeeded( + this._scrollbarState.isNeeded() + ), + (this._shouldRender = !0), + this._lazyRender || this.render()), + this._shouldRender + ); + }), + (t.prototype._onElementScrollSize = function (e) { + return ( + this._scrollbarState.setScrollSize(e) && + (this._visibilityController.setIsNeeded( + this._scrollbarState.isNeeded() + ), + (this._shouldRender = !0), + this._lazyRender || this.render()), + this._shouldRender + ); + }), + (t.prototype._onElementScrollPosition = function (e) { + return ( + this._scrollbarState.setScrollPosition(e) && + (this._visibilityController.setIsNeeded( + this._scrollbarState.isNeeded() + ), + (this._shouldRender = !0), + this._lazyRender || this.render()), + this._shouldRender + ); + }), + (t.prototype.beginReveal = function () { + this._visibilityController.setShouldBeVisible(!0); + }), + (t.prototype.beginHide = function () { + this._visibilityController.setShouldBeVisible(!1); + }), + (t.prototype.render = function () { + this._shouldRender && + ((this._shouldRender = !1), + this._renderDomNode( + this._scrollbarState.getRectangleLargeSize(), + this._scrollbarState.getRectangleSmallSize() + ), + this._updateSlider( + this._scrollbarState.getSliderSize(), + this._scrollbarState.getArrowSize() + + this._scrollbarState.getSliderPosition() + )); + }), + (t.prototype._domNodeMouseDown = function (e) { + e.target === this.domNode.domNode && this._onMouseDown(e); + }), + (t.prototype.delegateMouseDown = function (e) { + var t = this.domNode.domNode.getClientRects()[0].top, + n = t + this._scrollbarState.getSliderPosition(), + r = + t + + this._scrollbarState.getSliderPosition() + + this._scrollbarState.getSliderSize(), + i = this._sliderMousePosition(e); + n <= i && i <= r + ? e.leftButton && + (e.preventDefault(), this._sliderMouseDown(e, function () {})) + : this._onMouseDown(e); + }), + (t.prototype._onMouseDown = function (e) { + var t, n; + if ( + e.target === this.domNode.domNode && + 'number' == typeof e.browserEvent.offsetX && + 'number' == typeof e.browserEvent.offsetY + ) + (t = e.browserEvent.offsetX), (n = e.browserEvent.offsetY); + else { + var r = ff(this.domNode.domNode); + (t = e.posx - r.left), (n = e.posy - r.top); + } + this._setDesiredScrollPositionNow( + this._scrollbarState.getDesiredScrollPositionFromOffset( + this._mouseDownRelativePosition(t, n) + ) + ), + e.leftButton && + (e.preventDefault(), this._sliderMouseDown(e, function () {})); + }), + (t.prototype._sliderMouseDown = function (e, t) { + var n = this, + r = this._sliderMousePosition(e), + i = this._sliderOrthogonalMousePosition(e), + o = this._scrollbarState.clone(); + this.slider.toggleClassName('active', !0), + this._mouseMoveMonitor.startMonitoring( + Dp, + function (e) { + var t = n._sliderOrthogonalMousePosition(e), + s = Math.abs(t - i); + if (tt.g && s > 140) + n._setDesiredScrollPositionNow(o.getScrollPosition()); + else { + var a = n._sliderMousePosition(e) - r; + n._setDesiredScrollPositionNow( + o.getDesiredScrollPositionFromDelta(a) + ); + } + }, + function () { + n.slider.toggleClassName('active', !1), + n._host.onDragEnd(), + t(); + } + ), + this._host.onDragStart(); + }), + (t.prototype._setDesiredScrollPositionNow = function (e) { + var t = {}; + this.writeScrollPosition(t, e), + this._scrollable.setScrollPositionNow(t); + }), + t + ); + })(Yf), + Fp = (function () { + function e(e, t, n) { + (this._scrollbarSize = Math.round(t)), + (this._oppositeScrollbarSize = Math.round(n)), + (this._arrowSize = Math.round(e)), + (this._visibleSize = 0), + (this._scrollSize = 0), + (this._scrollPosition = 0), + (this._computedAvailableSize = 0), + (this._computedIsNeeded = !1), + (this._computedSliderSize = 0), + (this._computedSliderRatio = 0), + (this._computedSliderPosition = 0), + this._refreshComputedValues(); + } + return ( + (e.prototype.clone = function () { + var t = new e( + this._arrowSize, + this._scrollbarSize, + this._oppositeScrollbarSize + ); + return ( + t.setVisibleSize(this._visibleSize), + t.setScrollSize(this._scrollSize), + t.setScrollPosition(this._scrollPosition), + t + ); + }), + (e.prototype.setVisibleSize = function (e) { + var t = Math.round(e); + return ( + this._visibleSize !== t && + ((this._visibleSize = t), this._refreshComputedValues(), !0) + ); + }), + (e.prototype.setScrollSize = function (e) { + var t = Math.round(e); + return ( + this._scrollSize !== t && + ((this._scrollSize = t), this._refreshComputedValues(), !0) + ); + }), + (e.prototype.setScrollPosition = function (e) { + var t = Math.round(e); + return ( + this._scrollPosition !== t && + ((this._scrollPosition = t), this._refreshComputedValues(), !0) + ); + }), + (e._computeValues = function (e, t, n, r, i) { + var o = Math.max(0, n - e), + s = Math.max(0, o - 2 * t), + a = r > 0 && r > n; + if (!a) + return { + computedAvailableSize: Math.round(o), + computedIsNeeded: a, + computedSliderSize: Math.round(s), + computedSliderRatio: 0, + computedSliderPosition: 0, + }; + var u = Math.round(Math.max(20, Math.floor((n * s) / r))), + l = (s - u) / (r - n), + c = i * l; + return { + computedAvailableSize: Math.round(o), + computedIsNeeded: a, + computedSliderSize: Math.round(u), + computedSliderRatio: l, + computedSliderPosition: Math.round(c), + }; + }), + (e.prototype._refreshComputedValues = function () { + var t = e._computeValues( + this._oppositeScrollbarSize, + this._arrowSize, + this._visibleSize, + this._scrollSize, + this._scrollPosition + ); + (this._computedAvailableSize = t.computedAvailableSize), + (this._computedIsNeeded = t.computedIsNeeded), + (this._computedSliderSize = t.computedSliderSize), + (this._computedSliderRatio = t.computedSliderRatio), + (this._computedSliderPosition = t.computedSliderPosition); + }), + (e.prototype.getArrowSize = function () { + return this._arrowSize; + }), + (e.prototype.getScrollPosition = function () { + return this._scrollPosition; + }), + (e.prototype.getRectangleLargeSize = function () { + return this._computedAvailableSize; + }), + (e.prototype.getRectangleSmallSize = function () { + return this._scrollbarSize; + }), + (e.prototype.isNeeded = function () { + return this._computedIsNeeded; + }), + (e.prototype.getSliderSize = function () { + return this._computedSliderSize; + }), + (e.prototype.getSliderPosition = function () { + return this._computedSliderPosition; + }), + (e.prototype.getDesiredScrollPositionFromOffset = function (e) { + if (!this._computedIsNeeded) return 0; + var t = e - this._arrowSize - this._computedSliderSize / 2; + return Math.round(t / this._computedSliderRatio); + }), + (e.prototype.getDesiredScrollPositionFromDelta = function (e) { + if (!this._computedIsNeeded) return 0; + var t = this._computedSliderPosition + e; + return Math.round(t / this._computedSliderRatio); + }), + e + ); + })(), + Yp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + jp = (function (e) { + function t(t, n, r) { + var i = + e.call(this, { + lazyRender: n.lazyRender, + host: r, + scrollbarState: new Fp( + n.horizontalHasArrows ? n.arrowSize : 0, + 2 === n.horizontal ? 0 : n.horizontalScrollbarSize, + 2 === n.vertical ? 0 : n.verticalScrollbarSize + ), + visibility: n.horizontal, + extraScrollbarClassName: 'horizontal', + scrollable: t, + }) || this; + if (n.horizontalHasArrows) { + var o = (n.arrowSize - Np) / 2, + s = (n.horizontalScrollbarSize - Np) / 2; + i._createArrow({ + className: 'left-arrow', + top: s, + left: o, + bottom: void 0, + right: void 0, + bgWidth: n.arrowSize, + bgHeight: n.horizontalScrollbarSize, + onActivate: function () { + return i._host.onMouseWheel(new Nh(null, 1, 0)); + }, + }), + i._createArrow({ + className: 'right-arrow', + top: s, + left: void 0, + bottom: void 0, + right: o, + bgWidth: n.arrowSize, + bgHeight: n.horizontalScrollbarSize, + onActivate: function () { + return i._host.onMouseWheel(new Nh(null, -1, 0)); + }, + }); + } + return ( + i._createSlider( + Math.floor( + (n.horizontalScrollbarSize - n.horizontalSliderSize) / 2 + ), + 0, + void 0, + n.horizontalSliderSize + ), + i + ); + } + return ( + Yp(t, e), + (t.prototype._updateSlider = function (e, t) { + this.slider.setWidth(e), this.slider.setLeft(t); + }), + (t.prototype._renderDomNode = function (e, t) { + this.domNode.setWidth(e), + this.domNode.setHeight(t), + this.domNode.setLeft(0), + this.domNode.setBottom(0); + }), + (t.prototype.onDidScroll = function (e) { + return ( + (this._shouldRender = + this._onElementScrollSize(e.scrollWidth) || this._shouldRender), + (this._shouldRender = + this._onElementScrollPosition(e.scrollLeft) || + this._shouldRender), + (this._shouldRender = + this._onElementSize(e.width) || this._shouldRender), + this._shouldRender + ); + }), + (t.prototype._mouseDownRelativePosition = function (e, t) { + return e; + }), + (t.prototype._sliderMousePosition = function (e) { + return e.posx; + }), + (t.prototype._sliderOrthogonalMousePosition = function (e) { + return e.posy; + }), + (t.prototype.writeScrollPosition = function (e, t) { + e.scrollLeft = t; + }), + t + ); + })(Rp), + Bp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Wp = (function (e) { + function t(t, n, r) { + var i = + e.call(this, { + lazyRender: n.lazyRender, + host: r, + scrollbarState: new Fp( + n.verticalHasArrows ? n.arrowSize : 0, + 2 === n.vertical ? 0 : n.verticalScrollbarSize, + 0 + ), + visibility: n.vertical, + extraScrollbarClassName: 'vertical', + scrollable: t, + }) || this; + if (n.verticalHasArrows) { + var o = (n.arrowSize - Np) / 2, + s = (n.verticalScrollbarSize - Np) / 2; + i._createArrow({ + className: 'up-arrow', + top: o, + left: s, + bottom: void 0, + right: void 0, + bgWidth: n.verticalScrollbarSize, + bgHeight: n.arrowSize, + onActivate: function () { + return i._host.onMouseWheel(new Nh(null, 0, 1)); + }, + }), + i._createArrow({ + className: 'down-arrow', + top: void 0, + left: s, + bottom: o, + right: void 0, + bgWidth: n.verticalScrollbarSize, + bgHeight: n.arrowSize, + onActivate: function () { + return i._host.onMouseWheel(new Nh(null, 0, -1)); + }, + }); + } + return ( + i._createSlider( + 0, + Math.floor((n.verticalScrollbarSize - n.verticalSliderSize) / 2), + n.verticalSliderSize, + void 0 + ), + i + ); + } + return ( + Bp(t, e), + (t.prototype._updateSlider = function (e, t) { + this.slider.setHeight(e), this.slider.setTop(t); + }), + (t.prototype._renderDomNode = function (e, t) { + this.domNode.setWidth(t), + this.domNode.setHeight(e), + this.domNode.setRight(0), + this.domNode.setTop(0); + }), + (t.prototype.onDidScroll = function (e) { + return ( + (this._shouldRender = + this._onElementScrollSize(e.scrollHeight) || + this._shouldRender), + (this._shouldRender = + this._onElementScrollPosition(e.scrollTop) || + this._shouldRender), + (this._shouldRender = + this._onElementSize(e.height) || this._shouldRender), + this._shouldRender + ); + }), + (t.prototype._mouseDownRelativePosition = function (e, t) { + return t; + }), + (t.prototype._sliderMousePosition = function (e) { + return e.posy; + }), + (t.prototype._sliderOrthogonalMousePosition = function (e) { + return e.posx; + }), + (t.prototype.writeScrollPosition = function (e, t) { + e.scrollTop = t; + }), + t + ); + })(Rp), + Hp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Vp = (function () { + function e(e, t, n, r, i, o) { + (e |= 0) < 0 && (e = 0), + (n |= 0) + e > (t |= 0) && (n = t - e), + n < 0 && (n = 0), + (r |= 0) < 0 && (r = 0), + (o |= 0) + r > (i |= 0) && (o = i - r), + o < 0 && (o = 0), + (this.width = e), + (this.scrollWidth = t), + (this.scrollLeft = n), + (this.height = r), + (this.scrollHeight = i), + (this.scrollTop = o); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.width === e.width && + this.scrollWidth === e.scrollWidth && + this.scrollLeft === e.scrollLeft && + this.height === e.height && + this.scrollHeight === e.scrollHeight && + this.scrollTop === e.scrollTop + ); + }), + (e.prototype.withScrollDimensions = function (t) { + return new e( + void 0 !== t.width ? t.width : this.width, + void 0 !== t.scrollWidth ? t.scrollWidth : this.scrollWidth, + this.scrollLeft, + void 0 !== t.height ? t.height : this.height, + void 0 !== t.scrollHeight ? t.scrollHeight : this.scrollHeight, + this.scrollTop + ); + }), + (e.prototype.withScrollPosition = function (t) { + return new e( + this.width, + this.scrollWidth, + void 0 !== t.scrollLeft ? t.scrollLeft : this.scrollLeft, + this.height, + this.scrollHeight, + void 0 !== t.scrollTop ? t.scrollTop : this.scrollTop + ); + }), + (e.prototype.createScrollEvent = function (e) { + var t = this.width !== e.width, + n = this.scrollWidth !== e.scrollWidth, + r = this.scrollLeft !== e.scrollLeft, + i = this.height !== e.height, + o = this.scrollHeight !== e.scrollHeight, + s = this.scrollTop !== e.scrollTop; + return { + width: this.width, + scrollWidth: this.scrollWidth, + scrollLeft: this.scrollLeft, + height: this.height, + scrollHeight: this.scrollHeight, + scrollTop: this.scrollTop, + widthChanged: t, + scrollWidthChanged: n, + scrollLeftChanged: r, + heightChanged: i, + scrollHeightChanged: o, + scrollTopChanged: s, + }; + }), + e + ); + })(), + zp = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._onScroll = r._register(new Gt())), + (r.onScroll = r._onScroll.event), + (r._smoothScrollDuration = t), + (r._scheduleAtNextAnimationFrame = n), + (r._state = new Vp(0, 0, 0, 0, 0, 0)), + (r._smoothScrolling = null), + r + ); + } + return ( + Hp(t, e), + (t.prototype.dispose = function () { + this._smoothScrolling && + (this._smoothScrolling.dispose(), (this._smoothScrolling = null)), + e.prototype.dispose.call(this); + }), + (t.prototype.setSmoothScrollDuration = function (e) { + this._smoothScrollDuration = e; + }), + (t.prototype.validateScrollPosition = function (e) { + return this._state.withScrollPosition(e); + }), + (t.prototype.getScrollDimensions = function () { + return this._state; + }), + (t.prototype.setScrollDimensions = function (e) { + var t = this._state.withScrollDimensions(e); + this._setState(t), + this._smoothScrolling && + this._smoothScrolling.acceptScrollDimensions(this._state); + }), + (t.prototype.getFutureScrollPosition = function () { + return this._smoothScrolling + ? this._smoothScrolling.to + : this._state; + }), + (t.prototype.getCurrentScrollPosition = function () { + return this._state; + }), + (t.prototype.setScrollPositionNow = function (e) { + var t = this._state.withScrollPosition(e); + this._smoothScrolling && + (this._smoothScrolling.dispose(), (this._smoothScrolling = null)), + this._setState(t); + }), + (t.prototype.setScrollPositionSmooth = function (e) { + var t = this; + if (0 === this._smoothScrollDuration) + return this.setScrollPositionNow(e); + if (this._smoothScrolling) { + e = { + scrollLeft: + void 0 === e.scrollLeft + ? this._smoothScrolling.to.scrollLeft + : e.scrollLeft, + scrollTop: + void 0 === e.scrollTop + ? this._smoothScrolling.to.scrollTop + : e.scrollTop, + }; + var n = this._state.withScrollPosition(e); + if ( + this._smoothScrolling.to.scrollLeft === n.scrollLeft && + this._smoothScrolling.to.scrollTop === n.scrollTop + ) + return; + var r = this._smoothScrolling.combine( + this._state, + n, + this._smoothScrollDuration + ); + this._smoothScrolling.dispose(), (this._smoothScrolling = r); + } else { + n = this._state.withScrollPosition(e); + this._smoothScrolling = Kp.start( + this._state, + n, + this._smoothScrollDuration + ); + } + this._smoothScrolling.animationFrameDisposable = this._scheduleAtNextAnimationFrame( + function () { + t._smoothScrolling && + ((t._smoothScrolling.animationFrameDisposable = null), + t._performSmoothScrolling()); + } + ); + }), + (t.prototype._performSmoothScrolling = function () { + var e = this; + if (this._smoothScrolling) { + var t = this._smoothScrolling.tick(), + n = this._state.withScrollPosition(t); + if ((this._setState(n), t.isDone)) + return ( + this._smoothScrolling.dispose(), + void (this._smoothScrolling = null) + ); + this._smoothScrolling.animationFrameDisposable = this._scheduleAtNextAnimationFrame( + function () { + e._smoothScrolling && + ((e._smoothScrolling.animationFrameDisposable = null), + e._performSmoothScrolling()); + } + ); + } + }), + (t.prototype._setState = function (e) { + var t = this._state; + t.equals(e) || + ((this._state = e), + this._onScroll.fire(this._state.createScrollEvent(t))); + }), + t + ); + })(Rt), + Up = function (e, t, n) { + (this.scrollLeft = e), (this.scrollTop = t), (this.isDone = n); + }; + function qp(e, t) { + var n = t - e; + return function (t) { + return ( + e + + n * + (1 - + (function (e) { + return Math.pow(e, 3); + })(1 - t)) + ); + }; + } + var Kp = (function () { + function e(e, t, n, r) { + (this.from = e), + (this.to = t), + (this.duration = r), + (this._startTime = n), + (this.animationFrameDisposable = null), + this._initAnimations(); + } + return ( + (e.prototype._initAnimations = function () { + (this.scrollLeft = this._initAnimation( + this.from.scrollLeft, + this.to.scrollLeft, + this.to.width + )), + (this.scrollTop = this._initAnimation( + this.from.scrollTop, + this.to.scrollTop, + this.to.height + )); + }), + (e.prototype._initAnimation = function (e, t, n) { + var r, i, o; + if (Math.abs(e - t) > 2.5 * n) { + var s = void 0, + a = void 0; + return ( + e < t + ? ((s = e + 0.75 * n), (a = t - 0.75 * n)) + : ((s = e - 0.75 * n), (a = t + 0.75 * n)), + (r = qp(e, s)), + (i = qp(a, t)), + (o = 0.33), + function (e) { + return e < o ? r(e / o) : i((e - o) / (1 - o)); + } + ); + } + return qp(e, t); + }), + (e.prototype.dispose = function () { + null !== this.animationFrameDisposable && + (this.animationFrameDisposable.dispose(), + (this.animationFrameDisposable = null)); + }), + (e.prototype.acceptScrollDimensions = function (e) { + (this.to = e.withScrollPosition(this.to)), this._initAnimations(); + }), + (e.prototype.tick = function () { + return this._tick(Date.now()); + }), + (e.prototype._tick = function (e) { + var t = (e - this._startTime) / this.duration; + if (t < 1) { + var n = this.scrollLeft(t), + r = this.scrollTop(t); + return new Up(n, r, !1); + } + return new Up(this.to.scrollLeft, this.to.scrollTop, !0); + }), + (e.prototype.combine = function (t, n, r) { + return e.start(t, n, r); + }), + (e.start = function (t, n, r) { + return (r += 10), new e(t, n, Date.now() - 10, r); + }), + e + ); + })(); + var Gp = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + $p = function (e, t, n) { + (this.timestamp = e), + (this.deltaX = t), + (this.deltaY = n), + (this.score = 0); + }, + Zp = (function () { + function e() { + (this._capacity = 5), + (this._memory = []), + (this._front = -1), + (this._rear = -1); + } + return ( + (e.prototype.isPhysicalMouseWheel = function () { + if (-1 === this._front && -1 === this._rear) return !1; + for (var e = 1, t = 0, n = 1, r = this._rear; ; ) { + var i = r === this._front ? e : Math.pow(2, -n); + if ( + ((e -= i), (t += this._memory[r].score * i), r === this._front) + ) + break; + (r = (this._capacity + r - 1) % this._capacity), n++; + } + return t <= 0.5; + }), + (e.prototype.accept = function (e, t, n) { + var r = new $p(e, t, n); + (r.score = this._computeScore(r)), + -1 === this._front && -1 === this._rear + ? ((this._memory[0] = r), (this._front = 0), (this._rear = 0)) + : ((this._rear = (this._rear + 1) % this._capacity), + this._rear === this._front && + (this._front = (this._front + 1) % this._capacity), + (this._memory[this._rear] = r)); + }), + (e.prototype._computeScore = function (e) { + if (Math.abs(e.deltaX) > 0 && Math.abs(e.deltaY) > 0) return 1; + var t = 0.5; + (-1 === this._front && -1 === this._rear) || + this._memory[this._rear]; + return ( + (Math.abs(e.deltaX - Math.round(e.deltaX)) > 0 || + Math.abs(e.deltaY - Math.round(e.deltaY)) > 0) && + (t += 0.25), + Math.min(Math.max(t, 0), 1) + ); + }), + (e.INSTANCE = new e()), + e + ); + })(), + Xp = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + (i._onScroll = i._register(new Gt())), + (i.onScroll = i._onScroll.event), + (t.style.overflow = 'hidden'), + (i._options = tg(n)), + (i._scrollable = r), + i._register( + i._scrollable.onScroll(function (e) { + i._onDidScroll(e), i._onScroll.fire(e); + }) + ); + var o = { + onMouseWheel: function (e) { + return i._onMouseWheel(e); + }, + onDragStart: function () { + return i._onDragStart(); + }, + onDragEnd: function () { + return i._onDragEnd(); + }, + }; + return ( + (i._verticalScrollbar = i._register( + new Wp(i._scrollable, i._options, o) + )), + (i._horizontalScrollbar = i._register( + new jp(i._scrollable, i._options, o) + )), + (i._domNode = document.createElement('div')), + (i._domNode.className = + 'monaco-scrollable-element ' + i._options.className), + i._domNode.setAttribute('role', 'presentation'), + (i._domNode.style.position = 'relative'), + (i._domNode.style.overflow = 'hidden'), + i._domNode.appendChild(t), + i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode), + i._domNode.appendChild(i._verticalScrollbar.domNode.domNode), + i._options.useShadows + ? ((i._leftShadowDomNode = Mp(document.createElement('div'))), + i._leftShadowDomNode.setClassName('shadow'), + i._domNode.appendChild(i._leftShadowDomNode.domNode), + (i._topShadowDomNode = Mp(document.createElement('div'))), + i._topShadowDomNode.setClassName('shadow'), + i._domNode.appendChild(i._topShadowDomNode.domNode), + (i._topLeftShadowDomNode = Mp(document.createElement('div'))), + i._topLeftShadowDomNode.setClassName('shadow top-left-corner'), + i._domNode.appendChild(i._topLeftShadowDomNode.domNode)) + : ((i._leftShadowDomNode = null), + (i._topShadowDomNode = null), + (i._topLeftShadowDomNode = null)), + (i._listenOnDomNode = i._options.listenOnDomNode || i._domNode), + (i._mouseWheelToDispose = []), + i._setListeningToMouseWheel(i._options.handleMouseWheel), + i.onmouseover(i._listenOnDomNode, function (e) { + return i._onMouseOver(e); + }), + i.onnonbubblingmouseout(i._listenOnDomNode, function (e) { + return i._onMouseOut(e); + }), + (i._hideTimeout = i._register(new Ts())), + (i._isDragging = !1), + (i._mouseIsOver = !1), + (i._shouldRender = !0), + (i._revealOnScroll = !0), + i + ); + } + return ( + Gp(t, e), + (t.prototype.dispose = function () { + (this._mouseWheelToDispose = Ot(this._mouseWheelToDispose)), + e.prototype.dispose.call(this); + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.getOverviewRulerLayoutInfo = function () { + return { + parent: this._domNode, + insertBefore: this._verticalScrollbar.domNode.domNode, + }; + }), + (t.prototype.delegateVerticalScrollbarMouseDown = function (e) { + this._verticalScrollbar.delegateMouseDown(e); + }), + (t.prototype.getScrollDimensions = function () { + return this._scrollable.getScrollDimensions(); + }), + (t.prototype.setScrollDimensions = function (e) { + this._scrollable.setScrollDimensions(e); + }), + (t.prototype.updateClassName = function (e) { + (this._options.className = e), + tt.d && (this._options.className += ' mac'), + (this._domNode.className = + 'monaco-scrollable-element ' + this._options.className); + }), + (t.prototype.updateOptions = function (e) { + var t = tg(e); + (this._options.handleMouseWheel = t.handleMouseWheel), + (this._options.mouseWheelScrollSensitivity = + t.mouseWheelScrollSensitivity), + (this._options.fastScrollSensitivity = t.fastScrollSensitivity), + this._setListeningToMouseWheel(this._options.handleMouseWheel), + this._options.lazyRender || this._render(); + }), + (t.prototype._setListeningToMouseWheel = function (e) { + var t = this; + if ( + this._mouseWheelToDispose.length > 0 !== e && + ((this._mouseWheelToDispose = Ot(this._mouseWheelToDispose)), e) + ) { + this._mouseWheelToDispose.push( + Kh( + this._listenOnDomNode, + lh ? 'mousewheel' : 'wheel', + function (e) { + t._onMouseWheel(new Nh(e)); + } + ) + ); + } + }), + (t.prototype._onMouseWheel = function (e) { + var t, + n = Zp.INSTANCE; + if ( + (n.accept(Date.now(), e.deltaX, e.deltaY), e.deltaY || e.deltaX) + ) { + var r = e.deltaY * this._options.mouseWheelScrollSensitivity, + i = e.deltaX * this._options.mouseWheelScrollSensitivity; + this._options.flipAxes && ((r = (t = [i, r])[0]), (i = t[1])); + var o = !tt.d && e.browserEvent && e.browserEvent.shiftKey; + (!this._options.scrollYToX && !o) || i || ((i = r), (r = 0)), + e.browserEvent && + e.browserEvent.altKey && + ((i *= this._options.fastScrollSensitivity), + (r *= this._options.fastScrollSensitivity)); + var s = this._scrollable.getFutureScrollPosition(), + a = {}; + if (r) { + var u = s.scrollTop - 50 * r; + this._verticalScrollbar.writeScrollPosition(a, u); + } + if (i) { + var l = s.scrollLeft - 50 * i; + this._horizontalScrollbar.writeScrollPosition(a, l); + } + if ( + ((a = this._scrollable.validateScrollPosition(a)), + s.scrollLeft !== a.scrollLeft || s.scrollTop !== a.scrollTop) + ) + this._options.mouseWheelSmoothScroll && n.isPhysicalMouseWheel() + ? this._scrollable.setScrollPositionSmooth(a) + : this._scrollable.setScrollPositionNow(a), + (this._shouldRender = !0); + } + (this._options.alwaysConsumeMouseWheel || this._shouldRender) && + (e.preventDefault(), e.stopPropagation()); + }), + (t.prototype._onDidScroll = function (e) { + (this._shouldRender = + this._horizontalScrollbar.onDidScroll(e) || this._shouldRender), + (this._shouldRender = + this._verticalScrollbar.onDidScroll(e) || this._shouldRender), + this._options.useShadows && (this._shouldRender = !0), + this._revealOnScroll && this._reveal(), + this._options.lazyRender || this._render(); + }), + (t.prototype.renderNow = function () { + if (!this._options.lazyRender) + throw new Error( + 'Please use `lazyRender` together with `renderNow`!' + ); + this._render(); + }), + (t.prototype._render = function () { + if ( + this._shouldRender && + ((this._shouldRender = !1), + this._horizontalScrollbar.render(), + this._verticalScrollbar.render(), + this._options.useShadows) + ) { + var e = this._scrollable.getCurrentScrollPosition(), + t = e.scrollTop > 0, + n = e.scrollLeft > 0; + this._leftShadowDomNode.setClassName( + 'shadow' + (n ? ' left' : '') + ), + this._topShadowDomNode.setClassName( + 'shadow' + (t ? ' top' : '') + ), + this._topLeftShadowDomNode.setClassName( + 'shadow top-left-corner' + + (t ? ' top' : '') + + (n ? ' left' : '') + ); + } + }), + (t.prototype._onDragStart = function () { + (this._isDragging = !0), this._reveal(); + }), + (t.prototype._onDragEnd = function () { + (this._isDragging = !1), this._hide(); + }), + (t.prototype._onMouseOut = function (e) { + (this._mouseIsOver = !1), this._hide(); + }), + (t.prototype._onMouseOver = function (e) { + (this._mouseIsOver = !0), this._reveal(); + }), + (t.prototype._reveal = function () { + this._verticalScrollbar.beginReveal(), + this._horizontalScrollbar.beginReveal(), + this._scheduleHide(); + }), + (t.prototype._hide = function () { + this._mouseIsOver || + this._isDragging || + (this._verticalScrollbar.beginHide(), + this._horizontalScrollbar.beginHide()); + }), + (t.prototype._scheduleHide = function () { + var e = this; + this._mouseIsOver || + this._isDragging || + this._hideTimeout.cancelAndSet(function () { + return e._hide(); + }, 500); + }), + t + ); + })(Yf), + Jp = (function (e) { + function t(t, n) { + var r = this; + (n = n || {}).mouseWheelSmoothScroll = !1; + var i = new zp(0, function (e) { + return Xh(e); + }); + return (r = e.call(this, t, n, i) || this)._register(i), r; + } + return ( + Gp(t, e), + (t.prototype.setScrollPosition = function (e) { + this._scrollable.setScrollPositionNow(e); + }), + (t.prototype.getScrollPosition = function () { + return this._scrollable.getCurrentScrollPosition(); + }), + t + ); + })(Xp), + Qp = (function (e) { + function t(t, n, r) { + return e.call(this, t, n, r) || this; + } + return Gp(t, e), t; + })(Xp), + eg = (function (e) { + function t(t, n) { + var r = e.call(this, t, n) || this; + return ( + (r._element = t), + r.onScroll(function (e) { + e.scrollTopChanged && (r._element.scrollTop = e.scrollTop), + e.scrollLeftChanged && (r._element.scrollLeft = e.scrollLeft); + }), + r.scanDomNode(), + r + ); + } + return ( + Gp(t, e), + (t.prototype.scanDomNode = function () { + this.setScrollDimensions({ + width: this._element.clientWidth, + scrollWidth: this._element.scrollWidth, + height: this._element.clientHeight, + scrollHeight: this._element.scrollHeight, + }), + this.setScrollPosition({ + scrollLeft: this._element.scrollLeft, + scrollTop: this._element.scrollTop, + }); + }), + t + ); + })(Jp); + function tg(e) { + var t = { + lazyRender: void 0 !== e.lazyRender && e.lazyRender, + className: void 0 !== e.className ? e.className : '', + useShadows: void 0 === e.useShadows || e.useShadows, + handleMouseWheel: void 0 === e.handleMouseWheel || e.handleMouseWheel, + flipAxes: void 0 !== e.flipAxes && e.flipAxes, + alwaysConsumeMouseWheel: + void 0 !== e.alwaysConsumeMouseWheel && e.alwaysConsumeMouseWheel, + scrollYToX: void 0 !== e.scrollYToX && e.scrollYToX, + mouseWheelScrollSensitivity: + void 0 !== e.mouseWheelScrollSensitivity + ? e.mouseWheelScrollSensitivity + : 1, + fastScrollSensitivity: + void 0 !== e.fastScrollSensitivity ? e.fastScrollSensitivity : 5, + mouseWheelSmoothScroll: + void 0 === e.mouseWheelSmoothScroll || e.mouseWheelSmoothScroll, + arrowSize: void 0 !== e.arrowSize ? e.arrowSize : 11, + listenOnDomNode: + void 0 !== e.listenOnDomNode ? e.listenOnDomNode : null, + horizontal: void 0 !== e.horizontal ? e.horizontal : 1, + horizontalScrollbarSize: + void 0 !== e.horizontalScrollbarSize ? e.horizontalScrollbarSize : 10, + horizontalSliderSize: + void 0 !== e.horizontalSliderSize ? e.horizontalSliderSize : 0, + horizontalHasArrows: + void 0 !== e.horizontalHasArrows && e.horizontalHasArrows, + vertical: void 0 !== e.vertical ? e.vertical : 1, + verticalScrollbarSize: + void 0 !== e.verticalScrollbarSize ? e.verticalScrollbarSize : 10, + verticalHasArrows: + void 0 !== e.verticalHasArrows && e.verticalHasArrows, + verticalSliderSize: + void 0 !== e.verticalSliderSize ? e.verticalSliderSize : 0, + }; + return ( + (t.horizontalSliderSize = + void 0 !== e.horizontalSliderSize + ? e.horizontalSliderSize + : t.horizontalScrollbarSize), + (t.verticalSliderSize = + void 0 !== e.verticalSliderSize + ? e.verticalSliderSize + : t.verticalScrollbarSize), + tt.d && (t.className += ' mac'), + t + ); + } + var ng = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + rg = Tf, + ig = { + inputBackground: Nu.fromHex('#3C3C3C'), + inputForeground: Nu.fromHex('#CCCCCC'), + inputValidationInfoBorder: Nu.fromHex('#55AAFF'), + inputValidationInfoBackground: Nu.fromHex('#063B49'), + inputValidationWarningBorder: Nu.fromHex('#B89500'), + inputValidationWarningBackground: Nu.fromHex('#352A05'), + inputValidationErrorBorder: Nu.fromHex('#BE1100'), + inputValidationErrorBackground: Nu.fromHex('#5A1D1D'), + }, + og = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n, r) || this; + return (i.history = new Lp(r.history, 100)), i; + } + return ( + ng(t, e), + (t.prototype.addToHistory = function () { + this.value && + this.value !== this.getCurrentValue() && + this.history.add(this.value); + }), + (t.prototype.showNextValue = function () { + this.history.has(this.value) || this.addToHistory(); + var e = this.getNextValue(); + e && (e = e === this.value ? this.getNextValue() : e), + e && ((this.value = e), rp(this.value)); + }), + (t.prototype.showPreviousValue = function () { + this.history.has(this.value) || this.addToHistory(); + var e = this.getPreviousValue(); + e && (e = e === this.value ? this.getPreviousValue() : e), + e && ((this.value = e), rp(this.value)); + }), + (t.prototype.getCurrentValue = function () { + var e = this.history.current(); + return e || ((e = this.history.last()), this.history.next()), e; + }), + (t.prototype.getPreviousValue = function () { + return this.history.previous() || this.history.first(); + }), + (t.prototype.getNextValue = function () { + return this.history.next() || this.history.last(); + }), + t + ); + })( + (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + (i.state = 'idle'), + (i.maxHeight = Number.POSITIVE_INFINITY), + (i._onDidChange = i._register(new Gt())), + (i.onDidChange = i._onDidChange.event), + (i._onDidHeightChange = i._register(new Gt())), + (i.onDidHeightChange = i._onDidHeightChange.event), + (i.contextViewProvider = n), + (i.options = r || Object.create(null)), + Xr(i.options, ig, !1), + (i.message = null), + (i.placeholder = i.options.placeholder || ''), + (i.ariaLabel = i.options.ariaLabel || ''), + (i.inputBackground = i.options.inputBackground), + (i.inputForeground = i.options.inputForeground), + (i.inputBorder = i.options.inputBorder), + (i.inputValidationInfoBorder = + i.options.inputValidationInfoBorder), + (i.inputValidationInfoBackground = + i.options.inputValidationInfoBackground), + (i.inputValidationInfoForeground = + i.options.inputValidationInfoForeground), + (i.inputValidationWarningBorder = + i.options.inputValidationWarningBorder), + (i.inputValidationWarningBackground = + i.options.inputValidationWarningBackground), + (i.inputValidationWarningForeground = + i.options.inputValidationWarningForeground), + (i.inputValidationErrorBorder = + i.options.inputValidationErrorBorder), + (i.inputValidationErrorBackground = + i.options.inputValidationErrorBackground), + (i.inputValidationErrorForeground = + i.options.inputValidationErrorForeground), + i.options.validationOptions && + (i.validation = i.options.validationOptions.validation), + (i.element = kf(t, rg('.monaco-inputbox.idle'))); + var o = i.options.flexibleHeight ? 'textarea' : 'input', + s = kf(i.element, rg('.wrapper')); + if ( + ((i.input = kf(s, rg(o + '.input'))), + i.input.setAttribute('autocorrect', 'off'), + i.input.setAttribute('autocapitalize', 'off'), + i.input.setAttribute('spellcheck', 'false'), + i.onfocus(i.input, function () { + return Wh(i.element, 'synthetic-focus'); + }), + i.onblur(i.input, function () { + return Vh(i.element, 'synthetic-focus'); + }), + i.options.flexibleHeight) + ) { + (i.maxHeight = + 'number' == typeof i.options.flexibleMaxHeight + ? i.options.flexibleMaxHeight + : Number.POSITIVE_INFINITY), + (i.mirror = kf(s, rg('div.mirror'))), + (i.mirror.innerHTML = ' '), + (i.scrollableElement = new Jp(i.element, { vertical: 1 })), + i.options.flexibleWidth && + (i.input.setAttribute('wrap', 'off'), + (i.mirror.style.whiteSpace = 'pre'), + (i.mirror.style.wordWrap = 'initial')), + kf(t, i.scrollableElement.getDomNode()), + i._register(i.scrollableElement), + i._register( + i.scrollableElement.onScroll(function (e) { + return (i.input.scrollTop = e.scrollTop); + }) + ); + var a = Wt.filter(_h(document, 'selectionchange'), function () { + var e = document.getSelection(); + return !!e && e.anchorNode === s; + }); + i._register(a(i.updateScrollDimensions, i)), + i._register(i.onDidHeightChange(i.updateScrollDimensions, i)); + } else + (i.input.type = i.options.type || 'text'), + i.input.setAttribute('wrap', 'off'); + return ( + i.ariaLabel && i.input.setAttribute('aria-label', i.ariaLabel), + i.placeholder && i.setPlaceHolder(i.placeholder), + i.oninput(i.input, function () { + return i.onValueChange(); + }), + i.onblur(i.input, function () { + return i.onBlur(); + }), + i.onfocus(i.input, function () { + return i.onFocus(); + }), + i.placeholder && + ah && + i.onclick(i.input, function (e) { + Sf.stop(e, !0), i.input.focus(); + }), + setTimeout(function () { + i.input && i.updateMirror(); + }, 0), + i.options.actions && + ((i.actionbar = i._register(new xp(i.element))), + i.actionbar.push(i.options.actions, { icon: !0, label: !1 })), + i.applyStyles(), + i + ); + } + return ( + ng(t, e), + (t.prototype.onBlur = function () { + this._hideMessage(); + }), + (t.prototype.onFocus = function () { + this._showMessage(); + }), + (t.prototype.setPlaceHolder = function (e) { + this.input && + (this.input.setAttribute('placeholder', e), + (this.input.title = e)); + }), + (t.prototype.setAriaLabel = function (e) { + (this.ariaLabel = e), + this.input && + (e + ? this.input.setAttribute('aria-label', this.ariaLabel) + : this.input.removeAttribute('aria-label')); + }), + Object.defineProperty(t.prototype, 'inputElement', { + get: function () { + return this.input; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'value', { + get: function () { + return this.input.value; + }, + set: function (e) { + this.input.value !== e && + ((this.input.value = e), this.onValueChange()); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'height', { + get: function () { + return 'number' == typeof this.cachedHeight + ? this.cachedHeight + : _f(this.element); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.focus = function () { + this.input.focus(); + }), + (t.prototype.blur = function () { + this.input.blur(); + }), + (t.prototype.hasFocus = function () { + return document.activeElement === this.input; + }), + (t.prototype.select = function (e) { + void 0 === e && (e = null), + this.input.select(), + e && this.input.setSelectionRange(e.start, e.end); + }), + (t.prototype.enable = function () { + this.input.removeAttribute('disabled'); + }), + (t.prototype.disable = function () { + (this.input.disabled = !0), this._hideMessage(); + }), + Object.defineProperty(t.prototype, 'width', { + get: function () { + return gf(this.input); + }, + set: function (e) { + if (this.options.flexibleHeight && this.options.flexibleWidth) { + var t = 0; + if (this.mirror) + t = + (parseFloat(this.mirror.style.paddingLeft || '') || 0) + + (parseFloat(this.mirror.style.paddingRight || '') || 0); + this.input.style.width = e - t + 'px'; + } else this.input.style.width = e + 'px'; + this.mirror && (this.mirror.style.width = e + 'px'); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'paddingRight', { + set: function (e) { + this.options.flexibleHeight && this.options.flexibleWidth + ? (this.input.style.width = 'calc(100% - ' + e + 'px)') + : (this.input.style.paddingRight = e + 'px'), + this.mirror && (this.mirror.style.paddingRight = e + 'px'); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.updateScrollDimensions = function () { + if ( + 'number' == typeof this.cachedContentHeight && + 'number' == typeof this.cachedHeight + ) { + var e = this.cachedContentHeight, + t = this.cachedHeight, + n = this.input.scrollTop; + this.scrollableElement.setScrollDimensions({ + scrollHeight: e, + height: t, + }), + this.scrollableElement.setScrollPosition({ scrollTop: n }); + } + }), + (t.prototype.showMessage = function (e, t) { + (this.message = e), + Vh(this.element, 'idle'), + Vh(this.element, 'info'), + Vh(this.element, 'warning'), + Vh(this.element, 'error'), + Wh(this.element, this.classForType(e.type)); + var n = this.stylesForType(this.message.type); + (this.element.style.border = n.border + ? '1px solid ' + n.border + : null), + np( + 3 === e.type + ? De('alertErrorMessage', 'Error: {0}', e.content) + : 2 === e.type + ? De('alertWarningMessage', 'Warning: {0}', e.content) + : De('alertInfoMessage', 'Info: {0}', e.content) + ), + (this.hasFocus() || t) && this._showMessage(); + }), + (t.prototype.hideMessage = function () { + (this.message = null), + Vh(this.element, 'info'), + Vh(this.element, 'warning'), + Vh(this.element, 'error'), + Wh(this.element, 'idle'), + this._hideMessage(), + this.applyStyles(); + }), + (t.prototype.validate = function () { + var e = null; + return ( + this.validation && + ((e = this.validation(this.value)) + ? (this.inputElement.setAttribute('aria-invalid', 'true'), + this.showMessage(e)) + : this.inputElement.hasAttribute('aria-invalid') && + (this.inputElement.removeAttribute('aria-invalid'), + this.hideMessage())), + !e + ); + }), + (t.prototype.stylesForType = function (e) { + switch (e) { + case 1: + return { + border: this.inputValidationInfoBorder, + background: this.inputValidationInfoBackground, + foreground: this.inputValidationInfoForeground, + }; + case 2: + return { + border: this.inputValidationWarningBorder, + background: this.inputValidationWarningBackground, + foreground: this.inputValidationWarningForeground, + }; + default: + return { + border: this.inputValidationErrorBorder, + background: this.inputValidationErrorBackground, + foreground: this.inputValidationErrorForeground, + }; + } + }), + (t.prototype.classForType = function (e) { + switch (e) { + case 1: + return 'info'; + case 2: + return 'warning'; + default: + return 'error'; + } + }), + (t.prototype._showMessage = function () { + var e = this; + if (this.contextViewProvider && this.message) { + var t, + n = function () { + return (t.style.width = gf(e.element) + 'px'); + }; + this.contextViewProvider.showContextView({ + getAnchor: function () { + return e.element; + }, + anchorAlignment: 1, + render: function (r) { + if (!e.message) return null; + (t = kf(r, rg('.monaco-inputbox-container'))), n(); + var i = { + inline: !0, + className: 'monaco-inputbox-message', + }, + o = e.message.formatContent + ? gp(e.message.content, i) + : (function (e, t) { + void 0 === t && (t = {}); + var n = mp(t); + return (n.textContent = e), n; + })(e.message.content, i); + Wh(o, e.classForType(e.message.type)); + var s = e.stylesForType(e.message.type); + return ( + (o.style.backgroundColor = s.background + ? s.background.toString() + : null), + (o.style.color = s.foreground + ? s.foreground.toString() + : null), + (o.style.border = s.border + ? '1px solid ' + s.border + : null), + kf(t, o), + null + ); + }, + onHide: function () { + e.state = 'closed'; + }, + layout: n, + }), + (this.state = 'open'); + } + }), + (t.prototype._hideMessage = function () { + this.contextViewProvider && + ('open' === this.state && + this.contextViewProvider.hideContextView(), + (this.state = 'idle')); + }), + (t.prototype.onValueChange = function () { + this._onDidChange.fire(this.value), + this.validate(), + this.updateMirror(), + 'open' === this.state && + this.contextViewProvider && + this.contextViewProvider.layout(); + }), + (t.prototype.updateMirror = function () { + if (this.mirror) { + var e = this.value || this.placeholder, + t = 10 === e.charCodeAt(e.length - 1) ? ' ' : ''; + e + t + ? (this.mirror.textContent = e + t) + : (this.mirror.innerHTML = ' '), + this.layout(); + } + }), + (t.prototype.style = function (e) { + (this.inputBackground = e.inputBackground), + (this.inputForeground = e.inputForeground), + (this.inputBorder = e.inputBorder), + (this.inputValidationInfoBackground = + e.inputValidationInfoBackground), + (this.inputValidationInfoForeground = + e.inputValidationInfoForeground), + (this.inputValidationInfoBorder = e.inputValidationInfoBorder), + (this.inputValidationWarningBackground = + e.inputValidationWarningBackground), + (this.inputValidationWarningForeground = + e.inputValidationWarningForeground), + (this.inputValidationWarningBorder = + e.inputValidationWarningBorder), + (this.inputValidationErrorBackground = + e.inputValidationErrorBackground), + (this.inputValidationErrorForeground = + e.inputValidationErrorForeground), + (this.inputValidationErrorBorder = + e.inputValidationErrorBorder), + this.applyStyles(); + }), + (t.prototype.applyStyles = function () { + if (this.element) { + var e = this.inputBackground + ? this.inputBackground.toString() + : null, + t = this.inputForeground + ? this.inputForeground.toString() + : null, + n = this.inputBorder ? this.inputBorder.toString() : null; + (this.element.style.backgroundColor = e), + (this.element.style.color = t), + (this.input.style.backgroundColor = e), + (this.input.style.color = t), + (this.element.style.borderWidth = n ? '1px' : null), + (this.element.style.borderStyle = n ? 'solid' : null), + (this.element.style.borderColor = n); + } + }), + (t.prototype.layout = function () { + if (this.mirror) { + var e = this.cachedContentHeight; + (this.cachedContentHeight = _f(this.mirror)), + e !== this.cachedContentHeight && + ((this.cachedHeight = Math.min( + this.cachedContentHeight, + this.maxHeight + )), + (this.input.style.height = this.cachedHeight + 'px'), + this._onDidHeightChange.fire(this.cachedContentHeight)); + } + }), + (t.prototype.dispose = function () { + this._hideMessage(), + (this.element = null), + (this.input = null), + (this.contextViewProvider = void 0), + (this.message = null), + (this.validation = void 0), + (this.state = null), + (this.actionbar = void 0), + e.prototype.dispose.call(this); + }), + t + ); + })(Yf) + ), + sg = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ag = De('defaultLabel', 'input'), + ug = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + (o._showOptionButtons = r), + (o.fixFocusOnOptionClickEnabled = !0), + (o._onDidOptionChange = o._register(new Gt())), + (o.onDidOptionChange = o._onDidOptionChange.event), + (o._onKeyDown = o._register(new Gt())), + (o.onKeyDown = o._onKeyDown.event), + (o._onMouseDown = o._register(new Gt())), + (o.onMouseDown = o._onMouseDown.event), + (o._onInput = o._register(new Gt())), + (o._onKeyUp = o._register(new Gt())), + (o._onCaseSensitiveKeyDown = o._register(new Gt())), + (o.onCaseSensitiveKeyDown = o._onCaseSensitiveKeyDown.event), + (o._onRegexKeyDown = o._register(new Gt())), + (o.onRegexKeyDown = o._onRegexKeyDown.event), + (o._lastHighlightFindOptions = 0), + (o.contextViewProvider = n), + (o.placeholder = i.placeholder || ''), + (o.validation = i.validation), + (o.label = i.label || ag), + (o.inputActiveOptionBorder = i.inputActiveOptionBorder), + (o.inputActiveOptionBackground = i.inputActiveOptionBackground), + (o.inputBackground = i.inputBackground), + (o.inputForeground = i.inputForeground), + (o.inputBorder = i.inputBorder), + (o.inputValidationInfoBorder = i.inputValidationInfoBorder), + (o.inputValidationInfoBackground = i.inputValidationInfoBackground), + (o.inputValidationInfoForeground = i.inputValidationInfoForeground), + (o.inputValidationWarningBorder = i.inputValidationWarningBorder), + (o.inputValidationWarningBackground = + i.inputValidationWarningBackground), + (o.inputValidationWarningForeground = + i.inputValidationWarningForeground), + (o.inputValidationErrorBorder = i.inputValidationErrorBorder), + (o.inputValidationErrorBackground = + i.inputValidationErrorBackground), + (o.inputValidationErrorForeground = + i.inputValidationErrorForeground); + var s = i.appendCaseSensitiveLabel || '', + a = i.appendWholeWordsLabel || '', + u = i.appendRegexLabel || '', + l = i.history || [], + c = !!i.flexibleHeight, + d = !!i.flexibleWidth, + h = i.flexibleMaxHeight; + (o.domNode = document.createElement('div')), + Wh(o.domNode, 'monaco-findInput'), + (o.inputBox = o._register( + new og(o.domNode, o.contextViewProvider, { + placeholder: o.placeholder || '', + ariaLabel: o.label || '', + validationOptions: { validation: o.validation }, + inputBackground: o.inputBackground, + inputForeground: o.inputForeground, + inputBorder: o.inputBorder, + inputValidationInfoBackground: o.inputValidationInfoBackground, + inputValidationInfoForeground: o.inputValidationInfoForeground, + inputValidationInfoBorder: o.inputValidationInfoBorder, + inputValidationWarningBackground: + o.inputValidationWarningBackground, + inputValidationWarningForeground: + o.inputValidationWarningForeground, + inputValidationWarningBorder: o.inputValidationWarningBorder, + inputValidationErrorBackground: + o.inputValidationErrorBackground, + inputValidationErrorForeground: + o.inputValidationErrorForeground, + inputValidationErrorBorder: o.inputValidationErrorBorder, + history: l, + flexibleHeight: c, + flexibleWidth: d, + flexibleMaxHeight: h, + }) + )), + (o.regex = o._register( + new Gf({ + appendTitle: u, + isChecked: !1, + inputActiveOptionBorder: o.inputActiveOptionBorder, + inputActiveOptionBackground: o.inputActiveOptionBackground, + }) + )), + o._register( + o.regex.onChange(function (e) { + o._onDidOptionChange.fire(e), + !e && o.fixFocusOnOptionClickEnabled && o.inputBox.focus(), + o.validate(); + }) + ), + o._register( + o.regex.onKeyDown(function (e) { + o._onRegexKeyDown.fire(e); + }) + ), + (o.wholeWords = o._register( + new Kf({ + appendTitle: a, + isChecked: !1, + inputActiveOptionBorder: o.inputActiveOptionBorder, + inputActiveOptionBackground: o.inputActiveOptionBackground, + }) + )), + o._register( + o.wholeWords.onChange(function (e) { + o._onDidOptionChange.fire(e), + !e && o.fixFocusOnOptionClickEnabled && o.inputBox.focus(), + o.validate(); + }) + ), + (o.caseSensitive = o._register( + new qf({ + appendTitle: s, + isChecked: !1, + inputActiveOptionBorder: o.inputActiveOptionBorder, + inputActiveOptionBackground: o.inputActiveOptionBackground, + }) + )), + o._register( + o.caseSensitive.onChange(function (e) { + o._onDidOptionChange.fire(e), + !e && o.fixFocusOnOptionClickEnabled && o.inputBox.focus(), + o.validate(); + }) + ), + o._register( + o.caseSensitive.onKeyDown(function (e) { + o._onCaseSensitiveKeyDown.fire(e); + }) + ), + o._showOptionButtons && + (o.inputBox.paddingRight = + o.caseSensitive.width() + + o.wholeWords.width() + + o.regex.width()); + var f = [ + o.caseSensitive.domNode, + o.wholeWords.domNode, + o.regex.domNode, + ]; + o.onkeydown(o.domNode, function (e) { + if (e.equals(15) || e.equals(17) || e.equals(9)) { + var t = f.indexOf(document.activeElement); + if (t >= 0) { + var n = -1; + e.equals(17) + ? (n = (t + 1) % f.length) + : e.equals(15) && (n = 0 === t ? f.length - 1 : t - 1), + e.equals(9) ? f[t].blur() : n >= 0 && f[n].focus(), + Sf.stop(e, !0); + } + } + }); + var p = document.createElement('div'); + return ( + (p.className = 'controls'), + (p.style.display = o._showOptionButtons ? 'block' : 'none'), + p.appendChild(o.caseSensitive.domNode), + p.appendChild(o.wholeWords.domNode), + p.appendChild(o.regex.domNode), + o.domNode.appendChild(p), + t && t.appendChild(o.domNode), + o.onkeydown(o.inputBox.inputElement, function (e) { + return o._onKeyDown.fire(e); + }), + o.onkeyup(o.inputBox.inputElement, function (e) { + return o._onKeyUp.fire(e); + }), + o.oninput(o.inputBox.inputElement, function (e) { + return o._onInput.fire(); + }), + o.onmousedown(o.inputBox.inputElement, function (e) { + return o._onMouseDown.fire(e); + }), + o + ); + } + return ( + sg(t, e), + (t.prototype.enable = function () { + Vh(this.domNode, 'disabled'), + this.inputBox.enable(), + this.regex.enable(), + this.wholeWords.enable(), + this.caseSensitive.enable(); + }), + (t.prototype.disable = function () { + Wh(this.domNode, 'disabled'), + this.inputBox.disable(), + this.regex.disable(), + this.wholeWords.disable(), + this.caseSensitive.disable(); + }), + (t.prototype.setFocusInputOnOptionClick = function (e) { + this.fixFocusOnOptionClickEnabled = e; + }), + (t.prototype.setEnabled = function (e) { + e ? this.enable() : this.disable(); + }), + (t.prototype.getValue = function () { + return this.inputBox.value; + }), + (t.prototype.setValue = function (e) { + this.inputBox.value !== e && (this.inputBox.value = e); + }), + (t.prototype.style = function (e) { + (this.inputActiveOptionBorder = e.inputActiveOptionBorder), + (this.inputActiveOptionBackground = + e.inputActiveOptionBackground), + (this.inputBackground = e.inputBackground), + (this.inputForeground = e.inputForeground), + (this.inputBorder = e.inputBorder), + (this.inputValidationInfoBackground = + e.inputValidationInfoBackground), + (this.inputValidationInfoForeground = + e.inputValidationInfoForeground), + (this.inputValidationInfoBorder = e.inputValidationInfoBorder), + (this.inputValidationWarningBackground = + e.inputValidationWarningBackground), + (this.inputValidationWarningForeground = + e.inputValidationWarningForeground), + (this.inputValidationWarningBorder = + e.inputValidationWarningBorder), + (this.inputValidationErrorBackground = + e.inputValidationErrorBackground), + (this.inputValidationErrorForeground = + e.inputValidationErrorForeground), + (this.inputValidationErrorBorder = e.inputValidationErrorBorder), + this.applyStyles(); + }), + (t.prototype.applyStyles = function () { + if (this.domNode) { + var e = { + inputActiveOptionBorder: this.inputActiveOptionBorder, + inputActiveOptionBackground: this.inputActiveOptionBackground, + }; + this.regex.style(e), + this.wholeWords.style(e), + this.caseSensitive.style(e); + var t = { + inputBackground: this.inputBackground, + inputForeground: this.inputForeground, + inputBorder: this.inputBorder, + inputValidationInfoBackground: this + .inputValidationInfoBackground, + inputValidationInfoForeground: this + .inputValidationInfoForeground, + inputValidationInfoBorder: this.inputValidationInfoBorder, + inputValidationWarningBackground: this + .inputValidationWarningBackground, + inputValidationWarningForeground: this + .inputValidationWarningForeground, + inputValidationWarningBorder: this.inputValidationWarningBorder, + inputValidationErrorBackground: this + .inputValidationErrorBackground, + inputValidationErrorForeground: this + .inputValidationErrorForeground, + inputValidationErrorBorder: this.inputValidationErrorBorder, + }; + this.inputBox.style(t); + } + }), + (t.prototype.select = function () { + this.inputBox.select(); + }), + (t.prototype.focus = function () { + this.inputBox.focus(); + }), + (t.prototype.getCaseSensitive = function () { + return this.caseSensitive.checked; + }), + (t.prototype.setCaseSensitive = function (e) { + this.caseSensitive.checked = e; + }), + (t.prototype.getWholeWords = function () { + return this.wholeWords.checked; + }), + (t.prototype.setWholeWords = function (e) { + this.wholeWords.checked = e; + }), + (t.prototype.getRegex = function () { + return this.regex.checked; + }), + (t.prototype.setRegex = function (e) { + (this.regex.checked = e), this.validate(); + }), + (t.prototype.focusOnCaseSensitive = function () { + this.caseSensitive.focus(); + }), + (t.prototype.highlightFindOptions = function () { + Vh(this.domNode, 'highlight-' + this._lastHighlightFindOptions), + (this._lastHighlightFindOptions = + 1 - this._lastHighlightFindOptions), + Wh(this.domNode, 'highlight-' + this._lastHighlightFindOptions); + }), + (t.prototype.validate = function () { + this.inputBox && this.inputBox.validate(); + }), + (t.prototype.clearMessage = function () { + this.inputBox && this.inputBox.hideMessage(); + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + t + ); + })(Yf), + lg = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + cg = De('defaultLabel', 'input'), + dg = De('label.preserveCaseCheckbox', 'Preserve Case'), + hg = (function (e) { + function t(t) { + return ( + e.call(this, { + actionClassName: 'monaco-case-sensitive', + title: dg + t.appendTitle, + isChecked: t.isChecked, + inputActiveOptionBorder: t.inputActiveOptionBorder, + }) || this + ); + } + return lg(t, e), t; + })(Wf), + fg = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + (o._showOptionButtons = r), + (o.fixFocusOnOptionClickEnabled = !0), + (o.cachedOptionsWidth = 0), + (o._onDidOptionChange = o._register(new Gt())), + (o.onDidOptionChange = o._onDidOptionChange.event), + (o._onKeyDown = o._register(new Gt())), + (o.onKeyDown = o._onKeyDown.event), + (o._onMouseDown = o._register(new Gt())), + (o._onInput = o._register(new Gt())), + (o._onKeyUp = o._register(new Gt())), + (o._onPreserveCaseKeyDown = o._register(new Gt())), + (o.onPreserveCaseKeyDown = o._onPreserveCaseKeyDown.event), + (o.contextViewProvider = n), + (o.placeholder = i.placeholder || ''), + (o.validation = i.validation), + (o.label = i.label || cg), + (o.inputActiveOptionBorder = i.inputActiveOptionBorder), + (o.inputBackground = i.inputBackground), + (o.inputForeground = i.inputForeground), + (o.inputBorder = i.inputBorder), + (o.inputValidationInfoBorder = i.inputValidationInfoBorder), + (o.inputValidationInfoBackground = i.inputValidationInfoBackground), + (o.inputValidationInfoForeground = i.inputValidationInfoForeground), + (o.inputValidationWarningBorder = i.inputValidationWarningBorder), + (o.inputValidationWarningBackground = + i.inputValidationWarningBackground), + (o.inputValidationWarningForeground = + i.inputValidationWarningForeground), + (o.inputValidationErrorBorder = i.inputValidationErrorBorder), + (o.inputValidationErrorBackground = + i.inputValidationErrorBackground), + (o.inputValidationErrorForeground = + i.inputValidationErrorForeground); + var s = !!i.flexibleHeight, + a = !!i.flexibleWidth, + u = i.flexibleMaxHeight; + return ( + o.buildDomNode(i.history || [], s, a, u), + t && t.appendChild(o.domNode), + o.onkeydown(o.inputBox.inputElement, function (e) { + return o._onKeyDown.fire(e); + }), + o.onkeyup(o.inputBox.inputElement, function (e) { + return o._onKeyUp.fire(e); + }), + o.oninput(o.inputBox.inputElement, function (e) { + return o._onInput.fire(); + }), + o.onmousedown(o.inputBox.inputElement, function (e) { + return o._onMouseDown.fire(e); + }), + o + ); + } + return ( + lg(t, e), + (t.prototype.enable = function () { + Vh(this.domNode, 'disabled'), + this.inputBox.enable(), + this.preserveCase.enable(); + }), + (t.prototype.disable = function () { + Wh(this.domNode, 'disabled'), + this.inputBox.disable(), + this.preserveCase.disable(); + }), + (t.prototype.setEnabled = function (e) { + e ? this.enable() : this.disable(); + }), + (t.prototype.style = function (e) { + (this.inputActiveOptionBorder = e.inputActiveOptionBorder), + (this.inputBackground = e.inputBackground), + (this.inputForeground = e.inputForeground), + (this.inputBorder = e.inputBorder), + (this.inputValidationInfoBackground = + e.inputValidationInfoBackground), + (this.inputValidationInfoForeground = + e.inputValidationInfoForeground), + (this.inputValidationInfoBorder = e.inputValidationInfoBorder), + (this.inputValidationWarningBackground = + e.inputValidationWarningBackground), + (this.inputValidationWarningForeground = + e.inputValidationWarningForeground), + (this.inputValidationWarningBorder = + e.inputValidationWarningBorder), + (this.inputValidationErrorBackground = + e.inputValidationErrorBackground), + (this.inputValidationErrorForeground = + e.inputValidationErrorForeground), + (this.inputValidationErrorBorder = e.inputValidationErrorBorder), + this.applyStyles(); + }), + (t.prototype.applyStyles = function () { + if (this.domNode) { + var e = { inputActiveOptionBorder: this.inputActiveOptionBorder }; + this.preserveCase.style(e); + var t = { + inputBackground: this.inputBackground, + inputForeground: this.inputForeground, + inputBorder: this.inputBorder, + inputValidationInfoBackground: this + .inputValidationInfoBackground, + inputValidationInfoForeground: this + .inputValidationInfoForeground, + inputValidationInfoBorder: this.inputValidationInfoBorder, + inputValidationWarningBackground: this + .inputValidationWarningBackground, + inputValidationWarningForeground: this + .inputValidationWarningForeground, + inputValidationWarningBorder: this.inputValidationWarningBorder, + inputValidationErrorBackground: this + .inputValidationErrorBackground, + inputValidationErrorForeground: this + .inputValidationErrorForeground, + inputValidationErrorBorder: this.inputValidationErrorBorder, + }; + this.inputBox.style(t); + } + }), + (t.prototype.select = function () { + this.inputBox.select(); + }), + (t.prototype.focus = function () { + this.inputBox.focus(); + }), + (t.prototype.getPreserveCase = function () { + return this.preserveCase.checked; + }), + (t.prototype.setPreserveCase = function (e) { + this.preserveCase.checked = e; + }), + (t.prototype.focusOnPreserve = function () { + this.preserveCase.focus(); + }), + (t.prototype.buildDomNode = function (e, t, n, r) { + var i = this; + (this.domNode = document.createElement('div')), + Wh(this.domNode, 'monaco-findInput'), + (this.inputBox = this._register( + new og(this.domNode, this.contextViewProvider, { + ariaLabel: this.label || '', + placeholder: this.placeholder || '', + validationOptions: { validation: this.validation }, + inputBackground: this.inputBackground, + inputForeground: this.inputForeground, + inputBorder: this.inputBorder, + inputValidationInfoBackground: this + .inputValidationInfoBackground, + inputValidationInfoForeground: this + .inputValidationInfoForeground, + inputValidationInfoBorder: this.inputValidationInfoBorder, + inputValidationWarningBackground: this + .inputValidationWarningBackground, + inputValidationWarningForeground: this + .inputValidationWarningForeground, + inputValidationWarningBorder: this + .inputValidationWarningBorder, + inputValidationErrorBackground: this + .inputValidationErrorBackground, + inputValidationErrorForeground: this + .inputValidationErrorForeground, + inputValidationErrorBorder: this.inputValidationErrorBorder, + history: e, + flexibleHeight: t, + flexibleWidth: n, + flexibleMaxHeight: r, + }) + )), + (this.preserveCase = this._register( + new hg({ + appendTitle: '', + isChecked: !1, + inputActiveOptionBorder: this.inputActiveOptionBorder, + }) + )), + this._register( + this.preserveCase.onChange(function (e) { + i._onDidOptionChange.fire(e), + !e && i.fixFocusOnOptionClickEnabled && i.inputBox.focus(), + i.validate(); + }) + ), + this._register( + this.preserveCase.onKeyDown(function (e) { + i._onPreserveCaseKeyDown.fire(e); + }) + ), + this._showOptionButtons + ? (this.cachedOptionsWidth = this.preserveCase.width()) + : (this.cachedOptionsWidth = 0); + var o = [this.preserveCase.domNode]; + this.onkeydown(this.domNode, function (e) { + if (e.equals(15) || e.equals(17) || e.equals(9)) { + var t = o.indexOf(document.activeElement); + if (t >= 0) { + var n = -1; + e.equals(17) + ? (n = (t + 1) % o.length) + : e.equals(15) && (n = 0 === t ? o.length - 1 : t - 1), + e.equals(9) ? o[t].blur() : n >= 0 && o[n].focus(), + Sf.stop(e, !0); + } + } + }); + var s = document.createElement('div'); + (s.className = 'controls'), + (s.style.display = this._showOptionButtons ? 'block' : 'none'), + s.appendChild(this.preserveCase.domNode), + this.domNode.appendChild(s); + }), + (t.prototype.validate = function () { + this.inputBox && this.inputBox.validate(); + }), + Object.defineProperty(t.prototype, 'width', { + set: function (e) { + (this.inputBox.paddingRight = this.cachedOptionsWidth), + (this.inputBox.width = e), + (this.domNode.style.width = e + 'px'); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + t + ); + })(Yf), + pg = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + gg = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + mg = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + _g = 'historyNavigationWidget', + yg = 'historyNavigationEnabled'; + function vg(e, t) { + return e.getContext(document.activeElement).getValue(t); + } + function bg(e, t) { + var n = (function (e, t) { + return e.createScoped(t.target); + })(e, t); + return ( + (function (e, t, n) { + new Un(n, t).bindTo(e); + })(n, t, _g), + { + scopedContextKeyService: n, + historyNavigationEnablement: new Un(yg, !0).bindTo(n), + } + ); + } + var wg = (function (e) { + function t(t, n, r, i, o) { + void 0 === o && (o = !1); + var s = e.call(this, t, n, o, r) || this; + return ( + s._register( + bg(i, { + target: s.inputBox.element, + historyNavigator: s.inputBox, + }).scopedContextKeyService + ), + s + ); + } + return pg(t, e), (t = gg([mg(3, qn)], t)); + })(ug), + Cg = (function (e) { + function t(t, n, r, i, o) { + void 0 === o && (o = !1); + var s = e.call(this, t, n, o, r) || this; + return ( + s._register( + bg(i, { + target: s.inputBox.element, + historyNavigator: s.inputBox, + }).scopedContextKeyService + ), + s + ); + } + return pg(t, e), (t = gg([mg(3, qn)], t)); + })(fg); + kr.registerCommandAndKeybindingRule({ + id: 'history.showPrevious', + weight: 200, + when: Pn.and(Pn.has(_g), Pn.equals(yg, !0)), + primary: 16, + secondary: [528], + handler: function (e, t) { + var n = vg(e.get(qn), _g); + n && n.historyNavigator.showPreviousValue(); + }, + }), + kr.registerCommandAndKeybindingRule({ + id: 'history.showNext', + weight: 200, + when: Pn.and(Pn.has(_g), Pn.equals(yg, !0)), + primary: 18, + secondary: [530], + handler: function (e, t) { + var n = vg(e.get(qn), _g); + n && n.historyNavigator.showNextValue(); + }, + }); + var Sg = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + xg = De('label.find', 'Find'), + Lg = De('placeholder.find', 'Find'), + kg = De('label.previousMatchButton', 'Previous match'), + Mg = De('label.nextMatchButton', 'Next match'), + Dg = De('label.toggleSelectionFind', 'Find in selection'), + Eg = De('label.closeButton', 'Close'), + Tg = De('label.replace', 'Replace'), + Ng = De('placeholder.replace', 'Replace'), + Og = De('label.replaceButton', 'Replace'), + Ag = De('label.replaceAllButton', 'Replace All'), + Ig = De('label.toggleReplaceButton', 'Toggle Replace mode'), + Pg = De( + 'title.matchesCountLimit', + 'Only the first {0} results are highlighted, but all find operations work on the entire text.', + 19999 + ), + Rg = De('label.matchesLocation', '{0} of {1}'), + Fg = De('label.noResults', 'No Results'), + Yg = 69, + jg = 17 + (Yg + 3 + 1) + 92 + 2, + Bg = 33, + Wg = 'ctrlEnterReplaceAll.windows.donotask', + Hg = tt.d ? 256 : 2048, + Vg = function (e) { + (this.afterLineNumber = e), + (this.heightInPx = Bg), + (this.suppressMouseDown = !1), + (this.domNode = document.createElement('div')), + (this.domNode.className = 'dock-find-viewzone'); + }; + function zg(e, t, n) { + var r = !!t.match(/\n/); + n && r && n.selectionStart > 0 && e.stopPropagation(); + } + function Ug(e, t, n) { + var r = !!t.match(/\n/); + n && r && n.selectionEnd < n.value.length && e.stopPropagation(); + } + var qg = (function (e) { + function t(t, n, r, i, o, s, a, u, l) { + var c = e.call(this) || this; + return ( + (c._codeEditor = t), + (c._controller = n), + (c._state = r), + (c._contextViewProvider = i), + (c._keybindingService = o), + (c._contextKeyService = s), + (c._storageService = u), + (c._notificationService = l), + (c._ctrlEnterReplaceAllWarningPrompted = !!u.getBoolean(Wg, 0)), + (c._isVisible = !1), + (c._isReplaceVisible = !1), + (c._ignoreChangeEvent = !1), + (c._updateHistoryDelayer = new Ms(500)), + c._register( + It(function () { + return c._updateHistoryDelayer.cancel(); + }) + ), + c._register( + c._state.onFindReplaceStateChange(function (e) { + return c._onStateChanged(e); + }) + ), + c._buildDomNode(), + c._updateButtons(), + c._tryUpdateWidgetWidth(), + c._findInput.inputBox.layout(), + c._register( + c._codeEditor.onDidChangeConfiguration(function (e) { + if ( + (e.readOnly && + (c._codeEditor.getConfiguration().readOnly && + c._state.change({ isReplaceRevealed: !1 }, !1), + c._updateButtons()), + e.layoutInfo && c._tryUpdateWidgetWidth(), + e.accessibilitySupport && c.updateAccessibilitySupport(), + e.contribInfo) + ) { + var t = c._codeEditor.getConfiguration().contribInfo.find + .addExtraSpaceOnTop; + t && + !c._viewZone && + ((c._viewZone = new Vg(0)), c._showViewZone()), + !t && c._viewZone && c._removeViewZone(); + } + }) + ), + c.updateAccessibilitySupport(), + c._register( + c._codeEditor.onDidChangeCursorSelection(function () { + c._isVisible && c._updateToggleSelectionFindButton(); + }) + ), + c._register( + c._codeEditor.onDidFocusEditorWidget(function () { + if (c._isVisible) { + var e = c._controller.getGlobalBufferTerm(); + e && + e !== c._state.searchString && + (c._state.change({ searchString: e }, !0), + c._findInput.select()); + } + }) + ), + (c._findInputFocused = Zd.bindTo(s)), + (c._findFocusTracker = c._register( + Lf(c._findInput.inputBox.inputElement) + )), + c._register( + c._findFocusTracker.onDidFocus(function () { + c._findInputFocused.set(!0), c._updateSearchScope(); + }) + ), + c._register( + c._findFocusTracker.onDidBlur(function () { + c._findInputFocused.set(!1); + }) + ), + (c._replaceInputFocused = Xd.bindTo(s)), + (c._replaceFocusTracker = c._register( + Lf(c._replaceInput.inputBox.inputElement) + )), + c._register( + c._replaceFocusTracker.onDidFocus(function () { + c._replaceInputFocused.set(!0), c._updateSearchScope(); + }) + ), + c._register( + c._replaceFocusTracker.onDidBlur(function () { + c._replaceInputFocused.set(!1); + }) + ), + c._codeEditor.addOverlayWidget(c), + c._codeEditor.getConfiguration().contribInfo.find + .addExtraSpaceOnTop && (c._viewZone = new Vg(0)), + c._applyTheme(a.getTheme()), + c._register(a.onThemeChange(c._applyTheme.bind(c))), + c._register( + c._codeEditor.onDidChangeModel(function () { + c._isVisible && (c._viewZoneId = void 0); + }) + ), + c._register( + c._codeEditor.onDidScrollChange(function (e) { + e.scrollTopChanged + ? c._layoutViewZone() + : setTimeout(function () { + c._layoutViewZone(); + }, 0); + }) + ), + c + ); + } + return ( + Sg(t, e), + (t.prototype.getId = function () { + return t.ID; + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.getPosition = function () { + return this._isVisible ? { preference: 0 } : null; + }), + (t.prototype._onStateChanged = function (e) { + if (e.searchString) { + this._state.searchString.indexOf('\n') >= 0 + ? Wh(this._domNode, 'multipleline') + : Vh(this._domNode, 'multipleline'); + try { + (this._ignoreChangeEvent = !0), + this._findInput.setValue(this._state.searchString); + } finally { + this._ignoreChangeEvent = !1; + } + this._updateButtons(); + } + if ( + (e.replaceString && + (this._replaceInput.inputBox.value = this._state.replaceString), + e.isRevealed && + (this._state.isRevealed ? this._reveal() : this._hide(!0)), + e.isReplaceRevealed && + (this._state.isReplaceRevealed + ? this._codeEditor.getConfiguration().readOnly || + this._isReplaceVisible || + ((this._isReplaceVisible = !0), + (this._replaceInput.width = gf(this._findInput.domNode)), + this._updateButtons(), + this._replaceInput.inputBox.layout()) + : this._isReplaceVisible && + ((this._isReplaceVisible = !1), this._updateButtons())), + (e.isRevealed || e.isReplaceRevealed) && + (this._state.isRevealed || this._state.isReplaceRevealed) && + this._tryUpdateHeight() && + this._showViewZone(), + e.isRegex && this._findInput.setRegex(this._state.isRegex), + e.wholeWord && + this._findInput.setWholeWords(this._state.wholeWord), + e.matchCase && + this._findInput.setCaseSensitive(this._state.matchCase), + e.searchScope && + (this._state.searchScope + ? (this._toggleSelectionFind.checked = !0) + : (this._toggleSelectionFind.checked = !1), + this._updateToggleSelectionFindButton()), + e.searchString || e.matchesCount || e.matchesPosition) + ) { + var t = + this._state.searchString.length > 0 && + 0 === this._state.matchesCount; + Uh(this._domNode, 'no-results', t), + this._updateMatchesCount(), + this._updateButtons(); + } + (e.searchString || e.currentMatch) && this._layoutViewZone(), + e.updateHistory && this._delayedUpdateHistory(); + }), + (t.prototype._delayedUpdateHistory = function () { + this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)); + }), + (t.prototype._updateHistory = function () { + this._state.searchString && this._findInput.inputBox.addToHistory(), + this._state.replaceString && + this._replaceInput.inputBox.addToHistory(); + }), + (t.prototype._updateMatchesCount = function () { + var e; + if ( + ((this._matchesCount.style.minWidth = Yg + 'px'), + this._state.matchesCount >= 19999 + ? (this._matchesCount.title = Pg) + : (this._matchesCount.title = ''), + this._matchesCount.firstChild && + this._matchesCount.removeChild(this._matchesCount.firstChild), + this._state.matchesCount > 0) + ) { + var t = String(this._state.matchesCount); + this._state.matchesCount >= 19999 && (t += '+'); + var n = String(this._state.matchesPosition); + '0' === n && (n = '?'), (e = sn(Rg, n, t)); + } else e = Fg; + this._matchesCount.appendChild(document.createTextNode(e)), + np( + this._getAriaLabel( + e, + this._state.currentMatch, + this._state.searchString + ), + !0 + ), + (Yg = Math.max(Yg, this._matchesCount.clientWidth)); + }), + (t.prototype._getAriaLabel = function (e, t, n) { + return e === Fg + ? '' === n + ? De('ariaSearchNoResultEmpty', '{0} found', e) + : De('ariaSearchNoResult', '{0} found for {1}', e, n) + : t + ? De( + 'ariaSearchNoResultWithLineNum', + '{0} found for {1} at {2}', + e, + n, + t.startLineNumber + ':' + t.startColumn + ) + : De( + 'ariaSearchNoResultWithLineNumNoCurrentMatch', + '{0} found for {1}', + e, + n + ); + }), + (t.prototype._updateToggleSelectionFindButton = function () { + var e = this._codeEditor.getSelection(), + t = + !!e && + (e.startLineNumber !== e.endLineNumber || + e.startColumn !== e.endColumn), + n = this._toggleSelectionFind.checked; + this._toggleSelectionFind.setEnabled(this._isVisible && (n || t)); + }), + (t.prototype._updateButtons = function () { + this._findInput.setEnabled(this._isVisible), + this._replaceInput.setEnabled( + this._isVisible && this._isReplaceVisible + ), + this._updateToggleSelectionFindButton(), + this._closeBtn.setEnabled(this._isVisible); + var e = this._state.searchString.length > 0, + t = !!this._state.matchesCount; + this._prevBtn.setEnabled(this._isVisible && e && t), + this._nextBtn.setEnabled(this._isVisible && e && t), + this._replaceBtn.setEnabled( + this._isVisible && this._isReplaceVisible && e + ), + this._replaceAllBtn.setEnabled( + this._isVisible && this._isReplaceVisible && e + ), + Uh(this._domNode, 'replaceToggled', this._isReplaceVisible), + this._toggleReplaceBtn.toggleClass( + 'collapse', + !this._isReplaceVisible + ), + this._toggleReplaceBtn.toggleClass( + 'expand', + this._isReplaceVisible + ), + this._toggleReplaceBtn.setExpanded(this._isReplaceVisible); + var n = !this._codeEditor.getConfiguration().readOnly; + this._toggleReplaceBtn.setEnabled(this._isVisible && n); + }), + (t.prototype._reveal = function () { + var e = this; + if (!this._isVisible) { + this._isVisible = !0; + var t = this._codeEditor.getSelection(); + !!t && + (t.startLineNumber !== t.endLineNumber || + t.startColumn !== t.endColumn) && + this._codeEditor.getConfiguration().contribInfo.find + .autoFindInSelection + ? (this._toggleSelectionFind.checked = !0) + : (this._toggleSelectionFind.checked = !1), + this._tryUpdateWidgetWidth(), + this._updateButtons(), + setTimeout(function () { + Wh(e._domNode, 'visible'), + e._domNode.setAttribute('aria-hidden', 'false'); + }, 0), + setTimeout(function () { + e._findInput.validate(); + }, 200), + this._codeEditor.layoutOverlayWidget(this); + var n = !0; + if ( + this._codeEditor.getConfiguration().contribInfo.find + .seedSearchStringFromSelection && + t + ) { + var r = this._codeEditor.getDomNode(); + if (r) { + var i = ff(r), + o = this._codeEditor.getScrolledVisiblePosition( + t.getStartPosition() + ), + s = i.left + (o ? o.left : 0), + a = o ? o.top : 0; + if (this._viewZone && a < this._viewZone.heightInPx) { + t.endLineNumber > t.startLineNumber && (n = !1); + var u = hf(this._domNode).left; + s > u && (n = !1); + var l = this._codeEditor.getScrolledVisiblePosition( + t.getEndPosition() + ); + i.left + (l ? l.left : 0) > u && (n = !1); + } + } + } + this._showViewZone(n); + } + }), + (t.prototype._hide = function (e) { + this._isVisible && + ((this._isVisible = !1), + this._updateButtons(), + Vh(this._domNode, 'visible'), + this._domNode.setAttribute('aria-hidden', 'true'), + this._findInput.clearMessage(), + e && this._codeEditor.focus(), + this._codeEditor.layoutOverlayWidget(this), + this._removeViewZone()); + }), + (t.prototype._layoutViewZone = function () { + var e = this; + if ( + this._codeEditor.getConfiguration().contribInfo.find + .addExtraSpaceOnTop + ) { + if (this._isVisible) { + var t = this._viewZone; + void 0 === this._viewZoneId && + t && + this._codeEditor.changeViewZones(function (n) { + (t.heightInPx = e._getHeight()), + (e._viewZoneId = n.addZone(t)), + e._codeEditor.setScrollTop( + e._codeEditor.getScrollTop() + t.heightInPx + ); + }); + } + } else this._removeViewZone(); + }), + (t.prototype._showViewZone = function (e) { + var t = this; + if ( + (void 0 === e && (e = !0), this._isVisible) && + this._codeEditor.getConfiguration().contribInfo.find + .addExtraSpaceOnTop + ) { + void 0 === this._viewZone && (this._viewZone = new Vg(0)); + var n = this._viewZone; + this._codeEditor.changeViewZones(function (r) { + if (void 0 !== t._viewZoneId) { + var i = t._getHeight(); + if (i === n.heightInPx) return; + var o = i - n.heightInPx; + return ( + (n.heightInPx = i), + r.layoutZone(t._viewZoneId), + void ( + e && + t._codeEditor.setScrollTop( + t._codeEditor.getScrollTop() + o + ) + ) + ); + } + o = t._getHeight(); + (n.heightInPx = o), + (t._viewZoneId = r.addZone(n)), + e && + t._codeEditor.setScrollTop( + t._codeEditor.getScrollTop() + o + ); + }); + } + }), + (t.prototype._removeViewZone = function () { + var e = this; + this._codeEditor.changeViewZones(function (t) { + void 0 !== e._viewZoneId && + (t.removeZone(e._viewZoneId), + (e._viewZoneId = void 0), + e._viewZone && + (e._codeEditor.setScrollTop( + e._codeEditor.getScrollTop() - e._viewZone.heightInPx + ), + (e._viewZone = void 0))); + }); + }), + (t.prototype._applyTheme = function (e) { + var t = { + inputActiveOptionBorder: e.getColor(lc), + inputActiveOptionBackground: e.getColor(cc), + inputBackground: e.getColor(sc), + inputForeground: e.getColor(ac), + inputBorder: e.getColor(uc), + inputValidationInfoBackground: e.getColor(dc), + inputValidationInfoForeground: e.getColor(hc), + inputValidationInfoBorder: e.getColor(fc), + inputValidationWarningBackground: e.getColor(pc), + inputValidationWarningForeground: e.getColor(gc), + inputValidationWarningBorder: e.getColor(mc), + inputValidationErrorBackground: e.getColor(_c), + inputValidationErrorForeground: e.getColor(yc), + inputValidationErrorBorder: e.getColor(vc), + }; + this._findInput.style(t), this._replaceInput.style(t); + }), + (t.prototype._tryUpdateWidgetWidth = function () { + if (this._isVisible) + if ( + this._codeEditor.getConfiguration().layoutInfo.contentWidth <= 0 + ) + Wh(this._domNode, 'hiddenEditor'); + else { + Bh(this._domNode, 'hiddenEditor') && + Vh(this._domNode, 'hiddenEditor'); + var e = this._codeEditor.getConfiguration().layoutInfo.width, + t = this._codeEditor.getConfiguration().layoutInfo + .minimapWidth, + n = !1, + r = !1, + i = !1; + if (this._resized) + if (gf(this._domNode) > 419) + return ( + (this._domNode.style.maxWidth = e - 28 - t - 15 + 'px'), + void (this._replaceInput.width = gf( + this._findInput.domNode + )) + ); + if ( + (447 + t >= e && (r = !0), + 447 + t - Yg >= e && (i = !0), + 447 + t - Yg >= e + 50 && (n = !0), + Uh(this._domNode, 'collapsed-find-widget', n), + Uh(this._domNode, 'narrow-find-widget', i), + Uh(this._domNode, 'reduced-find-widget', r), + i || + n || + (this._domNode.style.maxWidth = e - 28 - t - 15 + 'px'), + this._resized) + ) { + this._findInput.inputBox.layout(); + var o = this._findInput.inputBox.width; + o > 0 && (this._replaceInput.width = o); + } + } + }), + (t.prototype._getHeight = function () { + var e = 0; + return ( + (e += 4), + (e += this._findInput.inputBox.height + 2), + this._isReplaceVisible && + ((e += 4), (e += this._replaceInput.inputBox.height + 2)), + (e += 4) + ); + }), + (t.prototype._tryUpdateHeight = function () { + var e = this._getHeight(); + return ( + (null === this._cachedHeight || this._cachedHeight !== e) && + ((this._cachedHeight = e), + (this._domNode.style.height = e + 'px'), + !0) + ); + }), + (t.prototype.focusFindInput = function () { + this._findInput.select(), this._findInput.focus(); + }), + (t.prototype.focusReplaceInput = function () { + this._replaceInput.select(), this._replaceInput.focus(); + }), + (t.prototype.highlightFindOptions = function () { + this._findInput.highlightFindOptions(); + }), + (t.prototype._updateSearchScope = function () { + if ( + this._codeEditor.hasModel() && + this._toggleSelectionFind.checked + ) { + var e = this._codeEditor.getSelection(); + 1 === e.endColumn && + e.endLineNumber > e.startLineNumber && + (e = e.setEndPosition( + e.endLineNumber - 1, + this._codeEditor + .getModel() + .getLineMaxColumn(e.endLineNumber - 1) + )); + var t = this._state.currentMatch; + e.startLineNumber !== e.endLineNumber && + (Fr.equalsRange(e, t) || + this._state.change({ searchScope: e }, !0)); + } + }), + (t.prototype._onFindInputMouseDown = function (e) { + e.middleButton && e.stopPropagation(); + }), + (t.prototype._onFindInputKeyDown = function (e) { + if (e.equals(3 | Hg)) { + var t = this._findInput.inputBox.inputElement, + n = t.selectionStart, + r = t.selectionEnd, + i = t.value; + if (null !== n && null !== r) { + var o = i.substr(0, n) + '\n' + i.substr(r); + return ( + (this._findInput.inputBox.value = o), + t.setSelectionRange(n + 1, n + 1), + this._findInput.inputBox.layout(), + void e.preventDefault() + ); + } + } + return e.equals(2) + ? (this._isReplaceVisible + ? this._replaceInput.focus() + : this._findInput.focusOnCaseSensitive(), + void e.preventDefault()) + : e.equals(2066) + ? (this._codeEditor.focus(), void e.preventDefault()) + : e.equals(16) + ? zg( + e, + this._findInput.getValue(), + this._findInput.domNode.querySelector('textarea') + ) + : e.equals(18) + ? Ug( + e, + this._findInput.getValue(), + this._findInput.domNode.querySelector('textarea') + ) + : void 0; + }), + (t.prototype._onReplaceInputKeyDown = function (e) { + if (e.equals(3 | Hg)) { + tt.g && + tt.e && + !this._ctrlEnterReplaceAllWarningPrompted && + (this._notificationService.info( + De( + 'ctrlEnter.keybindingChanged', + 'Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.' + ) + ), + (this._ctrlEnterReplaceAllWarningPrompted = !0), + this._storageService.store(Wg, !0, 0)); + var t = this._replaceInput.inputBox.inputElement, + n = t.selectionStart, + r = t.selectionEnd, + i = t.value; + if (null !== n && null !== r) { + var o = i.substr(0, n) + '\n' + i.substr(r); + return ( + (this._replaceInput.inputBox.value = o), + t.setSelectionRange(n + 1, n + 1), + this._replaceInput.inputBox.layout(), + void e.preventDefault() + ); + } + } + return e.equals(2) + ? (this._findInput.focusOnCaseSensitive(), + void e.preventDefault()) + : e.equals(1026) + ? (this._findInput.focus(), void e.preventDefault()) + : e.equals(2066) + ? (this._codeEditor.focus(), void e.preventDefault()) + : e.equals(16) + ? zg( + e, + this._replaceInput.inputBox.value, + this._replaceInput.inputBox.element.querySelector('textarea') + ) + : e.equals(18) + ? Ug( + e, + this._replaceInput.inputBox.value, + this._replaceInput.inputBox.element.querySelector('textarea') + ) + : void 0; + }), + (t.prototype.getHorizontalSashTop = function (e) { + return 0; + }), + (t.prototype.getHorizontalSashLeft = function (e) { + return 0; + }), + (t.prototype.getHorizontalSashWidth = function (e) { + return 500; + }), + (t.prototype._keybindingLabelFor = function (e) { + var t = this._keybindingService.lookupKeybinding(e); + return t ? ' (' + t.getLabel() + ')' : ''; + }), + (t.prototype._buildDomNode = function () { + var e = this; + (this._findInput = this._register( + new wg( + null, + this._contextViewProvider, + { + width: 221, + label: xg, + placeholder: Lg, + appendCaseSensitiveLabel: this._keybindingLabelFor( + nh.ToggleCaseSensitiveCommand + ), + appendWholeWordsLabel: this._keybindingLabelFor( + nh.ToggleWholeWordCommand + ), + appendRegexLabel: this._keybindingLabelFor( + nh.ToggleRegexCommand + ), + validation: function (t) { + if (0 === t.length || !e._findInput.getRegex()) return null; + try { + return new RegExp(t), null; + } catch (e) { + return { content: e.message }; + } + }, + flexibleHeight: !0, + flexibleWidth: !0, + flexibleMaxHeight: 118, + }, + this._contextKeyService, + !0 + ) + )), + this._findInput.setRegex(!!this._state.isRegex), + this._findInput.setCaseSensitive(!!this._state.matchCase), + this._findInput.setWholeWords(!!this._state.wholeWord), + this._register( + this._findInput.onKeyDown(function (t) { + return e._onFindInputKeyDown(t); + }) + ), + this._register( + this._findInput.inputBox.onDidChange(function () { + e._ignoreChangeEvent || + e._state.change( + { searchString: e._findInput.getValue() }, + !0 + ); + }) + ), + this._register( + this._findInput.onDidOptionChange(function () { + e._state.change( + { + isRegex: e._findInput.getRegex(), + wholeWord: e._findInput.getWholeWords(), + matchCase: e._findInput.getCaseSensitive(), + }, + !0 + ); + }) + ), + this._register( + this._findInput.onCaseSensitiveKeyDown(function (t) { + t.equals(1026) && + e._isReplaceVisible && + (e._replaceInput.focus(), t.preventDefault()); + }) + ), + this._register( + this._findInput.onRegexKeyDown(function (t) { + t.equals(2) && + e._isReplaceVisible && + (e._replaceInput.focusOnPreserve(), t.preventDefault()); + }) + ), + this._register( + this._findInput.inputBox.onDidHeightChange(function (t) { + e._tryUpdateHeight() && e._showViewZone(); + }) + ), + tt.c && + this._register( + this._findInput.onMouseDown(function (t) { + return e._onFindInputMouseDown(t); + }) + ), + (this._matchesCount = document.createElement('div')), + (this._matchesCount.className = 'matchesCount'), + this._updateMatchesCount(), + (this._prevBtn = this._register( + new Gg({ + label: + kg + this._keybindingLabelFor(nh.PreviousMatchFindAction), + className: 'previous', + onTrigger: function () { + e._codeEditor + .getAction(nh.PreviousMatchFindAction) + .run() + .then(void 0, qe); + }, + }) + )), + (this._nextBtn = this._register( + new Gg({ + label: Mg + this._keybindingLabelFor(nh.NextMatchFindAction), + className: 'next', + onTrigger: function () { + e._codeEditor + .getAction(nh.NextMatchFindAction) + .run() + .then(void 0, qe); + }, + }) + )); + var t = document.createElement('div'); + (t.className = 'find-part'), t.appendChild(this._findInput.domNode); + var n = document.createElement('div'); + (n.className = 'find-actions'), + t.appendChild(n), + n.appendChild(this._matchesCount), + n.appendChild(this._prevBtn.domNode), + n.appendChild(this._nextBtn.domNode), + (this._toggleSelectionFind = this._register( + new Kg({ + parent: n, + title: + Dg + this._keybindingLabelFor(nh.ToggleSearchScopeCommand), + onChange: function () { + if (e._toggleSelectionFind.checked) { + if (e._codeEditor.hasModel()) { + var t = e._codeEditor.getSelection(); + 1 === t.endColumn && + t.endLineNumber > t.startLineNumber && + (t = t.setEndPosition( + t.endLineNumber - 1, + e._codeEditor + .getModel() + .getLineMaxColumn(t.endLineNumber - 1) + )), + t.isEmpty() || + e._state.change({ searchScope: t }, !0); + } + } else e._state.change({ searchScope: null }, !0); + }, + }) + )), + (this._closeBtn = this._register( + new Gg({ + label: + Eg + this._keybindingLabelFor(nh.CloseFindWidgetCommand), + className: 'close-fw', + onTrigger: function () { + e._state.change({ isRevealed: !1, searchScope: null }, !1); + }, + onKeyDown: function (t) { + t.equals(2) && + e._isReplaceVisible && + (e._replaceBtn.isEnabled() + ? e._replaceBtn.focus() + : e._codeEditor.focus(), + t.preventDefault()); + }, + }) + )), + n.appendChild(this._closeBtn.domNode), + (this._replaceInput = this._register( + new Cg( + null, + void 0, + { + label: Tg, + placeholder: Ng, + history: [], + flexibleHeight: !0, + flexibleWidth: !0, + flexibleMaxHeight: 118, + }, + this._contextKeyService, + !0 + ) + )), + this._replaceInput.setPreserveCase(!!this._state.preserveCase), + this._register( + this._replaceInput.onKeyDown(function (t) { + return e._onReplaceInputKeyDown(t); + }) + ), + this._register( + this._replaceInput.inputBox.onDidChange(function () { + e._state.change( + { replaceString: e._replaceInput.inputBox.value }, + !1 + ); + }) + ), + this._register( + this._replaceInput.inputBox.onDidHeightChange(function (t) { + e._isReplaceVisible && + e._tryUpdateHeight() && + e._showViewZone(); + }) + ), + this._register( + this._replaceInput.onDidOptionChange(function () { + e._state.change( + { preserveCase: e._replaceInput.getPreserveCase() }, + !0 + ); + }) + ), + this._register( + this._replaceInput.onPreserveCaseKeyDown(function (t) { + t.equals(2) && + (e._prevBtn.isEnabled() + ? e._prevBtn.focus() + : e._nextBtn.isEnabled() + ? e._nextBtn.focus() + : e._toggleSelectionFind.isEnabled() + ? e._toggleSelectionFind.focus() + : e._closeBtn.isEnabled() && e._closeBtn.focus(), + t.preventDefault()); + }) + ), + (this._replaceBtn = this._register( + new Gg({ + label: Og + this._keybindingLabelFor(nh.ReplaceOneAction), + className: 'replace', + onTrigger: function () { + e._controller.replace(); + }, + onKeyDown: function (t) { + t.equals(1026) && (e._closeBtn.focus(), t.preventDefault()); + }, + }) + )), + (this._replaceAllBtn = this._register( + new Gg({ + label: Ag + this._keybindingLabelFor(nh.ReplaceAllAction), + className: 'replace-all', + onTrigger: function () { + e._controller.replaceAll(); + }, + }) + )); + var r = document.createElement('div'); + (r.className = 'replace-part'), + r.appendChild(this._replaceInput.domNode); + var i = document.createElement('div'); + (i.className = 'replace-actions'), + r.appendChild(i), + i.appendChild(this._replaceBtn.domNode), + i.appendChild(this._replaceAllBtn.domNode), + (this._toggleReplaceBtn = this._register( + new Gg({ + label: Ig, + className: 'toggle left', + onTrigger: function () { + e._state.change( + { isReplaceRevealed: !e._isReplaceVisible }, + !1 + ), + e._isReplaceVisible && + ((e._replaceInput.width = gf(e._findInput.domNode)), + e._replaceInput.inputBox.layout()), + e._showViewZone(); + }, + }) + )), + this._toggleReplaceBtn.toggleClass( + 'expand', + this._isReplaceVisible + ), + this._toggleReplaceBtn.toggleClass( + 'collapse', + !this._isReplaceVisible + ), + this._toggleReplaceBtn.setExpanded(this._isReplaceVisible), + (this._domNode = document.createElement('div')), + (this._domNode.className = 'editor-widget find-widget'), + this._domNode.setAttribute('aria-hidden', 'true'), + (this._domNode.style.width = '419px'), + this._domNode.appendChild(this._toggleReplaceBtn.domNode), + this._domNode.appendChild(t), + this._domNode.appendChild(r), + (this._resizeSash = new pp(this._domNode, this, { + orientation: 0, + })), + (this._resized = !1); + var o = 419; + this._register( + this._resizeSash.onDidStart(function () { + o = gf(e._domNode); + }) + ), + this._register( + this._resizeSash.onDidChange(function (t) { + e._resized = !0; + var n = o + t.startX - t.currentX; + if (!(n < 419)) { + var r = n - jg; + n > (parseFloat(cf(e._domNode).maxWidth) || 0) || + ((e._domNode.style.width = n + 'px'), + (e._findInput.inputBox.width = r), + e._isReplaceVisible && + (e._replaceInput.width = gf(e._findInput.domNode)), + e._findInput.inputBox.layout(), + e._tryUpdateHeight()); + } + }) + ), + this._register( + this._resizeSash.onDidReset(function () { + var t = gf(e._domNode); + if (!(t < 419)) { + var n = 419; + (e._resized && 419 !== t) || + ((n = + e._codeEditor.getConfiguration().layoutInfo.width - + 28 - + e._codeEditor.getConfiguration().layoutInfo + .minimapWidth - + 15), + (e._resized = !0)); + var r = n - jg; + (e._domNode.style.width = n + 'px'), + (e._findInput.inputBox.width = r), + e._isReplaceVisible && + (e._replaceInput.width = gf(e._findInput.domNode)), + e._findInput.inputBox.layout(); + } + }) + ); + }), + (t.prototype.updateAccessibilitySupport = function () { + var e = this._codeEditor.getConfiguration().accessibilitySupport; + this._findInput.setFocusInputOnOptionClick(2 !== e); + }), + (t.ID = 'editor.contrib.findWidget'), + t + ); + })(Yf), + Kg = (function (e) { + function t(n) { + var r = e.call(this) || this; + return ( + (r._opts = n), + (r._domNode = document.createElement('div')), + (r._domNode.className = 'monaco-checkbox'), + (r._domNode.title = r._opts.title), + (r._domNode.tabIndex = 0), + (r._checkbox = document.createElement('input')), + (r._checkbox.type = 'checkbox'), + (r._checkbox.className = 'checkbox'), + (r._checkbox.id = 'checkbox-' + t._COUNTER++), + (r._checkbox.tabIndex = -1), + (r._label = document.createElement('label')), + (r._label.className = 'label'), + (r._label.htmlFor = r._checkbox.id), + (r._label.tabIndex = -1), + r._domNode.appendChild(r._checkbox), + r._domNode.appendChild(r._label), + r._opts.parent.appendChild(r._domNode), + r.onchange(r._checkbox, function () { + r._opts.onChange(); + }), + r + ); + } + return ( + Sg(t, e), + Object.defineProperty(t.prototype, 'domNode', { + get: function () { + return this._domNode; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.isEnabled = function () { + return this._domNode.tabIndex >= 0; + }), + Object.defineProperty(t.prototype, 'checked', { + get: function () { + return this._checkbox.checked; + }, + set: function (e) { + this._checkbox.checked = e; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.focus = function () { + this._domNode.focus(); + }), + (t.prototype.enable = function () { + this._checkbox.removeAttribute('disabled'); + }), + (t.prototype.disable = function () { + this._checkbox.disabled = !0; + }), + (t.prototype.setEnabled = function (e) { + e + ? (this.enable(), (this.domNode.tabIndex = 0)) + : (this.disable(), (this.domNode.tabIndex = -1)); + }), + (t._COUNTER = 0), + t + ); + })(Yf), + Gg = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._opts = t), + (n._domNode = document.createElement('div')), + (n._domNode.title = n._opts.label), + (n._domNode.tabIndex = 0), + (n._domNode.className = 'button ' + n._opts.className), + n._domNode.setAttribute('role', 'button'), + n._domNode.setAttribute('aria-label', n._opts.label), + n.onclick(n._domNode, function (e) { + n._opts.onTrigger(), e.preventDefault(); + }), + n.onkeydown(n._domNode, function (e) { + if (e.equals(10) || e.equals(3)) + return n._opts.onTrigger(), void e.preventDefault(); + n._opts.onKeyDown && n._opts.onKeyDown(e); + }), + n + ); + } + return ( + Sg(t, e), + Object.defineProperty(t.prototype, 'domNode', { + get: function () { + return this._domNode; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.isEnabled = function () { + return this._domNode.tabIndex >= 0; + }), + (t.prototype.focus = function () { + this._domNode.focus(); + }), + (t.prototype.setEnabled = function (e) { + Uh(this._domNode, 'disabled', !e), + this._domNode.setAttribute('aria-disabled', String(!e)), + (this._domNode.tabIndex = e ? 0 : -1); + }), + (t.prototype.setExpanded = function (e) { + this._domNode.setAttribute('aria-expanded', String(!!e)); + }), + (t.prototype.toggleClass = function (e, t) { + Uh(this._domNode, e, t); + }), + t + ); + })(Yf); + Bd(function (e, t) { + var n = function (e, n) { + n && + t.addRule( + '.monaco-editor ' + e + ' { background-color: ' + n + '; }' + ); + }; + n('.findMatch', e.getColor(hd)), + n('.currentFindMatch', e.getColor(dd)), + n('.findScope', e.getColor(fd)), + n('.find-widget', e.getColor(rd)); + var r = e.getColor(oc); + r && + t.addRule( + '.monaco-editor .find-widget { box-shadow: 0 2px 8px ' + r + '; }' + ); + var i = e.getColor(gd); + i && + t.addRule( + '.monaco-editor .findMatch { border: 1px ' + + ('hc' === e.type ? 'dotted' : 'solid') + + ' ' + + i + + '; box-sizing: border-box; }' + ); + var o = e.getColor(pd); + o && + t.addRule( + '.monaco-editor .currentFindMatch { border: 2px solid ' + + o + + '; padding: 1px; box-sizing: border-box; }' + ); + var s = e.getColor(md); + s && + t.addRule( + '.monaco-editor .findScope { border: 1px ' + + ('hc' === e.type ? 'dashed' : 'solid') + + ' ' + + s + + '; }' + ); + var a = e.getColor(rc); + a && + t.addRule( + '.monaco-editor .find-widget { border: 2px solid ' + a + '; }' + ); + var u = e.getColor(id); + u && t.addRule('.monaco-editor .find-widget { color: ' + u + '; }'); + var l = e.getColor(tc); + l && + t.addRule( + '.monaco-editor .find-widget.no-results .matchesCount { color: ' + + l + + '; }' + ); + var c = e.getColor(sd); + if (c) + t.addRule( + '.monaco-editor .find-widget .monaco-sash { background-color: ' + + c + + '; width: 3px !important; margin-left: -4px;}' + ); + else { + var d = e.getColor(od); + d && + t.addRule( + '.monaco-editor .find-widget .monaco-sash { background-color: ' + + d + + '; width: 3px !important; margin-left: -4px;}' + ); + } + var h = e.getColor(lc); + h && + t.addRule( + '.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid ' + + h.toString() + + '; }' + ); + var f = e.getColor(cc); + f && + t.addRule( + '.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { background-color: ' + + f.toString() + + '; }' + ); + var p = e.getColor(nc); + p && + t.addRule( + '.monaco-workbench .monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ' + + p + + '; }' + ); + }); + var $g, + Zg = wt('clipboardService'), + Xg = wt('contextViewService'), + Jg = wt('contextMenuService'), + Qg = wt('keybindingService'), + em = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + tm = wt('storageService'); + !(function (e) { + (e[(e.NONE = 0)] = 'NONE'), (e[(e.SHUTDOWN = 1)] = 'SHUTDOWN'); + })($g || ($g = {})); + var nm, + rm, + im = (function (e) { + function t() { + var t = (null !== e && e.apply(this, arguments)) || this; + return ( + (t._serviceBrand = null), + (t._onDidChangeStorage = t._register(new Gt())), + (t.onDidChangeStorage = t._onDidChangeStorage.event), + (t.onWillSaveState = Wt.None), + (t.globalCache = new Map()), + (t.workspaceCache = new Map()), + t + ); + } + return ( + em(t, e), + (t.prototype.getCache = function (e) { + return 0 === e ? this.globalCache : this.workspaceCache; + }), + (t.prototype.get = function (e, t, n) { + var r = this.getCache(t).get(e); + return Pe(r) ? n : r; + }), + (t.prototype.getBoolean = function (e, t, n) { + var r = this.getCache(t).get(e); + return Pe(r) ? n : 'true' === r; + }), + (t.prototype.store = function (e, t, n) { + if (Pe(t)) return this.remove(e, n); + var r = String(t); + return this.getCache(n).get(e) === r + ? Promise.resolve() + : (this.getCache(n).set(e, r), + this._onDidChangeStorage.fire({ scope: n, key: e }), + Promise.resolve()); + }), + (t.prototype.remove = function (e, t) { + return this.getCache(t).delete(e) + ? (this._onDidChangeStorage.fire({ scope: t, key: e }), + Promise.resolve()) + : Promise.resolve(); + }), + t + ); + })(Rt); + ((rm = nm || (nm = {}))[(rm.Ignore = 0)] = 'Ignore'), + (rm[(rm.Info = 1)] = 'Info'), + (rm[(rm.Warning = 2)] = 'Warning'), + (rm[(rm.Error = 3)] = 'Error'), + (function (e) { + var t = 'error', + n = 'warning', + r = 'warn', + i = 'info', + o = Object.create(null); + (o[e.Error] = De('sev.error', 'Error')), + (o[e.Warning] = De('sev.warning', 'Warning')), + (o[e.Info] = De('sev.info', 'Info')), + (e.fromValue = function (o) { + return o + ? bn(t, o) + ? e.Error + : bn(n, o) || bn(r, o) + ? e.Warning + : bn(i, o) + ? e.Info + : e.Ignore + : e.Ignore; + }); + })(nm || (nm = {})); + var om = nm, + sm = wt('notificationService'), + am = function () {}, + um = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + lm = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + cm = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + dm = 524288; + function hm(e) { + if (!e.hasModel()) return null; + var t = e.getSelection(); + if (t.startLineNumber === t.endLineNumber) + if (t.isEmpty()) { + var n = e.getModel().getWordAtPosition(t.getStartPosition()); + if (n) return n.word; + } else if (e.getModel().getValueLengthInRange(t) < dm) + return e.getModel().getValueInRange(t); + return null; + } + var fm, + pm = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + return ( + (o._editor = t), + (o._findWidgetVisible = $d.bindTo(n)), + (o._contextKeyService = n), + (o._storageService = r), + (o._clipboardService = i), + (o._updateHistoryDelayer = new Ms(500)), + (o._state = o._register(new tp())), + o.loadQueryState(), + o._register( + o._state.onFindReplaceStateChange(function (e) { + return o._onStateChanged(e); + }) + ), + (o._model = null), + o._register( + o._editor.onDidChangeModel(function () { + var e = o._editor.getModel() && o._state.isRevealed; + o.disposeModel(), + o._state.change( + { + searchScope: null, + matchCase: o._storageService.getBoolean( + 'editor.matchCase', + 1, + !1 + ), + wholeWord: o._storageService.getBoolean( + 'editor.wholeWord', + 1, + !1 + ), + isRegex: o._storageService.getBoolean( + 'editor.isRegex', + 1, + !1 + ), + preserveCase: o._storageService.getBoolean( + 'editor.preserveCase', + 1, + !1 + ), + }, + !1 + ), + e && + o._start({ + forceRevealReplace: !1, + seedSearchStringFromSelection: !1, + seedSearchStringFromGlobalClipboard: !1, + shouldFocus: 0, + shouldAnimate: !1, + updateSearchScope: !1, + }); + }) + ), + o + ); + } + return ( + um(t, e), + (t.get = function (e) { + return e.getContribution(t.ID); + }), + (t.prototype.dispose = function () { + this.disposeModel(), e.prototype.dispose.call(this); + }), + (t.prototype.disposeModel = function () { + this._model && (this._model.dispose(), (this._model = null)); + }), + (t.prototype.getId = function () { + return t.ID; + }), + (t.prototype._onStateChanged = function (e) { + this.saveQueryState(e), + e.isRevealed && + (this._state.isRevealed + ? this._findWidgetVisible.set(!0) + : (this._findWidgetVisible.reset(), this.disposeModel())), + e.searchString && + this.setGlobalBufferTerm(this._state.searchString); + }), + (t.prototype.saveQueryState = function (e) { + e.isRegex && + this._storageService.store( + 'editor.isRegex', + this._state.actualIsRegex, + 1 + ), + e.wholeWord && + this._storageService.store( + 'editor.wholeWord', + this._state.actualWholeWord, + 1 + ), + e.matchCase && + this._storageService.store( + 'editor.matchCase', + this._state.actualMatchCase, + 1 + ), + e.preserveCase && + this._storageService.store( + 'editor.preserveCase', + this._state.actualPreserveCase, + 1 + ); + }), + (t.prototype.loadQueryState = function () { + this._state.change( + { + matchCase: this._storageService.getBoolean( + 'editor.matchCase', + 1, + this._state.matchCase + ), + wholeWord: this._storageService.getBoolean( + 'editor.wholeWord', + 1, + this._state.wholeWord + ), + isRegex: this._storageService.getBoolean( + 'editor.isRegex', + 1, + this._state.isRegex + ), + preserveCase: this._storageService.getBoolean( + 'editor.preserveCase', + 1, + this._state.preserveCase + ), + }, + !1 + ); + }), + (t.prototype.isFindInputFocused = function () { + return !!Zd.getValue(this._contextKeyService); + }), + (t.prototype.getState = function () { + return this._state; + }), + (t.prototype.closeFindWidget = function () { + this._state.change({ isRevealed: !1, searchScope: null }, !1), + this._editor.focus(); + }), + (t.prototype.toggleCaseSensitive = function () { + this._state.change({ matchCase: !this._state.matchCase }, !1), + this._state.isRevealed || this.highlightFindOptions(); + }), + (t.prototype.toggleWholeWords = function () { + this._state.change({ wholeWord: !this._state.wholeWord }, !1), + this._state.isRevealed || this.highlightFindOptions(); + }), + (t.prototype.toggleRegex = function () { + this._state.change({ isRegex: !this._state.isRegex }, !1), + this._state.isRevealed || this.highlightFindOptions(); + }), + (t.prototype.toggleSearchScope = function () { + if (this._state.searchScope) + this._state.change({ searchScope: null }, !0); + else if (this._editor.hasModel()) { + var e = this._editor.getSelection(); + 1 === e.endColumn && + e.endLineNumber > e.startLineNumber && + (e = e.setEndPosition( + e.endLineNumber - 1, + this._editor.getModel().getLineMaxColumn(e.endLineNumber - 1) + )), + e.isEmpty() || this._state.change({ searchScope: e }, !0); + } + }), + (t.prototype.setSearchString = function (e) { + this._state.isRegex && (e = un(e)), + this._state.change({ searchString: e }, !1); + }), + (t.prototype.highlightFindOptions = function () {}), + (t.prototype._start = function (e) { + if ((this.disposeModel(), this._editor.hasModel())) { + var t, + n = { isRevealed: !0 }; + if (e.seedSearchStringFromSelection) + (t = hm(this._editor)) && + (this._state.isRegex + ? (n.searchString = un(t)) + : (n.searchString = t)); + if (!n.searchString && e.seedSearchStringFromGlobalClipboard) + (t = this.getGlobalBufferTerm()) && (n.searchString = t); + if ( + (e.forceRevealReplace + ? (n.isReplaceRevealed = !0) + : this._findWidgetVisible.get() || (n.isReplaceRevealed = !1), + e.updateSearchScope) + ) { + var r = this._editor.getSelection(); + r.isEmpty() || (n.searchScope = r); + } + this._state.change(n, !1), + this._model || + (this._model = new rh(this._editor, this._state)); + } + }), + (t.prototype.start = function (e) { + this._start(e); + }), + (t.prototype.moveToNextMatch = function () { + return !!this._model && (this._model.moveToNextMatch(), !0); + }), + (t.prototype.moveToPrevMatch = function () { + return !!this._model && (this._model.moveToPrevMatch(), !0); + }), + (t.prototype.replace = function () { + return !!this._model && (this._model.replace(), !0); + }), + (t.prototype.replaceAll = function () { + return !!this._model && (this._model.replaceAll(), !0); + }), + (t.prototype.selectAllMatches = function () { + return ( + !!this._model && + (this._model.selectAllMatches(), this._editor.focus(), !0) + ); + }), + (t.prototype.getGlobalBufferTerm = function () { + return this._editor.getConfiguration().contribInfo.find + .globalFindClipboard && + this._clipboardService && + this._editor.hasModel() && + !this._editor.getModel().isTooLargeForSyncing() + ? this._clipboardService.readFindText() + : ''; + }), + (t.prototype.setGlobalBufferTerm = function (e) { + this._editor.getConfiguration().contribInfo.find + .globalFindClipboard && + this._clipboardService && + this._editor.hasModel() && + !this._editor.getModel().isTooLargeForSyncing() && + this._clipboardService.writeFindText(e); + }), + (t.ID = 'editor.contrib.findController'), + (t = lm([cm(1, qn), cm(2, tm), cm(3, Zg)], t)) + ); + })(Rt), + gm = (function (e) { + function t(t, n, r, i, o, s, a, u) { + var l = e.call(this, t, r, a, u) || this; + return ( + (l._contextViewService = n), + (l._keybindingService = i), + (l._themeService = o), + (l._notificationService = s), + (l._widget = null), + (l._findOptionsWidget = null), + l + ); + } + return ( + um(t, e), + (t.prototype._start = function (t) { + this._widget || this._createFindWidget(), + !this._widget.getPosition() && + this._editor.getConfiguration().contribInfo.find + .autoFindInSelection && + (t.updateSearchScope = !0), + e.prototype._start.call(this, t), + 2 === t.shouldFocus + ? this._widget.focusReplaceInput() + : 1 === t.shouldFocus && this._widget.focusFindInput(); + }), + (t.prototype.highlightFindOptions = function () { + this._widget || this._createFindWidget(), + this._state.isRevealed + ? this._widget.highlightFindOptions() + : this._findOptionsWidget.highlightFindOptions(); + }), + (t.prototype._createFindWidget = function () { + (this._widget = this._register( + new qg( + this._editor, + this, + this._state, + this._contextViewService, + this._keybindingService, + this._contextKeyService, + this._themeService, + this._storageService, + this._notificationService + ) + )), + (this._findOptionsWidget = this._register( + new Zf( + this._editor, + this._state, + this._keybindingService, + this._themeService + ) + )); + }), + (t = lm( + [ + cm(1, Xg), + cm(2, qn), + cm(3, Qg), + cm(4, Ad), + cm(5, sm), + cm(6, tm), + cm(7, Ct(Zg)), + ], + t + )) + ); + })(pm), + mm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.StartFindAction, + label: De('startFindAction', 'Find'), + alias: 'Find', + precondition: void 0, + kbOpts: { kbExpr: null, primary: 2084, weight: 100 }, + menubarOpts: { + menuId: 14, + group: '3_find', + title: De( + { key: 'miFind', comment: ['&& denotes a mnemonic'] }, + '&&Find' + ), + order: 1, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype.run = function (e, t) { + var n = pm.get(t); + n && + n.start({ + forceRevealReplace: !1, + seedSearchStringFromSelection: t.getConfiguration().contribInfo + .find.seedSearchStringFromSelection, + seedSearchStringFromGlobalClipboard: t.getConfiguration() + .contribInfo.find.globalFindClipboard, + shouldFocus: 1, + shouldAnimate: !0, + updateSearchScope: !1, + }); + }), + t + ); + })(Ar), + _m = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.StartFindWithSelection, + label: De('startFindWithSelectionAction', 'Find With Selection'), + alias: 'Find With Selection', + precondition: void 0, + kbOpts: { + kbExpr: null, + primary: 0, + mac: { primary: 2083 }, + weight: 100, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype.run = function (e, t) { + var n = pm.get(t); + n && + (n.start({ + forceRevealReplace: !1, + seedSearchStringFromSelection: !0, + seedSearchStringFromGlobalClipboard: !1, + shouldFocus: 1, + shouldAnimate: !0, + updateSearchScope: !1, + }), + n.setGlobalBufferTerm(n.getState().searchString)); + }), + t + ); + })(Ar), + ym = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + um(t, e), + (t.prototype.run = function (e, t) { + var n = pm.get(t); + n && + !this._run(n) && + (n.start({ + forceRevealReplace: !1, + seedSearchStringFromSelection: + 0 === n.getState().searchString.length && + t.getConfiguration().contribInfo.find + .seedSearchStringFromSelection, + seedSearchStringFromGlobalClipboard: !0, + shouldFocus: 0, + shouldAnimate: !0, + updateSearchScope: !1, + }), + this._run(n)); + }), + t + ); + })(Ar), + vm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.NextMatchFindAction, + label: De('findNextMatchAction', 'Find Next'), + alias: 'Find Next', + precondition: void 0, + kbOpts: { + kbExpr: Dl.focus, + primary: 61, + mac: { primary: 2085, secondary: [61] }, + weight: 100, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToNextMatch(); + }), + t + ); + })(ym), + bm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.NextMatchFindAction, + label: De('findNextMatchAction', 'Find Next'), + alias: 'Find Next', + precondition: void 0, + kbOpts: { kbExpr: Pn.and(Dl.focus, Zd), primary: 3, weight: 100 }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToNextMatch(); + }), + t + ); + })(ym), + wm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.PreviousMatchFindAction, + label: De('findPreviousMatchAction', 'Find Previous'), + alias: 'Find Previous', + precondition: void 0, + kbOpts: { + kbExpr: Dl.focus, + primary: 1085, + mac: { primary: 3109, secondary: [1085] }, + weight: 100, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToPrevMatch(); + }), + t + ); + })(ym), + Cm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.PreviousMatchFindAction, + label: De('findPreviousMatchAction', 'Find Previous'), + alias: 'Find Previous', + precondition: void 0, + kbOpts: { + kbExpr: Pn.and(Dl.focus, Zd), + primary: 1027, + weight: 100, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToPrevMatch(); + }), + t + ); + })(ym), + Sm = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + um(t, e), + (t.prototype.run = function (e, t) { + var n = pm.get(t); + if (n) { + var r = hm(t); + r && n.setSearchString(r), + this._run(n) || + (n.start({ + forceRevealReplace: !1, + seedSearchStringFromSelection: t.getConfiguration() + .contribInfo.find.seedSearchStringFromSelection, + seedSearchStringFromGlobalClipboard: !1, + shouldFocus: 0, + shouldAnimate: !0, + updateSearchScope: !1, + }), + this._run(n)); + } + }), + t + ); + })(Ar), + xm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.NextSelectionMatchFindAction, + label: De('nextSelectionMatchFindAction', 'Find Next Selection'), + alias: 'Find Next Selection', + precondition: void 0, + kbOpts: { kbExpr: Dl.focus, primary: 2109, weight: 100 }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToNextMatch(); + }), + t + ); + })(Sm), + Lm = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.PreviousSelectionMatchFindAction, + label: De( + 'previousSelectionMatchFindAction', + 'Find Previous Selection' + ), + alias: 'Find Previous Selection', + precondition: void 0, + kbOpts: { kbExpr: Dl.focus, primary: 3133, weight: 100 }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype._run = function (e) { + return e.moveToPrevMatch(); + }), + t + ); + })(Sm), + km = (function (e) { + function t() { + return ( + e.call(this, { + id: nh.StartFindReplaceAction, + label: De('startReplace', 'Replace'), + alias: 'Replace', + precondition: void 0, + kbOpts: { + kbExpr: null, + primary: 2086, + mac: { primary: 2596 }, + weight: 100, + }, + menubarOpts: { + menuId: 14, + group: '3_find', + title: De( + { key: 'miReplace', comment: ['&& denotes a mnemonic'] }, + '&&Replace' + ), + order: 2, + }, + }) || this + ); + } + return ( + um(t, e), + (t.prototype.run = function (e, t) { + if (t.hasModel() && !t.getConfiguration().readOnly) { + var n = pm.get(t), + r = t.getSelection(), + i = n.isFindInputFocused(), + o = + !r.isEmpty() && + r.startLineNumber === r.endLineNumber && + t.getConfiguration().contribInfo.find + .seedSearchStringFromSelection && + !i, + s = i || o ? 2 : 1; + n && + n.start({ + forceRevealReplace: !0, + seedSearchStringFromSelection: o, + seedSearchStringFromGlobalClipboard: t.getConfiguration() + .contribInfo.find.seedSearchStringFromSelection, + shouldFocus: s, + shouldAnimate: !0, + updateSearchScope: !1, + }); + } + }), + t + ); + })(Ar); + (fm = gm), + Rr.INSTANCE.registerEditorContribution(fm), + Pr(mm), + Pr(_m), + Pr(vm), + Pr(bm), + Pr(wm), + Pr(Cm), + Pr(xm), + Pr(Lm), + Pr(km); + var Mm = Or.bindToContribution(pm.get); + Ir( + new Mm({ + id: nh.CloseFindWidgetCommand, + precondition: $d, + handler: function (e) { + return e.closeFindWidget(); + }, + kbOpts: { + weight: 105, + kbExpr: Dl.focus, + primary: 9, + secondary: [1033], + }, + }) + ), + Ir( + new Mm({ + id: nh.ToggleCaseSensitiveCommand, + precondition: void 0, + handler: function (e) { + return e.toggleCaseSensitive(); + }, + kbOpts: { + weight: 105, + kbExpr: Dl.focus, + primary: Jd.primary, + mac: Jd.mac, + win: Jd.win, + linux: Jd.linux, + }, + }) + ), + Ir( + new Mm({ + id: nh.ToggleWholeWordCommand, + precondition: void 0, + handler: function (e) { + return e.toggleWholeWords(); + }, + kbOpts: { + weight: 105, + kbExpr: Dl.focus, + primary: Qd.primary, + mac: Qd.mac, + win: Qd.win, + linux: Qd.linux, + }, + }) + ), + Ir( + new Mm({ + id: nh.ToggleRegexCommand, + precondition: void 0, + handler: function (e) { + return e.toggleRegex(); + }, + kbOpts: { + weight: 105, + kbExpr: Dl.focus, + primary: eh.primary, + mac: eh.mac, + win: eh.win, + linux: eh.linux, + }, + }) + ), + Ir( + new Mm({ + id: nh.ToggleSearchScopeCommand, + precondition: void 0, + handler: function (e) { + return e.toggleSearchScope(); + }, + kbOpts: { + weight: 105, + kbExpr: Dl.focus, + primary: th.primary, + mac: th.mac, + win: th.win, + linux: th.linux, + }, + }) + ), + Ir( + new Mm({ + id: nh.ReplaceOneAction, + precondition: $d, + handler: function (e) { + return e.replace(); + }, + kbOpts: { weight: 105, kbExpr: Dl.focus, primary: 3094 }, + }) + ), + Ir( + new Mm({ + id: nh.ReplaceOneAction, + precondition: $d, + handler: function (e) { + return e.replace(); + }, + kbOpts: { weight: 105, kbExpr: Pn.and(Dl.focus, Xd), primary: 3 }, + }) + ), + Ir( + new Mm({ + id: nh.ReplaceAllAction, + precondition: $d, + handler: function (e) { + return e.replaceAll(); + }, + kbOpts: { weight: 105, kbExpr: Dl.focus, primary: 2563 }, + }) + ), + Ir( + new Mm({ + id: nh.ReplaceAllAction, + precondition: $d, + handler: function (e) { + return e.replaceAll(); + }, + kbOpts: { + weight: 105, + kbExpr: Pn.and(Dl.focus, Xd), + primary: void 0, + mac: { primary: 2051 }, + }, + }) + ), + Ir( + new Mm({ + id: nh.SelectAllMatchesAction, + precondition: $d, + handler: function (e) { + return e.selectAllMatches(); + }, + kbOpts: { weight: 105, kbExpr: Dl.focus, primary: 515 }, + }) + ); + var Dm, + Em, + Tm, + Nm, + Om, + Am, + Im, + Pm, + Rm, + Fm, + Ym, + jm, + Bm, + Wm, + Hm, + Vm, + zm, + Um, + qm, + Km, + Gm, + $m, + Zm, + Xm, + Jm, + Qm, + e_, + t_, + n_, + r_, + i_; + n(329); + !(function (e) { + (e[(e.Unnecessary = 1)] = 'Unnecessary'), + (e[(e.Deprecated = 2)] = 'Deprecated'); + })(Dm || (Dm = {})), + ((Tm = Em || (Em = {}))[(Tm.Hint = 1)] = 'Hint'), + (Tm[(Tm.Info = 2)] = 'Info'), + (Tm[(Tm.Warning = 4)] = 'Warning'), + (Tm[(Tm.Error = 8)] = 'Error'), + (function (e) { + (e[(e.Unknown = 0)] = 'Unknown'), + (e[(e.Backspace = 1)] = 'Backspace'), + (e[(e.Tab = 2)] = 'Tab'), + (e[(e.Enter = 3)] = 'Enter'), + (e[(e.Shift = 4)] = 'Shift'), + (e[(e.Ctrl = 5)] = 'Ctrl'), + (e[(e.Alt = 6)] = 'Alt'), + (e[(e.PauseBreak = 7)] = 'PauseBreak'), + (e[(e.CapsLock = 8)] = 'CapsLock'), + (e[(e.Escape = 9)] = 'Escape'), + (e[(e.Space = 10)] = 'Space'), + (e[(e.PageUp = 11)] = 'PageUp'), + (e[(e.PageDown = 12)] = 'PageDown'), + (e[(e.End = 13)] = 'End'), + (e[(e.Home = 14)] = 'Home'), + (e[(e.LeftArrow = 15)] = 'LeftArrow'), + (e[(e.UpArrow = 16)] = 'UpArrow'), + (e[(e.RightArrow = 17)] = 'RightArrow'), + (e[(e.DownArrow = 18)] = 'DownArrow'), + (e[(e.Insert = 19)] = 'Insert'), + (e[(e.Delete = 20)] = 'Delete'), + (e[(e.KEY_0 = 21)] = 'KEY_0'), + (e[(e.KEY_1 = 22)] = 'KEY_1'), + (e[(e.KEY_2 = 23)] = 'KEY_2'), + (e[(e.KEY_3 = 24)] = 'KEY_3'), + (e[(e.KEY_4 = 25)] = 'KEY_4'), + (e[(e.KEY_5 = 26)] = 'KEY_5'), + (e[(e.KEY_6 = 27)] = 'KEY_6'), + (e[(e.KEY_7 = 28)] = 'KEY_7'), + (e[(e.KEY_8 = 29)] = 'KEY_8'), + (e[(e.KEY_9 = 30)] = 'KEY_9'), + (e[(e.KEY_A = 31)] = 'KEY_A'), + (e[(e.KEY_B = 32)] = 'KEY_B'), + (e[(e.KEY_C = 33)] = 'KEY_C'), + (e[(e.KEY_D = 34)] = 'KEY_D'), + (e[(e.KEY_E = 35)] = 'KEY_E'), + (e[(e.KEY_F = 36)] = 'KEY_F'), + (e[(e.KEY_G = 37)] = 'KEY_G'), + (e[(e.KEY_H = 38)] = 'KEY_H'), + (e[(e.KEY_I = 39)] = 'KEY_I'), + (e[(e.KEY_J = 40)] = 'KEY_J'), + (e[(e.KEY_K = 41)] = 'KEY_K'), + (e[(e.KEY_L = 42)] = 'KEY_L'), + (e[(e.KEY_M = 43)] = 'KEY_M'), + (e[(e.KEY_N = 44)] = 'KEY_N'), + (e[(e.KEY_O = 45)] = 'KEY_O'), + (e[(e.KEY_P = 46)] = 'KEY_P'), + (e[(e.KEY_Q = 47)] = 'KEY_Q'), + (e[(e.KEY_R = 48)] = 'KEY_R'), + (e[(e.KEY_S = 49)] = 'KEY_S'), + (e[(e.KEY_T = 50)] = 'KEY_T'), + (e[(e.KEY_U = 51)] = 'KEY_U'), + (e[(e.KEY_V = 52)] = 'KEY_V'), + (e[(e.KEY_W = 53)] = 'KEY_W'), + (e[(e.KEY_X = 54)] = 'KEY_X'), + (e[(e.KEY_Y = 55)] = 'KEY_Y'), + (e[(e.KEY_Z = 56)] = 'KEY_Z'), + (e[(e.Meta = 57)] = 'Meta'), + (e[(e.ContextMenu = 58)] = 'ContextMenu'), + (e[(e.F1 = 59)] = 'F1'), + (e[(e.F2 = 60)] = 'F2'), + (e[(e.F3 = 61)] = 'F3'), + (e[(e.F4 = 62)] = 'F4'), + (e[(e.F5 = 63)] = 'F5'), + (e[(e.F6 = 64)] = 'F6'), + (e[(e.F7 = 65)] = 'F7'), + (e[(e.F8 = 66)] = 'F8'), + (e[(e.F9 = 67)] = 'F9'), + (e[(e.F10 = 68)] = 'F10'), + (e[(e.F11 = 69)] = 'F11'), + (e[(e.F12 = 70)] = 'F12'), + (e[(e.F13 = 71)] = 'F13'), + (e[(e.F14 = 72)] = 'F14'), + (e[(e.F15 = 73)] = 'F15'), + (e[(e.F16 = 74)] = 'F16'), + (e[(e.F17 = 75)] = 'F17'), + (e[(e.F18 = 76)] = 'F18'), + (e[(e.F19 = 77)] = 'F19'), + (e[(e.NumLock = 78)] = 'NumLock'), + (e[(e.ScrollLock = 79)] = 'ScrollLock'), + (e[(e.US_SEMICOLON = 80)] = 'US_SEMICOLON'), + (e[(e.US_EQUAL = 81)] = 'US_EQUAL'), + (e[(e.US_COMMA = 82)] = 'US_COMMA'), + (e[(e.US_MINUS = 83)] = 'US_MINUS'), + (e[(e.US_DOT = 84)] = 'US_DOT'), + (e[(e.US_SLASH = 85)] = 'US_SLASH'), + (e[(e.US_BACKTICK = 86)] = 'US_BACKTICK'), + (e[(e.US_OPEN_SQUARE_BRACKET = 87)] = 'US_OPEN_SQUARE_BRACKET'), + (e[(e.US_BACKSLASH = 88)] = 'US_BACKSLASH'), + (e[(e.US_CLOSE_SQUARE_BRACKET = 89)] = 'US_CLOSE_SQUARE_BRACKET'), + (e[(e.US_QUOTE = 90)] = 'US_QUOTE'), + (e[(e.OEM_8 = 91)] = 'OEM_8'), + (e[(e.OEM_102 = 92)] = 'OEM_102'), + (e[(e.NUMPAD_0 = 93)] = 'NUMPAD_0'), + (e[(e.NUMPAD_1 = 94)] = 'NUMPAD_1'), + (e[(e.NUMPAD_2 = 95)] = 'NUMPAD_2'), + (e[(e.NUMPAD_3 = 96)] = 'NUMPAD_3'), + (e[(e.NUMPAD_4 = 97)] = 'NUMPAD_4'), + (e[(e.NUMPAD_5 = 98)] = 'NUMPAD_5'), + (e[(e.NUMPAD_6 = 99)] = 'NUMPAD_6'), + (e[(e.NUMPAD_7 = 100)] = 'NUMPAD_7'), + (e[(e.NUMPAD_8 = 101)] = 'NUMPAD_8'), + (e[(e.NUMPAD_9 = 102)] = 'NUMPAD_9'), + (e[(e.NUMPAD_MULTIPLY = 103)] = 'NUMPAD_MULTIPLY'), + (e[(e.NUMPAD_ADD = 104)] = 'NUMPAD_ADD'), + (e[(e.NUMPAD_SEPARATOR = 105)] = 'NUMPAD_SEPARATOR'), + (e[(e.NUMPAD_SUBTRACT = 106)] = 'NUMPAD_SUBTRACT'), + (e[(e.NUMPAD_DECIMAL = 107)] = 'NUMPAD_DECIMAL'), + (e[(e.NUMPAD_DIVIDE = 108)] = 'NUMPAD_DIVIDE'), + (e[(e.KEY_IN_COMPOSITION = 109)] = 'KEY_IN_COMPOSITION'), + (e[(e.ABNT_C1 = 110)] = 'ABNT_C1'), + (e[(e.ABNT_C2 = 111)] = 'ABNT_C2'), + (e[(e.MAX_VALUE = 112)] = 'MAX_VALUE'); + })(Nm || (Nm = {})), + (function (e) { + (e[(e.LTR = 0)] = 'LTR'), (e[(e.RTL = 1)] = 'RTL'); + })(Om || (Om = {})), + (function (e) { + (e[(e.Auto = 1)] = 'Auto'), + (e[(e.Hidden = 2)] = 'Hidden'), + (e[(e.Visible = 3)] = 'Visible'); + })(Am || (Am = {})), + (function (e) { + (e[(e.Left = 1)] = 'Left'), + (e[(e.Center = 2)] = 'Center'), + (e[(e.Right = 4)] = 'Right'), + (e[(e.Full = 7)] = 'Full'); + })(Im || (Im = {})), + (function (e) { + e[(e.Inline = 1)] = 'Inline'; + })(Pm || (Pm = {})), + (function (e) { + (e[(e.TextDefined = 0)] = 'TextDefined'), + (e[(e.LF = 1)] = 'LF'), + (e[(e.CRLF = 2)] = 'CRLF'); + })(Rm || (Rm = {})), + (function (e) { + (e[(e.LF = 1)] = 'LF'), (e[(e.CRLF = 2)] = 'CRLF'); + })(Fm || (Fm = {})), + (function (e) { + (e[(e.LF = 0)] = 'LF'), (e[(e.CRLF = 1)] = 'CRLF'); + })(Ym || (Ym = {})), + (function (e) { + (e[(e.AlwaysGrowsWhenTypingAtEdges = 0)] = + 'AlwaysGrowsWhenTypingAtEdges'), + (e[(e.NeverGrowsWhenTypingAtEdges = 1)] = + 'NeverGrowsWhenTypingAtEdges'), + (e[(e.GrowsOnlyWhenTypingBefore = 2)] = 'GrowsOnlyWhenTypingBefore'), + (e[(e.GrowsOnlyWhenTypingAfter = 3)] = 'GrowsOnlyWhenTypingAfter'); + })(jm || (jm = {})), + (function (e) { + (e[(e.Smooth = 0)] = 'Smooth'), (e[(e.Immediate = 1)] = 'Immediate'); + })(Bm || (Bm = {})), + (function (e) { + (e[(e.NotSet = 0)] = 'NotSet'), + (e[(e.ContentFlush = 1)] = 'ContentFlush'), + (e[(e.RecoverFromMarkers = 2)] = 'RecoverFromMarkers'), + (e[(e.Explicit = 3)] = 'Explicit'), + (e[(e.Paste = 4)] = 'Paste'), + (e[(e.Undo = 5)] = 'Undo'), + (e[(e.Redo = 6)] = 'Redo'); + })(Wm || (Wm = {})), + (function (e) { + (e[(e.None = 0)] = 'None'), + (e[(e.Small = 1)] = 'Small'), + (e[(e.Large = 2)] = 'Large'), + (e[(e.SmallBlocks = 3)] = 'SmallBlocks'), + (e[(e.LargeBlocks = 4)] = 'LargeBlocks'); + })(Hm || (Hm = {})), + (function (e) { + (e[(e.None = 0)] = 'None'), + (e[(e.Same = 1)] = 'Same'), + (e[(e.Indent = 2)] = 'Indent'), + (e[(e.DeepIndent = 3)] = 'DeepIndent'); + })(Vm || (Vm = {})), + (function (e) { + (e[(e.Hidden = 0)] = 'Hidden'), + (e[(e.Blink = 1)] = 'Blink'), + (e[(e.Smooth = 2)] = 'Smooth'), + (e[(e.Phase = 3)] = 'Phase'), + (e[(e.Expand = 4)] = 'Expand'), + (e[(e.Solid = 5)] = 'Solid'); + })(zm || (zm = {})), + (function (e) { + (e[(e.Line = 1)] = 'Line'), + (e[(e.Block = 2)] = 'Block'), + (e[(e.Underline = 3)] = 'Underline'), + (e[(e.LineThin = 4)] = 'LineThin'), + (e[(e.BlockOutline = 5)] = 'BlockOutline'), + (e[(e.UnderlineThin = 6)] = 'UnderlineThin'); + })(Um || (Um = {})), + (function (e) { + (e[(e.Off = 0)] = 'Off'), + (e[(e.On = 1)] = 'On'), + (e[(e.Relative = 2)] = 'Relative'), + (e[(e.Interval = 3)] = 'Interval'), + (e[(e.Custom = 4)] = 'Custom'); + })(qm || (qm = {})), + (function (e) { + (e[(e.EXACT = 0)] = 'EXACT'), + (e[(e.ABOVE = 1)] = 'ABOVE'), + (e[(e.BELOW = 2)] = 'BELOW'); + })(Km || (Km = {})), + (function (e) { + (e[(e.TOP_RIGHT_CORNER = 0)] = 'TOP_RIGHT_CORNER'), + (e[(e.BOTTOM_RIGHT_CORNER = 1)] = 'BOTTOM_RIGHT_CORNER'), + (e[(e.TOP_CENTER = 2)] = 'TOP_CENTER'); + })(Gm || (Gm = {})), + (function (e) { + (e[(e.UNKNOWN = 0)] = 'UNKNOWN'), + (e[(e.TEXTAREA = 1)] = 'TEXTAREA'), + (e[(e.GUTTER_GLYPH_MARGIN = 2)] = 'GUTTER_GLYPH_MARGIN'), + (e[(e.GUTTER_LINE_NUMBERS = 3)] = 'GUTTER_LINE_NUMBERS'), + (e[(e.GUTTER_LINE_DECORATIONS = 4)] = 'GUTTER_LINE_DECORATIONS'), + (e[(e.GUTTER_VIEW_ZONE = 5)] = 'GUTTER_VIEW_ZONE'), + (e[(e.CONTENT_TEXT = 6)] = 'CONTENT_TEXT'), + (e[(e.CONTENT_EMPTY = 7)] = 'CONTENT_EMPTY'), + (e[(e.CONTENT_VIEW_ZONE = 8)] = 'CONTENT_VIEW_ZONE'), + (e[(e.CONTENT_WIDGET = 9)] = 'CONTENT_WIDGET'), + (e[(e.OVERVIEW_RULER = 10)] = 'OVERVIEW_RULER'), + (e[(e.SCROLLBAR = 11)] = 'SCROLLBAR'), + (e[(e.OVERLAY_WIDGET = 12)] = 'OVERLAY_WIDGET'), + (e[(e.OUTSIDE_EDITOR = 13)] = 'OUTSIDE_EDITOR'); + })($m || ($m = {})), + (function (e) { + (e[(e.None = 0)] = 'None'), + (e[(e.Indent = 1)] = 'Indent'), + (e[(e.IndentOutdent = 2)] = 'IndentOutdent'), + (e[(e.Outdent = 3)] = 'Outdent'); + })(Zm || (Zm = {})), + (function (e) { + (e[(e.Method = 0)] = 'Method'), + (e[(e.Function = 1)] = 'Function'), + (e[(e.Constructor = 2)] = 'Constructor'), + (e[(e.Field = 3)] = 'Field'), + (e[(e.Variable = 4)] = 'Variable'), + (e[(e.Class = 5)] = 'Class'), + (e[(e.Struct = 6)] = 'Struct'), + (e[(e.Interface = 7)] = 'Interface'), + (e[(e.Module = 8)] = 'Module'), + (e[(e.Property = 9)] = 'Property'), + (e[(e.Event = 10)] = 'Event'), + (e[(e.Operator = 11)] = 'Operator'), + (e[(e.Unit = 12)] = 'Unit'), + (e[(e.Value = 13)] = 'Value'), + (e[(e.Constant = 14)] = 'Constant'), + (e[(e.Enum = 15)] = 'Enum'), + (e[(e.EnumMember = 16)] = 'EnumMember'), + (e[(e.Keyword = 17)] = 'Keyword'), + (e[(e.Text = 18)] = 'Text'), + (e[(e.Color = 19)] = 'Color'), + (e[(e.File = 20)] = 'File'), + (e[(e.Reference = 21)] = 'Reference'), + (e[(e.Customcolor = 22)] = 'Customcolor'), + (e[(e.Folder = 23)] = 'Folder'), + (e[(e.TypeParameter = 24)] = 'TypeParameter'), + (e[(e.Snippet = 25)] = 'Snippet'); + })(Xm || (Xm = {})), + (function (e) { + e[(e.Deprecated = 1)] = 'Deprecated'; + })(Jm || (Jm = {})), + (function (e) { + (e[(e.KeepWhitespace = 1)] = 'KeepWhitespace'), + (e[(e.InsertAsSnippet = 4)] = 'InsertAsSnippet'); + })(Qm || (Qm = {})), + (function (e) { + (e[(e.Invoke = 0)] = 'Invoke'), + (e[(e.TriggerCharacter = 1)] = 'TriggerCharacter'), + (e[(e.TriggerForIncompleteCompletions = 2)] = + 'TriggerForIncompleteCompletions'); + })(e_ || (e_ = {})), + (function (e) { + (e[(e.Invoke = 1)] = 'Invoke'), + (e[(e.TriggerCharacter = 2)] = 'TriggerCharacter'), + (e[(e.ContentChange = 3)] = 'ContentChange'); + })(t_ || (t_ = {})), + (function (e) { + (e[(e.Text = 0)] = 'Text'), + (e[(e.Read = 1)] = 'Read'), + (e[(e.Write = 2)] = 'Write'); + })(n_ || (n_ = {})), + (function (e) { + (e[(e.File = 0)] = 'File'), + (e[(e.Module = 1)] = 'Module'), + (e[(e.Namespace = 2)] = 'Namespace'), + (e[(e.Package = 3)] = 'Package'), + (e[(e.Class = 4)] = 'Class'), + (e[(e.Method = 5)] = 'Method'), + (e[(e.Property = 6)] = 'Property'), + (e[(e.Field = 7)] = 'Field'), + (e[(e.Constructor = 8)] = 'Constructor'), + (e[(e.Enum = 9)] = 'Enum'), + (e[(e.Interface = 10)] = 'Interface'), + (e[(e.Function = 11)] = 'Function'), + (e[(e.Variable = 12)] = 'Variable'), + (e[(e.Constant = 13)] = 'Constant'), + (e[(e.String = 14)] = 'String'), + (e[(e.Number = 15)] = 'Number'), + (e[(e.Boolean = 16)] = 'Boolean'), + (e[(e.Array = 17)] = 'Array'), + (e[(e.Object = 18)] = 'Object'), + (e[(e.Key = 19)] = 'Key'), + (e[(e.Null = 20)] = 'Null'), + (e[(e.EnumMember = 21)] = 'EnumMember'), + (e[(e.Struct = 22)] = 'Struct'), + (e[(e.Event = 23)] = 'Event'), + (e[(e.Operator = 24)] = 'Operator'), + (e[(e.TypeParameter = 25)] = 'TypeParameter'); + })(r_ || (r_ = {})), + (function (e) { + e[(e.Deprecated = 1)] = 'Deprecated'; + })(i_ || (i_ = {})); + var o_ = (function () { + function e() {} + return ( + (e.chord = function (e, t) { + return (function (e, t) { + return (e | (((65535 & t) << 16) >>> 0)) >>> 0; + })(e, t); + }), + (e.CtrlCmd = 2048), + (e.Shift = 1024), + (e.Alt = 512), + (e.WinCtrl = 256), + e + ); + })(); + function s_() { + return { + editor: void 0, + languages: void 0, + CancellationTokenSource: Ls, + Emitter: Gt, + KeyCode: Nm, + KeyMod: o_, + Position: xt, + Range: Fr, + Selection: jr, + SelectionDirection: Om, + MarkerSeverity: Em, + MarkerTag: Dm, + Uri: dt, + Token: Fa, + }; + } + var a_; + n(332); + function u_(e) { + var t = JSON.parse(e); + return (t = (function e(t, n) { + if (!t || n > 200) return t; + if ('object' == typeof t) { + switch (t.$mid) { + case 1: + return dt.revive(t); + case 2: + return new RegExp(t.source, t.flags); + } + for (var r in t) + Object.hasOwnProperty.call(t, r) && (t[r] = e(t[r], n + 1)); + } + return t; + })(t, 0)); + } + function l_(e) { + var t, + n, + r = e.path; + return ( + (t = + e.authority && r.length > 1 && e.scheme === Mh.file + ? '//' + e.authority + r + : tt.g && + 47 === r.charCodeAt(0) && + (((n = r.charCodeAt(1)) >= 65 && n <= 90) || + (n >= 97 && n <= 122)) && + 58 === r.charCodeAt(2) + ? r.substr(1) + : r), + tt.g && (t = t.replace(/\//g, '\\')), + t + ); + } + !(function (e) { + (e.META_DATA_LABEL = 'label'), + (e.META_DATA_DESCRIPTION = 'description'), + (e.META_DATA_SIZE = 'size'), + (e.META_DATA_MIME = 'mime'), + (e.parseMetaData = function (t) { + var n = new Map(); + t.path + .substring(t.path.indexOf(';') + 1, t.path.lastIndexOf(';')) + .split(';') + .forEach(function (e) { + var t = e.split(':'), + r = t[0], + i = t[1]; + r && i && n.set(r, i); + }); + var r = t.path.substring(0, t.path.indexOf(';')); + return r && n.set(e.META_DATA_MIME, r), n; + }); + })(a_ || (a_ = {})); + var c_ = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + d_ = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + h_ = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + f_ = function (e, t, n, r) { + return new (n || (n = Promise))(function (i, o) { + function s(e) { + try { + u(r.next(e)); + } catch (e) { + o(e); + } + } + function a(e) { + try { + u(r.throw(e)); + } catch (e) { + o(e); + } + } + function u(e) { + e.done + ? i(e.value) + : new n(function (t) { + t(e.value); + }).then(s, a); + } + u((r = r.apply(e, t || [])).next()); + }); + }, + p_ = function (e, t) { + var n, + r, + i, + o, + s = { + label: 0, + sent: function () { + if (1 & i[0]) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }; + return ( + (o = { next: a(0), throw: a(1), return: a(2) }), + 'function' == typeof Symbol && + (o[Symbol.iterator] = function () { + return this; + }), + o + ); + function a(o) { + return function (a) { + return (function (o) { + if (n) throw new TypeError('Generator is already executing.'); + for (; s; ) + try { + if ( + ((n = 1), + r && + (i = + 2 & o[0] + ? r.return + : o[0] + ? r.throw || ((i = r.return) && i.call(r), 0) + : r.next) && + !(i = i.call(r, o[1])).done) + ) + return i; + switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) { + case 0: + case 1: + i = o; + break; + case 4: + return s.label++, { value: o[1], done: !1 }; + case 5: + s.label++, (r = o[1]), (o = [0]); + continue; + case 7: + (o = s.ops.pop()), s.trys.pop(); + continue; + default: + if ( + !(i = (i = s.trys).length > 0 && i[i.length - 1]) && + (6 === o[0] || 2 === o[0]) + ) { + s = 0; + continue; + } + if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) { + s.label = o[1]; + break; + } + if (6 === o[0] && s.label < i[1]) { + (s.label = i[1]), (i = o); + break; + } + if (i && s.label < i[2]) { + (s.label = i[2]), s.ops.push(o); + break; + } + i[2] && s.ops.pop(), s.trys.pop(); + continue; + } + o = t.call(e, s); + } catch (e) { + (o = [6, e]), (r = 0); + } finally { + n = i = 0; + } + if (5 & o[0]) throw o[1]; + return { value: o[0] ? o[1] : void 0, done: !0 }; + })([o, a]); + }; + } + }, + g_ = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._editorService = t), + (r._commandService = n), + (r._openers = new zt()), + (r._validators = new zt()), + r + ); + } + return ( + c_(t, e), + (t.prototype.open = function (e, t) { + return f_(this, void 0, void 0, function () { + var n, r, i, o; + return p_(this, function (s) { + switch (s.label) { + case 0: + if (!e.scheme) return [2, Promise.resolve(!1)]; + (n = 0), (r = this._validators.toArray()), (s.label = 1); + case 1: + return n < r.length ? [4, r[n].shouldOpen(e)] : [3, 4]; + case 2: + if (!s.sent()) return [2, !1]; + s.label = 3; + case 3: + return n++, [3, 1]; + case 4: + (i = 0), (o = this._openers.toArray()), (s.label = 5); + case 5: + return i < o.length ? [4, o[i].open(e, t)] : [3, 8]; + case 6: + if (s.sent()) return [2, !0]; + s.label = 7; + case 7: + return i++, [3, 5]; + case 8: + return [2, this._doOpen(e, t)]; + } + }); + }); + }), + (t.prototype._doOpen = function (e, t) { + var n, + r = e.scheme, + i = e.path, + o = e.query, + s = e.fragment; + if (bn(r, Mh.mailto) || (t && t.openExternal)) + return this._doOpenExternal(e); + if (bn(r, Mh.http) || bn(r, Mh.https)) + return this._doOpenExternal(e); + if (bn(r, Mh.command)) { + if (!rr.getCommand(i)) + return Promise.reject("command '" + i + "' NOT known"); + var a = []; + try { + (a = u_(o)), Array.isArray(a) || (a = [a]); + } catch (e) {} + return (n = this._commandService).executeCommand + .apply(n, [i].concat(a)) + .then(function () { + return !0; + }); + } + var u = void 0, + l = /^L?(\d+)(?:,(\d+))?/.exec(s); + return ( + l && + ((u = { + startLineNumber: parseInt(l[1]), + startColumn: l[2] ? parseInt(l[2]) : 1, + }), + (e = e.with({ fragment: '' }))), + e.scheme === Mh.file && + (e = (function (e) { + return e.path.length + ? ((t = + e.scheme === Mh.file + ? dt.file(ps(l_(e))).path + : fs.normalize(e.path)), + e.with({ path: t })) + : e; + var t; + })(e)), + this._editorService + .openCodeEditor( + { resource: e, options: { selection: u } }, + this._editorService.getFocusedCodeEditor(), + t && t.openToSide + ) + .then(function () { + return !0; + }) + ); + }), + (t.prototype._doOpenExternal = function (e) { + return Pf(encodeURI(e.toString(!0))), Promise.resolve(!0); + }), + (t.prototype.dispose = function () { + this._validators.clear(); + }), + (t = d_([h_(0, St), h_(1, nr)], t)) + ); + })(Rt), + m_ = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + __ = { followsCaret: !0, ignoreCharChanges: !0, alwaysRevealFirst: !0 }, + y_ = (function (e) { + function t(t, n) { + void 0 === n && (n = {}); + var r = e.call(this) || this; + return ( + (r._onDidUpdate = r._register(new Gt())), + (r._editor = t), + (r._options = Xr(n, __, !1)), + (r.disposed = !1), + (r.nextIdx = -1), + (r.ranges = []), + (r.ignoreSelectionChange = !1), + (r.revealFirst = Boolean(r._options.alwaysRevealFirst)), + r._register( + r._editor.onDidDispose(function () { + return r.dispose(); + }) + ), + r._register( + r._editor.onDidUpdateDiff(function () { + return r._onDiffUpdated(); + }) + ), + r._options.followsCaret && + r._register( + r._editor + .getModifiedEditor() + .onDidChangeCursorPosition(function (e) { + r.ignoreSelectionChange || (r.nextIdx = -1); + }) + ), + r._options.alwaysRevealFirst && + r._register( + r._editor.getModifiedEditor().onDidChangeModel(function (e) { + r.revealFirst = !0; + }) + ), + r._init(), + r + ); + } + return ( + m_(t, e), + (t.prototype._init = function () { + this._editor.getLineChanges(); + }), + (t.prototype._onDiffUpdated = function () { + this._init(), + this._compute(this._editor.getLineChanges()), + this.revealFirst && + null !== this._editor.getLineChanges() && + ((this.revealFirst = !1), (this.nextIdx = -1), this.next(1)); + }), + (t.prototype._compute = function (e) { + var t = this; + (this.ranges = []), + e && + e.forEach(function (e) { + !t._options.ignoreCharChanges && e.charChanges + ? e.charChanges.forEach(function (e) { + t.ranges.push({ + rhs: !0, + range: new Fr( + e.modifiedStartLineNumber, + e.modifiedStartColumn, + e.modifiedEndLineNumber, + e.modifiedEndColumn + ), + }); + }) + : t.ranges.push({ + rhs: !0, + range: new Fr( + e.modifiedStartLineNumber, + 1, + e.modifiedStartLineNumber, + 1 + ), + }); + }), + this.ranges.sort(function (e, t) { + return e.range + .getStartPosition() + .isBeforeOrEqual(t.range.getStartPosition()) + ? -1 + : t.range + .getStartPosition() + .isBeforeOrEqual(e.range.getStartPosition()) + ? 1 + : 0; + }), + this._onDidUpdate.fire(this); + }), + (t.prototype._initIdx = function (e) { + var t = !1, + n = this._editor.getPosition(); + if (n) { + for (var r = 0, i = this.ranges.length; r < i && !t; r++) { + var o = this.ranges[r].range; + n.isBeforeOrEqual(o.getStartPosition()) && + ((this.nextIdx = r + (e ? 0 : -1)), (t = !0)); + } + t || (this.nextIdx = e ? 0 : this.ranges.length - 1), + this.nextIdx < 0 && (this.nextIdx = this.ranges.length - 1); + } else this.nextIdx = 0; + }), + (t.prototype._move = function (e, t) { + if ( + (xr( + !this.disposed, + 'Illegal State - diff navigator has been disposed' + ), + this.canNavigate()) + ) { + -1 === this.nextIdx + ? this._initIdx(e) + : e + ? ((this.nextIdx += 1), + this.nextIdx >= this.ranges.length && (this.nextIdx = 0)) + : ((this.nextIdx -= 1), + this.nextIdx < 0 && (this.nextIdx = this.ranges.length - 1)); + var n = this.ranges[this.nextIdx]; + this.ignoreSelectionChange = !0; + try { + var r = n.range.getStartPosition(); + this._editor.setPosition(r), + this._editor.revealPositionInCenter(r, t); + } finally { + this.ignoreSelectionChange = !1; + } + } + }), + (t.prototype.canNavigate = function () { + return this.ranges && this.ranges.length > 0; + }), + (t.prototype.next = function (e) { + void 0 === e && (e = 0), this._move(!0, e); + }), + (t.prototype.previous = function (e) { + void 0 === e && (e = 0), this._move(!1, e); + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + (this.ranges = []), + (this.disposed = !0); + }), + t + ); + })(Rt), + v_ = new ((function () { + function e() { + (this._zoomLevel = 0), + (this._onDidChangeZoomLevel = new Gt()), + (this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event); + } + return ( + (e.prototype.getZoomLevel = function () { + return this._zoomLevel; + }), + (e.prototype.setZoomLevel = function (e) { + (e = Math.min(Math.max(-5, e), 20)), + this._zoomLevel !== e && + ((this._zoomLevel = e), + this._onDidChangeZoomLevel.fire(this._zoomLevel)); + }), + e + ); + })())(), + b_ = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + w_ = tt.d ? 1.5 : 1.35; + function C_(e, t) { + if ('number' == typeof e) return e; + if (void 0 === e) return t; + var n = parseFloat(e); + return isNaN(n) ? t : n; + } + function S_(e, t, n) { + return e < t ? t : e > n ? n : e; + } + function x_(e, t) { + return 'string' != typeof e ? t : e; + } + var L_ = (function () { + function e(e) { + (this.zoomLevel = e.zoomLevel), + (this.fontFamily = String(e.fontFamily)), + (this.fontWeight = String(e.fontWeight)), + (this.fontSize = e.fontSize), + (this.lineHeight = 0 | e.lineHeight), + (this.letterSpacing = e.letterSpacing); + } + return ( + (e.createFromRawSettings = function (t, n, r) { + void 0 === r && (r = !1); + var i = x_(t.fontFamily, bi.fontFamily), + o = x_(t.fontWeight, bi.fontWeight), + s = C_(t.fontSize, bi.fontSize); + 0 === (s = S_(s, 0, 100)) ? (s = bi.fontSize) : s < 8 && (s = 8); + var a = (function (e, t) { + if ('number' == typeof e) return Math.round(e); + if (void 0 === e) return t; + var n = parseInt(e); + return isNaN(n) ? t : n; + })(t.lineHeight, 0); + 0 === (a = S_(a, 0, 150)) + ? (a = Math.round(w_ * s)) + : a < 8 && (a = 8); + var u = C_(t.letterSpacing, 0); + u = S_(u, -5, 20); + var l = 1 + (r ? 0 : 0.1 * v_.getZoomLevel()); + return new e({ + zoomLevel: n, + fontFamily: i, + fontWeight: o, + fontSize: (s *= l), + lineHeight: (a *= l), + letterSpacing: u, + }); + }), + (e.prototype.getId = function () { + return ( + this.zoomLevel + + '-' + + this.fontFamily + + '-' + + this.fontWeight + + '-' + + this.fontSize + + '-' + + this.lineHeight + + '-' + + this.letterSpacing + ); + }), + (e.prototype.getMassagedFontFamily = function () { + return /[,"']/.test(this.fontFamily) + ? this.fontFamily + : /[+ ]/.test(this.fontFamily) + ? '"' + this.fontFamily + '"' + : this.fontFamily; + }), + e + ); + })(), + k_ = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return ( + (r.isTrusted = n), + (r.isMonospace = t.isMonospace), + (r.typicalHalfwidthCharacterWidth = + t.typicalHalfwidthCharacterWidth), + (r.typicalFullwidthCharacterWidth = + t.typicalFullwidthCharacterWidth), + (r.canUseHalfwidthRightwardsArrow = + t.canUseHalfwidthRightwardsArrow), + (r.spaceWidth = t.spaceWidth), + (r.maxDigitWidth = t.maxDigitWidth), + r + ); + } + return ( + b_(t, e), + (t.prototype.equals = function (e) { + return ( + this.fontFamily === e.fontFamily && + this.fontWeight === e.fontWeight && + this.fontSize === e.fontSize && + this.lineHeight === e.lineHeight && + this.letterSpacing === e.letterSpacing && + this.typicalHalfwidthCharacterWidth === + e.typicalHalfwidthCharacterWidth && + this.typicalFullwidthCharacterWidth === + e.typicalFullwidthCharacterWidth && + this.canUseHalfwidthRightwardsArrow === + e.canUseHalfwidthRightwardsArrow && + this.spaceWidth === e.spaceWidth && + this.maxDigitWidth === e.maxDigitWidth + ); + }), + t + ); + })(L_), + M_ = wt('editorWorkerService'), + D_ = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + E_ = '$initialize', + T_ = !1; + function N_(e) { + tt.f && + (T_ || + ((T_ = !0), + console.warn( + 'Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq' + )), + console.warn(e.message)); + } + var O_ = (function () { + function e(e) { + (this._workerId = -1), + (this._handler = e), + (this._lastSentReq = 0), + (this._pendingReplies = Object.create(null)); + } + return ( + (e.prototype.setWorkerId = function (e) { + this._workerId = e; + }), + (e.prototype.sendMessage = function (e, t) { + var n = this, + r = String(++this._lastSentReq); + return new Promise(function (i, o) { + (n._pendingReplies[r] = { resolve: i, reject: o }), + n._send({ vsWorker: n._workerId, req: r, method: e, args: t }); + }); + }), + (e.prototype.handleMessage = function (e) { + e && + e.vsWorker && + ((-1 !== this._workerId && e.vsWorker !== this._workerId) || + this._handleMessage(e)); + }), + (e.prototype._handleMessage = function (e) { + var t = this; + if (e.seq) { + var n = e; + if (!this._pendingReplies[n.seq]) + return void console.warn('Got reply to unknown seq'); + var r = this._pendingReplies[n.seq]; + if ((delete this._pendingReplies[n.seq], n.err)) { + var i = n.err; + return ( + n.err.$isError && + (((i = new Error()).name = n.err.name), + (i.message = n.err.message), + (i.stack = n.err.stack)), + void r.reject(i) + ); + } + r.resolve(n.res); + } else { + var o = e, + s = o.req; + this._handler.handleMessage(o.method, o.args).then( + function (e) { + t._send({ + vsWorker: t._workerId, + seq: s, + res: e, + err: void 0, + }); + }, + function (e) { + e.detail instanceof Error && (e.detail = Ke(e.detail)), + t._send({ + vsWorker: t._workerId, + seq: s, + res: void 0, + err: Ke(e), + }); + } + ); + } + }), + (e.prototype._send = function (e) { + var t = []; + if (e.req) + for (var n = e, r = 0; r < n.args.length; r++) + n.args[r] instanceof ArrayBuffer && t.push(n.args[r]); + else (n = e).res instanceof ArrayBuffer && t.push(n.res); + this._handler.sendMessage(e, t); + }), + e + ); + })(), + A_ = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this, + o = null; + (i._worker = i._register( + t.create( + 'vs/base/common/worker/simpleWorker', + function (e) { + i._protocol.handleMessage(e); + }, + function (e) { + o && o(e); + } + ) + )), + (i._protocol = new O_({ + sendMessage: function (e, t) { + i._worker.postMessage(e, t); + }, + handleMessage: function (e, t) { + if ('function' != typeof r[e]) + return Promise.reject( + new Error('Missing method ' + e + ' on main thread host.') + ); + try { + return Promise.resolve(r[e].apply(r, t)); + } catch (e) { + return Promise.reject(e); + } + }, + })), + i._protocol.setWorkerId(i._worker.getId()); + var s = null; + void 0 !== self.require && 'function' == typeof self.require.getConfig + ? (s = self.require.getConfig()) + : void 0 !== self.requirejs && + (s = self.requirejs.s.contexts._.config); + var a = We(r); + i._onModuleLoaded = i._protocol.sendMessage(E_, [ + i._worker.getId(), + JSON.parse(JSON.stringify(s)), + n, + a, + ]); + var u = function (e, t) { + return i._request(e, t); + }; + return ( + (i._lazyProxy = new Promise(function (e, t) { + (o = t), + i._onModuleLoaded.then( + function (t) { + e(He(t, u)); + }, + function (e) { + t(e), i._onError('Worker failed to load ' + n, e); + } + ); + })), + i + ); + } + return ( + D_(t, e), + (t.prototype.getProxyObject = function () { + return this._lazyProxy; + }), + (t.prototype._request = function (e, t) { + var n = this; + return new Promise(function (r, i) { + n._onModuleLoaded.then(function () { + n._protocol.sendMessage(e, t).then(r, i); + }, i); + }); + }), + (t.prototype._onError = function (e, t) { + console.error(e), console.info(t); + }), + t + ); + })(Rt); + !(function () { + function e(e, t) { + var n = this; + (this._requestHandlerFactory = t), + (this._requestHandler = null), + (this._protocol = new O_({ + sendMessage: function (t, n) { + e(t, n); + }, + handleMessage: function (e, t) { + return n._handleMessage(e, t); + }, + })); + } + (e.prototype.onmessage = function (e) { + this._protocol.handleMessage(e); + }), + (e.prototype._handleMessage = function (e, t) { + if (e === E_) return this.initialize(t[0], t[1], t[2], t[3]); + if ( + !this._requestHandler || + 'function' != typeof this._requestHandler[e] + ) + return Promise.reject( + new Error('Missing requestHandler or method: ' + e) + ); + try { + return Promise.resolve( + this._requestHandler[e].apply(this._requestHandler, t) + ); + } catch (e) { + return Promise.reject(e); + } + }), + (e.prototype.initialize = function (e, t, n, r) { + var i = this; + this._protocol.setWorkerId(e); + var o = He(r, function (e, t) { + return i._protocol.sendMessage(e, t); + }); + return this._requestHandlerFactory + ? ((this._requestHandler = this._requestHandlerFactory(o)), + Promise.resolve(We(this._requestHandler))) + : (t && + (void 0 !== t.baseUrl && delete t.baseUrl, + void 0 !== t.paths && + void 0 !== t.paths.vs && + delete t.paths.vs, + (t.catchError = !0), + self.require.config(t)), + new Promise(function (e, t) { + self.require( + [n], + function (n) { + (i._requestHandler = n.create(o)), + i._requestHandler + ? e(We(i._requestHandler)) + : t(new Error('No RequestHandler!')); + }, + t + ); + })); + }); + })(); + var I_ = (function () { + function e(e, t, n, r, i) { + this.id = t; + var o = (function (e, t) { + if (tt.b.MonacoEnvironment) { + if ('function' == typeof tt.b.MonacoEnvironment.getWorker) + return tt.b.MonacoEnvironment.getWorker(e, t); + if ('function' == typeof tt.b.MonacoEnvironment.getWorkerUrl) + return new Worker(tt.b.MonacoEnvironment.getWorkerUrl(e, t)); + } + throw new Error( + 'You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker' + ); + })('workerMain.js', n); + 'function' == typeof o.then + ? (this.worker = o) + : (this.worker = Promise.resolve(o)), + this.postMessage(e, []), + this.worker.then(function (e) { + (e.onmessage = function (e) { + r(e.data); + }), + (e.onmessageerror = i), + 'function' == typeof e.addEventListener && + e.addEventListener('error', i); + }); + } + return ( + (e.prototype.getId = function () { + return this.id; + }), + (e.prototype.postMessage = function (e, t) { + this.worker && + this.worker.then(function (n) { + return n.postMessage(e, t); + }); + }), + (e.prototype.dispose = function () { + this.worker && + this.worker.then(function (e) { + return e.terminate(); + }), + (this.worker = null); + }), + e + ); + })(), + P_ = (function () { + function e(e) { + (this._label = e), (this._webWorkerFailedBeforeError = !1); + } + return ( + (e.prototype.create = function (t, n, r) { + var i = this, + o = ++e.LAST_WORKER_ID; + if (this._webWorkerFailedBeforeError) + throw this._webWorkerFailedBeforeError; + return new I_( + t, + o, + this._label || 'anonymous' + o, + n, + function (e) { + N_(e), (i._webWorkerFailedBeforeError = e), r(e); + } + ); + }), + (e.LAST_WORKER_ID = 0), + e + ); + })(), + R_ = (function () { + function e(e, t, n, r) { + (this.originalStart = e), + (this.originalLength = t), + (this.modifiedStart = n), + (this.modifiedLength = r); + } + return ( + (e.prototype.getOriginalEnd = function () { + return this.originalStart + this.originalLength; + }), + (e.prototype.getModifiedEnd = function () { + return this.modifiedStart + this.modifiedLength; + }), + e + ); + })(); + function F_(e) { + return { + getLength: function () { + return e.length; + }, + getElementAtIndex: function (t) { + return e.charCodeAt(t); + }, + }; + } + function Y_(e, t, n) { + return new H_(F_(e), F_(t)).ComputeDiff(n); + } + var j_ = (function () { + function e() {} + return ( + (e.Assert = function (e, t) { + if (!e) throw new Error(t); + }), + e + ); + })(), + B_ = (function () { + function e() {} + return ( + (e.Copy = function (e, t, n, r, i) { + for (var o = 0; o < i; o++) n[r + o] = e[t + o]; + }), + e + ); + })(), + W_ = (function () { + function e() { + (this.m_changes = []), + (this.m_originalStart = Number.MAX_VALUE), + (this.m_modifiedStart = Number.MAX_VALUE), + (this.m_originalCount = 0), + (this.m_modifiedCount = 0); + } + return ( + (e.prototype.MarkNextChange = function () { + (this.m_originalCount > 0 || this.m_modifiedCount > 0) && + this.m_changes.push( + new R_( + this.m_originalStart, + this.m_originalCount, + this.m_modifiedStart, + this.m_modifiedCount + ) + ), + (this.m_originalCount = 0), + (this.m_modifiedCount = 0), + (this.m_originalStart = Number.MAX_VALUE), + (this.m_modifiedStart = Number.MAX_VALUE); + }), + (e.prototype.AddOriginalElement = function (e, t) { + (this.m_originalStart = Math.min(this.m_originalStart, e)), + (this.m_modifiedStart = Math.min(this.m_modifiedStart, t)), + this.m_originalCount++; + }), + (e.prototype.AddModifiedElement = function (e, t) { + (this.m_originalStart = Math.min(this.m_originalStart, e)), + (this.m_modifiedStart = Math.min(this.m_modifiedStart, t)), + this.m_modifiedCount++; + }), + (e.prototype.getChanges = function () { + return ( + (this.m_originalCount > 0 || this.m_modifiedCount > 0) && + this.MarkNextChange(), + this.m_changes + ); + }), + (e.prototype.getReverseChanges = function () { + return ( + (this.m_originalCount > 0 || this.m_modifiedCount > 0) && + this.MarkNextChange(), + this.m_changes.reverse(), + this.m_changes + ); + }), + e + ); + })(), + H_ = (function () { + function e(e, t, n) { + void 0 === n && (n = null), + (this.OriginalSequence = e), + (this.ModifiedSequence = t), + (this.ContinueProcessingPredicate = n), + (this.m_forwardHistory = []), + (this.m_reverseHistory = []); + } + return ( + (e.prototype.ElementsAreEqual = function (e, t) { + return ( + this.OriginalSequence.getElementAtIndex(e) === + this.ModifiedSequence.getElementAtIndex(t) + ); + }), + (e.prototype.OriginalElementsAreEqual = function (e, t) { + return ( + this.OriginalSequence.getElementAtIndex(e) === + this.OriginalSequence.getElementAtIndex(t) + ); + }), + (e.prototype.ModifiedElementsAreEqual = function (e, t) { + return ( + this.ModifiedSequence.getElementAtIndex(e) === + this.ModifiedSequence.getElementAtIndex(t) + ); + }), + (e.prototype.ComputeDiff = function (e) { + return this._ComputeDiff( + 0, + this.OriginalSequence.getLength() - 1, + 0, + this.ModifiedSequence.getLength() - 1, + e + ); + }), + (e.prototype._ComputeDiff = function (e, t, n, r, i) { + var o = this.ComputeDiffRecursive(e, t, n, r, [!1]); + return i ? this.PrettifyChanges(o) : o; + }), + (e.prototype.ComputeDiffRecursive = function (e, t, n, r, i) { + for (i[0] = !1; e <= t && n <= r && this.ElementsAreEqual(e, n); ) + e++, n++; + for (; t >= e && r >= n && this.ElementsAreEqual(t, r); ) t--, r--; + if (e > t || n > r) { + var o = void 0; + return ( + n <= r + ? (j_.Assert( + e === t + 1, + 'originalStart should only be one more than originalEnd' + ), + (o = [new R_(e, 0, n, r - n + 1)])) + : e <= t + ? (j_.Assert( + n === r + 1, + 'modifiedStart should only be one more than modifiedEnd' + ), + (o = [new R_(e, t - e + 1, n, 0)])) + : (j_.Assert( + e === t + 1, + 'originalStart should only be one more than originalEnd' + ), + j_.Assert( + n === r + 1, + 'modifiedStart should only be one more than modifiedEnd' + ), + (o = [])), + o + ); + } + var s = [0], + a = [0], + u = this.ComputeRecursionPoint(e, t, n, r, s, a, i), + l = s[0], + c = a[0]; + if (null !== u) return u; + if (!i[0]) { + var d = this.ComputeDiffRecursive(e, l, n, c, i), + h = []; + return ( + (h = i[0] + ? [new R_(l + 1, t - (l + 1) + 1, c + 1, r - (c + 1) + 1)] + : this.ComputeDiffRecursive(l + 1, t, c + 1, r, i)), + this.ConcatenateChanges(d, h) + ); + } + return [new R_(e, t - e + 1, n, r - n + 1)]; + }), + (e.prototype.WALKTRACE = function ( + e, + t, + n, + r, + i, + o, + s, + a, + u, + l, + c, + d, + h, + f, + p, + g, + m, + _ + ) { + var y, + v, + b = null, + w = new W_(), + C = t, + S = n, + x = h[0] - g[0] - r, + L = Number.MIN_VALUE, + k = this.m_forwardHistory.length - 1; + do { + (v = x + e) === C || (v < S && u[v - 1] < u[v + 1]) + ? ((f = (c = u[v + 1]) - x - r), + c < L && w.MarkNextChange(), + (L = c), + w.AddModifiedElement(c + 1, f), + (x = v + 1 - e)) + : ((f = (c = u[v - 1] + 1) - x - r), + c < L && w.MarkNextChange(), + (L = c - 1), + w.AddOriginalElement(c, f + 1), + (x = v - 1 - e)), + k >= 0 && + ((e = (u = this.m_forwardHistory[k])[0]), + (C = 1), + (S = u.length - 1)); + } while (--k >= -1); + if (((y = w.getReverseChanges()), _[0])) { + var M = h[0] + 1, + D = g[0] + 1; + if (null !== y && y.length > 0) { + var E = y[y.length - 1]; + (M = Math.max(M, E.getOriginalEnd())), + (D = Math.max(D, E.getModifiedEnd())); + } + b = [new R_(M, d - M + 1, D, p - D + 1)]; + } else { + (w = new W_()), + (C = o), + (S = s), + (x = h[0] - g[0] - a), + (L = Number.MAX_VALUE), + (k = m + ? this.m_reverseHistory.length - 1 + : this.m_reverseHistory.length - 2); + do { + (v = x + i) === C || (v < S && l[v - 1] >= l[v + 1]) + ? ((f = (c = l[v + 1] - 1) - x - a), + c > L && w.MarkNextChange(), + (L = c + 1), + w.AddOriginalElement(c + 1, f + 1), + (x = v + 1 - i)) + : ((f = (c = l[v - 1]) - x - a), + c > L && w.MarkNextChange(), + (L = c), + w.AddModifiedElement(c + 1, f + 1), + (x = v - 1 - i)), + k >= 0 && + ((i = (l = this.m_reverseHistory[k])[0]), + (C = 1), + (S = l.length - 1)); + } while (--k >= -1); + b = w.getChanges(); + } + return this.ConcatenateChanges(y, b); + }), + (e.prototype.ComputeRecursionPoint = function (e, t, n, r, i, o, s) { + var a, + u = 0, + l = 0, + c = 0, + d = 0, + h = 0, + f = 0; + e--, + n--, + (i[0] = 0), + (o[0] = 0), + (this.m_forwardHistory = []), + (this.m_reverseHistory = []); + var p, + g, + m = t - e + (r - n), + _ = m + 1, + y = new Array(_), + v = new Array(_), + b = r - n, + w = t - e, + C = e - n, + S = t - r, + x = (w - b) % 2 == 0; + for (y[b] = e, v[w] = t, s[0] = !1, a = 1; a <= m / 2 + 1; a++) { + var L = 0, + k = 0; + for ( + c = this.ClipDiagonalBound(b - a, a, b, _), + d = this.ClipDiagonalBound(b + a, a, b, _), + p = c; + p <= d; + p += 2 + ) { + for ( + l = + (u = + p === c || (p < d && y[p - 1] < y[p + 1]) + ? y[p + 1] + : y[p - 1] + 1) - + (p - b) - + C, + g = u; + u < t && l < r && this.ElementsAreEqual(u + 1, l + 1); + + ) + u++, l++; + if ( + ((y[p] = u), + u + l > L + k && ((L = u), (k = l)), + !x && Math.abs(p - w) <= a - 1 && u >= v[p]) + ) + return ( + (i[0] = u), + (o[0] = l), + g <= v[p] && a <= 1448 + ? this.WALKTRACE( + b, + c, + d, + C, + w, + h, + f, + S, + y, + v, + u, + t, + i, + l, + r, + o, + x, + s + ) + : null + ); + } + var M = (L - e + (k - n) - a) / 2; + if ( + null !== this.ContinueProcessingPredicate && + !this.ContinueProcessingPredicate(L, this.OriginalSequence, M) + ) + return ( + (s[0] = !0), + (i[0] = L), + (o[0] = k), + M > 0 && a <= 1448 + ? this.WALKTRACE( + b, + c, + d, + C, + w, + h, + f, + S, + y, + v, + u, + t, + i, + l, + r, + o, + x, + s + ) + : (e++, n++, [new R_(e, t - e + 1, n, r - n + 1)]) + ); + for ( + h = this.ClipDiagonalBound(w - a, a, w, _), + f = this.ClipDiagonalBound(w + a, a, w, _), + p = h; + p <= f; + p += 2 + ) { + for ( + l = + (u = + p === h || (p < f && v[p - 1] >= v[p + 1]) + ? v[p + 1] - 1 + : v[p - 1]) - + (p - w) - + S, + g = u; + u > e && l > n && this.ElementsAreEqual(u, l); + + ) + u--, l--; + if (((v[p] = u), x && Math.abs(p - b) <= a && u <= y[p])) + return ( + (i[0] = u), + (o[0] = l), + g >= y[p] && a <= 1448 + ? this.WALKTRACE( + b, + c, + d, + C, + w, + h, + f, + S, + y, + v, + u, + t, + i, + l, + r, + o, + x, + s + ) + : null + ); + } + if (a <= 1447) { + var D = new Array(d - c + 2); + (D[0] = b - c + 1), + B_.Copy(y, c, D, 1, d - c + 1), + this.m_forwardHistory.push(D), + ((D = new Array(f - h + 2))[0] = w - h + 1), + B_.Copy(v, h, D, 1, f - h + 1), + this.m_reverseHistory.push(D); + } + } + return this.WALKTRACE( + b, + c, + d, + C, + w, + h, + f, + S, + y, + v, + u, + t, + i, + l, + r, + o, + x, + s + ); + }), + (e.prototype.PrettifyChanges = function (e) { + for (var t = 0; t < e.length; t++) { + for ( + var n = e[t], + r = + t < e.length - 1 + ? e[t + 1].originalStart + : this.OriginalSequence.getLength(), + i = + t < e.length - 1 + ? e[t + 1].modifiedStart + : this.ModifiedSequence.getLength(), + o = n.originalLength > 0, + s = n.modifiedLength > 0; + n.originalStart + n.originalLength < r && + n.modifiedStart + n.modifiedLength < i && + (!o || + this.OriginalElementsAreEqual( + n.originalStart, + n.originalStart + n.originalLength + )) && + (!s || + this.ModifiedElementsAreEqual( + n.modifiedStart, + n.modifiedStart + n.modifiedLength + )); + + ) + n.originalStart++, n.modifiedStart++; + var a = [null]; + t < e.length - 1 && + this.ChangesOverlap(e[t], e[t + 1], a) && + ((e[t] = a[0]), e.splice(t + 1, 1), t--); + } + for (t = e.length - 1; t >= 0; t--) { + (n = e[t]), (r = 0), (i = 0); + if (t > 0) { + var u = e[t - 1]; + u.originalLength > 0 && + (r = u.originalStart + u.originalLength), + u.modifiedLength > 0 && + (i = u.modifiedStart + u.modifiedLength); + } + (o = n.originalLength > 0), (s = n.modifiedLength > 0); + for ( + var l = 0, + c = this._boundaryScore( + n.originalStart, + n.originalLength, + n.modifiedStart, + n.modifiedLength + ), + d = 1; + ; + d++ + ) { + var h = n.originalStart - d, + f = n.modifiedStart - d; + if (h < r || f < i) break; + if ( + o && + !this.OriginalElementsAreEqual(h, h + n.originalLength) + ) + break; + if ( + s && + !this.ModifiedElementsAreEqual(f, f + n.modifiedLength) + ) + break; + var p = this._boundaryScore( + h, + n.originalLength, + f, + n.modifiedLength + ); + p > c && ((c = p), (l = d)); + } + (n.originalStart -= l), (n.modifiedStart -= l); + } + return e; + }), + (e.prototype._OriginalIsBoundary = function (e) { + if (e <= 0 || e >= this.OriginalSequence.getLength() - 1) return !0; + var t = this.OriginalSequence.getElementAtIndex(e); + return 'string' == typeof t && /^\s*$/.test(t); + }), + (e.prototype._OriginalRegionIsBoundary = function (e, t) { + if (this._OriginalIsBoundary(e) || this._OriginalIsBoundary(e - 1)) + return !0; + if (t > 0) { + var n = e + t; + if ( + this._OriginalIsBoundary(n - 1) || + this._OriginalIsBoundary(n) + ) + return !0; + } + return !1; + }), + (e.prototype._ModifiedIsBoundary = function (e) { + if (e <= 0 || e >= this.ModifiedSequence.getLength() - 1) return !0; + var t = this.ModifiedSequence.getElementAtIndex(e); + return 'string' == typeof t && /^\s*$/.test(t); + }), + (e.prototype._ModifiedRegionIsBoundary = function (e, t) { + if (this._ModifiedIsBoundary(e) || this._ModifiedIsBoundary(e - 1)) + return !0; + if (t > 0) { + var n = e + t; + if ( + this._ModifiedIsBoundary(n - 1) || + this._ModifiedIsBoundary(n) + ) + return !0; + } + return !1; + }), + (e.prototype._boundaryScore = function (e, t, n, r) { + return ( + (this._OriginalRegionIsBoundary(e, t) ? 1 : 0) + + (this._ModifiedRegionIsBoundary(n, r) ? 1 : 0) + ); + }), + (e.prototype.ConcatenateChanges = function (e, t) { + var n = []; + if (0 === e.length || 0 === t.length) return t.length > 0 ? t : e; + if (this.ChangesOverlap(e[e.length - 1], t[0], n)) { + var r = new Array(e.length + t.length - 1); + return ( + B_.Copy(e, 0, r, 0, e.length - 1), + (r[e.length - 1] = n[0]), + B_.Copy(t, 1, r, e.length, t.length - 1), + r + ); + } + r = new Array(e.length + t.length); + return ( + B_.Copy(e, 0, r, 0, e.length), + B_.Copy(t, 0, r, e.length, t.length), + r + ); + }), + (e.prototype.ChangesOverlap = function (e, t, n) { + if ( + (j_.Assert( + e.originalStart <= t.originalStart, + 'Left change is not less than or equal to right change' + ), + j_.Assert( + e.modifiedStart <= t.modifiedStart, + 'Left change is not less than or equal to right change' + ), + e.originalStart + e.originalLength >= t.originalStart || + e.modifiedStart + e.modifiedLength >= t.modifiedStart) + ) { + var r = e.originalStart, + i = e.originalLength, + o = e.modifiedStart, + s = e.modifiedLength; + return ( + e.originalStart + e.originalLength >= t.originalStart && + (i = t.originalStart + t.originalLength - e.originalStart), + e.modifiedStart + e.modifiedLength >= t.modifiedStart && + (s = t.modifiedStart + t.modifiedLength - e.modifiedStart), + (n[0] = new R_(r, i, o, s)), + !0 + ); + } + return (n[0] = null), !1; + }), + (e.prototype.ClipDiagonalBound = function (e, t, n, r) { + if (e >= 0 && e < r) return e; + var i = t % 2 == 0; + return e < 0 + ? i === (n % 2 == 0) + ? 0 + : 1 + : i === ((r - n - 1) % 2 == 0) + ? r - 1 + : r - 2; + }), + e + ); + })(), + V_ = 5e3, + z_ = 3; + function U_(e, t, n, r) { + return new H_(e, t, n).ComputeDiff(r); + } + var q_ = (function () { + function e(t) { + for (var n = [], r = [], i = 0, o = t.length; i < o; i++) + (n[i] = e._getFirstNonBlankColumn(t[i], 1)), + (r[i] = e._getLastNonBlankColumn(t[i], 1)); + (this._lines = t), (this._startColumns = n), (this._endColumns = r); + } + return ( + (e.prototype.getLength = function () { + return this._lines.length; + }), + (e.prototype.getElementAtIndex = function (e) { + return this._lines[e].substring( + this._startColumns[e] - 1, + this._endColumns[e] - 1 + ); + }), + (e.prototype.getStartLineNumber = function (e) { + return e + 1; + }), + (e.prototype.getEndLineNumber = function (e) { + return e + 1; + }), + (e._getFirstNonBlankColumn = function (e, t) { + var n = pn(e); + return -1 === n ? t : n + 1; + }), + (e._getLastNonBlankColumn = function (e, t) { + var n = mn(e); + return -1 === n ? t : n + 2; + }), + (e.prototype.getCharSequence = function (e, t, n) { + for (var r = [], i = [], o = [], s = 0, a = t; a <= n; a++) + for ( + var u = this._lines[a], + l = e ? this._startColumns[a] : 1, + c = e ? this._endColumns[a] : u.length + 1, + d = l; + d < c; + d++ + ) + (r[s] = u.charCodeAt(d - 1)), (i[s] = a + 1), (o[s] = d), s++; + return new K_(r, i, o); + }), + e + ); + })(), + K_ = (function () { + function e(e, t, n) { + (this._charCodes = e), (this._lineNumbers = t), (this._columns = n); + } + return ( + (e.prototype.getLength = function () { + return this._charCodes.length; + }), + (e.prototype.getElementAtIndex = function (e) { + return this._charCodes[e]; + }), + (e.prototype.getStartLineNumber = function (e) { + return this._lineNumbers[e]; + }), + (e.prototype.getStartColumn = function (e) { + return this._columns[e]; + }), + (e.prototype.getEndLineNumber = function (e) { + return this._lineNumbers[e]; + }), + (e.prototype.getEndColumn = function (e) { + return this._columns[e] + 1; + }), + e + ); + })(), + G_ = (function () { + function e(e, t, n, r, i, o, s, a) { + (this.originalStartLineNumber = e), + (this.originalStartColumn = t), + (this.originalEndLineNumber = n), + (this.originalEndColumn = r), + (this.modifiedStartLineNumber = i), + (this.modifiedStartColumn = o), + (this.modifiedEndLineNumber = s), + (this.modifiedEndColumn = a); + } + return ( + (e.createFromDiffChange = function (t, n, r) { + var i, o, s, a, u, l, c, d; + return ( + 0 === t.originalLength + ? ((i = 0), (o = 0), (s = 0), (a = 0)) + : ((i = n.getStartLineNumber(t.originalStart)), + (o = n.getStartColumn(t.originalStart)), + (s = n.getEndLineNumber( + t.originalStart + t.originalLength - 1 + )), + (a = n.getEndColumn(t.originalStart + t.originalLength - 1))), + 0 === t.modifiedLength + ? ((u = 0), (l = 0), (c = 0), (d = 0)) + : ((u = r.getStartLineNumber(t.modifiedStart)), + (l = r.getStartColumn(t.modifiedStart)), + (c = r.getEndLineNumber( + t.modifiedStart + t.modifiedLength - 1 + )), + (d = r.getEndColumn(t.modifiedStart + t.modifiedLength - 1))), + new e(i, o, s, a, u, l, c, d) + ); + }), + e + ); + })(); + var $_ = (function () { + function e(e, t, n, r, i) { + (this.originalStartLineNumber = e), + (this.originalEndLineNumber = t), + (this.modifiedStartLineNumber = n), + (this.modifiedEndLineNumber = r), + (this.charChanges = i); + } + return ( + (e.createFromDiffResult = function (t, n, r, i, o, s, a) { + var u, + l, + c, + d, + h = void 0; + if ( + (0 === n.originalLength + ? ((u = r.getStartLineNumber(n.originalStart) - 1), (l = 0)) + : ((u = r.getStartLineNumber(n.originalStart)), + (l = r.getEndLineNumber( + n.originalStart + n.originalLength - 1 + ))), + 0 === n.modifiedLength + ? ((c = i.getStartLineNumber(n.modifiedStart) - 1), (d = 0)) + : ((c = i.getStartLineNumber(n.modifiedStart)), + (d = i.getEndLineNumber( + n.modifiedStart + n.modifiedLength - 1 + ))), + s && 0 !== n.originalLength && 0 !== n.modifiedLength && o()) + ) { + var f = r.getCharSequence( + t, + n.originalStart, + n.originalStart + n.originalLength - 1 + ), + p = i.getCharSequence( + t, + n.modifiedStart, + n.modifiedStart + n.modifiedLength - 1 + ), + g = U_(f, p, o, !0); + a && + (g = (function (e) { + if (e.length <= 1) return e; + for ( + var t = [e[0]], n = t[0], r = 1, i = e.length; + r < i; + r++ + ) { + var o = e[r], + s = + o.originalStart - (n.originalStart + n.originalLength), + a = + o.modifiedStart - (n.modifiedStart + n.modifiedLength); + Math.min(s, a) < z_ + ? ((n.originalLength = + o.originalStart + o.originalLength - n.originalStart), + (n.modifiedLength = + o.modifiedStart + o.modifiedLength - n.modifiedStart)) + : (t.push(o), (n = o)); + } + return t; + })(g)), + (h = []); + for (var m = 0, _ = g.length; m < _; m++) + h.push(G_.createFromDiffChange(g[m], f, p)); + } + return new e(u, l, c, d, h); + }), + e + ); + })(), + Z_ = (function () { + function e(e, t, n) { + (this.shouldComputeCharChanges = n.shouldComputeCharChanges), + (this.shouldPostProcessCharChanges = + n.shouldPostProcessCharChanges), + (this.shouldIgnoreTrimWhitespace = n.shouldIgnoreTrimWhitespace), + (this.shouldMakePrettyDiff = n.shouldMakePrettyDiff), + (this.maximumRunTimeMs = V_), + (this.originalLines = e), + (this.modifiedLines = t), + (this.original = new q_(e)), + (this.modified = new q_(t)), + (this.computationStartTime = new Date().getTime()); + } + return ( + (e.prototype.computeDiff = function () { + if ( + 1 === this.original.getLength() && + 0 === this.original.getElementAtIndex(0).length + ) + return [ + { + originalStartLineNumber: 1, + originalEndLineNumber: 1, + modifiedStartLineNumber: 1, + modifiedEndLineNumber: this.modified.getLength(), + charChanges: [ + { + modifiedEndColumn: 0, + modifiedEndLineNumber: 0, + modifiedStartColumn: 0, + modifiedStartLineNumber: 0, + originalEndColumn: 0, + originalEndLineNumber: 0, + originalStartColumn: 0, + originalStartLineNumber: 0, + }, + ], + }, + ]; + if ( + 1 === this.modified.getLength() && + 0 === this.modified.getElementAtIndex(0).length + ) + return [ + { + originalStartLineNumber: 1, + originalEndLineNumber: this.original.getLength(), + modifiedStartLineNumber: 1, + modifiedEndLineNumber: 1, + charChanges: [ + { + modifiedEndColumn: 0, + modifiedEndLineNumber: 0, + modifiedStartColumn: 0, + modifiedStartLineNumber: 0, + originalEndColumn: 0, + originalEndLineNumber: 0, + originalStartColumn: 0, + originalStartLineNumber: 0, + }, + ], + }, + ]; + this.computationStartTime = new Date().getTime(); + var e = U_( + this.original, + this.modified, + this._continueProcessingPredicate.bind(this), + this.shouldMakePrettyDiff + ); + if (this.shouldIgnoreTrimWhitespace) { + for (var t = [], n = 0, r = e.length; n < r; n++) + t.push( + $_.createFromDiffResult( + this.shouldIgnoreTrimWhitespace, + e[n], + this.original, + this.modified, + this._continueProcessingPredicate.bind(this), + this.shouldComputeCharChanges, + this.shouldPostProcessCharChanges + ) + ); + return t; + } + for ( + var i = [], o = 0, s = 0, a = ((n = -1), e.length); + n < a; + n++ + ) { + for ( + var u = n + 1 < a ? e[n + 1] : null, + l = u ? u.originalStart : this.originalLines.length, + c = u ? u.modifiedStart : this.modifiedLines.length; + o < l && s < c; + + ) { + var d = this.originalLines[o], + h = this.modifiedLines[s]; + if (d !== h) { + for ( + var f = q_._getFirstNonBlankColumn(d, 1), + p = q_._getFirstNonBlankColumn(h, 1); + f > 1 && p > 1; + + ) { + if (d.charCodeAt(f - 2) !== h.charCodeAt(p - 2)) break; + f--, p--; + } + (f > 1 || p > 1) && + this._pushTrimWhitespaceCharChange( + i, + o + 1, + 1, + f, + s + 1, + 1, + p + ); + for ( + var g = q_._getLastNonBlankColumn(d, 1), + m = q_._getLastNonBlankColumn(h, 1), + _ = d.length + 1, + y = h.length + 1; + g < _ && m < y; + + ) { + if (d.charCodeAt(g - 1) !== d.charCodeAt(m - 1)) break; + g++, m++; + } + (g < _ || m < y) && + this._pushTrimWhitespaceCharChange( + i, + o + 1, + g, + _, + s + 1, + m, + y + ); + } + o++, s++; + } + u && + (i.push( + $_.createFromDiffResult( + this.shouldIgnoreTrimWhitespace, + u, + this.original, + this.modified, + this._continueProcessingPredicate.bind(this), + this.shouldComputeCharChanges, + this.shouldPostProcessCharChanges + ) + ), + (o += u.originalLength), + (s += u.modifiedLength)); + } + return i; + }), + (e.prototype._pushTrimWhitespaceCharChange = function ( + e, + t, + n, + r, + i, + o, + s + ) { + if (!this._mergeTrimWhitespaceCharChange(e, t, n, r, i, o, s)) { + var a = void 0; + this.shouldComputeCharChanges && + (a = [new G_(t, n, t, r, i, o, i, s)]), + e.push(new $_(t, t, i, i, a)); + } + }), + (e.prototype._mergeTrimWhitespaceCharChange = function ( + e, + t, + n, + r, + i, + o, + s + ) { + var a = e.length; + if (0 === a) return !1; + var u = e[a - 1]; + return ( + 0 !== u.originalEndLineNumber && + 0 !== u.modifiedEndLineNumber && + u.originalEndLineNumber + 1 === t && + u.modifiedEndLineNumber + 1 === i && + ((u.originalEndLineNumber = t), + (u.modifiedEndLineNumber = i), + this.shouldComputeCharChanges && + u.charChanges.push(new G_(t, n, t, r, i, o, i, s)), + !0) + ); + }), + (e.prototype._continueProcessingPredicate = function () { + return ( + 0 === this.maximumRunTimeMs || + new Date().getTime() - this.computationStartTime < + this.maximumRunTimeMs + ); + }), + e + ); + })(), + X_ = function (e, t) { + (this.index = e), (this.remainder = t); + }, + J_ = (function () { + function e(e) { + (this.values = e), + (this.prefixSum = new Uint32Array(e.length)), + (this.prefixSumValidIndex = new Int32Array(1)), + (this.prefixSumValidIndex[0] = -1); + } + return ( + (e.prototype.getCount = function () { + return this.values.length; + }), + (e.prototype.insertValues = function (e, t) { + e = vo(e); + var n = this.values, + r = this.prefixSum, + i = t.length; + return ( + 0 !== i && + ((this.values = new Uint32Array(n.length + i)), + this.values.set(n.subarray(0, e), 0), + this.values.set(n.subarray(e), e + i), + this.values.set(t, e), + e - 1 < this.prefixSumValidIndex[0] && + (this.prefixSumValidIndex[0] = e - 1), + (this.prefixSum = new Uint32Array(this.values.length)), + this.prefixSumValidIndex[0] >= 0 && + this.prefixSum.set( + r.subarray(0, this.prefixSumValidIndex[0] + 1) + ), + !0) + ); + }), + (e.prototype.changeValue = function (e, t) { + return ( + (e = vo(e)), + (t = vo(t)), + this.values[e] !== t && + ((this.values[e] = t), + e - 1 < this.prefixSumValidIndex[0] && + (this.prefixSumValidIndex[0] = e - 1), + !0) + ); + }), + (e.prototype.removeValues = function (e, t) { + (e = vo(e)), (t = vo(t)); + var n = this.values, + r = this.prefixSum; + if (e >= n.length) return !1; + var i = n.length - e; + return ( + t >= i && (t = i), + 0 !== t && + ((this.values = new Uint32Array(n.length - t)), + this.values.set(n.subarray(0, e), 0), + this.values.set(n.subarray(e + t), e), + (this.prefixSum = new Uint32Array(this.values.length)), + e - 1 < this.prefixSumValidIndex[0] && + (this.prefixSumValidIndex[0] = e - 1), + this.prefixSumValidIndex[0] >= 0 && + this.prefixSum.set( + r.subarray(0, this.prefixSumValidIndex[0] + 1) + ), + !0) + ); + }), + (e.prototype.getTotalValue = function () { + return 0 === this.values.length + ? 0 + : this._getAccumulatedValue(this.values.length - 1); + }), + (e.prototype.getAccumulatedValue = function (e) { + return e < 0 ? 0 : ((e = vo(e)), this._getAccumulatedValue(e)); + }), + (e.prototype._getAccumulatedValue = function (e) { + if (e <= this.prefixSumValidIndex[0]) return this.prefixSum[e]; + var t = this.prefixSumValidIndex[0] + 1; + 0 === t && ((this.prefixSum[0] = this.values[0]), t++), + e >= this.values.length && (e = this.values.length - 1); + for (var n = t; n <= e; n++) + this.prefixSum[n] = this.prefixSum[n - 1] + this.values[n]; + return ( + (this.prefixSumValidIndex[0] = Math.max( + this.prefixSumValidIndex[0], + e + )), + this.prefixSum[e] + ); + }), + (e.prototype.getIndexOf = function (e) { + (e = Math.floor(e)), this.getTotalValue(); + for ( + var t = 0, n = this.values.length - 1, r = 0, i = 0, o = 0; + t <= n; + + ) + if ( + ((r = (t + (n - t) / 2) | 0), + e < (o = (i = this.prefixSum[r]) - this.values[r])) + ) + n = r - 1; + else { + if (!(e >= i)) break; + t = r + 1; + } + return new X_(r, e - o); + }), + e + ); + })(), + Q_ = (function () { + function e(e) { + (this._cacheAccumulatedValueStart = 0), + (this._cache = null), + (this._actual = new J_(e)), + this._bustCache(); + } + return ( + (e.prototype._bustCache = function () { + (this._cacheAccumulatedValueStart = 0), (this._cache = null); + }), + (e.prototype.insertValues = function (e, t) { + this._actual.insertValues(e, t) && this._bustCache(); + }), + (e.prototype.changeValue = function (e, t) { + this._actual.changeValue(e, t) && this._bustCache(); + }), + (e.prototype.removeValues = function (e, t) { + this._actual.removeValues(e, t) && this._bustCache(); + }), + (e.prototype.getTotalValue = function () { + return this._actual.getTotalValue(); + }), + (e.prototype.getAccumulatedValue = function (e) { + return this._actual.getAccumulatedValue(e); + }), + (e.prototype.getIndexOf = function (e) { + if (((e = Math.floor(e)), null !== this._cache)) { + var t = e - this._cacheAccumulatedValueStart; + if (t >= 0 && t < this._cache.length) return this._cache[t]; + } + return this._actual.getIndexOf(e); + }), + (e.prototype.warmUpCache = function (e, t) { + for (var n = [], r = e; r <= t; r++) n[r - e] = this.getIndexOf(r); + (this._cache = n), (this._cacheAccumulatedValueStart = e); + }), + e + ); + })(), + ey = (function () { + function e(e, t, n, r) { + (this._uri = e), + (this._lines = t), + (this._eol = n), + (this._versionId = r), + (this._lineStarts = null); + } + return ( + (e.prototype.dispose = function () { + this._lines.length = 0; + }), + (e.prototype.getText = function () { + return this._lines.join(this._eol); + }), + (e.prototype.onEvents = function (e) { + e.eol && + e.eol !== this._eol && + ((this._eol = e.eol), (this._lineStarts = null)); + for (var t = 0, n = e.changes; t < n.length; t++) { + var r = n[t]; + this._acceptDeleteRange(r.range), + this._acceptInsertText( + new xt(r.range.startLineNumber, r.range.startColumn), + r.text + ); + } + this._versionId = e.versionId; + }), + (e.prototype._ensureLineStarts = function () { + if (!this._lineStarts) { + for ( + var e = this._eol.length, + t = this._lines.length, + n = new Uint32Array(t), + r = 0; + r < t; + r++ + ) + n[r] = this._lines[r].length + e; + this._lineStarts = new J_(n); + } + }), + (e.prototype._setLineText = function (e, t) { + (this._lines[e] = t), + this._lineStarts && + this._lineStarts.changeValue( + e, + this._lines[e].length + this._eol.length + ); + }), + (e.prototype._acceptDeleteRange = function (e) { + if (e.startLineNumber !== e.endLineNumber) + this._setLineText( + e.startLineNumber - 1, + this._lines[e.startLineNumber - 1].substring( + 0, + e.startColumn - 1 + ) + this._lines[e.endLineNumber - 1].substring(e.endColumn - 1) + ), + this._lines.splice( + e.startLineNumber, + e.endLineNumber - e.startLineNumber + ), + this._lineStarts && + this._lineStarts.removeValues( + e.startLineNumber, + e.endLineNumber - e.startLineNumber + ); + else { + if (e.startColumn === e.endColumn) return; + this._setLineText( + e.startLineNumber - 1, + this._lines[e.startLineNumber - 1].substring( + 0, + e.startColumn - 1 + ) + + this._lines[e.startLineNumber - 1].substring(e.endColumn - 1) + ); + } + }), + (e.prototype._acceptInsertText = function (e, t) { + if (0 !== t.length) { + var n = t.split(/\r\n|\r|\n/); + if (1 !== n.length) { + (n[n.length - 1] += this._lines[e.lineNumber - 1].substring( + e.column - 1 + )), + this._setLineText( + e.lineNumber - 1, + this._lines[e.lineNumber - 1].substring(0, e.column - 1) + + n[0] + ); + for ( + var r = new Uint32Array(n.length - 1), i = 1; + i < n.length; + i++ + ) + this._lines.splice(e.lineNumber + i - 1, 0, n[i]), + (r[i - 1] = n[i].length + this._eol.length); + this._lineStarts && + this._lineStarts.insertValues(e.lineNumber, r); + } else + this._setLineText( + e.lineNumber - 1, + this._lines[e.lineNumber - 1].substring(0, e.column - 1) + + n[0] + + this._lines[e.lineNumber - 1].substring(e.column - 1) + ); + } + }), + e + ); + })(), + ty = (function () { + function e(e) { + for (var t = 0, n = 0, r = 0, i = e.length; r < i; r++) { + var o = e[r], + s = o[0]; + (l = o[1]) > t && (t = l), + s > n && (n = s), + (c = o[2]) > n && (n = c); + } + t++, n++; + var a = new _o(n, t, 0); + for (r = 0, i = e.length; r < i; r++) { + var u = e[r], + l = ((s = u[0]), u[1]), + c = u[2]; + a.set(s, l, c); + } + (this._states = a), (this._maxCharCode = t); + } + return ( + (e.prototype.nextState = function (e, t) { + return t < 0 || t >= this._maxCharCode ? 0 : this._states.get(e, t); + }), + e + ); + })(), + ny = null; + var ry = null; + var iy = (function () { + function e() {} + return ( + (e._createLink = function (e, t, n, r, i) { + var o = i - 1; + do { + var s = t.charCodeAt(o); + if (2 !== e.get(s)) break; + o--; + } while (o > r); + if (r > 0) { + var a = t.charCodeAt(r - 1), + u = t.charCodeAt(o); + ((40 === a && 41 === u) || + (91 === a && 93 === u) || + (123 === a && 125 === u)) && + o--; + } + return { + range: { + startLineNumber: n, + startColumn: r + 1, + endLineNumber: n, + endColumn: o + 2, + }, + url: t.substring(r, o + 1), + }; + }), + (e.computeLinks = function (t, n) { + void 0 === n && + (null === ny && + (ny = new ty([ + [1, 104, 2], + [1, 72, 2], + [1, 102, 6], + [1, 70, 6], + [2, 116, 3], + [2, 84, 3], + [3, 116, 4], + [3, 84, 4], + [4, 112, 5], + [4, 80, 5], + [5, 115, 9], + [5, 83, 9], + [5, 58, 10], + [6, 105, 7], + [6, 73, 7], + [7, 108, 8], + [7, 76, 8], + [8, 101, 9], + [8, 69, 9], + [9, 58, 10], + [10, 47, 11], + [11, 47, 12], + ])), + (n = ny)); + for ( + var r = (function () { + if (null === ry) { + ry = new bo(0); + for ( + var e = 0; + e < + ' \t<>\'"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…' + .length; + e++ + ) + ry.set( + ' \t<>\'"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…'.charCodeAt( + e + ), + 1 + ); + for (e = 0; e < '.,;'.length; e++) + ry.set('.,;'.charCodeAt(e), 2); + } + return ry; + })(), + i = [], + o = 1, + s = t.getLineCount(); + o <= s; + o++ + ) { + for ( + var a = t.getLineContent(o), + u = a.length, + l = 0, + c = 0, + d = 0, + h = 1, + f = !1, + p = !1, + g = !1; + l < u; + + ) { + var m = !1, + _ = a.charCodeAt(l); + if (13 === h) { + var y = void 0; + switch (_) { + case 40: + (f = !0), (y = 0); + break; + case 41: + y = f ? 0 : 1; + break; + case 91: + (p = !0), (y = 0); + break; + case 93: + y = p ? 0 : 1; + break; + case 123: + (g = !0), (y = 0); + break; + case 125: + y = g ? 0 : 1; + break; + case 39: + y = 34 === d || 96 === d ? 0 : 1; + break; + case 34: + y = 39 === d || 96 === d ? 0 : 1; + break; + case 96: + y = 39 === d || 34 === d ? 0 : 1; + break; + default: + y = r.get(_); + } + 1 === y && (i.push(e._createLink(r, a, o, c, l)), (m = !0)); + } else if (12 === h) { + y = void 0; + 91 === _ ? ((p = !0), (y = 0)) : (y = r.get(_)), + 1 === y ? (m = !0) : (h = 13); + } else 0 === (h = n.nextState(h, _)) && (m = !0); + m && + ((h = 1), (f = !1), (p = !1), (g = !1), (c = l + 1), (d = _)), + l++; + } + 13 === h && i.push(e._createLink(r, a, o, c, u)); + } + return i; + }), + e + ); + })(); + var oy = (function () { + function e() { + this._defaultValueSet = [ + ['true', 'false'], + ['True', 'False'], + [ + 'Private', + 'Public', + 'Friend', + 'ReadOnly', + 'Partial', + 'Protected', + 'WriteOnly', + ], + ['public', 'protected', 'private'], + ]; + } + return ( + (e.prototype.navigateValueSet = function (e, t, n, r, i) { + var o; + if (e && t && (o = this.doNavigateValueSet(t, i))) + return { range: e, value: o }; + if (n && r && (o = this.doNavigateValueSet(r, i))) + return { range: n, value: o }; + return null; + }), + (e.prototype.doNavigateValueSet = function (e, t) { + var n = this.numberReplace(e, t); + return null !== n ? n : this.textReplace(e, t); + }), + (e.prototype.numberReplace = function (e, t) { + var n = Math.pow(10, e.length - (e.lastIndexOf('.') + 1)), + r = Number(e), + i = parseFloat(e); + return isNaN(r) || isNaN(i) || r !== i + ? null + : 0 !== r || t + ? ((r = Math.floor(r * n)), (r += t ? n : -n), String(r / n)) + : null; + }), + (e.prototype.textReplace = function (e, t) { + return this.valueSetsReplace(this._defaultValueSet, e, t); + }), + (e.prototype.valueSetsReplace = function (e, t, n) { + for (var r = null, i = 0, o = e.length; null === r && i < o; i++) + r = this.valueSetReplace(e[i], t, n); + return r; + }), + (e.prototype.valueSetReplace = function (e, t, n) { + var r = e.indexOf(t); + return r >= 0 + ? ((r += n ? 1 : -1) < 0 ? (r = e.length - 1) : (r %= e.length), + e[r]) + : null; + }), + (e.INSTANCE = new e()), + e + ); + })(), + sy = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ay = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + sy(t, e), + Object.defineProperty(t.prototype, 'uri', { + get: function () { + return this._uri; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'version', { + get: function () { + return this._versionId; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'eol', { + get: function () { + return this._eol; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.getValue = function () { + return this.getText(); + }), + (t.prototype.getLinesContent = function () { + return this._lines.slice(0); + }), + (t.prototype.getLineCount = function () { + return this._lines.length; + }), + (t.prototype.getLineContent = function (e) { + return this._lines[e - 1]; + }), + (t.prototype.getWordAtPosition = function (e, t) { + var n = ri(e.column, ni(t), this._lines[e.lineNumber - 1], 0); + return n + ? new Fr(e.lineNumber, n.startColumn, e.lineNumber, n.endColumn) + : null; + }), + (t.prototype.getWordUntilPosition = function (e, t) { + var n = this.getWordAtPosition(e, t); + return n + ? { + word: this._lines[e.lineNumber - 1].substring( + n.startColumn - 1, + e.column - 1 + ), + startColumn: n.startColumn, + endColumn: e.column, + } + : { word: '', startColumn: e.column, endColumn: e.column }; + }), + (t.prototype.createWordIterator = function (e) { + var t, + n, + r = this, + i = 0, + o = 0, + s = [], + a = function () { + if (o < s.length) { + var u = n.substring(s[o].start, s[o].end); + return ( + (o += 1), + t ? (t.value = u) : (t = { done: !1, value: u }), + t + ); + } + return i >= r._lines.length + ? Bt + : ((n = r._lines[i]), + (s = r._wordenize(n, e)), + (o = 0), + (i += 1), + a()); + }; + return { next: a }; + }), + (t.prototype.getLineWords = function (e, t) { + for ( + var n = this._lines[e - 1], + r = [], + i = 0, + o = this._wordenize(n, t); + i < o.length; + i++ + ) { + var s = o[i]; + r.push({ + word: n.substring(s.start, s.end), + startColumn: s.start + 1, + endColumn: s.end + 1, + }); + } + return r; + }), + (t.prototype._wordenize = function (e, t) { + var n, + r = []; + for (t.lastIndex = 0; (n = t.exec(e)) && 0 !== n[0].length; ) + r.push({ start: n.index, end: n.index + n[0].length }); + return r; + }), + (t.prototype.getValueInRange = function (e) { + if ( + (e = this._validateRange(e)).startLineNumber === e.endLineNumber + ) + return this._lines[e.startLineNumber - 1].substring( + e.startColumn - 1, + e.endColumn - 1 + ); + var t = this._eol, + n = e.startLineNumber - 1, + r = e.endLineNumber - 1, + i = []; + i.push(this._lines[n].substring(e.startColumn - 1)); + for (var o = n + 1; o < r; o++) i.push(this._lines[o]); + return ( + i.push(this._lines[r].substring(0, e.endColumn - 1)), i.join(t) + ); + }), + (t.prototype.offsetAt = function (e) { + return ( + (e = this._validatePosition(e)), + this._ensureLineStarts(), + this._lineStarts.getAccumulatedValue(e.lineNumber - 2) + + (e.column - 1) + ); + }), + (t.prototype.positionAt = function (e) { + (e = Math.floor(e)), (e = Math.max(0, e)), this._ensureLineStarts(); + var t = this._lineStarts.getIndexOf(e), + n = this._lines[t.index].length; + return { + lineNumber: 1 + t.index, + column: 1 + Math.min(t.remainder, n), + }; + }), + (t.prototype._validateRange = function (e) { + var t = this._validatePosition({ + lineNumber: e.startLineNumber, + column: e.startColumn, + }), + n = this._validatePosition({ + lineNumber: e.endLineNumber, + column: e.endColumn, + }); + return t.lineNumber !== e.startLineNumber || + t.column !== e.startColumn || + n.lineNumber !== e.endLineNumber || + n.column !== e.endColumn + ? { + startLineNumber: t.lineNumber, + startColumn: t.column, + endLineNumber: n.lineNumber, + endColumn: n.column, + } + : e; + }), + (t.prototype._validatePosition = function (e) { + if (!xt.isIPosition(e)) throw new Error('bad position'); + var t = e.lineNumber, + n = e.column, + r = !1; + if (t < 1) (t = 1), (n = 1), (r = !0); + else if (t > this._lines.length) + (t = this._lines.length), + (n = this._lines[t - 1].length + 1), + (r = !0); + else { + var i = this._lines[t - 1].length + 1; + n < 1 ? ((n = 1), (r = !0)) : n > i && ((n = i), (r = !0)); + } + return r ? { lineNumber: t, column: n } : e; + }), + t + ); + })(ey), + uy = (function () { + function e(e, t) { + (this._host = e), + (this._models = Object.create(null)), + (this._foreignModuleFactory = t), + (this._foreignModule = null); + } + return ( + (e.prototype.dispose = function () { + this._models = Object.create(null); + }), + (e.prototype._getModel = function (e) { + return this._models[e]; + }), + (e.prototype._getModels = function () { + var e = this, + t = []; + return ( + Object.keys(this._models).forEach(function (n) { + return t.push(e._models[n]); + }), + t + ); + }), + (e.prototype.acceptNewModel = function (e) { + this._models[e.url] = new ay( + dt.parse(e.url), + e.lines, + e.EOL, + e.versionId + ); + }), + (e.prototype.acceptModelChanged = function (e, t) { + this._models[e] && this._models[e].onEvents(t); + }), + (e.prototype.acceptRemovedModel = function (e) { + this._models[e] && delete this._models[e]; + }), + (e.prototype.computeDiff = function (e, t, n) { + var r = this._getModel(e), + i = this._getModel(t); + if (!r || !i) return Promise.resolve(null); + var o = r.getLinesContent(), + s = i.getLinesContent(), + a = new Z_(o, s, { + shouldComputeCharChanges: !0, + shouldPostProcessCharChanges: !0, + shouldIgnoreTrimWhitespace: n, + shouldMakePrettyDiff: !0, + }).computeDiff(), + u = !(a.length > 0) && this._modelsAreIdentical(r, i); + return Promise.resolve({ identical: u, changes: a }); + }), + (e.prototype._modelsAreIdentical = function (e, t) { + var n = e.getLineCount(); + if (n !== t.getLineCount()) return !1; + for (var r = 1; r <= n; r++) { + if (e.getLineContent(r) !== t.getLineContent(r)) return !1; + } + return !0; + }), + (e.prototype.computeMoreMinimalEdits = function (t, n) { + var r = this._getModel(t); + if (!r) return Promise.resolve(n); + for ( + var i = [], + o = void 0, + s = 0, + a = (n = Hr(n, function (e, t) { + return e.range && t.range + ? Fr.compareRangesUsingStarts(e.range, t.range) + : (e.range ? 0 : 1) - (t.range ? 0 : 1); + })); + s < a.length; + s++ + ) { + var u = a[s], + l = u.range, + c = u.text, + d = u.eol; + if (('number' == typeof d && (o = d), !Fr.isEmpty(l) || c)) { + var h = r.getValueInRange(l); + if (h !== (c = c.replace(/\r\n|\n|\r/g, r.eol))) + if (Math.max(c.length, h.length) > e._diffLimit) + i.push({ range: l, text: c }); + else + for ( + var f = Y_(h, c, !1), + p = r.offsetAt(Fr.lift(l).getStartPosition()), + g = 0, + m = f; + g < m.length; + g++ + ) { + var _ = m[g], + y = r.positionAt(p + _.originalStart), + v = r.positionAt( + p + _.originalStart + _.originalLength + ), + b = { + text: c.substr(_.modifiedStart, _.modifiedLength), + range: { + startLineNumber: y.lineNumber, + startColumn: y.column, + endLineNumber: v.lineNumber, + endColumn: v.column, + }, + }; + r.getValueInRange(b.range) !== b.text && i.push(b); + } + } + } + return ( + 'number' == typeof o && + i.push({ + eol: o, + text: '', + range: { + startLineNumber: 0, + startColumn: 0, + endLineNumber: 0, + endColumn: 0, + }, + }), + Promise.resolve(i) + ); + }), + (e.prototype.computeLinks = function (e) { + var t = this._getModel(e); + return t + ? Promise.resolve( + (function (e) { + return e && + 'function' == typeof e.getLineCount && + 'function' == typeof e.getLineContent + ? iy.computeLinks(e) + : []; + })(t) + ) + : Promise.resolve(null); + }), + (e.prototype.textualSuggest = function (t, n, r, i) { + var o = this._getModel(t); + if (!o) return Promise.resolve(null); + var s = Object.create(null), + a = [], + u = new RegExp(r, i), + l = o.getWordUntilPosition(n, u), + c = o.getWordAtPosition(n, u); + c && (s[o.getValueInRange(c)] = !0); + for ( + var d = o.createWordIterator(u), h = d.next(); + !h.done && a.length <= e._suggestionsLimit; + h = d.next() + ) { + var f = h.value; + s[f] || + ((s[f] = !0), + isNaN(Number(f)) && + a.push({ + kind: 18, + label: f, + insertText: f, + range: { + startLineNumber: n.lineNumber, + startColumn: l.startColumn, + endLineNumber: n.lineNumber, + endColumn: l.endColumn, + }, + })); + } + return Promise.resolve({ suggestions: a }); + }), + (e.prototype.computeWordRanges = function (e, t, n, r) { + var i = this._getModel(e); + if (!i) return Promise.resolve(Object.create(null)); + for ( + var o = new RegExp(n, r), + s = Object.create(null), + a = t.startLineNumber; + a < t.endLineNumber; + a++ + ) + for (var u = 0, l = i.getLineWords(a, o); u < l.length; u++) { + var c = l[u]; + if (isNaN(Number(c.word))) { + var d = s[c.word]; + d || ((d = []), (s[c.word] = d)), + d.push({ + startLineNumber: a, + startColumn: c.startColumn, + endLineNumber: a, + endColumn: c.endColumn, + }); + } + } + return Promise.resolve(s); + }), + (e.prototype.navigateValueSet = function (e, t, n, r, i) { + var o = this._getModel(e); + if (!o) return Promise.resolve(null); + var s = new RegExp(r, i); + t.startColumn === t.endColumn && + (t = { + startLineNumber: t.startLineNumber, + startColumn: t.startColumn, + endLineNumber: t.endLineNumber, + endColumn: t.endColumn + 1, + }); + var a = o.getValueInRange(t), + u = o.getWordAtPosition( + { lineNumber: t.startLineNumber, column: t.startColumn }, + s + ); + if (!u) return Promise.resolve(null); + var l = o.getValueInRange(u), + c = oy.INSTANCE.navigateValueSet(t, a, u, l, n); + return Promise.resolve(c); + }), + (e.prototype.loadForeignModule = function (e, t, n) { + var r = this, + i = { + host: He(n, function (e, t) { + return r._host.fhr(e, t); + }), + getMirrorModels: function () { + return r._getModels(); + }, + }; + return this._foreignModuleFactory + ? ((this._foreignModule = this._foreignModuleFactory(i, t)), + Promise.resolve(We(this._foreignModule))) + : Promise.reject(new Error('Unexpected usage')); + }), + (e.prototype.fmr = function (e, t) { + if ( + !this._foreignModule || + 'function' != typeof this._foreignModule[e] + ) + return Promise.reject( + new Error('Missing requestHandler or method: ' + e) + ); + try { + return Promise.resolve( + this._foreignModule[e].apply(this._foreignModule, t) + ); + } catch (e) { + return Promise.reject(e); + } + }), + (e._diffLimit = 1e5), + (e._suggestionsLimit = 1e4), + e + ); + })(); + 'function' == typeof importScripts && (tt.b.monaco = s_()); + var ly = wt('textResourceConfigurationService'), + cy = wt('textResourcePropertiesService'), + dy = wt('logService'), + hy = (function () { + function e() {} + return ( + (e.prototype.trace = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + }), + (e.prototype.error = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + }), + (e.prototype.dispose = function () {}), + e + ); + })(), + fy = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + py = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + gy = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + my = 6e4, + _y = 3e5; + function yy(e, t) { + var n = e.getModel(t); + return !!n && !n.isTooLargeForSyncing(); + } + var vy = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + (i._modelService = t), + (i._workerManager = i._register(new wy(i._modelService))), + (i._logService = r), + i._register( + Ta.register('*', { + provideLinks: function (e, t) { + return yy(i._modelService, e.uri) + ? i._workerManager + .withWorker() + .then(function (t) { + return t.computeLinks(e.uri); + }) + .then(function (e) { + return e && { links: e }; + }) + : Promise.resolve({ links: [] }); + }, + }) + ), + i._register( + ma.register('*', new by(i._workerManager, n, i._modelService)) + ), + i + ); + } + return ( + fy(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.canComputeDiff = function (e, t) { + return yy(this._modelService, e) && yy(this._modelService, t); + }), + (t.prototype.computeDiff = function (e, t, n) { + return this._workerManager.withWorker().then(function (r) { + return r.computeDiff(e, t, n); + }); + }), + (t.prototype.computeMoreMinimalEdits = function (e, t) { + var n, + r = this; + if (((n = t), Array.isArray(n) && n.length > 0)) { + if (!yy(this._modelService, e)) return Promise.resolve(t); + var i = za.create(!0), + o = this._workerManager.withWorker().then(function (n) { + return n.computeMoreMinimalEdits(e, t); + }); + return ( + o.finally(function () { + return r._logService.trace( + 'FORMAT#computeMoreMinimalEdits', + e.toString(!0), + i.elapsed() + ); + }), + o + ); + } + return Promise.resolve(void 0); + }), + (t.prototype.canNavigateValueSet = function (e) { + return yy(this._modelService, e); + }), + (t.prototype.navigateValueSet = function (e, t, n) { + return this._workerManager.withWorker().then(function (r) { + return r.navigateValueSet(e, t, n); + }); + }), + (t.prototype.canComputeWordRanges = function (e) { + return yy(this._modelService, e); + }), + (t.prototype.computeWordRanges = function (e, t) { + return this._workerManager.withWorker().then(function (n) { + return n.computeWordRanges(e, t); + }); + }), + (t = py([gy(0, Lt), gy(1, ly), gy(2, dy)], t)) + ); + })(Rt), + by = (function () { + function e(e, t, n) { + (this._debugDisplayName = 'wordbasedCompletions'), + (this._workerManager = e), + (this._configurationService = t), + (this._modelService = n); + } + return ( + (e.prototype.provideCompletionItems = function (e, t) { + if ( + this._configurationService.getValue(e.uri, t, 'editor') + .wordBasedSuggestions && + yy(this._modelService, e.uri) + ) + return this._workerManager.withWorker().then(function (n) { + return n.textualSuggest(e.uri, t); + }); + }), + e + ); + })(), + wy = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._modelService = t), + (n._editorWorkerClient = null), + (n._lastWorkerUsedTime = new Date().getTime()), + n._register(new Ns()).cancelAndSet(function () { + return n._checkStopIdleWorker(); + }, Math.round(_y / 2)), + n._register( + n._modelService.onModelRemoved(function (e) { + return n._checkStopEmptyWorker(); + }) + ), + n + ); + } + return ( + fy(t, e), + (t.prototype.dispose = function () { + this._editorWorkerClient && + (this._editorWorkerClient.dispose(), + (this._editorWorkerClient = null)), + e.prototype.dispose.call(this); + }), + (t.prototype._checkStopEmptyWorker = function () { + this._editorWorkerClient && + 0 === this._modelService.getModels().length && + (this._editorWorkerClient.dispose(), + (this._editorWorkerClient = null)); + }), + (t.prototype._checkStopIdleWorker = function () { + this._editorWorkerClient && + new Date().getTime() - this._lastWorkerUsedTime > _y && + (this._editorWorkerClient.dispose(), + (this._editorWorkerClient = null)); + }), + (t.prototype.withWorker = function () { + return ( + (this._lastWorkerUsedTime = new Date().getTime()), + this._editorWorkerClient || + (this._editorWorkerClient = new Ly( + this._modelService, + 'editorWorkerService' + )), + Promise.resolve(this._editorWorkerClient) + ); + }), + t + ); + })(Rt), + Cy = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + if ( + ((i._syncedModels = Object.create(null)), + (i._syncedModelsLastUsedTime = Object.create(null)), + (i._proxy = t), + (i._modelService = n), + !r) + ) { + var o = new Ns(); + o.cancelAndSet(function () { + return i._checkStopModelSync(); + }, Math.round(my / 2)), + i._register(o); + } + return i; + } + return ( + fy(t, e), + (t.prototype.dispose = function () { + for (var t in this._syncedModels) Ot(this._syncedModels[t]); + (this._syncedModels = Object.create(null)), + (this._syncedModelsLastUsedTime = Object.create(null)), + e.prototype.dispose.call(this); + }), + (t.prototype.ensureSyncedResources = function (e) { + for (var t = 0, n = e; t < n.length; t++) { + var r = n[t], + i = r.toString(); + this._syncedModels[i] || this._beginModelSync(r), + this._syncedModels[i] && + (this._syncedModelsLastUsedTime[i] = new Date().getTime()); + } + }), + (t.prototype._checkStopModelSync = function () { + var e = new Date().getTime(), + t = []; + for (var n in this._syncedModelsLastUsedTime) { + e - this._syncedModelsLastUsedTime[n] > my && t.push(n); + } + for (var r = 0, i = t; r < i.length; r++) { + var o = i[r]; + this._stopModelSync(o); + } + }), + (t.prototype._beginModelSync = function (e) { + var t = this, + n = this._modelService.getModel(e); + if (n && !n.isTooLargeForSyncing()) { + var r = e.toString(); + this._proxy.acceptNewModel({ + url: n.uri.toString(), + lines: n.getLinesContent(), + EOL: n.getEOL(), + versionId: n.getVersionId(), + }); + var i = new Pt(); + i.add( + n.onDidChangeContent(function (e) { + t._proxy.acceptModelChanged(r.toString(), e); + }) + ), + i.add( + n.onWillDispose(function () { + t._stopModelSync(r); + }) + ), + i.add( + It(function () { + t._proxy.acceptRemovedModel(r); + }) + ), + (this._syncedModels[r] = i); + } + }), + (t.prototype._stopModelSync = function (e) { + var t = this._syncedModels[e]; + delete this._syncedModels[e], + delete this._syncedModelsLastUsedTime[e], + Ot(t); + }), + t + ); + })(Rt), + Sy = (function () { + function e(e) { + (this._instance = e), + (this._proxyObj = Promise.resolve(this._instance)); + } + return ( + (e.prototype.dispose = function () { + this._instance.dispose(); + }), + (e.prototype.getProxyObject = function () { + return this._proxyObj; + }), + e + ); + })(), + xy = (function () { + function e(e) { + this._workerClient = e; + } + return ( + (e.prototype.fhr = function (e, t) { + return this._workerClient.fhr(e, t); + }), + e + ); + })(), + Ly = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._modelService = t), + (r._workerFactory = new P_(n)), + (r._worker = null), + (r._modelManager = null), + r + ); + } + return ( + fy(t, e), + (t.prototype.fhr = function (e, t) { + throw new Error('Not implemented!'); + }), + (t.prototype._getOrCreateWorker = function () { + if (!this._worker) + try { + this._worker = this._register( + new A_( + this._workerFactory, + 'vs/editor/common/services/editorSimpleWorker', + new xy(this) + ) + ); + } catch (e) { + N_(e), (this._worker = new Sy(new uy(new xy(this), null))); + } + return this._worker; + }), + (t.prototype._getProxy = function () { + var e = this; + return this._getOrCreateWorker() + .getProxyObject() + .then(void 0, function (t) { + return ( + N_(t), + (e._worker = new Sy(new uy(new xy(e), null))), + e._getOrCreateWorker().getProxyObject() + ); + }); + }), + (t.prototype._getOrCreateModelManager = function (e) { + return ( + this._modelManager || + (this._modelManager = this._register( + new Cy(e, this._modelService, !1) + )), + this._modelManager + ); + }), + (t.prototype._withSyncedResources = function (e) { + var t = this; + return this._getProxy().then(function (n) { + return t._getOrCreateModelManager(n).ensureSyncedResources(e), n; + }); + }), + (t.prototype.computeDiff = function (e, t, n) { + return this._withSyncedResources([e, t]).then(function (r) { + return r.computeDiff(e.toString(), t.toString(), n); + }); + }), + (t.prototype.computeMoreMinimalEdits = function (e, t) { + return this._withSyncedResources([e]).then(function (n) { + return n.computeMoreMinimalEdits(e.toString(), t); + }); + }), + (t.prototype.computeLinks = function (e) { + return this._withSyncedResources([e]).then(function (t) { + return t.computeLinks(e.toString()); + }); + }), + (t.prototype.textualSuggest = function (e, t) { + var n = this; + return this._withSyncedResources([e]).then(function (r) { + var i = n._modelService.getModel(e); + if (!i) return null; + var o = ku.getWordDefinition(i.getLanguageIdentifier().id), + s = o.source, + a = fn(o); + return r.textualSuggest(e.toString(), t, s, a); + }); + }), + (t.prototype.computeWordRanges = function (e, t) { + var n = this; + return this._withSyncedResources([e]).then(function (r) { + var i = n._modelService.getModel(e); + if (!i) return Promise.resolve(null); + var o = ku.getWordDefinition(i.getLanguageIdentifier().id), + s = o.source, + a = fn(o); + return r.computeWordRanges(e.toString(), t, s, a); + }); + }), + (t.prototype.navigateValueSet = function (e, t, n) { + var r = this; + return this._withSyncedResources([e]).then(function (i) { + var o = r._modelService.getModel(e); + if (!o) return null; + var s = ku.getWordDefinition(o.getLanguageIdentifier().id), + a = s.source, + u = fn(s); + return i.navigateValueSet(e.toString(), t, n, a, u); + }); + }), + t + ); + })(Rt), + ky = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + var My, + Dy = (function (e) { + function t(t, n) { + var r = e.call(this, t, n.label) || this; + return ( + (r._foreignModuleId = n.moduleId), + (r._foreignModuleCreateData = n.createData || null), + (r._foreignModuleHost = n.host || null), + (r._foreignProxy = null), + r + ); + } + return ( + ky(t, e), + (t.prototype.fhr = function (e, t) { + if ( + !this._foreignModuleHost || + 'function' != typeof this._foreignModuleHost[e] + ) + return Promise.reject( + new Error( + 'Missing method ' + + e + + ' or missing main thread foreign host.' + ) + ); + try { + return Promise.resolve( + this._foreignModuleHost[e].apply(this._foreignModuleHost, t) + ); + } catch (e) { + return Promise.reject(e); + } + }), + (t.prototype._getForeignProxy = function () { + var e = this; + return ( + this._foreignProxy || + (this._foreignProxy = this._getProxy().then(function (t) { + var n = e._foreignModuleHost ? We(e._foreignModuleHost) : []; + return t + .loadForeignModule( + e._foreignModuleId, + e._foreignModuleCreateData, + n + ) + .then(function (n) { + e._foreignModuleCreateData = null; + for ( + var r = function (e, n) { + return t.fmr(e, n); + }, + i = function (e, t) { + return function () { + var n = Array.prototype.slice.call(arguments, 0); + return t(e, n); + }; + }, + o = {}, + s = 0, + a = n; + s < a.length; + s++ + ) { + var u = a[s]; + o[u] = i(u, r); + } + return o; + }); + })), + this._foreignProxy + ); + }), + (t.prototype.getProxy = function () { + return this._getForeignProxy(); + }), + (t.prototype.withSyncedResources = function (e) { + var t = this; + return this._withSyncedResources(e).then(function (e) { + return t.getProxy(); + }); + }), + t + ); + })(Ly); + My = + 'undefined' != typeof TextDecoder + ? function (e) { + return new Ey(e); + } + : function (e) { + return new Ty(); + }; + var Ey = (function () { + function e(e) { + (this._decoder = new TextDecoder('UTF-16LE')), + (this._capacity = 0 | e), + (this._buffer = new Uint16Array(this._capacity)), + (this._completedStrings = null), + (this._bufferLength = 0); + } + return ( + (e.prototype.reset = function () { + (this._completedStrings = null), (this._bufferLength = 0); + }), + (e.prototype.build = function () { + return null !== this._completedStrings + ? (this._flushBuffer(), this._completedStrings.join('')) + : this._buildBuffer(); + }), + (e.prototype._buildBuffer = function () { + if (0 === this._bufferLength) return ''; + var e = new Uint16Array(this._buffer.buffer, 0, this._bufferLength); + return this._decoder.decode(e); + }), + (e.prototype._flushBuffer = function () { + var e = this._buildBuffer(); + (this._bufferLength = 0), + null === this._completedStrings + ? (this._completedStrings = [e]) + : (this._completedStrings[this._completedStrings.length] = e); + }), + (e.prototype.write1 = function (e) { + var t = this._capacity - this._bufferLength; + t <= 1 && (0 === t || Sn(e)) && this._flushBuffer(), + (this._buffer[this._bufferLength++] = e); + }), + (e.prototype.appendASCII = function (e) { + this._bufferLength === this._capacity && this._flushBuffer(), + (this._buffer[this._bufferLength++] = e); + }), + (e.prototype.appendASCIIString = function (e) { + var t = e.length; + if (this._bufferLength + t >= this._capacity) + return ( + this._flushBuffer(), + void (this._completedStrings[this._completedStrings.length] = e) + ); + for (var n = 0; n < t; n++) + this._buffer[this._bufferLength++] = e.charCodeAt(n); + }), + e + ); + })(), + Ty = (function () { + function e() { + (this._pieces = []), (this._piecesLen = 0); + } + return ( + (e.prototype.reset = function () { + (this._pieces = []), (this._piecesLen = 0); + }), + (e.prototype.build = function () { + return this._pieces.join(''); + }), + (e.prototype.write1 = function (e) { + this._pieces[this._piecesLen++] = String.fromCharCode(e); + }), + (e.prototype.appendASCII = function (e) { + this._pieces[this._piecesLen++] = String.fromCharCode(e); + }), + (e.prototype.appendASCIIString = function (e) { + this._pieces[this._piecesLen++] = e; + }), + e + ); + })(), + Ny = (function () { + function e(e, t, n, r) { + (this.startColumn = e), + (this.endColumn = t), + (this.className = n), + (this.type = r); + } + return ( + (e._equals = function (e, t) { + return ( + e.startColumn === t.startColumn && + e.endColumn === t.endColumn && + e.className === t.className && + e.type === t.type + ); + }), + (e.equalsArr = function (t, n) { + var r = t.length; + if (r !== n.length) return !1; + for (var i = 0; i < r; i++) if (!e._equals(t[i], n[i])) return !1; + return !0; + }), + (e.filter = function (t, n, r, i) { + if (0 === t.length) return []; + for (var o = [], s = 0, a = 0, u = t.length; a < u; a++) { + var l = t[a], + c = l.range; + if ( + !(c.endLineNumber < n || c.startLineNumber > n) && + (!c.isEmpty() || (0 !== l.type && 3 !== l.type)) + ) { + var d = c.startLineNumber === n ? c.startColumn : r, + h = c.endLineNumber === n ? c.endColumn : i; + o[s++] = new e(d, h, l.inlineClassName, l.type); + } + } + return o; + }), + (e.compare = function (e, t) { + return e.startColumn === t.startColumn + ? e.endColumn === t.endColumn + ? e.className < t.className + ? -1 + : e.className > t.className + ? 1 + : 0 + : e.endColumn - t.endColumn + : e.startColumn - t.startColumn; + }), + e + ); + })(), + Oy = function (e, t, n) { + (this.startOffset = e), (this.endOffset = t), (this.className = n); + }, + Ay = (function () { + function e() { + (this.stopOffsets = []), (this.classNames = []), (this.count = 0); + } + return ( + (e.prototype.consumeLowerThan = function (e, t, n) { + for (; this.count > 0 && this.stopOffsets[0] < e; ) { + for ( + var r = 0; + r + 1 < this.count && + this.stopOffsets[r] === this.stopOffsets[r + 1]; + + ) + r++; + n.push(new Oy(t, this.stopOffsets[r], this.classNames.join(' '))), + (t = this.stopOffsets[r] + 1), + this.stopOffsets.splice(0, r + 1), + this.classNames.splice(0, r + 1), + (this.count -= r + 1); + } + return ( + this.count > 0 && + t < e && + (n.push(new Oy(t, e - 1, this.classNames.join(' '))), (t = e)), + t + ); + }), + (e.prototype.insert = function (e, t) { + if (0 === this.count || this.stopOffsets[this.count - 1] <= e) + this.stopOffsets.push(e), this.classNames.push(t); + else + for (var n = 0; n < this.count; n++) + if (this.stopOffsets[n] >= e) { + this.stopOffsets.splice(n, 0, e), + this.classNames.splice(n, 0, t); + break; + } + this.count++; + }), + e + ); + })(), + Iy = (function () { + function e() {} + return ( + (e.normalize = function (e, t) { + if (0 === t.length) return []; + for ( + var n = [], r = new Ay(), i = 0, o = 0, s = t.length; + o < s; + o++ + ) { + var a = t[o], + u = a.startColumn, + l = a.endColumn, + c = a.className; + if (u > 1) Sn(e.charCodeAt(u - 2)) && u--; + if (l > 1) Sn(e.charCodeAt(l - 2)) && l--; + var d = u - 1, + h = l - 2; + (i = r.consumeLowerThan(d, i, n)), + 0 === r.count && (i = d), + r.insert(h, c); + } + return r.consumeLowerThan(1073741824, i, n), n; + }), + e + ); + })(), + Py = function (e, t) { + (this.endIndex = e), (this.type = t); + }, + Ry = (function () { + function e(e, t) { + (this.startOffset = e), (this.endOffset = t); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.startOffset === e.startOffset && + this.endOffset === e.endOffset + ); + }), + e + ); + })(), + Fy = (function () { + function e(e, t, n, r, i, o, s, a, u, l, c, d, h, f, p, g) { + (this.useMonospaceOptimizations = e), + (this.canUseHalfwidthRightwardsArrow = t), + (this.lineContent = n), + (this.continuesWithWrappedLine = r), + (this.isBasicASCII = i), + (this.containsRTL = o), + (this.fauxIndentLength = s), + (this.lineTokens = a), + (this.lineDecorations = u), + (this.tabSize = l), + (this.spaceWidth = c), + (this.stopRenderingLineAfter = d), + (this.renderWhitespace = + 'all' === h + ? 3 + : 'boundary' === h + ? 1 + : 'selection' === h + ? 2 + : 0), + (this.renderControlCharacters = f), + (this.fontLigatures = p), + (this.selectionsOnLine = + g && + g.sort(function (e, t) { + return e.startOffset < t.startOffset ? -1 : 1; + })); + } + return ( + (e.prototype.sameSelection = function (e) { + if (null === this.selectionsOnLine) return null === e; + if (null === e) return !1; + if (e.length !== this.selectionsOnLine.length) return !1; + for (var t = 0; t < this.selectionsOnLine.length; t++) + if (!this.selectionsOnLine[t].equals(e[t])) return !1; + return !0; + }), + (e.prototype.equals = function (e) { + return ( + this.useMonospaceOptimizations === e.useMonospaceOptimizations && + this.canUseHalfwidthRightwardsArrow === + e.canUseHalfwidthRightwardsArrow && + this.lineContent === e.lineContent && + this.continuesWithWrappedLine === e.continuesWithWrappedLine && + this.isBasicASCII === e.isBasicASCII && + this.containsRTL === e.containsRTL && + this.fauxIndentLength === e.fauxIndentLength && + this.tabSize === e.tabSize && + this.spaceWidth === e.spaceWidth && + this.stopRenderingLineAfter === e.stopRenderingLineAfter && + this.renderWhitespace === e.renderWhitespace && + this.renderControlCharacters === e.renderControlCharacters && + this.fontLigatures === e.fontLigatures && + Ny.equalsArr(this.lineDecorations, e.lineDecorations) && + this.lineTokens.equals(e.lineTokens) && + this.sameSelection(e.selectionsOnLine) + ); + }), + e + ); + })(), + Yy = (function () { + function e(e, t) { + (this.length = e), + (this._data = new Uint32Array(this.length)), + (this._absoluteOffsets = new Uint32Array(this.length)); + } + return ( + (e.getPartIndex = function (e) { + return (4294901760 & e) >>> 16; + }), + (e.getCharIndex = function (e) { + return (65535 & e) >>> 0; + }), + (e.prototype.setPartData = function (e, t, n, r) { + var i = ((t << 16) | (n << 0)) >>> 0; + (this._data[e] = i), (this._absoluteOffsets[e] = r + n); + }), + (e.prototype.getAbsoluteOffsets = function () { + return this._absoluteOffsets; + }), + (e.prototype.charOffsetToPartData = function (e) { + return 0 === this.length + ? 0 + : e < 0 + ? this._data[0] + : e >= this.length + ? this._data[this.length - 1] + : this._data[e]; + }), + (e.prototype.partDataToCharOffset = function (t, n, r) { + if (0 === this.length) return 0; + for ( + var i = ((t << 16) | (r << 0)) >>> 0, o = 0, s = this.length - 1; + o + 1 < s; + + ) { + var a = (o + s) >>> 1, + u = this._data[a]; + if (u === i) return a; + u > i ? (s = a) : (o = a); + } + if (o === s) return o; + var l = this._data[o], + c = this._data[s]; + if (l === i) return o; + if (c === i) return s; + var d = e.getPartIndex(l); + return r - e.getCharIndex(l) <= + (d !== e.getPartIndex(c) ? n : e.getCharIndex(c)) - r + ? o + : s; + }), + e + ); + })(), + jy = function (e, t, n) { + (this.characterMapping = e), + (this.containsRTL = t), + (this.containsForeignElements = n); + }; + function By(e, t) { + if (0 === e.lineContent.length) { + var n = 0, + r = ' '; + if (e.lineDecorations.length > 0) { + for (var i = [], o = 0, s = e.lineDecorations.length; o < s; o++) { + var a = e.lineDecorations[o]; + 1 === a.type && (i.push(e.lineDecorations[o].className), (n |= 1)), + 2 === a.type && + (i.push(e.lineDecorations[o].className), (n |= 2)); + } + 0 !== n && + (r = ''); + } + return t.appendASCIIString(r), new jy(new Yy(0, 0), !1, n); + } + return (function (e, t) { + var n = e.fontIsMonospace, + r = e.canUseHalfwidthRightwardsArrow, + i = e.containsForeignElements, + o = e.lineContent, + s = e.len, + a = e.isOverflowing, + u = e.parts, + l = e.tabSize, + c = e.containsRTL, + d = e.spaceWidth, + h = e.renderWhitespace, + f = e.renderControlCharacters, + p = new Yy(s + 1, u.length), + g = 0, + m = 0, + _ = 0, + y = 0, + v = 0; + t.appendASCIIString(''); + for (var b = 0, w = u.length; b < w; b++) { + v += y; + var C = u[b], + S = C.endIndex, + x = C.type, + L = 0 !== h && x.indexOf('vs-whitespace') >= 0; + if ( + ((_ = 0), + t.appendASCIIString(' 0 && + (!r || T > 1 ? t.write1(8594) : t.write1(65515), T--); + T > 0; + + ) + t.write1(160), T--; + else t.write1(183); + _++; + } + y = k; + } else { + k = 0; + for ( + c && t.appendASCIIString(' dir="ltr"'), t.appendASCII(62); + g < S; + g++ + ) { + var E; + switch ((p.setPartData(g, b, _, v), (E = o.charCodeAt(g)))) { + case 9: + var T; + for (m += (T = l - ((g + m) % l)) - 1, _ += T - 1; T > 0; ) + t.write1(160), k++, T--; + break; + case 32: + t.write1(160), k++; + break; + case 60: + t.appendASCIIString('<'), k++; + break; + case 62: + t.appendASCIIString('>'), k++; + break; + case 38: + t.appendASCIIString('&'), k++; + break; + case 0: + t.appendASCIIString('�'), k++; + break; + case 65279: + case 8232: + t.write1(65533), k++; + break; + default: + Tn(E) && m++, + f && E < 32 + ? (t.write1(9216 + E), k++) + : (t.write1(E), k++); + } + _++; + } + y = k; + } + t.appendASCIIString(''); + } + p.setPartData(s, u.length - 1, _, v), + a && t.appendASCIIString(''); + return t.appendASCIIString(''), new jy(p, c, i); + })( + (function (e) { + var t, + n, + r = e.useMonospaceOptimizations, + i = e.lineContent; + -1 !== e.stopRenderingLineAfter && e.stopRenderingLineAfter < i.length + ? ((t = !0), (n = e.stopRenderingLineAfter)) + : ((t = !1), (n = i.length)); + var o = (function (e, t, n) { + var r = [], + i = 0; + t > 0 && (r[i++] = new Py(t, '')); + for (var o = 0, s = e.getCount(); o < s; o++) { + var a = e.getEndOffset(o); + if (!(a <= t)) { + var u = e.getClassName(o); + if (a >= n) { + r[i++] = new Py(n, u); + break; + } + r[i++] = new Py(a, u); + } + } + return r; + })(e.lineTokens, e.fauxIndentLength, n); + (3 === e.renderWhitespace || + 1 === e.renderWhitespace || + (2 === e.renderWhitespace && e.selectionsOnLine)) && + (o = (function (e, t, n, r, i, o, s, a, u) { + var l, + c = [], + d = 0, + h = 0, + f = r[h].type, + p = r[h].endIndex, + g = r.length, + m = pn(e); + -1 === m ? ((m = t), (l = t)) : (l = mn(e)); + for (var _ = 0, y = 0; y < i; y++) { + 9 === (C = e.charCodeAt(y)) ? (_ = o) : Tn(C) ? (_ += 2) : _++; + } + _ %= o; + var v = !1, + b = 0, + w = a && a[b]; + for (y = i; y < t; y++) { + var C = e.charCodeAt(y); + w && y >= w.endOffset && (b++, (w = a && a[b])); + var S = void 0; + if (y < m || y > l) S = !0; + else if (9 === C) S = !0; + else if (32 === C) + if (u) + if (v) S = !0; + else { + var x = y + 1 < t ? e.charCodeAt(y + 1) : 0; + S = 32 === x || 9 === x; + } + else S = !0; + else S = !1; + S && a && (S = !!w && w.startOffset <= y && w.endOffset > y), + v + ? (!S || (!s && _ >= o)) && + ((c[d++] = new Py(y, 'vs-whitespace')), (_ %= o)) + : (y === p || (S && y > i)) && + ((c[d++] = new Py(y, f)), (_ %= o)), + 9 === C ? (_ = o) : Tn(C) ? (_ += 2) : _++, + (v = S), + y === p && ++h < g && ((f = r[h].type), (p = r[h].endIndex)); + } + var L = !1; + if (v) + if (n && u) { + var k = t > 0 ? e.charCodeAt(t - 1) : 0, + M = t > 1 ? e.charCodeAt(t - 2) : 0; + (32 === k && 32 !== M && 9 !== M) || (L = !0); + } else L = !0; + return (c[d++] = new Py(t, L ? 'vs-whitespace' : f)), c; + })( + i, + n, + e.continuesWithWrappedLine, + o, + e.fauxIndentLength, + e.tabSize, + r, + e.selectionsOnLine, + 1 === e.renderWhitespace + )); + var s = 0; + if (e.lineDecorations.length > 0) { + for (var a = 0, u = e.lineDecorations.length; a < u; a++) { + var l = e.lineDecorations[a]; + 3 === l.type + ? (s |= 1) + : 1 === l.type + ? (s |= 1) + : 2 === l.type && (s |= 2); + } + o = (function (e, t, n, r) { + r.sort(Ny.compare); + for ( + var i = Iy.normalize(e, r), + o = i.length, + s = 0, + a = [], + u = 0, + l = 0, + c = 0, + d = n.length; + c < d; + c++ + ) { + for ( + var h = n[c], f = h.endIndex, p = h.type; + s < o && i[s].startOffset < f; + + ) { + var g = i[s]; + if ( + (g.startOffset > l && + ((l = g.startOffset), (a[u++] = new Py(l, p))), + !(g.endOffset + 1 <= f)) + ) { + (l = f), (a[u++] = new Py(l, p + ' ' + g.className)); + break; + } + (l = g.endOffset + 1), + (a[u++] = new Py(l, p + ' ' + g.className)), + s++; + } + f > l && ((l = f), (a[u++] = new Py(l, p))); + } + var m = n[n.length - 1].endIndex; + if (s < o && i[s].startOffset === m) { + for (var _ = []; s < o && i[s].startOffset === m; ) + _.push(i[s].className), s++; + a[u++] = new Py(l, _.join(' ')); + } + return a; + })(i, 0, o, e.lineDecorations); + } + e.containsRTL || + (o = (function (e, t, n) { + var r = 0, + i = [], + o = 0; + if (n) + for (var s = 0, a = t.length; s < a; s++) { + var u = (f = t[s]).endIndex; + if (r + 50 < u) { + for (var l = f.type, c = -1, d = r, h = r; h < u; h++) + 32 === e.charCodeAt(h) && (c = h), + -1 !== c && + h - d >= 50 && + ((i[o++] = new Py(c + 1, l)), (d = c + 1), (c = -1)); + d !== u && (i[o++] = new Py(u, l)); + } else i[o++] = f; + r = u; + } + else + for (s = 0, a = t.length; s < a; s++) { + var f = t[s], + p = (u = f.endIndex) - r; + if (p > 50) { + l = f.type; + var g = Math.ceil(p / 50); + for (h = 1; h < g; h++) { + var m = r + 50 * h; + i[o++] = new Py(m, l); + } + i[o++] = new Py(u, l); + } else i[o++] = f; + r = u; + } + return i; + })(i, o, !e.isBasicASCII || e.fontLigatures)); + return new Vy( + r, + e.canUseHalfwidthRightwardsArrow, + i, + n, + t, + o, + s, + e.tabSize, + e.containsRTL, + e.spaceWidth, + e.renderWhitespace, + e.renderControlCharacters + ); + })(e), + t + ); + } + var Wy = function (e, t, n, r) { + (this.characterMapping = e), + (this.html = t), + (this.containsRTL = n), + (this.containsForeignElements = r); + }; + function Hy(e) { + var t = My(1e4), + n = By(e, t); + return new Wy( + n.characterMapping, + t.build(), + n.containsRTL, + n.containsForeignElements + ); + } + var Vy = function (e, t, n, r, i, o, s, a, u, l, c, d) { + (this.fontIsMonospace = e), + (this.canUseHalfwidthRightwardsArrow = t), + (this.lineContent = n), + (this.len = r), + (this.isOverflowing = i), + (this.parts = o), + (this.containsForeignElements = s), + (this.tabSize = a), + (this.containsRTL = u), + (this.spaceWidth = l), + (this.renderWhitespace = c), + (this.renderControlCharacters = d); + }; + var zy = function (e, t, n, r) { + (this.top = 0 | e), + (this.left = 0 | t), + (this.width = 0 | n), + (this.height = 0 | r); + }, + Uy = function (e, t) { + (this.tabSize = e), (this.data = t); + }, + qy = function (e, t, n, r, i) { + (this.content = e), + (this.continuesWithWrappedLine = t), + (this.minColumn = n), + (this.maxColumn = r), + (this.tokens = i); + }, + Ky = (function () { + function e(t, n, r, i, o, s, a, u, l) { + (this.minColumn = t), + (this.maxColumn = n), + (this.content = r), + (this.continuesWithWrappedLine = i), + (this.isBasicASCII = e.isBasicASCII(r, s)), + (this.containsRTL = e.containsRTL(r, this.isBasicASCII, o)), + (this.tokens = a), + (this.inlineDecorations = u), + (this.tabSize = l); + } + return ( + (e.isBasicASCII = function (e, t) { + return !t || En(e); + }), + (e.containsRTL = function (e, t, n) { + return !(t || !n) && kn(e); + }), + e + ); + })(), + Gy = function (e, t, n) { + (this.range = e), (this.inlineClassName = t), (this.type = n); + }, + $y = function (e, t) { + (this.range = e), (this.options = t); + }; + function Zy(e) { + return !(function (e) { + return Array.isArray(e); + })(e); + } + function Xy(e) { + return 'string' == typeof e; + } + function Jy(e) { + return !Xy(e); + } + function Qy(e) { + return !e; + } + function ev(e, t) { + return e.ignoreCase && t ? t.toLowerCase() : t; + } + function tv(e) { + return e.replace(/[&<>'"_]/g, '-'); + } + function nv(e, t) { + return new Error(e.languageId + ': ' + t); + } + function rv(e, t, n, r, i) { + var o = null; + return t.replace( + /\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g, + function (t, s, a, u, l, c, d, h, f) { + return Qy(a) + ? Qy(u) + ? !Qy(l) && l < r.length + ? ev(e, r[l]) + : !Qy(d) && e && 'string' == typeof e[d] + ? e[d] + : (null === o && (o = i.split('.')).unshift(i), + !Qy(c) && c < o.length ? ev(e, o[c]) : '') + : ev(e, n) + : '$'; + } + ); + } + function iv(e, t) { + for (var n = t; n && n.length > 0; ) { + var r = e.tokenizer[n]; + if (r) return r; + var i = n.lastIndexOf('.'); + n = i < 0 ? null : n.substr(0, i); + } + return null; + } + var ov = (function () { + function e(e) { + (this._maxCacheDepth = e), (this._entries = Object.create(null)); + } + return ( + (e.create = function (e, t) { + return this._INSTANCE.create(e, t); + }), + (e.prototype.create = function (e, t) { + if (null !== e && e.depth >= this._maxCacheDepth) + return new sv(e, t); + var n = sv.getStackElementId(e); + n.length > 0 && (n += '|'), (n += t); + var r = this._entries[n]; + return r || ((r = new sv(e, t)), (this._entries[n] = r), r); + }), + (e._INSTANCE = new e(5)), + e + ); + })(), + sv = (function () { + function e(e, t) { + (this.parent = e), + (this.state = t), + (this.depth = (this.parent ? this.parent.depth : 0) + 1); + } + return ( + (e.getStackElementId = function (e) { + for (var t = ''; null !== e; ) + t.length > 0 && (t += '|'), (t += e.state), (e = e.parent); + return t; + }), + (e._equals = function (e, t) { + for (; null !== e && null !== t; ) { + if (e === t) return !0; + if (e.state !== t.state) return !1; + (e = e.parent), (t = t.parent); + } + return null === e && null === t; + }), + (e.prototype.equals = function (t) { + return e._equals(this, t); + }), + (e.prototype.push = function (e) { + return ov.create(this, e); + }), + (e.prototype.pop = function () { + return this.parent; + }), + (e.prototype.popall = function () { + for (var e = this; e.parent; ) e = e.parent; + return e; + }), + (e.prototype.switchTo = function (e) { + return ov.create(this.parent, e); + }), + e + ); + })(), + av = (function () { + function e(e, t) { + (this.modeId = e), (this.state = t); + } + return ( + (e.prototype.equals = function (e) { + return this.modeId === e.modeId && this.state.equals(e.state); + }), + (e.prototype.clone = function () { + return this.state.clone() === this.state + ? this + : new e(this.modeId, this.state); + }), + e + ); + })(), + uv = (function () { + function e(e) { + (this._maxCacheDepth = e), (this._entries = Object.create(null)); + } + return ( + (e.create = function (e, t) { + return this._INSTANCE.create(e, t); + }), + (e.prototype.create = function (e, t) { + if (null !== t) return new lv(e, t); + if (null !== e && e.depth >= this._maxCacheDepth) + return new lv(e, t); + var n = sv.getStackElementId(e), + r = this._entries[n]; + return r || ((r = new lv(e, null)), (this._entries[n] = r), r); + }), + (e._INSTANCE = new e(5)), + e + ); + })(), + lv = (function () { + function e(e, t) { + (this.stack = e), (this.embeddedModeData = t); + } + return ( + (e.prototype.clone = function () { + return (this.embeddedModeData + ? this.embeddedModeData.clone() + : null) === this.embeddedModeData + ? this + : uv.create(this.stack, this.embeddedModeData); + }), + (e.prototype.equals = function (t) { + return ( + t instanceof e && + !!this.stack.equals(t.stack) && + ((null === this.embeddedModeData && + null === t.embeddedModeData) || + (null !== this.embeddedModeData && + null !== t.embeddedModeData && + this.embeddedModeData.equals(t.embeddedModeData))) + ); + }), + e + ); + })(), + cv = (function () { + function e() { + (this._tokens = []), + (this._language = null), + (this._lastTokenType = null), + (this._lastTokenLanguage = null); + } + return ( + (e.prototype.enterMode = function (e, t) { + this._language = t; + }), + (e.prototype.emit = function (e, t) { + (this._lastTokenType === t && + this._lastTokenLanguage === this._language) || + ((this._lastTokenType = t), + (this._lastTokenLanguage = this._language), + this._tokens.push(new Fa(e, t, this._language))); + }), + (e.prototype.nestedModeTokenize = function (e, t, n) { + var r = t.modeId, + i = t.state, + o = Ia.get(r); + if (!o) return this.enterMode(n, r), this.emit(n, ''), i; + var s = o.tokenize(e, i, n); + return ( + (this._tokens = this._tokens.concat(s.tokens)), + (this._lastTokenType = null), + (this._lastTokenLanguage = null), + (this._language = null), + s.endState + ); + }), + (e.prototype.finalize = function (e) { + return new Ya(this._tokens, e); + }), + e + ); + })(), + dv = (function () { + function e(e, t) { + (this._modeService = e), + (this._theme = t), + (this._prependTokens = null), + (this._tokens = []), + (this._currentLanguageId = 0), + (this._lastTokenMetadata = 0); + } + return ( + (e.prototype.enterMode = function (e, t) { + this._currentLanguageId = this._modeService.getLanguageIdentifier( + t + ).id; + }), + (e.prototype.emit = function (e, t) { + var n = this._theme.match(this._currentLanguageId, t); + this._lastTokenMetadata !== n && + ((this._lastTokenMetadata = n), + this._tokens.push(e), + this._tokens.push(n)); + }), + (e._merge = function (e, t, n) { + var r = null !== e ? e.length : 0, + i = t.length, + o = null !== n ? n.length : 0; + if (0 === r && 0 === i && 0 === o) return new Uint32Array(0); + if (0 === r && 0 === i) return n; + if (0 === i && 0 === o) return e; + var s = new Uint32Array(r + i + o); + null !== e && s.set(e); + for (var a = 0; a < i; a++) s[r + a] = t[a]; + return null !== n && s.set(n, r + i), s; + }), + (e.prototype.nestedModeTokenize = function (t, n, r) { + var i = n.modeId, + o = n.state, + s = Ia.get(i); + if (!s) return this.enterMode(r, i), this.emit(r, ''), o; + var a = s.tokenize2(t, o, r); + return ( + (this._prependTokens = e._merge( + this._prependTokens, + this._tokens, + a.tokens + )), + (this._tokens = []), + (this._currentLanguageId = 0), + (this._lastTokenMetadata = 0), + a.endState + ); + }), + (e.prototype.finalize = function (t) { + return new ja(e._merge(this._prependTokens, this._tokens, null), t); + }), + e + ); + })(), + hv = (function () { + function e(e, t, n, r) { + var i = this; + (this._modeService = e), + (this._standaloneThemeService = t), + (this._modeId = n), + (this._lexer = r), + (this._embeddedModes = Object.create(null)), + (this.embeddedLoaded = Promise.resolve(void 0)); + var o = !1; + this._tokenizationRegistryListener = Ia.onDidChange(function (e) { + if (!o) { + for ( + var t = !1, n = 0, r = e.changedLanguages.length; + n < r; + n++ + ) { + var s = e.changedLanguages[n]; + if (i._embeddedModes[s]) { + t = !0; + break; + } + } + t && ((o = !0), Ia.fire([i._modeId]), (o = !1)); + } + }); + } + return ( + (e.prototype.dispose = function () { + this._tokenizationRegistryListener.dispose(); + }), + (e.prototype.getLoadStatus = function () { + var t = []; + for (var n in this._embeddedModes) + if (this._embeddedModes.hasOwnProperty(n)) { + var r = Ia.get(n); + if (r) { + if (r instanceof e) { + var i = r.getLoadStatus(); + !1 === i.loaded && t.push(i.promise); + } + continue; + } + var o = Ia.getPromise(n); + o && t.push(o); + } + return 0 === t.length + ? { loaded: !0 } + : { loaded: !1, promise: Promise.all(t).then(function (e) {}) }; + }), + (e.prototype.getInitialState = function () { + var e = ov.create(null, this._lexer.start); + return uv.create(e, null); + }), + (e.prototype.tokenize = function (e, t, n) { + var r = new cv(), + i = this._tokenize(e, t, n, r); + return r.finalize(i); + }), + (e.prototype.tokenize2 = function (e, t, n) { + var r = new dv( + this._modeService, + this._standaloneThemeService.getTheme().tokenTheme + ), + i = this._tokenize(e, t, n, r); + return r.finalize(i); + }), + (e.prototype._tokenize = function (e, t, n, r) { + return t.embeddedModeData + ? this._nestedTokenize(e, t, n, r) + : this._myTokenize(e, t, n, r); + }), + (e.prototype._findLeavingNestedModeOffset = function (e, t) { + var n = this._lexer.tokenizer[t.stack.state]; + if (!n && !(n = iv(this._lexer, t.stack.state))) + throw nv( + this._lexer, + 'tokenizer state is not defined: ' + t.stack.state + ); + for (var r = -1, i = !1, o = 0, s = n; o < s.length; o++) { + var a = s[o]; + if (Jy(a.action) && '@pop' === a.action.nextEmbedded) { + i = !0; + var u = a.regex, + l = a.regex.source; + '^(?:' === l.substr(0, 4) && + ')' === l.substr(l.length - 1, 1) && + (u = new RegExp( + l.substr(4, l.length - 5), + u.ignoreCase ? 'i' : '' + )); + var c = e.search(u); + -1 !== c && (-1 === r || c < r) && (r = c); + } + } + if (!i) + throw nv( + this._lexer, + 'no rule containing nextEmbedded: "@pop" in tokenizer embedded state: ' + + t.stack.state + ); + return r; + }), + (e.prototype._nestedTokenize = function (e, t, n, r) { + var i = this._findLeavingNestedModeOffset(e, t); + if (-1 === i) { + var o = r.nestedModeTokenize(e, t.embeddedModeData, n); + return uv.create(t.stack, new av(t.embeddedModeData.modeId, o)); + } + var s = e.substring(0, i); + s.length > 0 && r.nestedModeTokenize(s, t.embeddedModeData, n); + var a = e.substring(i); + return this._myTokenize(a, t, n + i, r); + }), + (e.prototype._safeRuleName = function (e) { + return e ? e.name : '(unknown)'; + }), + (e.prototype._myTokenize = function (e, t, n, r) { + r.enterMode(n, this._modeId); + for ( + var i, + o, + s = e.length, + a = t.embeddedModeData, + u = t.stack, + l = 0, + c = null, + d = !0; + d || l < s; + + ) { + var h = l, + f = u.depth, + p = c ? c.groups.length : 0, + g = u.state, + m = null, + _ = null, + y = null, + v = null, + b = null; + if (c) { + m = c.matches; + var w = c.groups.shift(); + (_ = w.matched), + (y = w.action), + (v = c.rule), + 0 === c.groups.length && (c = null); + } else { + if (!d && l >= s) break; + d = !1; + var C = this._lexer.tokenizer[g]; + if (!C && !(C = iv(this._lexer, g))) + throw nv(this._lexer, 'tokenizer state is not defined: ' + g); + for (var S = e.substr(l), x = 0, L = C; x < L.length; x++) { + var k = L[x]; + if ( + (0 === l || !k.matchOnlyAtLineStart) && + (m = S.match(k.regex)) + ) { + (_ = m[0]), (y = k.action); + break; + } + } + } + if ( + (m || ((m = ['']), (_ = '')), + y || + (l < s && (_ = (m = [e.charAt(l)])[0]), + (y = this._lexer.defaultToken)), + null === _) + ) + break; + for (l += _.length; Zy(y) && Jy(y) && y.test; ) + y = y.test(_, m, g, l === s); + var M = null; + if ('string' == typeof y || Array.isArray(y)) M = y; + else if (y.group) M = y.group; + else if (null !== y.token && void 0 !== y.token) { + if ( + ((M = y.tokenSubst + ? rv(this._lexer, y.token, _, m, g) + : y.token), + y.nextEmbedded) + ) + if ('@pop' === y.nextEmbedded) { + if (!a) + throw nv( + this._lexer, + 'cannot pop embedded mode if not inside one' + ); + a = null; + } else { + if (a) + throw nv( + this._lexer, + 'cannot enter embedded mode from within an embedded mode' + ); + b = rv(this._lexer, y.nextEmbedded, _, m, g); + } + if ( + (y.goBack && (l = Math.max(0, l - y.goBack)), + y.switchTo && 'string' == typeof y.switchTo) + ) { + if ( + ('@' === (D = rv(this._lexer, y.switchTo, _, m, g))[0] && + (D = D.substr(1)), + !iv(this._lexer, D)) + ) + throw nv( + this._lexer, + "trying to switch to a state '" + + D + + "' that is undefined in rule: " + + this._safeRuleName(v) + ); + u = u.switchTo(D); + } else { + if (y.transform && 'function' == typeof y.transform) + throw nv(this._lexer, 'action.transform not supported'); + if (y.next) + if ('@push' === y.next) { + if (u.depth >= this._lexer.maxStack) + throw nv( + this._lexer, + 'maximum tokenizer stack size reached: [' + + u.state + + ',' + + u.parent.state + + ',...]' + ); + u = u.push(g); + } else if ('@pop' === y.next) { + if (u.depth <= 1) + throw nv( + this._lexer, + 'trying to pop an empty stack in rule: ' + + this._safeRuleName(v) + ); + u = u.pop(); + } else if ('@popall' === y.next) u = u.popall(); + else { + var D; + if ( + ('@' === (D = rv(this._lexer, y.next, _, m, g))[0] && + (D = D.substr(1)), + !iv(this._lexer, D)) + ) + throw nv( + this._lexer, + "trying to set a next state '" + + D + + "' that is undefined in rule: " + + this._safeRuleName(v) + ); + u = u.push(D); + } + } + y.log && + 'string' == typeof y.log && + ((i = this._lexer), + (o = + this._lexer.languageId + + ': ' + + rv(this._lexer, y.log, _, m, g)), + console.log(i.languageId + ': ' + o)); + } + if (null === M) + throw nv( + this._lexer, + 'lexer rule has no well-defined action in rule: ' + + this._safeRuleName(v) + ); + if (Array.isArray(M)) { + if (c && c.groups.length > 0) + throw nv( + this._lexer, + 'groups cannot be nested: ' + this._safeRuleName(v) + ); + if (m.length !== M.length + 1) + throw nv( + this._lexer, + 'matched number of groups does not match the number of actions in rule: ' + + this._safeRuleName(v) + ); + for (var E = 0, T = 1; T < m.length; T++) E += m[T].length; + if (E !== _.length) + throw nv( + this._lexer, + 'with groups, all characters should be matched in consecutive groups in rule: ' + + this._safeRuleName(v) + ); + c = { rule: v, matches: m, groups: [] }; + for (T = 0; T < M.length; T++) + c.groups[T] = { action: M[T], matched: m[T + 1] }; + l -= _.length; + } else { + if ( + ('@rematch' === M && + ((l -= _.length), (_ = ''), (m = null), (M = '')), + 0 === _.length) + ) { + if ( + 0 === s || + f !== u.depth || + g !== u.state || + (c ? c.groups.length : 0) !== p + ) + continue; + throw nv( + this._lexer, + 'no progress in tokenizer in rule: ' + this._safeRuleName(v) + ); + } + var N = null; + if (Xy(M) && 0 === M.indexOf('@brackets')) { + var O = M.substr('@brackets'.length), + A = fv(this._lexer, _); + if (!A) + throw nv( + this._lexer, + '@brackets token returned but no bracket defined as: ' + _ + ); + N = tv(A.token + O); + } else { + N = tv('' === M ? '' : M + this._lexer.tokenPostfix); + } + if ((r.emit(h + n, N), null !== b)) { + var I = this._modeService.getModeIdForLanguageName(b); + I && (b = I); + var P = this._getNestedEmbeddedModeData(b); + if (l < s) { + S = e.substr(l); + return this._nestedTokenize(S, uv.create(u, P), n + l, r); + } + return uv.create(u, P); + } + } + } + return uv.create(u, a); + }), + (e.prototype._getNestedEmbeddedModeData = function (e) { + var t = this._locateMode(e); + if (t) { + var n = Ia.get(t); + if (n) return new av(t, n.getInitialState()); + } + return new av(t || 'vs.editor.nullMode', Ba); + }), + (e.prototype._locateMode = function (e) { + if (!e || !this._modeService.isRegisteredMode(e)) return null; + if (e === this._modeId) return e; + var t = this._modeService.getModeId(e); + return ( + t && + (this._modeService.triggerMode(t), + (this._embeddedModes[t] = !0)), + t + ); + }), + e + ); + })(); + function fv(e, t) { + if (!t) return null; + t = ev(e, t); + for (var n = 0, r = e.brackets; n < r.length; n++) { + var i = r[n]; + if (i.open === t) return { token: i.token, bracketType: 1 }; + if (i.close === t) return { token: i.token, bracketType: -1 }; + } + return null; + } + var pv = (function () { + function e() {} + return ( + (e.colorizeElement = function (e, t, n, r) { + var i = (r = r || {}).theme || 'vs', + o = + r.mimeType || + n.getAttribute('lang') || + n.getAttribute('data-lang'); + if (!o) return console.error('Mode not detected'), Promise.resolve(); + e.setTheme(i); + var s = n.firstChild ? n.firstChild.nodeValue : ''; + n.className += ' ' + i; + return this.colorize(t, s || '', o, r).then( + function (e) { + n.innerHTML = e; + }, + function (e) { + return console.error(e); + } + ); + }), + (e.colorize = function (e, t, n, r) { + var i = 4; + r && 'number' == typeof r.tabSize && (i = r.tabSize), + On(t) && (t = t.substr(1)); + var o = t.split(/\r\n|\r|\n/), + s = e.getModeId(n); + if (!s) return Promise.resolve(mv(o, i)); + e.triggerMode(s); + var a = Ia.get(s); + if (a) return gv(o, i, a); + var u = Ia.getPromise(s); + return new Promise( + u + ? function (e, t) { + u.then(function (n) { + gv(o, i, n).then(e, t); + }, t); + } + : function (e, t) { + var n = null, + r = null, + a = function () { + n && (n.dispose(), (n = null)), + r && (r.dispose(), (r = null)); + var a = Ia.get(s); + a ? gv(o, i, a).then(e, t) : e(mv(o, i)); + }; + (r = new Ts()).cancelAndSet(a, 500), + (n = Ia.onDidChange(function (e) { + e.changedLanguages.indexOf(s) >= 0 && a(); + })); + } + ); + }), + (e.colorizeLine = function (e, t, n, r, i) { + void 0 === i && (i = 4); + var o = Ky.isBasicASCII(e, t), + s = Ky.containsRTL(e, o, n); + return Hy( + new Fy( + !1, + !0, + e, + !1, + o, + s, + 0, + r, + [], + i, + 0, + -1, + 'none', + !1, + !1, + null + ) + ).html; + }), + (e.colorizeModelLine = function (e, t, n) { + void 0 === n && (n = 4); + var r = e.getLineContent(t); + e.forceTokenization(t); + var i = e.getLineTokens(t).inflate(); + return this.colorizeLine( + r, + e.mightContainNonBasicASCII(), + e.mightContainRTL(), + i, + n + ); + }), + e + ); + })(); + function gv(e, t, n) { + return new Promise(function (r, i) { + var o = function () { + var s = (function (e, t, n) { + for ( + var r = [], i = n.getInitialState(), o = 0, s = e.length; + o < s; + o++ + ) { + var a = e[o], + u = n.tokenize2(a, i, 0); + Pa.convertToEndOffset(u.tokens, a.length); + var l = new Pa(u.tokens, a), + c = Ky.isBasicASCII(a, !0), + d = Ky.containsRTL(a, c, !0), + h = Hy( + new Fy( + !1, + !0, + a, + !1, + c, + d, + 0, + l.inflate(), + [], + t, + 0, + -1, + 'none', + !1, + !1, + null + ) + ); + (r = r.concat(h.html)).push('
'), (i = u.endState); + } + return r.join(''); + })(e, t, n); + if (n instanceof hv) { + var a = n.getLoadStatus(); + if (!1 === a.loaded) return void a.promise.then(o, i); + } + r(s); + }; + o(); + }); + } + function mv(e, t) { + var n = [], + r = new Uint32Array(2); + (r[0] = 0), (r[1] = 16793600); + for (var i = 0, o = e.length; i < o; i++) { + var s = e[i]; + r[0] = s.length; + var a = new Pa(r, s), + u = Ky.isBasicASCII(s, !0), + l = Ky.containsRTL(s, u, !0), + c = Hy( + new Fy( + !1, + !0, + s, + !1, + u, + l, + 0, + a, + [], + t, + 0, + -1, + 'none', + !1, + !1, + null + ) + ); + (n = n.concat(c.html)).push('
'); + } + return n.join(''); + } + var _v = { Configuration: 'base.contributions.configuration' }, + yv = { properties: {}, patternProperties: {} }, + vv = { properties: {}, patternProperties: {} }, + bv = { properties: {}, patternProperties: {} }, + wv = { properties: {}, patternProperties: {} }, + Cv = { properties: {}, patternProperties: {} }, + Sv = { properties: {}, patternProperties: {} }, + xv = 'vscode://schemas/settings/editor', + Lv = Lr.as(Kl), + kv = (function () { + function e() { + (this.overrideIdentifiers = []), + (this._onDidSchemaChange = new Gt()), + (this._onDidUpdateConfiguration = new Gt()), + (this.defaultOverridesConfigurationNode = { + id: 'defaultOverrides', + title: De( + 'defaultConfigurations.title', + 'Default Configuration Overrides' + ), + properties: {}, + }), + (this.configurationContributors = [ + this.defaultOverridesConfigurationNode, + ]), + (this.editorConfigurationSchema = { + properties: {}, + patternProperties: {}, + additionalProperties: !1, + errorMessage: 'Unknown editor configuration setting', + allowsTrailingCommas: !0, + allowComments: !0, + }), + (this.configurationProperties = {}), + (this.excludedConfigurationProperties = {}), + this.computeOverridePropertyPattern(), + Lv.registerSchema(xv, this.editorConfigurationSchema); + } + return ( + (e.prototype.registerConfiguration = function (e, t) { + void 0 === t && (t = !0), this.registerConfigurations([e], t); + }), + (e.prototype.registerConfigurations = function (e, t) { + var n = this; + void 0 === t && (t = !0); + var r = []; + e.forEach(function (e) { + r.push.apply(r, n.validateAndRegisterProperties(e, t)), + n.configurationContributors.push(e), + n.registerJSONConfiguration(e), + n.updateSchemaForOverrideSettingsConfiguration(e); + }), + this._onDidSchemaChange.fire(), + this._onDidUpdateConfiguration.fire(r); + }), + (e.prototype.registerOverrideIdentifiers = function (e) { + var t; + (t = this.overrideIdentifiers).push.apply(t, e), + this.updateOverridePropertyPatternKey(); + }), + (e.prototype.validateAndRegisterProperties = function (e, t, n, r) { + void 0 === t && (t = !0), + void 0 === n && (n = 3), + void 0 === r && (r = !1), + (n = Pe(e.scope) ? n : e.scope), + (r = e.overridable || r); + var i = [], + o = e.properties; + if (o) + for (var s in o) { + var a = void 0; + if (t && (a = Av(s))) console.warn(a), delete o[s]; + else { + var u = o[s]; + Ie(u.default) && (u.default = Nv(u.type)), + r && (u.overridable = !0), + Tv.test(s) + ? (u.scope = void 0) + : (u.scope = Pe(u.scope) ? n : u.scope), + !o[s].hasOwnProperty('included') || o[s].included + ? ((this.configurationProperties[s] = o[s]), i.push(s)) + : ((this.excludedConfigurationProperties[s] = o[s]), + delete o[s]); + } + } + var l = e.allOf; + if (l) + for (var c = 0, d = l; c < d.length; c++) { + var h = d[c]; + i.push.apply(i, this.validateAndRegisterProperties(h, t, n, r)); + } + return i; + }), + (e.prototype.getConfigurationProperties = function () { + return this.configurationProperties; + }), + (e.prototype.registerJSONConfiguration = function (e) { + !(function e(t) { + var n = t.properties; + if (n) + for (var r in n) + switch (((yv.properties[r] = n[r]), n[r].scope)) { + case 1: + vv.properties[r] = n[r]; + break; + case 2: + bv.properties[r] = n[r]; + break; + case 5: + wv.properties[r] = n[r]; + break; + case 3: + Cv.properties[r] = n[r]; + break; + case 4: + Sv.properties[r] = n[r]; + } + var i = t.allOf; + i && i.forEach(e); + })(e); + }), + (e.prototype.updateSchemaForOverrideSettingsConfiguration = function ( + e + ) { + e.id !== Mv && + (this.update(e), + Lv.registerSchema(xv, this.editorConfigurationSchema)); + }), + (e.prototype.updateOverridePropertyPatternKey = function () { + var e = yv.patternProperties[this.overridePropertyPattern]; + e || + (e = { + type: 'object', + description: De( + 'overrideSettings.defaultDescription', + 'Configure editor settings to be overridden for a language.' + ), + errorMessage: 'Unknown Identifier. Use language identifiers', + $ref: xv, + }), + delete yv.patternProperties[this.overridePropertyPattern], + delete vv.patternProperties[this.overridePropertyPattern], + delete bv.patternProperties[this.overridePropertyPattern], + delete wv.patternProperties[this.overridePropertyPattern], + delete Cv.patternProperties[this.overridePropertyPattern], + delete Sv.patternProperties[this.overridePropertyPattern], + this.computeOverridePropertyPattern(), + (yv.patternProperties[this.overridePropertyPattern] = e), + (vv.patternProperties[this.overridePropertyPattern] = e), + (bv.patternProperties[this.overridePropertyPattern] = e), + (wv.patternProperties[this.overridePropertyPattern] = e), + (Cv.patternProperties[this.overridePropertyPattern] = e), + (Sv.patternProperties[this.overridePropertyPattern] = e), + this._onDidSchemaChange.fire(); + }), + (e.prototype.update = function (e) { + var t = this, + n = e.properties; + if (n) + for (var r in n) + n[r].overridable && + (this.editorConfigurationSchema.properties[ + r + ] = this.getConfigurationProperties()[r]); + var i = e.allOf; + i && + i.forEach(function (e) { + return t.update(e); + }); + }), + (e.prototype.computeOverridePropertyPattern = function () { + this.overridePropertyPattern = this.overrideIdentifiers.length + ? Ev.replace( + '${0}', + this.overrideIdentifiers + .map(function (e) { + return hn(e, !1).source; + }) + .join('|') + ) + : Dv; + }), + e + ); + })(), + Mv = 'override', + Dv = '\\[.*\\]$', + Ev = '\\[(${0})\\]$', + Tv = new RegExp(Dv); + function Nv(e) { + switch (Array.isArray(e) ? e[0] : e) { + case 'boolean': + return !1; + case 'integer': + case 'number': + return 0; + case 'string': + return ''; + case 'array': + return []; + case 'object': + return {}; + default: + return null; + } + } + var Ov = new kv(); + function Av(e) { + return Tv.test(e) + ? De( + 'config.property.languageDefault', + "Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.", + e + ) + : void 0 !== Ov.getConfigurationProperties()[e] + ? De( + 'config.property.duplicate', + "Cannot register '{0}'. This property is already registered.", + e + ) + : null; + } + Lr.add(_v.Configuration, Ov); + var Iv = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Pv = Ci, + Rv = bi, + Fv = wi, + Yv = new ((function () { + function e() { + (this._tabFocus = !1), + (this._onDidChangeTabFocus = new Gt()), + (this.onDidChangeTabFocus = this._onDidChangeTabFocus.event); + } + return ( + (e.prototype.getTabFocusMode = function () { + return this._tabFocus; + }), + (e.prototype.setTabFocusMode = function (e) { + this._tabFocus !== e && + ((this._tabFocus = e), + this._onDidChangeTabFocus.fire(this._tabFocus)); + }), + e + ); + })())(), + jv = Object.hasOwnProperty, + Bv = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._onDidChange = r._register(new Gt())), + (r.onDidChange = r._onDidChange.event), + (r.isSimpleWidget = t), + (r._rawOptions = Xr({}, n || {})), + (r._rawOptions.scrollbar = Xr({}, r._rawOptions.scrollbar || {})), + (r._rawOptions.minimap = Xr({}, r._rawOptions.minimap || {})), + (r._rawOptions.find = Xr({}, r._rawOptions.find || {})), + (r._rawOptions.hover = Xr({}, r._rawOptions.hover || {})), + (r._rawOptions.parameterHints = Xr( + {}, + r._rawOptions.parameterHints || {} + )), + (r._validatedOptions = _i.validate(r._rawOptions, Pv)), + (r._isDominatedByLongLines = !1), + (r._lineNumbersDigitCount = 1), + r._register( + v_.onDidChangeZoomLevel(function (e) { + return r._recomputeOptions(); + }) + ), + r._register( + Yv.onDidChangeTabFocus(function (e) { + return r._recomputeOptions(); + }) + ), + r + ); + } + return ( + Iv(t, e), + (t.prototype.observeReferenceElement = function (e) {}), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype._recomputeOptions = function () { + var e = this.editor, + t = this._computeInternalOptions(); + (e && e.equals(t)) || + ((this.editor = t), + e && this._onDidChange.fire(e.createChangeEvent(t))); + }), + (t.prototype.getRawOptions = function () { + return this._rawOptions; + }), + (t.prototype._computeInternalOptions = function () { + var e = this._validatedOptions, + t = this._getEnvConfiguration(), + n = L_.createFromRawSettings( + this._rawOptions, + t.zoomLevel, + this.isSimpleWidget + ), + r = { + outerWidth: t.outerWidth, + outerHeight: t.outerHeight, + fontInfo: this.readConfiguration(n), + extraEditorClassName: t.extraEditorClassName, + isDominatedByLongLines: this._isDominatedByLongLines, + lineNumbersDigitCount: this._lineNumbersDigitCount, + emptySelectionClipboard: t.emptySelectionClipboard, + pixelRatio: t.pixelRatio, + tabFocusMode: Yv.getTabFocusMode(), + accessibilitySupport: t.accessibilitySupport, + }; + return yi.createInternalEditorOptions(r, e); + }), + (t._primitiveArrayEquals = function (e, t) { + if (e.length !== t.length) return !1; + for (var n = 0; n < e.length; n++) if (e[n] !== t[n]) return !1; + return !0; + }), + (t._subsetEquals = function (e, t) { + for (var n in t) + if (jv.call(t, n)) { + var r = t[n], + i = e[n]; + if (i === r) continue; + if (Array.isArray(i) && Array.isArray(r)) { + if (!this._primitiveArrayEquals(i, r)) return !1; + continue; + } + if ('object' == typeof i && 'object' == typeof r) { + if (!this._subsetEquals(i, r)) return !1; + continue; + } + return !1; + } + return !0; + }), + (t.prototype.updateOptions = function (e) { + void 0 !== e && + (t._subsetEquals(this._rawOptions, e) || + ((this._rawOptions = Xr(this._rawOptions, e || {})), + (this._validatedOptions = _i.validate(this._rawOptions, Pv)), + this._recomputeOptions())); + }), + (t.prototype.setIsDominatedByLongLines = function (e) { + (this._isDominatedByLongLines = e), this._recomputeOptions(); + }), + (t.prototype.setMaxLineNumber = function (e) { + var n = t._digitCount(e); + this._lineNumbersDigitCount !== n && + ((this._lineNumbersDigitCount = n), this._recomputeOptions()); + }), + (t._digitCount = function (e) { + for (var t = 0; e; ) (e = Math.floor(e / 10)), t++; + return t || 1; + }), + t + ); + })(Rt), + Wv = Lr.as(_v.Configuration), + Hv = { + id: 'editor', + order: 5, + type: 'object', + title: De('editorConfigurationTitle', 'Editor'), + overridable: !0, + scope: 4, + properties: { + 'editor.fontFamily': { + type: 'string', + default: Rv.fontFamily, + description: De('fontFamily', 'Controls the font family.'), + }, + 'editor.fontWeight': { + type: 'string', + enum: [ + 'normal', + 'bold', + '100', + '200', + '300', + '400', + '500', + '600', + '700', + '800', + '900', + ], + default: Rv.fontWeight, + description: De('fontWeight', 'Controls the font weight.'), + }, + 'editor.fontSize': { + type: 'number', + default: Rv.fontSize, + description: De('fontSize', 'Controls the font size in pixels.'), + }, + 'editor.lineHeight': { + type: 'number', + default: Rv.lineHeight, + description: De( + 'lineHeight', + 'Controls the line height. Use 0 to compute the line height from the font size.' + ), + }, + 'editor.letterSpacing': { + type: 'number', + default: Rv.letterSpacing, + description: De( + 'letterSpacing', + 'Controls the letter spacing in pixels.' + ), + }, + 'editor.lineNumbers': { + type: 'string', + enum: ['off', 'on', 'relative', 'interval'], + enumDescriptions: [ + De('lineNumbers.off', 'Line numbers are not rendered.'), + De( + 'lineNumbers.on', + 'Line numbers are rendered as absolute number.' + ), + De( + 'lineNumbers.relative', + 'Line numbers are rendered as distance in lines to cursor position.' + ), + De( + 'lineNumbers.interval', + 'Line numbers are rendered every 10 lines.' + ), + ], + default: 'on', + description: De( + 'lineNumbers', + 'Controls the display of line numbers.' + ), + }, + 'editor.cursorSurroundingLines': { + type: 'number', + default: Pv.viewInfo.cursorSurroundingLines, + description: De( + 'cursorSurroundingLines', + "Controls the minimal number of visible leading and trailing lines surrounding the cursor. Known as 'scrollOff' or `scrollOffset` in some other editors." + ), + }, + 'editor.renderFinalNewline': { + type: 'boolean', + default: Pv.viewInfo.renderFinalNewline, + description: De( + 'renderFinalNewline', + 'Render last line number when the file ends with a newline.' + ), + }, + 'editor.rulers': { + type: 'array', + items: { type: 'number' }, + default: Pv.viewInfo.rulers, + description: De( + 'rulers', + 'Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.' + ), + }, + 'editor.wordSeparators': { + type: 'string', + default: Pv.wordSeparators, + description: De( + 'wordSeparators', + 'Characters that will be used as word separators when doing word related navigations or operations.' + ), + }, + 'editor.tabSize': { + type: 'number', + default: Fv.tabSize, + minimum: 1, + markdownDescription: De( + 'tabSize', + 'The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.' + ), + }, + 'editor.insertSpaces': { + type: 'boolean', + default: Fv.insertSpaces, + markdownDescription: De( + 'insertSpaces', + 'Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.' + ), + }, + 'editor.detectIndentation': { + type: 'boolean', + default: Fv.detectIndentation, + markdownDescription: De( + 'detectIndentation', + 'Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.' + ), + }, + 'editor.roundedSelection': { + type: 'boolean', + default: Pv.viewInfo.roundedSelection, + description: De( + 'roundedSelection', + 'Controls whether selections should have rounded corners.' + ), + }, + 'editor.scrollBeyondLastLine': { + type: 'boolean', + default: Pv.viewInfo.scrollBeyondLastLine, + description: De( + 'scrollBeyondLastLine', + 'Controls whether the editor will scroll beyond the last line.' + ), + }, + 'editor.scrollBeyondLastColumn': { + type: 'number', + default: Pv.viewInfo.scrollBeyondLastColumn, + description: De( + 'scrollBeyondLastColumn', + 'Controls the number of extra characters beyond which the editor will scroll horizontally.' + ), + }, + 'editor.smoothScrolling': { + type: 'boolean', + default: Pv.viewInfo.smoothScrolling, + description: De( + 'smoothScrolling', + 'Controls whether the editor will scroll using an animation.' + ), + }, + 'editor.minimap.enabled': { + type: 'boolean', + default: Pv.viewInfo.minimap.enabled, + description: De( + 'minimap.enabled', + 'Controls whether the minimap is shown.' + ), + }, + 'editor.minimap.side': { + type: 'string', + enum: ['left', 'right'], + default: Pv.viewInfo.minimap.side, + description: De( + 'minimap.side', + 'Controls the side where to render the minimap.' + ), + }, + 'editor.minimap.showSlider': { + type: 'string', + enum: ['always', 'mouseover'], + default: Pv.viewInfo.minimap.showSlider, + description: De( + 'minimap.showSlider', + 'Controls whether the minimap slider is automatically hidden.' + ), + }, + 'editor.minimap.renderCharacters': { + type: 'boolean', + default: Pv.viewInfo.minimap.renderCharacters, + description: De( + 'minimap.renderCharacters', + 'Render the actual characters on a line as opposed to color blocks.' + ), + }, + 'editor.minimap.maxColumn': { + type: 'number', + default: Pv.viewInfo.minimap.maxColumn, + description: De( + 'minimap.maxColumn', + 'Limit the width of the minimap to render at most a certain number of columns.' + ), + }, + 'editor.hover.enabled': { + type: 'boolean', + default: Pv.contribInfo.hover.enabled, + description: De( + 'hover.enabled', + 'Controls whether the hover is shown.' + ), + }, + 'editor.hover.delay': { + type: 'number', + default: Pv.contribInfo.hover.delay, + description: De( + 'hover.delay', + 'Controls the delay in milliseconds after which the hover is shown.' + ), + }, + 'editor.hover.sticky': { + type: 'boolean', + default: Pv.contribInfo.hover.sticky, + description: De( + 'hover.sticky', + 'Controls whether the hover should remain visible when mouse is moved over it.' + ), + }, + 'editor.find.seedSearchStringFromSelection': { + type: 'boolean', + default: Pv.contribInfo.find.seedSearchStringFromSelection, + description: De( + 'find.seedSearchStringFromSelection', + 'Controls whether the search string in the Find Widget is seeded from the editor selection.' + ), + }, + 'editor.find.autoFindInSelection': { + type: 'boolean', + default: Pv.contribInfo.find.autoFindInSelection, + description: De( + 'find.autoFindInSelection', + 'Controls whether the find operation is carried out on selected text or the entire file in the editor.' + ), + }, + 'editor.find.globalFindClipboard': { + type: 'boolean', + default: Pv.contribInfo.find.globalFindClipboard, + description: De( + 'find.globalFindClipboard', + 'Controls whether the Find Widget should read or modify the shared find clipboard on macOS.' + ), + included: tt.d, + }, + 'editor.find.addExtraSpaceOnTop': { + type: 'boolean', + default: !0, + description: De( + 'find.addExtraSpaceOnTop', + 'Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.' + ), + }, + 'editor.wordWrap': { + type: 'string', + enum: ['off', 'on', 'wordWrapColumn', 'bounded'], + markdownEnumDescriptions: [ + De('wordWrap.off', 'Lines will never wrap.'), + De('wordWrap.on', 'Lines will wrap at the viewport width.'), + De( + { + key: 'wordWrap.wordWrapColumn', + comment: [ + '- `editor.wordWrapColumn` refers to a different setting and should not be localized.', + ], + }, + 'Lines will wrap at `#editor.wordWrapColumn#`.' + ), + De( + { + key: 'wordWrap.bounded', + comment: [ + '- viewport means the edge of the visible window size.', + '- `editor.wordWrapColumn` refers to a different setting and should not be localized.', + ], + }, + 'Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.' + ), + ], + default: Pv.wordWrap, + description: De( + { + key: 'wordWrap', + comment: [ + "- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.", + '- `editor.wordWrapColumn` refers to a different setting and should not be localized.', + ], + }, + 'Controls how lines should wrap.' + ), + }, + 'editor.wordWrapColumn': { + type: 'integer', + default: Pv.wordWrapColumn, + minimum: 1, + markdownDescription: De( + { + key: 'wordWrapColumn', + comment: [ + '- `editor.wordWrap` refers to a different setting and should not be localized.', + "- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized.", + ], + }, + 'Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.' + ), + }, + 'editor.wrappingIndent': { + type: 'string', + enum: ['none', 'same', 'indent', 'deepIndent'], + enumDescriptions: [ + De( + 'wrappingIndent.none', + 'No indentation. Wrapped lines begin at column 1.' + ), + De( + 'wrappingIndent.same', + 'Wrapped lines get the same indentation as the parent.' + ), + De( + 'wrappingIndent.indent', + 'Wrapped lines get +1 indentation toward the parent.' + ), + De( + 'wrappingIndent.deepIndent', + 'Wrapped lines get +2 indentation toward the parent.' + ), + ], + default: 'same', + description: De( + 'wrappingIndent', + 'Controls the indentation of wrapped lines.' + ), + }, + 'editor.mouseWheelScrollSensitivity': { + type: 'number', + default: Pv.viewInfo.scrollbar.mouseWheelScrollSensitivity, + markdownDescription: De( + 'mouseWheelScrollSensitivity', + 'A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.' + ), + }, + 'editor.fastScrollSensitivity': { + type: 'number', + default: Pv.viewInfo.scrollbar.fastScrollSensitivity, + markdownDescription: De( + 'fastScrollSensitivity', + 'Scrolling speed multiplier when pressing `Alt`.' + ), + }, + 'editor.multiCursorModifier': { + type: 'string', + enum: ['ctrlCmd', 'alt'], + markdownEnumDescriptions: [ + De( + 'multiCursorModifier.ctrlCmd', + 'Maps to `Control` on Windows and Linux and to `Command` on macOS.' + ), + De( + 'multiCursorModifier.alt', + 'Maps to `Alt` on Windows and Linux and to `Option` on macOS.' + ), + ], + default: 'alt', + markdownDescription: De( + { + key: 'multiCursorModifier', + comment: [ + '- `ctrlCmd` refers to a value the setting can take and should not be localized.', + '- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized.', + ], + }, + 'The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).' + ), + }, + 'editor.multiCursorMergeOverlapping': { + type: 'boolean', + default: Pv.multiCursorMergeOverlapping, + description: De( + 'multiCursorMergeOverlapping', + 'Merge multiple cursors when they are overlapping.' + ), + }, + 'editor.quickSuggestions': { + anyOf: [ + { type: 'boolean' }, + { + type: 'object', + properties: { + strings: { + type: 'boolean', + default: !1, + description: De( + 'quickSuggestions.strings', + 'Enable quick suggestions inside strings.' + ), + }, + comments: { + type: 'boolean', + default: !1, + description: De( + 'quickSuggestions.comments', + 'Enable quick suggestions inside comments.' + ), + }, + other: { + type: 'boolean', + default: !0, + description: De( + 'quickSuggestions.other', + 'Enable quick suggestions outside of strings and comments.' + ), + }, + }, + }, + ], + default: Pv.contribInfo.quickSuggestions, + description: De( + 'quickSuggestions', + 'Controls whether suggestions should automatically show up while typing.' + ), + }, + 'editor.quickSuggestionsDelay': { + type: 'integer', + default: Pv.contribInfo.quickSuggestionsDelay, + minimum: 0, + description: De( + 'quickSuggestionsDelay', + 'Controls the delay in milliseconds after which quick suggestions will show up.' + ), + }, + 'editor.parameterHints.enabled': { + type: 'boolean', + default: Pv.contribInfo.parameterHints.enabled, + description: De( + 'parameterHints.enabled', + 'Enables a pop-up that shows parameter documentation and type information as you type.' + ), + }, + 'editor.parameterHints.cycle': { + type: 'boolean', + default: Pv.contribInfo.parameterHints.cycle, + description: De( + 'parameterHints.cycle', + 'Controls whether the parameter hints menu cycles or closes when reaching the end of the list.' + ), + }, + 'editor.autoClosingBrackets': { + type: 'string', + enum: ['always', 'languageDefined', 'beforeWhitespace', 'never'], + enumDescriptions: [ + '', + De( + 'editor.autoClosingBrackets.languageDefined', + 'Use language configurations to determine when to autoclose brackets.' + ), + De( + 'editor.autoClosingBrackets.beforeWhitespace', + 'Autoclose brackets only when the cursor is to the left of whitespace.' + ), + '', + ], + default: Pv.autoClosingBrackets, + description: De( + 'autoClosingBrackets', + 'Controls whether the editor should automatically close brackets after the user adds an opening bracket.' + ), + }, + 'editor.autoClosingQuotes': { + type: 'string', + enum: ['always', 'languageDefined', 'beforeWhitespace', 'never'], + enumDescriptions: [ + '', + De( + 'editor.autoClosingQuotes.languageDefined', + 'Use language configurations to determine when to autoclose quotes.' + ), + De( + 'editor.autoClosingQuotes.beforeWhitespace', + 'Autoclose quotes only when the cursor is to the left of whitespace.' + ), + '', + ], + default: Pv.autoClosingQuotes, + description: De( + 'autoClosingQuotes', + 'Controls whether the editor should automatically close quotes after the user adds an opening quote.' + ), + }, + 'editor.autoClosingOvertype': { + type: 'string', + enum: ['always', 'auto', 'never'], + enumDescriptions: [ + De( + 'editor.autoClosingOvertype.always', + 'Always type over closing quotes or brackets.' + ), + De( + 'editor.autoClosingOvertype.auto', + 'Type over closing quotes or brackets only if they were automatically inserted.' + ), + De( + 'editor.autoClosingOvertype.never', + 'Never type over closing quotes or brackets.' + ), + ], + default: Pv.autoClosingOvertype, + description: De( + 'autoClosingOvertype', + 'Controls whether the editor should type over closing quotes or brackets.' + ), + }, + 'editor.autoSurround': { + type: 'string', + enum: ['languageDefined', 'brackets', 'quotes', 'never'], + enumDescriptions: [ + De( + 'editor.autoSurround.languageDefined', + 'Use language configurations to determine when to automatically surround selections.' + ), + De( + 'editor.autoSurround.brackets', + 'Surround with brackets but not quotes.' + ), + De( + 'editor.autoSurround.quotes', + 'Surround with quotes but not brackets.' + ), + '', + ], + default: Pv.autoSurround, + description: De( + 'autoSurround', + 'Controls whether the editor should automatically surround selections.' + ), + }, + 'editor.formatOnType': { + type: 'boolean', + default: Pv.contribInfo.formatOnType, + description: De( + 'formatOnType', + 'Controls whether the editor should automatically format the line after typing.' + ), + }, + 'editor.formatOnPaste': { + type: 'boolean', + default: Pv.contribInfo.formatOnPaste, + description: De( + 'formatOnPaste', + 'Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.' + ), + }, + 'editor.autoIndent': { + type: 'boolean', + default: Pv.autoIndent, + description: De( + 'autoIndent', + 'Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.' + ), + }, + 'editor.suggestOnTriggerCharacters': { + type: 'boolean', + default: Pv.contribInfo.suggestOnTriggerCharacters, + description: De( + 'suggestOnTriggerCharacters', + 'Controls whether suggestions should automatically show up when typing trigger characters.' + ), + }, + 'editor.acceptSuggestionOnEnter': { + type: 'string', + enum: ['on', 'smart', 'off'], + default: Pv.contribInfo.acceptSuggestionOnEnter, + markdownEnumDescriptions: [ + '', + De( + 'acceptSuggestionOnEnterSmart', + 'Only accept a suggestion with `Enter` when it makes a textual change.' + ), + '', + ], + markdownDescription: De( + 'acceptSuggestionOnEnter', + 'Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.' + ), + }, + 'editor.acceptSuggestionOnCommitCharacter': { + type: 'boolean', + default: Pv.contribInfo.acceptSuggestionOnCommitCharacter, + markdownDescription: De( + 'acceptSuggestionOnCommitCharacter', + 'Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.' + ), + }, + 'editor.snippetSuggestions': { + type: 'string', + enum: ['top', 'bottom', 'inline', 'none'], + enumDescriptions: [ + De( + 'snippetSuggestions.top', + 'Show snippet suggestions on top of other suggestions.' + ), + De( + 'snippetSuggestions.bottom', + 'Show snippet suggestions below other suggestions.' + ), + De( + 'snippetSuggestions.inline', + 'Show snippets suggestions with other suggestions.' + ), + De('snippetSuggestions.none', 'Do not show snippet suggestions.'), + ], + default: Pv.contribInfo.suggest.snippets, + description: De( + 'snippetSuggestions', + 'Controls whether snippets are shown with other suggestions and how they are sorted.' + ), + }, + 'editor.emptySelectionClipboard': { + type: 'boolean', + default: Pv.emptySelectionClipboard, + description: De( + 'emptySelectionClipboard', + 'Controls whether copying without a selection copies the current line.' + ), + }, + 'editor.copyWithSyntaxHighlighting': { + type: 'boolean', + default: Pv.copyWithSyntaxHighlighting, + description: De( + 'copyWithSyntaxHighlighting', + 'Controls whether syntax highlighting should be copied into the clipboard.' + ), + }, + 'editor.wordBasedSuggestions': { + type: 'boolean', + default: Pv.contribInfo.wordBasedSuggestions, + description: De( + 'wordBasedSuggestions', + 'Controls whether completions should be computed based on words in the document.' + ), + }, + 'editor.suggestSelection': { + type: 'string', + enum: ['first', 'recentlyUsed', 'recentlyUsedByPrefix'], + markdownEnumDescriptions: [ + De( + 'suggestSelection.first', + 'Always select the first suggestion.' + ), + De( + 'suggestSelection.recentlyUsed', + 'Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently.' + ), + De( + 'suggestSelection.recentlyUsedByPrefix', + 'Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.' + ), + ], + default: 'recentlyUsed', + description: De( + 'suggestSelection', + 'Controls how suggestions are pre-selected when showing the suggest list.' + ), + }, + 'editor.suggestFontSize': { + type: 'integer', + default: 0, + minimum: 0, + markdownDescription: De( + 'suggestFontSize', + 'Font size for the suggest widget. When set to `0`, the value of `#editor.fontSize#` is used.' + ), + }, + 'editor.suggestLineHeight': { + type: 'integer', + default: 0, + minimum: 0, + markdownDescription: De( + 'suggestLineHeight', + 'Line height for the suggest widget. When set to `0`, the value of `#editor.lineHeight#` is used.' + ), + }, + 'editor.tabCompletion': { + type: 'string', + default: 'off', + enum: ['on', 'off', 'onlySnippets'], + enumDescriptions: [ + De( + 'tabCompletion.on', + 'Tab complete will insert the best matching suggestion when pressing tab.' + ), + De('tabCompletion.off', 'Disable tab completions.'), + De( + 'tabCompletion.onlySnippets', + "Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled." + ), + ], + description: De('tabCompletion', 'Enables tab completions.'), + }, + 'editor.suggest.filterGraceful': { + type: 'boolean', + default: !0, + description: De( + 'suggest.filterGraceful', + 'Controls whether filtering and sorting suggestions accounts for small typos.' + ), + }, + 'editor.suggest.localityBonus': { + type: 'boolean', + default: !1, + description: De( + 'suggest.localityBonus', + 'Controls whether sorting favours words that appear close to the cursor.' + ), + }, + 'editor.suggest.shareSuggestSelections': { + type: 'boolean', + default: !1, + markdownDescription: De( + 'suggest.shareSuggestSelections', + 'Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).' + ), + }, + 'editor.suggest.snippetsPreventQuickSuggestions': { + type: 'boolean', + default: !0, + description: De( + 'suggest.snippetsPreventQuickSuggestions', + 'Control whether an active snippet prevents quick suggestions.' + ), + }, + 'editor.suggest.showIcons': { + type: 'boolean', + default: Pv.contribInfo.suggest.showIcons, + description: De( + 'suggest.showIcons', + 'Controls whether to show or hide icons in suggestions.' + ), + }, + 'editor.suggest.maxVisibleSuggestions': { + type: 'number', + default: Pv.contribInfo.suggest.maxVisibleSuggestions, + minimum: 1, + maximum: 15, + description: De( + 'suggest.maxVisibleSuggestions', + 'Controls how many suggestions IntelliSense will show before showing a scrollbar (maximum 15).' + ), + }, + 'editor.suggest.filteredTypes': { + type: 'object', + default: { keyword: !0, snippet: !0 }, + markdownDescription: De( + 'suggest.filtered', + 'Controls whether some suggestion types should be filtered from IntelliSense. A list of suggestion types can be found here: https://code.visualstudio.com/docs/editor/intellisense#_types-of-completions.' + ), + properties: { + method: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.method', + 'When set to `false` IntelliSense never shows `method` suggestions.' + ), + }, + function: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.function', + 'When set to `false` IntelliSense never shows `function` suggestions.' + ), + }, + constructor: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.constructor', + 'When set to `false` IntelliSense never shows `constructor` suggestions.' + ), + }, + field: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.field', + 'When set to `false` IntelliSense never shows `field` suggestions.' + ), + }, + variable: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.variable', + 'When set to `false` IntelliSense never shows `variable` suggestions.' + ), + }, + class: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.class', + 'When set to `false` IntelliSense never shows `class` suggestions.' + ), + }, + struct: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.struct', + 'When set to `false` IntelliSense never shows `struct` suggestions.' + ), + }, + interface: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.interface', + 'When set to `false` IntelliSense never shows `interface` suggestions.' + ), + }, + module: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.module', + 'When set to `false` IntelliSense never shows `module` suggestions.' + ), + }, + property: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.property', + 'When set to `false` IntelliSense never shows `property` suggestions.' + ), + }, + event: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.event', + 'When set to `false` IntelliSense never shows `event` suggestions.' + ), + }, + operator: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.operator', + 'When set to `false` IntelliSense never shows `operator` suggestions.' + ), + }, + unit: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.unit', + 'When set to `false` IntelliSense never shows `unit` suggestions.' + ), + }, + value: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.value', + 'When set to `false` IntelliSense never shows `value` suggestions.' + ), + }, + constant: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.constant', + 'When set to `false` IntelliSense never shows `constant` suggestions.' + ), + }, + enum: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.enum', + 'When set to `false` IntelliSense never shows `enum` suggestions.' + ), + }, + enumMember: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.enumMember', + 'When set to `false` IntelliSense never shows `enumMember` suggestions.' + ), + }, + keyword: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.keyword', + 'When set to `false` IntelliSense never shows `keyword` suggestions.' + ), + }, + text: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.text', + 'When set to `false` IntelliSense never shows `text` suggestions.' + ), + }, + color: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.color', + 'When set to `false` IntelliSense never shows `color` suggestions.' + ), + }, + file: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.file', + 'When set to `false` IntelliSense never shows `file` suggestions.' + ), + }, + reference: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.reference', + 'When set to `false` IntelliSense never shows `reference` suggestions.' + ), + }, + customcolor: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.customcolor', + 'When set to `false` IntelliSense never shows `customcolor` suggestions.' + ), + }, + folder: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.folder', + 'When set to `false` IntelliSense never shows `folder` suggestions.' + ), + }, + typeParameter: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.typeParameter', + 'When set to `false` IntelliSense never shows `typeParameter` suggestions.' + ), + }, + snippet: { + type: 'boolean', + default: !0, + markdownDescription: De( + 'suggest.filtered.snippet', + 'When set to `false` IntelliSense never shows `snippet` suggestions.' + ), + }, + }, + }, + 'editor.gotoLocation.multiple': { + description: De( + 'editor.gotoLocation.multiple', + "Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist." + ), + type: 'string', + enum: ['peek', 'gotoAndPeek', 'goto'], + default: Pv.contribInfo.gotoLocation.multiple, + enumDescriptions: [ + De( + 'editor.gotoLocation.multiple.peek', + 'Show peek view of the results (default)' + ), + De( + 'editor.gotoLocation.multiple.gotoAndPeek', + 'Go to the primary result and show a peek view' + ), + De( + 'editor.gotoLocation.multiple.goto', + 'Go to the primary result and enable peek-less navigation to others' + ), + ], + }, + 'editor.selectionHighlight': { + type: 'boolean', + default: Pv.contribInfo.selectionHighlight, + description: De( + 'selectionHighlight', + 'Controls whether the editor should highlight matches similar to the selection.' + ), + }, + 'editor.occurrencesHighlight': { + type: 'boolean', + default: Pv.contribInfo.occurrencesHighlight, + description: De( + 'occurrencesHighlight', + 'Controls whether the editor should highlight semantic symbol occurrences.' + ), + }, + 'editor.overviewRulerLanes': { + type: 'integer', + default: 3, + description: De( + 'overviewRulerLanes', + 'Controls the number of decorations that can show up at the same position in the overview ruler.' + ), + }, + 'editor.overviewRulerBorder': { + type: 'boolean', + default: Pv.viewInfo.overviewRulerBorder, + description: De( + 'overviewRulerBorder', + 'Controls whether a border should be drawn around the overview ruler.' + ), + }, + 'editor.cursorBlinking': { + type: 'string', + enum: ['blink', 'smooth', 'phase', 'expand', 'solid'], + default: (function (e) { + if (1 === e) return 'blink'; + if (4 === e) return 'expand'; + if (3 === e) return 'phase'; + if (2 === e) return 'smooth'; + if (5 === e) return 'solid'; + throw new Error('blinkingStyleToString: Unknown blinkingStyle'); + })(Pv.viewInfo.cursorBlinking), + description: De( + 'cursorBlinking', + 'Control the cursor animation style.' + ), + }, + 'editor.mouseWheelZoom': { + type: 'boolean', + default: Pv.viewInfo.mouseWheelZoom, + markdownDescription: De( + 'mouseWheelZoom', + 'Zoom the font of the editor when using mouse wheel and holding `Ctrl`.' + ), + }, + 'editor.cursorSmoothCaretAnimation': { + type: 'boolean', + default: Pv.viewInfo.cursorSmoothCaretAnimation, + description: De( + 'cursorSmoothCaretAnimation', + 'Controls whether the smooth caret animation should be enabled.' + ), + }, + 'editor.cursorStyle': { + type: 'string', + enum: [ + 'block', + 'block-outline', + 'line', + 'line-thin', + 'underline', + 'underline-thin', + ], + default: (function (e) { + if (e === ii.Line) return 'line'; + if (e === ii.Block) return 'block'; + if (e === ii.Underline) return 'underline'; + if (e === ii.LineThin) return 'line-thin'; + if (e === ii.BlockOutline) return 'block-outline'; + if (e === ii.UnderlineThin) return 'underline-thin'; + throw new Error('cursorStyleToString: Unknown cursorStyle'); + })(Pv.viewInfo.cursorStyle), + description: De('cursorStyle', 'Controls the cursor style.'), + }, + 'editor.cursorWidth': { + type: 'integer', + default: Pv.viewInfo.cursorWidth, + markdownDescription: De( + 'cursorWidth', + 'Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.' + ), + }, + 'editor.fontLigatures': { + type: 'boolean', + default: Pv.viewInfo.fontLigatures, + description: De( + 'fontLigatures', + 'Enables/Disables font ligatures.' + ), + }, + 'editor.hideCursorInOverviewRuler': { + type: 'boolean', + default: Pv.viewInfo.hideCursorInOverviewRuler, + description: De( + 'hideCursorInOverviewRuler', + 'Controls whether the cursor should be hidden in the overview ruler.' + ), + }, + 'editor.renderWhitespace': { + type: 'string', + enum: ['none', 'boundary', 'selection', 'all'], + enumDescriptions: [ + '', + De( + 'renderWhitespace.boundary', + 'Render whitespace characters except for single spaces between words.' + ), + De( + 'renderWhitespace.selection', + 'Render whitespace characters only on selected text.' + ), + '', + ], + default: Pv.viewInfo.renderWhitespace, + description: De( + 'renderWhitespace', + 'Controls how the editor should render whitespace characters.' + ), + }, + 'editor.renderControlCharacters': { + type: 'boolean', + default: Pv.viewInfo.renderControlCharacters, + description: De( + 'renderControlCharacters', + 'Controls whether the editor should render control characters.' + ), + }, + 'editor.renderIndentGuides': { + type: 'boolean', + default: Pv.viewInfo.renderIndentGuides, + description: De( + 'renderIndentGuides', + 'Controls whether the editor should render indent guides.' + ), + }, + 'editor.highlightActiveIndentGuide': { + type: 'boolean', + default: Pv.viewInfo.highlightActiveIndentGuide, + description: De( + 'highlightActiveIndentGuide', + 'Controls whether the editor should highlight the active indent guide.' + ), + }, + 'editor.renderLineHighlight': { + type: 'string', + enum: ['none', 'gutter', 'line', 'all'], + enumDescriptions: [ + '', + '', + '', + De( + 'renderLineHighlight.all', + 'Highlights both the gutter and the current line.' + ), + ], + default: Pv.viewInfo.renderLineHighlight, + description: De( + 'renderLineHighlight', + 'Controls how the editor should render the current line highlight.' + ), + }, + 'editor.codeLens': { + type: 'boolean', + default: Pv.contribInfo.codeLens, + description: De( + 'codeLens', + 'Controls whether the editor shows CodeLens.' + ), + }, + 'editor.folding': { + type: 'boolean', + default: Pv.contribInfo.folding, + description: De( + 'folding', + 'Controls whether the editor has code folding enabled.' + ), + }, + 'editor.foldingStrategy': { + type: 'string', + enum: ['auto', 'indentation'], + default: Pv.contribInfo.foldingStrategy, + markdownDescription: De( + 'foldingStrategy', + 'Controls the strategy for computing folding ranges. `auto` uses a language specific folding strategy, if available. `indentation` uses the indentation based folding strategy.' + ), + }, + 'editor.showFoldingControls': { + type: 'string', + enum: ['always', 'mouseover'], + default: Pv.contribInfo.showFoldingControls, + description: De( + 'showFoldingControls', + 'Controls whether the fold controls on the gutter are automatically hidden.' + ), + }, + 'editor.matchBrackets': { + type: 'boolean', + default: Pv.contribInfo.matchBrackets, + description: De( + 'matchBrackets', + 'Highlight matching brackets when one of them is selected.' + ), + }, + 'editor.glyphMargin': { + type: 'boolean', + default: Pv.viewInfo.glyphMargin, + description: De( + 'glyphMargin', + 'Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.' + ), + }, + 'editor.useTabStops': { + type: 'boolean', + default: Pv.useTabStops, + description: De( + 'useTabStops', + 'Inserting and deleting whitespace follows tab stops.' + ), + }, + 'editor.trimAutoWhitespace': { + type: 'boolean', + default: Fv.trimAutoWhitespace, + description: De( + 'trimAutoWhitespace', + 'Remove trailing auto inserted whitespace.' + ), + }, + 'editor.stablePeek': { + type: 'boolean', + default: !1, + markdownDescription: De( + 'stablePeek', + 'Keep peek editors open even when double clicking their content or when hitting `Escape`.' + ), + }, + 'editor.dragAndDrop': { + type: 'boolean', + default: Pv.dragAndDrop, + description: De( + 'dragAndDrop', + 'Controls whether the editor should allow moving selections via drag and drop.' + ), + }, + 'editor.accessibilitySupport': { + type: 'string', + enum: ['auto', 'on', 'off'], + enumDescriptions: [ + De( + 'accessibilitySupport.auto', + 'The editor will use platform APIs to detect when a Screen Reader is attached.' + ), + De( + 'accessibilitySupport.on', + 'The editor will be permanently optimized for usage with a Screen Reader.' + ), + De( + 'accessibilitySupport.off', + 'The editor will never be optimized for usage with a Screen Reader.' + ), + ], + default: Pv.accessibilitySupport, + description: De( + 'accessibilitySupport', + 'Controls whether the editor should run in a mode where it is optimized for screen readers.' + ), + }, + 'editor.showUnused': { + type: 'boolean', + default: Pv.showUnused, + description: De( + 'showUnused', + 'Controls fading out of unused code.' + ), + }, + 'editor.links': { + type: 'boolean', + default: Pv.contribInfo.links, + description: De( + 'links', + 'Controls whether the editor should detect links and make them clickable.' + ), + }, + 'editor.colorDecorators': { + type: 'boolean', + default: Pv.contribInfo.colorDecorators, + description: De( + 'colorDecorators', + 'Controls whether the editor should render the inline color decorators and color picker.' + ), + }, + 'editor.lightbulb.enabled': { + type: 'boolean', + default: Pv.contribInfo.lightbulbEnabled, + description: De( + 'codeActions', + 'Enables the code action lightbulb in the editor.' + ), + }, + 'editor.maxTokenizationLineLength': { + type: 'integer', + default: 2e4, + description: De( + 'maxTokenizationLineLength', + 'Lines above this length will not be tokenized for performance reasons' + ), + }, + 'editor.codeActionsOnSave': { + type: 'object', + properties: { + 'source.organizeImports': { + type: 'boolean', + description: De( + 'codeActionsOnSave.organizeImports', + 'Controls whether organize imports action should be run on file save.' + ), + }, + 'source.fixAll': { + type: 'boolean', + description: De( + 'codeActionsOnSave.fixAll', + 'Controls whether auto fix action should be run on file save.' + ), + }, + }, + additionalProperties: { type: 'boolean' }, + default: Pv.contribInfo.codeActionsOnSave, + description: De( + 'codeActionsOnSave', + 'Code action kinds to be run on save.' + ), + }, + 'editor.codeActionsOnSaveTimeout': { + type: 'number', + default: Pv.contribInfo.codeActionsOnSaveTimeout, + description: De( + 'codeActionsOnSaveTimeout', + 'Timeout in milliseconds after which the code actions that are run on save are cancelled.' + ), + }, + 'editor.selectionClipboard': { + type: 'boolean', + default: Pv.contribInfo.selectionClipboard, + description: De( + 'selectionClipboard', + 'Controls whether the Linux primary clipboard should be supported.' + ), + included: tt.c, + }, + 'diffEditor.renderSideBySide': { + type: 'boolean', + default: !0, + description: De( + 'sideBySide', + 'Controls whether the diff editor shows the diff side by side or inline.' + ), + }, + 'diffEditor.ignoreTrimWhitespace': { + type: 'boolean', + default: !0, + description: De( + 'ignoreTrimWhitespace', + 'Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.' + ), + }, + 'editor.largeFileOptimizations': { + type: 'boolean', + default: Fv.largeFileOptimizations, + description: De( + 'largeFileOptimizations', + 'Special handling for large files to disable certain memory intensive features.' + ), + }, + 'diffEditor.renderIndicators': { + type: 'boolean', + default: !0, + description: De( + 'renderIndicators', + 'Controls whether the diff editor shows +/- indicators for added/removed changes.' + ), + }, + }, + }, + Vv = null; + function zv() { + return ( + null === Vv && + ((Vv = Object.create(null)), + Object.keys(Hv.properties).forEach(function (e) { + Vv[e] = !0; + })), + Vv + ); + } + Wv.registerConfiguration(Hv); + var Uv = (function () { + function e() {} + return ( + (e.insert = function (e, t) { + return { + range: new Fr(e.lineNumber, e.column, e.lineNumber, e.column), + text: t, + forceMoveMarkers: !0, + }; + }), + (e.delete = function (e) { + return { range: e, text: null }; + }), + (e.replace = function (e, t) { + return { range: e, text: t }; + }), + (e.replaceMove = function (e, t) { + return { range: e, text: t, forceMoveMarkers: !0 }; + }), + e + ); + })(), + qv = wt('configurationService'); + function Kv(e, t) { + var n = Object.create(null); + for (var r in e) Gv(n, r, e[r], t); + return n; + } + function Gv(e, t, n, r) { + for (var i = t.split('.'), o = i.pop(), s = e, a = 0; a < i.length; a++) { + var u = i[a], + l = s[u]; + switch (typeof l) { + case 'undefined': + l = s[u] = Object.create(null); + break; + case 'object': + break; + default: + return void r( + 'Ignoring ' + + t + + ' as ' + + i.slice(0, a + 1).join('.') + + ' is ' + + JSON.stringify(l) + ); + } + s = l; + } + 'object' == typeof s + ? (s[o] = n) + : r( + 'Ignoring ' + t + ' as ' + i.join('.') + ' is ' + JSON.stringify(s) + ); + } + function $v(e, t) { + !(function e(t, n) { + var r = n.shift(); + if (0 === n.length) return void delete t[r]; + if (-1 !== Object.keys(t).indexOf(r)) { + var i = t[r]; + 'object' != typeof i || + Array.isArray(i) || + (e(i, n), 0 === Object.keys(i).length && delete t[r]); + } + })(e, t.split('.')); + } + function Zv(e) { + return e.substring(1, e.length - 1); + } + var Xv = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Jv = (function () { + function e(e, t, n) { + void 0 === e && (e = {}), + void 0 === t && (t = []), + void 0 === n && (n = []), + (this._contents = e), + (this._keys = t), + (this._overrides = n), + (this.isFrozen = !1); + } + return ( + Object.defineProperty(e.prototype, 'contents', { + get: function () { + return this.checkAndFreeze(this._contents); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'overrides', { + get: function () { + return this.checkAndFreeze(this._overrides); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'keys', { + get: function () { + return this.checkAndFreeze(this._keys); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.isEmpty = function () { + return ( + 0 === this._keys.length && + 0 === Object.keys(this._contents).length && + 0 === this._overrides.length + ); + }), + (e.prototype.getValue = function (e) { + return e + ? ((t = this.contents), + void 0 === + (r = (function (e, t) { + for (var n = e, r = 0, i = t; r < i.length; r++) { + var o = i[r]; + if ('object' != typeof n || null === n) return; + n = n[o]; + } + return n; + })(t, e.split('.'))) + ? n + : r) + : this.contents; + var t, n, r; + }), + (e.prototype.override = function (t) { + var n = this.getContentsForOverrideIdentifer(t); + if (!n || 'object' != typeof n || !Object.keys(n).length) + return this; + for ( + var r = {}, + i = 0, + o = Vr(Object.keys(this.contents).concat(Object.keys(n))); + i < o.length; + i++ + ) { + var s = o[i], + a = this.contents[s], + u = n[s]; + u && + ('object' == typeof a && 'object' == typeof u + ? ((a = $r(a)), this.mergeContents(a, u)) + : (a = u)), + (r[s] = a); + } + return new e(r); + }), + (e.prototype.merge = function () { + for (var t = [], n = 0; n < arguments.length; n++) + t[n] = arguments[n]; + for ( + var r = $r(this.contents), + i = $r(this.overrides), + o = this.keys.slice(), + s = 0, + a = t; + s < a.length; + s++ + ) { + var u = a[s]; + this.mergeContents(r, u.contents); + for ( + var l = function (e) { + var t = i.filter(function (t) { + return Wr(t.identifiers, e.identifiers); + })[0]; + t ? c.mergeContents(t.contents, e.contents) : i.push($r(e)); + }, + c = this, + d = 0, + h = u.overrides; + d < h.length; + d++ + ) { + var f = h[d]; + l(f); + } + for (var p = 0, g = u.keys; p < g.length; p++) { + var m = g[p]; + -1 === o.indexOf(m) && o.push(m); + } + } + return new e(r, o, i); + }), + (e.prototype.freeze = function () { + return (this.isFrozen = !0), this; + }), + (e.prototype.mergeContents = function (e, t) { + for (var n = 0, r = Object.keys(t); n < r.length; n++) { + var i = r[n]; + i in e && Ne(e[i]) && Ne(t[i]) + ? this.mergeContents(e[i], t[i]) + : (e[i] = $r(t[i])); + } + }), + (e.prototype.checkAndFreeze = function (e) { + return this.isFrozen && !Object.isFrozen(e) + ? (function (e) { + if (!e || 'object' != typeof e) return e; + for (var t = [e]; t.length > 0; ) { + var n = t.shift(); + for (var r in (Object.freeze(n), n)) + if (Zr.call(n, r)) { + var i = n[r]; + 'object' != typeof i || Object.isFrozen(i) || t.push(i); + } + } + return e; + })(e) + : e; + }), + (e.prototype.getContentsForOverrideIdentifer = function (e) { + for (var t = 0, n = this.overrides; t < n.length; t++) { + var r = n[t]; + if (-1 !== r.identifiers.indexOf(e)) return r.contents; + } + return null; + }), + (e.prototype.toJSON = function () { + return { + contents: this.contents, + overrides: this.overrides, + keys: this.keys, + }; + }), + (e.prototype.setValue = function (e, t) { + this.addKey(e), + Gv(this.contents, e, t, function (e) { + throw new Error(e); + }); + }), + (e.prototype.removeValue = function (e) { + this.removeKey(e) && $v(this.contents, e); + }), + (e.prototype.addKey = function (e) { + for (var t = this.keys.length, n = 0; n < t; n++) + 0 === e.indexOf(this.keys[n]) && (t = n); + this.keys.splice(t, 1, e); + }), + (e.prototype.removeKey = function (e) { + var t = this.keys.indexOf(e); + return -1 !== t && (this.keys.splice(t, 1), !0); + }), + e + ); + })(), + Qv = (function (e) { + function t() { + for ( + var t, + n = (function () { + var e = Object.create(null), + t = Lr.as(_v.Configuration).getConfigurationProperties(); + for (var n in t) { + Gv(e, n, t[n].default, function (e) { + return console.error('Conflict in default settings: ' + e); + }); + } + return e; + })(), + r = + ((t = Lr.as(_v.Configuration).getConfigurationProperties()), + Object.keys(t)), + i = [], + o = 0, + s = Object.keys(n); + o < s.length; + o++ + ) { + var a = s[o]; + Tv.test(a) && + i.push({ + identifiers: [Zv(a).trim()], + contents: Kv(n[a], function (e) { + return console.error( + 'Conflict in default settings file: ' + e + ); + }), + }); + } + return e.call(this, n, r, i) || this; + } + return Xv(t, e), t; + })(Jv), + eb = (function () { + function e(e, t, n, r, i, o, s, a) { + void 0 === n && (n = new Jv()), + void 0 === r && (r = new Jv()), + void 0 === i && (i = new er()), + void 0 === o && (o = new Jv()), + void 0 === s && (s = new er()), + void 0 === a && (a = !0), + (this._defaultConfiguration = e), + (this._localUserConfiguration = t), + (this._remoteUserConfiguration = n), + (this._workspaceConfiguration = r), + (this._folderConfigurations = i), + (this._memoryConfiguration = o), + (this._memoryConfigurationByResource = s), + (this._freeze = a), + (this._workspaceConsolidatedConfiguration = null), + (this._foldersConsolidatedConfigurations = new er()); + } + return ( + (e.prototype.getValue = function (e, t, n) { + return this.getConsolidateConfigurationModel(t, n).getValue(e); + }), + (e.prototype.updateValue = function (e, t, n) { + var r; + void 0 === n && (n = {}), + n.resource + ? (r = this._memoryConfigurationByResource.get(n.resource)) || + ((r = new Jv()), + this._memoryConfigurationByResource.set(n.resource, r)) + : (r = this._memoryConfiguration), + void 0 === t ? r.removeValue(e) : r.setValue(e, t), + n.resource || (this._workspaceConsolidatedConfiguration = null); + }), + (e.prototype.inspect = function (e, t, n) { + var r = this.getConsolidateConfigurationModel(t, n), + i = this.getFolderConfigurationModelForResource(t.resource, n), + o = + (t.resource && + this._memoryConfigurationByResource.get(t.resource)) || + this._memoryConfiguration; + return { + default: t.overrideIdentifier + ? this._defaultConfiguration + .freeze() + .override(t.overrideIdentifier) + .getValue(e) + : this._defaultConfiguration.freeze().getValue(e), + user: t.overrideIdentifier + ? this.userConfiguration + .freeze() + .override(t.overrideIdentifier) + .getValue(e) + : this.userConfiguration.freeze().getValue(e), + userLocal: t.overrideIdentifier + ? this.localUserConfiguration + .freeze() + .override(t.overrideIdentifier) + .getValue(e) + : this.localUserConfiguration.freeze().getValue(e), + userRemote: t.overrideIdentifier + ? this.remoteUserConfiguration + .freeze() + .override(t.overrideIdentifier) + .getValue(e) + : this.remoteUserConfiguration.freeze().getValue(e), + workspace: n + ? t.overrideIdentifier + ? this._workspaceConfiguration + .freeze() + .override(t.overrideIdentifier) + .getValue(e) + : this._workspaceConfiguration.freeze().getValue(e) + : void 0, + workspaceFolder: i + ? t.overrideIdentifier + ? i.freeze().override(t.overrideIdentifier).getValue(e) + : i.freeze().getValue(e) + : void 0, + memory: t.overrideIdentifier + ? o.override(t.overrideIdentifier).getValue(e) + : o.getValue(e), + value: r.getValue(e), + }; + }), + Object.defineProperty(e.prototype, 'userConfiguration', { + get: function () { + return ( + this._userConfiguration || + ((this._userConfiguration = this._remoteUserConfiguration.isEmpty() + ? this._localUserConfiguration + : this._localUserConfiguration.merge( + this._remoteUserConfiguration + )), + this._freeze && this._userConfiguration.freeze()), + this._userConfiguration + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'localUserConfiguration', { + get: function () { + return this._localUserConfiguration; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'remoteUserConfiguration', { + get: function () { + return this._remoteUserConfiguration; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.getConsolidateConfigurationModel = function (e, t) { + var n = this.getConsolidatedConfigurationModelForResource(e, t); + return e.overrideIdentifier ? n.override(e.overrideIdentifier) : n; + }), + (e.prototype.getConsolidatedConfigurationModelForResource = function ( + e, + t + ) { + var n = e.resource, + r = this.getWorkspaceConsolidatedConfiguration(); + if (t && n) { + var i = t.getFolder(n); + i && (r = this.getFolderConsolidatedConfiguration(i.uri) || r); + var o = this._memoryConfigurationByResource.get(n); + o && (r = r.merge(o)); + } + return r; + }), + (e.prototype.getWorkspaceConsolidatedConfiguration = function () { + return ( + this._workspaceConsolidatedConfiguration || + ((this._workspaceConsolidatedConfiguration = this._defaultConfiguration.merge( + this.userConfiguration, + this._workspaceConfiguration, + this._memoryConfiguration + )), + this._freeze && + (this._workspaceConfiguration = this._workspaceConfiguration.freeze())), + this._workspaceConsolidatedConfiguration + ); + }), + (e.prototype.getFolderConsolidatedConfiguration = function (e) { + var t = this._foldersConsolidatedConfigurations.get(e); + if (!t) { + var n = this.getWorkspaceConsolidatedConfiguration(), + r = this._folderConfigurations.get(e); + r + ? ((t = n.merge(r)), + this._freeze && (t = t.freeze()), + this._foldersConsolidatedConfigurations.set(e, t)) + : (t = n); + } + return t; + }), + (e.prototype.getFolderConfigurationModelForResource = function ( + e, + t + ) { + if (t && e) { + var n = t.getFolder(e); + if (n) return ze(this._folderConfigurations.get(n.uri)); + } + return null; + }), + e + ); + })(), + tb = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + nb = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + return ( + (o._contextKeyService = t), + (o._commandService = n), + (o._telemetryService = r), + (o._notificationService = i), + (o._onDidUpdateKeybindings = o._register(new Gt())), + (o._currentChord = null), + (o._currentChordChecker = new Ns()), + (o._currentChordStatusMessage = null), + o + ); + } + return ( + tb(t, e), + Object.defineProperty(t.prototype, 'onDidUpdateKeybindings', { + get: function () { + return this._onDidUpdateKeybindings + ? this._onDidUpdateKeybindings.event + : Wt.None; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.lookupKeybinding = function (e) { + var t = this._getResolver().lookupPrimaryKeybinding(e); + if (t) return t.resolvedKeybinding; + }), + (t.prototype.softDispatch = function (e, t) { + var n = this.resolveKeyboardEvent(e); + if (n.isChord()) + return ( + console.warn('Unexpected keyboard event mapped to a chord'), + null + ); + var r = n.getDispatchParts()[0]; + if (null === r) return null; + var i = this._contextKeyService.getContext(t), + o = this._currentChord ? this._currentChord.keypress : null; + return this._getResolver().resolve(i, o, r); + }), + (t.prototype._enterChordMode = function (e, t) { + var n = this; + (this._currentChord = { keypress: e, label: t }), + (this._currentChordStatusMessage = this._notificationService.status( + De( + 'first.chord', + '({0}) was pressed. Waiting for second key of chord...', + t + ) + )); + var r = Date.now(); + this._currentChordChecker.cancelAndSet(function () { + n._documentHasFocus() + ? Date.now() - r > 5e3 && n._leaveChordMode() + : n._leaveChordMode(); + }, 500); + }), + (t.prototype._leaveChordMode = function () { + this._currentChordStatusMessage && + (this._currentChordStatusMessage.dispose(), + (this._currentChordStatusMessage = null)), + this._currentChordChecker.cancel(), + (this._currentChord = null); + }), + (t.prototype._dispatch = function (e, t) { + return this._doDispatch(this.resolveKeyboardEvent(e), t); + }), + (t.prototype._doDispatch = function (e, t) { + var n = this, + r = !1; + if (e.isChord()) + return ( + console.warn('Unexpected keyboard event mapped to a chord'), !1 + ); + var i = e.getDispatchParts()[0]; + if (null === i) return r; + var o = this._contextKeyService.getContext(t), + s = this._currentChord ? this._currentChord.keypress : null, + a = e.getLabel(), + u = this._getResolver().resolve(o, s, i); + return u && u.enterChord + ? ((r = !0), this._enterChordMode(i, a), r) + : (this._currentChord && + ((u && u.commandId) || + (this._notificationService.status( + De( + 'missing.chord', + 'The key combination ({0}, {1}) is not a command.', + this._currentChord.label, + a + ), + { hideAfter: 1e4 } + ), + (r = !0))), + this._leaveChordMode(), + u && + u.commandId && + (u.bubble || (r = !0), + void 0 === u.commandArgs + ? this._commandService + .executeCommand(u.commandId) + .then(void 0, function (e) { + return n._notificationService.warn(e); + }) + : this._commandService + .executeCommand(u.commandId, u.commandArgs) + .then(void 0, function (e) { + return n._notificationService.warn(e); + }), + this._telemetryService.publicLog2('workbenchActionExecuted', { + id: u.commandId, + from: 'keybinding', + })), + r); + }), + (t.prototype.mightProducePrintableCharacter = function (e) { + return ( + !e.ctrlKey && + !e.metaKey && + ((e.keyCode >= 31 && e.keyCode <= 56) || + (e.keyCode >= 21 && e.keyCode <= 30)) + ); + }), + t + ); + })(Rt), + rb = (function () { + function e(t, n) { + (this._defaultKeybindings = t), + (this._defaultBoundCommands = new Map()); + for (var r = 0, i = t.length; r < i; r++) { + var o = t[r].command; + o && this._defaultBoundCommands.set(o, !0); + } + (this._map = new Map()), + (this._lookupMap = new Map()), + (this._keybindings = e.combine(t, n)); + for (r = 0, i = this._keybindings.length; r < i; r++) { + var s = this._keybindings[r]; + 0 !== s.keypressParts.length && + this._addKeyPress(s.keypressParts[0], s); + } + } + return ( + (e._isTargetedForRemoval = function (e, t, n, r, i) { + if (e.command !== r) return !1; + if (t && e.keypressParts[0] !== t) return !1; + if (n && e.keypressParts[1] !== n) return !1; + if (i) { + if (!e.when) return !1; + if (!i.equals(e.when)) return !1; + } + return !0; + }), + (e.combine = function (e, t) { + e = e.slice(0); + for (var n = [], r = 0, i = t; r < i.length; r++) { + var o = i[r]; + if ( + o.command && + 0 !== o.command.length && + '-' === o.command.charAt(0) + ) + for ( + var s = o.command.substr(1), + a = o.keypressParts[0], + u = o.keypressParts[1], + l = o.when, + c = e.length - 1; + c >= 0; + c-- + ) + this._isTargetedForRemoval(e[c], a, u, s, l) && + e.splice(c, 1); + else n.push(o); + } + return e.concat(n); + }), + (e.prototype._addKeyPress = function (t, n) { + var r = this._map.get(t); + if (void 0 === r) + return this._map.set(t, [n]), void this._addToLookupMap(n); + for (var i = r.length - 1; i >= 0; i--) { + var o = r[i]; + if (o.command !== n.command) { + var s = o.keypressParts.length > 1, + a = n.keypressParts.length > 1; + (s && a && o.keypressParts[1] !== n.keypressParts[1]) || + (e.whenIsEntirelyIncluded(o.when, n.when) && + this._removeFromLookupMap(o)); + } + } + r.push(n), this._addToLookupMap(n); + }), + (e.prototype._addToLookupMap = function (e) { + if (e.command) { + var t = this._lookupMap.get(e.command); + void 0 === t + ? ((t = [e]), this._lookupMap.set(e.command, t)) + : t.push(e); + } + }), + (e.prototype._removeFromLookupMap = function (e) { + if (e.command) { + var t = this._lookupMap.get(e.command); + if (void 0 !== t) + for (var n = 0, r = t.length; n < r; n++) + if (t[n] === e) return void t.splice(n, 1); + } + }), + (e.whenIsEntirelyIncluded = function (e, t) { + return !t || (!!e && this._implies(e, t)); + }), + (e._implies = function (e, t) { + for ( + var n = function (e) { + return e instanceof zn ? e.expr : [e]; + }, + r = n(e.negate()).concat(n(t)), + i = 0; + i < r.length; + i++ + ) + for (var o = r[i].negate(), s = i + 1; s < r.length; s++) { + var a = r[s]; + if (o.equals(a)) return !0; + } + return !1; + }), + (e.prototype.lookupPrimaryKeybinding = function (e) { + var t = this._lookupMap.get(e); + return void 0 === t || 0 === t.length ? null : t[t.length - 1]; + }), + (e.prototype.resolve = function (e, t, n) { + var r = null; + if (null !== t) { + if (void 0 === (a = this._map.get(t))) return null; + r = []; + for (var i = 0, o = a.length; i < o; i++) { + var s = a[i]; + s.keypressParts[1] === n && r.push(s); + } + } else { + var a; + if (void 0 === (a = this._map.get(n))) return null; + r = a; + } + var u = this._findCommand(e, r); + return u + ? null === t && + u.keypressParts.length > 1 && + null !== u.keypressParts[1] + ? { + enterChord: !0, + commandId: null, + commandArgs: null, + bubble: !1, + } + : { + enterChord: !1, + commandId: u.command, + commandArgs: u.commandArgs, + bubble: u.bubble, + } + : null; + }), + (e.prototype._findCommand = function (t, n) { + for (var r = n.length - 1; r >= 0; r--) { + var i = n[r]; + if (e.contextMatchesRules(t, i.when)) return i; + } + return null; + }), + (e.contextMatchesRules = function (e, t) { + return !t || t.evaluate(e); + }), + e + ); + })(), + ib = function (e, t, n, r, i) { + (this.resolvedKeybinding = e), + (this.keypressParts = e + ? (function (e) { + for (var t = [], n = 0, r = e.length; n < r; n++) { + var i = e[n]; + if (!i) return t; + t.push(i); + } + return t; + })(e.getDispatchParts()) + : []), + (this.bubble = !!t && 94 === t.charCodeAt(0)), + (this.command = this.bubble ? t.substr(1) : t), + (this.commandArgs = n), + (this.when = r), + (this.isDefault = i); + }; + var ob = (function () { + function e(e, t, n) { + void 0 === n && (n = t), + (this.modifierLabels = [null]), + (this.modifierLabels[2] = e), + (this.modifierLabels[1] = t), + (this.modifierLabels[3] = n); + } + return ( + (e.prototype.toLabel = function (e, t, n) { + if (0 === t.length) return null; + for (var r = [], i = 0, o = t.length; i < o; i++) { + var s = t[i], + a = n(s); + if (null === a) return null; + r[i] = ub(s, a, this.modifierLabels[e]); + } + return r.join(' '); + }), + e + ); + })(), + sb = new ob( + { + ctrlKey: '⌃', + shiftKey: '⇧', + altKey: '⌥', + metaKey: '⌘', + separator: '', + }, + { + ctrlKey: De( + { + key: 'ctrlKey', + comment: [ + 'This is the short form for the Control key on the keyboard', + ], + }, + 'Ctrl' + ), + shiftKey: De( + { + key: 'shiftKey', + comment: [ + 'This is the short form for the Shift key on the keyboard', + ], + }, + 'Shift' + ), + altKey: De( + { + key: 'altKey', + comment: [ + 'This is the short form for the Alt key on the keyboard', + ], + }, + 'Alt' + ), + metaKey: De( + { + key: 'windowsKey', + comment: [ + 'This is the short form for the Windows key on the keyboard', + ], + }, + 'Windows' + ), + separator: '+', + }, + { + ctrlKey: De( + { + key: 'ctrlKey', + comment: [ + 'This is the short form for the Control key on the keyboard', + ], + }, + 'Ctrl' + ), + shiftKey: De( + { + key: 'shiftKey', + comment: [ + 'This is the short form for the Shift key on the keyboard', + ], + }, + 'Shift' + ), + altKey: De( + { + key: 'altKey', + comment: [ + 'This is the short form for the Alt key on the keyboard', + ], + }, + 'Alt' + ), + metaKey: De( + { + key: 'superKey', + comment: [ + 'This is the short form for the Super key on the keyboard', + ], + }, + 'Super' + ), + separator: '+', + } + ), + ab = new ob( + { + ctrlKey: De( + { + key: 'ctrlKey.long', + comment: [ + 'This is the long form for the Control key on the keyboard', + ], + }, + 'Control' + ), + shiftKey: De( + { + key: 'shiftKey.long', + comment: [ + 'This is the long form for the Shift key on the keyboard', + ], + }, + 'Shift' + ), + altKey: De( + { + key: 'altKey.long', + comment: [ + 'This is the long form for the Alt key on the keyboard', + ], + }, + 'Alt' + ), + metaKey: De( + { + key: 'cmdKey.long', + comment: [ + 'This is the long form for the Command key on the keyboard', + ], + }, + 'Command' + ), + separator: '+', + }, + { + ctrlKey: De( + { + key: 'ctrlKey.long', + comment: [ + 'This is the long form for the Control key on the keyboard', + ], + }, + 'Control' + ), + shiftKey: De( + { + key: 'shiftKey.long', + comment: [ + 'This is the long form for the Shift key on the keyboard', + ], + }, + 'Shift' + ), + altKey: De( + { + key: 'altKey.long', + comment: [ + 'This is the long form for the Alt key on the keyboard', + ], + }, + 'Alt' + ), + metaKey: De( + { + key: 'windowsKey.long', + comment: [ + 'This is the long form for the Windows key on the keyboard', + ], + }, + 'Windows' + ), + separator: '+', + }, + { + ctrlKey: De( + { + key: 'ctrlKey.long', + comment: [ + 'This is the long form for the Control key on the keyboard', + ], + }, + 'Control' + ), + shiftKey: De( + { + key: 'shiftKey.long', + comment: [ + 'This is the long form for the Shift key on the keyboard', + ], + }, + 'Shift' + ), + altKey: De( + { + key: 'altKey.long', + comment: [ + 'This is the long form for the Alt key on the keyboard', + ], + }, + 'Alt' + ), + metaKey: De( + { + key: 'superKey.long', + comment: [ + 'This is the long form for the Super key on the keyboard', + ], + }, + 'Super' + ), + separator: '+', + } + ); + function ub(e, t, n) { + if (null === t) return ''; + var r = []; + return ( + e.ctrlKey && r.push(n.ctrlKey), + e.shiftKey && r.push(n.shiftKey), + e.altKey && r.push(n.altKey), + e.metaKey && r.push(n.metaKey), + r.push(t), + r.join(n.separator) + ); + } + var lb, + cb, + db = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + hb = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + if (0 === n.length) throw Xe('parts'); + return (r._os = t), (r._parts = n), r; + } + return ( + db(t, e), + (t.prototype.getLabel = function () { + var e = this; + return sb.toLabel(this._os, this._parts, function (t) { + return e._getLabel(t); + }); + }), + (t.prototype.getAriaLabel = function () { + var e = this; + return ab.toLabel(this._os, this._parts, function (t) { + return e._getAriaLabel(t); + }); + }), + (t.prototype.isChord = function () { + return this._parts.length > 1; + }), + (t.prototype.getParts = function () { + var e = this; + return this._parts.map(function (t) { + return e._getPart(t); + }); + }), + (t.prototype._getPart = function (e) { + return new Cr( + e.ctrlKey, + e.shiftKey, + e.altKey, + e.metaKey, + this._getLabel(e), + this._getAriaLabel(e) + ); + }), + (t.prototype.getDispatchParts = function () { + var e = this; + return this._parts.map(function (t) { + return e._getDispatchPart(t); + }); + }), + t + ); + })(Sr), + fb = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + pb = (function (e) { + function t(t, n) { + return e.call(this, n, t.parts) || this; + } + return ( + fb(t, e), + (t.prototype._keyCodeToUILabel = function (e) { + if (2 === this._os) + switch (e) { + case 15: + return '←'; + case 16: + return '↑'; + case 17: + return '→'; + case 18: + return '↓'; + } + return ur.toString(e); + }), + (t.prototype._getLabel = function (e) { + return e.isDuplicateModifierCase() + ? '' + : this._keyCodeToUILabel(e.keyCode); + }), + (t.prototype._getAriaLabel = function (e) { + return e.isDuplicateModifierCase() ? '' : ur.toString(e.keyCode); + }), + (t.prototype._getDispatchPart = function (e) { + return t.getDispatchStr(e); + }), + (t.getDispatchStr = function (e) { + if (e.isModifierKey()) return null; + var t = ''; + return ( + e.ctrlKey && (t += 'ctrl+'), + e.shiftKey && (t += 'shift+'), + e.altKey && (t += 'alt+'), + e.metaKey && (t += 'meta+'), + (t += ur.toString(e.keyCode)) + ); + }), + t + ); + })(hb), + gb = wt('contextService'); + !(function (e) { + e.isIWorkspace = function (e) { + return ( + e && + 'object' == typeof e && + 'string' == typeof e.id && + Array.isArray(e.folders) + ); + }; + })(lb || (lb = {})), + ((cb || (cb = {})).isIWorkspaceFolder = function (e) { + return ( + e && + 'object' == typeof e && + dt.isUri(e.uri) && + 'string' == typeof e.name && + 'function' == typeof e.toResource + ); + }); + !(function () { + function e(e, t, n) { + void 0 === t && (t = []), + void 0 === n && (n = null), + (this._id = e), + (this._configuration = n), + (this._foldersMap = Qn.forPaths()), + (this.folders = t); + } + Object.defineProperty(e.prototype, 'folders', { + get: function () { + return this._folders; + }, + set: function (e) { + (this._folders = e), this.updateFoldersMap(); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'id', { + get: function () { + return this._id; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'configuration', { + get: function () { + return this._configuration; + }, + set: function (e) { + this._configuration = e; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.getFolder = function (e) { + return ( + (e && + this._foldersMap.findSubstr( + e + .with({ + scheme: e.scheme, + authority: e.authority, + path: e.path, + }) + .toString() + )) || + null + ); + }), + (e.prototype.updateFoldersMap = function () { + this._foldersMap = Qn.forPaths(); + for (var e = 0, t = this.folders; e < t.length; e++) { + var n = t[e]; + this._foldersMap.set(n.uri.toString(), n); + } + }), + (e.prototype.toJSON = function () { + return { + id: this.id, + folders: this.folders, + configuration: this.configuration, + }; + }); + })(); + var mb, + _b, + yb, + vb, + bb, + wb, + Cb, + Sb, + xb, + Lb, + kb, + Mb, + Db, + Eb = (function () { + function e(e, t) { + (this.raw = t), + (this.uri = e.uri), + (this.index = e.index), + (this.name = e.name); + } + return ( + (e.prototype.toResource = function (e) { + return (function (e) { + for (var t, n, i = [], o = 1; o < arguments.length; o++) + i[o - 1] = arguments[o]; + return ( + (n = + e.scheme === Mh.file + ? dt.file(gs.apply(r, [l_(e)].concat(i))).path + : (t = fs).join.apply(t, [e.path || '/'].concat(i))), + e.with({ path: n }) + ); + })(this.uri, e); + }), + (e.prototype.toJSON = function () { + return { uri: this.uri, name: this.name, index: this.index }; + }), + e + ); + })(); + ((_b = mb || (mb = {})).noSelection = De('noSelection', 'No selection')), + (_b.singleSelectionRange = De( + 'singleSelectionRange', + 'Line {0}, Column {1} ({2} selected)' + )), + (_b.singleSelection = De('singleSelection', 'Line {0}, Column {1}')), + (_b.multiSelectionRange = De( + 'multiSelectionRange', + '{0} selections ({1} characters selected)' + )), + (_b.multiSelection = De('multiSelection', '{0} selections')), + (_b.emergencyConfOn = De( + 'emergencyConfOn', + "Now changing the setting `accessibilitySupport` to 'on'." + )), + (_b.openingDocs = De( + 'openingDocs', + 'Now opening the Editor Accessibility documentation page.' + )), + (_b.readonlyDiffEditor = De( + 'readonlyDiffEditor', + ' in a read-only pane of a diff editor.' + )), + (_b.editableDiffEditor = De( + 'editableDiffEditor', + ' in a pane of a diff editor.' + )), + (_b.readonlyEditor = De('readonlyEditor', ' in a read-only code editor')), + (_b.editableEditor = De('editableEditor', ' in a code editor')), + (_b.changeConfigToOnMac = De( + 'changeConfigToOnMac', + 'To configure the editor to be optimized for usage with a Screen Reader press Command+E now.' + )), + (_b.changeConfigToOnWinLinux = De( + 'changeConfigToOnWinLinux', + 'To configure the editor to be optimized for usage with a Screen Reader press Control+E now.' + )), + (_b.auto_on = De( + 'auto_on', + 'The editor is configured to be optimized for usage with a Screen Reader.' + )), + (_b.auto_off = De( + 'auto_off', + 'The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time.' + )), + (_b.tabFocusModeOnMsg = De( + 'tabFocusModeOnMsg', + 'Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}.' + )), + (_b.tabFocusModeOnMsgNoKb = De( + 'tabFocusModeOnMsgNoKb', + 'Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding.' + )), + (_b.tabFocusModeOffMsg = De( + 'tabFocusModeOffMsg', + 'Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}.' + )), + (_b.tabFocusModeOffMsgNoKb = De( + 'tabFocusModeOffMsgNoKb', + 'Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.' + )), + (_b.openDocMac = De( + 'openDocMac', + 'Press Command+H now to open a browser window with more information related to editor accessibility.' + )), + (_b.openDocWinLinux = De( + 'openDocWinLinux', + 'Press Control+H now to open a browser window with more information related to editor accessibility.' + )), + (_b.outroMsg = De( + 'outroMsg', + 'You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape.' + )), + (_b.showAccessibilityHelpAction = De( + 'showAccessibilityHelpAction', + 'Show Accessibility Help' + )), + ((yb || (yb = {})).inspectTokensAction = De( + 'inspectTokens', + 'Developer: Inspect Tokens' + )), + ((bb = vb || (vb = {})).gotoLineLabelValidLineAndColumn = De( + 'gotoLineLabelValidLineAndColumn', + 'Go to line {0} and character {1}' + )), + (bb.gotoLineLabelValidLine = De( + 'gotoLineLabelValidLine', + 'Go to line {0}' + )), + (bb.gotoLineLabelEmptyWithLineLimit = De( + 'gotoLineLabelEmptyWithLineLimit', + 'Type a line number between 1 and {0} to navigate to' + )), + (bb.gotoLineLabelEmptyWithLineAndColumnLimit = De( + 'gotoLineLabelEmptyWithLineAndColumnLimit', + 'Type a character between 1 and {0} to navigate to' + )), + (bb.gotoLineAriaLabel = De( + 'gotoLineAriaLabel', + 'Current Line: {0}. Go to line {1}.' + )), + (bb.gotoLineActionInput = De( + 'gotoLineActionInput', + 'Type a line number, followed by an optional colon and a character number to navigate to' + )), + (bb.gotoLineActionLabel = De('gotoLineActionLabel', 'Go to Line...')), + ((Cb = wb || (wb = {})).ariaLabelEntryWithKey = De( + 'ariaLabelEntryWithKey', + '{0}, {1}, commands' + )), + (Cb.ariaLabelEntry = De('ariaLabelEntry', '{0}, commands')), + (Cb.quickCommandActionInput = De( + 'quickCommandActionInput', + 'Type the name of an action you want to execute' + )), + (Cb.quickCommandActionLabel = De( + 'quickCommandActionLabel', + 'Command Palette' + )), + ((xb = Sb || (Sb = {})).entryAriaLabel = De( + 'entryAriaLabel', + '{0}, symbols' + )), + (xb.quickOutlineActionInput = De( + 'quickOutlineActionInput', + 'Type the name of an identifier you wish to navigate to' + )), + (xb.quickOutlineActionLabel = De( + 'quickOutlineActionLabel', + 'Go to Symbol...' + )), + (xb._symbols_ = De('symbols', 'symbols ({0})')), + (xb._modules_ = De('modules', 'modules ({0})')), + (xb._class_ = De('class', 'classes ({0})')), + (xb._interface_ = De('interface', 'interfaces ({0})')), + (xb._method_ = De('method', 'methods ({0})')), + (xb._function_ = De('function', 'functions ({0})')), + (xb._property_ = De('property', 'properties ({0})')), + (xb._variable_ = De('variable', 'variables ({0})')), + (xb._variable2_ = De('variable2', 'variables ({0})')), + (xb._constructor_ = De('_constructor', 'constructors ({0})')), + (xb._call_ = De('call', 'calls ({0})')), + ((kb = Lb || (Lb = {})).editorViewAccessibleLabel = De( + 'editorViewAccessibleLabel', + 'Editor content' + )), + (kb.accessibilityHelpMessageIE = De( + 'accessibilityHelpMessageIE', + 'Press Ctrl+F1 for Accessibility Options.' + )), + (kb.accessibilityHelpMessage = De( + 'accessibilityHelpMessage', + 'Press Alt+F1 for Accessibility Options.' + )), + ((Mb || (Mb = {})).toggleHighContrast = De( + 'toggleHighContrast', + 'Toggle High Contrast Theme' + )), + ((Db || (Db = {})).bulkEditServiceSummary = De( + 'bulkEditServiceSummary', + 'Made {0} edits in {1} files' + )); + var Tb = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Nb = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + Ob = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + Ab = (function () { + function e(e) { + (this.model = e), (this._onDispose = new Gt()); + } + return ( + Object.defineProperty(e.prototype, 'textEditorModel', { + get: function () { + return this.model; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.dispose = function () { + this._onDispose.fire(); + }), + e + ); + })(); + function Ib(e, t, n) { + return (r = e) && + 'function' == typeof r.getEditorType && + r.getEditorType() === Tl.ICodeEditor + ? t(e) + : n(e); + var r; + } + var Pb = (function () { + function e() {} + return ( + (e.prototype.setEditor = function (e) { + this.editor = e; + }), + (e.prototype.createModelReference = function (e) { + var t = this, + n = null; + return ( + this.editor && + (n = Ib( + this.editor, + function (n) { + return t.findModel(n, e); + }, + function (n) { + return ( + t.findModel(n.getOriginalEditor(), e) || + t.findModel(n.getModifiedEditor(), e) + ); + } + )), + n + ? Promise.resolve(new Ft(new Ab(n))) + : Promise.reject(new Error('Model not found')) + ); + }), + (e.prototype.findModel = function (e, t) { + var n = e.getModel(); + return n && n.uri.toString() !== t.toString() ? null : n; + }), + e + ); + })(), + Rb = (function () { + function e() {} + return ( + (e.prototype.showWhile = function (e, t) { + return Promise.resolve(void 0); + }), + e + ); + })(), + Fb = function () {}, + Yb = (function () { + function e() {} + return ( + (e.prototype.info = function (e) { + return this.notify({ severity: om.Info, message: e }); + }), + (e.prototype.warn = function (e) { + return this.notify({ severity: om.Warning, message: e }); + }), + (e.prototype.error = function (e) { + return this.notify({ severity: om.Error, message: e }); + }), + (e.prototype.notify = function (t) { + switch (t.severity) { + case om.Error: + console.error(t.message); + break; + case om.Warning: + console.warn(t.message); + break; + default: + console.log(t.message); + } + return e.NO_OP; + }), + (e.prototype.status = function (e, t) { + return Rt.None; + }), + (e.NO_OP = new am()), + e + ); + })(), + jb = (function () { + function e(e) { + (this._onWillExecuteCommand = new Gt()), + (this._onDidExecuteCommand = new Gt()), + (this._instantiationService = e), + (this._dynamicCommands = Object.create(null)); + } + return ( + (e.prototype.addCommand = function (e) { + var t = this, + n = e.id; + return ( + (this._dynamicCommands[n] = e), + It(function () { + delete t._dynamicCommands[n]; + }) + ); + }), + (e.prototype.executeCommand = function (e) { + for (var t = [], n = 1; n < arguments.length; n++) + t[n - 1] = arguments[n]; + var r = rr.getCommand(e) || this._dynamicCommands[e]; + if (!r) + return Promise.reject(new Error("command '" + e + "' not found")); + try { + this._onWillExecuteCommand.fire({ commandId: e, args: t }); + var i = this._instantiationService.invokeFunction.apply( + this._instantiationService, + [r.handler].concat(t) + ); + return ( + this._onDidExecuteCommand.fire({ commandId: e, args: t }), + Promise.resolve(i) + ); + } catch (e) { + return Promise.reject(e); + } + }), + e + ); + })(), + Bb = (function (e) { + function t(t, n, r, i, o) { + var s = e.call(this, t, n, r, i) || this; + return ( + (s._cachedResolver = null), + (s._dynamicKeybindings = []), + s._register( + Kh(o, Cf.KEY_DOWN, function (e) { + var t = new Ch(e); + s._dispatch(t, t.target) && t.preventDefault(); + }) + ), + s + ); + } + return ( + Tb(t, e), + (t.prototype.addDynamicKeybinding = function (e, t, n, r) { + var i = this, + o = yr(t, tt.a); + if (!o) throw new Error('Invalid keybinding'); + var s = new Pt(); + this._dynamicKeybindings.push({ + keybinding: o, + command: e, + when: r, + weight1: 1e3, + weight2: 0, + }), + s.add( + It(function () { + for (var t = 0; t < i._dynamicKeybindings.length; t++) { + if (i._dynamicKeybindings[t].command === e) + return ( + i._dynamicKeybindings.splice(t, 1), + void i.updateResolver({ source: 1 }) + ); + } + }) + ); + var a = this._commandService; + if (!(a instanceof jb)) throw new Error('Unknown command service!'); + return ( + s.add(a.addCommand({ id: e, handler: n })), + this.updateResolver({ source: 1 }), + s + ); + }), + (t.prototype.updateResolver = function (e) { + (this._cachedResolver = null), this._onDidUpdateKeybindings.fire(e); + }), + (t.prototype._getResolver = function () { + if (!this._cachedResolver) { + var e = this._toNormalizedKeybindingItems( + kr.getDefaultKeybindings(), + !0 + ), + t = this._toNormalizedKeybindingItems( + this._dynamicKeybindings, + !1 + ); + this._cachedResolver = new rb(e, t); + } + return this._cachedResolver; + }), + (t.prototype._documentHasFocus = function () { + return document.hasFocus(); + }), + (t.prototype._toNormalizedKeybindingItems = function (e, t) { + for (var n = [], r = 0, i = 0, o = e; i < o.length; i++) { + var s = o[i], + a = s.when || void 0, + u = s.keybinding; + if (u) + for ( + var l = 0, c = this.resolveKeybinding(u); + l < c.length; + l++ + ) { + var d = c[l]; + n[r++] = new ib(d, s.command, s.commandArgs, a, t); + } + else n[r++] = new ib(void 0, s.command, s.commandArgs, a, t); + } + return n; + }), + (t.prototype.resolveKeybinding = function (e) { + return [new pb(e, tt.a)]; + }), + (t.prototype.resolveKeyboardEvent = function (e) { + var t = new br( + e.ctrlKey, + e.shiftKey, + e.altKey, + e.metaKey, + e.keyCode + ).toChord(); + return new pb(t, tt.a); + }), + t + ); + })(nb); + function Wb(e) { + return ( + e && + 'object' == typeof e && + (!e.overrideIdentifier || 'string' == typeof e.overrideIdentifier) && + (!e.resource || e.resource instanceof dt) + ); + } + var Hb = (function () { + function e() { + (this._onDidChangeConfiguration = new Gt()), + (this.onDidChangeConfiguration = this._onDidChangeConfiguration.event), + (this._configuration = new eb(new Qv(), new Jv())); + } + return ( + (e.prototype.configuration = function () { + return this._configuration; + }), + (e.prototype.getValue = function (e, t) { + var n = 'string' == typeof e ? e : void 0, + r = Wb(e) ? e : Wb(t) ? t : {}; + return this.configuration().getValue(n, r, void 0); + }), + (e.prototype.updateValue = function (e, t, n, r) { + return this.configuration().updateValue(e, t), Promise.resolve(); + }), + (e.prototype.inspect = function (e, t) { + return ( + void 0 === t && (t = {}), + this.configuration().inspect(e, t, void 0) + ); + }), + e + ); + })(), + Vb = (function () { + function e(e) { + var t = this; + (this.configurationService = e), + (this._onDidChangeConfiguration = new Gt()), + this.configurationService.onDidChangeConfiguration(function (e) { + t._onDidChangeConfiguration.fire(e); + }); + } + return ( + (e.prototype.getValue = function (e, t, n) { + var r = (xt.isIPosition(t) ? t : null) + ? 'string' == typeof n + ? n + : void 0 + : 'string' == typeof t + ? t + : void 0; + return void 0 === r + ? this.configurationService.getValue() + : this.configurationService.getValue(r); + }), + e + ); + })(), + zb = (function () { + function e(e) { + this.configurationService = e; + } + return ( + (e.prototype.getEOL = function (e) { + var t = this.configurationService.getValue('files'); + return t && t.eol && 'auto' !== t.eol + ? t.eol + : tt.c || tt.d + ? '\n' + : '\r\n'; + }), + (e = Nb([Ob(0, qv)], e)) + ); + })(), + Ub = (function () { + function e() { + this._serviceBrand = void 0; + } + return ( + (e.prototype.publicLog = function (e, t) { + return Promise.resolve(void 0); + }), + (e.prototype.publicLog2 = function (e, t) { + return this.publicLog(e, t); + }), + e + ); + })(), + qb = (function () { + function e() { + var t = dt.from({ scheme: e.SCHEME, authority: 'model', path: '/' }); + this.workspace = { + id: '4064f6ec-cb38-4ad0-af64-ee6467e63c82', + folders: [new Eb({ uri: t, name: '', index: 0 })], + }; + } + return ( + (e.prototype.getWorkspace = function () { + return this.workspace; + }), + (e.prototype.getWorkspaceFolder = function (t) { + return t && t.scheme === e.SCHEME + ? this.workspace.folders[0] + : null; + }), + (e.SCHEME = 'inmemory'), + e + ); + })(); + function Kb(e, t, n) { + t && + e instanceof Hb && + Object.keys(t).forEach(function (r) { + (function (e) { + return zv()['editor.' + e] || !1; + })(r) && e.updateValue('editor.' + r, t[r]), + n && + (function (e) { + return zv()['diffEditor.' + e] || !1; + })(r) && + e.updateValue('diffEditor.' + r, t[r]); + }); + } + var Gb = (function () { + function e(e) { + this._modelService = e; + } + return ( + (e.prototype.apply = function (e, t) { + var n, + r = new Map(); + if (e.edits) + for (var i = 0, o = e.edits; i < o.length; i++) { + var s = o[i]; + if (!(Ne((n = s)) && n.resource && Array.isArray(n.edits))) + return Promise.reject( + new Error('bad edit - only text edits are supported') + ); + var a = this._modelService.getModel(s.resource); + if (!a) + return Promise.reject( + new Error('bad edit - model not found') + ); + var u = r.get(a); + u || (u = []), r.set(a, u.concat(s.edits)); + } + var l = 0, + c = 0; + return ( + r.forEach(function (e, t) { + t.applyEdits( + e.map(function (e) { + return Uv.replaceMove(Fr.lift(e.range), e.text); + }) + ), + (c += 1), + (l += e.length); + }), + Promise.resolve({ + selection: void 0, + ariaSummary: sn(Db.bulkEditServiceSummary, l, c), + }) + ); + }), + e + ); + })(), + $b = (function () { + function e() {} + return ( + (e.prototype.getUriLabel = function (e, t) { + return 'file' === e.scheme ? e.fsPath : e.path; + }), + e + ); + })(), + Zb = (function () { + function e(e) { + (this._container = e), (this.onLayout = Wt.None); + } + return ( + Object.defineProperty(e.prototype, 'container', { + get: function () { + return this._container; + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(), + Xb = + (n(333), + n(334), + (function () { + function e(e, t) { + (this.chr = e), (this.type = t), (this.width = 0); + } + return ( + (e.prototype.fulfill = function (e) { + this.width = e; + }), + e + ); + })()), + Jb = (function () { + function e(e, t) { + (this._bareFontInfo = e), + (this._requests = t), + (this._container = null), + (this._testElements = null); + } + return ( + (e.prototype.read = function () { + this._createDomElements(), + document.body.appendChild(this._container), + this._readFromDomElements(), + document.body.removeChild(this._container), + (this._container = null), + (this._testElements = null); + }), + (e.prototype._createDomElements = function () { + var t = document.createElement('div'); + (t.style.position = 'absolute'), + (t.style.top = '-50000px'), + (t.style.width = '50000px'); + var n = document.createElement('div'); + (n.style.fontFamily = this._bareFontInfo.getMassagedFontFamily()), + (n.style.fontWeight = this._bareFontInfo.fontWeight), + (n.style.fontSize = this._bareFontInfo.fontSize + 'px'), + (n.style.lineHeight = this._bareFontInfo.lineHeight + 'px'), + (n.style.letterSpacing = this._bareFontInfo.letterSpacing + 'px'), + t.appendChild(n); + var r = document.createElement('div'); + (r.style.fontFamily = this._bareFontInfo.getMassagedFontFamily()), + (r.style.fontWeight = 'bold'), + (r.style.fontSize = this._bareFontInfo.fontSize + 'px'), + (r.style.lineHeight = this._bareFontInfo.lineHeight + 'px'), + (r.style.letterSpacing = this._bareFontInfo.letterSpacing + 'px'), + t.appendChild(r); + var i = document.createElement('div'); + (i.style.fontFamily = this._bareFontInfo.getMassagedFontFamily()), + (i.style.fontWeight = this._bareFontInfo.fontWeight), + (i.style.fontSize = this._bareFontInfo.fontSize + 'px'), + (i.style.lineHeight = this._bareFontInfo.lineHeight + 'px'), + (i.style.letterSpacing = this._bareFontInfo.letterSpacing + 'px'), + (i.style.fontStyle = 'italic'), + t.appendChild(i); + for (var o = [], s = 0, a = this._requests.length; s < a; s++) { + var u = this._requests[s], + l = void 0; + 0 === u.type && (l = n), + 2 === u.type && (l = r), + 1 === u.type && (l = i), + l.appendChild(document.createElement('br')); + var c = document.createElement('span'); + e._render(c, u), l.appendChild(c), (o[s] = c); + } + (this._container = t), (this._testElements = o); + }), + (e._render = function (e, t) { + if (' ' === t.chr) { + for (var n = ' ', r = 0; r < 8; r++) n += n; + e.innerHTML = n; + } else { + var i = t.chr; + for (r = 0; r < 8; r++) i += i; + e.textContent = i; + } + }), + (e.prototype._readFromDomElements = function () { + for (var e = 0, t = this._requests.length; e < t; e++) { + var n = this._requests[e], + r = this._testElements[e]; + n.fulfill(r.offsetWidth / 256); + } + }), + e + ); + })(); + var Qb = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ew = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r.referenceDomElement = t), + (r.changeCallback = n), + (r.measureReferenceDomElementToken = -1), + (r.width = -1), + (r.height = -1), + r.measureReferenceDomElement(!1), + r + ); + } + return ( + Qb(t, e), + (t.prototype.dispose = function () { + this.stopObserving(), e.prototype.dispose.call(this); + }), + (t.prototype.getWidth = function () { + return this.width; + }), + (t.prototype.getHeight = function () { + return this.height; + }), + (t.prototype.startObserving = function () { + var e = this; + -1 === this.measureReferenceDomElementToken && + (this.measureReferenceDomElementToken = setInterval(function () { + return e.measureReferenceDomElement(!0); + }, 100)); + }), + (t.prototype.stopObserving = function () { + -1 !== this.measureReferenceDomElementToken && + (clearInterval(this.measureReferenceDomElementToken), + (this.measureReferenceDomElementToken = -1)); + }), + (t.prototype.observe = function (e) { + this.measureReferenceDomElement(!0, e); + }), + (t.prototype.measureReferenceDomElement = function (e, t) { + var n = 0, + r = 0; + t + ? ((n = t.width), (r = t.height)) + : this.referenceDomElement && + ((n = this.referenceDomElement.clientWidth), + (r = this.referenceDomElement.clientHeight)), + (n = Math.max(5, n)), + (r = Math.max(5, r)), + (this.width === n && this.height === r) || + ((this.width = n), + (this.height = r), + e && this.changeCallback()); + }), + t + ); + })(Rt), + tw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + nw = (function () { + function e() { + (this._keys = Object.create(null)), + (this._values = Object.create(null)); + } + return ( + (e.prototype.has = function (e) { + var t = e.getId(); + return !!this._values[t]; + }), + (e.prototype.get = function (e) { + var t = e.getId(); + return this._values[t]; + }), + (e.prototype.put = function (e, t) { + var n = e.getId(); + (this._keys[n] = e), (this._values[n] = t); + }), + (e.prototype.remove = function (e) { + var t = e.getId(); + delete this._keys[t], delete this._values[t]; + }), + (e.prototype.getValues = function () { + var e = this; + return Object.keys(this._keys).map(function (t) { + return e._values[t]; + }); + }), + e + ); + })(); + var rw = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._onDidChange = t._register(new Gt())), + (t.onDidChange = t._onDidChange.event), + (t._cache = new nw()), + (t._evictUntrustedReadingsTimeout = -1), + t + ); + } + return ( + tw(t, e), + (t.prototype.dispose = function () { + -1 !== this._evictUntrustedReadingsTimeout && + (clearTimeout(this._evictUntrustedReadingsTimeout), + (this._evictUntrustedReadingsTimeout = -1)), + e.prototype.dispose.call(this); + }), + (t.prototype.clearCache = function () { + (this._cache = new nw()), this._onDidChange.fire(); + }), + (t.prototype._writeToCache = function (e, t) { + var n = this; + this._cache.put(e, t), + t.isTrusted || + -1 !== this._evictUntrustedReadingsTimeout || + (this._evictUntrustedReadingsTimeout = setTimeout(function () { + (n._evictUntrustedReadingsTimeout = -1), + n._evictUntrustedReadings(); + }, 5e3)); + }), + (t.prototype._evictUntrustedReadings = function () { + for ( + var e = this._cache.getValues(), t = !1, n = 0, r = e.length; + n < r; + n++ + ) { + var i = e[n]; + i.isTrusted || ((t = !0), this._cache.remove(i)); + } + t && this._onDidChange.fire(); + }), + (t.prototype.readConfiguration = function (e) { + if (!this._cache.has(e)) { + var n = t._actualReadConfiguration(e); + (n.typicalHalfwidthCharacterWidth <= 2 || + n.typicalFullwidthCharacterWidth <= 2 || + n.spaceWidth <= 2 || + n.maxDigitWidth <= 2) && + (n = new k_( + { + zoomLevel: oh(), + fontFamily: n.fontFamily, + fontWeight: n.fontWeight, + fontSize: n.fontSize, + lineHeight: n.lineHeight, + letterSpacing: n.letterSpacing, + isMonospace: n.isMonospace, + typicalHalfwidthCharacterWidth: Math.max( + n.typicalHalfwidthCharacterWidth, + 5 + ), + typicalFullwidthCharacterWidth: Math.max( + n.typicalFullwidthCharacterWidth, + 5 + ), + canUseHalfwidthRightwardsArrow: + n.canUseHalfwidthRightwardsArrow, + spaceWidth: Math.max(n.spaceWidth, 5), + maxDigitWidth: Math.max(n.maxDigitWidth, 5), + }, + !1 + )), + this._writeToCache(e, n); + } + return this._cache.get(e); + }), + (t.createRequest = function (e, t, n, r) { + var i = new Xb(e, t); + return n.push(i), r && r.push(i), i; + }), + (t._actualReadConfiguration = function (e) { + var t = [], + n = [], + r = this.createRequest('n', 0, t, n), + i = this.createRequest('m', 0, t, null), + o = this.createRequest(' ', 0, t, n), + s = this.createRequest('0', 0, t, n), + a = this.createRequest('1', 0, t, n), + u = this.createRequest('2', 0, t, n), + l = this.createRequest('3', 0, t, n), + c = this.createRequest('4', 0, t, n), + d = this.createRequest('5', 0, t, n), + h = this.createRequest('6', 0, t, n), + f = this.createRequest('7', 0, t, n), + p = this.createRequest('8', 0, t, n), + g = this.createRequest('9', 0, t, n), + m = this.createRequest('→', 0, t, n), + _ = this.createRequest('→', 0, t, null); + this.createRequest('·', 0, t, n), + this.createRequest('|', 0, t, n), + this.createRequest('/', 0, t, n), + this.createRequest('-', 0, t, n), + this.createRequest('_', 0, t, n), + this.createRequest('i', 0, t, n), + this.createRequest('l', 0, t, n), + this.createRequest('m', 0, t, n), + this.createRequest('|', 1, t, n), + this.createRequest('_', 1, t, n), + this.createRequest('i', 1, t, n), + this.createRequest('l', 1, t, n), + this.createRequest('m', 1, t, n), + this.createRequest('n', 1, t, n), + this.createRequest('|', 2, t, n), + this.createRequest('_', 2, t, n), + this.createRequest('i', 2, t, n), + this.createRequest('l', 2, t, n), + this.createRequest('m', 2, t, n), + this.createRequest('n', 2, t, n), + (function (e, t) { + new Jb(e, t).read(); + })(e, t); + for ( + var y = Math.max( + s.width, + a.width, + u.width, + l.width, + c.width, + d.width, + h.width, + f.width, + p.width, + g.width + ), + v = !0, + b = n[0].width, + w = 1, + C = n.length; + w < C; + w++ + ) { + var S = b - n[w].width; + if (S < -0.001 || S > 0.001) { + v = !1; + break; + } + } + var x = !0; + v && _.width !== b && (x = !1), _.width > m.width && (x = !1); + var L = ih.INSTANCE.getTimeSinceLastZoomLevelChanged() > 2e3; + return new k_( + { + zoomLevel: oh(), + fontFamily: e.fontFamily, + fontWeight: e.fontWeight, + fontSize: e.fontSize, + lineHeight: e.lineHeight, + letterSpacing: e.letterSpacing, + isMonospace: v, + typicalHalfwidthCharacterWidth: r.width, + typicalFullwidthCharacterWidth: i.width, + canUseHalfwidthRightwardsArrow: x, + spaceWidth: o.width, + maxDigitWidth: y, + }, + L + ); + }), + (t.INSTANCE = new t()), + t + ); + })(Rt), + iw = (function (e) { + function t(t, n, r, i) { + void 0 === r && (r = null); + var o, + s = e.call(this, t, n) || this; + return ( + (s.accessibilityService = i), + (s._elementSizeObserver = s._register( + new ew(r, function () { + return s._onReferenceDomElementSizeChanged(); + }) + )), + s._register( + rw.INSTANCE.onDidChange(function () { + return s._onCSSBasedConfigurationChanged(); + }) + ), + s._validatedOptions.automaticLayout && + s._elementSizeObserver.startObserving(), + s._register( + ((o = function (e) { + return s._recomputeOptions(); + }), + ih.INSTANCE.onDidChangeZoomLevel(o)) + ), + s._register( + s.accessibilityService.onDidChangeAccessibilitySupport( + function () { + return s._recomputeOptions(); + } + ) + ), + s._recomputeOptions(), + s + ); + } + return ( + tw(t, e), + (t.applyFontInfoSlow = function (e, t) { + (e.style.fontFamily = t.getMassagedFontFamily()), + (e.style.fontWeight = t.fontWeight), + (e.style.fontSize = t.fontSize + 'px'), + (e.style.lineHeight = t.lineHeight + 'px'), + (e.style.letterSpacing = t.letterSpacing + 'px'); + }), + (t.applyFontInfo = function (e, t) { + e.setFontFamily(t.getMassagedFontFamily()), + e.setFontWeight(t.fontWeight), + e.setFontSize(t.fontSize), + e.setLineHeight(t.lineHeight), + e.setLetterSpacing(t.letterSpacing); + }), + (t.prototype._onReferenceDomElementSizeChanged = function () { + this._recomputeOptions(); + }), + (t.prototype._onCSSBasedConfigurationChanged = function () { + this._recomputeOptions(); + }), + (t.prototype.observeReferenceElement = function (e) { + this._elementSizeObserver.observe(e); + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype._getExtraEditorClassName = function () { + var e = ''; + return ( + fh || ph || (e += 'no-user-select '), tt.d && (e += 'mac '), e + ); + }), + (t.prototype._getEnvConfiguration = function () { + return { + extraEditorClassName: this._getExtraEditorClassName(), + outerWidth: this._elementSizeObserver.getWidth(), + outerHeight: this._elementSizeObserver.getHeight(), + emptySelectionClipboard: dh || ch, + pixelRatio: ih.INSTANCE.getPixelRatio(), + zoomLevel: oh(), + accessibilitySupport: this.accessibilityService.getAccessibilitySupport(), + }; + }), + (t.prototype.readConfiguration = function (e) { + return rw.INSTANCE.readConfiguration(e); + }), + t + ); + })(Bv), + ow = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + sw = (function () { + function e(e, t) { + (this.x = e), (this.y = t); + } + return ( + (e.prototype.toClientCoordinates = function () { + return new aw(this.x - pf.scrollX, this.y - pf.scrollY); + }), + e + ); + })(), + aw = (function () { + function e(e, t) { + (this.clientX = e), (this.clientY = t); + } + return ( + (e.prototype.toPageCoordinates = function () { + return new sw(this.clientX + pf.scrollX, this.clientY + pf.scrollY); + }), + e + ); + })(), + uw = function (e, t, n, r) { + (this.x = e), (this.y = t), (this.width = n), (this.height = r); + }; + function lw(e) { + var t = ff(e); + return new uw(t.left, t.top, t.width, t.height); + } + var cw = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return (r.pos = new sw(r.posx, r.posy)), (r.editorPos = lw(n)), r; + } + return ow(t, e), t; + })(Th), + dw = (function () { + function e(e) { + this._editorViewDomNode = e; + } + return ( + (e.prototype._create = function (e) { + return new cw(e, this._editorViewDomNode); + }), + (e.prototype.onContextMenu = function (e, t) { + var n = this; + return Kh(e, 'contextmenu', function (e) { + t(n._create(e)); + }); + }), + (e.prototype.onMouseUp = function (e, t) { + var n = this; + return Kh(e, 'mouseup', function (e) { + t(n._create(e)); + }); + }), + (e.prototype.onMouseDown = function (e, t) { + var n = this; + return Kh(e, 'mousedown', function (e) { + t(n._create(e)); + }); + }), + (e.prototype.onMouseLeave = function (e, t) { + var n = this; + return $h(e, function (e) { + t(n._create(e)); + }); + }), + (e.prototype.onMouseMoveThrottled = function (e, t, n, r) { + var i = this; + return lf( + e, + 'mousemove', + t, + function (e, t) { + return n(e, i._create(t)); + }, + r + ); + }), + e + ); + })(), + hw = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._editorViewDomNode = t), + (n._globalMouseMoveMonitor = n._register(new Ep())), + (n._keydownListener = null), + n + ); + } + return ( + ow(t, e), + (t.prototype.startMonitoring = function (e, t, n) { + var r = this; + this._keydownListener = Gh( + document, + 'keydown', + function (e) { + e.toKeybinding().isModifierKey() || + r._globalMouseMoveMonitor.stopMonitoring(!0); + }, + !0 + ); + this._globalMouseMoveMonitor.startMonitoring( + function (t, n) { + return e(t, new cw(n, r._editorViewDomNode)); + }, + t, + function () { + r._keydownListener.dispose(), n(); + } + ); + }), + t + ); + })(Rt), + fw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + pw = (function (e) { + function t() { + var t = e.call(this) || this; + return (t._shouldRender = !0), t; + } + return ( + fw(t, e), + (t.prototype.shouldRender = function () { + return this._shouldRender; + }), + (t.prototype.forceShouldRender = function () { + this._shouldRender = !0; + }), + (t.prototype.setShouldRender = function () { + this._shouldRender = !0; + }), + (t.prototype.onDidRender = function () { + this._shouldRender = !1; + }), + (t.prototype.onConfigurationChanged = function (e) { + return !1; + }), + (t.prototype.onCursorStateChanged = function (e) { + return !1; + }), + (t.prototype.onDecorationsChanged = function (e) { + return !1; + }), + (t.prototype.onFlushed = function (e) { + return !1; + }), + (t.prototype.onFocusChanged = function (e) { + return !1; + }), + (t.prototype.onLanguageConfigurationChanged = function (e) { + return !1; + }), + (t.prototype.onLineMappingChanged = function (e) { + return !1; + }), + (t.prototype.onLinesChanged = function (e) { + return !1; + }), + (t.prototype.onLinesDeleted = function (e) { + return !1; + }), + (t.prototype.onLinesInserted = function (e) { + return !1; + }), + (t.prototype.onRevealRangeRequest = function (e) { + return !1; + }), + (t.prototype.onScrollChanged = function (e) { + return !1; + }), + (t.prototype.onTokensChanged = function (e) { + return !1; + }), + (t.prototype.onTokensColorsChanged = function (e) { + return !1; + }), + (t.prototype.onZonesChanged = function (e) { + return !1; + }), + (t.prototype.onThemeChanged = function (e) { + return !1; + }), + (t.prototype.handleEvents = function (e) { + for (var t = !1, n = 0, r = e.length; n < r; n++) { + var i = e[n]; + switch (i.type) { + case 1: + this.onConfigurationChanged(i) && (t = !0); + break; + case 2: + this.onCursorStateChanged(i) && (t = !0); + break; + case 3: + this.onDecorationsChanged(i) && (t = !0); + break; + case 4: + this.onFlushed(i) && (t = !0); + break; + case 5: + this.onFocusChanged(i) && (t = !0); + break; + case 16: + this.onLanguageConfigurationChanged(i) && (t = !0); + break; + case 6: + this.onLineMappingChanged(i) && (t = !0); + break; + case 7: + this.onLinesChanged(i) && (t = !0); + break; + case 8: + this.onLinesDeleted(i) && (t = !0); + break; + case 9: + this.onLinesInserted(i) && (t = !0); + break; + case 10: + this.onRevealRangeRequest(i) && (t = !0); + break; + case 11: + this.onScrollChanged(i) && (t = !0); + break; + case 12: + this.onTokensChanged(i) && (t = !0); + break; + case 13: + this.onTokensColorsChanged(i) && (t = !0); + break; + case 14: + this.onZonesChanged(i) && (t = !0); + break; + case 15: + this.onThemeChanged(i) && (t = !0); + break; + default: + console.info('View received unknown event: '), + console.info(i); + } + } + t && (this._shouldRender = !0); + }), + t + ); + })(Rt), + gw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + mw = (function (e) { + function t(t) { + var n = e.call(this) || this; + return (n._context = t), n._context.addEventHandler(n), n; + } + return ( + gw(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + e.prototype.dispose.call(this); + }), + t + ); + })(pw), + _w = (function () { + function e() {} + return ( + (e.write = function (e, t) { + e.setAttribute('data-mprt', String(t)); + }), + (e.read = function (e) { + var t = e.getAttribute('data-mprt'); + return null === t ? 0 : parseInt(t, 10); + }), + (e.collect = function (e, t) { + for (var n = [], r = 0; e && e !== document.body && e !== t; ) + e.nodeType === e.ELEMENT_NODE && (n[r++] = this.read(e)), + (e = e.parentElement); + for (var i = new Uint8Array(r), o = 0; o < r; o++) + i[o] = n[r - o - 1]; + return i; + }), + e + ); + })(), + yw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + vw = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n) || this; + return (i._viewLines = r), i; + } + return ( + yw(t, e), + (t.prototype.linesVisibleRangesForRange = function (e, t) { + return this._viewLines.linesVisibleRangesForRange(e, t); + }), + (t.prototype.visibleRangeForPosition = function (e) { + return this._viewLines.visibleRangeForPosition(e); + }), + t + ); + })( + (function () { + function e(e, t) { + (this._viewLayout = e), + (this.viewportData = t), + (this.scrollWidth = this._viewLayout.getScrollWidth()), + (this.scrollHeight = this._viewLayout.getScrollHeight()), + (this.visibleRange = this.viewportData.visibleRange), + (this.bigNumbersDelta = this.viewportData.bigNumbersDelta); + var n = this._viewLayout.getCurrentViewport(); + (this.scrollTop = n.top), + (this.scrollLeft = n.left), + (this.viewportWidth = n.width), + (this.viewportHeight = n.height); + } + return ( + (e.prototype.getScrolledTopFromAbsoluteTop = function (e) { + return e - this.scrollTop; + }), + (e.prototype.getVerticalOffsetForLineNumber = function (e) { + return this._viewLayout.getVerticalOffsetForLineNumber(e); + }), + (e.prototype.getDecorationsInViewport = function () { + return this.viewportData.getDecorationsInViewport(); + }), + e + ); + })() + ), + bw = function (e, t) { + (this.lineNumber = e), (this.ranges = t); + }, + ww = (function () { + function e(e, t) { + (this.left = Math.round(e)), (this.width = Math.round(t)); + } + return ( + (e.prototype.toString = function () { + return '[' + this.left + ',' + this.width + ']'; + }), + e + ); + })(), + Cw = (function () { + function e(e, t) { + (this.left = e), (this.width = t); + } + return ( + (e.prototype.toString = function () { + return '[' + this.left + ',' + this.width + ']'; + }), + (e.compare = function (e, t) { + return e.left - t.left; + }), + e + ); + })(), + Sw = (function () { + function e() {} + return ( + (e._createRange = function () { + return ( + this._handyReadyRange || + (this._handyReadyRange = document.createRange()), + this._handyReadyRange + ); + }), + (e._detachRange = function (e, t) { + e.selectNodeContents(t); + }), + (e._readClientRects = function (e, t, n, r, i) { + var o = this._createRange(); + try { + return o.setStart(e, t), o.setEnd(n, r), o.getClientRects(); + } catch (e) { + return null; + } finally { + this._detachRange(o, i); + } + }), + (e._mergeAdjacentRanges = function (e) { + if (1 === e.length) return [new ww(e[0].left, e[0].width)]; + e.sort(Cw.compare); + for ( + var t = [], + n = 0, + r = e[0].left, + i = e[0].width, + o = 1, + s = e.length; + o < s; + o++ + ) { + var a = e[o], + u = a.left, + l = a.width; + r + i + 0.9 >= u + ? (i = Math.max(i, u + l - r)) + : ((t[n++] = new ww(r, i)), (r = u), (i = l)); + } + return (t[n++] = new ww(r, i)), t; + }), + (e._createHorizontalRangesFromClientRects = function (e, t) { + if (!e || 0 === e.length) return null; + for (var n = [], r = 0, i = e.length; r < i; r++) { + var o = e[r]; + n[r] = new Cw(Math.max(0, o.left - t), o.width); + } + return this._mergeAdjacentRanges(n); + }), + (e.readHorizontalRanges = function (e, t, n, r, i, o, s) { + var a = e.children.length - 1; + if (0 > a) return null; + (t = Math.min(a, Math.max(0, t))) !== + (r = Math.min(a, Math.max(0, r))) && + r > 0 && + 0 === i && + (r--, (i = 1073741824)); + var u = e.children[t].firstChild, + l = e.children[r].firstChild; + if ( + ((u && l) || + (!u && + 0 === n && + t > 0 && + ((u = e.children[t - 1].firstChild), (n = 1073741824)), + !l && + 0 === i && + r > 0 && + ((l = e.children[r - 1].firstChild), (i = 1073741824))), + !u || !l) + ) + return null; + (n = Math.min(u.textContent.length, Math.max(0, n))), + (i = Math.min(l.textContent.length, Math.max(0, i))); + var c = this._readClientRects(u, n, l, i, s); + return this._createHorizontalRangesFromClientRects(c, o); + }), + e + ); + })(), + xw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Lw = !!tt.e || !(tt.c || ch || fh), + kw = lh, + Mw = (function () { + function e(e, t) { + (this._domNode = e), + (this._clientRectDeltaLeft = 0), + (this._clientRectDeltaLeftRead = !1), + (this.endNode = t); + } + return ( + Object.defineProperty(e.prototype, 'clientRectDeltaLeft', { + get: function () { + return ( + this._clientRectDeltaLeftRead || + ((this._clientRectDeltaLeftRead = !0), + (this._clientRectDeltaLeft = this._domNode.getBoundingClientRect().left)), + this._clientRectDeltaLeft + ); + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(), + Dw = (function () { + function e(e, t) { + (this.themeType = t), + (this.renderWhitespace = e.editor.viewInfo.renderWhitespace), + (this.renderControlCharacters = + e.editor.viewInfo.renderControlCharacters), + (this.spaceWidth = e.editor.fontInfo.spaceWidth), + (this.useMonospaceOptimizations = + e.editor.fontInfo.isMonospace && + !e.editor.viewInfo.disableMonospaceOptimizations), + (this.canUseHalfwidthRightwardsArrow = + e.editor.fontInfo.canUseHalfwidthRightwardsArrow), + (this.lineHeight = e.editor.lineHeight), + (this.stopRenderingLineAfter = + e.editor.viewInfo.stopRenderingLineAfter), + (this.fontLigatures = e.editor.viewInfo.fontLigatures); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.themeType === e.themeType && + this.renderWhitespace === e.renderWhitespace && + this.renderControlCharacters === e.renderControlCharacters && + this.spaceWidth === e.spaceWidth && + this.useMonospaceOptimizations === e.useMonospaceOptimizations && + this.canUseHalfwidthRightwardsArrow === + e.canUseHalfwidthRightwardsArrow && + this.lineHeight === e.lineHeight && + this.stopRenderingLineAfter === e.stopRenderingLineAfter && + this.fontLigatures === e.fontLigatures + ); + }), + e + ); + })(), + Ew = (function () { + function e(e) { + (this._options = e), + (this._isMaybeInvalid = !0), + (this._renderedViewLine = null); + } + return ( + (e.prototype.getDomNode = function () { + return this._renderedViewLine && this._renderedViewLine.domNode + ? this._renderedViewLine.domNode.domNode + : null; + }), + (e.prototype.setDomNode = function (e) { + if (!this._renderedViewLine) + throw new Error( + 'I have no rendered view line to set the dom node to...' + ); + this._renderedViewLine.domNode = Mp(e); + }), + (e.prototype.onContentChanged = function () { + this._isMaybeInvalid = !0; + }), + (e.prototype.onTokensChanged = function () { + this._isMaybeInvalid = !0; + }), + (e.prototype.onDecorationsChanged = function () { + this._isMaybeInvalid = !0; + }), + (e.prototype.onOptionsChanged = function (e) { + (this._isMaybeInvalid = !0), (this._options = e); + }), + (e.prototype.onSelectionChanged = function () { + return ( + !( + !kw && + this._options.themeType !== Rd && + 'selection' !== this._options.renderWhitespace + ) && ((this._isMaybeInvalid = !0), !0) + ); + }), + (e.prototype.renderLine = function (t, n, r, i) { + if (!1 === this._isMaybeInvalid) return !1; + this._isMaybeInvalid = !1; + var o = r.getViewLineRenderingData(t), + s = this._options, + a = Ny.filter(o.inlineDecorations, t, o.minColumn, o.maxColumn), + u = null; + if ( + kw || + s.themeType === Rd || + 'selection' === this._options.renderWhitespace + ) + for (var l = 0, c = r.selections; l < c.length; l++) { + var d = c[l]; + if (!(d.endLineNumber < t || d.startLineNumber > t)) { + var h = d.startLineNumber === t ? d.startColumn : o.minColumn, + f = d.endLineNumber === t ? d.endColumn : o.maxColumn; + h < f && + ('selection' !== this._options.renderWhitespace + ? a.push(new Ny(h, f, 'inline-selected-text', 0)) + : (u || (u = []), u.push(new Ry(h - 1, f - 1)))); + } + } + var p = new Fy( + s.useMonospaceOptimizations, + s.canUseHalfwidthRightwardsArrow, + o.content, + o.continuesWithWrappedLine, + o.isBasicASCII, + o.containsRTL, + o.minColumn - 1, + o.tokens, + a, + o.tabSize, + s.spaceWidth, + s.stopRenderingLineAfter, + s.renderWhitespace, + s.renderControlCharacters, + s.fontLigatures, + u + ); + if ( + this._renderedViewLine && + this._renderedViewLine.input.equals(p) + ) + return !1; + i.appendASCIIString('
'); + var g = By(p, i); + i.appendASCIIString('
'); + var m = null; + return ( + Lw && + o.isBasicASCII && + s.useMonospaceOptimizations && + 0 === g.containsForeignElements && + o.content.length < 300 && + p.lineTokens.getCount() < 100 && + (m = new Tw( + this._renderedViewLine + ? this._renderedViewLine.domNode + : null, + p, + g.characterMapping + )), + m || + (m = Aw( + this._renderedViewLine + ? this._renderedViewLine.domNode + : null, + p, + g.characterMapping, + g.containsRTL, + g.containsForeignElements + )), + (this._renderedViewLine = m), + !0 + ); + }), + (e.prototype.layoutLine = function (e, t) { + this._renderedViewLine && + this._renderedViewLine.domNode && + (this._renderedViewLine.domNode.setTop(t), + this._renderedViewLine.domNode.setHeight( + this._options.lineHeight + )); + }), + (e.prototype.getWidth = function () { + return this._renderedViewLine + ? this._renderedViewLine.getWidth() + : 0; + }), + (e.prototype.getWidthIsFast = function () { + return ( + !this._renderedViewLine || this._renderedViewLine.getWidthIsFast() + ); + }), + (e.prototype.getVisibleRangesForRange = function (e, t, n) { + if (!this._renderedViewLine) return null; + (e |= 0), + (t |= 0), + (e = Math.min( + this._renderedViewLine.input.lineContent.length + 1, + Math.max(1, e) + )), + (t = Math.min( + this._renderedViewLine.input.lineContent.length + 1, + Math.max(1, t) + )); + var r = 0 | this._renderedViewLine.input.stopRenderingLineAfter; + return -1 !== r && e > r && t > r + ? null + : (-1 !== r && e > r && (e = r), + -1 !== r && t > r && (t = r), + this._renderedViewLine.getVisibleRangesForRange(e, t, n)); + }), + (e.prototype.getColumnOfNodeOffset = function (e, t, n) { + return this._renderedViewLine + ? this._renderedViewLine.getColumnOfNodeOffset(e, t, n) + : 1; + }), + (e.CLASS_NAME = 'view-line'), + e + ); + })(), + Tw = (function () { + function e(e, t, n) { + (this.domNode = e), + (this.input = t), + (this._characterMapping = n), + (this._charWidth = t.spaceWidth); + } + return ( + (e.prototype.getWidth = function () { + return this._getCharPosition(this._characterMapping.length); + }), + (e.prototype.getWidthIsFast = function () { + return !0; + }), + (e.prototype.getVisibleRangesForRange = function (e, t, n) { + var r = this._getCharPosition(e), + i = this._getCharPosition(t); + return [new ww(r, i - r)]; + }), + (e.prototype._getCharPosition = function (e) { + var t = this._characterMapping.getAbsoluteOffsets(); + return 0 === t.length ? 0 : Math.round(this._charWidth * t[e - 1]); + }), + (e.prototype.getColumnOfNodeOffset = function (e, t, n) { + for (var r = t.textContent.length, i = -1; t; ) + (t = t.previousSibling), i++; + return this._characterMapping.partDataToCharOffset(i, r, n) + 1; + }), + e + ); + })(), + Nw = (function () { + function e(e, t, n, r, i) { + if ( + ((this.domNode = e), + (this.input = t), + (this._characterMapping = n), + (this._isWhitespaceOnly = /^\s*$/.test(t.lineContent)), + (this._containsForeignElements = i), + (this._cachedWidth = -1), + (this._pixelOffsetCache = null), + !r || 0 === this._characterMapping.length) + ) { + this._pixelOffsetCache = new Int32Array( + Math.max(2, this._characterMapping.length + 1) + ); + for (var o = 0, s = this._characterMapping.length; o <= s; o++) + this._pixelOffsetCache[o] = -1; + } + } + return ( + (e.prototype._getReadingTarget = function () { + return this.domNode.domNode.firstChild; + }), + (e.prototype.getWidth = function () { + return ( + -1 === this._cachedWidth && + (this._cachedWidth = this._getReadingTarget().offsetWidth), + this._cachedWidth + ); + }), + (e.prototype.getWidthIsFast = function () { + return -1 !== this._cachedWidth; + }), + (e.prototype.getVisibleRangesForRange = function (e, t, n) { + if (null !== this._pixelOffsetCache) { + var r = this._readPixelOffset(e, n); + if (-1 === r) return null; + var i = this._readPixelOffset(t, n); + return -1 === i ? null : [new ww(r, i - r)]; + } + return this._readVisibleRangesForRange(e, t, n); + }), + (e.prototype._readVisibleRangesForRange = function (e, t, n) { + if (e === t) { + var r = this._readPixelOffset(e, n); + return -1 === r ? null : [new ww(r, 0)]; + } + return this._readRawVisibleRangesForRange(e, t, n); + }), + (e.prototype._readPixelOffset = function (e, t) { + if (0 === this._characterMapping.length) { + if (0 === this._containsForeignElements) return 0; + if (2 === this._containsForeignElements) return 0; + if (1 === this._containsForeignElements) return this.getWidth(); + } + if (null !== this._pixelOffsetCache) { + var n = this._pixelOffsetCache[e]; + if (-1 !== n) return n; + var r = this._actualReadPixelOffset(e, t); + return (this._pixelOffsetCache[e] = r), r; + } + return this._actualReadPixelOffset(e, t); + }), + (e.prototype._actualReadPixelOffset = function (e, t) { + if (0 === this._characterMapping.length) { + var n = Sw.readHorizontalRanges( + this._getReadingTarget(), + 0, + 0, + 0, + 0, + t.clientRectDeltaLeft, + t.endNode + ); + return n && 0 !== n.length ? n[0].left : -1; + } + if ( + e === this._characterMapping.length && + this._isWhitespaceOnly && + 0 === this._containsForeignElements + ) + return this.getWidth(); + var r = this._characterMapping.charOffsetToPartData(e - 1), + i = Yy.getPartIndex(r), + o = Yy.getCharIndex(r), + s = Sw.readHorizontalRanges( + this._getReadingTarget(), + i, + o, + i, + o, + t.clientRectDeltaLeft, + t.endNode + ); + return s && 0 !== s.length ? s[0].left : -1; + }), + (e.prototype._readRawVisibleRangesForRange = function (e, t, n) { + if (1 === e && t === this._characterMapping.length) + return [new ww(0, this.getWidth())]; + var r = this._characterMapping.charOffsetToPartData(e - 1), + i = Yy.getPartIndex(r), + o = Yy.getCharIndex(r), + s = this._characterMapping.charOffsetToPartData(t - 1), + a = Yy.getPartIndex(s), + u = Yy.getCharIndex(s); + return Sw.readHorizontalRanges( + this._getReadingTarget(), + i, + o, + a, + u, + n.clientRectDeltaLeft, + n.endNode + ); + }), + (e.prototype.getColumnOfNodeOffset = function (e, t, n) { + for (var r = t.textContent.length, i = -1; t; ) + (t = t.previousSibling), i++; + return this._characterMapping.partDataToCharOffset(i, r, n) + 1; + }), + e + ); + })(), + Ow = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + xw(t, e), + (t.prototype._readVisibleRangesForRange = function (t, n, r) { + var i = e.prototype._readVisibleRangesForRange.call(this, t, n, r); + if ( + !i || + 0 === i.length || + t === n || + (1 === t && n === this._characterMapping.length) + ) + return i; + if (!this.input.containsRTL) { + var o = this._readPixelOffset(n, r); + if (-1 !== o) { + var s = i[i.length - 1]; + s.left < o && (s.width = o - s.left); + } + } + return i; + }), + t + ); + })(Nw), + Aw = dh ? Iw : Pw; + function Iw(e, t, n, r, i) { + return new Ow(e, t, n, r, i); + } + function Pw(e, t, n, r, i) { + return new Nw(e, t, n, r, i); + } + var Rw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Fw = (function () { + function e(e, t, n, r, i, o) { + void 0 === n && (n = 0), + void 0 === r && (r = null), + void 0 === i && (i = null), + void 0 === o && (o = null), + (this.element = e), + (this.type = t), + (this.mouseColumn = n), + (this.position = r), + !i && + r && + (i = new Fr(r.lineNumber, r.column, r.lineNumber, r.column)), + (this.range = i), + (this.detail = o); + } + return ( + (e._typeToString = function (e) { + return 1 === e + ? 'TEXTAREA' + : 2 === e + ? 'GUTTER_GLYPH_MARGIN' + : 3 === e + ? 'GUTTER_LINE_NUMBERS' + : 4 === e + ? 'GUTTER_LINE_DECORATIONS' + : 5 === e + ? 'GUTTER_VIEW_ZONE' + : 6 === e + ? 'CONTENT_TEXT' + : 7 === e + ? 'CONTENT_EMPTY' + : 8 === e + ? 'CONTENT_VIEW_ZONE' + : 9 === e + ? 'CONTENT_WIDGET' + : 10 === e + ? 'OVERVIEW_RULER' + : 11 === e + ? 'SCROLLBAR' + : 12 === e + ? 'OVERLAY_WIDGET' + : 'UNKNOWN'; + }), + (e.toString = function (e) { + return ( + this._typeToString(e.type) + + ': ' + + e.position + + ' - ' + + e.range + + ' - ' + + e.detail + ); + }), + (e.prototype.toString = function () { + return e.toString(this); + }), + e + ); + })(), + Yw = (function () { + function e() {} + return ( + (e.isTextArea = function (e) { + return 2 === e.length && 3 === e[0] && 6 === e[1]; + }), + (e.isChildOfViewLines = function (e) { + return e.length >= 4 && 3 === e[0] && 7 === e[3]; + }), + (e.isStrictChildOfViewLines = function (e) { + return e.length > 4 && 3 === e[0] && 7 === e[3]; + }), + (e.isChildOfScrollableElement = function (e) { + return e.length >= 2 && 3 === e[0] && 5 === e[1]; + }), + (e.isChildOfMinimap = function (e) { + return e.length >= 2 && 3 === e[0] && 8 === e[1]; + }), + (e.isChildOfContentWidgets = function (e) { + return e.length >= 4 && 3 === e[0] && 1 === e[3]; + }), + (e.isChildOfOverflowingContentWidgets = function (e) { + return e.length >= 1 && 2 === e[0]; + }), + (e.isChildOfOverlayWidgets = function (e) { + return e.length >= 2 && 3 === e[0] && 4 === e[1]; + }), + e + ); + })(), + jw = (function () { + function e(e, t, n) { + (this.model = e.model), + (this.layoutInfo = e.configuration.editor.layoutInfo), + (this.viewDomNode = t.viewDomNode), + (this.lineHeight = e.configuration.editor.lineHeight), + (this.typicalHalfwidthCharacterWidth = + e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + (this.lastViewCursorsRenderData = n), + (this._context = e), + (this._viewHelper = t); + } + return ( + (e.prototype.getZoneAtCoord = function (t) { + return e.getZoneAtCoord(this._context, t); + }), + (e.getZoneAtCoord = function (e, t) { + var n = e.viewLayout.getWhitespaceAtVerticalOffset(t); + if (n) { + var r = n.verticalOffset + n.height / 2, + i = e.model.getLineCount(), + o = null, + s = void 0, + a = null; + return ( + n.afterLineNumber !== i && + (a = new xt(n.afterLineNumber + 1, 1)), + n.afterLineNumber > 0 && + (o = new xt( + n.afterLineNumber, + e.model.getLineMaxColumn(n.afterLineNumber) + )), + (s = null === a ? o : null === o ? a : t < r ? o : a), + { + viewZoneId: n.id, + afterLineNumber: n.afterLineNumber, + positionBefore: o, + positionAfter: a, + position: s, + } + ); + } + return null; + }), + (e.prototype.getFullLineRangeAtCoord = function (e) { + if (this._context.viewLayout.isAfterLines(e)) { + var t = this._context.model.getLineCount(), + n = this._context.model.getLineMaxColumn(t); + return { range: new Fr(t, n, t, n), isAfterLines: !0 }; + } + var r = this._context.viewLayout.getLineNumberAtVerticalOffset(e), + i = this._context.model.getLineMaxColumn(r); + return { range: new Fr(r, 1, r, i), isAfterLines: !1 }; + }), + (e.prototype.getLineNumberAtVerticalOffset = function (e) { + return this._context.viewLayout.getLineNumberAtVerticalOffset(e); + }), + (e.prototype.isAfterLines = function (e) { + return this._context.viewLayout.isAfterLines(e); + }), + (e.prototype.getVerticalOffsetForLineNumber = function (e) { + return this._context.viewLayout.getVerticalOffsetForLineNumber(e); + }), + (e.prototype.findAttribute = function (t, n) { + return e._findAttribute(t, n, this._viewHelper.viewDomNode); + }), + (e._findAttribute = function (e, t, n) { + for (; e && e !== document.body; ) { + if (e.hasAttribute && e.hasAttribute(t)) return e.getAttribute(t); + if (e === n) return null; + e = e.parentNode; + } + return null; + }), + (e.prototype.getLineWidth = function (e) { + return this._viewHelper.getLineWidth(e); + }), + (e.prototype.visibleRangeForPosition2 = function (e, t) { + return this._viewHelper.visibleRangeForPosition2(e, t); + }), + (e.prototype.getPositionFromDOMInfo = function (e, t) { + return this._viewHelper.getPositionFromDOMInfo(e, t); + }), + (e.prototype.getCurrentScrollTop = function () { + return this._context.viewLayout.getCurrentScrollTop(); + }), + (e.prototype.getCurrentScrollLeft = function () { + return this._context.viewLayout.getCurrentScrollLeft(); + }), + e + ); + })(), + Bw = (function (e) { + function t(t, n, r, i) { + var o = e.call(this, t, n, r) || this; + return ( + (o._ctx = t), + i + ? ((o.target = i), (o.targetPath = _w.collect(i, t.viewDomNode))) + : ((o.target = null), (o.targetPath = new Uint8Array(0))), + o + ); + } + return ( + Rw(t, e), + (t.prototype.toString = function () { + return ( + 'pos(' + + this.pos.x + + ',' + + this.pos.y + + '), editorPos(' + + this.editorPos.x + + ',' + + this.editorPos.y + + '), mouseVerticalOffset: ' + + this.mouseVerticalOffset + + ', mouseContentHorizontalOffset: ' + + this.mouseContentHorizontalOffset + + '\n\ttarget: ' + + (this.target ? this.target.outerHTML : null) + ); + }), + (t.prototype.fulfill = function (e, t, n, r) { + void 0 === t && (t = null), + void 0 === n && (n = null), + void 0 === r && (r = null); + var i = this.mouseColumn; + return ( + t && + t.column < this._ctx.model.getLineMaxColumn(t.lineNumber) && + (i = + ol.visibleColumnFromColumn( + this._ctx.model.getLineContent(t.lineNumber), + t.column, + this._ctx.model.getOptions().tabSize + ) + 1), + new Fw(this.target, e, i, t, n, r) + ); + }), + (t.prototype.withTarget = function (e) { + return new t(this._ctx, this.editorPos, this.pos, e); + }), + t + ); + })(function (e, t, n) { + (this.editorPos = t), + (this.pos = n), + (this.mouseVerticalOffset = Math.max( + 0, + e.getCurrentScrollTop() + n.y - t.y + )), + (this.mouseContentHorizontalOffset = + e.getCurrentScrollLeft() + n.x - t.x - e.layoutInfo.contentLeft), + (this.isInMarginArea = + n.x - t.x < e.layoutInfo.contentLeft && + n.x - t.x >= e.layoutInfo.glyphMarginLeft), + (this.isInContentArea = !this.isInMarginArea), + (this.mouseColumn = Math.max( + 0, + Vw._getMouseColumn( + this.mouseContentHorizontalOffset, + e.typicalHalfwidthCharacterWidth + ) + )); + }), + Ww = { isAfterLines: !0 }; + function Hw(e) { + return { isAfterLines: !1, horizontalDistanceToText: e }; + } + var Vw = (function () { + function e(e, t) { + (this._context = e), (this._viewHelper = t); + } + return ( + (e.prototype.mouseTargetIsWidget = function (e) { + var t = e.target, + n = _w.collect(t, this._viewHelper.viewDomNode); + return ( + !( + !Yw.isChildOfContentWidgets(n) && + !Yw.isChildOfOverflowingContentWidgets(n) + ) || !!Yw.isChildOfOverlayWidgets(n) + ); + }), + (e.prototype.createMouseTarget = function (t, n, r, i) { + var o = new jw(this._context, this._viewHelper, t), + s = new Bw(o, n, r, i); + try { + return e._createMouseTarget(o, s, !1); + } catch (e) { + return s.fulfill(0); + } + }), + (e._createMouseTarget = function (t, n, r) { + if (null === n.target) { + if (r) return n.fulfill(0); + var i = e._doHitTest(t, n); + return i.position + ? e.createMouseTargetFromHitTestPosition( + t, + n, + i.position.lineNumber, + i.position.column + ) + : this._createMouseTarget(t, n.withTarget(i.hitTarget), !0); + } + var o = n, + s = null; + return ( + (s = + (s = + (s = + (s = + (s = + (s = + (s = + (s = + (s = + (s = s || e._hitTestContentWidget(t, o)) || + e._hitTestOverlayWidget(t, o)) || + e._hitTestMinimap(t, o)) || + e._hitTestScrollbarSlider(t, o)) || + e._hitTestViewZone(t, o)) || + e._hitTestMargin(t, o)) || + e._hitTestViewCursor(t, o)) || + e._hitTestTextArea(t, o)) || + e._hitTestViewLines(t, o, r)) || e._hitTestScrollbar(t, o)) || + n.fulfill(0) + ); + }), + (e._hitTestContentWidget = function (e, t) { + if ( + Yw.isChildOfContentWidgets(t.targetPath) || + Yw.isChildOfOverflowingContentWidgets(t.targetPath) + ) { + var n = e.findAttribute(t.target, 'widgetId'); + return n ? t.fulfill(9, null, null, n) : t.fulfill(0); + } + return null; + }), + (e._hitTestOverlayWidget = function (e, t) { + if (Yw.isChildOfOverlayWidgets(t.targetPath)) { + var n = e.findAttribute(t.target, 'widgetId'); + return n ? t.fulfill(12, null, null, n) : t.fulfill(0); + } + return null; + }), + (e._hitTestViewCursor = function (e, t) { + if (t.target) + for ( + var n = 0, r = (o = e.lastViewCursorsRenderData); + n < r.length; + n++ + ) { + var i = r[n]; + if (t.target === i.domNode) return t.fulfill(6, i.position); + } + if (t.isInContentArea) + for ( + var o = e.lastViewCursorsRenderData, + s = t.mouseContentHorizontalOffset, + a = t.mouseVerticalOffset, + u = 0, + l = o; + u < l.length; + u++ + ) { + if ( + !(s < (i = l[u]).contentLeft) && + !(s > i.contentLeft + i.width) + ) { + var c = e.getVerticalOffsetForLineNumber( + i.position.lineNumber + ); + if (c <= a && a <= c + i.height) + return t.fulfill(6, i.position); + } + } + return null; + }), + (e._hitTestViewZone = function (e, t) { + var n = e.getZoneAtCoord(t.mouseVerticalOffset); + if (n) { + var r = t.isInContentArea ? 8 : 5; + return t.fulfill(r, n.position, null, n); + } + return null; + }), + (e._hitTestTextArea = function (e, t) { + return Yw.isTextArea(t.targetPath) ? t.fulfill(1) : null; + }), + (e._hitTestMargin = function (e, t) { + if (t.isInMarginArea) { + var n = e.getFullLineRangeAtCoord(t.mouseVerticalOffset), + r = n.range.getStartPosition(), + i = Math.abs(t.pos.x - t.editorPos.x), + o = { + isAfterLines: n.isAfterLines, + glyphMarginLeft: e.layoutInfo.glyphMarginLeft, + glyphMarginWidth: e.layoutInfo.glyphMarginWidth, + lineNumbersWidth: e.layoutInfo.lineNumbersWidth, + offsetX: i, + }; + return (i -= e.layoutInfo.glyphMarginLeft) <= + e.layoutInfo.glyphMarginWidth + ? t.fulfill(2, r, n.range, o) + : (i -= e.layoutInfo.glyphMarginWidth) <= + e.layoutInfo.lineNumbersWidth + ? t.fulfill(3, r, n.range, o) + : ((i -= e.layoutInfo.lineNumbersWidth), + t.fulfill(4, r, n.range, o)); + } + return null; + }), + (e._hitTestViewLines = function (t, n, r) { + if (!Yw.isChildOfViewLines(n.targetPath)) return null; + if (t.isAfterLines(n.mouseVerticalOffset)) { + var i = t.model.getLineCount(), + o = t.model.getLineMaxColumn(i); + return n.fulfill(7, new xt(i, o), void 0, Ww); + } + if (r) { + if (Yw.isStrictChildOfViewLines(n.targetPath)) { + var s = t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset); + if (0 === t.model.getLineLength(s)) { + var a = t.getLineWidth(s), + u = Hw(n.mouseContentHorizontalOffset - a); + return n.fulfill(7, new xt(s, 1), void 0, u); + } + } + return n.fulfill(0); + } + var l = e._doHitTest(t, n); + return l.position + ? e.createMouseTargetFromHitTestPosition( + t, + n, + l.position.lineNumber, + l.position.column + ) + : this._createMouseTarget(t, n.withTarget(l.hitTarget), !0); + }), + (e._hitTestMinimap = function (e, t) { + if (Yw.isChildOfMinimap(t.targetPath)) { + var n = e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset), + r = e.model.getLineMaxColumn(n); + return t.fulfill(11, new xt(n, r)); + } + return null; + }), + (e._hitTestScrollbarSlider = function (e, t) { + if ( + Yw.isChildOfScrollableElement(t.targetPath) && + t.target && + 1 === t.target.nodeType + ) { + var n = t.target.className; + if (n && /\b(slider|scrollbar)\b/.test(n)) { + var r = e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset), + i = e.model.getLineMaxColumn(r); + return t.fulfill(11, new xt(r, i)); + } + } + return null; + }), + (e._hitTestScrollbar = function (e, t) { + if (Yw.isChildOfScrollableElement(t.targetPath)) { + var n = e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset), + r = e.model.getLineMaxColumn(n); + return t.fulfill(11, new xt(n, r)); + } + return null; + }), + (e.prototype.getMouseColumn = function (t, n) { + var r = this._context.configuration.editor.layoutInfo, + i = + this._context.viewLayout.getCurrentScrollLeft() + + n.x - + t.x - + r.contentLeft; + return e._getMouseColumn( + i, + this._context.configuration.editor.fontInfo + .typicalHalfwidthCharacterWidth + ); + }), + (e._getMouseColumn = function (e, t) { + return e < 0 ? 1 : Math.round(e / t) + 1; + }), + (e.createMouseTargetFromHitTestPosition = function (e, t, n, r) { + var i = new xt(n, r), + o = e.getLineWidth(n); + if (t.mouseContentHorizontalOffset > o) { + if (uh && 1 === i.column) { + var s = Hw(t.mouseContentHorizontalOffset - o); + return t.fulfill( + 7, + new xt(n, e.model.getLineMaxColumn(n)), + void 0, + s + ); + } + var a = Hw(t.mouseContentHorizontalOffset - o); + return t.fulfill(7, i, void 0, a); + } + var u = e.visibleRangeForPosition2(n, r); + if (!u) return t.fulfill(0, i); + var l = u.left; + if (t.mouseContentHorizontalOffset === l) return t.fulfill(6, i); + var c = []; + if ((c.push({ offset: u.left, column: r }), r > 1)) { + var d = e.visibleRangeForPosition2(n, r - 1); + d && c.push({ offset: d.left, column: r - 1 }); + } + if (r < e.model.getLineMaxColumn(n)) { + var h = e.visibleRangeForPosition2(n, r + 1); + h && c.push({ offset: h.left, column: r + 1 }); + } + c.sort(function (e, t) { + return e.offset - t.offset; + }); + for (var f = 1; f < c.length; f++) { + var p = c[f - 1], + g = c[f]; + if ( + p.offset <= t.mouseContentHorizontalOffset && + t.mouseContentHorizontalOffset <= g.offset + ) { + var m = new Fr(n, p.column, n, g.column); + return t.fulfill(6, i, m); + } + } + return t.fulfill(6, i); + }), + (e._doHitTestWithCaretRangeFromPoint = function (e, t) { + var n = e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset), + r = + e.getVerticalOffsetForLineNumber(n) + + Math.floor(e.lineHeight / 2), + i = t.pos.y + (r - t.mouseVerticalOffset); + i <= t.editorPos.y && (i = t.editorPos.y + 1), + i >= t.editorPos.y + e.layoutInfo.height && + (i = t.editorPos.y + e.layoutInfo.height - 1); + var o = new sw(t.pos.x, i), + s = this._actualDoHitTestWithCaretRangeFromPoint( + e, + o.toClientCoordinates() + ); + return s.position + ? s + : this._actualDoHitTestWithCaretRangeFromPoint( + e, + t.pos.toClientCoordinates() + ); + }), + (e._actualDoHitTestWithCaretRangeFromPoint = function (e, t) { + var n = document.caretRangeFromPoint(t.clientX, t.clientY); + if (!n || !n.startContainer) + return { position: null, hitTarget: null }; + var r = n.startContainer, + i = null; + if (r.nodeType === r.TEXT_NODE) { + var o = (a = (s = r.parentNode) ? s.parentNode : null) + ? a.parentNode + : null; + if ( + (o && o.nodeType === o.ELEMENT_NODE ? o.className : null) === + Ew.CLASS_NAME + ) + return { + position: e.getPositionFromDOMInfo(s, n.startOffset), + hitTarget: null, + }; + i = r.parentNode; + } else if (r.nodeType === r.ELEMENT_NODE) { + var s, a; + if ( + ((a = (s = r.parentNode) ? s.parentNode : null) && + a.nodeType === a.ELEMENT_NODE + ? a.className + : null) === Ew.CLASS_NAME + ) + return { + position: e.getPositionFromDOMInfo(r, r.textContent.length), + hitTarget: null, + }; + i = r; + } + return { position: null, hitTarget: i }; + }), + (e._doHitTestWithCaretPositionFromPoint = function (e, t) { + var n = document.caretPositionFromPoint(t.clientX, t.clientY); + if (n.offsetNode.nodeType === n.offsetNode.TEXT_NODE) { + var r = n.offsetNode.parentNode, + i = r ? r.parentNode : null, + o = i ? i.parentNode : null; + return (o && o.nodeType === o.ELEMENT_NODE + ? o.className + : null) === Ew.CLASS_NAME + ? { + position: e.getPositionFromDOMInfo( + n.offsetNode.parentNode, + n.offset + ), + hitTarget: null, + } + : { position: null, hitTarget: n.offsetNode.parentNode }; + } + return { position: null, hitTarget: n.offsetNode }; + }), + (e._doHitTestWithMoveToPoint = function (e, t) { + var n = null, + r = null, + i = document.body.createTextRange(); + try { + i.moveToPoint(t.clientX, t.clientY); + } catch (e) { + return { position: null, hitTarget: null }; + } + i.collapse(!0); + var o = i ? i.parentElement() : null, + s = o ? o.parentNode : null, + a = s ? s.parentNode : null; + if ( + (a && a.nodeType === a.ELEMENT_NODE ? a.className : '') === + Ew.CLASS_NAME + ) { + var u = i.duplicate(); + u.moveToElementText(o), + u.setEndPoint('EndToStart', i), + (n = e.getPositionFromDOMInfo(o, u.text.length)), + u.moveToElementText(e.viewDomNode); + } else r = o; + return ( + i.moveToElementText(e.viewDomNode), { position: n, hitTarget: r } + ); + }), + (e._doHitTest = function (e, t) { + return document.caretRangeFromPoint + ? this._doHitTestWithCaretRangeFromPoint(e, t) + : document.caretPositionFromPoint + ? this._doHitTestWithCaretPositionFromPoint( + e, + t.pos.toClientCoordinates() + ) + : document.body.createTextRange + ? this._doHitTestWithMoveToPoint(e, t.pos.toClientCoordinates()) + : { position: null, hitTarget: null }; + }), + e + ); + })(), + zw = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function Uw(e) { + return function (t, n) { + var r = !1; + return e && (r = e.mouseTargetIsWidget(n)), r || n.preventDefault(), n; + }; + } + var qw = (function (e) { + function t(n, r, i) { + var o = e.call(this) || this; + (o._isFocused = !1), + (o._context = n), + (o.viewController = r), + (o.viewHelper = i), + (o.mouseTargetFactory = new Vw(o._context, i)), + (o._mouseDownOperation = o._register( + new Kw( + o._context, + o.viewController, + o.viewHelper, + function (e, t) { + return o._createMouseTarget(e, t); + }, + function (e) { + return o._getMouseColumn(e); + } + ) + )), + (o._asyncFocus = o._register( + new Os(function () { + return o.viewHelper.focusTextArea(); + }, 0) + )), + (o.lastMouseLeaveTime = -1); + var s = new dw(o.viewHelper.viewDomNode); + o._register( + s.onContextMenu(o.viewHelper.viewDomNode, function (e) { + return o._onContextMenu(e, !0); + }) + ), + o._register( + s.onMouseMoveThrottled( + o.viewHelper.viewDomNode, + function (e) { + return o._onMouseMove(e); + }, + Uw(o.mouseTargetFactory), + t.MOUSE_MOVE_MINIMUM_TIME + ) + ), + o._register( + s.onMouseUp(o.viewHelper.viewDomNode, function (e) { + return o._onMouseUp(e); + }) + ), + o._register( + s.onMouseLeave(o.viewHelper.viewDomNode, function (e) { + return o._onMouseLeave(e); + }) + ), + o._register( + s.onMouseDown(o.viewHelper.viewDomNode, function (e) { + return o._onMouseDown(e); + }) + ); + return ( + o._register( + Kh( + o.viewHelper.viewDomNode, + lh ? 'mousewheel' : 'wheel', + function (e) { + if ( + (o.viewController.emitMouseWheel(e), + o._context.configuration.editor.viewInfo.mouseWheelZoom) + ) { + var t = new Nh(e); + if (t.browserEvent.ctrlKey || t.browserEvent.metaKey) { + var n = v_.getZoomLevel(), + r = t.deltaY > 0 ? 1 : -1; + v_.setZoomLevel(n + r), + t.preventDefault(), + t.stopPropagation(); + } + } + }, + !0 + ) + ), + o._context.addEventHandler(o), + o + ); + } + return ( + zw(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + e.prototype.dispose.call(this); + }), + (t.prototype.onCursorStateChanged = function (e) { + return this._mouseDownOperation.onCursorStateChanged(e), !1; + }), + (t.prototype.onFocusChanged = function (e) { + return (this._isFocused = e.isFocused), !1; + }), + (t.prototype.onScrollChanged = function (e) { + return this._mouseDownOperation.onScrollChanged(), !1; + }), + (t.prototype.getTargetAtClientPoint = function (e, t) { + var n = new aw(e, t).toPageCoordinates(), + r = lw(this.viewHelper.viewDomNode); + if ( + n.y < r.y || + n.y > r.y + r.height || + n.x < r.x || + n.x > r.x + r.width + ) + return null; + var i = this.viewHelper.getLastViewCursorsRenderData(); + return this.mouseTargetFactory.createMouseTarget(i, r, n, null); + }), + (t.prototype._createMouseTarget = function (e, t) { + var n = this.viewHelper.getLastViewCursorsRenderData(); + return this.mouseTargetFactory.createMouseTarget( + n, + e.editorPos, + e.pos, + t ? e.target : null + ); + }), + (t.prototype._getMouseColumn = function (e) { + return this.mouseTargetFactory.getMouseColumn(e.editorPos, e.pos); + }), + (t.prototype._onContextMenu = function (e, t) { + this.viewController.emitContextMenu({ + event: e, + target: this._createMouseTarget(e, t), + }); + }), + (t.prototype._onMouseMove = function (e) { + this._mouseDownOperation.isActive() || + e.timestamp < this.lastMouseLeaveTime || + this.viewController.emitMouseMove({ + event: e, + target: this._createMouseTarget(e, !0), + }); + }), + (t.prototype._onMouseLeave = function (e) { + (this.lastMouseLeaveTime = new Date().getTime()), + this.viewController.emitMouseLeave({ event: e, target: null }); + }), + (t.prototype._onMouseUp = function (e) { + this.viewController.emitMouseUp({ + event: e, + target: this._createMouseTarget(e, !0), + }); + }), + (t.prototype._onMouseDown = function (e) { + var t = this, + n = this._createMouseTarget(e, !0), + r = 6 === n.type || 7 === n.type, + i = 2 === n.type || 3 === n.type || 4 === n.type, + o = 3 === n.type, + s = this._context.configuration.editor.viewInfo + .selectOnLineNumbers, + a = 8 === n.type || 5 === n.type, + u = 9 === n.type, + l = e.leftButton || e.middleButton; + tt.d && e.leftButton && e.ctrlKey && (l = !1); + var c = function () { + ah && !t._isFocused + ? t._asyncFocus.schedule() + : (e.preventDefault(), t.viewHelper.focusTextArea()); + }; + if (l && (r || (o && s))) + c(), this._mouseDownOperation.start(n.type, e); + else if (i) e.preventDefault(); + else if (a) { + var d = n.detail; + this.viewHelper.shouldSuppressMouseDownOnViewZone(d.viewZoneId) && + (c(), + this._mouseDownOperation.start(n.type, e), + e.preventDefault()); + } else + u && + this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail) && + (c(), e.preventDefault()); + this.viewController.emitMouseDown({ event: e, target: n }); + }), + (t.MOUSE_MOVE_MINIMUM_TIME = 100), + t + ); + })(pw), + Kw = (function (e) { + function t(t, n, r, i, o) { + var s = e.call(this) || this; + return ( + (s._context = t), + (s._viewController = n), + (s._viewHelper = r), + (s._createMouseTarget = i), + (s._getMouseColumn = o), + (s._mouseMoveMonitor = s._register( + new hw(s._viewHelper.viewDomNode) + )), + (s._onScrollTimeout = s._register(new Ts())), + (s._mouseState = new Gw()), + (s._currentSelection = new jr(1, 1, 1, 1)), + (s._isActive = !1), + (s._lastMouseEvent = null), + s + ); + } + return ( + zw(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.isActive = function () { + return this._isActive; + }), + (t.prototype._onMouseDownThenMove = function (e) { + (this._lastMouseEvent = e), this._mouseState.setModifiers(e); + var t = this._findMousePosition(e, !0); + t && + (this._mouseState.isDragAndDrop + ? this._viewController.emitMouseDrag({ event: e, target: t }) + : this._dispatchMouse(t, !0)); + }), + (t.prototype.start = function (e, t) { + var n = this; + (this._lastMouseEvent = t), + this._mouseState.setStartedOnLineNumbers(3 === e), + this._mouseState.setStartButtons(t), + this._mouseState.setModifiers(t); + var r = this._findMousePosition(t, !0); + if (r && r.position) { + if ( + (this._mouseState.trySetCount(t.detail, r.position), + (t.detail = this._mouseState.count), + !this._context.configuration.editor.readOnly && + this._context.configuration.editor.dragAndDrop && + !this._mouseState.altKey && + t.detail < 2 && + !this._isActive && + !this._currentSelection.isEmpty() && + 6 === r.type && + r.position && + this._currentSelection.containsPosition(r.position)) + ) + return ( + (this._mouseState.isDragAndDrop = !0), + (this._isActive = !0), + void this._mouseMoveMonitor.startMonitoring( + Uw(null), + function (e) { + return n._onMouseDownThenMove(e); + }, + function () { + var e = n._findMousePosition(n._lastMouseEvent, !0); + n._viewController.emitMouseDrop({ + event: n._lastMouseEvent, + target: e + ? n._createMouseTarget(n._lastMouseEvent, !0) + : null, + }), + n._stop(); + } + ) + ); + (this._mouseState.isDragAndDrop = !1), + this._dispatchMouse(r, t.shiftKey), + this._isActive || + ((this._isActive = !0), + this._mouseMoveMonitor.startMonitoring( + Uw(null), + function (e) { + return n._onMouseDownThenMove(e); + }, + function () { + return n._stop(); + } + )); + } + }), + (t.prototype._stop = function () { + (this._isActive = !1), this._onScrollTimeout.cancel(); + }), + (t.prototype.onScrollChanged = function () { + var e = this; + this._isActive && + this._onScrollTimeout.setIfNotSet(function () { + if (e._lastMouseEvent) { + var t = e._findMousePosition(e._lastMouseEvent, !1); + t && (e._mouseState.isDragAndDrop || e._dispatchMouse(t, !0)); + } + }, 10); + }), + (t.prototype.onCursorStateChanged = function (e) { + this._currentSelection = e.selections[0]; + }), + (t.prototype._getPositionOutsideEditor = function (e) { + var t = e.editorPos, + n = this._context.model, + r = this._context.viewLayout, + i = this._getMouseColumn(e); + if (e.posy < t.y) { + var o = Math.max(r.getCurrentScrollTop() - (t.y - e.posy), 0); + if ((a = jw.getZoneAtCoord(this._context, o))) + if ((u = this._helpPositionJumpOverViewZone(a))) + return new Fw(null, 13, i, u); + var s = r.getLineNumberAtVerticalOffset(o); + return new Fw(null, 13, i, new xt(s, 1)); + } + if (e.posy > t.y + t.height) { + var a, u; + o = r.getCurrentScrollTop() + (e.posy - t.y); + if ((a = jw.getZoneAtCoord(this._context, o))) + if ((u = this._helpPositionJumpOverViewZone(a))) + return new Fw(null, 13, i, u); + var l = r.getLineNumberAtVerticalOffset(o); + return new Fw(null, 13, i, new xt(l, n.getLineMaxColumn(l))); + } + var c = r.getLineNumberAtVerticalOffset( + r.getCurrentScrollTop() + (e.posy - t.y) + ); + return e.posx < t.x + ? new Fw(null, 13, i, new xt(c, 1)) + : e.posx > t.x + t.width + ? new Fw(null, 13, i, new xt(c, n.getLineMaxColumn(c))) + : null; + }), + (t.prototype._findMousePosition = function (e, t) { + var n = this._getPositionOutsideEditor(e); + if (n) return n; + var r = this._createMouseTarget(e, t); + if (!r.position) return null; + if (8 === r.type || 5 === r.type) { + var i = this._helpPositionJumpOverViewZone(r.detail); + if (i) + return new Fw( + r.element, + r.type, + r.mouseColumn, + i, + null, + r.detail + ); + } + return r; + }), + (t.prototype._helpPositionJumpOverViewZone = function (e) { + var t = new xt( + this._currentSelection.selectionStartLineNumber, + this._currentSelection.selectionStartColumn + ), + n = e.positionBefore, + r = e.positionAfter; + return n && r ? (n.isBefore(t) ? n : r) : null; + }), + (t.prototype._dispatchMouse = function (e, t) { + e.position && + this._viewController.dispatchMouse({ + position: e.position, + mouseColumn: e.mouseColumn, + startedOnLineNumbers: this._mouseState.startedOnLineNumbers, + inSelectionMode: t, + mouseDownCount: this._mouseState.count, + altKey: this._mouseState.altKey, + ctrlKey: this._mouseState.ctrlKey, + metaKey: this._mouseState.metaKey, + shiftKey: this._mouseState.shiftKey, + leftButton: this._mouseState.leftButton, + middleButton: this._mouseState.middleButton, + }); + }), + t + ); + })(Rt), + Gw = (function () { + function e() { + (this._altKey = !1), + (this._ctrlKey = !1), + (this._metaKey = !1), + (this._shiftKey = !1), + (this._leftButton = !1), + (this._middleButton = !1), + (this._startedOnLineNumbers = !1), + (this._lastMouseDownPosition = null), + (this._lastMouseDownPositionEqualCount = 0), + (this._lastMouseDownCount = 0), + (this._lastSetMouseDownCountTime = 0), + (this.isDragAndDrop = !1); + } + return ( + Object.defineProperty(e.prototype, 'altKey', { + get: function () { + return this._altKey; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'ctrlKey', { + get: function () { + return this._ctrlKey; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'metaKey', { + get: function () { + return this._metaKey; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'shiftKey', { + get: function () { + return this._shiftKey; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'leftButton', { + get: function () { + return this._leftButton; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'middleButton', { + get: function () { + return this._middleButton; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'startedOnLineNumbers', { + get: function () { + return this._startedOnLineNumbers; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'count', { + get: function () { + return this._lastMouseDownCount; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.setModifiers = function (e) { + (this._altKey = e.altKey), + (this._ctrlKey = e.ctrlKey), + (this._metaKey = e.metaKey), + (this._shiftKey = e.shiftKey); + }), + (e.prototype.setStartButtons = function (e) { + (this._leftButton = e.leftButton), + (this._middleButton = e.middleButton); + }), + (e.prototype.setStartedOnLineNumbers = function (e) { + this._startedOnLineNumbers = e; + }), + (e.prototype.trySetCount = function (t, n) { + var r = new Date().getTime(); + r - this._lastSetMouseDownCountTime > + e.CLEAR_MOUSE_DOWN_COUNT_TIME && (t = 1), + (this._lastSetMouseDownCountTime = r), + t > this._lastMouseDownCount + 1 && + (t = this._lastMouseDownCount + 1), + this._lastMouseDownPosition && + this._lastMouseDownPosition.equals(n) + ? this._lastMouseDownPositionEqualCount++ + : (this._lastMouseDownPositionEqualCount = 1), + (this._lastMouseDownPosition = n), + (this._lastMouseDownCount = Math.min( + t, + this._lastMouseDownPositionEqualCount + )); + }), + (e.CLEAR_MOUSE_DOWN_COUNT_TIME = 400), + e + ); + })(), + $w = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function Zw(e, t) { + var n = { translationY: t.translationY, translationX: t.translationX }; + return ( + e && + ((n.translationY += e.translationY), + (n.translationX += e.translationX)), + n + ); + } + var Xw = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n, r) || this; + return ( + (i.viewHelper.linesContentDomNode.style.msTouchAction = 'none'), + (i.viewHelper.linesContentDomNode.style.msContentZooming = 'none'), + (i._installGestureHandlerTimeout = window.setTimeout(function () { + if (((i._installGestureHandlerTimeout = -1), window.MSGesture)) { + var e = new MSGesture(), + t = new MSGesture(); + (e.target = i.viewHelper.linesContentDomNode), + (t.target = i.viewHelper.linesContentDomNode), + i.viewHelper.linesContentDomNode.addEventListener( + 'MSPointerDown', + function (n) { + var r = n.pointerType; + r !== (n.MSPOINTER_TYPE_MOUSE || 'mouse') + ? r === (n.MSPOINTER_TYPE_TOUCH || 'touch') + ? ((i._lastPointerType = 'touch'), + e.addPointer(n.pointerId)) + : ((i._lastPointerType = 'pen'), + t.addPointer(n.pointerId)) + : (i._lastPointerType = 'mouse'); + } + ), + i._register( + lf( + i.viewHelper.linesContentDomNode, + 'MSGestureChange', + function (e) { + return i._onGestureChange(e); + }, + Zw + ) + ), + i._register( + Kh( + i.viewHelper.linesContentDomNode, + 'MSGestureTap', + function (e) { + return i._onCaptureGestureTap(e); + }, + !0 + ) + ); + } + }, 100)), + (i._lastPointerType = 'mouse'), + i + ); + } + return ( + $w(t, e), + (t.prototype._onMouseDown = function (t) { + 'mouse' === this._lastPointerType && + e.prototype._onMouseDown.call(this, t); + }), + (t.prototype._onCaptureGestureTap = function (e) { + var t = this, + n = new cw(e, this.viewHelper.viewDomNode), + r = this._createMouseTarget(n, !1); + r.position && this.viewController.moveTo(r.position), + n.browserEvent.fromElement + ? (n.preventDefault(), this.viewHelper.focusTextArea()) + : setTimeout(function () { + t.viewHelper.focusTextArea(); + }); + }), + (t.prototype._onGestureChange = function (e) { + this._context.viewLayout.deltaScrollNow( + -e.translationX, + -e.translationY + ); + }), + (t.prototype.dispose = function () { + window.clearTimeout(this._installGestureHandlerTimeout), + e.prototype.dispose.call(this); + }), + t + ); + })(qw), + Jw = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n, r) || this; + return ( + (i.viewHelper.linesContentDomNode.style.touchAction = 'none'), + (i._installGestureHandlerTimeout = window.setTimeout(function () { + if (((i._installGestureHandlerTimeout = -1), window.MSGesture)) { + var e = new MSGesture(), + t = new MSGesture(); + (e.target = i.viewHelper.linesContentDomNode), + (t.target = i.viewHelper.linesContentDomNode), + i.viewHelper.linesContentDomNode.addEventListener( + 'pointerdown', + function (n) { + var r = n.pointerType; + 'mouse' !== r + ? 'touch' === r + ? ((i._lastPointerType = 'touch'), + e.addPointer(n.pointerId)) + : ((i._lastPointerType = 'pen'), + t.addPointer(n.pointerId)) + : (i._lastPointerType = 'mouse'); + } + ), + i._register( + lf( + i.viewHelper.linesContentDomNode, + 'MSGestureChange', + function (e) { + return i._onGestureChange(e); + }, + Zw + ) + ), + i._register( + Kh( + i.viewHelper.linesContentDomNode, + 'MSGestureTap', + function (e) { + return i._onCaptureGestureTap(e); + }, + !0 + ) + ); + } + }, 100)), + (i._lastPointerType = 'mouse'), + i + ); + } + return ( + $w(t, e), + (t.prototype._onMouseDown = function (t) { + 'mouse' === this._lastPointerType && + e.prototype._onMouseDown.call(this, t); + }), + (t.prototype._onCaptureGestureTap = function (e) { + var t = this, + n = new cw(e, this.viewHelper.viewDomNode), + r = this._createMouseTarget(n, !1); + r.position && this.viewController.moveTo(r.position), + n.browserEvent.fromElement + ? (n.preventDefault(), this.viewHelper.focusTextArea()) + : setTimeout(function () { + t.viewHelper.focusTextArea(); + }); + }), + (t.prototype._onGestureChange = function (e) { + this._context.viewLayout.deltaScrollNow( + -e.translationX, + -e.translationY + ); + }), + (t.prototype.dispose = function () { + window.clearTimeout(this._installGestureHandlerTimeout), + e.prototype.dispose.call(this); + }), + t + ); + })(qw), + Qw = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, n, r) || this; + return ( + dp.addTarget(i.viewHelper.linesContentDomNode), + i._register( + Kh(i.viewHelper.linesContentDomNode, up.Tap, function (e) { + return i.onTap(e); + }) + ), + i._register( + Kh(i.viewHelper.linesContentDomNode, up.Change, function (e) { + return i.onChange(e); + }) + ), + i._register( + Kh( + i.viewHelper.linesContentDomNode, + up.Contextmenu, + function (e) { + return i._onContextMenu( + new cw(e, i.viewHelper.viewDomNode), + !1 + ); + } + ) + ), + i + ); + } + return ( + $w(t, e), + (t.prototype.onTap = function (e) { + e.preventDefault(), this.viewHelper.focusTextArea(); + var t = this._createMouseTarget( + new cw(e, this.viewHelper.viewDomNode), + !1 + ); + t.position && this.viewController.moveTo(t.position); + }), + (t.prototype.onChange = function (e) { + this._context.viewLayout.deltaScrollNow( + -e.translationX, + -e.translationY + ); + }), + t + ); + })(qw), + eC = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + window.navigator.msPointerEnabled + ? (i.handler = i._register(new Xw(t, n, r))) + : window.TouchEvent + ? (i.handler = i._register(new Qw(t, n, r))) + : window.navigator.pointerEnabled || window.PointerEvent + ? (i.handler = i._register(new Jw(t, n, r))) + : (i.handler = i._register(new qw(t, n, r))), + i + ); + } + return ( + $w(t, e), + (t.prototype.getTargetAtClientPoint = function (e, t) { + return this.handler.getTargetAtClientPoint(e, t); + }), + t + ); + })(Rt), + tC = + (n(335), + (function () { + function e(e, t, n, r, i) { + (this.value = e), + (this.selectionStart = t), + (this.selectionEnd = n), + (this.selectionStartPosition = r), + (this.selectionEndPosition = i); + } + return ( + (e.prototype.toString = function () { + return ( + '[ <' + + this.value + + '>, selectionStart: ' + + this.selectionStart + + ', selectionEnd: ' + + this.selectionEnd + + ']' + ); + }), + (e.readFromTextArea = function (t) { + return new e( + t.getValue(), + t.getSelectionStart(), + t.getSelectionEnd(), + null, + null + ); + }), + (e.prototype.collapseSelection = function () { + return new e( + this.value, + this.value.length, + this.value.length, + null, + null + ); + }), + (e.prototype.writeToTextArea = function (e, t, n) { + t.setValue(e, this.value), + n && + t.setSelectionRange( + e, + this.selectionStart, + this.selectionEnd + ); + }), + (e.prototype.deduceEditorPosition = function (e) { + if (e <= this.selectionStart) { + var t = this.value.substring(e, this.selectionStart); + return this._finishDeduceEditorPosition( + this.selectionStartPosition, + t, + -1 + ); + } + if (e >= this.selectionEnd) { + t = this.value.substring(this.selectionEnd, e); + return this._finishDeduceEditorPosition( + this.selectionEndPosition, + t, + 1 + ); + } + var n = this.value.substring(this.selectionStart, e); + if (-1 === n.indexOf(String.fromCharCode(8230))) + return this._finishDeduceEditorPosition( + this.selectionStartPosition, + n, + 1 + ); + var r = this.value.substring(e, this.selectionEnd); + return this._finishDeduceEditorPosition( + this.selectionEndPosition, + r, + -1 + ); + }), + (e.prototype._finishDeduceEditorPosition = function (e, t, n) { + for (var r = 0, i = -1; -1 !== (i = t.indexOf('\n', i + 1)); ) + r++; + return [e, n * t.length, r]; + }), + (e.selectedText = function (t) { + return new e(t, 0, t.length, null, null); + }), + (e.deduceInput = function (e, t, n, r) { + if (!e) return { text: '', replaceCharCnt: 0 }; + var i = e.value, + o = e.selectionStart, + s = e.selectionEnd, + a = t.value, + u = t.selectionStart, + l = t.selectionEnd; + r && + i.length > 0 && + o === s && + u === l && + !cn(a, i) && + dn(a, i) && + ((o = 0), (s = 0)); + var c = (function (e, t) { + var n, + r = Math.min(e.length, t.length), + i = e.length - 1, + o = t.length - 1; + for (n = 0; n < r; n++) + if (e.charCodeAt(i - n) !== t.charCodeAt(o - n)) return n; + return r; + })(i.substring(s), a.substring(l)); + a = a.substring(0, a.length - c); + var d, + h = (i = i.substring(0, i.length - c)).substring(0, o), + f = (function (e, t) { + var n, + r = Math.min(e.length, t.length); + for (n = 0; n < r; n++) + if (e.charCodeAt(n) !== t.charCodeAt(n)) return n; + return r; + })(h, a.substring(0, u)); + if ( + ((a = a.substring(f)), + (i = i.substring(f)), + (u -= f), + (o -= f), + (l -= f), + (s -= f), + n && u === l && i.length > 0) + ) { + var p = null; + if ( + (u === a.length + ? cn(a, i) && (p = a.substring(i.length)) + : dn(a, i) && (p = a.substring(0, a.length - i.length)), + null !== p && + p.length > 0 && + (/\uFE0F/.test(p) || ((d = p), Mn.test(d)))) + ) + return { text: p, replaceCharCnt: 0 }; + } + return u === l + ? i === a && + 0 === o && + s === i.length && + u === a.length && + -1 === a.indexOf('\n') && + (function (e) { + for (var t = 0, n = e.length; t < n; t++) + if (Tn(e.charCodeAt(t))) return !0; + return !1; + })(a) + ? { text: '', replaceCharCnt: 0 } + : { text: a, replaceCharCnt: h.length - f } + : { text: a, replaceCharCnt: s - o }; + }), + (e.EMPTY = new e('', 0, 0, null, null)), + e + ); + })()), + nC = (function () { + function e() {} + return ( + (e._getPageOfLine = function (t) { + return Math.floor((t - 1) / e._LINES_PER_PAGE); + }), + (e._getRangeForPage = function (t) { + var n = t * e._LINES_PER_PAGE, + r = n + 1, + i = n + e._LINES_PER_PAGE; + return new Fr(r, 1, i + 1, 1); + }), + (e.fromEditorSelection = function (t, n, r, i) { + var o, + s = e._getPageOfLine(r.startLineNumber), + a = e._getRangeForPage(s), + u = e._getPageOfLine(r.endLineNumber), + l = e._getRangeForPage(u), + c = a.intersectRanges( + new Fr(1, 1, r.startLineNumber, r.startColumn) + ), + d = n.getValueInRange(c, 1), + h = n.getLineCount(), + f = n.getLineMaxColumn(h), + p = l.intersectRanges(new Fr(r.endLineNumber, r.endColumn, h, f)), + g = n.getValueInRange(p, 1); + if (s === u || s + 1 === u) o = n.getValueInRange(r, 1); + else { + var m = a.intersectRanges(r), + _ = l.intersectRanges(r); + o = + n.getValueInRange(m, 1) + + String.fromCharCode(8230) + + n.getValueInRange(_, 1); + } + if (i) { + d.length > 500 && (d = d.substring(d.length - 500, d.length)), + g.length > 500 && (g = g.substring(0, 500)), + o.length > 1e3 && + (o = + o.substring(0, 500) + + String.fromCharCode(8230) + + o.substring(o.length - 500, o.length)); + } + return new tC( + d + o + g, + d.length, + d.length + o.length, + new xt(r.startLineNumber, r.startColumn), + new xt(r.endLineNumber, r.endColumn) + ); + }), + (e._LINES_PER_PAGE = 10), + e + ); + })(), + rC = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + iC = { forceCopyWithSyntaxHighlighting: !1 }, + oC = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + (r._onFocus = r._register(new Gt())), + (r.onFocus = r._onFocus.event), + (r._onBlur = r._register(new Gt())), + (r.onBlur = r._onBlur.event), + (r._onKeyDown = r._register(new Gt())), + (r.onKeyDown = r._onKeyDown.event), + (r._onKeyUp = r._register(new Gt())), + (r.onKeyUp = r._onKeyUp.event), + (r._onCut = r._register(new Gt())), + (r.onCut = r._onCut.event), + (r._onPaste = r._register(new Gt())), + (r.onPaste = r._onPaste.event), + (r._onType = r._register(new Gt())), + (r.onType = r._onType.event), + (r._onCompositionStart = r._register(new Gt())), + (r.onCompositionStart = r._onCompositionStart.event), + (r._onCompositionUpdate = r._register(new Gt())), + (r.onCompositionUpdate = r._onCompositionUpdate.event), + (r._onCompositionEnd = r._register(new Gt())), + (r.onCompositionEnd = r._onCompositionEnd.event), + (r._onSelectionChangeRequest = r._register(new Gt())), + (r.onSelectionChangeRequest = r._onSelectionChangeRequest.event), + (r._host = t), + (r._textArea = r._register(new aC(n))), + (r._lastTextAreaEvent = 0), + (r._asyncTriggerCut = r._register( + new Os(function () { + return r._onCut.fire(); + }, 0) + )), + (r._textAreaState = tC.EMPTY), + (r._selectionChangeListener = null), + r.writeScreenReaderContent('ctor'), + (r._hasFocus = !1), + (r._isDoingComposition = !1), + (r._nextCommand = 0), + r._register( + Gh(n.domNode, 'keydown', function (e) { + !r._isDoingComposition || + (109 !== e.keyCode && 1 !== e.keyCode) || + e.stopPropagation(), + e.equals(9) && e.preventDefault(), + r._onKeyDown.fire(e); + }) + ), + r._register( + Gh(n.domNode, 'keyup', function (e) { + r._onKeyUp.fire(e); + }) + ), + r._register( + Kh(n.domNode, 'compositionstart', function (e) { + (r._lastTextAreaEvent = 1), + r._isDoingComposition || + ((r._isDoingComposition = !0), + lh || + r._setAndWriteTextAreaState('compositionstart', tC.EMPTY), + r._onCompositionStart.fire()); + }) + ); + var i = function (e, t) { + var n = r._textAreaState, + i = tC.readFromTextArea(r._textArea); + return [i, tC.deduceInput(n, i, e, t)]; + }, + o = function (e) { + var t = r._textAreaState, + n = tC.selectedText(e); + return [ + n, + { + text: n.value, + replaceCharCnt: t.selectionEnd - t.selectionStart, + }, + ]; + }, + s = function (e) { + return ( + !(!lh || 'ja' !== e) || !(!ah || 0 !== e.indexOf('zh-Han')) + ); + }; + return ( + r._register( + Kh(n.domNode, 'compositionupdate', function (e) { + if (((r._lastTextAreaEvent = 2), s(e.locale))) { + var t = i(!1, !1), + n = t[0], + a = t[1]; + return ( + (r._textAreaState = n), + r._onType.fire(a), + void r._onCompositionUpdate.fire(e) + ); + } + var u = o(e.data), + l = u[0], + c = u[1]; + (r._textAreaState = l), + r._onType.fire(c), + r._onCompositionUpdate.fire(e); + }) + ), + r._register( + Kh(n.domNode, 'compositionend', function (e) { + if (((r._lastTextAreaEvent = 3), s(e.locale))) { + var t = i(!1, !1), + n = t[0], + a = t[1]; + (r._textAreaState = n), r._onType.fire(a); + } else { + var u = o(e.data); + (n = u[0]), (a = u[1]); + (r._textAreaState = n), r._onType.fire(a); + } + (lh || hh) && + (r._textAreaState = tC.readFromTextArea(r._textArea)), + r._isDoingComposition && + ((r._isDoingComposition = !1), r._onCompositionEnd.fire()); + }) + ), + r._register( + Kh(n.domNode, 'input', function () { + var e = 8 === r._lastTextAreaEvent; + if ( + ((r._lastTextAreaEvent = 4), + r._textArea.setIgnoreSelectionChangeTime( + 'received input event' + ), + !r._isDoingComposition) + ) { + var t = i(tt.d, e && tt.d), + n = t[0], + o = t[1]; + (0 === o.replaceCharCnt && + 1 === o.text.length && + Sn(o.text.charCodeAt(0))) || + ((r._textAreaState = n), + 0 === r._nextCommand + ? '' !== o.text && r._onType.fire(o) + : ('' !== o.text && r._onPaste.fire({ text: o.text }), + (r._nextCommand = 0))); + } + }) + ), + r._register( + Kh(n.domNode, 'cut', function (e) { + (r._lastTextAreaEvent = 5), + r._textArea.setIgnoreSelectionChangeTime( + 'received cut event' + ), + r._ensureClipboardGetsEditorSelection(e), + r._asyncTriggerCut.schedule(); + }) + ), + r._register( + Kh(n.domNode, 'copy', function (e) { + (r._lastTextAreaEvent = 6), + r._ensureClipboardGetsEditorSelection(e); + }) + ), + r._register( + Kh(n.domNode, 'paste', function (e) { + if ( + ((r._lastTextAreaEvent = 7), + r._textArea.setIgnoreSelectionChangeTime( + 'received paste event' + ), + sC.canUseTextData(e)) + ) { + var t = sC.getTextData(e); + '' !== t && r._onPaste.fire({ text: t }); + } else r._textArea.getSelectionStart() !== r._textArea.getSelectionEnd() && r._setAndWriteTextAreaState('paste', tC.EMPTY), (r._nextCommand = 1); + }) + ), + r._register( + Kh(n.domNode, 'focus', function () { + (r._lastTextAreaEvent = 8), r._setHasFocus(!0); + }) + ), + r._register( + Kh(n.domNode, 'blur', function () { + (r._lastTextAreaEvent = 9), r._setHasFocus(!1); + }) + ), + r + ); + } + return ( + rC(t, e), + (t.prototype._installSelectionChangeListener = function () { + var e = this, + t = 0; + return Kh(document, 'selectionchange', function (n) { + if (e._hasFocus && !e._isDoingComposition && hh && tt.g) { + var r = Date.now(), + i = r - t; + if (((t = r), !(i < 5))) { + var o = r - e._textArea.getIgnoreSelectionChangeTime(); + if ( + (e._textArea.resetSelectionChangeTime(), + !(o < 100) && + e._textAreaState.selectionStartPosition && + e._textAreaState.selectionEndPosition) + ) { + var s = e._textArea.getValue(); + if (e._textAreaState.value === s) { + var a = e._textArea.getSelectionStart(), + u = e._textArea.getSelectionEnd(); + if ( + e._textAreaState.selectionStart !== a || + e._textAreaState.selectionEnd !== u + ) { + var l = e._textAreaState.deduceEditorPosition(a), + c = e._host.deduceModelPosition(l[0], l[1], l[2]), + d = e._textAreaState.deduceEditorPosition(u), + h = e._host.deduceModelPosition(d[0], d[1], d[2]), + f = new jr( + c.lineNumber, + c.column, + h.lineNumber, + h.column + ); + e._onSelectionChangeRequest.fire(f); + } + } + } + } + } + }); + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this._selectionChangeListener && + (this._selectionChangeListener.dispose(), + (this._selectionChangeListener = null)); + }), + (t.prototype.focusTextArea = function () { + this._setHasFocus(!0); + }), + (t.prototype.isFocused = function () { + return this._hasFocus; + }), + (t.prototype._setHasFocus = function (e) { + this._hasFocus !== e && + ((this._hasFocus = e), + this._selectionChangeListener && + (this._selectionChangeListener.dispose(), + (this._selectionChangeListener = null)), + this._hasFocus && + (this._selectionChangeListener = this._installSelectionChangeListener()), + this._hasFocus && + (uh + ? this._setAndWriteTextAreaState('focusgain', tC.EMPTY) + : this.writeScreenReaderContent('focusgain')), + this._hasFocus ? this._onFocus.fire() : this._onBlur.fire()); + }), + (t.prototype._setAndWriteTextAreaState = function (e, t) { + this._hasFocus || (t = t.collapseSelection()), + t.writeToTextArea(e, this._textArea, this._hasFocus), + (this._textAreaState = t); + }), + (t.prototype.writeScreenReaderContent = function (e) { + this._isDoingComposition || + this._setAndWriteTextAreaState( + e, + this._host.getScreenReaderContent(this._textAreaState) + ); + }), + (t.prototype._ensureClipboardGetsEditorSelection = function (e) { + var t = this._host.getPlainTextToCopy(); + if (sC.canUseTextData(e)) { + var n = null; + (function () { + if (ah) return !1; + if (uh) { + var e = sh.indexOf('Edge/'), + t = parseInt(sh.substring(e + 5, sh.indexOf('.', e)), 10); + if (!t || (t >= 12 && t <= 16)) return !1; + } + return !0; + })() && + (t.length < 65536 || iC.forceCopyWithSyntaxHighlighting) && + (n = this._host.getHTMLToCopy()), + sC.setTextData(e, t, n); + } else + this._setAndWriteTextAreaState('copy or cut', tC.selectedText(t)); + }), + t + ); + })(Rt), + sC = (function () { + function e() {} + return ( + (e.canUseTextData = function (e) { + return !!e.clipboardData || !!window.clipboardData; + }), + (e.getTextData = function (e) { + if (e.clipboardData) + return e.preventDefault(), e.clipboardData.getData('text/plain'); + if (window.clipboardData) + return e.preventDefault(), window.clipboardData.getData('Text'); + throw new Error( + 'ClipboardEventUtils.getTextData: Cannot use text data!' + ); + }), + (e.setTextData = function (e, t, n) { + if (e.clipboardData) + return ( + e.clipboardData.setData('text/plain', t), + null !== n && e.clipboardData.setData('text/html', n), + void e.preventDefault() + ); + if (window.clipboardData) + return ( + window.clipboardData.setData('Text', t), void e.preventDefault() + ); + throw new Error( + 'ClipboardEventUtils.setTextData: Cannot use text data!' + ); + }), + e + ); + })(), + aC = (function (e) { + function t(t) { + var n = e.call(this) || this; + return (n._actual = t), (n._ignoreSelectionChangeTime = 0), n; + } + return ( + rC(t, e), + (t.prototype.setIgnoreSelectionChangeTime = function (e) { + this._ignoreSelectionChangeTime = Date.now(); + }), + (t.prototype.getIgnoreSelectionChangeTime = function () { + return this._ignoreSelectionChangeTime; + }), + (t.prototype.resetSelectionChangeTime = function () { + this._ignoreSelectionChangeTime = 0; + }), + (t.prototype.getValue = function () { + return this._actual.domNode.value; + }), + (t.prototype.setValue = function (e, t) { + var n = this._actual.domNode; + n.value !== t && + (this.setIgnoreSelectionChangeTime('setValue'), (n.value = t)); + }), + (t.prototype.getSelectionStart = function () { + return this._actual.domNode.selectionStart; + }), + (t.prototype.getSelectionEnd = function () { + return this._actual.domNode.selectionEnd; + }), + (t.prototype.setSelectionRange = function (e, t, n) { + var r = this._actual.domNode, + i = document.activeElement === r, + o = r.selectionStart, + s = r.selectionEnd; + if (i && o === t && s === n) + ch && window.parent !== window && r.focus(); + else { + if (i) + return ( + this.setIgnoreSelectionChangeTime('setSelectionRange'), + r.setSelectionRange(t, n), + void (ch && window.parent !== window && r.focus()) + ); + try { + var a = (function (e) { + for ( + var t = [], n = 0; + e && e.nodeType === e.ELEMENT_NODE; + n++ + ) + (t[n] = e.scrollTop), (e = e.parentNode); + return t; + })(r); + this.setIgnoreSelectionChangeTime('setSelectionRange'), + r.focus(), + r.setSelectionRange(t, n), + (function (e, t) { + for (var n = 0; e && e.nodeType === e.ELEMENT_NODE; n++) + e.scrollTop !== t[n] && (e.scrollTop = t[n]), + (e = e.parentNode); + })(r, a); + } catch (e) {} + } + }), + t + ); + })(Rt), + uC = + (n(336), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + lC = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return uC(t, e), t; + })(pw), + cC = Xl( + 'editor.lineHighlightBackground', + { dark: null, light: null, hc: null }, + De( + 'lineHighlight', + 'Background color for the highlight of line at the cursor position.' + ) + ), + dC = Xl( + 'editor.lineHighlightBorder', + { dark: '#282828', light: '#eeeeee', hc: '#f38518' }, + De( + 'lineHighlightBorderBox', + 'Background color for the border around the line at the cursor position.' + ) + ), + hC = Xl( + 'editor.rangeHighlightBackground', + { dark: '#ffffff0b', light: '#fdff0033', hc: null }, + De( + 'rangeHighlight', + 'Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations.' + ), + !0 + ), + fC = Xl( + 'editor.rangeHighlightBorder', + { dark: null, light: null, hc: ic }, + De( + 'rangeHighlightBorder', + 'Background color of the border around highlighted ranges.' + ), + !0 + ), + pC = Xl( + 'editorCursor.foreground', + { dark: '#AEAFAD', light: Nu.black, hc: Nu.white }, + De('caret', 'Color of the editor cursor.') + ), + gC = Xl( + 'editorCursor.background', + null, + De( + 'editorCursorBackground', + 'The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.' + ) + ), + mC = Xl( + 'editorWhitespace.foreground', + { dark: '#e3e4e229', light: '#33333333', hc: '#e3e4e229' }, + De('editorWhitespaces', 'Color of whitespace characters in the editor.') + ), + _C = Xl( + 'editorIndentGuide.background', + { dark: mC, light: mC, hc: mC }, + De('editorIndentGuides', 'Color of the editor indentation guides.') + ), + yC = Xl( + 'editorIndentGuide.activeBackground', + { dark: mC, light: mC, hc: mC }, + De( + 'editorActiveIndentGuide', + 'Color of the active editor indentation guides.' + ) + ), + vC = Xl( + 'editorLineNumber.foreground', + { dark: '#858585', light: '#237893', hc: Nu.white }, + De('editorLineNumbers', 'Color of editor line numbers.') + ), + bC = Xl( + 'editorActiveLineNumber.foreground', + { dark: '#c6c6c6', light: '#0B216F', hc: ic }, + De('editorActiveLineNumber', 'Color of editor active line number'), + !1, + De( + 'deprecatedEditorActiveLineNumber', + "Id is deprecated. Use 'editorLineNumber.activeForeground' instead." + ) + ), + wC = Xl( + 'editorLineNumber.activeForeground', + { dark: bC, light: bC, hc: bC }, + De('editorActiveLineNumber', 'Color of editor active line number') + ), + CC = Xl( + 'editorRuler.foreground', + { dark: '#5A5A5A', light: Nu.lightgrey, hc: Nu.white }, + De('editorRuler', 'Color of the editor rulers.') + ), + SC = + (Xl( + 'editorCodeLens.foreground', + { dark: '#999999', light: '#999999', hc: '#999999' }, + De( + 'editorCodeLensForeground', + 'Foreground color of editor code lenses' + ) + ), + Xl( + 'editorBracketMatch.background', + { dark: '#0064001a', light: '#0064001a', hc: '#0064001a' }, + De( + 'editorBracketMatchBackground', + 'Background color behind matching brackets' + ) + ), + Xl( + 'editorBracketMatch.border', + { dark: '#888', light: '#B9B9B9', hc: rc }, + De('editorBracketMatchBorder', 'Color for matching brackets boxes') + ), + Xl( + 'editorOverviewRuler.border', + { dark: '#7f7f7f4d', light: '#7f7f7f4d', hc: '#7f7f7f4d' }, + De('editorOverviewRulerBorder', 'Color of the overview ruler border.') + )), + xC = Xl( + 'editorGutter.background', + { dark: td, light: td, hc: td }, + De( + 'editorGutter', + 'Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.' + ) + ), + LC = Xl( + 'editorUnnecessaryCode.border', + { dark: null, light: null, hc: Nu.fromHex('#fff').transparent(0.8) }, + De( + 'unnecessaryCodeBorder', + 'Border color of unnecessary (unused) source code in the editor.' + ) + ), + kC = Xl( + 'editorUnnecessaryCode.opacity', + { dark: Nu.fromHex('#000a'), light: Nu.fromHex('#0007'), hc: null }, + De( + 'unnecessaryCodeOpacity', + 'Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the \'editorUnnecessaryCode.border\' theme color to underline unnecessary code instead of fading it out.' + ) + ), + MC = Xl( + 'editorOverviewRuler.errorForeground', + { + dark: new Nu(new Du(255, 18, 18, 0.7)), + light: new Nu(new Du(255, 18, 18, 0.7)), + hc: new Nu(new Du(255, 50, 50, 1)), + }, + De('overviewRuleError', 'Overview ruler marker color for errors.') + ), + DC = Xl( + 'editorOverviewRuler.warningForeground', + { dark: $c, light: $c, hc: Zc }, + De('overviewRuleWarning', 'Overview ruler marker color for warnings.') + ), + EC = Xl( + 'editorOverviewRuler.infoForeground', + { dark: Xc, light: Xc, hc: Jc }, + De('overviewRuleInfo', 'Overview ruler marker color for infos.') + ); + Bd(function (e, t) { + var n = e.getColor(td); + n && + t.addRule( + '.monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: ' + + n + + '; }' + ); + var r = e.getColor(nd); + r && + t.addRule( + '.monaco-editor, .monaco-editor .inputarea.ime-input { color: ' + + r + + '; }' + ); + var i = e.getColor(xC); + i && t.addRule('.monaco-editor .margin { background-color: ' + i + '; }'); + var o = e.getColor(hC); + o && + t.addRule( + '.monaco-editor .rangeHighlight { background-color: ' + o + '; }' + ); + var s = e.getColor(fC); + s && + t.addRule( + '.monaco-editor .rangeHighlight { border: 1px ' + + ('hc' === e.type ? 'dotted' : 'solid') + + ' ' + + s + + '; }' + ); + var a = e.getColor(mC); + a && t.addRule('.vs-whitespace { color: ' + a + ' !important; }'); + }); + var TC = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + NC = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + n._readConfig(), + (n._lastCursorModelPosition = new xt(1, 1)), + (n._renderResult = null), + n._context.addEventHandler(n), + n + ); + } + return ( + TC(t, e), + (t.prototype._readConfig = function () { + var e = this._context.configuration.editor; + (this._lineHeight = e.lineHeight), + (this._renderLineNumbers = e.viewInfo.renderLineNumbers), + (this._renderCustomLineNumbers = + e.viewInfo.renderCustomLineNumbers), + (this._renderFinalNewline = e.viewInfo.renderFinalNewline), + (this._lineNumbersLeft = e.layoutInfo.lineNumbersLeft), + (this._lineNumbersWidth = e.layoutInfo.lineNumbersWidth); + }), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + (this._renderResult = null), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return this._readConfig(), !0; + }), + (t.prototype.onCursorStateChanged = function (e) { + var t = e.selections[0].getPosition(); + return ( + (this._lastCursorModelPosition = this._context.model.coordinatesConverter.convertViewPositionToModelPosition( + t + )), + 2 === this._renderLineNumbers || 3 === this._renderLineNumbers + ); + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype._getLineRenderLineNumber = function (e) { + var t = this._context.model.coordinatesConverter.convertViewPositionToModelPosition( + new xt(e, 1) + ); + if (1 !== t.column) return ''; + var n = t.lineNumber; + if (!this._renderFinalNewline) { + var r = this._context.model.getLineCount(), + i = this._context.model.getLineContent(n); + if (n === r && '' === i) return ''; + } + if (this._renderCustomLineNumbers) + return this._renderCustomLineNumbers(n); + if (2 === this._renderLineNumbers) { + var o = Math.abs(this._lastCursorModelPosition.lineNumber - n); + return 0 === o + ? '' + n + '' + : String(o); + } + return 3 === this._renderLineNumbers + ? this._lastCursorModelPosition.lineNumber === n + ? String(n) + : n % 10 == 0 + ? String(n) + : '' + : String(n); + }), + (t.prototype.prepareRender = function (e) { + if (0 !== this._renderLineNumbers) { + for ( + var n = tt.c + ? this._lineHeight % 2 == 0 + ? ' lh-even' + : ' lh-odd' + : '', + r = e.visibleRange.startLineNumber, + i = e.visibleRange.endLineNumber, + o = + '
', + s = [], + a = r; + a <= i; + a++ + ) { + var u = a - r, + l = this._getLineRenderLineNumber(a); + s[u] = l ? o + l + '
' : ''; + } + this._renderResult = s; + } else this._renderResult = null; + }), + (t.prototype.render = function (e, t) { + if (!this._renderResult) return ''; + var n = t - e; + return n < 0 || n >= this._renderResult.length + ? '' + : this._renderResult[n]; + }), + (t.CLASS_NAME = 'line-numbers'), + t + ); + })(lC); + Bd(function (e, t) { + var n = e.getColor(vC); + n && t.addRule('.monaco-editor .line-numbers { color: ' + n + '; }'); + var r = e.getColor(wC); + r && + t.addRule( + '.monaco-editor .current-line ~ .line-numbers { color: ' + r + '; }' + ); + }); + var OC = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + AC = (function (e) { + function t(n) { + var r = e.call(this, n) || this; + return ( + (r._canUseLayerHinting = + r._context.configuration.editor.canUseLayerHinting), + (r._contentLeft = + r._context.configuration.editor.layoutInfo.contentLeft), + (r._glyphMarginLeft = + r._context.configuration.editor.layoutInfo.glyphMarginLeft), + (r._glyphMarginWidth = + r._context.configuration.editor.layoutInfo.glyphMarginWidth), + (r._domNode = Mp(document.createElement('div'))), + r._domNode.setClassName(t.OUTER_CLASS_NAME), + r._domNode.setPosition('absolute'), + r._domNode.setAttribute('role', 'presentation'), + r._domNode.setAttribute('aria-hidden', 'true'), + (r._glyphMarginBackgroundDomNode = Mp( + document.createElement('div') + )), + r._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME), + r._domNode.appendChild(r._glyphMarginBackgroundDomNode), + r + ); + } + return ( + OC(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.canUseLayerHinting && + (this._canUseLayerHinting = this._context.configuration.editor.canUseLayerHinting), + e.layoutInfo && + ((this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft), + (this._glyphMarginLeft = this._context.configuration.editor.layoutInfo.glyphMarginLeft), + (this._glyphMarginWidth = this._context.configuration.editor.layoutInfo.glyphMarginWidth)), + !0 + ); + }), + (t.prototype.onScrollChanged = function (t) { + return ( + e.prototype.onScrollChanged.call(this, t) || t.scrollTopChanged + ); + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + this._domNode.setLayerHinting(this._canUseLayerHinting); + var t = e.scrollTop - e.bigNumbersDelta; + this._domNode.setTop(-t); + var n = Math.min(e.scrollHeight, 1e6); + this._domNode.setHeight(n), + this._domNode.setWidth(this._contentLeft), + this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft), + this._glyphMarginBackgroundDomNode.setWidth( + this._glyphMarginWidth + ), + this._glyphMarginBackgroundDomNode.setHeight(n); + }), + (t.CLASS_NAME = 'glyph-margin'), + (t.OUTER_CLASS_NAME = 'margin'), + t + ); + })(mw), + IC = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + PC = function (e) { + (this.type = 1), + (this.canUseLayerHinting = e.canUseLayerHinting), + (this.pixelRatio = e.pixelRatio), + (this.editorClassName = e.editorClassName), + (this.lineHeight = e.lineHeight), + (this.readOnly = e.readOnly), + (this.accessibilitySupport = e.accessibilitySupport), + (this.emptySelectionClipboard = e.emptySelectionClipboard), + (this.copyWithSyntaxHighlighting = e.copyWithSyntaxHighlighting), + (this.layoutInfo = e.layoutInfo), + (this.fontInfo = e.fontInfo), + (this.viewInfo = e.viewInfo), + (this.wrappingInfo = e.wrappingInfo); + }, + RC = function (e) { + (this.type = 2), (this.selections = e); + }, + FC = function () { + this.type = 3; + }, + YC = function () { + this.type = 4; + }, + jC = function (e) { + (this.type = 5), (this.isFocused = e); + }, + BC = function () { + this.type = 6; + }, + WC = function (e, t) { + (this.type = 7), (this.fromLineNumber = e), (this.toLineNumber = t); + }, + HC = function (e, t) { + (this.type = 8), (this.fromLineNumber = e), (this.toLineNumber = t); + }, + VC = function (e, t) { + (this.type = 9), (this.fromLineNumber = e), (this.toLineNumber = t); + }, + zC = function (e, t, n, r) { + (this.type = 10), + (this.range = e), + (this.verticalType = t), + (this.revealHorizontal = n), + (this.scrollType = r); + }, + UC = function (e) { + (this.type = 11), + (this.scrollWidth = e.scrollWidth), + (this.scrollLeft = e.scrollLeft), + (this.scrollHeight = e.scrollHeight), + (this.scrollTop = e.scrollTop), + (this.scrollWidthChanged = e.scrollWidthChanged), + (this.scrollLeftChanged = e.scrollLeftChanged), + (this.scrollHeightChanged = e.scrollHeightChanged), + (this.scrollTopChanged = e.scrollTopChanged); + }, + qC = function (e) { + (this.type = 12), (this.ranges = e); + }, + KC = function () { + this.type = 15; + }, + GC = function () { + this.type = 13; + }, + $C = function () { + this.type = 14; + }, + ZC = function () { + this.type = 16; + }, + XC = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._listeners = []), (t._collector = null), (t._collectorCnt = 0), t + ); + } + return ( + IC(t, e), + (t.prototype.dispose = function () { + (this._listeners = []), e.prototype.dispose.call(this); + }), + (t.prototype._beginEmit = function () { + return ( + this._collectorCnt++, + 1 === this._collectorCnt && (this._collector = new JC()), + this._collector + ); + }), + (t.prototype._endEmit = function () { + if ((this._collectorCnt--, 0 === this._collectorCnt)) { + var e = this._collector.finalize(); + (this._collector = null), e.length > 0 && this._emit(e); + } + }), + (t.prototype._emit = function (e) { + for ( + var t = this._listeners.slice(0), n = 0, r = t.length; + n < r; + n++ + ) + QC(t[n], e); + }), + (t.prototype.addEventListener = function (e) { + var t = this; + return ( + this._listeners.push(e), + It(function () { + for (var n = t._listeners, r = 0, i = n.length; r < i; r++) + if (n[r] === e) { + n.splice(r, 1); + break; + } + }) + ); + }), + t + ); + })(Rt), + JC = (function () { + function e() { + (this._eventsLen = 0), (this._events = []), (this._eventsLen = 0); + } + return ( + (e.prototype.emit = function (e) { + this._events[this._eventsLen++] = e; + }), + (e.prototype.finalize = function () { + var e = this._events; + return (this._events = []), e; + }), + e + ); + })(); + function QC(e, t) { + try { + e(t); + } catch (e) { + qe(e); + } + } + var eS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + tS = (function () { + function e(e, t, n) { + (this.top = e), (this.left = t), (this.width = n); + } + return ( + (e.prototype.setWidth = function (t) { + return new e(this.top, this.left, t); + }), + e + ); + })(), + nS = lh || ch, + rS = (function () { + function e() { + this._lastState = null; + } + return ( + (e.prototype.set = function (e) { + this._lastState = e; + }), + (e.prototype.get = function (e) { + return this._lastState && this._lastState.lastCopiedValue === e + ? this._lastState + : ((this._lastState = null), null); + }), + (e.INSTANCE = new e()), + e + ); + })(), + iS = (function (e) { + function t(t, n, r) { + var i = e.call(this, t) || this; + (i._primaryCursorVisibleRange = null), + (i._viewController = n), + (i._viewHelper = r); + var o = i._context.configuration.editor; + (i._accessibilitySupport = o.accessibilitySupport), + (i._contentLeft = o.layoutInfo.contentLeft), + (i._contentWidth = o.layoutInfo.contentWidth), + (i._contentHeight = o.layoutInfo.contentHeight), + (i._scrollLeft = 0), + (i._scrollTop = 0), + (i._fontInfo = o.fontInfo), + (i._lineHeight = o.lineHeight), + (i._emptySelectionClipboard = o.emptySelectionClipboard), + (i._copyWithSyntaxHighlighting = o.copyWithSyntaxHighlighting), + (i._visibleTextArea = null), + (i._selections = [new jr(1, 1, 1, 1)]), + (i.textArea = Mp(document.createElement('textarea'))), + _w.write(i.textArea, 6), + i.textArea.setClassName('inputarea'), + i.textArea.setAttribute('wrap', 'off'), + i.textArea.setAttribute('autocorrect', 'off'), + i.textArea.setAttribute('autocapitalize', 'off'), + i.textArea.setAttribute('autocomplete', 'off'), + i.textArea.setAttribute('spellcheck', 'false'), + i.textArea.setAttribute('aria-label', o.viewInfo.ariaLabel), + i.textArea.setAttribute('role', 'textbox'), + i.textArea.setAttribute('aria-multiline', 'true'), + i.textArea.setAttribute('aria-haspopup', 'false'), + i.textArea.setAttribute('aria-autocomplete', 'both'), + (i.textAreaCover = Mp(document.createElement('div'))), + i.textAreaCover.setPosition('absolute'); + var s = { + getLineCount: function () { + return i._context.model.getLineCount(); + }, + getLineMaxColumn: function (e) { + return i._context.model.getLineMaxColumn(e); + }, + getValueInRange: function (e, t) { + return i._context.model.getValueInRange(e, t); + }, + }, + a = { + getPlainTextToCopy: function () { + var e = i._context.model.getPlainTextToCopy( + i._selections, + i._emptySelectionClipboard, + tt.g + ), + t = i._context.model.getEOL(), + n = + i._emptySelectionClipboard && + 1 === i._selections.length && + i._selections[0].isEmpty(), + r = Array.isArray(e) ? e : null, + o = Array.isArray(e) ? e.join(t) : e, + s = null; + (n || r) && + (s = { + lastCopiedValue: ch ? o.replace(/\r\n/g, '\n') : o, + isFromEmptySelection: + i._emptySelectionClipboard && + 1 === i._selections.length && + i._selections[0].isEmpty(), + multicursorText: r, + }); + return rS.INSTANCE.set(s), o; + }, + getHTMLToCopy: function () { + return i._copyWithSyntaxHighlighting || + iC.forceCopyWithSyntaxHighlighting + ? i._context.model.getHTMLToCopy( + i._selections, + i._emptySelectionClipboard + ) + : null; + }, + getScreenReaderContent: function (e) { + if (gh) return tC.EMPTY; + if (1 === i._accessibilitySupport) { + if (tt.d) { + var t = i._selections[0]; + if (t.isEmpty()) { + var n = t.getStartPosition(), + r = i._getWordBeforePosition(n); + if ( + (0 === r.length && + (r = i._getCharacterBeforePosition(n)), + r.length > 0) + ) + return new tC(r, r.length, r.length, n, n); + } + } + return tC.EMPTY; + } + return nC.fromEditorSelection( + e, + s, + i._selections[0], + 0 === i._accessibilitySupport + ); + }, + deduceModelPosition: function (e, t, n) { + return i._context.model.deduceModelPositionRelativeToViewPosition( + e, + t, + n + ); + }, + }; + return ( + (i._textAreaInput = i._register(new oC(a, i.textArea))), + i._register( + i._textAreaInput.onKeyDown(function (e) { + i._viewController.emitKeyDown(e); + }) + ), + i._register( + i._textAreaInput.onKeyUp(function (e) { + i._viewController.emitKeyUp(e); + }) + ), + i._register( + i._textAreaInput.onPaste(function (e) { + var t = rS.INSTANCE.get(e.text), + n = !1, + r = null; + t && + ((n = i._emptySelectionClipboard && t.isFromEmptySelection), + (r = t.multicursorText)), + i._viewController.paste('keyboard', e.text, n, r); + }) + ), + i._register( + i._textAreaInput.onCut(function () { + i._viewController.cut('keyboard'); + }) + ), + i._register( + i._textAreaInput.onType(function (e) { + e.replaceCharCnt + ? i._viewController.replacePreviousChar( + 'keyboard', + e.text, + e.replaceCharCnt + ) + : i._viewController.type('keyboard', e.text); + }) + ), + i._register( + i._textAreaInput.onSelectionChangeRequest(function (e) { + i._viewController.setSelection('keyboard', e); + }) + ), + i._register( + i._textAreaInput.onCompositionStart(function () { + var e = i._selections[0].startLineNumber, + t = i._selections[0].startColumn; + i._context.privateViewEventBus.emit( + new zC(new Fr(e, t, e, t), 0, !0, 1) + ); + var n = i._viewHelper.visibleRangeForPositionRelativeToEditor( + e, + t + ); + n && + ((i._visibleTextArea = new tS( + i._context.viewLayout.getVerticalOffsetForLineNumber(e), + n.left, + nS ? 0 : 1 + )), + i._render()), + i.textArea.setClassName('inputarea ime-input'), + i._viewController.compositionStart('keyboard'); + }) + ), + i._register( + i._textAreaInput.onCompositionUpdate(function (e) { + (i._visibleTextArea = lh + ? i._visibleTextArea.setWidth(0) + : i._visibleTextArea.setWidth( + (function (e, t) { + var n = document + .createElement('canvas') + .getContext('2d'); + n.font = + ((r = t), + (i = 'normal'), + (o = r.fontWeight), + (s = r.fontSize), + (a = r.lineHeight), + (u = r.fontFamily), + i + + ' normal ' + + o + + ' ' + + s + + 'px / ' + + a + + 'px ' + + u); + var r, i, o, s, a, u; + var l = n.measureText(e); + return ch ? l.width + 2 : l.width; + })(e.data, i._fontInfo) + )), + i._render(); + }) + ), + i._register( + i._textAreaInput.onCompositionEnd(function () { + (i._visibleTextArea = null), + i._render(), + i.textArea.setClassName('inputarea'), + i._viewController.compositionEnd('keyboard'); + }) + ), + i._register( + i._textAreaInput.onFocus(function () { + i._context.privateViewEventBus.emit(new jC(!0)); + }) + ), + i._register( + i._textAreaInput.onBlur(function () { + i._context.privateViewEventBus.emit(new jC(!1)); + }) + ), + i + ); + } + return ( + eS(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype._getWordBeforePosition = function (e) { + for ( + var t = this._context.model.getLineContent(e.lineNumber), + n = Lo(this._context.configuration.editor.wordSeparators), + r = e.column, + i = 0; + r > 1; + + ) { + var o = t.charCodeAt(r - 2); + if (0 !== n.get(o) || i > 50) + return t.substring(r - 1, e.column - 1); + i++, r--; + } + return t.substring(0, e.column - 1); + }), + (t.prototype._getCharacterBeforePosition = function (e) { + if (e.column > 1) { + var t = this._context.model + .getLineContent(e.lineNumber) + .charAt(e.column - 2); + if (!Sn(t.charCodeAt(0))) return t; + } + return ''; + }), + (t.prototype.onConfigurationChanged = function (e) { + var t = this._context.configuration.editor; + return ( + e.fontInfo && (this._fontInfo = t.fontInfo), + e.viewInfo && + this.textArea.setAttribute('aria-label', t.viewInfo.ariaLabel), + e.layoutInfo && + ((this._contentLeft = t.layoutInfo.contentLeft), + (this._contentWidth = t.layoutInfo.contentWidth), + (this._contentHeight = t.layoutInfo.contentHeight)), + e.lineHeight && (this._lineHeight = t.lineHeight), + e.accessibilitySupport && + ((this._accessibilitySupport = t.accessibilitySupport), + this._textAreaInput.writeScreenReaderContent( + 'strategy changed' + )), + e.emptySelectionClipboard && + (this._emptySelectionClipboard = t.emptySelectionClipboard), + e.copyWithSyntaxHighlighting && + (this._copyWithSyntaxHighlighting = + t.copyWithSyntaxHighlighting), + !0 + ); + }), + (t.prototype.onCursorStateChanged = function (e) { + return ( + (this._selections = e.selections.slice(0)), + this._textAreaInput.writeScreenReaderContent('selection changed'), + !0 + ); + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return ( + (this._scrollLeft = e.scrollLeft), + (this._scrollTop = e.scrollTop), + !0 + ); + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.isFocused = function () { + return this._textAreaInput.isFocused(); + }), + (t.prototype.focusTextArea = function () { + this._textAreaInput.focusTextArea(); + }), + (t.prototype.prepareRender = function (e) { + var t = new xt( + this._selections[0].positionLineNumber, + this._selections[0].positionColumn + ); + this._primaryCursorVisibleRange = e.visibleRangeForPosition(t); + }), + (t.prototype.render = function (e) { + this._textAreaInput.writeScreenReaderContent('render'), + this._render(); + }), + (t.prototype._render = function () { + if (this._visibleTextArea) + this._renderInsideEditor( + this._visibleTextArea.top - this._scrollTop, + this._contentLeft + + this._visibleTextArea.left - + this._scrollLeft, + this._visibleTextArea.width, + this._lineHeight, + !0 + ); + else if (this._primaryCursorVisibleRange) { + var e = + this._contentLeft + + this._primaryCursorVisibleRange.left - + this._scrollLeft; + if ( + e < this._contentLeft || + e > this._contentLeft + this._contentWidth + ) + this._renderAtTopLeft(); + else { + var t = + this._context.viewLayout.getVerticalOffsetForLineNumber( + this._selections[0].positionLineNumber + ) - this._scrollTop; + t < 0 || t > this._contentHeight + ? this._renderAtTopLeft() + : this._renderInsideEditor(t, e, nS ? 0 : 1, nS ? 0 : 1, !1); + } + } else this._renderAtTopLeft(); + }), + (t.prototype._renderInsideEditor = function (e, t, n, r, i) { + var o = this.textArea, + s = this.textAreaCover; + i + ? iw.applyFontInfo(o, this._fontInfo) + : (o.setFontSize(1), o.setLineHeight(this._fontInfo.lineHeight)), + o.setTop(e), + o.setLeft(t), + o.setWidth(n), + o.setHeight(r), + s.setTop(0), + s.setLeft(0), + s.setWidth(0), + s.setHeight(0); + }), + (t.prototype._renderAtTopLeft = function () { + var e = this.textArea, + t = this.textAreaCover; + if ( + (iw.applyFontInfo(e, this._fontInfo), + e.setTop(0), + e.setLeft(0), + t.setTop(0), + t.setLeft(0), + nS) + ) + return ( + e.setWidth(0), + e.setHeight(0), + t.setWidth(0), + void t.setHeight(0) + ); + e.setWidth(1), + e.setHeight(1), + t.setWidth(1), + t.setHeight(1), + this._context.configuration.editor.viewInfo.glyphMargin + ? t.setClassName( + 'monaco-editor-background textAreaCover ' + + AC.OUTER_CLASS_NAME + ) + : 0 !== + this._context.configuration.editor.viewInfo.renderLineNumbers + ? t.setClassName( + 'monaco-editor-background textAreaCover ' + NC.CLASS_NAME + ) + : t.setClassName('monaco-editor-background textAreaCover'); + }), + t + ); + })(mw); + var oS = (function () { + function e(e, t, n, r) { + (this.configuration = e), + (this.viewModel = t), + (this.outgoingEvents = n), + (this.commandDelegate = r); + } + return ( + (e.prototype._execMouseCommand = function (e, t) { + (t.source = 'mouse'), + this.commandDelegate.executeEditorCommand(e, t); + }), + (e.prototype.paste = function (e, t, n, r) { + this.commandDelegate.paste(e, t, n, r); + }), + (e.prototype.type = function (e, t) { + this.commandDelegate.type(e, t); + }), + (e.prototype.replacePreviousChar = function (e, t, n) { + this.commandDelegate.replacePreviousChar(e, t, n); + }), + (e.prototype.compositionStart = function (e) { + this.commandDelegate.compositionStart(e); + }), + (e.prototype.compositionEnd = function (e) { + this.commandDelegate.compositionEnd(e); + }), + (e.prototype.cut = function (e) { + this.commandDelegate.cut(e); + }), + (e.prototype.setSelection = function (e, t) { + this.commandDelegate.executeEditorCommand(Rl.SetSelection, { + source: e, + selection: t, + }); + }), + (e.prototype._validateViewColumn = function (e) { + var t = this.viewModel.getLineMinColumn(e.lineNumber); + return e.column < t ? new xt(e.lineNumber, t) : e; + }), + (e.prototype._hasMulticursorModifier = function (e) { + switch (this.configuration.editor.multiCursorModifier) { + case 'altKey': + return e.altKey; + case 'ctrlKey': + return e.ctrlKey; + case 'metaKey': + return e.metaKey; + } + return !1; + }), + (e.prototype._hasNonMulticursorModifier = function (e) { + switch (this.configuration.editor.multiCursorModifier) { + case 'altKey': + return e.ctrlKey || e.metaKey; + case 'ctrlKey': + return e.altKey || e.metaKey; + case 'metaKey': + return e.ctrlKey || e.altKey; + } + return !1; + }), + (e.prototype.dispatchMouse = function (e) { + e.middleButton + ? e.inSelectionMode + ? this._columnSelect(e.position, e.mouseColumn, !0) + : this.moveTo(e.position) + : e.startedOnLineNumbers + ? this._hasMulticursorModifier(e) + ? e.inSelectionMode + ? this._lastCursorLineSelect(e.position) + : this._createCursor(e.position, !0) + : e.inSelectionMode + ? this._lineSelectDrag(e.position) + : this._lineSelect(e.position) + : e.mouseDownCount >= 4 + ? this._selectAll() + : 3 === e.mouseDownCount + ? this._hasMulticursorModifier(e) + ? e.inSelectionMode + ? this._lastCursorLineSelectDrag(e.position) + : this._lastCursorLineSelect(e.position) + : e.inSelectionMode + ? this._lineSelectDrag(e.position) + : this._lineSelect(e.position) + : 2 === e.mouseDownCount + ? this._hasMulticursorModifier(e) + ? this._lastCursorWordSelect(e.position) + : e.inSelectionMode + ? this._wordSelectDrag(e.position) + : this._wordSelect(e.position) + : this._hasMulticursorModifier(e) + ? this._hasNonMulticursorModifier(e) || + (e.shiftKey + ? this._columnSelect(e.position, e.mouseColumn, !1) + : e.inSelectionMode + ? this._lastCursorMoveToSelect(e.position) + : this._createCursor(e.position, !1)) + : e.inSelectionMode + ? e.altKey + ? this._columnSelect(e.position, e.mouseColumn, !0) + : this._moveToSelect(e.position) + : this.moveTo(e.position); + }), + (e.prototype._usualArgs = function (e) { + return ( + (e = this._validateViewColumn(e)), + { position: this._convertViewToModelPosition(e), viewPosition: e } + ); + }), + (e.prototype.moveTo = function (e) { + this._execMouseCommand(Rl.MoveTo, this._usualArgs(e)); + }), + (e.prototype._moveToSelect = function (e) { + this._execMouseCommand(Rl.MoveToSelect, this._usualArgs(e)); + }), + (e.prototype._columnSelect = function (e, t, n) { + (e = this._validateViewColumn(e)), + this._execMouseCommand(Rl.ColumnSelect, { + position: this._convertViewToModelPosition(e), + viewPosition: e, + mouseColumn: t, + setAnchorIfNotSet: n, + }); + }), + (e.prototype._createCursor = function (e, t) { + (e = this._validateViewColumn(e)), + this._execMouseCommand(Rl.CreateCursor, { + position: this._convertViewToModelPosition(e), + viewPosition: e, + wholeLine: t, + }); + }), + (e.prototype._lastCursorMoveToSelect = function (e) { + this._execMouseCommand( + Rl.LastCursorMoveToSelect, + this._usualArgs(e) + ); + }), + (e.prototype._wordSelect = function (e) { + this._execMouseCommand(Rl.WordSelect, this._usualArgs(e)); + }), + (e.prototype._wordSelectDrag = function (e) { + this._execMouseCommand(Rl.WordSelectDrag, this._usualArgs(e)); + }), + (e.prototype._lastCursorWordSelect = function (e) { + this._execMouseCommand(Rl.LastCursorWordSelect, this._usualArgs(e)); + }), + (e.prototype._lineSelect = function (e) { + this._execMouseCommand(Rl.LineSelect, this._usualArgs(e)); + }), + (e.prototype._lineSelectDrag = function (e) { + this._execMouseCommand(Rl.LineSelectDrag, this._usualArgs(e)); + }), + (e.prototype._lastCursorLineSelect = function (e) { + this._execMouseCommand(Rl.LastCursorLineSelect, this._usualArgs(e)); + }), + (e.prototype._lastCursorLineSelectDrag = function (e) { + this._execMouseCommand( + Rl.LastCursorLineSelectDrag, + this._usualArgs(e) + ); + }), + (e.prototype._selectAll = function () { + this._execMouseCommand(Rl.SelectAll, {}); + }), + (e.prototype._convertViewToModelPosition = function (e) { + return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition( + e + ); + }), + (e.prototype.emitKeyDown = function (e) { + this.outgoingEvents.emitKeyDown(e); + }), + (e.prototype.emitKeyUp = function (e) { + this.outgoingEvents.emitKeyUp(e); + }), + (e.prototype.emitContextMenu = function (e) { + this.outgoingEvents.emitContextMenu(e); + }), + (e.prototype.emitMouseMove = function (e) { + this.outgoingEvents.emitMouseMove(e); + }), + (e.prototype.emitMouseLeave = function (e) { + this.outgoingEvents.emitMouseLeave(e); + }), + (e.prototype.emitMouseUp = function (e) { + this.outgoingEvents.emitMouseUp(e); + }), + (e.prototype.emitMouseDown = function (e) { + this.outgoingEvents.emitMouseDown(e); + }), + (e.prototype.emitMouseDrag = function (e) { + this.outgoingEvents.emitMouseDrag(e); + }), + (e.prototype.emitMouseDrop = function (e) { + this.outgoingEvents.emitMouseDrop(e); + }), + (e.prototype.emitMouseWheel = function (e) { + this.outgoingEvents.emitMouseWheel(e); + }), + e + ); + })(), + sS = (function () { + function e(e) { + (this._createLine = e), this._set(1, []); + } + return ( + (e.prototype.flush = function () { + this._set(1, []); + }), + (e.prototype._set = function (e, t) { + (this._lines = t), (this._rendLineNumberStart = e); + }), + (e.prototype._get = function () { + return { + rendLineNumberStart: this._rendLineNumberStart, + lines: this._lines, + }; + }), + (e.prototype.getStartLineNumber = function () { + return this._rendLineNumberStart; + }), + (e.prototype.getEndLineNumber = function () { + return this._rendLineNumberStart + this._lines.length - 1; + }), + (e.prototype.getCount = function () { + return this._lines.length; + }), + (e.prototype.getLine = function (e) { + var t = e - this._rendLineNumberStart; + if (t < 0 || t >= this._lines.length) + throw new Error('Illegal value for lineNumber'); + return this._lines[t]; + }), + (e.prototype.onLinesDeleted = function (e, t) { + if (0 === this.getCount()) return null; + var n = this.getStartLineNumber(), + r = this.getEndLineNumber(); + if (t < n) { + var i = t - e + 1; + return (this._rendLineNumberStart -= i), null; + } + if (e > r) return null; + for (var o = 0, s = 0, a = n; a <= r; a++) { + var u = a - this._rendLineNumberStart; + e <= a && a <= t && (0 === s ? ((o = u), (s = 1)) : s++); + } + if (e < n) { + var l = 0; + (l = t < n ? t - e + 1 : n - e), (this._rendLineNumberStart -= l); + } + return this._lines.splice(o, s); + }), + (e.prototype.onLinesChanged = function (e, t) { + if (0 === this.getCount()) return !1; + for ( + var n = this.getStartLineNumber(), + r = this.getEndLineNumber(), + i = !1, + o = e; + o <= t; + o++ + ) + o >= n && + o <= r && + (this._lines[o - this._rendLineNumberStart].onContentChanged(), + (i = !0)); + return i; + }), + (e.prototype.onLinesInserted = function (e, t) { + if (0 === this.getCount()) return null; + var n = t - e + 1, + r = this.getStartLineNumber(), + i = this.getEndLineNumber(); + if (e <= r) return (this._rendLineNumberStart += n), null; + if (e > i) return null; + if (n + e > i) + return this._lines.splice( + e - this._rendLineNumberStart, + i - e + 1 + ); + for (var o = [], s = 0; s < n; s++) o[s] = this._createLine(); + var a = e - this._rendLineNumberStart, + u = this._lines.slice(0, a), + l = this._lines.slice(a, this._lines.length - n), + c = this._lines.slice(this._lines.length - n, this._lines.length); + return (this._lines = u.concat(o).concat(l)), c; + }), + (e.prototype.onTokensChanged = function (e) { + if (0 === this.getCount()) return !1; + for ( + var t = this.getStartLineNumber(), + n = this.getEndLineNumber(), + r = !1, + i = 0, + o = e.length; + i < o; + i++ + ) { + var s = e[i]; + if (!(s.toLineNumber < t || s.fromLineNumber > n)) + for ( + var a = Math.max(t, s.fromLineNumber), + u = Math.min(n, s.toLineNumber), + l = a; + l <= u; + l++ + ) { + var c = l - this._rendLineNumberStart; + this._lines[c].onTokensChanged(), (r = !0); + } + } + return r; + }), + e + ); + })(), + aS = (function () { + function e(e) { + var t = this; + (this._host = e), + (this.domNode = this._createDomNode()), + (this._linesCollection = new sS(function () { + return t._host.createVisibleLine(); + })); + } + return ( + (e.prototype._createDomNode = function () { + var e = Mp(document.createElement('div')); + return ( + e.setClassName('view-layer'), + e.setPosition('absolute'), + e.domNode.setAttribute('role', 'presentation'), + e.domNode.setAttribute('aria-hidden', 'true'), + e + ); + }), + (e.prototype.onConfigurationChanged = function (e) { + return e.layoutInfo; + }), + (e.prototype.onFlushed = function (e) { + return this._linesCollection.flush(), !0; + }), + (e.prototype.onLinesChanged = function (e) { + return this._linesCollection.onLinesChanged( + e.fromLineNumber, + e.toLineNumber + ); + }), + (e.prototype.onLinesDeleted = function (e) { + var t = this._linesCollection.onLinesDeleted( + e.fromLineNumber, + e.toLineNumber + ); + if (t) + for (var n = 0, r = t.length; n < r; n++) { + var i = t[n].getDomNode(); + i && this.domNode.domNode.removeChild(i); + } + return !0; + }), + (e.prototype.onLinesInserted = function (e) { + var t = this._linesCollection.onLinesInserted( + e.fromLineNumber, + e.toLineNumber + ); + if (t) + for (var n = 0, r = t.length; n < r; n++) { + var i = t[n].getDomNode(); + i && this.domNode.domNode.removeChild(i); + } + return !0; + }), + (e.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged; + }), + (e.prototype.onTokensChanged = function (e) { + return this._linesCollection.onTokensChanged(e.ranges); + }), + (e.prototype.onZonesChanged = function (e) { + return !0; + }), + (e.prototype.getStartLineNumber = function () { + return this._linesCollection.getStartLineNumber(); + }), + (e.prototype.getEndLineNumber = function () { + return this._linesCollection.getEndLineNumber(); + }), + (e.prototype.getVisibleLine = function (e) { + return this._linesCollection.getLine(e); + }), + (e.prototype.renderLines = function (e) { + var t = this._linesCollection._get(), + n = new uS(this.domNode.domNode, this._host, e), + r = { + rendLineNumberStart: t.rendLineNumberStart, + lines: t.lines, + linesLength: t.lines.length, + }, + i = n.render( + r, + e.startLineNumber, + e.endLineNumber, + e.relativeVerticalOffset + ); + this._linesCollection._set(i.rendLineNumberStart, i.lines); + }), + e + ); + })(), + uS = (function () { + function e(e, t, n) { + (this.domNode = e), (this.host = t), (this.viewportData = n); + } + return ( + (e.prototype.render = function (e, t, n, r) { + var i = { + rendLineNumberStart: e.rendLineNumberStart, + lines: e.lines.slice(0), + linesLength: e.linesLength, + }; + if ( + i.rendLineNumberStart + i.linesLength - 1 < t || + n < i.rendLineNumberStart + ) { + (i.rendLineNumberStart = t), + (i.linesLength = n - t + 1), + (i.lines = []); + for (var o = t; o <= n; o++) + i.lines[o - t] = this.host.createVisibleLine(); + return this._finishRendering(i, !0, r), i; + } + if ( + (this._renderUntouchedLines( + i, + Math.max(t - i.rendLineNumberStart, 0), + Math.min(n - i.rendLineNumberStart, i.linesLength - 1), + r, + t + ), + i.rendLineNumberStart > t) + ) + (u = t) <= (s = Math.min(n, i.rendLineNumberStart - 1)) && + (this._insertLinesBefore(i, u, s, r, t), + (i.linesLength += s - u + 1)); + else if (i.rendLineNumberStart < t) { + (a = Math.min(i.linesLength, t - i.rendLineNumberStart)) > 0 && + (this._removeLinesBefore(i, a), (i.linesLength -= a)); + } + if ( + ((i.rendLineNumberStart = t), + i.rendLineNumberStart + i.linesLength - 1 < n) + ) + (u = i.rendLineNumberStart + i.linesLength) <= (s = n) && + (this._insertLinesAfter(i, u, s, r, t), + (i.linesLength += s - u + 1)); + else if (i.rendLineNumberStart + i.linesLength - 1 > n) { + var s, + a, + u = Math.max(0, n - i.rendLineNumberStart + 1); + (a = (s = i.linesLength - 1) - u + 1) > 0 && + (this._removeLinesAfter(i, a), (i.linesLength -= a)); + } + return this._finishRendering(i, !1, r), i; + }), + (e.prototype._renderUntouchedLines = function (e, t, n, r, i) { + for ( + var o = e.rendLineNumberStart, s = e.lines, a = t; + a <= n; + a++ + ) { + var u = o + a; + s[a].layoutLine(u, r[u - i]); + } + }), + (e.prototype._insertLinesBefore = function (e, t, n, r, i) { + for (var o = [], s = 0, a = t; a <= n; a++) + o[s++] = this.host.createVisibleLine(); + e.lines = o.concat(e.lines); + }), + (e.prototype._removeLinesBefore = function (e, t) { + for (var n = 0; n < t; n++) { + var r = e.lines[n].getDomNode(); + r && this.domNode.removeChild(r); + } + e.lines.splice(0, t); + }), + (e.prototype._insertLinesAfter = function (e, t, n, r, i) { + for (var o = [], s = 0, a = t; a <= n; a++) + o[s++] = this.host.createVisibleLine(); + e.lines = e.lines.concat(o); + }), + (e.prototype._removeLinesAfter = function (e, t) { + for (var n = e.linesLength - t, r = 0; r < t; r++) { + var i = e.lines[n + r].getDomNode(); + i && this.domNode.removeChild(i); + } + e.lines.splice(n, t); + }), + (e.prototype._finishRenderingNewLines = function (e, t, n, r) { + var i = this.domNode.lastChild; + t || !i + ? (this.domNode.innerHTML = n) + : i.insertAdjacentHTML('afterend', n); + for ( + var o = this.domNode.lastChild, s = e.linesLength - 1; + s >= 0; + s-- + ) { + var a = e.lines[s]; + r[s] && (a.setDomNode(o), (o = o.previousSibling)); + } + }), + (e.prototype._finishRenderingInvalidLines = function (e, t, n) { + var r = document.createElement('div'); + r.innerHTML = t; + for (var i = 0; i < e.linesLength; i++) { + var o = e.lines[i]; + if (n[i]) { + var s = r.firstChild, + a = o.getDomNode(); + a.parentNode.replaceChild(s, a), o.setDomNode(s); + } + } + }), + (e.prototype._finishRendering = function (t, n, r) { + var i = e._sb, + o = t.linesLength, + s = t.lines, + a = t.rendLineNumberStart, + u = []; + i.reset(); + for (var l = !1, c = 0; c < o; c++) { + var d = s[c]; + if (((u[c] = !1), !d.getDomNode())) + d.renderLine(c + a, r[c], this.viewportData, i) && + ((u[c] = !0), (l = !0)); + } + l && this._finishRenderingNewLines(t, n, i.build(), u), i.reset(); + var h = !1, + f = []; + for (c = 0; c < o; c++) { + d = s[c]; + if (((f[c] = !1), !u[c])) + d.renderLine(c + a, r[c], this.viewportData, i) && + ((f[c] = !0), (h = !0)); + } + h && this._finishRenderingInvalidLines(t, i.build(), f); + }), + (e._sb = My(1e5)), + e + ); + })(), + lS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + cS = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._visibleLines = new aS(n)), + (n.domNode = n._visibleLines.domNode), + (n._dynamicOverlays = []), + (n._isFocused = !1), + n.domNode.setClassName('view-overlays'), + n + ); + } + return ( + lS(t, e), + (t.prototype.shouldRender = function () { + if (e.prototype.shouldRender.call(this)) return !0; + for (var t = 0, n = this._dynamicOverlays.length; t < n; t++) { + if (this._dynamicOverlays[t].shouldRender()) return !0; + } + return !1; + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + for (var t = 0, n = this._dynamicOverlays.length; t < n; t++) { + this._dynamicOverlays[t].dispose(); + } + this._dynamicOverlays = []; + }), + (t.prototype.getDomNode = function () { + return this.domNode; + }), + (t.prototype.createVisibleLine = function () { + return new dS(this._context.configuration, this._dynamicOverlays); + }), + (t.prototype.addDynamicOverlay = function (e) { + this._dynamicOverlays.push(e); + }), + (t.prototype.onConfigurationChanged = function (e) { + this._visibleLines.onConfigurationChanged(e); + for ( + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(), + r = t; + r <= n; + r++ + ) { + this._visibleLines.getVisibleLine(r).onConfigurationChanged(e); + } + return !0; + }), + (t.prototype.onFlushed = function (e) { + return this._visibleLines.onFlushed(e); + }), + (t.prototype.onFocusChanged = function (e) { + return (this._isFocused = e.isFocused), !0; + }), + (t.prototype.onLinesChanged = function (e) { + return this._visibleLines.onLinesChanged(e); + }), + (t.prototype.onLinesDeleted = function (e) { + return this._visibleLines.onLinesDeleted(e); + }), + (t.prototype.onLinesInserted = function (e) { + return this._visibleLines.onLinesInserted(e); + }), + (t.prototype.onScrollChanged = function (e) { + return this._visibleLines.onScrollChanged(e) || !0; + }), + (t.prototype.onTokensChanged = function (e) { + return this._visibleLines.onTokensChanged(e); + }), + (t.prototype.onZonesChanged = function (e) { + return this._visibleLines.onZonesChanged(e); + }), + (t.prototype.prepareRender = function (e) { + for ( + var t = this._dynamicOverlays.filter(function (e) { + return e.shouldRender(); + }), + n = 0, + r = t.length; + n < r; + n++ + ) { + var i = t[n]; + i.prepareRender(e), i.onDidRender(); + } + }), + (t.prototype.render = function (e) { + this._viewOverlaysRender(e), + this.domNode.toggleClassName('focused', this._isFocused); + }), + (t.prototype._viewOverlaysRender = function (e) { + this._visibleLines.renderLines(e.viewportData); + }), + t + ); + })(mw), + dS = (function () { + function e(e, t) { + (this._configuration = e), + (this._lineHeight = this._configuration.editor.lineHeight), + (this._dynamicOverlays = t), + (this._domNode = null), + (this._renderedContent = null); + } + return ( + (e.prototype.getDomNode = function () { + return this._domNode ? this._domNode.domNode : null; + }), + (e.prototype.setDomNode = function (e) { + this._domNode = Mp(e); + }), + (e.prototype.onContentChanged = function () {}), + (e.prototype.onTokensChanged = function () {}), + (e.prototype.onConfigurationChanged = function (e) { + e.lineHeight && + (this._lineHeight = this._configuration.editor.lineHeight); + }), + (e.prototype.renderLine = function (e, t, n, r) { + for ( + var i = '', o = 0, s = this._dynamicOverlays.length; + o < s; + o++ + ) { + i += this._dynamicOverlays[o].render(n.startLineNumber, e); + } + return ( + this._renderedContent !== i && + ((this._renderedContent = i), + r.appendASCIIString('
'), + r.appendASCIIString(i), + r.appendASCIIString('
'), + !0) + ); + }), + (e.prototype.layoutLine = function (e, t) { + this._domNode && + (this._domNode.setTop(t), + this._domNode.setHeight(this._lineHeight)); + }), + e + ); + })(), + hS = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._contentWidth = + n._context.configuration.editor.layoutInfo.contentWidth), + n.domNode.setHeight(0), + n + ); + } + return ( + lS(t, e), + (t.prototype.onConfigurationChanged = function (t) { + return ( + t.layoutInfo && + (this._contentWidth = this._context.configuration.editor.layoutInfo.contentWidth), + e.prototype.onConfigurationChanged.call(this, t) + ); + }), + (t.prototype.onScrollChanged = function (t) { + return ( + e.prototype.onScrollChanged.call(this, t) || t.scrollWidthChanged + ); + }), + (t.prototype._viewOverlaysRender = function (t) { + e.prototype._viewOverlaysRender.call(this, t), + this.domNode.setWidth( + Math.max(t.scrollWidth, this._contentWidth) + ); + }), + t + ); + })(cS), + fS = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._contentLeft = + n._context.configuration.editor.layoutInfo.contentLeft), + n.domNode.setClassName('margin-view-overlays'), + n.domNode.setWidth(1), + iw.applyFontInfo( + n.domNode, + n._context.configuration.editor.fontInfo + ), + n + ); + } + return ( + lS(t, e), + (t.prototype.onConfigurationChanged = function (t) { + var n = !1; + return ( + t.fontInfo && + (iw.applyFontInfo( + this.domNode, + this._context.configuration.editor.fontInfo + ), + (n = !0)), + t.layoutInfo && + ((this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft), + (n = !0)), + e.prototype.onConfigurationChanged.call(this, t) || n + ); + }), + (t.prototype.onScrollChanged = function (t) { + return ( + e.prototype.onScrollChanged.call(this, t) || t.scrollHeightChanged + ); + }), + (t.prototype._viewOverlaysRender = function (t) { + e.prototype._viewOverlaysRender.call(this, t); + var n = Math.min(t.scrollHeight, 1e6); + this.domNode.setHeight(n), this.domNode.setWidth(this._contentLeft); + }), + t + ); + })(cS), + pS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + gS = function (e, t) { + (this.top = e), (this.left = t); + }, + mS = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return ( + (r._viewDomNode = n), + (r._widgets = {}), + (r.domNode = Mp(document.createElement('div'))), + _w.write(r.domNode, 1), + r.domNode.setClassName('contentWidgets'), + r.domNode.setPosition('absolute'), + r.domNode.setTop(0), + (r.overflowingContentWidgetsDomNode = Mp( + document.createElement('div') + )), + _w.write(r.overflowingContentWidgetsDomNode, 2), + r.overflowingContentWidgetsDomNode.setClassName( + 'overflowingContentWidgets' + ), + r + ); + } + return ( + pS(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), (this._widgets = {}); + }), + (t.prototype.onConfigurationChanged = function (e) { + for (var t = 0, n = Object.keys(this._widgets); t < n.length; t++) { + var r = n[t]; + this._widgets[r].onConfigurationChanged(e); + } + return !0; + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLineMappingChanged = function (e) { + for (var t = 0, n = Object.keys(this._widgets); t < n.length; t++) { + var r = n[t]; + this._widgets[r].onLineMappingChanged(e); + } + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return !0; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.addWidget = function (e) { + var t = new _S(this._context, this._viewDomNode, e); + (this._widgets[t.id] = t), + t.allowEditorOverflow + ? this.overflowingContentWidgetsDomNode.appendChild(t.domNode) + : this.domNode.appendChild(t.domNode), + this.setShouldRender(); + }), + (t.prototype.setWidgetPosition = function (e, t, n, r) { + this._widgets[e.getId()].setPosition(t, n, r), + this.setShouldRender(); + }), + (t.prototype.removeWidget = function (e) { + var t = e.getId(); + if (this._widgets.hasOwnProperty(t)) { + var n = this._widgets[t]; + delete this._widgets[t]; + var r = n.domNode.domNode; + r.parentNode.removeChild(r), + r.removeAttribute('monaco-visible-content-widget'), + this.setShouldRender(); + } + }), + (t.prototype.shouldSuppressMouseDownOnWidget = function (e) { + return ( + !!this._widgets.hasOwnProperty(e) && + this._widgets[e].suppressMouseDown + ); + }), + (t.prototype.onBeforeRender = function (e) { + for (var t = 0, n = Object.keys(this._widgets); t < n.length; t++) { + var r = n[t]; + this._widgets[r].onBeforeRender(e); + } + }), + (t.prototype.prepareRender = function (e) { + for (var t = 0, n = Object.keys(this._widgets); t < n.length; t++) { + var r = n[t]; + this._widgets[r].prepareRender(e); + } + }), + (t.prototype.render = function (e) { + for (var t = 0, n = Object.keys(this._widgets); t < n.length; t++) { + var r = n[t]; + this._widgets[r].render(e); + } + }), + t + ); + })(mw), + _S = (function () { + function e(e, t, n) { + (this._context = e), + (this._viewDomNode = t), + (this._actual = n), + (this.domNode = Mp(this._actual.getDomNode())), + (this.id = this._actual.getId()), + (this.allowEditorOverflow = this._actual.allowEditorOverflow || !1), + (this.suppressMouseDown = this._actual.suppressMouseDown || !1), + (this._fixedOverflowWidgets = this._context.configuration.editor.viewInfo.fixedOverflowWidgets), + (this._contentWidth = this._context.configuration.editor.layoutInfo.contentWidth), + (this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft), + (this._lineHeight = this._context.configuration.editor.lineHeight), + (this._position = null), + (this._range = null), + (this._viewPosition = null), + (this._viewRange = null), + (this._preference = []), + (this._cachedDomNodeClientWidth = -1), + (this._cachedDomNodeClientHeight = -1), + (this._maxWidth = this._getMaxWidth()), + (this._isVisible = !1), + (this._renderData = null), + this.domNode.setPosition( + this._fixedOverflowWidgets && this.allowEditorOverflow + ? 'fixed' + : 'absolute' + ), + this.domNode.setVisibility('hidden'), + this.domNode.setAttribute('widgetId', this.id), + this.domNode.setMaxWidth(this._maxWidth); + } + return ( + (e.prototype.onConfigurationChanged = function (e) { + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.layoutInfo && + ((this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft), + (this._contentWidth = this._context.configuration.editor.layoutInfo.contentWidth), + (this._maxWidth = this._getMaxWidth())); + }), + (e.prototype.onLineMappingChanged = function (e) { + this._setPosition(this._position, this._range); + }), + (e.prototype._setPosition = function (e, t) { + if ( + ((this._position = e), + (this._range = t), + (this._viewPosition = null), + (this._viewRange = null), + this._position) + ) { + var n = this._context.model.validateModelPosition(this._position); + this._context.model.coordinatesConverter.modelPositionIsVisible( + n + ) && + (this._viewPosition = this._context.model.coordinatesConverter.convertModelPositionToViewPosition( + n + )); + } + if (this._range) { + var r = this._context.model.validateModelRange(this._range); + this._viewRange = this._context.model.coordinatesConverter.convertModelRangeToViewRange( + r + ); + } + }), + (e.prototype._getMaxWidth = function () { + return this.allowEditorOverflow + ? window.innerWidth || + document.documentElement.clientWidth || + document.body.clientWidth + : this._contentWidth; + }), + (e.prototype.setPosition = function (e, t, n) { + this._setPosition(e, t), + (this._preference = n), + (this._cachedDomNodeClientWidth = -1), + (this._cachedDomNodeClientHeight = -1); + }), + (e.prototype._layoutBoxInViewport = function (e, t, n, r, i) { + var o = e.top, + s = o, + a = t.top + this._lineHeight, + u = o - r, + l = s >= r, + c = a, + d = i.viewportHeight - a >= r, + h = e.left, + f = t.left; + return ( + h + n > i.scrollLeft + i.viewportWidth && + (h = i.scrollLeft + i.viewportWidth - n), + f + n > i.scrollLeft + i.viewportWidth && + (f = i.scrollLeft + i.viewportWidth - n), + h < i.scrollLeft && (h = i.scrollLeft), + f < i.scrollLeft && (f = i.scrollLeft), + { + fitsAbove: l, + aboveTop: u, + aboveLeft: h, + fitsBelow: d, + belowTop: c, + belowLeft: f, + } + ); + }), + (e.prototype._layoutBoxInPage = function (e, t, n, r, i) { + var o, + s = e.left - i.scrollLeft, + a = t.left - i.scrollLeft, + u = e.top - r, + l = t.top + this._lineHeight, + c = s + this._contentLeft, + d = a + this._contentLeft, + h = ff(this._viewDomNode.domNode), + f = h.top + u - pf.scrollY, + p = h.top + l - pf.scrollY, + g = h.left + c - pf.scrollX, + m = h.left + d - pf.scrollX, + _ = + window.innerWidth || + document.documentElement.clientWidth || + document.body.clientWidth, + y = f >= 22, + v = + p + r <= + (window.innerHeight || + document.documentElement.clientHeight || + document.body.clientHeight) - + 22; + g + n + 20 > _ && ((g -= o = g - (_ - n - 20)), (c -= o)); + m + n + 20 > _ && ((m -= o = m - (_ - n - 20)), (d -= o)); + g < 0 && ((g -= o = g), (c -= o)); + m < 0 && ((m -= o = m), (d -= o)); + return ( + this._fixedOverflowWidgets && + ((u = f), (l = p), (c = g), (d = m)), + { + fitsAbove: y, + aboveTop: u, + aboveLeft: c, + fitsBelow: v, + belowTop: l, + belowLeft: d, + } + ); + }), + (e.prototype._prepareRenderWidgetAtExactPositionOverflowing = function ( + e + ) { + return new gS(e.top, e.left + this._contentLeft); + }), + (e.prototype._getTopAndBottomLeft = function (e) { + if (!this._viewPosition) return [null, null]; + var t = e.visibleRangeForPosition(this._viewPosition); + if (!t) return [null, null]; + var n = + e.getVerticalOffsetForLineNumber( + this._viewPosition.lineNumber + ) - e.scrollTop, + r = new gS(n, t.left), + i = this._viewPosition.lineNumber, + o = t.left; + if (this._viewRange) { + var s = e.linesVisibleRangesForRange(this._viewRange, !1); + if (s && s.length > 0) + for (var a = s.length - 1; a >= 0; a--) { + var u = s[a]; + if (u.lineNumber >= i) { + u.lineNumber > i && ((i = u.lineNumber), (o = 1073741824)); + for (var l = 0, c = u.ranges.length; l < c; l++) { + var d = u.ranges[l]; + d.left < o && (o = d.left); + } + } + } + } + var h = e.getVerticalOffsetForLineNumber(i) - e.scrollTop; + return [r, new gS(h, o)]; + }), + (e.prototype._prepareRenderWidget = function (e) { + var t, + n = this._getTopAndBottomLeft(e), + r = n[0], + i = n[1]; + if (!r || !i) return null; + if ( + -1 === this._cachedDomNodeClientWidth || + -1 === this._cachedDomNodeClientHeight + ) { + var o = this.domNode.domNode; + (this._cachedDomNodeClientWidth = o.clientWidth), + (this._cachedDomNodeClientHeight = o.clientHeight); + } + if ( + ((t = this.allowEditorOverflow + ? this._layoutBoxInPage( + r, + i, + this._cachedDomNodeClientWidth, + this._cachedDomNodeClientHeight, + e + ) + : this._layoutBoxInViewport( + r, + i, + this._cachedDomNodeClientWidth, + this._cachedDomNodeClientHeight, + e + )), + this._preference) + ) + for (var s = 1; s <= 2; s++) + for (var a = 0, u = this._preference; a < u.length; a++) { + var l = u[a]; + if (1 === l) { + if (!t) return null; + if (2 === s || t.fitsAbove) + return new gS(t.aboveTop, t.aboveLeft); + } else { + if (2 !== l) + return this.allowEditorOverflow + ? this._prepareRenderWidgetAtExactPositionOverflowing(r) + : r; + if (!t) return null; + if (2 === s || t.fitsBelow) + return new gS(t.belowTop, t.belowLeft); + } + } + return null; + }), + (e.prototype.onBeforeRender = function (e) { + this._viewPosition && + this._preference && + (this._viewPosition.lineNumber < e.startLineNumber || + this._viewPosition.lineNumber > e.endLineNumber || + this.domNode.setMaxWidth(this._maxWidth)); + }), + (e.prototype.prepareRender = function (e) { + this._renderData = this._prepareRenderWidget(e); + }), + (e.prototype.render = function (e) { + this._renderData + ? (this.allowEditorOverflow + ? (this.domNode.setTop(this._renderData.top), + this.domNode.setLeft(this._renderData.left)) + : (this.domNode.setTop( + this._renderData.top + e.scrollTop - e.bigNumbersDelta + ), + this.domNode.setLeft(this._renderData.left)), + this._isVisible || + (this.domNode.setVisibility('inherit'), + this.domNode.setAttribute( + 'monaco-visible-content-widget', + 'true' + ), + (this._isVisible = !0))) + : this._isVisible && + (this.domNode.removeAttribute('monaco-visible-content-widget'), + (this._isVisible = !1), + this.domNode.setVisibility('hidden')); + }), + e + ); + })(), + yS = + (n(337), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + vS = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._renderLineHighlight = + n._context.configuration.editor.viewInfo.renderLineHighlight), + (n._selectionIsEmpty = !0), + (n._primaryCursorLineNumber = 1), + (n._scrollWidth = 0), + (n._contentWidth = + n._context.configuration.editor.layoutInfo.contentWidth), + n._context.addEventHandler(n), + n + ); + } + return ( + yS(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.viewInfo && + (this._renderLineHighlight = this._context.configuration.editor.viewInfo.renderLineHighlight), + e.layoutInfo && + (this._contentWidth = this._context.configuration.editor.layoutInfo.contentWidth), + !0 + ); + }), + (t.prototype.onCursorStateChanged = function (e) { + var t = !1, + n = e.selections[0].positionLineNumber; + this._primaryCursorLineNumber !== n && + ((this._primaryCursorLineNumber = n), (t = !0)); + var r = e.selections[0].isEmpty(); + return this._selectionIsEmpty !== r + ? ((this._selectionIsEmpty = r), !0) + : t; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollWidthChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.prepareRender = function (e) { + this._scrollWidth = e.scrollWidth; + }), + (t.prototype.render = function (e, t) { + return t === this._primaryCursorLineNumber && + this._shouldShowCurrentLine() + ? '
' + : ''; + }), + (t.prototype._shouldShowCurrentLine = function () { + return ( + ('line' === this._renderLineHighlight || + 'all' === this._renderLineHighlight) && + this._selectionIsEmpty + ); + }), + (t.prototype._willRenderMarginCurrentLine = function () { + return ( + 'gutter' === this._renderLineHighlight || + 'all' === this._renderLineHighlight + ); + }), + t + ); + })(lC); + Bd(function (e, t) { + var n = e.getColor(cC); + if ( + (n && + t.addRule( + '.monaco-editor .view-overlays .current-line { background-color: ' + + n + + '; }' + ), + !n || n.isTransparent() || e.defines(dC)) + ) { + var r = e.getColor(dC); + r && + (t.addRule( + '.monaco-editor .view-overlays .current-line { border: 2px solid ' + + r + + '; }' + ), + 'hc' === e.type && + t.addRule( + '.monaco-editor .view-overlays .current-line { border-width: 1px; }' + )); + } + }); + n(338); + var bS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + wS = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._renderLineHighlight = + n._context.configuration.editor.viewInfo.renderLineHighlight), + (n._selectionIsEmpty = !0), + (n._primaryCursorLineNumber = 1), + (n._contentLeft = + n._context.configuration.editor.layoutInfo.contentLeft), + n._context.addEventHandler(n), + n + ); + } + return ( + bS(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.viewInfo && + (this._renderLineHighlight = this._context.configuration.editor.viewInfo.renderLineHighlight), + e.layoutInfo && + (this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft), + !0 + ); + }), + (t.prototype.onCursorStateChanged = function (e) { + var t = !1, + n = e.selections[0].positionLineNumber; + this._primaryCursorLineNumber !== n && + ((this._primaryCursorLineNumber = n), (t = !0)); + var r = e.selections[0].isEmpty(); + return this._selectionIsEmpty !== r + ? ((this._selectionIsEmpty = r), !0) + : t; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e, t) { + if (t === this._primaryCursorLineNumber) { + var n = 'current-line'; + if (this._shouldShowCurrentLine()) + n = + 'current-line current-line-margin' + + (this._willRenderContentCurrentLine() + ? ' current-line-margin-both' + : ''); + return ( + '
' + ); + } + return ''; + }), + (t.prototype._shouldShowCurrentLine = function () { + return ( + 'gutter' === this._renderLineHighlight || + 'all' === this._renderLineHighlight + ); + }), + (t.prototype._willRenderContentCurrentLine = function () { + return ( + ('line' === this._renderLineHighlight || + 'all' === this._renderLineHighlight) && + this._selectionIsEmpty + ); + }), + t + ); + })(lC); + Bd(function (e, t) { + var n = e.getColor(cC); + if (n) + t.addRule( + '.monaco-editor .margin-view-overlays .current-line-margin { background-color: ' + + n + + '; border: none; }' + ); + else { + var r = e.getColor(dC); + r && + t.addRule( + '.monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid ' + + r + + '; }' + ), + 'hc' === e.type && + t.addRule( + '.monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }' + ); + } + }); + n(339); + var CS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + SS = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._typicalHalfwidthCharacterWidth = + n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + (n._renderResult = null), + n._context.addEventHandler(n), + n + ); + } + return ( + CS(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + (this._renderResult = null), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.fontInfo && + (this._typicalHalfwidthCharacterWidth = this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + !0 + ); + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged || e.scrollWidthChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.prepareRender = function (e) { + for ( + var t = e.getDecorationsInViewport(), + n = [], + r = 0, + i = 0, + o = t.length; + i < o; + i++ + ) { + var s = t[i]; + s.options.className && (n[r++] = s); + } + n = n.sort(function (e, t) { + if (e.options.zIndex < t.options.zIndex) return -1; + if (e.options.zIndex > t.options.zIndex) return 1; + var n = e.options.className, + r = t.options.className; + return n < r + ? -1 + : n > r + ? 1 + : Fr.compareRangesUsingStarts(e.range, t.range); + }); + for ( + var a = e.visibleRange.startLineNumber, + u = e.visibleRange.endLineNumber, + l = [], + c = a; + c <= u; + c++ + ) { + l[c - a] = ''; + } + this._renderWholeLineDecorations(e, n, l), + this._renderNormalDecorations(e, n, l), + (this._renderResult = l); + }), + (t.prototype._renderWholeLineDecorations = function (e, t, n) { + for ( + var r = String(this._lineHeight), + i = e.visibleRange.startLineNumber, + o = e.visibleRange.endLineNumber, + s = 0, + a = t.length; + s < a; + s++ + ) { + var u = t[s]; + if (u.options.isWholeLine) + for ( + var l = + '
', + c = Math.max(u.range.startLineNumber, i), + d = Math.min(u.range.endLineNumber, o), + h = c; + h <= d; + h++ + ) { + n[h - i] += l; + } + } + }), + (t.prototype._renderNormalDecorations = function (e, t, n) { + for ( + var r = String(this._lineHeight), + i = e.visibleRange.startLineNumber, + o = null, + s = !1, + a = null, + u = 0, + l = t.length; + u < l; + u++ + ) { + var c = t[u]; + if (!c.options.isWholeLine) { + var d = c.options.className, + h = Boolean(c.options.showIfCollapsed), + f = c.range; + h && + 1 === f.endColumn && + f.endLineNumber !== f.startLineNumber && + (f = new Fr( + f.startLineNumber, + f.startColumn, + f.endLineNumber - 1, + this._context.model.getLineMaxColumn(f.endLineNumber - 1) + )), + o === d && s === h && Fr.areIntersectingOrTouching(a, f) + ? (a = Fr.plusRange(a, f)) + : (null !== o && + this._renderNormalDecoration(e, a, o, s, r, i, n), + (o = d), + (s = h), + (a = f)); + } + } + null !== o && this._renderNormalDecoration(e, a, o, s, r, i, n); + }), + (t.prototype._renderNormalDecoration = function ( + e, + t, + n, + r, + i, + o, + s + ) { + var a = e.linesVisibleRangesForRange(t, 'findMatch' === n); + if (a) + for (var u = 0, l = a.length; u < l; u++) { + var c = a[u], + d = c.lineNumber - o; + if (r && 1 === c.ranges.length) { + var h = c.ranges[0]; + 0 === h.width && + (c.ranges[0] = new ww( + h.left, + this._typicalHalfwidthCharacterWidth + )); + } + for (var f = 0, p = c.ranges.length; f < p; f++) { + var g = c.ranges[f], + m = + '
'; + s[d] += m; + } + } + }), + (t.prototype.render = function (e, t) { + if (!this._renderResult) return ''; + var n = t - e; + return n < 0 || n >= this._renderResult.length + ? '' + : this._renderResult[n]; + }), + t + ); + })(lC), + xS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + LS = (function (e) { + function t(t, n, r, i) { + var o = e.call(this, t) || this, + s = o._context.configuration.editor.viewInfo.scrollbar, + a = { + listenOnDomNode: r.domNode, + className: 'editor-scrollable ' + Fd(t.theme.type), + useShadows: !1, + lazyRender: !0, + vertical: s.vertical, + horizontal: s.horizontal, + verticalHasArrows: s.verticalHasArrows, + horizontalHasArrows: s.horizontalHasArrows, + verticalScrollbarSize: s.verticalScrollbarSize, + verticalSliderSize: s.verticalSliderSize, + horizontalScrollbarSize: s.horizontalScrollbarSize, + horizontalSliderSize: s.horizontalSliderSize, + handleMouseWheel: s.handleMouseWheel, + arrowSize: s.arrowSize, + mouseWheelScrollSensitivity: s.mouseWheelScrollSensitivity, + fastScrollSensitivity: s.fastScrollSensitivity, + }; + (o.scrollbar = o._register( + new Qp(n.domNode, a, o._context.viewLayout.scrollable) + )), + _w.write(o.scrollbar.getDomNode(), 5), + (o.scrollbarDomNode = Mp(o.scrollbar.getDomNode())), + o.scrollbarDomNode.setPosition('absolute'), + o._setLayout(); + var u = function (e, t, n) { + var r = {}; + if (t) { + var i = e.scrollTop; + i && + ((r.scrollTop = + o._context.viewLayout.getCurrentScrollTop() + i), + (e.scrollTop = 0)); + } + if (n) { + var s = e.scrollLeft; + s && + ((r.scrollLeft = + o._context.viewLayout.getCurrentScrollLeft() + s), + (e.scrollLeft = 0)); + } + o._context.viewLayout.setScrollPositionNow(r); + }; + return ( + o._register( + Kh(r.domNode, 'scroll', function (e) { + return u(r.domNode, !0, !0); + }) + ), + o._register( + Kh(n.domNode, 'scroll', function (e) { + return u(n.domNode, !0, !1); + }) + ), + o._register( + Kh(i.domNode, 'scroll', function (e) { + return u(i.domNode, !0, !1); + }) + ), + o._register( + Kh(o.scrollbarDomNode.domNode, 'scroll', function (e) { + return u(o.scrollbarDomNode.domNode, !0, !1); + }) + ), + o + ); + } + return ( + xS(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype._setLayout = function () { + var e = this._context.configuration.editor.layoutInfo; + this.scrollbarDomNode.setLeft(e.contentLeft), + 'right' === + this._context.configuration.editor.viewInfo.minimap.side + ? this.scrollbarDomNode.setWidth( + e.contentWidth + e.minimapWidth + ) + : this.scrollbarDomNode.setWidth(e.contentWidth), + this.scrollbarDomNode.setHeight(e.contentHeight); + }), + (t.prototype.getOverviewRulerLayoutInfo = function () { + return this.scrollbar.getOverviewRulerLayoutInfo(); + }), + (t.prototype.getDomNode = function () { + return this.scrollbarDomNode; + }), + (t.prototype.delegateVerticalScrollbarMouseDown = function (e) { + this.scrollbar.delegateVerticalScrollbarMouseDown(e); + }), + (t.prototype.onConfigurationChanged = function (e) { + if (e.viewInfo) { + var t = this._context.configuration.editor, + n = { + handleMouseWheel: t.viewInfo.scrollbar.handleMouseWheel, + mouseWheelScrollSensitivity: + t.viewInfo.scrollbar.mouseWheelScrollSensitivity, + fastScrollSensitivity: + t.viewInfo.scrollbar.fastScrollSensitivity, + }; + this.scrollbar.updateOptions(n); + } + return e.layoutInfo && this._setLayout(), !0; + }), + (t.prototype.onScrollChanged = function (e) { + return !0; + }), + (t.prototype.onThemeChanged = function (e) { + return ( + this.scrollbar.updateClassName( + 'editor-scrollable ' + Fd(this._context.theme.type) + ), + !0 + ); + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + this.scrollbar.renderNow(); + }), + t + ); + })(mw), + kS = + (n(340), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + MS = function (e, t, n) { + (this.startLineNumber = +e), + (this.endLineNumber = +t), + (this.className = String(n)); + }, + DS = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + kS(t, e), + (t.prototype._render = function (e, t, n) { + for (var r = [], i = e; i <= t; i++) { + r[i - e] = []; + } + if (0 === n.length) return r; + n.sort(function (e, t) { + return e.className === t.className + ? e.startLineNumber === t.startLineNumber + ? e.endLineNumber - t.endLineNumber + : e.startLineNumber - t.startLineNumber + : e.className < t.className + ? -1 + : 1; + }); + for (var o = null, s = 0, a = 0, u = n.length; a < u; a++) { + var l = n[a], + c = l.className, + d = Math.max(l.startLineNumber, e) - e, + h = Math.min(l.endLineNumber, t) - e; + o === c + ? ((d = Math.max(s + 1, d)), (s = Math.max(s, h))) + : ((o = c), (s = h)); + for (var f = d; f <= s; f++) r[f].push(o); + } + return r; + }), + t + ); + })(lC), + ES = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._glyphMargin = + n._context.configuration.editor.viewInfo.glyphMargin), + (n._glyphMarginLeft = + n._context.configuration.editor.layoutInfo.glyphMarginLeft), + (n._glyphMarginWidth = + n._context.configuration.editor.layoutInfo.glyphMarginWidth), + (n._renderResult = null), + n._context.addEventHandler(n), + n + ); + } + return ( + kS(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + (this._renderResult = null), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.viewInfo && + (this._glyphMargin = this._context.configuration.editor.viewInfo.glyphMargin), + e.layoutInfo && + ((this._glyphMarginLeft = this._context.configuration.editor.layoutInfo.glyphMarginLeft), + (this._glyphMarginWidth = this._context.configuration.editor.layoutInfo.glyphMarginWidth)), + !0 + ); + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype._getDecorations = function (e) { + for ( + var t = e.getDecorationsInViewport(), + n = [], + r = 0, + i = 0, + o = t.length; + i < o; + i++ + ) { + var s = t[i], + a = s.options.glyphMarginClassName; + a && + (n[r++] = new MS( + s.range.startLineNumber, + s.range.endLineNumber, + a + )); + } + return n; + }), + (t.prototype.prepareRender = function (e) { + if (this._glyphMargin) { + for ( + var t = e.visibleRange.startLineNumber, + n = e.visibleRange.endLineNumber, + r = this._render(t, n, this._getDecorations(e)), + i = this._lineHeight.toString(), + o = + '" style="left:' + + this._glyphMarginLeft.toString() + + 'px;width:' + + this._glyphMarginWidth.toString() + + 'px;height:' + + i + + 'px;">', + s = [], + a = t; + a <= n; + a++ + ) { + var u = a - t, + l = r[u]; + 0 === l.length + ? (s[u] = '') + : (s[u] = '
'), + (y += r) > i || + (this._maxIndentLeft > 0 && y > this._maxIndentLeft)) + ) + break; + } + d[p] = m; + } + this._renderResult = d; + } else this._renderResult = null; + }), + (t.prototype.render = function (e, t) { + if (!this._renderResult) return ''; + var n = t - e; + return n < 0 || n >= this._renderResult.length + ? '' + : this._renderResult[n]; + }), + t + ); + })(lC); + Bd(function (e, t) { + var n = e.getColor(_C); + n && + t.addRule( + '.monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 ' + + n + + ' inset; }' + ); + var r = e.getColor(yC) || n; + r && + t.addRule( + '.monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 ' + + r + + ' inset; }' + ); + }); + n(342); + var OS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + AS = (function () { + function e() { + this._currentVisibleRange = new Fr(1, 1, 1, 1); + } + return ( + (e.prototype.getCurrentVisibleRange = function () { + return this._currentVisibleRange; + }), + (e.prototype.setCurrentVisibleRange = function (e) { + this._currentVisibleRange = e; + }), + e + ); + })(), + IS = function (e, t, n, r, i, o) { + (this.lineNumber = e), + (this.startColumn = t), + (this.endColumn = n), + (this.startScrollTop = r), + (this.stopScrollTop = i), + (this.scrollType = o); + }, + PS = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + (r._linesContent = n), + (r._textRangeRestingSpot = document.createElement('div')), + (r._visibleLines = new aS(r)), + (r.domNode = r._visibleLines.domNode); + var i = r._context.configuration; + return ( + (r._lineHeight = i.editor.lineHeight), + (r._typicalHalfwidthCharacterWidth = + i.editor.fontInfo.typicalHalfwidthCharacterWidth), + (r._isViewportWrapping = i.editor.wrappingInfo.isViewportWrapping), + (r._revealHorizontalRightPadding = + i.editor.viewInfo.revealHorizontalRightPadding), + (r._scrollOff = i.editor.viewInfo.cursorSurroundingLines), + (r._canUseLayerHinting = i.editor.canUseLayerHinting), + (r._viewLineOptions = new Dw(i, r._context.theme.type)), + _w.write(r.domNode, 7), + r.domNode.setClassName('view-lines'), + iw.applyFontInfo(r.domNode, i.editor.fontInfo), + (r._maxLineWidth = 0), + (r._asyncUpdateLineWidths = new Os(function () { + r._updateLineWidthsSlow(); + }, 200)), + (r._lastRenderedData = new AS()), + (r._horizontalRevealRequest = null), + r + ); + } + return ( + OS(t, e), + (t.prototype.dispose = function () { + this._asyncUpdateLineWidths.dispose(), + e.prototype.dispose.call(this); + }), + (t.prototype.getDomNode = function () { + return this.domNode; + }), + (t.prototype.createVisibleLine = function () { + return new Ew(this._viewLineOptions); + }), + (t.prototype.onConfigurationChanged = function (e) { + this._visibleLines.onConfigurationChanged(e), + e.wrappingInfo && (this._maxLineWidth = 0); + var t = this._context.configuration; + return ( + e.lineHeight && (this._lineHeight = t.editor.lineHeight), + e.fontInfo && + (this._typicalHalfwidthCharacterWidth = + t.editor.fontInfo.typicalHalfwidthCharacterWidth), + e.wrappingInfo && + (this._isViewportWrapping = + t.editor.wrappingInfo.isViewportWrapping), + e.viewInfo && + ((this._revealHorizontalRightPadding = + t.editor.viewInfo.revealHorizontalRightPadding), + (this._scrollOff = t.editor.viewInfo.cursorSurroundingLines)), + e.canUseLayerHinting && + (this._canUseLayerHinting = t.editor.canUseLayerHinting), + e.fontInfo && iw.applyFontInfo(this.domNode, t.editor.fontInfo), + this._onOptionsMaybeChanged(), + e.layoutInfo && (this._maxLineWidth = 0), + !0 + ); + }), + (t.prototype._onOptionsMaybeChanged = function () { + var e = this._context.configuration, + t = new Dw(e, this._context.theme.type); + if (!this._viewLineOptions.equals(t)) { + this._viewLineOptions = t; + for ( + var n = this._visibleLines.getStartLineNumber(), + r = this._visibleLines.getEndLineNumber(), + i = n; + i <= r; + i++ + ) { + this._visibleLines + .getVisibleLine(i) + .onOptionsChanged(this._viewLineOptions); + } + return !0; + } + return !1; + }), + (t.prototype.onCursorStateChanged = function (e) { + for ( + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(), + r = !1, + i = t; + i <= n; + i++ + ) + r = + this._visibleLines.getVisibleLine(i).onSelectionChanged() || r; + return r; + }), + (t.prototype.onDecorationsChanged = function (e) { + for ( + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(), + r = t; + r <= n; + r++ + ) + this._visibleLines.getVisibleLine(r).onDecorationsChanged(); + return !0; + }), + (t.prototype.onFlushed = function (e) { + var t = this._visibleLines.onFlushed(e); + return (this._maxLineWidth = 0), t; + }), + (t.prototype.onLinesChanged = function (e) { + return this._visibleLines.onLinesChanged(e); + }), + (t.prototype.onLinesDeleted = function (e) { + return this._visibleLines.onLinesDeleted(e); + }), + (t.prototype.onLinesInserted = function (e) { + return this._visibleLines.onLinesInserted(e); + }), + (t.prototype.onRevealRangeRequest = function (e) { + var t = this._computeScrollTopToRevealRange( + this._context.viewLayout.getFutureViewport(), + e.range, + e.verticalType + ), + n = this._context.viewLayout.validateScrollPosition({ + scrollTop: t, + }); + e.revealHorizontal + ? e.range.startLineNumber !== e.range.endLineNumber + ? (n = { scrollTop: n.scrollTop, scrollLeft: 0 }) + : (this._horizontalRevealRequest = new IS( + e.range.startLineNumber, + e.range.startColumn, + e.range.endColumn, + this._context.viewLayout.getCurrentScrollTop(), + n.scrollTop, + e.scrollType + )) + : (this._horizontalRevealRequest = null); + var r = Math.abs( + this._context.viewLayout.getCurrentScrollTop() - n.scrollTop + ); + return ( + 0 === e.scrollType && r > this._lineHeight + ? this._context.viewLayout.setScrollPositionSmooth(n) + : this._context.viewLayout.setScrollPositionNow(n), + !0 + ); + }), + (t.prototype.onScrollChanged = function (e) { + if ( + (this._horizontalRevealRequest && + e.scrollLeftChanged && + (this._horizontalRevealRequest = null), + this._horizontalRevealRequest && e.scrollTopChanged) + ) { + var t = Math.min( + this._horizontalRevealRequest.startScrollTop, + this._horizontalRevealRequest.stopScrollTop + ), + n = Math.max( + this._horizontalRevealRequest.startScrollTop, + this._horizontalRevealRequest.stopScrollTop + ); + (e.scrollTop < t || e.scrollTop > n) && + (this._horizontalRevealRequest = null); + } + return ( + this.domNode.setWidth(e.scrollWidth), + this._visibleLines.onScrollChanged(e) || !0 + ); + }), + (t.prototype.onTokensChanged = function (e) { + return this._visibleLines.onTokensChanged(e); + }), + (t.prototype.onZonesChanged = function (e) { + return ( + this._context.viewLayout.onMaxLineWidthChanged( + this._maxLineWidth + ), + this._visibleLines.onZonesChanged(e) + ); + }), + (t.prototype.onThemeChanged = function (e) { + return this._onOptionsMaybeChanged(); + }), + (t.prototype.getPositionFromDOMInfo = function (e, t) { + var n = this._getViewLineDomNode(e); + if (null === n) return null; + var r = this._getLineNumberFor(n); + if (-1 === r) return null; + if (r < 1 || r > this._context.model.getLineCount()) return null; + if (1 === this._context.model.getLineMaxColumn(r)) + return new xt(r, 1); + var i = this._visibleLines.getStartLineNumber(), + o = this._visibleLines.getEndLineNumber(); + if (r < i || r > o) return null; + var s = this._visibleLines + .getVisibleLine(r) + .getColumnOfNodeOffset(r, e, t), + a = this._context.model.getLineMinColumn(r); + return s < a && (s = a), new xt(r, s); + }), + (t.prototype._getViewLineDomNode = function (e) { + for (; e && 1 === e.nodeType; ) { + if (e.className === Ew.CLASS_NAME) return e; + e = e.parentElement; + } + return null; + }), + (t.prototype._getLineNumberFor = function (e) { + for ( + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(), + r = t; + r <= n; + r++ + ) { + if (e === this._visibleLines.getVisibleLine(r).getDomNode()) + return r; + } + return -1; + }), + (t.prototype.getLineWidth = function (e) { + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(); + return e < t || e > n + ? -1 + : this._visibleLines.getVisibleLine(e).getWidth(); + }), + (t.prototype.linesVisibleRangesForRange = function (e, t) { + if (this.shouldRender()) return null; + var n = e.endLineNumber, + r = Fr.intersectRanges( + e, + this._lastRenderedData.getCurrentVisibleRange() + ); + if (!r) return null; + var i = [], + o = 0, + s = new Mw(this.domNode.domNode, this._textRangeRestingSpot), + a = 0; + t && + (a = this._context.model.coordinatesConverter.convertViewPositionToModelPosition( + new xt(r.startLineNumber, 1) + ).lineNumber); + for ( + var u = this._visibleLines.getStartLineNumber(), + l = this._visibleLines.getEndLineNumber(), + c = r.startLineNumber; + c <= r.endLineNumber; + c++ + ) + if (!(c < u || c > l)) { + var d = c === r.startLineNumber ? r.startColumn : 1, + h = + c === r.endLineNumber + ? r.endColumn + : this._context.model.getLineMaxColumn(c), + f = this._visibleLines + .getVisibleLine(c) + .getVisibleRangesForRange(d, h, s); + if (f && 0 !== f.length) { + if (t && c < n) + a !== + (a = this._context.model.coordinatesConverter.convertViewPositionToModelPosition( + new xt(c + 1, 1) + ).lineNumber) && + (f[ + f.length - 1 + ].width += this._typicalHalfwidthCharacterWidth); + i[o++] = new bw(c, f); + } + } + return 0 === o ? null : i; + }), + (t.prototype.visibleRangesForRange2 = function (e) { + if (this.shouldRender()) return null; + var t = Fr.intersectRanges( + e, + this._lastRenderedData.getCurrentVisibleRange() + ); + if (!t) return null; + for ( + var n = [], + r = new Mw(this.domNode.domNode, this._textRangeRestingSpot), + i = this._visibleLines.getStartLineNumber(), + o = this._visibleLines.getEndLineNumber(), + s = t.startLineNumber; + s <= t.endLineNumber; + s++ + ) + if (!(s < i || s > o)) { + var a = s === t.startLineNumber ? t.startColumn : 1, + u = + s === t.endLineNumber + ? t.endColumn + : this._context.model.getLineMaxColumn(s), + l = this._visibleLines + .getVisibleLine(s) + .getVisibleRangesForRange(a, u, r); + l && 0 !== l.length && (n = n.concat(l)); + } + return 0 === n.length ? null : n; + }), + (t.prototype.visibleRangeForPosition = function (e) { + var t = this.visibleRangesForRange2( + new Fr(e.lineNumber, e.column, e.lineNumber, e.column) + ); + return t ? t[0] : null; + }), + (t.prototype.updateLineWidths = function () { + this._updateLineWidths(!1); + }), + (t.prototype._updateLineWidthsFast = function () { + return this._updateLineWidths(!0); + }), + (t.prototype._updateLineWidthsSlow = function () { + this._updateLineWidths(!1); + }), + (t.prototype._updateLineWidths = function (e) { + for ( + var t = this._visibleLines.getStartLineNumber(), + n = this._visibleLines.getEndLineNumber(), + r = 1, + i = !0, + o = t; + o <= n; + o++ + ) { + var s = this._visibleLines.getVisibleLine(o); + !e || s.getWidthIsFast() + ? (r = Math.max(r, s.getWidth())) + : (i = !1); + } + return ( + i && + 1 === t && + n === this._context.model.getLineCount() && + (this._maxLineWidth = 0), + this._ensureMaxLineWidth(r), + i + ); + }), + (t.prototype.prepareRender = function () { + throw new Error('Not supported'); + }), + (t.prototype.render = function () { + throw new Error('Not supported'); + }), + (t.prototype.renderText = function (e) { + if ( + (this._visibleLines.renderLines(e), + this._lastRenderedData.setCurrentVisibleRange(e.visibleRange), + this.domNode.setWidth(this._context.viewLayout.getScrollWidth()), + this.domNode.setHeight( + Math.min(this._context.viewLayout.getScrollHeight(), 1e6) + ), + this._horizontalRevealRequest) + ) { + var t = this._horizontalRevealRequest.lineNumber, + n = this._horizontalRevealRequest.startColumn, + r = this._horizontalRevealRequest.endColumn, + i = this._horizontalRevealRequest.scrollType; + if (e.startLineNumber <= t && t <= e.endLineNumber) { + (this._horizontalRevealRequest = null), this.onDidRender(); + var o = this._computeScrollLeftToRevealRange(t, n, r); + this._isViewportWrapping || + this._ensureMaxLineWidth(o.maxHorizontalOffset), + 0 === i + ? this._context.viewLayout.setScrollPositionSmooth({ + scrollLeft: o.scrollLeft, + }) + : this._context.viewLayout.setScrollPositionNow({ + scrollLeft: o.scrollLeft, + }); + } + } + this._updateLineWidthsFast() || + this._asyncUpdateLineWidths.schedule(), + this._linesContent.setLayerHinting(this._canUseLayerHinting); + var s = + this._context.viewLayout.getCurrentScrollTop() - + e.bigNumbersDelta; + this._linesContent.setTop(-s), + this._linesContent.setLeft( + -this._context.viewLayout.getCurrentScrollLeft() + ); + }), + (t.prototype._ensureMaxLineWidth = function (e) { + var t = Math.ceil(e); + this._maxLineWidth < t && + ((this._maxLineWidth = t), + this._context.viewLayout.onMaxLineWidthChanged( + this._maxLineWidth + )); + }), + (t.prototype._computeScrollTopToRevealRange = function (e, t, n) { + var r, + i, + o = e.top, + s = e.height, + a = o + s; + (r = this._context.viewLayout.getVerticalOffsetForLineNumber( + t.startLineNumber + )), + (i = + this._context.viewLayout.getVerticalOffsetForLineNumber( + t.endLineNumber + ) + this._lineHeight); + var u, + l = Math.min(s / this._lineHeight / 2, this._scrollOff); + if ( + ((r -= l * this._lineHeight), + (i += Math.max(0, l - 1) * this._lineHeight), + (0 !== n && 4 !== n) || (i += this._lineHeight), + 1 === n || 2 === n) + ) + if (2 === n && o <= r && i <= a) u = o; + else { + var c = (r + i) / 2; + u = Math.max(0, c - s / 2); + } + else + u = this._computeMinimumScrolling(o, a, r, i, 3 === n, 4 === n); + return u; + }), + (t.prototype._computeScrollLeftToRevealRange = function (e, n, r) { + var i = 0, + o = this._context.viewLayout.getCurrentViewport(), + s = o.left, + a = s + o.width, + u = this.visibleRangesForRange2(new Fr(e, n, e, r)), + l = Number.MAX_VALUE, + c = 0; + if (!u) return { scrollLeft: s, maxHorizontalOffset: i }; + for (var d = 0, h = u; d < h.length; d++) { + var f = h[d]; + f.left < l && (l = f.left), + f.left + f.width > c && (c = f.left + f.width); + } + return ( + (i = c), + (l = Math.max(0, l - t.HORIZONTAL_EXTRA_PX)), + (c += this._revealHorizontalRightPadding), + { + scrollLeft: this._computeMinimumScrolling(s, a, l, c), + maxHorizontalOffset: i, + } + ); + }), + (t.prototype._computeMinimumScrolling = function (e, t, n, r, i, o) { + (i = !!i), (o = !!o); + var s = (t |= 0) - (e |= 0); + return (r |= 0) - (n |= 0) < s + ? i + ? n + : o + ? Math.max(0, r - s) + : n < e + ? n + : r > t + ? Math.max(0, r - s) + : e + : n; + }), + (t.HORIZONTAL_EXTRA_PX = 30), + t + ); + })(mw), + RS = + (n(343), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + FS = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._context = t), + (n._decorationsLeft = + n._context.configuration.editor.layoutInfo.decorationsLeft), + (n._decorationsWidth = + n._context.configuration.editor.layoutInfo.decorationsWidth), + (n._renderResult = null), + n._context.addEventHandler(n), + n + ); + } + return ( + RS(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + (this._renderResult = null), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.layoutInfo && + ((this._decorationsLeft = this._context.configuration.editor.layoutInfo.decorationsLeft), + (this._decorationsWidth = this._context.configuration.editor.layoutInfo.decorationsWidth)), + !0 + ); + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype._getDecorations = function (e) { + for ( + var t = e.getDecorationsInViewport(), + n = [], + r = 0, + i = 0, + o = t.length; + i < o; + i++ + ) { + var s = t[i], + a = s.options.linesDecorationsClassName; + a && + (n[r++] = new MS( + s.range.startLineNumber, + s.range.endLineNumber, + a + )); + } + return n; + }), + (t.prototype.prepareRender = function (e) { + for ( + var t = e.visibleRange.startLineNumber, + n = e.visibleRange.endLineNumber, + r = this._render(t, n, this._getDecorations(e)), + i = + '" style="left:' + + this._decorationsLeft.toString() + + 'px;width:' + + this._decorationsWidth.toString() + + 'px;">', + o = [], + s = t; + s <= n; + s++ + ) { + for ( + var a = s - t, u = r[a], l = '', c = 0, d = u.length; + c < d; + c++ + ) + l += '
'; + i[s] = u; + } + this._renderResult = i; + }), + (t.prototype.render = function (e, t) { + return this._renderResult ? this._renderResult[t - e] : ''; + }), + t + ); + })(DS), + BS = + (n(345), + (function () { + function e(t, n, r, i) { + (this.r = e._clamp(t)), + (this.g = e._clamp(n)), + (this.b = e._clamp(r)), + (this.a = e._clamp(i)); + } + return ( + (e._clamp = function (e) { + return e < 0 ? 0 : e > 255 ? 255 : 0 | e; + }), + (e.Empty = new e(0, 0, 0, 0)), + e + ); + })()), + WS = (function () { + function e() { + var e = this; + (this._onDidChange = new Gt()), + (this.onDidChange = this._onDidChange.event), + this._updateColorMap(), + Ia.onDidChange(function (t) { + t.changedColorMap && e._updateColorMap(); + }); + } + return ( + (e.getInstance = function () { + return this._INSTANCE || (this._INSTANCE = new e()), this._INSTANCE; + }), + (e.prototype._updateColorMap = function () { + var e = Ia.getColorMap(); + if (!e) + return ( + (this._colors = [BS.Empty]), void (this._backgroundIsLight = !0) + ); + this._colors = [BS.Empty]; + for (var t = 1; t < e.length; t++) { + var n = e[t].rgba; + this._colors[t] = new BS(n.r, n.g, n.b, Math.round(255 * n.a)); + } + var r = e[2].getRelativeLuminance(); + (this._backgroundIsLight = r >= 0.5), + this._onDidChange.fire(void 0); + }), + (e.prototype.getColor = function (e) { + return ( + (e < 1 || e >= this._colors.length) && (e = 2), this._colors[e] + ); + }), + (e.prototype.backgroundIsLight = function () { + return this._backgroundIsLight; + }), + (e._INSTANCE = null), + e + ); + })(), + HS = (function () { + function e(t, n) { + if (760 !== t.length) throw new Error('Invalid x2CharData'); + if (190 !== n.length) throw new Error('Invalid x1CharData'); + (this.x2charData = t), + (this.x1charData = n), + (this.x2charDataLight = e.soften(t, 0.8)), + (this.x1charDataLight = e.soften(n, 50 / 60)); + } + return ( + (e.soften = function (e, t) { + for ( + var n = new Uint8ClampedArray(e.length), r = 0, i = e.length; + r < i; + r++ + ) + n[r] = e[r] * t; + return n; + }), + (e._getChIndex = function (e) { + return (e -= 32) < 0 && (e += 95), e % 95; + }), + (e.prototype.x2RenderChar = function (t, n, r, i, o, s, a) { + if (n + 2 > t.width || r + 4 > t.height) + console.warn('bad render request outside image data'); + else { + var u = a ? this.x2charDataLight : this.x2charData, + l = e._getChIndex(i), + c = 4 * t.width, + d = s.r, + h = s.g, + f = s.b, + p = o.r - d, + g = o.g - h, + m = o.b - f, + _ = t.data, + y = 4 * l * 2, + v = r * c + 4 * n, + b = u[y] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b); + b = u[y + 1] / 255; + (_[v + 4] = d + p * b), + (_[v + 5] = h + g * b), + (_[v + 6] = f + m * b), + (v += c); + b = u[y + 2] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b); + b = u[y + 3] / 255; + (_[v + 4] = d + p * b), + (_[v + 5] = h + g * b), + (_[v + 6] = f + m * b), + (v += c); + b = u[y + 4] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b); + b = u[y + 5] / 255; + (_[v + 4] = d + p * b), + (_[v + 5] = h + g * b), + (_[v + 6] = f + m * b), + (v += c); + b = u[y + 6] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b); + b = u[y + 7] / 255; + (_[v + 4] = d + p * b), + (_[v + 5] = h + g * b), + (_[v + 6] = f + m * b); + } + }), + (e.prototype.x1RenderChar = function (t, n, r, i, o, s, a) { + if (n + 1 > t.width || r + 2 > t.height) + console.warn('bad render request outside image data'); + else { + var u = a ? this.x1charDataLight : this.x1charData, + l = e._getChIndex(i), + c = 4 * t.width, + d = s.r, + h = s.g, + f = s.b, + p = o.r - d, + g = o.g - h, + m = o.b - f, + _ = t.data, + y = 2 * l * 1, + v = r * c + 4 * n, + b = u[y] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b), + (v += c); + b = u[y + 1] / 255; + (_[v + 0] = d + p * b), + (_[v + 1] = h + g * b), + (_[v + 2] = f + m * b); + } + }), + (e.prototype.x2BlockRenderChar = function (e, t, n, r, i, o) { + if (t + 2 > e.width || n + 4 > e.height) + console.warn('bad render request outside image data'); + else { + var s = 4 * e.width, + a = i.r, + u = i.g, + l = i.b, + c = a + 0.5 * (r.r - a), + d = u + 0.5 * (r.g - u), + h = l + 0.5 * (r.b - l), + f = e.data, + p = n * s + 4 * t; + (f[p + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h), + (f[p + 4] = c), + (f[p + 5] = d), + (f[p + 6] = h), + (f[(p += s) + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h), + (f[p + 4] = c), + (f[p + 5] = d), + (f[p + 6] = h), + (f[(p += s) + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h), + (f[p + 4] = c), + (f[p + 5] = d), + (f[p + 6] = h), + (f[(p += s) + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h), + (f[p + 4] = c), + (f[p + 5] = d), + (f[p + 6] = h); + } + }), + (e.prototype.x1BlockRenderChar = function (e, t, n, r, i, o) { + if (t + 1 > e.width || n + 2 > e.height) + console.warn('bad render request outside image data'); + else { + var s = 4 * e.width, + a = i.r, + u = i.g, + l = i.b, + c = a + 0.5 * (r.r - a), + d = u + 0.5 * (r.g - u), + h = l + 0.5 * (r.b - l), + f = e.data, + p = n * s + 4 * t; + (f[p + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h), + (f[(p += s) + 0] = c), + (f[p + 1] = d), + (f[p + 2] = h); + } + }), + e + ); + })(); + function VS(e) { + for ( + var t = new Uint8ClampedArray(e.length), n = 0, r = e.length; + n < r; + n++ + ) + t[n] = e[n]; + return t; + } + var zS = null; + function US() { + if (!zS) { + var e = VS(KS); + KS = null; + var t = VS(qS); + (qS = null), (zS = new HS(t, e)); + } + return zS; + } + var qS = [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 39, + 14, + 39, + 14, + 14, + 5, + 29, + 10, + 96, + 96, + 29, + 29, + 0, + 0, + 0, + 0, + 49, + 113, + 195, + 214, + 227, + 166, + 135, + 42, + 40, + 29, + 194, + 38, + 75, + 148, + 197, + 187, + 145, + 0, + 160, + 61, + 75, + 143, + 2, + 183, + 138, + 58, + 163, + 6, + 177, + 223, + 197, + 227, + 38, + 13, + 11, + 4, + 0, + 0, + 0, + 0, + 10, + 54, + 52, + 8, + 62, + 4, + 71, + 122, + 73, + 2, + 19, + 40, + 10, + 50, + 155, + 36, + 79, + 70, + 145, + 121, + 7, + 5, + 0, + 0, + 2, + 1, + 36, + 12, + 204, + 166, + 16, + 5, + 0, + 0, + 0, + 0, + 1, + 0, + 154, + 34, + 0, + 0, + 0, + 0, + 96, + 83, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 46, + 34, + 0, + 82, + 2, + 56, + 53, + 3, + 146, + 0, + 146, + 119, + 152, + 132, + 152, + 131, + 145, + 119, + 170, + 42, + 15, + 42, + 15, + 42, + 172, + 194, + 131, + 132, + 0, + 139, + 80, + 28, + 227, + 143, + 159, + 135, + 15, + 118, + 11, + 126, + 171, + 144, + 20, + 124, + 88, + 106, + 217, + 196, + 0, + 106, + 189, + 92, + 168, + 43, + 5, + 130, + 164, + 133, + 130, + 115, + 183, + 65, + 134, + 120, + 141, + 141, + 170, + 196, + 2, + 106, + 31, + 32, + 105, + 2, + 145, + 130, + 116, + 114, + 132, + 135, + 138, + 140, + 138, + 113, + 147, + 137, + 81, + 183, + 129, + 94, + 0, + 0, + 21, + 16, + 4, + 3, + 46, + 34, + 0, + 0, + 45, + 34, + 1, + 0, + 160, + 49, + 0, + 0, + 43, + 143, + 203, + 23, + 1, + 76, + 0, + 0, + 38, + 28, + 131, + 96, + 38, + 28, + 0, + 0, + 168, + 31, + 29, + 191, + 98, + 0, + 118, + 139, + 5, + 113, + 45, + 13, + 37, + 6, + 97, + 115, + 161, + 179, + 204, + 105, + 223, + 224, + 83, + 52, + 111, + 100, + 184, + 186, + 120, + 132, + 212, + 145, + 180, + 139, + 174, + 161, + 212, + 182, + 104, + 162, + 131, + 0, + 131, + 0, + 104, + 161, + 219, + 120, + 110, + 116, + 110, + 116, + 219, + 120, + 207, + 154, + 163, + 40, + 147, + 22, + 207, + 154, + 202, + 159, + 161, + 47, + 145, + 23, + 111, + 0, + 139, + 154, + 144, + 30, + 144, + 135, + 139, + 187, + 110, + 110, + 168, + 161, + 150, + 145, + 110, + 110, + 185, + 162, + 43, + 16, + 43, + 16, + 185, + 162, + 73, + 129, + 0, + 110, + 0, + 110, + 191, + 87, + 149, + 149, + 236, + 48, + 195, + 91, + 146, + 149, + 146, + 0, + 146, + 0, + 146, + 0, + 187, + 173, + 200, + 201, + 222, + 215, + 172, + 147, + 95, + 95, + 193, + 97, + 224, + 129, + 159, + 206, + 97, + 192, + 155, + 139, + 153, + 115, + 153, + 115, + 156, + 140, + 189, + 158, + 123, + 136, + 190, + 64, + 111, + 0, + 155, + 139, + 153, + 115, + 153, + 114, + 156, + 241, + 197, + 148, + 150, + 152, + 170, + 116, + 110, + 157, + 156, + 128, + 169, + 14, + 13, + 159, + 158, + 149, + 212, + 189, + 43, + 16, + 43, + 16, + 43, + 16, + 148, + 110, + 148, + 110, + 147, + 109, + 182, + 151, + 133, + 121, + 106, + 118, + 114, + 103, + 89, + 66, + 94, + 94, + 211, + 188, + 205, + 207, + 139, + 168, + 151, + 152, + 87, + 76, + 101, + 79, + 151, + 152, + 130, + 156, + 125, + 116, + 47, + 29, + 43, + 16, + 169, + 228, + 11, + 103, + 120, + 6, + 230, + 176, + 55, + 49, + 55, + 6, + 55, + 6, + 193, + 102, + 92, + 0, + 71, + 0, + 13, + 30, + 0, + 147, + 63, + 43, + 12, + 43, + 12, + 43, + 142, + 152, + 71, + 53, + 61, + 61, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 158, + 146, + 25, + 2, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 107, + 130, + 170, + 194, + 176, + 188, + 109, + 0, + 203, + 159, + 113, + 111, + 202, + 158, + 0, + 0, + 135, + 135, + 114, + 0, + 136, + 135, + 0, + 109, + 187, + 190, + 148, + 126, + 177, + 187, + 0, + 0, + 149, + 130, + 218, + 105, + 169, + 135, + 37, + 113, + 146, + 113, + 49, + 13, + 49, + 13, + 0, + 0, + 178, + 195, + 147, + 114, + 255, + 255, + 109, + 0, + 193, + 149, + 110, + 109, + 109, + 109, + 12, + 15, + 125, + 41, + 33, + 41, + 144, + 188, + 1, + 6, + 75, + 53, + 10, + 53, + 210, + 161, + 110, + 0, + 152, + 148, + 210, + 60, + 110, + 156, + 213, + 5, + 63, + 5, + 63, + 5, + 45, + 111, + 0, + 0, + 232, + 172, + 190, + 168, + 190, + 169, + 0, + 0, + 190, + 144, + 109, + 109, + 109, + 109, + 0, + 0, + 168, + 140, + 148, + 111, + 168, + 140, + 0, + 0, + 200, + 151, + 113, + 110, + 255, + 158, + 0, + 0, + 184, + 188, + 147, + 139, + 186, + 255, + 0, + 0, + 122, + 130, + 111, + 0, + 109, + 0, + 0, + 0, + 132, + 69, + 109, + 93, + 110, + 136, + 51, + 5, + 205, + 103, + 61, + 6, + 47, + 106, + 0, + 0, + 110, + 109, + 110, + 122, + 155, + 179, + 0, + 0, + 132, + 120, + 113, + 114, + 84, + 63, + 0, + 0, + 124, + 108, + 202, + 189, + 160, + 174, + 0, + 0, + 144, + 142, + 79, + 57, + 159, + 146, + 0, + 0, + 138, + 138, + 119, + 117, + 255, + 69, + 0, + 0, + 97, + 198, + 47, + 38, + 208, + 84, + 23, + 112, + 41, + 14, + 157, + 7, + 121, + 192, + 35, + 11, + 35, + 11, + 35, + 11, + 160, + 61, + 129, + 9, + 40, + 19, + 20, + 139, + 236, + 44, + 0, + 0, + 15, + 3, + 97, + 93, + 0, + 0, + ], + KS = [ + 0, + 0, + 23, + 12, + 53, + 0, + 130, + 127, + 58, + 149, + 67, + 77, + 72, + 198, + 13, + 0, + 25, + 51, + 25, + 49, + 94, + 2, + 8, + 64, + 0, + 24, + 0, + 21, + 0, + 9, + 19, + 27, + 126, + 126, + 51, + 80, + 72, + 105, + 87, + 98, + 73, + 93, + 106, + 85, + 111, + 123, + 87, + 30, + 116, + 126, + 123, + 110, + 4, + 16, + 9, + 28, + 21, + 53, + 8, + 62, + 23, + 52, + 73, + 21, + 132, + 183, + 78, + 142, + 168, + 175, + 70, + 70, + 128, + 128, + 123, + 110, + 125, + 43, + 100, + 139, + 125, + 119, + 78, + 78, + 54, + 77, + 139, + 139, + 33, + 87, + 201, + 117, + 162, + 149, + 130, + 130, + 138, + 60, + 130, + 172, + 149, + 127, + 95, + 98, + 95, + 25, + 118, + 135, + 110, + 85, + 147, + 175, + 105, + 110, + 121, + 30, + 101, + 113, + 34, + 68, + 20, + 26, + 34, + 68, + 56, + 0, + 0, + 44, + 3, + 0, + 27, + 175, + 80, + 133, + 31, + 66, + 85, + 147, + 32, + 150, + 90, + 25, + 45, + 230, + 77, + 101, + 36, + 83, + 22, + 84, + 71, + 118, + 44, + 44, + 52, + 172, + 38, + 101, + 35, + 130, + 40, + 197, + 43, + 197, + 29, + 26, + 23, + 103, + 67, + 44, + 25, + 129, + 29, + 85, + 27, + 177, + 33, + 97, + 32, + 145, + 33, + 77, + 38, + 96, + 20, + 55, + 36, + 95, + 2, + 22, + ], + GS = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function $S(e) { + return 2 === e ? 4 : 4 === e ? 6 : 1 === e ? 2 : 3; + } + function ZS(e) { + return 2 === e ? 2 : 4 === e ? 2 : 1; + } + var XS = 140, + JS = (function () { + function e(e) { + var t = e.editor.pixelRatio, + n = e.editor.layoutInfo, + r = e.editor.viewInfo, + i = e.editor.fontInfo; + (this.renderMinimap = 0 | n.renderMinimap), + (this.scrollBeyondLastLine = r.scrollBeyondLastLine), + (this.showSlider = r.minimap.showSlider), + (this.pixelRatio = t), + (this.typicalHalfwidthCharacterWidth = + i.typicalHalfwidthCharacterWidth), + (this.lineHeight = e.editor.lineHeight), + (this.minimapLeft = n.minimapLeft), + (this.minimapWidth = n.minimapWidth), + (this.minimapHeight = n.height), + (this.canvasInnerWidth = Math.max( + 1, + Math.floor(t * this.minimapWidth) + )), + (this.canvasInnerHeight = Math.max( + 1, + Math.floor(t * this.minimapHeight) + )), + (this.canvasOuterWidth = this.canvasInnerWidth / t), + (this.canvasOuterHeight = this.canvasInnerHeight / t); + } + return ( + (e.prototype.equals = function (e) { + return ( + this.renderMinimap === e.renderMinimap && + this.scrollBeyondLastLine === e.scrollBeyondLastLine && + this.showSlider === e.showSlider && + this.pixelRatio === e.pixelRatio && + this.typicalHalfwidthCharacterWidth === + e.typicalHalfwidthCharacterWidth && + this.lineHeight === e.lineHeight && + this.minimapLeft === e.minimapLeft && + this.minimapWidth === e.minimapWidth && + this.minimapHeight === e.minimapHeight && + this.canvasInnerWidth === e.canvasInnerWidth && + this.canvasInnerHeight === e.canvasInnerHeight && + this.canvasOuterWidth === e.canvasOuterWidth && + this.canvasOuterHeight === e.canvasOuterHeight + ); + }), + e + ); + })(), + QS = (function () { + function e(e, t, n, r, i, o, s) { + (this.scrollTop = e), + (this.scrollHeight = t), + (this._computedSliderRatio = n), + (this.sliderTop = r), + (this.sliderHeight = i), + (this.startLineNumber = o), + (this.endLineNumber = s); + } + return ( + (e.prototype.getDesiredScrollTopFromDelta = function (e) { + var t = this.sliderTop + e; + return Math.round(t / this._computedSliderRatio); + }), + (e.create = function (t, n, r, i, o, s, a, u, l) { + var c, + d, + h = t.pixelRatio, + f = $S(t.renderMinimap), + p = Math.floor(t.canvasInnerHeight / f), + g = t.lineHeight; + if (o && r !== s) { + var m = r - n + 1; + c = Math.floor((m * f) / h); + } else { + var _ = i / g; + c = Math.floor((_ * f) / h); + } + d = t.scrollBeyondLastLine + ? ((s - 1) * f) / h + : Math.max(0, (s * f) / h - c); + var y = (d = Math.min(t.minimapHeight - c, d)) / (u - i), + v = a * y, + b = 0; + t.scrollBeyondLastLine && (b = _ = i / g); + if (p >= s + b) return new e(a, u, y, v, c, (w = 1), s); + var w = Math.max(1, Math.floor(n - (v * h) / f)); + return ( + l && + l.scrollHeight === u && + (l.scrollTop > a && (w = Math.min(w, l.startLineNumber)), + l.scrollTop < a && (w = Math.max(w, l.startLineNumber))), + new e(a, u, y, v, c, w, Math.min(s, w + p - 1)) + ); + }), + e + ); + })(), + ex = (function () { + function e(e) { + this.dy = e; + } + return ( + (e.prototype.onContentChanged = function () { + this.dy = -1; + }), + (e.prototype.onTokensChanged = function () { + this.dy = -1; + }), + (e.INVALID = new e(-1)), + e + ); + })(), + tx = (function () { + function e(e, t, n) { + (this.renderedLayout = e), + (this._imageData = t), + (this._renderedLines = new sS(function () { + return ex.INVALID; + })), + this._renderedLines._set(e.startLineNumber, n); + } + return ( + (e.prototype.linesEquals = function (e) { + if (!this.scrollEquals(e)) return !1; + for ( + var t = this._renderedLines._get().lines, n = 0, r = t.length; + n < r; + n++ + ) + if (-1 === t[n].dy) return !1; + return !0; + }), + (e.prototype.scrollEquals = function (e) { + return ( + this.renderedLayout.startLineNumber === e.startLineNumber && + this.renderedLayout.endLineNumber === e.endLineNumber + ); + }), + (e.prototype._get = function () { + var e = this._renderedLines._get(); + return { + imageData: this._imageData, + rendLineNumberStart: e.rendLineNumberStart, + lines: e.lines, + }; + }), + (e.prototype.onLinesChanged = function (e) { + return this._renderedLines.onLinesChanged( + e.fromLineNumber, + e.toLineNumber + ); + }), + (e.prototype.onLinesDeleted = function (e) { + this._renderedLines.onLinesDeleted( + e.fromLineNumber, + e.toLineNumber + ); + }), + (e.prototype.onLinesInserted = function (e) { + this._renderedLines.onLinesInserted( + e.fromLineNumber, + e.toLineNumber + ); + }), + (e.prototype.onTokensChanged = function (e) { + return this._renderedLines.onTokensChanged(e.ranges); + }), + e + ); + })(), + nx = (function () { + function e(t, n, r, i) { + (this._backgroundFillData = e._createBackgroundFillData(n, r, i)), + (this._buffers = [ + t.createImageData(n, r), + t.createImageData(n, r), + ]), + (this._lastUsedBuffer = 0); + } + return ( + (e.prototype.getBuffer = function () { + this._lastUsedBuffer = 1 - this._lastUsedBuffer; + var e = this._buffers[this._lastUsedBuffer]; + return e.data.set(this._backgroundFillData), e; + }), + (e._createBackgroundFillData = function (e, t, n) { + for ( + var r = n.r, + i = n.g, + o = n.b, + s = new Uint8ClampedArray(e * t * 4), + a = 0, + u = 0; + u < t; + u++ + ) + for (var l = 0; l < e; l++) + (s[a] = r), + (s[a + 1] = i), + (s[a + 2] = o), + (s[a + 3] = 255), + (a += 4); + return s; + }), + e + ); + })(), + rx = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._renderDecorations = !1), + (n._options = new JS(n._context.configuration)), + (n._lastRenderData = null), + (n._buffers = null), + (n._domNode = Mp(document.createElement('div'))), + _w.write(n._domNode, 8), + n._domNode.setClassName(n._getMinimapDomNodeClassName()), + n._domNode.setPosition('absolute'), + n._domNode.setAttribute('role', 'presentation'), + n._domNode.setAttribute('aria-hidden', 'true'), + (n._shadow = Mp(document.createElement('div'))), + n._shadow.setClassName('minimap-shadow-hidden'), + n._domNode.appendChild(n._shadow), + (n._canvas = Mp(document.createElement('canvas'))), + n._canvas.setPosition('absolute'), + n._canvas.setLeft(0), + n._domNode.appendChild(n._canvas), + (n._decorationsCanvas = Mp(document.createElement('canvas'))), + n._decorationsCanvas.setPosition('absolute'), + n._decorationsCanvas.setClassName('minimap-decorations-layer'), + n._decorationsCanvas.setLeft(0), + n._domNode.appendChild(n._decorationsCanvas), + (n._slider = Mp(document.createElement('div'))), + n._slider.setPosition('absolute'), + n._slider.setClassName('minimap-slider'), + n._slider.setLayerHinting(!0), + n._domNode.appendChild(n._slider), + (n._sliderHorizontal = Mp(document.createElement('div'))), + n._sliderHorizontal.setPosition('absolute'), + n._sliderHorizontal.setClassName('minimap-slider-horizontal'), + n._slider.appendChild(n._sliderHorizontal), + (n._tokensColorTracker = WS.getInstance()), + n._applyLayout(), + (n._mouseDownListener = Gh( + n._domNode.domNode, + 'mousedown', + function (e) { + e.preventDefault(); + var t = n._options.renderMinimap; + if (0 !== t && n._lastRenderData) { + var r = $S(t), + i = n._options.pixelRatio * e.browserEvent.offsetY, + o = + Math.floor(i / r) + + n._lastRenderData.renderedLayout.startLineNumber; + (o = Math.min(o, n._context.model.getLineCount())), + n._context.privateViewEventBus.emit( + new zC(new Fr(o, 1, o, 1), 1, !1, 0) + ); + } + } + )), + (n._sliderMouseMoveMonitor = new Ep()), + (n._sliderMouseDownListener = Gh( + n._slider.domNode, + 'mousedown', + function (e) { + if ( + (e.preventDefault(), + e.stopPropagation(), + e.leftButton && n._lastRenderData) + ) { + var t = e.posy, + r = e.posx, + i = n._lastRenderData.renderedLayout; + n._slider.toggleClassName('active', !0), + n._sliderMouseMoveMonitor.startMonitoring( + Dp, + function (e) { + var o = Math.abs(e.posx - r); + if (tt.g && o > XS) + n._context.viewLayout.setScrollPositionNow({ + scrollTop: i.scrollTop, + }); + else { + var s = e.posy - t; + n._context.viewLayout.setScrollPositionNow({ + scrollTop: i.getDesiredScrollTopFromDelta(s), + }); + } + }, + function () { + n._slider.toggleClassName('active', !1); + } + ); + } + } + )), + n + ); + } + return ( + GS(t, e), + (t.prototype.dispose = function () { + this._mouseDownListener.dispose(), + this._sliderMouseMoveMonitor.dispose(), + this._sliderMouseDownListener.dispose(), + e.prototype.dispose.call(this); + }), + (t.prototype._getMinimapDomNodeClassName = function () { + return 'always' === this._options.showSlider + ? 'minimap slider-always' + : 'minimap slider-mouseover'; + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype._applyLayout = function () { + this._domNode.setLeft(this._options.minimapLeft), + this._domNode.setWidth(this._options.minimapWidth), + this._domNode.setHeight(this._options.minimapHeight), + this._shadow.setHeight(this._options.minimapHeight), + this._canvas.setWidth(this._options.canvasOuterWidth), + this._canvas.setHeight(this._options.canvasOuterHeight), + (this._canvas.domNode.width = this._options.canvasInnerWidth), + (this._canvas.domNode.height = this._options.canvasInnerHeight), + this._decorationsCanvas.setWidth(this._options.canvasOuterWidth), + this._decorationsCanvas.setHeight( + this._options.canvasOuterHeight + ), + (this._decorationsCanvas.domNode.width = this._options.canvasInnerWidth), + (this._decorationsCanvas.domNode.height = this._options.canvasInnerHeight), + this._slider.setWidth(this._options.minimapWidth); + }), + (t.prototype._getBuffer = function () { + return ( + this._buffers || + (this._buffers = new nx( + this._canvas.domNode.getContext('2d'), + this._options.canvasInnerWidth, + this._options.canvasInnerHeight, + this._tokensColorTracker.getColor(2) + )), + this._buffers.getBuffer() + ); + }), + (t.prototype._onOptionsMaybeChanged = function () { + var e = new JS(this._context.configuration); + return ( + !this._options.equals(e) && + ((this._options = e), + (this._lastRenderData = null), + (this._buffers = null), + this._applyLayout(), + this._domNode.setClassName(this._getMinimapDomNodeClassName()), + !0) + ); + }), + (t.prototype.onConfigurationChanged = function (e) { + return this._onOptionsMaybeChanged(); + }), + (t.prototype.onFlushed = function (e) { + return (this._lastRenderData = null), !0; + }), + (t.prototype.onLinesChanged = function (e) { + return ( + !!this._lastRenderData && this._lastRenderData.onLinesChanged(e) + ); + }), + (t.prototype.onLinesDeleted = function (e) { + return ( + this._lastRenderData && this._lastRenderData.onLinesDeleted(e), !0 + ); + }), + (t.prototype.onLinesInserted = function (e) { + return ( + this._lastRenderData && this._lastRenderData.onLinesInserted(e), + !0 + ); + }), + (t.prototype.onScrollChanged = function (e) { + return (this._renderDecorations = !0), !0; + }), + (t.prototype.onTokensChanged = function (e) { + return ( + !!this._lastRenderData && this._lastRenderData.onTokensChanged(e) + ); + }), + (t.prototype.onTokensColorsChanged = function (e) { + return (this._lastRenderData = null), (this._buffers = null), !0; + }), + (t.prototype.onZonesChanged = function (e) { + return (this._lastRenderData = null), !0; + }), + (t.prototype.onDecorationsChanged = function (e) { + return (this._renderDecorations = !0), !0; + }), + (t.prototype.onThemeChanged = function (e) { + return ( + this._context.model.invalidateMinimapColorCache(), + (this._renderDecorations = !!this._lastDecorations), + !!this._lastDecorations + ); + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + if (0 === this._options.renderMinimap) + return ( + this._shadow.setClassName('minimap-shadow-hidden'), + this._sliderHorizontal.setWidth(0), + void this._sliderHorizontal.setHeight(0) + ); + e.scrollLeft + e.viewportWidth >= e.scrollWidth + ? this._shadow.setClassName('minimap-shadow-hidden') + : this._shadow.setClassName('minimap-shadow-visible'); + var t = QS.create( + this._options, + e.visibleRange.startLineNumber, + e.visibleRange.endLineNumber, + e.viewportHeight, + e.viewportData.whitespaceViewportData.length > 0, + this._context.model.getLineCount(), + e.scrollTop, + e.scrollHeight, + this._lastRenderData ? this._lastRenderData.renderedLayout : null + ); + this._slider.setTop(t.sliderTop), + this._slider.setHeight(t.sliderHeight); + var n = e.scrollLeft / this._options.typicalHalfwidthCharacterWidth, + r = Math.min( + this._options.minimapWidth, + Math.round( + (n * ZS(this._options.renderMinimap)) / + this._options.pixelRatio + ) + ); + this._sliderHorizontal.setLeft(r), + this._sliderHorizontal.setWidth(this._options.minimapWidth - r), + this._sliderHorizontal.setTop(0), + this._sliderHorizontal.setHeight(t.sliderHeight), + this.renderDecorations(t), + (this._lastRenderData = this.renderLines(t)); + }), + (t.prototype.renderDecorations = function (e) { + if (this._renderDecorations) { + this._renderDecorations = !1; + var t = this._context.model.getDecorationsInViewport( + new Fr( + e.startLineNumber, + 1, + e.endLineNumber, + this._context.model.getLineMaxColumn(e.endLineNumber) + ) + ), + n = this._options, + r = n.renderMinimap, + i = n.canvasInnerWidth, + o = n.canvasInnerHeight, + s = $S(r), + a = ZS(r), + u = this._context.model.getOptions().tabSize, + l = this._decorationsCanvas.domNode.getContext('2d'); + l.clearRect(0, 0, i, o); + for (var c = new Map(), d = 0; d < t.length; d++) { + var h = t[d]; + if (h.options.minimap) + for ( + var f = h.range.startLineNumber; + f <= h.range.endLineNumber; + f++ + ) + this.renderDecorationOnLine(l, c, h, e, f, s, s, u, a); + } + this._lastDecorations = t; + } + }), + (t.prototype.renderDecorationOnLine = function ( + e, + t, + n, + r, + i, + o, + s, + a, + u + ) { + var l = (i - r.startLineNumber) * s, + c = t.get(i), + d = !c; + if (!c) { + var h = this._context.model.getLineContent(i); + c = [0]; + for (var f = 1; f < h.length + 1; f++) { + var p = h.charCodeAt(f - 1), + g = 9 === p ? a * u : Tn(p) ? 2 * u : u; + c[f] = c[f - 1] + g; + } + t.set(i, c); + } + var m = n.range, + _ = m.startColumn, + y = m.endColumn, + v = m.startLineNumber, + b = m.endLineNumber, + w = v === i ? c[_ - 1] : 0, + C = b > i ? c.length - 1 : y - 1; + if (C > 0) { + var S = c[C] - w || 2; + this.renderDecoration(e, n.options.minimap, w, l, S, o); + } + d && this.renderLineHighlight(e, n.options.minimap, l, o); + }), + (t.prototype.renderLineHighlight = function (e, t, n, r) { + var i = t.getColor(this._context.theme); + (e.fillStyle = (i && i.transparent(0.5).toString()) || ''), + e.fillRect(0, n, e.canvas.width, r); + }), + (t.prototype.renderDecoration = function (e, t, n, r, i, o) { + var s = t.getColor(this._context.theme); + (e.fillStyle = (s && s.toString()) || ''), e.fillRect(n, r, i, o); + }), + (t.prototype.renderLines = function (e) { + var n = this._options.renderMinimap, + r = e.startLineNumber, + i = e.endLineNumber, + o = $S(n); + if (this._lastRenderData && this._lastRenderData.linesEquals(e)) { + var s = this._lastRenderData._get(); + return new tx(e, s.imageData, s.lines); + } + for ( + var a = this._getBuffer(), + u = t._renderUntouchedLines(a, r, i, o, this._lastRenderData), + l = u[0], + c = u[1], + d = u[2], + h = this._context.model.getMinimapLinesRenderingData(r, i, d), + f = h.tabSize, + p = this._tokensColorTracker.getColor(2), + g = this._tokensColorTracker.backgroundIsLight(), + m = 0, + _ = [], + y = 0, + v = i - r + 1; + y < v; + y++ + ) + d[y] && + t._renderLine( + a, + p, + g, + n, + this._tokensColorTracker, + US(), + m, + f, + h.data[y] + ), + (_[y] = new ex(m)), + (m += o); + var b = -1 === l ? 0 : l, + w = (-1 === c ? a.height : c) - b; + return ( + this._canvas.domNode + .getContext('2d') + .putImageData(a, 0, 0, 0, b, a.width, w), + new tx(e, a, _) + ); + }), + (t._renderUntouchedLines = function (e, t, n, r, i) { + var o = []; + if (!i) { + for (var s = 0, a = n - t + 1; s < a; s++) o[s] = !0; + return [-1, -1, o]; + } + for ( + var u = i._get(), + l = u.imageData.data, + c = u.rendLineNumberStart, + d = u.lines, + h = d.length, + f = e.width, + p = e.data, + g = (n - t + 1) * r * f * 4, + m = -1, + _ = -1, + y = -1, + v = -1, + b = -1, + w = -1, + C = 0, + S = t; + S <= n; + S++ + ) { + var x = S - t, + L = S - c, + k = L >= 0 && L < h ? d[L].dy : -1; + if (-1 !== k) { + var M = k * f * 4, + D = (k + r) * f * 4, + E = C * f * 4, + T = (C + r) * f * 4; + v === M && w === E + ? ((v = D), (w = T)) + : (-1 !== y && + (p.set(l.subarray(y, v), b), + -1 === m && 0 === y && y === b && (m = v), + -1 === _ && v === g && y === b && (_ = y)), + (y = M), + (v = D), + (b = E), + (w = T)), + (o[x] = !1), + (C += r); + } else (o[x] = !0), (C += r); + } + return ( + -1 !== y && + (p.set(l.subarray(y, v), b), + -1 === m && 0 === y && y === b && (m = v), + -1 === _ && v === g && y === b && (_ = y)), + [-1 === m ? -1 : m / (4 * f), -1 === _ ? -1 : _ / (4 * f), o] + ); + }), + (t._renderLine = function (e, t, n, r, i, o, s, a, u) { + for ( + var l = u.content, + c = u.tokens, + d = ZS(r), + h = e.width - d, + f = 0, + p = 0, + g = 0, + m = 0, + _ = c.getCount(); + m < _; + m++ + ) + for ( + var y = c.getEndOffset(m), + v = c.getForeground(m), + b = i.getColor(v); + p < y; + p++ + ) { + if (f > h) return; + var w = l.charCodeAt(p); + if (9 === w) { + var C = a - ((p + g) % a); + (g += C - 1), (f += C * d); + } else if (32 === w) f += d; + else + for (var S = Tn(w) ? 2 : 1, x = 0; x < S; x++) + if ( + (2 === r + ? o.x2RenderChar(e, f, s, w, b, t, n) + : 1 === r + ? o.x1RenderChar(e, f, s, w, b, t, n) + : 4 === r + ? o.x2BlockRenderChar(e, f, s, b, t, n) + : o.x1BlockRenderChar(e, f, s, b, t, n), + (f += d) > h) + ) + return; + } + }), + t + ); + })(mw); + Bd(function (e, t) { + var n = e.getColor(Fc); + if (n) { + var r = n.transparent(0.5); + t.addRule( + '.monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: ' + + r + + '; }' + ); + } + var i = e.getColor(Yc); + if (i) { + var o = i.transparent(0.5); + t.addRule( + '.monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: ' + + o + + '; }' + ); + } + var s = e.getColor(jc); + if (s) { + var a = s.transparent(0.5); + t.addRule( + '.monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: ' + + a + + '; }' + ); + } + var u = e.getColor(Rc); + u && + t.addRule( + '.monaco-editor .minimap-shadow-visible { box-shadow: ' + + u + + ' -6px 0 6px -6px inset; }' + ); + }); + n(346); + var ix = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ox = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._widgets = {}), + (n._verticalScrollbarWidth = + n._context.configuration.editor.layoutInfo.verticalScrollbarWidth), + (n._minimapWidth = + n._context.configuration.editor.layoutInfo.minimapWidth), + (n._horizontalScrollbarHeight = + n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight), + (n._editorHeight = + n._context.configuration.editor.layoutInfo.height), + (n._editorWidth = n._context.configuration.editor.layoutInfo.width), + (n._domNode = Mp(document.createElement('div'))), + _w.write(n._domNode, 4), + n._domNode.setClassName('overlayWidgets'), + n + ); + } + return ( + ix(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), (this._widgets = {}); + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + !!e.layoutInfo && + ((this._verticalScrollbarWidth = this._context.configuration.editor.layoutInfo.verticalScrollbarWidth), + (this._minimapWidth = this._context.configuration.editor.layoutInfo.minimapWidth), + (this._horizontalScrollbarHeight = this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight), + (this._editorHeight = this._context.configuration.editor.layoutInfo.height), + (this._editorWidth = this._context.configuration.editor.layoutInfo.width), + !0) + ); + }), + (t.prototype.addWidget = function (e) { + var t = Mp(e.getDomNode()); + (this._widgets[e.getId()] = { + widget: e, + preference: null, + domNode: t, + }), + t.setPosition('absolute'), + t.setAttribute('widgetId', e.getId()), + this._domNode.appendChild(t), + this.setShouldRender(); + }), + (t.prototype.setWidgetPosition = function (e, t) { + var n = this._widgets[e.getId()]; + return ( + n.preference !== t && + ((n.preference = t), this.setShouldRender(), !0) + ); + }), + (t.prototype.removeWidget = function (e) { + var t = e.getId(); + if (this._widgets.hasOwnProperty(t)) { + var n = this._widgets[t].domNode.domNode; + delete this._widgets[t], + n.parentNode.removeChild(n), + this.setShouldRender(); + } + }), + (t.prototype._renderWidget = function (e) { + var t = e.domNode; + if (null !== e.preference) + if (0 === e.preference) + t.setTop(0), + t.setRight( + 2 * this._verticalScrollbarWidth + this._minimapWidth + ); + else if (1 === e.preference) { + var n = t.domNode.clientHeight; + t.setTop( + this._editorHeight - n - 2 * this._horizontalScrollbarHeight + ), + t.setRight( + 2 * this._verticalScrollbarWidth + this._minimapWidth + ); + } else + 2 === e.preference && + (t.setTop(0), (t.domNode.style.right = '50%')); + else t.unsetTop(); + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + this._domNode.setWidth(this._editorWidth); + for ( + var t = Object.keys(this._widgets), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n]; + this._renderWidget(this._widgets[i]); + } + }), + t + ); + })(mw), + sx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ax = (function () { + function e(e, t) { + (this.lineHeight = e.editor.lineHeight), + (this.pixelRatio = e.editor.pixelRatio), + (this.overviewRulerLanes = e.editor.viewInfo.overviewRulerLanes), + (this.renderBorder = e.editor.viewInfo.overviewRulerBorder); + var n = t.getColor(SC); + (this.borderColor = n ? n.toString() : null), + (this.hideCursor = e.editor.viewInfo.hideCursorInOverviewRuler); + var r = t.getColor(pC); + (this.cursorColor = r ? r.transparent(0.7).toString() : null), + (this.themeType = t.type); + var i = e.editor.viewInfo.minimap.enabled, + o = e.editor.viewInfo.minimap.side, + s = i ? Ia.getDefaultBackground() : null; + this.backgroundColor = + null === s || 'left' === o ? null : Nu.Format.CSS.formatHex(s); + var a = e.editor.layoutInfo.overviewRuler; + (this.top = a.top), + (this.right = a.right), + (this.domWidth = a.width), + (this.domHeight = a.height), + (this.canvasWidth = (this.domWidth * this.pixelRatio) | 0), + (this.canvasHeight = (this.domHeight * this.pixelRatio) | 0); + var u = this._initLanes(1, this.canvasWidth, this.overviewRulerLanes), + l = u[0], + c = u[1]; + (this.x = l), (this.w = c); + } + return ( + (e.prototype._initLanes = function (e, t, n) { + var r = t - e; + if (n >= 3) { + var i, + o, + s, + a = r - (i = Math.floor(r / 3)) - (o = Math.floor(r / 3)), + u = (s = e) + i; + return [ + [0, s, u, s, s + i + a, s, u, s], + [0, i, a, i + a, o, i + a + o, a + o, i + a + o], + ]; + } + if (2 === n) + return [ + [0, (s = e), s, s, s + (i = Math.floor(r / 2)), s, s, s], + [0, i, i, i, (o = r - i), i + o, i + o, i + o], + ]; + return [ + [0, e, e, e, e, e, e, e], + [0, r, r, r, r, r, r, r], + ]; + }), + (e.prototype.equals = function (e) { + return ( + this.lineHeight === e.lineHeight && + this.pixelRatio === e.pixelRatio && + this.overviewRulerLanes === e.overviewRulerLanes && + this.renderBorder === e.renderBorder && + this.borderColor === e.borderColor && + this.hideCursor === e.hideCursor && + this.cursorColor === e.cursorColor && + this.themeType === e.themeType && + this.backgroundColor === e.backgroundColor && + this.top === e.top && + this.right === e.right && + this.domWidth === e.domWidth && + this.domHeight === e.domHeight && + this.canvasWidth === e.canvasWidth && + this.canvasHeight === e.canvasHeight + ); + }), + e + ); + })(), + ux = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._domNode = Mp(document.createElement('canvas'))), + n._domNode.setClassName('decorationsOverviewRuler'), + n._domNode.setPosition('absolute'), + n._domNode.setLayerHinting(!0), + n._domNode.setAttribute('aria-hidden', 'true'), + n._updateSettings(!1), + (n._tokensColorTrackerListener = Ia.onDidChange(function (e) { + e.changedColorMap && n._updateSettings(!0); + })), + (n._cursorPositions = []), + n + ); + } + return ( + sx(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this._tokensColorTrackerListener.dispose(); + }), + (t.prototype._updateSettings = function (e) { + var t = new ax(this._context.configuration, this._context.theme); + return ( + (!this._settings || !this._settings.equals(t)) && + ((this._settings = t), + this._domNode.setTop(this._settings.top), + this._domNode.setRight(this._settings.right), + this._domNode.setWidth(this._settings.domWidth), + this._domNode.setHeight(this._settings.domHeight), + (this._domNode.domNode.width = this._settings.canvasWidth), + (this._domNode.domNode.height = this._settings.canvasHeight), + e && this._render(), + !0) + ); + }), + (t.prototype.onConfigurationChanged = function (e) { + return this._updateSettings(!1); + }), + (t.prototype.onCursorStateChanged = function (e) { + this._cursorPositions = []; + for (var t = 0, n = e.selections.length; t < n; t++) + this._cursorPositions[t] = e.selections[t].getPosition(); + return this._cursorPositions.sort(xt.compare), !0; + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollHeightChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.onThemeChanged = function (e) { + return ( + this._context.model.invalidateOverviewRulerColorCache(), + this._updateSettings(!1) + ); + }), + (t.prototype.getDomNode = function () { + return this._domNode.domNode; + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + this._render(); + }), + (t.prototype._render = function () { + var e = this._settings.canvasWidth, + t = this._settings.canvasHeight, + n = this._settings.lineHeight, + r = this._context.viewLayout, + i = t / this._context.viewLayout.getScrollHeight(), + o = this._context.model.getAllOverviewRulerDecorations( + this._context.theme + ), + s = (6 * this._settings.pixelRatio) | 0, + a = (s / 2) | 0, + u = this._domNode.domNode.getContext('2d'); + null === this._settings.backgroundColor + ? u.clearRect(0, 0, e, t) + : ((u.fillStyle = this._settings.backgroundColor), + u.fillRect(0, 0, e, t)); + var l = this._settings.x, + c = this._settings.w, + d = Object.keys(o); + d.sort(); + for (var h = 0, f = d.length; h < f; h++) { + var p = d[h], + g = o[p]; + u.fillStyle = p; + for (var m = 0, _ = 0, y = 0, v = 0, b = g.length; v < b; v++) { + var w = g[3 * v], + C = g[3 * v + 1], + S = g[3 * v + 2], + x = (r.getVerticalOffsetForLineNumber(C) * i) | 0; + if ( + (N = ((r.getVerticalOffsetForLineNumber(S) + n) * i) | 0) - + x < + s + ) + (E = ((x + N) / 2) | 0) < a + ? (E = a) + : E + a > t && (E = t - a), + (x = E - a), + (N = E + a); + x > y + 1 || w !== m + ? (0 !== v && u.fillRect(l[m], _, c[m], y - _), + (m = w), + (_ = x), + (y = N)) + : N > y && (y = N); + } + u.fillRect(l[m], _, c[m], y - _); + } + if (!this._settings.hideCursor && this._settings.cursorColor) { + var L = (2 * this._settings.pixelRatio) | 0, + k = (L / 2) | 0, + M = this._settings.x[7], + D = this._settings.w[7]; + u.fillStyle = this._settings.cursorColor; + for ( + _ = -100, y = -100, v = 0, b = this._cursorPositions.length; + v < b; + v++ + ) { + var E, + T = this._cursorPositions[v]; + (E = (r.getVerticalOffsetForLineNumber(T.lineNumber) * i) | 0) < + k + ? (E = k) + : E + k > t && (E = t - k); + var N = (x = E - k) + L; + x > y + 1 + ? (0 !== v && u.fillRect(M, _, D, y - _), (_ = x), (y = N)) + : N > y && (y = N); + } + u.fillRect(M, _, D, y - _); + } + this._settings.renderBorder && + this._settings.borderColor && + this._settings.overviewRulerLanes > 0 && + (u.beginPath(), + (u.lineWidth = 1), + (u.strokeStyle = this._settings.borderColor), + u.moveTo(0, 0), + u.lineTo(0, t), + u.stroke(), + u.moveTo(0, 0), + u.lineTo(e, 0), + u.stroke()); + }), + t + ); + })(mw), + lx = (function () { + function e(e, t, n) { + (this.from = 0 | e), (this.to = 0 | t), (this.colorId = 0 | n); + } + return ( + (e.compare = function (e, t) { + return e.colorId === t.colorId + ? e.from === t.from + ? e.to - t.to + : e.from - t.from + : e.colorId - t.colorId; + }), + e + ); + })(), + cx = (function () { + function e(e, t, n) { + (this.startLineNumber = e), + (this.endLineNumber = t), + (this.color = n), + (this._colorZone = null); + } + return ( + (e.compare = function (e, t) { + return e.color === t.color + ? e.startLineNumber === t.startLineNumber + ? e.endLineNumber - t.endLineNumber + : e.startLineNumber - t.startLineNumber + : e.color < t.color + ? -1 + : 1; + }), + (e.prototype.setColorZone = function (e) { + this._colorZone = e; + }), + (e.prototype.getColorZones = function () { + return this._colorZone; + }), + e + ); + })(), + dx = (function () { + function e(e) { + (this._getVerticalOffsetForLine = e), + (this._zones = []), + (this._colorZonesInvalid = !1), + (this._lineHeight = 0), + (this._domWidth = 0), + (this._domHeight = 0), + (this._outerHeight = 0), + (this._pixelRatio = 1), + (this._lastAssignedId = 0), + (this._color2Id = Object.create(null)), + (this._id2Color = []); + } + return ( + (e.prototype.getId2Color = function () { + return this._id2Color; + }), + (e.prototype.setZones = function (e) { + (this._zones = e), this._zones.sort(cx.compare); + }), + (e.prototype.setLineHeight = function (e) { + return ( + this._lineHeight !== e && + ((this._lineHeight = e), (this._colorZonesInvalid = !0), !0) + ); + }), + (e.prototype.setPixelRatio = function (e) { + (this._pixelRatio = e), (this._colorZonesInvalid = !0); + }), + (e.prototype.getDOMWidth = function () { + return this._domWidth; + }), + (e.prototype.getCanvasWidth = function () { + return this._domWidth * this._pixelRatio; + }), + (e.prototype.setDOMWidth = function (e) { + return ( + this._domWidth !== e && + ((this._domWidth = e), (this._colorZonesInvalid = !0), !0) + ); + }), + (e.prototype.getDOMHeight = function () { + return this._domHeight; + }), + (e.prototype.getCanvasHeight = function () { + return this._domHeight * this._pixelRatio; + }), + (e.prototype.setDOMHeight = function (e) { + return ( + this._domHeight !== e && + ((this._domHeight = e), (this._colorZonesInvalid = !0), !0) + ); + }), + (e.prototype.getOuterHeight = function () { + return this._outerHeight; + }), + (e.prototype.setOuterHeight = function (e) { + return ( + this._outerHeight !== e && + ((this._outerHeight = e), (this._colorZonesInvalid = !0), !0) + ); + }), + (e.prototype.resolveColorZones = function () { + for ( + var e = this._colorZonesInvalid, + t = Math.floor(this._lineHeight), + n = Math.floor(this.getCanvasHeight()), + r = n / Math.floor(this._outerHeight), + i = Math.floor((4 * this._pixelRatio) / 2), + o = [], + s = 0, + a = this._zones.length; + s < a; + s++ + ) { + var u = this._zones[s]; + if (!e) { + var l = u.getColorZones(); + if (l) { + o.push(l); + continue; + } + } + var c = Math.floor( + r * this._getVerticalOffsetForLine(u.startLineNumber) + ), + d = Math.floor( + r * (this._getVerticalOffsetForLine(u.endLineNumber) + t) + ), + h = Math.floor((c + d) / 2), + f = d - h; + f < i && (f = i), h - f < 0 && (h = f), h + f > n && (h = n - f); + var p = u.color, + g = this._color2Id[p]; + g || + ((g = ++this._lastAssignedId), + (this._color2Id[p] = g), + (this._id2Color[g] = p)); + var m = new lx(h - f, h + f, g); + u.setColorZone(m), o.push(m); + } + return (this._colorZonesInvalid = !1), o.sort(lx.compare), o; + }), + e + ); + })(), + hx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + fx = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._context = t), + (r._domNode = Mp(document.createElement('canvas'))), + r._domNode.setClassName(n), + r._domNode.setPosition('absolute'), + r._domNode.setLayerHinting(!0), + (r._zoneManager = new dx(function (e) { + return r._context.viewLayout.getVerticalOffsetForLineNumber(e); + })), + r._zoneManager.setDOMWidth(0), + r._zoneManager.setDOMHeight(0), + r._zoneManager.setOuterHeight( + r._context.viewLayout.getScrollHeight() + ), + r._zoneManager.setLineHeight( + r._context.configuration.editor.lineHeight + ), + r._zoneManager.setPixelRatio( + r._context.configuration.editor.pixelRatio + ), + r._context.addEventHandler(r), + r + ); + } + return ( + hx(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._zoneManager.setLineHeight( + this._context.configuration.editor.lineHeight + ), + this._render()), + e.pixelRatio && + (this._zoneManager.setPixelRatio( + this._context.configuration.editor.pixelRatio + ), + this._domNode.setWidth(this._zoneManager.getDOMWidth()), + this._domNode.setHeight(this._zoneManager.getDOMHeight()), + (this._domNode.domNode.width = this._zoneManager.getCanvasWidth()), + (this._domNode.domNode.height = this._zoneManager.getCanvasHeight()), + this._render()), + !0 + ); + }), + (t.prototype.onFlushed = function (e) { + return this._render(), !0; + }), + (t.prototype.onScrollChanged = function (e) { + return ( + e.scrollHeightChanged && + (this._zoneManager.setOuterHeight(e.scrollHeight), + this._render()), + !0 + ); + }), + (t.prototype.onZonesChanged = function (e) { + return this._render(), !0; + }), + (t.prototype.getDomNode = function () { + return this._domNode.domNode; + }), + (t.prototype.setLayout = function (e) { + this._domNode.setTop(e.top), this._domNode.setRight(e.right); + var t = !1; + (t = this._zoneManager.setDOMWidth(e.width) || t), + (t = this._zoneManager.setDOMHeight(e.height) || t) && + (this._domNode.setWidth(this._zoneManager.getDOMWidth()), + this._domNode.setHeight(this._zoneManager.getDOMHeight()), + (this._domNode.domNode.width = this._zoneManager.getCanvasWidth()), + (this._domNode.domNode.height = this._zoneManager.getCanvasHeight()), + this._render()); + }), + (t.prototype.setZones = function (e) { + this._zoneManager.setZones(e), this._render(); + }), + (t.prototype._render = function () { + if (0 === this._zoneManager.getOuterHeight()) return !1; + var e = this._zoneManager.getCanvasWidth(), + t = this._zoneManager.getCanvasHeight(), + n = this._zoneManager.resolveColorZones(), + r = this._zoneManager.getId2Color(), + i = this._domNode.domNode.getContext('2d'); + return ( + i.clearRect(0, 0, e, t), + n.length > 0 && this._renderOneLane(i, n, r, e), + !0 + ); + }), + (t.prototype._renderOneLane = function (e, t, n, r) { + for (var i = 0, o = 0, s = 0, a = 0, u = t; a < u.length; a++) { + var l = u[a], + c = l.colorId, + d = l.from, + h = l.to; + c !== i + ? (e.fillRect(0, o, r, s - o), + (i = c), + (e.fillStyle = n[i]), + (o = d), + (s = h)) + : s >= d + ? (s = Math.max(s, h)) + : (e.fillRect(0, o, r, s - o), (o = d), (s = h)); + } + e.fillRect(0, o, r, s - o); + }), + t + ); + })(pw), + px = + (n(347), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + gx = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n.domNode = Mp(document.createElement('div'))), + n.domNode.setAttribute('role', 'presentation'), + n.domNode.setAttribute('aria-hidden', 'true'), + n.domNode.setClassName('view-rulers'), + (n._renderedRulers = []), + (n._rulers = n._context.configuration.editor.viewInfo.rulers), + (n._typicalHalfwidthCharacterWidth = + n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + n + ); + } + return ( + px(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + !!(e.viewInfo || e.layoutInfo || e.fontInfo) && + ((this._rulers = this._context.configuration.editor.viewInfo.rulers), + (this._typicalHalfwidthCharacterWidth = this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + !0) + ); + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollHeightChanged; + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype._ensureRulersCount = function () { + var e = this._renderedRulers.length, + t = this._rulers.length; + if (e !== t) + if (e < t) + for ( + var n = this._context.model.getOptions().tabSize, r = t - e; + r > 0; + + ) { + (o = Mp(document.createElement('div'))).setClassName( + 'view-ruler' + ), + o.setWidth(n), + this.domNode.appendChild(o), + this._renderedRulers.push(o), + r--; + } + else + for (var i = e - t; i > 0; ) { + var o = this._renderedRulers.pop(); + this.domNode.removeChild(o), i--; + } + }), + (t.prototype.render = function (e) { + this._ensureRulersCount(); + for (var t = 0, n = this._rulers.length; t < n; t++) { + var r = this._renderedRulers[t]; + r.setHeight(Math.min(e.scrollHeight, 1e6)), + r.setLeft( + this._rulers[t] * this._typicalHalfwidthCharacterWidth + ); + } + }), + t + ); + })(mw); + Bd(function (e, t) { + var n = e.getColor(CC); + n && + t.addRule( + '.monaco-editor .view-ruler { box-shadow: 1px 0 0 0 ' + + n + + ' inset; }' + ); + }); + n(348); + var mx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + _x = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._scrollTop = 0), + (n._width = 0), + n._updateWidth(), + (n._shouldShow = !1), + (n._useShadows = + n._context.configuration.editor.viewInfo.scrollbar.useShadows), + (n._domNode = Mp(document.createElement('div'))), + n._domNode.setAttribute('role', 'presentation'), + n._domNode.setAttribute('aria-hidden', 'true'), + n + ); + } + return ( + mx(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype._updateShouldShow = function () { + var e = this._useShadows && this._scrollTop > 0; + return this._shouldShow !== e && ((this._shouldShow = e), !0); + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype._updateWidth = function () { + var e = this._context.configuration.editor.layoutInfo, + t = 0; + return ( + (t = + 0 === e.renderMinimap || + (e.minimapWidth > 0 && 0 === e.minimapLeft) + ? e.width + : e.width - e.minimapWidth - e.verticalScrollbarWidth), + this._width !== t && ((this._width = t), !0) + ); + }), + (t.prototype.onConfigurationChanged = function (e) { + var t = !1; + return ( + e.viewInfo && + (this._useShadows = this._context.configuration.editor.viewInfo.scrollbar.useShadows), + e.layoutInfo && (t = this._updateWidth()), + this._updateShouldShow() || t + ); + }), + (t.prototype.onScrollChanged = function (e) { + return (this._scrollTop = e.scrollTop), this._updateShouldShow(); + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + this._domNode.setWidth(this._width), + this._domNode.setClassName( + this._shouldShow ? 'scroll-decoration' : '' + ); + }), + t + ); + })(mw); + Bd(function (e, t) { + var n = e.getColor(Rc); + n && + t.addRule( + '.monaco-editor .scroll-decoration { box-shadow: ' + + n + + ' 0 6px 6px -6px inset; }' + ); + }); + n(349); + var yx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + vx = function (e) { + (this.left = e.left), + (this.width = e.width), + (this.startStyle = null), + (this.endStyle = null); + }, + bx = function (e, t) { + (this.lineNumber = e), (this.ranges = t); + }; + function wx(e) { + return new vx(e); + } + function Cx(e) { + return new bx(e.lineNumber, e.ranges.map(wx)); + } + var Sx = lh, + xx = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._previousFrameVisibleRangesWithStyle = []), + (n._context = t), + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._roundedSelection = + n._context.configuration.editor.viewInfo.roundedSelection), + (n._typicalHalfwidthCharacterWidth = + n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + (n._selections = []), + (n._renderResult = null), + n._context.addEventHandler(n), + n + ); + } + return ( + yx(t, e), + (t.prototype.dispose = function () { + this._context.removeEventHandler(this), + (this._renderResult = null), + e.prototype.dispose.call(this); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.viewInfo && + (this._roundedSelection = this._context.configuration.editor.viewInfo.roundedSelection), + e.fontInfo && + (this._typicalHalfwidthCharacterWidth = this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + !0 + ); + }), + (t.prototype.onCursorStateChanged = function (e) { + return (this._selections = e.selections.slice(0)), !0; + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype._visibleRangesHaveGaps = function (e) { + for (var t = 0, n = e.length; t < n; t++) { + if (e[t].ranges.length > 1) return !0; + } + return !1; + }), + (t.prototype._enrichVisibleRangesWithStyle = function (e, t, n) { + var r = this._typicalHalfwidthCharacterWidth / 4, + i = null, + o = null; + if (n && n.length > 0 && t.length > 0) { + var s = t[0].lineNumber; + if (s === e.startLineNumber) + for (var a = 0; !i && a < n.length; a++) + n[a].lineNumber === s && (i = n[a].ranges[0]); + var u = t[t.length - 1].lineNumber; + if (u === e.endLineNumber) + for (a = n.length - 1; !o && a >= 0; a--) + n[a].lineNumber === u && (o = n[a].ranges[0]); + i && !i.startStyle && (i = null), + o && !o.startStyle && (o = null); + } + a = 0; + for (var l = t.length; a < l; a++) { + var c = t[a].ranges[0], + d = c.left, + h = c.left + c.width, + f = { top: 0, bottom: 0 }, + p = { top: 0, bottom: 0 }; + if (a > 0) { + var g = t[a - 1].ranges[0].left, + m = t[a - 1].ranges[0].left + t[a - 1].ranges[0].width; + Lx(d - g) < r ? (f.top = 2) : d > g && (f.top = 1), + Lx(h - m) < r ? (p.top = 2) : g < h && h < m && (p.top = 1); + } else + i && ((f.top = i.startStyle.top), (p.top = i.endStyle.top)); + if (a + 1 < l) { + var _ = t[a + 1].ranges[0].left, + y = t[a + 1].ranges[0].left + t[a + 1].ranges[0].width; + Lx(d - _) < r + ? (f.bottom = 2) + : _ < d && d < y && (f.bottom = 1), + Lx(h - y) < r ? (p.bottom = 2) : h < y && (p.bottom = 1); + } else + o && + ((f.bottom = o.startStyle.bottom), + (p.bottom = o.endStyle.bottom)); + (c.startStyle = f), (c.endStyle = p); + } + }), + (t.prototype._getVisibleRangesWithStyle = function (e, t, n) { + var r = (t.linesVisibleRangesForRange(e, !0) || []).map(Cx), + i = this._visibleRangesHaveGaps(r); + return ( + Sx || + i || + !this._roundedSelection || + this._enrichVisibleRangesWithStyle(t.visibleRange, r, n), + r + ); + }), + (t.prototype._createSelectionPiece = function (e, t, n, r, i) { + return ( + '
' + ); + }), + (t.prototype._actualRenderOneSelection = function (e, n, r, i) { + for ( + var o = i.length > 0 && i[0].ranges[0].startStyle, + s = this._lineHeight.toString(), + a = (this._lineHeight - 1).toString(), + u = i.length > 0 ? i[0].lineNumber : 0, + l = i.length > 0 ? i[i.length - 1].lineNumber : 0, + c = 0, + d = i.length; + c < d; + c++ + ) { + for ( + var h = i[c], + f = h.lineNumber, + p = f - n, + g = r && (f === l || f === u) ? a : s, + m = r && f === u ? 1 : 0, + _ = '', + y = 0, + v = h.ranges.length; + y < v; + y++ + ) { + var b = h.ranges[y]; + if (o) { + var w = b.startStyle, + C = b.endStyle; + if (1 === w.top || 1 === w.bottom) { + _ += this._createSelectionPiece( + m, + g, + t.SELECTION_CLASS_NAME, + b.left - t.ROUNDED_PIECE_WIDTH, + t.ROUNDED_PIECE_WIDTH + ); + var S = t.EDITOR_BACKGROUND_CLASS_NAME; + 1 === w.top && (S += ' ' + t.SELECTION_TOP_RIGHT), + 1 === w.bottom && (S += ' ' + t.SELECTION_BOTTOM_RIGHT), + (_ += this._createSelectionPiece( + m, + g, + S, + b.left - t.ROUNDED_PIECE_WIDTH, + t.ROUNDED_PIECE_WIDTH + )); + } + if (1 === C.top || 1 === C.bottom) { + _ += this._createSelectionPiece( + m, + g, + t.SELECTION_CLASS_NAME, + b.left + b.width, + t.ROUNDED_PIECE_WIDTH + ); + var x = t.EDITOR_BACKGROUND_CLASS_NAME; + 1 === C.top && (x += ' ' + t.SELECTION_TOP_LEFT), + 1 === C.bottom && (x += ' ' + t.SELECTION_BOTTOM_LEFT), + (_ += this._createSelectionPiece( + m, + g, + x, + b.left + b.width, + t.ROUNDED_PIECE_WIDTH + )); + } + } + var L = t.SELECTION_CLASS_NAME; + if (o) { + (w = b.startStyle), (C = b.endStyle); + 0 === w.top && (L += ' ' + t.SELECTION_TOP_LEFT), + 0 === w.bottom && (L += ' ' + t.SELECTION_BOTTOM_LEFT), + 0 === C.top && (L += ' ' + t.SELECTION_TOP_RIGHT), + 0 === C.bottom && (L += ' ' + t.SELECTION_BOTTOM_RIGHT); + } + _ += this._createSelectionPiece(m, g, L, b.left, b.width); + } + e[p] += _; + } + }), + (t.prototype.prepareRender = function (e) { + for ( + var t = [], + n = e.visibleRange.startLineNumber, + r = e.visibleRange.endLineNumber, + i = n; + i <= r; + i++ + ) { + t[i - n] = ''; + } + for (var o = [], s = 0, a = this._selections.length; s < a; s++) { + var u = this._selections[s]; + if (u.isEmpty()) o[s] = null; + else { + var l = this._getVisibleRangesWithStyle( + u, + e, + this._previousFrameVisibleRangesWithStyle[s] + ); + (o[s] = l), + this._actualRenderOneSelection( + t, + n, + this._selections.length > 1, + l + ); + } + } + (this._previousFrameVisibleRangesWithStyle = o), + (this._renderResult = t); + }), + (t.prototype.render = function (e, t) { + if (!this._renderResult) return ''; + var n = t - e; + return n < 0 || n >= this._renderResult.length + ? '' + : this._renderResult[n]; + }), + (t.SELECTION_CLASS_NAME = 'selected-text'), + (t.SELECTION_TOP_LEFT = 'top-left-radius'), + (t.SELECTION_BOTTOM_LEFT = 'bottom-left-radius'), + (t.SELECTION_TOP_RIGHT = 'top-right-radius'), + (t.SELECTION_BOTTOM_RIGHT = 'bottom-right-radius'), + (t.EDITOR_BACKGROUND_CLASS_NAME = 'monaco-editor-background'), + (t.ROUNDED_PIECE_WIDTH = 10), + t + ); + })(lC); + function Lx(e) { + return e < 0 ? -e : e; + } + Bd(function (e, t) { + var n = e.getColor(ad); + n && + t.addRule( + '.monaco-editor .focused .selected-text { background-color: ' + + n + + '; }' + ); + var r = e.getColor(ld); + r && + t.addRule( + '.monaco-editor .selected-text { background-color: ' + r + '; }' + ); + var i = e.getColor(ud); + i && + t.addRule( + '.monaco-editor .view-line span.inline-selected-text { color: ' + + i + + '; }' + ); + }); + n(350); + var kx = function (e, t, n, r, i, o) { + (this.top = e), + (this.left = t), + (this.width = n), + (this.height = r), + (this.textContent = i), + (this.textContentClassName = o); + }, + Mx = (function () { + function e(e) { + (this._context = e), + (this._cursorStyle = this._context.configuration.editor.viewInfo.cursorStyle), + (this._lineHeight = this._context.configuration.editor.lineHeight), + (this._typicalHalfwidthCharacterWidth = this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth), + (this._lineCursorWidth = Math.min( + this._context.configuration.editor.viewInfo.cursorWidth, + this._typicalHalfwidthCharacterWidth + )), + (this._isVisible = !0), + (this._domNode = Mp(document.createElement('div'))), + this._domNode.setClassName('cursor'), + this._domNode.setHeight(this._lineHeight), + this._domNode.setTop(0), + this._domNode.setLeft(0), + iw.applyFontInfo( + this._domNode, + this._context.configuration.editor.fontInfo + ), + this._domNode.setDisplay('none'), + (this._position = new xt(1, 1)), + (this._lastRenderedContent = ''), + (this._renderData = null); + } + return ( + (e.prototype.getDomNode = function () { + return this._domNode; + }), + (e.prototype.getPosition = function () { + return this._position; + }), + (e.prototype.show = function () { + this._isVisible || + (this._domNode.setVisibility('inherit'), (this._isVisible = !0)); + }), + (e.prototype.hide = function () { + this._isVisible && + (this._domNode.setVisibility('hidden'), (this._isVisible = !1)); + }), + (e.prototype.onConfigurationChanged = function (e) { + return ( + e.lineHeight && + (this._lineHeight = this._context.configuration.editor.lineHeight), + e.fontInfo && + (iw.applyFontInfo( + this._domNode, + this._context.configuration.editor.fontInfo + ), + (this._typicalHalfwidthCharacterWidth = this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)), + e.viewInfo && + ((this._cursorStyle = this._context.configuration.editor.viewInfo.cursorStyle), + (this._lineCursorWidth = Math.min( + this._context.configuration.editor.viewInfo.cursorWidth, + this._typicalHalfwidthCharacterWidth + ))), + !0 + ); + }), + (e.prototype.onCursorPositionChanged = function (e) { + return (this._position = e), !0; + }), + (e.prototype._prepareRender = function (e) { + var t = '', + n = ''; + if ( + this._cursorStyle === ii.Line || + this._cursorStyle === ii.LineThin + ) { + var r, + i = e.visibleRangeForPosition(this._position); + if (!i) return null; + if (this._cursorStyle === ii.Line) { + if ( + (r = If( + this._lineCursorWidth > 0 ? this._lineCursorWidth : 2 + )) > 2 + ) + t = this._context.model + .getLineContent(this._position.lineNumber) + .charAt(this._position.column - 1); + } else r = If(1); + var o = i.left; + r >= 2 && o >= 1 && (o -= 1); + var s = + e.getVerticalOffsetForLineNumber(this._position.lineNumber) - + e.bigNumbersDelta; + return new kx(s, o, r, this._lineHeight, t, n); + } + var a = e.linesVisibleRangesForRange( + new Fr( + this._position.lineNumber, + this._position.column, + this._position.lineNumber, + this._position.column + 1 + ), + !1 + ); + if (!a || 0 === a.length || 0 === a[0].ranges.length) return null; + var u = a[0].ranges[0], + l = u.width < 1 ? this._typicalHalfwidthCharacterWidth : u.width; + if (this._cursorStyle === ii.Block) { + var c = this._context.model.getViewLineData( + this._position.lineNumber + ); + (t = c.content.charAt(this._position.column - 1)), + Sn(c.content.charCodeAt(this._position.column - 1)) && + (t += c.content.charAt(this._position.column)); + var d = c.tokens.findTokenIndexAtOffset( + this._position.column - 1 + ); + n = c.tokens.getClassName(d); + } + var h = + e.getVerticalOffsetForLineNumber(this._position.lineNumber) - + e.bigNumbersDelta, + f = this._lineHeight; + return ( + (this._cursorStyle !== ii.Underline && + this._cursorStyle !== ii.UnderlineThin) || + ((h += this._lineHeight - 2), (f = 2)), + new kx(h, u.left, l, f, t, n) + ); + }), + (e.prototype.prepareRender = function (e) { + this._renderData = this._prepareRender(e); + }), + (e.prototype.render = function (e) { + return this._renderData + ? (this._lastRenderedContent !== this._renderData.textContent && + ((this._lastRenderedContent = this._renderData.textContent), + (this._domNode.domNode.textContent = this._lastRenderedContent)), + this._domNode.setClassName( + 'cursor ' + this._renderData.textContentClassName + ), + this._domNode.setDisplay('block'), + this._domNode.setTop(this._renderData.top), + this._domNode.setLeft(this._renderData.left), + this._domNode.setWidth(this._renderData.width), + this._domNode.setLineHeight(this._renderData.height), + this._domNode.setHeight(this._renderData.height), + { + domNode: this._domNode.domNode, + position: this._position, + contentLeft: this._renderData.left, + height: this._renderData.height, + width: 2, + }) + : (this._domNode.setDisplay('none'), null); + }), + e + ); + })(), + Dx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Ex = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._readOnly = n._context.configuration.editor.readOnly), + (n._cursorBlinking = + n._context.configuration.editor.viewInfo.cursorBlinking), + (n._cursorStyle = + n._context.configuration.editor.viewInfo.cursorStyle), + (n._cursorSmoothCaretAnimation = + n._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation), + (n._selectionIsEmpty = !0), + (n._isVisible = !1), + (n._primaryCursor = new Mx(n._context)), + (n._secondaryCursors = []), + (n._renderData = []), + (n._domNode = Mp(document.createElement('div'))), + n._domNode.setAttribute('role', 'presentation'), + n._domNode.setAttribute('aria-hidden', 'true'), + n._updateDomClassName(), + n._domNode.appendChild(n._primaryCursor.getDomNode()), + (n._startCursorBlinkAnimation = new Ts()), + (n._cursorFlatBlinkInterval = new Ns()), + (n._blinkingEnabled = !1), + (n._editorHasFocus = !1), + n._updateBlinking(), + n + ); + } + return ( + Dx(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this._startCursorBlinkAnimation.dispose(), + this._cursorFlatBlinkInterval.dispose(); + }), + (t.prototype.getDomNode = function () { + return this._domNode; + }), + (t.prototype.onConfigurationChanged = function (e) { + e.readOnly && + (this._readOnly = this._context.configuration.editor.readOnly), + e.viewInfo && + ((this._cursorBlinking = this._context.configuration.editor.viewInfo.cursorBlinking), + (this._cursorStyle = this._context.configuration.editor.viewInfo.cursorStyle), + (this._cursorSmoothCaretAnimation = this._context.configuration.editor.viewInfo.cursorSmoothCaretAnimation)), + this._primaryCursor.onConfigurationChanged(e), + this._updateBlinking(), + e.viewInfo && this._updateDomClassName(); + for (var t = 0, n = this._secondaryCursors.length; t < n; t++) + this._secondaryCursors[t].onConfigurationChanged(e); + return !0; + }), + (t.prototype._onCursorPositionChanged = function (e, t) { + if ( + (this._primaryCursor.onCursorPositionChanged(e), + this._updateBlinking(), + this._secondaryCursors.length < t.length) + ) + for ( + var n = t.length - this._secondaryCursors.length, r = 0; + r < n; + r++ + ) { + var i = new Mx(this._context); + this._domNode.domNode.insertBefore( + i.getDomNode().domNode, + this._primaryCursor.getDomNode().domNode.nextSibling + ), + this._secondaryCursors.push(i); + } + else if (this._secondaryCursors.length > t.length) { + var o = this._secondaryCursors.length - t.length; + for (r = 0; r < o; r++) + this._domNode.removeChild( + this._secondaryCursors[0].getDomNode() + ), + this._secondaryCursors.splice(0, 1); + } + for (r = 0; r < t.length; r++) + this._secondaryCursors[r].onCursorPositionChanged(t[r]); + }), + (t.prototype.onCursorStateChanged = function (e) { + for (var t = [], n = 0, r = e.selections.length; n < r; n++) + t[n] = e.selections[n].getPosition(); + this._onCursorPositionChanged(t[0], t.slice(1)); + var i = e.selections[0].isEmpty(); + return ( + this._selectionIsEmpty !== i && + ((this._selectionIsEmpty = i), this._updateDomClassName()), + !0 + ); + }), + (t.prototype.onDecorationsChanged = function (e) { + return !0; + }), + (t.prototype.onFlushed = function (e) { + return !0; + }), + (t.prototype.onFocusChanged = function (e) { + return ( + (this._editorHasFocus = e.isFocused), this._updateBlinking(), !1 + ); + }), + (t.prototype.onLinesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return !0; + }), + (t.prototype.onTokensChanged = function (e) { + var t = function (t) { + for (var n = 0, r = e.ranges.length; n < r; n++) + if ( + e.ranges[n].fromLineNumber <= t.lineNumber && + t.lineNumber <= e.ranges[n].toLineNumber + ) + return !0; + return !1; + }; + if (t(this._primaryCursor.getPosition())) return !0; + for (var n = 0, r = this._secondaryCursors; n < r.length; n++) { + if (t(r[n].getPosition())) return !0; + } + return !1; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype._getCursorBlinking = function () { + return this._editorHasFocus + ? this._readOnly + ? 5 + : this._cursorBlinking + : 0; + }), + (t.prototype._updateBlinking = function () { + var e = this; + this._startCursorBlinkAnimation.cancel(), + this._cursorFlatBlinkInterval.cancel(); + var n = this._getCursorBlinking(), + r = 0 === n, + i = 5 === n; + r ? this._hide() : this._show(), + (this._blinkingEnabled = !1), + this._updateDomClassName(), + r || + i || + (1 === n + ? this._cursorFlatBlinkInterval.cancelAndSet(function () { + e._isVisible ? e._hide() : e._show(); + }, t.BLINK_INTERVAL) + : this._startCursorBlinkAnimation.setIfNotSet(function () { + (e._blinkingEnabled = !0), e._updateDomClassName(); + }, t.BLINK_INTERVAL)); + }), + (t.prototype._updateDomClassName = function () { + this._domNode.setClassName(this._getClassName()); + }), + (t.prototype._getClassName = function () { + var e = 'cursors-layer'; + switch ( + (this._selectionIsEmpty || (e += ' has-selection'), + this._cursorStyle) + ) { + case ii.Line: + e += ' cursor-line-style'; + break; + case ii.Block: + e += ' cursor-block-style'; + break; + case ii.Underline: + e += ' cursor-underline-style'; + break; + case ii.LineThin: + e += ' cursor-line-thin-style'; + break; + case ii.BlockOutline: + e += ' cursor-block-outline-style'; + break; + case ii.UnderlineThin: + e += ' cursor-underline-thin-style'; + break; + default: + e += ' cursor-line-style'; + } + if (this._blinkingEnabled) + switch (this._getCursorBlinking()) { + case 1: + e += ' cursor-blink'; + break; + case 2: + e += ' cursor-smooth'; + break; + case 3: + e += ' cursor-phase'; + break; + case 4: + e += ' cursor-expand'; + break; + case 5: + e += ' cursor-solid'; + break; + default: + e += ' cursor-solid'; + } + else e += ' cursor-solid'; + return ( + this._cursorSmoothCaretAnimation && + (e += ' cursor-smooth-caret-animation'), + e + ); + }), + (t.prototype._show = function () { + this._primaryCursor.show(); + for (var e = 0, t = this._secondaryCursors.length; e < t; e++) + this._secondaryCursors[e].show(); + this._isVisible = !0; + }), + (t.prototype._hide = function () { + this._primaryCursor.hide(); + for (var e = 0, t = this._secondaryCursors.length; e < t; e++) + this._secondaryCursors[e].hide(); + this._isVisible = !1; + }), + (t.prototype.prepareRender = function (e) { + this._primaryCursor.prepareRender(e); + for (var t = 0, n = this._secondaryCursors.length; t < n; t++) + this._secondaryCursors[t].prepareRender(e); + }), + (t.prototype.render = function (e) { + var t = [], + n = 0, + r = this._primaryCursor.render(e); + r && (t[n++] = r); + for (var i = 0, o = this._secondaryCursors.length; i < o; i++) { + var s = this._secondaryCursors[i].render(e); + s && (t[n++] = s); + } + this._renderData = t; + }), + (t.prototype.getLastRenderData = function () { + return this._renderData; + }), + (t.BLINK_INTERVAL = 500), + t + ); + })(mw); + Bd(function (e, t) { + var n = e.getColor(pC); + if (n) { + var r = e.getColor(gC); + r || (r = n.opposite()), + t.addRule( + '.monaco-editor .cursor { background-color: ' + + n + + '; border-color: ' + + n + + '; color: ' + + r + + '; }' + ), + 'hc' === e.type && + t.addRule( + '.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ' + + r + + '; border-right: 1px solid ' + + r + + '; }' + ); + } + }); + var Tx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Nx = (function (e) { + function t(t) { + var n = e.call(this, t) || this; + return ( + (n._lineHeight = n._context.configuration.editor.lineHeight), + (n._contentWidth = + n._context.configuration.editor.layoutInfo.contentWidth), + (n._contentLeft = + n._context.configuration.editor.layoutInfo.contentLeft), + (n.domNode = Mp(document.createElement('div'))), + n.domNode.setClassName('view-zones'), + n.domNode.setPosition('absolute'), + n.domNode.setAttribute('role', 'presentation'), + n.domNode.setAttribute('aria-hidden', 'true'), + (n.marginDomNode = Mp(document.createElement('div'))), + n.marginDomNode.setClassName('margin-view-zones'), + n.marginDomNode.setPosition('absolute'), + n.marginDomNode.setAttribute('role', 'presentation'), + n.marginDomNode.setAttribute('aria-hidden', 'true'), + (n._zones = {}), + n + ); + } + return ( + Tx(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), (this._zones = {}); + }), + (t.prototype._recomputeWhitespacesProps = function () { + for ( + var e = !1, t = Object.keys(this._zones), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n], + o = this._zones[i], + s = this._computeWhitespaceProps(o.delegate); + this._context.viewLayout.changeWhitespace( + i, + s.afterViewLineNumber, + s.heightInPx + ) && + (this._safeCallOnComputedHeight(o.delegate, s.heightInPx), + (e = !0)); + } + return e; + }), + (t.prototype.onConfigurationChanged = function (e) { + return e.lineHeight + ? ((this._lineHeight = this._context.configuration.editor.lineHeight), + this._recomputeWhitespacesProps()) + : (e.layoutInfo && + ((this._contentWidth = this._context.configuration.editor.layoutInfo.contentWidth), + (this._contentLeft = this._context.configuration.editor.layoutInfo.contentLeft)), + !0); + }), + (t.prototype.onLineMappingChanged = function (e) { + var t = this._recomputeWhitespacesProps(); + return t && this._context.viewLayout.onHeightMaybeChanged(), t; + }), + (t.prototype.onLinesDeleted = function (e) { + return !0; + }), + (t.prototype.onScrollChanged = function (e) { + return e.scrollTopChanged || e.scrollWidthChanged; + }), + (t.prototype.onZonesChanged = function (e) { + return !0; + }), + (t.prototype.onLinesInserted = function (e) { + return !0; + }), + (t.prototype._getZoneOrdinal = function (e) { + return void 0 !== e.afterColumn ? e.afterColumn : 1e4; + }), + (t.prototype._computeWhitespaceProps = function (e) { + if (0 === e.afterLineNumber) + return { + afterViewLineNumber: 0, + heightInPx: this._heightInPixels(e), + minWidthInPx: this._minWidthInPixels(e), + }; + var t, n; + if (void 0 !== e.afterColumn) + t = this._context.model.validateModelPosition({ + lineNumber: e.afterLineNumber, + column: e.afterColumn, + }); + else { + var r = this._context.model.validateModelPosition({ + lineNumber: e.afterLineNumber, + column: 1, + }).lineNumber; + t = new xt(r, this._context.model.getModelLineMaxColumn(r)); + } + n = + t.column === + this._context.model.getModelLineMaxColumn(t.lineNumber) + ? this._context.model.validateModelPosition({ + lineNumber: t.lineNumber + 1, + column: 1, + }) + : this._context.model.validateModelPosition({ + lineNumber: t.lineNumber, + column: t.column + 1, + }); + var i = this._context.model.coordinatesConverter.convertModelPositionToViewPosition( + t + ), + o = this._context.model.coordinatesConverter.modelPositionIsVisible( + n + ); + return { + afterViewLineNumber: i.lineNumber, + heightInPx: o ? this._heightInPixels(e) : 0, + minWidthInPx: this._minWidthInPixels(e), + }; + }), + (t.prototype.addZone = function (e) { + var t = this._computeWhitespaceProps(e), + n = { + whitespaceId: this._context.viewLayout.addWhitespace( + t.afterViewLineNumber, + this._getZoneOrdinal(e), + t.heightInPx, + t.minWidthInPx + ), + delegate: e, + isVisible: !1, + domNode: Mp(e.domNode), + marginDomNode: e.marginDomNode ? Mp(e.marginDomNode) : null, + }; + return ( + this._safeCallOnComputedHeight(n.delegate, t.heightInPx), + n.domNode.setPosition('absolute'), + (n.domNode.domNode.style.width = '100%'), + n.domNode.setDisplay('none'), + n.domNode.setAttribute('monaco-view-zone', n.whitespaceId), + this.domNode.appendChild(n.domNode), + n.marginDomNode && + (n.marginDomNode.setPosition('absolute'), + (n.marginDomNode.domNode.style.width = '100%'), + n.marginDomNode.setDisplay('none'), + n.marginDomNode.setAttribute( + 'monaco-view-zone', + n.whitespaceId + ), + this.marginDomNode.appendChild(n.marginDomNode)), + (this._zones[n.whitespaceId] = n), + this.setShouldRender(), + n.whitespaceId + ); + }), + (t.prototype.removeZone = function (e) { + if (this._zones.hasOwnProperty(e)) { + var t = this._zones[e]; + return ( + delete this._zones[e], + this._context.viewLayout.removeWhitespace(t.whitespaceId), + t.domNode.removeAttribute('monaco-visible-view-zone'), + t.domNode.removeAttribute('monaco-view-zone'), + t.domNode.domNode.parentNode.removeChild(t.domNode.domNode), + t.marginDomNode && + (t.marginDomNode.removeAttribute('monaco-visible-view-zone'), + t.marginDomNode.removeAttribute('monaco-view-zone'), + t.marginDomNode.domNode.parentNode.removeChild( + t.marginDomNode.domNode + )), + this.setShouldRender(), + !0 + ); + } + return !1; + }), + (t.prototype.layoutZone = function (e) { + var t = !1; + if (this._zones.hasOwnProperty(e)) { + var n = this._zones[e], + r = this._computeWhitespaceProps(n.delegate); + (t = + this._context.viewLayout.changeWhitespace( + n.whitespaceId, + r.afterViewLineNumber, + r.heightInPx + ) || t) && + (this._safeCallOnComputedHeight(n.delegate, r.heightInPx), + this.setShouldRender()); + } + return t; + }), + (t.prototype.shouldSuppressMouseDownOnViewZone = function (e) { + if (this._zones.hasOwnProperty(e)) { + var t = this._zones[e]; + return Boolean(t.delegate.suppressMouseDown); + } + return !1; + }), + (t.prototype._heightInPixels = function (e) { + return 'number' == typeof e.heightInPx + ? e.heightInPx + : 'number' == typeof e.heightInLines + ? this._lineHeight * e.heightInLines + : this._lineHeight; + }), + (t.prototype._minWidthInPixels = function (e) { + return 'number' == typeof e.minWidthInPx ? e.minWidthInPx : 0; + }), + (t.prototype._safeCallOnComputedHeight = function (e, t) { + if ('function' == typeof e.onComputedHeight) + try { + e.onComputedHeight(t); + } catch (e) { + qe(e); + } + }), + (t.prototype._safeCallOnDomNodeTop = function (e, t) { + if ('function' == typeof e.onDomNodeTop) + try { + e.onDomNodeTop(t); + } catch (e) { + qe(e); + } + }), + (t.prototype.prepareRender = function (e) {}), + (t.prototype.render = function (e) { + for ( + var t = e.viewportData.whitespaceViewportData, + n = {}, + r = !1, + i = 0, + o = t.length; + i < o; + i++ + ) + (n[t[i].id] = t[i]), (r = !0); + var s = Object.keys(this._zones); + for (i = 0, o = s.length; i < o; i++) { + var a = s[i], + u = this._zones[a], + l = 0, + c = 0, + d = 'none'; + n.hasOwnProperty(a) + ? ((l = n[a].verticalOffset - e.bigNumbersDelta), + (c = n[a].height), + (d = 'block'), + u.isVisible || + (u.domNode.setAttribute('monaco-visible-view-zone', 'true'), + (u.isVisible = !0)), + this._safeCallOnDomNodeTop( + u.delegate, + e.getScrolledTopFromAbsoluteTop(n[a].verticalOffset) + )) + : (u.isVisible && + (u.domNode.removeAttribute('monaco-visible-view-zone'), + (u.isVisible = !1)), + this._safeCallOnDomNodeTop( + u.delegate, + e.getScrolledTopFromAbsoluteTop(-1e6) + )), + u.domNode.setTop(l), + u.domNode.setHeight(c), + u.domNode.setDisplay(d), + u.marginDomNode && + (u.marginDomNode.setTop(l), + u.marginDomNode.setHeight(c), + u.marginDomNode.setDisplay(d)); + } + r && + (this.domNode.setWidth( + Math.max(e.scrollWidth, this._contentWidth) + ), + this.marginDomNode.setWidth(this._contentLeft)); + }), + t + ); + })(mw), + Ox = (function () { + function e(e, t, n, r) { + (this.configuration = e), + (this.theme = t), + (this.model = n), + (this.viewLayout = n.viewLayout), + (this.privateViewEventBus = r); + } + return ( + (e.prototype.addEventHandler = function (e) { + this.privateViewEventBus.addEventHandler(e); + }), + (e.prototype.removeEventHandler = function (e) { + this.privateViewEventBus.removeEventHandler(e); + }), + e + ); + })(), + Ax = (function () { + function e(e) { + (this._eventHandlerGateKeeper = e), + (this._eventHandlers = []), + (this._eventQueue = null), + (this._isConsumingQueue = !1); + } + return ( + (e.prototype.addEventHandler = function (e) { + for (var t = 0, n = this._eventHandlers.length; t < n; t++) + this._eventHandlers[t] === e && + console.warn( + 'Detected duplicate listener in ViewEventDispatcher', + e + ); + this._eventHandlers.push(e); + }), + (e.prototype.removeEventHandler = function (e) { + for (var t = 0; t < this._eventHandlers.length; t++) + if (this._eventHandlers[t] === e) { + this._eventHandlers.splice(t, 1); + break; + } + }), + (e.prototype.emit = function (e) { + this._eventQueue + ? this._eventQueue.push(e) + : (this._eventQueue = [e]), + this._isConsumingQueue || this.consumeQueue(); + }), + (e.prototype.emitMany = function (e) { + this._eventQueue + ? (this._eventQueue = this._eventQueue.concat(e)) + : (this._eventQueue = e), + this._isConsumingQueue || this.consumeQueue(); + }), + (e.prototype.consumeQueue = function () { + var e = this; + this._eventHandlerGateKeeper(function () { + try { + (e._isConsumingQueue = !0), e._doConsumeQueue(); + } finally { + e._isConsumingQueue = !1; + } + }); + }), + (e.prototype._doConsumeQueue = function () { + for (; this._eventQueue; ) { + var e = this._eventQueue; + this._eventQueue = null; + for ( + var t = this._eventHandlers.slice(0), n = 0, r = t.length; + n < r; + n++ + ) + t[n].handleEvents(e); + } + }), + e + ); + })(), + Ix = (function () { + function e(e, t, n, r) { + (this.selections = e), + (this.startLineNumber = 0 | t.startLineNumber), + (this.endLineNumber = 0 | t.endLineNumber), + (this.relativeVerticalOffset = t.relativeVerticalOffset), + (this.bigNumbersDelta = 0 | t.bigNumbersDelta), + (this.whitespaceViewportData = n), + (this._model = r), + (this.visibleRange = new Fr( + t.startLineNumber, + this._model.getLineMinColumn(t.startLineNumber), + t.endLineNumber, + this._model.getLineMaxColumn(t.endLineNumber) + )); + } + return ( + (e.prototype.getViewLineRenderingData = function (e) { + return this._model.getViewLineRenderingData(this.visibleRange, e); + }), + (e.prototype.getDecorationsInViewport = function () { + return this._model.getDecorationsInViewport(this.visibleRange); + }), + e + ); + })(), + Px = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Rx = function () { + throw new Error('Invalid change accessor'); + }, + Fx = (function (e) { + function t(t, n, r, i, o, s) { + var a = e.call(this) || this; + (a._cursor = o), + (a._renderAnimationFrame = null), + (a.outgoingEvents = s); + var u = new oS(n, i, a.outgoingEvents, t); + (a.eventDispatcher = new Ax(function (e) { + return a._renderOnce(e); + })), + a.eventDispatcher.addEventHandler(a), + (a._context = new Ox(n, r.getTheme(), i, a.eventDispatcher)), + a._register( + r.onThemeChange(function (e) { + (a._context.theme = e), + a.eventDispatcher.emit(new KC()), + a.render(!0, !1); + }) + ), + (a.viewParts = []), + (a._textAreaHandler = new iS( + a._context, + u, + a.createTextAreaHandlerHelper() + )), + a.viewParts.push(a._textAreaHandler), + (a.linesContent = Mp(document.createElement('div'))), + a.linesContent.setClassName( + 'lines-content monaco-editor-background' + ), + a.linesContent.setPosition('absolute'), + (a.domNode = Mp(document.createElement('div'))), + a.domNode.setClassName(a.getEditorClassName()), + (a.overflowGuardContainer = Mp(document.createElement('div'))), + _w.write(a.overflowGuardContainer, 3), + a.overflowGuardContainer.setClassName('overflow-guard'), + (a._scrollbar = new LS( + a._context, + a.linesContent, + a.domNode, + a.overflowGuardContainer + )), + a.viewParts.push(a._scrollbar), + (a.viewLines = new PS(a._context, a.linesContent)), + (a.viewZones = new Nx(a._context)), + a.viewParts.push(a.viewZones); + var l = new ux(a._context); + a.viewParts.push(l); + var c = new _x(a._context); + a.viewParts.push(c); + var d = new hS(a._context); + a.viewParts.push(d), + d.addDynamicOverlay(new vS(a._context)), + d.addDynamicOverlay(new xx(a._context)), + d.addDynamicOverlay(new NS(a._context)), + d.addDynamicOverlay(new SS(a._context)); + var h = new fS(a._context); + a.viewParts.push(h), + h.addDynamicOverlay(new wS(a._context)), + h.addDynamicOverlay(new ES(a._context)), + h.addDynamicOverlay(new jS(a._context)), + h.addDynamicOverlay(new FS(a._context)), + h.addDynamicOverlay(new NC(a._context)); + var f = new AC(a._context); + f.getDomNode().appendChild(a.viewZones.marginDomNode), + f.getDomNode().appendChild(h.getDomNode()), + a.viewParts.push(f), + (a.contentWidgets = new mS(a._context, a.domNode)), + a.viewParts.push(a.contentWidgets), + (a.viewCursors = new Ex(a._context)), + a.viewParts.push(a.viewCursors), + (a.overlayWidgets = new ox(a._context)), + a.viewParts.push(a.overlayWidgets); + var p = new gx(a._context); + a.viewParts.push(p); + var g = new rx(a._context); + if ((a.viewParts.push(g), l)) { + var m = a._scrollbar.getOverviewRulerLayoutInfo(); + m.parent.insertBefore(l.getDomNode(), m.insertBefore); + } + return ( + a.linesContent.appendChild(d.getDomNode()), + a.linesContent.appendChild(p.domNode), + a.linesContent.appendChild(a.viewZones.domNode), + a.linesContent.appendChild(a.viewLines.getDomNode()), + a.linesContent.appendChild(a.contentWidgets.domNode), + a.linesContent.appendChild(a.viewCursors.getDomNode()), + a.overflowGuardContainer.appendChild(f.getDomNode()), + a.overflowGuardContainer.appendChild(a._scrollbar.getDomNode()), + a.overflowGuardContainer.appendChild(c.getDomNode()), + a.overflowGuardContainer.appendChild(a._textAreaHandler.textArea), + a.overflowGuardContainer.appendChild( + a._textAreaHandler.textAreaCover + ), + a.overflowGuardContainer.appendChild(a.overlayWidgets.getDomNode()), + a.overflowGuardContainer.appendChild(g.getDomNode()), + a.domNode.appendChild(a.overflowGuardContainer), + a.domNode.appendChild( + a.contentWidgets.overflowingContentWidgetsDomNode + ), + a._setLayout(), + (a.pointerHandler = a._register( + new eC(a._context, u, a.createPointerHandlerHelper()) + )), + a._register( + i.addEventListener(function (e) { + a.eventDispatcher.emitMany(e); + }) + ), + a._register( + a._cursor.addEventListener(function (e) { + a.eventDispatcher.emitMany(e); + }) + ), + a + ); + } + return ( + Px(t, e), + (t.prototype._flushAccumulatedAndRenderNow = function () { + this._renderNow(); + }), + (t.prototype.createPointerHandlerHelper = function () { + var e = this; + return { + viewDomNode: this.domNode.domNode, + linesContentDomNode: this.linesContent.domNode, + focusTextArea: function () { + e.focus(); + }, + getLastViewCursorsRenderData: function () { + return e.viewCursors.getLastRenderData() || []; + }, + shouldSuppressMouseDownOnViewZone: function (t) { + return e.viewZones.shouldSuppressMouseDownOnViewZone(t); + }, + shouldSuppressMouseDownOnWidget: function (t) { + return e.contentWidgets.shouldSuppressMouseDownOnWidget(t); + }, + getPositionFromDOMInfo: function (t, n) { + return ( + e._flushAccumulatedAndRenderNow(), + e.viewLines.getPositionFromDOMInfo(t, n) + ); + }, + visibleRangeForPosition2: function (t, n) { + return ( + e._flushAccumulatedAndRenderNow(), + e.viewLines.visibleRangeForPosition(new xt(t, n)) + ); + }, + getLineWidth: function (t) { + return ( + e._flushAccumulatedAndRenderNow(), e.viewLines.getLineWidth(t) + ); + }, + }; + }), + (t.prototype.createTextAreaHandlerHelper = function () { + var e = this; + return { + visibleRangeForPositionRelativeToEditor: function (t, n) { + return ( + e._flushAccumulatedAndRenderNow(), + e.viewLines.visibleRangeForPosition(new xt(t, n)) + ); + }, + }; + }), + (t.prototype._setLayout = function () { + var e = this._context.configuration.editor.layoutInfo; + this.domNode.setWidth(e.width), + this.domNode.setHeight(e.height), + this.overflowGuardContainer.setWidth(e.width), + this.overflowGuardContainer.setHeight(e.height), + this.linesContent.setWidth(1e6), + this.linesContent.setHeight(1e6); + }), + (t.prototype.getEditorClassName = function () { + var e = this._textAreaHandler.isFocused() ? ' focused' : ''; + return ( + this._context.configuration.editor.editorClassName + + ' ' + + Fd(this._context.theme.type) + + e + ); + }), + (t.prototype.onConfigurationChanged = function (e) { + return ( + e.editorClassName && + this.domNode.setClassName(this.getEditorClassName()), + e.layoutInfo && this._setLayout(), + !1 + ); + }), + (t.prototype.onFocusChanged = function (e) { + return ( + this.domNode.setClassName(this.getEditorClassName()), + this._context.model.setHasFocus(e.isFocused), + e.isFocused + ? this.outgoingEvents.emitViewFocusGained() + : this.outgoingEvents.emitViewFocusLost(), + !1 + ); + }), + (t.prototype.onScrollChanged = function (e) { + return this.outgoingEvents.emitScrollChanged(e), !1; + }), + (t.prototype.onThemeChanged = function (e) { + return this.domNode.setClassName(this.getEditorClassName()), !1; + }), + (t.prototype.dispose = function () { + null !== this._renderAnimationFrame && + (this._renderAnimationFrame.dispose(), + (this._renderAnimationFrame = null)), + this.eventDispatcher.removeEventHandler(this), + this.outgoingEvents.dispose(), + this.viewLines.dispose(); + for (var t = 0, n = this.viewParts.length; t < n; t++) + this.viewParts[t].dispose(); + (this.viewParts = []), e.prototype.dispose.call(this); + }), + (t.prototype._renderOnce = function (e) { + var t = Yx(e); + return this._scheduleRender(), t; + }), + (t.prototype._scheduleRender = function () { + null === this._renderAnimationFrame && + (this._renderAnimationFrame = Zh( + this._onRenderScheduled.bind(this), + 100 + )); + }), + (t.prototype._onRenderScheduled = function () { + (this._renderAnimationFrame = null), + this._flushAccumulatedAndRenderNow(); + }), + (t.prototype._renderNow = function () { + var e = this; + Yx(function () { + return e._actualRender(); + }); + }), + (t.prototype._getViewPartsToRender = function () { + for ( + var e = [], t = 0, n = 0, r = this.viewParts.length; + n < r; + n++ + ) { + var i = this.viewParts[n]; + i.shouldRender() && (e[t++] = i); + } + return e; + }), + (t.prototype._actualRender = function () { + if ( + (function (e) { + for (; e; ) { + if (e === document.body) return !0; + e = e.parentNode || e.host; + } + return !1; + })(this.domNode.domNode) + ) { + var e = this._getViewPartsToRender(); + if (this.viewLines.shouldRender() || 0 !== e.length) { + var t = this._context.viewLayout.getLinesViewportData(); + this._context.model.setViewport( + t.startLineNumber, + t.endLineNumber, + t.centeredLineNumber + ); + var n = new Ix( + this._cursor.getViewSelections(), + t, + this._context.viewLayout.getWhitespaceViewportData(), + this._context.model + ); + this.contentWidgets.shouldRender() && + this.contentWidgets.onBeforeRender(n), + this.viewLines.shouldRender() && + (this.viewLines.renderText(n), + this.viewLines.onDidRender(), + (e = this._getViewPartsToRender())); + for ( + var r = new vw(this._context.viewLayout, n, this.viewLines), + i = 0, + o = e.length; + i < o; + i++ + ) { + (s = e[i]).prepareRender(r); + } + for (i = 0, o = e.length; i < o; i++) { + var s; + (s = e[i]).render(r), s.onDidRender(); + } + } + } + }), + (t.prototype.delegateVerticalScrollbarMouseDown = function (e) { + this._scrollbar.delegateVerticalScrollbarMouseDown(e); + }), + (t.prototype.restoreState = function (e) { + this._context.viewLayout.setScrollPositionNow({ + scrollTop: e.scrollTop, + }), + this._context.model.tokenizeViewport(), + this._renderNow(), + this.viewLines.updateLineWidths(), + this._context.viewLayout.setScrollPositionNow({ + scrollLeft: e.scrollLeft, + }); + }), + (t.prototype.getOffsetForColumn = function (e, t) { + var n = this._context.model.validateModelPosition({ + lineNumber: e, + column: t, + }), + r = this._context.model.coordinatesConverter.convertModelPositionToViewPosition( + n + ); + this._flushAccumulatedAndRenderNow(); + var i = this.viewLines.visibleRangeForPosition( + new xt(r.lineNumber, r.column) + ); + return i ? i.left : -1; + }), + (t.prototype.getTargetAtClientPoint = function (e, t) { + return this.pointerHandler.getTargetAtClientPoint(e, t); + }), + (t.prototype.createOverviewRuler = function (e) { + return new fx(this._context, e); + }), + (t.prototype.change = function (e) { + var t = this, + n = !1; + return ( + this._renderOnce(function () { + var r = { + addZone: function (e) { + return (n = !0), t.viewZones.addZone(e); + }, + removeZone: function (e) { + e && (n = t.viewZones.removeZone(e) || n); + }, + layoutZone: function (e) { + e && (n = t.viewZones.layoutZone(e) || n); + }, + }; + !(function (e, t) { + try { + e(t); + } catch (e) { + qe(e); + } + })(e, r), + (r.addZone = Rx), + (r.removeZone = Rx), + (r.layoutZone = Rx), + n && + (t._context.viewLayout.onHeightMaybeChanged(), + t._context.privateViewEventBus.emit(new $C())); + }), + n + ); + }), + (t.prototype.render = function (e, t) { + if (t) { + this.viewLines.forceShouldRender(); + for (var n = 0, r = this.viewParts.length; n < r; n++) { + this.viewParts[n].forceShouldRender(); + } + } + e ? this._flushAccumulatedAndRenderNow() : this._scheduleRender(); + }), + (t.prototype.focus = function () { + this._textAreaHandler.focusTextArea(); + }), + (t.prototype.isFocused = function () { + return this._textAreaHandler.isFocused(); + }), + (t.prototype.addContentWidget = function (e) { + this.contentWidgets.addWidget(e.widget), + this.layoutContentWidget(e), + this._scheduleRender(); + }), + (t.prototype.layoutContentWidget = function (e) { + var t = e.position ? e.position.position : null, + n = (e.position && e.position.range) || null, + r = e.position ? e.position.preference : null; + this.contentWidgets.setWidgetPosition(e.widget, t, n, r), + this._scheduleRender(); + }), + (t.prototype.removeContentWidget = function (e) { + this.contentWidgets.removeWidget(e.widget), this._scheduleRender(); + }), + (t.prototype.addOverlayWidget = function (e) { + this.overlayWidgets.addWidget(e.widget), + this.layoutOverlayWidget(e), + this._scheduleRender(); + }), + (t.prototype.layoutOverlayWidget = function (e) { + var t = e.position ? e.position.preference : null; + this.overlayWidgets.setWidgetPosition(e.widget, t) && + this._scheduleRender(); + }), + (t.prototype.removeOverlayWidget = function (e) { + this.overlayWidgets.removeWidget(e.widget), this._scheduleRender(); + }), + t + ); + })(pw); + function Yx(e) { + try { + return e(); + } catch (e) { + qe(e); + } + } + var jx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Bx = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n.onDidScroll = null), + (n.onDidGainFocus = null), + (n.onDidLoseFocus = null), + (n.onKeyDown = null), + (n.onKeyUp = null), + (n.onContextMenu = null), + (n.onMouseMove = null), + (n.onMouseLeave = null), + (n.onMouseUp = null), + (n.onMouseDown = null), + (n.onMouseDrag = null), + (n.onMouseDrop = null), + (n.onMouseWheel = null), + (n._viewModel = t), + n + ); + } + return ( + jx(t, e), + (t.prototype.emitScrollChanged = function (e) { + this.onDidScroll && this.onDidScroll(e); + }), + (t.prototype.emitViewFocusGained = function () { + this.onDidGainFocus && this.onDidGainFocus(void 0); + }), + (t.prototype.emitViewFocusLost = function () { + this.onDidLoseFocus && this.onDidLoseFocus(void 0); + }), + (t.prototype.emitKeyDown = function (e) { + this.onKeyDown && this.onKeyDown(e); + }), + (t.prototype.emitKeyUp = function (e) { + this.onKeyUp && this.onKeyUp(e); + }), + (t.prototype.emitContextMenu = function (e) { + this.onContextMenu && + this.onContextMenu(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseMove = function (e) { + this.onMouseMove && + this.onMouseMove(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseLeave = function (e) { + this.onMouseLeave && + this.onMouseLeave(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseUp = function (e) { + this.onMouseUp && + this.onMouseUp(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseDown = function (e) { + this.onMouseDown && + this.onMouseDown(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseDrag = function (e) { + this.onMouseDrag && + this.onMouseDrag(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseDrop = function (e) { + this.onMouseDrop && + this.onMouseDrop(this._convertViewToModelMouseEvent(e)); + }), + (t.prototype.emitMouseWheel = function (e) { + this.onMouseWheel && this.onMouseWheel(e); + }), + (t.prototype._convertViewToModelMouseEvent = function (e) { + return e.target + ? { + event: e.event, + target: this._convertViewToModelMouseTarget(e.target), + } + : e; + }), + (t.prototype._convertViewToModelMouseTarget = function (e) { + return new Wx( + e.element, + e.type, + e.mouseColumn, + e.position ? this._convertViewToModelPosition(e.position) : null, + e.range ? this._convertViewToModelRange(e.range) : null, + e.detail + ); + }), + (t.prototype._convertViewToModelPosition = function (e) { + return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition( + e + ); + }), + (t.prototype._convertViewToModelRange = function (e) { + return this._viewModel.coordinatesConverter.convertViewRangeToModelRange( + e + ); + }), + t + ); + })(Rt), + Wx = (function () { + function e(e, t, n, r, i, o) { + (this.element = e), + (this.type = t), + (this.mouseColumn = n), + (this.position = r), + (this.range = i), + (this.detail = o); + } + return ( + (e.prototype.toString = function () { + return Fw.toString(this); + }), + e + ); + })(), + Hx = (function () { + function e(e) { + (this._selTrackedRange = null), + (this._trackSelection = !0), + this._setState( + e, + new Qu(new Fr(1, 1, 1, 1), 0, new xt(1, 1), 0), + new Qu(new Fr(1, 1, 1, 1), 0, new xt(1, 1), 0) + ); + } + return ( + (e.prototype.dispose = function (e) { + this._removeTrackedRange(e); + }), + (e.prototype.startTrackingSelection = function (e) { + (this._trackSelection = !0), this._updateTrackedRange(e); + }), + (e.prototype.stopTrackingSelection = function (e) { + (this._trackSelection = !1), this._removeTrackedRange(e); + }), + (e.prototype._updateTrackedRange = function (e) { + this._trackSelection && + (this._selTrackedRange = e.model._setTrackedRange( + this._selTrackedRange, + this.modelState.selection, + 0 + )); + }), + (e.prototype._removeTrackedRange = function (e) { + this._selTrackedRange = e.model._setTrackedRange( + this._selTrackedRange, + null, + 0 + ); + }), + (e.prototype.asCursorState = function () { + return new rl(this.modelState, this.viewState); + }), + (e.prototype.readSelectionFromMarkers = function (e) { + var t = e.model._getTrackedRange(this._selTrackedRange); + return 0 === this.modelState.selection.getDirection() + ? new jr( + t.startLineNumber, + t.startColumn, + t.endLineNumber, + t.endColumn + ) + : new jr( + t.endLineNumber, + t.endColumn, + t.startLineNumber, + t.startColumn + ); + }), + (e.prototype.ensureValidState = function (e) { + this._setState(e, this.modelState, this.viewState); + }), + (e.prototype.setState = function (e, t, n) { + this._setState(e, t, n); + }), + (e.prototype._setState = function (e, t, n) { + if (t) { + o = e.model.validateRange(t.selectionStart); + var r = t.selectionStart.equalsRange(o) + ? t.selectionStartLeftoverVisibleColumns + : 0, + i = + ((s = e.model.validatePosition(t.position)), + t.position.equals(s) ? t.leftoverVisibleColumns : 0); + t = new Qu(o, r, s, i); + } else { + if (!n) return; + var o = e.model.validateRange( + e.convertViewRangeToModelRange(n.selectionStart) + ), + s = e.model.validatePosition( + e.convertViewPositionToModelPosition( + n.position.lineNumber, + n.position.column + ) + ); + t = new Qu( + o, + n.selectionStartLeftoverVisibleColumns, + s, + n.leftoverVisibleColumns + ); + } + if (n) { + (l = e.validateViewRange(n.selectionStart, t.selectionStart)), + (c = e.validateViewPosition(n.position, t.position)); + n = new Qu( + l, + t.selectionStartLeftoverVisibleColumns, + c, + t.leftoverVisibleColumns + ); + } else { + var a = e.convertModelPositionToViewPosition( + new xt( + t.selectionStart.startLineNumber, + t.selectionStart.startColumn + ) + ), + u = e.convertModelPositionToViewPosition( + new xt( + t.selectionStart.endLineNumber, + t.selectionStart.endColumn + ) + ), + l = new Fr(a.lineNumber, a.column, u.lineNumber, u.column), + c = e.convertModelPositionToViewPosition(t.position); + n = new Qu( + l, + t.selectionStartLeftoverVisibleColumns, + c, + t.leftoverVisibleColumns + ); + } + (this.modelState = t), + (this.viewState = n), + this._updateTrackedRange(e); + }), + e + ); + })(), + Vx = (function () { + function e(e) { + (this.context = e), + (this.primaryCursor = new Hx(e)), + (this.secondaryCursors = []), + (this.lastAddedCursorIndex = 0); + } + return ( + (e.prototype.dispose = function () { + this.primaryCursor.dispose(this.context), + this.killSecondaryCursors(); + }), + (e.prototype.startTrackingSelections = function () { + this.primaryCursor.startTrackingSelection(this.context); + for (var e = 0, t = this.secondaryCursors.length; e < t; e++) + this.secondaryCursors[e].startTrackingSelection(this.context); + }), + (e.prototype.stopTrackingSelections = function () { + this.primaryCursor.stopTrackingSelection(this.context); + for (var e = 0, t = this.secondaryCursors.length; e < t; e++) + this.secondaryCursors[e].stopTrackingSelection(this.context); + }), + (e.prototype.updateContext = function (e) { + this.context = e; + }), + (e.prototype.ensureValidState = function () { + this.primaryCursor.ensureValidState(this.context); + for (var e = 0, t = this.secondaryCursors.length; e < t; e++) + this.secondaryCursors[e].ensureValidState(this.context); + }), + (e.prototype.readSelectionFromMarkers = function () { + var e = []; + e[0] = this.primaryCursor.readSelectionFromMarkers(this.context); + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t].readSelectionFromMarkers( + this.context + ); + return e; + }), + (e.prototype.getAll = function () { + var e = []; + e[0] = this.primaryCursor.asCursorState(); + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t].asCursorState(); + return e; + }), + (e.prototype.getViewPositions = function () { + var e = []; + e[0] = this.primaryCursor.viewState.position; + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t].viewState.position; + return e; + }), + (e.prototype.getSelections = function () { + var e = []; + e[0] = this.primaryCursor.modelState.selection; + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t].modelState.selection; + return e; + }), + (e.prototype.getViewSelections = function () { + var e = []; + e[0] = this.primaryCursor.viewState.selection; + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t].viewState.selection; + return e; + }), + (e.prototype.setSelections = function (e) { + this.setStates(rl.fromModelSelections(e)); + }), + (e.prototype.getPrimaryCursor = function () { + return this.primaryCursor.asCursorState(); + }), + (e.prototype.setStates = function (e) { + null !== e && + (this.primaryCursor.setState( + this.context, + e[0].modelState, + e[0].viewState + ), + this._setSecondaryStates(e.slice(1))); + }), + (e.prototype._setSecondaryStates = function (e) { + var t = this.secondaryCursors.length, + n = e.length; + if (t < n) + for (var r = n - t, i = 0; i < r; i++) this._addSecondaryCursor(); + else if (t > n) { + var o = t - n; + for (i = 0; i < o; i++) + this._removeSecondaryCursor(this.secondaryCursors.length - 1); + } + for (i = 0; i < n; i++) + this.secondaryCursors[i].setState( + this.context, + e[i].modelState, + e[i].viewState + ); + }), + (e.prototype.killSecondaryCursors = function () { + this._setSecondaryStates([]); + }), + (e.prototype._addSecondaryCursor = function () { + this.secondaryCursors.push(new Hx(this.context)), + (this.lastAddedCursorIndex = this.secondaryCursors.length); + }), + (e.prototype.getLastAddedCursorIndex = function () { + return 0 === this.secondaryCursors.length || + 0 === this.lastAddedCursorIndex + ? 0 + : this.lastAddedCursorIndex; + }), + (e.prototype._removeSecondaryCursor = function (e) { + this.lastAddedCursorIndex >= e + 1 && this.lastAddedCursorIndex--, + this.secondaryCursors[e].dispose(this.context), + this.secondaryCursors.splice(e, 1); + }), + (e.prototype._getAll = function () { + var e = []; + e[0] = this.primaryCursor; + for (var t = 0, n = this.secondaryCursors.length; t < n; t++) + e[t + 1] = this.secondaryCursors[t]; + return e; + }), + (e.prototype.normalize = function () { + if (0 !== this.secondaryCursors.length) { + for ( + var e = this._getAll(), t = [], n = 0, r = e.length; + n < r; + n++ + ) + t.push({ index: n, selection: e[n].modelState.selection }); + t.sort(function (e, t) { + return e.selection.startLineNumber === + t.selection.startLineNumber + ? e.selection.startColumn - t.selection.startColumn + : e.selection.startLineNumber - t.selection.startLineNumber; + }); + for (var i = 0; i < t.length - 1; i++) { + var o = t[i], + s = t[i + 1], + a = o.selection, + u = s.selection; + if (this.context.config.multiCursorMergeOverlapping) { + if ( + u.isEmpty() || a.isEmpty() + ? u.getStartPosition().isBeforeOrEqual(a.getEndPosition()) + : u.getStartPosition().isBefore(a.getEndPosition()) + ) { + var l = o.index < s.index ? i : i + 1, + c = o.index < s.index ? i + 1 : i, + d = t[c].index, + h = t[l].index, + f = t[c].selection, + p = t[l].selection; + if (!f.equalsSelection(p)) { + var g = f.plusRange(p), + m = + f.selectionStartLineNumber === f.startLineNumber && + f.selectionStartColumn === f.startColumn, + _ = + p.selectionStartLineNumber === p.startLineNumber && + p.selectionStartColumn === p.startColumn, + y = void 0; + d === this.lastAddedCursorIndex + ? ((y = m), (this.lastAddedCursorIndex = h)) + : (y = _); + var v = void 0; + (v = y + ? new jr( + g.startLineNumber, + g.startColumn, + g.endLineNumber, + g.endColumn + ) + : new jr( + g.endLineNumber, + g.endColumn, + g.startLineNumber, + g.startColumn + )), + (t[l].selection = v); + var b = rl.fromModelSelection(v); + e[h].setState(this.context, b.modelState, b.viewState); + } + for (var w = 0, C = t; w < C.length; w++) { + var S = C[w]; + S.index > d && S.index--; + } + e.splice(d, 1), + t.splice(c, 1), + this._removeSecondaryCursor(d - 1), + i--; + } + } + } + } + }), + e + ); + })(), + zx = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + var Ux = function (e, t, n) { + (this.selections = e), (this.source = t), (this.reason = n); + }, + qx = (function () { + function e(e, t) { + (this.modelVersionId = e.getVersionId()), + (this.cursorState = t.getAll()); + } + return ( + (e.prototype.equals = function (e) { + if (!e) return !1; + if (this.modelVersionId !== e.modelVersionId) return !1; + if (this.cursorState.length !== e.cursorState.length) return !1; + for (var t = 0, n = this.cursorState.length; t < n; t++) + if (!this.cursorState[t].equals(e.cursorState[t])) return !1; + return !0; + }), + e + ); + })(), + Kx = (function () { + function e(e, t, n) { + (this._model = e), + (this._autoClosedCharactersDecorations = t), + (this._autoClosedEnclosingDecorations = n); + } + return ( + (e.getAllAutoClosedCharacters = function (e) { + for (var t = [], n = 0, r = e; n < r.length; n++) { + var i = r[n]; + t = t.concat(i.getAutoClosedCharactersRanges()); + } + return t; + }), + (e.prototype.dispose = function () { + (this._autoClosedCharactersDecorations = this._model.deltaDecorations( + this._autoClosedCharactersDecorations, + [] + )), + (this._autoClosedEnclosingDecorations = this._model.deltaDecorations( + this._autoClosedEnclosingDecorations, + [] + )); + }), + (e.prototype.getAutoClosedCharactersRanges = function () { + for ( + var e = [], t = 0; + t < this._autoClosedCharactersDecorations.length; + t++ + ) { + var n = this._model.getDecorationRange( + this._autoClosedCharactersDecorations[t] + ); + n && e.push(n); + } + return e; + }), + (e.prototype.isValid = function (e) { + for ( + var t = [], n = 0; + n < this._autoClosedEnclosingDecorations.length; + n++ + ) { + var r = this._model.getDecorationRange( + this._autoClosedEnclosingDecorations[n] + ); + if (r && (t.push(r), r.startLineNumber !== r.endLineNumber)) + return !1; + } + t.sort(Fr.compareRangesUsingStarts), + e.sort(Fr.compareRangesUsingStarts); + for (n = 0; n < e.length; n++) { + if (n >= t.length) return !1; + if (!t[n].strictContainsRange(e[n])) return !1; + } + return !0; + }), + e + ); + })(), + Gx = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + (i._onDidReachMaxCursorCount = i._register(new Gt())), + (i.onDidReachMaxCursorCount = i._onDidReachMaxCursorCount.event), + (i._onDidAttemptReadOnlyEdit = i._register(new Gt())), + (i.onDidAttemptReadOnlyEdit = i._onDidAttemptReadOnlyEdit.event), + (i._onDidChange = i._register(new Gt())), + (i.onDidChange = i._onDidChange.event), + (i._configuration = t), + (i._model = n), + (i._knownModelVersionId = i._model.getVersionId()), + (i._viewModel = r), + (i.context = new el(i._configuration, i._model, i._viewModel)), + (i._cursors = new Vx(i.context)), + (i._isHandling = !1), + (i._isDoingComposition = !1), + (i._columnSelectData = null), + (i._autoClosedActions = []), + (i._prevEditOperationType = 0), + i._register( + i._model.onDidChangeRawContent(function (e) { + if (((i._knownModelVersionId = e.versionId), !i._isHandling)) { + var t = e.containsEvent(1); + i._onModelContentChanged(t); + } + }) + ), + i._register( + r.addEventListener(function (e) { + (function (e) { + for (var t = 0, n = e.length; t < n; t++) + if (6 === e[t].type) return !0; + return !1; + })(e) && + i._knownModelVersionId === i._model.getVersionId() && + i.setStates('viewModel', 0, i.getAll()); + }) + ); + var o = function () { + (i.context = new el(i._configuration, i._model, i._viewModel)), + i._cursors.updateContext(i.context); + }; + return ( + i._register( + i._model.onDidChangeLanguage(function (e) { + o(); + }) + ), + i._register( + i._model.onDidChangeLanguageConfiguration(function () { + o(); + }) + ), + i._register( + i._model.onDidChangeOptions(function () { + o(); + }) + ), + i._register( + i._configuration.onDidChange(function (e) { + Ju.shouldRecreate(e) && o(); + }) + ), + i + ); + } + return ( + zx(t, e), + (t.prototype.dispose = function () { + this._cursors.dispose(), + (this._autoClosedActions = Ot(this._autoClosedActions)), + e.prototype.dispose.call(this); + }), + (t.prototype._validateAutoClosedActions = function () { + if (this._autoClosedActions.length > 0) + for ( + var e = this._cursors.getSelections(), t = 0; + t < this._autoClosedActions.length; + t++ + ) { + var n = this._autoClosedActions[t]; + n.isValid(e) || + (n.dispose(), this._autoClosedActions.splice(t, 1), t--); + } + }), + (t.prototype.getPrimaryCursor = function () { + return this._cursors.getPrimaryCursor(); + }), + (t.prototype.getLastAddedCursorIndex = function () { + return this._cursors.getLastAddedCursorIndex(); + }), + (t.prototype.getAll = function () { + return this._cursors.getAll(); + }), + (t.prototype.setStates = function (e, n, r) { + null !== r && + r.length > t.MAX_CURSOR_COUNT && + ((r = r.slice(0, t.MAX_CURSOR_COUNT)), + this._onDidReachMaxCursorCount.fire(void 0)); + var i = new qx(this._model, this); + this._cursors.setStates(r), + this._cursors.normalize(), + (this._columnSelectData = null), + this._validateAutoClosedActions(), + this._emitStateChangedIfNecessary(e, n, i); + }), + (t.prototype.setColumnSelectData = function (e) { + this._columnSelectData = e; + }), + (t.prototype.reveal = function (e, t, n) { + this._revealRange(t, 0, e, n); + }), + (t.prototype.revealRange = function (e, t, n, r) { + this.emitCursorRevealRange(t, n, e, r); + }), + (t.prototype.scrollTo = function (e) { + this._viewModel.viewLayout.setScrollPositionSmooth({ + scrollTop: e, + }); + }), + (t.prototype.saveState = function () { + for ( + var e = [], + t = this._cursors.getSelections(), + n = 0, + r = t.length; + n < r; + n++ + ) { + var i = t[n]; + e.push({ + inSelectionMode: !i.isEmpty(), + selectionStart: { + lineNumber: i.selectionStartLineNumber, + column: i.selectionStartColumn, + }, + position: { + lineNumber: i.positionLineNumber, + column: i.positionColumn, + }, + }); + } + return e; + }), + (t.prototype.restoreState = function (e) { + for (var t = [], n = 0, r = e.length; n < r; n++) { + var i = e[n], + o = 1, + s = 1; + i.position && + i.position.lineNumber && + (o = i.position.lineNumber), + i.position && i.position.column && (s = i.position.column); + var a = o, + u = s; + i.selectionStart && + i.selectionStart.lineNumber && + (a = i.selectionStart.lineNumber), + i.selectionStart && + i.selectionStart.column && + (u = i.selectionStart.column), + t.push({ + selectionStartLineNumber: a, + selectionStartColumn: u, + positionLineNumber: o, + positionColumn: s, + }); + } + this.setStates('restoreState', 0, rl.fromModelSelections(t)), + this.reveal(!0, 0, 1); + }), + (t.prototype._onModelContentChanged = function (e) { + if (((this._prevEditOperationType = 0), e)) + this._cursors.dispose(), + (this._cursors = new Vx(this.context)), + this._validateAutoClosedActions(), + this._emitStateChangedIfNecessary('model', 1, null); + else { + var t = this._cursors.readSelectionFromMarkers(); + this.setStates('modelChange', 2, rl.fromModelSelections(t)); + } + }), + (t.prototype.getSelection = function () { + return this._cursors.getPrimaryCursor().modelState.selection; + }), + (t.prototype.getColumnSelectData = function () { + if (this._columnSelectData) return this._columnSelectData; + var e = this._cursors.getPrimaryCursor().viewState.position, + t = e.lineNumber, + n = ol.visibleColumnFromColumn2( + this.context.config, + this.context.viewModel, + e + ); + return { + isReal: !1, + fromViewLineNumber: t, + fromViewVisualColumn: n, + toViewLineNumber: t, + toViewVisualColumn: n, + }; + }), + (t.prototype.getSelections = function () { + return this._cursors.getSelections(); + }), + (t.prototype.getViewSelections = function () { + return this._cursors.getViewSelections(); + }), + (t.prototype.getPosition = function () { + return this._cursors.getPrimaryCursor().modelState.position; + }), + (t.prototype.setSelections = function (e, t) { + this.setStates(e, 0, rl.fromModelSelections(t)); + }), + (t.prototype.getPrevEditOperationType = function () { + return this._prevEditOperationType; + }), + (t.prototype.setPrevEditOperationType = function (e) { + this._prevEditOperationType = e; + }), + (t.prototype._pushAutoClosedAction = function (e, t) { + for (var n = [], r = [], i = 0, o = e.length; i < o; i++) + n.push({ + range: e[i], + options: { + inlineClassName: 'auto-closed-character', + stickiness: 1, + }, + }), + r.push({ range: t[i], options: { stickiness: 1 } }); + var s = this._model.deltaDecorations([], n), + a = this._model.deltaDecorations([], r); + this._autoClosedActions.push(new Kx(this._model, s, a)); + }), + (t.prototype._executeEditOperation = function (e) { + if (e) { + e.shouldPushStackElementBefore && this._model.pushStackElement(); + var t = $x.executeCommands( + this._model, + this._cursors.getSelections(), + e.commands + ); + if (t) { + this._interpretCommandResult(t); + for (var n = [], r = [], i = 0; i < e.commands.length; i++) { + var o = e.commands[i]; + o instanceof Ml && + o.enclosingRange && + o.closeCharacterRange && + (n.push(o.closeCharacterRange), r.push(o.enclosingRange)); + } + n.length > 0 && this._pushAutoClosedAction(n, r), + (this._prevEditOperationType = e.type); + } + e.shouldPushStackElementAfter && this._model.pushStackElement(); + } + }), + (t.prototype._interpretCommandResult = function (e) { + (e && 0 !== e.length) || + (e = this._cursors.readSelectionFromMarkers()), + (this._columnSelectData = null), + this._cursors.setSelections(e), + this._cursors.normalize(); + }), + (t.prototype._emitStateChangedIfNecessary = function (e, t, n) { + var r = new qx(this._model, this); + if (r.equals(n)) return !1; + var i = this._cursors.getSelections(), + o = this._cursors.getViewSelections(); + try { + this._beginEmit().emit(new RC(o)); + } finally { + this._endEmit(); + } + return ( + (n && + n.cursorState.length === r.cursorState.length && + !r.cursorState.some(function (e, t) { + return !e.modelState.equals(n.cursorState[t].modelState); + })) || + this._onDidChange.fire(new Ux(i, e || 'keyboard', t)), + !0 + ); + }), + (t.prototype._revealRange = function (e, t, n, r) { + var i = this._cursors.getViewPositions(), + o = i[0]; + if (1 === e) + for (var s = 1; s < i.length; s++) i[s].isBefore(o) && (o = i[s]); + else if (2 === e) + for (s = 1; s < i.length; s++) + o.isBeforeOrEqual(i[s]) && (o = i[s]); + else if (i.length > 1) return; + var a = new Fr(o.lineNumber, o.column, o.lineNumber, o.column); + this.emitCursorRevealRange(a, t, n, r); + }), + (t.prototype.emitCursorRevealRange = function (e, t, n, r) { + try { + this._beginEmit().emit(new zC(e, t, n, r)); + } finally { + this._endEmit(); + } + }), + (t.prototype._findAutoClosingPairs = function (e) { + if (!e.length) return null; + for (var t = [], n = 0, r = e.length; n < r; n++) { + var i = e[n]; + if (!i.text || i.text.indexOf('\n') >= 0) return null; + var o = i.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/); + if (!o) return null; + var s = o[1], + a = this.context.config.autoClosingPairsClose2.get(s); + if (!a || 1 !== a.length) return null; + var u = a[0].open, + l = i.text.length - o[2].length - 1, + c = i.text.lastIndexOf(u, l - 1); + if (-1 === c) return null; + t.push([c, l]); + } + return t; + }), + (t.prototype.executeEdits = function (e, t, n) { + var r = this, + i = null; + 'snippet' === e && (i = this._findAutoClosingPairs(t)), + i && (t[0]._isTracked = !0); + var o = [], + s = [], + a = this._model.pushEditOperations( + this.getSelections(), + t, + function (e) { + if (i) + for (var t = 0, a = i.length; t < a; t++) { + var u = i[t], + l = u[0], + c = u[1], + d = e[t], + h = d.range.startLineNumber, + f = d.range.startColumn - 1 + l, + p = d.range.startColumn - 1 + c; + o.push(new Fr(h, p + 1, h, p + 2)), + s.push(new Fr(h, f + 1, h, p + 2)); + } + var g = n(e); + return g && (r._isHandling = !0), g; + } + ); + a && ((this._isHandling = !1), this.setSelections(e, a)), + o.length > 0 && this._pushAutoClosedAction(o, s); + }), + (t.prototype.trigger = function (e, t, n) { + var r = Nl; + if (t !== r.CompositionStart) + if ( + (t === r.CompositionEnd && (this._isDoingComposition = !1), + this._configuration.editor.readOnly) + ) + this._onDidAttemptReadOnlyEdit.fire(void 0); + else { + var i = new qx(this._model, this), + o = 0; + t !== r.Undo && + t !== r.Redo && + this._cursors.stopTrackingSelections(), + this._cursors.ensureValidState(), + (this._isHandling = !0); + try { + switch (t) { + case r.Type: + this._type(e, n.text); + break; + case r.ReplacePreviousChar: + this._replacePreviousChar(n.text, n.replaceCharCnt); + break; + case r.Paste: + (o = 4), + this._paste( + n.text, + n.pasteOnNewLine, + n.multicursorText + ); + break; + case r.Cut: + this._cut(); + break; + case r.Undo: + (o = 5), this._interpretCommandResult(this._model.undo()); + break; + case r.Redo: + (o = 6), this._interpretCommandResult(this._model.redo()); + break; + case r.ExecuteCommand: + this._externalExecuteCommand(n); + break; + case r.ExecuteCommands: + this._externalExecuteCommands(n); + break; + case r.CompositionEnd: + this._interpretCompositionEnd(e); + } + } catch (e) { + qe(e); + } + (this._isHandling = !1), + t !== r.Undo && + t !== r.Redo && + this._cursors.startTrackingSelections(), + this._validateAutoClosedActions(), + this._emitStateChangedIfNecessary(e, o, i) && + this._revealRange(0, 0, !0, 0); + } + else this._isDoingComposition = !0; + }), + (t.prototype._interpretCompositionEnd = function (e) { + if (!this._isDoingComposition && 'keyboard' === e) { + var t = Kx.getAllAutoClosedCharacters(this._autoClosedActions); + this._executeEditOperation( + kl.compositionEndWithInterceptors( + this._prevEditOperationType, + this.context.config, + this.context.model, + this.getSelections(), + t + ) + ); + } + }), + (t.prototype._type = function (e, t) { + if (this._isDoingComposition || 'keyboard' !== e) + this._executeEditOperation( + kl.typeWithoutInterceptors( + this._prevEditOperationType, + this.context.config, + this.context.model, + this.getSelections(), + t + ) + ); + else + for (var n = 0, r = t.length; n < r; n++) { + var i = void 0; + Sn(t.charCodeAt(n)) && n + 1 < r + ? ((i = t.charAt(n) + t.charAt(n + 1)), n++) + : (i = t.charAt(n)); + var o = Kx.getAllAutoClosedCharacters(this._autoClosedActions); + this._executeEditOperation( + kl.typeWithInterceptors( + this._prevEditOperationType, + this.context.config, + this.context.model, + this.getSelections(), + o, + i + ) + ); + } + }), + (t.prototype._replacePreviousChar = function (e, t) { + this._executeEditOperation( + kl.replacePreviousChar( + this._prevEditOperationType, + this.context.config, + this.context.model, + this.getSelections(), + e, + t + ) + ); + }), + (t.prototype._paste = function (e, t, n) { + this._executeEditOperation( + kl.paste( + this.context.config, + this.context.model, + this.getSelections(), + e, + t, + n + ) + ); + }), + (t.prototype._cut = function () { + this._executeEditOperation( + pl.cut( + this.context.config, + this.context.model, + this.getSelections() + ) + ); + }), + (t.prototype._externalExecuteCommand = function (e) { + this._cursors.killSecondaryCursors(), + this._executeEditOperation( + new il(0, [e], { + shouldPushStackElementBefore: !1, + shouldPushStackElementAfter: !1, + }) + ); + }), + (t.prototype._externalExecuteCommands = function (e) { + this._executeEditOperation( + new il(0, e, { + shouldPushStackElementBefore: !1, + shouldPushStackElementAfter: !1, + }) + ); + }), + (t.MAX_CURSOR_COUNT = 1e4), + t + ); + })(XC), + $x = (function () { + function e() {} + return ( + (e.executeCommands = function (e, t, n) { + for ( + var r = { + model: e, + selectionsBefore: t, + trackedRanges: [], + trackedRangesDirection: [], + }, + i = this._innerExecuteCommands(r, n), + o = 0, + s = r.trackedRanges.length; + o < s; + o++ + ) + r.model._setTrackedRange(r.trackedRanges[o], null, 0); + return i; + }), + (e._innerExecuteCommands = function (e, t) { + if (this._arrayIsEmpty(t)) return null; + var n = this._getEditOperations(e, t); + if (0 === n.operations.length) return null; + var r = n.operations, + i = this._getLoserCursorMap(r); + if (i.hasOwnProperty('0')) + return console.warn('Ignoring commands'), null; + for (var o = [], s = 0, a = r.length; s < a; s++) + i.hasOwnProperty(r[s].identifier.major.toString()) || + o.push(r[s]); + n.hadTrackedEditOperation && o.length > 0 && (o[0]._isTracked = !0); + var u = e.model.pushEditOperations( + e.selectionsBefore, + o, + function (n) { + for (var r = [], i = 0; i < e.selectionsBefore.length; i++) + r[i] = []; + for (var o = 0, s = n; o < s.length; o++) { + var a = s[o]; + a.identifier && r[a.identifier.major].push(a); + } + var u = function (e, t) { + return e.identifier.minor - t.identifier.minor; + }, + l = [], + c = function (n) { + r[n].length > 0 + ? (r[n].sort(u), + (l[n] = t[n].computeCursorState(e.model, { + getInverseEditOperations: function () { + return r[n]; + }, + getTrackedSelection: function (t) { + var n = parseInt(t, 10), + r = e.model._getTrackedRange(e.trackedRanges[n]); + return 0 === e.trackedRangesDirection[n] + ? new jr( + r.startLineNumber, + r.startColumn, + r.endLineNumber, + r.endColumn + ) + : new jr( + r.endLineNumber, + r.endColumn, + r.startLineNumber, + r.startColumn + ); + }, + }))) + : (l[n] = e.selectionsBefore[n]); + }; + for (i = 0; i < e.selectionsBefore.length; i++) c(i); + return l; + } + ); + u || (u = e.selectionsBefore); + var l = []; + for (var c in i) i.hasOwnProperty(c) && l.push(parseInt(c, 10)); + l.sort(function (e, t) { + return t - e; + }); + for (var d = 0, h = l; d < h.length; d++) { + var f = h[d]; + u.splice(f, 1); + } + return u; + }), + (e._arrayIsEmpty = function (e) { + for (var t = 0, n = e.length; t < n; t++) if (e[t]) return !1; + return !0; + }), + (e._getEditOperations = function (e, t) { + for (var n = [], r = !1, i = 0, o = t.length; i < o; i++) { + var s = t[i]; + if (s) { + var a = this._getEditOperationsFromCommand(e, i, s); + (n = n.concat(a.operations)), + (r = r || a.hadTrackedEditOperation); + } + } + return { operations: n, hadTrackedEditOperation: r }; + }), + (e._getEditOperationsFromCommand = function (e, t, n) { + var r = [], + i = 0, + o = function (e, o) { + (e.isEmpty() && '' === o) || + r.push({ + identifier: { major: t, minor: i++ }, + range: e, + text: o, + forceMoveMarkers: !1, + isAutoWhitespaceEdit: n.insertsAutoWhitespace, + }); + }, + s = !1, + a = { + addEditOperation: o, + addTrackedEditOperation: function (e, t) { + (s = !0), o(e, t); + }, + trackSelection: function (t, n) { + var r; + if (t.isEmpty()) + if ('boolean' == typeof n) r = n ? 2 : 3; + else { + var i = e.model.getLineMaxColumn(t.startLineNumber); + r = t.startColumn === i ? 2 : 3; + } + else r = 1; + var o = e.trackedRanges.length, + s = e.model._setTrackedRange(null, t, r); + return ( + (e.trackedRanges[o] = s), + (e.trackedRangesDirection[o] = t.getDirection()), + o.toString() + ); + }, + }; + try { + n.getEditOperations(e.model, a); + } catch (e) { + return qe(e), { operations: [], hadTrackedEditOperation: !1 }; + } + return { operations: r, hadTrackedEditOperation: s }; + }), + (e._getLoserCursorMap = function (e) { + (e = e.slice(0)).sort(function (e, t) { + return -Fr.compareRangesUsingEnds(e.range, t.range); + }); + for (var t = {}, n = 1; n < e.length; n++) { + var r = e[n - 1], + i = e[n]; + if ( + r.range.getStartPosition().isBefore(i.range.getEndPosition()) + ) { + var o = void 0; + t[ + (o = + r.identifier.major > i.identifier.major + ? r.identifier.major + : i.identifier.major).toString() + ] = !0; + for (var s = 0; s < e.length; s++) + e[s].identifier.major === o && + (e.splice(s, 1), s < n && n--, s--); + n > 0 && n--; + } + } + return t; + }), + e + ); + })(), + Zx = (function () { + function e(e, t, n, r, i, o) { + (this.id = e), + (this.label = t), + (this.alias = n), + (this._precondition = r), + (this._run = i), + (this._contextKeyService = o); + } + return ( + (e.prototype.isSupported = function () { + return this._contextKeyService.contextMatchesRules( + this._precondition + ); + }), + (e.prototype.run = function () { + if (!this.isSupported()) return Promise.resolve(void 0); + var e = this._run(); + return e || Promise.resolve(void 0); + }), + e + ); + })(); + function Xx(e, t, n, r, i, o) { + for (var s = '
', a = r, u = 0, l = 0, c = t.getCount(); l < c; l++) { + var d = t.getEndOffset(l); + if (!(d <= r)) { + for (var h = ''; a < d && a < i; a++) { + var f = e.charCodeAt(a); + switch (f) { + case 9: + var p = o - ((a + u) % o); + for (u += p - 1; p > 0; ) (h += ' '), p--; + break; + case 60: + h += '<'; + break; + case 62: + h += '>'; + break; + case 38: + h += '&'; + break; + case 0: + h += '�'; + break; + case 65279: + case 8232: + h += '�'; + break; + case 13: + h += '​'; + break; + case 32: + h += ' '; + break; + default: + h += String.fromCharCode(f); + } + } + if ( + ((s += + '' + h + ''), + d > i || a >= i) + ) + break; + } + } + return (s += '
'); + } + var Jx = (function () { + function e() { + (this._instanceId = An(++e.INSTANCE_COUNT)), + (this._heights = []), + (this._minWidths = []), + (this._ids = []), + (this._afterLineNumbers = []), + (this._ordinals = []), + (this._prefixSum = []), + (this._prefixSumValidIndex = -1), + (this._whitespaceId2Index = {}), + (this._lastWhitespaceId = 0), + (this._minWidth = -1); + } + return ( + (e.findInsertionIndex = function (e, t, n, r) { + for (var i = 0, o = e.length; i < o; ) { + var s = (i + o) >>> 1; + t === e[s] + ? r < n[s] + ? (o = s) + : (i = s + 1) + : t < e[s] + ? (o = s) + : (i = s + 1); + } + return i; + }), + (e.prototype.insertWhitespace = function (t, n, r, i) { + (t |= 0), (n |= 0), (r |= 0), (i |= 0); + var o = this._instanceId + ++this._lastWhitespaceId, + s = e.findInsertionIndex( + this._afterLineNumbers, + t, + this._ordinals, + n + ); + return ( + this._insertWhitespaceAtIndex(o, s, t, n, r, i), + (this._minWidth = -1), + o + ); + }), + (e.prototype._insertWhitespaceAtIndex = function (e, t, n, r, i, o) { + (t |= 0), + (n |= 0), + (r |= 0), + (i |= 0), + (o |= 0), + this._heights.splice(t, 0, i), + this._minWidths.splice(t, 0, o), + this._ids.splice(t, 0, e), + this._afterLineNumbers.splice(t, 0, n), + this._ordinals.splice(t, 0, r), + this._prefixSum.splice(t, 0, 0); + for ( + var s = Object.keys(this._whitespaceId2Index), + a = 0, + u = s.length; + a < u; + a++ + ) { + var l = s[a], + c = this._whitespaceId2Index[l]; + c >= t && (this._whitespaceId2Index[l] = c + 1); + } + (this._whitespaceId2Index[e] = t), + (this._prefixSumValidIndex = Math.min( + this._prefixSumValidIndex, + t - 1 + )); + }), + (e.prototype.changeWhitespace = function (e, t, n) { + (t |= 0), (n |= 0); + var r = !1; + return ( + (r = this.changeWhitespaceHeight(e, n) || r), + (r = this.changeWhitespaceAfterLineNumber(e, t) || r) + ); + }), + (e.prototype.changeWhitespaceHeight = function (e, t) { + if (((t |= 0), this._whitespaceId2Index.hasOwnProperty(e))) { + var n = this._whitespaceId2Index[e]; + if (this._heights[n] !== t) + return ( + (this._heights[n] = t), + (this._prefixSumValidIndex = Math.min( + this._prefixSumValidIndex, + n - 1 + )), + !0 + ); + } + return !1; + }), + (e.prototype.changeWhitespaceAfterLineNumber = function (t, n) { + if (((n |= 0), this._whitespaceId2Index.hasOwnProperty(t))) { + var r = this._whitespaceId2Index[t]; + if (this._afterLineNumbers[r] !== n) { + var i = this._ordinals[r], + o = this._heights[r], + s = this._minWidths[r]; + this.removeWhitespace(t); + var a = e.findInsertionIndex( + this._afterLineNumbers, + n, + this._ordinals, + i + ); + return this._insertWhitespaceAtIndex(t, a, n, i, o, s), !0; + } + } + return !1; + }), + (e.prototype.removeWhitespace = function (e) { + if (this._whitespaceId2Index.hasOwnProperty(e)) { + var t = this._whitespaceId2Index[e]; + return ( + delete this._whitespaceId2Index[e], + this._removeWhitespaceAtIndex(t), + (this._minWidth = -1), + !0 + ); + } + return !1; + }), + (e.prototype._removeWhitespaceAtIndex = function (e) { + (e |= 0), + this._heights.splice(e, 1), + this._minWidths.splice(e, 1), + this._ids.splice(e, 1), + this._afterLineNumbers.splice(e, 1), + this._ordinals.splice(e, 1), + this._prefixSum.splice(e, 1), + (this._prefixSumValidIndex = Math.min( + this._prefixSumValidIndex, + e - 1 + )); + for ( + var t = Object.keys(this._whitespaceId2Index), + n = 0, + r = t.length; + n < r; + n++ + ) { + var i = t[n], + o = this._whitespaceId2Index[i]; + o >= e && (this._whitespaceId2Index[i] = o - 1); + } + }), + (e.prototype.onLinesDeleted = function (e, t) { + (e |= 0), (t |= 0); + for (var n = 0, r = this._afterLineNumbers.length; n < r; n++) { + var i = this._afterLineNumbers[n]; + e <= i && i <= t + ? (this._afterLineNumbers[n] = e - 1) + : i > t && (this._afterLineNumbers[n] -= t - e + 1); + } + }), + (e.prototype.onLinesInserted = function (e, t) { + (e |= 0), (t |= 0); + for (var n = 0, r = this._afterLineNumbers.length; n < r; n++) { + e <= this._afterLineNumbers[n] && + (this._afterLineNumbers[n] += t - e + 1); + } + }), + (e.prototype.getTotalHeight = function () { + return 0 === this._heights.length + ? 0 + : this.getAccumulatedHeight(this._heights.length - 1); + }), + (e.prototype.getAccumulatedHeight = function (e) { + e |= 0; + var t = Math.max(0, this._prefixSumValidIndex + 1); + 0 === t && ((this._prefixSum[0] = this._heights[0]), t++); + for (var n = t; n <= e; n++) + this._prefixSum[n] = this._prefixSum[n - 1] + this._heights[n]; + return ( + (this._prefixSumValidIndex = Math.max( + this._prefixSumValidIndex, + e + )), + this._prefixSum[e] + ); + }), + (e.prototype.getAccumulatedHeightBeforeLineNumber = function (e) { + e |= 0; + var t = this._findLastWhitespaceBeforeLineNumber(e); + return -1 === t ? 0 : this.getAccumulatedHeight(t); + }), + (e.prototype._findLastWhitespaceBeforeLineNumber = function (e) { + e |= 0; + for ( + var t = this._afterLineNumbers, n = 0, r = t.length - 1; + n <= r; + + ) { + var i = (n + ((((r - n) | 0) / 2) | 0)) | 0; + if (t[i] < e) { + if (i + 1 >= t.length || t[i + 1] >= e) return i; + n = (i + 1) | 0; + } else r = (i - 1) | 0; + } + return -1; + }), + (e.prototype._findFirstWhitespaceAfterLineNumber = function (e) { + e |= 0; + var t = this._findLastWhitespaceBeforeLineNumber(e) + 1; + return t < this._heights.length ? t : -1; + }), + (e.prototype.getFirstWhitespaceIndexAfterLineNumber = function (e) { + return (e |= 0), this._findFirstWhitespaceAfterLineNumber(e); + }), + (e.prototype.getCount = function () { + return this._heights.length; + }), + (e.prototype.getMinWidth = function () { + if (-1 === this._minWidth) { + for (var e = 0, t = 0, n = this._minWidths.length; t < n; t++) + e = Math.max(e, this._minWidths[t]); + this._minWidth = e; + } + return this._minWidth; + }), + (e.prototype.getAfterLineNumberForWhitespaceIndex = function (e) { + return (e |= 0), this._afterLineNumbers[e]; + }), + (e.prototype.getIdForWhitespaceIndex = function (e) { + return (e |= 0), this._ids[e]; + }), + (e.prototype.getHeightForWhitespaceIndex = function (e) { + return (e |= 0), this._heights[e]; + }), + (e.prototype.getWhitespaces = function (e) { + e |= 0; + for (var t = [], n = 0; n < this._heights.length; n++) + t.push({ + id: this._ids[n], + afterLineNumber: this._afterLineNumbers[n], + heightInLines: this._heights[n] / e, + }); + return t; + }), + (e.INSTANCE_COUNT = 0), + e + ); + })(), + Qx = (function () { + function e(e, t) { + (this._lineCount = e), + (this._lineHeight = t), + (this._whitespaces = new Jx()); + } + return ( + (e.prototype.setLineHeight = function (e) { + this._lineHeight = e; + }), + (e.prototype.onFlushed = function (e) { + this._lineCount = e; + }), + (e.prototype.insertWhitespace = function (e, t, n, r) { + return this._whitespaces.insertWhitespace(e, t, n, r); + }), + (e.prototype.changeWhitespace = function (e, t, n) { + return this._whitespaces.changeWhitespace(e, t, n); + }), + (e.prototype.removeWhitespace = function (e) { + return this._whitespaces.removeWhitespace(e); + }), + (e.prototype.onLinesDeleted = function (e, t) { + (this._lineCount -= t - e + 1), + this._whitespaces.onLinesDeleted(e, t); + }), + (e.prototype.onLinesInserted = function (e, t) { + (this._lineCount += t - e + 1), + this._whitespaces.onLinesInserted(e, t); + }), + (e.prototype.getLinesTotalHeight = function () { + return ( + this._lineHeight * this._lineCount + + this._whitespaces.getTotalHeight() + ); + }), + (e.prototype.getVerticalOffsetForLineNumber = function (e) { + return ( + ((e |= 0) > 1 ? this._lineHeight * (e - 1) : 0) + + this._whitespaces.getAccumulatedHeightBeforeLineNumber(e) + ); + }), + (e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber = function ( + e + ) { + return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e); + }), + (e.prototype.getWhitespaceMinWidth = function () { + return this._whitespaces.getMinWidth(); + }), + (e.prototype.isAfterLines = function (e) { + return e > this.getLinesTotalHeight(); + }), + (e.prototype.getLineNumberAtOrAfterVerticalOffset = function (e) { + if ((e |= 0) < 0) return 1; + for ( + var t = 0 | this._lineCount, n = this._lineHeight, r = 1, i = t; + r < i; + + ) { + var o = ((r + i) / 2) | 0, + s = 0 | this.getVerticalOffsetForLineNumber(o); + if (e >= s + n) r = o + 1; + else { + if (e >= s) return o; + i = o; + } + } + return r > t ? t : r; + }), + (e.prototype.getLinesViewportData = function (e, t) { + (e |= 0), (t |= 0); + var n, + r, + i = this._lineHeight, + o = 0 | this.getLineNumberAtOrAfterVerticalOffset(e), + s = 0 | this.getVerticalOffsetForLineNumber(o), + a = 0 | this._lineCount, + u = + 0 | this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(o), + l = 0 | this._whitespaces.getCount(); + -1 === u + ? ((u = l), (r = a + 1), (n = 0)) + : ((r = + 0 | + this._whitespaces.getAfterLineNumberForWhitespaceIndex(u)), + (n = 0 | this._whitespaces.getHeightForWhitespaceIndex(u))); + var c = s, + d = c, + h = 0; + s >= 5e5 && + ((h = 5e5 * Math.floor(s / 5e5)), + (d -= h = Math.floor(h / i) * i)); + for (var f = [], p = e + (t - e) / 2, g = -1, m = o; m <= a; m++) { + if (-1 === g) { + ((c <= p && p < c + i) || c > p) && (g = m); + } + for (c += i, f[m - o] = d, d += i; r === m; ) + (d += n), + (c += n), + ++u >= l + ? (r = a + 1) + : ((r = + 0 | + this._whitespaces.getAfterLineNumberForWhitespaceIndex( + u + )), + (n = + 0 | this._whitespaces.getHeightForWhitespaceIndex(u))); + if (c >= t) { + a = m; + break; + } + } + -1 === g && (g = a); + var _ = 0 | this.getVerticalOffsetForLineNumber(a), + y = o, + v = a; + return ( + y < v && s < e && y++, + y < v && _ + i > t && v--, + { + bigNumbersDelta: h, + startLineNumber: o, + endLineNumber: a, + relativeVerticalOffset: f, + centeredLineNumber: g, + completelyVisibleStartLineNumber: y, + completelyVisibleEndLineNumber: v, + } + ); + }), + (e.prototype.getVerticalOffsetForWhitespaceIndex = function (e) { + e |= 0; + var t = this._whitespaces.getAfterLineNumberForWhitespaceIndex(e); + return ( + (t >= 1 ? this._lineHeight * t : 0) + + (e > 0 ? this._whitespaces.getAccumulatedHeight(e - 1) : 0) + ); + }), + (e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset = function ( + e + ) { + e |= 0; + var t, + n, + r = 0, + i = this._whitespaces.getCount() - 1; + if (i < 0) return -1; + if ( + e >= + this.getVerticalOffsetForWhitespaceIndex(i) + + this._whitespaces.getHeightForWhitespaceIndex(i) + ) + return -1; + for (; r < i; ) + if ( + ((t = Math.floor((r + i) / 2)), + e >= + (n = this.getVerticalOffsetForWhitespaceIndex(t)) + + this._whitespaces.getHeightForWhitespaceIndex(t)) + ) + r = t + 1; + else { + if (e >= n) return t; + i = t; + } + return r; + }), + (e.prototype.getWhitespaceAtVerticalOffset = function (e) { + e |= 0; + var t = this.getWhitespaceIndexAtOrAfterVerticallOffset(e); + if (t < 0) return null; + if (t >= this._whitespaces.getCount()) return null; + var n = this.getVerticalOffsetForWhitespaceIndex(t); + if (n > e) return null; + var r = this._whitespaces.getHeightForWhitespaceIndex(t); + return { + id: this._whitespaces.getIdForWhitespaceIndex(t), + afterLineNumber: this._whitespaces.getAfterLineNumberForWhitespaceIndex( + t + ), + verticalOffset: n, + height: r, + }; + }), + (e.prototype.getWhitespaceViewportData = function (e, t) { + (e |= 0), (t |= 0); + var n = this.getWhitespaceIndexAtOrAfterVerticallOffset(e), + r = this._whitespaces.getCount() - 1; + if (n < 0) return []; + for (var i = [], o = n; o <= r; o++) { + var s = this.getVerticalOffsetForWhitespaceIndex(o), + a = this._whitespaces.getHeightForWhitespaceIndex(o); + if (s >= t) break; + i.push({ + id: this._whitespaces.getIdForWhitespaceIndex(o), + afterLineNumber: this._whitespaces.getAfterLineNumberForWhitespaceIndex( + o + ), + verticalOffset: s, + height: a, + }); + } + return i; + }), + (e.prototype.getWhitespaces = function () { + return this._whitespaces.getWhitespaces(this._lineHeight); + }), + e + ); + })(), + eL = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + tL = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + (i._configuration = t), + (i._linesLayout = new Qx(n, i._configuration.editor.lineHeight)), + (i.scrollable = i._register(new zp(0, r))), + i._configureSmoothScrollDuration(), + i.scrollable.setScrollDimensions({ + width: t.editor.layoutInfo.contentWidth, + height: t.editor.layoutInfo.contentHeight, + }), + (i.onDidScroll = i.scrollable.onScroll), + i._updateHeight(), + i + ); + } + return ( + eL(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.onHeightMaybeChanged = function () { + this._updateHeight(); + }), + (t.prototype._configureSmoothScrollDuration = function () { + this.scrollable.setSmoothScrollDuration( + this._configuration.editor.viewInfo.smoothScrolling ? 125 : 0 + ); + }), + (t.prototype.onConfigurationChanged = function (e) { + e.lineHeight && + this._linesLayout.setLineHeight( + this._configuration.editor.lineHeight + ), + e.layoutInfo && + this.scrollable.setScrollDimensions({ + width: this._configuration.editor.layoutInfo.contentWidth, + height: this._configuration.editor.layoutInfo.contentHeight, + }), + e.viewInfo && this._configureSmoothScrollDuration(), + this._updateHeight(); + }), + (t.prototype.onFlushed = function (e) { + this._linesLayout.onFlushed(e); + }), + (t.prototype.onLinesDeleted = function (e, t) { + this._linesLayout.onLinesDeleted(e, t); + }), + (t.prototype.onLinesInserted = function (e, t) { + this._linesLayout.onLinesInserted(e, t); + }), + (t.prototype._getHorizontalScrollbarHeight = function (e) { + return 2 === + this._configuration.editor.viewInfo.scrollbar.horizontal + ? 0 + : e.width >= e.scrollWidth + ? 0 + : this._configuration.editor.viewInfo.scrollbar + .horizontalScrollbarSize; + }), + (t.prototype._getTotalHeight = function () { + var e = this.scrollable.getScrollDimensions(), + t = this._linesLayout.getLinesTotalHeight(); + return ( + this._configuration.editor.viewInfo.scrollBeyondLastLine + ? (t += e.height - this._configuration.editor.lineHeight) + : (t += this._getHorizontalScrollbarHeight(e)), + Math.max(e.height, t) + ); + }), + (t.prototype._updateHeight = function () { + this.scrollable.setScrollDimensions({ + scrollHeight: this._getTotalHeight(), + }); + }), + (t.prototype.getCurrentViewport = function () { + var e = this.scrollable.getScrollDimensions(), + t = this.scrollable.getCurrentScrollPosition(); + return new zy(t.scrollTop, t.scrollLeft, e.width, e.height); + }), + (t.prototype.getFutureViewport = function () { + var e = this.scrollable.getScrollDimensions(), + t = this.scrollable.getFutureScrollPosition(); + return new zy(t.scrollTop, t.scrollLeft, e.width, e.height); + }), + (t.prototype._computeScrollWidth = function (e, t) { + if (!this._configuration.editor.wrappingInfo.isViewportWrapping) { + var n = + this._configuration.editor.viewInfo.scrollBeyondLastColumn * + this._configuration.editor.fontInfo + .typicalHalfwidthCharacterWidth, + r = this._linesLayout.getWhitespaceMinWidth(); + return Math.max(e + n, t, r); + } + return Math.max(e, t); + }), + (t.prototype.onMaxLineWidthChanged = function (e) { + var t = this._computeScrollWidth( + e, + this.getCurrentViewport().width + ); + this.scrollable.setScrollDimensions({ scrollWidth: t }), + this._updateHeight(); + }), + (t.prototype.saveState = function () { + var e = this.scrollable.getFutureScrollPosition(), + t = e.scrollTop, + n = this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t); + return { + scrollTop: t, + scrollTopWithoutViewZones: + t - + this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber( + n + ), + scrollLeft: e.scrollLeft, + }; + }), + (t.prototype.addWhitespace = function (e, t, n, r) { + return this._linesLayout.insertWhitespace(e, t, n, r); + }), + (t.prototype.changeWhitespace = function (e, t, n) { + return this._linesLayout.changeWhitespace(e, t, n); + }), + (t.prototype.removeWhitespace = function (e) { + return this._linesLayout.removeWhitespace(e); + }), + (t.prototype.getVerticalOffsetForLineNumber = function (e) { + return this._linesLayout.getVerticalOffsetForLineNumber(e); + }), + (t.prototype.isAfterLines = function (e) { + return this._linesLayout.isAfterLines(e); + }), + (t.prototype.getLineNumberAtVerticalOffset = function (e) { + return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e); + }), + (t.prototype.getWhitespaceAtVerticalOffset = function (e) { + return this._linesLayout.getWhitespaceAtVerticalOffset(e); + }), + (t.prototype.getLinesViewportData = function () { + var e = this.getCurrentViewport(); + return this._linesLayout.getLinesViewportData( + e.top, + e.top + e.height + ); + }), + (t.prototype.getLinesViewportDataAtScrollTop = function (e) { + var t = this.scrollable.getScrollDimensions(); + return ( + e + t.height > t.scrollHeight && (e = t.scrollHeight - t.height), + e < 0 && (e = 0), + this._linesLayout.getLinesViewportData(e, e + t.height) + ); + }), + (t.prototype.getWhitespaceViewportData = function () { + var e = this.getCurrentViewport(); + return this._linesLayout.getWhitespaceViewportData( + e.top, + e.top + e.height + ); + }), + (t.prototype.getWhitespaces = function () { + return this._linesLayout.getWhitespaces(); + }), + (t.prototype.getScrollWidth = function () { + return this.scrollable.getScrollDimensions().scrollWidth; + }), + (t.prototype.getScrollHeight = function () { + return this.scrollable.getScrollDimensions().scrollHeight; + }), + (t.prototype.getCurrentScrollLeft = function () { + return this.scrollable.getCurrentScrollPosition().scrollLeft; + }), + (t.prototype.getCurrentScrollTop = function () { + return this.scrollable.getCurrentScrollPosition().scrollTop; + }), + (t.prototype.validateScrollPosition = function (e) { + return this.scrollable.validateScrollPosition(e); + }), + (t.prototype.setScrollPositionNow = function (e) { + this.scrollable.setScrollPositionNow(e); + }), + (t.prototype.setScrollPositionSmooth = function (e) { + this.scrollable.setScrollPositionSmooth(e); + }), + (t.prototype.deltaScrollNow = function (e, t) { + var n = this.scrollable.getCurrentScrollPosition(); + this.scrollable.setScrollPositionNow({ + scrollLeft: n.scrollLeft + e, + scrollTop: n.scrollTop + t, + }); + }), + t + ); + })(Rt), + nL = function (e, t) { + (this.outputLineIndex = e), (this.outputOffset = t); + }, + rL = (function () { + function e(e) { + this._lines = e; + } + return ( + (e.prototype.convertViewPositionToModelPosition = function (e) { + return this._lines.convertViewPositionToModelPosition( + e.lineNumber, + e.column + ); + }), + (e.prototype.convertViewRangeToModelRange = function (e) { + var t = this._lines.convertViewPositionToModelPosition( + e.startLineNumber, + e.startColumn + ), + n = this._lines.convertViewPositionToModelPosition( + e.endLineNumber, + e.endColumn + ); + return new Fr(t.lineNumber, t.column, n.lineNumber, n.column); + }), + (e.prototype.validateViewPosition = function (e, t) { + return this._lines.validateViewPosition(e.lineNumber, e.column, t); + }), + (e.prototype.validateViewRange = function (e, t) { + var n = this._lines.validateViewPosition( + e.startLineNumber, + e.startColumn, + t.getStartPosition() + ), + r = this._lines.validateViewPosition( + e.endLineNumber, + e.endColumn, + t.getEndPosition() + ); + return new Fr(n.lineNumber, n.column, r.lineNumber, r.column); + }), + (e.prototype.convertModelPositionToViewPosition = function (e) { + return this._lines.convertModelPositionToViewPosition( + e.lineNumber, + e.column + ); + }), + (e.prototype.convertModelRangeToViewRange = function (e) { + var t = this._lines.convertModelPositionToViewPosition( + e.startLineNumber, + e.startColumn + ), + n = this._lines.convertModelPositionToViewPosition( + e.endLineNumber, + e.endColumn + ); + return new Fr(t.lineNumber, t.column, n.lineNumber, n.column); + }), + (e.prototype.modelPositionIsVisible = function (e) { + return this._lines.modelPositionIsVisible(e.lineNumber, e.column); + }), + e + ); + })(), + iL = (function () { + function e(e, t, n, r, i, o) { + (this.model = e), + (this._validModelVersionId = -1), + (this.tabSize = n), + (this.wrappingColumn = r), + (this.columnsForFullWidthChar = i), + (this.wrappingIndent = o), + (this.linePositionMapperFactory = t), + this._constructLines(!0); + } + return ( + (e.prototype.dispose = function () { + this.hiddenAreasIds = this.model.deltaDecorations( + this.hiddenAreasIds, + [] + ); + }), + (e.prototype.createCoordinatesConverter = function () { + return new rL(this); + }), + (e.prototype._ensureValidState = function () { + if (this.model.getVersionId() !== this._validModelVersionId) + throw new Error('ViewModel is out of sync with Model!'); + this.lines.length !== this.model.getLineCount() && + this._constructLines(!1); + }), + (e.prototype._constructLines = function (e) { + var t = this; + (this.lines = []), e && (this.hiddenAreasIds = []); + for ( + var n = this.model.getLinesContent(), + r = n.length, + i = new Uint32Array(r), + o = this.hiddenAreasIds + .map(function (e) { + return t.model.getDecorationRange(e); + }) + .sort(Fr.compareRangesUsingStarts), + s = 1, + a = 0, + u = -1, + l = u + 1 < o.length ? a + 1 : r + 2, + c = 0; + c < r; + c++ + ) { + var d = c + 1; + d === l && + ((s = o[++u].startLineNumber), + (a = o[u].endLineNumber), + (l = u + 1 < o.length ? a + 1 : r + 2)); + var h = d >= s && d <= a, + f = uL( + this.linePositionMapperFactory, + n[c], + this.tabSize, + this.wrappingColumn, + this.columnsForFullWidthChar, + this.wrappingIndent, + !h + ); + (i[c] = f.getViewLineCount()), (this.lines[c] = f); + } + (this._validModelVersionId = this.model.getVersionId()), + (this.prefixSumComputer = new Q_(i)); + }), + (e.prototype.getHiddenAreas = function () { + var e = this; + return this.hiddenAreasIds.map(function (t) { + return e.model.getDecorationRange(t); + }); + }), + (e.prototype._reduceRanges = function (e) { + var t = this; + if (0 === e.length) return []; + for ( + var n = e + .map(function (e) { + return t.model.validateRange(e); + }) + .sort(Fr.compareRangesUsingStarts), + r = [], + i = n[0].startLineNumber, + o = n[0].endLineNumber, + s = 1, + a = n.length; + s < a; + s++ + ) { + var u = n[s]; + u.startLineNumber > o + 1 + ? (r.push(new Fr(i, 1, o, 1)), + (i = u.startLineNumber), + (o = u.endLineNumber)) + : u.endLineNumber > o && (o = u.endLineNumber); + } + return r.push(new Fr(i, 1, o, 1)), r; + }), + (e.prototype.setHiddenAreas = function (e) { + var t = this, + n = this._reduceRanges(e), + r = this.hiddenAreasIds + .map(function (e) { + return t.model.getDecorationRange(e); + }) + .sort(Fr.compareRangesUsingStarts); + if (n.length === r.length) { + for (var i = !1, o = 0; o < n.length; o++) + if (!n[o].equalsRange(r[o])) { + i = !0; + break; + } + if (!i) return !1; + } + for (var s = [], a = 0, u = n; a < u.length; a++) { + var l = u[a]; + s.push({ range: l, options: Vu.EMPTY }); + } + this.hiddenAreasIds = this.model.deltaDecorations( + this.hiddenAreasIds, + s + ); + var c = n, + d = 1, + h = 0, + f = -1, + p = f + 1 < c.length ? h + 1 : this.lines.length + 2, + g = !1; + for (o = 0; o < this.lines.length; o++) { + var m = o + 1; + m === p && + ((d = c[++f].startLineNumber), + (h = c[f].endLineNumber), + (p = f + 1 < c.length ? h + 1 : this.lines.length + 2)); + var _ = !1; + if ( + (m >= d && m <= h + ? this.lines[o].isVisible() && + ((this.lines[o] = this.lines[o].setVisible(!1)), (_ = !0)) + : ((g = !0), + this.lines[o].isVisible() || + ((this.lines[o] = this.lines[o].setVisible(!0)), + (_ = !0))), + _) + ) { + var y = this.lines[o].getViewLineCount(); + this.prefixSumComputer.changeValue(o, y); + } + } + return g || this.setHiddenAreas([]), !0; + }), + (e.prototype.modelPositionIsVisible = function (e, t) { + return ( + !(e < 1 || e > this.lines.length) && this.lines[e - 1].isVisible() + ); + }), + (e.prototype.setTabSize = function (e) { + return ( + this.tabSize !== e && + ((this.tabSize = e), this._constructLines(!1), !0) + ); + }), + (e.prototype.setWrappingSettings = function (e, t, n) { + return ( + (this.wrappingIndent !== e || + this.wrappingColumn !== t || + this.columnsForFullWidthChar !== n) && + ((this.wrappingIndent = e), + (this.wrappingColumn = t), + (this.columnsForFullWidthChar = n), + this._constructLines(!1), + !0) + ); + }), + (e.prototype.onModelFlushed = function () { + this._constructLines(!0); + }), + (e.prototype.onModelLinesDeleted = function (e, t, n) { + if (e <= this._validModelVersionId) return null; + var r = + 1 === t + ? 1 + : this.prefixSumComputer.getAccumulatedValue(t - 2) + 1, + i = this.prefixSumComputer.getAccumulatedValue(n - 1); + return ( + this.lines.splice(t - 1, n - t + 1), + this.prefixSumComputer.removeValues(t - 1, n - t + 1), + new HC(r, i) + ); + }), + (e.prototype.onModelLinesInserted = function (e, t, n, r) { + if (e <= this._validModelVersionId) return null; + for ( + var i = this.getHiddenAreas(), + o = !1, + s = new xt(t, 1), + a = 0, + u = i; + a < u.length; + a++ + ) { + if (u[a].containsPosition(s)) { + o = !0; + break; + } + } + for ( + var l = + 1 === t + ? 1 + : this.prefixSumComputer.getAccumulatedValue(t - 2) + 1, + c = 0, + d = [], + h = new Uint32Array(r.length), + f = 0, + p = r.length; + f < p; + f++ + ) { + var g = uL( + this.linePositionMapperFactory, + r[f], + this.tabSize, + this.wrappingColumn, + this.columnsForFullWidthChar, + this.wrappingIndent, + !o + ); + d.push(g); + var m = g.getViewLineCount(); + (c += m), (h[f] = m); + } + return ( + (this.lines = this.lines + .slice(0, t - 1) + .concat(d) + .concat(this.lines.slice(t - 1))), + this.prefixSumComputer.insertValues(t - 1, h), + new VC(l, l + c - 1) + ); + }), + (e.prototype.onModelLineChanged = function (e, t, n) { + if (e <= this._validModelVersionId) return [!1, null, null, null]; + var r = t - 1, + i = this.lines[r].getViewLineCount(), + o = this.lines[r].isVisible(), + s = uL( + this.linePositionMapperFactory, + n, + this.tabSize, + this.wrappingColumn, + this.columnsForFullWidthChar, + this.wrappingIndent, + o + ); + this.lines[r] = s; + var a = this.lines[r].getViewLineCount(), + u = !1, + l = 0, + c = -1, + d = 0, + h = -1, + f = 0, + p = -1; + return ( + i > a + ? ((p = + (f = + (c = + (l = + 1 === t + ? 1 + : this.prefixSumComputer.getAccumulatedValue( + t - 2 + ) + 1) + + a - + 1) + 1) + + (i - a) - + 1), + (u = !0)) + : i < a + ? ((h = + (d = + (c = + (l = + 1 === t + ? 1 + : this.prefixSumComputer.getAccumulatedValue( + t - 2 + ) + 1) + + i - + 1) + 1) + + (a - i) - + 1), + (u = !0)) + : (c = + (l = + 1 === t + ? 1 + : this.prefixSumComputer.getAccumulatedValue(t - 2) + + 1) + + a - + 1), + this.prefixSumComputer.changeValue(r, a), + [ + u, + l <= c ? new WC(l, c) : null, + d <= h ? new VC(d, h) : null, + f <= p ? new HC(f, p) : null, + ] + ); + }), + (e.prototype.acceptVersionId = function (e) { + (this._validModelVersionId = e), + 1 !== this.lines.length || + this.lines[0].isVisible() || + this.setHiddenAreas([]); + }), + (e.prototype.getViewLineCount = function () { + return ( + this._ensureValidState(), this.prefixSumComputer.getTotalValue() + ); + }), + (e.prototype._toValidViewLineNumber = function (e) { + if (e < 1) return 1; + var t = this.getViewLineCount(); + return e > t ? t : e; + }), + (e.prototype.warmUpLookupCache = function (e, t) { + this.prefixSumComputer.warmUpCache(e - 1, t - 1); + }), + (e.prototype.getActiveIndentGuide = function (e, t, n) { + this._ensureValidState(), + (e = this._toValidViewLineNumber(e)), + (t = this._toValidViewLineNumber(t)), + (n = this._toValidViewLineNumber(n)); + var r = this.convertViewPositionToModelPosition( + e, + this.getViewLineMinColumn(e) + ), + i = this.convertViewPositionToModelPosition( + t, + this.getViewLineMinColumn(t) + ), + o = this.convertViewPositionToModelPosition( + n, + this.getViewLineMinColumn(n) + ), + s = this.model.getActiveIndentGuide( + r.lineNumber, + i.lineNumber, + o.lineNumber + ), + a = this.convertModelPositionToViewPosition(s.startLineNumber, 1), + u = this.convertModelPositionToViewPosition( + s.endLineNumber, + this.model.getLineMaxColumn(s.endLineNumber) + ); + return { + startLineNumber: a.lineNumber, + endLineNumber: u.lineNumber, + indent: s.indent, + }; + }), + (e.prototype.getViewLinesIndentGuides = function (e, t) { + this._ensureValidState(), + (e = this._toValidViewLineNumber(e)), + (t = this._toValidViewLineNumber(t)); + for ( + var n = this.convertViewPositionToModelPosition( + e, + this.getViewLineMinColumn(e) + ), + r = this.convertViewPositionToModelPosition( + t, + this.getViewLineMaxColumn(t) + ), + i = [], + o = [], + s = [], + a = n.lineNumber - 1, + u = r.lineNumber - 1, + l = null, + c = a; + c <= u; + c++ + ) { + var d = this.lines[c]; + if (d.isVisible()) { + var h = d.getViewLineNumberOfModelPosition( + 0, + c === a ? n.column : 1 + ), + f = d.getViewLineNumberOfModelPosition( + 0, + this.model.getLineMaxColumn(c + 1) + ), + p = 0; + (w = f - h + 1) > 1 && + 1 === d.getViewLineMinColumn(this.model, c + 1, f) && + (p = 0 === h ? 1 : 2), + o.push(w), + s.push(p), + null === l && (l = new xt(c + 1, 0)); + } else + null !== l && + ((i = i.concat( + this.model.getLinesIndentGuides(l.lineNumber, c) + )), + (l = null)); + } + null !== l && + ((i = i.concat( + this.model.getLinesIndentGuides(l.lineNumber, r.lineNumber) + )), + (l = null)); + for ( + var g = t - e + 1, m = new Array(g), _ = 0, y = 0, v = i.length; + y < v; + y++ + ) { + var b = i[y], + w = Math.min(g - _, o[y]), + C = void 0; + C = 2 === (p = s[y]) ? 0 : 1 === p ? 1 : w; + for (var S = 0; S < w; S++) S === C && (b = 0), (m[_++] = b); + } + return m; + }), + (e.prototype.getViewLineContent = function (e) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var t = this.prefixSumComputer.getIndexOf(e - 1), + n = t.index, + r = t.remainder; + return this.lines[n].getViewLineContent(this.model, n + 1, r); + }), + (e.prototype.getViewLineLength = function (e) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var t = this.prefixSumComputer.getIndexOf(e - 1), + n = t.index, + r = t.remainder; + return this.lines[n].getViewLineLength(this.model, n + 1, r); + }), + (e.prototype.getViewLineMinColumn = function (e) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var t = this.prefixSumComputer.getIndexOf(e - 1), + n = t.index, + r = t.remainder; + return this.lines[n].getViewLineMinColumn(this.model, n + 1, r); + }), + (e.prototype.getViewLineMaxColumn = function (e) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var t = this.prefixSumComputer.getIndexOf(e - 1), + n = t.index, + r = t.remainder; + return this.lines[n].getViewLineMaxColumn(this.model, n + 1, r); + }), + (e.prototype.getViewLineData = function (e) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var t = this.prefixSumComputer.getIndexOf(e - 1), + n = t.index, + r = t.remainder; + return this.lines[n].getViewLineData(this.model, n + 1, r); + }), + (e.prototype.getViewLinesData = function (e, t, n) { + this._ensureValidState(), + (e = this._toValidViewLineNumber(e)), + (t = this._toValidViewLineNumber(t)); + for ( + var r = this.prefixSumComputer.getIndexOf(e - 1), + i = e, + o = r.index, + s = r.remainder, + a = [], + u = o, + l = this.model.getLineCount(); + u < l; + u++ + ) { + var c = this.lines[u]; + if (c.isVisible()) { + var d = u === o ? s : 0, + h = c.getViewLineCount() - d, + f = !1; + i + h > t && ((f = !0), (h = t - i + 1)); + var p = d + h; + if ( + (c.getViewLinesData(this.model, u + 1, d, p, i - e, n, a), + (i += h), + f) + ) + break; + } + } + return a; + }), + (e.prototype.validateViewPosition = function (e, t, n) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var r = this.prefixSumComputer.getIndexOf(e - 1), + i = r.index, + o = r.remainder, + s = this.lines[i], + a = s.getViewLineMinColumn(this.model, i + 1, o), + u = s.getViewLineMaxColumn(this.model, i + 1, o); + t < a && (t = a), t > u && (t = u); + var l = s.getModelColumnOfViewPosition(o, t); + return this.model.validatePosition(new xt(i + 1, l)).equals(n) + ? new xt(e, t) + : this.convertModelPositionToViewPosition(n.lineNumber, n.column); + }), + (e.prototype.convertViewPositionToModelPosition = function (e, t) { + this._ensureValidState(), (e = this._toValidViewLineNumber(e)); + var n = this.prefixSumComputer.getIndexOf(e - 1), + r = n.index, + i = n.remainder, + o = this.lines[r].getModelColumnOfViewPosition(i, t); + return this.model.validatePosition(new xt(r + 1, o)); + }), + (e.prototype.convertModelPositionToViewPosition = function (e, t) { + this._ensureValidState(); + for ( + var n = this.model.validatePosition(new xt(e, t)), + r = n.lineNumber, + i = n.column, + o = r - 1, + s = !1; + o > 0 && !this.lines[o].isVisible(); + + ) + o--, (s = !0); + if (0 === o && !this.lines[o].isVisible()) return new xt(1, 1); + var a = + 1 + + (0 === o ? 0 : this.prefixSumComputer.getAccumulatedValue(o - 1)); + return s + ? this.lines[o].getViewPositionOfModelPosition( + a, + this.model.getLineMaxColumn(o + 1) + ) + : this.lines[r - 1].getViewPositionOfModelPosition(a, i); + }), + (e.prototype._getViewLineNumberForModelPosition = function (e, t) { + var n = e - 1; + if (this.lines[n].isVisible()) { + var r = + 1 + + (0 === n + ? 0 + : this.prefixSumComputer.getAccumulatedValue(n - 1)); + return this.lines[n].getViewLineNumberOfModelPosition(r, t); + } + for (; n > 0 && !this.lines[n].isVisible(); ) n--; + if (0 === n && !this.lines[n].isVisible()) return 1; + var i = + 1 + + (0 === n ? 0 : this.prefixSumComputer.getAccumulatedValue(n - 1)); + return this.lines[n].getViewLineNumberOfModelPosition( + i, + this.model.getLineMaxColumn(n + 1) + ); + }), + (e.prototype.getAllOverviewRulerDecorations = function (e, t, n) { + for ( + var r = this.model.getOverviewRulerDecorations(e, t), + i = new dL(), + o = 0, + s = r; + o < s.length; + o++ + ) { + var a = s[o], + u = a.options.overviewRuler, + l = u ? u.position : 0; + if (0 !== l) { + var c = u.getColor(n), + d = this._getViewLineNumberForModelPosition( + a.range.startLineNumber, + a.range.startColumn + ), + h = this._getViewLineNumberForModelPosition( + a.range.endLineNumber, + a.range.endColumn + ); + i.accept(c, d, h, l); + } + } + return i.result; + }), + (e.prototype.getDecorationsInRange = function (e, t, n) { + var r = this.convertViewPositionToModelPosition( + e.startLineNumber, + e.startColumn + ), + i = this.convertViewPositionToModelPosition( + e.endLineNumber, + e.endColumn + ); + if ( + i.lineNumber - r.lineNumber <= + e.endLineNumber - e.startLineNumber + ) + return this.model.getDecorationsInRange( + new Fr(r.lineNumber, 1, i.lineNumber, i.column), + t, + n + ); + for ( + var o = [], + s = r.lineNumber - 1, + a = i.lineNumber - 1, + u = null, + l = s; + l <= a; + l++ + ) { + if (this.lines[l].isVisible()) + null === u && (u = new xt(l + 1, l === s ? r.column : 1)); + else if (null !== u) { + var c = this.model.getLineMaxColumn(l); + (o = o.concat( + this.model.getDecorationsInRange( + new Fr(u.lineNumber, u.column, l, c), + t, + n + ) + )), + (u = null); + } + } + null !== u && + ((o = o.concat( + this.model.getDecorationsInRange( + new Fr(u.lineNumber, u.column, i.lineNumber, i.column), + t, + n + ) + )), + (u = null)), + o.sort(function (e, t) { + var n = Fr.compareRangesUsingStarts(e.range, t.range); + return 0 === n ? (e.id < t.id ? -1 : e.id > t.id ? 1 : 0) : n; + }); + for (var d = [], h = 0, f = null, p = 0, g = o; p < g.length; p++) { + var m = g[p], + _ = m.id; + f !== _ && ((f = _), (d[h++] = m)); + } + return d; + }), + e + ); + })(), + oL = (function () { + function e() {} + return ( + (e.prototype.isVisible = function () { + return !0; + }), + (e.prototype.setVisible = function (e) { + return e ? this : sL.INSTANCE; + }), + (e.prototype.getViewLineCount = function () { + return 1; + }), + (e.prototype.getViewLineContent = function (e, t, n) { + return e.getLineContent(t); + }), + (e.prototype.getViewLineLength = function (e, t, n) { + return e.getLineLength(t); + }), + (e.prototype.getViewLineMinColumn = function (e, t, n) { + return e.getLineMinColumn(t); + }), + (e.prototype.getViewLineMaxColumn = function (e, t, n) { + return e.getLineMaxColumn(t); + }), + (e.prototype.getViewLineData = function (e, t, n) { + var r = e.getLineTokens(t), + i = r.getLineContent(); + return new qy(i, !1, 1, i.length + 1, r.inflate()); + }), + (e.prototype.getViewLinesData = function (e, t, n, r, i, o, s) { + o[i] ? (s[i] = this.getViewLineData(e, t, 0)) : (s[i] = null); + }), + (e.prototype.getModelColumnOfViewPosition = function (e, t) { + return t; + }), + (e.prototype.getViewPositionOfModelPosition = function (e, t) { + return new xt(e, t); + }), + (e.prototype.getViewLineNumberOfModelPosition = function (e, t) { + return e; + }), + (e.INSTANCE = new e()), + e + ); + })(), + sL = (function () { + function e() {} + return ( + (e.prototype.isVisible = function () { + return !1; + }), + (e.prototype.setVisible = function (e) { + return e ? oL.INSTANCE : this; + }), + (e.prototype.getViewLineCount = function () { + return 0; + }), + (e.prototype.getViewLineContent = function (e, t, n) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLineLength = function (e, t, n) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLineMinColumn = function (e, t, n) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLineMaxColumn = function (e, t, n) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLineData = function (e, t, n) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLinesData = function (e, t, n, r, i, o, s) { + throw new Error('Not supported'); + }), + (e.prototype.getModelColumnOfViewPosition = function (e, t) { + throw new Error('Not supported'); + }), + (e.prototype.getViewPositionOfModelPosition = function (e, t) { + throw new Error('Not supported'); + }), + (e.prototype.getViewLineNumberOfModelPosition = function (e, t) { + throw new Error('Not supported'); + }), + (e.INSTANCE = new e()), + e + ); + })(), + aL = (function () { + function e(e, t) { + (this.positionMapper = e), + (this.wrappedIndent = this.positionMapper.getWrappedLinesIndent()), + (this.wrappedIndentLength = this.wrappedIndent.length), + (this.outputLineCount = this.positionMapper.getOutputLineCount()), + (this._isVisible = t); + } + return ( + (e.prototype.isVisible = function () { + return this._isVisible; + }), + (e.prototype.setVisible = function (e) { + return (this._isVisible = e), this; + }), + (e.prototype.getViewLineCount = function () { + return this._isVisible ? this.outputLineCount : 0; + }), + (e.prototype.getInputStartOffsetOfOutputLineIndex = function (e) { + return this.positionMapper.getInputOffsetOfOutputPosition(e, 0); + }), + (e.prototype.getInputEndOffsetOfOutputLineIndex = function (e, t, n) { + return n + 1 === this.outputLineCount + ? e.getLineMaxColumn(t) - 1 + : this.positionMapper.getInputOffsetOfOutputPosition(n + 1, 0); + }), + (e.prototype.getViewLineContent = function (e, t, n) { + if (!this._isVisible) throw new Error('Not supported'); + var r = this.getInputStartOffsetOfOutputLineIndex(n), + i = this.getInputEndOffsetOfOutputLineIndex(e, t, n), + o = e.getValueInRange({ + startLineNumber: t, + startColumn: r + 1, + endLineNumber: t, + endColumn: i + 1, + }); + return n > 0 && (o = this.wrappedIndent + o), o; + }), + (e.prototype.getViewLineLength = function (e, t, n) { + if (!this._isVisible) throw new Error('Not supported'); + var r = this.getInputStartOffsetOfOutputLineIndex(n), + i = this.getInputEndOffsetOfOutputLineIndex(e, t, n) - r; + return n > 0 && (i = this.wrappedIndent.length + i), i; + }), + (e.prototype.getViewLineMinColumn = function (e, t, n) { + if (!this._isVisible) throw new Error('Not supported'); + return n > 0 ? this.wrappedIndentLength + 1 : 1; + }), + (e.prototype.getViewLineMaxColumn = function (e, t, n) { + if (!this._isVisible) throw new Error('Not supported'); + return this.getViewLineContent(e, t, n).length + 1; + }), + (e.prototype.getViewLineData = function (e, t, n) { + if (!this._isVisible) throw new Error('Not supported'); + var r = this.getInputStartOffsetOfOutputLineIndex(n), + i = this.getInputEndOffsetOfOutputLineIndex(e, t, n), + o = e.getValueInRange({ + startLineNumber: t, + startColumn: r + 1, + endLineNumber: t, + endColumn: i + 1, + }); + n > 0 && (o = this.wrappedIndent + o); + var s = n > 0 ? this.wrappedIndentLength + 1 : 1, + a = o.length + 1, + u = n + 1 < this.getViewLineCount(), + l = 0; + n > 0 && (l = this.wrappedIndentLength); + var c = e.getLineTokens(t); + return new qy(o, u, s, a, c.sliceAndInflate(r, i, l)); + }), + (e.prototype.getViewLinesData = function (e, t, n, r, i, o, s) { + if (!this._isVisible) throw new Error('Not supported'); + for (var a = n; a < r; a++) { + var u = i + a - n; + o[u] ? (s[u] = this.getViewLineData(e, t, a)) : (s[u] = null); + } + }), + (e.prototype.getModelColumnOfViewPosition = function (e, t) { + if (!this._isVisible) throw new Error('Not supported'); + var n = t - 1; + return ( + e > 0 && + (n < this.wrappedIndentLength + ? (n = 0) + : (n -= this.wrappedIndentLength)), + this.positionMapper.getInputOffsetOfOutputPosition(e, n) + 1 + ); + }), + (e.prototype.getViewPositionOfModelPosition = function (e, t) { + if (!this._isVisible) throw new Error('Not supported'); + var n = this.positionMapper.getOutputPositionOfInputOffset(t - 1), + r = n.outputLineIndex, + i = n.outputOffset + 1; + return r > 0 && (i += this.wrappedIndentLength), new xt(e + r, i); + }), + (e.prototype.getViewLineNumberOfModelPosition = function (e, t) { + if (!this._isVisible) throw new Error('Not supported'); + return ( + e + + this.positionMapper.getOutputPositionOfInputOffset(t - 1) + .outputLineIndex + ); + }), + e + ); + })(); + function uL(e, t, n, r, i, o, s) { + var a = e.createLineMapping(t, n, r, i, o); + return null === a ? (s ? oL.INSTANCE : sL.INSTANCE) : new aL(a, s); + } + var lL = (function () { + function e(e) { + this._lines = e; + } + return ( + (e.prototype._validPosition = function (e) { + return this._lines.model.validatePosition(e); + }), + (e.prototype._validRange = function (e) { + return this._lines.model.validateRange(e); + }), + (e.prototype.convertViewPositionToModelPosition = function (e) { + return this._validPosition(e); + }), + (e.prototype.convertViewRangeToModelRange = function (e) { + return this._validRange(e); + }), + (e.prototype.validateViewPosition = function (e, t) { + return this._validPosition(t); + }), + (e.prototype.validateViewRange = function (e, t) { + return this._validRange(t); + }), + (e.prototype.convertModelPositionToViewPosition = function (e) { + return this._validPosition(e); + }), + (e.prototype.convertModelRangeToViewRange = function (e) { + return this._validRange(e); + }), + (e.prototype.modelPositionIsVisible = function (e) { + var t = this._lines.model.getLineCount(); + return !(e.lineNumber < 1 || e.lineNumber > t); + }), + e + ); + })(), + cL = (function () { + function e(e) { + this.model = e; + } + return ( + (e.prototype.dispose = function () {}), + (e.prototype.createCoordinatesConverter = function () { + return new lL(this); + }), + (e.prototype.getHiddenAreas = function () { + return []; + }), + (e.prototype.setHiddenAreas = function (e) { + return !1; + }), + (e.prototype.setTabSize = function (e) { + return !1; + }), + (e.prototype.setWrappingSettings = function (e, t, n) { + return !1; + }), + (e.prototype.onModelFlushed = function () {}), + (e.prototype.onModelLinesDeleted = function (e, t, n) { + return new HC(t, n); + }), + (e.prototype.onModelLinesInserted = function (e, t, n, r) { + return new VC(t, n); + }), + (e.prototype.onModelLineChanged = function (e, t, n) { + return [!1, new WC(t, t), null, null]; + }), + (e.prototype.acceptVersionId = function (e) {}), + (e.prototype.getViewLineCount = function () { + return this.model.getLineCount(); + }), + (e.prototype.warmUpLookupCache = function (e, t) {}), + (e.prototype.getActiveIndentGuide = function (e, t, n) { + return { startLineNumber: e, endLineNumber: e, indent: 0 }; + }), + (e.prototype.getViewLinesIndentGuides = function (e, t) { + for (var n = t - e + 1, r = new Array(n), i = 0; i < n; i++) + r[i] = 0; + return r; + }), + (e.prototype.getViewLineContent = function (e) { + return this.model.getLineContent(e); + }), + (e.prototype.getViewLineLength = function (e) { + return this.model.getLineLength(e); + }), + (e.prototype.getViewLineMinColumn = function (e) { + return this.model.getLineMinColumn(e); + }), + (e.prototype.getViewLineMaxColumn = function (e) { + return this.model.getLineMaxColumn(e); + }), + (e.prototype.getViewLineData = function (e) { + var t = this.model.getLineTokens(e), + n = t.getLineContent(); + return new qy(n, !1, 1, n.length + 1, t.inflate()); + }), + (e.prototype.getViewLinesData = function (e, t, n) { + var r = this.model.getLineCount(); + (e = Math.min(Math.max(1, e), r)), + (t = Math.min(Math.max(1, t), r)); + for (var i = [], o = e; o <= t; o++) { + var s = o - e; + n[s] || (i[s] = null), (i[s] = this.getViewLineData(o)); + } + return i; + }), + (e.prototype.getAllOverviewRulerDecorations = function (e, t, n) { + for ( + var r = this.model.getOverviewRulerDecorations(e, t), + i = new dL(), + o = 0, + s = r; + o < s.length; + o++ + ) { + var a = s[o], + u = a.options.overviewRuler, + l = u ? u.position : 0; + if (0 !== l) { + var c = u.getColor(n), + d = a.range.startLineNumber, + h = a.range.endLineNumber; + i.accept(c, d, h, l); + } + } + return i.result; + }), + (e.prototype.getDecorationsInRange = function (e, t, n) { + return this.model.getDecorationsInRange(e, t, n); + }), + e + ); + })(), + dL = (function () { + function e() { + this.result = Object.create(null); + } + return ( + (e.prototype.accept = function (e, t, n, r) { + var i = this.result[e]; + if (i) { + var o = i[i.length - 3], + s = i[i.length - 1]; + if (o === r && s + 1 >= t) + return void (n > s && (i[i.length - 1] = n)); + i.push(r, t, n); + } else this.result[e] = [r, t, n]; + }), + e + ); + })(), + hL = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + fL = (function (e) { + function t(t, n, r) { + for (var i = e.call(this, 0) || this, o = 0; o < t.length; o++) + i.set(t.charCodeAt(o), 1); + for (o = 0; o < n.length; o++) i.set(n.charCodeAt(o), 2); + for (o = 0; o < r.length; o++) i.set(r.charCodeAt(o), 3); + return i; + } + return ( + hL(t, e), + (t.prototype.get = function (t) { + return (t >= 12352 && t <= 12543) || + (t >= 13312 && t <= 19903) || + (t >= 19968 && t <= 40959) + ? 4 + : e.prototype.get.call(this, t); + }), + t + ); + })(bo), + pL = (function () { + function e(e, t, n) { + this.classifier = new fL(e, t, n); + } + return ( + (e.nextVisibleColumn = function (e, t, n, r) { + return (e = +e), (t = +t), (r = +r), n ? e + (t - (e % t)) : e + r; + }), + (e.prototype.createLineMapping = function (t, n, r, i, o) { + if (-1 === r) return null; + (n = +n), (r = +r), (i = +i); + var s = 0, + a = '', + u = -1; + if (0 !== (o = +o) && -1 !== (u = pn(t))) { + a = t.substring(0, u); + for (var l = 0; l < u; l++) + s = e.nextVisibleColumn(s, n, 9 === t.charCodeAt(l), 1); + var c = 0; + 2 === o ? (c = 1) : 3 === o && (c = 2); + for (l = 0; l < c; l++) + (a += '\t'), (s = e.nextVisibleColumn(s, n, !0, 1)); + s + i > r && ((a = ''), (s = 0)); + } + var d = this.classifier, + h = 0, + f = [], + p = 0, + g = 0, + m = -1, + _ = 0, + y = -1, + v = 0, + b = t.length; + for (l = 0; l < b; l++) { + var w = t.charCodeAt(l), + C = 9 === w, + S = d.get(w); + if (xn(w)) g += 1; + else { + if ((1 === S && ((m = l), (_ = s)), 4 === S && l > 0)) { + var x = t.charCodeAt(l - 1); + 1 !== d.get(x) && ((m = l), (_ = s)); + } + var L = 1; + if ( + (Tn(w) && (L = i), + (g = e.nextVisibleColumn(g, n, C, L)) > r && 0 !== l) + ) { + var k = void 0, + M = void 0; + -1 !== m && _ <= r + ? ((k = m), (M = _)) + : -1 !== y && v <= r + ? ((k = y), (M = v)) + : ((k = l), (M = s)), + (f[p++] = k - h), + (h = k), + (g = e.nextVisibleColumn(M, n, C, L)), + (m = -1), + (_ = 0), + (y = -1), + (v = 0); + } + if ( + (-1 !== m && (_ = e.nextVisibleColumn(_, n, C, L)), + -1 !== y && (v = e.nextVisibleColumn(v, n, C, L)), + 2 === S && (0 === o || l >= u) && ((m = l + 1), (_ = s)), + 4 === S && l < b - 1) + ) { + var D = t.charCodeAt(l + 1); + 2 !== d.get(D) && ((m = l + 1), (_ = s)); + } + 3 === S && ((y = l + 1), (v = s)); + } + } + return 0 === p + ? null + : ((f[p++] = b - h), + new gL( + new J_( + (function (e) { + for ( + var t = e.length, n = new Uint32Array(t), r = 0; + r < t; + r++ + ) + n[r] = vo(e[r]); + return n; + })(f) + ), + a + )); + }), + e + ); + })(), + gL = (function () { + function e(e, t) { + (this._prefixSums = e), (this._wrappedLinesIndent = t); + } + return ( + (e.prototype.getOutputLineCount = function () { + return this._prefixSums.getCount(); + }), + (e.prototype.getWrappedLinesIndent = function () { + return this._wrappedLinesIndent; + }), + (e.prototype.getInputOffsetOfOutputPosition = function (e, t) { + return 0 === e + ? t + : this._prefixSums.getAccumulatedValue(e - 1) + t; + }), + (e.prototype.getOutputPositionOfInputOffset = function (e) { + var t = this._prefixSums.getIndexOf(e); + return new nL(t.index, t.remainder); + }), + e + ); + })(), + mL = (function () { + function e(e, t, n, r, i) { + (this.editorId = e), + (this.model = t), + (this.configuration = n), + (this._linesCollection = r), + (this._coordinatesConverter = i), + (this._decorationsCache = Object.create(null)), + (this._cachedModelDecorationsResolver = null), + (this._cachedModelDecorationsResolverViewRange = null); + } + return ( + (e.prototype._clearCachedModelDecorationsResolver = function () { + (this._cachedModelDecorationsResolver = null), + (this._cachedModelDecorationsResolverViewRange = null); + }), + (e.prototype.dispose = function () { + (this._decorationsCache = Object.create(null)), + this._clearCachedModelDecorationsResolver(); + }), + (e.prototype.reset = function () { + (this._decorationsCache = Object.create(null)), + this._clearCachedModelDecorationsResolver(); + }), + (e.prototype.onModelDecorationsChanged = function () { + (this._decorationsCache = Object.create(null)), + this._clearCachedModelDecorationsResolver(); + }), + (e.prototype.onLineMappingChanged = function () { + (this._decorationsCache = Object.create(null)), + this._clearCachedModelDecorationsResolver(); + }), + (e.prototype._getOrCreateViewModelDecoration = function (e) { + var t = e.id, + n = this._decorationsCache[t]; + if (!n) { + var r = e.range, + i = e.options, + o = void 0; + if (i.isWholeLine) { + var s = this._coordinatesConverter.convertModelPositionToViewPosition( + new xt(r.startLineNumber, 1) + ), + a = this._coordinatesConverter.convertModelPositionToViewPosition( + new xt( + r.endLineNumber, + this.model.getLineMaxColumn(r.endLineNumber) + ) + ); + o = new Fr(s.lineNumber, s.column, a.lineNumber, a.column); + } else + o = this._coordinatesConverter.convertModelRangeToViewRange(r); + (n = new $y(o, i)), (this._decorationsCache[t] = n); + } + return n; + }), + (e.prototype.getDecorationsViewportData = function (e) { + var t = null !== this._cachedModelDecorationsResolver; + return ( + (t = + t && + e.equalsRange(this._cachedModelDecorationsResolverViewRange)) || + ((this._cachedModelDecorationsResolver = this._getDecorationsViewportData( + e + )), + (this._cachedModelDecorationsResolverViewRange = e)), + this._cachedModelDecorationsResolver + ); + }), + (e.prototype._getDecorationsViewportData = function (e) { + for ( + var t = this._linesCollection.getDecorationsInRange( + e, + this.editorId, + this.configuration.editor.readOnly + ), + n = e.startLineNumber, + r = e.endLineNumber, + i = [], + o = 0, + s = [], + a = n; + a <= r; + a++ + ) + s[a - n] = []; + for (var u = 0, l = t.length; u < l; u++) { + var c = t[u], + d = c.options, + h = this._getOrCreateViewModelDecoration(c), + f = h.range; + if (((i[o++] = h), d.inlineClassName)) { + var p = new Gy( + f, + d.inlineClassName, + d.inlineClassNameAffectsLetterSpacing ? 3 : 0 + ), + g = Math.max(n, f.startLineNumber), + m = Math.min(r, f.endLineNumber); + for (a = g; a <= m; a++) s[a - n].push(p); + } + if ( + d.beforeContentClassName && + n <= f.startLineNumber && + f.startLineNumber <= r + ) { + p = new Gy( + new Fr( + f.startLineNumber, + f.startColumn, + f.startLineNumber, + f.startColumn + ), + d.beforeContentClassName, + 1 + ); + s[f.startLineNumber - n].push(p); + } + if ( + d.afterContentClassName && + n <= f.endLineNumber && + f.endLineNumber <= r + ) { + p = new Gy( + new Fr( + f.endLineNumber, + f.endColumn, + f.endLineNumber, + f.endColumn + ), + d.afterContentClassName, + 2 + ); + s[f.endLineNumber - n].push(p); + } + } + return { decorations: i, inlineDecorations: s }; + }), + e + ); + })(), + _L = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + yL = !0, + vL = (function (e) { + function t(t, n, r, i) { + var o = e.call(this) || this; + if ( + ((o.editorId = t), + (o.configuration = n), + (o.model = r), + (o._tokenizeViewportSoon = o._register( + new Os(function () { + return o.tokenizeViewport(); + }, 50) + )), + (o.hasFocus = !1), + (o.viewportStartLine = -1), + (o.viewportStartLineTrackedRange = null), + (o.viewportStartLineDelta = 0), + yL && o.model.isTooLargeForTokenization()) + ) + o.lines = new cL(o.model); + else { + var s = o.configuration.editor, + a = new pL( + s.wrappingInfo.wordWrapBreakBeforeCharacters, + s.wrappingInfo.wordWrapBreakAfterCharacters, + s.wrappingInfo.wordWrapBreakObtrusiveCharacters + ); + o.lines = new iL( + o.model, + a, + o.model.getOptions().tabSize, + s.wrappingInfo.wrappingColumn, + s.fontInfo.typicalFullwidthCharacterWidth / + s.fontInfo.typicalHalfwidthCharacterWidth, + s.wrappingInfo.wrappingIndent + ); + } + return ( + (o.coordinatesConverter = o.lines.createCoordinatesConverter()), + (o.viewLayout = o._register( + new tL(o.configuration, o.getLineCount(), i) + )), + o._register( + o.viewLayout.onDidScroll(function (e) { + e.scrollTopChanged && o._tokenizeViewportSoon.schedule(); + try { + o._beginEmit().emit(new UC(e)); + } finally { + o._endEmit(); + } + }) + ), + (o.decorations = new mL( + o.editorId, + o.model, + o.configuration, + o.lines, + o.coordinatesConverter + )), + o._registerModelEvents(), + o._register( + o.configuration.onDidChange(function (e) { + try { + var t = o._beginEmit(); + o._onConfigurationChanged(t, e); + } finally { + o._endEmit(); + } + }) + ), + o._register( + WS.getInstance().onDidChange(function () { + try { + o._beginEmit().emit(new GC()); + } finally { + o._endEmit(); + } + }) + ), + o + ); + } + return ( + _L(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this.decorations.dispose(), + this.lines.dispose(), + (this.viewportStartLineTrackedRange = this.model._setTrackedRange( + this.viewportStartLineTrackedRange, + null, + 1 + )); + }), + (t.prototype.tokenizeViewport = function () { + var e = this.viewLayout.getLinesViewportData(), + t = this.coordinatesConverter.convertViewPositionToModelPosition( + new xt(e.startLineNumber, 1) + ), + n = this.coordinatesConverter.convertViewPositionToModelPosition( + new xt(e.endLineNumber, 1) + ); + this.model.tokenizeViewport(t.lineNumber, n.lineNumber); + }), + (t.prototype.setHasFocus = function (e) { + this.hasFocus = e; + }), + (t.prototype._onConfigurationChanged = function (e, t) { + var n = null; + if (-1 !== this.viewportStartLine) { + var r = new xt( + this.viewportStartLine, + this.getLineMinColumn(this.viewportStartLine) + ); + n = this.coordinatesConverter.convertViewPositionToModelPosition( + r + ); + } + var i = !1, + o = this.configuration.editor; + if ( + (this.lines.setWrappingSettings( + o.wrappingInfo.wrappingIndent, + o.wrappingInfo.wrappingColumn, + o.fontInfo.typicalFullwidthCharacterWidth / + o.fontInfo.typicalHalfwidthCharacterWidth + ) && + (e.emit(new YC()), + e.emit(new BC()), + e.emit(new FC()), + this.decorations.onLineMappingChanged(), + this.viewLayout.onFlushed(this.getLineCount()), + 0 !== this.viewLayout.getCurrentScrollTop() && (i = !0)), + t.readOnly && (this.decorations.reset(), e.emit(new FC())), + e.emit(new PC(t)), + this.viewLayout.onConfigurationChanged(t), + i && n) + ) { + var s = this.coordinatesConverter.convertModelPositionToViewPosition( + n + ), + a = this.viewLayout.getVerticalOffsetForLineNumber( + s.lineNumber + ); + this.viewLayout.setScrollPositionNow({ + scrollTop: a + this.viewportStartLineDelta, + }); + } + }), + (t.prototype._registerModelEvents = function () { + var e = this; + this._register( + this.model.onDidChangeRawContentFast(function (t) { + try { + for ( + var n = e._beginEmit(), + r = !1, + i = !1, + o = t.changes, + s = t.versionId, + a = 0, + u = o.length; + a < u; + a++ + ) { + var l = o[a]; + switch (l.changeType) { + case 1: + e.lines.onModelFlushed(), + n.emit(new YC()), + e.decorations.reset(), + e.viewLayout.onFlushed(e.getLineCount()), + (r = !0); + break; + case 3: + null !== + (p = e.lines.onModelLinesDeleted( + s, + l.fromLineNumber, + l.toLineNumber + )) && + (n.emit(p), + e.viewLayout.onLinesDeleted( + p.fromLineNumber, + p.toLineNumber + )), + (r = !0); + break; + case 4: + null !== + (f = e.lines.onModelLinesInserted( + s, + l.fromLineNumber, + l.toLineNumber, + l.detail + )) && + (n.emit(f), + e.viewLayout.onLinesInserted( + f.fromLineNumber, + f.toLineNumber + )), + (r = !0); + break; + case 2: + var c = e.lines.onModelLineChanged( + s, + l.lineNumber, + l.detail + ), + d = c[0], + h = c[1], + f = c[2], + p = c[3]; + (i = d), + h && n.emit(h), + f && + (n.emit(f), + e.viewLayout.onLinesInserted( + f.fromLineNumber, + f.toLineNumber + )), + p && + (n.emit(p), + e.viewLayout.onLinesDeleted( + p.fromLineNumber, + p.toLineNumber + )); + } + } + e.lines.acceptVersionId(s), + e.viewLayout.onHeightMaybeChanged(), + !r && + i && + (n.emit(new BC()), + n.emit(new FC()), + e.decorations.onLineMappingChanged()); + } finally { + e._endEmit(); + } + if ( + ((e.viewportStartLine = -1), + e.configuration.setMaxLineNumber(e.model.getLineCount()), + !e.hasFocus && + e.model.getAttachedEditorCount() >= 2 && + e.viewportStartLineTrackedRange) + ) { + var g = e.model._getTrackedRange( + e.viewportStartLineTrackedRange + ); + if (g) { + var m = e.coordinatesConverter.convertModelPositionToViewPosition( + g.getStartPosition() + ), + _ = e.viewLayout.getVerticalOffsetForLineNumber( + m.lineNumber + ); + e.viewLayout.setScrollPositionNow({ + scrollTop: _ + e.viewportStartLineDelta, + }); + } + } + }) + ), + this._register( + this.model.onDidChangeTokens(function (t) { + for (var n = [], r = 0, i = t.ranges.length; r < i; r++) { + var o = t.ranges[r], + s = e.coordinatesConverter.convertModelPositionToViewPosition( + new xt(o.fromLineNumber, 1) + ).lineNumber, + a = e.coordinatesConverter.convertModelPositionToViewPosition( + new xt( + o.toLineNumber, + e.model.getLineMaxColumn(o.toLineNumber) + ) + ).lineNumber; + n[r] = { fromLineNumber: s, toLineNumber: a }; + } + try { + e._beginEmit().emit(new qC(n)); + } finally { + e._endEmit(); + } + t.tokenizationSupportChanged && + e._tokenizeViewportSoon.schedule(); + }) + ), + this._register( + this.model.onDidChangeLanguageConfiguration(function (t) { + try { + e._beginEmit().emit(new ZC()); + } finally { + e._endEmit(); + } + }) + ), + this._register( + this.model.onDidChangeOptions(function (t) { + if (e.lines.setTabSize(e.model.getOptions().tabSize)) { + e.decorations.onLineMappingChanged(), + e.viewLayout.onFlushed(e.getLineCount()); + try { + var n = e._beginEmit(); + n.emit(new YC()), n.emit(new BC()), n.emit(new FC()); + } finally { + e._endEmit(); + } + } + }) + ), + this._register( + this.model.onDidChangeDecorations(function (t) { + e.decorations.onModelDecorationsChanged(); + try { + e._beginEmit().emit(new FC()); + } finally { + e._endEmit(); + } + }) + ); + }), + (t.prototype.setHiddenAreas = function (e) { + try { + var t = this._beginEmit(); + this.lines.setHiddenAreas(e) && + (t.emit(new YC()), + t.emit(new BC()), + t.emit(new FC()), + this.decorations.onLineMappingChanged(), + this.viewLayout.onFlushed(this.getLineCount()), + this.viewLayout.onHeightMaybeChanged()); + } finally { + this._endEmit(); + } + }), + (t.prototype.getVisibleRanges = function () { + var e = this.getCompletelyVisibleViewRange(), + t = this.coordinatesConverter.convertViewRangeToModelRange(e), + n = this.lines.getHiddenAreas(); + if (0 === n.length) return [t]; + for ( + var r = [], + i = 0, + o = t.startLineNumber, + s = t.startColumn, + a = t.endLineNumber, + u = t.endColumn, + l = 0, + c = n.length; + l < c; + l++ + ) { + var d = n[l].startLineNumber, + h = n[l].endLineNumber; + h < o || + d > a || + (o < d && + (r[i++] = new Fr( + o, + s, + d - 1, + this.model.getLineMaxColumn(d - 1) + )), + (o = h + 1), + (s = 1)); + } + return ( + (o < a || (o === a && s < u)) && (r[i++] = new Fr(o, s, a, u)), r + ); + }), + (t.prototype.getCompletelyVisibleViewRange = function () { + var e = this.viewLayout.getLinesViewportData(), + t = e.completelyVisibleStartLineNumber, + n = e.completelyVisibleEndLineNumber; + return new Fr( + t, + this.getLineMinColumn(t), + n, + this.getLineMaxColumn(n) + ); + }), + (t.prototype.getCompletelyVisibleViewRangeAtScrollTop = function (e) { + var t = this.viewLayout.getLinesViewportDataAtScrollTop(e), + n = t.completelyVisibleStartLineNumber, + r = t.completelyVisibleEndLineNumber; + return new Fr( + n, + this.getLineMinColumn(n), + r, + this.getLineMaxColumn(r) + ); + }), + (t.prototype.saveState = function () { + var e = this.viewLayout.saveState(), + t = e.scrollTop, + n = this.viewLayout.getLineNumberAtVerticalOffset(t), + r = this.coordinatesConverter.convertViewPositionToModelPosition( + new xt(n, this.getLineMinColumn(n)) + ), + i = this.viewLayout.getVerticalOffsetForLineNumber(n) - t; + return { + scrollLeft: e.scrollLeft, + firstPosition: r, + firstPositionDeltaTop: i, + }; + }), + (t.prototype.reduceRestoreState = function (e) { + if (void 0 === e.firstPosition) + return this._reduceRestoreStateCompatibility(e); + var t = this.model.validatePosition(e.firstPosition), + n = this.coordinatesConverter.convertModelPositionToViewPosition( + t + ), + r = + this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber) - + e.firstPositionDeltaTop; + return { scrollLeft: e.scrollLeft, scrollTop: r }; + }), + (t.prototype._reduceRestoreStateCompatibility = function (e) { + return { + scrollLeft: e.scrollLeft, + scrollTop: e.scrollTopWithoutViewZones, + }; + }), + (t.prototype.getTabSize = function () { + return this.model.getOptions().tabSize; + }), + (t.prototype.getOptions = function () { + return this.model.getOptions(); + }), + (t.prototype.getLineCount = function () { + return this.lines.getViewLineCount(); + }), + (t.prototype.setViewport = function (e, t, n) { + this.lines.warmUpLookupCache(e, t), (this.viewportStartLine = e); + var r = this.coordinatesConverter.convertViewPositionToModelPosition( + new xt(e, this.getLineMinColumn(e)) + ); + this.viewportStartLineTrackedRange = this.model._setTrackedRange( + this.viewportStartLineTrackedRange, + new Fr(r.lineNumber, r.column, r.lineNumber, r.column), + 1 + ); + var i = this.viewLayout.getVerticalOffsetForLineNumber(e), + o = this.viewLayout.getCurrentScrollTop(); + this.viewportStartLineDelta = o - i; + }), + (t.prototype.getActiveIndentGuide = function (e, t, n) { + return this.lines.getActiveIndentGuide(e, t, n); + }), + (t.prototype.getLinesIndentGuides = function (e, t) { + return this.lines.getViewLinesIndentGuides(e, t); + }), + (t.prototype.getLineContent = function (e) { + return this.lines.getViewLineContent(e); + }), + (t.prototype.getLineLength = function (e) { + return this.lines.getViewLineLength(e); + }), + (t.prototype.getLineMinColumn = function (e) { + return this.lines.getViewLineMinColumn(e); + }), + (t.prototype.getLineMaxColumn = function (e) { + return this.lines.getViewLineMaxColumn(e); + }), + (t.prototype.getLineFirstNonWhitespaceColumn = function (e) { + var t = pn(this.getLineContent(e)); + return -1 === t ? 0 : t + 1; + }), + (t.prototype.getLineLastNonWhitespaceColumn = function (e) { + var t = mn(this.getLineContent(e)); + return -1 === t ? 0 : t + 2; + }), + (t.prototype.getDecorationsInViewport = function (e) { + return this.decorations.getDecorationsViewportData(e).decorations; + }), + (t.prototype.getViewLineRenderingData = function (e, t) { + var n = this.model.mightContainRTL(), + r = this.model.mightContainNonBasicASCII(), + i = this.getTabSize(), + o = this.lines.getViewLineData(t), + s = this.decorations.getDecorationsViewportData(e) + .inlineDecorations[t - e.startLineNumber]; + return new Ky( + o.minColumn, + o.maxColumn, + o.content, + o.continuesWithWrappedLine, + n, + r, + o.tokens, + s, + i + ); + }), + (t.prototype.getViewLineData = function (e) { + return this.lines.getViewLineData(e); + }), + (t.prototype.getMinimapLinesRenderingData = function (e, t, n) { + var r = this.lines.getViewLinesData(e, t, n); + return new Uy(this.getTabSize(), r); + }), + (t.prototype.getAllOverviewRulerDecorations = function (e) { + return this.lines.getAllOverviewRulerDecorations( + this.editorId, + this.configuration.editor.readOnly, + e + ); + }), + (t.prototype.invalidateOverviewRulerColorCache = function () { + for ( + var e = 0, t = this.model.getOverviewRulerDecorations(); + e < t.length; + e++ + ) { + var n = t[e].options.overviewRuler; + n && n.invalidateCachedColor(); + } + }), + (t.prototype.invalidateMinimapColorCache = function () { + for ( + var e = 0, t = this.model.getAllDecorations(); + e < t.length; + e++ + ) { + var n = t[e].options.minimap; + n && n.invalidateCachedColor(); + } + }), + (t.prototype.getValueInRange = function (e, t) { + var n = this.coordinatesConverter.convertViewRangeToModelRange(e); + return this.model.getValueInRange(n, t); + }), + (t.prototype.getModelLineMaxColumn = function (e) { + return this.model.getLineMaxColumn(e); + }), + (t.prototype.validateModelPosition = function (e) { + return this.model.validatePosition(e); + }), + (t.prototype.validateModelRange = function (e) { + return this.model.validateRange(e); + }), + (t.prototype.deduceModelPositionRelativeToViewPosition = function ( + e, + t, + n + ) { + var r = this.coordinatesConverter.convertViewPositionToModelPosition( + e + ); + 2 === this.model.getEOL().length && (t < 0 ? (t -= n) : (t += n)); + var i = this.model.getOffsetAt(r) + t; + return this.model.getPositionAt(i); + }), + (t.prototype.getEOL = function () { + return this.model.getEOL(); + }), + (t.prototype.getPlainTextToCopy = function (e, t, n) { + var r = this, + i = n ? '\r\n' : this.model.getEOL(); + (e = e.slice(0)).sort(Fr.compareRangesUsingStarts); + var o = e.filter(function (e) { + return !e.isEmpty(); + }); + if (0 === o.length) { + if (!t) return ''; + for ( + var s = e.map(function (e) { + var t = new xt(e.startLineNumber, 1); + return r.coordinatesConverter.convertViewPositionToModelPosition( + t + ).lineNumber; + }), + a = '', + u = 0; + u < s.length; + u++ + ) + (u > 0 && s[u - 1] === s[u]) || + (a += this.model.getLineContent(s[u]) + i); + return a; + } + for (var l = [], c = 0, d = o; c < d.length; c++) { + var h = d[c]; + l.push(this.getValueInRange(h, n ? 2 : 0)); + } + return 1 === l.length ? l[0] : l; + }), + (t.prototype.getHTMLToCopy = function (e, t) { + if (1 === this.model.getLanguageIdentifier().id) return null; + if (1 !== e.length) return null; + var n = this.coordinatesConverter.convertViewRangeToModelRange( + e[0] + ); + if (n.isEmpty()) { + if (!t) return null; + var r = n.startLineNumber; + n = new Fr( + r, + this.model.getLineMinColumn(r), + r, + this.model.getLineMaxColumn(r) + ); + } + var i = this.configuration.editor.fontInfo, + o = this._getColorMap(), + s = + i.fontFamily === bi.fontFamily + ? i.fontFamily + : "'" + i.fontFamily + "', " + bi.fontFamily; + return ( + '
' + + this._getHTMLToCopy(n, o) + + '
' + ); + }), + (t.prototype._getHTMLToCopy = function (e, t) { + for ( + var n = e.startLineNumber, + r = e.startColumn, + i = e.endLineNumber, + o = e.endColumn, + s = this.getTabSize(), + a = '', + u = n; + u <= i; + u++ + ) { + var l = this.model.getLineTokens(u), + c = l.getLineContent(), + d = u === n ? r - 1 : 0, + h = u === i ? o - 1 : c.length; + a += '' === c ? '
' : Xx(c, l.inflate(), t, d, h, s); + } + return a; + }), + (t.prototype._getColorMap = function () { + var e = Ia.getColorMap(), + t = ['#000000']; + if (e) + for (var n = 1, r = e.length; n < r; n++) + t[n] = Nu.Format.CSS.formatHex(e[n]); + return t; + }), + t + ); + })(XC), + bL = (function () { + function e() { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + this._entries = new Map(); + for (var n = 0, r = e; n < r.length; n++) { + var i = r[n], + o = i[0], + s = i[1]; + this.set(o, s); + } + } + return ( + (e.prototype.set = function (e, t) { + var n = this._entries.get(e); + return this._entries.set(e, t), n; + }), + (e.prototype.has = function (e) { + return this._entries.has(e); + }), + (e.prototype.get = function (e) { + return this._entries.get(e); + }), + e + ); + })(), + wL = wt('accessibilityService'), + CL = new Un('accessibilityModeEnabled', !1), + SL = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + xL = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + LL = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + kL = 0, + ML = 'showUnused', + DL = (function () { + function e(e, t, n, r, i, o) { + (this.model = e), + (this.viewModel = t), + (this.cursor = n), + (this.view = r), + (this.hasRealView = i), + (this.listenersToRemove = o); + } + return ( + (e.prototype.dispose = function () { + Ot(this.listenersToRemove), + this.model.onBeforeDetached(), + this.hasRealView && this.view.dispose(), + this.cursor.dispose(), + this.viewModel.dispose(); + }), + e + ); + })(), + EL = (function (e) { + function t(t, n, r, i, o, s, a, u, l, c) { + var d, + h = e.call(this) || this; + (h._onDidDispose = h._register(new Gt())), + (h.onDidDispose = h._onDidDispose.event), + (h._onDidChangeModelContent = h._register(new Gt())), + (h.onDidChangeModelContent = h._onDidChangeModelContent.event), + (h._onDidChangeModelLanguage = h._register(new Gt())), + (h.onDidChangeModelLanguage = h._onDidChangeModelLanguage.event), + (h._onDidChangeModelLanguageConfiguration = h._register(new Gt())), + (h.onDidChangeModelLanguageConfiguration = + h._onDidChangeModelLanguageConfiguration.event), + (h._onDidChangeModelOptions = h._register(new Gt())), + (h.onDidChangeModelOptions = h._onDidChangeModelOptions.event), + (h._onDidChangeModelDecorations = h._register(new Gt())), + (h.onDidChangeModelDecorations = + h._onDidChangeModelDecorations.event), + (h._onDidChangeConfiguration = h._register(new Gt())), + (h.onDidChangeConfiguration = h._onDidChangeConfiguration.event), + (h._onDidChangeModel = h._register(new Gt())), + (h.onDidChangeModel = h._onDidChangeModel.event), + (h._onDidChangeCursorPosition = h._register(new Gt())), + (h.onDidChangeCursorPosition = h._onDidChangeCursorPosition.event), + (h._onDidChangeCursorSelection = h._register(new Gt())), + (h.onDidChangeCursorSelection = + h._onDidChangeCursorSelection.event), + (h._onDidAttemptReadOnlyEdit = h._register(new Gt())), + (h.onDidAttemptReadOnlyEdit = h._onDidAttemptReadOnlyEdit.event), + (h._onDidLayoutChange = h._register(new Gt())), + (h.onDidLayoutChange = h._onDidLayoutChange.event), + (h._editorTextFocus = h._register(new TL())), + (h.onDidFocusEditorText = h._editorTextFocus.onDidChangeToTrue), + (h.onDidBlurEditorText = h._editorTextFocus.onDidChangeToFalse), + (h._editorWidgetFocus = h._register(new TL())), + (h.onDidFocusEditorWidget = h._editorWidgetFocus.onDidChangeToTrue), + (h.onDidBlurEditorWidget = h._editorWidgetFocus.onDidChangeToFalse), + (h._onWillType = h._register(new Gt())), + (h.onWillType = h._onWillType.event), + (h._onDidType = h._register(new Gt())), + (h.onDidType = h._onDidType.event), + (h._onCompositionStart = h._register(new Gt())), + (h.onCompositionStart = h._onCompositionStart.event), + (h._onCompositionEnd = h._register(new Gt())), + (h.onCompositionEnd = h._onCompositionEnd.event), + (h._onDidPaste = h._register(new Gt())), + (h.onDidPaste = h._onDidPaste.event), + (h._onMouseUp = h._register(new Gt())), + (h.onMouseUp = h._onMouseUp.event), + (h._onMouseDown = h._register(new Gt())), + (h.onMouseDown = h._onMouseDown.event), + (h._onMouseDrag = h._register(new Gt())), + (h.onMouseDrag = h._onMouseDrag.event), + (h._onMouseDrop = h._register(new Gt())), + (h.onMouseDrop = h._onMouseDrop.event), + (h._onContextMenu = h._register(new Gt())), + (h.onContextMenu = h._onContextMenu.event), + (h._onMouseMove = h._register(new Gt())), + (h.onMouseMove = h._onMouseMove.event), + (h._onMouseLeave = h._register(new Gt())), + (h.onMouseLeave = h._onMouseLeave.event), + (h._onMouseWheel = h._register(new Gt())), + (h.onMouseWheel = h._onMouseWheel.event), + (h._onKeyUp = h._register(new Gt())), + (h.onKeyUp = h._onKeyUp.event), + (h._onKeyDown = h._register(new Gt())), + (h.onKeyDown = h._onKeyDown.event), + (h._onDidScrollChange = h._register(new Gt())), + (h.onDidScrollChange = h._onDidScrollChange.event), + (h._onDidChangeViewZones = h._register(new Gt())), + (h.onDidChangeViewZones = h._onDidChangeViewZones.event), + (h._domElement = t), + (h._id = ++kL), + (h._decorationTypeKeysToIds = {}), + (h._decorationTypeSubtypes = {}), + (h.isSimpleWidget = r.isSimpleWidget || !1), + (h._telemetryData = r.telemetryData), + (n = n || {}), + (h._configuration = h._register(h._createConfiguration(n, c))), + h._register( + h._configuration.onDidChange(function (e) { + h._onDidChangeConfiguration.fire(e), + e.layoutInfo && + h._onDidLayoutChange.fire( + h._configuration.editor.layoutInfo + ), + h._configuration.editor.showUnused + ? h._domElement.classList.add(ML) + : h._domElement.classList.remove(ML); + }) + ), + (h._contextKeyService = h._register(a.createScoped(h._domElement))), + (h._notificationService = l), + (h._codeEditorService = o), + (h._commandService = s), + (h._themeService = u), + h._register(new NL(h, h._contextKeyService)), + h._register(new OL(h, h._contextKeyService)), + (h._instantiationService = i.createChild( + new bL([qn, h._contextKeyService]) + )), + (h._modelData = null), + (h._contributions = {}), + (h._actions = {}), + (h._focusTracker = new AL(t)), + h._focusTracker.onChange(function () { + h._editorWidgetFocus.setValue(h._focusTracker.hasFocus()); + }), + (h._contentWidgets = {}), + (h._overlayWidgets = {}); + for ( + var f = 0, + p = (d = Array.isArray(r.contributions) + ? r.contributions + : Dr.getEditorContributions()).length; + f < p; + f++ + ) { + var g = d[f]; + try { + var m = h._instantiationService.createInstance(g, h); + h._contributions[m.getId()] = m; + } catch (e) { + qe(e); + } + } + return ( + Dr.getEditorActions().forEach(function (e) { + var t = new Zx( + e.id, + e.label, + e.alias, + Ve(e.precondition), + function () { + return h._instantiationService.invokeFunction(function (t) { + return Promise.resolve(e.runEditorCommand(t, h, null)); + }); + }, + h._contextKeyService + ); + h._actions[t.id] = t; + }), + h._codeEditorService.addCodeEditor(h), + h + ); + } + return ( + SL(t, e), + (t.prototype._createConfiguration = function (e, t) { + return new iw(this.isSimpleWidget, e, this._domElement, t); + }), + (t.prototype.getId = function () { + return this.getEditorType() + ':' + this._id; + }), + (t.prototype.getEditorType = function () { + return Tl.ICodeEditor; + }), + (t.prototype.dispose = function () { + this._codeEditorService.removeCodeEditor(this), + this._focusTracker.dispose(); + for ( + var t = Object.keys(this._contributions), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n]; + this._contributions[i].dispose(); + } + this._removeDecorationTypes(), + this._postDetachModelCleanup(this._detachModel()), + this._onDidDispose.fire(), + e.prototype.dispose.call(this); + }), + (t.prototype.invokeWithinContext = function (e) { + return this._instantiationService.invokeFunction(e); + }), + (t.prototype.updateOptions = function (e) { + this._configuration.updateOptions(e); + }), + (t.prototype.getConfiguration = function () { + return this._configuration.editor; + }), + (t.prototype.getRawConfiguration = function () { + return this._configuration.getRawOptions(); + }), + (t.prototype.getValue = function (e) { + if ((void 0 === e && (e = null), !this._modelData)) return ''; + var t = !(!e || !e.preserveBOM), + n = 0; + return ( + e && e.lineEnding && '\n' === e.lineEnding + ? (n = 1) + : e && e.lineEnding && '\r\n' === e.lineEnding && (n = 2), + this._modelData.model.getValue(n, t) + ); + }), + (t.prototype.setValue = function (e) { + this._modelData && this._modelData.model.setValue(e); + }), + (t.prototype.getModel = function () { + return this._modelData ? this._modelData.model : null; + }), + (t.prototype.setModel = function (e) { + void 0 === e && (e = null); + var t = e; + if ( + !( + (null === this._modelData && null === t) || + (this._modelData && this._modelData.model === t) + ) + ) { + var n = this._detachModel(); + this._attachModel(t); + var r = { + oldModelUrl: n ? n.uri : null, + newModelUrl: t ? t.uri : null, + }; + this._removeDecorationTypes(), + this._onDidChangeModel.fire(r), + this._postDetachModelCleanup(n); + } + }), + (t.prototype._removeDecorationTypes = function () { + if ( + ((this._decorationTypeKeysToIds = {}), + this._decorationTypeSubtypes) + ) { + for (var e in this._decorationTypeSubtypes) { + var t = this._decorationTypeSubtypes[e]; + for (var n in t) this._removeDecorationType(e + '-' + n); + } + this._decorationTypeSubtypes = {}; + } + }), + (t.prototype.getVisibleRanges = function () { + return this._modelData + ? this._modelData.viewModel.getVisibleRanges() + : []; + }), + (t.prototype.getWhitespaces = function () { + return this._modelData + ? this._modelData.viewModel.viewLayout.getWhitespaces() + : []; + }), + (t._getVerticalOffsetForPosition = function (e, t, n) { + var r = e.model.validatePosition({ lineNumber: t, column: n }), + i = e.viewModel.coordinatesConverter.convertModelPositionToViewPosition( + r + ); + return e.viewModel.viewLayout.getVerticalOffsetForLineNumber( + i.lineNumber + ); + }), + (t.prototype.getTopForLineNumber = function (e) { + return this._modelData + ? t._getVerticalOffsetForPosition(this._modelData, e, 1) + : -1; + }), + (t.prototype.getTopForPosition = function (e, n) { + return this._modelData + ? t._getVerticalOffsetForPosition(this._modelData, e, n) + : -1; + }), + (t.prototype.setHiddenAreas = function (e) { + this._modelData && + this._modelData.viewModel.setHiddenAreas( + e.map(function (e) { + return Fr.lift(e); + }) + ); + }), + (t.prototype.getVisibleColumnFromPosition = function (e) { + if (!this._modelData) return e.column; + var t = this._modelData.model.validatePosition(e), + n = this._modelData.model.getOptions().tabSize; + return ( + ol.visibleColumnFromColumn( + this._modelData.model.getLineContent(t.lineNumber), + t.column, + n + ) + 1 + ); + }), + (t.prototype.getPosition = function () { + return this._modelData + ? this._modelData.cursor.getPosition() + : null; + }), + (t.prototype.setPosition = function (e) { + if (this._modelData) { + if (!xt.isIPosition(e)) throw new Error('Invalid arguments'); + this._modelData.cursor.setSelections('api', [ + { + selectionStartLineNumber: e.lineNumber, + selectionStartColumn: e.column, + positionLineNumber: e.lineNumber, + positionColumn: e.column, + }, + ]); + } + }), + (t.prototype._sendRevealRange = function (e, t, n, r) { + if (this._modelData) { + if (!Fr.isIRange(e)) throw new Error('Invalid arguments'); + var i = this._modelData.model.validateRange(e), + o = this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange( + i + ); + this._modelData.cursor.emitCursorRevealRange(o, t, n, r); + } + }), + (t.prototype.revealLine = function (e, t) { + void 0 === t && (t = 0), this._revealLine(e, 0, t); + }), + (t.prototype.revealLineInCenter = function (e, t) { + void 0 === t && (t = 0), this._revealLine(e, 1, t); + }), + (t.prototype.revealLineInCenterIfOutsideViewport = function (e, t) { + void 0 === t && (t = 0), this._revealLine(e, 2, t); + }), + (t.prototype._revealLine = function (e, t, n) { + if ('number' != typeof e) throw new Error('Invalid arguments'); + this._sendRevealRange(new Fr(e, 1, e, 1), t, !1, n); + }), + (t.prototype.revealPosition = function (e, t) { + void 0 === t && (t = 0), this._revealPosition(e, 0, !0, t); + }), + (t.prototype.revealPositionInCenter = function (e, t) { + void 0 === t && (t = 0), this._revealPosition(e, 1, !0, t); + }), + (t.prototype.revealPositionInCenterIfOutsideViewport = function ( + e, + t + ) { + void 0 === t && (t = 0), this._revealPosition(e, 2, !0, t); + }), + (t.prototype._revealPosition = function (e, t, n, r) { + if (!xt.isIPosition(e)) throw new Error('Invalid arguments'); + this._sendRevealRange( + new Fr(e.lineNumber, e.column, e.lineNumber, e.column), + t, + n, + r + ); + }), + (t.prototype.getSelection = function () { + return this._modelData + ? this._modelData.cursor.getSelection() + : null; + }), + (t.prototype.getSelections = function () { + return this._modelData + ? this._modelData.cursor.getSelections() + : null; + }), + (t.prototype.setSelection = function (e) { + var t = jr.isISelection(e), + n = Fr.isIRange(e); + if (!t && !n) throw new Error('Invalid arguments'); + if (t) this._setSelectionImpl(e); + else if (n) { + var r = { + selectionStartLineNumber: e.startLineNumber, + selectionStartColumn: e.startColumn, + positionLineNumber: e.endLineNumber, + positionColumn: e.endColumn, + }; + this._setSelectionImpl(r); + } + }), + (t.prototype._setSelectionImpl = function (e) { + if (this._modelData) { + var t = new jr( + e.selectionStartLineNumber, + e.selectionStartColumn, + e.positionLineNumber, + e.positionColumn + ); + this._modelData.cursor.setSelections('api', [t]); + } + }), + (t.prototype.revealLines = function (e, t, n) { + void 0 === n && (n = 0), this._revealLines(e, t, 0, n); + }), + (t.prototype.revealLinesInCenter = function (e, t, n) { + void 0 === n && (n = 0), this._revealLines(e, t, 1, n); + }), + (t.prototype.revealLinesInCenterIfOutsideViewport = function ( + e, + t, + n + ) { + void 0 === n && (n = 0), this._revealLines(e, t, 2, n); + }), + (t.prototype._revealLines = function (e, t, n, r) { + if ('number' != typeof e || 'number' != typeof t) + throw new Error('Invalid arguments'); + this._sendRevealRange(new Fr(e, 1, t, 1), n, !1, r); + }), + (t.prototype.revealRange = function (e, t, n, r) { + void 0 === t && (t = 0), + void 0 === n && (n = !1), + void 0 === r && (r = !0), + this._revealRange(e, n ? 1 : 0, r, t); + }), + (t.prototype.revealRangeInCenter = function (e, t) { + void 0 === t && (t = 0), this._revealRange(e, 1, !0, t); + }), + (t.prototype.revealRangeInCenterIfOutsideViewport = function (e, t) { + void 0 === t && (t = 0), this._revealRange(e, 2, !0, t); + }), + (t.prototype.revealRangeAtTop = function (e, t) { + void 0 === t && (t = 0), this._revealRange(e, 3, !0, t); + }), + (t.prototype._revealRange = function (e, t, n, r) { + if (!Fr.isIRange(e)) throw new Error('Invalid arguments'); + this._sendRevealRange(Fr.lift(e), t, n, r); + }), + (t.prototype.setSelections = function (e, t) { + if ((void 0 === t && (t = 'api'), this._modelData)) { + if (!e || 0 === e.length) throw new Error('Invalid arguments'); + for (var n = 0, r = e.length; n < r; n++) + if (!jr.isISelection(e[n])) + throw new Error('Invalid arguments'); + this._modelData.cursor.setSelections(t, e); + } + }), + (t.prototype.getScrollWidth = function () { + return this._modelData + ? this._modelData.viewModel.viewLayout.getScrollWidth() + : -1; + }), + (t.prototype.getScrollLeft = function () { + return this._modelData + ? this._modelData.viewModel.viewLayout.getCurrentScrollLeft() + : -1; + }), + (t.prototype.getScrollHeight = function () { + return this._modelData + ? this._modelData.viewModel.viewLayout.getScrollHeight() + : -1; + }), + (t.prototype.getScrollTop = function () { + return this._modelData + ? this._modelData.viewModel.viewLayout.getCurrentScrollTop() + : -1; + }), + (t.prototype.setScrollLeft = function (e) { + if (this._modelData) { + if ('number' != typeof e) throw new Error('Invalid arguments'); + this._modelData.viewModel.viewLayout.setScrollPositionNow({ + scrollLeft: e, + }); + } + }), + (t.prototype.setScrollTop = function (e) { + if (this._modelData) { + if ('number' != typeof e) throw new Error('Invalid arguments'); + this._modelData.viewModel.viewLayout.setScrollPositionNow({ + scrollTop: e, + }); + } + }), + (t.prototype.setScrollPosition = function (e) { + this._modelData && + this._modelData.viewModel.viewLayout.setScrollPositionNow(e); + }), + (t.prototype.saveViewState = function () { + if (!this._modelData) return null; + for ( + var e = {}, t = 0, n = Object.keys(this._contributions); + t < n.length; + t++ + ) { + var r = n[t], + i = this._contributions[r]; + 'function' == typeof i.saveViewState && + (e[r] = i.saveViewState()); + } + return { + cursorState: this._modelData.cursor.saveState(), + viewState: this._modelData.viewModel.saveState(), + contributionsState: e, + }; + }), + (t.prototype.restoreViewState = function (e) { + if (this._modelData && this._modelData.hasRealView) { + var t = e; + if (t && t.cursorState && t.viewState) { + var n = t.cursorState; + Array.isArray(n) + ? this._modelData.cursor.restoreState(n) + : this._modelData.cursor.restoreState([n]); + for ( + var r = t.contributionsState || {}, + i = Object.keys(this._contributions), + o = 0, + s = i.length; + o < s; + o++ + ) { + var a = i[o], + u = this._contributions[a]; + 'function' == typeof u.restoreViewState && + u.restoreViewState(r[a]); + } + var l = this._modelData.viewModel.reduceRestoreState( + t.viewState + ); + this._modelData.view.restoreState(l); + } + } + }), + (t.prototype.getContribution = function (e) { + return this._contributions[e] || null; + }), + (t.prototype.getActions = function () { + for ( + var e = [], t = Object.keys(this._actions), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n]; + e.push(this._actions[i]); + } + return e; + }), + (t.prototype.getSupportedActions = function () { + var e = this.getActions(); + return (e = e.filter(function (e) { + return e.isSupported(); + })); + }), + (t.prototype.getAction = function (e) { + return this._actions[e] || null; + }), + (t.prototype.trigger = function (e, t, n) { + if (((n = n || {}), t === Nl.Type)) { + if ( + !this._modelData || + 'string' != typeof n.text || + 0 === n.text.length + ) + return; + return ( + 'keyboard' === e && this._onWillType.fire(n.text), + this._modelData.cursor.trigger(e, t, n), + void ('keyboard' === e && this._onDidType.fire(n.text)) + ); + } + if (t !== Nl.Paste) { + t === Nl.CompositionStart && this._onCompositionStart.fire(), + t === Nl.CompositionEnd && this._onCompositionEnd.fire(); + var r = this.getAction(t); + r + ? Promise.resolve(r.run()).then(void 0, qe) + : this._modelData && + (this._triggerEditorCommand(e, t, n) || + this._modelData.cursor.trigger(e, t, n)); + } else { + if ( + !this._modelData || + 'string' != typeof n.text || + 0 === n.text.length + ) + return; + var i = this._modelData.cursor.getSelection().getStartPosition(); + this._modelData.cursor.trigger(e, t, n); + var o = this._modelData.cursor.getSelection().getStartPosition(); + 'keyboard' === e && + this._onDidPaste.fire( + new Fr(i.lineNumber, i.column, o.lineNumber, o.column) + ); + } + }), + (t.prototype._triggerEditorCommand = function (e, t, n) { + var r = this, + i = Dr.getEditorCommand(t); + return ( + !!i && + (((n = n || {}).source = e), + this._instantiationService.invokeFunction(function (e) { + Promise.resolve(i.runEditorCommand(e, r, n)).then(void 0, qe); + }), + !0) + ); + }), + (t.prototype._getCursors = function () { + return this._modelData ? this._modelData.cursor : null; + }), + (t.prototype.pushUndoStop = function () { + return ( + !!this._modelData && + !this._configuration.editor.readOnly && + (this._modelData.model.pushStackElement(), !0) + ); + }), + (t.prototype.executeEdits = function (e, t, n) { + return ( + !!this._modelData && + !this._configuration.editor.readOnly && + ((r = n + ? Array.isArray(n) + ? function () { + return n; + } + : n + : function () { + return null; + }), + this._modelData.cursor.executeEdits(e, t, r), + !0) + ); + var r; + }), + (t.prototype.executeCommand = function (e, t) { + this._modelData && + this._modelData.cursor.trigger(e, Nl.ExecuteCommand, t); + }), + (t.prototype.executeCommands = function (e, t) { + this._modelData && + this._modelData.cursor.trigger(e, Nl.ExecuteCommands, t); + }), + (t.prototype.changeDecorations = function (e) { + return this._modelData + ? this._modelData.model.changeDecorations(e, this._id) + : null; + }), + (t.prototype.getLineDecorations = function (e) { + return this._modelData + ? this._modelData.model.getLineDecorations( + e, + this._id, + this._configuration.editor.readOnly + ) + : null; + }), + (t.prototype.deltaDecorations = function (e, t) { + return this._modelData + ? 0 === e.length && 0 === t.length + ? e + : this._modelData.model.deltaDecorations(e, t, this._id) + : []; + }), + (t.prototype.removeDecorations = function (e) { + var t = this._decorationTypeKeysToIds[e]; + t && this.deltaDecorations(t, []), + this._decorationTypeKeysToIds.hasOwnProperty(e) && + delete this._decorationTypeKeysToIds[e], + this._decorationTypeSubtypes.hasOwnProperty(e) && + delete this._decorationTypeSubtypes[e]; + }), + (t.prototype.getLayoutInfo = function () { + return this._configuration.editor.layoutInfo; + }), + (t.prototype.createOverviewRuler = function (e) { + return this._modelData && this._modelData.hasRealView + ? this._modelData.view.createOverviewRuler(e) + : null; + }), + (t.prototype.getDomNode = function () { + return this._modelData && this._modelData.hasRealView + ? this._modelData.view.domNode.domNode + : null; + }), + (t.prototype.delegateVerticalScrollbarMouseDown = function (e) { + this._modelData && + this._modelData.hasRealView && + this._modelData.view.delegateVerticalScrollbarMouseDown(e); + }), + (t.prototype.layout = function (e) { + this._configuration.observeReferenceElement(e), this.render(); + }), + (t.prototype.focus = function () { + this._modelData && + this._modelData.hasRealView && + this._modelData.view.focus(); + }), + (t.prototype.hasTextFocus = function () { + return ( + !(!this._modelData || !this._modelData.hasRealView) && + this._modelData.view.isFocused() + ); + }), + (t.prototype.hasWidgetFocus = function () { + return this._focusTracker && this._focusTracker.hasFocus(); + }), + (t.prototype.addContentWidget = function (e) { + var t = { widget: e, position: e.getPosition() }; + this._contentWidgets.hasOwnProperty(e.getId()) && + console.warn('Overwriting a content widget with the same id.'), + (this._contentWidgets[e.getId()] = t), + this._modelData && + this._modelData.hasRealView && + this._modelData.view.addContentWidget(t); + }), + (t.prototype.layoutContentWidget = function (e) { + var t = e.getId(); + if (this._contentWidgets.hasOwnProperty(t)) { + var n = this._contentWidgets[t]; + (n.position = e.getPosition()), + this._modelData && + this._modelData.hasRealView && + this._modelData.view.layoutContentWidget(n); + } + }), + (t.prototype.removeContentWidget = function (e) { + var t = e.getId(); + if (this._contentWidgets.hasOwnProperty(t)) { + var n = this._contentWidgets[t]; + delete this._contentWidgets[t], + this._modelData && + this._modelData.hasRealView && + this._modelData.view.removeContentWidget(n); + } + }), + (t.prototype.addOverlayWidget = function (e) { + var t = { widget: e, position: e.getPosition() }; + this._overlayWidgets.hasOwnProperty(e.getId()) && + console.warn('Overwriting an overlay widget with the same id.'), + (this._overlayWidgets[e.getId()] = t), + this._modelData && + this._modelData.hasRealView && + this._modelData.view.addOverlayWidget(t); + }), + (t.prototype.layoutOverlayWidget = function (e) { + var t = e.getId(); + if (this._overlayWidgets.hasOwnProperty(t)) { + var n = this._overlayWidgets[t]; + (n.position = e.getPosition()), + this._modelData && + this._modelData.hasRealView && + this._modelData.view.layoutOverlayWidget(n); + } + }), + (t.prototype.removeOverlayWidget = function (e) { + var t = e.getId(); + if (this._overlayWidgets.hasOwnProperty(t)) { + var n = this._overlayWidgets[t]; + delete this._overlayWidgets[t], + this._modelData && + this._modelData.hasRealView && + this._modelData.view.removeOverlayWidget(n); + } + }), + (t.prototype.changeViewZones = function (e) { + this._modelData && + this._modelData.hasRealView && + this._modelData.view.change(e) && + this._onDidChangeViewZones.fire(); + }), + (t.prototype.getTargetAtClientPoint = function (e, t) { + return this._modelData && this._modelData.hasRealView + ? this._modelData.view.getTargetAtClientPoint(e, t) + : null; + }), + (t.prototype.getScrolledVisiblePosition = function (e) { + if (!this._modelData || !this._modelData.hasRealView) return null; + var n = this._modelData.model.validatePosition(e), + r = this._configuration.editor.layoutInfo; + return { + top: + t._getVerticalOffsetForPosition( + this._modelData, + n.lineNumber, + n.column + ) - this.getScrollTop(), + left: + this._modelData.view.getOffsetForColumn( + n.lineNumber, + n.column + ) + + r.glyphMarginWidth + + r.lineNumbersWidth + + r.decorationsWidth - + this.getScrollLeft(), + height: this._configuration.editor.lineHeight, + }; + }), + (t.prototype.getOffsetForColumn = function (e, t) { + return this._modelData && this._modelData.hasRealView + ? this._modelData.view.getOffsetForColumn(e, t) + : -1; + }), + (t.prototype.render = function (e) { + void 0 === e && (e = !1), + this._modelData && + this._modelData.hasRealView && + this._modelData.view.render(!0, e); + }), + (t.prototype.applyFontInfo = function (e) { + iw.applyFontInfoSlow(e, this._configuration.editor.fontInfo); + }), + (t.prototype._attachModel = function (e) { + var t = this; + if (e) { + var n = []; + this._domElement.setAttribute( + 'data-mode-id', + e.getLanguageIdentifier().language + ), + this._configuration.setIsDominatedByLongLines( + e.isDominatedByLongLines() + ), + this._configuration.setMaxLineNumber(e.getLineCount()), + e.onBeforeAttached(); + var r = new vL(this._id, this._configuration, e, function (e) { + return Xh(e); + }); + n.push( + e.onDidChangeDecorations(function (e) { + return t._onDidChangeModelDecorations.fire(e); + }) + ), + n.push( + e.onDidChangeLanguage(function (n) { + t._domElement.setAttribute( + 'data-mode-id', + e.getLanguageIdentifier().language + ), + t._onDidChangeModelLanguage.fire(n); + }) + ), + n.push( + e.onDidChangeLanguageConfiguration(function (e) { + return t._onDidChangeModelLanguageConfiguration.fire(e); + }) + ), + n.push( + e.onDidChangeContent(function (e) { + return t._onDidChangeModelContent.fire(e); + }) + ), + n.push( + e.onDidChangeOptions(function (e) { + return t._onDidChangeModelOptions.fire(e); + }) + ), + n.push( + e.onWillDispose(function () { + return t.setModel(null); + }) + ); + var i = new Gx(this._configuration, e, r); + n.push( + i.onDidReachMaxCursorCount(function () { + t._notificationService.warn( + De( + 'cursors.maximum', + 'The number of cursors has been limited to {0}.', + Gx.MAX_CURSOR_COUNT + ) + ); + }) + ), + n.push( + i.onDidAttemptReadOnlyEdit(function () { + t._onDidAttemptReadOnlyEdit.fire(void 0); + }) + ), + n.push( + i.onDidChange(function (e) { + for (var n = [], r = 0, i = e.selections.length; r < i; r++) + n[r] = e.selections[r].getPosition(); + var o = { + position: n[0], + secondaryPositions: n.slice(1), + reason: e.reason, + source: e.source, + }; + t._onDidChangeCursorPosition.fire(o); + var s = { + selection: e.selections[0], + secondarySelections: e.selections.slice(1), + source: e.source, + reason: e.reason, + }; + t._onDidChangeCursorSelection.fire(s); + }) + ); + var o = this._createView(r, i), + s = o[0], + a = o[1]; + if (a) { + this._domElement.appendChild(s.domNode.domNode); + for ( + var u = Object.keys(this._contentWidgets), + l = 0, + c = u.length; + l < c; + l++ + ) { + var d = u[l]; + s.addContentWidget(this._contentWidgets[d]); + } + for ( + l = 0, c = (u = Object.keys(this._overlayWidgets)).length; + l < c; + l++ + ) { + d = u[l]; + s.addOverlayWidget(this._overlayWidgets[d]); + } + s.render(!1, !0), + s.domNode.domNode.setAttribute('data-uri', e.uri.toString()); + } + this._modelData = new DL(e, r, i, s, a, n); + } else this._modelData = null; + }), + (t.prototype._createView = function (e, t) { + var n, + r = this; + n = this.isSimpleWidget + ? { + executeEditorCommand: function (e, n) { + e.runCoreEditorCommand(t, n); + }, + paste: function (e, t, n, i) { + r.trigger(e, Nl.Paste, { + text: t, + pasteOnNewLine: n, + multicursorText: i, + }); + }, + type: function (e, t) { + r.trigger(e, Nl.Type, { text: t }); + }, + replacePreviousChar: function (e, t, n) { + r.trigger(e, Nl.ReplacePreviousChar, { + text: t, + replaceCharCnt: n, + }); + }, + compositionStart: function (e) { + r.trigger(e, Nl.CompositionStart, void 0); + }, + compositionEnd: function (e) { + r.trigger(e, Nl.CompositionEnd, void 0); + }, + cut: function (e) { + r.trigger(e, Nl.Cut, void 0); + }, + } + : { + executeEditorCommand: function (e, n) { + e.runCoreEditorCommand(t, n); + }, + paste: function (e, t, n, i) { + r._commandService.executeCommand(Nl.Paste, { + text: t, + pasteOnNewLine: n, + multicursorText: i, + }); + }, + type: function (e, t) { + r._commandService.executeCommand(Nl.Type, { text: t }); + }, + replacePreviousChar: function (e, t, n) { + r._commandService.executeCommand(Nl.ReplacePreviousChar, { + text: t, + replaceCharCnt: n, + }); + }, + compositionStart: function (e) { + r._commandService.executeCommand(Nl.CompositionStart, {}); + }, + compositionEnd: function (e) { + r._commandService.executeCommand(Nl.CompositionEnd, {}); + }, + cut: function (e) { + r._commandService.executeCommand(Nl.Cut, {}); + }, + }; + var i = new Bx(e); + return ( + (i.onDidGainFocus = function () { + r._editorTextFocus.setValue(!0), + r._editorWidgetFocus.setValue(!0); + }), + (i.onDidScroll = function (e) { + return r._onDidScrollChange.fire(e); + }), + (i.onDidLoseFocus = function () { + return r._editorTextFocus.setValue(!1); + }), + (i.onContextMenu = function (e) { + return r._onContextMenu.fire(e); + }), + (i.onMouseDown = function (e) { + return r._onMouseDown.fire(e); + }), + (i.onMouseUp = function (e) { + return r._onMouseUp.fire(e); + }), + (i.onMouseDrag = function (e) { + return r._onMouseDrag.fire(e); + }), + (i.onMouseDrop = function (e) { + return r._onMouseDrop.fire(e); + }), + (i.onKeyUp = function (e) { + return r._onKeyUp.fire(e); + }), + (i.onMouseMove = function (e) { + return r._onMouseMove.fire(e); + }), + (i.onMouseLeave = function (e) { + return r._onMouseLeave.fire(e); + }), + (i.onMouseWheel = function (e) { + return r._onMouseWheel.fire(e); + }), + (i.onKeyDown = function (e) { + return r._onKeyDown.fire(e); + }), + [new Fx(n, this._configuration, this._themeService, e, t, i), !0] + ); + }), + (t.prototype._postDetachModelCleanup = function (e) { + e && e.removeAllDecorationsWithOwnerId(this._id); + }), + (t.prototype._detachModel = function () { + if (!this._modelData) return null; + var e = this._modelData.model, + t = this._modelData.hasRealView + ? this._modelData.view.domNode.domNode + : null; + return ( + this._modelData.dispose(), + (this._modelData = null), + this._domElement.removeAttribute('data-mode-id'), + t && this._domElement.removeChild(t), + e + ); + }), + (t.prototype._removeDecorationType = function (e) { + this._codeEditorService.removeDecorationType(e); + }), + (t.prototype.hasModel = function () { + return null !== this._modelData; + }), + (t = xL( + [ + LL(3, vt), + LL(4, St), + LL(5, nr), + LL(6, qn), + LL(7, Ad), + LL(8, sm), + LL(9, wL), + ], + t + )) + ); + })(Rt), + TL = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._onDidChangeToTrue = t._register(new Gt())), + (t.onDidChangeToTrue = t._onDidChangeToTrue.event), + (t._onDidChangeToFalse = t._register(new Gt())), + (t.onDidChangeToFalse = t._onDidChangeToFalse.event), + (t._value = 0), + t + ); + } + return ( + SL(t, e), + (t.prototype.setValue = function (e) { + var t = e ? 2 : 1; + this._value !== t && + ((this._value = t), + 2 === this._value + ? this._onDidChangeToTrue.fire() + : 1 === this._value && this._onDidChangeToFalse.fire()); + }), + t + ); + })(Rt), + NL = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._editor = t), + n.createKey('editorId', t.getId()), + (r._editorFocus = Dl.focus.bindTo(n)), + (r._textInputFocus = Dl.textInputFocus.bindTo(n)), + (r._editorTextFocus = Dl.editorTextFocus.bindTo(n)), + (r._editorTabMovesFocus = Dl.tabMovesFocus.bindTo(n)), + (r._editorReadonly = Dl.readOnly.bindTo(n)), + (r._hasMultipleSelections = Dl.hasMultipleSelections.bindTo(n)), + (r._hasNonEmptySelection = Dl.hasNonEmptySelection.bindTo(n)), + (r._canUndo = Dl.canUndo.bindTo(n)), + (r._canRedo = Dl.canRedo.bindTo(n)), + r._register( + r._editor.onDidChangeConfiguration(function () { + return r._updateFromConfig(); + }) + ), + r._register( + r._editor.onDidChangeCursorSelection(function () { + return r._updateFromSelection(); + }) + ), + r._register( + r._editor.onDidFocusEditorWidget(function () { + return r._updateFromFocus(); + }) + ), + r._register( + r._editor.onDidBlurEditorWidget(function () { + return r._updateFromFocus(); + }) + ), + r._register( + r._editor.onDidFocusEditorText(function () { + return r._updateFromFocus(); + }) + ), + r._register( + r._editor.onDidBlurEditorText(function () { + return r._updateFromFocus(); + }) + ), + r._register( + r._editor.onDidChangeModel(function () { + return r._updateFromModel(); + }) + ), + r._register( + r._editor.onDidChangeConfiguration(function () { + return r._updateFromModel(); + }) + ), + r._updateFromConfig(), + r._updateFromSelection(), + r._updateFromFocus(), + r._updateFromModel(), + r + ); + } + return ( + SL(t, e), + (t.prototype._updateFromConfig = function () { + var e = this._editor.getConfiguration(); + this._editorTabMovesFocus.set(e.tabFocusMode), + this._editorReadonly.set(e.readOnly); + }), + (t.prototype._updateFromSelection = function () { + var e = this._editor.getSelections(); + e + ? (this._hasMultipleSelections.set(e.length > 1), + this._hasNonEmptySelection.set( + e.some(function (e) { + return !e.isEmpty(); + }) + )) + : (this._hasMultipleSelections.reset(), + this._hasNonEmptySelection.reset()); + }), + (t.prototype._updateFromFocus = function () { + this._editorFocus.set( + this._editor.hasWidgetFocus() && !this._editor.isSimpleWidget + ), + this._editorTextFocus.set( + this._editor.hasTextFocus() && !this._editor.isSimpleWidget + ), + this._textInputFocus.set(this._editor.hasTextFocus()); + }), + (t.prototype._updateFromModel = function () { + var e = this._editor.getModel(); + this._canUndo.set(Boolean(e && e.canUndo())), + this._canRedo.set(Boolean(e && e.canRedo())); + }), + t + ); + })(Rt), + OL = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + (r._editor = t), + (r._contextKeyService = n), + (r._langId = Dl.languageId.bindTo(n)), + (r._hasCompletionItemProvider = Dl.hasCompletionItemProvider.bindTo( + n + )), + (r._hasCodeActionsProvider = Dl.hasCodeActionsProvider.bindTo(n)), + (r._hasCodeLensProvider = Dl.hasCodeLensProvider.bindTo(n)), + (r._hasDefinitionProvider = Dl.hasDefinitionProvider.bindTo(n)), + (r._hasDeclarationProvider = Dl.hasDeclarationProvider.bindTo(n)), + (r._hasImplementationProvider = Dl.hasImplementationProvider.bindTo( + n + )), + (r._hasTypeDefinitionProvider = Dl.hasTypeDefinitionProvider.bindTo( + n + )), + (r._hasHoverProvider = Dl.hasHoverProvider.bindTo(n)), + (r._hasDocumentHighlightProvider = Dl.hasDocumentHighlightProvider.bindTo( + n + )), + (r._hasDocumentSymbolProvider = Dl.hasDocumentSymbolProvider.bindTo( + n + )), + (r._hasReferenceProvider = Dl.hasReferenceProvider.bindTo(n)), + (r._hasRenameProvider = Dl.hasRenameProvider.bindTo(n)), + (r._hasSignatureHelpProvider = Dl.hasSignatureHelpProvider.bindTo( + n + )), + (r._hasDocumentFormattingProvider = Dl.hasDocumentFormattingProvider.bindTo( + n + )), + (r._hasDocumentSelectionFormattingProvider = Dl.hasDocumentSelectionFormattingProvider.bindTo( + n + )), + (r._hasMultipleDocumentFormattingProvider = Dl.hasMultipleDocumentFormattingProvider.bindTo( + n + )), + (r._hasMultipleDocumentSelectionFormattingProvider = Dl.hasMultipleDocumentSelectionFormattingProvider.bindTo( + n + )), + (r._isInWalkThrough = Dl.isInEmbeddedEditor.bindTo(n)); + var i = function () { + return r._update(); + }; + return ( + r._register(t.onDidChangeModel(i)), + r._register(t.onDidChangeModelLanguage(i)), + r._register(ma.onDidChange(i)), + r._register(ka.onDidChange(i)), + r._register(La.onDidChange(i)), + r._register(wa.onDidChange(i)), + r._register(Ca.onDidChange(i)), + r._register(Sa.onDidChange(i)), + r._register(xa.onDidChange(i)), + r._register(ya.onDidChange(i)), + r._register(ba.onDidChange(i)), + r._register(va.onDidChange(i)), + r._register(fa.onDidChange(i)), + r._register(pa.onDidChange(i)), + r._register(Ma.onDidChange(i)), + r._register(Da.onDidChange(i)), + r._register(_a.onDidChange(i)), + i(), + r + ); + } + return ( + SL(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.reset = function () { + var e = this; + this._contextKeyService.bufferChangeEvents(function () { + e._langId.reset(), + e._hasCompletionItemProvider.reset(), + e._hasCodeActionsProvider.reset(), + e._hasCodeLensProvider.reset(), + e._hasDefinitionProvider.reset(), + e._hasDeclarationProvider.reset(), + e._hasImplementationProvider.reset(), + e._hasTypeDefinitionProvider.reset(), + e._hasHoverProvider.reset(), + e._hasDocumentHighlightProvider.reset(), + e._hasDocumentSymbolProvider.reset(), + e._hasReferenceProvider.reset(), + e._hasRenameProvider.reset(), + e._hasDocumentFormattingProvider.reset(), + e._hasDocumentSelectionFormattingProvider.reset(), + e._hasSignatureHelpProvider.reset(), + e._isInWalkThrough.reset(); + }); + }), + (t.prototype._update = function () { + var e = this, + t = this._editor.getModel(); + t + ? this._contextKeyService.bufferChangeEvents(function () { + e._langId.set(t.getLanguageIdentifier().language), + e._hasCompletionItemProvider.set(ma.has(t)), + e._hasCodeActionsProvider.set(ka.has(t)), + e._hasCodeLensProvider.set(La.has(t)), + e._hasDefinitionProvider.set(wa.has(t)), + e._hasDeclarationProvider.set(Ca.has(t)), + e._hasImplementationProvider.set(Sa.has(t)), + e._hasTypeDefinitionProvider.set(xa.has(t)), + e._hasHoverProvider.set(ya.has(t)), + e._hasDocumentHighlightProvider.set(ba.has(t)), + e._hasDocumentSymbolProvider.set(va.has(t)), + e._hasReferenceProvider.set(fa.has(t)), + e._hasRenameProvider.set(pa.has(t)), + e._hasSignatureHelpProvider.set(_a.has(t)), + e._hasDocumentFormattingProvider.set( + Ma.has(t) || Da.has(t) + ), + e._hasDocumentSelectionFormattingProvider.set(Da.has(t)), + e._hasMultipleDocumentFormattingProvider.set( + Ma.all(t).length + Da.all(t).length > 1 + ), + e._hasMultipleDocumentSelectionFormattingProvider.set( + Da.all(t).length > 1 + ), + e._isInWalkThrough.set( + t.uri.scheme === Mh.walkThroughSnippet + ); + }) + : this.reset(); + }), + t + ); + })(Rt), + AL = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._onChange = n._register(new Gt())), + (n.onChange = n._onChange.event), + (n._hasFocus = !1), + (n._domFocusTracker = n._register(Lf(t))), + n._register( + n._domFocusTracker.onDidFocus(function () { + (n._hasFocus = !0), n._onChange.fire(void 0); + }) + ), + n._register( + n._domFocusTracker.onDidBlur(function () { + (n._hasFocus = !1), n._onChange.fire(void 0); + }) + ), + n + ); + } + return ( + SL(t, e), + (t.prototype.hasFocus = function () { + return this._hasFocus; + }), + t + ); + })(Rt), + IL = encodeURIComponent( + "" + ); + function RL(e) { + return IL + encodeURIComponent(e.toString()) + PL; + } + var FL = encodeURIComponent( + '' + ); + Bd(function (e, t) { + var n = e.getColor(Gc); + n && + t.addRule( + '.monaco-editor .squiggly-error { border-bottom: 4px double ' + + n + + '; }' + ); + var r = e.getColor(Kc); + r && + t.addRule( + '.monaco-editor .squiggly-error { background: url("data:image/svg+xml,' + + RL(r) + + '") repeat-x bottom left; }' + ); + var i = e.getColor(Zc); + i && + t.addRule( + '.monaco-editor .squiggly-warning { border-bottom: 4px double ' + + i + + '; }' + ); + var o = e.getColor($c); + o && + t.addRule( + '.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,' + + RL(o) + + '") repeat-x bottom left; }' + ); + var s = e.getColor(Jc); + s && + t.addRule( + '.monaco-editor .squiggly-info { border-bottom: 4px double ' + + s + + '; }' + ); + var a = e.getColor(Xc); + a && + t.addRule( + '.monaco-editor .squiggly-info { background: url("data:image/svg+xml,' + + RL(a) + + '") repeat-x bottom left; }' + ); + var u = e.getColor(ed); + u && + t.addRule( + '.monaco-editor .squiggly-hint { border-bottom: 2px dotted ' + + u + + '; }' + ); + var l = e.getColor(Qc); + l && + t.addRule( + '.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,' + + (FL + encodeURIComponent(l.toString()) + YL) + + '") no-repeat bottom left; }' + ); + var c = e.getColor(kC); + c && + t.addRule( + '.' + + ML + + ' .monaco-editor .squiggly-inline-unnecessary { opacity: ' + + c.rgba.a + + '; }' + ); + var d = e.getColor(LC); + d && + t.addRule( + '.' + + ML + + ' .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed ' + + d + + '; }' + ); + var h = e.getColor(nd) || 'inherit'; + t.addRule( + '.monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: ' + + h + + '}' + ); + }); + n(351); + var jL = function (e, t, n) { + void 0 === t && (t = []), + void 0 === n && (n = !1), + (this.ctor = e), + (this.staticArguments = t), + (this.supportsDelayedInstantiation = n); + }, + BL = []; + var WL = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + HL = wt('IEditorCancelService'), + VL = new Un('cancellableOperation', !1); + !(function (e, t, n) { + BL.push([e, new jL(t, [], n)]); + })( + HL, + (function () { + function e() { + this._tokens = new WeakMap(); + } + return ( + (e.prototype.add = function (e, t) { + var n, + r = this._tokens.get(e); + return ( + r || + ((r = e.invokeWithinContext(function (e) { + return { key: VL.bindTo(e.get(qn)), tokens: new zt() }; + })), + this._tokens.set(e, r)), + r.key.set(!0), + (n = r.tokens.push(t)), + function () { + n && (n(), r.key.set(!r.tokens.isEmpty()), (n = void 0)); + } + ); + }), + (e.prototype.cancel = function (e) { + var t = this._tokens.get(e); + if (t) { + var n = t.tokens.pop(); + n && (n.cancel(), t.key.set(!t.tokens.isEmpty())); + } + }), + e + ); + })(), + !0 + ); + var zL = (function (e) { + function t(t, n) { + var r = e.call(this, n) || this; + return ( + (r.editor = t), + (r._unregister = t.invokeWithinContext(function (e) { + return e.get(HL).add(t, r); + })), + r + ); + } + return ( + WL(t, e), + (t.prototype.dispose = function () { + this._unregister(), e.prototype.dispose.call(this); + }), + t + ); + })(Ls); + Ir( + new ((function (e) { + function t() { + return ( + e.call(this, { + id: 'editor.cancelOperation', + kbOpts: { weight: 100, primary: 9 }, + precondition: VL, + }) || this + ); + } + return ( + WL(t, e), + (t.prototype.runEditorCommand = function (e, t) { + e.get(HL).cancel(t); + }), + t + ); + })(Or))() + ); + var UL = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + qL = + ((function () { + function e(e, t) { + if (((this.flags = t), 0 != (1 & this.flags))) { + var n = e.getModel(); + this.modelVersionId = n + ? sn('{0}#{1}', n.uri.toString(), n.getVersionId()) + : null; + } else this.modelVersionId = null; + 0 != (4 & this.flags) + ? (this.position = e.getPosition()) + : (this.position = null), + 0 != (2 & this.flags) + ? (this.selection = e.getSelection()) + : (this.selection = null), + 0 != (8 & this.flags) + ? ((this.scrollLeft = e.getScrollLeft()), + (this.scrollTop = e.getScrollTop())) + : ((this.scrollLeft = -1), (this.scrollTop = -1)); + } + (e.prototype._equals = function (t) { + if (!(t instanceof e)) return !1; + var n = t; + return ( + this.modelVersionId === n.modelVersionId && + this.scrollLeft === n.scrollLeft && + this.scrollTop === n.scrollTop && + !( + (!this.position && n.position) || + (this.position && !n.position) || + (this.position && + n.position && + !this.position.equals(n.position)) + ) && + !( + (!this.selection && n.selection) || + (this.selection && !n.selection) || + (this.selection && + n.selection && + !this.selection.equalsRange(n.selection)) + ) + ); + }), + (e.prototype.validate = function (t) { + return this._equals(new e(t, this.flags)); + }); + })(), + (function (e) { + function t(t, n, r) { + var i = e.call(this, t, r) || this; + return ( + (i.editor = t), + (i._listener = new Pt()), + 4 & n && + i._listener.add( + t.onDidChangeCursorPosition(function (e) { + return i.cancel(); + }) + ), + 2 & n && + i._listener.add( + t.onDidChangeCursorSelection(function (e) { + return i.cancel(); + }) + ), + 8 & n && + i._listener.add( + t.onDidScrollChange(function (e) { + return i.cancel(); + }) + ), + 1 & n && + (i._listener.add( + t.onDidChangeModel(function (e) { + return i.cancel(); + }) + ), + i._listener.add( + t.onDidChangeModelContent(function (e) { + return i.cancel(); + }) + )), + i + ); + } + UL(t, e), + (t.prototype.dispose = function () { + this._listener.dispose(), e.prototype.dispose.call(this); + }); + })(zL), + (function (e) { + function t(t, n) { + var r = e.call(this, n) || this; + return ( + (r._listener = t.onDidChangeContent(function () { + return r.cancel(); + })), + r + ); + } + UL(t, e), + (t.prototype.dispose = function () { + this._listener.dispose(), e.prototype.dispose.call(this); + }); + })(Ls), + (function () { + function e(e, t) { + (this._visiblePosition = e), (this._visiblePositionScrollDelta = t); + } + return ( + (e.capture = function (t) { + var n = null, + r = 0; + if (0 !== t.getScrollTop()) { + var i = t.getVisibleRanges(); + if (i.length > 0) { + n = i[0].getStartPosition(); + var o = t.getTopForPosition(n.lineNumber, n.column); + r = t.getScrollTop() - o; + } + } + return new e(n, r); + }), + (e.prototype.restore = function (e) { + if (this._visiblePosition) { + var t = e.getTopForPosition( + this._visiblePosition.lineNumber, + this._visiblePosition.column + ); + e.setScrollTop(t + this._visiblePositionScrollDelta); + } + }), + e + ); + })()), + KL = + (n(352), + (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })()), + GL = (function () { + function e(e, t, n, r) { + (this.originalLineStart = e), + (this.originalLineEnd = t), + (this.modifiedLineStart = n), + (this.modifiedLineEnd = r); + } + return ( + (e.prototype.getType = function () { + return 0 === this.originalLineStart + ? 1 + : 0 === this.modifiedLineStart + ? 2 + : 0; + }), + e + ); + })(), + $L = function (e) { + this.entries = e; + }, + ZL = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._width = 0), + (n._diffEditor = t), + (n._isVisible = !1), + (n.shadow = Mp(document.createElement('div'))), + n.shadow.setClassName('diff-review-shadow'), + (n.actionBarContainer = Mp(document.createElement('div'))), + n.actionBarContainer.setClassName('diff-review-actions'), + (n._actionBar = n._register(new xp(n.actionBarContainer.domNode))), + n._actionBar.push( + new tn( + 'diffreview.close', + De('label.close', 'Close'), + 'close-diff-review', + !0, + function () { + return n.hide(), Promise.resolve(null); + } + ), + { label: !1, icon: !0 } + ), + (n.domNode = Mp(document.createElement('div'))), + n.domNode.setClassName('diff-review monaco-editor-background'), + (n._content = Mp(document.createElement('div'))), + n._content.setClassName('diff-review-content'), + (n.scrollbar = n._register(new eg(n._content.domNode, {}))), + n.domNode.domNode.appendChild(n.scrollbar.getDomNode()), + n._register( + t.onDidUpdateDiff(function () { + n._isVisible && ((n._diffs = n._compute()), n._render()); + }) + ), + n._register( + t.getModifiedEditor().onDidChangeCursorPosition(function () { + n._isVisible && n._render(); + }) + ), + n._register( + t.getOriginalEditor().onDidFocusEditorWidget(function () { + n._isVisible && n.hide(); + }) + ), + n._register( + t.getModifiedEditor().onDidFocusEditorWidget(function () { + n._isVisible && n.hide(); + }) + ), + n._register( + Gh(n.domNode.domNode, 'click', function (e) { + e.preventDefault(); + var t = (function (e, t, n) { + for (; e; ) { + if (Bh(e, t)) return e; + if (n) + if ('string' == typeof n) { + if (Bh(e, n)) return null; + } else if (e === n) return null; + e = e.parentNode; + } + return null; + })(e.target, 'diff-review-row'); + t && n._goToRow(t); + }) + ), + n._register( + Gh(n.domNode.domNode, 'keydown', function (e) { + (e.equals(18) || e.equals(2066) || e.equals(530)) && + (e.preventDefault(), n._goToRow(n._getNextRow())), + (e.equals(16) || e.equals(2064) || e.equals(528)) && + (e.preventDefault(), n._goToRow(n._getPrevRow())), + (e.equals(9) || + e.equals(2057) || + e.equals(521) || + e.equals(1033)) && + (e.preventDefault(), n.hide()), + (e.equals(10) || e.equals(3)) && + (e.preventDefault(), n.accept()); + }) + ), + (n._diffs = []), + (n._currentDiff = null), + n + ); + } + return ( + KL(t, e), + (t.prototype.prev = function () { + var e = 0; + if ( + (this._isVisible || (this._diffs = this._compute()), + this._isVisible) + ) { + for (var t = -1, n = 0, r = this._diffs.length; n < r; n++) + if (this._diffs[n] === this._currentDiff) { + t = n; + break; + } + e = this._diffs.length + t - 1; + } else e = this._findDiffIndex(this._diffEditor.getPosition()); + 0 !== this._diffs.length && + ((e %= this._diffs.length), + this._diffEditor.setPosition( + new xt(this._diffs[e].entries[0].modifiedLineStart, 1) + ), + (this._isVisible = !0), + this._diffEditor.doLayout(), + this._render(), + this._goToRow(this._getNextRow())); + }), + (t.prototype.next = function () { + var e = 0; + if ( + (this._isVisible || (this._diffs = this._compute()), + this._isVisible) + ) { + for (var t = -1, n = 0, r = this._diffs.length; n < r; n++) + if (this._diffs[n] === this._currentDiff) { + t = n; + break; + } + e = t + 1; + } else e = this._findDiffIndex(this._diffEditor.getPosition()); + 0 !== this._diffs.length && + ((e %= this._diffs.length), + this._diffEditor.setPosition( + new xt(this._diffs[e].entries[0].modifiedLineStart, 1) + ), + (this._isVisible = !0), + this._diffEditor.doLayout(), + this._render(), + this._goToRow(this._getNextRow())); + }), + (t.prototype.accept = function () { + var e = -1, + t = this._getCurrentFocusedRow(); + if (t) { + var n = parseInt(t.getAttribute('data-line'), 10); + isNaN(n) || (e = n); + } + this.hide(), + -1 !== e && + (this._diffEditor.setPosition(new xt(e, 1)), + this._diffEditor.revealPosition(new xt(e, 1), 1)); + }), + (t.prototype.hide = function () { + (this._isVisible = !1), + this._diffEditor.focus(), + this._diffEditor.doLayout(), + this._render(); + }), + (t.prototype._getPrevRow = function () { + var e = this._getCurrentFocusedRow(); + return e + ? e.previousElementSibling + ? e.previousElementSibling + : e + : this._getFirstRow(); + }), + (t.prototype._getNextRow = function () { + var e = this._getCurrentFocusedRow(); + return e + ? e.nextElementSibling + ? e.nextElementSibling + : e + : this._getFirstRow(); + }), + (t.prototype._getFirstRow = function () { + return this.domNode.domNode.querySelector('.diff-review-row'); + }), + (t.prototype._getCurrentFocusedRow = function () { + var e = document.activeElement; + return e && /diff-review-row/.test(e.className) ? e : null; + }), + (t.prototype._goToRow = function (e) { + var t = this._getCurrentFocusedRow(); + (e.tabIndex = 0), + e.focus(), + t && t !== e && (t.tabIndex = -1), + this.scrollbar.scanDomNode(); + }), + (t.prototype.isVisible = function () { + return this._isVisible; + }), + (t.prototype.layout = function (e, t, n) { + (this._width = t), + this.shadow.setTop(e - 6), + this.shadow.setWidth(t), + this.shadow.setHeight(this._isVisible ? 6 : 0), + this.domNode.setTop(e), + this.domNode.setWidth(t), + this.domNode.setHeight(n), + this._content.setHeight(n), + this._content.setWidth(t), + this._isVisible + ? (this.actionBarContainer.setAttribute('aria-hidden', 'false'), + this.actionBarContainer.setDisplay('block')) + : (this.actionBarContainer.setAttribute('aria-hidden', 'true'), + this.actionBarContainer.setDisplay('none')); + }), + (t.prototype._compute = function () { + var e = this._diffEditor.getLineChanges(); + if (!e || 0 === e.length) return []; + var n = this._diffEditor.getOriginalEditor().getModel(), + r = this._diffEditor.getModifiedEditor().getModel(); + return n && r + ? t._mergeAdjacent(e, n.getLineCount(), r.getLineCount()) + : []; + }), + (t._mergeAdjacent = function (e, t, n) { + if (!e || 0 === e.length) return []; + for (var r = [], i = 0, o = 0, s = e.length; o < s; o++) { + var a = e[o], + u = a.originalStartLineNumber, + l = a.originalEndLineNumber, + c = a.modifiedStartLineNumber, + d = a.modifiedEndLineNumber, + h = [], + f = 0, + p = 0 === l ? u : u - 1, + g = 0 === d ? c : c - 1, + m = 1, + _ = 1; + if (o > 0) { + var y = e[o - 1]; + (m = + 0 === y.originalEndLineNumber + ? y.originalStartLineNumber + 1 + : y.originalEndLineNumber + 1), + (_ = + 0 === y.modifiedEndLineNumber + ? y.modifiedStartLineNumber + 1 + : y.modifiedEndLineNumber + 1); + } + var v = p - 3 + 1, + b = g - 3 + 1; + if (v < m) (v += k = m - v), (b += k); + if (b < _) (v += k = _ - b), (b += k); + (h[f++] = new GL(v, p, b, g)), + 0 !== l && (h[f++] = new GL(u, l, 0, 0)), + 0 !== d && (h[f++] = new GL(0, 0, c, d)); + var w = 0 === l ? u + 1 : l + 1, + C = 0 === d ? c + 1 : d + 1, + S = t, + x = n; + if (o + 1 < s) { + var L = e[o + 1]; + (S = + 0 === L.originalEndLineNumber + ? L.originalStartLineNumber + : L.originalStartLineNumber - 1), + (x = + 0 === L.modifiedEndLineNumber + ? L.modifiedStartLineNumber + : L.modifiedStartLineNumber - 1); + } + var k, + M = w + 3 - 1, + D = C + 3 - 1; + if (M > S) (M += k = S - M), (D += k); + if (D > x) (M += k = x - D), (D += k); + (h[f++] = new GL(w, M, C, D)), (r[i++] = new $L(h)); + } + var E = r[0].entries, + T = [], + N = 0; + for (o = 1, s = r.length; o < s; o++) { + var O = r[o].entries, + A = E[E.length - 1], + I = O[0]; + 0 === A.getType() && + 0 === I.getType() && + I.originalLineStart <= A.originalLineEnd + ? ((E[E.length - 1] = new GL( + A.originalLineStart, + I.originalLineEnd, + A.modifiedLineStart, + I.modifiedLineEnd + )), + (E = E.concat(O.slice(1)))) + : ((T[N++] = new $L(E)), (E = O)); + } + return (T[N++] = new $L(E)), T; + }), + (t.prototype._findDiffIndex = function (e) { + for ( + var t = e.lineNumber, n = 0, r = this._diffs.length; + n < r; + n++ + ) { + var i = this._diffs[n].entries; + if (t <= i[i.length - 1].modifiedLineEnd) return n; + } + return 0; + }), + (t.prototype._render = function () { + var e = this._diffEditor.getOriginalEditor().getConfiguration(), + n = this._diffEditor.getModifiedEditor().getConfiguration(), + r = this._diffEditor.getOriginalEditor().getModel(), + i = this._diffEditor.getModifiedEditor().getModel(), + o = r.getOptions(), + s = i.getOptions(); + if (!this._isVisible || !r || !i) + return ( + Ph(this._content.domNode), + (this._currentDiff = null), + void this.scrollbar.scanDomNode() + ); + var a = this._findDiffIndex(this._diffEditor.getPosition()); + if (this._diffs[a] !== this._currentDiff) { + this._currentDiff = this._diffs[a]; + var u = this._diffs[a].entries, + l = document.createElement('div'); + (l.className = 'diff-review-table'), + l.setAttribute('role', 'list'), + iw.applyFontInfoSlow(l, n.fontInfo); + for ( + var c = 0, d = 0, h = 0, f = 0, p = 0, g = u.length; + p < g; + p++ + ) { + var m = (D = u[p]).originalLineStart, + _ = D.originalLineEnd, + y = D.modifiedLineStart, + v = D.modifiedLineEnd; + 0 !== m && (0 === c || m < c) && (c = m), + 0 !== _ && (0 === d || _ > d) && (d = _), + 0 !== y && (0 === h || y < h) && (h = y), + 0 !== v && (0 === f || v > f) && (f = v); + } + var b = document.createElement('div'); + b.className = 'diff-review-row'; + var w = document.createElement('div'); + w.className = 'diff-review-cell diff-review-summary'; + var C = d - c + 1, + S = f - h + 1; + w.appendChild( + document.createTextNode( + a + + 1 + + '/' + + this._diffs.length + + ': @@ -' + + c + + ',' + + C + + ' +' + + h + + ',' + + S + + ' @@' + ) + ), + b.setAttribute('data-line', String(h)); + var x = function (e) { + return 0 === e + ? De('no_lines', 'no lines') + : 1 === e + ? De('one_line', '1 line') + : De('more_lines', '{0} lines', e); + }, + L = x(C), + k = x(S); + b.setAttribute( + 'aria-label', + De( + { + key: 'header', + comment: [ + 'This is the ARIA label for a git diff header.', + 'A git diff header looks like this: @@ -154,12 +159,39 @@.', + 'That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.', + 'Variables 0 and 1 refer to the diff index out of total number of diffs.', + 'Variables 2 and 4 will be numbers (a line number).', + 'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.', + ], + }, + 'Difference {0} of {1}: original {2}, {3}, modified {4}, {5}', + a + 1, + this._diffs.length, + c, + L, + h, + k + ) + ), + b.appendChild(w), + b.setAttribute('role', 'listitem'), + l.appendChild(b); + var M = h; + for (p = 0, g = u.length; p < g; p++) { + var D = u[p]; + t._renderSection(l, D, M, this._width, e, r, o, n, i, s), + 0 !== D.modifiedLineStart && (M = D.modifiedLineEnd); + } + Ph(this._content.domNode), + this._content.domNode.appendChild(l), + this.scrollbar.scanDomNode(); + } + }), + (t._renderSection = function (e, t, n, r, i, o, s, a, u, l) { + var c = t.getType(), + d = 'diff-review-row', + h = '', + f = 'diff-review-spacer'; + switch (c) { + case 1: + (d = 'diff-review-row line-insert'), + (h = ' char-insert'), + (f = 'diff-review-spacer insert-sign'); + break; + case 2: + (d = 'diff-review-row line-delete'), + (h = ' char-delete'), + (f = 'diff-review-spacer delete-sign'); + } + for ( + var p = t.originalLineStart, + g = t.originalLineEnd, + m = t.modifiedLineStart, + _ = t.modifiedLineEnd, + y = Math.max(_ - m, g - p), + v = + i.layoutInfo.glyphMarginWidth + i.layoutInfo.lineNumbersWidth, + b = + 10 + + a.layoutInfo.glyphMarginWidth + + a.layoutInfo.lineNumbersWidth, + w = 0; + w <= y; + w++ + ) { + var C = 0 === p ? 0 : p + w, + S = 0 === m ? 0 : m + w, + x = document.createElement('div'); + (x.style.minWidth = r + 'px'), + (x.className = d), + x.setAttribute('role', 'listitem'), + 0 !== S && (n = S), + x.setAttribute('data-line', String(n)); + var L = document.createElement('div'); + (L.className = 'diff-review-cell'), x.appendChild(L); + var k = document.createElement('span'); + (k.style.width = v + 'px'), + (k.style.minWidth = v + 'px'), + (k.className = 'diff-review-line-number' + h), + 0 !== C + ? k.appendChild(document.createTextNode(String(C))) + : (k.innerHTML = ' '), + L.appendChild(k); + var M = document.createElement('span'); + (M.style.width = b + 'px'), + (M.style.minWidth = b + 'px'), + (M.style.paddingRight = '10px'), + (M.className = 'diff-review-line-number' + h), + 0 !== S + ? M.appendChild(document.createTextNode(String(S))) + : (M.innerHTML = ' '), + L.appendChild(M); + var D = document.createElement('span'); + (D.className = f), + (D.innerHTML = '  '), + L.appendChild(D); + var E = void 0; + 0 !== S + ? (L.insertAdjacentHTML( + 'beforeend', + this._renderLine(u, a, l.tabSize, S) + ), + (E = u.getLineContent(S))) + : (L.insertAdjacentHTML( + 'beforeend', + this._renderLine(o, i, s.tabSize, C) + ), + (E = o.getLineContent(C))), + 0 === E.length && (E = De('blankLine', 'blank')); + var T = ''; + switch (c) { + case 0: + T = De( + 'equalLine', + 'original {0}, modified {1}: {2}', + C, + S, + E + ); + break; + case 1: + T = De('insertLine', '+ modified {0}: {1}', S, E); + break; + case 2: + T = De('deleteLine', '- original {0}: {1}', C, E); + } + x.setAttribute('aria-label', T), e.appendChild(x); + } + }), + (t._renderLine = function (e, t, n, r) { + var i = e.getLineContent(r), + o = new Uint32Array(2); + (o[0] = i.length), (o[1] = 16793600); + var s = new Pa(o, i), + a = Ky.isBasicASCII(i, e.mightContainNonBasicASCII()), + u = Ky.containsRTL(i, a, e.mightContainRTL()); + return Hy( + new Fy( + t.fontInfo.isMonospace && + !t.viewInfo.disableMonospaceOptimizations, + t.fontInfo.canUseHalfwidthRightwardsArrow, + i, + !1, + a, + u, + 0, + s, + [], + n, + t.fontInfo.spaceWidth, + t.viewInfo.stopRenderingLineAfter, + t.viewInfo.renderWhitespace, + t.viewInfo.renderControlCharacters, + t.viewInfo.fontLigatures, + null + ) + ).html; + }), + t + ); + })(Rt); + Bd(function (e, t) { + var n = e.getColor(vC); + n && + t.addRule( + '.monaco-diff-editor .diff-review-line-number { color: ' + n + '; }' + ); + var r = e.getColor(Rc); + r && + t.addRule( + '.monaco-diff-editor .diff-review-shadow { box-shadow: ' + + r + + ' 0 -6px 6px -6px inset; }' + ); + }); + var XL = (function (e) { + function t() { + return ( + e.call(this, { + id: 'editor.action.diffReview.next', + label: De( + 'editor.action.diffReview.next', + 'Go to Next Difference' + ), + alias: 'Go to Next Difference', + precondition: Pn.has('isInDiffEditor'), + kbOpts: { kbExpr: null, primary: 65, weight: 100 }, + }) || this + ); + } + return ( + KL(t, e), + (t.prototype.run = function (e, t) { + var n = QL(e); + n && n.diffReviewNext(); + }), + t + ); + })(Ar), + JL = (function (e) { + function t() { + return ( + e.call(this, { + id: 'editor.action.diffReview.prev', + label: De( + 'editor.action.diffReview.prev', + 'Go to Previous Difference' + ), + alias: 'Go to Previous Difference', + precondition: Pn.has('isInDiffEditor'), + kbOpts: { kbExpr: null, primary: 1089, weight: 100 }, + }) || this + ); + } + return ( + KL(t, e), + (t.prototype.run = function (e, t) { + var n = QL(e); + n && n.diffReviewPrev(); + }), + t + ); + })(Ar); + function QL(e) { + for ( + var t = e.get(St).listDiffEditors(), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n]; + if (i.hasWidgetFocus()) return i; + } + return null; + } + Pr(XL), Pr(JL); + var ek = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + tk = function (e, t, n, r) { + return new (n || (n = Promise))(function (i, o) { + function s(e) { + try { + u(r.next(e)); + } catch (e) { + o(e); + } + } + function a(e) { + try { + u(r.throw(e)); + } catch (e) { + o(e); + } + } + function u(e) { + e.done + ? i(e.value) + : new n(function (t) { + t(e.value); + }).then(s, a); + } + u((r = r.apply(e, t || [])).next()); + }); + }, + nk = function (e, t) { + var n, + r, + i, + o, + s = { + label: 0, + sent: function () { + if (1 & i[0]) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }; + return ( + (o = { next: a(0), throw: a(1), return: a(2) }), + 'function' == typeof Symbol && + (o[Symbol.iterator] = function () { + return this; + }), + o + ); + function a(o) { + return function (a) { + return (function (o) { + if (n) throw new TypeError('Generator is already executing.'); + for (; s; ) + try { + if ( + ((n = 1), + r && + (i = + 2 & o[0] + ? r.return + : o[0] + ? r.throw || ((i = r.return) && i.call(r), 0) + : r.next) && + !(i = i.call(r, o[1])).done) + ) + return i; + switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) { + case 0: + case 1: + i = o; + break; + case 4: + return s.label++, { value: o[1], done: !1 }; + case 5: + s.label++, (r = o[1]), (o = [0]); + continue; + case 7: + (o = s.ops.pop()), s.trys.pop(); + continue; + default: + if ( + !(i = (i = s.trys).length > 0 && i[i.length - 1]) && + (6 === o[0] || 2 === o[0]) + ) { + s = 0; + continue; + } + if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) { + s.label = o[1]; + break; + } + if (6 === o[0] && s.label < i[1]) { + (s.label = i[1]), (i = o); + break; + } + if (i && s.label < i[2]) { + (s.label = i[2]), s.ops.push(o); + break; + } + i[2] && s.ops.pop(), s.trys.pop(); + continue; + } + o = t.call(e, s); + } catch (e) { + (o = [6, e]), (r = 0); + } finally { + n = i = 0; + } + if (5 & o[0]) throw o[1]; + return { value: o[0] ? o[1] : void 0, done: !0 }; + })([o, a]); + }; + } + }, + rk = (function (e) { + function t(t, n, r, i, o, s) { + var a = e.call(this) || this; + (a._viewZoneId = t), + (a._marginDomNode = n), + (a.editor = r), + (a.diff = i), + (a._contextMenuService = o), + (a._clipboardService = s), + (a._visibility = !1), + (a._marginDomNode.style.zIndex = '10'), + (a._diffActions = document.createElement('div')), + (a._diffActions.className = 'lightbulb-glyph'), + (a._diffActions.style.position = 'absolute'); + var u = r.getConfiguration().lineHeight, + l = r.getModel().getEOL(); + (a._diffActions.style.right = '0px'), + (a._diffActions.style.visibility = 'hidden'), + (a._diffActions.style.height = u + 'px'), + (a._diffActions.style.lineHeight = u + 'px'), + a._marginDomNode.appendChild(a._diffActions); + var c = []; + c.push( + new tn( + 'diff.clipboard.copyDeletedContent', + i.originalEndLineNumber > i.modifiedStartLineNumber + ? De( + 'diff.clipboard.copyDeletedLinesContent.label', + 'Copy deleted lines' + ) + : De( + 'diff.clipboard.copyDeletedLinesContent.single.label', + 'Copy deleted line' + ), + void 0, + !0, + function () { + return tk(a, void 0, void 0, function () { + return nk(this, function (e) { + switch (e.label) { + case 0: + return [ + 4, + this._clipboardService.writeText( + i.originalContent.join(l) + l + ), + ]; + case 1: + return e.sent(), [2]; + } + }); + }); + } + ) + ); + var d = 0, + h = void 0; + return ( + i.originalEndLineNumber > i.modifiedStartLineNumber && + ((h = new tn( + 'diff.clipboard.copyDeletedLineContent', + De( + 'diff.clipboard.copyDeletedLineContent.label', + 'Copy deleted line ({0})', + i.originalStartLineNumber + ), + void 0, + !0, + function () { + return tk(a, void 0, void 0, function () { + return nk(this, function (e) { + switch (e.label) { + case 0: + return [ + 4, + this._clipboardService.writeText( + i.originalContent[d] + ), + ]; + case 1: + return e.sent(), [2]; + } + }); + }); + } + )), + c.push(h)), + r.getConfiguration().readOnly || + c.push( + new tn( + 'diff.inline.revertChange', + De('diff.inline.revertChange.label', 'Revert this change'), + void 0, + !0, + function () { + return tk(a, void 0, void 0, function () { + var e; + return nk(this, function (t) { + return ( + 0 === i.modifiedEndLineNumber + ? ((e = r + .getModel() + .getLineMaxColumn(i.modifiedStartLineNumber)), + r.executeEdits('diffEditor', [ + { + range: new Fr( + i.modifiedStartLineNumber, + e, + i.modifiedStartLineNumber, + e + ), + text: l + i.originalContent.join(l), + }, + ])) + : ((e = r + .getModel() + .getLineMaxColumn(i.modifiedEndLineNumber)), + r.executeEdits('diffEditor', [ + { + range: new Fr( + i.modifiedStartLineNumber, + 1, + i.modifiedEndLineNumber, + e + ), + text: i.originalContent.join(l), + }, + ])), + [2] + ); + }); + }); + } + ) + ), + a._register( + Gh(a._diffActions, 'mousedown', function (e) { + var t = ff(a._diffActions), + n = t.top, + r = t.height, + o = Math.floor(u / 3); + e.preventDefault(), + a._contextMenuService.showContextMenu({ + getAnchor: function () { + return { x: e.posx, y: n + r + o }; + }, + getActions: function () { + return ( + h && + (h.label = De( + 'diff.clipboard.copyDeletedLineContent.label', + 'Copy deleted line ({0})', + i.originalStartLineNumber + d + )), + c + ); + }, + autoSelectFirstItem: !0, + }); + }) + ), + a._register( + r.onMouseMove(function (e) { + 8 === e.target.type || 5 === e.target.type + ? e.target.detail.viewZoneId === a._viewZoneId + ? ((a.visibility = !0), + (d = a._updateLightBulbPosition( + a._marginDomNode, + e.event.browserEvent.y, + u + ))) + : (a.visibility = !1) + : (a.visibility = !1); + }) + ), + a + ); + } + return ( + ek(t, e), + Object.defineProperty(t.prototype, 'visibility', { + get: function () { + return this._visibility; + }, + set: function (e) { + this._visibility !== e && + ((this._visibility = e), + (this._diffActions.style.visibility = e + ? 'visible' + : 'hidden')); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype._updateLightBulbPosition = function (e, t, n) { + var r = t - ff(e).top, + i = Math.floor(r / n), + o = i * n; + return (this._diffActions.style.top = o + 'px'), i; + }), + t + ); + })(Rt), + ik = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ok = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + sk = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + ak = (function () { + function e(e, t) { + (this._contextMenuService = e), + (this._clipboardService = t), + (this._zones = []), + (this.inlineDiffMargins = []), + (this._zonesMap = {}), + (this._decorations = []); + } + return ( + (e.prototype.getForeignViewZones = function (e) { + var t = this; + return e.filter(function (e) { + return !t._zonesMap[String(e.id)]; + }); + }), + (e.prototype.clean = function (e) { + var t = this; + this._zones.length > 0 && + e.changeViewZones(function (e) { + for (var n = 0, r = t._zones.length; n < r; n++) + e.removeZone(t._zones[n]); + }), + (this._zones = []), + (this._zonesMap = {}), + (this._decorations = e.deltaDecorations(this._decorations, [])); + }), + (e.prototype.apply = function (e, t, n, r) { + var i = this, + o = r ? qL.capture(e) : null; + e.changeViewZones(function (t) { + for (var r = 0, o = i._zones.length; r < o; r++) + t.removeZone(i._zones[r]); + r = 0; + for (var s = i.inlineDiffMargins.length; r < s; r++) + i.inlineDiffMargins[r].dispose(); + (i._zones = []), (i._zonesMap = {}), (i.inlineDiffMargins = []); + r = 0; + for (var a = n.zones.length; r < a; r++) { + var u = n.zones[r]; + u.suppressMouseDown = !1; + var l = t.addZone(u); + i._zones.push(l), + (i._zonesMap[String(l)] = !0), + n.zones[r].diff && + u.marginDomNode && + i._clipboardService && + i.inlineDiffMargins.push( + new rk( + l, + u.marginDomNode, + e, + n.zones[r].diff, + i._contextMenuService, + i._clipboardService + ) + ); + } + }), + o && o.restore(e), + (this._decorations = e.deltaDecorations( + this._decorations, + n.decorations + )), + t && t.setZones(n.overviewZones); + }), + e + ); + })(), + uk = 0, + lk = (function (e) { + function t(n, r, i, o, s, a, u, l, c, d) { + var h = e.call(this) || this; + (h._onDidDispose = h._register(new Gt())), + (h.onDidDispose = h._onDidDispose.event), + (h._onDidUpdateDiff = h._register(new Gt())), + (h.onDidUpdateDiff = h._onDidUpdateDiff.event), + (h._lastOriginalWarning = null), + (h._lastModifiedWarning = null), + (h._editorWorkerService = o), + (h._codeEditorService = u), + (h._contextKeyService = h._register(s.createScoped(n))), + h._contextKeyService.createKey('isInDiffEditor', !0), + (h._themeService = l), + (h._notificationService = c), + (h.id = ++uk), + (h._domElement = n), + (r = r || {}), + (h._renderSideBySide = !0), + void 0 !== r.renderSideBySide && + (h._renderSideBySide = r.renderSideBySide), + (h._ignoreTrimWhitespace = !0), + void 0 !== r.ignoreTrimWhitespace && + (h._ignoreTrimWhitespace = r.ignoreTrimWhitespace), + (h._renderIndicators = !0), + void 0 !== r.renderIndicators && + (h._renderIndicators = r.renderIndicators), + (h._originalIsEditable = !1), + void 0 !== r.originalEditable && + (h._originalIsEditable = Boolean(r.originalEditable)), + (h._updateDecorationsRunner = h._register( + new Os(function () { + return h._updateDecorations(); + }, 0) + )), + (h._containerDomElement = document.createElement('div')), + (h._containerDomElement.className = t._getClassName( + h._themeService.getTheme(), + h._renderSideBySide + )), + (h._containerDomElement.style.position = 'relative'), + (h._containerDomElement.style.height = '100%'), + h._domElement.appendChild(h._containerDomElement), + (h._overviewViewportDomElement = Mp(document.createElement('div'))), + h._overviewViewportDomElement.setClassName('diffViewport'), + h._overviewViewportDomElement.setPosition('absolute'), + (h._overviewDomElement = document.createElement('div')), + (h._overviewDomElement.className = 'diffOverview'), + (h._overviewDomElement.style.position = 'absolute'), + h._overviewDomElement.appendChild( + h._overviewViewportDomElement.domNode + ), + h._register( + Gh(h._overviewDomElement, 'mousedown', function (e) { + h.modifiedEditor.delegateVerticalScrollbarMouseDown(e); + }) + ), + h._containerDomElement.appendChild(h._overviewDomElement), + (h._originalDomNode = document.createElement('div')), + (h._originalDomNode.className = 'editor original'), + (h._originalDomNode.style.position = 'absolute'), + (h._originalDomNode.style.height = '100%'), + h._containerDomElement.appendChild(h._originalDomNode), + (h._modifiedDomNode = document.createElement('div')), + (h._modifiedDomNode.className = 'editor modified'), + (h._modifiedDomNode.style.position = 'absolute'), + (h._modifiedDomNode.style.height = '100%'), + h._containerDomElement.appendChild(h._modifiedDomNode), + (h._beginUpdateDecorationsTimeout = -1), + (h._currentlyChangingViewZones = !1), + (h._diffComputationToken = 0), + (h._originalEditorState = new ak(d, i)), + (h._modifiedEditorState = new ak(d, i)), + (h._isVisible = !0), + (h._isHandlingScrollEvent = !1), + (h._width = 0), + (h._height = 0), + (h._reviewHeight = 0), + (h._diffComputationResult = null); + var f = h._contextKeyService.createScoped(); + f.createKey('isInDiffLeftEditor', !0); + var p = new bL(); + p.set(qn, f); + var g = a.createChild(p), + m = h._contextKeyService.createScoped(); + m.createKey('isInDiffRightEditor', !0); + var _ = new bL(); + _.set(qn, m); + var y = a.createChild(_); + return ( + (h.originalEditor = h._createLeftHandSideEditor(r, g)), + (h.modifiedEditor = h._createRightHandSideEditor(r, y)), + (h._originalOverviewRuler = null), + (h._modifiedOverviewRuler = null), + (h._reviewPane = new ZL(h)), + h._containerDomElement.appendChild(h._reviewPane.domNode.domNode), + h._containerDomElement.appendChild(h._reviewPane.shadow.domNode), + h._containerDomElement.appendChild( + h._reviewPane.actionBarContainer.domNode + ), + r.automaticLayout + ? ((h._measureDomElementToken = new Ns()), + h._measureDomElementToken.cancelAndSet(function () { + return h._measureDomElement(!1); + }, 100)) + : (h._measureDomElementToken = null), + (h._enableSplitViewResizing = !0), + void 0 !== r.enableSplitViewResizing && + (h._enableSplitViewResizing = r.enableSplitViewResizing), + h._renderSideBySide + ? h._setStrategy( + new gk(h._createDataSource(), h._enableSplitViewResizing) + ) + : h._setStrategy( + new _k(h._createDataSource(), h._enableSplitViewResizing) + ), + h._register( + l.onThemeChange(function (e) { + h._strategy && + h._strategy.applyColors(e) && + h._updateDecorationsRunner.schedule(), + (h._containerDomElement.className = t._getClassName( + h._themeService.getTheme(), + h._renderSideBySide + )); + }) + ), + h._codeEditorService.addDiffEditor(h), + h + ); + } + return ( + ik(t, e), + (t.prototype.hasWidgetFocus = function () { + return yf(document.activeElement, this._domElement); + }), + (t.prototype.diffReviewNext = function () { + this._reviewPane.next(); + }), + (t.prototype.diffReviewPrev = function () { + this._reviewPane.prev(); + }), + (t._getClassName = function (e, t) { + var n = 'monaco-diff-editor monaco-editor-background '; + return t && (n += 'side-by-side '), (n += Fd(e.type)); + }), + (t.prototype._recreateOverviewRulers = function () { + this._originalOverviewRuler && + (this._overviewDomElement.removeChild( + this._originalOverviewRuler.getDomNode() + ), + this._originalOverviewRuler.dispose()), + this.originalEditor.hasModel() && + ((this._originalOverviewRuler = this.originalEditor.createOverviewRuler( + 'original diffOverviewRuler' + )), + this._overviewDomElement.appendChild( + this._originalOverviewRuler.getDomNode() + )), + this._modifiedOverviewRuler && + (this._overviewDomElement.removeChild( + this._modifiedOverviewRuler.getDomNode() + ), + this._modifiedOverviewRuler.dispose()), + this.modifiedEditor.hasModel() && + ((this._modifiedOverviewRuler = this.modifiedEditor.createOverviewRuler( + 'modified diffOverviewRuler' + )), + this._overviewDomElement.appendChild( + this._modifiedOverviewRuler.getDomNode() + )), + this._layoutOverviewRulers(); + }), + (t.prototype._createLeftHandSideEditor = function (e, t) { + var n = this, + r = this._createInnerEditor( + t, + this._originalDomNode, + this._adjustOptionsForLeftHandSide(e, this._originalIsEditable) + ); + return ( + this._register( + r.onDidScrollChange(function (e) { + n._isHandlingScrollEvent || + ((e.scrollTopChanged || + e.scrollLeftChanged || + e.scrollHeightChanged) && + ((n._isHandlingScrollEvent = !0), + n.modifiedEditor.setScrollPosition({ + scrollLeft: e.scrollLeft, + scrollTop: e.scrollTop, + }), + (n._isHandlingScrollEvent = !1), + n._layoutOverviewViewport())); + }) + ), + this._register( + r.onDidChangeViewZones(function () { + n._onViewZonesChanged(); + }) + ), + this._register( + r.onDidChangeModelContent(function () { + n._isVisible && n._beginUpdateDecorationsSoon(); + }) + ), + r + ); + }), + (t.prototype._createRightHandSideEditor = function (e, t) { + var n = this, + r = this._createInnerEditor( + t, + this._modifiedDomNode, + this._adjustOptionsForRightHandSide(e) + ); + return ( + this._register( + r.onDidScrollChange(function (e) { + n._isHandlingScrollEvent || + ((e.scrollTopChanged || + e.scrollLeftChanged || + e.scrollHeightChanged) && + ((n._isHandlingScrollEvent = !0), + n.originalEditor.setScrollPosition({ + scrollLeft: e.scrollLeft, + scrollTop: e.scrollTop, + }), + (n._isHandlingScrollEvent = !1), + n._layoutOverviewViewport())); + }) + ), + this._register( + r.onDidChangeViewZones(function () { + n._onViewZonesChanged(); + }) + ), + this._register( + r.onDidChangeConfiguration(function (e) { + e.fontInfo && r.getModel() && n._onViewZonesChanged(); + }) + ), + this._register( + r.onDidChangeModelContent(function () { + n._isVisible && n._beginUpdateDecorationsSoon(); + }) + ), + r + ); + }), + (t.prototype._createInnerEditor = function (e, t, n) { + return e.createInstance(EL, t, n, {}); + }), + (t.prototype.dispose = function () { + this._codeEditorService.removeDiffEditor(this), + -1 !== this._beginUpdateDecorationsTimeout && + (window.clearTimeout(this._beginUpdateDecorationsTimeout), + (this._beginUpdateDecorationsTimeout = -1)), + this._measureDomElementToken && + this._measureDomElementToken.dispose(), + this._cleanViewZonesAndDecorations(), + this._originalOverviewRuler && + (this._overviewDomElement.removeChild( + this._originalOverviewRuler.getDomNode() + ), + this._originalOverviewRuler.dispose()), + this._modifiedOverviewRuler && + (this._overviewDomElement.removeChild( + this._modifiedOverviewRuler.getDomNode() + ), + this._modifiedOverviewRuler.dispose()), + this._overviewDomElement.removeChild( + this._overviewViewportDomElement.domNode + ), + this._containerDomElement.removeChild(this._overviewDomElement), + this._containerDomElement.removeChild(this._originalDomNode), + this.originalEditor.dispose(), + this._containerDomElement.removeChild(this._modifiedDomNode), + this.modifiedEditor.dispose(), + this._strategy.dispose(), + this._containerDomElement.removeChild( + this._reviewPane.domNode.domNode + ), + this._containerDomElement.removeChild( + this._reviewPane.shadow.domNode + ), + this._containerDomElement.removeChild( + this._reviewPane.actionBarContainer.domNode + ), + this._reviewPane.dispose(), + this._domElement.removeChild(this._containerDomElement), + this._onDidDispose.fire(), + e.prototype.dispose.call(this); + }), + (t.prototype.getId = function () { + return this.getEditorType() + ':' + this.id; + }), + (t.prototype.getEditorType = function () { + return Tl.IDiffEditor; + }), + (t.prototype.getLineChanges = function () { + return this._diffComputationResult + ? this._diffComputationResult.changes + : null; + }), + (t.prototype.getOriginalEditor = function () { + return this.originalEditor; + }), + (t.prototype.getModifiedEditor = function () { + return this.modifiedEditor; + }), + (t.prototype.updateOptions = function (e) { + var n = !1; + void 0 !== e.renderSideBySide && + this._renderSideBySide !== e.renderSideBySide && + ((this._renderSideBySide = e.renderSideBySide), (n = !0)); + var r = !1; + void 0 !== e.ignoreTrimWhitespace && + this._ignoreTrimWhitespace !== e.ignoreTrimWhitespace && + ((this._ignoreTrimWhitespace = e.ignoreTrimWhitespace), (r = !0)), + void 0 !== e.renderIndicators && + this._renderIndicators !== e.renderIndicators && + ((this._renderIndicators = e.renderIndicators), (r = !0)), + r && this._beginUpdateDecorations(), + void 0 !== e.originalEditable && + (this._originalIsEditable = Boolean(e.originalEditable)), + this.modifiedEditor.updateOptions( + this._adjustOptionsForRightHandSide(e) + ), + this.originalEditor.updateOptions( + this._adjustOptionsForLeftHandSide(e, this._originalIsEditable) + ), + void 0 !== e.enableSplitViewResizing && + (this._enableSplitViewResizing = e.enableSplitViewResizing), + this._strategy.setEnableSplitViewResizing( + this._enableSplitViewResizing + ), + n && + (this._renderSideBySide + ? this._setStrategy( + new gk( + this._createDataSource(), + this._enableSplitViewResizing + ) + ) + : this._setStrategy( + new _k( + this._createDataSource(), + this._enableSplitViewResizing + ) + ), + (this._containerDomElement.className = t._getClassName( + this._themeService.getTheme(), + this._renderSideBySide + ))); + }), + (t.prototype.getModel = function () { + return { + original: this.originalEditor.getModel(), + modified: this.modifiedEditor.getModel(), + }; + }), + (t.prototype.setModel = function (e) { + if (e && (!e.original || !e.modified)) + throw new Error( + e.original + ? 'DiffEditorWidget.setModel: Modified model is null' + : 'DiffEditorWidget.setModel: Original model is null' + ); + this._cleanViewZonesAndDecorations(), + this.originalEditor.setModel(e ? e.original : null), + this.modifiedEditor.setModel(e ? e.modified : null), + this._updateDecorationsRunner.cancel(), + e && + (this.originalEditor.setScrollTop(0), + this.modifiedEditor.setScrollTop(0)), + (this._diffComputationResult = null), + this._diffComputationToken++, + e + ? (this._recreateOverviewRulers(), + this._beginUpdateDecorations()) + : (this._diffComputationResult = null), + this._layoutOverviewViewport(); + }), + (t.prototype.getDomNode = function () { + return this._domElement; + }), + (t.prototype.getVisibleColumnFromPosition = function (e) { + return this.modifiedEditor.getVisibleColumnFromPosition(e); + }), + (t.prototype.getPosition = function () { + return this.modifiedEditor.getPosition(); + }), + (t.prototype.setPosition = function (e) { + this.modifiedEditor.setPosition(e); + }), + (t.prototype.revealLine = function (e, t) { + void 0 === t && (t = 0), this.modifiedEditor.revealLine(e, t); + }), + (t.prototype.revealLineInCenter = function (e, t) { + void 0 === t && (t = 0), + this.modifiedEditor.revealLineInCenter(e, t); + }), + (t.prototype.revealLineInCenterIfOutsideViewport = function (e, t) { + void 0 === t && (t = 0), + this.modifiedEditor.revealLineInCenterIfOutsideViewport(e, t); + }), + (t.prototype.revealPosition = function (e, t) { + void 0 === t && (t = 0), this.modifiedEditor.revealPosition(e, t); + }), + (t.prototype.revealPositionInCenter = function (e, t) { + void 0 === t && (t = 0), + this.modifiedEditor.revealPositionInCenter(e, t); + }), + (t.prototype.revealPositionInCenterIfOutsideViewport = function ( + e, + t + ) { + void 0 === t && (t = 0), + this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e, t); + }), + (t.prototype.getSelection = function () { + return this.modifiedEditor.getSelection(); + }), + (t.prototype.getSelections = function () { + return this.modifiedEditor.getSelections(); + }), + (t.prototype.setSelection = function (e) { + this.modifiedEditor.setSelection(e); + }), + (t.prototype.setSelections = function (e) { + this.modifiedEditor.setSelections(e); + }), + (t.prototype.revealLines = function (e, t, n) { + void 0 === n && (n = 0), this.modifiedEditor.revealLines(e, t, n); + }), + (t.prototype.revealLinesInCenter = function (e, t, n) { + void 0 === n && (n = 0), + this.modifiedEditor.revealLinesInCenter(e, t, n); + }), + (t.prototype.revealLinesInCenterIfOutsideViewport = function ( + e, + t, + n + ) { + void 0 === n && (n = 0), + this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e, t, n); + }), + (t.prototype.revealRange = function (e, t, n, r) { + void 0 === t && (t = 0), + void 0 === n && (n = !1), + void 0 === r && (r = !0), + this.modifiedEditor.revealRange(e, t, n, r); + }), + (t.prototype.revealRangeInCenter = function (e, t) { + void 0 === t && (t = 0), + this.modifiedEditor.revealRangeInCenter(e, t); + }), + (t.prototype.revealRangeInCenterIfOutsideViewport = function (e, t) { + void 0 === t && (t = 0), + this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e, t); + }), + (t.prototype.revealRangeAtTop = function (e, t) { + void 0 === t && (t = 0), this.modifiedEditor.revealRangeAtTop(e, t); + }), + (t.prototype.getSupportedActions = function () { + return this.modifiedEditor.getSupportedActions(); + }), + (t.prototype.saveViewState = function () { + return { + original: this.originalEditor.saveViewState(), + modified: this.modifiedEditor.saveViewState(), + }; + }), + (t.prototype.restoreViewState = function (e) { + if (e.original && e.modified) { + var t = e; + this.originalEditor.restoreViewState(t.original), + this.modifiedEditor.restoreViewState(t.modified); + } + }), + (t.prototype.layout = function (e) { + this._measureDomElement(!1, e); + }), + (t.prototype.focus = function () { + this.modifiedEditor.focus(); + }), + (t.prototype.hasTextFocus = function () { + return ( + this.originalEditor.hasTextFocus() || + this.modifiedEditor.hasTextFocus() + ); + }), + (t.prototype.trigger = function (e, t, n) { + this.modifiedEditor.trigger(e, t, n); + }), + (t.prototype.changeDecorations = function (e) { + return this.modifiedEditor.changeDecorations(e); + }), + (t.prototype._measureDomElement = function (e, t) { + if ( + (t = t || { + width: this._containerDomElement.clientWidth, + height: this._containerDomElement.clientHeight, + }).width <= 0 + ) + return ( + (this._width = 0), + (this._height = 0), + void (this._reviewHeight = 0) + ); + (e || t.width !== this._width || t.height !== this._height) && + ((this._width = t.width), + (this._height = t.height), + (this._reviewHeight = this._reviewPane.isVisible() + ? this._height + : 0), + this._doLayout()); + }), + (t.prototype._layoutOverviewRulers = function () { + if (this._originalOverviewRuler && this._modifiedOverviewRuler) { + var e = t.ENTIRE_DIFF_OVERVIEW_WIDTH - 2 * t.ONE_OVERVIEW_WIDTH; + this.modifiedEditor.getLayoutInfo() && + (this._originalOverviewRuler.setLayout({ + top: 0, + width: t.ONE_OVERVIEW_WIDTH, + right: e + t.ONE_OVERVIEW_WIDTH, + height: this._height - this._reviewHeight, + }), + this._modifiedOverviewRuler.setLayout({ + top: 0, + right: 0, + width: t.ONE_OVERVIEW_WIDTH, + height: this._height - this._reviewHeight, + })); + } + }), + (t.prototype._onViewZonesChanged = function () { + this._currentlyChangingViewZones || + this._updateDecorationsRunner.schedule(); + }), + (t.prototype._beginUpdateDecorationsSoon = function () { + var e = this; + -1 !== this._beginUpdateDecorationsTimeout && + (window.clearTimeout(this._beginUpdateDecorationsTimeout), + (this._beginUpdateDecorationsTimeout = -1)), + (this._beginUpdateDecorationsTimeout = window.setTimeout( + function () { + return e._beginUpdateDecorations(); + }, + t.UPDATE_DIFF_DECORATIONS_DELAY + )); + }), + (t._equals = function (e, t) { + return (!e && !t) || (!(!e || !t) && e.toString() === t.toString()); + }), + (t.prototype._beginUpdateDecorations = function () { + var e = this; + this._beginUpdateDecorationsTimeout = -1; + var n = this.originalEditor.getModel(), + r = this.modifiedEditor.getModel(); + if (n && r) { + this._diffComputationToken++; + var i = this._diffComputationToken; + this._editorWorkerService.canComputeDiff(n.uri, r.uri) + ? this._editorWorkerService + .computeDiff(n.uri, r.uri, this._ignoreTrimWhitespace) + .then( + function (t) { + i === e._diffComputationToken && + n === e.originalEditor.getModel() && + r === e.modifiedEditor.getModel() && + ((e._diffComputationResult = t), + e._updateDecorationsRunner.schedule(), + e._onDidUpdateDiff.fire()); + }, + function (t) { + i === e._diffComputationToken && + n === e.originalEditor.getModel() && + r === e.modifiedEditor.getModel() && + ((e._diffComputationResult = null), + e._updateDecorationsRunner.schedule()); + } + ) + : (t._equals(n.uri, this._lastOriginalWarning) && + t._equals(r.uri, this._lastModifiedWarning)) || + ((this._lastOriginalWarning = n.uri), + (this._lastModifiedWarning = r.uri), + this._notificationService.warn( + De( + 'diff.tooLarge', + 'Cannot compare files because one file is too large.' + ) + )); + } + }), + (t.prototype._cleanViewZonesAndDecorations = function () { + this._originalEditorState.clean(this.originalEditor), + this._modifiedEditorState.clean(this.modifiedEditor); + }), + (t.prototype._updateDecorations = function () { + if ( + this.originalEditor.getModel() && + this.modifiedEditor.getModel() && + this._originalOverviewRuler && + this._modifiedOverviewRuler + ) { + var e = this._diffComputationResult + ? this._diffComputationResult.changes + : [], + t = this._originalEditorState.getForeignViewZones( + this.originalEditor.getWhitespaces() + ), + n = this._modifiedEditorState.getForeignViewZones( + this.modifiedEditor.getWhitespaces() + ), + r = this._strategy.getEditorsDiffDecorations( + e, + this._ignoreTrimWhitespace, + this._renderIndicators, + t, + n, + this.originalEditor, + this.modifiedEditor + ); + try { + (this._currentlyChangingViewZones = !0), + this._originalEditorState.apply( + this.originalEditor, + this._originalOverviewRuler, + r.original, + !1 + ), + this._modifiedEditorState.apply( + this.modifiedEditor, + this._modifiedOverviewRuler, + r.modified, + !0 + ); + } finally { + this._currentlyChangingViewZones = !1; + } + } + }), + (t.prototype._adjustOptionsForSubEditor = function (e) { + var t = $r(e || {}); + return ( + (t.inDiffEditor = !0), + (t.wordWrap = 'off'), + (t.wordWrapMinified = !1), + (t.automaticLayout = !1), + (t.scrollbar = t.scrollbar || {}), + (t.scrollbar.vertical = 'visible'), + (t.folding = !1), + (t.codeLens = !1), + (t.fixedOverflowWidgets = !0), + t.minimap || (t.minimap = {}), + (t.minimap.enabled = !1), + t + ); + }), + (t.prototype._adjustOptionsForLeftHandSide = function (e, t) { + var n = this._adjustOptionsForSubEditor(e); + return ( + (n.readOnly = !t), + (n.overviewRulerLanes = 1), + (n.extraEditorClassName = 'original-in-monaco-diff-editor'), + n + ); + }), + (t.prototype._adjustOptionsForRightHandSide = function (e) { + var n = this._adjustOptionsForSubEditor(e); + return ( + (n.revealHorizontalRightPadding = + Ci.viewInfo.revealHorizontalRightPadding + + t.ENTIRE_DIFF_OVERVIEW_WIDTH), + (n.scrollbar.verticalHasArrows = !1), + (n.extraEditorClassName = 'modified-in-monaco-diff-editor'), + n + ); + }), + (t.prototype.doLayout = function () { + this._measureDomElement(!0); + }), + (t.prototype._doLayout = function () { + var e = this._strategy.layout(); + (this._originalDomNode.style.width = e + 'px'), + (this._originalDomNode.style.left = '0px'), + (this._modifiedDomNode.style.width = this._width - e + 'px'), + (this._modifiedDomNode.style.left = e + 'px'), + (this._overviewDomElement.style.top = '0px'), + (this._overviewDomElement.style.height = + this._height - this._reviewHeight + 'px'), + (this._overviewDomElement.style.width = + t.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px'), + (this._overviewDomElement.style.left = + this._width - t.ENTIRE_DIFF_OVERVIEW_WIDTH + 'px'), + this._overviewViewportDomElement.setWidth( + t.ENTIRE_DIFF_OVERVIEW_WIDTH + ), + this._overviewViewportDomElement.setHeight(30), + this.originalEditor.layout({ + width: e, + height: this._height - this._reviewHeight, + }), + this.modifiedEditor.layout({ + width: this._width - e - t.ENTIRE_DIFF_OVERVIEW_WIDTH, + height: this._height - this._reviewHeight, + }), + (this._originalOverviewRuler || this._modifiedOverviewRuler) && + this._layoutOverviewRulers(), + this._reviewPane.layout( + this._height - this._reviewHeight, + this._width, + this._reviewHeight + ), + this._layoutOverviewViewport(); + }), + (t.prototype._layoutOverviewViewport = function () { + var e = this._computeOverviewViewport(); + e + ? (this._overviewViewportDomElement.setTop(e.top), + this._overviewViewportDomElement.setHeight(e.height)) + : (this._overviewViewportDomElement.setTop(0), + this._overviewViewportDomElement.setHeight(0)); + }), + (t.prototype._computeOverviewViewport = function () { + var e = this.modifiedEditor.getLayoutInfo(); + if (!e) return null; + var t = this.modifiedEditor.getScrollTop(), + n = this.modifiedEditor.getScrollHeight(), + r = Math.max(0, e.contentHeight), + i = Math.max(0, r - 0), + o = n > 0 ? i / n : 0; + return { + height: Math.max(0, Math.floor(e.contentHeight * o)), + top: Math.floor(t * o), + }; + }), + (t.prototype._createDataSource = function () { + var e = this; + return { + getWidth: function () { + return e._width; + }, + getHeight: function () { + return e._height - e._reviewHeight; + }, + getContainerDomNode: function () { + return e._containerDomElement; + }, + relayoutEditors: function () { + e._doLayout(); + }, + getOriginalEditor: function () { + return e.originalEditor; + }, + getModifiedEditor: function () { + return e.modifiedEditor; + }, + }; + }), + (t.prototype._setStrategy = function (e) { + this._strategy && this._strategy.dispose(), + (this._strategy = e), + e.applyColors(this._themeService.getTheme()), + this._diffComputationResult && this._updateDecorations(), + this._measureDomElement(!0); + }), + (t.prototype._getLineChangeAtOrBeforeLineNumber = function (e, t) { + var n = this._diffComputationResult + ? this._diffComputationResult.changes + : []; + if (0 === n.length || e < t(n[0])) return null; + for (var r = 0, i = n.length - 1; r < i; ) { + var o = Math.floor((r + i) / 2), + s = t(n[o]), + a = o + 1 <= i ? t(n[o + 1]) : Number.MAX_VALUE; + e < s ? (i = o - 1) : e >= a ? (r = o + 1) : ((r = o), (i = o)); + } + return n[r]; + }), + (t.prototype._getEquivalentLineForOriginalLineNumber = function (e) { + var t = this._getLineChangeAtOrBeforeLineNumber(e, function (e) { + return e.originalStartLineNumber; + }); + if (!t) return e; + var n = + t.originalStartLineNumber + + (t.originalEndLineNumber > 0 ? -1 : 0), + r = + t.modifiedStartLineNumber + + (t.modifiedEndLineNumber > 0 ? -1 : 0), + i = + t.originalEndLineNumber > 0 + ? t.originalEndLineNumber - t.originalStartLineNumber + 1 + : 0, + o = + t.modifiedEndLineNumber > 0 + ? t.modifiedEndLineNumber - t.modifiedStartLineNumber + 1 + : 0, + s = e - n; + return s <= i ? r + Math.min(s, o) : r + o - i + s; + }), + (t.prototype._getEquivalentLineForModifiedLineNumber = function (e) { + var t = this._getLineChangeAtOrBeforeLineNumber(e, function (e) { + return e.modifiedStartLineNumber; + }); + if (!t) return e; + var n = + t.originalStartLineNumber + + (t.originalEndLineNumber > 0 ? -1 : 0), + r = + t.modifiedStartLineNumber + + (t.modifiedEndLineNumber > 0 ? -1 : 0), + i = + t.originalEndLineNumber > 0 + ? t.originalEndLineNumber - t.originalStartLineNumber + 1 + : 0, + o = + t.modifiedEndLineNumber > 0 + ? t.modifiedEndLineNumber - t.modifiedStartLineNumber + 1 + : 0, + s = e - r; + return s <= o ? n + Math.min(s, i) : n + i - o + s; + }), + (t.prototype.getDiffLineInformationForOriginal = function (e) { + return this._diffComputationResult + ? { + equivalentLineNumber: this._getEquivalentLineForOriginalLineNumber( + e + ), + } + : null; + }), + (t.prototype.getDiffLineInformationForModified = function (e) { + return this._diffComputationResult + ? { + equivalentLineNumber: this._getEquivalentLineForModifiedLineNumber( + e + ), + } + : null; + }), + (t.ONE_OVERVIEW_WIDTH = 15), + (t.ENTIRE_DIFF_OVERVIEW_WIDTH = 30), + (t.UPDATE_DIFF_DECORATIONS_DELAY = 200), + (t = ok( + [ + sk(3, M_), + sk(4, qn), + sk(5, vt), + sk(6, St), + sk(7, Ad), + sk(8, sm), + sk(9, Jg), + ], + t + )) + ); + })(Rt), + ck = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n._dataSource = t), + (n._insertColor = null), + (n._removeColor = null), + n + ); + } + return ( + ik(t, e), + (t.prototype.applyColors = function (e) { + var t = (e.getColor(bd) || yd).transparent(2), + n = (e.getColor(wd) || vd).transparent(2), + r = !t.equals(this._insertColor) || !n.equals(this._removeColor); + return (this._insertColor = t), (this._removeColor = n), r; + }), + (t.prototype.getEditorsDiffDecorations = function ( + e, + t, + n, + r, + i, + o, + s + ) { + (i = i.sort(function (e, t) { + return e.afterLineNumber - t.afterLineNumber; + })), + (r = r.sort(function (e, t) { + return e.afterLineNumber - t.afterLineNumber; + })); + var a = this._getViewZones(e, r, i, o, s, n), + u = this._getOriginalEditorDecorations(e, t, n, o, s), + l = this._getModifiedEditorDecorations(e, t, n, o, s); + return { + original: { + decorations: u.decorations, + overviewZones: u.overviewZones, + zones: a.original, + }, + modified: { + decorations: l.decorations, + overviewZones: l.overviewZones, + zones: a.modified, + }, + }; + }), + t + ); + })(Rt), + dk = (function () { + function e(e) { + (this._source = e), + (this._index = -1), + (this.current = null), + this.advance(); + } + return ( + (e.prototype.advance = function () { + this._index++, + this._index < this._source.length + ? (this.current = this._source[this._index]) + : (this.current = null); + }), + e + ); + })(), + hk = (function () { + function e(e, t, n) { + (this.lineChanges = e), + (this.originalForeignVZ = t), + (this.modifiedForeignVZ = n); + } + return ( + (e.prototype.getViewZones = function () { + for ( + var t = [], + n = [], + r = 0, + i = 0, + o = 0, + s = 0, + a = 0, + u = 0, + l = function (e, t) { + return e.afterLineNumber - t.afterLineNumber; + }, + c = function (e, t) { + if (null === t.domNode && e.length > 0) { + var n = e[e.length - 1]; + if ( + n.afterLineNumber === t.afterLineNumber && + null === n.domNode + ) + return void (n.heightInLines += t.heightInLines); + } + e.push(t); + }, + d = new dk(this.modifiedForeignVZ), + h = new dk(this.originalForeignVZ), + f = 0, + p = this.lineChanges.length; + f <= p; + f++ + ) { + var g = f < p ? this.lineChanges[f] : null; + null !== g + ? ((o = + g.originalStartLineNumber + + (g.originalEndLineNumber > 0 ? -1 : 0)), + (s = + g.modifiedStartLineNumber + + (g.modifiedEndLineNumber > 0 ? -1 : 0)), + (i = + g.originalEndLineNumber > 0 + ? g.originalEndLineNumber - g.originalStartLineNumber + 1 + : 0), + (r = + g.modifiedEndLineNumber > 0 + ? g.modifiedEndLineNumber - g.modifiedStartLineNumber + 1 + : 0), + (a = Math.max( + g.originalStartLineNumber, + g.originalEndLineNumber + )), + (u = Math.max( + g.modifiedStartLineNumber, + g.modifiedEndLineNumber + ))) + : ((a = o += 1e7 + i), (u = s += 1e7 + r)); + for ( + var m, _ = [], y = []; + d.current && d.current.afterLineNumber <= u; + + ) { + var v = void 0; + v = + d.current.afterLineNumber <= s + ? o - s + d.current.afterLineNumber + : a; + var b = null; + g && + g.modifiedStartLineNumber <= d.current.afterLineNumber && + d.current.afterLineNumber <= g.modifiedEndLineNumber && + (b = this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()), + _.push({ + afterLineNumber: v, + heightInLines: d.current.heightInLines, + domNode: null, + marginDomNode: b, + }), + d.advance(); + } + for (; h.current && h.current.afterLineNumber <= a; ) { + v = void 0; + (v = + h.current.afterLineNumber <= o + ? s - o + h.current.afterLineNumber + : u), + y.push({ + afterLineNumber: v, + heightInLines: h.current.heightInLines, + domNode: null, + }), + h.advance(); + } + if (null !== g && vk(g)) + (m = this._produceOriginalFromDiff(g, i, r)) && _.push(m); + if (null !== g && bk(g)) + (m = this._produceModifiedFromDiff(g, i, r)) && y.push(m); + var w = 0, + C = 0; + for ( + _ = _.sort(l), y = y.sort(l); + w < _.length && C < y.length; + + ) { + var S = _[w], + x = y[C], + L = S.afterLineNumber - o, + k = x.afterLineNumber - s; + L < k + ? (c(t, S), w++) + : k < L + ? (c(n, x), C++) + : S.shouldNotShrink + ? (c(t, S), w++) + : x.shouldNotShrink + ? (c(n, x), C++) + : S.heightInLines >= x.heightInLines + ? ((S.heightInLines -= x.heightInLines), C++) + : ((x.heightInLines -= S.heightInLines), w++); + } + for (; w < _.length; ) c(t, _[w]), w++; + for (; C < y.length; ) c(n, y[C]), C++; + } + return { + original: e._ensureDomNodes(t), + modified: e._ensureDomNodes(n), + }; + }), + (e._ensureDomNodes = function (e) { + return e.map(function (e) { + var t; + return ( + e.domNode || + (e.domNode = + (((t = document.createElement('div')).className = + 'diagonal-fill'), + t)), + e + ); + }); + }), + e + ); + })(); + function fk(e, t, n, r, i) { + return { range: new Fr(e, t, n, r), options: i }; + } + var pk = { + charDelete: Vu.register({ className: 'char-delete' }), + charDeleteWholeLine: Vu.register({ + className: 'char-delete', + isWholeLine: !0, + }), + charInsert: Vu.register({ className: 'char-insert' }), + charInsertWholeLine: Vu.register({ + className: 'char-insert', + isWholeLine: !0, + }), + lineInsert: Vu.register({ + className: 'line-insert', + marginClassName: 'line-insert', + isWholeLine: !0, + }), + lineInsertWithSign: Vu.register({ + className: 'line-insert', + linesDecorationsClassName: 'insert-sign', + marginClassName: 'line-insert', + isWholeLine: !0, + }), + lineDelete: Vu.register({ + className: 'line-delete', + marginClassName: 'line-delete', + isWholeLine: !0, + }), + lineDeleteWithSign: Vu.register({ + className: 'line-delete', + linesDecorationsClassName: 'delete-sign', + marginClassName: 'line-delete', + isWholeLine: !0, + }), + lineDeleteMargin: Vu.register({ marginClassName: 'line-delete' }), + }, + gk = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return ( + (r._disableSash = !1 === n), + (r._sashRatio = null), + (r._sashPosition = null), + (r._startSashPosition = null), + (r._sash = r._register( + new pp(r._dataSource.getContainerDomNode(), r) + )), + r._disableSash && (r._sash.state = 0), + r._sash.onDidStart(function () { + return r.onSashDragStart(); + }), + r._sash.onDidChange(function (e) { + return r.onSashDrag(e); + }), + r._sash.onDidEnd(function () { + return r.onSashDragEnd(); + }), + r._sash.onDidReset(function () { + return r.onSashReset(); + }), + r + ); + } + return ( + ik(t, e), + (t.prototype.setEnableSplitViewResizing = function (e) { + var t = !1 === e; + this._disableSash !== t && + ((this._disableSash = t), + (this._sash.state = this._disableSash ? 0 : 3)); + }), + (t.prototype.layout = function (e) { + void 0 === e && (e = this._sashRatio); + var n = this._dataSource.getWidth() - lk.ENTIRE_DIFF_OVERVIEW_WIDTH, + r = Math.floor((e || 0.5) * n), + i = Math.floor(0.5 * n); + return ( + (r = this._disableSash ? i : r || i), + n > 2 * t.MINIMUM_EDITOR_WIDTH + ? (r < t.MINIMUM_EDITOR_WIDTH && (r = t.MINIMUM_EDITOR_WIDTH), + r > n - t.MINIMUM_EDITOR_WIDTH && + (r = n - t.MINIMUM_EDITOR_WIDTH)) + : (r = i), + this._sashPosition !== r && + ((this._sashPosition = r), this._sash.layout()), + this._sashPosition + ); + }), + (t.prototype.onSashDragStart = function () { + this._startSashPosition = this._sashPosition; + }), + (t.prototype.onSashDrag = function (e) { + var t = this._dataSource.getWidth() - lk.ENTIRE_DIFF_OVERVIEW_WIDTH, + n = this.layout( + (this._startSashPosition + (e.currentX - e.startX)) / t + ); + (this._sashRatio = n / t), this._dataSource.relayoutEditors(); + }), + (t.prototype.onSashDragEnd = function () { + this._sash.layout(); + }), + (t.prototype.onSashReset = function () { + (this._sashRatio = 0.5), + this._dataSource.relayoutEditors(), + this._sash.layout(); + }), + (t.prototype.getVerticalSashTop = function (e) { + return 0; + }), + (t.prototype.getVerticalSashLeft = function (e) { + return this._sashPosition; + }), + (t.prototype.getVerticalSashHeight = function (e) { + return this._dataSource.getHeight(); + }), + (t.prototype._getViewZones = function (e, t, n, r, i) { + return new mk(e, t, n).getViewZones(); + }), + (t.prototype._getOriginalEditorDecorations = function ( + e, + t, + n, + r, + i + ) { + for ( + var o = String(this._removeColor), + s = { decorations: [], overviewZones: [] }, + a = r.getModel(), + u = 0, + l = e.length; + u < l; + u++ + ) { + var c = e[u]; + if ( + bk(c) && + (s.decorations.push({ + range: new Fr( + c.originalStartLineNumber, + 1, + c.originalEndLineNumber, + Number.MAX_VALUE + ), + options: n ? pk.lineDeleteWithSign : pk.lineDelete, + }), + (vk(c) && c.charChanges) || + s.decorations.push( + fk( + c.originalStartLineNumber, + 1, + c.originalEndLineNumber, + Number.MAX_VALUE, + pk.charDeleteWholeLine + ) + ), + s.overviewZones.push( + new cx(c.originalStartLineNumber, c.originalEndLineNumber, o) + ), + c.charChanges) + ) + for (var d = 0, h = c.charChanges.length; d < h; d++) { + var f = c.charChanges[d]; + if (bk(f)) + if (t) + for ( + var p = f.originalStartLineNumber; + p <= f.originalEndLineNumber; + p++ + ) { + var g = void 0, + m = void 0; + (g = + p === f.originalStartLineNumber + ? f.originalStartColumn + : a.getLineFirstNonWhitespaceColumn(p)), + (m = + p === f.originalEndLineNumber + ? f.originalEndColumn + : a.getLineLastNonWhitespaceColumn(p)), + s.decorations.push(fk(p, g, p, m, pk.charDelete)); + } + else + s.decorations.push( + fk( + f.originalStartLineNumber, + f.originalStartColumn, + f.originalEndLineNumber, + f.originalEndColumn, + pk.charDelete + ) + ); + } + } + return s; + }), + (t.prototype._getModifiedEditorDecorations = function ( + e, + t, + n, + r, + i + ) { + for ( + var o = String(this._insertColor), + s = { decorations: [], overviewZones: [] }, + a = i.getModel(), + u = 0, + l = e.length; + u < l; + u++ + ) { + var c = e[u]; + if ( + vk(c) && + (s.decorations.push({ + range: new Fr( + c.modifiedStartLineNumber, + 1, + c.modifiedEndLineNumber, + Number.MAX_VALUE + ), + options: n ? pk.lineInsertWithSign : pk.lineInsert, + }), + (bk(c) && c.charChanges) || + s.decorations.push( + fk( + c.modifiedStartLineNumber, + 1, + c.modifiedEndLineNumber, + Number.MAX_VALUE, + pk.charInsertWholeLine + ) + ), + s.overviewZones.push( + new cx(c.modifiedStartLineNumber, c.modifiedEndLineNumber, o) + ), + c.charChanges) + ) + for (var d = 0, h = c.charChanges.length; d < h; d++) { + var f = c.charChanges[d]; + if (vk(f)) + if (t) + for ( + var p = f.modifiedStartLineNumber; + p <= f.modifiedEndLineNumber; + p++ + ) { + var g = void 0, + m = void 0; + (g = + p === f.modifiedStartLineNumber + ? f.modifiedStartColumn + : a.getLineFirstNonWhitespaceColumn(p)), + (m = + p === f.modifiedEndLineNumber + ? f.modifiedEndColumn + : a.getLineLastNonWhitespaceColumn(p)), + s.decorations.push(fk(p, g, p, m, pk.charInsert)); + } + else + s.decorations.push( + fk( + f.modifiedStartLineNumber, + f.modifiedStartColumn, + f.modifiedEndLineNumber, + f.modifiedEndColumn, + pk.charInsert + ) + ); + } + } + return s; + }), + (t.MINIMUM_EDITOR_WIDTH = 100), + t + ); + })(ck), + mk = (function (e) { + function t(t, n, r) { + return e.call(this, t, n, r) || this; + } + return ( + ik(t, e), + (t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion = function () { + return null; + }), + (t.prototype._produceOriginalFromDiff = function (e, t, n) { + return n > t + ? { + afterLineNumber: Math.max( + e.originalStartLineNumber, + e.originalEndLineNumber + ), + heightInLines: n - t, + domNode: null, + } + : null; + }), + (t.prototype._produceModifiedFromDiff = function (e, t, n) { + return t > n + ? { + afterLineNumber: Math.max( + e.modifiedStartLineNumber, + e.modifiedEndLineNumber + ), + heightInLines: t - n, + domNode: null, + } + : null; + }), + t + ); + })(hk), + _k = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return ( + (r.decorationsLeft = t + .getOriginalEditor() + .getLayoutInfo().decorationsLeft), + r._register( + t.getOriginalEditor().onDidLayoutChange(function (e) { + r.decorationsLeft !== e.decorationsLeft && + ((r.decorationsLeft = e.decorationsLeft), + t.relayoutEditors()); + }) + ), + r + ); + } + return ( + ik(t, e), + (t.prototype.setEnableSplitViewResizing = function (e) {}), + (t.prototype._getViewZones = function (e, t, n, r, i, o) { + return new yk(e, t, n, r, i, o).getViewZones(); + }), + (t.prototype._getOriginalEditorDecorations = function ( + e, + t, + n, + r, + i + ) { + for ( + var o = String(this._removeColor), + s = { decorations: [], overviewZones: [] }, + a = 0, + u = e.length; + a < u; + a++ + ) { + var l = e[a]; + bk(l) && + (s.decorations.push({ + range: new Fr( + l.originalStartLineNumber, + 1, + l.originalEndLineNumber, + Number.MAX_VALUE + ), + options: pk.lineDeleteMargin, + }), + s.overviewZones.push( + new cx(l.originalStartLineNumber, l.originalEndLineNumber, o) + )); + } + return s; + }), + (t.prototype._getModifiedEditorDecorations = function ( + e, + t, + n, + r, + i + ) { + for ( + var o = String(this._insertColor), + s = { decorations: [], overviewZones: [] }, + a = i.getModel(), + u = 0, + l = e.length; + u < l; + u++ + ) { + var c = e[u]; + if (vk(c)) + if ( + (s.decorations.push({ + range: new Fr( + c.modifiedStartLineNumber, + 1, + c.modifiedEndLineNumber, + Number.MAX_VALUE + ), + options: n ? pk.lineInsertWithSign : pk.lineInsert, + }), + s.overviewZones.push( + new cx( + c.modifiedStartLineNumber, + c.modifiedEndLineNumber, + o + ) + ), + c.charChanges) + ) + for (var d = 0, h = c.charChanges.length; d < h; d++) { + var f = c.charChanges[d]; + if (vk(f)) + if (t) + for ( + var p = f.modifiedStartLineNumber; + p <= f.modifiedEndLineNumber; + p++ + ) { + var g = void 0, + m = void 0; + (g = + p === f.modifiedStartLineNumber + ? f.modifiedStartColumn + : a.getLineFirstNonWhitespaceColumn(p)), + (m = + p === f.modifiedEndLineNumber + ? f.modifiedEndColumn + : a.getLineLastNonWhitespaceColumn(p)), + s.decorations.push(fk(p, g, p, m, pk.charInsert)); + } + else + s.decorations.push( + fk( + f.modifiedStartLineNumber, + f.modifiedStartColumn, + f.modifiedEndLineNumber, + f.modifiedEndColumn, + pk.charInsert + ) + ); + } + else + s.decorations.push( + fk( + c.modifiedStartLineNumber, + 1, + c.modifiedEndLineNumber, + Number.MAX_VALUE, + pk.charInsertWholeLine + ) + ); + } + return s; + }), + (t.prototype.layout = function () { + return Math.max(5, this.decorationsLeft); + }), + t + ); + })(ck), + yk = (function (e) { + function t(t, n, r, i, o, s) { + var a = e.call(this, t, n, r) || this; + return ( + (a.originalModel = i.getModel()), + (a.modifiedEditorConfiguration = o.getConfiguration()), + (a.modifiedEditorTabSize = o.getModel().getOptions().tabSize), + (a.renderIndicators = s), + a + ); + } + return ( + ik(t, e), + (t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion = function () { + var e = document.createElement('div'); + return (e.className = 'inline-added-margin-view-zone'), e; + }), + (t.prototype._produceOriginalFromDiff = function (e, t, n) { + var r = document.createElement('div'); + return ( + (r.className = 'inline-added-margin-view-zone'), + { + afterLineNumber: Math.max( + e.originalStartLineNumber, + e.originalEndLineNumber + ), + heightInLines: n, + domNode: document.createElement('div'), + marginDomNode: r, + } + ); + }), + (t.prototype._produceModifiedFromDiff = function (e, t, n) { + var r = []; + if (e.charChanges) + for (var i = 0, o = e.charChanges.length; i < o; i++) { + var s = e.charChanges[i]; + bk(s) && + r.push( + new Gy( + new Fr( + s.originalStartLineNumber, + s.originalStartColumn, + s.originalEndLineNumber, + s.originalEndColumn + ), + 'char-delete', + 0 + ) + ); + } + for ( + var a = My(1e4), + u = [], + l = this.modifiedEditorConfiguration.layoutInfo + .decorationsWidth, + c = this.modifiedEditorConfiguration.lineHeight, + d = this.modifiedEditorConfiguration.fontInfo + .typicalHalfwidthCharacterWidth, + h = 0, + f = [], + p = e.originalStartLineNumber; + p <= e.originalEndLineNumber; + p++ + ) + if ( + ((h = Math.max( + h, + this._renderOriginalLine( + p - e.originalStartLineNumber, + this.originalModel, + this.modifiedEditorConfiguration, + this.modifiedEditorTabSize, + p, + r, + a + ) + )), + f.push(this.originalModel.getLineContent(p)), + this.renderIndicators) + ) { + var g = p - e.originalStartLineNumber; + u = u.concat([ + '
', + ]); + } + h += this.modifiedEditorConfiguration.viewInfo + .scrollBeyondLastColumn; + var m = document.createElement('div'); + (m.className = 'view-lines line-delete'), + (m.innerHTML = a.build()), + iw.applyFontInfoSlow( + m, + this.modifiedEditorConfiguration.fontInfo + ); + var _ = document.createElement('div'); + return ( + (_.className = 'inline-deleted-margin-view-zone'), + (_.innerHTML = u.join('')), + iw.applyFontInfoSlow( + _, + this.modifiedEditorConfiguration.fontInfo + ), + { + shouldNotShrink: !0, + afterLineNumber: + 0 === e.modifiedEndLineNumber + ? e.modifiedStartLineNumber + : e.modifiedStartLineNumber - 1, + heightInLines: t, + minWidthInPx: h * d, + domNode: m, + marginDomNode: _, + diff: { + originalStartLineNumber: e.originalStartLineNumber, + originalEndLineNumber: e.originalEndLineNumber, + modifiedStartLineNumber: e.modifiedStartLineNumber, + modifiedEndLineNumber: e.modifiedEndLineNumber, + originalContent: f, + }, + } + ); + }), + (t.prototype._renderOriginalLine = function (e, t, n, r, i, o, s) { + var a = t.getLineTokens(i), + u = a.getLineContent(), + l = Ny.filter(o, i, 1, u.length + 1); + s.appendASCIIString('
'); + var c = Ky.isBasicASCII(u, t.mightContainNonBasicASCII()), + d = Ky.containsRTL(u, c, t.mightContainRTL()), + h = By( + new Fy( + n.fontInfo.isMonospace && + !n.viewInfo.disableMonospaceOptimizations, + n.fontInfo.canUseHalfwidthRightwardsArrow, + u, + !1, + c, + d, + 0, + a, + l, + r, + n.fontInfo.spaceWidth, + n.viewInfo.stopRenderingLineAfter, + n.viewInfo.renderWhitespace, + n.viewInfo.renderControlCharacters, + n.viewInfo.fontLigatures, + null + ), + s + ); + s.appendASCIIString('
'); + var f = h.characterMapping.getAbsoluteOffsets(); + return f.length > 0 ? f[f.length - 1] : 0; + }), + t + ); + })(hk); + function vk(e) { + return e.modifiedEndLineNumber > 0; + } + function bk(e) { + return e.originalEndLineNumber > 0; + } + Bd(function (e, t) { + var n = e.getColor(bd); + n && + (t.addRule( + '.monaco-editor .line-insert, .monaco-editor .char-insert { background-color: ' + + n + + '; }' + ), + t.addRule( + '.monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: ' + + n + + '; }' + ), + t.addRule( + '.monaco-editor .inline-added-margin-view-zone { background-color: ' + + n + + '; }' + )); + var r = e.getColor(wd); + r && + (t.addRule( + '.monaco-editor .line-delete, .monaco-editor .char-delete { background-color: ' + + r + + '; }' + ), + t.addRule( + '.monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: ' + + r + + '; }' + ), + t.addRule( + '.monaco-editor .inline-deleted-margin-view-zone { background-color: ' + + r + + '; }' + )); + var i = e.getColor(Cd); + i && + t.addRule( + '.monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px ' + + ('hc' === e.type ? 'dashed' : 'solid') + + ' ' + + i + + '; }' + ); + var o = e.getColor(Sd); + o && + t.addRule( + '.monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px ' + + ('hc' === e.type ? 'dashed' : 'solid') + + ' ' + + o + + '; }' + ); + var s = e.getColor(Rc); + s && + t.addRule( + '.monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px ' + + s + + '; }' + ); + var a = e.getColor(xd); + a && + t.addRule( + '.monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid ' + + a + + '; }' + ); + }); + var wk = wt('themeService'), + Ck = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Sk = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + xk = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + Lk = 0, + kk = !1; + function Mk() { + var e; + kk || + ((kk = !0), + (e = document.body), + ((Jf = document.createElement('div')).className = + 'monaco-aria-container'), + ((Qf = document.createElement('div')).className = 'monaco-alert'), + Qf.setAttribute('role', 'alert'), + Qf.setAttribute('aria-atomic', 'true'), + Jf.appendChild(Qf), + ((ep = document.createElement('div')).className = 'monaco-status'), + ep.setAttribute('role', 'status'), + ep.setAttribute('aria-atomic', 'true'), + Jf.appendChild(ep), + e.appendChild(Jf)); + } + var Dk = (function (e) { + function t(t, n, r, i, o, s, a, u, l, c) { + var d = this; + return ( + ((n = n || {}).ariaLabel = + n.ariaLabel || Lb.editorViewAccessibleLabel), + (n.ariaLabel = + n.ariaLabel + + ';' + + (ah + ? Lb.accessibilityHelpMessageIE + : Lb.accessibilityHelpMessage)), + ((d = + e.call(this, t, n, {}, r, i, o, s, u, l, c) || + this)._standaloneKeybindingService = a instanceof Bb ? a : null), + Mk(), + d + ); + } + return ( + Ck(t, e), + (t.prototype.addCommand = function (e, t, n) { + if (!this._standaloneKeybindingService) + return ( + console.warn( + 'Cannot add command because the editor is configured with an unrecognized KeybindingService' + ), + null + ); + var r = 'DYNAMIC_' + ++Lk, + i = Pn.deserialize(n); + return ( + this._standaloneKeybindingService.addDynamicKeybinding( + r, + e, + t, + i + ), + r + ); + }), + (t.prototype.createContextKey = function (e, t) { + return this._contextKeyService.createKey(e, t); + }), + (t.prototype.addAction = function (e) { + var t = this; + if ( + 'string' != typeof e.id || + 'string' != typeof e.label || + 'function' != typeof e.run + ) + throw new Error( + 'Invalid action descriptor, `id`, `label` and `run` are required properties!' + ); + if (!this._standaloneKeybindingService) + return ( + console.warn( + 'Cannot add keybinding because the editor is configured with an unrecognized KeybindingService' + ), + Rt.None + ); + var n = e.id, + r = e.label, + i = Pn.and( + Pn.equals('editorId', this.getId()), + Pn.deserialize(e.precondition) + ), + o = e.keybindings, + s = Pn.and(i, Pn.deserialize(e.keybindingContext)), + a = e.contextMenuGroupId || null, + u = e.contextMenuOrder || 0, + l = function () { + return Promise.resolve(e.run(t)); + }, + c = new Pt(), + d = this.getId() + ':' + n; + if ((c.add(rr.registerCommand(d, l)), a)) { + var h = { + command: { id: d, title: r }, + when: i, + group: a, + order: u, + }; + c.add(cr.appendMenuItem(7, h)); + } + if (Array.isArray(o)) + for (var f = 0, p = o; f < p.length; f++) { + var g = p[f]; + c.add( + this._standaloneKeybindingService.addDynamicKeybinding( + d, + g, + l, + s + ) + ); + } + var m = new Zx(d, r, r, i, l, this._contextKeyService); + return ( + (this._actions[n] = m), + c.add( + It(function () { + delete t._actions[n]; + }) + ), + c + ); + }), + (t = Sk( + [ + xk(2, vt), + xk(3, St), + xk(4, nr), + xk(5, qn), + xk(6, Qg), + xk(7, Ad), + xk(8, sm), + xk(9, wL), + ], + t + )) + ); + })(EL), + Ek = (function (e) { + function t(t, n, r, i, o, s, a, u, l, c, d, h, f) { + var p = this; + Kb(h, n, !1), + 'string' == typeof (n = n || {}).theme && c.setTheme(n.theme); + var g, + m = n.model; + if ( + (delete n.model, + ((p = + e.call(this, t, n, i, o, s, a, u, c, d, f) || + this)._contextViewService = l), + (p._configurationService = h), + p._register(r), + void 0 === m + ? ((g = self.monaco.editor.createModel( + n.value || '', + n.language || 'text/plain' + )), + (p._ownsModel = !0)) + : ((g = m), (p._ownsModel = !1)), + p._attachModel(g), + g) + ) { + var _ = { oldModelUrl: null, newModelUrl: g.uri }; + p._onDidChangeModel.fire(_); + } + return p; + } + return ( + Ck(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.updateOptions = function (t) { + Kb(this._configurationService, t, !1), + e.prototype.updateOptions.call(this, t); + }), + (t.prototype._attachModel = function (t) { + e.prototype._attachModel.call(this, t), + this._modelData && + this._contextViewService.setContainer( + this._modelData.view.domNode.domNode + ); + }), + (t.prototype._postDetachModelCleanup = function (t) { + e.prototype._postDetachModelCleanup.call(this, t), + t && this._ownsModel && (t.dispose(), (this._ownsModel = !1)); + }), + (t = Sk( + [ + xk(3, vt), + xk(4, St), + xk(5, nr), + xk(6, qn), + xk(7, Qg), + xk(8, Xg), + xk(9, wk), + xk(10, sm), + xk(11, qv), + xk(12, wL), + ], + t + )) + ); + })(Dk), + Tk = (function (e) { + function t(t, n, r, i, o, s, a, u, l, c, d, h, f, p) { + var g = this; + return ( + Kb(h, n, !0), + 'string' == typeof (n = n || {}).theme && + (n.theme = c.setTheme(n.theme)), + ((g = + e.call(this, t, n, p, u, o, i, l, c, d, f) || + this)._contextViewService = a), + (g._configurationService = h), + g._register(r), + g._contextViewService.setContainer(g._containerDomElement), + g + ); + } + return ( + Ck(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this); + }), + (t.prototype.updateOptions = function (t) { + Kb(this._configurationService, t, !0), + e.prototype.updateOptions.call(this, t); + }), + (t.prototype._createInnerEditor = function (e, t, n) { + return e.createInstance(Dk, t, n); + }), + (t.prototype.getOriginalEditor = function () { + return e.prototype.getOriginalEditor.call(this); + }), + (t.prototype.getModifiedEditor = function () { + return e.prototype.getModifiedEditor.call(this); + }), + (t.prototype.addCommand = function (e, t, n) { + return this.getModifiedEditor().addCommand(e, t, n); + }), + (t.prototype.createContextKey = function (e, t) { + return this.getModifiedEditor().createContextKey(e, t); + }), + (t.prototype.addAction = function (e) { + return this.getModifiedEditor().addAction(e); + }), + (t = Sk( + [ + xk(3, vt), + xk(4, qn), + xk(5, Qg), + xk(6, Xg), + xk(7, M_), + xk(8, St), + xk(9, wk), + xk(10, sm), + xk(11, qv), + xk(12, Jg), + xk(13, Ct(Zg)), + ], + t + )) + ); + })(lk), + Nk = wt('IWorkspaceEditService'), + Ok = wt('modeService'), + Ak = (function () { + function e(e) { + this._languageIdentifier = e; + } + return ( + (e.prototype.getId = function () { + return this._languageIdentifier.language; + }), + e + ); + })(), + Ik = 'text/plain', + Pk = 'application/unknown', + Rk = [], + Fk = [], + Yk = []; + function jk(e, t) { + void 0 === t && (t = !1); + var n = (function (e) { + return { + id: e.id, + mime: e.mime, + filename: e.filename, + extension: e.extension, + filepattern: e.filepattern, + firstline: e.firstline, + userConfigured: e.userConfigured, + filenameLowercase: e.filename ? e.filename.toLowerCase() : void 0, + extensionLowercase: e.extension ? e.extension.toLowerCase() : void 0, + filepatternLowercase: e.filepattern + ? e.filepattern.toLowerCase() + : void 0, + filepatternOnPath: + !!e.filepattern && e.filepattern.indexOf(fs.sep) >= 0, + }; + })(e); + Rk.push(n), + n.userConfigured ? Yk.push(n) : Fk.push(n), + t && + !n.userConfigured && + Rk.forEach(function (e) { + e.mime === n.mime || + e.userConfigured || + (n.extension && + e.extension === n.extension && + console.warn( + 'Overwriting extension <<' + + n.extension + + '>> to now point to mime <<' + + n.mime + + '>>' + ), + n.filename && + e.filename === n.filename && + console.warn( + 'Overwriting filename <<' + + n.filename + + '>> to now point to mime <<' + + n.mime + + '>>' + ), + n.filepattern && + e.filepattern === n.filepattern && + console.warn( + 'Overwriting filepattern <<' + + n.filepattern + + '>> to now point to mime <<' + + n.mime + + '>>' + ), + n.firstline && + e.firstline === n.firstline && + console.warn( + 'Overwriting firstline <<' + + n.firstline + + '>> to now point to mime <<' + + n.mime + + '>>' + )); + }); + } + function Bk(e, t) { + var n; + if (e) + switch (e.scheme) { + case Mh.file: + n = e.fsPath; + break; + case Mh.data: + n = a_.parseMetaData(e).get(a_.META_DATA_LABEL); + break; + default: + n = e.path; + } + if (!n) return [Pk]; + n = n.toLowerCase(); + var r = ys(n), + i = Wk(n, r, Yk); + if (i) return [i, Ik]; + var o = Wk(n, r, Fk); + if (o) return [o, Ik]; + if (t) { + var s = (function (e) { + On(e) && (e = e.substr(1)); + if (e.length > 0) + for (var t = Rk.length - 1; t >= 0; t--) { + var n = Rk[t]; + if (n.firstline) { + var r = e.match(n.firstline); + if (r && r.length > 0) return n.mime; + } + } + return null; + })(t); + if (s) return [s, Ik]; + } + return [Pk]; + } + function Wk(e, t, n) { + for (var r = null, i = null, o = null, s = n.length - 1; s >= 0; s--) { + var a = n[s]; + if (t === a.filenameLowercase) { + r = a; + break; + } + if ( + a.filepattern && + (!i || a.filepattern.length > i.filepattern.length) + ) { + var u = a.filepatternOnPath ? e : t; + ea(a.filepatternLowercase, u) && (i = a); + } + a.extension && + (!o || a.extension.length > o.extension.length) && + dn(t, a.extensionLowercase) && + (o = a); + } + return r ? r.mime : i ? i.mime : o ? o.mime : null; + } + var Hk = new ((function () { + function e() { + (this._onDidChangeLanguages = new Gt()), + (this.onDidChangeLanguages = this._onDidChangeLanguages.event), + (this._languages = []), + (this._dynamicLanguages = []); + } + return ( + (e.prototype.registerLanguage = function (e) { + this._languages.push(e), this._onDidChangeLanguages.fire(void 0); + }), + (e.prototype.getLanguages = function () { + return [].concat(this._languages).concat(this._dynamicLanguages); + }), + e + ); + })())(); + Lr.add('editor.modesRegistry', Hk); + var Vk = new la('plaintext', 1); + Hk.registerLanguage({ + id: 'plaintext', + extensions: ['.txt', '.gitignore'], + aliases: [De('plainText.alias', 'Plain Text'), 'text'], + mimetypes: ['text/plain'], + }), + ku.register(Vk, { + brackets: [ + ['(', ')'], + ['[', ']'], + ['{', '}'], + ], + }); + var zk = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Uk = Object.prototype.hasOwnProperty, + qk = (function (e) { + function t(t, n) { + void 0 === t && (t = !0), void 0 === n && (n = !1); + var r = e.call(this) || this; + return ( + (r._onDidChange = r._register(new Gt())), + (r.onDidChange = r._onDidChange.event), + (r._warnOnOverwrite = n), + (r._nextLanguageId2 = 1), + (r._languageIdToLanguage = []), + (r._languageToLanguageId = Object.create(null)), + (r._languages = {}), + (r._mimeTypesMap = {}), + (r._nameMap = {}), + (r._lowercaseNameMap = {}), + t && + (r._initializeFromRegistry(), + r._register( + Hk.onDidChangeLanguages(function (e) { + return r._initializeFromRegistry(); + }) + )), + r + ); + } + return ( + zk(t, e), + (t.prototype._initializeFromRegistry = function () { + (this._languages = {}), + (this._mimeTypesMap = {}), + (this._nameMap = {}), + (this._lowercaseNameMap = {}); + var e = Hk.getLanguages(); + this._registerLanguages(e); + }), + (t.prototype._registerLanguages = function (e) { + for (var t = this, n = 0, r = e; n < r.length; n++) { + var i = r[n]; + this._registerLanguage(i); + } + (this._mimeTypesMap = {}), + (this._nameMap = {}), + (this._lowercaseNameMap = {}), + Object.keys(this._languages).forEach(function (e) { + var n = t._languages[e]; + n.name && (t._nameMap[n.name] = n.identifier), + n.aliases.forEach(function (e) { + t._lowercaseNameMap[e.toLowerCase()] = n.identifier; + }), + n.mimetypes.forEach(function (e) { + t._mimeTypesMap[e] = n.identifier; + }); + }), + Lr.as(_v.Configuration).registerOverrideIdentifiers( + Hk.getLanguages().map(function (e) { + return e.id; + }) + ), + this._onDidChange.fire(); + }), + (t.prototype._getLanguageId = function (e) { + if (this._languageToLanguageId[e]) + return this._languageToLanguageId[e]; + var t = this._nextLanguageId2++; + return ( + (this._languageIdToLanguage[t] = e), + (this._languageToLanguageId[e] = t), + t + ); + }), + (t.prototype._registerLanguage = function (e) { + var t, + n = e.id; + if (Uk.call(this._languages, n)) t = this._languages[n]; + else { + var r = this._getLanguageId(n); + (t = { + identifier: new la(n, r), + name: null, + mimetypes: [], + aliases: [], + extensions: [], + filenames: [], + configurationFiles: [], + }), + (this._languages[n] = t); + } + this._mergeLanguage(t, e); + }), + (t.prototype._mergeLanguage = function (e, t) { + var n, + r, + i = t.id, + o = null; + if ( + (Array.isArray(t.mimetypes) && + t.mimetypes.length > 0 && + ((n = e.mimetypes).push.apply(n, t.mimetypes), + (o = t.mimetypes[0])), + o || ((o = 'text/x-' + i), e.mimetypes.push(o)), + Array.isArray(t.extensions)) + ) + for (var s = 0, a = t.extensions; s < a.length; s++) { + var u = a[s]; + jk({ id: i, mime: o, extension: u }, this._warnOnOverwrite), + e.extensions.push(u); + } + if (Array.isArray(t.filenames)) + for (var l = 0, c = t.filenames; l < c.length; l++) { + var d = c[l]; + jk({ id: i, mime: o, filename: d }, this._warnOnOverwrite), + e.filenames.push(d); + } + if (Array.isArray(t.filenamePatterns)) + for (var h = 0, f = t.filenamePatterns; h < f.length; h++) { + jk( + { id: i, mime: o, filepattern: f[h] }, + this._warnOnOverwrite + ); + } + if ('string' == typeof t.firstLine && t.firstLine.length > 0) { + var p = t.firstLine; + '^' !== p.charAt(0) && (p = '^' + p); + try { + var g = new RegExp(p); + ('^' !== (r = g).source && + '^$' !== r.source && + '$' !== r.source && + '^\\s*$' !== r.source && + r.exec('') && + 0 === r.lastIndex) || + jk({ id: i, mime: o, firstline: g }, this._warnOnOverwrite); + } catch (e) { + qe(e); + } + } + e.aliases.push(i); + var m = null; + if ( + (void 0 !== t.aliases && + Array.isArray(t.aliases) && + (m = 0 === t.aliases.length ? [null] : t.aliases), + null !== m) + ) + for (var _ = 0, y = m; _ < y.length; _++) { + var v = y[_]; + v && 0 !== v.length && e.aliases.push(v); + } + var b = null !== m && m.length > 0; + if (b && null === m[0]); + else { + var w = (b ? m[0] : null) || i; + (!b && e.name) || (e.name = w); + } + t.configuration && e.configurationFiles.push(t.configuration); + }), + (t.prototype.isRegisteredMode = function (e) { + return ( + !!Uk.call(this._mimeTypesMap, e) || Uk.call(this._languages, e) + ); + }), + (t.prototype.getModeIdForLanguageNameLowercase = function (e) { + return Uk.call(this._lowercaseNameMap, e) + ? this._lowercaseNameMap[e].language + : null; + }), + (t.prototype.extractModeIds = function (e) { + var t = this; + return e + ? e + .split(',') + .map(function (e) { + return e.trim(); + }) + .map(function (e) { + return Uk.call(t._mimeTypesMap, e) + ? t._mimeTypesMap[e].language + : e; + }) + .filter(function (e) { + return Uk.call(t._languages, e); + }) + : []; + }), + (t.prototype.getLanguageIdentifier = function (e) { + if ('vs.editor.nullMode' === e || 0 === e) return Wa; + var t; + if ('string' == typeof e) t = e; + else if (!(t = this._languageIdToLanguage[e])) return null; + return Uk.call(this._languages, t) + ? this._languages[t].identifier + : null; + }), + (t.prototype.getModeIdsFromFilepathOrFirstLine = function (e, t) { + if (!e && !t) return []; + var n = Bk(e, t); + return this.extractModeIds(n.join(',')); + }), + t + ); + })(Rt), + Kk = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Gk = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._onDidChange = r._register(new Gt())), + (r.onDidChange = r._onDidChange.event), + (r._selector = n), + (r.languageIdentifier = r._selector()), + r._register( + t(function () { + return r._evaluate(); + }) + ), + r + ); + } + return ( + Kk(t, e), + (t.prototype._evaluate = function () { + var e = this._selector(); + e.id !== this.languageIdentifier.id && + ((this.languageIdentifier = e), + this._onDidChange.fire(this.languageIdentifier)); + }), + t + ); + })(Rt), + $k = (function () { + function e(e) { + var t = this; + void 0 === e && (e = !1), + (this._onDidCreateMode = new Gt()), + (this.onDidCreateMode = this._onDidCreateMode.event), + (this._onLanguagesMaybeChanged = new Gt()), + (this.onLanguagesMaybeChanged = this._onLanguagesMaybeChanged.event), + (this._instantiatedModes = {}), + (this._registry = new qk(!0, e)), + this._registry.onDidChange(function () { + return t._onLanguagesMaybeChanged.fire(); + }); + } + return ( + (e.prototype.isRegisteredMode = function (e) { + return this._registry.isRegisteredMode(e); + }), + (e.prototype.getModeIdForLanguageName = function (e) { + return this._registry.getModeIdForLanguageNameLowercase(e); + }), + (e.prototype.getModeIdByFilepathOrFirstLine = function (e, t) { + var n = this._registry.getModeIdsFromFilepathOrFirstLine(e, t); + return n.length > 0 ? n[0] : null; + }), + (e.prototype.getModeId = function (e) { + var t = this._registry.extractModeIds(e); + return t.length > 0 ? t[0] : null; + }), + (e.prototype.getLanguageIdentifier = function (e) { + return this._registry.getLanguageIdentifier(e); + }), + (e.prototype.create = function (e) { + var t = this; + return new Gk(this.onLanguagesMaybeChanged, function () { + var n = t.getModeId(e); + return t._createModeAndGetLanguageIdentifier(n); + }); + }), + (e.prototype.createByFilepathOrFirstLine = function (e, t) { + var n = this; + return new Gk(this.onLanguagesMaybeChanged, function () { + var r = n.getModeIdByFilepathOrFirstLine(e, t); + return n._createModeAndGetLanguageIdentifier(r); + }); + }), + (e.prototype._createModeAndGetLanguageIdentifier = function (e) { + var t = this.getLanguageIdentifier(e || 'plaintext') || Wa; + return this._getOrCreateMode(t.language), t; + }), + (e.prototype.triggerMode = function (e) { + var t = this.getModeId(e); + this._getOrCreateMode(t || 'plaintext'); + }), + (e.prototype._getOrCreateMode = function (e) { + if (!this._instantiatedModes.hasOwnProperty(e)) { + var t = this.getLanguageIdentifier(e) || Wa; + (this._instantiatedModes[e] = new Ak(t)), + this._onDidCreateMode.fire(this._instantiatedModes[e]); + } + return this._instantiatedModes[e]; + }), + e + ); + })(), + Zk = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + Xk = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + Jk = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }; + function Qk(e) { + return e.toString(); + } + var eM = (function () { + function e(e, t, n) { + (this._modelEventListeners = new Pt()), + (this.model = e), + (this._languageSelection = null), + (this._languageSelectionListener = null), + this._modelEventListeners.add( + e.onWillDispose(function () { + return t(e); + }) + ), + this._modelEventListeners.add( + e.onDidChangeLanguage(function (t) { + return n(e, t); + }) + ); + } + return ( + (e.prototype._disposeLanguageSelection = function () { + this._languageSelectionListener && + (this._languageSelectionListener.dispose(), + (this._languageSelectionListener = null)), + this._languageSelection && + (this._languageSelection.dispose(), + (this._languageSelection = null)); + }), + (e.prototype.dispose = function () { + this._modelEventListeners.dispose(), + this._disposeLanguageSelection(); + }), + (e.prototype.setLanguage = function (e) { + var t = this; + this._disposeLanguageSelection(), + (this._languageSelection = e), + (this._languageSelectionListener = this._languageSelection.onDidChange( + function () { + return t.model.setMode(e.languageIdentifier); + } + )), + this.model.setMode(e.languageIdentifier); + }), + e + ); + })(), + tM = tt.c || tt.d ? 1 : 2, + nM = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._onModelAdded = r._register(new Gt())), + (r.onModelAdded = r._onModelAdded.event), + (r._onModelRemoved = r._register(new Gt())), + (r.onModelRemoved = r._onModelRemoved.event), + (r._onModelModeChanged = r._register(new Gt())), + (r.onModelModeChanged = r._onModelModeChanged.event), + (r._configurationService = t), + (r._resourcePropertiesService = n), + (r._models = {}), + (r._modelCreationOptionsByLanguageAndResource = Object.create( + null + )), + (r._configurationServiceSubscription = r._configurationService.onDidChangeConfiguration( + function (e) { + return r._updateModelOptions(); + } + )), + r._updateModelOptions(), + r + ); + } + return ( + Zk(t, e), + (t._readModelOptions = function (e, t) { + var n = wi.tabSize; + if (e.editor && void 0 !== e.editor.tabSize) { + var r = parseInt(e.editor.tabSize, 10); + isNaN(r) || (n = r), n < 1 && (n = 1); + } + var i = n; + if ( + e.editor && + void 0 !== e.editor.indentSize && + 'tabSize' !== e.editor.indentSize + ) { + var o = parseInt(e.editor.indentSize, 10); + isNaN(o) || (i = o), i < 1 && (i = 1); + } + var s = wi.insertSpaces; + e.editor && + void 0 !== e.editor.insertSpaces && + (s = + 'false' !== e.editor.insertSpaces && + Boolean(e.editor.insertSpaces)); + var a = tM, + u = e.eol; + '\r\n' === u ? (a = 2) : '\n' === u && (a = 1); + var l = wi.trimAutoWhitespace; + e.editor && + void 0 !== e.editor.trimAutoWhitespace && + (l = + 'false' !== e.editor.trimAutoWhitespace && + Boolean(e.editor.trimAutoWhitespace)); + var c = wi.detectIndentation; + e.editor && + void 0 !== e.editor.detectIndentation && + (c = + 'false' !== e.editor.detectIndentation && + Boolean(e.editor.detectIndentation)); + var d = wi.largeFileOptimizations; + return ( + e.editor && + void 0 !== e.editor.largeFileOptimizations && + (d = + 'false' !== e.editor.largeFileOptimizations && + Boolean(e.editor.largeFileOptimizations)), + { + isForSimpleWidget: t, + tabSize: n, + indentSize: i, + insertSpaces: s, + detectIndentation: c, + defaultEOL: a, + trimAutoWhitespace: l, + largeFileOptimizations: d, + } + ); + }), + (t.prototype.getCreationOptions = function (e, n, r) { + var i = this._modelCreationOptionsByLanguageAndResource[e + n]; + if (!i) { + var o = this._configurationService.getValue('editor', { + overrideIdentifier: e, + resource: n, + }), + s = this._resourcePropertiesService.getEOL(n, e); + (i = t._readModelOptions({ editor: o, eol: s }, r)), + (this._modelCreationOptionsByLanguageAndResource[e + n] = i); + } + return i; + }), + (t.prototype._updateModelOptions = function () { + var e = this._modelCreationOptionsByLanguageAndResource; + this._modelCreationOptionsByLanguageAndResource = Object.create( + null + ); + for ( + var n = Object.keys(this._models), r = 0, i = n.length; + r < i; + r++ + ) { + var o = n[r], + s = this._models[o], + a = s.model.getLanguageIdentifier().language, + u = s.model.uri, + l = e[a + u], + c = this.getCreationOptions(a, u, s.model.isForSimpleWidget); + t._setModelOptionsForModel(s.model, c, l); + } + }), + (t._setModelOptionsForModel = function (e, t, n) { + (n && + n.detectIndentation === t.detectIndentation && + n.insertSpaces === t.insertSpaces && + n.tabSize === t.tabSize && + n.indentSize === t.indentSize && + n.trimAutoWhitespace === t.trimAutoWhitespace) || + (t.detectIndentation + ? (e.detectIndentation(t.insertSpaces, t.tabSize), + e.updateOptions({ trimAutoWhitespace: t.trimAutoWhitespace })) + : e.updateOptions({ + insertSpaces: t.insertSpaces, + tabSize: t.tabSize, + indentSize: t.indentSize, + trimAutoWhitespace: t.trimAutoWhitespace, + })); + }), + (t.prototype.dispose = function () { + this._configurationServiceSubscription.dispose(), + e.prototype.dispose.call(this); + }), + (t.prototype._createModelData = function (e, t, n, r) { + var i = this, + o = this.getCreationOptions(t.language, n, r), + s = new Fu(e, o, t, n), + a = Qk(s.uri); + if (this._models[a]) + throw new Error( + 'ModelService: Cannot add model because it already exists!' + ); + var u = new eM( + s, + function (e) { + return i._onWillDispose(e); + }, + function (e, t) { + return i._onDidChangeLanguage(e, t); + } + ); + return (this._models[a] = u), u; + }), + (t.prototype.createModel = function (e, t, n, r) { + var i; + return ( + void 0 === r && (r = !1), + t + ? ((i = this._createModelData(e, t.languageIdentifier, n, r)), + this.setMode(i.model, t)) + : (i = this._createModelData(e, Vk, n, r)), + this._onModelAdded.fire(i.model), + i.model + ); + }), + (t.prototype.setMode = function (e, t) { + if (t) { + var n = this._models[Qk(e.uri)]; + n && n.setLanguage(t); + } + }), + (t.prototype.getModels = function () { + for ( + var e = [], t = Object.keys(this._models), n = 0, r = t.length; + n < r; + n++ + ) { + var i = t[n]; + e.push(this._models[i].model); + } + return e; + }), + (t.prototype.getModel = function (e) { + var t = Qk(e), + n = this._models[t]; + return n ? n.model : null; + }), + (t.prototype._onWillDispose = function (e) { + var t = Qk(e.uri), + n = this._models[t]; + delete this._models[t], + n.dispose(), + delete this._modelCreationOptionsByLanguageAndResource[ + e.getLanguageIdentifier().language + e.uri + ], + this._onModelRemoved.fire(e); + }), + (t.prototype._onDidChangeLanguage = function (e, n) { + var r = n.oldLanguage, + i = e.getLanguageIdentifier().language, + o = this.getCreationOptions(r, e.uri, e.isForSimpleWidget), + s = this.getCreationOptions(i, e.uri, e.isForSimpleWidget); + t._setModelOptionsForModel(e, s, o), + this._onModelModeChanged.fire({ model: e, oldModeId: r }); + }), + (t = Xk([Jk(0, qv), Jk(1, cy)], t)) + ); + })(Rt), + rM = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + iM = (function (e) { + function t() { + var t = e.call(this) || this; + return ( + (t._onCodeEditorAdd = t._register(new Gt())), + (t.onCodeEditorAdd = t._onCodeEditorAdd.event), + (t._onCodeEditorRemove = t._register(new Gt())), + (t.onCodeEditorRemove = t._onCodeEditorRemove.event), + (t._onDiffEditorAdd = t._register(new Gt())), + (t._onDiffEditorRemove = t._register(new Gt())), + (t._codeEditors = Object.create(null)), + (t._diffEditors = Object.create(null)), + t + ); + } + return ( + rM(t, e), + (t.prototype.addCodeEditor = function (e) { + (this._codeEditors[e.getId()] = e), this._onCodeEditorAdd.fire(e); + }), + (t.prototype.removeCodeEditor = function (e) { + delete this._codeEditors[e.getId()] && + this._onCodeEditorRemove.fire(e); + }), + (t.prototype.listCodeEditors = function () { + var e = this; + return Object.keys(this._codeEditors).map(function (t) { + return e._codeEditors[t]; + }); + }), + (t.prototype.addDiffEditor = function (e) { + (this._diffEditors[e.getId()] = e), this._onDiffEditorAdd.fire(e); + }), + (t.prototype.removeDiffEditor = function (e) { + delete this._diffEditors[e.getId()] && + this._onDiffEditorRemove.fire(e); + }), + (t.prototype.listDiffEditors = function () { + var e = this; + return Object.keys(this._diffEditors).map(function (t) { + return e._diffEditors[t]; + }); + }), + (t.prototype.getFocusedCodeEditor = function () { + for ( + var e = null, t = 0, n = this.listCodeEditors(); + t < n.length; + t++ + ) { + var r = n[t]; + if (r.hasTextFocus()) return r; + r.hasWidgetFocus() && (e = r); + } + return e; + }), + t + ); + })(Rt), + oM = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + sM = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + aM = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + uM = (function (e) { + function t(t, n) { + void 0 === n && (n = vf()); + var r = e.call(this) || this; + return ( + (r._decorationOptionProviders = new Map()), + (r._styleSheet = n), + (r._themeService = t), + r + ); + } + return ( + oM(t, e), + (t.prototype.registerDecorationType = function (e, t, n) { + var r = this._decorationOptionProviders.get(e); + if (!r) { + var i = { + styleSheet: this._styleSheet, + key: e, + parentTypeKey: n, + options: t || Object.create(null), + }; + (r = n + ? new lM(this._themeService, i) + : new cM(this._themeService, i)), + this._decorationOptionProviders.set(e, r); + } + r.refCount++; + }), + (t.prototype.removeDecorationType = function (e) { + var t = this._decorationOptionProviders.get(e); + t && + (t.refCount--, + t.refCount <= 0 && + (this._decorationOptionProviders.delete(e), + t.dispose(), + this.listCodeEditors().forEach(function (t) { + return t.removeDecorations(e); + }))); + }), + (t.prototype.resolveDecorationOptions = function (e, t) { + var n = this._decorationOptionProviders.get(e); + if (!n) throw new Error('Unknown decoration type key: ' + e); + return n.getOptions(this, t); + }), + (t = sM([aM(0, Ad)], t)) + ); + })(iM), + lM = (function () { + function e(e, t) { + (this._parentTypeKey = t.parentTypeKey), + (this.refCount = 0), + (this._beforeContentRules = new hM(3, t, e)), + (this._afterContentRules = new hM(4, t, e)); + } + return ( + (e.prototype.getOptions = function (e, t) { + var n = e.resolveDecorationOptions(this._parentTypeKey, !0); + return ( + this._beforeContentRules && + (n.beforeContentClassName = this._beforeContentRules.className), + this._afterContentRules && + (n.afterContentClassName = this._afterContentRules.className), + n + ); + }), + (e.prototype.dispose = function () { + this._beforeContentRules && + (this._beforeContentRules.dispose(), + (this._beforeContentRules = null)), + this._afterContentRules && + (this._afterContentRules.dispose(), + (this._afterContentRules = null)); + }), + e + ); + })(), + cM = (function () { + function e(e, t) { + var n = this; + (this._disposables = new Pt()), (this.refCount = 0); + var r = function (r) { + var i = new hM(r, t, e); + if ((n._disposables.add(i), i.hasContent)) return i.className; + }; + this.className = r(0); + var i, + o = + ((i = new hM(1, t, e)), + n._disposables.add(i), + i.hasContent + ? { + className: i.className, + hasLetterSpacing: i.hasLetterSpacing, + } + : null); + o && + ((this.inlineClassName = o.className), + (this.inlineClassNameAffectsLetterSpacing = o.hasLetterSpacing)), + (this.beforeContentClassName = r(3)), + (this.afterContentClassName = r(4)), + (this.glyphMarginClassName = r(2)); + var s = t.options; + (this.isWholeLine = Boolean(s.isWholeLine)), + (this.stickiness = s.rangeBehavior); + var a = + (s.light && s.light.overviewRulerColor) || s.overviewRulerColor, + u = (s.dark && s.dark.overviewRulerColor) || s.overviewRulerColor; + (void 0 === a && void 0 === u) || + (this.overviewRuler = { + color: a || u, + darkColor: u || a, + position: s.overviewRulerLane || gi.Center, + }); + } + return ( + (e.prototype.getOptions = function (e, t) { + return t + ? { + inlineClassName: this.inlineClassName, + beforeContentClassName: this.beforeContentClassName, + afterContentClassName: this.afterContentClassName, + className: this.className, + glyphMarginClassName: this.glyphMarginClassName, + isWholeLine: this.isWholeLine, + overviewRuler: this.overviewRuler, + stickiness: this.stickiness, + } + : this; + }), + (e.prototype.dispose = function () { + this._disposables.dispose(); + }), + e + ); + })(), + dM = { + color: 'color:{0} !important;', + opacity: 'opacity:{0};', + backgroundColor: 'background-color:{0};', + outline: 'outline:{0};', + outlineColor: 'outline-color:{0};', + outlineStyle: 'outline-style:{0};', + outlineWidth: 'outline-width:{0};', + border: 'border:{0};', + borderColor: 'border-color:{0};', + borderRadius: 'border-radius:{0};', + borderSpacing: 'border-spacing:{0};', + borderStyle: 'border-style:{0};', + borderWidth: 'border-width:{0};', + fontStyle: 'font-style:{0};', + fontWeight: 'font-weight:{0};', + textDecoration: 'text-decoration:{0};', + cursor: 'cursor:{0};', + letterSpacing: 'letter-spacing:{0};', + gutterIconPath: 'background:{0} center center no-repeat;', + gutterIconSize: 'background-size:{0};', + contentText: "content:'{0}';", + contentIconPath: 'content:{0};', + margin: 'margin:{0};', + width: 'width:{0};', + height: 'height:{0};', + }, + hM = (function () { + function e(e, t, n) { + var r = this; + (this._theme = n.getTheme()), + (this._ruleType = e), + (this._providerArgs = t), + (this._usesThemeColors = !1), + (this._hasContent = !1), + (this._hasLetterSpacing = !1); + var i = fM.getClassName(this._providerArgs.key, e); + this._providerArgs.parentTypeKey && + (i = + i + ' ' + fM.getClassName(this._providerArgs.parentTypeKey, e)), + (this._className = i), + (this._unThemedSelector = fM.getSelector( + this._providerArgs.key, + this._providerArgs.parentTypeKey, + e + )), + this._buildCSS(), + this._usesThemeColors + ? (this._themeListener = n.onThemeChange(function (e) { + (r._theme = n.getTheme()), r._removeCSS(), r._buildCSS(); + })) + : (this._themeListener = null); + } + return ( + (e.prototype.dispose = function () { + this._hasContent && (this._removeCSS(), (this._hasContent = !1)), + this._themeListener && + (this._themeListener.dispose(), (this._themeListener = null)); + }), + Object.defineProperty(e.prototype, 'hasContent', { + get: function () { + return this._hasContent; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'hasLetterSpacing', { + get: function () { + return this._hasLetterSpacing; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'className', { + get: function () { + return this._className; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype._buildCSS = function () { + var e, + t, + n, + r = this._providerArgs.options; + switch (this._ruleType) { + case 0: + (e = this.getCSSTextForModelDecorationClassName(r)), + (t = this.getCSSTextForModelDecorationClassName(r.light)), + (n = this.getCSSTextForModelDecorationClassName(r.dark)); + break; + case 1: + (e = this.getCSSTextForModelDecorationInlineClassName(r)), + (t = this.getCSSTextForModelDecorationInlineClassName( + r.light + )), + (n = this.getCSSTextForModelDecorationInlineClassName( + r.dark + )); + break; + case 2: + (e = this.getCSSTextForModelDecorationGlyphMarginClassName(r)), + (t = this.getCSSTextForModelDecorationGlyphMarginClassName( + r.light + )), + (n = this.getCSSTextForModelDecorationGlyphMarginClassName( + r.dark + )); + break; + case 3: + (e = this.getCSSTextForModelDecorationContentClassName( + r.before + )), + (t = this.getCSSTextForModelDecorationContentClassName( + r.light && r.light.before + )), + (n = this.getCSSTextForModelDecorationContentClassName( + r.dark && r.dark.before + )); + break; + case 4: + (e = this.getCSSTextForModelDecorationContentClassName( + r.after + )), + (t = this.getCSSTextForModelDecorationContentClassName( + r.light && r.light.after + )), + (n = this.getCSSTextForModelDecorationContentClassName( + r.dark && r.dark.after + )); + break; + default: + throw new Error('Unknown rule type: ' + this._ruleType); + } + var i = this._providerArgs.styleSheet.sheet, + o = !1; + e.length > 0 && + (i.insertRule(this._unThemedSelector + ' {' + e + '}', 0), + (o = !0)), + t.length > 0 && + (i.insertRule( + '.vs' + this._unThemedSelector + ' {' + t + '}', + 0 + ), + (o = !0)), + n.length > 0 && + (i.insertRule( + '.vs-dark' + + this._unThemedSelector + + ', .hc-black' + + this._unThemedSelector + + ' {' + + n + + '}', + 0 + ), + (o = !0)), + (this._hasContent = o); + }), + (e.prototype._removeCSS = function () { + !(function (e, t) { + if ((void 0 === t && (t = wf()), t)) { + for ( + var n = (function (e) { + return e && e.sheet && e.sheet.rules + ? e.sheet.rules + : e && e.sheet && e.sheet.cssRules + ? e.sheet.cssRules + : []; + })(t), + r = [], + i = 0; + i < n.length; + i++ + ) { + -1 !== n[i].selectorText.indexOf(e) && r.push(i); + } + for (i = r.length - 1; i >= 0; i--) t.sheet.deleteRule(r[i]); + } + })(this._unThemedSelector, this._providerArgs.styleSheet); + }), + (e.prototype.getCSSTextForModelDecorationClassName = function (e) { + if (!e) return ''; + var t = []; + return ( + this.collectCSSText(e, ['backgroundColor'], t), + this.collectCSSText( + e, + ['outline', 'outlineColor', 'outlineStyle', 'outlineWidth'], + t + ), + this.collectBorderSettingsCSSText(e, t), + t.join('') + ); + }), + (e.prototype.getCSSTextForModelDecorationInlineClassName = function ( + e + ) { + if (!e) return ''; + var t = []; + return ( + this.collectCSSText( + e, + [ + 'fontStyle', + 'fontWeight', + 'textDecoration', + 'cursor', + 'color', + 'opacity', + 'letterSpacing', + ], + t + ), + e.letterSpacing && (this._hasLetterSpacing = !0), + t.join('') + ); + }), + (e.prototype.getCSSTextForModelDecorationContentClassName = function ( + e + ) { + if (!e) return ''; + var t = []; + if (void 0 !== e) { + if ( + (this.collectBorderSettingsCSSText(e, t), + void 0 !== e.contentIconPath && + t.push( + sn(dM.contentIconPath, Rf(dt.revive(e.contentIconPath))) + ), + 'string' == typeof e.contentText) + ) { + var n = e.contentText + .match(/^.*$/m)[0] + .replace(/['\\]/g, '\\$&'); + t.push(sn(dM.contentText, n)); + } + this.collectCSSText( + e, + [ + 'fontStyle', + 'fontWeight', + 'textDecoration', + 'color', + 'opacity', + 'backgroundColor', + 'margin', + ], + t + ), + this.collectCSSText(e, ['width', 'height'], t) && + t.push('display:inline-block;'); + } + return t.join(''); + }), + (e.prototype.getCSSTextForModelDecorationGlyphMarginClassName = function ( + e + ) { + if (!e) return ''; + var t = []; + return ( + void 0 !== e.gutterIconPath && + (t.push(sn(dM.gutterIconPath, Rf(dt.revive(e.gutterIconPath)))), + void 0 !== e.gutterIconSize && + t.push(sn(dM.gutterIconSize, e.gutterIconSize))), + t.join('') + ); + }), + (e.prototype.collectBorderSettingsCSSText = function (e, t) { + return ( + !!this.collectCSSText( + e, + [ + 'border', + 'borderColor', + 'borderRadius', + 'borderSpacing', + 'borderStyle', + 'borderWidth', + ], + t + ) && (t.push(sn('box-sizing: border-box;')), !0) + ); + }), + (e.prototype.collectCSSText = function (e, t, n) { + for (var r = n.length, i = 0, o = t; i < o.length; i++) { + var s = o[i], + a = this.resolveValue(e[s]); + 'string' == typeof a && n.push(sn(dM[s], a)); + } + return n.length !== r; + }), + (e.prototype.resolveValue = function (e) { + if ((n = e) && 'string' == typeof n.id) { + this._usesThemeColors = !0; + var t = this._theme.getColor(e.id); + return t ? t.toString() : 'transparent'; + } + var n; + return e; + }), + e + ); + })(), + fM = (function () { + function e() {} + return ( + (e.getClassName = function (e, t) { + return 'ced-' + e + '-' + t; + }), + (e.getSelector = function (e, t, n) { + var r = '.monaco-editor .' + this.getClassName(e, n); + return ( + t && (r = r + '.' + this.getClassName(t, n)), + 3 === n ? (r += '::before') : 4 === n && (r += '::after'), + r + ); + }), + e + ); + })(), + pM = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + gM = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + pM(t, e), + (t.prototype.getActiveCodeEditor = function () { + return null; + }), + (t.prototype.openCodeEditor = function (e, t, n) { + return t + ? Promise.resolve(this.doOpenEditor(t, e)) + : Promise.resolve(null); + }), + (t.prototype.doOpenEditor = function (e, t) { + if (!this.findModel(e, t.resource)) { + if (t.resource) { + var n = t.resource.scheme; + if (n === Mh.http || n === Mh.https) + return Pf(t.resource.toString()), e; + } + return null; + } + var r = t.options ? t.options.selection : null; + if (r) + if ( + 'number' == typeof r.endLineNumber && + 'number' == typeof r.endColumn + ) + e.setSelection(r), e.revealRangeInCenter(r, 1); + else { + var i = { + lineNumber: r.startLineNumber, + column: r.startColumn, + }; + e.setPosition(i), e.revealPositionInCenter(i, 1); + } + return e; + }), + (t.prototype.findModel = function (e, t) { + var n = e.getModel(); + return n && n.uri.toString() !== t.toString() ? null : n; + }), + t + ); + })(uM), + mM = function (e, t, n, r, i) { + (this.token = e), + (this.index = t), + (this.fontStyle = n), + (this.foreground = r), + (this.background = i); + }; + function _M(e, t) { + e.sort(function (e, t) { + var n = (function (e, t) { + if (e < t) return -1; + if (e > t) return 1; + return 0; + })(e.token, t.token); + return 0 !== n ? n : e.index - t.index; + }); + for ( + var n = 0, r = '000000', i = 'ffffff'; + e.length >= 1 && '' === e[0].token; + + ) { + var o = e.shift(); + -1 !== o.fontStyle && (n = o.fontStyle), + null !== o.foreground && (r = o.foreground), + null !== o.background && (i = o.background); + } + for (var s = new vM(), a = 0, u = t; a < u.length; a++) { + var l = u[a]; + s.getId(l); + } + for ( + var c = s.getId(r), + d = s.getId(i), + h = new LM(n, c, d), + f = new kM(h), + p = 0, + g = e.length; + p < g; + p++ + ) { + var m = e[p]; + f.insert( + m.token, + m.fontStyle, + s.getId(m.foreground), + s.getId(m.background) + ); + } + return new bM(s, f); + } + var yM = /^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/, + vM = (function () { + function e() { + (this._lastColorId = 0), + (this._id2color = []), + (this._color2id = new Map()); + } + return ( + (e.prototype.getId = function (e) { + if (null === e) return 0; + var t = e.match(yM); + if (!t) throw new Error('Illegal value for token color: ' + e); + e = t[1].toUpperCase(); + var n = this._color2id.get(e); + return ( + n || + ((n = ++this._lastColorId), + this._color2id.set(e, n), + (this._id2color[n] = Nu.fromHex('#' + e)), + n) + ); + }), + (e.prototype.getColorMap = function () { + return this._id2color.slice(0); + }), + e + ); + })(), + bM = (function () { + function e(e, t) { + (this._colorMap = e), (this._root = t), (this._cache = new Map()); + } + return ( + (e.createFromRawTokenTheme = function (e, t) { + return this.createFromParsedTokenTheme( + (function (e) { + if (!e || !Array.isArray(e)) return []; + for (var t = [], n = 0, r = 0, i = e.length; r < i; r++) { + var o = e[r], + s = -1; + if ('string' == typeof o.fontStyle) { + s = 0; + for ( + var a = o.fontStyle.split(' '), u = 0, l = a.length; + u < l; + u++ + ) { + switch (a[u]) { + case 'italic': + s |= 1; + break; + case 'bold': + s |= 2; + break; + case 'underline': + s |= 4; + } + } + } + var c = null; + 'string' == typeof o.foreground && (c = o.foreground); + var d = null; + 'string' == typeof o.background && (d = o.background), + (t[n++] = new mM(o.token || '', r, s, c, d)); + } + return t; + })(e), + t + ); + }), + (e.createFromParsedTokenTheme = function (e, t) { + return _M(e, t); + }), + (e.prototype.getColorMap = function () { + return this._colorMap.getColorMap(); + }), + (e.prototype._match = function (e) { + return this._root.match(e); + }), + (e.prototype.match = function (e, t) { + var n = this._cache.get(t); + if (void 0 === n) { + var r = this._match(t), + i = (function (e) { + var t = e.match(wM); + if (!t) return 0; + switch (t[1]) { + case 'comment': + return 1; + case 'string': + return 2; + case 'regex': + case 'regexp': + return 4; + } + throw new Error('Unexpected match for standard token type!'); + })(t); + (n = (r.metadata | (i << 8)) >>> 0), this._cache.set(t, n); + } + return (n | (e << 0)) >>> 0; + }), + e + ); + })(), + wM = /\b(comment|string|regex|regexp)\b/; + var CM, + SM, + xM, + LM = (function () { + function e(e, t, n) { + (this._fontStyle = e), + (this._foreground = t), + (this._background = n), + (this.metadata = + ((this._fontStyle << 11) | + (this._foreground << 14) | + (this._background << 23)) >>> + 0); + } + return ( + (e.prototype.clone = function () { + return new e(this._fontStyle, this._foreground, this._background); + }), + (e.prototype.acceptOverwrite = function (e, t, n) { + -1 !== e && (this._fontStyle = e), + 0 !== t && (this._foreground = t), + 0 !== n && (this._background = n), + (this.metadata = + ((this._fontStyle << 11) | + (this._foreground << 14) | + (this._background << 23)) >>> + 0); + }), + e + ); + })(), + kM = (function () { + function e(e) { + (this._mainRule = e), (this._children = new Map()); + } + return ( + (e.prototype.match = function (e) { + if ('' === e) return this._mainRule; + var t, + n, + r = e.indexOf('.'); + -1 === r + ? ((t = e), (n = '')) + : ((t = e.substring(0, r)), (n = e.substring(r + 1))); + var i = this._children.get(t); + return void 0 !== i ? i.match(n) : this._mainRule; + }), + (e.prototype.insert = function (t, n, r, i) { + if ('' !== t) { + var o, + s, + a = t.indexOf('.'); + -1 === a + ? ((o = t), (s = '')) + : ((o = t.substring(0, a)), (s = t.substring(a + 1))); + var u = this._children.get(o); + void 0 === u && + ((u = new e(this._mainRule.clone())), this._children.set(o, u)), + u.insert(s, n, r, i); + } else this._mainRule.acceptOverwrite(n, r, i); + }), + e + ); + })(); + var MM = { + base: 'vs', + inherit: !1, + rules: [ + { token: '', foreground: '000000', background: 'fffffe' }, + { token: 'invalid', foreground: 'cd3131' }, + { token: 'emphasis', fontStyle: 'italic' }, + { token: 'strong', fontStyle: 'bold' }, + { token: 'variable', foreground: '001188' }, + { token: 'variable.predefined', foreground: '4864AA' }, + { token: 'constant', foreground: 'dd0000' }, + { token: 'comment', foreground: '008000' }, + { token: 'number', foreground: '09885A' }, + { token: 'number.hex', foreground: '3030c0' }, + { token: 'regexp', foreground: '800000' }, + { token: 'annotation', foreground: '808080' }, + { token: 'type', foreground: '008080' }, + { token: 'delimiter', foreground: '000000' }, + { token: 'delimiter.html', foreground: '383838' }, + { token: 'delimiter.xml', foreground: '0000FF' }, + { token: 'tag', foreground: '800000' }, + { token: 'tag.id.pug', foreground: '4F76AC' }, + { token: 'tag.class.pug', foreground: '4F76AC' }, + { token: 'meta.scss', foreground: '800000' }, + { token: 'metatag', foreground: 'e00000' }, + { token: 'metatag.content.html', foreground: 'FF0000' }, + { token: 'metatag.html', foreground: '808080' }, + { token: 'metatag.xml', foreground: '808080' }, + { token: 'metatag.php', fontStyle: 'bold' }, + { token: 'key', foreground: '863B00' }, + { token: 'string.key.json', foreground: 'A31515' }, + { token: 'string.value.json', foreground: '0451A5' }, + { token: 'attribute.name', foreground: 'FF0000' }, + { token: 'attribute.value', foreground: '0451A5' }, + { token: 'attribute.value.number', foreground: '09885A' }, + { token: 'attribute.value.unit', foreground: '09885A' }, + { token: 'attribute.value.html', foreground: '0000FF' }, + { token: 'attribute.value.xml', foreground: '0000FF' }, + { token: 'string', foreground: 'A31515' }, + { token: 'string.html', foreground: '0000FF' }, + { token: 'string.sql', foreground: 'FF0000' }, + { token: 'string.yaml', foreground: '0451A5' }, + { token: 'keyword', foreground: '0000FF' }, + { token: 'keyword.json', foreground: '0451A5' }, + { token: 'keyword.flow', foreground: 'AF00DB' }, + { token: 'keyword.flow.scss', foreground: '0000FF' }, + { token: 'operator.scss', foreground: '666666' }, + { token: 'operator.sql', foreground: '778899' }, + { token: 'operator.swift', foreground: '666666' }, + { token: 'predefined.sql', foreground: 'FF00FF' }, + ], + colors: + ((CM = {}), + (CM[td] = '#FFFFFE'), + (CM[nd] = '#000000'), + (CM[ld] = '#E5EBF1'), + (CM[_C] = '#D3D3D3'), + (CM[yC] = '#939393'), + (CM[cd] = '#ADD6FF4D'), + CM), + }, + DM = { + base: 'vs-dark', + inherit: !1, + rules: [ + { token: '', foreground: 'D4D4D4', background: '1E1E1E' }, + { token: 'invalid', foreground: 'f44747' }, + { token: 'emphasis', fontStyle: 'italic' }, + { token: 'strong', fontStyle: 'bold' }, + { token: 'variable', foreground: '74B0DF' }, + { token: 'variable.predefined', foreground: '4864AA' }, + { token: 'variable.parameter', foreground: '9CDCFE' }, + { token: 'constant', foreground: '569CD6' }, + { token: 'comment', foreground: '608B4E' }, + { token: 'number', foreground: 'B5CEA8' }, + { token: 'number.hex', foreground: '5BB498' }, + { token: 'regexp', foreground: 'B46695' }, + { token: 'annotation', foreground: 'cc6666' }, + { token: 'type', foreground: '3DC9B0' }, + { token: 'delimiter', foreground: 'DCDCDC' }, + { token: 'delimiter.html', foreground: '808080' }, + { token: 'delimiter.xml', foreground: '808080' }, + { token: 'tag', foreground: '569CD6' }, + { token: 'tag.id.pug', foreground: '4F76AC' }, + { token: 'tag.class.pug', foreground: '4F76AC' }, + { token: 'meta.scss', foreground: 'A79873' }, + { token: 'meta.tag', foreground: 'CE9178' }, + { token: 'metatag', foreground: 'DD6A6F' }, + { token: 'metatag.content.html', foreground: '9CDCFE' }, + { token: 'metatag.html', foreground: '569CD6' }, + { token: 'metatag.xml', foreground: '569CD6' }, + { token: 'metatag.php', fontStyle: 'bold' }, + { token: 'key', foreground: '9CDCFE' }, + { token: 'string.key.json', foreground: '9CDCFE' }, + { token: 'string.value.json', foreground: 'CE9178' }, + { token: 'attribute.name', foreground: '9CDCFE' }, + { token: 'attribute.value', foreground: 'CE9178' }, + { token: 'attribute.value.number.css', foreground: 'B5CEA8' }, + { token: 'attribute.value.unit.css', foreground: 'B5CEA8' }, + { token: 'attribute.value.hex.css', foreground: 'D4D4D4' }, + { token: 'string', foreground: 'CE9178' }, + { token: 'string.sql', foreground: 'FF0000' }, + { token: 'keyword', foreground: '569CD6' }, + { token: 'keyword.flow', foreground: 'C586C0' }, + { token: 'keyword.json', foreground: 'CE9178' }, + { token: 'keyword.flow.scss', foreground: '569CD6' }, + { token: 'operator.scss', foreground: '909090' }, + { token: 'operator.sql', foreground: '778899' }, + { token: 'operator.swift', foreground: '909090' }, + { token: 'predefined.sql', foreground: 'FF00FF' }, + ], + colors: + ((SM = {}), + (SM[td] = '#1E1E1E'), + (SM[nd] = '#D4D4D4'), + (SM[ld] = '#3A3D41'), + (SM[_C] = '#404040'), + (SM[yC] = '#707070'), + (SM[cd] = '#ADD6FF26'), + SM), + }, + EM = { + base: 'hc-black', + inherit: !1, + rules: [ + { token: '', foreground: 'FFFFFF', background: '000000' }, + { token: 'invalid', foreground: 'f44747' }, + { token: 'emphasis', fontStyle: 'italic' }, + { token: 'strong', fontStyle: 'bold' }, + { token: 'variable', foreground: '1AEBFF' }, + { token: 'variable.parameter', foreground: '9CDCFE' }, + { token: 'constant', foreground: '569CD6' }, + { token: 'comment', foreground: '608B4E' }, + { token: 'number', foreground: 'FFFFFF' }, + { token: 'regexp', foreground: 'C0C0C0' }, + { token: 'annotation', foreground: '569CD6' }, + { token: 'type', foreground: '3DC9B0' }, + { token: 'delimiter', foreground: 'FFFF00' }, + { token: 'delimiter.html', foreground: 'FFFF00' }, + { token: 'tag', foreground: '569CD6' }, + { token: 'tag.id.pug', foreground: '4F76AC' }, + { token: 'tag.class.pug', foreground: '4F76AC' }, + { token: 'meta', foreground: 'D4D4D4' }, + { token: 'meta.tag', foreground: 'CE9178' }, + { token: 'metatag', foreground: '569CD6' }, + { token: 'metatag.content.html', foreground: '1AEBFF' }, + { token: 'metatag.html', foreground: '569CD6' }, + { token: 'metatag.xml', foreground: '569CD6' }, + { token: 'metatag.php', fontStyle: 'bold' }, + { token: 'key', foreground: '9CDCFE' }, + { token: 'string.key', foreground: '9CDCFE' }, + { token: 'string.value', foreground: 'CE9178' }, + { token: 'attribute.name', foreground: '569CD6' }, + { token: 'attribute.value', foreground: '3FF23F' }, + { token: 'string', foreground: 'CE9178' }, + { token: 'string.sql', foreground: 'FF0000' }, + { token: 'keyword', foreground: '569CD6' }, + { token: 'keyword.flow', foreground: 'C586C0' }, + { token: 'operator.sql', foreground: '778899' }, + { token: 'operator.swift', foreground: '909090' }, + { token: 'predefined.sql', foreground: 'FF00FF' }, + ], + colors: + ((xM = {}), + (xM[td] = '#000000'), + (xM[nd] = '#FFFFFF'), + (xM[_C] = '#FFFFFF'), + (xM[yC] = '#FFFFFF'), + xM), + }, + TM = 'vs', + NM = 'vs-dark', + OM = 'hc-black', + AM = Lr.as($l), + IM = Lr.as(Yd), + PM = (function () { + function e(e, t) { + this.themeData = t; + var n = t.base; + e.length > 0 + ? ((this.id = n + ' ' + e), (this.themeName = e)) + : ((this.id = n), (this.themeName = n)), + (this.colors = null), + (this.defaultColors = Object.create(null)), + (this._tokenTheme = null); + } + return ( + Object.defineProperty(e.prototype, 'base', { + get: function () { + return this.themeData.base; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.notifyBaseUpdated = function () { + this.themeData.inherit && + ((this.colors = null), (this._tokenTheme = null)); + }), + (e.prototype.getColors = function () { + if (!this.colors) { + var e = new Map(); + for (var t in this.themeData.colors) + e.set(t, Nu.fromHex(this.themeData.colors[t])); + if (this.themeData.inherit) { + var n = FM(this.themeData.base); + for (var t in n.colors) + e.has(t) || e.set(t, Nu.fromHex(n.colors[t])); + } + this.colors = e; + } + return this.colors; + }), + (e.prototype.getColor = function (e, t) { + var n = this.getColors().get(e); + return n || (!1 !== t ? this.getDefault(e) : void 0); + }), + (e.prototype.getDefault = function (e) { + var t = this.defaultColors[e]; + return ( + t || + ((t = AM.resolveDefaultColor(e, this)), + (this.defaultColors[e] = t), + t) + ); + }), + (e.prototype.defines = function (e) { + return Object.prototype.hasOwnProperty.call(this.getColors(), e); + }), + Object.defineProperty(e.prototype, 'type', { + get: function () { + switch (this.base) { + case TM: + return 'light'; + case OM: + return 'hc'; + default: + return 'dark'; + } + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'tokenTheme', { + get: function () { + if (!this._tokenTheme) { + var e = [], + t = []; + if (this.themeData.inherit) { + var n = FM(this.themeData.base); + (e = n.rules), + n.encodedTokensColors && (t = n.encodedTokensColors); + } + (e = e.concat(this.themeData.rules)), + this.themeData.encodedTokensColors && + (t = this.themeData.encodedTokensColors), + (this._tokenTheme = bM.createFromRawTokenTheme(e, t)); + } + return this._tokenTheme; + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(); + function RM(e) { + return e === TM || e === NM || e === OM; + } + function FM(e) { + switch (e) { + case TM: + return MM; + case NM: + return DM; + case OM: + return EM; + } + } + function YM(e) { + var t = FM(e); + return new PM(e, t); + } + var jM = (function () { + function e() { + (this.environment = Object.create(null)), + (this._onThemeChange = new Gt()), + (this._onIconThemeChange = new Gt()), + (this._knownThemes = new Map()), + this._knownThemes.set(TM, YM(TM)), + this._knownThemes.set(NM, YM(NM)), + this._knownThemes.set(OM, YM(OM)), + (this._styleElement = vf()), + (this._styleElement.className = 'monaco-colors'), + this.setTheme(TM); + } + return ( + Object.defineProperty(e.prototype, 'onThemeChange', { + get: function () { + return this._onThemeChange.event; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.defineTheme = function (e, t) { + if (!/^[a-z0-9\-]+$/i.test(e)) + throw new Error('Illegal theme name!'); + if (!RM(t.base) && !RM(e)) throw new Error('Illegal theme base!'); + this._knownThemes.set(e, new PM(e, t)), + RM(e) && + this._knownThemes.forEach(function (t) { + t.base === e && t.notifyBaseUpdated(); + }), + this._theme && this._theme.themeName === e && this.setTheme(e); + }), + (e.prototype.getTheme = function () { + return this._theme; + }), + (e.prototype.setTheme = function (e) { + var t, + n = this; + if ( + ((t = this._knownThemes.has(e) + ? this._knownThemes.get(e) + : this._knownThemes.get(TM)), + this._theme === t) + ) + return t.id; + this._theme = t; + var r = [], + i = {}, + o = { + addRule: function (e) { + i[e] || (r.push(e), (i[e] = !0)); + }, + }; + IM.getThemingParticipants().forEach(function (e) { + return e(t, o, n.environment); + }); + var s = t.tokenTheme.getColorMap(); + return ( + o.addRule( + (function (e) { + for (var t = [], n = 1, r = e.length; n < r; n++) { + var i = e[n]; + t[n] = '.mtk' + n + ' { color: ' + i + '; }'; + } + return ( + t.push('.mtki { font-style: italic; }'), + t.push('.mtkb { font-weight: bold; }'), + t.push( + '.mtku { text-decoration: underline; text-underline-position: under; }' + ), + t.join('\n') + ); + })(s) + ), + (this._styleElement.innerHTML = r.join('\n')), + Ia.setColorMap(s), + this._onThemeChange.fire(t), + t.id + ); + }), + (e.prototype.getIconTheme = function () { + return { + hasFileIcons: !1, + hasFolderIcons: !1, + hidesExplorerArrows: !1, + }; + }), + e + ); + })(), + BM = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + WM = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + HM = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + VM = 'data-keybinding-context', + zM = (function () { + function e(e, t) { + (this._id = e), + (this._parent = t), + (this._value = Object.create(null)), + (this._value._contextId = e); + } + return ( + (e.prototype.setValue = function (e, t) { + return this._value[e] !== t && ((this._value[e] = t), !0); + }), + (e.prototype.removeValue = function (e) { + return e in this._value && (delete this._value[e], !0); + }), + (e.prototype.getValue = function (e) { + var t = this._value[e]; + return void 0 === t && this._parent ? this._parent.getValue(e) : t; + }), + e + ); + })(), + UM = (function (e) { + function t() { + return e.call(this, -1, null) || this; + } + return ( + BM(t, e), + (t.prototype.setValue = function (e, t) { + return !1; + }), + (t.prototype.removeValue = function (e) { + return !1; + }), + (t.prototype.getValue = function (e) {}), + (t.INSTANCE = new t()), + t + ); + })(zM), + qM = (function (e) { + function t(t, n, r) { + var i = e.call(this, t, null) || this; + return ( + (i._configurationService = n), + (i._values = new Map()), + (i._listener = i._configurationService.onDidChangeConfiguration( + function (e) { + if (6 === e.source) { + var t = $n(i._values); + i._values.clear(), r.fire(new $M(t)); + } else { + for ( + var n = [], o = 0, s = e.affectedKeys; + o < s.length; + o++ + ) { + var a = 'config.' + s[o]; + i._values.has(a) && (i._values.delete(a), n.push(a)); + } + r.fire(new $M(n)); + } + } + )), + i + ); + } + return ( + BM(t, e), + (t.prototype.dispose = function () { + this._listener.dispose(); + }), + (t.prototype.getValue = function (n) { + if (0 !== n.indexOf(t._keyPrefix)) + return e.prototype.getValue.call(this, n); + if (this._values.has(n)) return this._values.get(n); + var r = n.substr(t._keyPrefix.length), + i = this._configurationService.getValue(r), + o = void 0; + switch (typeof i) { + case 'number': + case 'boolean': + case 'string': + o = i; + } + return this._values.set(n, o), o; + }), + (t.prototype.setValue = function (t, n) { + return e.prototype.setValue.call(this, t, n); + }), + (t.prototype.removeValue = function (t) { + return e.prototype.removeValue.call(this, t); + }), + (t._keyPrefix = 'config.'), + t + ); + })(zM), + KM = (function () { + function e(e, t, n) { + (this._service = e), + (this._key = t), + (this._defaultValue = n), + this.reset(); + } + return ( + (e.prototype.set = function (e) { + this._service.setContext(this._key, e); + }), + (e.prototype.reset = function () { + void 0 === this._defaultValue + ? this._service.removeContext(this._key) + : this._service.setContext(this._key, this._defaultValue); + }), + (e.prototype.get = function () { + return this._service.getContextKeyValue(this._key); + }), + e + ); + })(), + GM = (function () { + function e(e) { + this.key = e; + } + return ( + (e.prototype.affectsSome = function (e) { + return e.has(this.key); + }), + e + ); + })(), + $M = (function () { + function e(e) { + this.keys = e; + } + return ( + (e.prototype.affectsSome = function (e) { + for (var t = 0, n = this.keys; t < n.length; t++) { + var r = n[t]; + if (e.has(r)) return !0; + } + return !1; + }), + e + ); + })(), + ZM = (function () { + function e(e) { + this.events = e; + } + return ( + (e.prototype.affectsSome = function (e) { + for (var t = 0, n = this.events; t < n.length; t++) { + if (n[t].affectsSome(e)) return !0; + } + return !1; + }), + e + ); + })(), + XM = (function () { + function e(e) { + (this._onDidChangeContext = new $t({ + merge: function (e) { + return new ZM(e); + }, + })), + (this._isDisposed = !1), + (this._myContextId = e); + } + return ( + (e.prototype.createKey = function (e, t) { + if (this._isDisposed) + throw new Error('AbstractContextKeyService has been disposed'); + return new KM(this, e, t); + }), + Object.defineProperty(e.prototype, 'onDidChangeContext', { + get: function () { + return this._onDidChangeContext.event; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.bufferChangeEvents = function (e) { + this._onDidChangeContext.pause(); + try { + e(); + } finally { + this._onDidChangeContext.resume(); + } + }), + (e.prototype.createScoped = function (e) { + if (this._isDisposed) + throw new Error('AbstractContextKeyService has been disposed'); + return new QM(this, e); + }), + (e.prototype.contextMatchesRules = function (e) { + if (this._isDisposed) + throw new Error('AbstractContextKeyService has been disposed'); + var t = this.getContextValuesContainer(this._myContextId); + return rb.contextMatchesRules(t, e); + }), + (e.prototype.getContextKeyValue = function (e) { + if (!this._isDisposed) + return this.getContextValuesContainer(this._myContextId).getValue( + e + ); + }), + (e.prototype.setContext = function (e, t) { + if (!this._isDisposed) { + var n = this.getContextValuesContainer(this._myContextId); + n && n.setValue(e, t) && this._onDidChangeContext.fire(new GM(e)); + } + }), + (e.prototype.removeContext = function (e) { + this._isDisposed || + (this.getContextValuesContainer(this._myContextId).removeValue( + e + ) && + this._onDidChangeContext.fire(new GM(e))); + }), + (e.prototype.getContext = function (e) { + return this._isDisposed + ? UM.INSTANCE + : this.getContextValuesContainer( + (function (e) { + for (; e; ) { + if (e.hasAttribute(VM)) { + var t = e.getAttribute(VM); + return t ? parseInt(t, 10) : NaN; + } + e = e.parentElement; + } + return 0; + })(e) + ); + }), + e + ); + })(), + JM = (function (e) { + function t(t) { + var n = e.call(this, 0) || this; + (n._contexts = new Map()), + (n._toDispose = new Pt()), + (n._lastContextId = 0); + var r = new qM(n._myContextId, t, n._onDidChangeContext); + return n._contexts.set(n._myContextId, r), n._toDispose.add(r), n; + } + return ( + BM(t, e), + (t.prototype.dispose = function () { + (this._isDisposed = !0), this._toDispose.dispose(); + }), + (t.prototype.getContextValuesContainer = function (e) { + return this._isDisposed + ? UM.INSTANCE + : this._contexts.get(e) || UM.INSTANCE; + }), + (t.prototype.createChildContext = function (e) { + if ((void 0 === e && (e = this._myContextId), this._isDisposed)) + throw new Error('ContextKeyService has been disposed'); + var t = ++this._lastContextId; + return ( + this._contexts.set( + t, + new zM(t, this.getContextValuesContainer(e)) + ), + t + ); + }), + (t.prototype.disposeContext = function (e) { + this._isDisposed || this._contexts.delete(e); + }), + (t = WM([HM(0, qv)], t)) + ); + })(XM), + QM = (function (e) { + function t(t, n) { + var r = e.call(this, t.createChildContext()) || this; + return ( + (r._parent = t), + n && + ((r._domNode = n), + r._domNode.setAttribute(VM, String(r._myContextId))), + r + ); + } + return ( + BM(t, e), + (t.prototype.dispose = function () { + (this._isDisposed = !0), + this._parent.disposeContext(this._myContextId), + this._domNode && + (this._domNode.removeAttribute(VM), (this._domNode = void 0)); + }), + Object.defineProperty(t.prototype, 'onDidChangeContext', { + get: function () { + return Wt.any( + this._parent.onDidChangeContext, + this._onDidChangeContext.event + ); + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.getContextValuesContainer = function (e) { + return this._isDisposed + ? UM.INSTANCE + : this._parent.getContextValuesContainer(e); + }), + (t.prototype.createChildContext = function (e) { + if ((void 0 === e && (e = this._myContextId), this._isDisposed)) + throw new Error('ScopedContextKeyService has been disposed'); + return this._parent.createChildContext(e); + }), + (t.prototype.disposeContext = function (e) { + this._isDisposed || this._parent.disposeContext(e); + }), + t + ); + })(XM); + rr.registerCommand('setContext', function (e, t, n) { + e.get(qn).createKey(String(t), n); + }); + n(353), n(354); + var eD = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + tD = /\(&([^\s&])\)|(^|[^&])&([^\s&])/, + nD = /(&)?(&)([^\s&])/g, + rD = (function (e) { + function t(t, n, r) { + var i = e.call(this, r || 'submenu', t, '', !0) || this; + return (i.entries = n), i; + } + return eD(t, e), t; + })(tn), + iD = (function (e) { + function t(t, n, r) { + void 0 === r && (r = {}); + var i = this; + Wh(t, 'monaco-menu-container'), + t.setAttribute('role', 'presentation'); + var o = document.createElement('div'); + Wh(o, 'monaco-menu'), + o.setAttribute('role', 'presentation'), + ((i = + e.call(this, o, { + orientation: 2, + actionViewItemProvider: function (e) { + return i.doGetActionViewItem(e, r, s); + }, + context: r.context, + actionRunner: r.actionRunner, + ariaLabel: r.ariaLabel, + triggerKeys: { + keys: [3].concat(tt.d ? [10] : []), + keyDown: !0, + }, + }) || this).menuElement = o), + (i._onScroll = i._register(new Gt())), + i.actionsList.setAttribute('role', 'menu'), + (i.actionsList.tabIndex = 0), + (i.menuDisposables = i._register(new Pt())), + Kh(o, Cf.KEY_DOWN, function (e) { + new Ch(e).equals(2) && e.preventDefault(); + }), + r.enableMnemonics && + i.menuDisposables.add( + Kh(o, Cf.KEY_DOWN, function (e) { + var t = e.key.toLocaleLowerCase(); + if (i.mnemonics.has(t)) { + Sf.stop(e, !0); + var n = i.mnemonics.get(t); + if ( + (1 === n.length && + (n[0] instanceof sD && + i.focusItemByElement(n[0].container), + n[0].onClick(e)), + n.length > 1) + ) { + var r = n.shift(); + r && (i.focusItemByElement(r.container), n.push(r)), + i.mnemonics.set(t, n); + } + } + }) + ), + tt.c && + i._register( + Kh(o, Cf.KEY_DOWN, function (e) { + var t = new Ch(e); + t.equals(14) || t.equals(11) + ? ((i.focusedItem = i.viewItems.length - 1), + i.focusNext(), + Sf.stop(e, !0)) + : (t.equals(13) || t.equals(12)) && + ((i.focusedItem = 0), i.focusPrevious(), Sf.stop(e, !0)); + }) + ), + i._register( + Kh(i.domNode, Cf.MOUSE_OUT, function (e) { + yf(e.relatedTarget, i.domNode) || + ((i.focusedItem = void 0), + (i.scrollTopHold = i.menuElement.scrollTop), + i.updateFocus(), + e.stopPropagation()); + }) + ), + i._register( + Kh(i.domNode, Cf.MOUSE_UP, function (e) { + Sf.stop(e, !0); + }) + ), + i._register( + Kh(i.actionsList, Cf.MOUSE_OVER, function (e) { + var t = e.target; + if (t && yf(t, i.actionsList) && t !== i.actionsList) { + for ( + ; + t.parentElement !== i.actionsList && + null !== t.parentElement; + + ) + t = t.parentElement; + if (Bh(t, 'action-item')) { + var n = i.focusedItem; + (i.scrollTopHold = i.menuElement.scrollTop), + i.setFocusedItem(t), + n !== i.focusedItem && i.updateFocus(); + } + } + }) + ); + var s = { parent: i }; + return ( + (i.mnemonics = new Map()), + i.push(n, { icon: !0, label: !0, isMenu: !0 }), + (i.scrollableElement = i._register( + new eg(o, { + alwaysConsumeMouseWheel: !0, + horizontal: 2, + vertical: 3, + verticalScrollbarSize: 7, + handleMouseWheel: !0, + useShadows: !0, + }) + )), + (i.scrollableElement.getDomNode().style.position = null), + (o.style.maxHeight = + Math.max( + 10, + window.innerHeight - t.getBoundingClientRect().top - 30 + ) + 'px'), + i.menuDisposables.add( + i.scrollableElement.onScroll(function () { + i._onScroll.fire(); + }, i) + ), + i._register( + Kh(i.menuElement, Cf.SCROLL, function (e) { + void 0 !== i.scrollTopHold && + ((i.menuElement.scrollTop = i.scrollTopHold), + (i.scrollTopHold = void 0)), + i.scrollableElement.scanDomNode(); + }) + ), + t.appendChild(i.scrollableElement.getDomNode()), + i.scrollableElement.scanDomNode(), + i.viewItems + .filter(function (e) { + return !(e instanceof aD); + }) + .forEach(function (e, t, n) { + e.updatePositionInSet(t + 1, n.length); + }), + i + ); + } + return ( + eD(t, e), + (t.prototype.style = function (e) { + var t = this.getContainer(), + n = e.foregroundColor ? '' + e.foregroundColor : null, + r = e.backgroundColor ? '' + e.backgroundColor : null, + i = e.borderColor ? '2px solid ' + e.borderColor : null, + o = e.shadowColor ? '0 2px 4px ' + e.shadowColor : null; + (t.style.border = i), + (this.domNode.style.color = n), + (this.domNode.style.backgroundColor = r), + (t.style.boxShadow = o), + this.viewItems && + this.viewItems.forEach(function (t) { + (t instanceof oD || t instanceof aD) && t.style(e); + }); + }), + (t.prototype.getContainer = function () { + return this.scrollableElement.getDomNode(); + }), + Object.defineProperty(t.prototype, 'onScroll', { + get: function () { + return this._onScroll.event; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(t.prototype, 'scrollOffset', { + get: function () { + return this.menuElement.scrollTop; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.focusItemByElement = function (e) { + var t = this.focusedItem; + this.setFocusedItem(e), + t !== this.focusedItem && this.updateFocus(); + }), + (t.prototype.setFocusedItem = function (e) { + for (var t = 0; t < this.actionsList.children.length; t++) { + if (e === this.actionsList.children[t]) { + this.focusedItem = t; + break; + } + } + }), + (t.prototype.doGetActionViewItem = function (e, t, n) { + if (e instanceof wp) return new aD(t.context, e, { icon: !0 }); + if (e instanceof rD) { + var r = new sD(e, e.entries, n, t); + if (t.enableMnemonics) + if ((u = r.getMnemonic()) && r.isEnabled()) { + var i = []; + this.mnemonics.has(u) && (i = this.mnemonics.get(u)), + i.push(r), + this.mnemonics.set(u, i); + } + return r; + } + var o = { enableMnemonics: t.enableMnemonics }; + if (t.getKeyBinding) { + var s = t.getKeyBinding(e); + if (s) { + var a = s.getLabel(); + a && (o.keybinding = a); + } + } + var u; + r = new oD(t.context, e, o); + if (t.enableMnemonics && (u = r.getMnemonic()) && r.isEnabled()) { + i = []; + this.mnemonics.has(u) && (i = this.mnemonics.get(u)), + i.push(r), + this.mnemonics.set(u, i); + } + return r; + }), + t + ); + })(xp), + oD = (function (e) { + function t(t, n, r) { + void 0 === r && (r = {}); + var i = this; + if ( + ((r.isMenu = !0), + ((i = e.call(this, n, n, r) || this).options = r), + (i.options.icon = void 0 !== r.icon && r.icon), + (i.options.label = void 0 === r.label || r.label), + (i.cssClass = ''), + i.options.label && r.enableMnemonics) + ) { + var o = i.getAction().label; + if (o) { + var s = tD.exec(o); + s && (i.mnemonic = (s[1] ? s[1] : s[3]).toLocaleLowerCase()); + } + } + return ( + (i.runOnceToEnableMouseUp = new Os(function () { + i.element && + i._register( + Kh(i.element, Cf.MOUSE_UP, function (e) { + Sf.stop(e, !0), i.onClick(e); + }) + ); + }, 50)), + i._register(i.runOnceToEnableMouseUp), + i + ); + } + return ( + eD(t, e), + (t.prototype.render = function (t) { + e.prototype.render.call(this, t), + this.element && + ((this.container = t), + (this.item = kf(this.element, Tf('a.action-menu-item'))), + this._action.id === wp.ID + ? this.item.setAttribute('role', 'presentation') + : (this.item.setAttribute('role', 'menuitem'), + this.mnemonic && + this.item.setAttribute( + 'aria-keyshortcuts', + '' + this.mnemonic + )), + (this.check = kf(this.item, Tf('span.menu-item-check'))), + this.check.setAttribute('role', 'none'), + (this.label = kf(this.item, Tf('span.action-label'))), + this.options.label && + this.options.keybinding && + (kf( + this.item, + Tf('span.keybinding') + ).textContent = this.options.keybinding), + this.runOnceToEnableMouseUp.schedule(), + this.updateClass(), + this.updateLabel(), + this.updateTooltip(), + this.updateEnabled(), + this.updateChecked()); + }), + (t.prototype.blur = function () { + e.prototype.blur.call(this), this.applyStyle(); + }), + (t.prototype.focus = function () { + e.prototype.focus.call(this), this.item.focus(), this.applyStyle(); + }), + (t.prototype.updatePositionInSet = function (e, t) { + this.item.setAttribute('aria-posinset', '' + e), + this.item.setAttribute('aria-setsize', '' + t); + }), + (t.prototype.updateLabel = function () { + if (this.options.label) { + var e = this.getAction().label; + if (e) { + var t = (function (e) { + var t = tD, + n = t.exec(e); + if (!n) return e; + var r = !n[1]; + return e.replace(t, r ? '$2$3' : '').trim(); + })(e); + this.options.enableMnemonics || (e = t), + this.label.setAttribute('aria-label', t.replace(/&&/g, '&')); + var n = tD.exec(e); + if (n) { + (e = an(e)), (nD.lastIndex = 0); + for (var r = nD.exec(e); r && r[1]; ) r = nD.exec(e); + r && + (e = + e.substr(0, r.index) + + '' + + e.substr(r.index + r[0].length)), + (e = e.replace(/&&/g, '&')), + this.item.setAttribute( + 'aria-keyshortcuts', + (n[1] ? n[1] : n[3]).toLocaleLowerCase() + ); + } else e = e.replace(/&&/g, '&'); + } + this.label.innerHTML = e.trim(); + } + }), + (t.prototype.updateTooltip = function () { + var e = null; + this.getAction().tooltip + ? (e = this.getAction().tooltip) + : !this.options.label && + this.getAction().label && + this.options.icon && + ((e = this.getAction().label), + this.options.keybinding && + (e = De( + { + key: 'titleLabel', + comment: ['action title', 'action keybinding'], + }, + '{0} ({1})', + e, + this.options.keybinding + ))), + e && (this.item.title = e); + }), + (t.prototype.updateClass = function () { + this.cssClass && zh(this.item, this.cssClass), + this.options.icon + ? ((this.cssClass = this.getAction().class || ''), + Wh(this.label, 'icon'), + this.cssClass && Hh(this.label, this.cssClass), + this.updateEnabled()) + : Vh(this.label, 'icon'); + }), + (t.prototype.updateEnabled = function () { + this.getAction().enabled + ? (this.element && Vh(this.element, 'disabled'), + Vh(this.item, 'disabled'), + (this.item.tabIndex = 0)) + : (this.element && Wh(this.element, 'disabled'), + Wh(this.item, 'disabled'), + Of(this.item)); + }), + (t.prototype.updateChecked = function () { + this.getAction().checked + ? (Wh(this.item, 'checked'), + this.item.setAttribute('role', 'menuitemcheckbox'), + this.item.setAttribute('aria-checked', 'true')) + : (Vh(this.item, 'checked'), + this.item.setAttribute('role', 'menuitem'), + this.item.setAttribute('aria-checked', 'false')); + }), + (t.prototype.getMnemonic = function () { + return this.mnemonic; + }), + (t.prototype.applyStyle = function () { + if (this.menuStyle) { + var e = this.element && Bh(this.element, 'focused'), + t = + e && this.menuStyle.selectionForegroundColor + ? this.menuStyle.selectionForegroundColor + : this.menuStyle.foregroundColor, + n = + e && this.menuStyle.selectionBackgroundColor + ? this.menuStyle.selectionBackgroundColor + : this.menuStyle.backgroundColor, + r = + e && this.menuStyle.selectionBorderColor + ? 'thin solid ' + this.menuStyle.selectionBorderColor + : null; + (this.item.style.color = t ? '' + t : null), + (this.check.style.backgroundColor = t ? '' + t : null), + (this.item.style.backgroundColor = n ? '' + n : null), + (this.container.style.border = r); + } + }), + (t.prototype.style = function (e) { + (this.menuStyle = e), this.applyStyle(); + }), + t + ); + })(bp), + sD = (function (e) { + function t(t, n, r, i) { + var o = e.call(this, t, t, i) || this; + return ( + (o.submenuActions = n), + (o.parentData = r), + (o.submenuOptions = i), + (o.submenuDisposables = o._register(new Pt())), + (o.showScheduler = new Os(function () { + o.mouseOver && + (o.cleanupExistingSubmenu(!1), o.createSubmenu(!1)); + }, 250)), + (o.hideScheduler = new Os(function () { + o.element && + !yf(document.activeElement, o.element) && + o.parentData.submenu === o.mysubmenu && + (o.parentData.parent.focus(!1), o.cleanupExistingSubmenu(!0)); + }, 750)), + o + ); + } + return ( + eD(t, e), + (t.prototype.render = function (t) { + var n = this; + e.prototype.render.call(this, t), + this.element && + (Wh(this.item, 'monaco-submenu-item'), + this.item.setAttribute('aria-haspopup', 'true'), + (this.submenuIndicator = kf( + this.item, + Tf('span.submenu-indicator') + )), + this.submenuIndicator.setAttribute('aria-hidden', 'true'), + this._register( + Kh(this.element, Cf.KEY_UP, function (e) { + var t = new Ch(e); + (t.equals(17) || t.equals(3)) && + (Sf.stop(e, !0), n.createSubmenu(!0)); + }) + ), + this._register( + Kh(this.element, Cf.KEY_DOWN, function (e) { + var t = new Ch(e); + document.activeElement === n.item && + (t.equals(17) || t.equals(3)) && + Sf.stop(e, !0); + }) + ), + this._register( + Kh(this.element, Cf.MOUSE_OVER, function (e) { + n.mouseOver || + ((n.mouseOver = !0), n.showScheduler.schedule()); + }) + ), + this._register( + Kh(this.element, Cf.MOUSE_LEAVE, function (e) { + n.mouseOver = !1; + }) + ), + this._register( + Kh(this.element, Cf.FOCUS_OUT, function (e) { + n.element && + !yf(document.activeElement, n.element) && + n.hideScheduler.schedule(); + }) + ), + this._register( + this.parentData.parent.onScroll(function () { + n.parentData.parent.focus(!1), n.cleanupExistingSubmenu(!1); + }) + )); + }), + (t.prototype.onClick = function (e) { + Sf.stop(e, !0), + this.cleanupExistingSubmenu(!1), + this.createSubmenu(!1); + }), + (t.prototype.cleanupExistingSubmenu = function (e) { + this.parentData.submenu && + (e || this.parentData.submenu !== this.mysubmenu) && + (this.parentData.submenu.dispose(), + (this.parentData.submenu = void 0), + this.submenuContainer && + (this.submenuDisposables.clear(), + (this.submenuContainer = void 0))); + }), + (t.prototype.createSubmenu = function (e) { + var t = this; + if ((void 0 === e && (e = !0), this.element)) + if (this.parentData.submenu) this.parentData.submenu.focus(!1); + else { + (this.submenuContainer = kf( + this.element, + Tf('div.monaco-submenu') + )), + Hh( + this.submenuContainer, + 'menubar-menu-items-holder', + 'context-view' + ), + (this.parentData.submenu = new iD( + this.submenuContainer, + this.submenuActions, + this.submenuOptions + )), + this.menuStyle && + this.parentData.submenu.style(this.menuStyle); + var n = this.element.getBoundingClientRect(), + r = this.submenuContainer.getBoundingClientRect(), + i = getComputedStyle(this.parentData.parent.domNode), + o = parseFloat(i.paddingTop || '0') || 0; + window.innerWidth <= n.right + r.width + ? ((this.submenuContainer.style.left = '10px'), + (this.submenuContainer.style.top = + this.element.offsetTop - + this.parentData.parent.scrollOffset + + n.height + + 'px')) + : ((this.submenuContainer.style.left = + this.element.offsetWidth + 'px'), + (this.submenuContainer.style.top = + this.element.offsetTop - + this.parentData.parent.scrollOffset - + o + + 'px')), + this.submenuDisposables.add( + Kh(this.submenuContainer, Cf.KEY_UP, function (e) { + new Ch(e).equals(15) && + (Sf.stop(e, !0), + t.parentData.parent.focus(), + t.parentData.submenu && + (t.parentData.submenu.dispose(), + (t.parentData.submenu = void 0)), + t.submenuDisposables.clear(), + (t.submenuContainer = void 0)); + }) + ), + this.submenuDisposables.add( + Kh(this.submenuContainer, Cf.KEY_DOWN, function (e) { + new Ch(e).equals(15) && Sf.stop(e, !0); + }) + ), + this.submenuDisposables.add( + this.parentData.submenu.onDidCancel(function () { + t.parentData.parent.focus(), + t.parentData.submenu && + (t.parentData.submenu.dispose(), + (t.parentData.submenu = void 0)), + t.submenuDisposables.clear(), + (t.submenuContainer = void 0); + }) + ), + this.parentData.submenu.focus(e), + (this.mysubmenu = this.parentData.submenu); + } + }), + (t.prototype.applyStyle = function () { + if ((e.prototype.applyStyle.call(this), this.menuStyle)) { + var t = + this.element && + Bh(this.element, 'focused') && + this.menuStyle.selectionForegroundColor + ? this.menuStyle.selectionForegroundColor + : this.menuStyle.foregroundColor; + (this.submenuIndicator.style.backgroundColor = t ? '' + t : null), + this.parentData.submenu && + this.parentData.submenu.style(this.menuStyle); + } + }), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this.hideScheduler.dispose(), + this.mysubmenu && + (this.mysubmenu.dispose(), (this.mysubmenu = null)), + this.submenuContainer && (this.submenuContainer = void 0); + }), + t + ); + })(oD), + aD = (function (e) { + function t() { + return (null !== e && e.apply(this, arguments)) || this; + } + return ( + eD(t, e), + (t.prototype.style = function (e) { + this.label.style.borderBottomColor = e.separatorColor + ? '' + e.separatorColor + : null; + }), + t + ); + })(Cp); + var uD = function () { + return (uD = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }; + function lD(e, t) { + var n = Object.create(null); + for (var r in t) { + var i = t[r]; + 'string' == typeof i + ? (n[r] = e.getColor(i)) + : 'function' == typeof i && (n[r] = i(e)); + } + return n; + } + function cD(e, t, n) { + function r(r) { + var i = lD(e.getTheme(), t); + 'function' == typeof n ? n(i) : n.style(i); + } + return r(e.getTheme()), e.onThemeChange(r); + } + var dD = { + listFocusBackground: Cc, + listFocusForeground: Sc, + listActiveSelectionBackground: Md(xc, 0.1), + listActiveSelectionForeground: Lc, + listFocusAndSelectionBackground: xc, + listFocusAndSelectionForeground: Lc, + listInactiveSelectionBackground: kc, + listInactiveSelectionForeground: Mc, + listInactiveFocusBackground: Dc, + listHoverBackground: Ec, + listHoverForeground: Tc, + listDropBackground: Nc, + listFocusOutline: ic, + listSelectionOutline: ic, + listHoverOutline: ic, + listFilterWidgetBackground: Oc, + listFilterWidgetOutline: Ac, + listFilterWidgetNoMatchesOutline: Ic, + listMatchesShadow: oc, + treeIndentGuidesStroke: Pc, + }, + hD = { + shadowColor: oc, + borderColor: Bc, + foregroundColor: Wc, + backgroundColor: Hc, + selectionForegroundColor: Vc, + selectionBackgroundColor: zc, + selectionBorderColor: Uc, + separatorColor: qc, + }; + var fD, + pD = (function () { + function e(e, t, n, r, i) { + (this.contextViewService = e), + (this.telemetryService = t), + (this.notificationService = n), + (this.keybindingService = r), + (this.themeService = i), + (this.options = { blockMouse: !0 }); + } + return ( + (e.prototype.configure = function (e) { + this.options = e; + }), + (e.prototype.showContextMenu = function (e) { + var t, + n = this, + r = e.getActions(); + r.length && + ((this.focusToReturn = document.activeElement), + this.contextViewService.showContextView({ + getAnchor: function () { + return e.getAnchor(); + }, + canRelayout: !1, + anchorAlignment: e.anchorAlignment, + render: function (i) { + var o = e.getMenuClassName ? e.getMenuClassName() : ''; + o && (i.className += ' ' + o), + n.options.blockMouse && + (n.block = i.appendChild(Tf('.context-view-block'))); + var s, + a, + u = new Pt(), + l = e.actionRunner || new nn(); + return ( + l.onDidBeforeRun(n.onActionRun, n, u), + l.onDidRun(n.onDidActionRun, n, u), + (t = new iD(i, r, { + actionViewItemProvider: e.getActionViewItem, + context: e.getActionsContext + ? e.getActionsContext() + : null, + actionRunner: l, + getKeyBinding: e.getKeyBinding + ? e.getKeyBinding + : function (e) { + return n.keybindingService.lookupKeybinding(e.id); + }, + })), + u.add(((s = t), cD(n.themeService, uD({}, hD, a), s))), + t.onDidCancel( + function () { + return n.contextViewService.hideContextView(!0); + }, + null, + u + ), + t.onDidBlur( + function () { + return n.contextViewService.hideContextView(!0); + }, + null, + u + ), + _h(window, Cf.BLUR)( + function () { + n.contextViewService.hideContextView(!0); + }, + null, + u + ), + _h(window, Cf.MOUSE_DOWN)( + function (e) { + if (!e.defaultPrevented) { + var t = new Th(e), + r = t.target; + if (!t.rightButton) { + for (; r; ) { + if (r === i) return; + r = r.parentElement; + } + n.contextViewService.hideContextView(!0); + } + } + }, + null, + u + ), + At(u, t) + ); + }, + focus: function () { + t && t.focus(!!e.autoSelectFirstItem); + }, + onHide: function (t) { + e.onHide && e.onHide(!!t), + n.block && (Rh(n.block), (n.block = null)), + n.focusToReturn && n.focusToReturn.focus(); + }, + })); + }), + (e.prototype.onActionRun = function (e) { + this.telemetryService && + this.telemetryService.publicLog2('workbenchActionExecuted', { + id: e.action.id, + from: 'contextMenu', + }), + this.contextViewService.hideContextView(!1), + this.focusToReturn && this.focusToReturn.focus(); + }), + (e.prototype.onDidActionRun = function (e) { + e.error && + this.notificationService && + this.notificationService.error(e.error); + }), + e + ); + })(), + gD = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + mD = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + _D = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + yD = (function (e) { + function t(t, n, r, i, o) { + var s = e.call(this) || this; + return ( + (s._onDidContextMenu = s._register(new Gt())), + (s.contextMenuHandler = new pD(r, t, n, i, o)), + s + ); + } + return ( + gD(t, e), + (t.prototype.configure = function (e) { + this.contextMenuHandler.configure(e); + }), + (t.prototype.showContextMenu = function (e) { + this.contextMenuHandler.showContextMenu(e), + this._onDidContextMenu.fire(); + }), + (t = mD([_D(0, Er), _D(1, sm), _D(2, Xg), _D(3, Qg), _D(4, Ad)], t)) + ); + })(Rt); + n(355); + !(function (e) { + function t(e, t) { + if (e.start >= t.end || t.start >= e.end) return { start: 0, end: 0 }; + var n = Math.max(e.start, t.start), + r = Math.min(e.end, t.end); + return r - n <= 0 ? { start: 0, end: 0 } : { start: n, end: r }; + } + function n(e) { + return e.end - e.start <= 0; + } + (e.intersect = t), + (e.isEmpty = n), + (e.intersects = function (e, r) { + return !n(t(e, r)); + }), + (e.relativeComplement = function (e, t) { + var r = [], + i = { start: e.start, end: Math.min(t.start, e.end) }, + o = { start: Math.max(t.end, e.start), end: e.end }; + return n(i) || r.push(i), n(o) || r.push(o), r; + }); + })(fD || (fD = {})); + var vD = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + function bD(e, t, n) { + var r = n.offset + n.size; + return 0 === n.position + ? t <= e - r + ? r + : t <= n.offset + ? n.offset - t + : Math.max(e - t, 0) + : t <= n.offset + ? n.offset - t + : t <= e - r + ? r + : 0; + } + var wD = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n.container = null), + (n.delegate = null), + (n.toDisposeOnClean = Rt.None), + (n.toDisposeOnSetContainer = Rt.None), + (n.view = Tf('.context-view')), + Nf(n.view), + n.setContainer(t), + n._register( + It(function () { + return n.setContainer(null); + }) + ), + n + ); + } + return ( + vD(t, e), + (t.prototype.setContainer = function (e) { + var n = this; + if ( + (this.container && + (this.toDisposeOnSetContainer.dispose(), + this.container.removeChild(this.view), + (this.container = null)), + e) + ) { + (this.container = e), this.container.appendChild(this.view); + var r = new Pt(); + t.BUBBLE_UP_EVENTS.forEach(function (e) { + r.add( + Gh(n.container, e, function (e) { + n.onDOMEvent(e, !1); + }) + ); + }), + t.BUBBLE_DOWN_EVENTS.forEach(function (e) { + r.add( + Gh( + n.container, + e, + function (e) { + n.onDOMEvent(e, !0); + }, + !0 + ) + ); + }), + (this.toDisposeOnSetContainer = r); + } + }), + (t.prototype.show = function (e) { + this.isVisible() && this.hide(), + Ph(this.view), + (this.view.className = 'context-view'), + (this.view.style.top = '0px'), + (this.view.style.left = '0px'), + (function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + for (var n = 0, r = e; n < r.length; n++) { + var i = r[n]; + (i.style.display = ''), i.removeAttribute('aria-hidden'); + } + })(this.view), + (this.toDisposeOnClean = e.render(this.view) || Rt.None), + (this.delegate = e), + this.doLayout(), + this.delegate.focus && this.delegate.focus(); + }), + (t.prototype.layout = function () { + this.isVisible() && + (!1 !== this.delegate.canRelayout + ? (this.delegate.layout && this.delegate.layout(), + this.doLayout()) + : this.hide()); + }), + (t.prototype.doLayout = function () { + if (this.isVisible()) { + var e, + t, + n = this.delegate.getAnchor(); + if ( + ((t = n), + 'object' == typeof HTMLElement + ? t instanceof HTMLElement + : t && + 'object' == typeof t && + 1 === t.nodeType && + 'string' == typeof t.nodeName) + ) { + var r = ff(n); + e = { + top: r.top, + left: r.left, + width: r.width, + height: r.height, + }; + } else + e = { + top: n.y, + left: n.x, + width: n.width || 1, + height: n.height || 2, + }; + var i, + o = gf(this.view), + s = _f(this.view), + a = this.delegate.anchorPosition || 0, + u = this.delegate.anchorAlignment || 0, + l = { + offset: e.top - window.pageYOffset, + size: e.height, + position: 0 === a ? 0 : 1, + }; + i = + 0 === u + ? { offset: e.left, size: 0, position: 0 } + : { offset: e.left + e.width, size: 0, position: 1 }; + var c = bD(window.innerHeight, s, l) + window.pageYOffset; + fD.intersects( + { start: c, end: c + s }, + { start: l.offset, end: l.offset + l.size } + ) && ((i.size = e.width), 1 === u && (i.offset = e.left)); + var d = bD(window.innerWidth, o, i); + zh(this.view, 'top', 'bottom', 'left', 'right'), + Wh(this.view, 0 === a ? 'bottom' : 'top'), + Wh(this.view, 0 === u ? 'left' : 'right'); + var h = ff(this.container); + (this.view.style.top = c - h.top + 'px'), + (this.view.style.left = d - h.left + 'px'), + (this.view.style.width = 'initial'); + } + }), + (t.prototype.hide = function (e) { + var t = this.delegate; + (this.delegate = null), + t && t.onHide && t.onHide(e), + this.toDisposeOnClean.dispose(), + Nf(this.view); + }), + (t.prototype.isVisible = function () { + return !!this.delegate; + }), + (t.prototype.onDOMEvent = function (e, t) { + this.delegate && + (this.delegate.onDOMEvent + ? this.delegate.onDOMEvent(e, document.activeElement) + : t && !yf(e.target, this.container) && this.hide()); + }), + (t.prototype.dispose = function () { + this.hide(), e.prototype.dispose.call(this); + }), + (t.BUBBLE_UP_EVENTS = ['click', 'keydown', 'focus', 'blur']), + (t.BUBBLE_DOWN_EVENTS = ['click']), + t + ); + })(Rt), + CD = wt('layoutService'), + SD = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + xD = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + LD = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + kD = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n.layoutService = t), + (n.contextView = n._register(new wD(t.container))), + n.layout(), + n._register( + t.onLayout(function () { + return n.layout(); + }) + ), + n + ); + } + return ( + SD(t, e), + (t.prototype.setContainer = function (e) { + this.contextView.setContainer(e); + }), + (t.prototype.showContextView = function (e) { + this.contextView.show(e); + }), + (t.prototype.layout = function () { + this.contextView.layout(); + }), + (t.prototype.hideContextView = function (e) { + this.contextView.hide(e); + }), + (t = xD([LD(0, CD)], t)) + ); + })(Rt), + MD = wt('dialogService'), + DD = Object.prototype.hasOwnProperty; + function ED(e, t) { + var n = function (n) { + if ( + DD.call(e, n) && + !1 === + t({ key: n, value: e[n] }, function () { + delete e[n]; + }) + ) + return { value: void 0 }; + }; + for (var r in e) { + var i = n(r); + if ('object' == typeof i) return i.value; + } + } + var TD = (function () { + function e() { + this.map = new Map(); + } + return ( + (e.prototype.add = function (e, t) { + var n = this.map.get(e); + n || ((n = new Set()), this.map.set(e, n)), n.add(t); + }), + (e.prototype.delete = function (e, t) { + var n = this.map.get(e); + n && (n.delete(t), 0 === n.size && this.map.delete(e)); + }), + (e.prototype.forEach = function (e, t) { + var n = this.map.get(e); + n && n.forEach(t); + }), + e + ); + })(); + var ND, + OD = (function () { + function e(e) { + (this._hashFn = e), (this._nodes = Object.create(null)); + } + return ( + (e.prototype.roots = function () { + var e = []; + return ( + ED(this._nodes, function (t) { + Fe(t.value.outgoing) && e.push(t.value); + }), + e + ); + }), + (e.prototype.insertEdge = function (e, t) { + var n = this.lookupOrInsertNode(e), + r = this.lookupOrInsertNode(t); + (n.outgoing[this._hashFn(t)] = r), + (r.incoming[this._hashFn(e)] = n); + }), + (e.prototype.removeNode = function (e) { + var t = this._hashFn(e); + delete this._nodes[t], + ED(this._nodes, function (e) { + delete e.value.outgoing[t], delete e.value.incoming[t]; + }); + }), + (e.prototype.lookupOrInsertNode = function (e) { + var t = this._hashFn(e), + n = this._nodes[t]; + return ( + n || + ((n = (function (e) { + return { + data: e, + incoming: Object.create(null), + outgoing: Object.create(null), + }; + })(e)), + (this._nodes[t] = n)), + n + ); + }), + (e.prototype.isEmpty = function () { + for (var e in this._nodes) return !1; + return !0; + }), + (e.prototype.toString = function () { + var e = []; + return ( + ED(this._nodes, function (t) { + e.push( + t.key + + ', (incoming)[' + + Object.keys(t.value.incoming).join(', ') + + '], (outgoing)[' + + Object.keys(t.value.outgoing).join(',') + + ']' + ); + }), + e.join('\n') + ); + }), + e + ); + })(), + AD = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + ID = 'function' == typeof Proxy, + PD = (function (e) { + function t(t) { + var n = e.call(this, 'cyclic dependency between services') || this; + return (n.message = t.toString()), n; + } + return AD(t, e), t; + })(Error), + RD = (function () { + function e(e, t, n) { + void 0 === e && (e = new bL()), + void 0 === t && (t = !1), + (this._services = e), + (this._strict = t), + (this._parent = n), + this._services.set(vt, this); + } + return ( + (e.prototype.createChild = function (t) { + return new e(t, this._strict, this); + }), + (e.prototype.invokeFunction = function (e) { + for (var t = this, n = [], r = 1; r < arguments.length; r++) + n[r - 1] = arguments[r]; + var i = FD.traceInvocation(e), + o = !1; + try { + var s = { + get: function (e, n) { + if (o) + throw Je( + 'service accessor is only valid during the invocation of its target method' + ); + var r = t._getOrCreateServiceInstance(e, i); + if (!r && n !== Ct) + throw new Error( + "[invokeFunction] unknown service '" + e + "'" + ); + return r; + }, + }; + return e.apply(void 0, [s].concat(n)); + } finally { + (o = !0), i.stop(); + } + }), + (e.prototype.createInstance = function (e) { + for (var t, n, r = [], i = 1; i < arguments.length; i++) + r[i - 1] = arguments[i]; + return ( + e instanceof jL + ? ((t = FD.traceCreation(e.ctor)), + (n = this._createInstance( + e.ctor, + e.staticArguments.concat(r), + t + ))) + : ((t = FD.traceCreation(e)), + (n = this._createInstance(e, r, t))), + t.stop(), + n + ); + }), + (e.prototype._createInstance = function (e, t, n) { + void 0 === t && (t = []); + for ( + var r = at.getServiceDependencies(e).sort(function (e, t) { + return e.index - t.index; + }), + i = [], + o = 0, + s = r; + o < s.length; + o++ + ) { + var a = s[o], + u = this._getOrCreateServiceInstance(a.id, n); + if (!u && this._strict && !a.optional) + throw new Error( + '[createInstance] ' + + e.name + + ' depends on UNKNOWN service ' + + a.id + + '.' + ); + i.push(u); + } + var l = r.length > 0 ? r[0].index : t.length; + if (t.length !== l) { + console.warn( + '[createInstance] First service dependency of ' + + e.name + + ' at position ' + + (l + 1) + + ' conflicts with ' + + t.length + + ' static arguments' + ); + var c = l - t.length; + t = c > 0 ? t.concat(new Array(c)) : t.slice(0, l); + } + return new (e.bind.apply(e, [void 0].concat(t.concat(i))))(); + }), + (e.prototype._setServiceInstance = function (e, t) { + if (this._services.get(e) instanceof jL) this._services.set(e, t); + else { + if (!this._parent) + throw new Error( + 'illegalState - setting UNKNOWN service instance' + ); + this._parent._setServiceInstance(e, t); + } + }), + (e.prototype._getServiceInstanceOrDescriptor = function (e) { + var t = this._services.get(e); + return !t && this._parent + ? this._parent._getServiceInstanceOrDescriptor(e) + : t; + }), + (e.prototype._getOrCreateServiceInstance = function (e, t) { + var n = this._getServiceInstanceOrDescriptor(e); + return n instanceof jL + ? this._createAndCacheServiceInstance(e, n, t.branch(e, !0)) + : (t.branch(e, !1), n); + }), + (e.prototype._createAndCacheServiceInstance = function (e, t, n) { + for ( + var r = new OD(function (e) { + return e.id.toString(); + }), + i = 0, + o = [{ id: e, desc: t, _trace: n }]; + o.length; + + ) { + var s = o.pop(); + if ((r.lookupOrInsertNode(s), i++ > 100)) throw new PD(r); + for ( + var a = 0, u = at.getServiceDependencies(s.desc.ctor); + a < u.length; + a++ + ) { + var l = u[a], + c = this._getServiceInstanceOrDescriptor(l.id); + if ( + (c || + l.optional || + console.warn( + '[createInstance] ' + + e + + ' depends on ' + + l.id + + ' which is NOT registered.' + ), + c instanceof jL) + ) { + var d = { + id: l.id, + desc: c, + _trace: s._trace.branch(l.id, !0), + }; + r.insertEdge(s, d), o.push(d); + } + } + } + for (;;) { + var h = r.roots(); + if (0 === h.length) { + if (!r.isEmpty()) throw new PD(r); + break; + } + for (var f = 0, p = h; f < p.length; f++) { + var g = p[f].data, + m = this._createServiceInstanceWithOwner( + g.id, + g.desc.ctor, + g.desc.staticArguments, + g.desc.supportsDelayedInstantiation, + g._trace + ); + this._setServiceInstance(g.id, m), r.removeNode(g); + } + } + return this._getServiceInstanceOrDescriptor(e); + }), + (e.prototype._createServiceInstanceWithOwner = function ( + e, + t, + n, + r, + i + ) { + if ((void 0 === n && (n = []), this._services.get(e) instanceof jL)) + return this._createServiceInstance(t, n, r, i); + if (this._parent) + return this._parent._createServiceInstanceWithOwner( + e, + t, + n, + r, + i + ); + throw new Error('illegalState - creating UNKNOWN service instance'); + }), + (e.prototype._createServiceInstance = function (e, t, n, r) { + var i = this; + if ((void 0 === t && (t = []), n && ID)) { + var o = new As(function () { + return i._createInstance(e, t, r); + }); + return new Proxy(Object.create(null), { + get: function (e, t) { + return o.getValue()[t]; + }, + set: function (e, t, n) { + return (o.getValue()[t] = n), !0; + }, + }); + } + return this._createInstance(e, t, r); + }), + e + ); + })(), + FD = (function () { + function e(e, t) { + (this.type = e), + (this.name = t), + (this._start = Date.now()), + (this._dep = []); + } + return ( + (e.traceInvocation = function (t) { + return e._None; + }), + (e.traceCreation = function (t) { + return e._None; + }), + (e.prototype.branch = function (t, n) { + var r = new e(2, t.toString()); + return this._dep.push([t, n, r]), r; + }), + (e.prototype.stop = function () { + var t = Date.now() - this._start; + e._totals += t; + var n = !1; + var r = [ + (0 === this.type ? 'CREATE' : 'CALL') + ' ' + this.name, + '' + + (function e(t, r) { + for ( + var i = [], + o = new Array(t + 1).join('\t'), + s = 0, + a = r._dep; + s < a.length; + s++ + ) { + var u = a[s], + l = u[0], + c = u[1], + d = u[2]; + if (c && d) { + (n = !0), i.push(o + 'CREATES -> ' + l); + var h = e(t + 1, d); + h && i.push(h); + } else i.push(o + 'uses -> ' + l); + } + return i.join('\n'); + })(1, this), + 'DONE, took ' + + t.toFixed(2) + + 'ms (grand total ' + + e._totals.toFixed(2) + + 'ms)', + ]; + (t > 2 || n) && console.log(r.join('\n')); + }), + (e._None = new ((function (e) { + function t() { + return e.call(this, -1, null) || this; + } + return ( + AD(t, e), + (t.prototype.stop = function () {}), + (t.prototype.branch = function () { + return this; + }), + t + ); + })(e))()), + (e._totals = 0), + e + ); + })(), + YD = wt('label'); + n(356); + function jD(e, t) { + for (var n = [], r = 0, i = t; r < i.length; r++) { + var o = i[r]; + if (!(e.start >= o.range.end)) { + if (e.end < o.range.start) break; + var s = fD.intersect(e, o.range); + fD.isEmpty(s) || n.push({ range: s, size: o.size }); + } + } + return n; + } + function BD(e, t) { + return { start: e.start + t, end: e.end + t }; + } + !(function (e) { + (e.TREE = 'tree'), (e.FORM = 'form'); + })(ND || (ND = {})); + var WD = (function () { + function e() { + (this.groups = []), (this._size = 0); + } + return ( + (e.prototype.splice = function (e, t, n) { + void 0 === n && (n = []); + var r = n.length - t, + i = jD({ start: 0, end: e }, this.groups), + o = jD( + { start: e + t, end: Number.POSITIVE_INFINITY }, + this.groups + ).map(function (e) { + return { range: BD(e.range, r), size: e.size }; + }), + s = n.map(function (t, n) { + return { range: { start: e + n, end: e + n + 1 }, size: t.size }; + }); + (this.groups = (function () { + for (var e = [], t = 0; t < arguments.length; t++) + e[t] = arguments[t]; + return (function (e) { + for (var t = [], n = null, r = 0, i = e; r < i.length; r++) { + var o = i[r], + s = o.range.start, + a = o.range.end, + u = o.size; + n && u === n.size + ? (n.range.end = a) + : ((n = { range: { start: s, end: a }, size: u }), t.push(n)); + } + return t; + })( + e.reduce(function (e, t) { + return e.concat(t); + }, []) + ); + })(i, s, o)), + (this._size = this.groups.reduce(function (e, t) { + return e + t.size * (t.range.end - t.range.start); + }, 0)); + }), + Object.defineProperty(e.prototype, 'count', { + get: function () { + var e = this.groups.length; + return e ? this.groups[e - 1].range.end : 0; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'size', { + get: function () { + return this._size; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.indexAt = function (e) { + if (e < 0) return -1; + for (var t = 0, n = 0, r = 0, i = this.groups; r < i.length; r++) { + var o = i[r], + s = o.range.end - o.range.start, + a = n + s * o.size; + if (e < a) return t + Math.floor((e - n) / o.size); + (t += s), (n = a); + } + return t; + }), + (e.prototype.indexAfter = function (e) { + return Math.min(this.indexAt(e) + 1, this.count); + }), + (e.prototype.positionAt = function (e) { + if (e < 0) return -1; + for (var t = 0, n = 0, r = 0, i = this.groups; r < i.length; r++) { + var o = i[r], + s = o.range.end - o.range.start, + a = n + s; + if (e < a) return t + (e - n) * o.size; + (t += s * o.size), (n = a); + } + return -1; + }), + (e.prototype.dispose = function () { + this.groups = null; + }), + e + ); + })(); + var HD = (function () { + function e(e) { + (this.renderers = e), (this.cache = new Map()); + } + return ( + (e.prototype.alloc = function (e) { + var t = this.getTemplateCache(e).pop(); + if (!t) { + var n = Tf('.monaco-list-row'); + t = { + domNode: n, + templateId: e, + templateData: this.getRenderer(e).renderTemplate(n), + }; + } + return t; + }), + (e.prototype.release = function (e) { + e && this.releaseRow(e); + }), + (e.prototype.releaseRow = function (e) { + var t = e.domNode, + n = e.templateId; + t && + (Vh(t, 'scrolling'), + (function (e) { + try { + e.parentElement && e.parentElement.removeChild(e); + } catch (e) {} + })(t)), + this.getTemplateCache(n).push(e); + }), + (e.prototype.getTemplateCache = function (e) { + var t = this.cache.get(e); + return t || ((t = []), this.cache.set(e, t)), t; + }), + (e.prototype.garbageCollect = function () { + var e = this; + this.renderers && + (this.cache.forEach(function (t, n) { + for (var r = 0, i = t; r < i.length; r++) { + var o = i[r]; + e.getRenderer(n).disposeTemplate(o.templateData), + (o.domNode = null), + (o.templateData = null); + } + }), + this.cache.clear()); + }), + (e.prototype.dispose = function () { + this.garbageCollect(), this.cache.clear(), (this.renderers = null); + }), + (e.prototype.getRenderer = function (e) { + var t = this.renderers.get(e); + if (!t) throw new Error('No renderer found for ' + e); + return t; + }), + e + ); + })(), + VD = 'ResourceURLs', + zD = (function () { + function e(e) { + this.data = e; + } + return ( + (e.prototype.update = function () {}), + (e.prototype.getData = function () { + return this.data; + }), + e + ); + })(), + UD = { CurrentDragAndDropData: void 0 }, + qD = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + KD = { + useShadows: !0, + verticalScrollMode: 1, + setRowLineHeight: !0, + supportDynamicHeights: !1, + dnd: { + getDragElements: function (e) { + return [e]; + }, + getDragURI: function () { + return null; + }, + onDragStart: function () {}, + onDragOver: function () { + return !1; + }, + drop: function () {}, + }, + horizontalScrolling: !1, + }, + GD = (function () { + function e(e) { + this.elements = e; + } + return ( + (e.prototype.update = function () {}), + (e.prototype.getData = function () { + return this.elements; + }), + e + ); + })(), + $D = (function () { + function e(e) { + this.elements = e; + } + return ( + (e.prototype.update = function () {}), + (e.prototype.getData = function () { + return this.elements; + }), + e + ); + })(), + ZD = (function () { + function e() { + (this.types = []), (this.files = []); + } + return ( + (e.prototype.update = function (e) { + var t; + if ( + (e.types && + (t = this.types).splice.apply( + t, + [0, this.types.length].concat(e.types) + ), + e.files) + ) { + this.files.splice(0, this.files.length); + for (var n = 0; n < e.files.length; n++) { + var r = e.files.item(n); + r && (r.size || r.type) && this.files.push(r); + } + } + }), + (e.prototype.getData = function () { + return { types: this.types, files: this.files }; + }), + e + ); + })(); + var XD = (function () { + function e(t, n, r, i) { + var o = this; + if ( + (void 0 === i && (i = KD), + (this.virtualDelegate = n), + (this.domId = 'list_id_' + ++e.InstanceCount), + (this.renderers = new Map()), + (this.renderWidth = 0), + (this._scrollHeight = 0), + (this.scrollableElementUpdateDisposable = null), + (this.scrollableElementWidthDelayer = new Ms(50)), + (this.splicing = !1), + (this.dragOverAnimationStopDisposable = Rt.None), + (this.dragOverMouseY = 0), + (this.canUseTranslate3d = void 0), + (this.canDrop = !1), + (this.currentDragFeedbackDisposable = Rt.None), + (this.onDragLeaveTimeout = Rt.None), + (this._onDidChangeContentHeight = new Gt()), + i.horizontalScrolling && i.supportDynamicHeights) + ) + throw new Error( + 'Horizontal scrolling and dynamic heights not supported simultaneously' + ); + (this.items = []), (this.itemId = 0), (this.rangeMap = new WD()); + for (var s = 0, a = r; s < a.length; s++) { + var u = a[s]; + this.renderers.set(u.templateId, u); + } + (this.cache = new HD(this.renderers)), + (this.lastRenderTop = 0), + (this.lastRenderHeight = 0), + (this.domNode = document.createElement('div')), + (this.domNode.className = 'monaco-list'), + Wh(this.domNode, this.domId), + (this.domNode.tabIndex = 0), + Uh( + this.domNode, + 'mouse-support', + 'boolean' != typeof i.mouseSupport || i.mouseSupport + ), + (this.horizontalScrolling = Qr( + i, + function (e) { + return e.horizontalScrolling; + }, + KD.horizontalScrolling + )), + Uh(this.domNode, 'horizontal-scrolling', this.horizontalScrolling), + (this.additionalScrollHeight = + void 0 === i.additionalScrollHeight + ? 0 + : i.additionalScrollHeight), + (this.ariaProvider = i.ariaProvider || { + getSetSize: function (e, t, n) { + return n; + }, + getPosInSet: function (e, t) { + return t + 1; + }, + }), + (this.rowsContainer = document.createElement('div')), + (this.rowsContainer.className = 'monaco-list-rows'), + dp.addTarget(this.rowsContainer), + (this.scrollableElement = new Jp(this.rowsContainer, { + alwaysConsumeMouseWheel: !0, + horizontal: this.horizontalScrolling ? 1 : 2, + vertical: Qr( + i, + function (e) { + return e.verticalScrollMode; + }, + KD.verticalScrollMode + ), + useShadows: Qr( + i, + function (e) { + return e.useShadows; + }, + KD.useShadows + ), + })), + this.domNode.appendChild(this.scrollableElement.getDomNode()), + t.appendChild(this.domNode), + (this.disposables = [ + this.rangeMap, + this.scrollableElement, + this.cache, + ]), + this.scrollableElement.onScroll( + this.onScroll, + this, + this.disposables + ), + _h(this.rowsContainer, up.Change)( + this.onTouchChange, + this, + this.disposables + ), + _h(this.scrollableElement.getDomNode(), 'scroll')( + function (e) { + return (e.target.scrollTop = 0); + }, + null, + this.disposables + ), + Wt.map(_h(this.domNode, 'dragover'), function (e) { + return o.toDragEvent(e); + })(this.onDragOver, this, this.disposables), + Wt.map(_h(this.domNode, 'drop'), function (e) { + return o.toDragEvent(e); + })(this.onDrop, this, this.disposables), + _h(this.domNode, 'dragleave')( + this.onDragLeave, + this, + this.disposables + ), + _h(window, 'dragend')(this.onDragEnd, this, this.disposables), + (this.setRowLineHeight = Qr( + i, + function (e) { + return e.setRowLineHeight; + }, + KD.setRowLineHeight + )), + (this.supportDynamicHeights = Qr( + i, + function (e) { + return e.supportDynamicHeights; + }, + KD.supportDynamicHeights + )), + (this.dnd = Qr( + i, + function (e) { + return e.dnd; + }, + KD.dnd + )), + this.layout(); + } + return ( + Object.defineProperty(e.prototype, 'contentHeight', { + get: function () { + return this.rangeMap.size; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.splice = function (e, t, n) { + if ((void 0 === n && (n = []), this.splicing)) + throw new Error("Can't run recursive splices."); + this.splicing = !0; + try { + return this._splice(e, t, n); + } finally { + (this.splicing = !1), + this._onDidChangeContentHeight.fire(this.contentHeight); + } + }), + (e.prototype._splice = function (e, t, n) { + var r, + i = this; + void 0 === n && (n = []); + for ( + var o = this.getRenderRange( + this.lastRenderTop, + this.lastRenderHeight + ), + s = { start: e, end: e + t }, + a = fD.intersect(o, s), + u = a.start; + u < a.end; + u++ + ) + this.removeItemFromDOM(u); + var l, + c = { start: e + t, end: this.items.length }, + d = fD.intersect(c, o), + h = fD.relativeComplement(c, o), + f = n.map(function (e) { + return { + id: String(i.itemId++), + element: e, + templateId: i.virtualDelegate.getTemplateId(e), + size: i.virtualDelegate.getHeight(e), + width: void 0, + hasDynamicHeight: + !!i.virtualDelegate.hasDynamicHeight && + i.virtualDelegate.hasDynamicHeight(e), + lastDynamicHeightWidth: void 0, + row: null, + uri: void 0, + dropTarget: !1, + dragStartDisposable: Rt.None, + }; + }); + 0 === e && t >= this.items.length + ? ((this.rangeMap = new WD()), + this.rangeMap.splice(0, 0, f), + (this.items = f), + (l = [])) + : (this.rangeMap.splice(e, t, f), + (l = (r = this.items).splice.apply(r, [e, t].concat(f)))); + var p = n.length - t, + g = this.getRenderRange( + this.lastRenderTop, + this.lastRenderHeight + ), + m = BD(d, p), + _ = fD.intersect(g, m); + for (u = _.start; u < _.end; u++) + this.updateItemInDOM(this.items[u], u); + for (var y = 0, v = fD.relativeComplement(m, g); y < v.length; y++) + for (u = (L = v[y]).start; u < L.end; u++) + this.removeItemFromDOM(u); + for ( + var b = h.map(function (e) { + return BD(e, p); + }), + w = [{ start: e, end: e + n.length }] + .concat(b) + .map(function (e) { + return fD.intersect(g, e); + }), + C = this.getNextToLastElement(w), + S = 0, + x = w; + S < x.length; + S++ + ) { + var L; + for (u = (L = x[S]).start; u < L.end; u++) + this.insertItemInDOM(u, C); + } + return ( + this.eventuallyUpdateScrollDimensions(), + this.supportDynamicHeights && + this._rerender(this.scrollTop, this.renderHeight), + l.map(function (e) { + return e.element; + }) + ); + }), + (e.prototype.eventuallyUpdateScrollDimensions = function () { + var e = this; + (this._scrollHeight = this.contentHeight), + (this.rowsContainer.style.height = this._scrollHeight + 'px'), + this.scrollableElementUpdateDisposable || + (this.scrollableElementUpdateDisposable = Xh(function () { + e.scrollableElement.setScrollDimensions({ + scrollHeight: e.scrollHeight, + }), + e.updateScrollWidth(), + (e.scrollableElementUpdateDisposable = null); + })); + }), + (e.prototype.eventuallyUpdateScrollWidth = function () { + var e = this; + this.horizontalScrolling && + this.scrollableElementWidthDelayer.trigger(function () { + return e.updateScrollWidth(); + }); + }), + (e.prototype.updateScrollWidth = function () { + if (this.horizontalScrolling) { + 0 === this.items.length && + this.scrollableElement.setScrollDimensions({ scrollWidth: 0 }); + for (var e = 0, t = 0, n = this.items; t < n.length; t++) { + var r = n[t]; + void 0 !== r.width && (e = Math.max(e, r.width)); + } + (this.scrollWidth = e), + this.scrollableElement.setScrollDimensions({ + scrollWidth: e + 10, + }); + } + }), + (e.prototype.rerender = function () { + if (this.supportDynamicHeights) { + for (var e = 0, t = this.items; e < t.length; e++) { + t[e].lastDynamicHeightWidth = void 0; + } + this._rerender(this.lastRenderTop, this.lastRenderHeight); + } + }), + Object.defineProperty(e.prototype, 'length', { + get: function () { + return this.items.length; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'renderHeight', { + get: function () { + return this.scrollableElement.getScrollDimensions().height; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.element = function (e) { + return this.items[e].element; + }), + (e.prototype.domElement = function (e) { + var t = this.items[e].row; + return t && t.domNode; + }), + (e.prototype.elementHeight = function (e) { + return this.items[e].size; + }), + (e.prototype.elementTop = function (e) { + return this.rangeMap.positionAt(e); + }), + (e.prototype.indexAt = function (e) { + return this.rangeMap.indexAt(e); + }), + (e.prototype.indexAfter = function (e) { + return this.rangeMap.indexAfter(e); + }), + (e.prototype.layout = function (e, t) { + var n, + r, + i, + o = { + height: + 'number' == typeof e + ? e + : ((n = this.domNode), + (r = + df.getBorderTopWidth(n) + df.getBorderBottomWidth(n)), + (i = df.getPaddingTop(n) + df.getPaddingBottom(n)), + n.offsetHeight - r - i), + }; + this.scrollableElementUpdateDisposable && + (this.scrollableElementUpdateDisposable.dispose(), + (this.scrollableElementUpdateDisposable = null), + (o.scrollHeight = this.scrollHeight)), + this.scrollableElement.setScrollDimensions(o), + void 0 !== t && + ((this.renderWidth = t), + this.supportDynamicHeights && + this._rerender(this.scrollTop, this.renderHeight), + this.horizontalScrolling && + this.scrollableElement.setScrollDimensions({ + width: 'number' == typeof t ? t : mf(this.domNode), + })); + }), + (e.prototype.render = function (e, t, n, r) { + for ( + var i = this.getRenderRange( + this.lastRenderTop, + this.lastRenderHeight + ), + o = this.getRenderRange(e, t), + s = fD.relativeComplement(o, i), + a = fD.relativeComplement(i, o), + u = this.getNextToLastElement(s), + l = 0, + c = s; + l < c.length; + l++ + ) + for (var d = (p = c[l]).start; d < p.end; d++) + this.insertItemInDOM(d, u); + for (var h = 0, f = a; h < f.length; h++) { + var p; + for (d = (p = f[h]).start; d < p.end; d++) + this.removeItemFromDOM(d); + } + var g = !tt.g && !ch && 0 === oh(); + if (g) { + var m = 'translate3d(-' + n + 'px, -' + e + 'px, 0px)'; + (this.rowsContainer.style.transform = m), + (this.rowsContainer.style.webkitTransform = m), + g !== this.canUseTranslate3d && + ((this.rowsContainer.style.left = '0'), + (this.rowsContainer.style.top = '0')); + } else + (this.rowsContainer.style.left = '-' + n + 'px'), + (this.rowsContainer.style.top = '-' + e + 'px'), + g !== this.canUseTranslate3d && + ((this.rowsContainer.style.transform = ''), + (this.rowsContainer.style.webkitTransform = '')); + this.horizontalScrolling && + (this.rowsContainer.style.width = + Math.max(r, this.renderWidth) + 'px'), + (this.canUseTranslate3d = g), + (this.lastRenderTop = e), + (this.lastRenderHeight = t); + }), + (e.prototype.insertItemInDOM = function (e, t) { + var n = this, + r = this.items[e]; + if (!r.row) { + r.row = this.cache.alloc(r.templateId); + var i = this.ariaProvider.getRole + ? this.ariaProvider.getRole(r.element) + : 'treeitem'; + r.row.domNode.setAttribute('role', i); + var o = this.ariaProvider.isChecked + ? this.ariaProvider.isChecked(r.element) + : void 0; + void 0 !== o && + r.row.domNode.setAttribute('aria-checked', String(o)); + } + r.row.domNode.parentElement || + (t + ? this.rowsContainer.insertBefore(r.row.domNode, t) + : this.rowsContainer.appendChild(r.row.domNode)), + this.updateItemInDOM(r, e); + var s = this.renderers.get(r.templateId); + if (!s) + throw new Error( + 'No renderer found for template id ' + r.templateId + ); + s && s.renderElement(r.element, e, r.row.templateData, r.size); + var a = this.dnd.getDragURI(r.element); + if ( + (r.dragStartDisposable.dispose(), + (r.row.domNode.draggable = !!a), + a) + ) { + var u = _h(r.row.domNode, 'dragstart'); + r.dragStartDisposable = u(function (e) { + return n.onDragStart(r.element, a, e); + }); + } + this.horizontalScrolling && + (this.measureItemWidth(r), this.eventuallyUpdateScrollWidth()); + }), + (e.prototype.measureItemWidth = function (e) { + if (e.row && e.row.domNode) { + (e.row.domNode.style.width = 'fit-content'), + (e.width = mf(e.row.domNode)); + var t = window.getComputedStyle(e.row.domNode); + t.paddingLeft && (e.width += parseFloat(t.paddingLeft)), + t.paddingRight && (e.width += parseFloat(t.paddingRight)), + (e.row.domNode.style.width = ''); + } + }), + (e.prototype.updateItemInDOM = function (e, t) { + (e.row.domNode.style.top = this.elementTop(t) + 'px'), + (e.row.domNode.style.height = e.size + 'px'), + this.setRowLineHeight && + (e.row.domNode.style.lineHeight = e.size + 'px'), + e.row.domNode.setAttribute('data-index', '' + t), + e.row.domNode.setAttribute( + 'data-last-element', + t === this.length - 1 ? 'true' : 'false' + ), + e.row.domNode.setAttribute( + 'aria-setsize', + String(this.ariaProvider.getSetSize(e.element, t, this.length)) + ), + e.row.domNode.setAttribute( + 'aria-posinset', + String(this.ariaProvider.getPosInSet(e.element, t)) + ), + e.row.domNode.setAttribute('id', this.getElementDomId(t)), + Uh(e.row.domNode, 'drop-target', e.dropTarget); + }), + (e.prototype.removeItemFromDOM = function (e) { + var t = this.items[e]; + t.dragStartDisposable.dispose(); + var n = this.renderers.get(t.templateId); + n && + n.disposeElement && + n.disposeElement(t.element, e, t.row.templateData, t.size), + this.cache.release(t.row), + (t.row = null), + this.horizontalScrolling && this.eventuallyUpdateScrollWidth(); + }), + (e.prototype.getScrollTop = function () { + return this.scrollableElement.getScrollPosition().scrollTop; + }), + (e.prototype.setScrollTop = function (e) { + this.scrollableElementUpdateDisposable && + (this.scrollableElementUpdateDisposable.dispose(), + (this.scrollableElementUpdateDisposable = null), + this.scrollableElement.setScrollDimensions({ + scrollHeight: this.scrollHeight, + })), + this.scrollableElement.setScrollPosition({ scrollTop: e }); + }), + Object.defineProperty(e.prototype, 'scrollTop', { + get: function () { + return this.getScrollTop(); + }, + set: function (e) { + this.setScrollTop(e); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'scrollHeight', { + get: function () { + return ( + this._scrollHeight + + (this.horizontalScrolling ? 10 : 0) + + this.additionalScrollHeight + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseClick', { + get: function () { + var e = this; + return Wt.map(_h(this.domNode, 'click'), function (t) { + return e.toMouseEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseDblClick', { + get: function () { + var e = this; + return Wt.map(_h(this.domNode, 'dblclick'), function (t) { + return e.toMouseEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseMiddleClick', { + get: function () { + var e = this; + return Wt.filter( + Wt.map(_h(this.domNode, 'auxclick'), function (t) { + return e.toMouseEvent(t); + }), + function (e) { + return 1 === e.browserEvent.button; + } + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseDown', { + get: function () { + var e = this; + return Wt.map(_h(this.domNode, 'mousedown'), function (t) { + return e.toMouseEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onContextMenu', { + get: function () { + var e = this; + return Wt.map(_h(this.domNode, 'contextmenu'), function (t) { + return e.toMouseEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onTouchStart', { + get: function () { + var e = this; + return Wt.map(_h(this.domNode, 'touchstart'), function (t) { + return e.toTouchEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onTap', { + get: function () { + var e = this; + return Wt.map(_h(this.rowsContainer, up.Tap), function (t) { + return e.toGestureEvent(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.toMouseEvent = function (e) { + var t = this.getItemIndexFromEventTarget(e.target || null), + n = void 0 === t ? void 0 : this.items[t]; + return { browserEvent: e, index: t, element: n && n.element }; + }), + (e.prototype.toTouchEvent = function (e) { + var t = this.getItemIndexFromEventTarget(e.target || null), + n = void 0 === t ? void 0 : this.items[t]; + return { browserEvent: e, index: t, element: n && n.element }; + }), + (e.prototype.toGestureEvent = function (e) { + var t = this.getItemIndexFromEventTarget(e.initialTarget || null), + n = void 0 === t ? void 0 : this.items[t]; + return { browserEvent: e, index: t, element: n && n.element }; + }), + (e.prototype.toDragEvent = function (e) { + var t = this.getItemIndexFromEventTarget(e.target || null), + n = void 0 === t ? void 0 : this.items[t]; + return { browserEvent: e, index: t, element: n && n.element }; + }), + (e.prototype.onScroll = function (e) { + try { + this.render(e.scrollTop, e.height, e.scrollLeft, e.scrollWidth), + this.supportDynamicHeights && + this._rerender(e.scrollTop, e.height); + } catch (t) { + throw (console.error('Got bad scroll event:', e), t); + } + }), + (e.prototype.onTouchChange = function (e) { + e.preventDefault(), + e.stopPropagation(), + (this.scrollTop -= e.translationY); + }), + (e.prototype.onDragStart = function (e, t, n) { + if (n.dataTransfer) { + var r = this.dnd.getDragElements(e); + if ( + ((n.dataTransfer.effectAllowed = 'copyMove'), + n.dataTransfer.setData(VD, JSON.stringify([t])), + n.dataTransfer.setDragImage) + ) { + var i = void 0; + this.dnd.getDragLabel && (i = this.dnd.getDragLabel(r)), + void 0 === i && (i = String(r.length)); + var o = Tf('.monaco-drag-image'); + (o.textContent = i), + document.body.appendChild(o), + n.dataTransfer.setDragImage(o, -10, -10), + setTimeout(function () { + return document.body.removeChild(o); + }, 0); + } + (this.currentDragData = new GD(r)), + (UD.CurrentDragAndDropData = new $D(r)), + this.dnd.onDragStart && + this.dnd.onDragStart(this.currentDragData, n); + } + }), + (e.prototype.onDragOver = function (e) { + var t = this; + if ( + (e.browserEvent.preventDefault(), + this.onDragLeaveTimeout.dispose(), + UD.CurrentDragAndDropData && + 'vscode-ui' === UD.CurrentDragAndDropData.getData()) + ) + return !1; + if ( + (this.setupDragAndDropScrollTopAnimation(e.browserEvent), + !e.browserEvent.dataTransfer) + ) + return !1; + if (!this.currentDragData) + if (UD.CurrentDragAndDropData) + this.currentDragData = UD.CurrentDragAndDropData; + else { + if (!e.browserEvent.dataTransfer.types) return !1; + this.currentDragData = new ZD(); + } + var n, + r, + i, + o = this.dnd.onDragOver( + this.currentDragData, + e.element, + e.index, + e.browserEvent + ); + if ( + ((this.canDrop = 'boolean' == typeof o ? o : o.accept), + !this.canDrop) + ) + return ( + (this.currentDragFeedback = void 0), + this.currentDragFeedbackDisposable.dispose(), + !1 + ); + if ( + ((e.browserEvent.dataTransfer.dropEffect = + 'boolean' != typeof o && 0 === o.effect ? 'copy' : 'move'), + 0 === + (n = + -1 === + (n = Vr( + (n = + 'boolean' != typeof o && o.feedback + ? o.feedback + : void 0 === e.index + ? [-1] + : [e.index]) + ) + .filter(function (e) { + return e >= -1 && e < t.length; + }) + .sort())[0] + ? [-1] + : n).length) + ) + throw new Error('Invalid empty feedback list'); + if ( + ((r = this.currentDragFeedback), + (i = n), + Array.isArray(r) && Array.isArray(i) ? Wr(r, i) : r === i) + ) + return !0; + if ( + ((this.currentDragFeedback = n), + this.currentDragFeedbackDisposable.dispose(), + -1 === n[0]) + ) + Wh(this.domNode, 'drop-target'), + (this.currentDragFeedbackDisposable = It(function () { + return Vh(t.domNode, 'drop-target'); + })); + else { + for (var s = 0, a = n; s < a.length; s++) { + var u = a[s], + l = this.items[u]; + (l.dropTarget = !0), + l.row && l.row.domNode && Wh(l.row.domNode, 'drop-target'); + } + this.currentDragFeedbackDisposable = It(function () { + for (var e = 0, r = n; e < r.length; e++) { + var i = r[e], + o = t.items[i]; + (o.dropTarget = !1), + o.row && o.row.domNode && Vh(o.row.domNode, 'drop-target'); + } + }); + } + return !0; + }), + (e.prototype.onDragLeave = function () { + var e = this; + this.onDragLeaveTimeout.dispose(), + (this.onDragLeaveTimeout = Ds(function () { + return e.clearDragOverFeedback(); + }, 100)); + }), + (e.prototype.onDrop = function (e) { + if (this.canDrop) { + var t = this.currentDragData; + this.teardownDragAndDropScrollTopAnimation(), + this.clearDragOverFeedback(), + (this.currentDragData = void 0), + (UD.CurrentDragAndDropData = void 0), + t && + e.browserEvent.dataTransfer && + (e.browserEvent.preventDefault(), + t.update(e.browserEvent.dataTransfer), + this.dnd.drop(t, e.element, e.index, e.browserEvent)); + } + }), + (e.prototype.onDragEnd = function () { + (this.canDrop = !1), + this.teardownDragAndDropScrollTopAnimation(), + this.clearDragOverFeedback(), + (this.currentDragData = void 0), + (UD.CurrentDragAndDropData = void 0); + }), + (e.prototype.clearDragOverFeedback = function () { + (this.currentDragFeedback = void 0), + this.currentDragFeedbackDisposable.dispose(), + (this.currentDragFeedbackDisposable = Rt.None); + }), + (e.prototype.setupDragAndDropScrollTopAnimation = function (e) { + var t, + n, + r, + i = this; + if (!this.dragOverAnimationDisposable) { + var o = hf(this.domNode).top; + this.dragOverAnimationDisposable = + ((t = this.animateDragAndDropScrollTop.bind(this, o)), + (n = function () { + t(), (r = Xh(n)); + }), + (r = Xh(n)), + It(function () { + return r.dispose(); + })); + } + this.dragOverAnimationStopDisposable.dispose(), + (this.dragOverAnimationStopDisposable = Ds(function () { + i.dragOverAnimationDisposable && + (i.dragOverAnimationDisposable.dispose(), + (i.dragOverAnimationDisposable = void 0)); + }, 1e3)), + (this.dragOverMouseY = e.pageY); + }), + (e.prototype.animateDragAndDropScrollTop = function (e) { + if (void 0 !== this.dragOverMouseY) { + var t = this.dragOverMouseY - e, + n = this.renderHeight - 35; + t < 35 + ? (this.scrollTop += Math.max(-14, Math.floor(0.3 * (t - 35)))) + : t > n && + (this.scrollTop += Math.min(14, Math.floor(0.3 * (t - n)))); + } + }), + (e.prototype.teardownDragAndDropScrollTopAnimation = function () { + this.dragOverAnimationStopDisposable.dispose(), + this.dragOverAnimationDisposable && + (this.dragOverAnimationDisposable.dispose(), + (this.dragOverAnimationDisposable = void 0)); + }), + (e.prototype.getItemIndexFromEventTarget = function (e) { + for ( + var t = e; + t instanceof HTMLElement && t !== this.rowsContainer; + + ) { + var n = t.getAttribute('data-index'); + if (n) { + var r = Number(n); + if (!isNaN(r)) return r; + } + t = t.parentElement; + } + }), + (e.prototype.getRenderRange = function (e, t) { + return { + start: this.rangeMap.indexAt(e), + end: this.rangeMap.indexAfter(e + t - 1), + }; + }), + (e.prototype._rerender = function (e, t) { + var n, + r, + i = this.getRenderRange(e, t); + e === this.elementTop(i.start) + ? ((n = i.start), (r = 0)) + : i.end - i.start > 1 && + ((n = i.start + 1), (r = this.elementTop(n) - e)); + for (var o = 0; ; ) { + for ( + var s = this.getRenderRange(e, t), a = !1, u = s.start; + u < s.end; + u++ + ) { + var l = this.probeDynamicHeight(u); + 0 !== l && this.rangeMap.splice(u, 1, [this.items[u]]), + (o += l), + (a = a || 0 !== l); + } + if (!a) { + 0 !== o && this.eventuallyUpdateScrollDimensions(); + for ( + var c = 0, d = fD.relativeComplement(i, s); + c < d.length; + c++ + ) + for (u = (p = d[c]).start; u < p.end; u++) + this.items[u].row && this.removeItemFromDOM(u); + for ( + var h = 0, f = fD.relativeComplement(s, i); + h < f.length; + h++ + ) { + var p; + for (u = (p = f[h]).start; u < p.end; u++) { + var g = u + 1, + m = g < this.items.length ? this.items[g].row : null, + _ = m ? m.domNode : null; + this.insertItemInDOM(u, _); + } + } + for (u = s.start; u < s.end; u++) + this.items[u].row && this.updateItemInDOM(this.items[u], u); + return ( + 'number' == typeof n && + (this.scrollTop = this.elementTop(n) - r), + void this._onDidChangeContentHeight.fire(this.contentHeight) + ); + } + } + }), + (e.prototype.probeDynamicHeight = function (e) { + var t = this.items[e]; + if ( + !t.hasDynamicHeight || + t.lastDynamicHeightWidth === this.renderWidth + ) + return 0; + var n = t.size, + r = this.cache.alloc(t.templateId); + (r.domNode.style.height = ''), + this.rowsContainer.appendChild(r.domNode); + var i = this.renderers.get(t.templateId); + return ( + i && + (i.renderElement(t.element, e, r.templateData, void 0), + i.disposeElement && + i.disposeElement(t.element, e, r.templateData, void 0)), + (t.size = r.domNode.offsetHeight), + this.virtualDelegate.setDynamicHeight && + this.virtualDelegate.setDynamicHeight(t.element, t.size), + (t.lastDynamicHeightWidth = this.renderWidth), + this.rowsContainer.removeChild(r.domNode), + this.cache.release(r), + t.size - n + ); + }), + (e.prototype.getNextToLastElement = function (e) { + var t = e[e.length - 1]; + if (!t) return null; + var n = this.items[t.end]; + return n && n.row ? n.row.domNode : null; + }), + (e.prototype.getElementDomId = function (e) { + return this.domId + '_' + e; + }), + (e.prototype.dispose = function () { + if (this.items) { + for (var e = 0, t = this.items; e < t.length; e++) { + var n = t[e]; + if (n.row) { + var r = this.renderers.get(n.row.templateId); + r && r.disposeTemplate(n.row.templateData); + } + } + this.items = []; + } + this.domNode && + this.domNode.parentNode && + this.domNode.parentNode.removeChild(this.domNode), + (this.disposables = Ot(this.disposables)); + }), + (e.InstanceCount = 0), + qD([ap], e.prototype, 'onMouseClick', null), + qD([ap], e.prototype, 'onMouseDblClick', null), + qD([ap], e.prototype, 'onMouseMiddleClick', null), + qD([ap], e.prototype, 'onMouseDown', null), + qD([ap], e.prototype, 'onContextMenu', null), + qD([ap], e.prototype, 'onTouchStart', null), + qD([ap], e.prototype, 'onTap', null), + e + ); + })(), + JD = (function () { + function e(e) { + this.spliceables = e; + } + return ( + (e.prototype.splice = function (e, t, n) { + this.spliceables.forEach(function (r) { + return r.splice(e, t, n); + }); + }), + e + ); + })(); + function QD(e, t, n) { + return Math.min(Math.max(e, t), n); + } + function eE() { + for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t]; + return function (t, n) { + for (var r = 0, i = e.length; r < i; r++) { + var o = e[r](t, n); + if (o) return o; + } + return null; + }; + } + var tE = function (e, t, n) { + if (!n || n.length < t.length) return null; + var r; + r = e ? Cn(n, t) : 0 === n.indexOf(t); + if (!r) return null; + return t.length > 0 ? [{ start: 0, end: t.length }] : []; + }.bind(void 0, !0); + function nE(e) { + return 97 <= e && e <= 122; + } + function rE(e) { + return 65 <= e && e <= 90; + } + function iE(e) { + return 48 <= e && e <= 57; + } + function oE(e) { + return 32 === e || 9 === e || 10 === e || 13 === e; + } + var sE = new Set(); + function aE(e) { + return nE(e) || rE(e) || iE(e); + } + function uE(e, t) { + return ( + 0 === t.length + ? (t = [e]) + : e.end === t[0].start + ? (t[0].start = e.start) + : t.unshift(e), + t + ); + } + function lE(e, t) { + for (var n = t; n < e.length; n++) { + var r = e.charCodeAt(n); + if (rE(r) || iE(r) || (n > 0 && !aE(e.charCodeAt(n - 1)))) return n; + } + return e.length; + } + function cE(e, t, n, r) { + if (n === e.length) return []; + if (r === t.length) return null; + if (e[n] !== t[r].toLowerCase()) return null; + var i = null, + o = r + 1; + for (i = cE(e, t, n + 1, r + 1); !i && (o = lE(t, o)) < t.length; ) + (i = cE(e, t, n + 1, o)), o++; + return null === i ? null : uE({ start: r, end: r + 1 }, i); + } + function dE(e, t) { + if (!t) return null; + if (0 === (t = t.trim()).length) return null; + if ( + !(function (e) { + for (var t = 0, n = 0, r = 0, i = 0, o = 0; o < e.length; o++) + rE((r = e.charCodeAt(o))) && t++, nE(r) && n++, oE(r) && i++; + return (0 !== t && 0 !== n) || 0 !== i ? t <= 5 : e.length <= 30; + })(e) + ) + return null; + if (t.length > 60) return null; + var n = (function (e) { + for (var t = 0, n = 0, r = 0, i = 0, o = 0, s = 0; s < e.length; s++) + rE((o = e.charCodeAt(s))) && t++, + nE(o) && n++, + aE(o) && r++, + iE(o) && i++; + return { + upperPercent: t / e.length, + lowerPercent: n / e.length, + alphaPercent: r / e.length, + numericPercent: i / e.length, + }; + })(t); + if ( + !(function (e) { + var t = e.upperPercent, + n = e.lowerPercent, + r = e.alphaPercent, + i = e.numericPercent; + return n > 0.2 && t < 0.8 && r > 0.6 && i < 0.2; + })(n) + ) { + if ( + !(function (e) { + var t = e.upperPercent; + return 0 === e.lowerPercent && t > 0.6; + })(n) + ) + return null; + t = t.toLowerCase(); + } + var r = null, + i = 0; + for (e = e.toLowerCase(); i < t.length && null === (r = cE(e, t, 0, i)); ) + i = lE(t, i + 1); + return r; + } + '`~!@#$%^&*()-=+[{]}\\|;:\'",.<>/?'.split('').forEach(function (e) { + return sE.add(e.charCodeAt(0)); + }); + eE(tE, dE, function (e, t) { + var n = t.toLowerCase().indexOf(e.toLowerCase()); + return -1 === n ? null : [{ start: n, end: n + e.length }]; + }), + eE(tE, dE, function (e, t) { + return (function e(t, n, r, i) { + if (r === t.length) return []; + if (i === n.length) return null; + if (t[r] === n[i]) { + var o; + return (o = e(t, n, r + 1, i + 1)) + ? uE({ start: i, end: i + 1 }, o) + : null; + } + return e(t, n, r, i + 1); + })(e.toLowerCase(), t.toLowerCase(), 0, 0); + }), + new tr(1e4); + var hE = 128; + function fE() { + for (var e = [], t = [0], n = 1; n <= hE; n++) t.push(-n); + for (n = 0; n <= hE; n++) { + var r = t.slice(0); + (r[0] = -n), e.push(r); + } + return e; + } + var pE, + gE = fE(), + mE = fE(), + _E = fE(), + yE = !1; + function vE(e, t, n, r, i) { + function o(e, t, n) { + for (void 0 === n && (n = ' '); e.length < t; ) e = n + e; + return e; + } + for ( + var s = + ' | |' + + r + .split('') + .map(function (e) { + return o(e, 3); + }) + .join('|') + + '\n', + a = 0; + a <= n; + a++ + ) + (s += 0 === a ? ' |' : t[a - 1] + '|'), + (s += + e[a] + .slice(0, i + 1) + .map(function (e) { + return o(e.toString(), 3); + }) + .join('|') + '\n'); + return s; + } + function bE(e, t) { + if (t < 0 || t >= e.length) return !1; + switch (e.charCodeAt(t)) { + case 95: + case 45: + case 46: + case 32: + case 47: + case 92: + case 39: + case 34: + case 58: + case 36: + return !0; + default: + return !1; + } + } + function wE(e, t, n) { + return t[e] !== n[e]; + } + function CE(e, t, n, r, i, o, s) { + var a = e.length > hE ? hE : e.length, + u = r.length > hE ? hE : r.length; + if ( + !(n >= a || o >= u || a > u) && + (function (e, t, n, r, i, o) { + for (; t < n && i < o; ) e[t] === r[i] && (t += 1), (i += 1); + return t === n; + })(t, n, a, i, o, u) + ) { + var l = 1, + c = 1, + d = n, + h = o; + for (l = 1, d = n; d < a; l++, d++) + for (c = 1, h = o; h < u; c++, h++) { + var f = SE(e, t, d, n, r, i, h); + mE[l][c] = f; + var p = gE[l - 1][c - 1] + (f > 1 ? 1 : f), + g = gE[l - 1][c] + -1, + m = gE[l][c - 1] + -1; + m >= g + ? m > p + ? ((gE[l][c] = m), (_E[l][c] = 4)) + : m === p + ? ((gE[l][c] = m), (_E[l][c] = 6)) + : ((gE[l][c] = p), (_E[l][c] = 2)) + : g > p + ? ((gE[l][c] = g), (_E[l][c] = 1)) + : g === p + ? ((gE[l][c] = g), (_E[l][c] = 3)) + : ((gE[l][c] = p), (_E[l][c] = 2)); + } + if ( + (yE && + (function (e, t, n, r) { + (e = e.substr(t)), + (n = n.substr(r)), + console.log(vE(gE, e, e.length, n, n.length)), + console.log(vE(_E, e, e.length, n, n.length)), + console.log(vE(mE, e, e.length, n, n.length)); + })(e, n, r, o), + (xE = 0), + (kE = -100), + (ME = o), + (DE = s), + (function e(t, n, r, i, o) { + if (xE >= 10 || r < -25) return; + var s = 0; + for (; t > 0 && n > 0; ) { + var a = mE[t][n], + u = _E[t][n]; + if (4 === u) + (n -= 1), o ? (r -= 5) : 0 !== i && (r -= 1), (o = !1), (s = 0); + else { + if (!(2 & u)) return; + if ( + (4 & u && e(t, n - 1, 0 !== i ? r - 1 : r, i, o), + (r += a), + (t -= 1), + (n -= 1), + (o = !0), + (i += Math.pow(2, n + ME)), + 1 === a) + ) { + if (((s += 1), 0 === t && !DE)) return; + } else (r += 1 + s * (a - 1)), (s = 0); + } + } + (xE += 1), (r -= n >= 3 ? 9 : 3 * n) > kE && ((kE = r), (LE = i)); + })(l - 1, c - 1, a === u ? 1 : 0, 0, !1), + 0 !== xE) + ) + return [kE, LE, o]; + } + } + function SE(e, t, n, r, i, o, s) { + return t[n] !== o[s] + ? -1 + : s === n - r + ? e[n] === i[s] + ? 7 + : 5 + : !wE(s, i, o) || (0 !== s && wE(s - 1, i, o)) + ? !bE(o, s) || (0 !== s && bE(o, s - 1)) + ? bE(o, s - 1) || + (function (e, t) { + if (t < 0 || t >= e.length) return !1; + switch (e.charCodeAt(t)) { + case 32: + case 9: + return !0; + default: + return !1; + } + })(o, s - 1) + ? 5 + : 1 + : 5 + : e[n] === i[s] + ? 7 + : 5; + } + !(function (e) { + (e.Default = Object.freeze([-100, 0, 0])), + (e.isDefault = function (e) { + return !e || (-100 === e[0] && 0 === e[1] && 0 === e[2]); + }); + })(pE || (pE = {})); + var xE = 0, + LE = 0, + kE = 0, + ME = 0, + DE = !1; + var EE = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + TE = function () { + return (TE = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }, + NE = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + OE = (function () { + function e(e) { + (this.trait = e), (this.renderedElements = []); + } + return ( + Object.defineProperty(e.prototype, 'templateId', { + get: function () { + return 'template:' + this.trait.trait; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.renderTemplate = function (e) { + return e; + }), + (e.prototype.renderElement = function (e, t, n) { + var r = Ur(this.renderedElements, function (e) { + return e.templateData === n; + }); + if (r >= 0) { + var i = this.renderedElements[r]; + this.trait.unrender(n), (i.index = t); + } else { + i = { index: t, templateData: n }; + this.renderedElements.push(i); + } + this.trait.renderIndex(t, n); + }), + (e.prototype.splice = function (e, t, n) { + for ( + var r = [], i = 0, o = this.renderedElements; + i < o.length; + i++ + ) { + var s = o[i]; + s.index < e + ? r.push(s) + : s.index >= e + t && + r.push({ + index: s.index + n - t, + templateData: s.templateData, + }); + } + this.renderedElements = r; + }), + (e.prototype.renderIndexes = function (e) { + for (var t = 0, n = this.renderedElements; t < n.length; t++) { + var r = n[t], + i = r.index, + o = r.templateData; + e.indexOf(i) > -1 && this.trait.renderIndex(i, o); + } + }), + (e.prototype.disposeTemplate = function (e) { + var t = Ur(this.renderedElements, function (t) { + return t.templateData === e; + }); + t < 0 || this.renderedElements.splice(t, 1); + }), + e + ); + })(), + AE = (function () { + function e(e) { + (this._trait = e), + (this.indexes = []), + (this.sortedIndexes = []), + (this._onChange = new Gt()), + (this.onChange = this._onChange.event); + } + return ( + Object.defineProperty(e.prototype, 'trait', { + get: function () { + return this._trait; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'renderer', { + get: function () { + return new OE(this); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.splice = function (e, t, n) { + var r = n.length - t, + i = e + t, + o = this.sortedIndexes + .filter(function (t) { + return t < e; + }) + .concat( + n + .map(function (t, n) { + return t ? n + e : -1; + }) + .filter(function (e) { + return -1 !== e; + }), + this.sortedIndexes + .filter(function (e) { + return e >= i; + }) + .map(function (e) { + return e + r; + }) + ); + this.renderer.splice(e, t, n.length), this._set(o, o); + }), + (e.prototype.renderIndex = function (e, t) { + Uh(t, this._trait, this.contains(e)); + }), + (e.prototype.unrender = function (e) { + Vh(e, this._trait); + }), + (e.prototype.set = function (e, t) { + return this._set(e, e.slice().sort(JE), t); + }), + (e.prototype._set = function (e, t, n) { + var r = this.indexes, + i = this.sortedIndexes; + (this.indexes = e), (this.sortedIndexes = t); + var o = XE(i, e); + return ( + this.renderer.renderIndexes(o), + this._onChange.fire({ indexes: e, browserEvent: n }), + r + ); + }), + (e.prototype.get = function () { + return this.indexes; + }), + (e.prototype.contains = function (e) { + return ( + (function (e, t, n) { + for (var r = 0, i = e.length - 1; r <= i; ) { + var o = ((r + i) / 2) | 0, + s = n(e[o], t); + if (s < 0) r = o + 1; + else { + if (!(s > 0)) return o; + i = o - 1; + } + } + return -(r + 1); + })(this.sortedIndexes, e, JE) >= 0 + ); + }), + (e.prototype.dispose = function () { + this._onChange = Ot(this._onChange); + }), + NE([ap], e.prototype, 'renderer', null), + e + ); + })(), + IE = (function (e) { + function t() { + return e.call(this, 'focused') || this; + } + return ( + EE(t, e), + (t.prototype.renderIndex = function (t, n) { + e.prototype.renderIndex.call(this, t, n), + this.contains(t) + ? n.setAttribute('aria-selected', 'true') + : n.removeAttribute('aria-selected'); + }), + t + ); + })(AE), + PE = (function () { + function e(e, t, n) { + (this.trait = e), (this.view = t), (this.identityProvider = n); + } + return ( + (e.prototype.splice = function (e, t, n) { + var r = this; + if (!this.identityProvider) + return this.trait.splice( + e, + t, + n.map(function () { + return !1; + }) + ); + var i = this.trait.get().map(function (e) { + return r.identityProvider.getId(r.view.element(e)).toString(); + }), + o = n.map(function (e) { + return i.indexOf(r.identityProvider.getId(e).toString()) > -1; + }); + this.trait.splice(e, t, o); + }), + e + ); + })(); + function RE(e) { + return 'INPUT' === e.tagName || 'TEXTAREA' === e.tagName; + } + var FE, + YE = (function () { + function e(e, t, n) { + (this.list = e), (this.view = t), (this.disposables = new Pt()); + var r = !1 !== n.multipleSelectionSupport; + this.openController = n.openController || qE; + var i = Wt.chain(_h(t.domNode, 'keydown')) + .filter(function (e) { + return !RE(e.target); + }) + .map(function (e) { + return new Ch(e); + }); + i + .filter(function (e) { + return 3 === e.keyCode; + }) + .on(this.onEnter, this, this.disposables), + i + .filter(function (e) { + return 16 === e.keyCode; + }) + .on(this.onUpArrow, this, this.disposables), + i + .filter(function (e) { + return 18 === e.keyCode; + }) + .on(this.onDownArrow, this, this.disposables), + i + .filter(function (e) { + return 11 === e.keyCode; + }) + .on(this.onPageUpArrow, this, this.disposables), + i + .filter(function (e) { + return 12 === e.keyCode; + }) + .on(this.onPageDownArrow, this, this.disposables), + i + .filter(function (e) { + return 9 === e.keyCode; + }) + .on(this.onEscape, this, this.disposables), + r && + i + .filter(function (e) { + return (tt.d ? e.metaKey : e.ctrlKey) && 31 === e.keyCode; + }) + .on(this.onCtrlA, this, this.disposables); + } + return ( + (e.prototype.onEnter = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.setSelection(this.list.getFocus(), e.browserEvent), + this.openController.shouldOpen(e.browserEvent) && + this.list.open(this.list.getFocus(), e.browserEvent); + }), + (e.prototype.onUpArrow = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.focusPrevious(1, !1, e.browserEvent), + this.list.reveal(this.list.getFocus()[0]), + this.view.domNode.focus(); + }), + (e.prototype.onDownArrow = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.focusNext(1, !1, e.browserEvent), + this.list.reveal(this.list.getFocus()[0]), + this.view.domNode.focus(); + }), + (e.prototype.onPageUpArrow = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.focusPreviousPage(e.browserEvent), + this.list.reveal(this.list.getFocus()[0]), + this.view.domNode.focus(); + }), + (e.prototype.onPageDownArrow = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.focusNextPage(e.browserEvent), + this.list.reveal(this.list.getFocus()[0]), + this.view.domNode.focus(); + }), + (e.prototype.onCtrlA = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.setSelection(Kr(this.list.length), e.browserEvent), + this.view.domNode.focus(); + }), + (e.prototype.onEscape = function (e) { + e.preventDefault(), + e.stopPropagation(), + this.list.setSelection([], e.browserEvent), + this.view.domNode.focus(); + }), + (e.prototype.dispose = function () { + this.disposables.dispose(); + }), + e + ); + })(); + function jE(e) { + return ( + !(e.ctrlKey || e.metaKey || e.altKey) && + ((e.keyCode >= 31 && e.keyCode <= 56) || + (e.keyCode >= 21 && e.keyCode <= 30) || + (e.keyCode >= 93 && e.keyCode <= 102) || + (e.keyCode >= 80 && e.keyCode <= 90)) + ); + } + !(function (e) { + (e[(e.Idle = 0)] = 'Idle'), (e[(e.Typing = 1)] = 'Typing'); + })(FE || (FE = {})); + var BE = (function () { + function e(e, t, n) { + (this.list = e), + (this.view = t), + (this.keyboardNavigationLabelProvider = n), + (this.enabled = !1), + (this.state = FE.Idle), + (this.automaticKeyboardNavigation = !0), + (this.triggered = !1), + (this.enabledDisposables = new Pt()), + (this.disposables = new Pt()), + this.updateOptions(e.options); + } + return ( + (e.prototype.updateOptions = function (e) { + void 0 === e.enableKeyboardNavigation || + !!e.enableKeyboardNavigation + ? this.enable() + : this.disable(), + void 0 !== e.automaticKeyboardNavigation && + (this.automaticKeyboardNavigation = + e.automaticKeyboardNavigation); + }), + (e.prototype.enable = function () { + var e = this; + if (!this.enabled) { + var t = Wt.chain(_h(this.view.domNode, 'keydown')) + .filter(function (e) { + return !RE(e.target); + }) + .filter(function () { + return e.automaticKeyboardNavigation || e.triggered; + }) + .map(function (e) { + return new Ch(e); + }) + .filter( + this.keyboardNavigationLabelProvider + .mightProducePrintableCharacter + ? function (t) { + return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter( + t + ); + } + : function (e) { + return jE(e); + } + ) + .forEach(function (e) { + e.stopPropagation(), e.preventDefault(); + }) + .map(function (e) { + return e.browserEvent.key; + }).event, + n = Wt.debounce( + t, + function () { + return null; + }, + 800 + ); + Wt.reduce(Wt.any(t, n), function (e, t) { + return null === t ? null : (e || '') + t; + })(this.onInput, this, this.enabledDisposables), + (this.enabled = !0), + (this.triggered = !1); + } + }), + (e.prototype.disable = function () { + this.enabled && + (this.enabledDisposables.clear(), + (this.enabled = !1), + (this.triggered = !1)); + }), + (e.prototype.onInput = function (e) { + if (!e) return (this.state = FE.Idle), void (this.triggered = !1); + var t = this.list.getFocus(), + n = t.length > 0 ? t[0] : 0, + r = this.state === FE.Idle ? 1 : 0; + this.state = FE.Typing; + for (var i = 0; i < this.list.length; i++) { + var o = (n + i + r) % this.list.length, + s = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel( + this.view.element(o) + ), + a = s && s.toString(); + if (void 0 === a || tE(e, a)) + return this.list.setFocus([o]), void this.list.reveal(o); + } + }), + (e.prototype.dispose = function () { + this.disable(), + this.enabledDisposables.dispose(), + this.disposables.dispose(); + }), + e + ); + })(), + WE = (function () { + function e(e, t) { + (this.list = e), + (this.view = t), + (this.disposables = new Pt()), + Wt.chain(_h(t.domNode, 'keydown')) + .filter(function (e) { + return !RE(e.target); + }) + .map(function (e) { + return new Ch(e); + }) + .filter(function (e) { + return !( + 2 !== e.keyCode || + e.ctrlKey || + e.metaKey || + e.shiftKey || + e.altKey + ); + }) + .on(this.onTab, this, this.disposables); + } + return ( + (e.prototype.onTab = function (e) { + if (e.target === this.view.domNode) { + var t = this.list.getFocus(); + if (0 !== t.length) { + var n = this.view.domElement(t[0]); + if (n) { + var r = n.querySelector('[tabIndex]'); + if (r && r instanceof HTMLElement && -1 !== r.tabIndex) { + var i = window.getComputedStyle(r); + 'hidden' !== i.visibility && + 'none' !== i.display && + (e.preventDefault(), e.stopPropagation(), r.focus()); + } + } + } + } + }), + (e.prototype.dispose = function () { + this.disposables.dispose(); + }), + e + ); + })(); + function HE(e) { + return tt.d ? e.browserEvent.metaKey : e.browserEvent.ctrlKey; + } + function VE(e) { + return e.browserEvent.shiftKey; + } + function zE(e) { + return e instanceof MouseEvent && 2 === e.button; + } + var UE = { + isSelectionSingleChangeEvent: HE, + isSelectionRangeChangeEvent: VE, + }, + qE = { + shouldOpen: function (e) { + return !(e instanceof MouseEvent) || !zE(e); + }, + }, + KE = (function () { + function e(e) { + (this.list = e), + (this.disposables = new Pt()), + (this.multipleSelectionSupport = !( + !1 === e.options.multipleSelectionSupport + )), + this.multipleSelectionSupport && + (this.multipleSelectionController = + e.options.multipleSelectionController || UE), + (this.openController = e.options.openController || qE), + (this.mouseSupport = + void 0 === e.options.mouseSupport || !!e.options.mouseSupport), + this.mouseSupport && + (e.onMouseDown(this.onMouseDown, this, this.disposables), + e.onContextMenu(this.onContextMenu, this, this.disposables), + e.onMouseDblClick(this.onDoubleClick, this, this.disposables), + e.onTouchStart(this.onMouseDown, this, this.disposables), + dp.addTarget(e.getHTMLElement())), + e.onMouseClick(this.onPointer, this, this.disposables), + e.onMouseMiddleClick(this.onPointer, this, this.disposables), + e.onTap(this.onPointer, this, this.disposables); + } + return ( + (e.prototype.isSelectionSingleChangeEvent = function (e) { + return this.multipleSelectionController + ? this.multipleSelectionController.isSelectionSingleChangeEvent(e) + : tt.d + ? e.browserEvent.metaKey + : e.browserEvent.ctrlKey; + }), + (e.prototype.isSelectionRangeChangeEvent = function (e) { + return this.multipleSelectionController + ? this.multipleSelectionController.isSelectionRangeChangeEvent(e) + : e.browserEvent.shiftKey; + }), + (e.prototype.isSelectionChangeEvent = function (e) { + return ( + this.isSelectionSingleChangeEvent(e) || + this.isSelectionRangeChangeEvent(e) + ); + }), + (e.prototype.onMouseDown = function (e) { + document.activeElement !== e.browserEvent.target && + this.list.domFocus(); + }), + (e.prototype.onContextMenu = function (e) { + var t = void 0 === e.index ? [] : [e.index]; + this.list.setFocus(t, e.browserEvent); + }), + (e.prototype.onPointer = function (e) { + if (this.mouseSupport && !RE(e.browserEvent.target)) { + var t = this.list.getFocus()[0], + n = this.list.getSelection(); + t = void 0 === t ? n[0] : t; + var r = e.index; + if (void 0 === r) + return ( + this.list.setFocus([], e.browserEvent), + void this.list.setSelection([], e.browserEvent) + ); + if ( + this.multipleSelectionSupport && + this.isSelectionRangeChangeEvent(e) + ) + return this.changeSelection(e, t); + if ( + this.multipleSelectionSupport && + this.isSelectionChangeEvent(e) + ) + return this.changeSelection(e, t); + this.list.setFocus([r], e.browserEvent), + zE(e.browserEvent) || + (this.list.setSelection([r], e.browserEvent), + this.openController.shouldOpen(e.browserEvent) && + this.list.open([r], e.browserEvent)); + } + }), + (e.prototype.onDoubleClick = function (e) { + if ( + !( + RE(e.browserEvent.target) || + (this.multipleSelectionSupport && + this.isSelectionChangeEvent(e)) + ) + ) { + var t = this.list.getFocus(); + this.list.setSelection(t, e.browserEvent), this.list.pin(t); + } + }), + (e.prototype.changeSelection = function (e, t) { + var n = e.index; + if (this.isSelectionRangeChangeEvent(e) && void 0 !== t) { + var r = Kr(Math.min(t, n), Math.max(t, n) + 1), + i = (function (e, t) { + var n = e.indexOf(t); + if (-1 === n) return []; + var r = [], + i = n - 1; + for (; i >= 0 && e[i] === t - (n - i); ) r.push(e[i--]); + r.reverse(), (i = n); + for (; i < e.length && e[i] === t + (i - n); ) r.push(e[i++]); + return r; + })(XE((s = this.list.getSelection()), [t]), t); + if (0 === i.length) return; + var o = XE( + r, + (function (e, t) { + var n = [], + r = 0, + i = 0; + for (; r < e.length || i < t.length; ) + if (r >= e.length) n.push(t[i++]); + else if (i >= t.length) n.push(e[r++]); + else { + if (e[r] === t[i]) { + r++, i++; + continue; + } + e[r] < t[i] ? n.push(e[r++]) : i++; + } + return n; + })(s, i) + ); + this.list.setSelection(o, e.browserEvent); + } else if (this.isSelectionSingleChangeEvent(e)) { + var s; + o = (s = this.list.getSelection()).filter(function (e) { + return e !== n; + }); + this.list.setFocus([n]), + s.length === o.length + ? this.list.setSelection(o.concat([n]), e.browserEvent) + : this.list.setSelection(o, e.browserEvent); + } + }), + (e.prototype.dispose = function () { + this.disposables.dispose(); + }), + e + ); + })(), + GE = (function () { + function e(e, t) { + (this.styleElement = e), (this.selectorSuffix = t); + } + return ( + (e.prototype.style = function (e) { + var t = this.selectorSuffix ? '.' + this.selectorSuffix : '', + n = []; + e.listFocusBackground && + (n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.focused { background-color: ' + + e.listFocusBackground + + '; }' + ), + n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.focused:hover { background-color: ' + + e.listFocusBackground + + '; }' + )), + e.listFocusForeground && + n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.focused { color: ' + + e.listFocusForeground + + '; }' + ), + e.listActiveSelectionBackground && + (n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.selected { background-color: ' + + e.listActiveSelectionBackground + + '; }' + ), + n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.selected:hover { background-color: ' + + e.listActiveSelectionBackground + + '; }' + )), + e.listActiveSelectionForeground && + n.push( + '.monaco-list' + + t + + ':focus .monaco-list-row.selected { color: ' + + e.listActiveSelectionForeground + + '; }' + ), + e.listFocusAndSelectionBackground && + n.push( + '\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list' + + t + + ':focus .monaco-list-row.selected.focused { background-color: ' + + e.listFocusAndSelectionBackground + + '; }\n\t\t\t' + ), + e.listFocusAndSelectionForeground && + n.push( + '\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list' + + t + + ':focus .monaco-list-row.selected.focused { color: ' + + e.listFocusAndSelectionForeground + + '; }\n\t\t\t' + ), + e.listInactiveFocusBackground && + (n.push( + '.monaco-list' + + t + + ' .monaco-list-row.focused { background-color: ' + + e.listInactiveFocusBackground + + '; }' + ), + n.push( + '.monaco-list' + + t + + ' .monaco-list-row.focused:hover { background-color: ' + + e.listInactiveFocusBackground + + '; }' + )), + e.listInactiveSelectionBackground && + (n.push( + '.monaco-list' + + t + + ' .monaco-list-row.selected { background-color: ' + + e.listInactiveSelectionBackground + + '; }' + ), + n.push( + '.monaco-list' + + t + + ' .monaco-list-row.selected:hover { background-color: ' + + e.listInactiveSelectionBackground + + '; }' + )), + e.listInactiveSelectionForeground && + n.push( + '.monaco-list' + + t + + ' .monaco-list-row.selected { color: ' + + e.listInactiveSelectionForeground + + '; }' + ), + e.listHoverBackground && + n.push( + '.monaco-list' + + t + + ':not(.drop-target) .monaco-list-row:hover:not(.selected):not(.focused) { background-color: ' + + e.listHoverBackground + + '; }' + ), + e.listHoverForeground && + n.push( + '.monaco-list' + + t + + ' .monaco-list-row:hover:not(.selected):not(.focused) { color: ' + + e.listHoverForeground + + '; }' + ), + e.listSelectionOutline && + n.push( + '.monaco-list' + + t + + ' .monaco-list-row.selected { outline: 1px dotted ' + + e.listSelectionOutline + + '; outline-offset: -1px; }' + ), + e.listFocusOutline && + n.push( + '\n\t\t\t\t.monaco-drag-image,\n\t\t\t\t.monaco-list' + + t + + ':focus .monaco-list-row.focused { outline: 1px solid ' + + e.listFocusOutline + + '; outline-offset: -1px; }\n\t\t\t' + ), + e.listInactiveFocusOutline && + n.push( + '.monaco-list' + + t + + ' .monaco-list-row.focused { outline: 1px dotted ' + + e.listInactiveFocusOutline + + '; outline-offset: -1px; }' + ), + e.listHoverOutline && + n.push( + '.monaco-list' + + t + + ' .monaco-list-row:hover { outline: 1px dashed ' + + e.listHoverOutline + + '; outline-offset: -1px; }' + ), + e.listDropBackground && + n.push( + '\n\t\t\t\t.monaco-list' + + t + + '.drop-target,\n\t\t\t\t.monaco-list' + + t + + ' .monaco-list-row.drop-target { background-color: ' + + e.listDropBackground + + ' !important; color: inherit !important; }\n\t\t\t' + ), + e.listFilterWidgetBackground && + n.push( + '.monaco-list-type-filter { background-color: ' + + e.listFilterWidgetBackground + + ' }' + ), + e.listFilterWidgetOutline && + n.push( + '.monaco-list-type-filter { border: 1px solid ' + + e.listFilterWidgetOutline + + '; }' + ), + e.listFilterWidgetNoMatchesOutline && + n.push( + '.monaco-list-type-filter.no-matches { border: 1px solid ' + + e.listFilterWidgetNoMatchesOutline + + '; }' + ), + e.listMatchesShadow && + n.push( + '.monaco-list-type-filter { box-shadow: 1px 1px 1px ' + + e.listMatchesShadow + + '; }' + ); + var r = n.join('\n'); + r !== this.styleElement.innerHTML && + (this.styleElement.innerHTML = r); + }), + e + ); + })(), + $E = { + listFocusBackground: Nu.fromHex('#073655'), + listActiveSelectionBackground: Nu.fromHex('#0E639C'), + listActiveSelectionForeground: Nu.fromHex('#FFFFFF'), + listFocusAndSelectionBackground: Nu.fromHex('#094771'), + listFocusAndSelectionForeground: Nu.fromHex('#FFFFFF'), + listInactiveSelectionBackground: Nu.fromHex('#3F3F46'), + listHoverBackground: Nu.fromHex('#2A2D2E'), + listDropBackground: Nu.fromHex('#383B3D'), + treeIndentGuidesStroke: Nu.fromHex('#a9a9a9'), + }, + ZE = { + keyboardSupport: !0, + mouseSupport: !0, + multipleSelectionSupport: !0, + dnd: { + getDragURI: function () { + return null; + }, + onDragStart: function () {}, + onDragOver: function () { + return !1; + }, + drop: function () {}, + }, + ariaRootRole: ND.TREE, + }; + function XE(e, t) { + for (var n = [], r = 0, i = 0; r < e.length || i < t.length; ) + if (r >= e.length) n.push(t[i++]); + else if (i >= t.length) n.push(e[r++]); + else { + if (e[r] === t[i]) { + n.push(e[r]), r++, i++; + continue; + } + e[r] < t[i] ? n.push(e[r++]) : n.push(t[i++]); + } + return n; + } + var JE = function (e, t) { + return e - t; + }, + QE = (function () { + function e(e, t) { + (this._templateId = e), (this.renderers = t); + } + return ( + Object.defineProperty(e.prototype, 'templateId', { + get: function () { + return this._templateId; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.renderTemplate = function (e) { + return this.renderers.map(function (t) { + return t.renderTemplate(e); + }); + }), + (e.prototype.renderElement = function (e, t, n, r) { + for (var i = 0, o = 0, s = this.renderers; o < s.length; o++) { + s[o].renderElement(e, t, n[i++], r); + } + }), + (e.prototype.disposeElement = function (e, t, n, r) { + for (var i = 0, o = 0, s = this.renderers; o < s.length; o++) { + var a = s[o]; + a.disposeElement && a.disposeElement(e, t, n[i], r), (i += 1); + } + }), + (e.prototype.disposeTemplate = function (e) { + for (var t = 0, n = 0, r = this.renderers; n < r.length; n++) { + r[n].disposeTemplate(e[t++]); + } + }), + e + ); + })(), + eT = (function () { + function e(e) { + (this.accessibilityProvider = e), (this.templateId = 'a18n'); + } + return ( + (e.prototype.renderTemplate = function (e) { + return e; + }), + (e.prototype.renderElement = function (e, t, n) { + var r = this.accessibilityProvider.getAriaLabel(e); + r + ? n.setAttribute('aria-label', r) + : n.removeAttribute('aria-label'); + var i = + this.accessibilityProvider.getAriaLevel && + this.accessibilityProvider.getAriaLevel(e); + 'number' == typeof i + ? n.setAttribute('aria-level', '' + i) + : n.removeAttribute('aria-level'); + }), + (e.prototype.disposeTemplate = function (e) {}), + e + ); + })(), + tT = (function () { + function e(e, t) { + (this.list = e), (this.dnd = t); + } + return ( + (e.prototype.getDragElements = function (e) { + var t = this.list.getSelectedElements(); + return t.indexOf(e) > -1 ? t : [e]; + }), + (e.prototype.getDragURI = function (e) { + return this.dnd.getDragURI(e); + }), + (e.prototype.getDragLabel = function (e) { + if (this.dnd.getDragLabel) return this.dnd.getDragLabel(e); + }), + (e.prototype.onDragStart = function (e, t) { + this.dnd.onDragStart && this.dnd.onDragStart(e, t); + }), + (e.prototype.onDragOver = function (e, t, n, r) { + return this.dnd.onDragOver(e, t, n, r); + }), + (e.prototype.drop = function (e, t, n, r) { + this.dnd.drop(e, t, n, r); + }), + e + ); + })(), + nT = (function () { + function e(e, t, n, r) { + void 0 === r && (r = ZE), + (this._options = r), + (this.eventBufferer = new Zt()), + (this.disposables = new Pt()), + (this._onDidOpen = new Gt()), + (this.onDidOpen = this._onDidOpen.event), + (this._onPin = new Gt()), + (this.didJustPressContextMenuKey = !1), + (this._onDidDispose = new Gt()), + (this.onDidDispose = this._onDidDispose.event), + (this.focus = new IE()), + (this.selection = new AE('selected')), + Xr(r, $E, !1); + var i = [this.focus.renderer, this.selection.renderer]; + r.accessibilityProvider && i.push(new eT(r.accessibilityProvider)), + (n = n.map(function (e) { + return new QE(e.templateId, i.concat([e])); + })); + var o = TE({}, r, { dnd: r.dnd && new tT(this, r.dnd) }); + if ( + ((this.view = new XD(e, t, n, o)), + 'string' != typeof r.ariaRole + ? this.view.domNode.setAttribute('role', ND.TREE) + : this.view.domNode.setAttribute('role', r.ariaRole), + (this.styleElement = vf(this.view.domNode)), + (this.styleController = + r.styleController || new GE(this.styleElement, this.view.domId)), + (this.spliceable = new JD([ + new PE(this.focus, this.view, r.identityProvider), + new PE(this.selection, this.view, r.identityProvider), + this.view, + ])), + this.disposables.add(this.focus), + this.disposables.add(this.selection), + this.disposables.add(this.view), + this.disposables.add(this._onDidDispose), + (this.onDidFocus = Wt.map( + _h(this.view.domNode, 'focus', !0), + function () { + return null; + } + )), + (this.onDidBlur = Wt.map( + _h(this.view.domNode, 'blur', !0), + function () { + return null; + } + )), + this.disposables.add(new WE(this, this.view)), + 'boolean' != typeof r.keyboardSupport || r.keyboardSupport) + ) { + var s = new YE(this, this.view, r); + this.disposables.add(s); + } + r.keyboardNavigationLabelProvider && + ((this.typeLabelController = new BE( + this, + this.view, + r.keyboardNavigationLabelProvider + )), + this.disposables.add(this.typeLabelController)), + this.disposables.add(this.createMouseController(r)), + this.onFocusChange(this._onFocusChange, this, this.disposables), + this.onSelectionChange( + this._onSelectionChange, + this, + this.disposables + ), + r.ariaLabel && + this.view.domNode.setAttribute( + 'aria-label', + De( + 'aria list', + '{0}. Use the navigation keys to navigate.', + r.ariaLabel + ) + ), + this.style(r); + } + return ( + Object.defineProperty(e.prototype, 'onFocusChange', { + get: function () { + var e = this; + return Wt.map( + this.eventBufferer.wrapEvent(this.focus.onChange), + function (t) { + return e.toListEvent(t); + } + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onSelectionChange', { + get: function () { + var e = this; + return Wt.map( + this.eventBufferer.wrapEvent(this.selection.onChange), + function (t) { + return e.toListEvent(t); + } + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'domId', { + get: function () { + return this.view.domId; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseClick', { + get: function () { + return this.view.onMouseClick; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseDblClick', { + get: function () { + return this.view.onMouseDblClick; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseMiddleClick', { + get: function () { + return this.view.onMouseMiddleClick; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onMouseDown', { + get: function () { + return this.view.onMouseDown; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onTouchStart', { + get: function () { + return this.view.onTouchStart; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onTap', { + get: function () { + return this.view.onTap; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onContextMenu', { + get: function () { + var e = this, + t = Wt.chain(_h(this.view.domNode, 'keydown')) + .map(function (e) { + return new Ch(e); + }) + .filter(function (t) { + return (e.didJustPressContextMenuKey = + 58 === t.keyCode || (t.shiftKey && 68 === t.keyCode)); + }) + .filter(function (e) { + return e.preventDefault(), e.stopPropagation(), !1; + }).event, + n = Wt.chain(_h(this.view.domNode, 'keyup')) + .filter(function () { + var t = e.didJustPressContextMenuKey; + return (e.didJustPressContextMenuKey = !1), t; + }) + .filter(function () { + return ( + e.getFocus().length > 0 && + !!e.view.domElement(e.getFocus()[0]) + ); + }) + .map(function (t) { + var n = e.getFocus()[0]; + return { + index: n, + element: e.view.element(n), + anchor: e.view.domElement(n), + browserEvent: t, + }; + }).event, + r = Wt.chain(this.view.onContextMenu) + .filter(function () { + return !e.didJustPressContextMenuKey; + }) + .map(function (e) { + var t = e.element, + n = e.index, + r = e.browserEvent; + return { + element: t, + index: n, + anchor: { x: r.clientX + 1, y: r.clientY }, + browserEvent: r, + }; + }).event; + return Wt.any(t, n, r); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onKeyDown', { + get: function () { + return _h(this.view.domNode, 'keydown'); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.createMouseController = function (e) { + return new KE(this); + }), + (e.prototype.updateOptions = function (e) { + void 0 === e && (e = {}), + (this._options = TE({}, this._options, e)), + this.typeLabelController && + this.typeLabelController.updateOptions(this._options); + }), + Object.defineProperty(e.prototype, 'options', { + get: function () { + return this._options; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.splice = function (e, t, n) { + var r = this; + if ((void 0 === n && (n = []), e < 0 || e > this.view.length)) + throw new Error('Invalid start index: ' + e); + if (t < 0) throw new Error('Invalid delete count: ' + t); + (0 === t && 0 === n.length) || + this.eventBufferer.bufferEvents(function () { + return r.spliceable.splice(e, t, n); + }); + }), + (e.prototype.rerender = function () { + this.view.rerender(); + }), + (e.prototype.element = function (e) { + return this.view.element(e); + }), + Object.defineProperty(e.prototype, 'length', { + get: function () { + return this.view.length; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'contentHeight', { + get: function () { + return this.view.contentHeight; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'scrollTop', { + get: function () { + return this.view.getScrollTop(); + }, + set: function (e) { + this.view.setScrollTop(e); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.domFocus = function () { + this.view.domNode.focus(); + }), + (e.prototype.layout = function (e, t) { + this.view.layout(e, t); + }), + (e.prototype.setSelection = function (e, t) { + for (var n = 0, r = e; n < r.length; n++) { + var i = r[n]; + if (i < 0 || i >= this.length) + throw new Error('Invalid index ' + i); + } + this.selection.set(e, t); + }), + (e.prototype.getSelection = function () { + return this.selection.get(); + }), + (e.prototype.getSelectedElements = function () { + var e = this; + return this.getSelection().map(function (t) { + return e.view.element(t); + }); + }), + (e.prototype.setFocus = function (e, t) { + for (var n = 0, r = e; n < r.length; n++) { + var i = r[n]; + if (i < 0 || i >= this.length) + throw new Error('Invalid index ' + i); + } + this.focus.set(e, t); + }), + (e.prototype.focusNext = function (e, t, n, r) { + if ( + (void 0 === e && (e = 1), + void 0 === t && (t = !1), + 0 !== this.length) + ) { + var i = this.focus.get(), + o = this.findNextIndex(i.length > 0 ? i[0] + e : 0, t, r); + o > -1 && this.setFocus([o], n); + } + }), + (e.prototype.focusPrevious = function (e, t, n, r) { + if ( + (void 0 === e && (e = 1), + void 0 === t && (t = !1), + 0 !== this.length) + ) { + var i = this.focus.get(), + o = this.findPreviousIndex(i.length > 0 ? i[0] - e : 0, t, r); + o > -1 && this.setFocus([o], n); + } + }), + (e.prototype.focusNextPage = function (e, t) { + var n = this, + r = this.view.indexAt( + this.view.getScrollTop() + this.view.renderHeight + ); + r = 0 === r ? 0 : r - 1; + var i = this.view.element(r), + o = this.getFocusedElements()[0]; + if (o !== i) { + var s = this.findPreviousIndex(r, !1, t); + s > -1 && o !== this.view.element(s) + ? this.setFocus([s], e) + : this.setFocus([r], e); + } else { + var a = this.view.getScrollTop(); + this.view.setScrollTop( + a + this.view.renderHeight - this.view.elementHeight(r) + ), + this.view.getScrollTop() !== a && + setTimeout(function () { + return n.focusNextPage(e, t); + }, 0); + } + }), + (e.prototype.focusPreviousPage = function (e, t) { + var n, + r = this, + i = this.view.getScrollTop(); + n = 0 === i ? this.view.indexAt(i) : this.view.indexAfter(i - 1); + var o = this.view.element(n), + s = this.getFocusedElements()[0]; + if (s !== o) { + var a = this.findNextIndex(n, !1, t); + a > -1 && s !== this.view.element(a) + ? this.setFocus([a], e) + : this.setFocus([n], e); + } else { + var u = i; + this.view.setScrollTop(i - this.view.renderHeight), + this.view.getScrollTop() !== u && + setTimeout(function () { + return r.focusPreviousPage(e, t); + }, 0); + } + }), + (e.prototype.focusLast = function (e, t) { + if (0 !== this.length) { + var n = this.findPreviousIndex(this.length - 1, !1, t); + n > -1 && this.setFocus([n], e); + } + }), + (e.prototype.focusFirst = function (e, t) { + if (0 !== this.length) { + var n = this.findNextIndex(0, !1, t); + n > -1 && this.setFocus([n], e); + } + }), + (e.prototype.findNextIndex = function (e, t, n) { + void 0 === t && (t = !1); + for (var r = 0; r < this.length; r++) { + if (e >= this.length && !t) return -1; + if (((e %= this.length), !n || n(this.element(e)))) return e; + e++; + } + return -1; + }), + (e.prototype.findPreviousIndex = function (e, t, n) { + void 0 === t && (t = !1); + for (var r = 0; r < this.length; r++) { + if (e < 0 && !t) return -1; + if ( + ((e = (this.length + (e % this.length)) % this.length), + !n || n(this.element(e))) + ) + return e; + e--; + } + return -1; + }), + (e.prototype.getFocus = function () { + return this.focus.get(); + }), + (e.prototype.getFocusedElements = function () { + var e = this; + return this.getFocus().map(function (t) { + return e.view.element(t); + }); + }), + (e.prototype.reveal = function (e, t) { + if (e < 0 || e >= this.length) + throw new Error('Invalid index ' + e); + var n = this.view.getScrollTop(), + r = this.view.elementTop(e), + i = this.view.elementHeight(e); + if (Oe(t)) { + var o = i - this.view.renderHeight; + this.view.setScrollTop(o * QD(t, 0, 1) + r); + } else { + var s = r + i, + a = n + this.view.renderHeight; + r < n + ? this.view.setScrollTop(r) + : s >= a && this.view.setScrollTop(s - this.view.renderHeight); + } + }), + (e.prototype.getRelativeTop = function (e) { + if (e < 0 || e >= this.length) + throw new Error('Invalid index ' + e); + var t = this.view.getScrollTop(), + n = this.view.elementTop(e), + r = this.view.elementHeight(e); + if (n < t || n + r > t + this.view.renderHeight) return null; + var i = r - this.view.renderHeight; + return Math.abs((t - n) / i); + }), + (e.prototype.getHTMLElement = function () { + return this.view.domNode; + }), + (e.prototype.open = function (e, t) { + for (var n = this, r = 0, i = e; r < i.length; r++) { + var o = i[r]; + if (o < 0 || o >= this.length) + throw new Error('Invalid index ' + o); + } + this._onDidOpen.fire({ + indexes: e, + elements: e.map(function (e) { + return n.view.element(e); + }), + browserEvent: t, + }); + }), + (e.prototype.pin = function (e) { + for (var t = 0, n = e; t < n.length; t++) { + var r = n[t]; + if (r < 0 || r >= this.length) + throw new Error('Invalid index ' + r); + } + this._onPin.fire(e); + }), + (e.prototype.style = function (e) { + this.styleController.style(e); + }), + (e.prototype.toListEvent = function (e) { + var t = this, + n = e.indexes, + r = e.browserEvent; + return { + indexes: n, + elements: n.map(function (e) { + return t.view.element(e); + }), + browserEvent: r, + }; + }), + (e.prototype._onFocusChange = function () { + var e = this.focus.get(); + e.length > 0 + ? this.view.domNode.setAttribute( + 'aria-activedescendant', + this.view.getElementDomId(e[0]) + ) + : this.view.domNode.removeAttribute('aria-activedescendant'), + this.view.domNode.setAttribute('role', 'tree'), + Uh(this.view.domNode, 'element-focused', e.length > 0); + }), + (e.prototype._onSelectionChange = function () { + var e = this.selection.get(); + Uh(this.view.domNode, 'selection-none', 0 === e.length), + Uh(this.view.domNode, 'selection-single', 1 === e.length), + Uh(this.view.domNode, 'selection-multiple', e.length > 1); + }), + (e.prototype.dispose = function () { + this._onDidDispose.fire(), + this.disposables.dispose(), + this._onDidOpen.dispose(), + this._onPin.dispose(), + this._onDidDispose.dispose(); + }), + NE([ap], e.prototype, 'onFocusChange', null), + NE([ap], e.prototype, 'onSelectionChange', null), + NE([ap], e.prototype, 'onContextMenu', null), + e + ); + })(); + n(357); + function rT(e) { + return 'object' == typeof e && 'visibility' in e && 'data' in e; + } + function iT(e) { + switch (e) { + case !0: + return 1; + case !1: + return 0; + default: + return e; + } + } + function oT(e) { + var t = e.element, + n = e.collapsed; + return { + element: t, + children: Yt.map(Yt.fromArray(e.children), oT), + collapsed: n, + }; + } + var sT = (function () { + function e(e, t, n) { + void 0 === n && (n = {}), + (this.list = e), + (this.rootRef = []), + (this.eventBufferer = new Zt()), + (this._onDidChangeCollapseState = new Gt()), + (this.onDidChangeCollapseState = this.eventBufferer.wrapEvent( + this._onDidChangeCollapseState.event + )), + (this._onDidChangeRenderNodeCount = new Gt()), + (this.onDidChangeRenderNodeCount = this.eventBufferer.wrapEvent( + this._onDidChangeRenderNodeCount.event + )), + (this._onDidSplice = new Gt()), + (this.onDidSplice = this._onDidSplice.event), + (this.collapseByDefault = + void 0 !== n.collapseByDefault && n.collapseByDefault), + (this.filter = n.filter), + (this.autoExpandSingleChildren = + void 0 !== n.autoExpandSingleChildren && + n.autoExpandSingleChildren), + (this.root = { + parent: void 0, + element: t, + children: [], + depth: 0, + visibleChildrenCount: 0, + visibleChildIndex: -1, + collapsible: !1, + collapsed: !1, + renderNodeCount: 0, + visible: !0, + filterData: void 0, + }); + } + return ( + (e.prototype.splice = function (e, t, n, r, i) { + var o, + s = this; + if (0 === e.length) throw new Error('Invalid tree location'); + for ( + var a = this.getParentNodeWithListIndex(e), + u = a.parentNode, + l = a.listIndex, + c = a.revealed, + d = a.visible, + h = [], + f = Yt.map(Yt.from(n), function (e) { + return s.createTreeNode(e, u, u.visible ? 1 : 0, c, h, r); + }), + p = e[e.length - 1], + g = 0, + m = p; + m >= 0 && m < u.children.length; + m-- + ) { + if ((x = u.children[m]).visible) { + g = x.visibleChildIndex; + break; + } + } + var _ = [], + y = 0, + v = 0; + Yt.forEach(f, function (e) { + _.push(e), + (v += e.renderNodeCount), + e.visible && (e.visibleChildIndex = g + y++); + }); + for ( + var b = (o = u.children).splice.apply(o, [p, t].concat(_)), + w = 0, + C = 0, + S = b; + C < S.length; + C++ + ) { + (x = S[C]).visible && w++; + } + if (0 !== w) + for (m = p + _.length; m < u.children.length; m++) { + var x; + (x = u.children[m]).visible && (x.visibleChildIndex -= w); + } + if (((u.visibleChildrenCount += y - w), c && d)) { + var L = b.reduce(function (e, t) { + return e + t.renderNodeCount; + }, 0); + this._updateAncestorsRenderNodeCount(u, v - L), + this.list.splice(l, L, h); + } + if (b.length > 0 && i) { + var k = function (e) { + i(e), e.children.forEach(k); + }; + b.forEach(k); + } + var M = Yt.map(Yt.fromArray(b), oT); + return ( + this._onDidSplice.fire({ insertedNodes: _, deletedNodes: b }), M + ); + }), + (e.prototype.rerender = function (e) { + if (0 === e.length) throw new Error('Invalid tree location'); + var t = this.getTreeNodeWithListIndex(e), + n = t.node, + r = t.listIndex; + t.revealed && this.list.splice(r, 1, [n]); + }), + (e.prototype.getListIndex = function (e) { + var t = this.getTreeNodeWithListIndex(e), + n = t.listIndex, + r = t.visible, + i = t.revealed; + return r && i ? n : -1; + }), + (e.prototype.getListRenderCount = function (e) { + return this.getTreeNode(e).renderNodeCount; + }), + (e.prototype.isCollapsed = function (e) { + return this.getTreeNode(e).collapsed; + }), + (e.prototype.setCollapsed = function (e, t, n) { + var r = this, + i = this.getTreeNode(e); + return ( + void 0 === t && (t = !i.collapsed), + this.eventBufferer.bufferEvents(function () { + return r._setCollapsed(e, t, n); + }) + ); + }), + (e.prototype._setCollapsed = function (e, t, n) { + var r = this.getTreeNodeWithListIndex(e), + i = r.node, + o = r.listIndex, + s = r.revealed, + a = this._setListNodeCollapsed(i, o, s, t, n || !1); + if (i !== this.root && this.autoExpandSingleChildren && !t && !n) { + for (var u = -1, l = 0; l < i.children.length; l++) { + if (i.children[l].visible) { + if (u > -1) { + u = -1; + break; + } + u = l; + } + } + u > -1 && this._setCollapsed(e.concat([u]), !1, !1); + } + return a; + }), + (e.prototype._setListNodeCollapsed = function (e, t, n, r, i) { + var o = this._setNodeCollapsed(e, r, i, !1); + if (!n || !e.visible) return o; + var s = e.renderNodeCount, + a = this.updateNodeAfterCollapseChange(e), + u = s - (-1 === t ? 0 : 1); + return this.list.splice(t + 1, u, a.slice(1)), o; + }), + (e.prototype._setNodeCollapsed = function (e, t, n, r) { + var i = e.collapsible && e.collapsed !== t; + if ( + (e.collapsible && + ((e.collapsed = t), + i && this._onDidChangeCollapseState.fire({ node: e, deep: r })), + n) + ) + for (var o = 0, s = e.children; o < s.length; o++) { + var a = s[o]; + i = this._setNodeCollapsed(a, t, !0, !0) || i; + } + return i; + }), + (e.prototype.expandTo = function (e) { + var t = this; + this.eventBufferer.bufferEvents(function () { + for (var n = t.getTreeNode(e); n.parent; ) + (n = n.parent), + (e = e.slice(0, e.length - 1)), + n.collapsed && t._setCollapsed(e, !1); + }); + }), + (e.prototype.refilter = function () { + var e = this.root.renderNodeCount, + t = this.updateNodeAfterFilterChange(this.root); + this.list.splice(0, e, t); + }), + (e.prototype.createTreeNode = function (e, t, n, r, i, o) { + var s = this, + a = { + parent: t, + element: e.element, + children: [], + depth: t.depth + 1, + visibleChildrenCount: 0, + visibleChildIndex: -1, + collapsible: + 'boolean' == typeof e.collapsible + ? e.collapsible + : void 0 !== e.collapsed, + collapsed: + void 0 === e.collapsed ? this.collapseByDefault : e.collapsed, + renderNodeCount: 1, + visible: !0, + filterData: void 0, + }, + u = this._filterNode(a, n); + r && i.push(a); + var l = Yt.from(e.children), + c = r && 0 !== u && !a.collapsed, + d = Yt.map(l, function (e) { + return s.createTreeNode(e, a, u, c, i, o); + }), + h = 0, + f = 1; + return ( + Yt.forEach(d, function (e) { + a.children.push(e), + (f += e.renderNodeCount), + e.visible && (e.visibleChildIndex = h++); + }), + (a.collapsible = a.collapsible || a.children.length > 0), + (a.visibleChildrenCount = h), + (a.visible = 2 === u ? h > 0 : 1 === u), + a.visible + ? a.collapsed || (a.renderNodeCount = f) + : ((a.renderNodeCount = 0), r && i.pop()), + o && o(a), + a + ); + }), + (e.prototype.updateNodeAfterCollapseChange = function (e) { + var t = e.renderNodeCount, + n = []; + return ( + this._updateNodeAfterCollapseChange(e, n), + this._updateAncestorsRenderNodeCount(e.parent, n.length - t), + n + ); + }), + (e.prototype._updateNodeAfterCollapseChange = function (e, t) { + if (!1 === e.visible) return 0; + if ((t.push(e), (e.renderNodeCount = 1), !e.collapsed)) + for (var n = 0, r = e.children; n < r.length; n++) { + var i = r[n]; + e.renderNodeCount += this._updateNodeAfterCollapseChange(i, t); + } + return this._onDidChangeRenderNodeCount.fire(e), e.renderNodeCount; + }), + (e.prototype.updateNodeAfterFilterChange = function (e) { + var t = e.renderNodeCount, + n = []; + return ( + this._updateNodeAfterFilterChange(e, e.visible ? 1 : 0, n), + this._updateAncestorsRenderNodeCount(e.parent, n.length - t), + n + ); + }), + (e.prototype._updateNodeAfterFilterChange = function (e, t, n, r) { + var i; + if ((void 0 === r && (r = !0), e !== this.root)) { + if (0 === (i = this._filterNode(e, t))) + return (e.visible = !1), !1; + r && n.push(e); + } + var o = n.length; + e.renderNodeCount = e === this.root ? 0 : 1; + var s = !1; + if (e.collapsed && 0 === i) e.visibleChildrenCount = 0; + else { + for (var a = 0, u = 0, l = e.children; u < l.length; u++) { + var c = l[u]; + (s = + this._updateNodeAfterFilterChange( + c, + i, + n, + r && !e.collapsed + ) || s), + c.visible && (c.visibleChildIndex = a++); + } + e.visibleChildrenCount = a; + } + return ( + e !== this.root && (e.visible = 2 === i ? s : 1 === i), + e.visible + ? e.collapsed || (e.renderNodeCount += n.length - o) + : ((e.renderNodeCount = 0), r && n.pop()), + this._onDidChangeRenderNodeCount.fire(e), + e.visible + ); + }), + (e.prototype._updateAncestorsRenderNodeCount = function (e, t) { + if (0 !== t) + for (; e; ) + (e.renderNodeCount += t), + this._onDidChangeRenderNodeCount.fire(e), + (e = e.parent); + }), + (e.prototype._filterNode = function (e, t) { + var n = this.filter ? this.filter.filter(e.element, t) : 1; + return 'boolean' == typeof n + ? ((e.filterData = void 0), n ? 1 : 0) + : rT(n) + ? ((e.filterData = n.data), iT(n.visibility)) + : ((e.filterData = void 0), iT(n)); + }), + (e.prototype.getTreeNode = function (e, t) { + if ((void 0 === t && (t = this.root), !e || 0 === e.length)) + return t; + var n = e[0], + r = e.slice(1); + if (n < 0 || n > t.children.length) + throw new Error('Invalid tree location'); + return this.getTreeNode(r, t.children[n]); + }), + (e.prototype.getTreeNodeWithListIndex = function (e) { + if (0 === e.length) + return { + node: this.root, + listIndex: -1, + revealed: !0, + visible: !1, + }; + var t = this.getParentNodeWithListIndex(e), + n = t.parentNode, + r = t.listIndex, + i = t.revealed, + o = t.visible, + s = e[e.length - 1]; + if (s < 0 || s > n.children.length) + throw new Error('Invalid tree location'); + var a = n.children[s]; + return { + node: a, + listIndex: r, + revealed: i, + visible: o && a.visible, + }; + }), + (e.prototype.getParentNodeWithListIndex = function (e, t, n, r, i) { + void 0 === t && (t = this.root), + void 0 === n && (n = 0), + void 0 === r && (r = !0), + void 0 === i && (i = !0); + var o = e[0], + s = e.slice(1); + if (o < 0 || o > t.children.length) + throw new Error('Invalid tree location'); + for (var a = 0; a < o; a++) n += t.children[a].renderNodeCount; + return ( + (r = r && !t.collapsed), + (i = i && t.visible), + 0 === s.length + ? { parentNode: t, listIndex: n, revealed: r, visible: i } + : this.getParentNodeWithListIndex(s, t.children[o], n + 1, r, i) + ); + }), + (e.prototype.getNode = function (e) { + return void 0 === e && (e = []), this.getTreeNode(e); + }), + (e.prototype.getNodeLocation = function (e) { + for (var t = []; e.parent; ) + t.push(e.parent.children.indexOf(e)), (e = e.parent); + return t.reverse(); + }), + (e.prototype.getParentNodeLocation = function (e) { + return e.length <= 1 + ? [] + : (function (e) { + if (0 === e.length) throw new Error('Invalid tail call'); + return [e.slice(0, e.length - 1), e[e.length - 1]]; + })(e)[0]; + }), + e + ); + })(), + aT = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + uT = function () { + return (uT = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }; + function lT(e) { + if (e instanceof GD) { + var t = e.elements; + return new GD( + t.map(function (e) { + return e.element; + }) + ); + } + return e; + } + var cT = (function () { + function e(e, t) { + (this.modelProvider = e), + (this.dnd = t), + (this.autoExpandDisposable = Rt.None); + } + return ( + (e.prototype.getDragURI = function (e) { + return this.dnd.getDragURI(e.element); + }), + (e.prototype.getDragLabel = function (e) { + if (this.dnd.getDragLabel) + return this.dnd.getDragLabel( + e.map(function (e) { + return e.element; + }) + ); + }), + (e.prototype.onDragStart = function (e, t) { + this.dnd.onDragStart && this.dnd.onDragStart(lT(e), t); + }), + (e.prototype.onDragOver = function (e, t, n, r, i) { + var o = this; + void 0 === i && (i = !0); + var s = this.dnd.onDragOver(lT(e), t && t.element, n, r), + a = this.autoExpandNode !== t; + if ( + (a && + (this.autoExpandDisposable.dispose(), (this.autoExpandNode = t)), + void 0 === t) + ) + return s; + if ( + (a && + 'boolean' != typeof s && + s.autoExpand && + (this.autoExpandDisposable = Ds(function () { + var e = o.modelProvider(), + n = e.getNodeLocation(t); + e.isCollapsed(n) && e.setCollapsed(n, !1), + (o.autoExpandNode = void 0); + }, 500)), + 'boolean' == typeof s || !s.accept || void 0 === s.bubble) + ) + return i + ? s + : { + accept: 'boolean' == typeof s ? s : s.accept, + effect: 'boolean' == typeof s ? void 0 : s.effect, + feedback: [n], + }; + if (1 === s.bubble) { + var u = t.parent, + l = this.modelProvider(), + c = u && l.getListIndex(l.getNodeLocation(u)); + return this.onDragOver(e, u, c, r, !1); + } + var d = this.modelProvider(), + h = d.getNodeLocation(t), + f = d.getListIndex(h), + p = d.getListRenderCount(h); + return uT({}, s, { feedback: Kr(f, f + p) }); + }), + (e.prototype.drop = function (e, t, n, r) { + this.autoExpandDisposable.dispose(), + (this.autoExpandNode = void 0), + this.dnd.drop(lT(e), t && t.element, n, r); + }), + e + ); + })(); + var dT, + hT = (function () { + function e(e) { + this.delegate = e; + } + return ( + (e.prototype.getHeight = function (e) { + return this.delegate.getHeight(e.element); + }), + (e.prototype.getTemplateId = function (e) { + return this.delegate.getTemplateId(e.element); + }), + (e.prototype.hasDynamicHeight = function (e) { + return ( + !!this.delegate.hasDynamicHeight && + this.delegate.hasDynamicHeight(e.element) + ); + }), + (e.prototype.setDynamicHeight = function (e, t) { + this.delegate.setDynamicHeight && + this.delegate.setDynamicHeight(e.element, t); + }), + e + ); + })(); + !(function (e) { + (e.None = 'none'), (e.OnHover = 'onHover'), (e.Always = 'always'); + })(dT || (dT = {})); + var fT = (function () { + function e(e, t) { + var n = this; + void 0 === t && (t = []), + (this.onDidChange = e), + (this._elements = t), + (this.disposables = new Pt()), + e( + function (e) { + return (n._elements = e); + }, + null, + this.disposables + ); + } + return ( + Object.defineProperty(e.prototype, 'elements', { + get: function () { + return this._elements; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.dispose = function () { + this.disposables.dispose(); + }), + e + ); + })(), + pT = (function () { + function e(t, n, r, i) { + void 0 === i && (i = {}), + (this.renderer = t), + (this.activeNodes = r), + (this.renderedElements = new Map()), + (this.renderedNodes = new Map()), + (this.indent = e.DefaultIndent), + (this._renderIndentGuides = dT.None), + (this.renderedIndentGuides = new TD()), + (this.activeIndentNodes = new Set()), + (this.indentGuidesDisposable = Rt.None), + (this.disposables = []), + (this.templateId = t.templateId), + this.updateOptions(i), + Wt.map(n, function (e) { + return e.node; + })(this.onDidChangeNodeTwistieState, this, this.disposables), + t.onDidChangeTwistieState && + t.onDidChangeTwistieState( + this.onDidChangeTwistieState, + this, + this.disposables + ); + } + return ( + (e.prototype.updateOptions = function (e) { + if ( + (void 0 === e && (e = {}), + void 0 !== e.indent && (this.indent = QD(e.indent, 0, 40)), + void 0 !== e.renderIndentGuides) + ) { + var t = e.renderIndentGuides; + if (t !== this._renderIndentGuides) + if (((this._renderIndentGuides = t), t)) { + var n = new Pt(); + this.activeNodes.onDidChange( + this._onDidChangeActiveNodes, + this, + n + ), + (this.indentGuidesDisposable = n), + this._onDidChangeActiveNodes(this.activeNodes.elements); + } else this.indentGuidesDisposable.dispose(); + } + }), + (e.prototype.renderTemplate = function (e) { + var t = kf(e, Tf('.monaco-tl-row')), + n = kf(t, Tf('.monaco-tl-indent')), + r = kf(t, Tf('.monaco-tl-twistie')), + i = kf(t, Tf('.monaco-tl-contents')), + o = this.renderer.renderTemplate(i); + return { + container: e, + indent: n, + twistie: r, + indentGuidesDisposable: Rt.None, + templateData: o, + }; + }), + (e.prototype.renderElement = function (t, n, r, i) { + 'number' == typeof i && + (this.renderedNodes.set(t, { templateData: r, height: i }), + this.renderedElements.set(t.element, t)); + var o = e.DefaultIndent + (t.depth - 1) * this.indent; + (r.twistie.style.marginLeft = o + 'px'), + (r.indent.style.width = o + this.indent - 16 + 'px'), + this.renderTwistie(t, r), + 'number' == typeof i && this.renderIndentGuides(t, r), + this.renderer.renderElement(t, n, r.templateData, i); + }), + (e.prototype.disposeElement = function (e, t, n, r) { + n.indentGuidesDisposable.dispose(), + this.renderer.disposeElement && + this.renderer.disposeElement(e, t, n.templateData, r), + 'number' == typeof r && + (this.renderedNodes.delete(e), + this.renderedElements.delete(e.element)); + }), + (e.prototype.disposeTemplate = function (e) { + this.renderer.disposeTemplate(e.templateData); + }), + (e.prototype.onDidChangeTwistieState = function (e) { + var t = this.renderedElements.get(e); + t && this.onDidChangeNodeTwistieState(t); + }), + (e.prototype.onDidChangeNodeTwistieState = function (e) { + var t = this.renderedNodes.get(e); + t && + (this.renderTwistie(e, t.templateData), + this._onDidChangeActiveNodes(this.activeNodes.elements), + this.renderIndentGuides(e, t.templateData)); + }), + (e.prototype.renderTwistie = function (e, t) { + this.renderer.renderTwistie && + this.renderer.renderTwistie(e.element, t.twistie), + Uh(t.twistie, 'collapsible', e.collapsible), + Uh(t.twistie, 'collapsed', e.collapsible && e.collapsed), + e.collapsible + ? t.container.setAttribute( + 'aria-expanded', + String(!e.collapsed) + ) + : t.container.removeAttribute('aria-expanded'); + }), + (e.prototype.renderIndentGuides = function (e, t) { + var n = this; + if ( + (Ph(t.indent), + t.indentGuidesDisposable.dispose(), + this._renderIndentGuides !== dT.None) + ) { + for ( + var r = new Pt(), + i = e, + o = function () { + var e = i.parent, + o = Tf('.indent-guide', { + style: 'width: ' + s.indent + 'px', + }); + s.activeIndentNodes.has(e) && Wh(o, 'active'), + 0 === t.indent.childElementCount + ? t.indent.appendChild(o) + : t.indent.insertBefore(o, t.indent.firstElementChild), + s.renderedIndentGuides.add(e, o), + r.add( + It(function () { + return n.renderedIndentGuides.delete(e, o); + }) + ), + (i = e); + }, + s = this; + i.parent && i.parent.parent; + + ) + o(); + t.indentGuidesDisposable = r; + } + }), + (e.prototype._onDidChangeActiveNodes = function (e) { + var t = this; + if (this._renderIndentGuides !== dT.None) { + var n = new Set(); + e.forEach(function (e) { + e.collapsible && e.children.length > 0 && !e.collapsed + ? n.add(e) + : e.parent && n.add(e.parent); + }), + this.activeIndentNodes.forEach(function (e) { + n.has(e) || + t.renderedIndentGuides.forEach(e, function (e) { + return Vh(e, 'active'); + }); + }), + n.forEach(function (e) { + t.activeIndentNodes.has(e) || + t.renderedIndentGuides.forEach(e, function (e) { + return Wh(e, 'active'); + }); + }), + (this.activeIndentNodes = n); + } + }), + (e.prototype.dispose = function () { + this.renderedNodes.clear(), + this.renderedElements.clear(), + this.indentGuidesDisposable.dispose(), + (this.disposables = Ot(this.disposables)); + }), + (e.DefaultIndent = 8), + e + ); + })(), + gT = (function () { + function e(e, t, n) { + (this.tree = e), + (this.keyboardNavigationLabelProvider = t), + (this._filter = n), + (this._totalCount = 0), + (this._matchCount = 0), + (this._pattern = ''), + (this._lowercasePattern = ''), + (this.disposables = []), + e.onWillRefilter(this.reset, this, this.disposables); + } + return ( + Object.defineProperty(e.prototype, 'totalCount', { + get: function () { + return this._totalCount; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'matchCount', { + get: function () { + return this._matchCount; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'pattern', { + set: function (e) { + (this._pattern = e), (this._lowercasePattern = e.toLowerCase()); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.filter = function (e, t) { + if (this._filter) { + var n = this._filter.filter(e, t); + if (this.tree.options.simpleKeyboardNavigation) return n; + if ( + 0 === + ('boolean' == typeof n + ? n + ? 1 + : 0 + : rT(n) + ? iT(n.visibility) + : n) + ) + return !1; + } + if ( + (this._totalCount++, + this.tree.options.simpleKeyboardNavigation || !this._pattern) + ) + return this._matchCount++, { data: pE.Default, visibility: !0 }; + var r = this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel( + e + ), + i = r && r.toString(); + if (void 0 === i) return { data: pE.Default, visibility: !0 }; + var o = CE( + this._pattern, + this._lowercasePattern, + 0, + i, + i.toLowerCase(), + 0, + !0 + ); + return o + ? (this._matchCount++, { data: o, visibility: !0 }) + : this.tree.options.filterOnType + ? 2 + : { data: pE.Default, visibility: !0 }; + }), + (e.prototype.reset = function () { + (this._totalCount = 0), (this._matchCount = 0); + }), + (e.prototype.dispose = function () { + this.disposables = Ot(this.disposables); + }), + e + ); + })(), + mT = (function () { + function e(e, t, n, r, i) { + (this.tree = e), + (this.view = n), + (this.filter = r), + (this.keyboardNavigationLabelProvider = i), + (this._enabled = !1), + (this._pattern = ''), + (this._empty = !1), + (this._onDidChangeEmptyState = new Gt()), + (this.positionClassName = 'ne'), + (this.automaticKeyboardNavigation = !0), + (this.triggered = !1), + (this._onDidChangePattern = new Gt()), + (this.enabledDisposables = []), + (this.disposables = []), + (this.domNode = Tf( + '.monaco-list-type-filter.' + this.positionClassName + )), + (this.domNode.draggable = !0), + _h(this.domNode, 'dragstart')( + this.onDragStart, + this, + this.disposables + ), + (this.messageDomNode = kf( + n.getHTMLElement(), + Tf('.monaco-list-type-filter-message') + )), + (this.labelDomNode = kf(this.domNode, Tf('span.label'))); + var o = kf(this.domNode, Tf('.controls')); + (this._filterOnType = !!e.options.filterOnType), + (this.filterOnTypeDomNode = kf(o, Tf('input.filter'))), + (this.filterOnTypeDomNode.type = 'checkbox'), + (this.filterOnTypeDomNode.checked = this._filterOnType), + (this.filterOnTypeDomNode.tabIndex = -1), + this.updateFilterOnTypeTitle(), + _h(this.filterOnTypeDomNode, 'input')( + this.onDidChangeFilterOnType, + this, + this.disposables + ), + (this.clearDomNode = kf(o, Tf('button.clear'))), + (this.clearDomNode.tabIndex = -1), + (this.clearDomNode.title = De('clear', 'Clear')), + (this.keyboardNavigationEventFilter = + e.options.keyboardNavigationEventFilter), + t.onDidSplice(this.onDidSpliceModel, this, this.disposables), + this.updateOptions(e.options); + } + return ( + Object.defineProperty(e.prototype, 'enabled', { + get: function () { + return this._enabled; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'pattern', { + get: function () { + return this._pattern; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'filterOnType', { + get: function () { + return this._filterOnType; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.updateOptions = function (e) { + e.simpleKeyboardNavigation ? this.disable() : this.enable(), + void 0 !== e.filterOnType && + ((this._filterOnType = !!e.filterOnType), + (this.filterOnTypeDomNode.checked = this._filterOnType)), + void 0 !== e.automaticKeyboardNavigation && + (this.automaticKeyboardNavigation = + e.automaticKeyboardNavigation), + this.tree.refilter(), + this.render(), + this.automaticKeyboardNavigation || this.onEventOrInput(''); + }), + (e.prototype.enable = function () { + var e = this; + if (!this._enabled) { + var t = this.keyboardNavigationLabelProvider + .mightProducePrintableCharacter + ? function (t) { + return e.keyboardNavigationLabelProvider.mightProducePrintableCharacter( + t + ); + } + : function (e) { + return jE(e); + }, + n = Wt.chain(_h(this.view.getHTMLElement(), 'keydown')) + .filter(function (t) { + return !_T(t.target) || t.target === e.filterOnTypeDomNode; + }) + .map(function (e) { + return new Ch(e); + }) + .filter( + this.keyboardNavigationEventFilter || + function () { + return !0; + } + ) + .filter(function () { + return e.automaticKeyboardNavigation || e.triggered; + }) + .filter(function (n) { + return ( + t(n) || + ((e.pattern.length > 0 || e.triggered) && + (9 === n.keyCode || 1 === n.keyCode) && + !n.altKey && + !n.ctrlKey && + !n.metaKey) || + (1 === n.keyCode && + (tt.d ? n.altKey && !n.metaKey : n.ctrlKey) && + !n.shiftKey) + ); + }) + .forEach(function (e) { + e.stopPropagation(), e.preventDefault(); + }).event, + r = _h(this.clearDomNode, 'click'); + Wt.chain(Wt.any(n, r)).event( + this.onEventOrInput, + this, + this.enabledDisposables + ), + (this.filter.pattern = ''), + this.tree.refilter(), + this.render(), + (this._enabled = !0), + (this.triggered = !1); + } + }), + (e.prototype.disable = function () { + this._enabled && + (this.domNode.remove(), + (this.enabledDisposables = Ot(this.enabledDisposables)), + this.tree.refilter(), + this.render(), + (this._enabled = !1), + (this.triggered = !1)); + }), + (e.prototype.onEventOrInput = function (e) { + 'string' == typeof e + ? this.onInput(e) + : e instanceof MouseEvent || + 9 === e.keyCode || + (1 === e.keyCode && (tt.d ? e.altKey : e.ctrlKey)) + ? this.onInput('') + : 1 === e.keyCode + ? this.onInput( + 0 === this.pattern.length + ? '' + : this.pattern.substr(0, this.pattern.length - 1) + ) + : this.onInput(this.pattern + e.browserEvent.key); + }), + (e.prototype.onInput = function (e) { + var t = this.view.getHTMLElement(); + e && !this.domNode.parentElement + ? t.append(this.domNode) + : !e && + this.domNode.parentElement && + (this.domNode.remove(), this.tree.domFocus()), + (this._pattern = e), + this._onDidChangePattern.fire(e), + (this.filter.pattern = e), + this.tree.refilter(), + e && + this.tree.focusNext(0, !0, void 0, function (e) { + return !pE.isDefault(e.filterData); + }); + var n = this.tree.getFocus(); + if (n.length > 0) { + var r = n[0]; + null === this.tree.getRelativeTop(r) && this.tree.reveal(r, 0.5); + } + this.render(), e || (this.triggered = !1); + }), + (e.prototype.onDragStart = function () { + var e = this, + t = this.view.getHTMLElement(), + n = ff(t).left, + r = t.clientWidth, + i = r / 2, + o = this.domNode.clientWidth, + s = [], + a = this.positionClassName, + u = function () { + switch (a) { + case 'nw': + (e.domNode.style.top = '4px'), + (e.domNode.style.left = '4px'); + break; + case 'ne': + (e.domNode.style.top = '4px'), + (e.domNode.style.left = r - o - 6 + 'px'); + } + }; + u(), + Vh(this.domNode, a), + Wh(this.domNode, 'dragging'), + s.push( + It(function () { + return Vh(e.domNode, 'dragging'); + }) + ), + _h(document, 'dragover')( + function (e) { + e.preventDefault(); + var t = e.screenX - n; + e.dataTransfer && (e.dataTransfer.dropEffect = 'none'), + (a = t < i ? 'nw' : 'ne'), + u(); + }, + null, + s + ), + _h(this.domNode, 'dragend')( + function () { + (e.positionClassName = a), + (e.domNode.className = + 'monaco-list-type-filter ' + e.positionClassName), + (e.domNode.style.top = null), + (e.domNode.style.left = null), + Ot(s); + }, + null, + s + ), + (UD.CurrentDragAndDropData = new zD('vscode-ui')), + s.push( + It(function () { + return (UD.CurrentDragAndDropData = void 0); + }) + ); + }), + (e.prototype.onDidSpliceModel = function () { + this._enabled && + 0 !== this.pattern.length && + (this.tree.refilter(), this.render()); + }), + (e.prototype.onDidChangeFilterOnType = function () { + this.tree.updateOptions({ + filterOnType: this.filterOnTypeDomNode.checked, + }), + this.tree.refilter(), + this.tree.domFocus(), + this.render(), + this.updateFilterOnTypeTitle(); + }), + (e.prototype.updateFilterOnTypeTitle = function () { + this.filterOnType + ? (this.filterOnTypeDomNode.title = De( + 'disable filter on type', + 'Disable Filter on Type' + )) + : (this.filterOnTypeDomNode.title = De( + 'enable filter on type', + 'Enable Filter on Type' + )); + }), + (e.prototype.render = function () { + var e = this.filter.totalCount > 0 && 0 === this.filter.matchCount; + this.pattern && this.tree.options.filterOnType && e + ? ((this.messageDomNode.textContent = De( + 'empty', + 'No elements found' + )), + (this._empty = !0)) + : ((this.messageDomNode.innerHTML = ''), (this._empty = !1)), + Uh(this.domNode, 'no-matches', e), + (this.domNode.title = De( + 'found', + 'Matched {0} out of {1} elements', + this.filter.matchCount, + this.filter.totalCount + )), + (this.labelDomNode.textContent = + this.pattern.length > 16 + ? '…' + this.pattern.substr(this.pattern.length - 16) + : this.pattern), + this._onDidChangeEmptyState.fire(this._empty); + }), + (e.prototype.shouldAllowFocus = function (e) { + return ( + !(this.enabled && this.pattern && !this.filterOnType) || + (this.filter.totalCount > 0 && this.filter.matchCount <= 1) || + !pE.isDefault(e.filterData) + ); + }), + (e.prototype.dispose = function () { + this.disable(), + this._onDidChangePattern.dispose(), + (this.disposables = Ot(this.disposables)); + }), + e + ); + })(); + function _T(e) { + return 'INPUT' === e.tagName || 'TEXTAREA' === e.tagName; + } + function yT(e) { + return { + elements: e.elements.map(function (e) { + return e.element; + }), + browserEvent: e.browserEvent, + }; + } + function vT(e, t) { + t(e), + e.children.forEach(function (e) { + return vT(e, t); + }); + } + var bT = (function () { + function e(e) { + (this.identityProvider = e), + (this.nodes = []), + (this._onDidChange = new Gt()), + (this.onDidChange = this._onDidChange.event); + } + return ( + Object.defineProperty(e.prototype, 'nodeSet', { + get: function () { + return ( + this._nodeSet || (this._nodeSet = this.createNodeSet()), + this._nodeSet + ); + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.set = function (e, t) { + Wr(this.nodes, e) || this._set(e, !1, t); + }), + (e.prototype._set = function (e, t, n) { + if ( + ((this.nodes = e.slice()), + (this.elements = void 0), + (this._nodeSet = void 0), + !t) + ) { + var r = this; + this._onDidChange.fire({ + get elements() { + return r.get(); + }, + browserEvent: n, + }); + } + }), + (e.prototype.get = function () { + return ( + this.elements || + (this.elements = this.nodes.map(function (e) { + return e.element; + })), + this.elements.slice() + ); + }), + (e.prototype.getNodes = function () { + return this.nodes; + }), + (e.prototype.has = function (e) { + return this.nodeSet.has(e); + }), + (e.prototype.onDidModelSplice = function (e) { + var t = this, + n = e.insertedNodes, + r = e.deletedNodes; + if (!this.identityProvider) { + var i = this.createNodeSet(), + o = function (e) { + return i.delete(e); + }; + return ( + r.forEach(function (e) { + return vT(e, o); + }), + void this.set(Gn(i)) + ); + } + var s = new Set(), + a = function (e) { + return s.add(t.identityProvider.getId(e.element).toString()); + }; + r.forEach(function (e) { + return vT(e, a); + }); + var u = new Map(), + l = function (e) { + return u.set(t.identityProvider.getId(e.element).toString(), e); + }; + n.forEach(function (e) { + return vT(e, l); + }); + for (var c = [], d = !0, h = 0, f = this.nodes; h < f.length; h++) { + var p = f[h], + g = this.identityProvider.getId(p.element).toString(); + if (s.has(g)) { + var m = u.get(g); + m ? c.push(m) : (d = !1); + } else c.push(p); + } + this._set(c, d); + }), + (e.prototype.createNodeSet = function () { + for (var e = new Set(), t = 0, n = this.nodes; t < n.length; t++) { + var r = n[t]; + e.add(r); + } + return e; + }), + e + ); + })(), + wT = (function (e) { + function t(t, n) { + var r = e.call(this, t) || this; + return (r.tree = n), r; + } + return ( + aT(t, e), + (t.prototype.onPointer = function (t) { + if (!_T(t.browserEvent.target)) { + var n = t.element; + if (!n) return e.prototype.onPointer.call(this, t); + if ( + this.isSelectionRangeChangeEvent(t) || + this.isSelectionSingleChangeEvent(t) + ) + return e.prototype.onPointer.call(this, t); + var r = Bh(t.browserEvent.target, 'monaco-tl-twistie'); + if ( + !this.tree.openOnSingleClick && + 2 !== t.browserEvent.detail && + !r + ) + return e.prototype.onPointer.call(this, t); + var i = !1; + if ( + (i = + 'function' == typeof this.tree.expandOnlyOnTwistieClick + ? this.tree.expandOnlyOnTwistieClick(n.element) + : !!this.tree.expandOnlyOnTwistieClick) && + !r + ) + return e.prototype.onPointer.call(this, t); + var o = this.tree.model, + s = o.getNodeLocation(n), + a = t.browserEvent.altKey; + o.setCollapsed(s, void 0, a), + (i && r) || e.prototype.onPointer.call(this, t); + } + }), + (t.prototype.onDoubleClick = function (t) { + Bh(t.browserEvent.target, 'monaco-tl-twistie') || + e.prototype.onDoubleClick.call(this, t); + }), + t + ); + })(KE), + CT = (function (e) { + function t(t, n, r, i, o, s) { + var a = e.call(this, t, n, r, s) || this; + return (a.focusTrait = i), (a.selectionTrait = o), a; + } + return ( + aT(t, e), + (t.prototype.createMouseController = function (e) { + return new wT(this, e.tree); + }), + (t.prototype.splice = function (t, n, r) { + var i = this; + if ( + (void 0 === r && (r = []), + e.prototype.splice.call(this, t, n, r), + 0 !== r.length) + ) { + var o = [], + s = []; + r.forEach(function (e, n) { + i.focusTrait.has(e) && o.push(t + n), + i.selectionTrait.has(e) && s.push(t + n); + }), + o.length > 0 && + e.prototype.setFocus.call( + this, + zr(e.prototype.getFocus.call(this).concat(o)) + ), + s.length > 0 && + e.prototype.setSelection.call( + this, + zr(e.prototype.getSelection.call(this).concat(s)) + ); + } + }), + (t.prototype.setFocus = function (t, n, r) { + var i = this; + void 0 === r && (r = !1), + e.prototype.setFocus.call(this, t, n), + r || + this.focusTrait.set( + t.map(function (e) { + return i.element(e); + }), + n + ); + }), + (t.prototype.setSelection = function (t, n, r) { + var i = this; + void 0 === r && (r = !1), + e.prototype.setSelection.call(this, t, n), + r || + this.selectionTrait.set( + t.map(function (e) { + return i.element(e); + }), + n + ); + }), + t + ); + })(nT), + ST = (function () { + function e(e, t, n, r) { + var i, + o = this; + void 0 === r && (r = {}), + (this._options = r), + (this.eventBufferer = new Zt()), + (this.disposables = []), + (this._onWillRefilter = new Gt()), + (this.onWillRefilter = this._onWillRefilter.event), + (this._onDidUpdateOptions = new Gt()); + var s, + a, + u, + l = new hT(t), + c = new Xt(), + d = new Xt(), + h = new fT(d.event); + if ( + (this.disposables.push(h), + (this.renderers = n.map(function (e) { + return new pT(e, c.event, h, r); + })), + (i = this.disposables).push.apply(i, this.renderers), + r.keyboardNavigationLabelProvider && + ((s = new gT(this, r.keyboardNavigationLabelProvider, r.filter)), + (r = uT({}, r, { filter: s })), + this.disposables.push(s)), + (this.focus = new bT(r.identityProvider)), + (this.selection = new bT(r.identityProvider)), + (this.view = new CT( + e, + l, + this.renderers, + this.focus, + this.selection, + uT( + {}, + ((a = function () { + return o.model; + }), + (u = r) && + uT({}, u, { + identityProvider: u.identityProvider && { + getId: function (e) { + return u.identityProvider.getId(e.element); + }, + }, + dnd: u.dnd && new cT(a, u.dnd), + multipleSelectionController: u.multipleSelectionController && { + isSelectionSingleChangeEvent: function (e) { + return u.multipleSelectionController.isSelectionSingleChangeEvent( + uT({}, e, { element: e.element }) + ); + }, + isSelectionRangeChangeEvent: function (e) { + return u.multipleSelectionController.isSelectionRangeChangeEvent( + uT({}, e, { element: e.element }) + ); + }, + }, + accessibilityProvider: u.accessibilityProvider && { + getAriaLabel: function (e) { + return u.accessibilityProvider.getAriaLabel(e.element); + }, + getAriaLevel: function (e) { + return e.depth; + }, + }, + keyboardNavigationLabelProvider: + u.keyboardNavigationLabelProvider && + uT({}, u.keyboardNavigationLabelProvider, { + getKeyboardNavigationLabel: function (e) { + return u.keyboardNavigationLabelProvider.getKeyboardNavigationLabel( + e.element + ); + }, + }), + enableKeyboardNavigation: u.simpleKeyboardNavigation, + ariaProvider: { + getSetSize: function (e) { + return e.parent.visibleChildrenCount; + }, + getPosInSet: function (e) { + return e.visibleChildIndex + 1; + }, + }, + })), + { tree: this } + ) + )), + (this.model = this.createModel(this.view, r)), + (c.input = this.model.onDidChangeCollapseState), + this.model.onDidSplice( + function (e) { + o.focus.onDidModelSplice(e), o.selection.onDidModelSplice(e); + }, + null, + this.disposables + ), + (d.input = Wt.map( + Wt.any( + this.focus.onDidChange, + this.selection.onDidChange, + this.model.onDidSplice + ), + function () { + return o.focus.getNodes().concat(o.selection.getNodes()); + } + )), + !1 !== r.keyboardSupport) + ) { + var f = Wt.chain(this.view.onKeyDown) + .filter(function (e) { + return !_T(e.target); + }) + .map(function (e) { + return new Ch(e); + }); + f + .filter(function (e) { + return 15 === e.keyCode; + }) + .on(this.onLeftArrow, this, this.disposables), + f + .filter(function (e) { + return 17 === e.keyCode; + }) + .on(this.onRightArrow, this, this.disposables), + f + .filter(function (e) { + return 10 === e.keyCode; + }) + .on(this.onSpace, this, this.disposables); + } + r.keyboardNavigationLabelProvider && + ((this.typeFilterController = new mT( + this, + this.model, + this.view, + s, + r.keyboardNavigationLabelProvider + )), + (this.focusNavigationFilter = function (e) { + return o.typeFilterController.shouldAllowFocus(e); + }), + this.disposables.push(this.typeFilterController)), + (this.styleElement = vf(this.view.getHTMLElement())), + Uh( + this.getHTMLElement(), + 'always', + this._options.renderIndentGuides === dT.Always + ); + } + return ( + Object.defineProperty(e.prototype, 'onDidChangeFocus', { + get: function () { + return this.eventBufferer.wrapEvent(this.focus.onDidChange); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidChangeSelection', { + get: function () { + return this.eventBufferer.wrapEvent(this.selection.onDidChange); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidOpen', { + get: function () { + return Wt.map(this.view.onDidOpen, yT); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidFocus', { + get: function () { + return this.view.onDidFocus; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidChangeCollapseState', { + get: function () { + return this.model.onDidChangeCollapseState; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'openOnSingleClick', { + get: function () { + return ( + void 0 === this._options.openOnSingleClick || + this._options.openOnSingleClick + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'expandOnlyOnTwistieClick', { + get: function () { + return ( + void 0 !== this._options.expandOnlyOnTwistieClick && + this._options.expandOnlyOnTwistieClick + ); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidDispose', { + get: function () { + return this.view.onDidDispose; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.updateOptions = function (e) { + void 0 === e && (e = {}), + (this._options = uT({}, this._options, e)); + for (var t = 0, n = this.renderers; t < n.length; t++) { + n[t].updateOptions(e); + } + this.view.updateOptions({ + enableKeyboardNavigation: this._options.simpleKeyboardNavigation, + automaticKeyboardNavigation: this._options + .automaticKeyboardNavigation, + }), + this.typeFilterController && + this.typeFilterController.updateOptions(this._options), + this._onDidUpdateOptions.fire(this._options), + Uh( + this.getHTMLElement(), + 'always', + this._options.renderIndentGuides === dT.Always + ); + }), + Object.defineProperty(e.prototype, 'options', { + get: function () { + return this._options; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.getHTMLElement = function () { + return this.view.getHTMLElement(); + }), + Object.defineProperty(e.prototype, 'scrollTop', { + get: function () { + return this.view.scrollTop; + }, + set: function (e) { + this.view.scrollTop = e; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.domFocus = function () { + this.view.domFocus(); + }), + (e.prototype.layout = function (e, t) { + this.view.layout(e, t); + }), + (e.prototype.style = function (e) { + var t = '.' + this.view.domId, + n = []; + e.treeIndentGuidesStroke && + (n.push( + '.monaco-list' + + t + + ':hover .monaco-tl-indent > .indent-guide, .monaco-list' + + t + + '.always .monaco-tl-indent > .indent-guide { border-color: ' + + e.treeIndentGuidesStroke.transparent(0.4) + + '; }' + ), + n.push( + '.monaco-list' + + t + + ' .monaco-tl-indent > .indent-guide.active { border-color: ' + + e.treeIndentGuidesStroke + + '; }' + )); + var r = n.join('\n'); + r !== this.styleElement.innerHTML && + (this.styleElement.innerHTML = r), + this.view.style(e); + }), + (e.prototype.getNode = function (e) { + return this.model.getNode(e); + }), + (e.prototype.collapse = function (e, t) { + return void 0 === t && (t = !1), this.model.setCollapsed(e, !0, t); + }), + (e.prototype.expand = function (e, t) { + return void 0 === t && (t = !1), this.model.setCollapsed(e, !1, t); + }), + (e.prototype.isCollapsed = function (e) { + return this.model.isCollapsed(e); + }), + (e.prototype.refilter = function () { + this._onWillRefilter.fire(void 0), this.model.refilter(); + }), + (e.prototype.setSelection = function (e, t) { + var n = this, + r = e.map(function (e) { + return n.model.getNode(e); + }); + this.selection.set(r, t); + var i = e + .map(function (e) { + return n.model.getListIndex(e); + }) + .filter(function (e) { + return e > -1; + }); + this.view.setSelection(i, t, !0); + }), + (e.prototype.getSelection = function () { + return this.selection.get(); + }), + (e.prototype.setFocus = function (e, t) { + var n = this, + r = e.map(function (e) { + return n.model.getNode(e); + }); + this.focus.set(r, t); + var i = e + .map(function (e) { + return n.model.getListIndex(e); + }) + .filter(function (e) { + return e > -1; + }); + this.view.setFocus(i, t, !0); + }), + (e.prototype.focusNext = function (e, t, n, r) { + void 0 === e && (e = 1), + void 0 === t && (t = !1), + void 0 === r && (r = this.focusNavigationFilter), + this.view.focusNext(e, t, n, r); + }), + (e.prototype.getFocus = function () { + return this.focus.get(); + }), + (e.prototype.reveal = function (e, t) { + this.model.expandTo(e); + var n = this.model.getListIndex(e); + -1 !== n && this.view.reveal(n, t); + }), + (e.prototype.getRelativeTop = function (e) { + var t = this.model.getListIndex(e); + return -1 === t ? null : this.view.getRelativeTop(t); + }), + (e.prototype.onLeftArrow = function (e) { + e.preventDefault(), e.stopPropagation(); + var t = this.view.getFocusedElements(); + if (0 !== t.length) { + var n = t[0], + r = this.model.getNodeLocation(n); + if (!this.model.setCollapsed(r, !0)) { + var i = this.model.getParentNodeLocation(r); + if (null === i) return; + var o = this.model.getListIndex(i); + this.view.reveal(o), this.view.setFocus([o]); + } + } + }), + (e.prototype.onRightArrow = function (e) { + e.preventDefault(), e.stopPropagation(); + var t = this.view.getFocusedElements(); + if (0 !== t.length) { + var n = t[0], + r = this.model.getNodeLocation(n); + if (!this.model.setCollapsed(r, !1)) { + if ( + !n.children.some(function (e) { + return e.visible; + }) + ) + return; + var i = this.view.getFocus()[0] + 1; + this.view.reveal(i), this.view.setFocus([i]); + } + } + }), + (e.prototype.onSpace = function (e) { + e.preventDefault(), e.stopPropagation(); + var t = this.view.getFocusedElements(); + if (0 !== t.length) { + var n = t[0], + r = this.model.getNodeLocation(n), + i = e.browserEvent.altKey; + this.model.setCollapsed(r, void 0, i); + } + }), + (e.prototype.dispose = function () { + (this.disposables = Ot(this.disposables)), this.view.dispose(); + }), + e + ); + })(), + xT = function () { + return (xT = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }, + LT = (function () { + function e(e, t) { + void 0 === t && (t = {}), + (this.nodes = new Map()), + (this.nodesByIdentity = new Map()), + (this.model = new sT(e, null, t)), + (this.onDidSplice = this.model.onDidSplice), + (this.onDidChangeCollapseState = this.model.onDidChangeCollapseState), + (this.onDidChangeRenderNodeCount = this.model.onDidChangeRenderNodeCount), + t.sorter && + (this.sorter = { + compare: function (e, n) { + return t.sorter.compare(e.element, n.element); + }, + }), + (this.identityProvider = t.identityProvider); + } + return ( + (e.prototype.setChildren = function (e, t, n, r) { + var i = this.getElementLocation(e); + return this._setChildren(i, this.preserveCollapseState(t), n, r); + }), + (e.prototype._setChildren = function (e, t, n, r) { + var i = this, + o = new Set(), + s = new Set(); + return this.model.splice( + e.concat([0]), + Number.MAX_VALUE, + t, + function (e) { + if ( + (o.add(e.element), + i.nodes.set(e.element, e), + i.identityProvider) + ) { + var t = i.identityProvider.getId(e.element).toString(); + s.add(t), i.nodesByIdentity.set(t, e); + } + n && n(e); + }, + function (e) { + if ( + (o.has(e.element) || i.nodes.delete(e.element), + i.identityProvider) + ) { + var t = i.identityProvider.getId(e.element).toString(); + s.has(t) || i.nodesByIdentity.delete(t); + } + r && r(e); + } + ); + }), + (e.prototype.preserveCollapseState = function (e) { + var t, + n = this, + r = e + ? ((t = e), Array.isArray(t) ? Yt.fromArray(t) : t) + : Yt.empty(); + return ( + this.sorter && + (r = Yt.fromArray( + Yt.collect(r).sort(this.sorter.compare.bind(this.sorter)) + )), + Yt.map(r, function (e) { + var t = n.nodes.get(e.element); + if (!t && n.identityProvider) { + var r = n.identityProvider.getId(e.element).toString(); + t = n.nodesByIdentity.get(r); + } + if (!t) + return xT({}, e, { + children: n.preserveCollapseState(e.children), + }); + var i = + 'boolean' == typeof e.collapsible + ? e.collapsible + : t.collapsible, + o = void 0 !== e.collapsed ? e.collapsed : t.collapsed; + return xT({}, e, { + collapsible: i, + collapsed: o, + children: n.preserveCollapseState(e.children), + }); + }) + ); + }), + (e.prototype.rerender = function (e) { + var t = this.getElementLocation(e); + this.model.rerender(t); + }), + (e.prototype.getListIndex = function (e) { + var t = this.getElementLocation(e); + return this.model.getListIndex(t); + }), + (e.prototype.getListRenderCount = function (e) { + var t = this.getElementLocation(e); + return this.model.getListRenderCount(t); + }), + (e.prototype.isCollapsed = function (e) { + var t = this.getElementLocation(e); + return this.model.isCollapsed(t); + }), + (e.prototype.setCollapsed = function (e, t, n) { + var r = this.getElementLocation(e); + return this.model.setCollapsed(r, t, n); + }), + (e.prototype.expandTo = function (e) { + var t = this.getElementLocation(e); + this.model.expandTo(t); + }), + (e.prototype.refilter = function () { + this.model.refilter(); + }), + (e.prototype.getNode = function (e) { + if ((void 0 === e && (e = null), null === e)) + return this.model.getNode(this.model.rootRef); + var t = this.nodes.get(e); + if (!t) throw new Error('Tree element not found: ' + e); + return t; + }), + (e.prototype.getNodeLocation = function (e) { + return e.element; + }), + (e.prototype.getParentNodeLocation = function (e) { + if (null === e) + throw new Error('Invalid getParentNodeLocation call'); + var t = this.nodes.get(e); + if (!t) throw new Error('Tree element not found: ' + e); + return t.parent.element; + }), + (e.prototype.getElementLocation = function (e) { + if (null === e) return []; + var t = this.nodes.get(e); + if (!t) throw new Error('Tree element not found: ' + e); + return this.model.getNodeLocation(t); + }), + e + ); + })(), + kT = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + MT = (function (e) { + function t(t, n, r, i) { + return void 0 === i && (i = {}), e.call(this, t, n, r, i) || this; + } + return ( + kT(t, e), + Object.defineProperty(t.prototype, 'onDidChangeCollapseState', { + get: function () { + return this.model.onDidChangeCollapseState; + }, + enumerable: !0, + configurable: !0, + }), + (t.prototype.setChildren = function (e, t) { + return this.model.setChildren(e, t); + }), + (t.prototype.rerender = function (e) { + void 0 !== e ? this.model.rerender(e) : this.view.rerender(); + }), + (t.prototype.createModel = function (e, t) { + return new LT(e, t); + }), + t + ); + })(ST), + DT = function () { + return (DT = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }, + ET = function (e, t, n, r) { + return new (n || (n = Promise))(function (i, o) { + function s(e) { + try { + u(r.next(e)); + } catch (e) { + o(e); + } + } + function a(e) { + try { + u(r.throw(e)); + } catch (e) { + o(e); + } + } + function u(e) { + e.done + ? i(e.value) + : new n(function (t) { + t(e.value); + }).then(s, a); + } + u((r = r.apply(e, t || [])).next()); + }); + }, + TT = function (e, t) { + var n, + r, + i, + o, + s = { + label: 0, + sent: function () { + if (1 & i[0]) throw i[1]; + return i[1]; + }, + trys: [], + ops: [], + }; + return ( + (o = { next: a(0), throw: a(1), return: a(2) }), + 'function' == typeof Symbol && + (o[Symbol.iterator] = function () { + return this; + }), + o + ); + function a(o) { + return function (a) { + return (function (o) { + if (n) throw new TypeError('Generator is already executing.'); + for (; s; ) + try { + if ( + ((n = 1), + r && + (i = + 2 & o[0] + ? r.return + : o[0] + ? r.throw || ((i = r.return) && i.call(r), 0) + : r.next) && + !(i = i.call(r, o[1])).done) + ) + return i; + switch (((r = 0), i && (o = [2 & o[0], i.value]), o[0])) { + case 0: + case 1: + i = o; + break; + case 4: + return s.label++, { value: o[1], done: !1 }; + case 5: + s.label++, (r = o[1]), (o = [0]); + continue; + case 7: + (o = s.ops.pop()), s.trys.pop(); + continue; + default: + if ( + !(i = (i = s.trys).length > 0 && i[i.length - 1]) && + (6 === o[0] || 2 === o[0]) + ) { + s = 0; + continue; + } + if (3 === o[0] && (!i || (o[1] > i[0] && o[1] < i[3]))) { + s.label = o[1]; + break; + } + if (6 === o[0] && s.label < i[1]) { + (s.label = i[1]), (i = o); + break; + } + if (i && s.label < i[2]) { + (s.label = i[2]), s.ops.push(o); + break; + } + i[2] && s.ops.pop(), s.trys.pop(); + continue; + } + o = t.call(e, s); + } catch (e) { + (o = [6, e]), (r = 0); + } finally { + n = i = 0; + } + if (5 & o[0]) throw o[1]; + return { value: o[0] ? o[1] : void 0, done: !0 }; + })([o, a]); + }; + } + }; + function NT(e) { + return DT({}, e, { + children: [], + loading: !1, + stale: !0, + slow: !1, + collapsedByDefault: void 0, + }); + } + function OT(e, t) { + return !!t.parent && (t.parent === e || OT(e, t.parent)); + } + var AT, + IT = (function () { + function e(e) { + this.node = e; + } + return ( + Object.defineProperty(e.prototype, 'element', { + get: function () { + return this.node.element.element; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'parent', { + get: function () { + return this.node.parent && new e(this.node.parent); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'children', { + get: function () { + return this.node.children.map(function (t) { + return new e(t); + }); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'depth', { + get: function () { + return this.node.depth; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'visibleChildrenCount', { + get: function () { + return this.node.visibleChildrenCount; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'visibleChildIndex', { + get: function () { + return this.node.visibleChildIndex; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'collapsible', { + get: function () { + return this.node.collapsible; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'collapsed', { + get: function () { + return this.node.collapsed; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'visible', { + get: function () { + return this.node.visible; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'filterData', { + get: function () { + return this.node.filterData; + }, + enumerable: !0, + configurable: !0, + }), + e + ); + })(), + PT = (function () { + function e(e, t) { + (this.renderer = e), + (this.onDidChangeTwistieState = t), + (this.renderedNodes = new Map()), + (this.disposables = []), + (this.templateId = e.templateId); + } + return ( + (e.prototype.renderTemplate = function (e) { + return { templateData: this.renderer.renderTemplate(e) }; + }), + (e.prototype.renderElement = function (e, t, n, r) { + this.renderer.renderElement(new IT(e), t, n.templateData, r); + }), + (e.prototype.renderTwistie = function (e, t) { + return Uh(t, 'loading', e.slow), !1; + }), + (e.prototype.disposeElement = function (e, t, n, r) { + this.renderer.disposeElement && + this.renderer.disposeElement(new IT(e), t, n.templateData, r); + }), + (e.prototype.disposeTemplate = function (e) { + this.renderer.disposeTemplate(e.templateData); + }), + (e.prototype.dispose = function () { + this.renderedNodes.clear(), + (this.disposables = Ot(this.disposables)); + }), + e + ); + })(); + function RT(e) { + return { + browserEvent: e.browserEvent, + elements: e.elements.map(function (e) { + return e.element; + }), + }; + } + function FT(e) { + if (e instanceof GD) { + var t = e.elements; + return new GD( + t.map(function (e) { + return e.element; + }) + ); + } + return e; + } + !(function (e) { + (e[(e.Refresh = 0)] = 'Refresh'), (e[(e.Expand = 1)] = 'Expand'); + })(AT || (AT = {})); + var YT = (function () { + function e(e) { + this.dnd = e; + } + return ( + (e.prototype.getDragURI = function (e) { + return this.dnd.getDragURI(e.element); + }), + (e.prototype.getDragLabel = function (e) { + if (this.dnd.getDragLabel) + return this.dnd.getDragLabel( + e.map(function (e) { + return e.element; + }) + ); + }), + (e.prototype.onDragStart = function (e, t) { + this.dnd.onDragStart && this.dnd.onDragStart(FT(e), t); + }), + (e.prototype.onDragOver = function (e, t, n, r, i) { + return ( + void 0 === i && (i = !0), + this.dnd.onDragOver(FT(e), t && t.element, n, r) + ); + }), + (e.prototype.drop = function (e, t, n, r) { + this.dnd.drop(FT(e), t && t.element, n, r); + }), + e + ); + })(); + function jT(e, t) { + t(e), + e.children.forEach(function (e) { + return jT(e, t); + }); + } + var BT, + WT = (function () { + function e(e, t, n, r, i) { + var o = this; + void 0 === i && (i = {}), + (this.dataSource = r), + (this.nodes = new Map()), + (this.subTreeRefreshPromises = new Map()), + (this.refreshPromises = new Map()), + (this._onDidRender = new Gt()), + (this._onDidChangeNodeSlowState = new Gt()), + (this.disposables = []), + (this.identityProvider = i.identityProvider), + (this.autoExpandSingleChildren = + void 0 !== i.autoExpandSingleChildren && + i.autoExpandSingleChildren), + (this.sorter = i.sorter), + (this.collapseByDefault = i.collapseByDefault); + var s = new hT(t), + a = n.map(function (e) { + return new PT(e, o._onDidChangeNodeSlowState.event); + }), + u = + (function (e) { + return ( + e && + DT({}, e, { + collapseByDefault: !0, + identityProvider: e.identityProvider && { + getId: function (t) { + return e.identityProvider.getId(t.element); + }, + }, + dnd: e.dnd && new YT(e.dnd), + multipleSelectionController: e.multipleSelectionController && { + isSelectionSingleChangeEvent: function (t) { + return e.multipleSelectionController.isSelectionSingleChangeEvent( + DT({}, t, { element: t.element }) + ); + }, + isSelectionRangeChangeEvent: function (t) { + return e.multipleSelectionController.isSelectionRangeChangeEvent( + DT({}, t, { element: t.element }) + ); + }, + }, + accessibilityProvider: e.accessibilityProvider && { + getAriaLabel: function (t) { + return e.accessibilityProvider.getAriaLabel(t.element); + }, + }, + filter: e.filter && { + filter: function (t, n) { + return e.filter.filter(t.element, n); + }, + }, + keyboardNavigationLabelProvider: + e.keyboardNavigationLabelProvider && + DT({}, e.keyboardNavigationLabelProvider, { + getKeyboardNavigationLabel: function (t) { + return e.keyboardNavigationLabelProvider.getKeyboardNavigationLabel( + t.element + ); + }, + }), + sorter: void 0, + expandOnlyOnTwistieClick: + void 0 === e.expandOnlyOnTwistieClick + ? void 0 + : 'function' != typeof e.expandOnlyOnTwistieClick + ? e.expandOnlyOnTwistieClick + : function (t) { + return e.expandOnlyOnTwistieClick(t.element); + }, + ariaProvider: void 0, + additionalScrollHeight: e.additionalScrollHeight, + }) + ); + })(i) || {}; + (this.tree = new MT(e, s, a, u)), + (this.root = NT({ + element: void 0, + parent: null, + hasChildren: !0, + })), + this.identityProvider && + (this.root = DT({}, this.root, { id: null })), + this.nodes.set(null, this.root), + this.tree.onDidChangeCollapseState( + this._onDidChangeCollapseState, + this, + this.disposables + ); + } + return ( + Object.defineProperty(e.prototype, 'onDidChangeFocus', { + get: function () { + return Wt.map(this.tree.onDidChangeFocus, RT); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidChangeSelection', { + get: function () { + return Wt.map(this.tree.onDidChangeSelection, RT); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidOpen', { + get: function () { + return Wt.map(this.tree.onDidOpen, RT); + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidFocus', { + get: function () { + return this.tree.onDidFocus; + }, + enumerable: !0, + configurable: !0, + }), + Object.defineProperty(e.prototype, 'onDidDispose', { + get: function () { + return this.tree.onDidDispose; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.updateOptions = function (e) { + void 0 === e && (e = {}), this.tree.updateOptions(e); + }), + (e.prototype.getHTMLElement = function () { + return this.tree.getHTMLElement(); + }), + Object.defineProperty(e.prototype, 'scrollTop', { + get: function () { + return this.tree.scrollTop; + }, + set: function (e) { + this.tree.scrollTop = e; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.domFocus = function () { + this.tree.domFocus(); + }), + (e.prototype.layout = function (e, t) { + this.tree.layout(e, t); + }), + (e.prototype.style = function (e) { + this.tree.style(e); + }), + (e.prototype.getInput = function () { + return this.root.element; + }), + (e.prototype.setInput = function (e, t) { + return ET(this, void 0, void 0, function () { + var n; + return TT(this, function (r) { + switch (r.label) { + case 0: + return ( + this.refreshPromises.forEach(function (e) { + return e.cancel(); + }), + this.refreshPromises.clear(), + (this.root.element = e), + (n = t && { viewState: t, focus: [], selection: [] }), + [4, this.updateChildren(e, !0, n)] + ); + case 1: + return ( + r.sent(), + n && + (this.tree.setFocus(n.focus), + this.tree.setSelection(n.selection)), + t && + 'number' == typeof t.scrollTop && + (this.scrollTop = t.scrollTop), + [2] + ); + } + }); + }); + }), + (e.prototype.updateChildren = function (e, t, n) { + return ( + void 0 === e && (e = this.root.element), + void 0 === t && (t = !0), + ET(this, void 0, void 0, function () { + return TT(this, function (r) { + switch (r.label) { + case 0: + if (void 0 === this.root.element) + throw new Error('Tree input not set'); + return this.root.loading + ? [4, this.subTreeRefreshPromises.get(this.root)] + : [3, 3]; + case 1: + return ( + r.sent(), [4, Wt.toPromise(this._onDidRender.event)] + ); + case 2: + r.sent(), (r.label = 3); + case 3: + return [ + 4, + this.refreshAndRenderNode( + this.getDataNode(e), + t, + AT.Refresh, + n + ), + ]; + case 4: + return r.sent(), [2]; + } + }); + }) + ); + }), + (e.prototype.rerender = function (e) { + if (void 0 !== e && e !== this.root.element) { + var t = this.getDataNode(e); + this.tree.rerender(t); + } else this.tree.rerender(); + }), + (e.prototype.collapse = function (e, t) { + void 0 === t && (t = !1); + var n = this.getDataNode(e); + return this.tree.collapse(n === this.root ? null : n, t); + }), + (e.prototype.expand = function (e, t) { + return ( + void 0 === t && (t = !1), + ET(this, void 0, void 0, function () { + var n, r; + return TT(this, function (i) { + switch (i.label) { + case 0: + if (void 0 === this.root.element) + throw new Error('Tree input not set'); + return this.root.loading + ? [4, this.subTreeRefreshPromises.get(this.root)] + : [3, 3]; + case 1: + return ( + i.sent(), [4, Wt.toPromise(this._onDidRender.event)] + ); + case 2: + i.sent(), (i.label = 3); + case 3: + return (n = this.getDataNode(e)) === this.root || + n.loading || + this.tree.isCollapsed(n) + ? ((r = this.tree.expand( + n === this.root ? null : n, + t + )), + n.loading + ? [4, this.subTreeRefreshPromises.get(n)] + : [3, 6]) + : [2, !1]; + case 4: + return ( + i.sent(), [4, Wt.toPromise(this._onDidRender.event)] + ); + case 5: + i.sent(), (i.label = 6); + case 6: + return [2, r]; + } + }); + }) + ); + }), + (e.prototype.setSelection = function (e, t) { + var n = this, + r = e.map(function (e) { + return n.getDataNode(e); + }); + this.tree.setSelection(r, t); + }), + (e.prototype.getSelection = function () { + return this.tree.getSelection().map(function (e) { + return e.element; + }); + }), + (e.prototype.setFocus = function (e, t) { + var n = this, + r = e.map(function (e) { + return n.getDataNode(e); + }); + this.tree.setFocus(r, t); + }), + (e.prototype.getFocus = function () { + return this.tree.getFocus().map(function (e) { + return e.element; + }); + }), + (e.prototype.reveal = function (e, t) { + this.tree.reveal(this.getDataNode(e), t); + }), + (e.prototype.getDataNode = function (e) { + var t = this.nodes.get(e === this.root.element ? null : e); + if (!t) throw new Error('Data tree node not found: ' + e); + return t; + }), + (e.prototype.refreshAndRenderNode = function (e, t, n, r) { + return ET(this, void 0, void 0, function () { + var i, o; + return TT(this, function (s) { + switch (s.label) { + case 0: + return [4, this.refreshNode(e, t, r)]; + case 1: + return ( + s.sent(), + this.render(e, r), + e !== this.root && + this.autoExpandSingleChildren && + n === AT.Expand + ? ((i = this.tree.getNode(e)), + 1 !== + (o = i.children.filter(function (e) { + return e.visible; + })).length + ? [3, 3] + : [4, this.tree.expand(o[0].element, !1)]) + : [3, 3] + ); + case 2: + s.sent(), (s.label = 3); + case 3: + return [2]; + } + }); + }); + }), + (e.prototype.refreshNode = function (e, t, n) { + return ET(this, void 0, void 0, function () { + var r, + i = this; + return TT(this, function (o) { + switch (o.label) { + case 0: + if ( + (this.subTreeRefreshPromises.forEach(function (o, s) { + !r && + (function (e, t) { + return e === t || OT(e, t) || OT(t, e); + })(s, e) && + (r = o.then(function () { + return i.refreshNode(e, t, n); + })); + }), + r) + ) + return [2, r]; + (r = this.doRefreshSubTree(e, t, n)), + this.subTreeRefreshPromises.set(e, r), + (o.label = 1); + case 1: + return o.trys.push([1, , 3, 4]), [4, r]; + case 2: + return o.sent(), [3, 4]; + case 3: + return this.subTreeRefreshPromises.delete(e), [7]; + case 4: + return [2]; + } + }); + }); + }), + (e.prototype.doRefreshSubTree = function (e, t, n) { + return ET(this, void 0, void 0, function () { + var r, + i = this; + return TT(this, function (o) { + switch (o.label) { + case 0: + (e.loading = !0), (o.label = 1); + case 1: + return ( + o.trys.push([1, , 4, 5]), [4, this.doRefreshNode(e, t, n)] + ); + case 2: + return ( + (r = o.sent()), + (e.stale = !1), + [ + 4, + Promise.all( + r.map(function (e) { + return i.doRefreshSubTree(e, t, n); + }) + ), + ] + ); + case 3: + return o.sent(), [3, 5]; + case 4: + return (e.loading = !1), [7]; + case 5: + return [2]; + } + }); + }); + }), + (e.prototype.doRefreshNode = function (e, t, n) { + return ET(this, void 0, void 0, function () { + var r, + i, + o, + s, + a = this; + return TT(this, function (u) { + switch (u.label) { + case 0: + (e.hasChildren = !!this.dataSource.hasChildren(e.element)), + e.hasChildren + ? ((i = (function e(t, n) { + return n + ? new Promise(function (e, r) { + var i = setTimeout(e, t); + n.onCancellationRequested(function () { + clearTimeout(i), r(Ze()); + }); + }) + : ks(function (n) { + return e(t, n); + }); + })(800)).then( + function () { + (e.slow = !0), + a._onDidChangeNodeSlowState.fire(e); + }, + function (e) { + return null; + } + ), + (r = this.doGetChildren(e).finally(function () { + return i.cancel(); + }))) + : (r = Promise.resolve([])), + (u.label = 1); + case 1: + return u.trys.push([1, 3, 4, 5]), [4, r]; + case 2: + return (o = u.sent()), [2, this.setChildren(e, o, t, n)]; + case 3: + if ( + ((s = u.sent()), + e !== this.root && + this.tree.collapse(e === this.root ? null : e), + $e(s)) + ) + return [2, []]; + throw s; + case 4: + return ( + e.slow && + ((e.slow = !1), this._onDidChangeNodeSlowState.fire(e)), + [7] + ); + case 5: + return [2]; + } + }); + }); + }), + (e.prototype.doGetChildren = function (e) { + var t = this, + n = this.refreshPromises.get(e); + return ( + n || + ((n = ks(function () { + return ET(t, void 0, void 0, function () { + var t; + return TT(this, function (n) { + switch (n.label) { + case 0: + return [4, this.dataSource.getChildren(e.element)]; + case 1: + return ( + (t = n.sent()), + this.sorter && + t.sort(this.sorter.compare.bind(this.sorter)), + [2, t] + ); + } + }); + }); + })), + this.refreshPromises.set(e, n), + n.finally(function () { + return t.refreshPromises.delete(e); + })) + ); + }), + (e.prototype._onDidChangeCollapseState = function (e) { + var t = e.node, + n = e.deep; + !t.collapsed && + t.element.stale && + (n + ? this.collapse(t.element.element) + : this.refreshAndRenderNode(t.element, !1, AT.Expand).catch( + qe + )); + }), + (e.prototype.setChildren = function (e, t, n, r) { + var i, + o = this; + if (0 === e.children.length && 0 === t.length) return []; + for ( + var s = new Map(), a = new Map(), u = 0, l = e.children; + u < l.length; + u++ + ) { + var c = l[u]; + s.set(c.element, c), + this.identityProvider && a.set(c.id, this.tree.getNode(c)); + } + for ( + var d = [], + h = t.map(function (t) { + var i = !!o.dataSource.hasChildren(t); + if (!o.identityProvider) { + var u = NT({ element: t, parent: e, hasChildren: i }); + return ( + i && + o.collapseByDefault && + !o.collapseByDefault(t) && + ((u.collapsedByDefault = !1), d.push(u)), + u + ); + } + var l = o.identityProvider.getId(t).toString(), + c = a.get(l); + if (c) { + u = c.element; + return ( + s.delete(u.element), + o.nodes.delete(u.element), + o.nodes.set(t, u), + (u.element = t), + (u.hasChildren = i), + n + ? c.collapsed + ? jT(u, function (e) { + return (e.stale = !0); + }) + : d.push(u) + : i && + o.collapseByDefault && + !o.collapseByDefault(t) && + ((u.collapsedByDefault = !1), d.push(u)), + u + ); + } + var h = NT({ element: t, parent: e, id: l, hasChildren: i }); + return ( + r && + r.viewState.focus && + r.viewState.focus.indexOf(l) > -1 && + r.focus.push(h), + r && + r.viewState.selection && + r.viewState.selection.indexOf(l) > -1 && + r.selection.push(h), + r && + r.viewState.expanded && + r.viewState.expanded.indexOf(l) > -1 + ? d.push(h) + : i && + o.collapseByDefault && + !o.collapseByDefault(t) && + ((h.collapsedByDefault = !1), d.push(h)), + h + ); + }), + f = 0, + p = Gn(s); + f < p.length; + f++ + ) { + jT(p[f], function (e) { + return o.nodes.delete(e.element); + }); + } + for (var g = 0, m = h; g < m.length; g++) { + c = m[g]; + this.nodes.set(c.element, c); + } + return ( + (i = e.children).splice.apply( + i, + [0, e.children.length].concat(h) + ), + d + ); + }), + (e.prototype.render = function (e, t) { + var n = e.children.map(function (e) { + return (function e(t, n) { + var r; + return ( + (r = + !( + n && + n.viewState.expanded && + t.id && + n.viewState.expanded.indexOf(t.id) > -1 + ) && t.collapsedByDefault), + (t.collapsedByDefault = void 0), + { + element: t, + children: t.hasChildren + ? Yt.map(Yt.fromArray(t.children), function (t) { + return e(t, n); + }) + : [], + collapsible: t.hasChildren, + collapsed: r, + } + ); + })(e, t); + }); + this.tree.setChildren(e === this.root ? null : e, n), + this._onDidRender.fire(); + }), + (e.prototype.dispose = function () { + Ot(this.disposables); + }), + e + ); + })(), + HT = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + VT = (function (e) { + function t(t, n, r, i, o) { + void 0 === o && (o = {}); + var s = e.call(this, t, n, r, o) || this; + return ( + (s.dataSource = i), (s.identityProvider = o.identityProvider), s + ); + } + return ( + HT(t, e), + (t.prototype.createModel = function (e, t) { + return new LT(e, t); + }), + t + ); + })(ST), + zT = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + UT = function () { + return (UT = + Object.assign || + function (e) { + for (var t, n = 1, r = arguments.length; n < r; n++) + for (var i in (t = arguments[n])) + Object.prototype.hasOwnProperty.call(t, i) && (e[i] = t[i]); + return e; + }).apply(this, arguments); + }, + qT = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + KT = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + GT = wt('listService'), + $T = (function () { + function e(e) { + (this.lists = []), (this._lastFocusedWidget = void 0); + } + return ( + Object.defineProperty(e.prototype, 'lastFocusedList', { + get: function () { + return this._lastFocusedWidget; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.register = function (e, t) { + var n = this; + if ( + this.lists.some(function (t) { + return t.widget === e; + }) + ) + throw new Error('Cannot register the same widget multiple times'); + var r = { widget: e, extraContextKeys: t }; + return ( + this.lists.push(r), + e.getHTMLElement() === document.activeElement && + (this._lastFocusedWidget = e), + At( + e.onDidFocus(function () { + return (n._lastFocusedWidget = e); + }), + It(function () { + return n.lists.splice(n.lists.indexOf(r), 1); + }), + e.onDidDispose(function () { + (n.lists = n.lists.filter(function (e) { + return e !== r; + })), + n._lastFocusedWidget === e && + (n._lastFocusedWidget = void 0); + }) + ) + ); + }), + (e = qT([KT(0, qn)], e)) + ); + })(), + ZT = new Un('listFocus', !0), + XT = new Un('listSupportsMultiselect', !0), + JT = new Un('listHasSelectionOrFocus', !1), + QT = new Un('listDoubleSelection', !1), + eN = new Un('listMultiSelection', !1), + tN = new Un('listSupportsKeyboardNavigation', !0), + nN = 'listAutomaticKeyboardNavigation', + rN = new Un(nN, !0), + iN = !1; + var oN = 'workbench.list.multiSelectModifier', + sN = 'workbench.list.openMode', + aN = 'workbench.list.horizontalScrolling', + uN = 'workbench.list.keyboardNavigation', + lN = 'workbench.list.automaticKeyboardNavigation', + cN = 'workbench.tree.indent', + dN = 'workbench.tree.renderIndentGuides'; + function hN(e) { + return 'alt' === e.getValue(oN); + } + function fN(e) { + return 'doubleClick' !== e.getValue(sN); + } + var pN, + gN = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n.configurationService = t), + (n.useAltAsMultipleSelectionModifier = hN(t)), + n.registerListeners(), + n + ); + } + return ( + zT(t, e), + (t.prototype.registerListeners = function () { + var e = this; + this._register( + this.configurationService.onDidChangeConfiguration(function (t) { + t.affectsConfiguration(oN) && + (e.useAltAsMultipleSelectionModifier = hN( + e.configurationService + )); + }) + ); + }), + (t.prototype.isSelectionSingleChangeEvent = function (e) { + return this.useAltAsMultipleSelectionModifier + ? e.browserEvent.altKey + : HE(e); + }), + (t.prototype.isSelectionRangeChangeEvent = function (e) { + return VE(e); + }), + t + ); + })(Rt), + mN = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r.configurationService = t), + (r.existingOpenController = n), + (r.openOnSingleClick = fN(t)), + r.registerListeners(), + r + ); + } + return ( + zT(t, e), + (t.prototype.registerListeners = function () { + var e = this; + this._register( + this.configurationService.onDidChangeConfiguration(function (t) { + t.affectsConfiguration(sN) && + (e.openOnSingleClick = fN(e.configurationService)); + }) + ); + }), + (t.prototype.shouldOpen = function (e) { + if (e instanceof MouseEvent) { + var t = 0 === e.button, + n = 2 === e.detail; + return ( + !(t && !this.openOnSingleClick && !n) && + !(!t && 1 !== e.button) && + (!this.existingOpenController || + this.existingOpenController.shouldOpen(e)) + ); + } + return ( + !this.existingOpenController || + this.existingOpenController.shouldOpen(e) + ); + }), + t + ); + })(Rt); + function _N(e, t) { + var n = !1; + return function (r) { + if (n) return (n = !1), !1; + var i = t.softDispatch(r, e); + return i && i.enterChord ? ((n = !0), !1) : ((n = !1), !0); + }; + } + (function (e) { + function t(t, n, r, i, o, s, a, u, l, c) { + var d = this, + h = yN(t, i, o, a, u, l, c), + f = h.options, + p = h.getAutomaticKeyboardNavigation, + g = h.disposable; + return ( + (d = e.call(this, t, n, r, f) || this).disposables.push(g), + (d.internals = new wN(d, f, p, o, s, a, u, c)), + d.disposables.push(d.internals), + d + ); + } + zT(t, e), + (t = qT( + [KT(4, qn), KT(5, GT), KT(6, Ad), KT(7, qv), KT(8, Qg), KT(9, wL)], + t + )); + })(MT), + (function (e) { + function t(t, n, r, i, o, s, a, u, l, c, d) { + var h = this, + f = yN(t, o, s, u, l, c, d), + p = f.options, + g = f.getAutomaticKeyboardNavigation, + m = f.disposable; + return ( + (h = e.call(this, t, n, r, i, p) || this).disposables.push(m), + (h.internals = new wN(h, p, g, s, a, u, l, d)), + h.disposables.push(h.internals), + h + ); + } + zT(t, e), + (t = qT( + [KT(5, qn), KT(6, GT), KT(7, Ad), KT(8, qv), KT(9, Qg), KT(10, wL)], + t + )); + })(VT), + (function (e) { + function t(t, n, r, i, o, s, a, u, l, c, d) { + var h = this, + f = yN(t, o, s, u, l, c, d), + p = f.options, + g = f.getAutomaticKeyboardNavigation, + m = f.disposable; + return ( + (h = e.call(this, t, n, r, i, p) || this).disposables.push(m), + (h.internals = new wN(h, p, g, s, a, u, l, d)), + h.disposables.push(h.internals), + h + ); + } + zT(t, e), + Object.defineProperty(t.prototype, 'contextKeyService', { + get: function () { + return this.internals.contextKeyService; + }, + enumerable: !0, + configurable: !0, + }), + (t = qT( + [KT(5, qn), KT(6, GT), KT(7, Ad), KT(8, qv), KT(9, Qg), KT(10, wL)], + t + )); + })(WT); + function yN(e, t, n, r, i, o, s) { + tN.bindTo(n), iN || (rN.bindTo(n), (iN = !0)); + var a = function () { + var e = n.getContextKeyValue(nN); + return e && (e = i.getValue(lN)), e; + }, + u = 2 === s.getAccessibilitySupport() ? 'simple' : i.getValue(uN), + l = + void 0 !== t.horizontalScrolling + ? t.horizontalScrolling + : (function (e) { + return (function (e, t, n) { + var r = e.inspect(t), + i = e.inspect(n); + return void 0 !== r.user || + void 0 !== r.workspace || + void 0 !== r.workspaceFolder + ? r.value + : void 0 !== i.user || + void 0 !== i.workspace || + void 0 !== i.workspaceFolder + ? i.value + : r.default; + })(e, aN, 'workbench.tree.horizontalScrolling'); + })(i), + c = fN(i), + d = (function (e, t, n) { + var r = new Pt(), + i = UT({}, e); + if ( + !1 !== e.multipleSelectionSupport && + !e.multipleSelectionController + ) { + var o = new gN(t); + (i.multipleSelectionController = o), r.add(o); + } + var s = new mN(t, e.openController); + if ( + ((i.openController = s), + r.add(s), + e.keyboardNavigationLabelProvider) + ) { + var a = e.keyboardNavigationLabelProvider; + i.keyboardNavigationLabelProvider = { + getKeyboardNavigationLabel: function (e) { + return a.getKeyboardNavigationLabel(e); + }, + mightProducePrintableCharacter: function (e) { + return n.mightProducePrintableCharacter(e); + }, + }; + } + return [i, r]; + })(t, i, o), + h = d[0], + f = d[1], + p = t.additionalScrollHeight; + return { + getAutomaticKeyboardNavigation: a, + disposable: f, + options: UT( + { + keyboardSupport: !1, + styleController: new GE((pN || (pN = vf()), pN)), + }, + lD(r.getTheme(), dD), + h, + { + indent: i.getValue(cN), + renderIndentGuides: i.getValue(dN), + automaticKeyboardNavigation: a(), + simpleKeyboardNavigation: 'simple' === u, + filterOnType: 'filter' === u, + horizontalScrolling: l, + openOnSingleClick: c, + keyboardNavigationEventFilter: _N(e, o), + additionalScrollHeight: p, + } + ), + }; + } + var vN, + bN, + wN = (function () { + function e(e, t, n, r, i, o, s, a) { + var u = this; + (this.disposables = []), + (this.contextKeyService = (function (e, t) { + var n = e.createScoped(t.getHTMLElement()); + return ZT.bindTo(n), n; + })(r, e)), + XT.bindTo(this.contextKeyService).set( + !(!1 === t.multipleSelectionSupport) + ), + (this.hasSelectionOrFocus = JT.bindTo(this.contextKeyService)), + (this.hasDoubleSelection = QT.bindTo(this.contextKeyService)), + (this.hasMultiSelection = eN.bindTo(this.contextKeyService)), + (this._useAltAsMultipleSelectionModifier = hN(s)); + var l = new Set(); + l.add(nN); + var c = function () { + var t = + 2 === a.getAccessibilitySupport() ? 'simple' : s.getValue(uN); + e.updateOptions({ + simpleKeyboardNavigation: 'simple' === t, + filterOnType: 'filter' === t, + }); + }; + this.disposables.push( + this.contextKeyService, + i.register(e), + (function (e, t, n) { + return cD(t, Xr(n || Object.create(null), dD, !1), e); + })(e, o), + e.onDidChangeSelection(function () { + var t = e.getSelection(), + n = e.getFocus(); + u.hasSelectionOrFocus.set(t.length > 0 || n.length > 0), + u.hasMultiSelection.set(t.length > 1), + u.hasDoubleSelection.set(2 === t.length); + }), + e.onDidChangeFocus(function () { + var t = e.getSelection(), + n = e.getFocus(); + u.hasSelectionOrFocus.set(t.length > 0 || n.length > 0); + }), + s.onDidChangeConfiguration(function (t) { + if ( + (t.affectsConfiguration(sN) && + e.updateOptions({ openOnSingleClick: fN(s) }), + t.affectsConfiguration(oN) && + (u._useAltAsMultipleSelectionModifier = hN(s)), + t.affectsConfiguration(cN)) + ) { + var r = s.getValue(cN); + e.updateOptions({ indent: r }); + } + if (t.affectsConfiguration(dN)) { + var i = s.getValue(dN); + e.updateOptions({ renderIndentGuides: i }); + } + t.affectsConfiguration(uN) && c(), + t.affectsConfiguration(lN) && + e.updateOptions({ automaticKeyboardNavigation: n() }); + }), + this.contextKeyService.onDidChangeContext(function (t) { + t.affectsSome(l) && + e.updateOptions({ automaticKeyboardNavigation: n() }); + }), + a.onDidChangeAccessibilitySupport(function () { + return c(); + }) + ); + } + return ( + (e.prototype.dispose = function () { + this.disposables = Ot(this.disposables); + }), + (e = qT([KT(3, qn), KT(4, GT), KT(5, Ad), KT(6, qv), KT(7, wL)], e)) + ); + })(); + Lr.as(_v.Configuration).registerConfiguration({ + id: 'workbench', + order: 7, + title: De('workbenchConfigurationTitle', 'Workbench'), + type: 'object', + properties: + ((BT = {}), + (BT[oN] = { + type: 'string', + enum: ['ctrlCmd', 'alt'], + enumDescriptions: [ + De( + 'multiSelectModifier.ctrlCmd', + 'Maps to `Control` on Windows and Linux and to `Command` on macOS.' + ), + De( + 'multiSelectModifier.alt', + 'Maps to `Alt` on Windows and Linux and to `Option` on macOS.' + ), + ], + default: 'ctrlCmd', + description: De( + { + key: 'multiSelectModifier', + comment: [ + '- `ctrlCmd` refers to a value the setting can take and should not be localized.', + '- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized.', + ], + }, + "The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier." + ), + }), + (BT[sN] = { + type: 'string', + enum: ['singleClick', 'doubleClick'], + default: 'singleClick', + description: De( + { + key: 'openModeModifier', + comment: [ + '`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized.', + ], + }, + 'Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ' + ), + }), + (BT[aN] = { + type: 'boolean', + default: !1, + description: De( + 'horizontalScrolling setting', + 'Controls whether lists and trees support horizontal scrolling in the workbench.' + ), + }), + (BT['workbench.tree.horizontalScrolling'] = { + type: 'boolean', + default: !1, + description: De( + 'tree horizontalScrolling setting', + 'Controls whether trees support horizontal scrolling in the workbench.' + ), + deprecationMessage: De( + 'deprecated', + "This setting is deprecated, please use '{0}' instead.", + aN + ), + }), + (BT[cN] = { + type: 'number', + default: 8, + minimum: 0, + maximum: 40, + description: De( + 'tree indent setting', + 'Controls tree indentation in pixels.' + ), + }), + (BT[dN] = { + type: 'string', + enum: ['none', 'onHover', 'always'], + default: 'onHover', + description: De( + 'render tree indent guides', + 'Controls whether the tree should render indent guides.' + ), + }), + (BT[uN] = { + type: 'string', + enum: ['simple', 'highlight', 'filter'], + enumDescriptions: [ + De( + 'keyboardNavigationSettingKey.simple', + 'Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes.' + ), + De( + 'keyboardNavigationSettingKey.highlight', + 'Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements.' + ), + De( + 'keyboardNavigationSettingKey.filter', + 'Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.' + ), + ], + default: 'highlight', + description: De( + 'keyboardNavigationSettingKey', + 'Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.' + ), + }), + (BT[lN] = { + type: 'boolean', + default: !0, + markdownDescription: De( + 'automatic keyboard navigation setting', + 'Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.' + ), + }), + BT), + }), + (function (e) { + (e[(e.Hint = 1)] = 'Hint'), + (e[(e.Info = 2)] = 'Info'), + (e[(e.Warning = 4)] = 'Warning'), + (e[(e.Error = 8)] = 'Error'); + })(vN || (vN = {})), + (function (e) { + e.compare = function (e, t) { + return t - e; + }; + var t = Object.create(null); + (t[e.Error] = De('sev.error', 'Error')), + (t[e.Warning] = De('sev.warning', 'Warning')), + (t[e.Info] = De('sev.info', 'Info')), + (e.toString = function (e) { + return t[e] || ''; + }), + (e.fromSeverity = function (t) { + switch (t) { + case om.Error: + return e.Error; + case om.Warning: + return e.Warning; + case om.Info: + return e.Info; + case om.Ignore: + return e.Hint; + } + }), + (e.toSeverity = function (t) { + switch (t) { + case e.Error: + return om.Error; + case e.Warning: + return om.Warning; + case e.Info: + return om.Info; + case e.Hint: + return om.Ignore; + } + }); + })(vN || (vN = {})), + (function (e) { + var t = ''; + function n(e, n) { + var r = [t]; + return ( + e.source ? r.push(e.source.replace('¦', '¦')) : r.push(t), + e.code ? r.push(e.code.replace('¦', '¦')) : r.push(t), + void 0 !== e.severity && null !== e.severity + ? r.push(vN.toString(e.severity)) + : r.push(t), + e.message && n ? r.push(e.message.replace('¦', '¦')) : r.push(t), + void 0 !== e.startLineNumber && null !== e.startLineNumber + ? r.push(e.startLineNumber.toString()) + : r.push(t), + void 0 !== e.startColumn && null !== e.startColumn + ? r.push(e.startColumn.toString()) + : r.push(t), + void 0 !== e.endLineNumber && null !== e.endLineNumber + ? r.push(e.endLineNumber.toString()) + : r.push(t), + void 0 !== e.endColumn && null !== e.endColumn + ? r.push(e.endColumn.toString()) + : r.push(t), + r.push(t), + r.join('¦') + ); + } + (e.makeKey = function (e) { + return n(e, !0); + }), + (e.makeKeyOptionalMessage = n); + })(bN || (bN = {})); + var CN, + SN, + xN = wt('markerService'); + ((SN = CN || (CN = {})).get = function (e, t, n) { + if (e[t]) return e[t][n]; + }), + (SN.set = function (e, t, n, r) { + e[t] || (e[t] = Object.create(null)), (e[t][n] = r); + }), + (SN.remove = function (e, t, n) { + return !( + !e[t] || + !e[t][n] || + (delete e[t][n], Fe(e[t]) && delete e[t], 0) + ); + }); + var LN = (function () { + function e(e) { + (this.errors = 0), + (this.infos = 0), + (this.warnings = 0), + (this.unknowns = 0), + (this._data = Object.create(null)), + (this._service = e), + (this._subscription = e.onMarkerChanged(this._update, this)); + } + return ( + (e.prototype.dispose = function () { + this._subscription.dispose(), (this._data = void 0); + }), + (e.prototype._update = function (e) { + if (this._data) + for (var t = 0, n = e; t < n.length; t++) { + var r = n[t], + i = r.toString(), + o = this._data[i]; + o && this._substract(o); + var s = this._resourceStats(r); + this._add(s), (this._data[i] = s); + } + }), + (e.prototype._resourceStats = function (e) { + var t = { errors: 0, warnings: 0, infos: 0, unknowns: 0 }; + if ( + e.scheme === Mh.inMemory || + e.scheme === Mh.walkThrough || + e.scheme === Mh.walkThroughSnippet + ) + return t; + for ( + var n = 0, r = this._service.read({ resource: e }); + n < r.length; + n++ + ) { + var i = r[n].severity; + i === vN.Error + ? (t.errors += 1) + : i === vN.Warning + ? (t.warnings += 1) + : i === vN.Info + ? (t.infos += 1) + : (t.unknowns += 1); + } + return t; + }), + (e.prototype._substract = function (e) { + (this.errors -= e.errors), + (this.warnings -= e.warnings), + (this.infos -= e.infos), + (this.unknowns -= e.unknowns); + }), + (e.prototype._add = function (e) { + (this.errors += e.errors), + (this.warnings += e.warnings), + (this.infos += e.infos), + (this.unknowns += e.unknowns); + }), + e + ); + })(), + kN = (function () { + function e() { + (this._onMarkerChanged = new Gt()), + (this._onMarkerChangedEvent = Wt.debounce( + this._onMarkerChanged.event, + e._debouncer, + 0 + )), + (this._byResource = Object.create(null)), + (this._byOwner = Object.create(null)), + (this._stats = new LN(this)); + } + return ( + (e.prototype.dispose = function () { + this._stats.dispose(); + }), + Object.defineProperty(e.prototype, 'onMarkerChanged', { + get: function () { + return this._onMarkerChangedEvent; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.remove = function (e, t) { + for (var n = 0, r = t || []; n < r.length; n++) { + var i = r[n]; + this.changeOne(e, i, []); + } + }), + (e.prototype.changeOne = function (t, n, r) { + if (((d = r), Array.isArray(d) && 0 !== d.length)) { + for (var i = [], o = 0, s = r; o < s.length; o++) { + var a = s[o], + u = e._toMarker(t, n, a); + u && i.push(u); + } + CN.set(this._byResource, n.toString(), t, i), + CN.set(this._byOwner, t, n.toString(), i), + this._onMarkerChanged.fire([n]); + } else { + var l = CN.remove(this._byResource, n.toString(), t), + c = CN.remove(this._byOwner, t, n.toString()); + if (l !== c) throw new Error('invalid marker service state'); + l && c && this._onMarkerChanged.fire([n]); + } + var d; + }), + (e._toMarker = function (e, t, n) { + var r = n.code, + i = n.severity, + o = n.message, + s = n.source, + a = n.startLineNumber, + u = n.startColumn, + l = n.endLineNumber, + c = n.endColumn, + d = n.relatedInformation, + h = n.tags; + if (o) + return { + resource: t, + owner: e, + code: r, + severity: i, + message: o, + source: s, + startLineNumber: (a = a > 0 ? a : 1), + startColumn: (u = u > 0 ? u : 1), + endLineNumber: (l = l >= a ? l : a), + endColumn: (c = c > 0 ? c : u), + relatedInformation: d, + tags: h, + }; + }), + (e.prototype.read = function (t) { + void 0 === t && (t = Object.create(null)); + var n = t.owner, + r = t.resource, + i = t.severities, + o = t.take; + if (((!o || o < 0) && (o = -1), n && r)) { + if ((v = CN.get(this._byResource, r.toString(), n))) { + for (var s = [], a = 0, u = v; a < u.length; a++) { + var l = u[a]; + if (e._accept(l, i)) { + var c = s.push(l); + if (o > 0 && c === o) break; + } + } + return s; + } + return []; + } + if (n || r) { + var d = n + ? this._byOwner[n] + : r + ? this._byResource[r.toString()] + : void 0; + if (!d) return []; + s = []; + for (var h in d) + for (var f = 0, p = d[h]; f < p.length; f++) { + v = p[f]; + if (e._accept(v, i)) { + c = s.push(v); + if (o > 0 && c === o) return s; + } + } + return s; + } + var s = []; + for (var g in this._byResource) + for (var m in this._byResource[g]) + for (var _ = 0, y = this._byResource[g][m]; _ < y.length; _++) { + var v = y[_]; + if (e._accept(v, i)) { + var c = s.push(v); + if (o > 0 && c === o) return s; + } + } + return s; + }), + (e._accept = function (e, t) { + return void 0 === t || (t & e.severity) === e.severity; + }), + (e._debouncer = function (t, n) { + t || ((e._dedupeMap = Object.create(null)), (t = [])); + for (var r = 0, i = n; r < i.length; r++) { + var o = i[r]; + void 0 === e._dedupeMap[o.toString()] && + ((e._dedupeMap[o.toString()] = !0), t.push(o)); + } + return t; + }), + e + ); + })(), + MN = wt('editorProgressService'), + DN = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + EN = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + TN = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + NN = (function () { + function e(e) { + this._commandService = e; + } + return ( + (e.prototype.createMenu = function (e, t) { + return new ON(e, this._commandService, t); + }), + (e = EN([TN(0, nr)], e)) + ); + })(), + ON = (function (e) { + function t(t, n, r) { + var i = e.call(this) || this; + return ( + (i._id = t), + (i._commandService = n), + (i._contextKeyService = r), + (i._onDidChange = i._register(new Gt())), + i._build(), + i._register( + Wt.debounce( + Wt.filter(cr.onDidChangeMenu, function (e) { + return e === i._id; + }), + function () {}, + 50 + )(i._build, i) + ), + i._register( + Wt.debounce( + i._contextKeyService.onDidChangeContext, + function (e, t) { + return e || t.affectsSome(i._contextKeys); + }, + 50 + )(function (e) { + return e && i._onDidChange.fire(void 0); + }, i) + ), + i + ); + } + return ( + DN(t, e), + (t.prototype._build = function () { + (this._menuGroups = []), (this._contextKeys = new Set()); + var e, + n = cr.getMenuItems(this._id); + n.sort(t._compareMenuItems); + for (var r = 0, i = n; r < i.length; r++) { + var o = i[r], + s = o.group || ''; + (e && e[0] === s) || ((e = [s, []]), this._menuGroups.push(e)), + e[1].push(o), + t._fillInKbExprKeys(o.when, this._contextKeys), + ar(o) && + o.command.precondition && + t._fillInKbExprKeys( + o.command.precondition, + this._contextKeys + ), + ar(o) && + o.command.toggled && + t._fillInKbExprKeys(o.command.toggled, this._contextKeys); + } + this._onDidChange.fire(this); + }), + (t.prototype.getActions = function (e) { + for (var t = [], n = 0, r = this._menuGroups; n < r.length; n++) { + for ( + var i = r[n], o = i[0], s = [], a = 0, u = i[1]; + a < u.length; + a++ + ) { + var l = u[a]; + if (this._contextKeyService.contextMatchesRules(l.when)) { + var c = ar(l) + ? new fr( + l.command, + l.alt, + e, + this._contextKeyService, + this._commandService + ) + : new hr(l); + s.push(c); + } + } + s.length > 0 && t.push([o, s]); + } + return t; + }), + (t._fillInKbExprKeys = function (e, t) { + if (e) + for (var n = 0, r = e.keys(); n < r.length; n++) { + var i = r[n]; + t.add(i); + } + }), + (t._compareMenuItems = function (e, t) { + var n = e.group, + r = t.group; + if (n !== r) { + if (!n) return 1; + if (!r) return -1; + if ('navigation' === n) return -1; + if ('navigation' === r) return 1; + var i = n.localeCompare(r); + if (0 !== i) return i; + } + var o = e.order || 0, + s = t.order || 0; + if (o < s) return -1; + if (o > s) return 1; + var a = + 'string' == typeof e.command.title + ? e.command.title + : e.command.title.value, + u = + 'string' == typeof t.command.title + ? t.command.title + : t.command.title.value; + return a.localeCompare(u); + }), + (t = EN([TN(1, nr), TN(2, qn)], t)) + ); + })(Rt), + AN = wt('markerDecorationsService'), + IN = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + PN = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + RN = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }; + function FN(e) { + return e.toString(); + } + var YN, + jN = (function (e) { + function t(t) { + var n = e.call(this) || this; + return ( + (n.model = t), + (n._markersData = new Map()), + n._register( + It(function () { + n.model.deltaDecorations($n(n._markersData), []), + n._markersData.clear(); + }) + ), + n + ); + } + return ( + IN(t, e), + (t.prototype.update = function (e, t) { + for ( + var n = this.model.deltaDecorations($n(this._markersData), t), + r = 0; + r < n.length; + r++ + ) + this._markersData.set(n[r], e[r]); + }), + (t.prototype.getMarker = function (e) { + return this._markersData.get(e.id); + }), + t + ); + })(Rt), + BN = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._markerService = n), + (r._onDidChangeMarker = r._register(new Gt())), + (r._markerDecorations = new Map()), + t.getModels().forEach(function (e) { + return r._onModelAdded(e); + }), + r._register(t.onModelAdded(r._onModelAdded, r)), + r._register(t.onModelRemoved(r._onModelRemoved, r)), + r._register( + r._markerService.onMarkerChanged(r._handleMarkerChange, r) + ), + r + ); + } + return ( + IN(t, e), + (t.prototype.dispose = function () { + e.prototype.dispose.call(this), + this._markerDecorations.forEach(function (e) { + return e.dispose(); + }), + this._markerDecorations.clear(); + }), + (t.prototype.getMarker = function (e, t) { + var n = this._markerDecorations.get(FN(e.uri)); + return n ? ze(n.getMarker(t)) : null; + }), + (t.prototype._handleMarkerChange = function (e) { + var t = this; + e.forEach(function (e) { + var n = t._markerDecorations.get(FN(e)); + n && t._updateDecorations(n); + }); + }), + (t.prototype._onModelAdded = function (e) { + var t = new jN(e); + this._markerDecorations.set(FN(e.uri), t), + this._updateDecorations(t); + }), + (t.prototype._onModelRemoved = function (e) { + var t = this, + n = this._markerDecorations.get(FN(e.uri)); + n && (n.dispose(), this._markerDecorations.delete(FN(e.uri))), + (e.uri.scheme !== Mh.inMemory && + e.uri.scheme !== Mh.internal && + e.uri.scheme !== Mh.vscode) || + (this._markerService && + this._markerService + .read({ resource: e.uri }) + .map(function (e) { + return e.owner; + }) + .forEach(function (n) { + return t._markerService.remove(n, [e.uri]); + })); + }), + (t.prototype._updateDecorations = function (e) { + var t = this, + n = this._markerService.read({ + resource: e.model.uri, + take: 500, + }), + r = n.map(function (n) { + return { + range: t._createDecorationRange(e.model, n), + options: t._createDecorationOption(n), + }; + }); + e.update(n, r), this._onDidChangeMarker.fire(e.model); + }), + (t.prototype._createDecorationRange = function (e, t) { + var n = Fr.lift(t); + if ( + (t.severity === vN.Hint && + ((t.tags && -1 !== t.tags.indexOf(1)) || + (n = n.setEndPosition(n.startLineNumber, n.startColumn + 2))), + (n = e.validateRange(n)).isEmpty()) + ) { + var r = e.getWordAtPosition(n.getStartPosition()); + if (r) + n = new Fr( + n.startLineNumber, + r.startColumn, + n.endLineNumber, + r.endColumn + ); + else { + var i = + e.getLineLastNonWhitespaceColumn(n.startLineNumber) || + e.getLineMaxColumn(n.startLineNumber); + 1 === i || + (n = + n.endColumn >= i + ? new Fr(n.startLineNumber, i - 1, n.endLineNumber, i) + : new Fr( + n.startLineNumber, + n.startColumn, + n.endLineNumber, + n.endColumn + 1 + )); + } + } else if ( + t.endColumn === Number.MAX_VALUE && + 1 === t.startColumn && + n.startLineNumber === n.endLineNumber + ) { + var o = e.getLineFirstNonWhitespaceColumn(t.startLineNumber); + o < n.endColumn && + ((n = new Fr( + n.startLineNumber, + o, + n.endLineNumber, + n.endColumn + )), + (t.startColumn = o)); + } + return n; + }), + (t.prototype._createDecorationOption = function (e) { + var t, + n, + r = void 0, + i = void 0; + switch (e.severity) { + case vN.Hint: + (t = + e.tags && e.tags.indexOf(1) >= 0 + ? 'squiggly-unnecessary' + : 'squiggly-hint'), + (n = 0); + break; + case vN.Warning: + (t = 'squiggly-warning'), (r = Id(DC)), (n = 20); + break; + case vN.Info: + (t = 'squiggly-info'), (r = Id(EC)), (n = 10); + break; + case vN.Error: + default: + (t = 'squiggly-error'), (r = Id(MC)), (n = 30); + } + return ( + e.tags && + (-1 !== e.tags.indexOf(1) && + (i = 'squiggly-inline-unnecessary'), + -1 !== e.tags.indexOf(2) && (i = 'squiggly-inline-deprecated')), + { + stickiness: 1, + className: t, + showIfCollapsed: !0, + overviewRuler: { color: r, position: gi.Right }, + zIndex: n, + inlineClassName: i, + } + ); + }), + (t = PN([RN(0, Lt), RN(1, xN)], t)) + ); + })(Rt), + WN = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + HN = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + VN = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + zN = (function (e) { + function t(t, n) { + var r = e.call(this) || this; + return ( + (r._contextKeyService = t), + (r._configurationService = n), + (r._onDidChangeAccessibilitySupport = new Gt()), + (r.onDidChangeAccessibilitySupport = + r._onDidChangeAccessibilitySupport.event), + (r._accessibilityModeEnabledContext = CL.bindTo( + r._contextKeyService + )), + r._register( + r._configurationService.onDidChangeConfiguration(function (e) { + e.affectsConfiguration('editor.accessibilitySupport') && + r._updateContextKey(); + }) + ), + r._updateContextKey(), + r.onDidChangeAccessibilitySupport(function () { + return r._updateContextKey(); + }), + r + ); + } + return ( + WN(t, e), + (t.prototype._updateContextKey = function () { + var e = 2 === this.getAccessibilitySupport(), + t = this._configurationService.getValue( + 'editor.accessibilitySupport' + ); + this._accessibilityModeEnabledContext.set( + 'on' === t || ('auto' === t && e) + ); + }), + (t = HN([VN(0, qn), VN(1, qv)], t)) + ); + })(Rt), + UN = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(), + qN = function (e, t, n, r) { + var i, + o = arguments.length, + s = + o < 3 + ? t + : null === r + ? (r = Object.getOwnPropertyDescriptor(t, n)) + : r; + if ('object' == typeof Reflect && 'function' == typeof Reflect.decorate) + s = Reflect.decorate(e, t, n, r); + else + for (var a = e.length - 1; a >= 0; a--) + (i = e[a]) && + (s = (o < 3 ? i(s) : o > 3 ? i(t, n, s) : i(t, n)) || s); + return o > 3 && s && Object.defineProperty(t, n, s), s; + }, + KN = function (e, t) { + return function (n, r) { + t(n, r, e); + }; + }, + GN = (function (e) { + function t(t, n) { + var r = e.call(this, t, n) || this; + return ( + (r.contextKeyService = t), + (r.configurationService = n), + (r._accessibilitySupport = 0), + r + ); + } + return ( + UN(t, e), + (t.prototype.getAccessibilitySupport = function () { + return this._accessibilitySupport; + }), + (t = qN([KN(0, qn), KN(1, qv)], t)) + ); + })(zN), + $N = (function () { + var e = function (t, n) { + return (e = + Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && + function (e, t) { + e.__proto__ = t; + }) || + function (e, t) { + for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]); + })(t, n); + }; + return function (t, n) { + function r() { + this.constructor = t; + } + e(t, n), + (t.prototype = + null === n + ? Object.create(n) + : ((r.prototype = n.prototype), new r())); + }; + })(); + !(function (e) { + var t = new bL(), + n = (function () { + function e(e, t) { + (this._serviceId = e), (this._factory = t), (this._value = null); + } + return ( + Object.defineProperty(e.prototype, 'id', { + get: function () { + return this._serviceId; + }, + enumerable: !0, + configurable: !0, + }), + (e.prototype.get = function (e) { + if (!this._value) { + if ( + (e && (this._value = e[this._serviceId.toString()]), + this._value || (this._value = this._factory(e)), + !this._value) + ) + throw new Error( + 'Service ' + this._serviceId + ' is missing!' + ); + t.set(this._serviceId, this._value); + } + return this._value; + }), + e + ); + })(); + e.LazyStaticService = n; + var r = []; + function i(e, t) { + var i = new n(e, t); + return r.push(i), i; + } + (e.init = function (e) { + for (var t = new bL(), n = 0, i = BL; n < i.length; n++) { + var o = i[n], + s = o[0], + a = o[1]; + t.set(s, a); + } + for (var u in e) e.hasOwnProperty(u) && t.set(wt(u), e[u]); + r.forEach(function (n) { + return t.set(n.id, n.get(e)); + }); + var l = new RD(t, !0); + return t.set(vt, l), [t, l]; + }), + (e.instantiationService = i(vt, function () { + return new RD(t, !0); + })); + var o = new Hb(); + (e.configurationService = i(qv, function () { + return o; + })), + (e.resourceConfigurationService = i(ly, function () { + return new Vb(o); + })), + (e.resourcePropertiesService = i(cy, function () { + return new zb(o); + })), + (e.contextService = i(gb, function () { + return new qb(); + })), + (e.labelService = i(YD, function () { + return new $b(); + })), + (e.telemetryService = i(Er, function () { + return new Ub(); + })), + (e.dialogService = i(MD, function () { + return new Fb(); + })), + (e.notificationService = i(sm, function () { + return new Yb(); + })), + (e.markerService = i(xN, function () { + return new kN(); + })), + (e.modeService = i(Ok, function (e) { + return new $k(); + })), + (e.modelService = i(Lt, function (t) { + return new nM( + e.configurationService.get(t), + e.resourcePropertiesService.get(t) + ); + })), + (e.markerDecorationsService = i(AN, function (t) { + return new BN(e.modelService.get(t), e.markerService.get(t)); + })), + (e.standaloneThemeService = i(wk, function () { + return new jM(); + })), + (e.codeEditorService = i(St, function (t) { + return new gM(e.standaloneThemeService.get(t)); + })), + (e.editorProgressService = i(MN, function () { + return new Rb(); + })), + (e.storageService = i(tm, function () { + return new im(); + })), + (e.logService = i(dy, function () { + return new hy(); + })), + (e.editorWorkerService = i(M_, function (t) { + return new vy( + e.modelService.get(t), + e.resourceConfigurationService.get(t), + e.logService.get(t) + ); + })); + })(YN || (YN = {})); + var ZN = (function (e) { + function t(t, n) { + var r = e.call(this) || this, + i = YN.init(n), + o = i[0], + s = i[1]; + (r._serviceCollection = o), (r._instantiationService = s); + var a = r.get(qv), + u = r.get(sm), + l = r.get(Er), + c = r.get(Ad), + d = function (e, t) { + var i = null; + return ( + n && (i = n[e.toString()]), + i || (i = t()), + r._serviceCollection.set(e, i), + i + ); + }, + h = d(qn, function () { + return r._register(new JM(a)); + }); + d(wL, function () { + return new GN(h, a); + }), + d(GT, function () { + return new $T(h); + }); + var f = d(nr, function () { + return new jb(r._instantiationService); + }), + p = d(Qg, function () { + return r._register(new Bb(h, f, l, u, t)); + }), + g = d(CD, function () { + return new Zb(t); + }), + m = d(Xg, function () { + return r._register(new kD(g)); + }); + return ( + d(Jg, function () { + var e = new yD(l, u, m, p, c); + return e.configure({ blockMouse: !1 }), r._register(e); + }), + d(lr, function () { + return new NN(f); + }), + d(Nk, function () { + return new Gb(YN.modelService.get(Lt)); + }), + r + ); + } + return ( + $N(t, e), + (t.prototype.get = function (e) { + var t = this._serviceCollection.get(e); + if (!t) throw new Error('Missing service ' + e); + return t; + }), + (t.prototype.set = function (e, t) { + this._serviceCollection.set(e, t); + }), + (t.prototype.has = function (e) { + return this._serviceCollection.has(e); + }), + t + ); + })(Rt), + XN = wt('openerService'); + Object.freeze({ + _serviceBrand: void 0, + registerOpener: function () { + return { dispose: function () {} }; + }, + registerValidator: function () { + return { dispose: function () {} }; + }, + open: function () { + return Promise.resolve(!1); + }, + }); + function JN(e, t, n) { + var r = new ZN(e, t), + i = null; + r.has(Mt) || ((i = new Pb()), r.set(Mt, i)), + r.has(XN) || r.set(XN, new g_(r.get(St), r.get(nr))); + var o = n(r); + return i && i.setEditor(o), o; + } + function QN(e, t, n) { + return JN(e, n || {}, function (n) { + return new Ek( + e, + t, + n, + n.get(vt), + n.get(St), + n.get(nr), + n.get(qn), + n.get(Qg), + n.get(Xg), + n.get(wk), + n.get(sm), + n.get(qv), + n.get(wL) + ); + }); + } + function eO(e) { + return YN.codeEditorService.get().onCodeEditorAdd(function (t) { + e(t); + }); + } + function tO(e, t, n) { + return JN(e, n || {}, function (n) { + return new Tk( + e, + t, + n, + n.get(vt), + n.get(qn), + n.get(Qg), + n.get(Xg), + n.get(M_), + n.get(St), + n.get(wk), + n.get(sm), + n.get(qv), + n.get(Jg), + null + ); + }); + } + function nO(e, t) { + return new y_(e, t); + } + function rO(e, t, n) { + return YN.modelService.get().createModel(e, t, n); + } + function iO(e, t, n) { + if (((e = e || ''), !t)) { + var r = e.indexOf('\n'), + i = e; + return ( + -1 !== r && (i = e.substring(0, r)), + rO( + e, + YN.modeService.get().createByFilepathOrFirstLine(n || null, i), + n + ) + ); + } + return rO(e, YN.modeService.get().create(t), n); + } + function oO(e, t) { + YN.modelService.get().setMode(e, YN.modeService.get().create(t)); + } + function sO(e, t, n) { + e && YN.markerService.get().changeOne(t, e.uri, n); + } + function aO(e) { + return YN.markerService.get().read(e); + } + function uO(e) { + return YN.modelService.get().getModel(e); + } + function lO() { + return YN.modelService.get().getModels(); + } + function cO(e) { + return YN.modelService.get().onModelAdded(e); + } + function dO(e) { + return YN.modelService.get().onModelRemoved(e); + } + function hO(e) { + return YN.modelService.get().onModelModeChanged(function (t) { + e({ model: t.model, oldLanguage: t.oldModeId }); + }); + } + function fO(e) { + return (function (e, t) { + return new Dy(e, t); + })(YN.modelService.get(), e); + } + function pO(e, t) { + return pv.colorizeElement( + YN.standaloneThemeService.get(), + YN.modeService.get(), + e, + t + ); + } + function gO(e, t, n) { + return pv.colorize(YN.modeService.get(), e, t, n); + } + function mO(e, t, n) { + return void 0 === n && (n = 4), pv.colorizeModelLine(e, t, n); + } + function _O(e) { + var t = Ia.get(e); + return ( + t || { + getInitialState: function () { + return Ba; + }, + tokenize: function (t, n, r) { + return (function (e, t, n, r) { + return new Ya([new Fa(r, '', e)], n); + })(e, 0, n, r); + }, + } + ); + } + function yO(e, t) { + YN.modeService.get().triggerMode(t); + for ( + var n = _O(t), + r = e.split(/\r\n|\r|\n/), + i = [], + o = n.getInitialState(), + s = 0, + a = r.length; + s < a; + s++ + ) { + var u = r[s], + l = n.tokenize(u, o, 0); + (i[s] = l.tokens), (o = l.endState); + } + return i; + } + function vO(e, t) { + YN.standaloneThemeService.get().defineTheme(e, t); + } + function bO(e) { + YN.standaloneThemeService.get().setTheme(e); + } + function wO() { + rw.INSTANCE.clearCache(); + } + function CO(e, t) { + return 'boolean' == typeof e ? e : t; + } + function SO(e, t) { + return 'string' == typeof e ? e : t; + } + function xO(e, t) { + void 0 === t && (t = !1), + t && + (e = e.map(function (e) { + return e.toLowerCase(); + })); + var n = (function (e) { + for (var t = {}, n = 0, r = e; n < r.length; n++) { + t[r[n]] = !0; + } + return t; + })(e); + return t + ? function (e) { + return ( + void 0 !== n[e.toLowerCase()] && n.hasOwnProperty(e.toLowerCase()) + ); + } + : function (e) { + return void 0 !== n[e] && n.hasOwnProperty(e); + }; + } + function LO(e, t) { + for (var n = 0; t.indexOf('@') >= 0 && n < 5; ) + n++, + (t = t.replace(/@(\w+)/g, function (n, r) { + var i = ''; + if ('string' == typeof e[r]) i = e[r]; + else { + if (!(e[r] && e[r] instanceof RegExp)) + throw void 0 === e[r] + ? nv( + e, + "language definition does not contain attribute '" + + r + + "', used at: " + + t + ) + : nv( + e, + "attribute reference '" + + r + + "' must be a string, used at: " + + t + ); + i = e[r].source; + } + return Qy(i) ? '' : '(?:' + i + ')'; + })); + return new RegExp(t, e.ignoreCase ? 'i' : ''); + } + function kO(e, t, n, r) { + var i = -1, + o = n, + s = n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/); + s && (s[3] && ((i = parseInt(s[3])), s[2] && (i += 100)), (o = s[4])); + var a, + u = '~', + l = o; + if ( + (o && 0 !== o.length + ? /^\w*$/.test(l) + ? (u = '==') + : (s = o.match(/^(@|!@|~|!~|==|!=)(.*)$/)) && + ((u = s[1]), (l = s[2])) + : ((u = '!='), (l = '')), + ('~' !== u && '!~' !== u) || !/^(\w|\|)*$/.test(l)) + ) + if ('@' === u || '!@' === u) { + var c = e[l]; + if (!c) + throw nv( + e, + "the @ match target '" + l + "' is not defined, in rule: " + t + ); + if ( + !(function (e, t) { + if (!t) return !1; + if (!Array.isArray(t)) return !1; + for (var n = 0, r = t; n < r.length; n++) { + if (!e(r[n])) return !1; + } + return !0; + })(function (e) { + return 'string' == typeof e; + }, c) + ) + throw nv( + e, + "the @ match target '" + + l + + "' must be an array of strings, in rule: " + + t + ); + var d = xO(c, e.ignoreCase); + a = function (e) { + return '@' === u ? d(e) : !d(e); + }; + } else if ('~' === u || '!~' === u) + if (l.indexOf('$') < 0) { + var h = LO(e, '^' + l + '$'); + a = function (e) { + return '~' === u ? h.test(e) : !h.test(e); + }; + } else + a = function (t, n, r, i) { + return LO(e, '^' + rv(e, l, n, r, i) + '$').test(t); + }; + else if (l.indexOf('$') < 0) { + var f = ev(e, l); + a = function (e) { + return '==' === u ? e === f : e !== f; + }; + } else { + var p = ev(e, l); + a = function (t, n, r, i, o) { + var s = rv(e, p, n, r, i); + return '==' === u ? t === s : t !== s; + }; + } + else { + var g = xO(l.split('|'), e.ignoreCase); + a = function (e) { + return '~' === u ? g(e) : !g(e); + }; + } + return -1 === i + ? { + name: n, + value: r, + test: function (e, t, n, r) { + return a(e, e, t, n, r); + }, + } + : { + name: n, + value: r, + test: function (e, t, n, r) { + var o = (function (e, t, n, r) { + if (r < 0) return e; + if (r < t.length) return t[r]; + if (r >= 100) { + r -= 100; + var i = n.split('.'); + if ((i.unshift(n), r < i.length)) return i[r]; + } + return null; + })(e, t, n, i); + return a(o || '', e, t, n, r); + }, + }; + } + var MO = (function () { + function e(e) { + (this.regex = new RegExp('')), + (this.action = { token: '' }), + (this.matchOnlyAtLineStart = !1), + (this.name = ''), + (this.name = e); + } + return ( + (e.prototype.setRegex = function (e, t) { + var n; + if ('string' == typeof t) n = t; + else { + if (!(t instanceof RegExp)) + throw nv( + e, + 'rules must start with a match string or regular expression: ' + + this.name + ); + n = t.source; + } + (this.matchOnlyAtLineStart = n.length > 0 && '^' === n[0]), + (this.name = this.name + ': ' + n), + (this.regex = LO( + e, + '^(?:' + (this.matchOnlyAtLineStart ? n.substr(1) : n) + ')' + )); + }), + (e.prototype.setAction = function (e, t) { + this.action = (function e(t, n, r) { + if (r) { + if ('string' == typeof r) return r; + if (r.token || '' === r.token) { + if ('string' != typeof r.token) + throw nv( + t, + "a 'token' attribute must be of type string, in rule: " + n + ); + var i = { token: r.token }; + if ( + (r.token.indexOf('$') >= 0 && (i.tokenSubst = !0), + 'string' == typeof r.bracket) + ) + if ('@open' === r.bracket) i.bracket = 1; + else { + if ('@close' !== r.bracket) + throw nv( + t, + "a 'bracket' attribute must be either '@open' or '@close', in rule: " + + n + ); + i.bracket = -1; + } + if (r.next) { + if ('string' != typeof r.next) + throw nv( + t, + 'the next state must be a string value in rule: ' + n + ); + var o = r.next; + if ( + !/^(@pop|@push|@popall)$/.test(o) && + ('@' === o[0] && (o = o.substr(1)), + o.indexOf('$') < 0 && + !(function (e, t) { + for (var n = t; n && n.length > 0; ) { + if (e.stateNames[n]) return !0; + var r = n.lastIndexOf('.'); + n = r < 0 ? null : n.substr(0, r); + } + return !1; + })(t, rv(t, o, '', [], ''))) + ) + throw nv( + t, + "the next state '" + + r.next + + "' is not defined in rule: " + + n + ); + i.next = o; + } + return ( + 'number' == typeof r.goBack && (i.goBack = r.goBack), + 'string' == typeof r.switchTo && (i.switchTo = r.switchTo), + 'string' == typeof r.log && (i.log = r.log), + 'string' == typeof r.nextEmbedded && + ((i.nextEmbedded = r.nextEmbedded), (t.usesEmbedded = !0)), + i + ); + } + if (Array.isArray(r)) { + for (var s = [], a = 0, u = r.length; a < u; a++) + s[a] = e(t, n, r[a]); + return { group: s }; + } + if (r.cases) { + var l = []; + for (var c in r.cases) + if (r.cases.hasOwnProperty(c)) { + var d = e(t, n, r.cases[c]); + '@default' === c || '@' === c || '' === c + ? l.push({ test: void 0, value: d, name: c }) + : '@eos' === c + ? l.push({ + test: function (e, t, n, r) { + return r; + }, + value: d, + name: c, + }) + : l.push(kO(t, n, c, d)); + } + var h = t.defaultToken; + return { + test: function (e, t, n, r) { + for (var i = 0, o = l; i < o.length; i++) { + var s = o[i]; + if (!s.test || s.test(e, t, n, r)) return s.value; + } + return h; + }, + }; + } + throw nv( + t, + "an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: " + + n + ); + } + return { token: '' }; + })(e, this.name, t); + }), + e + ); + })(); + function DO(e) { + Hk.registerLanguage(e); + } + function EO() { + var e = []; + return (e = e.concat(Hk.getLanguages())); + } + function TO(e) { + var t = YN.modeService.get().getLanguageIdentifier(e); + return t ? t.id : 0; + } + function NO(e, t) { + var n = YN.modeService.get().onDidCreateMode(function (r) { + r.getId() === e && (n.dispose(), t()); + }); + return n; + } + function OO(e, t) { + var n = YN.modeService.get().getLanguageIdentifier(e); + if (!n) + throw new Error('Cannot set configuration for unknown language ' + e); + return ku.register(n, t); + } + var AO = (function () { + function e(e) { + this._actual = e; + } + return ( + (e.prototype.getInitialState = function () { + return this._actual.getInitialState(); + }), + (e.prototype.tokenize = function (e, t, n) { + throw new Error('Not supported!'); + }), + (e.prototype.tokenize2 = function (e, t) { + var n = this._actual.tokenizeEncoded(e, t); + return new ja(n.tokens, n.endState); + }), + e + ); + })(), + IO = (function () { + function e(e, t, n) { + (this._standaloneThemeService = e), + (this._languageIdentifier = t), + (this._actual = n); + } + return ( + (e.prototype.getInitialState = function () { + return this._actual.getInitialState(); + }), + (e.prototype._toClassicTokens = function (e, t, n) { + for (var r = [], i = 0, o = 0, s = e.length; o < s; o++) { + var a = e[o], + u = a.startIndex; + 0 === o ? (u = 0) : u < i && (u = i), + (r[o] = new Fa(u + n, a.scopes, t)), + (i = u); + } + return r; + }), + (e.prototype.tokenize = function (e, t, n) { + var r, + i = this._actual.tokenize(e, t), + o = this._toClassicTokens( + i.tokens, + this._languageIdentifier.language, + n + ); + return (r = i.endState.equals(t) ? t : i.endState), new Ya(o, r); + }), + (e.prototype._toBinaryTokens = function (e, t) { + for ( + var n = this._languageIdentifier.id, + r = this._standaloneThemeService.getTheme().tokenTheme, + i = [], + o = 0, + s = 0, + a = 0, + u = e.length; + a < u; + a++ + ) { + var l = e[a], + c = r.match(n, l.scopes); + if (!(o > 0 && i[o - 1] === c)) { + var d = l.startIndex; + 0 === a ? (d = 0) : d < s && (d = s), + (i[o++] = d + t), + (i[o++] = c), + (s = d); + } + } + var h = new Uint32Array(o); + for (a = 0; a < o; a++) h[a] = i[a]; + return h; + }), + (e.prototype.tokenize2 = function (e, t, n) { + var r, + i = this._actual.tokenize(e, t), + o = this._toBinaryTokens(i.tokens, n); + return (r = i.endState.equals(t) ? t : i.endState), new ja(o, r); + }), + e + ); + })(); + function PO(e) { + return e && 'function' == typeof e.then; + } + function RO(e, t) { + var n = YN.modeService.get().getLanguageIdentifier(e); + if (!n) + throw new Error('Cannot set tokens provider for unknown language ' + e); + var r = function (e) { + return (function (e) { + return 'tokenizeEncoded' in e; + })(e) + ? new AO(e) + : new IO(YN.standaloneThemeService.get(), n, e); + }; + return PO(t) + ? Ia.registerPromise( + e, + t.then(function (e) { + return r(e); + }) + ) + : Ia.register(e, r(t)); + } + function FO(e, t) { + var n = function (t) { + return (function (e, t, n, r) { + return new hv(e, t, n, r); + })( + YN.modeService.get(), + YN.standaloneThemeService.get(), + e, + (function (e, t) { + if (!t || 'object' != typeof t) + throw new Error( + 'Monarch: expecting a language definition object' + ); + var n = {}; + (n.languageId = e), + (n.noThrow = !1), + (n.maxStack = 100), + (n.start = 'string' == typeof t.start ? t.start : null), + (n.ignoreCase = CO(t.ignoreCase, !1)), + (n.tokenPostfix = SO(t.tokenPostfix, '.' + n.languageId)), + (n.defaultToken = SO(t.defaultToken, 'source')), + (n.usesEmbedded = !1); + var r = t; + function i(e, o, s) { + for (var a = 0, u = s; a < u.length; a++) { + var l = u[a], + c = l.include; + if (c) { + if ('string' != typeof c) + throw nv( + n, + "an 'include' attribute must be a string at: " + e + ); + if (('@' === c[0] && (c = c.substr(1)), !t.tokenizer[c])) + throw nv( + n, + "include target '" + c + "' is not defined at: " + e + ); + i(e + '.' + c, o, t.tokenizer[c]); + } else { + var d = new MO(e); + if (Array.isArray(l) && l.length >= 1 && l.length <= 3) + if ((d.setRegex(r, l[0]), l.length >= 3)) + if ('string' == typeof l[1]) + d.setAction(r, { token: l[1], next: l[2] }); + else { + if ('object' != typeof l[1]) + throw nv( + n, + 'a next state as the last element of a rule can only be given if the action is either an object or a string, at: ' + + e + ); + var h = l[1]; + (h.next = l[2]), d.setAction(r, h); + } + else d.setAction(r, l[1]); + else { + if (!l.regex) + throw nv( + n, + "a rule must either be an array, or an object with a 'regex' or 'include' field at: " + + e + ); + l.name && 'string' == typeof l.name && (d.name = l.name), + l.matchOnlyAtStart && + (d.matchOnlyAtLineStart = CO( + l.matchOnlyAtLineStart, + !1 + )), + d.setRegex(r, l.regex), + d.setAction(r, l.action); + } + o.push(d); + } + } + } + if ( + ((r.languageId = e), + (r.ignoreCase = n.ignoreCase), + (r.noThrow = n.noThrow), + (r.usesEmbedded = n.usesEmbedded), + (r.stateNames = t.tokenizer), + (r.defaultToken = n.defaultToken), + !t.tokenizer || 'object' != typeof t.tokenizer) + ) + throw nv( + n, + "a language definition must define the 'tokenizer' attribute as an object" + ); + for (var o in ((n.tokenizer = []), t.tokenizer)) + if (t.tokenizer.hasOwnProperty(o)) { + n.start || (n.start = o); + var s = t.tokenizer[o]; + (n.tokenizer[o] = new Array()), + i('tokenizer.' + o, n.tokenizer[o], s); + } + if (((n.usesEmbedded = r.usesEmbedded), t.brackets)) { + if (!Array.isArray(t.brackets)) + throw nv( + n, + "the 'brackets' attribute must be defined as an array" + ); + } else + t.brackets = [ + { open: '{', close: '}', token: 'delimiter.curly' }, + { open: '[', close: ']', token: 'delimiter.square' }, + { open: '(', close: ')', token: 'delimiter.parenthesis' }, + { open: '<', close: '>', token: 'delimiter.angle' }, + ]; + for (var a = [], u = 0, l = t.brackets; u < l.length; u++) { + var c = l[u]; + if ( + (c && + Array.isArray(c) && + 3 === c.length && + (c = { token: c[2], open: c[0], close: c[1] }), + c.open === c.close) + ) + throw nv( + n, + "open and close brackets in a 'brackets' attribute must be different: " + + c.open + + "\n hint: use the 'bracket' attribute if matching on equal brackets is required." + ); + if ( + 'string' != typeof c.open || + 'string' != typeof c.token || + 'string' != typeof c.close + ) + throw nv( + n, + "every element in the 'brackets' array must be a '{open,close,token}' object or array" + ); + a.push({ + token: c.token + n.tokenPostfix, + open: ev(n, c.open), + close: ev(n, c.close), + }); + } + return (n.brackets = a), (n.noThrow = !0), n; + })(e, t) + ); + }; + return PO(t) + ? Ia.registerPromise( + e, + t.then(function (e) { + return n(e); + }) + ) + : Ia.register(e, n(t)); + } + function YO(e, t) { + return fa.register(e, t); + } + function jO(e, t) { + return pa.register(e, t); + } + function BO(e, t) { + return _a.register(e, t); + } + function WO(e, t) { + return ya.register(e, { + provideHover: function (e, n, r) { + var i = e.getWordAtPosition(n); + return Promise.resolve(t.provideHover(e, n, r)).then(function (e) { + if (e) + return ( + !e.range && + i && + (e.range = new Fr( + n.lineNumber, + i.startColumn, + n.lineNumber, + i.endColumn + )), + e.range || + (e.range = new Fr( + n.lineNumber, + n.column, + n.lineNumber, + n.column + )), + e + ); + }); + }, + }); + } + function HO(e, t) { + return va.register(e, t); + } + function VO(e, t) { + return ba.register(e, t); + } + function zO(e, t) { + return wa.register(e, t); + } + function UO(e, t) { + return Sa.register(e, t); + } + function qO(e, t) { + return xa.register(e, t); + } + function KO(e, t) { + return La.register(e, t); + } + function GO(e, t) { + return ka.register(e, { + provideCodeActions: function (e, n, r, i) { + var o = YN.markerService + .get() + .read({ resource: e.uri }) + .filter(function (e) { + return Fr.areIntersectingOrTouching(e, n); + }); + return t.provideCodeActions(e, n, { markers: o, only: r.only }, i); + }, + }); + } + function $O(e, t) { + return Ma.register(e, t); + } + function ZO(e, t) { + return Da.register(e, t); + } + function XO(e, t) { + return Ea.register(e, t); + } + function JO(e, t) { + return Ta.register(e, t); + } + function QO(e, t) { + return ma.register(e, t); + } + function eA(e, t) { + return Na.register(e, t); + } + function tA(e, t) { + return Aa.register(e, t); + } + function nA(e, t) { + return Ca.register(e, t); + } + function rA(e, t) { + return Oa.register(e, t); + } + var iA = self; + (Ci.wrappingIndent = 0), + (Ci.viewInfo.glyphMargin = !1), + (Ci.autoIndent = !1); + var oA = s_(); + (oA.editor = { + create: QN, + onDidCreateEditor: eO, + createDiffEditor: tO, + createDiffNavigator: nO, + createModel: iO, + setModelLanguage: oO, + setModelMarkers: sO, + getModelMarkers: aO, + getModels: lO, + getModel: uO, + onDidCreateModel: cO, + onWillDisposeModel: dO, + onDidChangeModelLanguage: hO, + createWebWorker: fO, + colorizeElement: pO, + colorize: gO, + colorizeModelLine: mO, + tokenize: yO, + defineTheme: vO, + setTheme: bO, + remeasureFonts: wO, + ScrollbarVisibility: Am, + WrappingIndent: Vm, + OverviewRulerLane: Im, + MinimapPosition: Pm, + EndOfLinePreference: Rm, + DefaultEndOfLine: Fm, + EndOfLineSequence: Ym, + TrackedRangeStickiness: jm, + CursorChangeReason: Wm, + MouseTargetType: $m, + TextEditorCursorStyle: Um, + TextEditorCursorBlinkingStyle: zm, + ContentWidgetPositionPreference: Km, + OverlayWidgetPositionPreference: Gm, + RenderMinimap: Hm, + ScrollType: Bm, + RenderLineNumbersType: qm, + InternalEditorOptions: si, + BareFontInfo: L_, + FontInfo: k_, + TextModelResolvedOptions: Si, + FindMatch: xi, + EditorType: Tl, + }), + (oA.languages = { + register: DO, + getLanguages: EO, + onLanguage: NO, + getEncodedLanguageId: TO, + setLanguageConfiguration: OO, + setTokensProvider: RO, + setMonarchTokensProvider: FO, + registerReferenceProvider: YO, + registerRenameProvider: jO, + registerCompletionItemProvider: QO, + registerSignatureHelpProvider: BO, + registerHoverProvider: WO, + registerDocumentSymbolProvider: HO, + registerDocumentHighlightProvider: VO, + registerDefinitionProvider: zO, + registerImplementationProvider: UO, + registerTypeDefinitionProvider: qO, + registerCodeLensProvider: KO, + registerCodeActionProvider: GO, + registerDocumentFormattingEditProvider: $O, + registerDocumentRangeFormattingEditProvider: ZO, + registerOnTypeFormattingEditProvider: XO, + registerLinkProvider: JO, + registerColorProvider: eA, + registerFoldingRangeProvider: tA, + registerDeclarationProvider: nA, + registerSelectionRangeProvider: rA, + DocumentHighlightKind: n_, + CompletionItemKind: Xm, + CompletionItemTag: Jm, + CompletionItemInsertTextRule: Qm, + SymbolKind: r_, + SymbolTag: i_, + IndentAction: Zm, + CompletionTriggerKind: e_, + SignatureHelpTriggerKind: t_, + FoldingRangeKind: ha, + }); + var sA = oA.CancellationTokenSource, + aA = oA.Emitter, + uA = oA.KeyCode, + lA = oA.KeyMod, + cA = oA.Position, + dA = oA.Range, + hA = oA.Selection, + fA = oA.SelectionDirection, + pA = oA.MarkerSeverity, + gA = oA.MarkerTag, + mA = oA.Uri, + _A = oA.Token, + yA = oA.editor, + vA = oA.languages; + (iA.monaco = oA), + void 0 !== iA.require && + 'function' == typeof iA.require.config && + iA.require.config({ + ignoreDuplicateModules: [ + 'vscode-languageserver-types', + 'vscode-languageserver-types/main', + 'vscode-nls', + 'vscode-nls/vscode-nls', + 'jsonc-parser', + 'jsonc-parser/main', + 'vscode-uri', + 'vscode-uri/index', + 'vs/basic-languages/typescript/typescript', + ], + }); + var bA = n(317), + wA = n.n(bA)()({ strategy: 'scroll' }); + function CA(e, t) { + wA.listenTo(e, t); + var n = t; + return { + update: function (t) { + wA.removeListener(e, n), wA.listenTo(e, t), (n = t); + }, + destroy: function () { + wA.removeListener(e, n); + }, + }; + } + n(606); + function SA(e) { + let t; + const n = new Le({ props: { errorText: 'Syntax Error' } }); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function xA(e) { + let t, + n, + r, + i, + o, + s = e[0] && SA(); + return { + c() { + (t = b('div')), + (n = b('div')), + (i = C()), + s && s.c(), + L(n, 'id', 'editor'), + L(n, 'class', 'svelte-14zu5tj'), + L(t, 'id', 'editor-container'), + L(t, 'class', 'svelte-14zu5tj'); + }, + m(a, u) { + y(a, t, u), + _(t, n), + (r = CA.call(null, n, e[1]) || {}), + _(t, i), + s && s.m(t, null), + (o = !0); + }, + p(e, [n]) { + l(r.update) && 2 & n && r.update.call(null, e[1]), + e[0] + ? s + ? G(s, 1) + : ((s = SA()).c(), G(s, 1), s.m(t, null)) + : s && + (q(), + $(s, 1, 1, () => { + s = null; + }), + K()); + }, + i(e) { + o || (G(s), (o = !0)); + }, + o(e) { + $(s), (o = !1); + }, + d(e) { + e && v(t), r && l(r.destroy) && r.destroy(), s && s.d(); + }, + }; + } + function LA(e, t, n) { + let { code: r = '' } = t; + const o = window.matchMedia('(prefers-color-scheme: dark)').matches && !1; + let s, + { conf: a = { theme: o ? 'dark' : 'default' } } = t, + { error: u = !1 } = t; + const l = []; + let c = null, + d = () => {}; + const h = (e) => { + try { + Ce.a.parse(e), + _e({ code: e, mermaid: a, updateEditor: !1 }), + l.forEach((e) => { + s.deltaDecorations(e, []); + }), + be.set(void 0); + s.getModel(); + } catch (t) { + if (t) { + be.set(t), console.log('Error in parsed', t.hash); + const n = JSON.stringify({ code: e, mermaid: a }); + ce('/edit/' + pe.Base64.encodeURI(n)); + t.hash.line; + l.push( + s.deltaDecorations( + [], + [ + { + range: new dA( + t.hash.loc.first_line, + t.hash.loc.last_line, + t.hash.loc.first_column, + t.hash.loc.last_column + ), + options: { inlineClassName: 'myInlineDecoration' }, + }, + ] + ) + ); + } + } + }; + ge.subscribe((e) => { + if ( + (console.log('Code change'), + null === c && (c = document.getElementById('editor')), + !r && e && n(2, (r = e.code)), + e && n(3, (a = e.mermaid)), + !s && r && null !== c) + ) { + (s = yA.create(c, { + value: [r].join('\n'), + theme: 'myCoolTheme', + language: 'mermaid', + })), + n(1, (d = Me(s))); + s.onDidChangeModelContent(function (e) { + const t = s.getValue(); + h(t); + }), + h(r); + } + e && + e.updateEditor && + s && + r && + null !== c && + (s.setValue(e.code), h(e.code)); + }), + be.subscribe((e) => { + n(0, (u = !!e)); + }); + return ( + ke(i), + A(async () => { + self.MonacoEnvironment = { + getWorkerUrl: (e, t) => './editor.worker.bundle.js', + }; + }), + (e.$set = (e) => { + 'code' in e && n(2, (r = e.code)), + 'conf' in e && n(3, (a = e.conf)), + 'error' in e && n(0, (u = e.error)); + }), + [u, d, r, a] + ); + } + var kA = class extends te { + constructor(e) { + super(), ee(this, e, LA, xA, c, { code: 2, conf: 3, error: 0 }); + } + }; + const MA = ie(void 0); + n(607); + function DA(e) { + let t; + const n = new Le({ props: { errorText: e[0] } }); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + p(e, t) { + const r = {}; + 1 & t && (r.errorText = e[0]), n.$set(r); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function EA(e) { + let t, + n, + r, + i, + o, + s = e[0] && DA(e); + return { + c() { + (t = b('div')), + (n = b('div')), + (i = C()), + s && s.c(), + L(n, 'id', 'editor-conf'), + L(n, 'class', 'svelte-e1y9ss'), + L(t, 'id', 'editor-container'); + }, + m(a, u) { + y(a, t, u), + _(t, n), + (r = CA.call(null, n, e[1]) || {}), + _(t, i), + s && s.m(t, null), + (o = !0); + }, + p(e, [n]) { + l(r.update) && 2 & n && r.update.call(null, e[1]), + e[0] + ? s + ? (s.p(e, n), G(s, 1)) + : ((s = DA(e)).c(), G(s, 1), s.m(t, null)) + : s && + (q(), + $(s, 1, 1, () => { + s = null; + }), + K()); + }, + i(e) { + o || (G(s), (o = !0)); + }, + o(e) { + $(s), (o = !1); + }, + d(e) { + e && v(t), r && l(r.destroy) && r.destroy(), s && s.d(); + }, + }; + } + function TA(e, t, n) { + let r, + { conf: o = '' } = t, + { code: s = '' } = t, + { error: a = !1 } = t, + u = null; + let l = () => {}, + c = {}; + const d = (e) => { + try { + console.log(e), JSON.parse(e), ve(JSON.parse(e)), MA.set(void 0); + } catch (e) { + console.log('Error in parsed', e), MA.set(e); + const t = JSON.stringify({ code: s, mermaid: c }); + ce('/edit/' + pe.Base64.encodeURI(t)); + } + }; + ge.subscribe((e) => { + if ( + (null === u && + (console.log( + 'Starting stuff', + document.getElementById('editor-conf') + ), + (u = document.getElementById('editor-conf'))), + !o && e && n(2, (o = JSON.stringify(e.mermaid, null, 2))), + e && n(3, (s = e.code)), + !r && o && null !== u) + ) { + (r = yA.create(u, { + value: [o].join('\n'), + theme: 'myCoolTheme', + language: 'JSON', + })), + n(1, (l = Me(r))); + r.onDidChangeModelContent(function (e) { + const t = r.getValue(); + d(t); + }), + d(o); + } + }); + ke(i); + MA.subscribe((e) => { + n(0, (a = !!e && e.toString())); + }); + return ( + A(async () => { + console.log('Mounting config'), + (self.MonacoEnvironment = { + getWorkerUrl: (e, t) => './editor.worker.bundle.js', + }); + }), + (e.$set = (e) => { + 'conf' in e && n(2, (o = e.conf)), + 'code' in e && n(3, (s = e.code)), + 'error' in e && n(0, (a = e.error)); + }), + [a, l, o, s] + ); + } + var NA = class extends te { + constructor(e) { + super(), ee(this, e, TA, EA, c, { conf: 2, code: 3, error: 0 }); + } + }; + n(608); + function OA(e) { + let t, n, r; + return { + c() { + (t = b('div')), + L((n = b('div')), 'id', 'container'), + L(n, 'class', 'svelte-adxv1m'), + L(t, 'id', 'view'), + L(t, 'class', (r = e[1] + ' ' + e[0] + ' svelte-adxv1m')); + }, + m(r, i) { + y(r, t, i), _(t, n), e[12](n); + }, + p(e, [n]) { + 3 & n && + r !== (r = e[1] + ' ' + e[0] + ' svelte-adxv1m') && + L(t, 'class', r); + }, + i: o, + o: o, + d(n) { + n && v(t), e[12](null); + }, + }; + } + function AA(e, t, n) { + const r = (e) => ( + (e = e.replace(/^\s*%%.*\n/g, '\n')), + console.debug('Detecting diagram type based on the text ' + e), + e.match(/^\s*sequenceDiagram/) + ? 'sequence' + : e.match(/^\s*gantt/) + ? 'gantt' + : e.match(/^\s*classDiagram/) + ? 'class' + : e.match(/^\s*stateDiagram/) + ? 'state' + : e.match(/^\s*gitGraph/) + ? 'git' + : e.match(/^\s*flowchart/) + ? 'flowchart' + : e.match(/^\s*info/) + ? 'info' + : e.match(/^\s*pie/) + ? 'pie' + : 'flowchart' + ); + let i; + const o = (e) => { + clearTimeout(i), + (i = setTimeout(function () { + console.log('ga:', 'send', 'event', 'render', e, e), + ga('send', 'event', e, 'render', 'render'); + }, 5e3)); + }; + let s, a; + A(async () => { + s = document.querySelector('graph-div'); + }); + let u = function (e, t) {}, + { code: l = '' } = t, + { configClasses: c = '' } = t, + { codeClasses: d = '' } = t; + const h = ge.subscribe((e) => { + try { + if (a && e) { + n(3, (l = e.code)); + let t = l; + (t = (t = t.replace(//g, '>')), + n(2, (a.innerHTML = t), a), + o(r(l)), + delete a.dataset.processed, + Ce.a.initialize(Object.assign({}, e.mermaid)), + Ce.a.init(void 0, a), + l && Ce.a.render('graph-div', l, u); + } + } catch (e) { + console.log('view fail', e); + } + }), + f = be.subscribe((e) => { + void 0 === e + ? n(1, (d = '')) + : (n(1, (d = 'error')), console.log('code error: ', e)); + }), + p = MA.subscribe((e) => { + void 0 === e + ? n(0, (c = '')) + : (n(0, (c = 'error')), console.log('conf error: ', e)); + }); + return ( + (e.$set = (e) => { + 'code' in e && n(3, (l = e.code)), + 'configClasses' in e && n(0, (c = e.configClasses)), + 'codeClasses' in e && n(1, (d = e.codeClasses)); + }), + [ + c, + d, + a, + l, + i, + s, + r, + o, + u, + h, + f, + p, + function (e) { + P[e ? 'unshift' : 'push'](() => { + n(2, (a = e)); + }); + }, + ] + ); + } + var IA = class extends te { + constructor(e) { + super(), + ee(this, e, AA, OA, c, { code: 3, configClasses: 0, codeClasses: 1 }); + } + }; + n(609); + function PA(e) { + let t, n, r, i, o, s, a; + const u = e[4].default, + l = f(u, e, e[3], null); + return { + c() { + (t = b('div')), + (n = b('div')), + (r = w(e[0])), + (i = C()), + (o = b('div')), + l && l.c(), + L(n, 'id', 'title'), + L(n, 'class', 'padding svelte-m2i2uf'), + L(o, 'id', 'content'), + L(o, 'class', (s = m(e[1]) + ' svelte-m2i2uf')), + L(t, 'id', 'card'), + L(t, 'class', 'svelte-m2i2uf'); + }, + m(e, s) { + y(e, t, s), + _(t, n), + _(n, r), + _(t, i), + _(t, o), + l && l.m(o, null), + (a = !0); + }, + p(e, [t]) { + (!a || 1 & t) && M(r, e[0]), + l && l.p && 8 & t && l.p(p(u, e, e[3], null), g(u, e[3], t, null)), + (!a || (2 & t && s !== (s = m(e[1]) + ' svelte-m2i2uf'))) && + L(o, 'class', s); + }, + i(e) { + a || (G(l, e), (a = !0)); + }, + o(e) { + $(l, e), (a = !1); + }, + d(e) { + e && v(t), l && l.d(e); + }, + }; + } + function RA(e, t, n) { + let { title: r = '' } = t, + { noPadding: i = !1 } = t, + o = 'padding'; + i && n(1, (o = '')); + let { $$slots: s = {}, $$scope: a } = t; + return ( + (e.$set = (e) => { + 'title' in e && n(0, (r = e.title)), + 'noPadding' in e && n(2, (i = e.noPadding)), + '$$scope' in e && n(3, (a = e.$$scope)); + }), + [r, o, i, a, s] + ); + } + var FA = class extends te { + constructor(e) { + super(), ee(this, e, RA, PA, c, { title: 0, noPadding: 2 }); + } + }; + n(610); + function YA(e) { + let t, n; + const r = e[3].default, + i = f(r, e, e[2], null); + return { + c() { + (t = b('div')), + i && i.c(), + L(t, 'id', 'tag'), + L(t, 'class', 'svelte-1m053ch'); + }, + m(e, r) { + y(e, t, r), i && i.m(t, null), (n = !0); + }, + p(e, [t]) { + i && i.p && 4 & t && i.p(p(r, e, e[2], null), g(r, e[2], t, null)); + }, + i(e) { + n || (G(i, e), (n = !0)); + }, + o(e) { + $(i, e), (n = !1); + }, + d(e) { + e && v(t), i && i.d(e); + }, + }; + } + function jA(e, t, n) { + let { noPadding: r = !1 } = t, + i = 'padding'; + r && (i = ''); + let { $$slots: o = {}, $$scope: s } = t; + return ( + (e.$set = (e) => { + 'noPadding' in e && n(0, (r = e.noPadding)), + '$$scope' in e && n(2, (s = e.$$scope)); + }), + [r, i, s, o] + ); + } + var BA = class extends te { + constructor(e) { + super(), ee(this, e, jA, YA, c, { noPadding: 0 }); + } + }, + WA = n(0), + HA = n.n(WA); + n(612); + function VA(e) { + let t, + n, + r, + i, + s, + a, + c, + d, + h, + f, + p, + g, + m, + S, + k, + M, + E, + T, + N, + O, + A, + I, + P, + R, + F, + Y, + j, + B, + W, + H, + V, + z, + U, + q, + K, + G, + $, + Z, + X, + J, + Q, + ee, + te, + ne, + re, + ie, + oe, + se, + ae, + ue, + le, + ce, + he, + fe, + pe, + ge, + me = !1, + _e = !1; + function ye() { + (me = !0), e[20].call(ie); + } + function ve() { + (_e = !0), e[22].call(he); + } + return { + c() { + (t = b('div')), + (n = b('button')), + (r = b('a')), + (i = w('Copy Image')), + (s = C()), + (a = b('button')), + (c = b('a')), + (d = w('Download PNG')), + (h = C()), + (f = b('button')), + (p = b('a')), + (g = w('Link to view')), + (S = C()), + (k = b('button')), + (M = b('a')), + (E = w('Download SVG')), + (T = C()), + (N = b('button')), + (O = b('a')), + (A = w('Link to Image')), + (I = C()), + (P = b('button')), + (R = b('a')), + (F = w('Link to SVG')), + (Y = w('\n (markdown is base64 encoded for these urls)')), + (j = C()), + (B = b('div')), + ((W = b('label')).textContent = 'Copy Markdown'), + (H = C()), + (V = b('br')), + (z = C()), + (U = b('input')), + (q = C()), + (K = b('p')), + ((G = b('label')).textContent = 'PNG size:'), + ($ = C()), + (Z = b('input')), + (X = C()), + ((J = b('label')).textContent = 'auto'), + (Q = C()), + (ee = b('input')), + (te = C()), + ((ne = b('label')).textContent = 'width'), + (re = C()), + (ie = b('input')), + (se = C()), + (ae = b('input')), + (ue = C()), + ((le = b('label')).textContent = 'height'), + (ce = C()), + (he = b('input')), + (pe = b('br')), + L(r, 'class', 'link-style svelte-187ys3m'), + L(r, 'href', e[0]), + L(r, 'download', ''), + L(n, 'class', 'button-style svelte-187ys3m'), + L(c, 'class', 'link-style svelte-187ys3m'), + L(c, 'href', e[0]), + L(c, 'download', ''), + L(a, 'class', 'button-style svelte-187ys3m'), + L(p, 'class', 'link-style svelte-187ys3m'), + L(p, 'href', e[0]), + L(f, 'class', 'button-style svelte-187ys3m'), + L(M, 'class', 'link-style svelte-187ys3m'), + L(M, 'href', e[0]), + L(M, 'download', ''), + L(k, 'class', 'button-style svelte-187ys3m'), + L(O, 'class', 'link-style svelte-187ys3m'), + L(O, 'href', e[1]), + L(N, 'class', 'button-style svelte-187ys3m'), + L(R, 'class', 'link-style svelte-187ys3m'), + L(R, 'href', e[2]), + L(P, 'class', 'button-style svelte-187ys3m'), + L(t, 'id', 'links'), + L(t, 'class', 'svelte-187ys3m'), + L(W, 'for', 'markdown'), + L(W, 'class', 'button-style svelte-187ys3m'), + L(U, 'id', 'markdown'), + L(U, 'type', 'text'), + (U.value = e[3]), + L(U, 'class', 'svelte-187ys3m'), + L(B, 'id', 'copy-section'), + L(B, 'class', 'svelte-187ys3m'), + L(Z, 'type', 'radio'), + (Z.__value = 'auto'), + (Z.value = Z.__value), + L(Z, 'id', 'autosize'), + e[18][0].push(Z), + L(J, 'for', 'autosize'), + L(ee, 'type', 'radio'), + (ee.__value = 'width'), + (ee.value = ee.__value), + L(ee, 'id', 'width-active'), + e[18][0].push(ee), + L(ne, 'for', 'width'), + L(ie, 'id', 'width'), + L(ie, 'type', 'number'), + L(ie, 'min', '3'), + L(ie, 'max', '10000'), + (ie.disabled = oe = 'width' !== e[4]), + L(ae, 'type', 'radio'), + (ae.__value = 'height'), + (ae.value = ae.__value), + L(ae, 'id', 'height-active'), + e[18][0].push(ae), + L(le, 'for', 'height'), + L(he, 'id', 'height'), + L(he, 'type', 'number'), + L(he, 'min', '3'), + L(he, 'max', '10000'), + (he.disabled = fe = 'height' !== e[4]), + (ge = [ + x(r, 'click', e[7]), + x(c, 'click', e[8]), + x(M, 'click', e[9]), + x(U, 'click', e[10]), + x(Z, 'change', e[17]), + x(ee, 'change', e[19]), + x(ie, 'input', ye), + x(ae, 'change', e[21]), + x(he, 'input', ve), + ]); + }, + m(o, u) { + y(o, t, u), + _(t, n), + _(n, r), + _(r, i), + _(t, s), + _(t, a), + _(a, c), + _(c, d), + _(t, h), + _(t, f), + _(f, p), + _(p, g), + (m = de.call(null, p) || {}), + _(t, S), + _(t, k), + _(k, M), + _(M, E), + _(t, T), + _(t, N), + _(N, O), + _(O, A), + _(t, I), + _(t, P), + _(P, R), + _(R, F), + _(t, Y), + y(o, j, u), + y(o, B, u), + _(B, W), + _(B, H), + _(B, V), + _(B, z), + _(B, U), + y(o, q, u), + y(o, K, u), + _(K, G), + _(K, $), + _(K, Z), + (Z.checked = Z.__value === e[4]), + _(K, X), + _(K, J), + _(K, Q), + _(K, ee), + (ee.checked = ee.__value === e[4]), + _(K, te), + _(K, ne), + _(K, re), + _(K, ie), + D(ie, e[5]), + _(K, se), + _(K, ae), + (ae.checked = ae.__value === e[4]), + _(K, ue), + _(K, le), + _(K, ce), + _(K, he), + D(he, e[6]), + _(K, pe); + }, + p(e, [t]) { + 1 & t && L(r, 'href', e[0]), + 1 & t && L(c, 'href', e[0]), + 1 & t && L(p, 'href', e[0]), + 1 & t && L(M, 'href', e[0]), + 2 & t && L(O, 'href', e[1]), + 4 & t && L(R, 'href', e[2]), + 8 & t && (U.value = e[3]), + 16 & t && (Z.checked = Z.__value === e[4]), + 16 & t && (ee.checked = ee.__value === e[4]), + 16 & t && oe !== (oe = 'width' !== e[4]) && (ie.disabled = oe), + !me && 32 & t && D(ie, e[5]), + (me = !1), + 16 & t && (ae.checked = ae.__value === e[4]), + 16 & t && fe !== (fe = 'height' !== e[4]) && (he.disabled = fe), + !_e && 64 & t && D(he, e[6]), + (_e = !1); + }, + i: o, + o: o, + d(n) { + n && v(t), + m && l(m.destroy) && m.destroy(), + n && v(j), + n && v(B), + n && v(q), + n && v(K), + e[18][0].splice(e[18][0].indexOf(Z), 1), + e[18][0].splice(e[18][0].indexOf(ee), 1), + e[18][0].splice(e[18][0].indexOf(ae), 1), + u(ge); + }, + }; + } + function zA(e, t, n) { + const r = () => { + const e = document + .getElementById('container') + .innerHTML.replaceAll('
', '
'); + return pe.Base64.encode(e); + }, + i = (e, t) => { + const n = document.createElement('canvas'), + i = document + .querySelector('#container svg') + .getBoundingClientRect(); + if (((n.width = i.width), (n.height = i.height), 'width' === h)) { + const e = i.height / i.width; + (n.width = f), (n.height = f * e); + } else if ('height' === h) { + const e = i.width / i.height; + (n.width = p * e), (n.height = p); + } + const o = n.getContext('2d'); + (o.fillStyle = 'white'), o.fillRect(0, 0, n.width, n.height); + const s = new Image(); + (s.onload = t(n, o, s)), + console.log('SVG', r()), + (s.src = `data:image/svg+xml;base64,${r()}`), + e.stopPropagation(), + e.preventDefault(); + }, + o = (e, t, n) => () => { + t.drawImage(n, 0, 0, e.width, e.height); + const r = document.createElement('a'); + (r.download = `mermaid-diagram-${HA()().format( + 'YYYYMMDDHHmmss' + )}.png`), + (r.href = e + .toDataURL('image/png') + .replace('image/png', 'image/octet-stream')), + r.click(); + }, + s = (e, t, n) => () => { + t.drawImage(n, 0, 0, e.width, e.height), + e.toBlob((e) => { + try { + navigator.clipboard.write([new ClipboardItem({ [e.type]: e })]); + } catch (e) { + console.error(e); + } + }); + }; + let a, + u, + l, + c, + d = '/mermaid-live-editor/#/view', + h = 'auto', + f = 1920, + p = 1080; + const g = ge.subscribe((e) => { + (a = pe.Base64.encodeURI(JSON.stringify(e))), + n(0, (d = `/mermaid-live-editor/#/view/${a}`)), + n(1, (u = `https://mermaid.ink/img/${a}`)), + n(2, (l = `https://mermaid.ink/svg/${a}`)), + n( + 3, + (c = `[![](${u})](${window.location.protocol}//${window.location.host}${window.location.pathname}#/edit/${a})`) + ); + }); + return [ + d, + u, + l, + c, + h, + f, + p, + (e) => { + i(e, s); + }, + (e) => { + i(e, o); + }, + (e) => { + console.log('event', e.target), + (e.target.href = `data:image/svg+xml;base64,${r()}`), + (e.target.download = `mermaid-diagram-${HA()().format( + 'YYYYMMDDHHmmss' + )}.svg`), + console.log('event', e); + }, + (e) => { + e.target.select(), document.execCommand('Copy'); + }, + a, + r, + i, + o, + s, + g, + function () { + (h = this.__value), n(4, h); + }, + [[]], + function () { + (h = this.__value), n(4, h); + }, + function () { + (f = k(this.value)), n(5, f); + }, + function () { + (h = this.__value), n(4, h); + }, + function () { + (p = k(this.value)), n(6, p); + }, + ]; + } + var UA = class extends te { + constructor(e) { + super(), ee(this, e, zA, VA, c, {}); + } + }, + qA = n(318); + n(613); + function KA(e, t, n) { + const r = e.slice(); + return (r[4] = t[n]), (r[6] = n), r; + } + function GA(e) { + let t; + const n = new kA({ props: { data: e[1].data } }); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + p(e, t) { + const r = {}; + 2 & t && (r.data = e[1].data), n.$set(r); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function $A(e) { + let t; + const n = new NA({}); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function ZA(e) { + let t; + const n = new IA({}); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function XA(e) { + let t; + return { + c() { + t = w('No records.'); + }, + m(e, n) { + y(e, t, n); + }, + p: o, + d(e) { + e && v(t); + }, + }; + } + function JA(e) { + let t, + n = e[2], + r = []; + for (let t = 0; t < n.length; t += 1) r[t] = QA(KA(e, n, t)); + return { + c() { + for (let e = 0; e < r.length; e += 1) r[e].c(); + t = S(); + }, + m(e, n) { + for (let t = 0; t < r.length; t += 1) r[t].m(e, n); + y(e, t, n); + }, + p(e, i) { + if (4 & i) { + let o; + for (n = e[2], o = 0; o < n.length; o += 1) { + const s = KA(e, n, o); + r[o] + ? r[o].p(s, i) + : ((r[o] = QA(s)), r[o].c(), r[o].m(t.parentNode, t)); + } + for (; o < r.length; o += 1) r[o].d(1); + r.length = n.length; + } + }, + d(e) { + !(function (e, t) { + for (let n = 0; n < e.length; n += 1) e[n] && e[n].d(t); + })(r, e), + e && v(t); + }, + }; + } + function QA(e) { + let t, + n, + r, + i, + o = pI(e[4].time) + ''; + function s(...t) { + return e[3](e[4], ...t); + } + return { + c() { + (t = b('button')), + (n = w(o)), + (r = C()), + L(t, 'class', 'button-style svelte-mx8k4g'), + (i = x(t, 'click', function () { + s.apply(this, arguments); + })); + }, + m(e, i) { + y(e, t, i), _(t, n), _(t, r); + }, + p(t, r) { + (e = t), 4 & r && o !== (o = pI(e[4].time) + '') && M(n, o); + }, + d(e) { + e && v(t), i(); + }, + }; + } + function eI(e) { + let t, n, r, i, o; + function s(e, t) { + return e[2].length > 0 ? JA : XA; + } + let a = s(e), + u = a(e); + return { + c() { + ((t = b('span')).textContent = + 'Automatically saves once every\n minute, up to 10 records.'), + (n = C()), + (r = b('br')), + (i = C()), + (o = b('div')), + u.c(), + L(t, 'id', 'historyLoaderSubTitle'), + L(t, 'class', 'svelte-mx8k4g'), + L(o, 'id', 'historyList'), + L(o, 'class', 'button-container svelte-mx8k4g'); + }, + m(e, s) { + y(e, t, s), + y(e, n, s), + y(e, r, s), + y(e, i, s), + y(e, o, s), + u.m(o, null); + }, + p(e, t) { + a === (a = s(e)) && u + ? u.p(e, t) + : (u.d(1), (u = a(e)) && (u.c(), u.m(o, null))); + }, + d(e) { + e && v(t), e && v(n), e && v(r), e && v(i), e && v(o), u.d(); + }, + }; + } + function tI(e) { + let t; + return { + c() { + ((t = b('div')).innerHTML = + '
\n \n \n '), + L(t, 'class', 'button-container svelte-mx8k4g'); + }, + m(e, n) { + y(e, t, n); + }, + d(e) { + e && v(t); + }, + }; + } + function nI(e) { + let t; + const n = new UA({}); + return { + c() { + X(n.$$.fragment); + }, + m(e, r) { + J(n, e, r), (t = !0); + }, + i(e) { + t || (G(n.$$.fragment, e), (t = !0)); + }, + o(e) { + $(n.$$.fragment, e), (t = !1); + }, + d(e) { + Q(n, e); + }, + }; + } + function rI(e) { + let t; + return { + c() { + t = w(e[0]); + }, + m(e, n) { + y(e, t, n); + }, + p(e, n) { + 1 & n && M(t, e[0]); + }, + d(e) { + e && v(t); + }, + }; + } + function iI(e) { + let t, + n, + r, + i, + o, + s, + a, + l, + c, + d, + h, + f, + p, + g, + m, + S, + k, + M, + D, + E, + T, + N, + O, + A, + I, + P, + R, + F, + Y, + j, + B, + W, + H, + V, + z, + U, + q; + const K = new FA({ + props: { + title: 'Code', + noPadding: 'true', + $$slots: { default: [GA] }, + $$scope: { ctx: e }, + }, + }), + Z = new FA({ + props: { + title: 'Mermaid Configuration', + $$slots: { default: [$A] }, + $$scope: { ctx: e }, + }, + }), + ee = new FA({ + props: { + title: 'Preview', + $$slots: { default: [ZA] }, + $$scope: { ctx: e }, + }, + }), + te = new FA({ + props: { + title: 'Editing history', + $$slots: { default: [eI] }, + $$scope: { ctx: e }, + }, + }), + ne = new FA({ + props: { + title: 'Links', + $$slots: { default: [tI] }, + $$scope: { ctx: e }, + }, + }), + re = new FA({ + props: { + title: 'Actions', + $$slots: { default: [nI] }, + $$scope: { ctx: e }, + }, + }), + ie = new BA({ + props: { + color: 'green', + $$slots: { default: [rI] }, + $$scope: { ctx: e }, + }, + }); + return { + c() { + (t = b('div')), + ((n = b('div')).innerHTML = + '

Mermaid Live Editor

'), + (r = C()), + (i = b('div')), + (o = b('div')), + ((s = b('span')).innerHTML = 'Diagram presets:'), + (a = C()), + ((l = b('button')).textContent = 'Flow Chart'), + (c = C()), + ((d = b('button')).textContent = 'Sequence Diagram'), + (h = C()), + ((f = b('button')).textContent = 'Class Diagram'), + (p = C()), + ((g = b('button')).textContent = 'State Diagram'), + (m = C()), + ((S = b('button')).textContent = 'Gantt Chart'), + (k = C()), + ((M = b('button')).textContent = 'Pie Chart'), + (D = C()), + ((E = b('button')).textContent = 'ER Diagram'), + (T = C()), + (N = b('div')), + (O = b('div')), + X(K.$$.fragment), + (A = C()), + X(Z.$$.fragment), + (I = C()), + (P = b('div')), + X(ee.$$.fragment), + (R = C()), + (F = b('div')), + (Y = b('div')), + X(te.$$.fragment), + (j = C()), + X(ne.$$.fragment), + (B = C()), + (W = b('div')), + X(re.$$.fragment), + (H = C()), + (V = b('div')), + (z = w('Powered by mermaid\n ')), + X(ie.$$.fragment), + L(n, 'id', 'title-container'), + L(n, 'class', 'svelte-mx8k4g'), + L(s, 'id', 'sampleLoaderTitle'), + L(l, 'class', 'button-style svelte-mx8k4g'), + L(d, 'class', 'button-style svelte-mx8k4g'), + L(f, 'class', 'button-style svelte-mx8k4g'), + L(g, 'class', 'button-style svelte-mx8k4g'), + L(S, 'class', 'button-style svelte-mx8k4g'), + L(M, 'class', 'button-style svelte-mx8k4g'), + L(E, 'class', 'button-style svelte-mx8k4g'), + L(o, 'class', 'button-container svelte-mx8k4g'), + L(i, 'id', 'sampleLoader'), + L(i, 'class', 'svelte-mx8k4g'), + L(O, 'id', 'col1'), + L(O, 'class', 'svelte-mx8k4g'), + L(Y, 'id', 'link-col1'), + L(Y, 'class', 'svelte-mx8k4g'), + L(W, 'id', 'link-col2'), + L(W, 'class', 'svelte-mx8k4g'), + L(F, 'id', 'link-root'), + L(F, 'class', 'svelte-mx8k4g'), + L(P, 'id', 'col2'), + L(P, 'class', 'svelte-mx8k4g'), + L(N, 'id', 'editor-root'), + L(N, 'class', 'svelte-mx8k4g'), + L(V, 'id', 'power'), + L(V, 'class', 'svelte-mx8k4g'), + L(t, 'id', 'body'), + L(t, 'class', 'svelte-mx8k4g'), + (q = [ + x(l, 'click', oI), + x(d, 'click', sI), + x(f, 'click', aI), + x(g, 'click', uI), + x(S, 'click', lI), + x(M, 'click', cI), + x(E, 'click', dI), + ]); + }, + m(e, u) { + y(e, t, u), + _(t, n), + _(t, r), + _(t, i), + _(i, o), + _(o, s), + _(o, a), + _(o, l), + _(o, c), + _(o, d), + _(o, h), + _(o, f), + _(o, p), + _(o, g), + _(o, m), + _(o, S), + _(o, k), + _(o, M), + _(o, D), + _(o, E), + _(t, T), + _(t, N), + _(N, O), + J(K, O, null), + _(O, A), + J(Z, O, null), + _(N, I), + _(N, P), + J(ee, P, null), + _(P, R), + _(P, F), + _(F, Y), + J(te, Y, null), + _(Y, j), + J(ne, Y, null), + _(F, B), + _(F, W), + J(re, W, null), + _(t, H), + _(t, V), + _(V, z), + J(ie, V, null), + (U = !0); + }, + p(e, [t]) { + const n = {}; + 130 & t && (n.$$scope = { dirty: t, ctx: e }), K.$set(n); + const r = {}; + 128 & t && (r.$$scope = { dirty: t, ctx: e }), Z.$set(r); + const i = {}; + 128 & t && (i.$$scope = { dirty: t, ctx: e }), ee.$set(i); + const o = {}; + 132 & t && (o.$$scope = { dirty: t, ctx: e }), te.$set(o); + const s = {}; + 128 & t && (s.$$scope = { dirty: t, ctx: e }), ne.$set(s); + const a = {}; + 128 & t && (a.$$scope = { dirty: t, ctx: e }), re.$set(a); + const u = {}; + 129 & t && (u.$$scope = { dirty: t, ctx: e }), ie.$set(u); + }, + i(e) { + U || + (G(K.$$.fragment, e), + G(Z.$$.fragment, e), + G(ee.$$.fragment, e), + G(te.$$.fragment, e), + G(ne.$$.fragment, e), + G(re.$$.fragment, e), + G(ie.$$.fragment, e), + (U = !0)); + }, + o(e) { + $(K.$$.fragment, e), + $(Z.$$.fragment, e), + $(ee.$$.fragment, e), + $(te.$$.fragment, e), + $(ne.$$.fragment, e), + $(re.$$.fragment, e), + $(ie.$$.fragment, e), + (U = !1); + }, + d(e) { + e && v(t), Q(K), Q(Z), Q(ee), Q(te), Q(ne), Q(re), Q(ie), u(q); + }, + }; + } + function oI() { + hI('FlowChart'); + } + function sI() { + hI('SequenceDiagram'); + } + function aI() { + hI('ClassDiagram'); + } + function uI() { + hI('StateDiagram'); + } + function lI() { + hI('GanttChart'); + } + function cI() { + hI('PieChart'); + } + function dI() { + hI('ERDiagram'); + } + function hI(e) { + let t = ''; + switch (e) { + case 'FlowChart': + t = + 'graph TD\n A[Christmas] --\x3e|Get money| B(Go shopping)\n B --\x3e C{Let me think}\n C --\x3e|One| D[Laptop]\n C --\x3e|Two| E[iPhone]\n C --\x3e|Three| F[fa:fa-car Car]\n '; + break; + case 'SequenceDiagram': + t = + 'sequenceDiagram\n Alice->>+John: Hello John, how are you?\n Alice->>+John: John, can you hear me?\n John--\x3e>-Alice: Hi Alice, I can hear you!\n John--\x3e>-Alice: I feel great!\n '; + break; + case 'ClassDiagram': + t = + 'classDiagram\n Animal <|-- Duck\n Animal <|-- Fish\n Animal <|-- Zebra\n Animal : +int age\n Animal : +String gender\n Animal: +isMammal()\n Animal: +mate()\n class Duck{\n +String beakColor\n +swim()\n +quack()\n }\n class Fish{\n -int sizeInFeet\n -canEat()\n }\n class Zebra{\n +bool is_wild\n +run()\n }\n '; + break; + case 'StateDiagram': + t = + 'stateDiagram-v2\n [*] --\x3e Still\n Still --\x3e [*]\n Still --\x3e Moving\n Moving --\x3e Still\n Moving --\x3e Crash\n Crash --\x3e [*]\n '; + break; + case 'GanttChart': + t = + 'gantt\n title A Gantt Diagram\n dateFormat YYYY-MM-DD\n section Section\n A task :a1, 2014-01-01, 30d\n Another task :after a1 , 20d\n section Another\n Task in sec :2014-01-12 , 12d\n another task : 24d\n '; + break; + case 'PieChart': + t = + 'pie title Pets adopted by volunteers\n "Dogs" : 386\n "Cats" : 85\n "Rats" : 15\n '; + break; + case 'ERDiagram': + t = + 'erDiagram\n CUSTOMER }|..|{ DELIVERY-ADDRESS : has\n CUSTOMER ||--o{ ORDER : places\n CUSTOMER ||--o{ INVOICE : "liable for"\n DELIVERY-ADDRESS ||--o{ ORDER : receives\n INVOICE ||--|{ ORDER : covers\n ORDER ||--|{ ORDER-ITEM : includes\n PRODUCT-CATEGORY ||--|{ PRODUCT : contains\n PRODUCT ||--o{ ORDER-ITEM : "ordered in"\n '; + } + fI(t); + } + function fI(e) { + e && ye(e, !0); + } + function pI(e) { + return `${HA()(e).fromNow()} (${new Date(e).toLocaleString()})`; + } + function gI(e, t, n) { + let { mermaidVersion: r = qA.version } = t, + i = []; + A(async () => { + ga('send', 'pageview'), ga('send', 'event', 'version', r, r); + n( + 2, + (i = JSON.parse(localStorage.getItem('_mermaid_history_') || '[]')) + ); + let e = i.length > 0 ? i[i.length - 1] : null; + o.data + ? me(o.data) + : e && _e({ code: e.code, mermaid: {}, updateEditor: !0 }); + let t = null; + ge.subscribe((e) => { + t = (e && e.code) || t; + }), + setInterval(() => { + t != e && + (i.unshift({ time: new Date().toISOString(), code: (e = t) }), + i.length > 10 && i.pop(), + localStorage.setItem('_mermaid_history_', JSON.stringify(i))), + n(2, i); + }, 6e4); + }); + let { params: o = {} } = t; + return ( + (e.$set = (e) => { + 'mermaidVersion' in e && n(0, (r = e.mermaidVersion)), + 'params' in e && n(1, (o = e.params)); + }), + [r, o, i, (e, t) => fI(e.code)] + ); + } + var mI = class extends te { + constructor(e) { + super(), ee(this, e, gI, iI, c, { mermaidVersion: 0, params: 1 }); + } + }; + n(614); + function _I(e) { + let t, n; + const r = new IA({}); + return { + c() { + (t = b('div')), + X(r.$$.fragment), + L(t, 'id', 'view-page'), + L(t, 'class', 'svelte-clxwlp'); + }, + m(e, i) { + y(e, t, i), J(r, t, null), (n = !0); + }, + p: o, + i(e) { + n || (G(r.$$.fragment, e), (n = !0)); + }, + o(e) { + $(r.$$.fragment, e), (n = !1); + }, + d(e) { + e && v(t), Q(r); + }, + }; + } + function yI(e) { + return ( + A(async () => { + ga('send', 'pageview'); + }), + [] + ); + } + var vI = class extends te { + constructor(e) { + super(), ee(this, e, yI, _I, c, {}); + } + }; + function bI(e) { + let t, n, r; + const i = new fe({ props: { routes: e[0] } }); + return { + c() { + (t = b('link')), + (n = C()), + X(i.$$.fragment), + L( + t, + 'href', + 'https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap' + ), + L(t, 'rel', 'stylesheet'); + }, + m(e, o) { + _(document.head, t), y(e, n, o), J(i, e, o), (r = !0); + }, + p: o, + i(e) { + r || (G(i.$$.fragment, e), (r = !0)); + }, + o(e) { + $(i.$$.fragment, e), (r = !1); + }, + d(e) { + v(t), e && v(n), Q(i, e); + }, + }; + } + function wI(e) { + return [{ '/': mI, '/edit/:data': mI, '/view/:data': vI, '*': mI }]; + } + const CI = new (class extends te { + constructor(e) { + super(), ee(this, e, wI, bI, c, {}); + } + })({ target: document.body, props: { name: 'world' } }); + window.app = CI; + t.default = CI; + }, +]);