From 82e317a992ea9d8b2c21887f58c5697c70daa6b6 Mon Sep 17 00:00:00 2001 From: Tal Harel Date: Sun, 23 Jul 2017 18:16:16 +0300 Subject: [PATCH 1/3] Added generic-playground to _docs dependencies and a postinstall step to copy necessary files --- _docs/.gitignore | 2 + _docs/Playground.bundle.js | 872 ------------------ _docs/package.json | 3 +- _docs/vs/base/worker/workerMain.js | 12 - _docs/vs/basic-languages/src/bat.js | 7 - _docs/vs/basic-languages/src/coffee.js | 7 - _docs/vs/basic-languages/src/cpp.js | 7 - _docs/vs/basic-languages/src/csharp.js | 7 - _docs/vs/basic-languages/src/css.js | 7 - _docs/vs/basic-languages/src/dockerfile.js | 7 - _docs/vs/basic-languages/src/fsharp.js | 7 - _docs/vs/basic-languages/src/go.js | 7 - _docs/vs/basic-languages/src/handlebars.js | 7 - _docs/vs/basic-languages/src/html.js | 7 - _docs/vs/basic-languages/src/ini.js | 7 - _docs/vs/basic-languages/src/jade.js | 7 - _docs/vs/basic-languages/src/java.js | 7 - _docs/vs/basic-languages/src/less.js | 7 - _docs/vs/basic-languages/src/lua.js | 7 - _docs/vs/basic-languages/src/markdown.js | 7 - _docs/vs/basic-languages/src/objective-c.js | 7 - _docs/vs/basic-languages/src/php.js | 7 - _docs/vs/basic-languages/src/postiats.js | 7 - _docs/vs/basic-languages/src/powershell.js | 7 - _docs/vs/basic-languages/src/python.js | 7 - _docs/vs/basic-languages/src/r.js | 7 - _docs/vs/basic-languages/src/razor.js | 7 - _docs/vs/basic-languages/src/ruby.js | 7 - _docs/vs/basic-languages/src/scss.js | 7 - _docs/vs/basic-languages/src/sql.js | 7 - _docs/vs/basic-languages/src/swift.js | 10 - _docs/vs/basic-languages/src/vb.js | 7 - _docs/vs/basic-languages/src/xml.js | 7 - _docs/vs/basic-languages/src/yaml.js | 7 - .../quickOpen/browser/symbol-sprite.svg | 1 - .../contrib/suggest/browser/String_16x.svg | 1 - .../suggest/browser/String_inverse_16x.svg | 1 - _docs/vs/editor/editor.main.css | 6 - _docs/vs/editor/editor.main.js | 117 --- _docs/vs/editor/editor.main.nls.de.js | 8 - _docs/vs/editor/editor.main.nls.es.js | 8 - _docs/vs/editor/editor.main.nls.fr.js | 8 - _docs/vs/editor/editor.main.nls.it.js | 8 - _docs/vs/editor/editor.main.nls.ja.js | 8 - _docs/vs/editor/editor.main.nls.js | 8 - _docs/vs/editor/editor.main.nls.ko.js | 8 - _docs/vs/editor/editor.main.nls.ru.js | 8 - _docs/vs/editor/editor.main.nls.zh-cn.js | 8 - _docs/vs/editor/editor.main.nls.zh-tw.js | 8 - _docs/vs/language/css/cssMode.js | 7 - _docs/vs/language/css/cssWorker.js | 21 - _docs/vs/language/html/htmlMode.js | 7 - _docs/vs/language/html/htmlWorker.js | 164 ---- _docs/vs/language/json/jsonMode.js | 8 - _docs/vs/language/json/jsonWorker.js | 9 - .../typescript/lib/typescriptServices.js | 60 -- _docs/vs/language/typescript/src/mode.js | 7 - _docs/vs/language/typescript/src/worker.js | 9 - _docs/vs/loader.js | 8 - 59 files changed, 4 insertions(+), 1604 deletions(-) delete mode 100644 _docs/Playground.bundle.js delete mode 100644 _docs/vs/base/worker/workerMain.js delete mode 100644 _docs/vs/basic-languages/src/bat.js delete mode 100644 _docs/vs/basic-languages/src/coffee.js delete mode 100644 _docs/vs/basic-languages/src/cpp.js delete mode 100644 _docs/vs/basic-languages/src/csharp.js delete mode 100644 _docs/vs/basic-languages/src/css.js delete mode 100644 _docs/vs/basic-languages/src/dockerfile.js delete mode 100644 _docs/vs/basic-languages/src/fsharp.js delete mode 100644 _docs/vs/basic-languages/src/go.js delete mode 100644 _docs/vs/basic-languages/src/handlebars.js delete mode 100644 _docs/vs/basic-languages/src/html.js delete mode 100644 _docs/vs/basic-languages/src/ini.js delete mode 100644 _docs/vs/basic-languages/src/jade.js delete mode 100644 _docs/vs/basic-languages/src/java.js delete mode 100644 _docs/vs/basic-languages/src/less.js delete mode 100644 _docs/vs/basic-languages/src/lua.js delete mode 100644 _docs/vs/basic-languages/src/markdown.js delete mode 100644 _docs/vs/basic-languages/src/objective-c.js delete mode 100644 _docs/vs/basic-languages/src/php.js delete mode 100644 _docs/vs/basic-languages/src/postiats.js delete mode 100644 _docs/vs/basic-languages/src/powershell.js delete mode 100644 _docs/vs/basic-languages/src/python.js delete mode 100644 _docs/vs/basic-languages/src/r.js delete mode 100644 _docs/vs/basic-languages/src/razor.js delete mode 100644 _docs/vs/basic-languages/src/ruby.js delete mode 100644 _docs/vs/basic-languages/src/scss.js delete mode 100644 _docs/vs/basic-languages/src/sql.js delete mode 100644 _docs/vs/basic-languages/src/swift.js delete mode 100644 _docs/vs/basic-languages/src/vb.js delete mode 100644 _docs/vs/basic-languages/src/xml.js delete mode 100644 _docs/vs/basic-languages/src/yaml.js delete mode 100644 _docs/vs/editor/contrib/quickOpen/browser/symbol-sprite.svg delete mode 100644 _docs/vs/editor/contrib/suggest/browser/String_16x.svg delete mode 100644 _docs/vs/editor/contrib/suggest/browser/String_inverse_16x.svg delete mode 100644 _docs/vs/editor/editor.main.css delete mode 100644 _docs/vs/editor/editor.main.js delete mode 100644 _docs/vs/editor/editor.main.nls.de.js delete mode 100644 _docs/vs/editor/editor.main.nls.es.js delete mode 100644 _docs/vs/editor/editor.main.nls.fr.js delete mode 100644 _docs/vs/editor/editor.main.nls.it.js delete mode 100644 _docs/vs/editor/editor.main.nls.ja.js delete mode 100644 _docs/vs/editor/editor.main.nls.js delete mode 100644 _docs/vs/editor/editor.main.nls.ko.js delete mode 100644 _docs/vs/editor/editor.main.nls.ru.js delete mode 100644 _docs/vs/editor/editor.main.nls.zh-cn.js delete mode 100644 _docs/vs/editor/editor.main.nls.zh-tw.js delete mode 100644 _docs/vs/language/css/cssMode.js delete mode 100644 _docs/vs/language/css/cssWorker.js delete mode 100644 _docs/vs/language/html/htmlMode.js delete mode 100644 _docs/vs/language/html/htmlWorker.js delete mode 100644 _docs/vs/language/json/jsonMode.js delete mode 100644 _docs/vs/language/json/jsonWorker.js delete mode 100644 _docs/vs/language/typescript/lib/typescriptServices.js delete mode 100644 _docs/vs/language/typescript/src/mode.js delete mode 100644 _docs/vs/language/typescript/src/worker.js delete mode 100644 _docs/vs/loader.js diff --git a/_docs/.gitignore b/_docs/.gitignore index 990694e7e..050bcb778 100644 --- a/_docs/.gitignore +++ b/_docs/.gitignore @@ -2,3 +2,5 @@ node_modules _book .idea yarn* +vs +Playground.bundle.js diff --git a/_docs/Playground.bundle.js b/_docs/Playground.bundle.js deleted file mode 100644 index c09c51071..000000000 --- a/_docs/Playground.bundle.js +++ /dev/null @@ -1,872 +0,0 @@ -(function webpackUniversalModuleDefinition(root, factory) { - if(typeof exports === 'object' && typeof module === 'object') - module.exports = factory(require("react")); - else if(typeof define === 'function' && define.amd) - define(["react"], factory); - else if(typeof exports === 'object') - exports["Playground"] = factory(require("react")); - else - root["Playground"] = factory(root["react"]); -})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) { -return /******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // identity function for calling harmony imports with the correct context -/******/ __webpack_require__.i = function(value) { return value; }; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ } -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 69); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ (function(module, exports) { - -eval("/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\n// css base code, injected by the css-loader\nmodule.exports = function(useSourceMap) {\n\tvar list = [];\n\n\t// return the list of modules as css string\n\tlist.toString = function toString() {\n\t\treturn this.map(function (item) {\n\t\t\tvar content = cssWithMappingToString(item, useSourceMap);\n\t\t\tif(item[2]) {\n\t\t\t\treturn \"@media \" + item[2] + \"{\" + content + \"}\";\n\t\t\t} else {\n\t\t\t\treturn content;\n\t\t\t}\n\t\t}).join(\"\");\n\t};\n\n\t// import a list of modules into the list\n\tlist.i = function(modules, mediaQuery) {\n\t\tif(typeof modules === \"string\")\n\t\t\tmodules = [[null, modules, \"\"]];\n\t\tvar alreadyImportedModules = {};\n\t\tfor(var i = 0; i < this.length; i++) {\n\t\t\tvar id = this[i][0];\n\t\t\tif(typeof id === \"number\")\n\t\t\t\talreadyImportedModules[id] = true;\n\t\t}\n\t\tfor(i = 0; i < modules.length; i++) {\n\t\t\tvar item = modules[i];\n\t\t\t// skip already imported module\n\t\t\t// this implementation is not 100% perfect for weird media query combinations\n\t\t\t// when a module is imported multiple times with different media queries.\n\t\t\t// I hope this will never occur (Hey this way we have smaller bundles)\n\t\t\tif(typeof item[0] !== \"number\" || !alreadyImportedModules[item[0]]) {\n\t\t\t\tif(mediaQuery && !item[2]) {\n\t\t\t\t\titem[2] = mediaQuery;\n\t\t\t\t} else if(mediaQuery) {\n\t\t\t\t\titem[2] = \"(\" + item[2] + \") and (\" + mediaQuery + \")\";\n\t\t\t\t}\n\t\t\t\tlist.push(item);\n\t\t\t}\n\t\t}\n\t};\n\treturn list;\n};\n\nfunction cssWithMappingToString(item, useSourceMap) {\n\tvar content = item[1] || '';\n\tvar cssMapping = item[3];\n\tif (!cssMapping) {\n\t\treturn content;\n\t}\n\n\tif (useSourceMap && typeof btoa === 'function') {\n\t\tvar sourceMapping = toComment(cssMapping);\n\t\tvar sourceURLs = cssMapping.sources.map(function (source) {\n\t\t\treturn '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'\n\t\t});\n\n\t\treturn [content].concat(sourceURLs).concat([sourceMapping]).join('\\n');\n\t}\n\n\treturn [content].join('\\n');\n}\n\n// Adapted from convert-source-map (MIT)\nfunction toComment(sourceMap) {\n\t// eslint-disable-next-line no-undef\n\tvar base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));\n\tvar data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;\n\n\treturn '/*# ' + data + ' */';\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/css-loader/lib/css-base.js\n// module id = 0\n// module chunks = 0\n\n//# sourceURL=webpack:///./~/css-loader/lib/css-base.js?"); - -/***/ }), -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -eval("/*\n\tMIT License http://www.opensource.org/licenses/mit-license.php\n\tAuthor Tobias Koppers @sokra\n*/\nvar stylesInDom = {},\n\tmemoize = function(fn) {\n\t\tvar memo;\n\t\treturn function () {\n\t\t\tif (typeof memo === \"undefined\") memo = fn.apply(this, arguments);\n\t\t\treturn memo;\n\t\t};\n\t},\n\tisOldIE = memoize(function() {\n\t\t// Test for IE <= 9 as proposed by Browserhacks\n\t\t// @see http://browserhacks.com/#hack-e71d8692f65334173fee715c222cb805\n\t\t// Tests for existence of standard globals is to allow style-loader \n\t\t// to operate correctly into non-standard environments\n\t\t// @see https://github.com/webpack-contrib/style-loader/issues/177\n\t\treturn window && document && document.all && !window.atob;\n\t}),\n\tgetElement = (function(fn) {\n\t\tvar memo = {};\n\t\treturn function(selector) {\n\t\t\tif (typeof memo[selector] === \"undefined\") {\n\t\t\t\tmemo[selector] = fn.call(this, selector);\n\t\t\t}\n\t\t\treturn memo[selector]\n\t\t};\n\t})(function (styleTarget) {\n\t\treturn document.querySelector(styleTarget)\n\t}),\n\tsingletonElement = null,\n\tsingletonCounter = 0,\n\tstyleElementsInsertedAtTop = [],\n\tfixUrls = __webpack_require__(76);\n\nmodule.exports = function(list, options) {\n\tif(typeof DEBUG !== \"undefined\" && DEBUG) {\n\t\tif(typeof document !== \"object\") throw new Error(\"The style-loader cannot be used in a non-browser environment\");\n\t}\n\n\toptions = options || {};\n\toptions.attrs = typeof options.attrs === \"object\" ? options.attrs : {};\n\n\t// Force single-tag solution on IE6-9, which has a hard limit on the # of \ No newline at end of file diff --git a/_docs/vs/editor/contrib/suggest/browser/String_inverse_16x.svg b/_docs/vs/editor/contrib/suggest/browser/String_inverse_16x.svg deleted file mode 100644 index 1ac0cf99a..000000000 --- a/_docs/vs/editor/contrib/suggest/browser/String_inverse_16x.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/_docs/vs/editor/editor.main.css b/_docs/vs/editor/editor.main.css deleted file mode 100644 index 24dae3c33..000000000 --- a/_docs/vs/editor/editor.main.css +++ /dev/null @@ -1,6 +0,0 @@ -/*!----------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.8.2(59c417515cc4385a81ab1755611263b94d0071e2) - * Released under the MIT license - * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt - *-----------------------------------------------------------*/.builder-hidden{display:none!important;visibility:hidden!important}.builder-visible{display:inherit;visibility:visible}.monaco-action-bar{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}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{cursor:pointer;display:inline-block;-webkit-transition:-webkit-transform 50ms ease;transition:transform 50ms ease;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar.animated .action-item.active{-webkit-transform:scale(1.272019649);transform:scale(1.272019649)}.monaco-action-bar .action-item .icon{display:inline-block}.monaco-action-bar .action-label{font-size:12px;margin-right:.3em}.monaco-action-bar .action-label.octicon{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:.4}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{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}.monaco-action-bar.animated.vertical .action-item.active{-webkit-transform:translate(5px);transform:translate(5px)}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;margin-right:10px}.aria-container{position:absolute;left:-999em}.custom-checkbox{margin-left:2px;float:left;cursor:pointer;overflow:hidden;opacity:.7;width:20px;height:20px;border:1px solid transparent;padding:1px;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.custom-checkbox.checked,.custom-checkbox:hover{opacity:1}.custom-checkbox:hover{background-color:#eee}.custom-checkbox.checked{border-color:#007acc}.vs-dark .custom-checkbox:hover{background-color:#292929}.vs-dark .custom-checkbox.checked{border-color:#007acc}.hc-black .custom-checkbox{background:none;border:none}.hc-black .custom-checkbox:hover{background:none}.hc-black .custom-checkbox.checked{border:1px solid #f38518}.context-view{position:absolute;z-index:8}.context-view .tooltip{padding:5px;position:relative;margin-top:4px;margin-right:4px;max-width:350px;-webkit-animation:fadeIn .15s linear;animation:fadeIn .15s linear}.context-view .tooltip:after,.context-view .tooltip:before{content:"";position:absolute;border-color:transparent;border-style:solid}.context-view.bottom.right .tooltip:before{top:-12px;right:12px}.context-view.bottom.right .tooltip:after{top:-9px;right:13px}.monaco-count-badge{padding:.2em .5em;border-radius:1em;font-size:85%;font-weight:400;text-align:center;background:#bebebe;color:#fff;display:inline}.vs-dark .monaco-count-badge{color:#fff;background:#4d4d4d}.hc-black .monaco-count-badge{background:#000;border:1px solid #6fc3df;margin-top:2px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%;height:25px}.fl:after{clear:both;content:"";display:block;visibility:hidden;height:0}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-findInput>.controls>.matchCount{margin-left:2px;float:left;overflow:hidden;max-width:30px;min-width:20px;text-align:center;border-radius:5px;padding:0 4px;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.vs .monaco-findInput>.controls>.matchCount{background:#ddd}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.vs-dark .monaco-findInput>.controls>.matchCount{background:#555}.monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:hsla(0,0%,100%,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:hsla(0,0%,100%,.44)}99%{background:transparent}}.vs .custom-checkbox.monaco-case-sensitive{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") 50% no-repeat}.hc-black .custom-checkbox.monaco-case-sensitive,.hc-black .custom-checkbox.monaco-case-sensitive:hover,.vs-dark .custom-checkbox.monaco-case-sensitive{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") 50% no-repeat}.vs .custom-checkbox.monaco-whole-word{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") 50% no-repeat}.hc-black .custom-checkbox.monaco-whole-word,.hc-black .custom-checkbox.monaco-whole-word:hover,.vs-dark .custom-checkbox.monaco-whole-word{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") 50% no-repeat}.vs .custom-checkbox.monaco-regex{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0Y2RjZGNiIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjNDI0MjQyIj48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") 50% no-repeat}.hc-black .custom-checkbox.monaco-regex,.hc-black .custom-checkbox.monaco-regex:hover,.vs-dark .custom-checkbox.monaco-regex{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iIzJkMmQzMCIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") 50% no-repeat}.monaco-icon-label{display:inline-block;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:0;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:inline-block;-webkit-font-smoothing:antialiased;vertical-align:top}.monaco-icon-label>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label>.label-description.empty{margin-left:0}.monaco-icon-label.italic>.label-description,.monaco-icon-label.italic>.label-name{font-style:italic}.monaco-inputbox{position:relative;display:block;padding:0;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;line-height:auto!important;font-size:inherit}.monaco-inputbox>.wrapper>.input,.monaco-inputbox>.wrapper>.mirror{padding:4px}.monaco-inputbox>.wrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.wrapper>.input{display:inline-block;-o-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}.monaco-inputbox>.wrapper>textarea.input{display:block;overflow:hidden}.monaco-inputbox>.wrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;min-height:26px;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;min-height:34px;margin-top:-1px}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .icon{background-repeat:no-repeat;width:16px;height:16px}.monaco-inputbox.idle{border:1px solid transparent}.monaco-inputbox.info{border:1px solid #009ccc}.monaco-inputbox-container .monaco-inputbox-message.info{background:#d6ecf2;border:1px solid #009ccc}.monaco-inputbox.warning{border:1px solid #f2cb1d}.monaco-inputbox-container .monaco-inputbox-message.warning{background:#f6f5d2;border:1px solid #f2cb1d}.monaco-inputbox.error{border:1px solid #e51400}.monaco-inputbox-container .monaco-inputbox-message.error{background:#f2dede;border:1px solid #e51400}.vs-dark .monaco-inputbox.info{border-color:#5af}.vs-dark .monaco-inputbox-container .monaco-inputbox-message.info{background-color:#063b49;border-color:#5af}.vs-dark .monaco-inputbox.warning{border-color:#b89500}.vs-dark .monaco-inputbox-container .monaco-inputbox-message.warning{background-color:#352a05;border-color:#b89500}.vs-dark .monaco-inputbox.error{border-color:#be1100}.vs-dark .monaco-inputbox-container .monaco-inputbox-message.error{background-color:#5a1d1d;border-color:#be1100}.hc-black .monaco-inputbox.idle{border:1px solid #6fc3df}.hc-black .monaco-inputbox-container .monaco-inputbox-message.info{background-color:#000;border-color:#6fc3df}.hc-black .monaco-inputbox.warning{border-color:#b89500}.hc-black .monaco-inputbox-container .monaco-inputbox-message.warning{background-color:#000;border-color:#b89500}.hc-black .monaco-inputbox.error{border-color:#be1100}.hc-black .monaco-inputbox-container .monaco-inputbox-message.error{background-color:#000;border-color:#be1100}.monaco-left-right-widget>.left{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.monaco-left-right-widget>.right{float:right}.monaco-list{height:100%;width:100%;white-space:nowrap;-webkit-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%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list-row{position:absolute;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;cursor:pointer;overflow:hidden;width:100%;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list-row:hover{background-color:#f0f0f0}.vs-dark .monaco-list-row:hover{background-color:hsla(0,0%,100%,.08)}.hc-black .monaco-list-row:hover{outline:1px dashed #f38518;outline-offset:-1px;background:transparent}.monaco-list.element-focused{outline:0!important}.monaco-list-row.focused{background-color:#dcebfc}.vs-dark .monaco-list-row.focused{background-color:#073655}.hc-black .monaco-list-row.focused{outline:1px dotted #f38518;outline-offset:-1px;background:transparent}.vs .monaco-list-row.selected{background-color:#4fa7ff;color:#fff}.vs-dark .monaco-list-row.selected{background-color:#0e639c;color:#fff}.hc-black .monaco-list-row.selected{outline:1px solid #f38518;color:#fff}.vs .monaco-list-row.selected.focused{background-color:#39f;color:#fff}.vs-dark .monaco-list-row.selected.focused{background-color:#094771;color:#fff}.monaco-menu .monaco-action-bar.vertical{margin-left:0}.monaco-menu .monaco-action-bar.vertical .actions-container{display:block}.monaco-menu .monaco-action-bar.vertical .action-item{padding:0;-webkit-transform:none;transform:none;display:-ms-flexbox;display:flex}.monaco-menu .monaco-action-bar.vertical .action-item.active{-webkit-transform:none;transform:none}.monaco-menu .monaco-action-bar.vertical .action-item.focused{background-color:#e4e4e4}.monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled){background-color:#eee}.monaco-menu .monaco-action-bar.vertical .action-label{-ms-flex:1 1 auto;flex:1 1 auto;text-decoration:none;padding:.8em 1em;line-height:1.1em;background:none}.monaco-menu .monaco-action-bar.vertical .keybinding{display:inline-block;-ms-flex:2 1 auto;flex:2 1 auto;opacity:.7;padding:.8em 1em;line-height:1.1em;font-size:12px;text-align:right}.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding{opacity:.4}.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator){display:inline-block;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;margin:0}.monaco-menu .monaco-action-bar.vertical .action-label.separator{padding:.5em 0 0;margin-bottom:.5em;width:100%}.monaco-menu .monaco-action-bar.vertical .action-label.separator.text{padding:.7em 1em .1em;font-weight:700;opacity:1}.monaco-menu .monaco-action-bar.vertical .action-label:hover{color:inherit}.context-view.monaco-menu-container{font-family:Segoe WPC,Segoe UI,\.SFNSDisplay-Light,SFUIText-Light,HelveticaNeue-Light,sans-serif;outline:0;box-shadow:0 2px 8px #a8a8a8;border:none;color:#646465;background-color:#fff;-webkit-animation:fadeIn 83ms linear;animation:fadeIn 83ms linear}.context-view.monaco-menu-container :focus{outline:0}.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item.focused{background-color:#4b4c4d}.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled){background-color:#3a3a3a}.vs-dark .context-view.monaco-menu-container{box-shadow:0 2px 8px #000;color:#bbb;background-color:#2d2f31}.hc-black .context-view.monaco-menu-container{border:2px solid #6fc3df;color:#fff;background-color:#0c141f;box-shadow:none}.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused{background:none;border:1px dotted #f38518}.hc-black .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled){background:none;border:1px dashed #f38518}.progress-container{width:100%;height:5px}.progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none;background-color:#0e70c0}.progress-container.active .progress-bit{display:inherit}.progress-container.discrete .progress-bit{left:0;transition:width .1s linear;-webkit-transition:width .1s linear;-o-transition:width .1s linear;-moz-transition:width .1s linear;-ms-transition:width .1s linear}.progress-container.discrete.done .progress-bit{width:100%}.progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;animation-timing-function:linear;-ms-animation-name:progress;-ms-animation-duration:4s;-ms-animation-iteration-count:infinite;-ms-animation-timing-function:linear;-webkit-animation-name:progress;-webkit-animation-duration:4s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear;-moz-animation-name:progress;-moz-animation-duration:4s;-moz-animation-iteration-count:infinite;-moz-animation-timing-function:linear}.progress-container.infinite.done .progress-bit{transition:opacity .2s linear;-webkit-transition:opacity .2s linear;-o-transition:opacity .2s linear;-moz-transition:opacity .2s linear;-ms-transition:opacity .2s linear}@keyframes progress{0%{left:0;width:2%}50%{left:50%;width:5%}to{left:98%;width:2%}}@-webkit-keyframes progress{0%{left:0;width:2%}50%{left:50%;width:5%}to{left:98%;width:2%}}.monaco-sash{position:absolute;z-index:6;touch-action:none}.monaco-sash.vertical{cursor:ew-resize;height:100%;top:0}.monaco-sash.horizontal{cursor:ns-resize;width:100%;left:0}.monaco-sash.disabled{cursor:default!important}.vertical-cursor-container{cursor:ew-resize}.horizontal-cursor-container{cursor:ns-resize}.monaco-sash.mac.vertical,.vertical-cursor-container-mac{cursor:col-resize}.horizontal-cursor-container-mac,.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-scrollable-element>.scrollbar>.up-arrow{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}.monaco-scrollable-element>.scrollbar>.left-arrow{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}.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=")}.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=")}.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+")}.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+")}.monaco-scrollable-element>.visible{opacity:1;background:transparent;-webkit-transition:opacity .1s linear;transition:opacity .1s linear}.monaco-scrollable-element>.invisible{opacity:0}.monaco-scrollable-element>.invisible.fade{-webkit-transition:opacity .8s linear;transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:inset 0 6px 6px -6px #ddd}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:inset 6px 0 6px -6px #ddd}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:inset 6px 6px 6px -6px #ddd}.vs .monaco-scrollable-element>.scrollbar>.slider{background:hsla(0,0%,39%,.4)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider{background:hsla(0,0%,47%,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider{background:rgba(111,195,223,.6)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:hsla(0,0%,39%,.7)}.hc-black .monaco-scrollable-element>.scrollbar>.slider:hover{background:rgba(111,195,223,.8)}.monaco-scrollable-element>.scrollbar>.slider.active{background:rgba(0,0,0,.6)}.vs-dark .monaco-scrollable-element>.scrollbar>.slider.active{background:hsla(0,0%,75%,.4)}.hc-black .monaco-scrollable-element>.scrollbar>.slider.active{background:#6fc3df}.monaco-workbench .select-box{width:100%;height:20px}.vs .monaco-workbench .select-box{background-color:#fff;border-color:#cecece}.vs-dark .monaco-workbench .select-box{background-color:#3c3c3c;border-color:#3c3c3c;color:#ccc}.hc-black .monaco-workbench .select-box{background-color:#3c3c3c;border-color:#3c3c3c;color:#fff}.quick-open-widget{position:absolute;width:600px;z-index:9;padding-bottom:6px;left:50%;margin-left:-300px}.quick-open-widget .progress-container{position:absolute;left:0;top:38px;z-index:1;height:2px}.quick-open-widget .progress-container .progress-bit{height:2px}.quick-open-widget .quick-open-input{width:588px;border:none;margin:6px}.quick-open-widget .quick-open-input .monaco-inputbox{width:100%;height:25px}.quick-open-widget .quick-open-tree{line-height:1.8em}.quick-open-widget.content-changing .quick-open-tree .monaco-scrollable-element .slider{display:none}.quick-open-widget .quick-open-tree .quick-open-entry{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column}.quick-open-widget .quick-open-tree .quick-open-entry>.row{display:flex;align-items:center}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon{overflow:hidden;width:16px;height:16px;margin-right:4px;display:inline-block;vertical-align:middle;flex-shrink:0}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-help-entry-label{float:left;min-width:16px;text-align:center}.quick-open-widget .quick-open-tree .quick-open-entry .monaco-highlighted-label span{opacity:1}.quick-open-widget .quick-open-tree .quick-open-entry-meta{opacity:.7;line-height:normal}.quick-open-widget .quick-open-tree .quick-open-entry-description{opacity:.7;margin-left:.5em;font-size:.9em;overflow:hidden;flex:1;text-overflow:ellipsis}.quick-open-widget .quick-open-tree .results-group{float:right;margin-right:18px}.vs-dark .quick-open-widget .quick-open-tree .results-group,.vs .quick-open-widget .quick-open-tree .results-group{opacity:.6}.quick-open-widget .quick-open-tree .content.has-actions .results-group{margin-right:34px}.quick-open-widget .quick-open-tree .results-group-separator{border-top-width:1px;border-top-style:solid;box-sizing:border-box;margin-left:-11px;padding-left:11px}.quick-open-widget{background-color:#f6f6f6;box-shadow:0 5px 8px #a8a8a8}.vs-dark .quick-open-widget{background-color:#252526;box-shadow:0 5px 8px #000}.vs-dark .quick-open-widget input{background-color:#3c3c3c;color:inherit}.hc-black .quick-open-widget input{background-color:#000;color:inherit}.monaco .quick-open-widget{background-color:#f9f9f9}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-help-entry-label{color:#007acc}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-help-entry-label{color:#0097fb}.quick-open-widget .quick-open-tree .results-group{color:#007acc}.vs-dark .quick-open-widget .quick-open-tree .results-group{color:#0097fb}.hc-black .quick-open-widget .quick-open-tree .results-group{color:#fff}.quick-open-widget .quick-open-tree .results-group-separator{border-top-color:#cccedb}.vs-dark .quick-open-widget .quick-open-tree .results-group-separator{border-top-color:#3f3f46}.hc-black .quick-open-widget .quick-open-tree .results-group-separator{border-top-color:#fff}.quick-open-widget .quick-open-tree .monaco-highlighted-label .highlight{color:#007acc;font-weight:700}.vs-dark .quick-open-widget .quick-open-tree .monaco-highlighted-label .highlight{color:#0097fb}.quick-open-widget .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected,.quick-open-widget .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.focused{background:#dcebfc;color:inherit}.hc-black .quick-open-widget{border:2px solid #6fc3df;background-color:#0c141f;color:#fff;box-shadow:none}.hc-black .quick-open-widget .monaco-tree.focused .monaco-tree-row.focused:not(.highlighted)>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree.focused .monaco-tree-row.selected:not(.highlighted)>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree .monaco-tree-row.drop-target>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree .monaco-tree-row.focused:not(.highlighted)>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree .monaco-tree-row.selected:not(.highlighted)>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused)>.content.actions>.primary-action-bar,.hc-black .quick-open-widget .monaco-tree .monaco-tree-row>.content.actions.more>.primary-action-bar{background-color:#0c141f}.monaco-tree{height:100%;width:100%;white-space:nowrap;-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;-o-user-select:none;user-select:none;position:relative}.monaco-tree>.monaco-scrollable-element{height:100%}.monaco-tree>.monaco-scrollable-element>.monaco-tree-wrapper{height:100%;width:100%;position:relative}.monaco-tree .monaco-tree-rows{position:absolute;width:100%;height:100%}.monaco-tree .monaco-tree-rows>.monaco-tree-row{-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;cursor:pointer;overflow:hidden;width:100%;touch-action:none}.monaco-tree .monaco-tree-rows>.monaco-tree-row>.content{position:relative;height:100%}.monaco-tree-drag-image{display:inline-block;padding:1px 7px;color:#fff;background-color:#4a4a4a;border-radius:10px;font-size:12px;position:absolute}.monaco-tree .monaco-tree-rows>.monaco-tree-row.scrolling{display:none}.monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.has-children>.content:before{content:" ";position:absolute;display:block;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==") 50% 50% no-repeat;width:16px;height:100%;top:0;left:-16px}.monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.expanded>.content:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==")}.monaco-tree .monaco-tree-rows>.monaco-tree-row.has-children.loading>.content:before{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg==")}.monaco-tree.highlighted .monaco-tree-rows>.monaco-tree-row:not(.highlighted){opacity:.3}.monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.focused:not(.highlighted){background-color:#dcebfc}.monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){background-color:#4fa7ff;color:#fff}.monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.focused.selected:not(.highlighted){background-color:#39f;color:#fff}.monaco-tree .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){background-color:#cccedb}.monaco-tree .monaco-tree-rows>.monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused){background-color:#f0f0f0}.monaco-tree .monaco-tree-rows>.monaco-tree-row.drop-target,.monaco-tree .monaco-tree-wrapper.drop-target{background-color:#ddecff!important;color:inherit!important}.vs-dark .monaco-tree.focused .monaco-tree-row.focused:not(.highlighted){background-color:#073655}.vs-dark .monaco-tree.focused .monaco-tree-row.selected:not(.highlighted){background-color:#0e639c;color:#fff}.vs-dark .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.focused.selected:not(.highlighted){background-color:#094771;color:#fff}.vs-dark .monaco-tree .monaco-tree-row.selected:not(.highlighted){background-color:#3f3f46}.vs-dark .monaco-tree .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused){background-color:#2a2d2e}.vs-dark .monaco-tree-wrapper.drop-target,.vs-dark .monaco-tree .monaco-tree-row.drop-target{background-color:#383b3d!important;color:inherit!important}.vs-dark .monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.has-children>.content:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==")}.vs-dark .monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.expanded>.content:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==")}.vs-dark .monaco-tree .monaco-tree-rows>.monaco-tree-row.has-children.loading>.content:before{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo=")}.hc-black .monaco-tree .monaco-tree-rows>.monaco-tree-row{background:none!important;border:1px solid transparent}.hc-black .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.focused:not(.highlighted){border:1px dotted #f38518}.hc-black .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted),.hc-black .monaco-tree .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){border:1px solid #f38518}.hc-black .monaco-tree .monaco-tree-rows>.monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused){border:1px dashed #f38518}.hc-black .monaco-tree .monaco-tree-rows>.monaco-tree-row.drop-target,.hc-black .monaco-tree .monaco-tree-wrapper.drop-target{background:none!important;border:1px dashed #f38518}.hc-black .monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.has-children>.content:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==")}.hc-black .monaco-tree .monaco-tree-rows.show-twisties>.monaco-tree-row.expanded>.content:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=")}.hc-black .monaco-tree .monaco-tree-rows>.monaco-tree-row.has-children.loading>.content:before{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K")}.monaco-tree-action.collapse-all{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiMwMDUzOUMiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") 50% no-repeat}.hc-black .monaco-tree-action.collapse-all,.vs-dark .monaco-tree-action.collapse-all{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiM3NUJFRkYiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") 50% no-repeat}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,Ubuntu,Droid Sans,sans-serif}.monaco-menu .monaco-action-bar.vertical .action-item [tabindex="0"]:focus{color:#00bfff}.monaco-editor-hover p{margin:0}.monaco-editor .view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor.vs .view-overlays .current-line{border:2px solid #eee}.monaco-editor.vs-dark .view-overlays .current-line{border:2px solid #282828}.monaco-editor.hc-black .view-overlays .current-line{border:2px solid #f38518}.monaco-editor .margin-view-overlays .current-line-margin{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor.vs .margin-view-overlays .current-line-margin{border:2px solid #eee}.monaco-editor.vs-dark .margin-view-overlays .current-line-margin{border:2px solid #282828}.monaco-editor.hc-black .margin-view-overlays .current-line-margin{border:2px solid #f38518}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor.vs .glyph-margin{background:#fff}.monaco-editor.vs-dark .glyph-margin{background:#1e1e1e}.monaco-editor.hc-black .glyph-margin{background:#000}.monaco-editor .margin-view-overlays .cgmr{position:absolute}.monaco-editor .lines-content .cigr{position:absolute;background:#d3d3d3;width:1px}.monaco-editor.vs-dark .lines-content .cigr{background:#404040}.monaco-editor.hc-black .lines-content .cigr{background:#fff}.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%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-workbench .monaco-editor .margin-view-overlays .line-numbers{cursor:-webkit-image-set(url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjE7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcuMSwxMy44IDQuNSwxOS4xIDcuNywyMC4xIDEwLjMsMTQuOSAxNC41LDE4Ii8+PC9zdmc+") 1x,url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzMCA0MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNDI7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQuMywyNy42IDksMzguMSAxNS40LDQwLjIgMjAuNiwyOS43IDI5LDM2Ii8+PC9zdmc+Cg==") 2x) 30 0,default}.monaco-workbench .monaco-editor.mac .margin-view-overlays .line-numbers{cursor:-webkit-image-set(url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDEyIDE4Ij48c3R5bGU+LnN0MHtmaWxsOiNmZmZ9PC9zdHlsZT48dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBkPSJNNC4zIDE2LjVsMS42LTQuNkgxLjFMMTEuNSAxLjJ2MTQuNEw4LjcgMTNsLTEuNiA0LjV6Ii8+PHBhdGggY2xhc3M9InN0MCIgZD0iTTExIDE0LjVsLTIuNS0yLjNMNyAxNi43IDUgMTZsMS42LTQuNWgtNGw4LjUtOU0wIDEyLjVoNS4ybC0xLjUgNC4xTDcuNSAxOCA5IDE0LjJsMi45IDIuM1YwTDAgMTIuNXoiLz48L3N2Zz4=") 1x,url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDI0IDM2LjEiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5mbGlwcGVkLWN1cnNvci1tYWMtMng8L3RpdGxlPjxwb2x5Z29uIHBvaW50cz0iOC42IDMzLjEgMTEuOCAyMy45IDIuMiAyMy45IDIzIDIuNSAyMyAzMS4zIDE3LjQgMjYuMSAxNC4yIDM1LjEgOC42IDMzLjEiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTIyLDI5LjFsLTUtNC42LTMuMDYyLDguOTM4LTQuMDYyLTEuNUwxMywyM0g1TDIyLDVNMCwyNUgxMC40bC0zLDguM0wxNSwzNi4xbDMuMTI1LTcuNjYyTDI0LDMzVjBaIi8+PC9zdmc+") 2x) 24 3,default}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor.vs .line-numbers{color:#2b91af}.monaco-editor.vs-dark .line-numbers{color:#5a5a5a}.monaco-editor.hc-black .line-numbers{color:#fff}.monaco-editor .lines-content,.monaco-editor .view-line,.monaco-editor .view-lines{-webkit-user-select:text;-ms-user-select:text;-moz-user-select:text;-o-user-select:text;user-select:text}.monaco-editor.ie .lines-content,.monaco-editor.ie .view-line,.monaco-editor.ie .view-lines{-ms-user-select:none;user-select:none}.monaco-editor .view-lines{cursor:text;white-space:nowrap}.monaco-editor.hc-black.mac .view-lines,.monaco-editor.vs-dark.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}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;width:1px;top:0;background:#d3d3d3}.monaco-editor.vs-dark .view-ruler{background:#5a5a5a}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:inset 0 6px 6px -6px #ddd}.monaco-editor.vs-dark .scroll-decoration{box-shadow:inset 0 6px 6px -6px #000}.monaco-editor .lines-content .cslr{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.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.vs .view-overlays .selected-text{background:#e5ebf1}.monaco-editor.vs .view-overlays.focused .selected-text{background:#add6ff}.monaco-editor.vs-dark .view-overlays .selected-text{background:#3a3d41}.monaco-editor.vs-dark .view-overlays.focused .selected-text{background:#264f78}.monaco-editor.hc-black .view-overlays .selected-text{background:none}.monaco-editor.hc-black .view-overlays.focused .selected-text{background:#f3f518}.monaco-editor.edge.hc-black .view-overlays.focused .selected-text,.monaco-editor.ie.hc-black .view-overlays.focused .selected-text{background:none;border:2px solid #f38518}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;cursor:text}.monaco-editor .cursors-layer>.cursor.secondary{opacity:.6}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important;box-sizing:border-box}.monaco-editor.vs .cursor{background:#000;border-color:#000;color:#fff}.monaco-editor.vs-dark .cursor{background:#aeafad;border-color:#aeafad;color:#51504f}.monaco-editor.hc-black .cursor{background:#fff;border-color:#fff;color:#000}.monaco-editor.hc-black .cursors-layer.has-selection .cursor{border-left:1px solid #000;border-right:1px solid #000}@keyframes monaco-cursor-blink{50%{opacity:0}to{opacity:1}}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-blink{animation:monaco-cursor-blink 1s step-start 0s infinite}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s infinite alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s infinite alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s infinite alternate}.monaco-diff-editor .diffOverview{z-index:2}.monaco-diff-editor.vs .diffOverview{background:#f9f7f7}.monaco-diff-editor.vs-dark .diffOverview{background:#1e1e1e}.monaco-diff-editor.hc-black .diffOverview{background:#000}.monaco-diff-editor .diffViewport{box-shadow:inset 0 0 1px 0 #b9b9b9;background:hsla(0,0%,58%,.19)}.monaco-diff-editor.vs-dark{background:#1e1e1e}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar{background:transparent}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:3}.modified-in-monaco-diff-editor .slider.active{background:hsla(0,0%,67%,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active{background:none}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px #ddd}.monaco-diff-editor.side-by-side.vs-dark .editor.modified{box-shadow:-6px 0 5px -5px #000}.monaco-editor .char-delete,.monaco-editor .line-delete{background:rgba(255,0,0,.2)}.monaco-editor.hc-black .char-delete,.monaco-editor.hc-black .line-delete{background:none;border:1px dashed #ff008f}.monaco-editor .char-insert,.monaco-editor .line-insert{background:rgba(155,185,85,.2)}.monaco-editor .delete-sign,.monaco-editor .insert-sign{background-size:60%;opacity:.7;background-repeat:no-repeat;background-position:50% 50%}.monaco-editor.hc-black .delete-sign,.monaco-editor.hc-black .insert-sign{opacity:1}.monaco-editor .insert-sign{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4=")}.monaco-editor .delete-sign{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjNDI0MjQyIi8+PC9zdmc+")}.monaco-editor.hc-black .insert-sign,.monaco-editor.vs-dark .insert-sign{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjQzVDNUM1Ii8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiNDNUM1QzUiLz48L3N2Zz4=")}.monaco-editor.hc-black .delete-sign,.monaco-editor.vs-dark .delete-sign{background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjQzVDNUM1Ii8+PC9zdmc+")}.monaco-editor .inline-deleted-margin-view-zone{background:rgba(255,0,0,.2);text-align:right}.monaco-editor .inline-added-margin-view-zone{background:rgba(155,185,85,.2);text-align:right}.monaco-editor.hc-black .char-insert,.monaco-editor.hc-black .line-insert{background:none;border:1px dashed #33ff2e}.monaco-editor .diagonal-fill{background:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII=")}.monaco-editor.vs-dark .diagonal-fill{opacity:.2}.monaco-editor.hc-black .diagonal-fill{background:none}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-diff-editor.hc-black{background:#000}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;-ms-high-contrast-adjust:none;-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}.monaco-editor .inputarea{width:1px;height:1px;min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden}.monaco-editor.ff .inputarea,.monaco-editor.ie .inputarea{width:0;height:0}.monaco-editor.ime-input .inputarea{z-index:3}.monaco-editor,.monaco-editor .inputarea{color:#333;background:#fffffe}.monaco-editor-background{background:#fffffe}.monaco-editor.ime-input .inputarea{background:hsla(0,0%,100%,.85)}.monaco-editor.vs-dark,.monaco-editor.vs-dark .inputarea,.monaco-editor.vs-dark .zone-widget .monaco-editor{color:#bbb;background:#1e1e1e}.monaco-editor.vs-dark .monaco-editor-background{background:#1e1e1e}.monaco-editor.vs-dark.ime-input .inputarea{background:rgba(0,0,0,.65)}.monaco-editor.hc-black,.monaco-editor.hc-black .inputarea,.monaco-editor.hc-black .zone-widget .monaco-editor{color:#fff;background:#000}.monaco-editor.hc-black .monaco-editor-background{background:#000}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor.vs .rangeHighlight{background:rgba(253,255,0,.2)}.monaco-editor.vs-dark .rangeHighlight{background:hsla(0,0%,100%,.044)}.monaco-editor.hc-black .rangeHighlight{border:1px dotted #f38518}.monaco-editor.vs-dark .redsquiggly,.monaco-editor.vs .redsquiggly{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDMiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDYgMyIgaGVpZ2h0PSIzIiB3aWR0aD0iNiI+PGcgZmlsbD0iI0YwMCI+PHBvbHlnb24gcG9pbnRzPSI1LjUsMCAyLjUsMyAxLjEsMyA0LjEsMCIvPjxwb2x5Z29uIHBvaW50cz0iNCwwIDYsMiA2LDAuNiA1LjQsMCIvPjxwb2x5Z29uIHBvaW50cz0iMCwyIDEsMyAyLjQsMyAwLDAuNiIvPjwvZz48L3N2Zz4=") repeat-x 0 100%}.monaco-editor.hc-black .redsquiggly{border-bottom:4px double #e47777;opacity:.8}.monaco-editor.vs-dark .greensquiggly,.monaco-editor.vs .greensquiggly{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMyIgd2lkdGg9IjYiPjxnIGZpbGw9IiMwODAiPjxwb2x5Z29uIHBvaW50cz0iNS41LDAgMi41LDMgMS4xLDMgNC4xLDAiLz48cG9seWdvbiBwb2ludHM9IjQsMCA2LDIgNiwwLjYgNS40LDAiLz48cG9seWdvbiBwb2ludHM9IjAsMiAxLDMgMi40LDMgMCwwLjYiLz48L2c+PC9zdmc+") repeat-x 0 100%}.monaco-editor.hc-black .greensquiggly{border-bottom:4px double #71b771;opacity:.8}.monaco-editor .vs-whitespace{display:inline-block}.monaco-editor.hc-black .view-line{mix-blend-mode:difference}.monaco-editor.vs .vs-whitespace{color:rgba(51,51,51,.2)}.monaco-editor.hc-black .vs-whitespace,.monaco-editor.vs-dark .vs-whitespace{color:hsla(90,4%,89%,.16)}.monaco-editor .bracket-match{box-sizing:border-box;background-color:rgba(0,100,0,.1)}.monaco-editor.vs .bracket-match{border:1px solid #b9b9b9}.monaco-editor.vs-dark .bracket-match{border:1px solid #888}.monaco-editor.hc-black .bracket-match{border:1px solid #fff}.monaco-menu .monaco-action-bar.vertical .action-label.hover{background-color:#eee}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;font-size:90%;color:#999;vertical-align:sub}.monaco-editor .codelens-decoration>a,.monaco-editor .codelens-decoration>span{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{text-decoration:underline;cursor:pointer;color:blue!important}.monaco-editor.vs-dark .codelens-decoration>a:hover{color:#4e94ce!important}.monaco-editor .codelens-decoration.invisible-cl{opacity:0}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}@-webkit-keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{-webkit-animation:fadein .5s linear;animation:fadein .5s linear}.monaco-editor .findOptionsWidget{background-color:#efeff2;box-shadow:0 2px 8px #a8a8a8}.monaco-editor.vs-dark .findOptionsWidget{background-color:#2d2d30;box-shadow:0 2px 8px #000}.monaco-editor.hc-black .findOptionsWidget{border:2px solid #6fc3df;background:#0c141f;box-shadow:none}.monaco-checkbox .label{width:12px;height:12px;border:1px solid #000;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}.monaco-checkbox .checkbox:checked+.label{background-color:#000}.monaco-editor .find-widget{position:absolute;z-index:3;top:-44px;height:34px;overflow:hidden;line-height:19px;-webkit-transition:top .2s linear;transition:top .2s linear;padding:0 4px}.monaco-editor .find-widget.replaceToggled{top:-74px;height:64px}.monaco-editor .find-widget.replaceToggled>.replace-part{display:inline-block}.monaco-editor .find-widget.replaceToggled.visible,.monaco-editor .find-widget.visible{top:0}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput,.monaco-editor .find-widget .replace-input{background-color:#fff}.monaco-editor .find-widget .replace-input .input{font-size:13px}.monaco-editor .find-widget.visible.noanimation{-webkit-transition:none;transition:none}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:4px 0 0 17px;font-size:12px}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{height:25px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.wrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.wrapper>.input{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget .monaco-findInput{display:inline-block;vertical-align:middle}.monaco-editor .find-widget.no-results .matchesCount{color:#a1260d}.monaco-editor.hc-black .find-widget.no-results .matchesCount,.monaco-editor.vs-dark .find-widget.no-results .matchesCount{color:#f48771}.monaco-editor .find-widget .matchesCount{display:inline-block;margin:0 1px 0 3px;padding:2px 2px 0;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:20px;height:20px;display:inline-block;vertical-align:middle;margin-left:3px;background-position:50%;background-repeat:no-repeat;cursor:pointer}.monaco-editor .find-widget .button:not(.disabled):hover{background-color:#ddd}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:0;width:18px;height:100%;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .previous{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cG9seWdvbiBmaWxsPSIjNDI0MjQyIiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+DQo8L3N2Zz4NCg==")}.monaco-editor .find-widget .next{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+DQo8L3N2Zz4NCg==")}.monaco-editor .find-widget .disabled{opacity:.3;cursor:default}.monaco-editor .find-widget .monaco-checkbox{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:0 0;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwMzIuMzYyMikiPgogIDxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDYuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgogIDxyZWN0IHdpZHRoPSI2IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDAuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTAzNy4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L2c+Cjwvc3ZnPg==");width:20px;height:20px;border:none}.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled+.label{opacity:.3;cursor:default}.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled)+.label{cursor:pointer}.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:hsla(0,0%,39%,.2)}.monaco-editor .find-widget .close-fw{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==")}.monaco-editor .find-widget .expand{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=")}.monaco-editor .find-widget .collapse{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==")}.monaco-editor .find-widget .replace{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPGc+DQoJCTxwYXRoIGZpbGw9IiM0MjQyNDIiIGQ9Ik0xMSwzVjFoLTF2NXYxaDFoMmgxVjRWM0gxMXogTTEzLDZoLTJWNGgyVjZ6Ii8+DQoJCTxwYXRoIGZpbGw9IiM0MjQyNDIiIGQ9Ik0yLDE1aDdWOUgyVjE1eiBNNCwxMGgzdjFINXYyaDJ2MUg0VjEweiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJjb2xvcl94NUZfaW1wb3J0YW5jZSI+DQoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkNCgkJQzQuNjUxLDIsMy45NzksMi42NzMsMy45NzksMy41eiIvPg0KPC9nPg0KPC9zdmc+DQo=")}.monaco-editor .find-widget .replace-all{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcNCgkJSDEzeiBNMTMsMlYxaC0xdjVoM1YySDEzeiBNMTQsNWgtMVYzaDFWNXogTTExLDJ2NEg4VjRoMXYxaDFWNEg5VjNIOFYySDExeiIvPg0KPC9nPg0KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPg0KCTxwYXRoIGZpbGw9IiMwMDUzOUMiIGQ9Ik0xLjk3OSwzLjVMMiw2TDEsNXYxLjVMMi41LDhMNCw2LjVWNUwzLDZMMi45NzksMy41YzAtMC4yNzUsMC4yMjUtMC41LDAuNS0wLjVIN1YySDMuNDc5DQoJCUMyLjY1MSwyLDEuOTc5LDIuNjczLDEuOTc5LDMuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K")}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.replace-input{display:inline-block;vertical-align:middle}.monaco-editor .find-widget>.replace-part>.replace-input>.monaco-inputbox{width:100%}.monaco-editor .find-widget.reduced-find-widget .matchesCount,.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox{display:none}.monaco-editor .find-widget.narrow-find-widget>.find-part .monaco-findInput,.monaco-editor .find-widget.narrow-find-widget>.replace-part .replace-input{width:171px!important}.monaco-editor .find-widget.narrow-find-widget>.find-part .monaco-inputbox>.wrapper>.input{width:105px!important}.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.previous,.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,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-inputbox>.wrapper>.input,.monaco-editor .find-widget.collapsed-find-widget>.replace-part .replace-input{width:71px!important}.monaco-editor .findMatch{background-color:rgba(234,92,0,.3);-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 .currentFindMatch{background-color:#a8ac94}.monaco-editor .findScope{background-color:hsla(0,0%,71%,.3)}.monaco-editor .find-widget{background-color:#efeff2;box-shadow:0 2px 8px #a8a8a8}.monaco-editor.vs-dark .find-widget{background-color:#2d2d30;box-shadow:0 2px 8px #000}.monaco-editor.hc-black .find-widget .previous,.monaco-editor.vs-dark .find-widget .previous{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cG9seWdvbiBmaWxsPSIjQzVDNUM1IiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+DQo8L3N2Zz4NCg==")}.monaco-editor.hc-black .find-widget .next,.monaco-editor.vs-dark .find-widget .next{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+DQo8L3N2Zz4NCg==")}.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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+DQo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMyLjM2MjIpIj4NCiAgPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0Ni4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iNiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDQwLjM2MjIiIHN0eWxlPSJmaWxsOiNDNUM1QzU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQogIDxyZWN0IHdpZHRoPSIxMiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDM3LjM2MjIiIHN0eWxlPSJmaWxsOiNDNUM1QzU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQo8L2c+DQo8L3N2Zz4=")}.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before+.label{background-color:#2f3334}.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:checked+.label{background-color:hsla(0,0%,59%,.3)}.monaco-editor.hc-black .find-widget .close-fw,.monaco-editor.vs-dark .find-widget .close-fw{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==")}.monaco-editor.hc-black .find-widget .replace,.monaco-editor.vs-dark .find-widget .replace{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPGc+DQoJCTxwYXRoIGZpbGw9IiNDNUM1QzUiIGQ9Ik0xMSwzVjFoLTF2NXYxaDFoMmgxVjRWM0gxMXogTTEzLDZoLTJWNGgyVjZ6Ii8+DQoJCTxwYXRoIGZpbGw9IiNDNUM1QzUiIGQ9Ik0yLDE1aDdWOUgyVjE1eiBNNCwxMGgzdjFINXYyaDJ2MUg0VjEweiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJjb2xvcl94NUZfaW1wb3J0YW5jZSI+DQoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkNCgkJQzQuNjUxLDIsMy45NzksMi42NzMsMy45NzksMy41eiIvPg0KPC9nPg0KPC9zdmc+DQo=")}.monaco-editor.hc-black .find-widget .replace-all,.monaco-editor.vs-dark .find-widget .replace-all{background-image:url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcNCgkJSDEzeiBNMTMsMlYxaC0xdjVoM1YySDEzeiBNMTQsNWgtMVYzaDFWNXogTTExLDJ2NEg4VjRoMXYxaDFWNEg5VjNIOFYySDExeiIvPg0KPC9nPg0KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPg0KCTxwYXRoIGZpbGw9IiM3NUJFRkYiIGQ9Ik0xLjk3OSwzLjVMMiw2TDEsNXYxLjVMMi41LDhMNCw2LjVWNUwzLDZMMi45NzksMy41YzAtMC4yNzUsMC4yMjUtMC41LDAuNS0wLjVIN1YySDMuNDc5DQoJCUMyLjY1MSwyLDEuOTc5LDIuNjczLDEuOTc5LDMuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K")}.monaco-editor.hc-black .find-widget .expand,.monaco-editor.vs-dark .find-widget .expand{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=")}.monaco-editor.hc-black .find-widget .collapse,.monaco-editor.vs-dark .find-widget .collapse{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==")}.monaco-editor.hc-black .find-widget .button:not(.disabled):hover,.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover{background-color:#2f3334}.monaco-editor.vs-dark .currentFindMatch{background-color:#515c6a}.monaco-editor.vs-dark .findScope{background-color:rgba(58,61,65,.4)}.monaco-editor.vs-dark .find-widget .monaco-findInput,.monaco-editor.vs-dark .find-widget .replace-input{background-color:#3c3c3c}.monaco-editor.hc-black .find-widget{border:2px solid #6fc3df;background:#0c141f;box-shadow:none}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked+.label{background-color:hsla(0,0%,59%,.3)}.monaco-editor.hc-black .findMatch{background:none;border:1px dotted #f38518;box-sizing:border-box}.monaco-editor.hc-black .currentFindMatch{background:none;padding:1px;border:2px solid #f38518;box-sizing:border-box}.monaco-editor.hc-black .findScope{background:none;border:1px dashed #f38518;opacity:.4}.monaco-editor.hc-black .find-widget .monaco-findInput,.monaco-editor.hc-black .find-widget .replace-input{background-color:#000}.monaco-editor .margin-view-overlays .folding{margin-left:5px;cursor:pointer;background-repeat:no-repeat;background-origin:border-box;background-position:3px;background-size:15px;opacity:0;transition:opacity .5s}.monaco-editor .margin-view-overlays:hover .folding{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+CjxwYXRoIHN0eWxlPSJmaWxsOiNCNkI2QjYiIGQ9Ik0xMSw0djdINFY0SDExIE0xMiwzSDN2OWg5VjNMMTIsM3oiLz4KPGxpbmUgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6IzZCNkI2QjtzdHJva2UtbWl0ZXJsaW1pdDoxMCIgeDE9IjEwIiB5MT0iNy41IiB4Mj0iNSIgeTI9IjcuNSIvPgo8L3N2Zz4=");opacity:1}.monaco-editor .margin-view-overlays .folding.collapsed{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+CjxyZWN0IHg9IjMiIHk9IjMiIHN0eWxlPSJmaWxsOiNFOEU4RTgiIHdpZHRoPSI5IiBoZWlnaHQ9IjkiLz4KPHBhdGggc3R5bGU9ImZpbGw6I0I2QjZCNiIgZD0iTTExLDR2N0g0VjRIMTEgTTEyLDNIM3Y5aDlWM0wxMiwzeiIvPgo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojNkI2QjZCO3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+CjxsaW5lIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiM2QjZCNkI7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIHgxPSI3LjUiIHkxPSI1IiB4Mj0iNy41IiB5Mj0iMTAiLz4KPC9zdmc+");opacity:1}.monaco-editor.hc-black .margin-view-overlays:hover .folding,.monaco-editor.vs-dark .margin-view-overlays:hover .folding{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+CjxwYXRoIHN0eWxlPSJmaWxsOiM1QTVBNUEiIGQ9Ik0xMSw0djdINFY0SDExIE0xMiwzSDN2OWg5VjNMMTIsM3oiLz4KPGxpbmUgc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I0M1QzVDNTtzdHJva2UtbWl0ZXJsaW1pdDoxMCIgeDE9IjEwIiB5MT0iNy41IiB4Mj0iNSIgeTI9IjcuNSIvPgo8L3N2Zz4=")}.monaco-editor.hc-black .margin-view-overlays .folding.collapsed,.monaco-editor.vs-dark .margin-view-overlays .folding.collapsed{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+CjxyZWN0IHg9IjMiIHk9IjMiIHN0eWxlPSJvcGFjaXR5OjAuMTtmaWxsOiNGRkZGRkYiIHdpZHRoPSI5IiBoZWlnaHQ9IjkiLz4KPHBhdGggc3R5bGU9ImZpbGw6IzVBNUE1QSIgZD0iTTExLDR2N0g0VjRIMTEgTTEyLDNIM3Y5aDlWM0wxMiwzeiIvPgo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojQzVDNUM1O3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+CjxsaW5lIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNDNUM1QzU7c3Ryb2tlLW1pdGVybGltaXQ6MTAiIHgxPSI3LjUiIHkxPSI1IiB4Mj0iNy41IiB5Mj0iMTAiLz4KPC9zdmc+")}.monaco-editor .inline-folded:after{color:grey;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .preview-zone-widget.preview .monaco-editor,.monaco-editor .preview-zone-widget.preview .monaco-editor-background,.monaco-editor .preview-zone-widget.preview .monaco-editor .line-numbers,.monaco-editor .preview-zone-widget.preview .monaco-editor .lines-decorations{background-color:#f2f8fc}.monaco-editor.vs-dark .preview-zone-widget,.monaco-editor.vs-dark .preview-zone-widget.preview .monaco-editor,.monaco-editor.vs-dark .preview-zone-widget.preview .monaco-editor-background,.monaco-editor.vs-dark .preview-zone-widget.preview .monaco-editor .line-numbers,.monaco-editor.vs-dark .preview-zone-widget.preview .monaco-editor .lines-decorations{background-color:#001f33}.monaco-editor .zone-widget .zone-widget-container.preview-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:blue!important}.monaco-editor.vs-dark .goto-definition-link{color:#4e94ce!important}.monaco-editor .goto-definition-link-hover{margin:.5em;padding:0;padding-left:.5em;border-left:4px solid rgba(0,0,0,.14)}.monaco-editor.vs-dark .goto-definition-link-hover{border-left:4px solid hsla(0,0%,100%,.25)}.monaco-editor.hc-black .preview-zone-widget,.monaco-editor.hc-black .preview-zone-widget.preview .monaco-editor,.monaco-editor.hc-black .preview-zone-widget.preview .monaco-editor-background,.monaco-editor.hc-black .preview-zone-widget.preview .monaco-editor .line-numbers,.monaco-editor.hc-black .preview-zone-widget.preview .monaco-editor .lines-decorations{background-color:#0c141f}.monaco-editor .marker-widget{padding-left:2px;background-color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor.vs-dark .marker-widget{background-color:#2d2d30}.monaco-editor.hc-black .marker-widget{background-color:#0c141f}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget div.block{display:inline-block;vertical-align:top}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{white-space:pre;-webkit-user-select:text;user-select:text}.monaco-editor-hover{cursor:default;position:absolute;overflow:hidden;background-color:#f3f3f3;border:1px solid #ccc;z-index:5;-webkit-user-select:text;-ms-user-select:text;-moz-user-select:text;-o-user-select:text;user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-editor-hover.hidden{display:none}.monaco-editor-hover .monaco-editor-hover-content{max-width:500px}.monaco-editor-hover .hover-row{padding:4px 5px}.monaco-editor-hover .hover-row:not(:first-child):not(:empty){border-top:1px solid hsla(0,0%,80%,.5)}.monaco-editor-hover p,.monaco-editor-hover ul{margin:8px 0}.monaco-editor-hover p:first-child,.monaco-editor-hover ul:first-child{margin-top:0}.monaco-editor-hover p:last-child,.monaco-editor-hover ul:last-child{margin-bottom:0}.monaco-editor-hover ul{list-style-position:inside;-webkit-padding-start:6px}.monaco-editor-hover code{background-color:hsla(0,0%,52%,.14);border-radius:3px;padding:0 .4em}.monaco-editor-hover .monaco-tokenized-source{white-space:pre-wrap;word-break:break-all}.monaco-editor .hoverHighlight{background:rgba(173,214,255,.15)}.monaco-editor.vs-dark .monaco-editor-hover{background-color:#2d2d30;border-color:#555}.monaco-editor.vs-dark .monaco-editor-hover a{color:#1c5daf}.monaco-editor.vs-dark .monaco-editor-hover .hover-row:not(:first-child):not(:empty){border-color:rgba(85,85,85,.5)}.monaco-editor.vs-dark .hoverHighlight{background:rgba(38,79,120,.25)}.monaco-editor.hc-black .monaco-editor-hover{background-color:#0c141f}.monaco-editor.hc-black .monaco-editor-hover a{color:#1c5daf}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iI0YwRUZGMSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") 50% no-repeat;border:4px solid #f6f6f6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iIzJCMjgyRSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") 50% no-repeat;border:4px solid #252526}.monaco-editor.vs-dark .valueSetReplacement,.monaco-editor.vs .valueSetReplacement{outline:2px solid #888}.monaco-editor.hc-black .valueSetReplacement{outline:none}.monaco-editor .tokens-inspect-widget{background-color:#f3f3f3;border:1px solid #ccc;z-index:5;-webkit-user-select:text;-ms-user-select:text;-moz-user-select:text;-o-user-select:text;user-select:text;padding:10px}.monaco-editor.vs-dark .tokens-inspect-widget{background-color:#2d2d30;border-color:#555}.monaco-editor.hc-black .tokens-inspect-widget{background-color:#0c141f}.monaco-editor .tokens-inspect-widget .tm-token{font-family:monospace}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:monospace;text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:monospace}.monaco-editor .detected-link{text-decoration:underline}.monaco-editor .detected-link-active{text-decoration:underline;cursor:pointer;color:blue!important}.monaco-editor.vs-dark .detected-link{border-color:#1c5daf}.monaco-editor.vs-dark .detected-link-active{color:#4e94ce!important}.monaco-editor.hc-black .detected-link-active{color:cyan!important}.monaco-editor .parameter-hints-widget{z-index:3;background-color:#f3f3f3;border:1px solid #c8c8c8;display:flex;flex-direction:column;line-height:1.5em}.monaco-editor .parameter-hints-widget>.wrapper{max-width:440px;height:100%;display:flex;flex-direction:column}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0 0 0 1.9em}.monaco-editor .parameter-hints-widget.visible{-webkit-transition:left .05s ease-in-out;transition:left .05s ease-in-out}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .body,.monaco-editor .parameter-hints-widget .monaco-scrollable-element{display:flex;flex-direction:column}.monaco-editor .parameter-hints-widget.multiple .body{height:100%;border-left:1px solid hsla(0,0%,80%,.5)}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px}.monaco-editor .parameter-hints-widget .signature.has-docs{border-bottom:1px solid hsla(0,0%,80%,.5)}.monaco-editor .parameter-hints-widget .docs{height:100%;padding:0 10px 0 5px}.monaco-editor .parameter-hints-widget .buttons{position:absolute;display:none;bottom:0;left:0}.monaco-editor .parameter-hints-widget.multiple .buttons{display:block}.monaco-editor .parameter-hints-widget.multiple .button{position:absolute;left:2px;width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==")}.monaco-editor .parameter-hints-widget .button.next{bottom:0;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==")}.monaco-editor .parameter-hints-widget .overloads{position:absolute;display:none;text-align:center;bottom:14px;left:0;width:22px;height:12px;line-height:12px;opacity:.5}.monaco-editor .parameter-hints-widget.multiple .overloads{display:block}.monaco-editor .parameter-hints-widget .signature .parameter{display:inline-block}.monaco-editor .parameter-hints-widget .signature .parameter.active{font-weight:700;text-decoration:underline}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor.vs-dark .parameter-hints-widget{background-color:#2d2d30;border-color:rgba(85,85,85,.5)}.monaco-editor.hc-black .parameter-hints-widget .body,.monaco-editor.hc-black .parameter-hints-widget .signature,.monaco-editor.vs-dark .parameter-hints-widget .body,.monaco-editor.vs-dark .parameter-hints-widget .signature{border-color:rgba(85,85,85,.5)}.monaco-editor.hc-black .parameter-hints-widget .button.previous,.monaco-editor.vs-dark .parameter-hints-widget .button.previous{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==")}.monaco-editor.hc-black .parameter-hints-widget .button.next,.monaco-editor.vs-dark .parameter-hints-widget .button.next{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==")}.monaco-editor.hc-black .parameter-hints-widget{background-color:#0c141f;border:2px solid #6fc3df}.monaco-editor .lightbulb-glyph{display:flex;align-items:center;justify-content:center;height:16px;width:16px}.monaco-editor .lightbulb-glyph.hidden{display:none;visibility:hidden}.monaco-editor .lightbulb-glyph:hover{cursor:pointer}.monaco-editor.vs .lightbulb-glyph,.monaco-editor.vs .lightbulb-glyph[data-severity=high]{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iI0Y2RjZGNiIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjODQ4NDg0Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjZmMwIiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjRjBFRkYxIiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") 50% no-repeat}.monaco-editor.hc-black .lightbulb-glyph,.monaco-editor.hc-black .lightbulb-glyph[data-severity=high],.monaco-editor.vs-dark .lightbulb-glyph,.monaco-editor.vs-dark .lightbulb-glyph[data-severity=high]{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iIzFFMUUxRSIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjRERCMjA0IiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjMjUyNTI2IiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") 50% no-repeat}.quick-open-widget{font-size:13px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon,.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon{background-image:url(contrib/quickOpen/browser/symbol-sprite.svg);background-repeat:no-repeat}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor,.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method{background-position:0 -4px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable{background-position:-22px -4px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class{background-position:-43px -3px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface{background-position:-63px -4px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module{background-position:-82px -4px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property{background-position:-102px -3px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum{background-position:-122px -3px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule{background-position:-242px -4px}.quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file{background-position:-262px -4px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor,.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method{background-position:0 -24px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable{background-position:-22px -24px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class{background-position:-43px -23px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface{background-position:-63px -24px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module{background-position:-82px -24px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property{background-position:-102px -23px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum{background-position:-122px -23px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule{background-position:-242px -24px}.vs-dark .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file{background-position:-262px -24px}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon{background:none;display:inline}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon:before{height:16px;width:16px;display:inline-block}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor:before,.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function:before,.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0IxODBENyIgZD0iTTUuNSAzbC00LjUgMi44NTd2NC4yODVsNC41IDIuODU4IDQuNS0yLjg1N3YtNC4yODZsLTQuNS0yLjg1N3ptLS41IDguNDk4bC0zLTEuOTA1di0yLjgxNmwzIDEuOTA1djIuODE2em0tMi4zNTgtNS40OThsMi44NTgtMS44MTUgMi44NTggMS44MTUtMi44NTggMS44MTUtMi44NTgtMS44MTV6bTYuMzU4IDMuNTkzbC0zIDEuOTA1di0yLjgxNWwzLTEuOTA1djIuODE1eiIvPjwvc3ZnPg==);margin-left:2px}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field:before,.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTEgNnY0bDQgMiA2LTN2LTRsLTQtMi02IDN6bTQgMWwtMi0xIDQtMiAyIDEtNCAyeiIvPjwvc3ZnPg==);margin-left:2px}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0U4QUI1MyIgcG9pbnRzPSIxMS45OTgsMTEuMDAyIDksMTEgOSw3IDExLDcgMTAsOCAxMiwxMCAxNSw3IDEzLDUgMTIsNiA3LDYgOSw0IDYsMSAxLDYgNCw5IDYsNyA4LDcgOCwxMiAxMSwxMiAxMCwxMyAxMiwxNSAxNSwxMiAxMywxMCIvPjwvc3ZnPg==)}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTExLjUgNGMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIvPjwvc3ZnPg==)}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkgMTF2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIvPjwvc3ZnPg==);margin-left:2px}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEyLjA5IDQuMzU5bC0yLjY0MSAyLjY0MS0yLTIgMi42NDEtMi42NDFjLS41MDItLjIyNi0xLjA1NS0uMzU5LTEuNjQxLS4zNTktMi4yMDkgMC00IDEuNzkxLTQgNCAwIC41ODYuMTMzIDEuMTM5LjM1OSAxLjY0bC0zLjM1OSAzLjM2cy0xIDEgMCAyaDJsMy4zNTktMy4zNmMuNTAzLjIyNiAxLjA1NS4zNiAxLjY0MS4zNiAyLjIwOSAwIDQtMS43OTEgNC00IDAtLjU4Ni0uMTMzLTEuMTM5LS4zNTktMS42NDF6Ii8+PC9zdmc+);margin-left:1px}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum:before,.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.value:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgZmlsbD0iIzc1QkVGRiI+PHBhdGggZD0iTTEyIDNoLTRsLTEgMXYyaDV2MWgtMnYxaDJsMS0xdi0zbC0xLTF6bTAgMmgtNHYtMWg0djF6TTMgMTJoNnYtNWgtNnY1em0xLTNoNHYxaC00di0xeiIvPjwvZz48L3N2Zz4=)}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEwIDVoLTh2LTJoOHYyem0wIDFoLTZ2MWg2di0xem0wIDJoLTZ2MWg2di0xeiIvPjwvc3ZnPg==)}.hc-black .quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkuNjc2IDJoLTYuNjc2djEyaDEwdi05bC0zLjMyNC0zem0yLjMyNCAxMWgtOHYtMTBoNXYzaDN2N3oiLz48L3N2Zz4=)}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget.results-loaded{-webkit-transition:height .1s ease-in;transition:height .1s ease-in}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .label{font-size:.9em;text-align:center;color:#646465;margin-top:6px}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget,.monaco-editor .reference-zone-widget .preview .glyph-margin,.monaco-editor .reference-zone-widget .preview .monaco-editor,.monaco-editor .reference-zone-widget .preview .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .margin .view-line{background-color:#f2f8fc}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:rgba(245,216,2,.87)}.monaco-editor .reference-zone-widget .ref-tree{background-color:#f3f3f3;color:#646465;line-height:22px;font-size:13px}.monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){background-color:rgba(51,153,255,.2);color:#6c6c6c!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.has-children>.content:before{border-left-color:#a6a6a6}.monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.has-children>.content:after{border-left-color:rgba(51,153,255,.2)}.monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.expanded>.content:before{border-right-color:#646465;border-left-color:transparent}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{position:relative;line-height:22px;color:#1e1e1e}.monaco-editor .reference-zone-widget .ref-tree .reference-file .directory{opacity:.7;margin-left:.5em;font-size:.9em}.monaco-editor .reference-zone-widget .ref-tree .reference .lineNumber{color:#a8a8a8}.monaco-editor .reference-zone-widget .ref-tree .selected .reference .lineNumber{color:#fff}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch{background-color:rgba(234,92,0,.3)}.monaco-editor .reference-zone-widget .monaco-count-badge{margin-right:12px}.monaco-editor.vs-dark .reference-zone-widget .overlay,.monaco-editor.vs-dark .reference-zone-widget .ref-tree .block{background-color:#1e1e1e}.monaco-editor.vs-dark .reference-zone-widget,.monaco-editor.vs-dark .reference-zone-widget .preview .glyph-margin,.monaco-editor.vs-dark .reference-zone-widget .preview .monaco-editor,.monaco-editor.vs-dark .reference-zone-widget .preview .monaco-editor-background,.monaco-editor.vs-dark .reference-zone-widget .preview .monaco-editor .margin .view-line{background-color:#001f33}.monaco-editor.vs-dark .reference-zone-widget .ref-tree{background-color:#252526;color:#bbb}.monaco-editor.vs-dark .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){color:#fff!important}.monaco-editor.vs-dark .reference-zone-widget .preview .reference-decoration{background-color:rgba(255,143,0,.6)}.monaco-editor.vs-dark .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.has-children>.content:before{border-left-color:#fff}.monaco-editor.vs-dark .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.has-children>.content:after{border-left-color:rgba(51,153,255,.2)}.monaco-editor.vs-dark .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected.expanded>.content:before{border-right-color:#fff;border-left-color:transparent}.monaco-editor.vs-dark .reference-zone-widget .ref-tree .reference-file{color:#fff}.monaco-editor.hc-black .reference-zone-widget,.monaco-editor.hc-black .reference-zone-widget .preview .monaco-editor,.monaco-editor.hc-black .reference-zone-widget .preview .monaco-editor-background,.monaco-editor.hc-black .reference-zone-widget .preview .monaco-editor .margin .view-line{background-color:#0c141f}.monaco-editor.hc-black .reference-zone-widget .preview .reference-decoration{background:none;border:2px solid #f38518;box-sizing:border-box}.monaco-editor.hc-black .reference-zone-widget .ref-tree{background-color:#000;color:#fff}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file{color:#fff;line-height:20px;font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file .directory{font-weight:400}.monaco-editor.hc-black .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows>.monaco-tree-row.selected:not(.highlighted){background:none;color:#fff!important}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch{background:none;border:1px dotted #f38518}.monaco-editor .rename-box{box-shadow:0 2px 8px #a8a8a8;z-index:7;color:inherit}.monaco-editor.vs-dark .rename-box{box-shadow:0 2px 8px #000}.monaco-editor .rename-box .rename-input{border:1px solid #39f;padding:4px}.monaco-editor.vs-dark .rename-box .rename-input{border:1px solid #0e639c}.monaco-editor.vs .new-snippet{background-color:rgba(10,50,150,.1)}.monaco-editor.hc-black .new-snippet,.monaco-editor.vs-dark .new-snippet{background-color:hsla(210,5%,41%,.1)}.monaco-editor.vs .snippet-placeholder{background-color:rgba(10,50,100,.1)}.monaco-editor.hc-black .snippet-placeholder,.monaco-editor.vs-dark .snippet-placeholder{background-color:hsla(0,0%,49%,.1)}.monaco-editor.vs .finish-snippet-placeholder{outline:1px solid rgba(10,50,100,.5)}.monaco-editor.hc-black .finish-snippet-placeholder,.monaco-editor.vs-dark .finish-snippet-placeholder{outline:1px solid #525252}.monaco-editor .suggest-widget{background-color:#f3f3f3;border:1px solid #c8c8c8;z-index:4;width:438px}.monaco-editor .suggest-widget.visible{-webkit-transition:left .05s ease-in-out;transition:left .05s ease-in-out}.monaco-editor .suggest-widget>.message{padding-left:22px;opacity:.7}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs{display:none;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs>.docs-text{flex:2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;opacity:.85}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs>.docs-text.no-docs{opacity:.5;font-style:italic}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs>.docs-details{opacity:.6;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZD0iTTggMWMtMy44NjUgMC03IDMuMTM1LTcgN3MzLjEzNSA3IDcgNyA3LTMuMTM1IDctNy0zLjEzNS03LTctN3ptMSAxMmgtMnYtN2gydjd6bTAtOGgtMnYtMmgydjJ6IiBmaWxsPSIjMUJBMUUyIi8+PHBhdGggZD0iTTcgNmgydjdoLTJ2LTd6bTAtMWgydi0yaC0ydjJ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:70%}.monaco-editor .suggest-widget .details>.header>.go-back,.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs>.docs-details{color:#0035dd}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .docs>.docs-details:hover{opacity:1}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700;color:#186b9e}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.type-label{display:none;margin-left:.8em;flex:1;text-align:right;overflow:hidden;text-overflow:ellipsis;opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .type-label,.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main>.type-label,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.type-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .docs{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;background-repeat:no-repeat;background-size:80%;background-position:50%;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDEwYzAgMi4yMDUtMS43OTQgNC00IDQtMS44NTggMC0zLjQxMS0xLjI3OS0zLjg1OC0zaC0uOTc4bDIuMzE4IDRIMHYtMS43MDNsMi0zLjQwOFYwaDExdjYuMTQyYzEuNzIxLjQ0NyAzIDIgMyAzLjg1OHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0xMiAxdjQuNzVBNC4yNTUgNC4yNTUgMCAwIDAgNy43NSAxMGgtLjczMkw0LjI3NSA1LjI2OSAzIDcuNDQyVjFoOXpNNy43NDcgMTRMNC4yNjkgOCAuNzQ4IDE0aDYuOTk5ek0xNSAxMGEzIDMgMCAxIDEtNiAwIDMgMyAwIDAgMSA2IDB6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.constructor,.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.function,.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.method{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtZmd7ZmlsbDojZjBlZmYxfS5pY29uLXZzLWFjdGlvbi1wdXJwbGV7ZmlsbDojNjUyZDkwfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE1IDMuMzQ5djguNDAzTDguOTc1IDE2SDguMDdMMSAxMS41ODJWMy4zMjdMNy41OTUgMGgxLjExOEwxNSAzLjM0OXoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0xMi43MTUgNC4zOThMOC40ODcgNy4wMiAzLjU2NSA0LjI3Mmw0LjU3OC0yLjMwOSA0LjU3MiAyLjQzNXpNMyA1LjEwMmw1IDIuNzkydjUuNzA1bC01LTMuMTI1VjUuMTAyem02IDguNDM0VjcuODc4bDQtMi40OHY1LjMxN2wtNCAyLjgyMXoiIGlkPSJpY29uRmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1hY3Rpb24tcHVycGxlIiBkPSJNOC4xNTYuODM3TDIgMy45NDJ2Ny4wODVMOC41MTcgMTUuMSAxNCAxMS4yMzNWMy45NUw4LjE1Ni44Mzd6bTQuNTU5IDMuNTYxTDguNDg3IDcuMDIgMy41NjUgNC4yNzJsNC41NzgtMi4zMDkgNC41NzIgMi40MzV6TTMgNS4xMDJsNSAyLjc5MnY1LjcwNWwtNS0zLjEyNVY1LjEwMnptNiA4LjQzNFY3Ljg3OGw0LTIuNDh2NS4zMTdsLTQgMi44MjF6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.field,.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.variable{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtZmd7ZmlsbDojZjBlZmYxfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6IzAwNTM5Y308L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0wIDEwLjczNlY0LjVMOSAwbDcgMy41djYuMjM2bC05IDQuNS03LTMuNXoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik05IDFMMSA1djVsNiAzIDgtNFY0TDkgMXpNNyA2Ljg4MkwzLjIzNiA1IDkgMi4xMTggMTIuNzY0IDQgNyA2Ljg4MnoiIGlkPSJpY29uQmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTkgMi4xMThMMTIuNzY0IDQgNyA2Ljg4MiAzLjIzNiA1IDkgMi4xMTh6IiBpZD0iaWNvbkZnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.class{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYWN0aW9uLW9yYW5nZXtmaWxsOiNjMjdkMWF9PC9zdHlsZT48cGF0aCBjbGFzcz0iaWNvbi1jYW52YXMtdHJhbnNwYXJlbnQiIGQ9Ik0xNiAxNkgwVjBoMTZ2MTZ6IiBpZD0iY2FudmFzIi8+PHBhdGggY2xhc3M9Imljb24tdnMtb3V0IiBkPSJNMTYgNi41ODZsLTMtM0wxMS41ODYgNUg5LjQxNGwxLTEtNC00aC0uODI4TDAgNS41ODZ2LjgyOGw0IDRMNi40MTQgOEg3djVoMS41ODZsMyAzaC44MjhMMTYgMTIuNDE0di0uODI4TDEzLjkxNCA5LjUgMTYgNy40MTR2LS44Mjh6IiBpZD0ib3V0bGluZSIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWFjdGlvbi1vcmFuZ2UiIGQ9Ik0xMyAxMGwyIDItMyAzLTItMiAxLTFIOFY3SDZMNCA5IDEgNmw1LTUgMyAzLTIgMmg1bDEtMSAyIDItMyAzLTItMiAxLTFIOXY0bDIuOTk5LjAwMkwxMyAxMHoiIGlkPSJpY29uQmciLz48L3N2Zz4=")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.interface{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtZmd7ZmlsbDojZjBlZmYxfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6IzAwNTM5Y308L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xMS41IDEyYy0xLjkxNSAwLTMuNjAyLTEuMjQxLTQuMjI4LTNoLTEuNDFhMy4xMSAzLjExIDAgMCAxLTIuNzM3IDEuNjI1QzEuNDAyIDEwLjYyNSAwIDkuMjIzIDAgNy41czEuNDAyLTMuMTI1IDMuMTI1LTMuMTI1YzEuMTY1IDAgMi4yMDEuNjM5IDIuNzM3IDEuNjI1aDEuNDFjLjYyNi0xLjc1OSAyLjMxMy0zIDQuMjI4LTNDMTMuOTgxIDMgMTYgNS4wMTkgMTYgNy41UzEzLjk4MSAxMiAxMS41IDEyeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTExLjUgOUExLjUwMSAxLjUwMSAwIDEgMSAxMyA3LjVjMCAuODI2LS42NzMgMS41LTEuNSAxLjV6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik0xMS41IDRhMy40OSAzLjQ5IDAgMCAwLTMuNDUgM0g1LjE4NUEyLjEyMiAyLjEyMiAwIDAgMCAxIDcuNWEyLjEyMyAyLjEyMyAwIDEgMCA0LjE4NS41SDguMDVhMy40OSAzLjQ5IDAgMCAwIDMuNDUgMyAzLjUgMy41IDAgMSAwIDAtN3ptMCA1Yy0uODI3IDAtMS41LS42NzMtMS41LTEuNVMxMC42NzMgNiAxMS41IDZzMS41LjY3MyAxLjUgMS41UzEyLjMyNyA5IDExLjUgOXoiIGlkPSJpY29uQmciLz48L3N2Zz4=")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.module{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTkuMjYgMTEuOTg0bC45NzgtLjAyMWEuOTYyLjk2MiAwIDAgMCAuMDktLjAwNmMuMDExLS4wNjMuMDI2LS4xNzkuMDI2LS4zNjFWOS42ODhjMC0uNjc5LjE4NS0xLjI1Ny41My0xLjcwNy0uMzQ2LS40NTItLjUzLTEuMDMtLjUzLTEuNzA1VjQuMzVjMC0uMTY3LS4wMjEtLjI1OS0uMDM0LS4zMDJMOS4yNiA0LjAyVi45NzNsMS4wMTEuMDExYzIuMTY3LjAyNCAzLjQwOSAxLjE1NiAzLjQwOSAzLjEwNXYxLjk2MmMwIC4zNTEuMDcxLjQ2MS4wNzIuNDYybC45MzYuMDYuMDUzLjkyN3YxLjkzNmwtLjkzNi4wNjFjLS4wNzYuMDE2LS4xMjUuMTQ2LS4xMjUuNDI0djIuMDE3YzAgLjkxNC0uMzMyIDMuMDQzLTMuNDA4IDMuMDc4bC0xLjAxMi4wMTF2LTMuMDQzem0tMy41MjEgMy4wMzJjLTMuMDg5LS4wMzUtMy40MjItMi4xNjQtMy40MjItMy4wNzhWOS45MjFjMC0uMzI3LS4wNjYtLjQzMi0uMDY3LS40MzNsLS45MzctLjA2LS4wNjMtLjkyOVY2LjU2M2wuOTQyLS4wNmMuMDU4IDAgLjEyNS0uMTE0LjEyNS0uNDUyVjQuMDljMC0xLjk0OSAxLjI0OC0zLjA4MSAzLjQyMi0zLjEwNUw2Ljc1Ljk3M1Y0LjAybC0uOTc1LjAyM2EuNTcyLjU3MiAwIDAgMC0uMDkzLjAxYy4wMDYuMDIxLS4wMTkuMTE1LS4wMTkuMjk3djEuOTI4YzAgLjY3NS0uMTg2IDEuMjUzLS41MzQgMS43MDUuMzQ4LjQ1LjUzNCAxLjAyOC41MzQgMS43MDd2MS45MDdjMCAuMTc1LjAxNC4yOTEuMDI3LjM2My4wMjMuMDAyIDEuMDYuMDI1IDEuMDYuMDI1djMuMDQzbC0xLjAxMS0uMDEyeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1iZyIgZD0iTTUuNzUgMTQuMDE2Yy0xLjYyMy0uMDE5LTIuNDM0LS43MTEtMi40MzQtMi4wNzhWOS45MjFjMC0uOTAyLS4zNTUtMS4zNzYtMS4wNjYtMS40MjJ2LS45OThjLjcxMS0uMDQ1IDEuMDY2LS41MjkgMS4wNjYtMS40NDlWNC4wOWMwLTEuMzg1LjgxMS0yLjA4NyAyLjQzNC0yLjEwNXYxLjA2Yy0uNzI1LjAxNy0xLjA4Ny40NTMtMS4wODcgMS4zMDV2MS45MjhjMCAuOTItLjQ1NCAxLjQ4OC0xLjM2IDEuNzAyVjhjLjkwNy4yMDEgMS4zNi43NjMgMS4zNiAxLjY4OHYxLjkwN2MwIC40ODguMDgxLjgzNS4yNDMgMS4wNDIuMTYyLjIwOC40NDMuMzE2Ljg0NC4zMjV2MS4wNTR6bTcuOTktNS41MTdjLS43MDYuMDQ1LTEuMDYuNTItMS4wNiAxLjQyMnYyLjAxN2MwIDEuMzY3LS44MDcgMi4wNi0yLjQyIDIuMDc4di0xLjA1M2MuMzk2LS4wMDkuNjc4LS4xMTguODQ0LS4zMjguMTY3LS4yMS4yNS0uNTU2LjI1LTEuMDM5VjkuNjg4YzAtLjkyNS40NDktMS40ODggMS4zNDctMS42ODh2LS4wMjFjLS44OTgtLjIxNC0xLjM0Ny0uNzgyLTEuMzQ3LTEuNzAyVjQuMzVjMC0uODUyLS4zNjQtMS4yODgtMS4wOTQtMS4zMDZ2LTEuMDZjMS42MTMuMDE4IDIuNDIuNzIgMi40MiAyLjEwNXYxLjk2MmMwIC45Mi4zNTQgMS40MDQgMS4wNiAxLjQ0OXYuOTk5eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.property{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDUuNWE1LjUgNS41IDAgMCAxLTUuNSA1LjVjLS4yNzUgMC0uNTQzLS4wMjctLjgwNy0uMDY2bC0uMDc5LS4wMTJhNS40MjkgNS40MjkgMCAwIDEtLjgxLS4xOTJsLTQuNTM3IDQuNTM3Yy0uNDcyLjQ3My0xLjEuNzMzLTEuNzY3LjczM3MtMS4yOTUtLjI2LTEuNzY4LS43MzJhMi41MDIgMi41MDIgMCAwIDEgMC0zLjUzNWw0LjUzNy00LjUzN2E1LjQ1MiA1LjQ1MiAwIDAgMS0uMTkxLS44MTJjLS4wMDUtLjAyNS0uMDA4LS4wNTEtLjAxMi0uMDc3QTUuNTAzIDUuNTAzIDAgMCAxIDUgNS41YTUuNSA1LjUgMCAxIDEgMTEgMHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0xNSA1LjVhNC41IDQuNSAwIDAgMS00LjUgNC41Yy0uNjkzIDAtMS4zNDItLjE3LTEuOTI5LS40NWwtNS4wMSA1LjAxYy0uMjkzLjI5NC0uNjc3LjQ0LTEuMDYxLjQ0cy0uNzY4LS4xNDYtMS4wNjEtLjQzOWExLjUgMS41IDAgMCAxIDAtMi4xMjFsNS4wMS01LjAxQTQuNDgzIDQuNDgzIDAgMCAxIDYgNS41IDQuNSA0LjUgMCAwIDEgMTAuNSAxYy42OTMgMCAxLjM0Mi4xNyAxLjkyOS40NUw5LjYzNiA0LjI0M2wyLjEyMSAyLjEyMSAyLjc5My0yLjc5M2MuMjguNTg3LjQ1IDEuMjM2LjQ1IDEuOTI5eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.unit{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfS5pY29uLXZzLWZne2ZpbGw6I2YwZWZmMX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNiAxMS4wMTNIMVY0aDE1djcuMDEzeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTggOUg3VjZoM3YzSDlWN0g4djJ6TTQgN2gxdjJoMVY2SDN2M2gxVjd6bTggMGgxdjJoMVY2aC0zdjNoMVY3eiIgaWQ9Imljb25GZyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWJnIiBkPSJNMiA1djVoMTNWNUgyem00IDRINVY3SDR2MkgzVjZoM3Yzem00IDBIOVY3SDh2Mkg3VjZoM3Yzem00IDBoLTFWN2gtMXYyaC0xVjZoM3YzeiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.enum,.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.value{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtZmd7ZmlsbDojZjBlZmYxfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6IzAwNTM5Y308L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0wIDE1VjZoNlYyLjU4Nkw3LjU4NSAxaDYuODI5TDE2IDIuNTg2djUuODI5TDE0LjQxNCAxMEgxMHY1SDB6bTMtNnoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik04IDN2M2g1djFoLTN2MWg0VjNIOHptNSAySDlWNGg0djF6TTIgOHY1aDZWOEgyem01IDNIM3YtMWg0djF6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik0xMCA2aDN2MWgtM1Y2ek05IDR2MWg0VjRIOXptNS0ySDhMNyAzdjNoMVYzaDZ2NWgtNHYxaDRsMS0xVjNsLTEtMXptLTcgOEgzdjFoNHYtMXptMi0zdjdIMVY3aDh6TTggOEgydjVoNlY4eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.keyword{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfS5pY29uLXZzLWZne2ZpbGw6I2YwZWZmMX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNiA1VjJIOVYxSDB2MTRoMTN2LTNoM1Y5aC0xVjZIOVY1aDd6bS04IDdWOWgxdjNIOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0yIDNoNXYxSDJWM3oiIGlkPSJpY29uRmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1iZyIgZD0iTTE1IDRoLTVWM2g1djF6bS0xIDNoLTJ2MWgyVjd6bS00IDBIMXYxaDlWN3ptMiA2SDF2MWgxMXYtMXptLTUtM0gxdjFoNnYtMXptOCAwaC01djFoNXYtMXpNOCAydjNIMVYyaDd6TTcgM0gydjFoNVYzeiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.text{background-image:url(contrib/suggest/browser/String_16x.svg)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.color{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfS5pY29uLXZzLXJlZHtmaWxsOiNlNTE0MDB9Lmljb24tdnMteWVsbG93e2ZpbGw6I2ZmY2MwMH0uaWNvbi12cy1ncmVlbntmaWxsOiMzMzk5MzN9Lmljb24tdnMtYmx1ZXtmaWxsOiMxYmExZTJ9Lmljb24tdnMtYWN0aW9uLXB1cnBsZXtmaWxsOiM2NTJkOTB9Lmljb24td2hpdGV7ZmlsbDojZmZmZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDhjMCA0LjQxMS0zLjU4OSA4LTggOGEyLjgwMyAyLjgwMyAwIDAgMS0yLjgtMi44YzAtLjgzMy4yNzItMS42MjkuNzY2LTIuMjQxYS41OTYuNTk2IDAgMCAwIC4xMDEtLjM1OS42NjcuNjY3IDAgMCAwLS42NjctLjY2Ni41OC41OCAwIDAgMC0uMzU4LjEwMkEzLjU4NCAzLjU4NCAwIDAgMSAyLjggMTAuOCAyLjgwMyAyLjgwMyAwIDAgMSAwIDhjMC00LjQxMSAzLjU4OS04IDgtOHM4IDMuNTg5IDggOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24td2hpdGUiIGQ9Ik01LjQgNy45MzNhMi42NyAyLjY3IDAgMCAxIDIuNjY3IDIuNjY2YzAgLjYwNi0uMTkzIDEuMTc5LS41NDQgMS42MTRhMS41OTkgMS41OTkgMCAwIDAtLjMyMy45ODcuOC44IDAgMCAwIC44LjhjMy4zMDkgMCA2LTIuNjkxIDYtNnMtMi42OTEtNi02LTYtNiAyLjY5MS02IDZjMCAuNDQxLjM1OS44LjguOC4zNzggMCAuNzI5LS4xMTQuOTg2LS4zMjJBMi41NjggMi41NjggMCAwIDEgNS40IDcuOTMzeiIgaWQ9Imljb25GZyIvPjxnIGlkPSJpY29uQmciPjxwYXRoIGNsYXNzPSJpY29uLXZzLWJnIiBkPSJNOCAxNWMtLjk5MiAwLTEuOC0uODA4LTEuOC0xLjggMC0uNjA2LjE5My0xLjE3OS41NDQtMS42MTMuMjA4LS4yNTkuMzIzLS42MDkuMzIzLS45ODcgMC0uOTE5LS43NDgtMS42NjYtMS42NjctMS42NjYtLjM3NyAwLS43MjguMTE1LS45ODYuMzIzQTIuNTggMi41OCAwIDAgMSAyLjggOS44QzEuODA4IDkuOCAxIDguOTkyIDEgOGMwLTMuODYgMy4xNC03IDctNyAzLjg1OSAwIDcgMy4xNCA3IDcgMCAzLjg1OS0zLjE0MSA3LTcgN3pNNS40IDcuOTMzYTIuNjcgMi42NyAwIDAgMSAyLjY2NyAyLjY2NmMwIC42MDYtLjE5MyAxLjE3OS0uNTQ0IDEuNjE0YTEuNTk5IDEuNTk5IDAgMCAwLS4zMjMuOTg3LjguOCAwIDAgMCAuOC44YzMuMzA5IDAgNi0yLjY5MSA2LTZzLTIuNjkxLTYtNi02LTYgMi42OTEtNiA2YzAgLjQ0MS4zNTkuOC44LjguMzc4IDAgLjcyOS0uMTE0Ljk4Ni0uMzIyQTIuNTY4IDIuNTY4IDAgMCAxIDUuNCA3LjkzM3oiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1hY3Rpb24tcHVycGxlIiBkPSJNNC41IDUuMzc1YS44NzUuODc1IDAgMSAwIDAgMS43NS44NzUuODc1IDAgMCAwIDAtMS43NXoiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1ibHVlIiBkPSJNNy4xMjUgMy42MjVhLjg3NS44NzUgMCAxIDAgMCAxLjc1Ljg3NS44NzUgMCAwIDAgMC0xLjc1eiIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWdyZWVuIiBkPSJNMTAuNjI1IDQuNWEuODc1Ljg3NSAwIDEgMCAwIDEuNzUuODc1Ljg3NSAwIDAgMCAwLTEuNzV6Ii8+PHBhdGggY2xhc3M9Imljb24tdnMteWVsbG93IiBkPSJNMTEuNSA4YS44NzUuODc1IDAgMSAwIDAgMS43NS44NzUuODc1IDAgMCAwIDAtMS43NXoiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1yZWQiIGQ9Ik05Ljc1IDEwLjYyNWEuODc1Ljg3NSAwIDEgMCAwIDEuNzUuODc1Ljg3NSAwIDAgMCAwLTEuNzV6Ii8+PC9nPjwvc3ZnPg==")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.file{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtYmd7ZmlsbDojNDI0MjQyfS5pY29uLXZzLWZne2ZpbGw6I2YwZWZmMX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNSAxNkgyVjBoOC42MjFMMTUgNC4zNzlWMTZ6IiBpZD0ib3V0bGluZSIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWZnIiBkPSJNMTMgMTRINFYyaDV2NGg0djh6bS0zLTlWMi4yMDdMMTIuNzkzIDVIMTB6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0zIDF2MTRoMTFWNC43OTNMMTAuMjA3IDFIM3ptMTAgMTNINFYyaDV2NGg0djh6bS0zLTlWMi4yMDdMMTIuNzkzIDVIMTB6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.reference{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojZjZmNmY2fS5pY29uLXZzLW91dHtmaWxsOiNmNmY2ZjZ9Lmljb24tdnMtZmd7ZmlsbDojZjBlZmYxfS5pY29uLXZzLWFjdGlvbi1vcmFuZ2V7ZmlsbDojYzI3ZDFhfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE0LjQxNCAxTDE2IDIuNTg2djUuODI4TDE0LjQxNCAxMEgxMHYzLjQxNkw4LjQxNCAxNUgxLjU4NkwwIDEzLjQxNnYtNS44M0wxLjU4NiA2SDZWMi41ODZMNy41ODYgMWg2LjgyOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0yIDEzaDZWOEgydjV6bTEtNGg0djFIM1Y5em0wIDJoNHYxSDN2LTF6bTExLTVWM0g4djNoLjQxNEw5IDYuNTg2VjZoNHYxSDkuNDE0bC41ODYuNTg2VjhoNFY2em0tMS0xSDlWNGg0djF6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLW9yYW5nZSIgZD0iTTMgMTFoNC4wMDF2MUgzdi0xem0wLTFoNC4wMDFWOUgzdjF6bTYtMnY1bC0xIDFIMmwtMS0xVjhsMS0xaDZsMSAxek04IDhIMnY1aDZWOHptMS0ybDEgMWgzVjZIOXptMC0xaDRWNEg5djF6bTUtM0g4TDcgM3YzaDFWM2g2djVoLTR2MWg0bDEtMVYzbC0xLTF6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.snippet{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnNDY5NCIKICAgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGE0NzA1Ij4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZGVmcwogICAgIGlkPSJkZWZzNDcwMyIgLz4KICA8c3R5bGUKICAgICBpZD0ic3R5bGU0Njk2Ij4uaWNvbi1jYW52YXMtdHJhbnNwYXJlbnR7b3BhY2l0eTowO2ZpbGw6I2Y2ZjZmNn0uaWNvbi12cy1vdXR7ZmlsbDojZjZmNmY2fS5pY29uLXZzLWFjdGlvbi1vcmFuZ2V7ZmlsbDojYzI3ZDFhfTwvc3R5bGU+CiAgPGcKICAgICBpZD0iZzQ3MDciCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwxLjMzMzMzMzMsLTI0NS45OTk5OSwtNS4zMzMzMzMpIj4KICAgIDxwYXRoCiAgICAgICBkPSJtIDE4NSw0IDExLDAgMCwxMiAtMTEsMCB6IgogICAgICAgaWQ9InBhdGg0NTM0IgogICAgICAgc3R5bGU9ImZpbGw6I2Y2ZjZmNiIgLz4KICAgIDxwYXRoCiAgICAgICBkPSJtIDE5NCwxMyAwLC03IC03LDAgMCw3IC0xLDAgMCwtOCA5LDAgMCw4IC0xLDAgeiBtIC03LDIgLTEsMCAwLC0xIDEsMCAwLDEgeiBtIDIsLTEgLTEsMCAwLDEgMSwwIDAsLTEgeiBtIDIsMCAtMSwwIDAsMSAxLDAgMCwtMSB6IG0gMiwxIC0xLDAgMCwtMSAxLDAgMCwxIHogbSAyLC0xIC0xLDAgMCwxIDEsMCAwLC0xIHoiCiAgICAgICBpZD0icGF0aDQ1MzYiCiAgICAgICBzdHlsZT0iZmlsbDojNDI0MjQyIiAvPgogICAgPHBhdGgKICAgICAgIGQ9Im0gMTg3LDEzIDAsLTcgNywwIDAsNyAtNywwIHoiCiAgICAgICBpZD0icGF0aDQ1MzgiCiAgICAgICBzdHlsZT0iZmlsbDojZjBlZmYxIiAvPgogIDwvZz4KICA8cGF0aAogICAgIGlkPSJjYW52YXMiCiAgICAgZD0iTTE2IDE2SDBWMGgxNnYxNnoiCiAgICAgY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiAvPgo8L3N2Zz4K")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor{background-image:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.folder{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uaWNvbi1jYW52YXMtdHJhbnNwYXJlbnR7b3BhY2l0eTowO2ZpbGw6I0Y2RjZGNjt9IC5pY29uLXZzLW91dHtvcGFjaXR5OjA7ZmlsbDojRjZGNkY2O30gLmljb24tdnMtZmd7ZmlsbDojRjBFRkYxO30gLmljb24tZm9sZGVye2ZpbGw6IzY1NjU2NTt9PC9zdHlsZT48cGF0aCBjbGFzcz0iaWNvbi1jYW52YXMtdHJhbnNwYXJlbnQiIGQ9Ik0xNiAxNmgtMTZ2LTE2aDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDIuNXYxMGMwIC44MjctLjY3MyAxLjUtMS41IDEuNWgtMTEuOTk2Yy0uODI3IDAtMS41LS42NzMtMS41LTEuNXYtOGMwLS44MjcuNjczLTEuNSAxLjUtMS41aDIuODg2bDEtMmg4LjExYy44MjcgMCAxLjUuNjczIDEuNSAxLjV6IiBpZD0ib3V0bGluZSIvPjxwYXRoIGNsYXNzPSJpY29uLWZvbGRlciIgZD0iTTE0LjUgMmgtNy40OTJsLTEgMmgtMy41MDRjLS4yNzcgMC0uNS4yMjQtLjUuNXY4YzAgLjI3Ni4yMjMuNS41LjVoMTEuOTk2Yy4yNzUgMCAuNS0uMjI0LjUtLjV2LTEwYzAtLjI3Ni0uMjI1LS41LS41LS41em0tLjQ5NiAyaC02LjQ5NmwuNS0xaDUuOTk2djF6IiBpZD0iaWNvbkJnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0xNCAzdjFoLTYuNWwuNS0xaDZ6IiBpZD0iaWNvbkZnIi8+PC9zdmc+")}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-widget .details{height:100%;box-sizing:border-box;display:flex;flex-direction:column;cursor:default}.monaco-editor .suggest-widget .details>.header{padding:4px 5px;display:flex;box-sizing:border-box;border-bottom:1px solid hsla(0,0%,80%,.5)}.monaco-editor .suggest-widget .details>.header>.title{flex:2}.monaco-editor .suggest-widget .details>.header>.go-back{cursor:pointer;opacity:.6;background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTAuOTk0IDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTAuOTk0IDAgMTYgMTYiPjxwYXRoIGZpbGw9IiM4MDgwODAiIGQ9Ik0xMyA2YzAgMS40NjEtLjYzNiAyLjg0Ni0xLjc0NiAzLjc5N2wtNS41ODQgNC45NTEtMS4zMjQtMS40OTYgNS41OTUtNC45NjJjLjY3OC0uNTgyIDEuMDYxLTEuNDEzIDEuMDYxLTIuMjkgMC0xLjY1NC0xLjM0NS0zLTIuOTk3LTMtLjcxIDAtMS4zOTkuMjUzLTEuOTM4LjcxM2wtMS41MjEgMS4yODdoMi40NDhsLTEuOTk4IDJoLTMuOTk2di00bDEuOTk4LTJ2Mi42OTJsMS43NzUtMS41MDRjLjg5OS0uNzY2IDIuMDQ3LTEuMTg4IDMuMjMyLTEuMTg4IDIuNzU0IDAgNC45OTUgMi4yNDMgNC45OTUgNXoiLz48L3N2Zz4=");background-size:70%;background-position:50%;background-repeat:no-repeat}.monaco-editor .suggest-widget .details>.header>.go-back:hover{opacity:1}.monaco-editor .suggest-widget .details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-widget .details>.monaco-scrollable-element>.body{position:absolute;box-sizing:border-box;height:100%;width:100%;white-space:pre-wrap}.monaco-editor .suggest-widget .details>.monaco-scrollable-element>.body>.type{opacity:.7}.monaco-editor .suggest-widget .details>.monaco-scrollable-element>.body>p{margin:0;padding:4px 5px}.monaco-editor .suggest-widget .details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor.vs-dark .suggest-widget{background-color:#2d2d30;border:1px solid #454545}.monaco-editor.vs-dark .suggest-widget .details>.header{border-color:rgba(85,85,85,.5)}.monaco-editor.vs-dark .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{color:#219ae4}.monaco-editor.vs-dark .suggest-widget .details>.header>.go-back,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .docs>.docs-details{color:#4e94ce}.monaco-editor.hc-black .suggest-widget{background-color:#0c141f;border:2px solid #6fc3df}.monaco-editor.hc-black .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{color:#219ae4}.monaco-editor.hc-black .suggest-widget .details>.monaco-scrollable-element>.body>.docs,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .docs{color:#c07a7a}.monaco-editor.hc-black .suggest-widget .details>.header>.go-back,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .docs>.docs-details{color:#4e94ce}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDEwYzAgMi4yMDUtMS43OTQgNC00IDQtMS44NTggMC0zLjQxMS0xLjI3OS0zLjg1OC0zaC0uOTc4bDIuMzE4IDRIMHYtMS43MDNsMi0zLjQwOFYwaDExdjYuMTQyYzEuNzIxLjQ0NyAzIDIgMyAzLjg1OHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0xMiAxdjQuNzVBNC4yNTUgNC4yNTUgMCAwIDAgNy43NSAxMGgtLjczMkw0LjI3NSA1LjI2OSAzIDcuNDQyVjFoOXpNNy43NDcgMTRMNC4yNjkgOCAuNzQ4IDE0aDYuOTk5ek0xNSAxMGEzIDMgMCAxIDEtNiAwIDMgMyAwIDAgMSA2IDB6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.constructor,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.function,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.method,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.constructor,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.function,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.method{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtZmd7ZmlsbDojMmIyODJlfS5pY29uLXZzLWFjdGlvbi1wdXJwbGV7ZmlsbDojYjE4MGQ3fTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE1IDMuMzQ5djguNDAzTDguOTc1IDE2SDguMDdMMSAxMS41ODJWMy4zMjdMNy41OTUgMGgxLjExOEwxNSAzLjM0OXoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0xMi43MTUgNC4zOThMOC40ODcgNy4wMiAzLjU2NSA0LjI3Mmw0LjU3OC0yLjMwOSA0LjU3MiAyLjQzNXpNMyA1LjEwMmw1IDIuNzkydjUuNzA1bC01LTMuMTI1VjUuMTAyem02IDguNDM0VjcuODc4bDQtMi40OHY1LjMxN2wtNCAyLjgyMXoiIGlkPSJpY29uRmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1hY3Rpb24tcHVycGxlIiBkPSJNOC4xNTYuODM3TDIgMy45NDJ2Ny4wODVMOC41MTcgMTUuMSAxNCAxMS4yMzNWMy45NUw4LjE1Ni44Mzd6bTQuNTU5IDMuNTYxTDguNDg3IDcuMDIgMy41NjUgNC4yNzJsNC41NzgtMi4zMDkgNC41NzIgMi40MzV6TTMgNS4xMDJsNSAyLjc5MnY1LjcwNWwtNS0zLjEyNVY1LjEwMnptNiA4LjQzNFY3Ljg3OGw0LTIuNDh2NS4zMTdsLTQgMi44MjF6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.field,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.variable,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.field,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.variable{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtZmd7ZmlsbDojMmIyODJlfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6Izc1YmVmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0wIDEwLjczNlY0LjVMOSAwbDcgMy41djYuMjM2bC05IDQuNS03LTMuNXoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik05IDFMMSA1djVsNiAzIDgtNFY0TDkgMXpNNyA2Ljg4MkwzLjIzNiA1IDkgMi4xMTggMTIuNzY0IDQgNyA2Ljg4MnoiIGlkPSJpY29uQmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTkgMi4xMThMMTIuNzY0IDQgNyA2Ljg4MiAzLjIzNiA1IDkgMi4xMTh6IiBpZD0iaWNvbkZnIi8+PC9zdmc+")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.class,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.class{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYWN0aW9uLW9yYW5nZXtmaWxsOiNlOGFiNTN9PC9zdHlsZT48cGF0aCBjbGFzcz0iaWNvbi1jYW52YXMtdHJhbnNwYXJlbnQiIGQ9Ik0xNiAxNkgwVjBoMTZ2MTZ6IiBpZD0iY2FudmFzIi8+PHBhdGggY2xhc3M9Imljb24tdnMtb3V0IiBkPSJNMTYgNi41ODZsLTMtM0wxMS41ODYgNUg5LjQxNGwxLTEtNC00aC0uODI4TDAgNS41ODZ2LjgyOGw0IDRMNi40MTQgOEg3djVoMS41ODZsMyAzaC44MjhMMTYgMTIuNDE0di0uODI4TDEzLjkxNCA5LjUgMTYgNy40MTR2LS44Mjh6IiBpZD0ib3V0bGluZSIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWFjdGlvbi1vcmFuZ2UiIGQ9Ik0xMyAxMGwyIDItMyAzLTItMiAxLTFIOFY3SDZMNCA5IDEgNmw1LTUgMyAzLTIgMmg1bDEtMSAyIDItMyAzLTItMiAxLTFIOXY0bDIuOTk5LjAwMkwxMyAxMHoiIGlkPSJpY29uQmciLz48L3N2Zz4=")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.interface,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.interface{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtZmd7ZmlsbDojMmIyODJlfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6Izc1YmVmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xMS41IDEyYy0xLjkxNSAwLTMuNjAyLTEuMjQxLTQuMjI4LTNoLTEuNDFhMy4xMSAzLjExIDAgMCAxLTIuNzM3IDEuNjI1QzEuNDAyIDEwLjYyNSAwIDkuMjIzIDAgNy41czEuNDAyLTMuMTI1IDMuMTI1LTMuMTI1YzEuMTY1IDAgMi4yMDEuNjM5IDIuNzM3IDEuNjI1aDEuNDFjLjYyNi0xLjc1OSAyLjMxMy0zIDQuMjI4LTNDMTMuOTgxIDMgMTYgNS4wMTkgMTYgNy41UzEzLjk4MSAxMiAxMS41IDEyeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTExLjUgOUExLjUwMSAxLjUwMSAwIDEgMSAxMyA3LjVjMCAuODI2LS42NzMgMS41LTEuNSAxLjV6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik0xMS41IDRhMy40OSAzLjQ5IDAgMCAwLTMuNDUgM0g1LjE4NUEyLjEyMiAyLjEyMiAwIDAgMCAxIDcuNWEyLjEyMyAyLjEyMyAwIDEgMCA0LjE4NS41SDguMDVhMy40OSAzLjQ5IDAgMCAwIDMuNDUgMyAzLjUgMy41IDAgMSAwIDAtN3ptMCA1Yy0uODI3IDAtMS41LS42NzMtMS41LTEuNVMxMC42NzMgNiAxMS41IDZzMS41LjY3MyAxLjUgMS41UzEyLjMyNyA5IDExLjUgOXoiIGlkPSJpY29uQmciLz48L3N2Zz4=")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.module,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.module{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTkuMjYgMTEuOTg0bC45NzgtLjAyMWEuOTYyLjk2MiAwIDAgMCAuMDktLjAwNmMuMDExLS4wNjMuMDI2LS4xNzkuMDI2LS4zNjFWOS42ODhjMC0uNjc5LjE4NS0xLjI1Ny41My0xLjcwNy0uMzQ2LS40NTItLjUzLTEuMDMtLjUzLTEuNzA1VjQuMzVjMC0uMTY3LS4wMjEtLjI1OS0uMDM0LS4zMDJMOS4yNiA0LjAyVi45NzNsMS4wMTEuMDExYzIuMTY3LjAyNCAzLjQwOSAxLjE1NiAzLjQwOSAzLjEwNXYxLjk2MmMwIC4zNTEuMDcxLjQ2MS4wNzIuNDYybC45MzYuMDYuMDUzLjkyN3YxLjkzNmwtLjkzNi4wNjFjLS4wNzYuMDE2LS4xMjUuMTQ2LS4xMjUuNDI0djIuMDE3YzAgLjkxNC0uMzMyIDMuMDQzLTMuNDA4IDMuMDc4bC0xLjAxMi4wMTF2LTMuMDQzem0tMy41MjEgMy4wMzJjLTMuMDg5LS4wMzUtMy40MjItMi4xNjQtMy40MjItMy4wNzhWOS45MjFjMC0uMzI3LS4wNjYtLjQzMi0uMDY3LS40MzNsLS45MzctLjA2LS4wNjMtLjkyOVY2LjU2M2wuOTQyLS4wNmMuMDU4IDAgLjEyNS0uMTE0LjEyNS0uNDUyVjQuMDljMC0xLjk0OSAxLjI0OC0zLjA4MSAzLjQyMi0zLjEwNUw2Ljc1Ljk3M1Y0LjAybC0uOTc1LjAyM2EuNTcyLjU3MiAwIDAgMC0uMDkzLjAxYy4wMDYuMDIxLS4wMTkuMTE1LS4wMTkuMjk3djEuOTI4YzAgLjY3NS0uMTg2IDEuMjUzLS41MzQgMS43MDUuMzQ4LjQ1LjUzNCAxLjAyOC41MzQgMS43MDd2MS45MDdjMCAuMTc1LjAxNC4yOTEuMDI3LjM2My4wMjMuMDAyIDEuMDYuMDI1IDEuMDYuMDI1djMuMDQzbC0xLjAxMS0uMDEyeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1iZyIgZD0iTTUuNzUgMTQuMDE2Yy0xLjYyMy0uMDE5LTIuNDM0LS43MTEtMi40MzQtMi4wNzhWOS45MjFjMC0uOTAyLS4zNTUtMS4zNzYtMS4wNjYtMS40MjJ2LS45OThjLjcxMS0uMDQ1IDEuMDY2LS41MjkgMS4wNjYtMS40NDlWNC4wOWMwLTEuMzg1LjgxMS0yLjA4NyAyLjQzNC0yLjEwNXYxLjA2Yy0uNzI1LjAxNy0xLjA4Ny40NTMtMS4wODcgMS4zMDV2MS45MjhjMCAuOTItLjQ1NCAxLjQ4OC0xLjM2IDEuNzAyVjhjLjkwNy4yMDEgMS4zNi43NjMgMS4zNiAxLjY4OHYxLjkwN2MwIC40ODguMDgxLjgzNS4yNDMgMS4wNDIuMTYyLjIwOC40NDMuMzE2Ljg0NC4zMjV2MS4wNTR6bTcuOTktNS41MTdjLS43MDYuMDQ1LTEuMDYuNTItMS4wNiAxLjQyMnYyLjAxN2MwIDEuMzY3LS44MDcgMi4wNi0yLjQyIDIuMDc4di0xLjA1M2MuMzk2LS4wMDkuNjc4LS4xMTguODQ0LS4zMjguMTY3LS4yMS4yNS0uNTU2LjI1LTEuMDM5VjkuNjg4YzAtLjkyNS40NDktMS40ODggMS4zNDctMS42ODh2LS4wMjFjLS44OTgtLjIxNC0xLjM0Ny0uNzgyLTEuMzQ3LTEuNzAyVjQuMzVjMC0uODUyLS4zNjQtMS4yODgtMS4wOTQtMS4zMDZ2LTEuMDZjMS42MTMuMDE4IDIuNDIuNzIgMi40MiAyLjEwNXYxLjk2MmMwIC45Mi4zNTQgMS40MDQgMS4wNiAxLjQ0OXYuOTk5eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.property,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.property{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDUuNWE1LjUgNS41IDAgMCAxLTUuNSA1LjVjLS4yNzUgMC0uNTQzLS4wMjctLjgwNy0uMDY2bC0uMDc5LS4wMTJhNS40MjkgNS40MjkgMCAwIDEtLjgxLS4xOTJsLTQuNTM3IDQuNTM3Yy0uNDcyLjQ3My0xLjEuNzMzLTEuNzY3LjczM3MtMS4yOTUtLjI2LTEuNzY4LS43MzJhMi41MDIgMi41MDIgMCAwIDEgMC0zLjUzNWw0LjUzNy00LjUzN2E1LjQ1MiA1LjQ1MiAwIDAgMS0uMTkxLS44MTJjLS4wMDUtLjAyNS0uMDA4LS4wNTEtLjAxMi0uMDc3QTUuNTAzIDUuNTAzIDAgMCAxIDUgNS41YTUuNSA1LjUgMCAxIDEgMTEgMHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0xNSA1LjVhNC41IDQuNSAwIDAgMS00LjUgNC41Yy0uNjkzIDAtMS4zNDItLjE3LTEuOTI5LS40NWwtNS4wMSA1LjAxYy0uMjkzLjI5NC0uNjc3LjQ0LTEuMDYxLjQ0cy0uNzY4LS4xNDYtMS4wNjEtLjQzOWExLjUgMS41IDAgMCAxIDAtMi4xMjFsNS4wMS01LjAxQTQuNDgzIDQuNDgzIDAgMCAxIDYgNS41IDQuNSA0LjUgMCAwIDEgMTAuNSAxYy42OTMgMCAxLjM0Mi4xNyAxLjkyOS40NUw5LjYzNiA0LjI0M2wyLjEyMSAyLjEyMSAyLjc5My0yLjc5M2MuMjguNTg3LjQ1IDEuMjM2LjQ1IDEuOTI5eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.unit,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.unit{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fS5pY29uLXZzLWZne2ZpbGw6IzJiMjgyZX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNiAxMS4wMTNIMVY0aDE1djcuMDEzeiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1mZyIgZD0iTTggOUg3VjZoM3YzSDlWN0g4djJ6TTQgN2gxdjJoMVY2SDN2M2gxVjd6bTggMGgxdjJoMVY2aC0zdjNoMVY3eiIgaWQ9Imljb25GZyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWJnIiBkPSJNMiA1djVoMTNWNUgyem00IDRINVY3SDR2MkgzVjZoM3Yzem00IDBIOVY3SDh2Mkg3VjZoM3Yzem00IDBoLTFWN2gtMXYyaC0xVjZoM3YzeiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.enum,.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.value,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.enum,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.value{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtZmd7ZmlsbDojMmIyODJlfS5pY29uLXZzLWFjdGlvbi1ibHVle2ZpbGw6Izc1YmVmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0wIDE1VjZoNlYyLjU4Nkw3LjU4NSAxaDYuODI5TDE2IDIuNTg2djUuODI5TDE0LjQxNCAxMEgxMHY1SDB6bTMtNnoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik04IDN2M2g1djFoLTN2MWg0VjNIOHptNSAySDlWNGg0djF6TTIgOHY1aDZWOEgyem01IDNIM3YtMWg0djF6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLWJsdWUiIGQ9Ik0xMCA2aDN2MWgtM1Y2ek05IDR2MWg0VjRIOXptNS0ySDhMNyAzdjNoMVYzaDZ2NWgtNHYxaDRsMS0xVjNsLTEtMXptLTcgOEgzdjFoNHYtMXptMi0zdjdIMVY3aDh6TTggOEgydjVoNlY4eiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.keyword,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.keyword{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fS5pY29uLXZzLWZne2ZpbGw6IzJiMjgyZX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNiA1VjJIOVYxSDB2MTRoMTN2LTNoM1Y5aC0xVjZIOVY1aDd6bS04IDdWOWgxdjNIOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0yIDNoNXYxSDJWM3oiIGlkPSJpY29uRmciLz48cGF0aCBjbGFzcz0iaWNvbi12cy1iZyIgZD0iTTE1IDRoLTVWM2g1djF6bS0xIDNoLTJ2MWgyVjd6bS00IDBIMXYxaDlWN3ptMiA2SDF2MWgxMXYtMXptLTUtM0gxdjFoNnYtMXptOCAwaC01djFoNXYtMXpNOCAydjNIMVYyaDd6TTcgM0gydjFoNVYzeiIgaWQ9Imljb25CZyIvPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.text,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.text{background-image:url(contrib/suggest/browser/String_inverse_16x.svg)}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.color,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.color{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fS5pY29uLXZzLXJlZHtmaWxsOiNmNDg3NzF9Lmljb24tdnMteWVsbG93e2ZpbGw6I2ZmY2MwMH0uaWNvbi12cy1ncmVlbntmaWxsOiMzMzk5MzN9Lmljb24tdnMtYmx1ZXtmaWxsOiMxYmExZTJ9Lmljb24tdnMtYWN0aW9uLXB1cnBsZXtmaWxsOiNiMTgwZDd9Lmljb24td2hpdGV7ZmlsbDojMDAwMDAwfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE2IDhjMCA0LjQxMS0zLjU4OSA4LTggOGEyLjgwMyAyLjgwMyAwIDAgMS0yLjgtMi44YzAtLjgzMy4yNzItMS42MjkuNzY2LTIuMjQxYS41OTYuNTk2IDAgMCAwIC4xMDEtLjM1OS42NjcuNjY3IDAgMCAwLS42NjctLjY2Ni41OC41OCAwIDAgMC0uMzU4LjEwMkEzLjU4NCAzLjU4NCAwIDAgMSAyLjggMTAuOCAyLjgwMyAyLjgwMyAwIDAgMSAwIDhjMC00LjQxMSAzLjU4OS04IDgtOHM4IDMuNTg5IDggOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24td2hpdGUiIGQ9Ik01LjQgNy45MzNhMi42NyAyLjY3IDAgMCAxIDIuNjY3IDIuNjY2YzAgLjYwNi0uMTkzIDEuMTc5LS41NDQgMS42MTRhMS41OTkgMS41OTkgMCAwIDAtLjMyMy45ODcuOC44IDAgMCAwIC44LjhjMy4zMDkgMCA2LTIuNjkxIDYtNnMtMi42OTEtNi02LTYtNiAyLjY5MS02IDZjMCAuNDQxLjM1OS44LjguOC4zNzggMCAuNzI5LS4xMTQuOTg2LS4zMjJBMi41NjggMi41NjggMCAwIDEgNS40IDcuOTMzeiIgaWQ9Imljb25GZyIvPjxnIGlkPSJpY29uQmciPjxwYXRoIGNsYXNzPSJpY29uLXZzLWJnIiBkPSJNOCAxNWMtLjk5MiAwLTEuOC0uODA4LTEuOC0xLjggMC0uNjA2LjE5My0xLjE3OS41NDQtMS42MTMuMjA4LS4yNTkuMzIzLS42MDkuMzIzLS45ODcgMC0uOTE5LS43NDgtMS42NjYtMS42NjctMS42NjYtLjM3NyAwLS43MjguMTE1LS45ODYuMzIzQTIuNTggMi41OCAwIDAgMSAyLjggOS44QzEuODA4IDkuOCAxIDguOTkyIDEgOGMwLTMuODYgMy4xNC03IDctNyAzLjg1OSAwIDcgMy4xNCA3IDcgMCAzLjg1OS0zLjE0MSA3LTcgN3pNNS40IDcuOTMzYTIuNjcgMi42NyAwIDAgMSAyLjY2NyAyLjY2NmMwIC42MDYtLjE5MyAxLjE3OS0uNTQ0IDEuNjE0YTEuNTk5IDEuNTk5IDAgMCAwLS4zMjMuOTg3LjguOCAwIDAgMCAuOC44YzMuMzA5IDAgNi0yLjY5MSA2LTZzLTIuNjkxLTYtNi02LTYgMi42OTEtNiA2YzAgLjQ0MS4zNTkuOC44LjguMzc4IDAgLjcyOS0uMTE0Ljk4Ni0uMzIyQTIuNTY4IDIuNTY4IDAgMCAxIDUuNCA3LjkzM3oiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1hY3Rpb24tcHVycGxlIiBkPSJNNC41IDUuMzc1YS44NzUuODc1IDAgMSAwIDAgMS43NS44NzUuODc1IDAgMCAwIDAtMS43NXoiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1ibHVlIiBkPSJNNy4xMjUgMy42MjVhLjg3NS44NzUgMCAxIDAgMCAxLjc1Ljg3NS44NzUgMCAwIDAgMC0xLjc1eiIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWdyZWVuIiBkPSJNMTAuNjI1IDQuNWEuODc1Ljg3NSAwIDEgMCAwIDEuNzUuODc1Ljg3NSAwIDAgMCAwLTEuNzV6Ii8+PHBhdGggY2xhc3M9Imljb24tdnMteWVsbG93IiBkPSJNMTEuNSA4YS44NzUuODc1IDAgMSAwIDAgMS43NS44NzUuODc1IDAgMCAwIDAtMS43NXoiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1yZWQiIGQ9Ik05Ljc1IDEwLjYyNWEuODc1Ljg3NSAwIDEgMCAwIDEuNzUuODc1Ljg3NSAwIDAgMCAwLTEuNzV6Ii8+PC9nPjwvc3ZnPg==")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.file,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.file{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtYmd7ZmlsbDojYzVjNWM1fS5pY29uLXZzLWZne2ZpbGw6IzJiMjgyZX08L3N0eWxlPjxwYXRoIGNsYXNzPSJpY29uLWNhbnZhcy10cmFuc3BhcmVudCIgZD0iTTE2IDE2SDBWMGgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNSAxNkgyVjBoOC42MjFMMTUgNC4zNzlWMTZ6IiBpZD0ib3V0bGluZSIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWZnIiBkPSJNMTMgMTRINFYyaDV2NGg0djh6bS0zLTlWMi4yMDdMMTIuNzkzIDVIMTB6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYmciIGQ9Ik0zIDF2MTRoMTFWNC43OTNMMTAuMjA3IDFIM3ptMTAgMTNINFYyaDV2NGg0djh6bS0zLTlWMi4yMDdMMTIuNzkzIDVIMTB6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.reference,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.reference{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHN0eWxlPi5pY29uLWNhbnZhcy10cmFuc3BhcmVudHtvcGFjaXR5OjA7ZmlsbDojMmQyZDMwfS5pY29uLXZzLW91dHtmaWxsOiMyZDJkMzB9Lmljb24tdnMtZmd7ZmlsbDojMmIyODJlfS5pY29uLXZzLWFjdGlvbi1vcmFuZ2V7ZmlsbDojZThhYjUzfTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZIMFYwaDE2djE2eiIgaWQ9ImNhbnZhcyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLW91dCIgZD0iTTE0LjQxNCAxTDE2IDIuNTg2djUuODI4TDE0LjQxNCAxMEgxMHYzLjQxNkw4LjQxNCAxNUgxLjU4NkwwIDEzLjQxNnYtNS44M0wxLjU4NiA2SDZWMi41ODZMNy41ODYgMWg2LjgyOHoiIGlkPSJvdXRsaW5lIi8+PHBhdGggY2xhc3M9Imljb24tdnMtZmciIGQ9Ik0yIDEzaDZWOEgydjV6bTEtNGg0djFIM1Y5em0wIDJoNHYxSDN2LTF6bTExLTVWM0g4djNoLjQxNEw5IDYuNTg2VjZoNHYxSDkuNDE0bC41ODYuNTg2VjhoNFY2em0tMS0xSDlWNGg0djF6IiBpZD0iaWNvbkZnIi8+PHBhdGggY2xhc3M9Imljb24tdnMtYWN0aW9uLW9yYW5nZSIgZD0iTTMgMTFoNC4wMDF2MUgzdi0xem0wLTFoNC4wMDFWOUgzdjF6bTYtMnY1bC0xIDFIMmwtMS0xVjhsMS0xaDZsMSAxek04IDhIMnY1aDZWOHptMS0ybDEgMWgzVjZIOXptMC0xaDRWNEg5djF6bTUtM0g4TDcgM3YzaDFWM2g2djVoLTR2MWg0bDEtMVYzbC0xLTF6IiBpZD0iaWNvbkJnIi8+PC9zdmc+")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.snippet,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.snippet{background-image:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgdmVyc2lvbj0iMS4xIgogICBpZD0ic3ZnNDY5NCIKICAgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8bWV0YWRhdGEKICAgICBpZD0ibWV0YWRhdGE0NzA1Ij4KICAgIDxyZGY6UkRGPgogICAgICA8Y2M6V29yawogICAgICAgICByZGY6YWJvdXQ9IiI+CiAgICAgICAgPGRjOmZvcm1hdD5pbWFnZS9zdmcreG1sPC9kYzpmb3JtYXQ+CiAgICAgICAgPGRjOnR5cGUKICAgICAgICAgICByZGY6cmVzb3VyY2U9Imh0dHA6Ly9wdXJsLm9yZy9kYy9kY21pdHlwZS9TdGlsbEltYWdlIiAvPgogICAgICAgIDxkYzp0aXRsZT48L2RjOnRpdGxlPgogICAgICA8L2NjOldvcms+CiAgICA8L3JkZjpSREY+CiAgPC9tZXRhZGF0YT4KICA8ZGVmcwogICAgIGlkPSJkZWZzNDcwMyIgLz4KICA8c3R5bGUKICAgICBpZD0ic3R5bGU0Njk2Ij4uaWNvbi1jYW52YXMtdHJhbnNwYXJlbnR7b3BhY2l0eTowO2ZpbGw6I2Y2ZjZmNn0uaWNvbi12cy1vdXR7ZmlsbDojZjZmNmY2fS5pY29uLXZzLWFjdGlvbi1vcmFuZ2V7ZmlsbDojYzI3ZDFhfTwvc3R5bGU+CiAgPGcKICAgICBpZD0iZzQ3MjQiCiAgICAgdHJhbnNmb3JtPSJtYXRyaXgoMS4zMzMzMzMzLDAsMCwxLjMzMzMzMzMsLTI0NS45OTk5OSwtMzEuOTk5OTk5KSI+CiAgICA8cGF0aAogICAgICAgZD0ibSAxODUsMjQgMTEsMCAwLDEyIC0xMSwwIHoiCiAgICAgICBpZD0icGF0aDQ1MjgiCiAgICAgICBzdHlsZT0iZmlsbDojMmQyZDMwIiAvPgogICAgPHBhdGgKICAgICAgIGQ9Im0gMTk0LDMzIDAsLTcgLTcsMCAwLDcgLTEsMCAwLC04IDksMCAwLDggeiBtIC04LDEgMSwwIDAsMSAtMSwwIHogbSAyLDAgMSwwIDAsMSAtMSwwIHogbSAyLDAgMSwwIDAsMSAtMSwwIHogbSAyLDAgMSwwIDAsMSAtMSwwIHogbSAyLDAgMSwwIDAsMSAtMSwwIHoiCiAgICAgICBpZD0icGF0aDQ1MzAiCiAgICAgICBzdHlsZT0iZmlsbDojYzVjNWM1IiAvPgogICAgPHBhdGgKICAgICAgIGQ9Im0gMTg3LDI2IDcsMCAwLDcgLTcsMCB6IgogICAgICAgaWQ9InBhdGg0NTMyIgogICAgICAgc3R5bGU9ImZpbGw6IzJiMjgyZSIgLz4KICA8L2c+Cjwvc3ZnPgo=")}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.customcolor,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.customcolor{background-image:none}.monaco-editor.hc-black .suggest-widget .monaco-list .monaco-list-row .icon.folder,.monaco-editor.vs-dark .suggest-widget .monaco-list .monaco-list-row .icon.folder{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uaWNvbi1jYW52YXMtdHJhbnNwYXJlbnR7b3BhY2l0eTowO2ZpbGw6I0Y2RjZGNjt9IC5pY29uLXZzLW91dHtvcGFjaXR5OjA7ZmlsbDojRjZGNkY2O30gLmljb24tdnMtZmd7b3BhY2l0eTowO2ZpbGw6I0YwRUZGMTt9IC5pY29uLWZvbGRlcntmaWxsOiNDNUM1QzU7fTwvc3R5bGU+PHBhdGggY2xhc3M9Imljb24tY2FudmFzLXRyYW5zcGFyZW50IiBkPSJNMTYgMTZoLTE2di0xNmgxNnYxNnoiIGlkPSJjYW52YXMiLz48cGF0aCBjbGFzcz0iaWNvbi12cy1vdXQiIGQ9Ik0xNiAyLjV2MTBjMCAuODI3LS42NzMgMS41LTEuNSAxLjVoLTExLjk5NmMtLjgyNyAwLTEuNS0uNjczLTEuNS0xLjV2LThjMC0uODI3LjY3My0xLjUgMS41LTEuNWgyLjg4NmwxLTJoOC4xMWMuODI3IDAgMS41LjY3MyAxLjUgMS41eiIgaWQ9Im91dGxpbmUiLz48cGF0aCBjbGFzcz0iaWNvbi1mb2xkZXIiIGQ9Ik0xNC41IDJoLTcuNDkybC0xIDJoLTMuNTA0Yy0uMjc3IDAtLjUuMjI0LS41LjV2OGMwIC4yNzYuMjIzLjUuNS41aDExLjk5NmMuMjc1IDAgLjUtLjIyNC41LS41di0xMGMwLS4yNzYtLjIyNS0uNS0uNS0uNXptLS40OTYgMmgtNi40OTZsLjUtMWg1Ljk5NnYxeiIgaWQ9Imljb25CZyIvPjxwYXRoIGNsYXNzPSJpY29uLXZzLWZnIiBkPSJNMTQgM3YxaC02LjVsLjUtMWg2eiIgaWQ9Imljb25GZyIvPjwvc3ZnPg==")}.monaco-editor.vs .selectionHighlight{background:rgba(173,214,255,.3)}.monaco-editor.vs-dark .selectionHighlight{background:rgba(173,214,255,.15)}.monaco-editor.hc-black .selectionHighlight{border:1px dotted #f38518;box-sizing:border-box}.monaco-editor.vs .wordHighlight{background:rgba(87,87,87,.25)}.monaco-editor.vs-dark .wordHighlight{background:rgba(87,87,87,.72)}.monaco-editor.hc-black .wordHighlight{background:none}.monaco-editor.vs .wordHighlightStrong{background:rgba(14,99,156,.25)}.monaco-editor.vs-dark .wordHighlightStrong{background:rgba(0,73,114,.72)}.monaco-editor.hc-black .wordHighlightStrong{background:none}.monaco-editor .peekview-widget .head{background-color:#fff;border-top:1px solid;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.monaco-editor .peekview-widget .head .peekview-title{display:inline-block;font-size:13px;margin-left:20px;cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .filename{color:#333}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;color:hsla(0,0%,42%,.7);margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-actions{display:inline-block;position:absolute;right:2px;top:2px}.monaco-editor .peekview-widget .head .peekview-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-editor .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") 50% no-repeat}.monaco-editor .peekview-widget>.body{border-top:1px solid;border-bottom:1px solid;position:relative}.monaco-editor.vs-dark .peekview-widget .head{background-color:#1e1e1e}.monaco-editor.hc-black .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action,.monaco-editor.vs-dark .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") 50% no-repeat}.monaco-editor.vs-dark .peekview-widget .head .peekview-title .filename{color:#fff}.monaco-editor.vs-dark .peekview-widget .head .peekview-title .dirname{color:hsla(0,0%,80%,.7)}.monaco-editor.hc-black .peekview-widget .head{background-color:#0c141f;border-color:#6fc3df}.monaco-editor.hc-black .peekview-widget .head .peekview-title .filename{color:#fff}.monaco-editor.hc-black .peekview-widget .head .peekview-title .dirname{color:#fff;opacity:.6}.monaco-editor.hc-black .peekview-widget>.body{border-color:#6fc3df}.monaco-editor .zone-widget{position:absolute;z-index:3}.monaco-editor .zone-widget-arrow{width:0;height:0;border-color:transparent;border-style:solid;position:absolute}.monaco-editor .zone-widget-arrow.below{border-bottom-color:#9acd32}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;border-top-color:#9acd32;border-bottom-color:#9acd32;position:relative}.context-view .monaco-menu{min-width:130px} \ No newline at end of file diff --git a/_docs/vs/editor/editor.main.js b/_docs/vs/editor/editor.main.js deleted file mode 100644 index 16b5763e1..000000000 --- a/_docs/vs/editor/editor.main.js +++ /dev/null @@ -1,117 +0,0 @@ -/*!----------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Version: 0.8.2(59c417515cc4385a81ab1755611263b94d0071e2) - * Released under the MIT license - * https://github.com/Microsoft/vscode/blob/master/LICENSE.txt - *-----------------------------------------------------------*/ -(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||l.defaults,this.rules=v.normal,this.options.gfm&&(this.options.tables?this.rules=v.tables:this.rules=v.gfm)}function t(e,t){if(this.options=t||l.defaults,this.links=e,this.rules=_.normal,this.renderer=this.options.renderer||new n,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=_.breaks:this.rules=_.gfm:this.options.pedantic&&(this.rules=_.pedantic)}function n(e){this.options=e||{}}function i(e){this.tokens=[],this.token=null,this.options=e||l.defaults,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options}function o(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function r(e){return e.replace(/&([#\w]+);/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function s(e,t){return e=e.source,t=t||"",function n(i,o){return i?(o=o.source||o,o=o.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(i,o),n):new RegExp(e,t)}}function a(){}function u(e){for(var t,n,i=1;iAn error occured:

"+o(e.message+"",!0)+"
";throw e}}var c,d=["require","exports","vs/editor/common/editorCommon","vs/editor/common/core/range","vs/base/common/lifecycle","vs/css!vs/editor/editor.main","vs/base/common/winjs.base","vs/nls!vs/editor/editor.main","vs/nls","vs/base/common/strings","vs/base/common/errors","vs/base/browser/dom","vs/base/common/event","vs/editor/common/editorCommonExtensions","vs/platform/instantiation/common/instantiation","vs/editor/common/core/position","vs/editor/common/modes","vs/base/common/async","vs/base/common/platform","vs/platform/contextkey/common/contextkey","vs/editor/common/core/selection","vs/editor/browser/editorBrowser","vs/base/common/types","vs/platform/commands/common/commands","vs/base/browser/browser","vs/base/common/eventEmitter","vs/base/common/arrays","vs/base/common/uri","vs/base/browser/styleMutator","vs/editor/browser/editorBrowserExtensions","vs/base/common/severity","vs/base/common/keyCodes","vs/editor/browser/view/viewPart","vs/platform/platform","vs/base/browser/builder","vs/base/common/objects","vs/base/browser/mouseEvent","vs/base/browser/ui/widget","vs/editor/common/modes/languageConfigurationRegistry","vs/base/common/paths","vs/base/common/scrollable","vs/editor/common/controller/cursorCommon","vs/editor/common/config/defaultConfig","vs/platform/keybinding/common/keybinding","vs/editor/common/services/modelService","vs/editor/common/services/codeEditorService","vs/editor/common/core/editOperation","vs/platform/telemetry/common/telemetry","vs/editor/common/services/editorWorkerService","vs/base/common/actions","vs/editor/browser/view/dynamicViewOverlay","vs/editor/common/viewModel/viewEventHandler","vs/platform/message/common/message","vs/base/browser/keyboardEvent","vs/editor/common/commands/replaceCommand","vs/base/common/assert","vs/platform/configuration/common/configuration","vs/platform/actions/common/actions","vs/editor/browser/config/configuration","vs/base/browser/touch","vs/base/browser/ui/scrollbar/scrollableElement","vs/platform/contextview/browser/contextView","vs/platform/editor/common/editor","vs/editor/common/modes/nullMode","vs/base/common/network","vs/editor/common/modes/languageConfiguration","vs/platform/opener/common/opener","vs/base/common/events","vs/editor/common/services/resolverService","vs/editor/common/core/characterClassifier","vs/platform/keybinding/common/keybindingsRegistry","vs/base/browser/ui/actionbar/actionbar","vs/editor/common/model/modelLine","vs/editor/common/model/wordHelper","vs/editor/common/modes/supports/richEditBrackets","vs/base/parts/tree/browser/treeDefaults","vs/base/parts/quickopen/common/quickOpen","vs/base/common/iterator","vs/editor/common/modes/supports","vs/platform/instantiation/common/serviceCollection","vs/editor/common/services/modeService","vs/platform/markers/common/markers","vs/editor/common/core/token","vs/editor/common/core/uint","vs/editor/common/services/standaloneColorService","vs/editor/common/view/renderingContext","vs/editor/common/viewModel/prefixSumComputer","vs/base/common/filters","vs/editor/common/core/viewLineToken","vs/editor/common/core/lineTokens","vs/editor/contrib/zoneWidget/browser/peekViewWidget","vs/base/common/collections","vs/editor/contrib/referenceSearch/browser/referencesModel","vs/editor/contrib/snippet/common/snippet","vs/editor/common/model/textModel","vs/base/common/diff/diff","vs/editor/common/controller/cursorMoveOperations","vs/platform/workspace/common/workspace","vs/base/browser/ui/sash/sash","vs/base/browser/ui/aria/aria","vs/base/browser/ui/inputbox/inputBox","vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/editor/contrib/find/common/findModel","vs/base/browser/globalMouseMoveMonitor","vs/base/browser/htmlContentRenderer","vs/editor/browser/editorDom","vs/base/parts/quickopen/browser/quickOpenModel","vs/platform/keybinding/common/keybindingResolver","vs/editor/common/config/editorZoom","vs/editor/common/config/fontInfo","vs/base/common/map","vs/base/common/htmlContent","vs/base/browser/ui/highlightedlabel/highlightedLabel","vs/editor/common/modes/modesRegistry","vs/platform/configuration/common/configurationRegistry","vs/editor/common/config/commonEditorConfig","vs/base/common/idGenerator","vs/base/browser/ui/scrollbar/scrollbarArrow","vs/editor/browser/standalone/simpleServices","vs/editor/common/viewLayout/viewLineParts","vs/editor/common/viewLayout/viewLineRenderer","vs/editor/contrib/quickOpen/browser/editorQuickOpen","vs/editor/contrib/suggest/common/suggest","vs/editor/browser/codeEditor","vs/base/browser/event","vs/editor/contrib/diffNavigator/common/diffNavigator","vs/editor/common/controller/oneCursor","vs/editor/common/model/model","vs/base/browser/ui/contextview/contextview","vs/editor/common/services/editorWorkerServiceImpl","vs/editor/browser/viewParts/overviewRuler/overviewRulerImpl","vs/editor/common/viewModel/splitLinesCollection","vs/base/browser/ui/findinput/findInputCheckboxes","vs/base/browser/ui/iconLabel/iconLabel","vs/css!vs/base/browser/ui/progressbar/progressbar","vs/editor/browser/controller/mouseTarget","vs/editor/browser/view/viewLayer","vs/base/common/keybinding","vs/base/browser/ui/scrollbar/scrollbarState","vs/editor/common/modes/textToHtmlTokenizer","vs/editor/common/standalone/standaloneBase","vs/base/parts/tree/browser/treeImpl","vs/base/common/cancellation","vs/base/browser/ui/scrollbar/abstractScrollbar","vs/platform/instantiation/common/descriptors","vs/editor/common/editorAction","vs/editor/browser/standalone/colorizer","vs/editor/common/model/tokensBinaryEncoding","vs/editor/common/viewModel/viewModel","vs/editor/contrib/comment/common/blockCommentCommand","vs/editor/common/modes/snippetsRegistry","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/platform/extensions/common/extensionsRegistry","vs/base/common/marshalling","vs/editor/contrib/hover/browser/hoverOperation","vs/editor/contrib/hover/browser/hoverWidgets","vs/base/common/worker/simpleWorker","vs/base/browser/iframe","vs/editor/common/config/config","vs/platform/progress/common/progress","vs/platform/storage/common/storage","vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/editor/common/controller/textAreaState","vs/editor/contrib/find/common/findController","vs/editor/contrib/parameterHints/common/parameterHints","vs/base/common/labels","vs/editor/contrib/snippet/common/snippetController","vs/base/common/glob","vs/editor/browser/widget/codeEditorWidget","vs/editor/common/modes/monarch/monarchCommon","vs/editor/browser/widget/diffEditorWidget","vs/editor/browser/widget/embeddedCodeEditorWidget","vs/editor/common/controller/cursorDeleteOperations","vs/editor/common/controller/cursorWordOperations","vs/editor/browser/standalone/standaloneServices","vs/editor/contrib/referenceSearch/browser/referencesController","vs/base/common/comparers","vs/base/parts/quickopen/browser/quickOpenViewer","vs/base/common/json","vs/base/parts/tree/browser/tree","vs/editor/common/modes/abstractMode","vs/base/parts/tree/browser/treeDnd","vs/editor/common/modes/languageSelector","vs/editor/common/modes/languageFeatureRegistry","vs/base/parts/tree/browser/treeModel","vs/editor/common/modes/linkComputer","vs/base/parts/tree/browser/treeViewModel","vs/editor/common/modes/monarch/monarchCompile","vs/base/worker/defaultWorkerFactory","vs/editor/common/modes/monarch/monarchLexer","vs/css!vs/base/browser/builder","vs/editor/common/modes/supports/characterPair","vs/editor/common/modes/supports/inplaceReplaceSupport","vs/editor/common/modes/supports/onEnter","vs/base/browser/ui/list/rangeMap","vs/editor/common/modes/supports/electricCharacter","vs/base/common/functional","vs/editor/common/modes/supports/tokenization","vs/css!vs/base/browser/ui/actionbar/actionbar","vs/editor/common/services/abstractCodeEditorService","vs/css!vs/base/browser/ui/aria/aria","vs/editor/common/standalone/themes","vs/editor/browser/services/standaloneColorServiceImpl","vs/css!vs/base/browser/ui/checkbox/checkbox","vs/editor/browser/viewParts/lines/rangeUtil","vs/editor/common/view/viewContext","vs/base/browser/ui/checkbox/checkbox","vs/css!vs/base/browser/ui/contextview/contextview","vs/base/common/hash","vs/editor/browser/viewParts/lines/viewLine","vs/editor/common/viewLayout/viewLinesViewportData","vs/editor/common/viewLayout/whitespaceComputer","vs/editor/common/viewLayout/verticalObjects","vs/editor/common/viewLayout/linesLayout","vs/css!vs/base/browser/ui/countBadge/countBadge","vs/editor/common/model/mirrorModel2","vs/editor/common/services/editorSimpleWorker","vs/base/browser/ui/countBadge/countBadge","vs/editor/contrib/caretOperations/common/moveCaretCommand","vs/css!vs/base/browser/ui/findinput/findInput","vs/editor/contrib/comment/common/lineCommentCommand","vs/css!vs/base/browser/ui/findinput/findInputCheckboxes","vs/editor/contrib/find/common/findState","vs/editor/contrib/find/common/replaceAllCommand","vs/editor/contrib/find/common/replacePattern","vs/editor/contrib/folding/common/folding","vs/editor/contrib/folding/common/indentFoldStrategy","vs/editor/contrib/format/common/formatCommand","vs/css!vs/base/browser/ui/iconLabel/iconlabel","vs/editor/contrib/referenceSearch/browser/referenceSearch","vs/editor/contrib/inPlaceReplace/common/inPlaceReplaceCommand","vs/editor/contrib/linesOperations/common/copyLinesCommand","vs/editor/contrib/linesOperations/common/deleteLinesCommand","vs/editor/contrib/linesOperations/common/moveLinesCommand","vs/editor/contrib/linesOperations/common/sortLinesCommand","vs/editor/contrib/quickFix/browser/quickFixWidget","vs/css!vs/base/browser/ui/inputbox/inputBox","vs/editor/contrib/smartSelect/common/tokenTree","vs/editor/contrib/snippet/browser/snippet","vs/editor/contrib/snippet/common/snippetParser","vs/css!vs/base/browser/ui/leftRightWidget/leftRightWidget","vs/editor/contrib/snippet/common/snippetVariables","vs/editor/contrib/suggest/common/completionModel","vs/base/browser/ui/leftRightWidget/leftRightWidget","vs/nls!vs/base/browser/ui/actionbar/actionbar","vs/css!vs/base/browser/ui/list/list","vs/css!vs/base/browser/ui/menu/menu","vs/base/common/marked/marked","vs/base/browser/ui/menu/menu","vs/nls!vs/base/browser/ui/aria/aria","vs/base/browser/ui/progressbar/progressbar","vs/nls!vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/browser/ui/findinput/findInputCheckboxes","vs/css!vs/base/browser/ui/sash/sash","vs/nls!vs/base/browser/ui/inputbox/inputBox","vs/base/common/callbackList","vs/base/browser/ui/findinput/findInput","vs/nls!vs/base/common/json","vs/css!vs/base/browser/ui/scrollbar/media/scrollbars","vs/nls!vs/base/common/keybinding","vs/editor/browser/editor.all","vs/nls!vs/base/common/severity","vs/base/browser/ui/list/listView","vs/editor/contrib/quickFix/browser/lightBulbWidget","vs/nls!vs/base/parts/quickopen/browser/quickOpenModel","vs/nls!vs/base/parts/quickopen/browser/quickOpenWidget","vs/nls!vs/base/parts/tree/browser/treeDefaults","vs/base/browser/ui/list/listWidget","vs/base/parts/tree/browser/treeView","vs/css!vs/base/browser/ui/selectBox/selectBox","vs/base/parts/quickopen/browser/quickOpenWidget","vs/editor/contrib/quickOpen/browser/quickOpenEditorWidget","vs/nls!vs/editor/common/config/commonEditorConfig","vs/nls!vs/editor/common/config/defaultConfig","vs/base/browser/ui/selectBox/selectBox","vs/css!vs/base/parts/quickopen/browser/quickopen","vs/nls!vs/editor/common/controller/cursor","vs/nls!vs/editor/common/model/textModelWithTokens","vs/nls!vs/editor/common/modes/modesRegistry","vs/nls!vs/editor/common/modes/snippetsRegistry","vs/nls!vs/editor/common/services/bulkEdit","vs/editor/common/services/bulkEdit","vs/nls!vs/editor/common/services/modeServiceImpl","vs/nls!vs/editor/common/services/modelServiceImpl","vs/nls!vs/editor/contrib/bracketMatching/common/bracketMatching","vs/nls!vs/editor/contrib/caretOperations/common/caretOperations","vs/nls!vs/editor/contrib/caretOperations/common/transpose","vs/nls!vs/editor/contrib/clipboard/browser/clipboard","vs/nls!vs/editor/contrib/comment/common/comment","vs/nls!vs/editor/contrib/contextmenu/browser/contextmenu","vs/nls!vs/editor/contrib/find/browser/findWidget","vs/nls!vs/editor/contrib/find/common/findController","vs/nls!vs/editor/contrib/folding/browser/folding","vs/nls!vs/editor/contrib/format/common/formatActions","vs/nls!vs/editor/contrib/goToDeclaration/browser/goToDeclaration","vs/nls!vs/editor/contrib/gotoError/browser/gotoError","vs/nls!vs/editor/contrib/hover/browser/hover","vs/nls!vs/editor/contrib/hover/browser/modesContentHover","vs/nls!vs/editor/contrib/inPlaceReplace/common/inPlaceReplace","vs/nls!vs/editor/contrib/inspectTokens/browser/inspectTokens","vs/nls!vs/editor/contrib/linesOperations/common/linesOperations","vs/nls!vs/editor/contrib/links/browser/links","vs/nls!vs/editor/contrib/multicursor/common/multicursor","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHints","vs/nls!vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/nls!vs/editor/contrib/quickFix/browser/quickFix","vs/nls!vs/editor/contrib/quickOpen/browser/gotoLine","vs/nls!vs/editor/contrib/quickOpen/browser/quickCommand","vs/nls!vs/editor/contrib/quickOpen/browser/quickOutline","vs/nls!vs/editor/contrib/referenceSearch/browser/referenceSearch","vs/nls!vs/editor/contrib/referenceSearch/browser/referencesController","vs/nls!vs/editor/contrib/referenceSearch/browser/referencesWidget","vs/nls!vs/editor/contrib/rename/browser/rename","vs/nls!vs/editor/contrib/rename/browser/renameInputField","vs/editor/contrib/rename/browser/renameInputField","vs/nls!vs/editor/contrib/rename/common/rename","vs/nls!vs/editor/contrib/smartSelect/common/smartSelect","vs/nls!vs/editor/contrib/suggest/browser/suggestController","vs/nls!vs/editor/contrib/suggest/browser/suggestWidget","vs/nls!vs/editor/contrib/toggleTabFocusMode/common/toggleTabFocusMode","vs/nls!vs/editor/contrib/zoneWidget/browser/peekViewWidget","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/extensions/common/extensionsRegistry","vs/nls!vs/platform/keybinding/common/abstractKeybindingService","vs/nls!vs/platform/message/common/message","vs/platform/contextview/browser/contextMenuHandler","vs/platform/contextview/browser/contextMenuService","vs/css!vs/base/parts/tree/browser/tree","vs/css!vs/editor/browser/standalone/media/standalone-tokens","vs/css!vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/css!vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/css!vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/browser/viewParts/glyphMargin/glyphMargin","vs/css!vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/contrib/smartSelect/common/tokenSelectionSupport","vs/css!vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/contrib/links/common/links","vs/css!vs/editor/browser/viewParts/lines/viewLines","vs/css!vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/css!vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/css!vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/services/codeEditorServiceImpl","vs/editor/browser/view/viewController","vs/css!vs/editor/browser/viewParts/rulers/rulers","vs/editor/common/controller/textAreaHandler","vs/editor/common/core/editorState","vs/editor/common/model/textModelSearch","vs/css!vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/css!vs/editor/browser/viewParts/selections/selections","vs/editor/common/commands/shiftCommand","vs/editor/common/controller/cursorColumnSelection","vs/css!vs/editor/browser/viewParts/viewCursors/viewCursors","vs/css!vs/editor/browser/widget/media/diffEditor","vs/editor/common/controller/cursorTypeOperations","vs/css!vs/editor/browser/widget/media/editor","vs/css!vs/editor/browser/widget/media/tokens","vs/editor/common/controller/cursorCollection","vs/editor/common/controller/cursor","vs/editor/common/model/textModelWithTokens","vs/editor/common/model/textModelWithMarkers","vs/editor/common/model/textModelWithDecorations","vs/editor/common/model/editableTextModel","vs/css!vs/editor/contrib/bracketMatching/browser/bracketMatching","vs/editor/common/modes/editorModeContext","vs/css!vs/editor/contrib/clipboard/browser/clipboard","vs/css!vs/editor/contrib/codelens/browser/codelens","vs/editor/common/services/webWorker","vs/editor/common/view/overviewZoneManager","vs/css!vs/editor/contrib/find/browser/findOptionsWidget","vs/editor/common/viewLayout/editorLayoutProvider","vs/css!vs/editor/contrib/find/browser/findWidget","vs/editor/common/viewModel/characterHardWrappingLineMapper","vs/css!vs/editor/contrib/folding/browser/folding","vs/css!vs/editor/contrib/goToDeclaration/browser/goToDeclaration","vs/css!vs/editor/contrib/gotoError/browser/gotoError","vs/css!vs/editor/contrib/hover/browser/hover","vs/editor/browser/controller/mouseHandler","vs/editor/browser/controller/pointerHandler","vs/css!vs/editor/contrib/iPadShowKeyboard/browser/iPadShowKeyboard","vs/editor/browser/view/viewOutgoingEvents","vs/editor/browser/viewLayout/scrollManager","vs/editor/browser/viewLayout/layoutProvider","vs/editor/browser/viewParts/contentWidgets/contentWidgets","vs/editor/browser/viewParts/currentLineHighlight/currentLineHighlight","vs/editor/browser/viewParts/currentLineMarginHighlight/currentLineMarginHighlight","vs/editor/browser/viewParts/decorations/decorations","vs/css!vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace","vs/editor/browser/viewParts/indentGuides/indentGuides","vs/editor/browser/viewParts/lineNumbers/lineNumbers","vs/editor/browser/viewParts/linesDecorations/linesDecorations","vs/editor/browser/viewParts/margin/margin","vs/editor/browser/viewParts/marginDecorations/marginDecorations","vs/editor/browser/viewParts/overlayWidgets/overlayWidgets","vs/editor/browser/viewParts/overviewRuler/overviewRuler","vs/editor/browser/viewParts/rulers/rulers","vs/editor/browser/viewParts/scrollDecoration/scrollDecoration","vs/editor/browser/viewParts/selections/selections","vs/editor/browser/viewParts/viewZones/viewZones","vs/editor/common/viewModel/viewModelCursors","vs/editor/common/viewModel/viewModelDecorations","vs/editor/common/viewModel/viewModelImpl","vs/editor/contrib/find/common/findDecorations","vs/css!vs/editor/contrib/inspectTokens/browser/inspectTokens","vs/editor/contrib/find/browser/findOptionsWidget","vs/editor/contrib/folding/common/foldingModel","vs/platform/actions/common/menu","vs/css!vs/editor/contrib/links/browser/links","vs/css!vs/editor/contrib/parameterHints/browser/parameterHints","vs/platform/files/common/files","vs/css!vs/editor/contrib/quickFix/browser/lightBulbWidget","vs/editor/common/commonCodeEditor","vs/platform/instantiation/common/instantiationService","vs/platform/keybinding/common/abstractKeybindingService","vs/css!vs/editor/contrib/quickOpen/browser/gotoLine","vs/css!vs/editor/contrib/quickOpen/browser/quickOutline","vs/platform/contextkey/browser/contextKeyService","vs/platform/markers/common/markerService","vs/css!vs/editor/contrib/referenceSearch/browser/referencesWidget","vs/css!vs/editor/contrib/rename/browser/renameInputField","vs/platform/opener/browser/openerService","vs/css!vs/editor/contrib/snippet/browser/snippet","vs/editor/contrib/hover/browser/modesGlyphHover","vs/css!vs/editor/contrib/suggest/browser/suggest","vs/css!vs/editor/contrib/wordHighlighter/browser/wordHighlighter","vs/css!vs/editor/contrib/zoneWidget/browser/peekViewWidget","vs/css!vs/editor/contrib/zoneWidget/browser/zoneWidget","vs/editor/common/services/modelServiceImpl","vs/editor/contrib/iPadShowKeyboard/browser/iPadShowKeyboard","vs/editor/contrib/multicursor/browser/menuPreventer","vs/css!vs/platform/contextview/browser/contextMenuHandler","vs/editor/browser/config/charWidthReader","vs/editor/browser/config/elementSizeObserver","vs/editor/browser/controller/input/textAreaWrapper","vs/base/common/decorators","vs/editor/browser/controller/keyboardHandler","vs/editor/browser/view/viewOverlays","vs/editor/browser/viewParts/lines/viewLines","vs/editor/browser/viewParts/viewCursors/viewCursor","vs/editor/browser/viewParts/viewCursors/viewCursors","vs/editor/common/services/languagesRegistry","vs/editor/common/services/modeServiceImpl","vs/platform/configuration/common/model","vs/base/common/scorer","vs/editor/browser/view/viewEventDispatcher","vs/base/common/set","vs/base/common/history","vs/base/common/stopwatch","vs/base/browser/ui/list/rowCache","vs/editor/common/commands/trimTrailingWhitespaceCommand","vs/editor/contrib/bracketMatching/common/bracketMatching","vs/editor/contrib/caretOperations/common/caretOperations","vs/editor/contrib/caretOperations/common/transpose","vs/editor/contrib/clipboard/browser/clipboard","vs/editor/contrib/codelens/common/codelens","vs/editor/contrib/codelens/browser/codelens","vs/editor/contrib/comment/common/comment","vs/editor/contrib/contextmenu/browser/contextmenu","vs/base/browser/ui/scrollbar/scrollbarVisibilityController","vs/editor/contrib/find/browser/findWidget","vs/editor/contrib/find/browser/find","vs/editor/contrib/folding/browser/folding","vs/editor/contrib/format/common/format","vs/editor/contrib/format/common/formatActions","vs/editor/contrib/goToDeclaration/common/goToDeclaration","vs/editor/contrib/gotoError/browser/gotoError","vs/editor/contrib/hover/common/hover","vs/editor/contrib/hover/browser/modesContentHover","vs/editor/contrib/hover/browser/hover","vs/editor/contrib/inPlaceReplace/common/inPlaceReplace","vs/editor/contrib/inspectTokens/browser/inspectTokens","vs/editor/contrib/linesOperations/common/linesOperations","vs/editor/contrib/links/browser/links","vs/editor/contrib/multicursor/common/multicursor","vs/base/common/diff/diffChange","vs/editor/contrib/parameterHints/browser/parameterHintsWidget","vs/editor/contrib/parameterHints/browser/parameterHints","vs/editor/contrib/quickFix/common/quickFix","vs/editor/contrib/quickFix/common/quickFixModel","vs/editor/contrib/quickFix/browser/quickFix","vs/editor/common/commands/surroundSelectionCommand","vs/editor/contrib/quickOpen/browser/gotoLine","vs/editor/contrib/quickOpen/browser/quickCommand","vs/editor/contrib/quickOpen/common/quickOpen","vs/editor/contrib/quickOpen/browser/quickOutline","vs/editor/contrib/referenceSearch/common/referenceSearch","vs/editor/contrib/rename/common/rename","vs/editor/contrib/rename/browser/rename","vs/editor/contrib/smartSelect/common/smartSelect","vs/base/common/graph","vs/editor/contrib/suggest/browser/tabCompletion","vs/base/browser/ui/octiconLabel/octiconLabel","vs/editor/contrib/suggest/browser/suggestWidget","vs/editor/contrib/suggest/common/suggestModel","vs/editor/contrib/suggest/browser/suggestController","vs/editor/contrib/toggleTabFocusMode/common/toggleTabFocusMode","vs/editor/contrib/wordHighlighter/common/wordHighlighter","vs/platform/contextview/browser/contextViewService","vs/platform/theme/common/themes","vs/editor/browser/viewParts/overviewRuler/decorationsOverviewRuler","vs/editor/browser/view/viewImpl","vs/base/browser/ui/scrollbar/horizontalScrollbar","vs/base/browser/ui/scrollbar/verticalScrollbar","vs/editor/common/diff/diffComputer","vs/editor/browser/standalone/standaloneCodeEditor","vs/base/common/mime","vs/editor/common/model/editStack","vs/editor/common/model/indentRanges","vs/editor/common/model/indentationGuesser","vs/editor/browser/standalone/standaloneEditor","vs/editor/browser/standalone/standaloneLanguages","vs/editor/contrib/referenceSearch/browser/referencesWidget","vs/editor/common/model/tokenIterator","vs/editor/contrib/goToDeclaration/browser/goToDeclaration","vs/base/common/winjs.base.raw","vs/base/common/marked/raw.marked","vs/editor/edcore.main"],h=function(e){for(var t=[],n=0,i=e.length;n0?t.insertBefore(e,n[n.length-1]):t.appendChild(e)},e.prototype.createLinkTag=function(e,t,n,i){var o=this,r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("data-name",e);var s=function(){return o._onLoad(e,n)},a=function(t){return o._onLoadError(e,i,t)};return this.attachListeners(e,r,s,a),r.setAttribute("href",t),r},e.prototype._linkTagExists=function(e,t){var n,i,o,r,s=document.getElementsByTagName("link");for(n=0,i=s.length;n=t.length&&e.substr(0,t.length)===t},e.pathOf=function(e){var t=e.lastIndexOf("/");return t!==-1?e.substr(0,t+1):""},e.joinPaths=function(t,n){function i(t,n){return e.startsWith(t,n)?Math.max(n.length,t.indexOf("/",n.length)):0}function o(e,t){if("./"!==t){if("../"===t){var n=e.length>0?e[e.length-1]:null;if(n&&"/"===n)return;if(n&&"../"!==n)return void e.pop()}e.push(t)}}function r(e,t){for(;t.length>0;){var n=t.indexOf("/"),i=n>=0?t.substring(0,n+1):t;t=n>=0?t.substring(n+1):"",o(e,i)}}var s=0;s=s||i(t,"//"),s=s||i(t,"http://"),s=s||i(t,"https://");var a=[];return r(a,t.substr(s)),n.length>0&&"/"===n.charAt(0)&&(a=[]),r(a,n),t.substring(0,s)+a.join("")},e.commonPrefix=function(e,t){for(var n=Math.min(e.length,t.length),i=0;i0&&(" "===r.charAt(r.length-1)||"\t"===r.charAt(r.length-1));)r=r.substring(0,r.length-1);return'"'!==r.charAt(r.length-1)&&"'"!==r.charAt(r.length-1)||(r=r.substring(0,r.length-1)),e.startsWith(r,"data:")||e.startsWith(r,"http://")||e.startsWith(r,"https://")||(r=n(r)),"url("+r+")"})},e.rewriteUrls=function(t,n,i){return this._replaceURL(i,function(i){var o=e.joinPaths(e.pathOf(t),i);return e.relativePath(n,o)})},e.rewriteOrInlineUrls=function(n,i,o,r,s,a){var u=require.nodeRequire("fs"),l=require.nodeRequire("path");return this._replaceURL(r,function(r){if(/\.(svg|png)$/.test(r)){var c=l.join(l.dirname(n),r),d=u.readFileSync(c);if(d.length=0&&console.warn("CSS INLINING IMAGE AT "+c+" MORE THAN ONCE. CONSIDER CONSOLIDATING CSS RULES"),t.cssInlinedResources.push(h);var p=/\.svg$/.test(r)?"image/svg+xml":"image/png",f=";base64,"+d.toString("base64");if(!s&&/\.svg$/.test(r)){var g=d.toString().replace(/"/g,"'").replace(//g,"%3E").replace(/&/g,"%26").replace(/#/g,"%23").replace(/\s+/g," "),m=","+g;m.length=0,l=Array.prototype.slice,c=function(){function e(){this.localize=i}return e.prototype.setPseudoTranslation=function(e){u=e},e.prototype.create=function(e,t){return{localize:o(t[e])}},e.prototype.load=function(t,r,u,l){if(l=l||{},t&&0!==t.length){var c=void 0;if(s&&s.getString)c=".nls.keys",r([t+c],function(e){u({localize:function(t,n){if(!e[t])return"NLS error: unknown key "+t;var i=e[t].keys;if(n>=i.length)return"NLS error unknow index "+n;var o=i[n],r=[];r[0]=t+"_"+o;for(var a=0;a=t.end||t.start>=e.end)return null;var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?null:{start:n,end:i}}function i(e){return e.end-e.start<=0}function o(e,t){var n=[],o={start:e.start,end:Math.min(t.start,e.end)},r={start:Math.max(t.end,e.start),end:e.end};return i(o)||n.push(o),i(r)||n.push(r),n}function r(e,t){for(var n=e.start;n=s.range.end)){if(e.end0?l/s:0,d=s>r;if(d){if(e=Math.floor(r*c),t=Math.floor(a*c),el&&(t=l-e),t<0&&(t=0)}}else e=l,t=0;this._computedAvailableSize=Math.round(u),this._computedRepresentableSize=Math.round(l),this._computedRatio=c,this._computedIsNeeded=d,this._computedSliderSize=Math.round(e),this._computedSliderPosition=Math.round(t)},e.prototype.getArrowSize=function(){return this._arrowSize},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.convertSliderPositionToScrollPosition=function(e){return e/this._computedRatio},e.prototype.validateScrollPosition=function(e){return e=Math.round(e),e=Math.max(e,0),e=Math.min(e,this._scrollSize-this._visibleSize)},e}();t.ScrollbarState=i}),define(d[26],h([0,1]),function(e,t){"use strict";function n(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function i(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),e.length!==t.length)return!1;for(var i=0,o=e.length;i0))return r;o=r-1}}return-(i+1)}function r(e,t){var n=0,i=e.length;if(0===i)return 0;for(;n-1&&e.splice(n,1)}}t.tail=n,t.equals=i,t.binarySearch=o,t.findFirst=r,t.top=s,t.coalesce=a,t.move=u,t.isFalsyOrEmpty=l,t.distinct=c,t.uniqueFilter=d,t.firstIndex=h,t.first=p,t.commonPrefixLength=f,t.flatten=g,t.range=m,t.fill=v,t.index=_,t.insert=y}),define(d[55],h([0,1]),function(e,t){"use strict";function n(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}t.ok=n}),define(d[91],h([0,1]),function(e,t){"use strict";function n(e){var t=[];for(var n in e)s.call(e,n)&&t.push(e[n]);return t}function i(e,t){for(var n in e)if(s.call(e,n)){var i=t({key:n,value:e[n]},function(){delete e[n]});if(i===!1)return}}function o(e,t){return!!s.call(e,t)&&(delete e[t],!0)}function r(e,t){for(var n=Object.create(null),i=0,o=e;i0||this.m_modifiedCount>0)&&this.m_changes.push(new n.DiffChange(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}(),l=Object.prototype.hasOwnProperty,c=function(){function e(e,t,n){void 0===n&&(n=null),this.OriginalSequence=e,this.ModifiedSequence=t,this.ContinueProcessingPredicate=n,this.m_originalIds=[],this.m_modifiedIds=[],this.m_forwardHistory=[],this.m_reverseHistory=[],this.ComputeUniqueIdentifiers()}return e.prototype.ComputeUniqueIdentifiers=function(){var e=this.OriginalSequence.getLength(),t=this.ModifiedSequence.getLength();this.m_originalIds=new Array(e),this.m_modifiedIds=new Array(t);var n,i={},o=1;for(n=0;n=e&&o>=i&&this.ElementsAreEqual(t,o);)t--,o--;if(e>t||i>o){var a=void 0;return i<=o?(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),a=[new n.DiffChange(e,0,i,o-i+1)]):e<=t?(r.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[new n.DiffChange(e,t-e+1,i,0)]):(r.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r.Assert(i===o+1,"modifiedStart should only be one more than modifiedEnd"),a=[]),a}var u=[0],l=[0],c=this.ComputeRecursionPoint(e,t,i,o,u,l,s),d=u[0],h=l[0];if(null!==c)return c;if(!s[0]){var p=this.ComputeDiffRecursive(e,d,i,h,s),f=[];return f=s[0]?[new n.DiffChange(d+1,t-(d+1)+1,h+1,o-(h+1)+1)]:this.ComputeDiffRecursive(d+1,t,h+1,o,s),this.ConcatenateChanges(p,f)}return[new n.DiffChange(e,t-e+1,i,o-i+1)]},e.prototype.WALKTRACE=function(e,t,i,o,r,s,a,l,c,d,h,p,f,g,m,v,_,y){var C,b=null,w=null,S=new u,E=t,L=i,N=f[0]-v[0]-o,T=Number.MIN_VALUE,x=this.m_forwardHistory.length-1;do C=N+e,C===E||C=0&&(c=this.m_forwardHistory[x],e=c[0],E=1,L=c.length-1);while(--x>=-1);if(b=S.getReverseChanges(),y[0]){var M=f[0]+1,I=v[0]+1;if(null!==b&&b.length>0){var D=b[b.length-1];M=Math.max(M,D.getOriginalEnd()),I=Math.max(I,D.getModifiedEnd())}w=[new n.DiffChange(M,p-M+1,I,m-I+1)]}else{S=new u,E=s,L=a,N=f[0]-v[0]-l,T=Number.MAX_VALUE,x=_?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do C=N+r,C===E||C=d[C+1]?(h=d[C+1]-1,g=h-N-l,h>T&&S.MarkNextChange(),T=h+1,S.AddOriginalElement(h+1,g+1),N=C+1-r):(h=d[C-1],g=h-N-l,h>T&&S.MarkNextChange(),T=h,S.AddModifiedElement(h+1,g+1),N=C-1-r),x>=0&&(d=this.m_reverseHistory[x],r=d[0],E=1,L=d.length-1);while(--x>=-1);w=S.getChanges()}return this.ConcatenateChanges(b,w)},e.prototype.ComputeRecursionPoint=function(e,t,i,o,r,u,l){var c,d,h,p=0,f=0,g=0,m=0;e--,i--,r[0]=0,u[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var v=t-e+(o-i),_=v+1,y=new Array(_),C=new Array(_),b=o-i,w=t-e,S=e-i,E=t-o,L=w-b,N=L%2===0;y[b]=e,C[w]=t,l[0]=!1;var T,x;for(h=1;h<=v/2+1;h++){var M=0,I=0;for(p=this.ClipDiagonalBound(b-h,h,b,_),f=this.ClipDiagonalBound(b+h,h,b,_),T=p;T<=f;T+=2){for(c=T===p||TM+I&&(M=c,I=d),!N&&Math.abs(T-w)<=h-1&&c>=C[T])return r[0]=c,u[0]=d,x<=C[T]&&a>0&&h<=a+1?this.WALKTRACE(b,p,f,S,w,g,m,E,y,C,c,t,r,d,o,u,N,l):null}var D=(M-e+(I-i)-h)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(M,this.OriginalSequence,D))return l[0]=!0,r[0]=M,u[0]=I,D>0&&a>0&&h<=a+1?this.WALKTRACE(b,p,f,S,w,g,m,E,y,C,c,t,r,d,o,u,N,l):(e++,i++,[new n.DiffChange(e,t-e+1,i,o-i+1)]);for(g=this.ClipDiagonalBound(w-h,h,w,_),m=this.ClipDiagonalBound(w+h,h,w,_),T=g;T<=m;T+=2){for(c=T===g||T=C[T+1]?C[T+1]-1:C[T-1],d=c-(T-w)-E,x=c;c>e&&d>i&&this.ElementsAreEqual(c,d);)c--,d--;if(C[T]=c,N&&Math.abs(T-b)<=h&&c<=y[T])return r[0]=c,u[0]=d,x>=y[T]&&a>0&&h<=a+1?this.WALKTRACE(b,p,f,S,w,g,m,E,y,C,c,t,r,d,o,u,N,l):null}if(h<=a){var R=new Array(f-p+2);R[0]=b-p+1,s.Copy(y,p,R,1,f-p+1),this.m_forwardHistory.push(R),R=new Array(m-g+2),R[0]=w-g+1,s.Copy(C,g,R,1,m-g+1),this.m_reverseHistory.push(R)}}return this.WALKTRACE(b,p,f,S,w,g,m,E,y,C,c,t,r,d,o,u,N,l)},e.prototype.ConcatenateChanges=function(e,t){var n=[],i=null;return 0===e.length||0===t.length?t.length>0?t:e:this.ChangesOverlap(e[e.length-1],t[0],n)?(i=new Array(e.length+t.length-1),s.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],s.Copy(t,1,i,e.length,t.length-1),i):(i=new Array(e.length+t.length),s.Copy(e,0,i,0,e.length),s.Copy(t,0,i,e.length,t.length),i)},e.prototype.ChangesOverlap=function(e,t,i){if(r.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),r.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 o=e.originalStart,s=e.originalLength,a=e.modifiedStart,u=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(s=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(u=t.modifiedStart+t.modifiedLength-e.modifiedStart),i[0]=new n.DiffChange(o,s,a,u),!0}return i[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e>>0;return(e|n)>>>0}var o;!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.MAX_VALUE=109]="MAX_VALUE"}(o=t.KeyCode||(t.KeyCode={}));var r=function(){function e(e,t){this._fromKeyCode=e,this._toKeyCode=t}return e.prototype.fromKeyCode=function(e){return this._fromKeyCode[e]},e.prototype.toKeyCode=function(e){return this._toKeyCode.hasOwnProperty(e)?this._toKeyCode[e]:0},e}();t.Mapping=r;var s=n(function(e){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",e[16]="UpArrow",e[17]="RightArrow",e[18]="DownArrow",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[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]=";",e[81]="=",e[82]=",",e[83]="-",e[84]=".",e[85]="/",e[86]="`",e[87]="[",e[88]="\\",e[89]="]",e[90]="'",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["\r"]=3});t.USER_SETTINGS=n(function(e){for(var t=0,n=s._fromKeyCode.length;t>>0},e.extractChordPart=function(e){return(4294901760&e)>>>16},e.hasChord=function(e){return 0!==this.extractChordPart(e)},e.hasCtrlCmd=function(e){return!!(2048&e)},e.hasShift=function(e){return!!(1024&e)},e.hasAlt=function(e){return!!(512&e)},e.hasWinCtrl=function(e){return!!(256&e)},e.isModifierKey=function(e){if((3840&e)===e)return!0;var t=this.extractKeyCode(e);return 5===t||57===t||6===t||4===t},e.extractKeyCode=function(e){return 255&e},e}();t.BinaryKeybindings=c;var d=function(){function e(e){this.value=e}return e.prototype.equals=function(e){return this.value===e.value},e.prototype.hasCtrlCmd=function(){return c.hasCtrlCmd(this.value)},e.prototype.hasShift=function(){return c.hasShift(this.value)},e.prototype.hasAlt=function(){return c.hasAlt(this.value)},e.prototype.hasWinCtrl=function(){return c.hasWinCtrl(this.value)},e.prototype.isModifierKey=function(){return c.isModifierKey(this.value)},e.prototype.getKeyCode=function(){return c.extractKeyCode(this.value)},e}();t.Keybinding=d}),define(d[4],h([0,1]),function(e,t){"use strict";function n(e){for(var t=[],i=1;ithis.limit&&this.trim(),!0},e.prototype.get=function(e){var t=this.map[e];return t?t.value:null},e.prototype.getOrSet=function(e,t){var n=this.get(e);return n?n:(this.set(e,t),t)},e.prototype.delete=function(e){var t=this.map[e];return t?(this.map[e]=void 0,this._size--,t.next?t.next.prev=t.prev:this.head=t.prev,t.prev?t.prev.next=t.next:this.tail=t.next,t.value):null},e.prototype.has=function(e){return!!this.map[e]},e.prototype.clear=function(){this.map=Object.create(null),this._size=0,this.head=null,this.tail=null},e.prototype.push=function(e){this.head&&(e.prev=this.head,this.head.next=e),this.tail||(this.tail=e),this.head=e,this.map[e.key]=e,this._size++},e.prototype.trim=function(){if(this.tail)if(this.ratio[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:a,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};v.bullet=/(?:[*+-]|\d+\.)/,v.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,v.item=s(v.item,"gm")(/bull/g,v.bullet)(),v.list=s(v.list)(/bull/g,v.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+v.def.source+")")(),v.blockquote=s(v.blockquote)("def",v.def)(),v._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",v.html=s(v.html)("comment",//)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/])*?>/)(/tag/g,v._tag)(),v.paragraph=s(v.paragraph)("hr",v.hr)("heading",v.heading)("lheading",v.lheading)("blockquote",v.blockquote)("tag","<"+v._tag)("def",v.def)(),v.normal=u({},v),v.gfm=u({},v.normal,{fences:/^ *(`{3,}|~{3,}) *(\S+)? *\n([\s\S]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/}),v.gfm.paragraph=s(v.paragraph)("(?!","(?!"+v.gfm.fences.source.replace("\\1","\\2")+"|"+v.list.source.replace("\\1","\\3")+"|")(),v.tables=u({},v.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=v,e.lex=function(t,n){var i=new e(n);return i.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var i,o,r,s,a,u,l,c,d,e=e.replace(/^ +$/gm,"");e;)if((r=this.rules.newline.exec(e))&&(e=e.substring(r[0].length),r[0].length>1&&this.tokens.push({type:"space"})),r=this.rules.code.exec(e))e=e.substring(r[0].length),r=r[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?r:r.replace(/\n+$/,"")});else if(r=this.rules.fences.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"code",lang:r[2],text:r[3]});else if(r=this.rules.heading.exec(e))e=e.substring(r[0].length),this.tokens.push({type:"heading",depth:r[1].length,text:r[2]});else if(t&&(r=this.rules.nptable.exec(e))){for(e=e.substring(r[0].length),u={type:"table",header:r[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3].replace(/\n$/,"").split("\n")},c=0;c ?/gm,""),this.token(r,t,!0),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),s=r[2],this.tokens.push({type:"list_start",ordered:s.length>1}),r=r[0].match(this.rules.item),i=!1,d=r.length,c=0;c1&&a.length>1||(e=r.slice(c+1).join("\n")+e,c=d-1)),o=i||/\n\n(?!\s*$)/.test(u),c!==d-1&&(i="\n"===u.charAt(u.length-1),o||(o=i)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(u,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(r=this.rules.html.exec(e))e=e.substring(r[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:"pre"===r[1]||"script"===r[1]||"style"===r[1],text:r[0]});else if(!n&&t&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),this.tokens.links[r[1].toLowerCase()]={href:r[2],title:r[3]};else if(t&&(r=this.rules.table.exec(e))){for(e=e.substring(r[0].length),u={type:"table",header:r[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:r[3].replace(/(?: *\| *)?\n$/,"").split("\n")},c=0;c])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:a,tag:/^|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:a,text:/^[\s\S]+?(?=[\\?(?:\s+['"]([\s\S]*?)['"])?\s*/,_.link=s(_.link)("inside",_._inside)("href",_._href)(),_.reflink=s(_.reflink)("inside",_._inside)(),_.normal=u({},_),_.pedantic=u({},_.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),_.gfm=u({},_.normal,{escape:s(_.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(_.text)("]|","~]|")("|","|https?://|")()}),_.breaks=u({},_.gfm,{br:s(_.br)("{2,}","*")(),text:s(_.gfm.text)("{2,}","*")()}),t.rules=_,t.output=function(e,n,i){var o=new t(n,i);return o.output(e)},t.prototype.output=function(e){for(var t,n,i,r,s="";e;)if(r=this.rules.escape.exec(e))e=e.substring(r[0].length),s+=r[1];else if(r=this.rules.autolink.exec(e))e=e.substring(r[0].length),"@"===r[2]?(n=":"===r[1].charAt(6)?this.mangle(r[1].substring(7)):this.mangle(r[1]),i=this.mangle("mailto:")+n):(n=o(r[1]),i=n),s+=this.renderer.link(i,null,n);else if(this.inLink||!(r=this.rules.url.exec(e))){if(r=this.rules.tag.exec(e))!this.inLink&&/^/i.test(r[0])&&(this.inLink=!1),e=e.substring(r[0].length),s+=this.options.sanitize?o(r[0]):r[0];else if(r=this.rules.link.exec(e))e=e.substring(r[0].length),this.inLink=!0,s+=this.outputLink(r,{href:r[2],title:r[3]}),this.inLink=!1;else if((r=this.rules.reflink.exec(e))||(r=this.rules.nolink.exec(e))){if(e=e.substring(r[0].length),t=(r[2]||r[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=r[0].charAt(0),e=r[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(r,t),this.inLink=!1}else if(r=this.rules.strong.exec(e))e=e.substring(r[0].length),s+=this.renderer.strong(this.output(r[2]||r[1]));else if(r=this.rules.em.exec(e))e=e.substring(r[0].length),s+=this.renderer.em(this.output(r[2]||r[1]));else if(r=this.rules.code.exec(e))e=e.substring(r[0].length),s+=this.renderer.codespan(o(r[2],!0));else if(r=this.rules.br.exec(e))e=e.substring(r[0].length),s+=this.renderer.br();else if(r=this.rules.del.exec(e))e=e.substring(r[0].length),s+=this.renderer.del(this.output(r[1]));else if(r=this.rules.text.exec(e))e=e.substring(r[0].length),s+=o(this.smartypants(r[0]));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(r[0].length),n=o(r[1]),i=n,s+=this.renderer.link(i,null,n);return s},t.prototype.outputLink=function(e,t){var n=o(t.href),i=t.title?o(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,o(e[1]))},t.prototype.smartypants=function(e){return e},t.prototype.mangle=function(e){for(var t,n="",i=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var i=this.options.highlight(e,t);null!=i&&i!==e&&(n=!0,e=i)}return t?'
'+(n?e:o(e,!0))+"\n
\n":"
"+(n?e:o(e,!0))+"\n
"},n.prototype.blockquote=function(e){return"
\n"+e+"
\n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"'+e+"\n"},n.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"\n"},n.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},n.prototype.paragraph=function(e){return"

    "+e+"

    \n"},n.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},n.prototype.tablerow=function(e){return"\n"+e+"\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td",i=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return i+e+"\n"},n.prototype.strong=function(e){return""+e+""},n.prototype.em=function(e){return""+e+""},n.prototype.codespan=function(e){return""+e+""},n.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},n.prototype.del=function(e){return""+e+""},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(r(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return""}if(0===i.indexOf("javascript:"))return""}var o='
    "},n.prototype.image=function(e,t,n){var i=''+n+'":">"},i.parse=function(e,t,n){var o=new i(t,n);return o.parse(e)},i.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var n="";this.next();)n+=this.tok();return n},i.prototype.next=function(){return this.token=this.tokens.pop()},i.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},i.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},i.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,i,o,r="",s="";for(n="",e=0;e=0,o=g.indexOf("Macintosh")>=0,r=g.indexOf("Linux")>=0,u=!0,c=navigator.language,d=c,l=!!self.QUnit}var m;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(m=t.Platform||(t.Platform={})),t._platform=m.Web,a&&(o?t._platform=m.Mac:i?t._platform=m.Windows:r&&(t._platform=m.Linux)),t.isWindows=i,t.isMacintosh=o,t.isLinux=r,t.isRootUser=s,t.isNative=a,t.isWeb=u,t.isQunit=l,t.platform=t._platform,t.language=d,t.locale=c;var v="object"==typeof self?self:global;t.globals=v,t.hasWebWorkerSupport=n,t.setTimeout=v.setTimeout.bind(v),t.clearTimeout=v.clearTimeout.bind(v),t.setInterval=v.setInterval.bind(v),t.clearInterval=v.clearInterval.bind(v)}),define(d[442],h([0,1]),function(e,t){"use strict";function n(e,t,n){if(!e||!t)return 0;var o=e+t,s=n&&n[o];if("number"==typeof s)return s;for(var a=t.length,u=e.toLowerCase(),l=t.toLowerCase(),c=0,d=0,h=0,p=function(){var n=u.indexOf(l[c],d);return n<0?(h=0,"break"):(h+=1,d===n&&(h+=5),e[n]===t[n]&&(h+=1),0===n?h+=8:r.some(function(t){return t===e[n-1]})?h+=7:i(e.charCodeAt(n))&&(h+=1),d=n+1,void c++)};c - * Special thanks to all of the contributors listed here https://github.com/joshaven/string_score - * MIT License: http://opensource.org/licenses/MIT - * - * Date: Tue Mar 1 2011 - * Updated: Tue Mar 10 2015 - */ -var r=["-","_"," ","/","\\","."];t.score=n,t.matches=o}),/*! -END THIRD PARTY -*/ -define(d[444],h([0,1]),function(e,t){"use strict";var n=function(){function e(e){void 0===e&&(e=[]),this._elements=e.slice()}return Object.defineProperty(e.prototype,"size",{get:function(){return this._elements.length},enumerable:!0,configurable:!0}),e.prototype.set=function(e){this.unset(e),this._elements.push(e)},e.prototype.contains=function(e){return this._elements.indexOf(e)>-1},e.prototype.unset=function(e){var t=this._elements.indexOf(e);t>-1&&this._elements.splice(t,1)},Object.defineProperty(e.prototype,"elements",{get:function(){return this._elements.slice()},enumerable:!0,configurable:!0}),e}();t.ArraySet=n}),define(d[445],h([0,1,444,77]),function(e,t,n,i){"use strict";var o=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=10),this._history=new n.ArraySet(e),this._limit=t,this._onChange()}return e.prototype.add=function(e){this._history.set(e),this._onChange()},e.prototype.next=function(){return this._navigator.next()?this._navigator.current():(this.last(),null)},e.prototype.previous=function(){return this._navigator.previous()?this._navigator.current():(this.first(),null)},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._onChange=function(){this._reduceToLimit(),this._navigator=new i.ArrayNavigator(this._history.elements),this._navigator.last()},e.prototype._reduceToLimit=function(){var e=this._history.elements;e.length>this._limit&&(this._history=new n.ArraySet(e.slice(e.length-this._limit)))},e}();t.HistoryNavigator=o}),define(d[446],h([0,1,18]),function(e,t,n){"use strict";var i=n.globals.performance&&"function"==typeof n.globals.performance.now,o=function(){function e(e){this._highResolution=i&&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 this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?n.globals.performance.now():(new Date).getTime()},e}();t.StopWatch=o}),define(d[9],h([0,1,110]),function(e,t,n){"use strict";function i(e){return!e||"string"!=typeof e||0===e.trim().length}function o(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r=t.length?e:t[i]})}function s(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function a(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}function u(e,t){void 0===t&&(t=" ");var n=l(e,t);return c(n,t)}function l(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0,o=-1;(o=e.indexOf(t,i))===i;)i+=n;return e.substring(i)}function c(e,t){if(!e||!t)return e;var n=t.length,i=e.length;if(0===n||0===i)return e;for(var o=i,r=-1;;){if(r=e.lastIndexOf(t,o-1),r===-1||r+n!==o)break;if(0===r)return"";o=r}return e.substring(0,o)}function d(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function h(e){return e.replace(/\*/g,"")}function p(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t}function g(e,t,n){void 0===n&&(n=0);var i=e.indexOf(t,n);return i<0&&(n>0&&(e=e.substr(n)),t=a(t),i=e.search(new RegExp(t,"i"))),i}function m(e,t,n){if(void 0===n&&(n={}),""===e)throw new Error("Cannot create regex from empty string");t||(e=e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")),n.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return n.global&&(i+="g"),n.matchCase||(i+="i"),n.multiline&&(i+="m"),new RegExp(e,i)}function v(e){if("^"===e.source||"^$"===e.source||"$"===e.source)return!1;var t=e.exec("");return t&&0===e.lastIndex}function _(e){if(!t.canNormalize||!e)return e;var n=z.get(e);if(n)return n;var i;return i=U.test(e)?e.normalize("NFC"):e,z.set(e,i),i}function y(e){for(var t=0,n=e.length;t=0;n--){var i=e.charCodeAt(n);if(32!==i&&9!==i)return n}return-1}function w(e,t){return et?1:0}function S(e,t){for(var n=Math.min(e.length,t.length),i=0;it.length?1:0}function E(e){return e>=97&&e<=122||e>=65&&e<=90}function L(e,t){var n=e.length,i=t.length;if(n!==i)return!1;for(var o=0;o=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function k(e,t,n){void 0===n&&(n=4);var i=Math.abs(e.length-t.length);if(i>n)return 0;var o,r,s=[],a=[];for(o=0;o=0;r--)if(o+=i[r].length,o>n){i.splice(0,r);break}return i.join(t.empty).replace(/^\s/,t.empty)}function A(e){return e&&(e=e.replace(q,""),e=e.replace(G,""),e=e.replace(Y,"")),e}function W(e){return e&&e.length>0&&65279===e.charCodeAt(0)}function F(e,t,n){var i=e.length+t.length;return i>n&&(e="..."+e.substr(i-n)),e+=t.length>n?t.substr(t.length-n):t}function V(e){return btoa(encodeURIComponent(e))}function H(e,t){for(var n="",i=0;ir.length)return 1}return 0}function l(e,t,i,o,r,s){var l=i.getLabel(e),c=i.getLabel(t),d=u(l,c,o);if(d)return d;var h=n.score(l,o,s),p=n.score(c,o,s);if(h!==p)return h>p?-1:1;var f=i.getResourcePath(e),g=i.getResourcePath(t);if(f&&g){var m=n.score(f,o,s),v=n.score(g,o,s);if(m!==v)return m>v?-1:1}return l.length!==c.length?l.length0?[{start:0,end:t.length}]:[]}function a(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return n===-1?null:[{start:n,end:n+e.length}]}function u(e,t){return l(e.toLowerCase(),t.toLowerCase(),0,0)}function l(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]===t[i]){var o=null;if(o=l(e,t,n+1,i+1))return g({start:i,end:i+1},o)}return l(e,t,n,i+1)}function c(e){return 97<=e&&e<=122}function d(e){return 65<=e&&e<=90}function h(e){return 48<=e&&e<=57}function p(e){return 32===e||9===e||10===e||13===e}function f(e){return c(e)||d(e)||h(e)}function g(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function m(e,t){for(var n=t;n0&&!f(e.charCodeAt(n-1)))return n}return e.length}function v(e,t,n,i){if(n===e.length)return[];if(i===t.length)return null;if(e[n]!==t[i].toLowerCase())return null;var o=null,r=i+1;for(o=v(e,t,n+1,i+1);!o&&(r=m(t,r)).6}function C(e){var t=e.upperPercent,n=e.lowerPercent,i=e.alphaPercent,o=e.numericPercent;return n>.2&&t<.8&&i>.6&&o<.2}function b(e){for(var t=0,n=0,i=0,o=0,r=0;r60)return null;var n=_(t);if(!C(n)){if(!y(n))return null;t=t.toLowerCase()}for(var i=null,o=0;o0&&p(e.charCodeAt(n-1)))return n}return e.length}function N(e,i,o){if(void 0===o&&(o=!1),"string"!=typeof e||"string"!=typeof i)return null;var r=M.get(e);r||(r=new RegExp(n.convertSimple2RegExpPattern(e),"i"),M.set(e,r));var s=r.exec(i);return s?[{start:s.index,end:s.index+s[0].length}]:o?x(e,i):t.fuzzyContiguousFilter(e,i)}t.or=o,t.and=r,t.matchesStrictPrefix=function(e,t){return s(!1,e,t)},t.matchesPrefix=function(e,t){return s(!0,e,t)},t.matchesContiguousSubString=a,t.matchesSubString=u,t.matchesCamelCase=w,t.matchesWords=S;var T;!function(e){e[e.Contiguous=0]="Contiguous",e[e.Separate=1]="Separate"}(T=t.SubstringMatching||(t.SubstringMatching={})),t.fuzzyContiguousFilter=o(t.matchesPrefix,w,a);var x=o(t.matchesPrefix,w,u),M=new i.BoundedLinkedMap(1e4);t.matchesFuzzy=N}),define(d[39],h([0,1,18,26,9]),function(e,t,n,i,o){"use strict";function r(e,r){for(var s=o.rtrim(c(e),t.sep),a=o.rtrim(c(r),t.sep),u=n.isLinux?s:s.toLowerCase(),l=n.isLinux?a:a.toLowerCase(),d=u.split(t.sep),h=l.split(t.sep),p=0,f=Math.min(d.length,h.length);p0)&&".."!==g&&(c=f===-1?"":c.slice(0,f),u=!0)}else d(e,a,p,".")&&(s||c||p=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))return i=e.charCodeAt(2),47===i||92===i?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(s!==-1)for(s+=3;s0){var o=e.charCodeAt(e.length-1);if(47!==o&&92!==o){var r=i.charCodeAt(0);47!==r&&92!==r&&(e+=t.sep)}}e+=i}return c(e)},t.isUNC=p,t.makePosixAbsolute=g,t.isEqualOrParent=m;var b=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,w=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=v,t.isAbsoluteRegex=/^((\/|[a-zA-Z]:\\)[^\(\)<>\\'\"\[\]]+)/,t.isAbsolute=_}),define(d[167],h([0,1,26,9,39,110]),function(e,t,n,i,o,r){"use strict";function s(e){switch(e){case 0:return"";case 1:return S+"*?";default:return"(?:"+w+"|"+S+"+"+w+"|"+w+S+"+)*?"}}function a(e,t){if(!e)return[];for(var n,i=[],o=!1,r=!1,s="",a=0;a0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return s!==-1?i[s]:null};a.basenames=o,a.patterns=i,a.allBasenames=o;var u=e.filter(function(e){return!e.basenames});return u.push(a),u}var w="[/\\\\]",S="[^/\\\\]",E=/\//g;t.splitGlobAware=a;var L=/^\*\*\/\*\.[\w\.-]+$/,N=/^\*\*\/([\w\.-]+)\/?$/,T=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,x=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,M=/^\*\*((\/[\w\.-]+)+)\/?$/,I=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,D=new r.BoundedLinkedMap(1e4),R=function(){return!1},k=function(){return null};t.match=g,t.parse=m,t.getBasenameTerms=v,t.getPathTerms=_}),define(d[22],h([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==m.number||e.constructor!==Array)}function i(e){return typeof e===m.string||e instanceof String}function o(e){return n(e)&&e.every(function(e){return i(e)})}function r(e){return!(typeof e!==m.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return(typeof e===m.number||e instanceof Number)&&!isNaN(e)}function a(e){return e===!0||e===!1}function u(e){return typeof e===m.undefined}function l(e){return u(e)||null===e}function c(e){if(!r(e))return!1;for(var t in e)if(v.call(e,t))return!1;return!0}function d(e){return typeof e===m.function}function h(){for(var e=[],t=0;t0&&e.every(d)}function p(e,t){for(var n=Math.min(e.length,t.length),i=0;i=0,t.isEdge=g.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=g.indexOf("Opera")>=0,t.isFirefox=g.indexOf("Firefox")>=0,t.isWebKit=g.indexOf("AppleWebKit")>=0,t.isChrome=g.indexOf("Chrome")>=0,t.isSafari=g.indexOf("Chrome")===-1&&g.indexOf("Safari")>=0,t.isIPad=g.indexOf("iPad")>=0,t.canUseTranslate3d=!t.isFirefox,t.enableEmptySelectionClipboard=t.isWebKit,t.supportsExecCommand=p}),define(d[124],h([0,1,12]),function(e,t,n){"use strict";function i(e){return n.mapEvent(e,function(e){return e.preventDefault(),e.stopPropagation(),e})}t.domEvent=function(e,t,i){var o=function(e){return r.fire(e)},r=new n.Emitter({onFirstListenerAdd:function(){e.addEventListener(t,o,i)},onLastListenerRemove:function(){e.removeEventListener(t,o,i)}});return r.event},t.stop=i}),define(d[53],h([0,1,31,18,24]),function(e,t,n,i,o){"use strict";function r(e){return a[e.keyCode]||0}function s(e){u=e}var a={};!function(){a[3]=7,a[8]=1,a[9]=2,a[13]=3,a[16]=4,a[17]=5,a[18]=6,a[19]=7,a[20]=8,a[27]=9,a[32]=10,a[33]=11,a[34]=12,a[35]=13,a[36]=14,a[37]=15,a[38]=16,a[39]=17,a[40]=18,a[45]=19,a[46]=20,a[48]=21,a[49]=22,a[50]=23,a[51]=24,a[52]=25,a[53]=26,a[54]=27,a[55]=28,a[56]=29,a[57]=30,a[65]=31,a[66]=32,a[67]=33,a[68]=34,a[69]=35,a[70]=36,a[71]=37,a[72]=38,a[73]=39,a[74]=40,a[75]=41,a[76]=42,a[77]=43,a[78]=44,a[79]=45,a[80]=46,a[81]=47,a[82]=48,a[83]=49,a[84]=50,a[85]=51,a[86]=52,a[87]=53,a[88]=54,a[89]=55,a[90]=56,a[93]=58,a[96]=93,a[97]=94,a[98]=95,a[99]=96,a[100]=97,a[101]=98,a[102]=99,a[103]=100,a[104]=101,a[105]=102,a[106]=103,a[107]=104,a[108]=105,a[109]=106,a[110]=107,a[111]=108,a[112]=59,a[113]=60,a[114]=61,a[115]=62,a[116]=63,a[117]=64,a[118]=65,a[119]=66,a[120]=67,a[121]=68,a[122]=69,a[123]=70,a[124]=71,a[125]=72,a[126]=73,a[127]=74,a[128]=75,a[129]=76,a[130]=77,a[144]=78,a[145]=79,a[186]=80,a[187]=81,a[188]=82,a[189]=83,a[190]=84,a[191]=85,a[192]=86,a[219]=87,a[220]=88,a[221]=89,a[222]=90,a[223]=91,a[226]=92,o.isIE?a[91]=57:o.isFirefox?(a[59]=80,a[107]=81,a[109]=83,i.isMacintosh&&(a[224]=57)):o.isWebKit&&(a[91]=57,i.isMacintosh?a[93]=57:a[92]=57)}(),t.lookupKeyCode=r;var u=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return n.KeyCodeUtils.fromString(t)}return r(e)};t.setExtractKeyCode=s;var l=i.isMacintosh?256:2048,c=512,d=1024,h=i.isMacintosh?2048:256,p=function(){function e(e){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=u(t),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()}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._asKeybinding},e.prototype.equals=function(e){return this._asKeybinding.value===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|=l),this.altKey&&(t|=c),this.shiftKey&&(t|=d),this.metaKey&&(t|=h),t|=e,new n.Keybinding(t)},e}();t.StandardKeyboardEvent=p}),define(d[36],h([0,1,18,24,157]),function(e,t,n,i,o){"use strict";var r=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=o.IframeUtils.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}();t.StandardMouseEvent=r;var s=function(e){function t(t){var n=e.call(this,t)||this;return n.dataTransfer=t.dataTransfer,n}return m(t,e),t}(r);t.DragMouseEvent=s;var a=function(e){function t(t){return e.call(this,t)||this}return m(t,e),t}(s);t.DropMouseEvent=a;var u=function(){function e(e,t,o){if(void 0===t&&(t=0),void 0===o&&(o=0),this.browserEvent=e||null,this.target=e?e.target||e.targetNode||e.srcElement:null,this.deltaY=o,this.deltaX=t,e){var r=e,s=e;"undefined"!=typeof r.wheelDeltaY?this.deltaY=r.wheelDeltaY/120:"undefined"!=typeof s.VERTICAL_AXIS&&s.axis===s.VERTICAL_AXIS&&(this.deltaY=-s.detail/3),"undefined"!=typeof r.wheelDeltaX?i.isSafari&&n.isWindows?this.deltaX=-(r.wheelDeltaX/120):this.deltaX=r.wheelDeltaX/120:"undefined"!=typeof s.HORIZONTAL_AXIS&&s.axis===s.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}();t.StandardMouseWheelEvent=u}),define(d[142],h([0,1,12]),function(e,t,n){"use strict";var i,o=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:n.default.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:o})}(i=t.CancellationToken||(t.CancellationToken={}));var r=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this._emitter=void 0))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?o:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new r),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){this._token?this._token.cancel():this._token=i.Cancelled},e.prototype.dispose=function(){this.cancel()},e}();t.CancellationTokenSource=s}),define(d[25],h([0,1,10]),function(e,t,n){"use strict";function i(e){try{return e()}catch(e){n.onUnexpectedError(e)}}function o(e,t){try{return e(t)}catch(e){n.onUnexpectedError(e)}}var r=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this._type=e,this._data=t}return e.prototype.getType=function(){return this._type},e.prototype.getData=function(){return this._data},e}();t.EmitterEvent=r;var s=function(){function e(e){if(void 0===e&&(e=null),this._listeners={},this._bulkListeners=[],this._collectedEvents=[],this._deferredCnt=0,e){this._allowedEventTypes={};for(var t=0;t0&&this._emitToBulkListeners(e);for(var t=0,n=e.length;t0&&this._emitEvents(e)},e}();t.EventEmitter=s;var a=function(){function e(e,t){this.target=e,this.arg=t}return e}(),u=function(e){function t(t){void 0===t&&(t=null);var n=e.call(this,t)||this;return n._emitQueue=[],n}return m(t,e),t.prototype._emitToSpecificTypeListeners=function(e,t){if(this._listeners.hasOwnProperty(e))for(var n=this._listeners[e],i=0,o=n.length;i0;){var n=this._emitQueue.shift();o(n.target,n.arg)}},t}(s);t.OrderGuaranteeEventEmitter=u}),define(d[488],h([0,1,22,91]),function(e,t,n,i){"use strict";function o(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}var r=function(){function e(e){this._hashFn=e,this._nodes=Object.create(null)}return e.prototype.roots=function(){var e=[];return i.forEach(this._nodes,function(t){n.isEmptyObject(t.value.outgoing)&&e.push(t.value)}),e},e.prototype.traverse=function(e,t,n){var i=this.lookup(e);i&&this._traverse(i,t,Object.create(null),n)},e.prototype._traverse=function(e,t,n,o){var r=this,s=this._hashFn(e.data);if(!n[s]){n[s]=!0,o(e.data);var a=t?e.outgoing:e.incoming;i.forEach(a,function(e){return r._traverse(e.value,t,n,o)})}},e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),i=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=i,i.incoming[this._hashFn(e)]=n},e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t],i.forEach(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=o(e),this._nodes[t]=n),n},e.prototype.lookup=function(e){return this._nodes[this._hashFn(e)]},Object.defineProperty(e.prototype,"length",{get:function(){return Object.keys(this._nodes).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=[];return i.forEach(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}();t.Graph=r}),define(d[165],h([0,1,18,22,39,9]),function(e,t,n,i,o,r){"use strict";function s(e,t){var i=a(e);if(!i)return null;var s=t&&a(t);return s&&o.isEqualOrParent(i,s)?s===i?"":o.normalize(r.ltrim(i.substr(s.length),o.nativeSep),!0):n.isWindows&&i&&":"===i[1]?o.normalize(i.charAt(0).toUpperCase()+i.slice(1),!0):o.normalize(i,!0)}function a(e){if(!e)return null;if("string"==typeof e)return e;if(i.isFunction(e.getWorkspace)){var t=e.getWorkspace();return t?t.resource.fsPath:void 0}return e.fsPath}function u(e){for(var t="…",n=new Array(e.length),i=!1,s=0;s=0;c--){i=!1;for(var d=u.slice(c,c+l).join(o.nativeSep),h=0;!i&&h-1){var p=c+l===u.length,f=r.endsWith(e[h],d);i=!p||f}if(!i){var g=d;c+l0&&(g=t+o.nativeSep+g),n[s]=g}}i&&(n[s]=a)}return n}var l=function(){function e(e){this.root=e&&a(e)}return e.prototype.getLabel=function(e){return s(a(e),this.root)},e}();t.PathLabelProvider=l,t.getPathLabel=s,t.shorten=u}),define(d[504],h([0,1,39,22,9,167]),function(e,t,n,i,o,r){"use strict";function s(e){var t=a(e);g.push(t),t.userConfigured?v.push(t):m.push(t),t.userConfigured||g.forEach(function(e){e.mime===t.mime||e.userConfigured||(t.extension&&e.extension===t.extension&&console.warn("Overwriting extension <<"+t.extension+">> to now point to mime <<"+t.mime+">>"),t.filename&&e.filename===t.filename&&console.warn("Overwriting filename <<"+t.filename+">> to now point to mime <<"+t.mime+">>"),t.filepattern&&e.filepattern===t.filepattern&&console.warn("Overwriting filepattern <<"+t.filepattern+">> to now point to mime <<"+t.mime+">>"),t.firstline&&e.firstline===t.firstline&&console.warn("Overwriting firstline <<"+t.firstline+">> to now point to mime <<"+t.mime+">>"))})}function a(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(n.sep)>=0}}function u(e){e?(g=g.filter(function(e){return!e.userConfigured}),v=[]):(g=[],m=[],v=[])}function l(e,i){if(!e)return[t.MIME_UNKNOWN];e=e.toLowerCase();var o=n.basename(e),r=c(e,o,v);if(r)return[r,t.MIME_TEXT];var s=c(e,o,m);if(s)return[s,t.MIME_TEXT];if(i){var a=d(i);if(a)return[a,t.MIME_TEXT]}return[t.MIME_UNKNOWN]}function c(e,t,n){for(var i,s,a,u=0;us.filepattern.length)){var c=l.filepatternOnPath?e:t;r.match(l.filepatternLowercase,c)&&(s=l)}l.extension&&(!a||l.extension.length>a.extension.length)&&o.endsWith(t,l.extensionLowercase)&&(a=l)}return i?i.mime:s?s.mime:a?a.mime:null}function d(e){if(o.startsWithUTF8BOM(e)&&(e=e.substr(1)),e.length>0)for(var t=0;t0&&i[0].length===e.length)return n.mime}}return null}function h(e){if(!e)return!1;var n;return n=i.isArray(e)?e:e.split(",").map(function(e){return e.trim()}),n.indexOf(t.MIME_BINARY)>=0}function p(e){return!e||("string"==typeof e?e===t.MIME_BINARY||e===t.MIME_TEXT||e===t.MIME_UNKNOWN:1===e.length&&p(e[0]))}function f(e,t){for(var n=0;n=0)throw new Error("Cannot clone recursive data-structure");i.push(e);var u={};for(var l in e)v.call(e,l)&&(u[l]=s(e[l],t,i));return i.pop(),u}return e}function a(e,t,i){return void 0===i&&(i=!0),n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(function(o){o in e?i&&(n.isObject(e[o])&&n.isObject(t[o])?a(e[o],t[o],i):e[o]=t[o]):e[o]=t[o]}),e):t}function u(e){for(var t=[],n=1;nn&&(i=n-t),i<0&&(i=0),o<0&&(o=0),s+o>r&&(s=r-o),s<0&&(s=0);var a=this._width!==t,u=this._scrollWidth!==n,l=this._scrollLeft!==i,c=this._height!==o,d=this._scrollHeight!==r,h=this._scrollTop!==s;(a||u||l||c||d||h)&&(this._width=t,this._scrollWidth=n,this._scrollLeft=i,this._height=o,this._scrollHeight=r,this._scrollTop=s,this._onScroll.fire({width:this._width,scrollWidth:this._scrollWidth,scrollLeft:this._scrollLeft,height:this._height,scrollHeight:this._scrollHeight,scrollTop:this._scrollTop,widthChanged:a,scrollWidthChanged:u,scrollLeftChanged:l,heightChanged:c,scrollHeightChanged:d,scrollTopChanged:h}))},t}(n.Disposable);t.Scrollable=r}),define(d[27],h([0,1,18]),function(e,t,n){"use strict";function i(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return encodeURIComponent(e).replace(/[!'()*]/g,i)}function r(e){return e}var s=function(){function e(){this._scheme=e._empty,this._authority=e._empty,this._path=e._empty,this._query=e._empty,this._fragment=e._empty,this._formatted=null,this._fsPath=null}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)},Object.defineProperty(e.prototype,"scheme",{get:function(){return this._scheme},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"authority",{get:function(){return this._authority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"query",{get:function(){return this._query},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fragment",{get:function(){return this._fragment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fsPath",{get:function(){if(!this._fsPath){var t;t=this._authority&&this._path&&"file"===this.scheme?"//"+this._authority+this._path:e._driveLetterPath.test(this._path)?this._path[1].toLowerCase()+this._path.substr(2):this._path,n.isWindows&&(t=t.replace(/\//g,"\\")),this._fsPath=t}return this._fsPath},enumerable:!0,configurable:!0}),e.prototype.with=function(t){if(!t)return this;var n=t.scheme,i=t.authority,o=t.path,r=t.query,s=t.fragment;if(void 0===n?n=this.scheme:null===n&&(n=""),void 0===i?i=this.authority:null===i&&(i=""),void 0===o?o=this.path:null===o&&(o=""),void 0===r?r=this.query:null===r&&(r=""),void 0===s?s=this.fragment:null===s&&(s=""),n===this.scheme&&i===this.authority&&o===this.path&&r===this.query&&s===this.fragment)return this;var a=new e;return a._scheme=n,a._authority=i,a._path=o,a._query=r,a._fragment=s,e._validate(a),a},e.parse=function(t){var n=new e,i=e._parseComponents(t);return n._scheme=i.scheme,n._authority=decodeURIComponent(i.authority),n._path=decodeURIComponent(i.path),n._query=decodeURIComponent(i.query),n._fragment=decodeURIComponent(i.fragment),e._validate(n),n},e.file=function(t){var n=new e;if(n._scheme="file",t=t.replace(/\\/g,e._slash),t[0]===e._slash&&t[0]===t[1]){var i=t.indexOf(e._slash,2);i===-1?n._authority=t.substring(2):(n._authority=t.substring(2,i),n._path=t.substring(i))}else n._path=t;return n._path[0]!==e._slash&&(n._path=e._slash+n._path),e._validate(n),n},e._parseComponents=function(t){var n={scheme:e._empty,authority:e._empty,path:e._empty,query:e._empty,fragment:e._empty},i=e._regexp.exec(t);return i&&(n.scheme=i[2]||n.scheme,n.authority=i[4]||n.authority,n.path=i[5]||n.path,n.query=i[7]||n.query,n.fragment=i[9]||n.fragment),n},e.from=function(t){return(new e).with(t)},e._validate=function(t){if(t.scheme&&!e._schemePattern.test(t.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(t.path)if(t.authority){if(!e._singleSlashStart.test(t.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(e._doubleSlashStart.test(t.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?e._asFormatted(this,!0):(this._formatted||(this._formatted=e._asFormatted(this,!1)),this._formatted)},e._asFormatted=function(t,n){var s=n?r:o,a=[],u=t.scheme,l=t.authority,c=t.path,d=t.query,h=t.fragment;if(u&&a.push(u,":"),(l||"file"===u)&&a.push("//"),l){l=l.toLowerCase();var p=l.indexOf(":");p===-1?a.push(s(l)):a.push(s(l.substr(0,p)),l.substr(p))}if(c){var f=e._upperCaseDrive.exec(c);f&&(c=f[1]?"/"+f[2].toLowerCase()+c.substr(3):f[2].toLowerCase()+c.substr(2));for(var g=0;;){var p=c.indexOf(e._slash,g);if(p===-1){a.push(s(c.substring(g)).replace(/[#?]/,i));break}a.push(s(c.substring(g,p)).replace(/[#?]/,i),e._slash),g=p+1}}return d&&a.push("?",s(d)),h&&a.push("#",s(h)),a.join(e._empty)},e.prototype.toJSON=function(){var e={fsPath:this.fsPath,external:this.toString(),$mid:1};return 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},e.revive=function(t){var n=new e;return n._scheme=t.scheme||e._empty,n._authority=t.authority||e._empty,n._path=t.path||e._empty,n._query=t.query||e._empty,n._fragment=t.fragment||e._empty,n._fsPath=t.fsPath,n._formatted=t.external,e._validate(n),n},e}();s._empty="",s._slash="/",s._regexp=/^(([^:\/?#]+?):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,s._driveLetterPath=/^\/[a-zA-z]:/,s._upperCaseDrive=/^(\/)?([A-Z]:)/,s._schemePattern=/^\w[\w\d+.-]*$/,s._singleSlashStart=/^\//,s._doubleSlashStart=/^\/\//,Object.defineProperty(t,"__esModule",{value:!0}),t.default=s}),define(d[153],h([0,1,27]),function(e,t,n){"use strict";function i(e){return JSON.stringify(e,r)}function o(e){return JSON.parse(e,s)}function r(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")}:t}function s(e,t){var i;return void 0!==t&&null!==t&&(i=t.$mid),1===i?n.default.revive(t):2===i?new RegExp(t.source,t.flags):t}t.stringify=i,t.parse=o}),function(){var e={};e["WinJS/Core/_WinJS"]={};var t=function(t,n,i){var o={},r=!1,s=n.map(function(t){return"exports"===t?(r=!0,o):e[t]}),a=i.apply({},s);e[t]=r?o:a};t("WinJS/Core/_Global",[],function(){"use strict";var e="undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{};return e}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){"use strict";function t(e){return e.supportedForProcessing=!0,e}var n=!!e.Windows;return{hasWinRT:n,markSupportedForProcessing:t,_setImmediate:e.setImmediate?e.setImmediate.bind(e):function(t){e.setTimeout(t,0)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){"use strict";function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o"),r}function s(e,n){return r(t,e,n)}function a(e){var t,n,o=c.uninitialized;return{setName:function(e){t=e},get:function(){switch(o){case c.initialized:return n;case c.uninitialized:o=c.working;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{ -i("WinJS.Namespace._lazy:"+t+",StopTM"),o=c.uninitialized}return e=null,o=c.initialized,n;case c.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(o){case c.working:throw"Illegal: reentrancy on initialization";default:o=c.initialized,n=e}},enumerable:!0,configurable:!0}}function u(e,i,r){var s=[e],a=null;return i&&(a=n(t,i),s.push(a)),o(s,r,i||""),a}var l=e;l.Namespace||(l.Namespace=Object.create(Object.prototype));var c={uninitialized:1,working:2,initialized:3};Object.defineProperties(l.Namespace,{defineWithParent:{value:r,writable:!0,enumerable:!0,configurable:!0},define:{value:s,writable:!0,enumerable:!0,configurable:!0},_lazy:{value:a,writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:u,writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,i){return e=e||function(){},n.markSupportedForProcessing(e),t&&o(e.prototype,t),i&&o(e,i),e}function i(e,i,r,s){if(e){i=i||function(){};var a=e.prototype;return i.prototype=Object.create(a),n.markSupportedForProcessing(i),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0,enumerable:!0}),r&&o(i.prototype,r),s&&o(i,s),i}return t(i,r,s)}function r(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=L;var N=function(e){function t(){return e.call(this,1)||this}return m(t,e),t}(L);t.Queue=N;var T=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return m(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){this._token!==-1&&(i.clearTimeout(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel(),this._token=i.setTimeout(function(){n._token=-1,e()},t)},t.prototype.setIfNotSet=function(e,t){var n=this;this._token===-1&&(this._token=i.setTimeout(function(){n._token=-1,e()},t))},t}(s.Disposable);t.TimeoutTimer=T;var x=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return m(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){this._token!==-1&&(i.clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=i.setInterval(function(){e()},t)},t}(s.Disposable);t.IntervalTimer=x;var M=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()&&(i.clearTimeout(this.timeoutToken),this.timeoutToken=-1)},e.prototype.setRunner=function(e){this.runner=e},e.prototype.schedule=function(e){void 0===e&&(e=this.timeout),this.cancel(),this.timeoutToken=i.setTimeout(this.timeoutHandler,e)},e.prototype.isScheduled=function(){return this.timeoutToken!==-1},e.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.runner()},e}();t.RunOnceScheduler=M,t.nfcall=g,t.ninvoke=v}),define(d[11],h([0,1,6,17,10,25,4,22,24,53,36]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e){var t=[];return JSON.stringify(e,function(e,n){if(n instanceof Element)return"[Element]";if(a.isObject(n)||Array.isArray(n)){if(t.indexOf(n)!==-1)return"[Circular]";t.push(n)}return n})}function p(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1}function f(e,t){var n=e.className;if(!n)return void(oe=-1);t=t.trim();var i=n.length,o=t.length;if(0===o)return void(oe=-1);if(i=0;){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return oe=s,void(re=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return oe=s-1,void(re=r);if(0===s&&r===i)return oe=0,void(re=r)}oe=-1}function g(e,t){return f(e,t),oe!==-1}function v(e,t){e.className?(f(e,t),oe===-1&&(e.className=e.className+" "+t)):e.className=t}function _(e,t){f(e,t),oe!==-1&&(e.className=e.className.substring(0,oe)+e.className.substring(re))}function y(e,t,n){f(e,t),oe===-1||void 0!==n&&n||_(e,t),oe!==-1||void 0!==n&&!n||v(e,t)}function C(e,t,n,i){return new se(e,t,n,i)}function b(e){return function(t){return e(new c.StandardMouseEvent(t))}}function w(e){return function(t){return e(new l.StandardKeyboardEvent(t))}}function S(e,t){return C(e,"mouseout",function(n){for(var i=n.relatedTarget||n.toElement;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}function E(e,t,n,i,o){return new de(e,t,n,i,o)}function L(e){return document.defaultView.getComputedStyle(e,null)}function N(e,t,n){var i=L(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),he(e,o)}function T(e){for(var t=e.offsetParent,n=e.offsetTop,i=e.offsetLeft;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var o=L(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=pe.getBorderLeftWidth(e),n+=pe.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function x(e){var n=e.getBoundingClientRect();return{left:n.left+t.StandardWindow.scrollX,top:n.top+t.StandardWindow.scrollY,width:n.width,height:n.height}}function M(e){var t=pe.getBorderLeftWidth(e)+pe.getBorderRightWidth(e),n=pe.getPaddingLeft(e)+pe.getPaddingRight(e);return e.offsetWidth-t-n}function I(e){var t=pe.getMarginLeft(e)+pe.getMarginRight(e);return e.offsetWidth+t}function D(e){var t=pe.getMarginLeft(e)+pe.getMarginRight(e);return e.scrollWidth+t}function R(e){var t=pe.getBorderTopWidth(e)+pe.getBorderBottomWidth(e),n=pe.getPaddingTop(e)+pe.getPaddingBottom(e);return e.offsetHeight-t-n}function k(e){var t=pe.getMarginTop(e)+pe.getMarginBottom(e);return e.offsetHeight+t}function O(e,t){if(null===e)return 0;var n=T(e),i=T(t);return n.left-i.left}function P(e,t){var n=t.map(function(t){return Math.max(D(t),I(t))+O(t,e)||0}),i=Math.max.apply(Math,n);return i}function A(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function W(e,t,n){for(;e;){if(g(e,t))return e;if(n&&g(e,n))return null;e=e.parentNode}return null}function F(){var e=document.createElement("style");return e.type="text/css",e.media="screen",document.getElementsByTagName("head")[0].appendChild(e),e}function V(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}function H(e,t,n){void 0===n&&(n=fe),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)}function B(e,t){if(void 0===t&&(t=fe),!t)return null;for(var n=V(t),i=0;i=0;o--)t.sheet.deleteRule(i[o])}}function z(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}function K(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}function j(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}function q(e){return new ge(e)}function G(e){for(var t=[],n=1;n0&&(t instanceof Node?n.push(t.cloneNode()):n.push(document.createTextNode(t))),n.push(e)}),n}function X(){for(var e=[],t=0;t0;){n.sort(ue.sort);var t=n.shift();t.execute()}o=!1};t.scheduleAtNextAnimationFrame=function(t,n){void 0===n&&(n=0);var o=new ue(t,n);if(e.push(o),!i)if(i=!0,u.isChrome){var s;ae.request(function(){clearTimeout(s),r()}),s=setTimeout(r,1e3)}else ae.request(r);return o},t.runAtThisOrScheduleAtNextAnimationFrame=function(e,i){if(o){var r=new ue(e,i);return n.push(r),r}return t.scheduleAtNextAnimationFrame(e,i)}}();var le=16,ce=function(e,t){return t},de=function(e){function t(t,n,o,r,s){void 0===r&&(r=ce),void 0===s&&(s=le);var a=e.call(this)||this,u=null,l=0,c=a._register(new i.TimeoutTimer),d=function(){l=(new Date).getTime(),o(u),u=null};return a._register(C(t,n,function(e){u=r(u,e);var t=(new Date).getTime()-l;t>=s?(c.cancel(),d()):c.setIfNotSet(d,s-t)})),a}return m(t,e),t}(s.Disposable);t.addDisposableThrottledListener=E,t.getComputedStyle=L;var he=function(){return function(e,t){return parseFloat(t)||0}}(),pe={getBorderLeftWidth:function(e){return N(e,"border-left-width","borderLeftWidth")},getBorderTopWidth:function(e){return N(e,"border-top-width","borderTopWidth")},getBorderRightWidth:function(e){return N(e,"border-right-width","borderRightWidth")},getBorderBottomWidth:function(e){return N(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return N(e,"padding-left","paddingLeft")},getPaddingTop:function(e){return N(e,"padding-top","paddingTop")},getPaddingRight:function(e){return N(e,"padding-right","paddingRight")},getPaddingBottom:function(e){return N(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return N(e,"margin-left","marginLeft")},getMarginTop:function(e){return N(e,"margin-top","marginTop")},getMarginRight:function(e){return N(e,"margin-right","marginRight")},getMarginBottom:function(e){return N(e,"margin-bottom","marginBottom")},__commaSentinel:!1};t.getTopLeftOffset=T,t.getDomNodePagePosition=x,t.StandardWindow=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}()),t.getContentWidth=M,t.getTotalWidth=I,t.getTotalScrollWidth=D,t.getContentHeight=R,t.getTotalHeight=k,t.getLargestChildWidth=P,t.isAncestor=A,t.findParentWithClass=W,t.createStyleSheet=F;var fe=F();t.createCSSRule=H,t.getCSSRule=B,t.removeCSSRulesContainingSelector=U,t.isHTMLElement=z,t.EventType={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",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:u.isWebKit?"webkitAnimationStart":"animationstart",ANIMATION_END:u.isWebKit?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:u.isWebKit?"webkitAnimationIteration":"animationiteration"},t.EventHelper={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},t.saveParentsScrollTop=K,t.restoreParentsScrollTop=j;var ge=function(e){function n(n){var i=e.call(this)||this,o=!1,s=!1;i._eventEmitter=i._register(new r.EventEmitter);var a=function(e){s=!1,o||(o=!0,i._eventEmitter.emit("focus",{}))},u=function(e){o&&(s=!0,window.setTimeout(function(){s&&(s=!1,o=!1,i._eventEmitter.emit("blur",{}))},0))};return i._register(C(n,t.EventType.FOCUS,a,!0)),i._register(C(n,t.EventType.BLUR,u,!0)),i}return m(n,e),n.prototype.addFocusListener=function(e){return this._eventEmitter.addListener2("focus",e)},n.prototype.addBlurListener=function(e){return this._eventEmitter.addListener2("blur",e)},n}(s.Disposable);t.trackFocus=q,t.append=G,t.prepend=Y;var me=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;t.$=Z,t.join=$,t.show=X,t.hide=J,t.removeTabIndexAndUpdateFocus=ee,t.getElementsByTagName=te,t.finalHandler=ne,t.domContentLoaded=ie}),define(d[103],h([0,1,4,11,157,36]),function(e,t,n,i,o,r){"use strict";function s(e,t){var n=new r.StandardMouseEvent(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}t.standardMouseMoveMerger=s;var a=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return m(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this)},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=n.dispose(this.hooks),this.mouseMoveEventMerger=null,this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null,e&&t()}},t.prototype.isMonitoring=function(){return this.hooks.length>0},t.prototype.startMonitoring=function(e,t,n){var s=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var a=o.IframeUtils.getSameOriginWindowChain(),u=0;u"},b.link=function(e,t,n){return e===n&&(n=s.removeMarkdownEscapes(n)),t=s.removeMarkdownEscapes(t),e=s.removeMarkdownEscapes(e),''+n+""},b.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(b.code=function(e,n){var s=t.codeBlockRenderer(n,e);if("string"==typeof s)return s;if(r.TPromise.is(s)){var a=i.defaultGenerator.nextId();return r.TPromise.join([s,C]).done(function(e){var t=e[0],n=g.querySelector('span[data-code="'+a+'"]');n&&(n.innerHTML=t)},function(e){}),''+o.escape(e)+""}return e}),t.actionCallback&&n.addStandardDisposableListener(g,"click",function(e){if("A"===e.target.tagName){var n=e.target.dataset.href;n&&t.actionCallback(n,e)}}),g.innerHTML=a.marked(e.markdown,{sanitize:!0,renderer:b}),y()}return g}function d(e){return e&&v.hasOwnProperty(e)?e:null}function h(e,t,i){var o;if(2===t.type)o=document.createTextNode(t.content);else if(3===t.type)o=document.createElement("b");else if(4===t.type)o=document.createElement("i");else if(5===t.type){var r=document.createElement("a");r.href="#",n.addStandardDisposableListener(r,"click",function(e){i(String(t.index),e)}),o=r}else 7===t.type?o=document.createElement("br"):1===t.type&&(o=e);e!==o&&e.appendChild(o),Array.isArray(t.children)&&t.children.forEach(function(e){h(o,e,i)})}function p(e){for(var t={type:1,children:[]},n=0,i=t,o=[],r=new _(e);!r.eos();){var s=r.next(),a="\\"===s&&0!==g(r.peek());if(a&&(s=r.next()),!a&&f(s)&&s===r.peek()){r.advance(),2===i.type&&(i=o.pop());var u=g(s);if(i.type===u||5===i.type&&6===u)i=o.pop();else{var l={type:u,children:[]};5===u&&(l.index=n,n++),i.children.push(l),o.push(i),i=l}}else if("\n"===s)2===i.type&&(i=o.pop()),i.children.push({type:7});else if(2!==i.type){var c={type:2,content:s};i.children.push(c),o.push(i),i=c}else i.content+=s}return 2===i.type&&(i=o.pop()),o.length,t}function f(e){return 0!==g(e)}function g(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}t.renderMarkedString=u,t.renderHtml=l;var m,v={a:!0,b:!0,blockquote:!0,code:!0,del:!0,dd:!0,div:!0,dl:!0,dt:!0,em:!0,h1h2h3i:!0,img:!0,kbd:!0,li:!0,ol:!0,p:!0,pre:!0,s:!0,span:!0,sup:!0,sub:!0,strong:!0,strike:!0,ul:!0,br:!0,hr:!0},_=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(e){e[e.Invalid=0]="Invalid",e[e.Root=1]="Root",e[e.Text=2]="Text",e[e.Bold=3]="Bold",e[e.Italics=4]="Italics",e[e.Action=5]="Action",e[e.ActionClose=6]="ActionClose",e[e.NewLine=7]="NewLine"}(m||(m={}))}),define(d[28],h([0,1,11]),function(e,t,n){"use strict";function i(e){return l?new a(e):new u(e)}function o(e,t){return e.getAttribute("data-transform")!==t&&(e.setAttribute("data-transform",t),e.style.webkitTransform=t,!0)}function r(e,t){return e.getAttribute("data-transform")!==t&&(e.setAttribute("data-transform",t),e.style.transform=t,!0)}var s=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._className="",this._display="",this._position="",this._visibility="",this._transform="",this._lineNumber=""}return Object.defineProperty(e.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),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.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.setClassName=function(e){this._className!==e&&(this._className=e,this._domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){n.toggleClass(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.setTransform=function(e){this._transform!==e&&(this._transform=e,this._setTransform(this._domNode,this._transform))},e.prototype.setLineNumber=function(e){this._lineNumber!==e&&(this._lineNumber=e,this._domNode.setAttribute("lineNumber",this._lineNumber))},e.prototype.setAttribute=function(e,t){this._domNode.setAttribute(e,t)},e}();t.FastDomNode=s;var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._setTransform=function(e,t){e.style.webkitTransform=t},t}(s),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._setTransform=function(e,t){e.style.transform=t},t}(s),l=!1;!function(){var e=document.createElement("div");"undefined"!=typeof e.style.webkitTransform&&(l=!0)}(),t.createFastDomNode=i,t.StyleMutator={setMaxWidth:function(e,t){var n=t+"px";e.style.maxWidth!==n&&(e.style.maxWidth=n)},setWidth:function(e,t){var n=t+"px";e.style.width!==n&&(e.style.width=n)},setHeight:function(e,t){var n=t+"px";e.style.height!==n&&(e.style.height=n)},setTop:function(e,t){var n=t+"px";return e.style.top!==n&&(e.style.top=n,!0)},setLeft:function(e,t){var n=t+"px";return e.style.left!==n&&(e.style.left=n,!0)},setBottom:function(e,t){var n=t+"px";e.style.bottom!==n&&(e.style.bottom=n)},setRight:function(e,t){var n=t+"px";e.style.right!==n&&(e.style.right=n)},setFontSize:function(e,t){var n=t+"px";e.style.fontSize!==n&&(e.style.fontSize=n)},setLineHeight:function(e,t){var n=t+"px";e.style.lineHeight!==n&&(e.style.lineHeight=n)},setTransform:null,setDisplay:function(e,t){e.style.display!==t&&(e.style.display=t)},setVisibility:function(e,t){e.style.visibility!==t&&(e.style.visibility=t)}},function(){var e=document.createElement("div");"undefined"!=typeof e.style.webkitTransform?t.StyleMutator.setTransform=o:t.StyleMutator.setTransform=r}()}),define(d[59],h([0,1,26,4,11]),function(e,t,n,i,o){"use strict";var r;!function(e){e.Tap="-monaco-gesturetap",e.Change="-monaco-gesturechange",e.Start="-monaco-gesturestart",e.End="-monaco-gesturesend",e.Contextmenu="-monaco-gesturecontextmenu"}(r=t.EventType||(t.EventType={}));var s=function(){function e(e){this.callOnTarget=[],this.activeTouches={},this.target=e,this.handle=null}return e.prototype.dispose=function(){this.target=null,this.handle&&(this.handle.dispose(),this.handle=null)},Object.defineProperty(e.prototype,"target",{set:function(e){var t=this;this.callOnTarget=i.dispose(this.callOnTarget),this.activeTouches={},this.targetElement=e,this.targetElement&&(this.callOnTarget.push(o.addDisposableListener(this.targetElement,"touchstart",function(e){return t.onTouchStart(e)})),this.callOnTarget.push(o.addDisposableListener(this.targetElement,"touchend",function(e){return t.onTouchEnd(e)})),this.callOnTarget.push(o.addDisposableListener(this.targetElement,"touchmove",function(e){return t.onTouchMove(e)})))},enumerable:!0,configurable:!0}),e.newGestureEvent=function(e){var t=document.createEvent("CustomEvent");return t.initEvent(e,!1,!0),t},e.prototype.onTouchStart=function(t){var n=Date.now();t.preventDefault(),t.stopPropagation(),this.handle&&(this.handle.dispose(),this.handle=null);for(var i=0,o=t.targetTouches.length;i=e.HOLD_DELAY&&Math.abs(l.initialPageX-n.tail(l.rollingPageX))<30&&Math.abs(l.initialPageY-n.tail(l.rollingPageY))<30){var d=e.newGestureEvent(r.Contextmenu);d.initialTarget=l.initialTarget,d.pageX=n.tail(l.rollingPageX),d.pageY=n.tail(l.rollingPageY),this.targetElement.dispatchEvent(d)}else if(1===o){var h=n.tail(l.rollingPageX),p=n.tail(l.rollingPageY),f=n.tail(l.rollingTimestamps)-l.rollingTimestamps[0],g=h-l.rollingPageX[0],m=p-l.rollingPageY[0];this.inertia(i,Math.abs(g)/f,g>0?1:-1,h,Math.abs(m)/f,m>0?1:-1,p)}delete this.activeTouches[u.identifier]}else console.warn("move of an UNKNOWN touch",u)}},e.prototype.inertia=function(t,n,i,s,a,u,l){var c=this;this.handle=o.scheduleAtNextAnimationFrame(function(){var o=Date.now(),d=o-t,h=0,p=0,f=!0;n+=e.SCROLL_FRICTION*d,a+=e.SCROLL_FRICTION*d,n>0&&(f=!1,h=i*n*d),a>0&&(f=!1,p=u*a*d);var g=e.newGestureEvent(r.Change);g.translationX=h,g.translationY=p,c.targetElement.dispatchEvent(g),f||c.inertia(o,n,i,s+h,a,u,l+p)})},e.prototype.onTouchMove=function(t){var i=Date.now();t.preventDefault(),t.stopPropagation();for(var o=0,s=t.changedTouches.length;o3&&(u.rollingPageX.shift(),u.rollingPageY.shift(),u.rollingTimestamps.shift()),u.rollingPageX.push(a.pageX),u.rollingPageY.push(a.pageY),u.rollingTimestamps.push(i)}else console.warn("end of an UNKNOWN touch",a)}},e}();s.HOLD_DELAY=700,s.SCROLL_FRICTION=-.005,t.Gesture=s}),define(d[112],h([0,1,9,11,35,490]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e){this.domNode=document.createElement("span"),this.domNode.className="monaco-highlighted-label",this.didEverRender=!1,e.appendChild(this.domNode)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t){void 0===t&&(t=[]),e||(e=""),this.didEverRender&&this.text===e&&o.equals(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.highlights=t,this.render())},e.prototype.render=function(){i.clearNode(this.domNode);for(var e,t=[],o=0,s=0;s"),t.push(r.expand(n.escape(this.text.substring(o,e.start)))),t.push(""),o=e.end),t.push(''),t.push(r.expand(n.escape(this.text.substring(e.start,e.end)))),t.push(""),o=e.end);o"),t.push(r.expand(n.escape(this.text.substring(o)))),t.push("")),this.domNode.innerHTML=t.join(""),this.didEverRender=!0},e.prototype.dispose=function(){this.text=null,this.highlights=null},e}();t.HighlightedLabel=s}),define(d[447],h([0,1,11]),function(e,t,n){"use strict";function i(e){var t=e.getAttribute("last-scroll-time");return t?parseInt(t,10):0}function o(e){try{e.parentElement.removeChild(e)}catch(e){}}var r=function(){function e(e){this.renderers=e,this.cache=Object.create(null),this.scrollingRow=null}return e.prototype.alloc=function(e){var t=this.getTemplateCache(e).pop();if(!t){var i=n.$(".monaco-list-row"),o=this.renderers[e],r=o.renderTemplate(i);t={domNode:i,templateId:e,templateData:r}}return t},e.prototype.release=function(e){if(e){var t=i(e.domNode);if(!t)return void this.releaseRow(e);if(this.scrollingRow){var o=i(this.scrollingRow.domNode);if(o>t)return void this.releaseRow(e);this.scrollingRow.domNode.parentElement&&this.releaseRow(this.scrollingRow)}this.scrollingRow=e,n.addClass(this.scrollingRow.domNode,"scrolling")}},e.prototype.releaseRow=function(e){var t=e.domNode,i=e.templateId;n.removeClass(t,"scrolling"),o(t);var r=this.getTemplateCache(i);r.push(e)},e.prototype.getTemplateCache=function(e){return this.cache[e]||(this.cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;if(this.cache&&Object.keys(this.cache).forEach(function(t){e.cache[t].forEach(function(n){var i=e.renderers[t];i.disposeTemplate(n.templateData),n.domNode=null,n.templateData=null}),delete e.cache[t]}),this.scrollingRow){var t=this.renderers[this.scrollingRow.templateId];t.disposeTemplate(this.scrollingRow.templateData),this.scrollingRow=null}},e.prototype.dispose=function(){this.garbageCollect(),this.cache=null,this.renderers=null},e}();t.RowCache=r}),define(d[457],h([0,1,4,17,40]),function(e,t,n,i,o){"use strict";var r=function(e){function t(t,n,o){var r=e.call(this)||this;return r._visibility=t,r._visibleClassName=n,r._invisibleClassName=o,r._domNode=null,r._isVisible=!1,r._isNeeded=!1,r._shouldBeVisible=!1,r._revealTimer=r._register(new i.TimeoutTimer),r}return m(t,e),t.prototype.applyVisibilitySetting=function(e){return this._visibility!==o.ScrollbarVisibility.Hidden&&(this._visibility===o.ScrollbarVisibility.Visible||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(){return this._isNeeded?void(this._shouldBeVisible?this._reveal():this._hide(!0)):void this._hide(!1)},t.prototype._reveal=function(){var e=this;this._isVisible||(this._isVisible=!0,this._revealTimer.setIfNotSet(function(){e._domNode.setClassName(e._visibleClassName)},0))},t.prototype._hide=function(e){this._revealTimer.cancel(),this._isVisible&&(this._isVisible=!1,this._domNode.setClassName(this._invisibleClassName+(e?" fade":"")))},t}(n.Disposable);t.ScrollbarVisibilityController=r}),define(d[37],h([0,1,4,36,53,11]),function(e,t,n,i,o,r){"use strict";var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.onclick=function(e,t){this._register(r.addDisposableListener(e,r.EventType.CLICK,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onmousedown=function(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_DOWN,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onmouseover=function(e,t){this._register(r.addDisposableListener(e,r.EventType.MOUSE_OVER,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onnonbubblingmouseout=function(e,t){this._register(r.addDisposableNonBubblingMouseOutListener(e,function(e){return t(new i.StandardMouseEvent(e))}))},t.prototype.onkeydown=function(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_DOWN,function(e){return t(new o.StandardKeyboardEvent(e))}))},t.prototype.onkeyup=function(e,t){this._register(r.addDisposableListener(e,r.EventType.KEY_UP,function(e){return t(new o.StandardKeyboardEvent(e))}))},t.prototype.oninput=function(e,t){this._register(r.addDisposableListener(e,r.EventType.INPUT,t))},t.prototype.onblur=function(e,t){this._register(r.addDisposableListener(e,r.EventType.BLUR,t))},t.prototype.onfocus=function(e,t){this._register(r.addDisposableListener(e,r.EventType.FOCUS,t))},t.prototype.onchange=function(e,t){this._register(r.addDisposableListener(e,r.EventType.CHANGE,t))},t}(n.Disposable);t.Widget=s}),define(d[117],h([0,1,103,37,17]),function(e,t,n,i,o){"use strict";t.ARROW_IMG_SIZE=11;var r=function(e){function i(i){var r=e.call(this)||this;return r._onActivate=i.onActivate,r.bgDomNode=document.createElement("div"),r.bgDomNode.className="arrow-background",r.bgDomNode.style.position="absolute",r.bgDomNode.style.width=i.bgWidth+"px",r.bgDomNode.style.height=i.bgHeight+"px","undefined"!=typeof i.top&&(r.bgDomNode.style.top="0px"),"undefined"!=typeof i.left&&(r.bgDomNode.style.left="0px"),"undefined"!=typeof i.bottom&&(r.bgDomNode.style.bottom="0px"),"undefined"!=typeof i.right&&(r.bgDomNode.style.right="0px"),r.domNode=document.createElement("div"),r.domNode.className=i.className,r.domNode.style.position="absolute",r.domNode.style.width=t.ARROW_IMG_SIZE+"px",r.domNode.style.height=t.ARROW_IMG_SIZE+"px","undefined"!=typeof i.top&&(r.domNode.style.top=i.top+"px"),"undefined"!=typeof i.left&&(r.domNode.style.left=i.left+"px"),"undefined"!=typeof i.bottom&&(r.domNode.style.bottom=i.bottom+"px"),"undefined"!=typeof i.right&&(r.domNode.style.right=i.right+"px"),r._mouseMoveMonitor=r._register(new n.GlobalMouseMoveMonitor),r.onmousedown(r.bgDomNode,function(e){return r._arrowMouseDown(e)}),r.onmousedown(r.domNode,function(e){return r._arrowMouseDown(e)}),r._mousedownRepeatTimer=r._register(new o.IntervalTimer),r._mousedownScheduleRepeatTimer=r._register(new o.TimeoutTimer),r}return m(i,e),i.prototype._arrowMouseDown=function(e){var t=this,i=function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)};this._onActivate(),this._mousedownRepeatTimer.cancel(),this._mousedownScheduleRepeatTimer.cancelAndSet(i,200),this._mouseMoveMonitor.startMonitoring(n.standardMouseMoveMerger,function(e){},function(){t._mousedownRepeatTimer.cancel(),t._mousedownScheduleRepeatTimer.cancel()}),e.preventDefault()},i}(i.Widget);t.ScrollbarArrow=r}),define(d[143],h([0,1,18,11,36,103,37,28,117,457]),function(e,t,n,i,o,r,s,a,u,l){"use strict";var c=140,d=function(e){function t(t){var n=e.call(this)||this;return n._canUseTranslate3d=t.canUseTranslate3d,n._lazyRender=t.lazyRender,n._host=t.host,n._scrollable=t.scrollable,n._scrollbarState=t.scrollbarState,n._visibilityController=n._register(new l.ScrollbarVisibilityController(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName)),n._mouseMoveMonitor=n._register(new r.GlobalMouseMoveMonitor),n._shouldRender=!0,n.domNode=a.createFastDomNode(document.createElement("div")),n._visibilityController.setDomNode(n.domNode),n.domNode.setPosition("absolute"),n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e)}),n}return m(t,e),t.prototype._createArrow=function(e){var t=this._register(new u.ScrollbarArrow(e));this.domNode.domNode.appendChild(t.bgDomNode),this.domNode.domNode.appendChild(t.domNode)},t.prototype._createSlider=function(e,t,n,i){var o=this;this.slider=a.createFastDomNode(document.createElement("div")),this.slider.setClassName("slider"),this.slider.setPosition("absolute"),this.slider.setTop(e),this.slider.setLeft(t),this.slider.setWidth(n),this.slider.setHeight(i),this.domNode.domNode.appendChild(this.slider.domNode),this.onmousedown(this.slider.domNode,function(e){return o._sliderMouseDown(e)})},t.prototype.setCanUseTranslate3d=function(e){return this._canUseTranslate3d=e,!0},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._canUseTranslate3d?this.domNode.setTransform("translate3d(0px, 0px, 0px)"):this.domNode.setTransform(""),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=new o.StandardMouseEvent(e),n=this.domNode.domNode.getClientRects()[0].top,i=n+this._scrollbarState.getSliderPosition(),r=n+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize(),s=this._sliderMousePosition(t);i<=s&&s<=r?this._sliderMouseDown(t):this._onMouseDown(t)},t.prototype._onMouseDown=function(e){var t=i.getDomNodePagePosition(this.domNode.domNode),n=this._mouseDownRelativePosition(e,t)-this._scrollbarState.getArrowSize()-this._scrollbarState.getSliderSize()/2;this.setDesiredScrollPosition(this._scrollbarState.convertSliderPositionToScrollPosition(n)),this._sliderMouseDown(e)},t.prototype._sliderMouseDown=function(e){var t=this;if(e.leftButton){var i=this._sliderOrthogonalMousePosition(e),o=this._getScrollPosition(),s=this._sliderMousePosition(e)-this._scrollbarState.getSliderPosition();this.slider.toggleClassName("active",!0),this._mouseMoveMonitor.startMonitoring(r.standardMouseMoveMerger,function(e){var r=t._sliderOrthogonalMousePosition(e),a=Math.abs(r-i);if(n.isWindows&&a>c)t.setDesiredScrollPosition(o);else{var u=t._sliderMousePosition(e)-s;t.setDesiredScrollPosition(t._scrollbarState.convertSliderPositionToScrollPosition(u))}},function(){t.slider.toggleClassName("active",!1),t._host.onDragEnd()}),e.preventDefault(),this._host.onDragStart()}},t.prototype.validateScrollPosition=function(e){return this._scrollbarState.validateScrollPosition(e)},t.prototype.setDesiredScrollPosition=function(e){e=this.validateScrollPosition(e);var t=this._getScrollPosition();this._setScrollPosition(e);var n=this._getScrollPosition();return t!==n&&(this._onElementScrollPosition(this._getScrollPosition()),!0)},t}(s.Widget);t.AbstractScrollbar=d}),define(d[500],h([0,1,143,36,40,138,117]),function(e,t,n,i,o,r,s){"use strict";var a=function(e){function t(t,n,a){var u=e.call(this,{canUseTranslate3d:n.canUseTranslate3d,lazyRender:n.lazyRender,host:a,scrollbarState:new r.ScrollbarState(n.horizontalHasArrows?n.arrowSize:0,n.horizontal===o.ScrollbarVisibility.Hidden?0:n.horizontalScrollbarSize,n.vertical===o.ScrollbarVisibility.Hidden?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var l=(n.arrowSize-s.ARROW_IMG_SIZE)/2,c=(n.horizontalScrollbarSize-s.ARROW_IMG_SIZE)/2;u._createArrow({className:"left-arrow",top:c,left:l,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return u._host.onMouseWheel(new i.StandardMouseWheelEvent(null,1,0))}}),u._createArrow({className:"right-arrow",top:c,left:void 0,bottom:void 0,right:l,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return u._host.onMouseWheel(new i.StandardMouseWheelEvent(null,-1,0))}})}return u._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,null,n.horizontalSliderSize),u}return m(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this._canUseTranslate3d?(this.slider.setTransform("translate3d("+t+"px, 0px, 0px)"),this.slider.setLeft(0)):(this.slider.setTransform(""),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.posx-t.left},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype._getScrollPosition=function(){return this._scrollable.getScrollLeft()},t.prototype._setScrollPosition=function(e){this._scrollable.updateState({scrollLeft:e})},t}(n.AbstractScrollbar);t.HorizontalScrollbar=a}),define(d[501],h([0,1,143,36,40,138,117]),function(e,t,n,i,o,r,s){"use strict";var a=function(e){function t(t,n,a){var u=e.call(this,{canUseTranslate3d:n.canUseTranslate3d,lazyRender:n.lazyRender,host:a,scrollbarState:new r.ScrollbarState(n.verticalHasArrows?n.arrowSize:0,n.vertical===o.ScrollbarVisibility.Hidden?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var l=(n.arrowSize-s.ARROW_IMG_SIZE)/2,c=(n.verticalScrollbarSize-s.ARROW_IMG_SIZE)/2;u._createArrow({className:"up-arrow",top:l,left:c,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return u._host.onMouseWheel(new i.StandardMouseWheelEvent(null,0,1))}}),u._createArrow({className:"down-arrow",top:void 0,left:c,bottom:l,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return u._host.onMouseWheel(new i.StandardMouseWheelEvent(null,0,-1))}})}return u._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,null),u}return m(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this._canUseTranslate3d?(this.slider.setTransform("translate3d(0px, "+t+"px, 0px)"),this.slider.setTop(0)):(this.slider.setTransform(""),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 e.posy-t.top},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype._getScrollPosition=function(){return this._scrollable.getScrollTop()},t.prototype._setScrollPosition=function(e){this._scrollable.updateState({scrollTop:e})},t}(n.AbstractScrollbar);t.VerticalScrollbar=a}),define(d[64],h([0,1,6]),function(e,t,n){"use strict";function i(e){var t=null,i=!1;return new n.TPromise(function(n,o,r){t=new XMLHttpRequest,t.onreadystatechange=function(){i||(4===t.readyState?(t.status>=200&&t.status<300||1223===t.status?n(t):o(t),t.onreadystatechange=function(){}):r(t))},t.open(e.type||"GET",e.url,!0,e.user,e.password),t.responseType=e.responseType||"",Object.keys(e.headers||{}).forEach(function(n){t.setRequestHeader(n,e.headers[n])}),e.customRequestInitializer&&e.customRequestInitializer(t),t.send(e.data)},function(){i=!0,t.abort()})}var o;!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"}(o=t.Schemas||(t.Schemas={})),t.xhr=i}),define(d[156],h([0,1,10,4,6,17,18]),function(e,t,n,i,o,r,s){"use strict";function a(e){s.isWeb&&(c||(c=!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))}function u(e){return new p(e)}var l="$initialize",c=!1;t.logOnceWebWorkerWarning=a;var d=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=String(++this._lastSentReq),i={c:null,e:null},r=new o.TPromise(function(e,t,n){i.c=e,i.e=t},function(){});return this._pendingReplies[n]=i,this._send({vsWorker:this._workerId,req:n,method:e,args:t}),r},e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){}t.vsWorker&&(this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t))},e.prototype._handleMessage=function(e){var t=this;if(e.seq){var i=e;if(!this._pendingReplies[i.seq])return void console.warn("Got reply to unknown seq");var o=this._pendingReplies[i.seq];if(delete this._pendingReplies[i.seq],i.err){var r=i.err;return i.err.$isError&&(r=new Error,r.name=i.err.name,r.message=i.err.message,r.stack=i.err.stack),void o.e(r)}return void o.c(i.res)}var s=e,a=s.req,u=this._handler.handleMessage(s.method,s.args);u.then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){t._send({vsWorker:t._workerId,seq:a,res:void 0,err:n.transformErrorForSerialization(e)})})},e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)},e}(),h=function(e){function t(t,n){var i=e.call(this)||this;i._lastRequestTimestamp=-1;var r=null,s=null;i._worker=i._register(t.create("vs/base/common/worker/simpleWorker",function(e){i._protocol.handleMessage(e)},function(e){s(e)})),i._protocol=new d({sendMessage:function(e){i._worker.postMessage(e)},handleMessage:function(e,t){return o.TPromise.as(null)}}),i._protocol.setWorkerId(i._worker.getId());var a=null,u=self.require;"function"==typeof u.getConfig?a=u.getConfig():"undefined"!=typeof self.requirejs&&(a=self.requirejs.s.contexts._.config),i._lazyProxy=new o.TPromise(function(e,t,n){r=e,s=t},function(){}),i._onModuleLoaded=i._protocol.sendMessage(l,[i._worker.getId(),n,a]),i._onModuleLoaded.then(function(e){for(var t={},n=0;n0},e.prototype.getChildren=function(e,t){var i=this.modelProvider.getModel();return n.TPromise.as(i===t?i.entries:[])},e.prototype.getParent=function(e,t){return n.TPromise.as(null)},e}();t.DataSource=o;var r=function(){function e(e){this.modelProvider=e}return e.prototype.getAriaLabel=function(e,t){var n=this.modelProvider.getModel();return n.accessibilityProvider&&n.accessibilityProvider.getAriaLabel(t)},e}();t.AccessibilityProvider=r;var s=function(){function e(e){this.modelProvider=e}return e.prototype.isVisible=function(e,t){var n=this.modelProvider.getModel();return!n.filter||n.filter.isVisible(t)},e}();t.Filter=s;var a=function(){function e(e){this.modelProvider=e}return e.prototype.getHeight=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){var n=this.modelProvider.getModel();return n.renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){var i=this.modelProvider.getModel();return i.renderer.renderTemplate(t,n)},e.prototype.renderElement=function(e,t,n,i){var o=this.modelProvider.getModel();o.renderer.renderElement(t,n,i)},e.prototype.disposeTemplate=function(e,t,n){var i=this.modelProvider.getModel();i.renderer.disposeTemplate(t,n)},e}();t.Renderer=a}),define(d[76],h([0,1]),function(e,t){"use strict";var n;!function(e){e[e.PREVIEW=0]="PREVIEW",e[e.OPEN=1]="OPEN",e[e.OPEN_IN_BACKGROUND=2]="OPEN_IN_BACKGROUND"}(n=t.Mode||(t.Mode={}))}),define(d[179],h([0,1]),function(e,t){"use strict";var n=function(){function e(e,t,n){this._posx=e,this._posy=t,this._target=n}return e.prototype.preventDefault=function(){},e.prototype.stopPropagation=function(){},Object.defineProperty(e.prototype,"posx",{get:function(){return this._posx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"posy",{get:function(){return this._posy},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),e}();t.ContextMenuEvent=n;var i=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return m(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(n);t.MouseContextMenuEvent=i;var o=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return m(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(n);t.KeyboardContextMenuEvent=o;var r;!function(e){e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE"}(r=t.DragOverEffect||(t.DragOverEffect={}));var s;!function(e){e[e.BUBBLE_DOWN=0]="BUBBLE_DOWN",e[e.BUBBLE_UP=1]="BUBBLE_UP"}(s=t.DragOverBubble||(t.DragOverBubble={})),t.DRAG_OVER_REJECT={accept:!1},t.DRAG_OVER_ACCEPT={accept:!0},t.DRAG_OVER_ACCEPT_BUBBLE_UP={accept:!0,bubble:s.BUBBLE_UP},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:s.BUBBLE_DOWN,autoExpand:e}},t.DRAG_OVER_ACCEPT_BUBBLE_UP_COPY={accept:!0,bubble:s.BUBBLE_UP,effect:r.COPY},t.DRAG_OVER_ACCEPT_BUBBLE_DOWN_COPY=function(e){return void 0===e&&(e=!1),{accept:!0,bubble:s.BUBBLE_DOWN,effect:r.COPY}}}),define(d[181],h([0,1]),function(e,t){"use strict";var n=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ElementsDragAndDropData=n;var i=function(){function e(e){this.elements=e}return e.prototype.update=function(e){},e.prototype.getData=function(){return this.elements},e}();t.ExternalElementsDragAndDropData=i;var o=function(){function e(){this.types=[],this.files=[]}return e.prototype.update=function(e){e.dataTransfer.types&&(this.types=[],Array.prototype.push.apply(this.types,e.dataTransfer.types)),e.dataTransfer.files&&(this.files=[],Array.prototype.push.apply(this.files,e.dataTransfer.files),this.files=this.files.filter(function(e){return e.size||e.type}))},e.prototype.getData=function(){return{types:this.types,files:this.files}},e}();t.DesktopDragAndDropData=o}),define(d[184],h([0,1,55,10,4,26,25,6]),function(e,t,n,i,o,r,s,a){"use strict";function u(e,t){for(var n=e.getHierarchy(),i=t.getHierarchy(),o=r.commonPrefixLength(n,i),s=n[o-1],a=s.getNavigator(),u=null,l=null,c=0,d=[];s&&(null===u||null===l);)d.push(s),s===e&&(u=c),s===t&&(l=c),c++,s=a.next();if(null===u||null===l)return[];var h=Math.min(u,l),p=Math.max(u,l);return d.slice(h,p+1)}var l=function(e){function t(t){var n=e.call(this)||this;return n._item=t,n}return m(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.emit("unlock"),e.prototype.dispose.call(this)},t}(s.EventEmitter);t.LockData=l;var c=function(){function e(){this.locks=Object.create({})}return e.prototype.isLocked=function(e){return!!this.locks[e.id]},e.prototype.run=function(e,t){var n=this,i=this.getLock(e);if(i){var o;return new a.Promise(function(r,s){o=i.addOneTimeDisposableListener("unlock",function(){return n.run(e,t).then(r,s)})},function(){o.dispose()})}var r;return new a.Promise(function(i,o){if(e.isDisposed())return o(new Error("Item is disposed."));var s=n.locks[e.id]=new l(e);return r=t().then(function(t){return delete n.locks[e.id],s.dispose(),t}).then(i,o)},function(){return r.cancel()})},e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null},e}();t.Lock=c;var d=function(e){function t(){var t=e.call(this)||this;return t._isDisposed=!1,t.items={},t}return m(t,e),t.prototype.register=function(e){n.ok(!this.isRegistered(e.id),"item already registered: "+e.id),this.items[e.id]={item:e,disposable:this.addEmitter2(e)}},t.prototype.deregister=function(e){n.ok(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},t.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},t.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.items=null,this._isDisposed=!0},t.prototype.isDisposed=function(){return this._isDisposed},t}(s.EventEmitter);t.ItemRegistry=d;var h=function(e){function t(t,n,i,o,r){var s=e.call(this)||this;return s.registry=n,s.context=i,s.lock=o,s.element=r,s.id=t,s.registry.register(s),s.doesHaveChildren=s.context.dataSource.hasChildren(s.context.tree,s.element),s.needsChildrenRefresh=!0,s.parent=null,s.previous=null,s.next=null,s.firstChild=null,s.lastChild=null,s.userContent=null,s.traits={},s.depth=0,s.expanded=!1,s.emit("item:create",{item:s}),s.visible=s._isVisible(),s.height=s._getHeight(),s._isDisposed=!1,s}return m(t,e),t.prototype.getElement=function(){return this.element},t.prototype.hasChildren=function(){return this.doesHaveChildren},t.prototype.getDepth=function(){return this.depth},t.prototype.isVisible=function(){return this.visible},t.prototype.setVisible=function(e){this.visible=e},t.prototype.isExpanded=function(){return this.expanded},t.prototype._setExpanded=function(e){this.expanded=e},t.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this.emit("item:reveal",t)},t.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return a.TPromise.as(!1);var t=this.lock.run(this,function(){var t,n={item:e};return e.emit("item:expanding",n),t=e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):a.TPromise.as(null),t.then(function(){return e._setExpanded(!0),e.emit("item:expanded",n),!0})});return t.then(function(t){return!e.isDisposed()&&(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible()?e.firstChild.expand().then(function(){return!0}):t)})},t.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=a.TPromise.as(null);return this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})}),n.then(function(){return t.collapse(!1)})}return!this.isExpanded()||this.lock.isLocked(this)?a.TPromise.as(!1):this.lock.run(this,function(){var e={item:t};return t.emit("item:collapsing",e),t._setExpanded(!1),t.emit("item:collapsed",e),a.TPromise.as(!0)})},t.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this.emit("item:addTrait",t)},t.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this.emit("item:removeTrait",t)},t.prototype.hasTrait=function(e){return this.traits[e]||!1},t.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},t.prototype.getHeight=function(){return this.height},t.prototype.refreshChildren=function(e,n,o){var r=this;if(void 0===n&&(n=!1),void 0===o&&(o=!1),!o&&!this.isExpanded())return this.needsChildrenRefresh=!0,a.TPromise.as(this);this.needsChildrenRefresh=!1;var s=function(){var o={item:r,isNested:n};r.emit("item:childrenRefreshing",o);var s;s=r.doesHaveChildren?r.context.dataSource.getChildren(r.context.tree,r.element):a.TPromise.as([]);var u=s.then(function(n){if(r.isDisposed()||r.registry.isDisposed())return a.TPromise.as(null);n=n?n.slice(0):[],n=r.sort(n);for(var i={};null!==r.firstChild;)i[r.firstChild.id]=r.firstChild,r.removeChild(r.firstChild);for(var o=0,s=n.length;o0?o[0]:this.input,s=this.getNavigator(r,!1),a=0;a0?n[0]:this.input,o=this.getNavigator(i,!1),r=o.parent();r&&(t?this.setSelection([r],e):this.select(r,e))},t.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this.emit("focus",n)},t.prototype.isFocused=function(e){var t=this.getItem(e);return!!t&&t.hasTrait("focused")},t.prototype.getFocus=function(e){var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},t.prototype.focusNext=function(e,t){void 0===e&&(e=1);for(var n,i=this.getFocus()||this.input,o=this.getNavigator(i,!1),r=0;r=0;r--)this.onInsertItem(l[r]);for(r=this.heightMap.length-1;r>=o;r--)this.onRefreshItem(this.heightMap[r]);return a},t.prototype.onInsertItem=function(e){},t.prototype.onRemoveItems=function(e){for(var t,n,i,o=null,r=0;t=e.next();){if(i=this.indexes[t],n=this.heightMap[i],!n)return void console.error("view item doesnt exist");r-=n.height,delete this.indexes[t],this.onRemoveItem(n),null===o&&(o=i)}if(0!==r)for(this.heightMap.splice(o,i-o+1),i=o;i=n.top+n.height))return t;if(i===t)break;i=t}return this.heightMap.length},t.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},t.prototype.itemAtIndex=function(e){return this.heightMap[e]},t.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},t.prototype.createViewItem=function(e){throw new Error("not implemented")},t.prototype.dispose=function(){this.heightMap=null,this.indexes=null},t}(n.EventEmitter);t.HeightMap=o}),define(d[188],h([0,1,18,156]),function(e,t,n,i){"use strict";function o(e,t){return void 0===t&&(t=!1),n.globals.MonacoEnvironment&&n.globals.MonacoEnvironment.hasOwnProperty(e)?n.globals.MonacoEnvironment[e]:t}function r(t,n){return e.toUrl("./"+t)+"#"+n}var s=o("getWorkerUrl",null),a=s||r,u=function(){function e(e,t,n,i,o){this.id=t,this.worker=new Worker(a("workerMain.js",n)),this.postMessage(e),this.worker.onmessage=function(e){i(e.data)},"function"==typeof this.worker.addEventListener&&this.worker.addEventListener("error",o)}return e.prototype.getId=function(){return this.id},e.prototype.postMessage=function(e){this.worker&&this.worker.postMessage(e)},e.prototype.dispose=function(){this.worker.terminate(),this.worker=null},e}(),l=function(){function e(e){this._label=e,this._webWorkerFailedBeforeError=!1}return e.prototype.create=function(t,n,o){var r=this,s=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new u(t,s,this._label||"anonymous"+s,n,function(e){i.logOnceWebWorkerWarning(e),r._webWorkerFailedBeforeError=e,o(e)})},e}();l.LAST_WORKER_ID=0,t.DefaultWorkerFactory=l}),define(d[190],h([5]),{}),define(d[34],h([0,1,6,22,4,9,55,11,190]),function(e,t,n,i,o,r,s,a){"use strict";function u(e,t){s.ok(i.isString(e),"Expected String as parameter");var n=document.getElementById(e);return n?new x(n,t):null}function l(e){return e[b]||(e[b]={}),e[b]}function c(e){return!!e[b]}function d(e,t){return e instanceof M?new M(e):new x(e.getHTMLElement(),t)}function h(e,t){return new x(e,t)}function p(){return new x(null,!0)}function f(e,t,n){l(e)[t]=n}function g(e,t,n){if(c(e)){var o=l(e)[t];if(!i.isUndefined(o))return o}return n}function v(e,t){c(e)&&delete l(e)[t]}function _(e,t){f(e,w,t)}function y(e){v(e,w)}function C(e){return g(e,w)}t.withElementById=u,t.Build={withElementById:u};var b="_msDataKey",w="__$binding",S="__$listeners",E="__$visibility",L=function(){function e(e,t){this.x=e,this.y=t}return e}();t.Position=L;var N=function(){function e(e,t,n,i){this.top=e,this.right=t,this.bottom=n,this.left=i}return e}();t.Box=N;var T=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.substract=function(t){return new e(this.width-t.left-t.right,this.height-t.top-t.bottom)},e}();t.Dimension=T;var x=function(){function e(e,t){this.offdom=t,this.container=e,this.currentElement=e,this.createdElements=[],this.toUnbind={},this.captureToUnbind={}}return e.prototype.asContainer=function(){return d(this,this.offdom)},e.prototype.clone=function(){var t=new e(this.container,this.offdom);return t.currentElement=this.currentElement,t.createdElements=this.createdElements,t.captureToUnbind=this.captureToUnbind,t.toUnbind=this.toUnbind,t},e.prototype.and=function(t){t instanceof e||t instanceof M||(t=new e(t,this.offdom));var n=[this];if(t instanceof M)for(var i=0;i=0){var n=e.split("-");e=n[0];for(var i=1;i=0){var t=e.split("-");e=t[0];for(var n=1;n=0?this.padding.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.paddingTop=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.paddingRight=this.toPixel(t)),i.isUndefinedOrNull(n)||(this.currentElement.style.paddingBottom=this.toPixel(n)),i.isUndefinedOrNull(o)||(this.currentElement.style.paddingLeft=this.toPixel(o)),this)},e.prototype.margin=function(e,t,n,o){return i.isString(e)&&e.indexOf(" ")>=0?this.margin.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.marginTop=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.marginRight=this.toPixel(t)),i.isUndefinedOrNull(n)||(this.currentElement.style.marginBottom=this.toPixel(n)),i.isUndefinedOrNull(o)||(this.currentElement.style.marginLeft=this.toPixel(o)),this)},e.prototype.position=function(e,t,n,o,r){return i.isString(e)&&e.indexOf(" ")>=0?this.position.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.top=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.right=this.toPixel(t)),i.isUndefinedOrNull(n)||(this.currentElement.style.bottom=this.toPixel(n)),i.isUndefinedOrNull(o)||(this.currentElement.style.left=this.toPixel(o)),r||(r="absolute"),this.currentElement.style.position=r,this)},e.prototype.size=function(e,t){return i.isString(e)&&e.indexOf(" ")>=0?this.size.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.width=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.height=this.toPixel(t)),this)},e.prototype.minSize=function(e,t){return i.isString(e)&&e.indexOf(" ")>=0?this.minSize.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.minWidth=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.minHeight=this.toPixel(t)),this)},e.prototype.maxSize=function(e,t){return i.isString(e)&&e.indexOf(" ")>=0?this.maxSize.apply(this,e.split(" ")):(i.isUndefinedOrNull(e)||(this.currentElement.style.maxWidth=this.toPixel(e)),i.isUndefinedOrNull(t)||(this.currentElement.style.maxHeight=this.toPixel(t)),this)},e.prototype.float=function(e){return this.currentElement.style.cssFloat=e,this},e.prototype.clear=function(e){return this.currentElement.style.clear=e,this},e.prototype.normal=function(){return this.currentElement.style.fontStyle="normal",this.currentElement.style.fontWeight="normal",this.currentElement.style.textDecoration="none",this},e.prototype.italic=function(){return this.currentElement.style.fontStyle="italic",this},e.prototype.bold=function(){return this.currentElement.style.fontWeight="bold",this},e.prototype.underline=function(){return this.currentElement.style.textDecoration="underline",this},e.prototype.overflow=function(e){return this.currentElement.style.overflow=e,this},e.prototype.display=function(e){return this.currentElement.style.display=e,this},e.prototype.disable=function(){return this.currentElement.setAttribute("disabled","disabled"),this},e.prototype.enable=function(){return this.currentElement.removeAttribute("disabled"),this},e.prototype.show=function(){return this.hasClass("builder-hidden")&&this.removeClass("builder-hidden"),this.attr("aria-hidden","false"),this.cancelVisibilityPromise(),this},e.prototype.showDelayed=function(e){var t=this;this.cancelVisibilityPromise();var i=n.TPromise.timeout(e);return this.setProperty(E,i),i.done(function(){t.removeProperty(E),t.show()}),this},e.prototype.hide=function(){return this.hasClass("builder-hidden")||this.addClass("builder-hidden"),this.attr("aria-hidden","true"),this.cancelVisibilityPromise(),this},e.prototype.isHidden=function(){return this.hasClass("builder-hidden")||"none"===this.currentElement.style.display},e.prototype.toggleVisibility=function(){return this.cancelVisibilityPromise(),this.swapClass("builder-visible","builder-hidden"),this.isHidden()?this.attr("aria-hidden","true"):this.attr("aria-hidden","false"),this},e.prototype.cancelVisibilityPromise=function(){var e=this.getProperty(E);e&&(e.cancel(),this.removeProperty(E))},e.prototype.border=function(e,t,n){return i.isString(e)&&e.indexOf(" ")>=0?this.border.apply(this,e.split(" ")):(this.currentElement.style.borderWidth=this.toPixel(e),n&&(this.currentElement.style.borderColor=n),t&&(this.currentElement.style.borderStyle=t),this)},e.prototype.borderTop=function(e,t,n){return i.isString(e)&&e.indexOf(" ")>=0?this.borderTop.apply(this,e.split(" ")):(this.currentElement.style.borderTopWidth=this.toPixel(e),n&&(this.currentElement.style.borderTopColor=n),t&&(this.currentElement.style.borderTopStyle=t),this)},e.prototype.borderBottom=function(e,t,n){return i.isString(e)&&e.indexOf(" ")>=0?this.borderBottom.apply(this,e.split(" ")):(this.currentElement.style.borderBottomWidth=this.toPixel(e),n&&(this.currentElement.style.borderBottomColor=n),t&&(this.currentElement.style.borderBottomStyle=t),this)},e.prototype.borderLeft=function(e,t,n){return i.isString(e)&&e.indexOf(" ")>=0?this.borderLeft.apply(this,e.split(" ")):(this.currentElement.style.borderLeftWidth=this.toPixel(e),n&&(this.currentElement.style.borderLeftColor=n),t&&(this.currentElement.style.borderLeftStyle=t),this)},e.prototype.borderRight=function(e,t,n){return i.isString(e)&&e.indexOf(" ")>=0?this.borderRight.apply(this,e.split(" ")):(this.currentElement.style.borderRightWidth=this.toPixel(e),n&&(this.currentElement.style.borderRightColor=n),t&&(this.currentElement.style.borderRightStyle=t),this)},e.prototype.textAlign=function(e){return this.currentElement.style.textAlign=e,this},e.prototype.verticalAlign=function(e){return this.currentElement.style.verticalAlign=e,this},e.prototype.toPixel=function(e){return e.toString().indexOf("px")===-1?e.toString()+"px":e},e.prototype.innerHtml=function(e,t){return t?this.currentElement.innerHTML+=e:this.currentElement.innerHTML=e,this},e.prototype.text=function(e,t){return t?0===this.currentElement.children.length?this.currentElement.textContent+=e:this.currentElement.appendChild(document.createTextNode(e)):this.currentElement.textContent=e,this},e.prototype.safeInnerHtml=function(e,t){return this.innerHtml(r.escape(e),t)},e.prototype.bind=function(e){return _(this.currentElement,e),this},e.prototype.unbind=function(){return y(this.currentElement),this},e.prototype.getBinding=function(){return C(this.currentElement)},e.prototype.setProperty=function(e,t){return f(this.currentElement,e,t),this},e.prototype.getProperty=function(e,t){return g(this.currentElement,e,t)},e.prototype.removeProperty=function(e){return c(this.currentElement)&&delete l(this.currentElement)[e],this},e.prototype.parent=function(e){return s.ok(!this.offdom,"Builder was created with offdom = true and thus has no parent set"),h(this.currentElement.parentNode,e)},e.prototype.children=function(e){for(var t=this.currentElement.children,n=[],i=0;i=n.top&&o+e.height<=n.top+n.height,l=r>=n.top&&r+e.height<=n.top+n.height;return s(o,a,r,l,i===u.ABOVE)}(),c=function(){var i=t.left,r=t.left+t.width-e.width,u=i>=n.left&&i+e.width<=n.left+n.width,l=r>=n.left&&r+e.width<=n.left+n.width;return s(i,u,r,l,o===a.LEFT)}();return{top:l,left:c}}var a;!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(a=t.AnchorAlignment||(t.AnchorAlignment={}));var u;!function(e){e[e.BELOW=0]="BELOW",e[e.ABOVE=1]="ABOVE"}(u=t.AnchorPosition||(t.AnchorPosition={}));var l=function(e){function t(t){var i=e.call(this)||this;return i.$view=n.$(".context-view").hide(),i.setContainer(t),i.toDispose=[{dispose:function(){i.setContainer(null)}}],i.toDisposeOnClean=null,i}return m(t,e),t.prototype.setContainer=function(e){var i=this;this.$container&&(this.$container.off(t.BUBBLE_UP_EVENTS),this.$container.off(t.BUBBLE_DOWN_EVENTS,!0),this.$container=null),e&&(this.$container=n.$(e),this.$view.appendTo(this.$container),this.$container.on(t.BUBBLE_UP_EVENTS,function(e){i.onDOMEvent(e,document.activeElement,!1)}),this.$container.on(t.BUBBLE_DOWN_EVENTS,function(e){i.onDOMEvent(e,document.activeElement,!0)},null,!0))},t.prototype.show=function(e){this.isVisible()&&this.hide(),this.$view.setClass("context-view").empty().style({top:"0px",left:"0px"}).show(),this.toDisposeOnClean=e.render(this.$view.getHTMLElement()),this.delegate=e,this.doLayout()},t.prototype.layout=function(){ -if(this.isVisible()){if(this.delegate.canRelayout===!1)return void this.hide();this.delegate.layout&&this.delegate.layout(),this.doLayout()}},t.prototype.doLayout=function(){var e,t=this.delegate.getAnchor();if(i.isHTMLElement(t)){var n=i.getDomNodePagePosition(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else{var o=t;e={top:o.y,left:o.x,width:o.width||0,height:o.height||0}}var r={top:i.StandardWindow.scrollY,left:i.StandardWindow.scrollX,height:window.innerHeight,width:window.innerWidth},l=this.$view.getTotalSize(),c={width:l.width,height:l.height},d=this.delegate.anchorPosition||u.BELOW,h=this.delegate.anchorAlignment||a.LEFT,p=s(c,e,r,d,h),f=i.getDomNodePagePosition(this.$container.getHTMLElement());p.top-=f.top,p.left-=f.left,this.$view.removeClass("top","bottom","left","right"),this.$view.addClass(d===u.BELOW?"bottom":"top"),this.$view.addClass(h===a.LEFT?"left":"right"),this.$view.style({top:p.top+"px",left:p.left+"px",width:"initial"})},t.prototype.hide=function(e){this.delegate&&this.delegate.onHide&&this.delegate.onHide(e),this.delegate=null,this.toDisposeOnClean&&(this.toDisposeOnClean.dispose(),this.toDisposeOnClean=null),this.$view.hide()},t.prototype.isVisible=function(){return!!this.delegate},t.prototype.onDOMEvent=function(e,t,n){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):n&&!i.isAncestor(e.target,this.$container.getHTMLElement())&&this.hide())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.hide(),this.toDispose=o.dispose(this.toDispose)},t}(r.EventEmitter);l.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],l.BUBBLE_DOWN_EVENTS=["click"],t.ContextView=l}),define(d[214],h([5]),{}),define(d[217],h([0,1,11,9,214]),function(e,t,n,i){"use strict";var o=function(){function e(e,t,i){this.element=n.append(e,n.$(".monaco-count-badge")),this.titleFormat=i||"",this.setCount(t||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=""+this.count,this.element.title=i.format(this.titleFormat,this.count)},e}();t.CountBadge=o}),define(d[219],h([5]),{}),define(d[221],h([5]),{}),define(d[228],h([5]),{}),define(d[133],h([0,1,11,112,39,22,165,228]),function(e,t,n,i,o,r,s){"use strict";function a(e){if(!e)return null;if(r.isFunction(e.getWorkspace)){var t=e.getWorkspace();return t?t.resource.fsPath:void 0}return e.fsPath}var u=function(){function e(e,t){this.domNode=n.append(e,n.$(".monaco-icon-label")),t&&t.supportHighlights?this.labelNode=new i.HighlightedLabel(n.append(this.domNode,n.$("a.label-name"))):this.labelNode=n.append(this.domNode,n.$("a.label-name")),this.descriptionNode=n.append(this.domNode,n.$("span.label-description"))}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"labelElement",{get:function(){var e=this.labelNode;return e instanceof i.HighlightedLabel?e.element:e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"descriptionElement",{get:function(){return this.descriptionNode},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t,o){var r=this.labelNode;r instanceof i.HighlightedLabel?r.set(e||"",o?o.matches:void 0):r.textContent=e||"",this.descriptionNode.textContent=t||"",t?n.removeClass(this.descriptionNode,"empty"):n.addClass(this.descriptionNode,"empty"),this.domNode.title=o&&o.title?o.title:"";var s=["monaco-icon-label"];o&&(o.extraClasses&&s.push.apply(s,o.extraClasses),o.italic&&s.push("italic")),this.domNode.className=s.join(" ")},e.prototype.dispose=function(){var e=this.labelNode;e instanceof i.HighlightedLabel&&e.dispose()},e}();t.IconLabel=u;var l=function(e){function t(t,n,i){var o=e.call(this,t)||this;return o.setFile(n,i),o}return m(t,e),t.prototype.setFile=function(e,t){var n=a(e),i=o.dirname(n);this.setValue(o.basename(n),i&&"."!==i?s.getPathLabel(i,t):"",{title:n})},t}(u);t.FileLabel=l}),define(d[236],h([5]),{}),define(d[240],h([5]),{}),define(d[243],h([0,1,34,240]),function(e,t,n){"use strict";var i=function(){function e(e,t,i){this.$el=n.$(".monaco-left-right-widget").appendTo(e),this.toDispose=[i(n.$(".right").appendTo(this.$el).getHTMLElement()),t(n.$("span.left").appendTo(this.$el).getHTMLElement())].filter(function(e){return!!e})}return e.prototype.dispose=function(){this.$el&&(this.$el.destroy(),this.$el=null)},e}();t.LeftRightWidget=i}),define(d[245],h([5]),{}),define(d[246],h([5]),{}),define(d[134],h([5]),{}),define(d[250],h([0,1,6,55,34,11,4,134]),function(e,t,n,i,o,r,s){"use strict";var a="done",u="active",l="infinite",c="discrete",d="progress-container",h="progress-bit",p=function(){function e(e){this.toUnbind=[],this.workedVal=0,this.create(e)}return e.prototype.create=function(e){var t=this;e.div({class:d},function(e){t.element=e.clone(),e.div({class:h}).on([r.EventType.ANIMATION_START,r.EventType.ANIMATION_END,r.EventType.ANIMATION_ITERATION],function(e){switch(e.type){case r.EventType.ANIMATION_START:case r.EventType.ANIMATION_END:t.animationRunning=e.type===r.EventType.ANIMATION_START;break;case r.EventType.ANIMATION_ITERATION:t.animationStopToken&&t.animationStopToken(null)}},t.toUnbind),t.bit=e.getHTMLElement()})},e.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.removeClass(u),this.element.removeClass(l),this.element.removeClass(c),this.workedVal=0,this.totalWork=void 0},e.prototype.done=function(){return this.doDone(!0)},e.prototype.stop=function(){return this.doDone(!1)},e.prototype.doDone=function(e){var t=this;return this.element.addClass(a),this.element.hasClass(l)?(this.bit.style.opacity="0",e?n.TPromise.timeout(200).then(function(){return t.off()}):this.off()):(this.bit.style.width="inherit",e?n.TPromise.timeout(200).then(function(){return t.off()}):this.off()),this},e.prototype.infinite=function(){return this.bit.style.width="2%",this.bit.style.opacity="1",this.element.removeClass(c),this.element.removeClass(a),this.element.addClass(u),this.element.addClass(l),this},e.prototype.total=function(e){return this.workedVal=0,this.totalWork=e,this},e.prototype.hasTotal=function(){return!isNaN(this.totalWork)},e.prototype.worked=function(e){return i.ok(!isNaN(this.totalWork),"Total work not set"),e=Number(e),i.ok(!isNaN(e),"Value is not a number"),e=Math.max(1,e),this.workedVal+=e,this.workedVal=Math.min(this.totalWork,this.workedVal),this.element.hasClass(l)&&this.element.removeClass(l),this.element.hasClass(a)&&this.element.removeClass(a),this.element.hasClass(u)||this.element.addClass(u),this.element.hasClass(c)||this.element.addClass(c),this.bit.style.width=100*(this.workedVal/this.totalWork)+"%",this},e.prototype.getContainer=function(){return o.$(this.element)},e.prototype.dispose=function(){this.toUnbind=s.dispose(this.toUnbind)},e}();t.ProgressBar=p}),define(d[253],h([5]),{}),define(d[98],h([0,1,4,34,24,18,22,11,59,25,36,12,253]),function(e,t,n,i,o,r,s,a,u,l,c,d){"use strict";var h;!function(e){e[e.VERTICAL=0]="VERTICAL",e[e.HORIZONTAL=1]="HORIZONTAL"}(h=t.Orientation||(t.Orientation={}));var p=function(e){function t(t,n,s){void 0===s&&(s={});var l=e.call(this)||this;return l.$e=i.$(".monaco-sash").appendTo(t),r.isMacintosh&&l.$e.addClass("mac"),l.gesture=new u.Gesture(l.$e.getHTMLElement()),l.$e.on(a.EventType.MOUSE_DOWN,function(e){l.onMouseDown(e)}),l.$e.on(a.EventType.DBLCLICK,function(e){l.emit("reset",e)}),l.$e.on(u.EventType.Start,function(e){l.onTouchStart(e)}),l.size=s.baseSize||5,o.isIPad&&(l.size*=4,l.$e.addClass("touch")),l.setOrientation(s.orientation||h.VERTICAL),l.isDisabled=!1,l.hidden=!1,l.layoutProvider=n,l}return m(t,e),t.prototype.getHTMLElement=function(){return this.$e.getHTMLElement()},t.prototype.setOrientation=function(e){this.orientation=e,this.$e.removeClass("horizontal","vertical"),this.$e.addClass(this.getOrientation()),this.orientation===h.HORIZONTAL?this.$e.size(null,this.size):this.$e.size(this.size),this.layoutProvider&&this.layout()},t.prototype.getOrientation=function(){return this.orientation===h.HORIZONTAL?"horizontal":"vertical"},t.prototype.onMouseDown=function(e){var t=this;if(a.EventHelper.stop(e,!1),!this.isDisabled){var n=i.$(a.getElementsByTagName("iframe"));n&&n.style("pointer-events","none");var o=new c.StandardMouseEvent(e),s=o.posx,u=o.posy,l={startX:s,currentX:s,startY:u,currentY:u};this.$e.addClass("active"),this.emit("start",l);var d=i.$(window),h=this.getOrientation()+"-cursor-container"+(r.isMacintosh?"-mac":""),p=s,f=u;d.on("mousemove",function(e){a.EventHelper.stop(e,!1);var n=new c.StandardMouseEvent(e),i={startX:s,currentX:n.posx,startY:u,currentY:n.posy};p=n.posx,f=n.posy,t.emit("change",i)}).once("mouseup",function(e){a.EventHelper.stop(e,!1),t.$e.removeClass("active"),t.emit("end"),d.off("mousemove"),document.body.classList.remove(h);var n=i.$(a.getElementsByTagName("iframe"));n&&n.style("pointer-events","auto")}),document.body.classList.add(h)}},t.prototype.onTouchStart=function(e){var t=this;a.EventHelper.stop(e);var i=[],o=e.pageX,r=e.pageY;this.emit("start",{startX:o,currentX:o,startY:r,currentY:r});var l=o,c=r;i.push(a.addDisposableListener(this.$e.getHTMLElement(),u.EventType.Change,function(e){s.isNumber(e.pageX)&&s.isNumber(e.pageY)&&(t.emit("change",{startX:o,currentX:e.pageX,startY:r,currentY:e.pageY}),l=e.pageX,c=e.pageY)})),i.push(a.addDisposableListener(this.$e.getHTMLElement(),u.EventType.End,function(e){t.emit("end"),n.dispose(i)}))},t.prototype.layout=function(){var e;if(this.orientation===h.VERTICAL){var t=this.layoutProvider;e={left:t.getVerticalSashLeft(this)-this.size/2+"px"},t.getVerticalSashTop&&(e.top=t.getVerticalSashTop(this)+"px"),t.getVerticalSashHeight&&(e.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;e={top:n.getHorizontalSashTop(this)-this.size/2+"px"},n.getHorizontalSashLeft&&(e.left=n.getHorizontalSashLeft(this)+"px"),n.getHorizontalSashWidth&&(e.width=n.getHorizontalSashWidth(this)+"px")}this.$e.style(e)},t.prototype.show=function(){this.hidden=!1,this.$e.show()},t.prototype.hide=function(){this.hidden=!0,this.$e.hide()},t.prototype.isHidden=function(){return this.hidden},t.prototype.enable=function(){this.$e.removeClass("disabled"),this.isDisabled=!1},t.prototype.disable=function(){this.$e.addClass("disabled"),this.isDisabled=!0},t.prototype.dispose=function(){this.$e&&(this.$e.destroy(),this.$e=null),e.prototype.dispose.call(this)},t}(l.EventEmitter);t.Sash=p;var f=function(e){function t(t,n){var i=e.call(this)||this;return i.minWidth=n,i._onPositionChange=new d.Emitter,i.ratio=.5,i.sash=new p(t,i),i._register(i.sash.addListener2("start",function(){return i.onSashDragStart()})),i._register(i.sash.addListener2("change",function(e){return i.onSashDrag(e)})),i._register(i.sash.addListener2("end",function(){return i.onSashDragEnd()})),i._register(i.sash.addListener2("reset",function(){return i.onSashReset()})),i}return m(t,e),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.event},enumerable:!0,configurable:!0}),t.prototype.getVerticalSashTop=function(){return 0},t.prototype.getVerticalSashLeft=function(){return this.position},t.prototype.getVerticalSashHeight=function(){return this.dimension.height},t.prototype.setDimenesion=function(e){this.dimension=e,this.compute(this.ratio)},t.prototype.onSashDragStart=function(){this.startPosition=this.position},t.prototype.onSashDrag=function(e){this.compute((this.startPosition+(e.currentX-e.startX))/this.dimension.width)},t.prototype.compute=function(e){this.computeSashPosition(e),this.ratio=this.position/this.dimension.width,this._onPositionChange.fire(this.position)},t.prototype.onSashDragEnd=function(){this.sash.layout()},t.prototype.onSashReset=function(){this.ratio=.5,this._onPositionChange.fire(this.position),this.sash.layout()},t.prototype.computeSashPosition=function(e){void 0===e&&(e=this.ratio);var t=this.dimension.width,n=Math.floor((e||.5)*t),i=Math.floor(.5*t);t>2*this.minWidth?(nt-this.minWidth&&(n=t-this.minWidth)):n=i,this.position!==n&&(this.position=n,this.sash.layout())},t}(n.Disposable);t.VSash=f}),define(d[258],h([5]),{}),define(d[60],h([0,1,24,11,18,36,500,501,4,40,37,17,28,12,258]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";function f(e){var t={canUseTranslate3d:e.canUseTranslate3d&&n.canUseTranslate3d,lazyRender:"undefined"!=typeof e.lazyRender&&e.lazyRender,className:"undefined"!=typeof e.className?e.className:"",useShadows:"undefined"==typeof e.useShadows||e.useShadows,handleMouseWheel:"undefined"==typeof e.handleMouseWheel||e.handleMouseWheel,flipAxes:"undefined"!=typeof e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:"undefined"!=typeof e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:"undefined"!=typeof e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:"undefined"!=typeof e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,arrowSize:"undefined"!=typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!=typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!=typeof e.horizontal?e.horizontal:l.ScrollbarVisibility.Auto,horizontalScrollbarSize:"undefined"!=typeof e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:"undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:"undefined"!=typeof e.horizontalHasArrows&&e.horizontalHasArrows,vertical:"undefined"!=typeof e.vertical?e.vertical:l.ScrollbarVisibility.Auto,verticalScrollbarSize:"undefined"!=typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!=typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:0,saveLastScrollTimeOnClassName:"undefined"!=typeof e.saveLastScrollTimeOnClassName?e.saveLastScrollTimeOnClassName:null};return t.horizontalSliderSize="undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,o.isMacintosh&&(t.className+=" mac"),t}var g=500,v=50,_=function(e){function t(t,n){var i=e.call(this)||this;i._onScroll=i._register(new p.Emitter),i.onScroll=i._onScroll.event,t.style.overflow="hidden",i._options=f(n),i._scrollable=i._register(new l.Scrollable),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 a.VerticalScrollbar(i._scrollable,i._options,o)),i._horizontalScrollbar=i._register(new s.HorizontalScrollbar(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=h.createFastDomNode(document.createElement("div")),i._leftShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._leftShadowDomNode.domNode),i._topShadowDomNode=h.createFastDomNode(document.createElement("div")),i._topShadowDomNode.setClassName("shadow"),i._domNode.appendChild(i._topShadowDomNode.domNode),i._topLeftShadowDomNode=h.createFastDomNode(document.createElement("div")),i._topLeftShadowDomNode.setClassName("shadow top-left-corner"),i._domNode.appendChild(i._topLeftShadowDomNode.domNode)),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 d.TimeoutTimer),i._isDragging=!1,i._mouseIsOver=!1,i._shouldRender=!0,i}return m(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=u.dispose(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.updateState=function(e){this._scrollable.updateState(e)},t.prototype.getWidth=function(){return this._scrollable.getWidth()},t.prototype.getScrollWidth=function(){return this._scrollable.getScrollWidth()},t.prototype.getScrollLeft=function(){return this._scrollable.getScrollLeft()},t.prototype.getHeight=function(){return this._scrollable.getHeight()},t.prototype.getScrollHeight=function(){return this._scrollable.getScrollHeight()},t.prototype.getScrollTop=function(){return this._scrollable.getScrollTop()},t.prototype.updateClassName=function(e){this._options.className=e,o.isMacintosh&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=f(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._shouldRender=this._horizontalScrollbar.setCanUseTranslate3d(t.canUseTranslate3d)||this._shouldRender,this._shouldRender=this._verticalScrollbar.setCanUseTranslate3d(t.canUseTranslate3d)||this._shouldRender,this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this,n=this._mouseWheelToDispose.length>0;if(n!==e&&(this._mouseWheelToDispose=u.dispose(this._mouseWheelToDispose),e)){var o=function(e){var n=new r.StandardMouseWheelEvent(e);t._onMouseWheel(n)};this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"mousewheel",o)),this._mouseWheelToDispose.push(i.addDisposableListener(this._listenOnDomNode,"DOMMouseScroll",o))}},t.prototype._onMouseWheel=function(e){if(o.isMacintosh&&e.browserEvent&&this._options.saveLastScrollTimeOnClassName){var t=e.browserEvent.target;if(t&&1===t.nodeType){var n=i.findParentWithClass(t,this._options.saveLastScrollTimeOnClassName);n&&n.setAttribute("last-scroll-time",String((new Date).getTime()))}}var r=-1,s=-1;if(e.deltaY||e.deltaX){var a=e.deltaY*this._options.mouseWheelScrollSensitivity,u=e.deltaX*this._options.mouseWheelScrollSensitivity;if(this._options.flipAxes&&(d=[u,a],a=d[0],u=d[1]),this._options.scrollYToX&&!u&&(u=a,a=0),o.isMacintosh&&(a&&Math.abs(u)<.2&&(u=0),Math.abs(a)>.5*Math.abs(u)&&(u=0)),a){var l=this._scrollable.getScrollTop();r=this._verticalScrollbar.validateScrollPosition((r!==-1?r:l)-v*a),r===l&&(r=-1)}if(u){var c=this._scrollable.getScrollLeft();s=this._horizontalScrollbar.validateScrollPosition((s!==-1?s:c)-v*u),s===c&&(s=-1)}r===-1&&s===-1||(r!==-1&&(this._shouldRender=this._verticalScrollbar.setDesiredScrollPosition(r)||this._shouldRender,r=-1),s!==-1&&(this._shouldRender=this._horizontalScrollbar.setDesiredScrollPosition(s)||this._shouldRender,s=-1))}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation());var d},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._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.getScrollTop()>0,t=this._scrollable.getScrollLeft()>0;this._leftShadowDomNode.setClassName("shadow"+(t?" left":"")),this._topShadowDomNode.setClassName("shadow"+(e?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(e?" top":"")+(t?" 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._hideTimeout.cancelAndSet(function(){return e._hide()},g)},t}(c.Widget);t.ScrollableElement=_;var y=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._element=t,i.onScroll(function(e){e.scrollTopChanged&&(i._element.scrollTop=e.scrollTop),e.scrollLeftChanged&&(i._element.scrollLeft=e.scrollLeft)}),i.scanDomNode(),i}return m(t,e),t.prototype.scanDomNode=function(){this.updateState({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,scrollLeft:this._element.scrollLeft,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight,scrollTop:this._element.scrollTop})},t}(_);t.DomScrollableElement=y}),define(d[262],h([0,1,35,4,59,11,124,60,40,194,447]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";var d=["click","dblclick","mouseup","mousedown","mouseover","mousemove","mouseout","contextmenu"],h={useShadows:!0},p=function(){function e(e,t,i,r){void 0===r&&(r=h),this.delegate=t,this.items=[],this.itemId=0,this.rangeMap=new l.RangeMap,this.renderers=n.toObject(i,function(e){return e.templateId}),this.cache=new c.RowCache(this.renderers),this.lastRenderTop=0,this.lastRenderHeight=0,this._domNode=document.createElement("div"),this._domNode.className="monaco-list",this.rowsContainer=document.createElement("div"),this.rowsContainer.className="monaco-list-rows",this.gesture=new o.Gesture(this.rowsContainer),this.scrollableElement=new a.ScrollableElement(this.rowsContainer,{canUseTranslate3d:!1,alwaysConsumeMouseWheel:!0,horizontal:u.ScrollbarVisibility.Hidden,vertical:u.ScrollbarVisibility.Auto,useShadows:n.getOrDefault(r,function(e){return e.useShadows},h.useShadows),saveLastScrollTimeOnClassName:"monaco-list-row"}),this._domNode.appendChild(this.scrollableElement.getDomNode()),e.appendChild(this._domNode),this.disposables=[this.rangeMap,this.gesture,this.scrollableElement],this.scrollableElement.onScroll(this.onScroll,this,this.disposables),s.domEvent(this.rowsContainer,o.EventType.Change)(this.onTouchChange,this,this.disposables),this.layout()}return Object.defineProperty(e.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;void 0===n&&(n=[]);var o=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);l.each(o,function(e){return i.removeItemFromDOM(i.items[e])});var r=n.map(function(e){return{id:String(i.itemId++),element:e,size:i.delegate.getHeight(e),templateId:i.delegate.getTemplateId(e),row:null}});(c=this.rangeMap).splice.apply(c,[e,t].concat(r));var s=(d=this.items).splice.apply(d,[e,t].concat(r)),a=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight);l.each(a,function(e){return i.insertItemInDOM(i.items[e],e)});var u=this.getContentHeight();return this.rowsContainer.style.height=u+"px",this.scrollableElement.updateState({scrollHeight:u}),s.map(function(e){return e.element});var c,d},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.getHeight()},enumerable:!0,configurable:!0}),e.prototype.element=function(e){return this.items[e].element},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){this.scrollableElement.updateState({height:e||r.getContentHeight(this._domNode)})},e.prototype.render=function(e,t){var n=this,i=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),o=this.getRenderRange(e,t),r=l.relativeComplement(o,i),s=l.relativeComplement(i,o);r.forEach(function(e){return l.each(e,function(e){return n.insertItemInDOM(n.items[e],e)})}),s.forEach(function(e){return l.each(e,function(e){return n.removeItemFromDOM(n.items[e])})});var a="translate3d(0px, -"+e+"px, 0px)";this.rowsContainer.style.transform=a,this.rowsContainer.style.webkitTransform=a,this.lastRenderTop=e,this.lastRenderHeight=t},e.prototype.insertItemInDOM=function(e,t){e.row||(e.row=this.cache.alloc(e.templateId)),e.row.domNode.parentElement||this.rowsContainer.appendChild(e.row.domNode);var n=this.renderers[e.templateId];e.row.domNode.style.top=this.elementTop(t)+"px",e.row.domNode.style.height=e.size+"px",e.row.domNode.setAttribute("data-index",""+t),n.renderElement(e.element,t,e.row.templateData)},e.prototype.removeItemFromDOM=function(e){this.cache.release(e.row),e.row=null},e.prototype.getContentHeight=function(){return this.rangeMap.size},e.prototype.getScrollTop=function(){return this.scrollableElement.getScrollTop()},e.prototype.setScrollTop=function(e){this.scrollableElement.updateState({scrollTop:e})},Object.defineProperty(e.prototype,"scrollTop",{get:function(){return this.getScrollTop()},set:function(e){this.setScrollTop(e)},enumerable:!0,configurable:!0}),e.prototype.addListener=function(e,t,n){var i=this,s=t,a=this.domNode;return d.indexOf(e)>-1?t=function(e){return i.fireScopedEvent(s,i.getItemIndexFromMouseEvent(e))}:e===o.EventType.Tap&&(a=this.rowsContainer,t=function(e){return i.fireScopedEvent(s,i.getItemIndexFromGestureEvent(e))}),r.addDisposableListener(a,e,t,n)},e.prototype.fireScopedEvent=function(e,t){if(!(t<0)){var i=this.items[t].element;e(n.assign(event,{element:i,index:t}))}},e.prototype.onScroll=function(e){this.render(e.scrollTop,e.height)},e.prototype.onTouchChange=function(e){event.preventDefault(),event.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.getItemIndexFromMouseEvent=function(e){return this.getItemIndexFromEventTarget(e.target)},e.prototype.getItemIndexFromGestureEvent=function(e){return this.getItemIndexFromEventTarget(e.initialTarget)},e.prototype.getItemIndexFromEventTarget=function(e){for(;e instanceof HTMLElement&&e!==this.rowsContainer;){var t=e,n=t.getAttribute("data-index");if(n){var i=Number(n);if(!isNaN(i))return i}e=t.parentElement}return-1},e.prototype.getRenderRange=function(e,t){return{start:this.rangeMap.indexAt(e),end:this.rangeMap.indexAfter(e+t-1)}},e.prototype.dispose=function(){this.items=null,this._domNode&&this._domNode.parentElement&&(this._domNode.parentNode.removeChild(this._domNode),this._domNode=null),this.disposables=i.dispose(this.disposables)},e}();t.ListView=p});var y=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s};define(d[267],h([0,1,4,22,433,11,59,53,12,124,262,245]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";var d=function(){function e(e,t){this.controller=e,this.renderer=t}return Object.defineProperty(e.prototype,"templateId",{get:function(){return this.renderer.templateId},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this.renderer.renderTemplate(e);return{container:e,data:t}},e.prototype.renderElement=function(e,t,n){this.controller.renderElement(e,t,n.container),this.renderer.renderElement(e,t,n.data)},e.prototype.disposeTemplate=function(e){return this.renderer.disposeTemplate(e.data)},e}(),h=function(){function e(e){this._trait=e,this._onChange=new u.Emitter,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){for(var i=n-t,o=e+t,r=[],s=0,a=r;s=e&&ue?u+i:u)}this.indexes=r,this._onChange.fire({indexes:r})},e.prototype.renderElement=function(e,t,n){r.toggleClass(n,this._trait,this.contains(t))},e.prototype.set=function(e){var t=this.indexes;return this.indexes=e,this._onChange.fire({indexes:e}),t},e.prototype.get=function(){return this.indexes},e.prototype.contains=function(e){return this.indexes.some(function(t){return t===e})},e.prototype.wrapRenderer=function(e){return new d(this,e)},e.prototype.dispose=function(){this.indexes=null,this._onChange=n.dispose(this._onChange)},e}(),p=function(e){function t(t){var n=e.call(this,"focused")||this;return n.getElementId=t,n}return m(t,e),t.prototype.renderElement=function(t,n,i){e.prototype.renderElement.call(this,t,n,i),i.setAttribute("role","treeitem"),i.setAttribute("id",this.getElementId(n))},t}(h),f=function(){function e(e,t){var n=this;this.list=e,this.view=t,this.disposables=[],this.disposables.push(t.addListener("mousedown",function(e){return n.onMouseDown(e)})),this.disposables.push(t.addListener("click",function(e){return n.onPointer(e)})),this.disposables.push(t.addListener(s.EventType.Tap,function(e){return n.onPointer(e)}));var i=u.chain(l.domEvent(t.domNode,"keydown")).map(function(e){return new a.StandardKeyboardEvent(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)}return e.prototype.onMouseDown=function(e){e.preventDefault(),e.stopPropagation()},e.prototype.onPointer=function(e){e.preventDefault(),e.stopPropagation(),this.view.domNode.focus(),this.list.setFocus([e.index]),this.list.setSelection([e.index])},e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus())},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNext(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPreviousPage(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.onPageDownArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusNextPage(),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=n.dispose(this.disposables)},e}(),g={},v=function(){function e(t,n,i,o){void 0===o&&(o=g);var r=this;this.idPrefix="list_id_"+ ++e.InstanceCount,this.focus=new p(function(e){return r.getElementId(e)}),this.selection=new h("selected"),this.eventBufferer=new u.EventBufferer,i=i.map(function(e){return e=r.focus.wrapRenderer(e),e=r.selection.wrapRenderer(e)}),this.view=new c.ListView(t,n,i,o),this.view.domNode.setAttribute("role","tree"), -this.view.domNode.tabIndex=0,this.controller=new f(this,this.view),this.disposables=[this.focus,this.selection,this.view,this.controller],this._onDOMFocus=l.domEvent(this.view.domNode,"focus"),this.onFocusChange(this._onFocusChange,this,this.disposables),o.ariaLabel&&this.view.domNode.setAttribute("aria-label",o.ariaLabel)}return Object.defineProperty(e.prototype,"onFocusChange",{get:function(){var e=this;return this.eventBufferer.wrapEvent(u.mapEvent(this.focus.onChange,function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onSelectionChange",{get:function(){var e=this;return this.eventBufferer.wrapEvent(u.mapEvent(this.selection.onChange,function(t){return e.toListEvent(t)}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return u.fromCallback(function(t){return e.view.addListener("contextmenu",t)})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=this;void 0===n&&(n=[]),this.eventBufferer.bufferEvents(function(){i.focus.splice(e,t,n.length),i.selection.splice(e,t,n.length),i.view.splice(e,t,n)})},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.getContentHeight()},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.layout=function(e){this.view.layout(e)},e.prototype.setSelection=function(e){var t=this;this.eventBufferer.bufferEvents(function(){e=e.concat(t.selection.set(e)),e.forEach(function(e){return t.view.splice(e,1,[t.view.element(e)])})})},e.prototype.selectNext=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.selection.get(),i=n.length>0?n[0]+e:0;this.setSelection(t?[i%this.length]:[Math.min(i,this.length-1)])}},e.prototype.selectPrevious=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.selection.get(),i=n.length>0?n[0]-e:0;t&&i<0&&(i=this.length+i%this.length),this.setSelection([Math.max(i,0)])}},e.prototype.getSelection=function(){return this.selection.get()},e.prototype.setFocus=function(e){var t=this;this.eventBufferer.bufferEvents(function(){e=e.concat(t.focus.set(e)),e.forEach(function(e){return t.view.splice(e,1,[t.view.element(e)])})})},e.prototype.focusNext=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.focus.get(),i=n.length>0?n[0]+e:0;this.setFocus(t?[i%this.length]:[Math.min(i,this.length-1)])}},e.prototype.focusPrevious=function(e,t){if(void 0===e&&(e=1),void 0===t&&(t=!1),0!==this.length){var n=this.focus.get(),i=n.length>0?n[0]-e:0;t&&i<0&&(i=(this.length+i%this.length)%this.length),this.setFocus([Math.max(i,0)])}},e.prototype.focusNextPage=function(){var e=this,t=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);t=0===t?0:t-1;var n=this.view.element(t),i=this.getFocusedElements()[0];if(i!==n)this.setFocus([t]);else{var o=this.view.getScrollTop();this.view.setScrollTop(o+this.view.renderHeight-this.view.elementHeight(t)),this.view.getScrollTop()!==o&&setTimeout(function(){return e.focusNextPage()},0)}},e.prototype.focusPreviousPage=function(){var e,t=this,n=this.view.getScrollTop();e=0===n?this.view.indexAt(n):this.view.indexAfter(n-1);var i=this.view.element(e),o=this.getFocusedElements()[0];if(o!==i)this.setFocus([e]);else{var r=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==r&&setTimeout(function(){return t.focusPreviousPage()},0)}},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){var n=this.view.getScrollTop(),o=this.view.elementTop(e),r=this.view.elementHeight(e);if(i.isNumber(t)){t=t<0?0:t,t=t>1?1:t;var s=r-this.view.renderHeight;this.view.setScrollTop(s*t+o)}else{var a=o+r,u=n+this.view.renderHeight;o=u&&this.view.setScrollTop(a-this.view.renderHeight)}},e.prototype.getElementId=function(e){return this.idPrefix+"_"+e},e.prototype.toListEvent=function(e){var t=this,n=e.indexes;return{indexes:n,elements:n.map(function(e){return t.view.element(e)})}},e.prototype._onFocusChange=function(){var e=this.focus.get();e.length>0?this.view.domNode.setAttribute("aria-activedescendant",this.getElementId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),r.toggleClass(this.view.domNode,"element-focused",e.length>0)},e.prototype.dispose=function(){this.disposables=n.dispose(this.disposables)},e}();v.InstanceCount=0,y([o.memoize],v.prototype,"onFocusChange",null),y([o.memoize],v.prototype,"onSelectionChange",null),y([o.memoize],v.prototype,"onContextMenu",null),t.List=v}),define(d[268],h([0,1,18,24,6,4,11,95,59,9,36,53,181,77,60,40,186,179]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_){"use strict";function y(e){var t=e.getAttribute("last-scroll-time");return t?parseInt(t,10):0}function C(e){try{e.parentElement.removeChild(e)}catch(e){}}function b(e,t){return!e&&!t||!(!e||!t)&&(e.accept===t.accept&&(e.bubble===t.bubble&&e.effect===t.effect))}var w=function(){function e(e){this.context=e,this._cache={"":[]},this.scrollingRow=null}return e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var i=document.createElement("div");i.appendChild(n),t={element:i,templateId:e,templateData:this.context.renderer.renderTemplate(this.context.tree,e,n)}}return t},e.prototype.release=function(e,t){var n=y(t.element);if(!n)return C(t.element),void this.cache(e).push(t);if(this.scrollingRow){var i=y(this.scrollingRow.element);if(i>n)return C(t.element),void this.cache(e).push(t);this.scrollingRow.element.parentElement&&(C(this.scrollingRow.element),s.removeClass(this.scrollingRow.element,"scrolling"),this.cache(this.scrollingRow.templateId).push(this.scrollingRow))}this.scrollingRow=t,s.addClass(this.scrollingRow.element,"scrolling")},e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])},e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData),n.element=null,n.templateData=null}),delete e._cache[t]}),this.scrollingRow&&(this.context.renderer.disposeTemplate(this.context.tree,this.scrollingRow.templateId,this.scrollingRow.templateData),this.scrollingRow=null)},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null,this.context=null},e}();t.RowCache=w;var S=function(){function e(e,t){var n=this;this.context=e,this.model=t,this.id=this.model.id,this.row=null,this.top=0,this.height=t.getHeight(),this._styles={},t.getAllTraits().forEach(function(e){return n._styles[e]=!0}),t.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),e.prototype.addClass=function(e){this._styles[e]=!0,this.render(!0)},e.prototype.removeClass=function(e){delete this._styles[e],this.render(!0)},e.prototype.render=function(e){var t=this;if(void 0===e&&(e=!1),this.model&&this.element){var n=["monaco-tree-row"];if(n.push.apply(n,Object.keys(this._styles)),this.model.hasChildren()&&n.push("has-children"),this.element.className=n.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem"),this.model.hasTrait("focused")){var i=l.safeBtoa(this.model.id),o=this.context.accessibilityProvider.getAriaLabel(this.context.tree,this.model.getElement());this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",i),o?this.element.setAttribute("aria-label",o):this.element.setAttribute("aria-labelledby",i)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id"),this.element.removeAttribute("aria-label"),this.element.removeAttribute("aria-labelledby");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(this.model.isExpanded())):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var r=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());r!==this.uri&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),r?(this.uri=r,this.draggable=!0,this.unbindDragStart=s.addDisposableListener(this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),e||this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[L.BINDING]=this),!this.element.parentElement){if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){console.warn("Failed to locate previous tree element"),e.appendChild(this.element)}this.render()}},e.prototype.removeFromDOM=function(){this.row&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),this.uri=null,this.element[L.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null,this.model=null},e}();t.ViewItem=S;var E=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.row={element:i,templateData:null,templateId:null},o}return m(t,e),t.prototype.render=function(){if(this.model&&this.element){var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles)),this.model.hasChildren()&&e.push("has-children"),this.element.className=e.join(" ")}},t.prototype.insertInDOM=function(e,t){},t.prototype.removeFromDOM=function(){},t}(S),L=function(e){function t(t,n){var o=e.call(this)||this;o.lastClickTimeStamp=0,o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o.context={dataSource:t.dataSource,renderer:t.renderer,controller:t.controller,dnd:t.dnd,filter:t.filter,sorter:t.sorter,tree:t.tree,accessibilityProvider:t.accessibilityProvider,options:t.options,cache:new w(t)},o.modelListeners=[],o.viewListeners=[],o.dragAndDropListeners=[],o.model=null,o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item",o.domNode.tabIndex=0,o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&s.addClass(o.domNode,"focused"),o.context.options.paddingOnRow||s.addClass(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new f.ScrollableElement(o.wrapper,{canUseTranslate3d:!1,alwaysConsumeMouseWheel:!0,horizontal:g.ScrollbarVisibility.Hidden,vertical:"undefined"!=typeof t.options.verticalScrollMode?t.options.verticalScrollMode:g.ScrollbarVisibility.Auto,useShadows:t.options.useShadows,saveLastScrollTimeOnClassName:"monaco-tree-row"}),o.scrollableElement.onScroll(function(e){o.render(e.scrollTop,e.height),o.emit("scroll",e)}),i.isIE?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):o.wrapperGesture=new u.Gesture(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",t.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var r=s.trackFocus(o.domNode);return r.addFocusListener(function(){return o.onFocus()}),r.addBlurListener(function(){return o.onBlur()}),o.viewListeners.push(r),o.viewListeners.push(s.addDisposableListener(o.domNode,"keydown",function(e){return o.onKeyDown(e)})),o.viewListeners.push(s.addDisposableListener(o.domNode,"keyup",function(e){return o.onKeyUp(e)})),o.viewListeners.push(s.addDisposableListener(o.domNode,"mousedown",function(e){return o.onMouseDown(e)})),o.viewListeners.push(s.addDisposableListener(o.domNode,"mouseup",function(e){return o.onMouseUp(e)})),o.viewListeners.push(s.addDisposableListener(o.wrapper,"click",function(e){return o.onClick(e)})),o.viewListeners.push(s.addDisposableListener(o.domNode,"contextmenu",function(e){return o.onContextMenu(e)})),o.viewListeners.push(s.addDisposableListener(o.wrapper,u.EventType.Tap,function(e){return o.onTap(e)})),o.viewListeners.push(s.addDisposableListener(o.wrapper,u.EventType.Change,function(e){return o.onTouchChange(e)})),i.isIE&&(o.viewListeners.push(s.addDisposableListener(o.wrapper,"MSPointerDown",function(e){return o.onMsPointerDown(e)})),o.viewListeners.push(s.addDisposableListener(o.wrapper,"MSGestureTap",function(e){return o.onMsGestureTap(e)})),o.viewListeners.push(s.addDisposableThrottledListener(o.wrapper,"MSGestureChange",function(e){return o.onThrottledMsGestureChange(e)},function(e,t){t.stopPropagation(),t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}))),o.viewListeners.push(s.addDisposableListener(window,"dragover",function(e){return o.onDragOver(e)})),o.viewListeners.push(s.addDisposableListener(window,"drop",function(e){return o.onDrop(e)})),o.viewListeners.push(s.addDisposableListener(window,"dragend",function(e){return o.onDragEnd(e)})),o.viewListeners.push(s.addDisposableListener(window,"dragleave",function(e){return o.onDragOver(e)})),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),n.appendChild(o.domNode),o.lastRenderTop=0,o.lastRenderHeight=0,o.didJustPressContextMenuKey=!1,o.currentDropTarget=null,o.currentDropTargets=[],o.shouldInvalidateDropReaction=!1,o.dragAndDropScrollInterval=null,o.dragAndDropScrollTimeout=null,o.onHiddenScrollTop=null,o.onRowsChanged(),o.layout(),o.setupMSGesture(),o}return m(t,e),t.prototype.createViewItem=function(e){return new S(this.context,e)},t.prototype.getHTMLElement=function(){return this.domNode},t.prototype.focus=function(){this.domNode.focus()},t.prototype.isFocused=function(){return document.activeElement===this.domNode},t.prototype.blur=function(){this.domNode.blur()},t.prototype.onVisible=function(){this.scrollTop=this.onHiddenScrollTop,this.onHiddenScrollTop=null,this.setupMSGesture()},t.prototype.setupMSGesture=function(){var e=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return e.msGesture.target=e.wrapper},100))},t.prototype.onHidden=function(){this.onHiddenScrollTop=this.scrollTop},t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop},t.prototype.layout=function(e){this.isTreeVisible()&&(this.viewHeight=e||s.getContentHeight(this.wrapper))},t.prototype.render=function(e,t){var n,i,o=e,r=e+t,s=this.lastRenderTop+this.lastRenderHeight;for(n=this.indexAfter(r)-1,i=this.indexAt(Math.max(s,o));n>=i;n--)this.insertItemInDOM(this.itemAtIndex(n));for(n=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(r))-1,i=this.indexAt(o);n>=i;n--)this.insertItemInDOM(this.itemAtIndex(n));for(n=this.indexAt(this.lastRenderTop),i=Math.min(this.indexAt(o),this.indexAfter(s));n0&&this.onItemsRefresh(t)},t.prototype.onRefreshing=function(){this.isRefreshing=!0},t.prototype.onRefreshed=function(){this.isRefreshing=!1,this.onRowsChanged()},t.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop),this.isRefreshing||(this.scrollTop=e)},t.prototype.focusNextPage=function(e){var t=this,n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var i=this.itemAtIndex(n).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop+=this.viewHeight,this.scrollTop!==r&&setTimeout(function(){t.focusNextPage(e)},0)}},t.prototype.focusPreviousPage=function(e){var t,n=this;t=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var i=this.itemAtIndex(t).model.getElement(),o=this.model.getFocus();if(o!==i)this.model.setFocus(i,e);else{var r=this.scrollTop;this.scrollTop-=this.viewHeight,this.scrollTop!==r&&setTimeout(function(){n.focusPreviousPage(e)},0)}},Object.defineProperty(t.prototype,"viewHeight",{get:function(){return this.scrollableElement.getHeight()},set:function(e){this.scrollableElement.updateState({height:e,scrollHeight:this.getTotalHeight()})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.scrollableElement.getScrollTop()},set:function(e){this.scrollableElement.updateState({scrollTop:e,scrollHeight:this.getTotalHeight()})},enumerable:!0,configurable:!0}),t.prototype.getScrollPosition=function(){var e=this.getTotalHeight()-this.viewHeight;return e<=0?0:this.scrollTop/e},t.prototype.setScrollPosition=function(e){var t=this.getTotalHeight()-this.viewHeight;this.scrollTop=t*e},t.prototype.onClearingInput=function(e){var t=e.item;t&&(this.onRemoveItems(new p.MappedIterator(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.onSetInput=function(e){this.context.cache.garbageCollect(),this.inputItem=new E(this.context,e.item,this.wrapper),this.emit("viewItem:create",{item:this.inputItem.model})},t.prototype.onItemChildrenRefreshing=function(e){var n=e.item,i=this.items[n.id];if(i&&(i.loadingPromise=o.TPromise.timeout(t.LOADING_DECORATION_DELAY).then(function(){i.loadingPromise=null,i.loading=!0})),!e.isNested){for(var r,s=[],a=n.getNavigator();r=a.next();)s.push(r.id);this.refreshingPreviousChildrenIds[n.id]=s}},t.prototype.onItemChildrenRefreshed=function(e){var t=this,n=e.item,i=this.items[n.id];if(i&&(i.loadingPromise&&(i.loadingPromise.cancel(),i.loadingPromise=null),i.loading=!1),!e.isNested){for(var o,r=this.refreshingPreviousChildrenIds[n.id],s=[],u=n.getNavigator();o=u.next();)s.push(o);var l=Math.abs(r.length-s.length)>1e3,c=void 0,d=void 0;if(!l){var h=new a.LcsDiff({getLength:function(){return r.length},getElementHash:function(e){return r[e]}},{getLength:function(){return s.length},getElementHash:function(e){return s[e].id}},null);c=h.ComputeDiff(),d=c.some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new p.ArrayIterator(r,m.originalStart,m.originalStart+m.originalLength)),m.modifiedLength>0){var v=s[m.modifiedStart-1]||n;v=v.getDepth()>0?v:null,this.onInsertItems(new p.ArrayIterator(s,m.modifiedStart,m.modifiedStart+m.modifiedLength),v?v.id:null)}}else(l||c.length)&&(this.onRemoveItems(new p.ArrayIterator(r)),this.onInsertItems(new p.ArrayIterator(s)));(l||c.length)&&this.onRowsChanged()}},t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id)})),this.onRowsChanged()},t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)},t.prototype.onItemExpanded=function(e){var t=e.item,n=this.items[t.id];if(n){n.expanded=!0;var i=this.onInsertItems(t.getNavigator(),t.id),o=this.scrollTop;n.top+n.height<=this.scrollTop&&(o+=i),this.onRowsChanged(o)}},t.prototype.onItemCollapsing=function(e){var t=e.item,n=this.items[t.id];n&&(n.expanded=!1,this.onRemoveItems(new p.MappedIterator(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.getRelativeTop=function(e){if(e&&e.isVisible()){var t=this.items[e.id];if(t)return(t.top-this.scrollTop)/(this.viewHeight-t.height)}return-1},t.prototype.onItemReveal=function(e){var t=e.item,n=e.relativeTop,i=this.items[t.id];if(i)if(null!==n){n=n<0?0:n,n=n>1?1:n;var o=i.height-this.viewHeight;this.scrollTop=o*n+i.top}else{var r=i.top+i.height,s=this.scrollTop+this.viewHeight;i.top=s&&(this.scrollTop=r-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.addClass(n),"highlighted"===n&&(s.addClass(this.domNode,n),i&&(this.highlightedItemWasDraggable=!!i.draggable,i.draggable&&(i.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.item,n=e.trait,i=this.items[t.id];i&&i.removeClass(n),"highlighted"===n&&(s.removeClass(this.domNode,n),this.highlightedItemWasDraggable&&(i.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();s.toggleClass(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",l.safeBtoa(this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)},e.needsRender=!0,this.refreshViewItem(e),this.items[e.id]=e},t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1),e.needsRender=e.needsRender||t,this.refreshViewItem(e)},t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e),e.dispose(),this.emit("viewItem:dispose",{item:this.inputItem.model}),delete this.items[e.id]},t.prototype.refreshViewItem=function(e){e.render(),this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)},t.prototype.onClick=function(e){if(!this.lastPointerType||"mouse"===this.lastPointerType){var t=new c.StandardMouseEvent(e),n=this.getItemAround(t.target);n&&(i.isIE&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,n.model.getElement(),t))}},t.prototype.onMouseDown=function(e){if(this.didJustPressContextMenuKey=!1,this.context.controller.onMouseDown&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new c.StandardMouseEvent(e);if(!(t.ctrlKey&&n.isNative&&n.isMacintosh)){var i=this.getItemAround(t.target);i&&this.context.controller.onMouseDown(this.context.tree,i.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new c.StandardMouseEvent(e);if(!(t.ctrlKey&&n.isNative&&n.isMacintosh)){var i=this.getItemAround(t.target);i&&this.context.controller.onMouseUp(this.context.tree,i.model.getElement(),t)}}},t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);t&&this.context.controller.onTap(this.context.tree,t.model.getElement(),e)},t.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},t.prototype.onContextMenu=function(e){var t,n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var i=new d.StandardKeyboardEvent(e);if(n=this.model.getFocus(),!n)return;var o=this.context.dataSource.getId(this.context.tree,n),r=this.items[o],a=s.getDomNodePagePosition(r.element);t=new _.KeyboardContextMenuEvent(a.left+a.width,a.top,i)}else{var u=new c.StandardMouseEvent(e),l=this.getItemAround(u.target);if(!l)return;n=l.model.getElement(),t=new _.MouseContextMenuEvent(u)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new d.StandardKeyboardEvent(e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode,this.didJustPressContextMenuKey&&(t.preventDefault(),t.stopPropagation()),t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase()||this.context.controller.onKeyDown(this.context.tree,t)},t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new d.StandardKeyboardEvent(e))},t.prototype.onDragStart=function(e,n){if(!this.model.getHighlight()){var i,o=e.model.getElement(),r=this.model.getSelection();if(i=r.indexOf(o)>-1?r:[o],n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setData("URL",e.uri),n.dataTransfer.setDragImage){var s=void 0;s=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,i):String(i.length);var a=document.createElement("div");a.className="monaco-tree-drag-image",a.textContent=s,document.body.appendChild(a),n.dataTransfer.setDragImage(a,-10,-10),setTimeout(function(){return document.body.removeChild(a)},0)}this.currentDragAndDropData=new h.ElementsDragAndDropData(i),t.currentExternalDragAndDropData=new h.ExternalElementsDragAndDropData(i),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new c.DragMouseEvent(n))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=s.getTopLeftOffset(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.viewHeight-35;n<35?i=Math.max(-14,.2*(n-35)):n>o&&(i=Math.min(14,.2*(n-o))),e.scrollTop+=i}},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval(),e.dragAndDropScrollTimeout=null},1e3))},t.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},t.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},t.prototype.onDragOver=function(e){var n=this,i=new c.DragMouseEvent(e),r=this.getItemAround(i.target);if(!r)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null)),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=i.posy,!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!i.dataTransfer.types)return!1;this.currentDragAndDropData=new h.DesktopDragAndDropData}this.currentDragAndDropData.update(i);var s,a,u=r.model;do{if(s=u?u.getElement():this.model.getInput(),a=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,s,i),!a||a.bubble!==_.DragOverBubble.BUBBLE_UP)break;u=u&&u.parent}while(u);if(!u)return this.currentDropElement=null,!1;var l=a&&a.accept;l?(this.currentDropElement=u.getElement(),i.preventDefault(),i.dataTransfer.dropEffect=a.effect===_.DragOverEffect.COPY?"copy":"move"):this.currentDropElement=null;var d=u.id===this.inputItem.id?this.inputItem:this.items[u.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||!b(this.currentDropElementReaction,a))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[],this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null)),this.currentDropTarget=d,this.currentDropElementReaction=a,l)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),a.bubble===_.DragOverBubble.BUBBLE_DOWN)for(var p,f=u.getNavigator();p=f.next();)r=this.items[p.id],r&&(r.dropTarget=!0,this.currentDropTargets.push(r));a.autoExpand&&(this.currentDropPromise=o.TPromise.timeout(500).then(function(){return n.context.tree.expand(n.currentDropElement)}).then(function(){return n.shouldInvalidateDropReaction=!0}))}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new c.DragMouseEvent(e);t.preventDefault(),this.currentDragAndDropData.update(t),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t),this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()},t.prototype.onDragEnd=function(e){this.currentDropTarget&&(this.currentDropTargets.forEach(function(e){return e.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropPromise&&(this.currentDropPromise.cancel(),this.currentDropPromise=null),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,t.currentExternalDragAndDropData=null,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},t.prototype.onFocus=function(){this.context.options.alwaysFocused||s.addClass(this.domNode,"focused")},t.prototype.onBlur=function(){this.context.options.alwaysFocused||s.removeClass(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant")},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;return t===(e.MSPOINTER_TYPE_MOUSE||"mouse")?void(this.lastPointerType="mouse"):void(t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)))}},t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY},t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY),this.onTap(e)},t.prototype.insertItemInDOM=function(e){var t=null,n=this.itemAfter(e); -n&&n.element&&(t=n.element),e.insertInDOM(this.rowsContainer,t)},t.prototype.removeItemFromDOM=function(e){e.removeFromDOM()},t.prototype.shouldBeRendered=function(e){return e.topthis.lastRenderTop},t.prototype.getItemAround=function(e){var n=this.inputItem;do{if(e[t.BINDING]&&(n=e[t.BINDING]),e===this.wrapper||e===this.domNode)return n;if(e===document.body)return null}while(e=e.parentElement)},t.prototype.releaseModel=function(){this.model&&(this.modelListeners=r.dispose(this.modelListeners),this.model=null)},t.prototype.dispose=function(){this.scrollableElement.dispose(),this.releaseModel(),this.modelListeners=null,this.viewListeners=r.dispose(this.viewListeners),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.domNode=null,this.wrapperGesture&&(this.wrapperGesture.dispose(),this.wrapperGesture=null),this.context.cache&&(this.context.cache.dispose(),this.context.cache=null),e.prototype.dispose.call(this)},t}(v.HeightMap);L.BINDING="monaco-tree-row",L.LOADING_DECORATION_DELAY=800,L.currentExternalDragAndDropData=null,t.TreeView=L}),define(d[269],h([5]),{}),define(d[274],h([0,1,4,12,37,11,26,269]),function(e,t,n,i,o,r,s){"use strict";var a=function(e){function t(t,n){var o=e.call(this)||this;return o.selectElement=document.createElement("select"),o.selectElement.className="select-box",o.setOptions(t,n),o.toDispose=[],o._onDidSelect=new i.Emitter,o.toDispose.push(r.addStandardDisposableListener(o.selectElement,"change",function(e){o.selectElement.title=e.target.value,o._onDidSelect.fire(e.target.value)})),o}return m(t,e),Object.defineProperty(t.prototype,"onDidSelect",{get:function(){return this._onDidSelect.event},enumerable:!0,configurable:!0}),t.prototype.setOptions=function(e,t,n){var i=this;if(!this.options||!s.equals(this.options,e)){this.options=e,this.selectElement.options.length=0;var o=0;this.options.forEach(function(e){i.selectElement.add(i.createOption(e,n===o++))})}this.select(t)},t.prototype.select=function(e){e>=0&&en||e===n&&t>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=i)}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.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var i,o,r,s;return n.startLineNumbert.endLineNumber?(r=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(r=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(r=t.endLineNumber,s=t.endColumn),new e(i,o,r,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var i=t.startLineNumber,o=t.startColumn,r=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn;return il?(r=l,s=c):r===l&&(s=Math.min(s,c)),i>r?null:i===r&&o>s?null:new e(i,o,r,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 n.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new n.Position(this.startLineNumber,this.startColumn)},e.prototype.cloneRange=function(){return new e(this.startLineNumber,this.startColumn,this.endLineNumber,this.endColumn)},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.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}();t.Range=i}),define(d[46],h([0,1,3]),function(e,t,n){"use strict";var i=function(){function e(){}return e.insert=function(e,t){return{identifier:null,range:new n.Range(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{identifier:null,range:e,text:null,forceMoveMarkers:!0}},e.replace=function(e,t){return{identifier:null,range:e,text:t,forceMoveMarkers:!1}},e.replaceMove=function(e,t){return{identifier:null,range:e,text:t,forceMoveMarkers:!0}},e}();t.EditOperation=i}),define(d[448],h([0,1,9,46,3]),function(e,t,n,i,o){"use strict";function r(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber});for(var r=t.length-2;r>=0;r--)t[r].lineNumber===t[r+1].lineNumber&&t.splice(r,1);for(var s=[],a=0,u=0,l=t.length,c=1,d=e.getLineCount();c<=d;c++){var h=e.getLineContent(c),p=h.length+1,f=0;if(!(u "+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?i.LTR:i.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===i.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===i.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},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,i=e.length;n255?255:0|e}function i(e){return e<0?0:e>4294967295?4294967295:0|e}function o(e){for(var t=e.length,n=new Uint32Array(t),o=0;o=0&&e<256?this._asciiMap[e]=i:this._map.set(e,i)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}();t.CharacterClassifier=i;var o;!function(e){e[e.False=0]="False",e[e.True=1]="True"}(o||(o={}));var r=function(){function e(){this._actual=new i(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}();t.CharacterSet=r}),define(d[88],h([0,1]),function(e,t){"use strict";var n=function(){function e(e,t){this.endIndex=e,this.type=t}return e._equals=function(e,t){return e.endIndex===t.endIndex&&e.type===t.type},e.equalsArr=function(e,t){var n=e.length,i=t.length;if(n!==i)return!1;for(var o=0;o0){var e=this.past.pop();try{for(var t=e.editOperations.length-1;t>=0;t--)e.editOperations[t]={operations:this.model.applyEdits(e.editOperations[t].operations)}}catch(e){return this.clear(),null}return this.future.push(e),{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null},e.prototype.redo=function(){if(this.future.length>0){if(this.currentOpenStackElement)throw new Error("How is this possible?");var e=this.future.pop();try{for(var t=0;t0;r--){var s=e.getIndentLevel(r);if(s!==-1){var a=o[o.length-1];if(a.indent>s){do o.pop(),a=o[o.length-1];while(a.indent>s);var u=a.line-1;u-r>=t&&n.push(new i(r,u,s))}a.indent===s?a.line=r:o.push({indent:s,line:r})}}return n.reverse()}var i=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.indent=n}return e.deepCloneArr=function(t){for(var n=[],i=0,o=t.length;i0&&u>0)return 0;if(c>0&&d>0)return 0;var h=Math.abs(u-d),p=Math.abs(a-c);return 0===h?p:p%h===0?p/h:0}function i(e,t,i){for(var o=0,r=0,s="",a=0,u=[2,4,6,8],l=8,c=[0,0,0,0,0,0,0,0,0],d=0,h=e.length;d0?o++:m>1&&r++;var b=n(s,a,p,g);b<=l&&c[b]++,s=p,a=g}}var w=n(s,a,"",0);w<=l&&c[w]++;var S=i;o!==r&&(S=oL&&(L=t,E=e)}),{insertSpaces:S,tabSize:E}}t.guessIndentation=i}),define(d[511],h([0,1,15]),function(e,t,n){"use strict";function i(e,t){var i=t.lineNumber;if(1!==e.getLineMaxColumn(i))return t;for(var o=e.getLineCount(),r=1;;){var s=i-r,a=i+r;if(s<1&&a>o)break;if(s>=1){var u=e.getLineMaxColumn(s);if(1!==u)return new n.Position(s,u)}if(a<=o){var l=e.getLineMaxColumn(a);if(1!==l)return new n.Position(a,1)}r++}return null}var o=function(){function e(e,t){this._actual=e,this.lineNumber=t,this.startColumn=this._actual.startOffset+1,this.endColumn=this._actual.endOffset+1,this.type=this._actual.tokenType}return e}(),r=function(){function e(e,t){if(this._model=e,this._lineCount=this._model.getLineCount(),this._prev=null,this._next=null,t=i(e,t)){var n=this._model.getLineTokens(t.lineNumber),r=n.findTokenAtOffset(t.column-1);r&&(this._prev=this._next=new o(r,t.lineNumber))}}return e.prototype._advanceNext=function(){if(this._next){for(var e=this._next.lineNumber,t=this._next._actual.next();!t&&e1;){e--;var n=this._model.getLineTokens(e);t=n.lastToken()}this._next=this._prev,t?this._prev=new o(t,e):this._prev=null}},e.prototype.hasNext=function(){return null!==this._next},e.prototype.next=function(){var e=this._next;return this._advanceNext(),e},e.prototype.hasPrev=function(){return null!==this._prev},e.prototype.prev=function(){var e=this._prev;return this._advancePrev(),e},e.prototype._invalidate=function(){var e=function(){throw new Error("iteration isn't valid anymore")};this.hasNext=e,this.next=e,this.hasPrev=e,this.prev=e},e}();t.TokenIterator=r}),define(d[147],h([0,1,88]),function(e,t,n){"use strict";var i=function(){function e(){}return e.toBinaryStr=function(e){for(var t=e.toString(2);t.length<32;)t="0"+t;return t},e.printMetadata=function(t){var n=e.getLanguageId(t),i=e.getTokenType(t),o=e.getFontStyle(t),r=e.getForeground(t),s=e.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:o,foreground:r,background:s})},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=this.getForeground(e),n="mtk"+t,i=this.getFontStyle(e);return 1&i&&(n+=" mtki"),2&i&&(n+=" mtkb"),4&i&&(n+=" mtku"),n},e.inflateArr=function(e,t){for(var i=[],o=0,r=e.length>>>1;o>>1;l=i)break;var h=l+1>>1)-1;nt?i=o-1:n=o}return n},e}();t.TokenMetadata=i}),define(d[89],h([0,1,147]),function(e,t,n){"use strict";function i(e){var t=e.match(o);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4}throw new Error("Unexpected match for standard token type!")}var o=/\b(comment|string|regex)\b/;t.toStandardTokenType=i;var r=function(){function e(e,t,n,i,o,r,s){this._colorMap=e,this._source=t,this._tokenIndex=n,this._metadata=s,this.startOffset=o,this.endOffset=r,this.hasPrev=this._tokenIndex>0,this.hasNext=this._tokenIndex+1>>1,this._text=n,this._textLength=this._text.length}return e.prototype.getTokenCount=function(){return this._tokensCount},e.prototype.getLineContent=function(){return this._text},e.prototype.getLineLength=function(){return this._textLength},e.prototype.getTokenStartOffset=function(e){return this._tokens[e<<1]},e.prototype.getLanguageId=function(e){var t=this._tokens[(e<<1)+1];return n.TokenMetadata.getLanguageId(t)},e.prototype.getStandardTokenType=function(e){var t=this._tokens[(e<<1)+1];return n.TokenMetadata.getTokenType(t)},e.prototype.getTokenEndOffset=function(e){return e+1>1)-1},e.prototype._setPlusOneIndentLevel=function(e){this._metadata=1&this._metadata|(4026531839&e)<<1},e.prototype.updateTabSize=function(e){0===e?this._metadata=1&this._metadata:this._setPlusOneIndentLevel(o(this._text,e))},e.prototype.resetTokenizationState=function(){this._state=null,this._lineTokens=null},e.prototype.setState=function(e){this._state=e},e.prototype.getState=function(){return this._state||null},e._getDefaultMetadata=function(e){return(e<<0|0|0|16384|2<<23)>>>0},e.prototype.setTokens=function(t,n){return n&&0!==n.length?2===n.length&&0===n[0]&&n[1]===e._getDefaultMetadata(t)?void(this._lineTokens=null):void(this._lineTokens=n.buffer):void(this._lineTokens=null)},e.prototype.getTokens=function(t,i){var o=this._lineTokens;if(o)return new n.LineTokens(i,new Uint32Array(o),this._text);var r=new Uint32Array(2);return r[0]=0,r[1]=e._getDefaultMetadata(t),new n.LineTokens(i,r,this._text)},e.prototype._createTokensAdjuster=function(){var e=this;if(!this._lineTokens)return u;var t=new Uint32Array(this._lineTokens),n=t.length>>>1,i=0,o=0,r=0,s=function(e,s,a){for(var u=a-1;o0&&0!==s){var l=Math.max(u,o+s);if(t[i<<1]=l,s<0)for(var c=i;c>0;){var d=t[c-1<<1];if(!(d>=l))break;4294967295!==d&&(t[c-1<<1]=4294967295,r++),c--}}i++,i>>1;if(e+1===i)return e;for(var o=i-1;o>0;o--){var r=n[o<<1];if(r>>1,i=new Uint32Array(n-e<<1),o=0,r=0;re)&&(1!==t&&(2===t||o.stickToPreviousCharacter))},a=function(r,a,u,l){for(;i0?2:0);var f=Math.min(h,p);f>0&&(r.adjust(l.startColumn-1+f,i,c),l.forceMoveMarkers||s.adjustDelta(l.startColumn+f,i,c,l.forceMoveMarkers?1:h>p?2:0)),o=o.substring(0,c-1)+l.text+o.substring(d-1),i+=p-h,r.adjust(l.endColumn,i,c),s.adjustSet(l.endColumn,c+p,l.forceMoveMarkers?1:0)}return r.finish(i,o.length),s.finish(i,o.length),this._setText(o,n),i},e.prototype.split=function(t,n,i,o){var s=this._text.substring(0,n-1),a=this._text.substring(n-1),u=null;if(this._markers){this._markers.sort(r.compareMarkers);for(var l=0,c=this._markers.length;ln||d.position.column===n&&(i||!d.stickToPreviousCharacter)){var h=this._markers.slice(0,l);u=this._markers.slice(l),this._markers=h;break}}if(u)for(var l=0,c=u.length;l0)for(var a=0,u=s.length>>>1;a=0||(i+="\\"+n[o]);return i+="\\s]+)",new RegExp(i,"g")}function i(e){var n=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)n=e;else{var i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),n=new RegExp(e.source,i)}return n.lastIndex=0,n}function o(e,t,n,i){if(t.test(" "))return r(e,t,n,i);var o=e-1-i,s=n.lastIndexOf(" ",o-1)+1,a=n.indexOf(" ",o);a===-1&&(a=n.length),t.lastIndex=s;for(var u;u=t.exec(n);)if(u.index<=o&&t.lastIndex>=o)return{word:u[0],startColumn:i+1+u.index,endColumn:i+1+t.lastIndex};return null}function r(e,t,n,i){var o=e-1-i;t.lastIndex=0;for(var r;r=t.exec(n);){if(r.index>o)return null;if(t.lastIndex>=o)return{word:r[0],startColumn:i+1+r.index,endColumn:i+1+t.lastIndex}}return null}function s(e,t,n,i){var r=o(e,t,n,i);return t.lastIndex=0,r}t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=n(),t.ensureValidWordDefinition=i,t.getWordAtText=s}),define(d[180],h([0,1]),function(e,t){"use strict";var n=function(){function e(e){this._languageIdentifier=e}return e.prototype.getId=function(){return this._languageIdentifier.language},e.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},e}();t.FrankensteinMode=n}),define(d[65],h([0,1]),function(e,t){"use strict";var n;!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(n=t.IndentAction||(t.IndentAction={}));var i=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}function o(e,t,i){if(Array.isArray(e)){var r=e.map(function(e){return o(e,t,i)});return Math.max.apply(Math,r)}if("string"==typeof e)return e===i?10:"*"===e?5:0;if(e){var s=e,a=0,u=0,l=0;if(s.language)if(s.language===i)a=10;else{if("*"!==s.language)return 0;a=5}if(s.scheme){if(s.scheme!==t.scheme)return 0;u=10}if(s.pattern)if(s.pattern===t.fsPath)l=10;else{if(!n.match(s.pattern,t.fsPath))return 0;l=5}return Math.max(a,u,l)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=i,t.score=o}),define(d[183],h([0,1,12,182]),function(e,t,n,i){"use strict";var o=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new n.Emitter}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,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),{dispose:function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}}}},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e||e.isTooLargeForHavingARichMode())return[];this._updateScores(e);for(var t=[],n=0,i=this._entries;n0&&t.push(o.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,i=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],i.push(t))}),i},e.prototype._orderedForEach=function(e,t){if(e&&!e.isTooLargeForHavingARichMode()){this._updateScores(e);for(var n=0;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 o=0,r=this._entries;ot._score?-1:e._timet._time?-1:0},e}();Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}),define(d[16],h([0,1,183,12]),function(e,t,n,i){"use strict";var o;!function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"}(o=t.LanguageId||(t.LanguageId={}));var r=function(){function e(e,t){this.language=e,this.id=t}return e}();t.LanguageIdentifier=r;var s;!function(e){e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(s=t.FontStyle||(t.FontStyle={}));var a;!function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"}(a=t.ColorId||(t.ColorId={}));var u;!function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=4]="RegEx"}(u=t.StandardTokenType||(t.StandardTokenType={}));var l;!function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=1792]="TOKEN_TYPE_MASK",e[e.FONT_STYLE_MASK=14336]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=8372224]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4286578688]="BACKGROUND_MASK",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=14]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=23]="BACKGROUND_OFFSET"}(l=t.MetadataConsts||(t.MetadataConsts={}));var c;!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(c=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var d;!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"}(d=t.SymbolKind||(t.SymbolKind={})),function(e){function t(t){switch(t){case e.Method:return"method";case e.Function:return"function";case e.Constructor:return"constructor";case e.Variable:return"variable";case e.Class:return"class";case e.Interface:return"interface";case e.Namespace:return"namespace";case e.Package:return"package";case e.Module:return"module";case e.Property:return"property";case e.Enum:return"enum";case e.String:return"string";case e.File:return"file";case e.Array:return"array";case e.Number:return"number";case e.Boolean:return"boolean";case e.Object:return"object";case e.Key:return"key";case e.Null:return"null"}return"property"}function n(t){switch(t){case"method":return e.Method;case"function":return e.Function;case"constructor":return e.Constructor;case"variable":return e.Variable;case"class":return e.Class;case"interface":return e.Interface;case"namespace":return e.Namespace;case"package":return e.Package;case"module":return e.Module;case"property":return e.Property;case"enum":return e.Enum;case"string":return e.String;case"file":return e.File;case"array":return e.Array;case"number":return e.Number;case"boolean":return e.Boolean;case"object":return e.Object;case"key":return e.Key;case"null":return e.Null}return e.Property}e.from=t,e.to=n}(d=t.SymbolKind||(t.SymbolKind={})),t.ReferenceProviderRegistry=new n.default,t.RenameProviderRegistry=new n.default,t.SuggestRegistry=new n.default,t.SignatureHelpProviderRegistry=new n.default,t.HoverProviderRegistry=new n.default,t.DocumentSymbolProviderRegistry=new n.default,t.DocumentHighlightProviderRegistry=new n.default,t.DefinitionProviderRegistry=new n.default,t.ImplementationProviderRegistry=new n.default,t.CodeLensProviderRegistry=new n.default,t.CodeActionProviderRegistry=new n.default,t.DocumentFormattingEditProviderRegistry=new n.default,t.DocumentRangeFormattingEditProviderRegistry=new n.default,t.OnTypeFormattingEditProviderRegistry=new n.default,t.LinkProviderRegistry=new n.default;var h=function(){function e(){this._onDidChange=new i.Emitter,this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({languages:e})},e.prototype.register=function(e,t){var n=this;return this._map[e]=t,this.fire([e]),{dispose:function(){n._map[e]===t&&(delete n._map[e],n.fire([e]))}}},e.prototype.get=function(e){return this._map[e]||null},e.prototype.setColorMap=function(e){this._colorMap=e,this.fire(Object.keys(this._map))},e.prototype.getColorMap=function(){return this._colorMap},e}();t.TokenizationRegistryImpl=h,t.TokenizationRegistry=new h}),define(d[185],h([0,1,69,83]),function(e,t,n,i){"use strict";function o(){return null===c&&(c=new l([[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]])),c}function r(){if(null===d){d=new n.CharacterClassifier(0);for(var e=" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…",t=0;tt&&(t=u),a>n&&(n=a),l>n&&(n=l)}t++,n++;for(var c=new i.Uint8Matrix(n,t,0),o=0,r=e.length;o=this._maxCharCode?0:this._states.get(e,t)},e}(),c=null;!function(e){e[e.None=0]="None",e[e.ForceTermination=1]="ForceTermination",e[e.CannotEndIn=2]="CannotEndIn"}(u||(u={}));var d=null,h=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r),a=e.get(s);if(2!==a)break;r--}while(r>i);return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:r+2},url:t.substring(i,r+1)}},e.computeLinks=function(t){for(var n=o(),i=r(),s=[],a=1,u=t.getLineCount();a<=u;a++){for(var l=t.getLineContent(a),c=l.length,d=0,h=0,p=0,f=1,g=!1,m=!1,v=!1;d'"_]/g,"-")}function r(e,t){console.log(e.languageId+": "+t)}function s(e,t){throw new Error(e.languageId+": "+t)}function a(e,t,o,r,s){var a=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,u=null;return t.replace(a,function(t,a,l,c,d,h,p,f,g){return n(l)?n(c)?!n(d)&&d0;){var n=e.tokenizer[t];if(n)return n;var i=t.lastIndexOf(".");t=i<0?null:t.substr(0,i)}return null}function l(e,t){for(;t&&t.length>0;){var n=e.stateNames[t];if(n)return!0;var i=t.lastIndexOf(".");t=i<0?null:t.substr(0,i)}return!1}var c;!function(e){e[e.None=0]="None",e[e.Open=1]="Open",e[e.Close=-1]="Close"}(c=t.MonarchBracket||(t.MonarchBracket={})),t.empty=n,t.fixCase=i,t.sanitize=o,t.log=r,t.throwError=s,t.substituteMatches=a,t.findRules=u,t.stateExists=l}),define(d[187],h([0,1,35,169]),function(e,t,n,i){"use strict";function o(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;var n;for(n in t)if(t.hasOwnProperty(n)&&!e(t[n]))return!1;return!0}function r(e,t,n){return"boolean"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function s(e,t,n){return"string"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function a(e,t){if("string"!=typeof t)return null;for(var n=0;t.indexOf("@")>=0&&n<5;)n++,t=t.replace(/@(\w+)/g,function(n,o){var r="";return"string"==typeof e[o]?r=e[o]:e[o]&&e[o]instanceof RegExp?r=e[o].source:void 0===e[o]?i.throwError(e,"language definition does not contain attribute '"+o+"', used at: "+t):i.throwError(e,"attribute reference '"+o+"' must be a string, used at: "+t),i.empty(r)?"":"(?:"+r+")"});return new RegExp(t,e.ignoreCase?"i":"")}function u(e,t,n,i){if(i<0)return e;if(i=100){i-=100;var o=n.split(".");if(o.unshift(n),i=0&&(o.tokenSubst=!0),"string"==typeof n.bracket&&("@open"===n.bracket?o.bracket=1:"@close"===n.bracket?o.bracket=-1:i.throwError(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t)),n.next)if("string"!=typeof n.next)i.throwError(e,"the next state must be a string value in rule: "+t);else{var r=n.next;/^(@pop|@push|@popall)$/.test(r)||("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&(i.stateExists(e,i.substituteMatches(e,r,"",[],""))||i.throwError(e,"the next state '"+n.next+"' is not defined in rule: "+t))),o.next=r}return"number"==typeof n.goBack&&(o.goBack=n.goBack),"string"==typeof n.switchTo&&(o.switchTo=n.switchTo),"string"==typeof n.log&&(o.log=n.log),"string"==typeof n.nextEmbedded&&(o.nextEmbedded=n.nextEmbedded,e.usesEmbedded=!0),o}if(Array.isArray(n)){var s,a=[];for(s in n)n.hasOwnProperty(s)&&(a[s]=c(e,t,n[s]));return{group:a}}if(n.cases){var u,d=[];for(u in n.cases)if(n.cases.hasOwnProperty(u)){var h=c(e,t,n.cases[u]);"@default"===u||"@"===u||""===u?d.push({test:null,value:h,name:u}):"@eos"===u?d.push({test:function(e,t,n,i){return i},value:h,name:u}):d.push(l(e,t,u,h))}var p=e.defaultToken;return{test:function(e,t,n,i){var o;for(o in d)if(d.hasOwnProperty(o)){var r=!d[o].test||d[o].test(e,t,n,i);if(r)return d[o].value}return p}}}return i.throwError(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t),""}return{token:""}}function d(e,t){function n(e,u,l){var c;for(c in l)if(l.hasOwnProperty(c)){var d=l[c],p=d.include;if(p)"string"!=typeof p&&i.throwError(o,"an 'include' attribute must be a string at: "+e),"@"===p[0]&&(p=p.substr(1)),t.tokenizer[p]||i.throwError(o,"include target '"+p+"' is not defined at: "+e),n(e+"."+p,u,t.tokenizer[p]);else{var f=new h(e);if(Array.isArray(d)&&d.length>=1&&d.length<=3)if(f.setRegex(a,d[0]),d.length>=3)if("string"==typeof d[1])f.setAction(a,{token:d[1],next:d[2]});else if("object"==typeof d[1]){var g=d[1];g.next=d[2],f.setAction(a,g)}else i.throwError(o,"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);else f.setAction(a,d[1]);else d.regex||i.throwError(o,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e),d.name&&(f.name=s(d.name)),d.matchOnlyAtStart&&(f.matchOnlyAtLineStart=r(d.matchOnlyAtLineStart)),f.setRegex(a,d.regex),f.setAction(a,d.action);u.push(f)}}}if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var o={};o.languageId=e,o.noThrow=!1,o.maxStack=100,o.start=s(t.start),o.ignoreCase=r(t.ignoreCase,!1),o.tokenPostfix=s(t.tokenPostfix,"."+o.languageId),o.defaultToken=s(t.defaultToken,"source",function(){i.throwError(o,"the 'defaultToken' must be a string")}),o.usesEmbedded=!1;var a=t;a.languageId=e,a.ignoreCase=o.ignoreCase,a.noThrow=o.noThrow,a.usesEmbedded=o.usesEmbedded,a.stateNames=t.tokenizer,a.defaultToken=o.defaultToken,t.tokenizer&&"object"==typeof t.tokenizer||i.throwError(o,"a language definition must define the 'tokenizer' attribute as an object"),o.tokenizer=[];var u;for(u in t.tokenizer)if(t.tokenizer.hasOwnProperty(u)){o.start||(o.start=u);var l=t.tokenizer[u];o.tokenizer[u]=new Array,n("tokenizer."+u,o.tokenizer[u],l)}o.usesEmbedded=a.usesEmbedded,t.brackets?Array.isArray(t.brackets)||i.throwError(o,"the 'brackets' attribute must be defined as an array"):t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var c=[];for(var d in t.brackets)if(t.brackets.hasOwnProperty(d)){var p=t.brackets[d];p&&Array.isArray(p)&&3===p.length&&(p={token:p[2],open:p[0],close:p[1]}),p.open===p.close&&i.throwError(o,"open and close brackets in a 'brackets' attribute must be different: "+p.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required."),"string"==typeof p.open&&"string"==typeof p.token?c.push({token:s(p.token)+o.tokenPostfix,open:i.fixCase(o,s(p.open)),close:i.fixCase(o,s(p.close))}):i.throwError(o,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return o.brackets=c,o.noThrow=!0,o}var h=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;"string"==typeof t?n=t:t instanceof RegExp?n=t.source:i.throwError(e,"rules must start with a match string or regular expression: "+this.name),this.matchOnlyAtLineStart=n.length>0&&"^"===n[0],this.name=this.name+": "+n,this.regex=a(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=c(e,this.name,t)},e}();t.compile=d}),define(d[63],h([0,1,16,82]),function(e,t,n,i){"use strict";function o(e,t,n,o){return new i.TokenizationResult([new i.Token(o,"",e)],n)}function r(e,t,n,o){var r=new Uint32Array(2);return r[0]=o,r[1]=(e<<0|0|0|16384|2<<23)>>>0,new i.TokenizationResult2(r,n)}var s=function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}();t.NULL_STATE=new s,t.NULL_MODE_ID="vs.editor.nullMode",t.NULL_LANGUAGE_IDENTIFIER=new n.LanguageIdentifier(t.NULL_MODE_ID,0),t.nullTokenize=o,t.nullTokenize2=r}),define(d[189],h([0,1,16,169,82,63]),function(e,t,n,i,o,r){"use strict";function s(e,t){if(!t)return null;t=i.fixCase(e,t);for(var n=e.brackets,o=0;o=this._maxCacheDepth)return new c(e,t);var n=c.getStackElementId(e);n.length>0&&(n+="|"),n+=t;var i=this._entries[n];return i?i:(i=new c(e,t),this._entries[n]=i,i)},e}();l._INSTANCE=new l(u),t.MonarchStackElementFactory=l;var c=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 l.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 l.create(this.parent,e)},e}();t.MonarchStackElement=c;var d=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(){var t=this.state.clone();return t===this.state?this:new e(this.modeId,this.state)},e}();t.EmbeddedModeData=d;var h=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 p(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new p(e,t);var n=c.getStackElementId(e),i=this._entries[n];return i?i:(i=new p(e,null),this._entries[n]=i,i)},e}();h._INSTANCE=new h(u),t.MonarchLineStateFactory=h;var p=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){var e=this.embeddedModeData?this.embeddedModeData.clone():null;return e===this.embeddedModeData?this:h.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}();t.MonarchLineState=p;var f=Object.hasOwnProperty,g=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 o.Token(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,i){var o=t.modeId,r=t.state,s=n.TokenizationRegistry.get(o);if(!s)return this.enterMode(i,o),this.emit(i,""),r;var a=s.tokenize(e,r,i);return this._tokens=this._tokens.concat(a.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,a.endState},e.prototype.finalize=function(e){return new o.TokenizationResult(this._tokens,e)},e}(),m=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 i=null!==e?e.length:0,o=t.length,r=null!==n?n.length:0;if(0===i&&0===o&&0===r)return new Uint32Array(0);if(0===i&&0===o)return n;if(0===o&&0===r)return e;var s=new Uint32Array(i+o+r);null!==e&&s.set(e);for(var a=0;a0&&i.nestedModeTokenize(s,t.embeddedModeData,n);var a=e.substring(o);return this._myTokenize(a,t,n+o,i)},e.prototype._myTokenize=function(e,t,n,o){o.enterMode(n,this._modeId);for(var r=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null,d=null,p=null,g=null;l=r)break;var L=this._lexer.tokenizer[y];L||(L=i.findRules(this._lexer,y),L||i.throwError(this._lexer,"tokenizer state is not defined: "+y));var N=e.substr(l);for(var T in L)if(f.call(L,T)){var x=L[T];if((0===l||!x.matchOnlyAtLineStart)&&(C=N.match(x.regex))){b=C[0],w=x.action;break}}}for(C||(C=[""],b=""),w||(l=this._lexer.maxStack?i.throwError(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]"):u=u.push(y);else if("@pop"===w.next)u.depth<=1?i.throwError(this._lexer,"trying to pop an empty stack in rule: "+S.name):u=u.pop();else if("@popall"===w.next)u=u.popall();else{var I=i.substituteMatches(this._lexer,w.next,b,C,y);"@"===I[0]&&(I=I.substr(1)),i.findRules(this._lexer,I)?u=u.push(I):i.throwError(this._lexer,"trying to set a next state '"+I+"' that is undefined in rule: "+S.name)}w.log&&"string"==typeof w.log&&i.log(this._lexer,this._lexer.languageId+": "+i.substituteMatches(this._lexer,w.log,b,C,y))}if(null===M&&i.throwError(this._lexer,"lexer rule has no well-defined action in rule: "+S.name),Array.isArray(M)){c&&c.length>0&&i.throwError(this._lexer,"groups cannot be nested: "+S.name),C.length!==M.length+1&&i.throwError(this._lexer,"matched number of groups does not match the number of actions in rule: "+S.name);for(var D=0,R=1;R0&&e.getLanguageId(a-1)===o;)a--;return new r(e,o,a,s+1,e.getTokenStartOffset(a),e.getTokenEndOffset(s))}function o(e){return 0!==(7&e)}t.createScopedLineTokens=i;var r=function(){function e(e,t,n,i,o,r){this._actual=e,this.languageId=t,this._firstTokenIndex=n,this._lastTokenIndex=i,this.firstCharOffset=o,this._lastCharOffset=r}return e.prototype.getLineContent=function(){var e=this._actual.getLineContent();return e.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.getTokenStartOffset=function(e){return this._actual.getTokenStartOffset(e+this._firstTokenIndex)-this.firstCharOffset},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();t.ScopedLineTokens=r;var s;!function(e){e[e.value=7]="value"}(s||(s={})),t.ignoreBracketsInToken=o}),define(d[191],h([0,1,65]),function(e,t,n){"use strict";var i=function(){function e(e){e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(function(e){return new n.StandardAutoClosingPairConditional(e)}):e.brackets?this._autoClosingPairs=e.brackets.map(function(e){return new n.StandardAutoClosingPairConditional({open:e[0],close:e[1]})}):this._autoClosingPairs=[],this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}return e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},e.prototype.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;for(var i=t.findTokenIndexAtOffset(n-2),o=t.getStandardTokenType(i),r=0;r=0?(i+=n?1:-1,i<0?i=e.length-1:i%=e.length,e[i]):null},e}();n.INSTANCE=new n,t.BasicInplaceReplace=n}),define(d[193],h([0,1,10,9,65]),function(e,t,n,i,o){"use strict";var r=function(){function e(t){t=t||{},t.brackets=t.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=t.brackets.map(function(t){return{open:t[0],openRegExp:e._createOpenBracketRegExp(t[0]),close:t[1],closeRegExp:e._createCloseBracketRegExp(t[1])}}),this._regExpRules=t.regExpRules||[],this._indentationRules=t.indentationRules}return e.prototype.onEnter=function(e,t,n){for(var i=0,r=this._regExpRules.length;i0&&n.length>0)for(var i=0,r=this._brackets.length;i0)for(var i=0,r=this._brackets.length;i=0},e.prototype.shouldIgnore=function(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))},e._createOpenBracketRegExp=function(t){var n=i.escapeRegExpCharacters(t);return/\B/.test(n.charAt(0))||(n="\\b"+n),n+="\\s*$",e._safeRegExp(n)},e._createCloseBracketRegExp=function(t){var n=i.escapeRegExpCharacters(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 n.onUnexpectedError(e),null}},e}();t.OnEnterSupport=r}),define(d[74],h([0,1,9,3]),function(e,t,n,i){"use strict";function o(e,t){var n={};return function(i){var o=e(i);return n.hasOwnProperty(o)||(n[o]=t(i)),n[o]}}function r(e){var t="("+e.map(n.escapeRegExpCharacters).join(")|(")+")";return n.createRegExp(t,!0)}var s=function(){function e(e,t,n,i,o){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=i,this.reversedRegex=o}return e}();t.RichEditBracket=s;var a=function(){function e(e,t){var n=this;this.brackets=t.map(function(t){return new s(e,t[0],t[1],u({open:t[0],close:t[1]}),l({open:t[0],close:t[1]}))}),this.forwardRegex=c(this.brackets),this.reversedRegex=d(this.brackets),this.textIsBracket={},this.textIsOpenBracket={};var i=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,i=Math.max(i,e.open.length),i=Math.max(i,e.close.length)}),this.maxBracketLength=i}return e}();t.RichEditBrackets=a;var u=o(function(e){return e.open+";"+e.close},function(e){return r([e.open,e.close])}),l=o(function(e){return e.open+";"+e.close},function(e){return r([h(e.open),h(e.close)])}),c=o(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)}),r(t)}),d=o(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(h(e.open)),t.push(h(e.close))}),r(t)}),h=function(){function e(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}var t=null,n=null;return function(i){return t!==i&&(t=i,n=e(t)),n}}(),p=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,o){var r=n.match(e);if(!r)return null;var s=n.length-r.index,a=r[0].length,u=o+s;return new i.Range(t,u-a+1,t,u+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=h(n),s=r.substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,s,i)},e.findNextBracketInText=function(e,t,n,o){var r=n.match(e);if(!r)return null;var s=r.index,a=r[0].length,u=o+s;return new i.Range(t,u+1,t,u+1+a)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}();t.BracketsUtils=p}),define(d[195],h([0,1,78,74,65]),function(e,t,n,i,o){"use strict";var r=function(){function e(e,t,n){n=n||{},this._richEditBrackets=e,this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new o.StandardAutoClosingPairConditional(e)}),n.docComment&&this._complexAutoClosePairs.push(new o.StandardAutoClosingPairConditional({open:n.docComment.open,close:n.docComment.close}))}return e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t=0))return{appendText:s.close}}}}return null},e}();t.BracketElectricCharacterSupport=r}),define(d[38],h([0,1,191,195,193,74,12,10,9,73,78,3,65]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=function(){function e(t,o,s){var a=null;o&&(a=o._conf),this._conf=e._mergeConf(a,s),this._conf.brackets&&(this.brackets=new r.RichEditBrackets(t,this._conf.brackets)),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new n.CharacterPairSupport(this._conf),this.electricCharacter=new i.BracketElectricCharacterSupport(this.brackets,this.characterPair.getAutoClosingPairs(),this._conf.__electricCharacterSupport), -this.wordDefinition=this._conf.wordPattern||l.DEFAULT_WORD_REGEXP,this.indentationRules=this._conf.indentationRules}return 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,__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,t.indentationRules=e.indentationRules),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new o.OnEnterSupport(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 i=t.blockComment,o=i[0],r=i[1];n.blockCommentStartToken=o,n.blockCommentEndToken=r}return n},e}();t.RichEditSupport=p;var f=function(){function e(){this._onDidChange=new s.Emitter,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new p(e,i,t);return this._entries[e.id]=o,this._onDidChange.fire(void 0),{dispose:function(){n._entries[e.id]===o&&(n._entries[e.id]=i,n._onDidChange.fire(void 0))}}},e.prototype._getRichEditSupport=function(e){return this._entries[e]||null},e.prototype.getIndentationRules=function(e){var t=this._entries[e];return t?t.indentationRules||null:null},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.electricCharacter||null:null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=c.createScopedLineTokens(t,n-1),o=this._getElectricCharacterSupport(i.languageId);return o?o.onElectricCharacter(e,i,n-i.firstCharOffset):null},e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);return t?t.comments||null:null},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t?t.characterPair||null:null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=c.createScopedLineTokens(t,n-1),o=this._getCharacterPairSupport(i.languageId);return!!o&&o.shouldAutoClosePair(e,i,n-i.firstCharOffset)},e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);return t?l.ensureValidWordDefinition(t.wordDefinition||null):l.ensureValidWordDefinition(null)},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t?t.onEnter||null:null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new d.Range(t,n,t,n));return i?i.enterAction:null},e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn),i=!1,o=this.getScopedLineTokens(e,t.startLineNumber),r=this._getOnEnterSupport(o.languageId);if(!r)return{enterAction:{indentAction:h.IndentAction.None,appendText:""},indentation:n,ignoreCurrentLine:!1};var s,u=o.getLineContent(),l=u.substr(0,t.startColumn-1-o.firstCharOffset);if(t.isEmpty())s=u.substr(t.startColumn-1-o.firstCharOffset);else{var c=this.getScopedLineTokens(e,t.endLineNumber);s=c.getLineContent().substr(t.endColumn-1-c.firstCharOffset)}var d=t.startLineNumber;if(r.shouldIgnore(l)){i=!0;var p=this.getLastValidLine(e,d,r);if(p<=0)return{enterAction:{indentAction:h.IndentAction.None,appendText:""},indentation:"",ignoreCurrentLine:i};o=this.getScopedLineTokens(e,p),l=this.getLineContent(e,p),d=p,n=this.getIndentationAtPosition(e,d,e.getLineMaxColumn(d))}var f="";if(d>1&&0===o.firstCharOffset){var p=this.getLastValidLine(e,d,r);if(p>=1){var g=this.getScopedLineTokens(e,p);g.languageId===o.languageId&&(f=g.getLineContent())}}var m=null;try{m=r.onEnter(f,l,s)}catch(e){a.onUnexpectedError(e)}return m?m.appendText||(m.indentAction===h.IndentAction.Indent||m.indentAction===h.IndentAction.IndentOutdent?m.appendText="\t":m.appendText=""):m={indentAction:h.IndentAction.None,appendText:""},{enterAction:m,indentation:n,ignoreCurrentLine:i}},e.prototype.getIndentationAtPosition=function(e,t,n){var i=e.getLineContent(t),o=u.getLeadingWhitespace(i);return o.length>n-1&&(o=o.substring(0,n-1)),o},e.prototype.getLastValidLine=function(e,t,n){if(t>1){var i=t-1;for(i=t-1;i>=1;i--){var o=e.getLineContent(i);if(!n.shouldIgnore(o)&&n.containNonWhitespace(o))break}if(i>=1)return i}return-1},e.prototype.getLineContent=function(e,t){var n=this.getScopedLineTokens(e,t),i=e.getLineMaxColumn(t),o=n.getLineContent(),r=o.substr(0,i-1-n.firstCharOffset);return r},e.prototype.getScopedLineTokens=function(e,t){var n=e.getLineTokens(t,!1),i=e.getLineMaxColumn(t),o=c.createScopedLineTokens(n,i-1);return o},e.prototype.getGoodIndentActionForLine=function(e,t){var n=this._getOnEnterSupport(e.getLanguageIdentifier().id);if(!n)return null;var i=this.getLastValidLine(e,t,n);if(i<1)return null;if(t<=e.getLineCount()){var o=this.getScopedLineTokens(e,t),r=this.getScopedLineTokens(e,i);if(o.languageId!==r.languageId)return null}var s,a=e.getLineContent(i);i>1&&(s=e.getLineContent(i-1));var l=u.getLeadingWhitespace(a),c=n.onEnter(s,a,"");return{indentation:l,action:c?c.indentAction:null}},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t?t.brackets||null:null},e}();t.LanguageConfigurationRegistryImpl=f,t.LanguageConfigurationRegistry=new f}),define(d[197],h([0,1,89]),function(e,t,n){"use strict";function i(e){if(!e||!Array.isArray(e))return[];for(var t=[],n=0,i=0,o=e.length;i=1&&""===e[0].token;){var o=e.shift();o.fontStyle!==-1&&(t=o.fontStyle),null!==o.foreground&&(n=o.foreground),null!==o.background&&(i=o.background)}for(var s=new a,c=new l(t,s.getId(n),s.getId(i)),h=new d(c),p=0,f=e.length;pt?1:0}var s=function(){function e(e,t,n,i,o){this.token=e,this.index=t,this.fontStyle=n,this.foreground=i,this.background=o}return e}();t.ParsedThemeRule=s,t.parseTheme=i;var a=function(){function e(){this._lastColorId=0,this._id2color=[],this._color2id=new Map}return e.prototype.getId=function(e){if(null===e)return 0;if(e=e.toUpperCase(),!/^[0-9A-F]{6}$/.test(e))throw new Error("Illegal color name: "+e);var t=this._color2id.get(e);return t?t:(t=++this._lastColorId,this._color2id.set(e,t),this._id2color[t]=e,t)},e.prototype.getColorMap=function(){return this._id2color.slice(0)},e}();t.ColorMap=a;var u=function(){function e(e,t){this._colorMap=e,this._root=t,this._cache=new Map}return e.createFromRawTheme=function(e){return this.createFromParsedTheme(i(e))},e.createFromParsedTheme=function(e){return o(e)},e.prototype.getColorMap=function(){return this._colorMap.getColorMap()},e.prototype.getThemeTrieElement=function(){return this._root.toExternalThemeTrieElement()},e.prototype._match=function(e){var t=this._cache.get(e);return"undefined"==typeof t&&(t=this._root.match(e),this._cache.set(e,t)),t},e.prototype.match=function(e,t){var i=this._match(t),o=n.toStandardTokenType(t);return(i.metadata|o<<8|e<<0)>>>0},e}();t.Theme=u,t.strcmp=r;var l=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.cloneArr=function(e){for(var t=[],n=0,i=e.length;n>>0},e}();t.ThemeTrieElementRule=l;var c=function(){function e(e,t){this.mainRule=e,this.children=t||Object.create(null)}return e}();t.ExternalThemeTrieElement=c;var d=function(){function e(e){this._mainRule=e,this._children=new Map}return e.prototype.toExternalThemeTrieElement=function(){var e=Object.create(null);return this._children.forEach(function(t,n){e[n]=t.toExternalThemeTrieElement()}),new c(this._mainRule,e)},e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");i===-1?(t=e,n=""):(t=e.substring(0,i),n=e.substring(i+1));var o=this._children.get(t);return"undefined"!=typeof o?o.match(n):this._mainRule},e.prototype.insert=function(t,n,i,o){if(""===t)return void this._mainRule.acceptOverwrite(n,i,o);var r,s,a=t.indexOf(".");a===-1?(r=t,s=""):(r=t.substring(0,a),s=t.substring(a+1));var u=this._children.get(r);"undefined"==typeof u&&(u=new e(this._mainRule.clone()),this._children.set(r,u)),u.insert(s,n,i,o)},e}();t.ThemeTrieElement=d}),define(d[139],h([0,1,9,16,63,89]),function(e,t,n,i,o,r){"use strict";function s(e,t){return u(e,a(t))}function a(e){var t=i.TokenizationRegistry.get(e);return t?t:{getInitialState:function(){return o.NULL_STATE},tokenize:void 0,tokenize2:function(e,t,n){return o.nullTokenize2(0,e,t,n)}}}function u(e,t){for(var i='
    ',o=e.split(/\r\n|\r|\n/),s=t.getInitialState(),a=0,u=o.length;a0&&(i+="
    ");for(var c=t.tokenize2(l,s,0),d=new r.LineTokens(null,c.tokens,l),h=d.inflate(),p=0,f=0,g=h.length;f'+n.escape(l.substring(p,m.endIndex))+"",p=m.endIndex}s=c.endState}return i+="
    "}t.tokenizeToString=s}),define(d[199],h([0,1,12]),function(e,t,n){"use strict";var i=function(){function e(){this._codeEditors=Object.create(null),this._onCodeEditorAdd=new n.Emitter,this._onCodeEditorRemove=new n.Emitter}return e.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e,this._onCodeEditorAdd.fire(e)},Object.defineProperty(e.prototype,"onCodeEditorAdd",{get:function(){return this._onCodeEditorAdd.event},enumerable:!0,configurable:!0}),e.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)},Object.defineProperty(e.prototype,"onCodeEditorRemove",{get:function(){return this._onCodeEditorRemove.event},enumerable:!0,configurable:!0}),e.prototype.getCodeEditor=function(e){return this._codeEditors[e]||null},e.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})},e.prototype.getFocusedCodeEditor=function(){for(var e=null,t=this.listCodeEditors(),n=0;n=c?s=Math.max(s,c+d-r):(t[o++]=new n.HorizontalRange(r,s),r=c,s=d)}return t[o++]=new n.HorizontalRange(r,s),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],o=0,r=e.length;ou)return null;t=Math.min(u,Math.max(a,t)),i=Math.min(u,Math.max(a,i)),t!==i&&i>0&&0===o&&(i--,o=Number.MAX_VALUE);var l=e.children[t].firstChild,c=e.children[i].firstChild;if(!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n)),o=Math.min(c.textContent.length,Math.max(0,o));var d=this._readClientRects(l,n,c,o,s);return this._createHorizontalRangesFromClientRects(d,r)},e}();t.RangeUtil=o}),define(d[205],h([0,1]),function(e,t){"use strict";var n=function(){function e(e,t,n,i,o){this.configuration=e,this.model=t,this.privateViewEventBus=n,this.addEventHandler=i,this.removeEventHandler=o}return e}();t.ViewContext=n}),define(d[119],h([0,1]),function(e,t){"use strict";var n=function(){function e(e,t,n,i){this.startColumn=e,this.endColumn=t,this.className=n,this.insertsBeforeOrAfter=i}return e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.insertsBeforeOrAfter===t.insertsBeforeOrAfter},e.equalsArr=function(t,n){var i=t.length,o=n.length;if(i!==o)return!1;for(var r=0;rn||c.isEmpty())){var d=c.startLineNumber===n?c.startColumn:i,h=c.endLineNumber===n?c.endColumn:o;h<=1||(r[s++]=new e(d,h,l.inlineClassName,l.insertsBeforeOrAfter))}}return r},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}();t.Decoration=n;var i=function(){function e(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n}return e}();t.DecorationSegment=i;var o=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}(),r=function(){function e(){}return e.normalize=function(e){if(0===e.length)return[];for(var t=[],n=new o,i=0,r=0,s=e.length;r ",!1,!1):d(s(e))}function s(e){var t,n,i=e.useMonospaceOptimizations,r=e.lineContent;e.stopRenderingLineAfter!==-1&&e.stopRenderingLineAfter0){for(var h=0,p=e.lineDecorations.length;ht){i[o]=new n.ViewLineToken(t,e[o].type);break}i[o]=e[o]}return i}function u(e){for(var t=0,i=[],o=0,r=0,s=e.length;r50){for(var c=a.type,d=Math.ceil(l/50),h=1;h0&&(l[c++]=new n.ViewLineToken(r,""));var f,g=o.firstNonWhitespaceIndex(e);g===-1?(g=t,f=t):f=o.lastNonWhitespaceIndex(e);for(var m=0,v=0;vf)C=!0;else if(9===_)C=!0;else if(32===_)if(u)if(y)C=!0;else{var b=v+1=s)&&(l[c++]=new n.ViewLineToken(v,"vs-whitespace"),m%=s):(v===p||C&&v>r)&&(l[c++]=new n.ViewLineToken(v,h),m%=s),9===_?m=s:m++,y=C,v===p&&(d++,h=i[d].type,p=i[d].endIndex)}return y?l[c++]=new n.ViewLineToken(t,"vs-whitespace"):l[c++]=new n.ViewLineToken(t,h),l}function c(e,t,o,r){r.sort(i.Decoration.compare);for(var s=i.LineDecorationsNormalizer.normalize(r),a=s.length,u=0,l=[],c=0,d=0,h=0,p=o.length;hd&&(d=v.startOffset,l[c++]=new n.ViewLineToken(d,m)),!(v.endOffset+1<=g)){d=g,l[c++]=new n.ViewLineToken(d,m+" "+v.className);break}d=v.endOffset+1,l[c++]=new n.ViewLineToken(d,m+" "+v.className),u++}g>d&&(d=g,l[c++]=new n.ViewLineToken(d,m))}return l}function d(e){for(var t=e.fontIsMonospace,n=e.containsForeignElements,i=e.lineContent,o=e.len,r=e.isOverflowing,s=e.tokens,a=e.tabSize,u=e.containsRTL,l=e.spaceWidth,c=e.renderWhitespace,d=e.renderControlCharacters,h=new g(o+1,s.length),p=0,f=0,v=0,_="",y=0,C=s.length;y=0;if(v=0,E){for(var L=0,N="";p0&&(N+="→",L++,x--);x>0;)N+=" ",L++,x--}else N+="·",L++;v++}h.setPartLength(y,L),_+=t?''+N+"":''+N+""}else{for(var L=0,N="";p0;)N+=" ",L++,x--;break;case 32:N+=" ",L++;break;case 60:N+="<",L++;break;case 62:N+=">",L++;break;case 38:N+="&",L++;break;case 0:N+="�",L++;break;case 65279:case 8232:N+="�",L++;break;case 13:N+="​",L++;break;default:d&&T<32?(N+=String.fromCharCode(9216+T),L++):(N+=String.fromCharCode(T),L++)}v++}h.setPartLength(y,L),_+=u?''+N+"":''+N+""}}return h.setPartData(o,s.length-1,v),r&&(_+=''),_+="",new m(h,_,u,n)}var h;!function(e){e[e.None=0]="None", -e[e.Boundary=1]="Boundary",e[e.All=2]="All"}(h=t.RenderWhitespace||(t.RenderWhitespace={}));var p=function(){function e(e,t,n,i,o,r,s,a,u,l,c){this.useMonospaceOptimizations=e,this.lineContent=t,this.mightContainRTL=n,this.fauxIndentLength=i,this.lineTokens=o,this.lineDecorations=r,this.tabSize=s,this.spaceWidth=a,this.stopRenderingLineAfter=u,this.renderWhitespace="all"===l?2:"boundary"===l?1:0,this.renderControlCharacters=c}return e.prototype.equals=function(e){return this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.lineContent===e.lineContent&&this.mightContainRTL===e.mightContainRTL&&this.fauxIndentLength===e.fauxIndentLength&&this.tabSize===e.tabSize&&this.spaceWidth===e.spaceWidth&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&i.Decoration.equalsArr(this.lineDecorations,e.lineDecorations)&&n.ViewLineToken.equalsArr(this.lineTokens,e.lineTokens)},e}();t.RenderLineInput=p;var f;!function(e){e[e.PART_INDEX_MASK=4294901760]="PART_INDEX_MASK",e[e.CHAR_INDEX_MASK=65535]="CHAR_INDEX_MASK",e[e.CHAR_INDEX_OFFSET=0]="CHAR_INDEX_OFFSET",e[e.PART_INDEX_OFFSET=16]="PART_INDEX_OFFSET"}(f=t.CharacterMappingConstants||(t.CharacterMappingConstants={}));var g=function(){function e(e,t){this.length=e,this._data=new Uint32Array(this.length),this._partLengths=new Uint16Array(t)}return e.getPartIndex=function(e){return(4294901760&e)>>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n){var i=(t<<16|n<<0)>>>0;this._data[e]=i},e.prototype.setPartLength=function(e,t){this._partLengths[e]=t},e.prototype.getPartLengths=function(){return this._partLengths},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,i){if(0===this.length)return 0;for(var o=(t<<16|i<<0)>>>0,r=0,s=this.length-1;r+1>>1,u=this._data[a];if(u===o)return a;u>o?s=a:r=a}if(r===s)return r;var l=this._data[r],c=this._data[s];if(l===o)return r;if(c===o)return s;var d,h=e.getPartIndex(l),p=e.getCharIndex(l),f=e.getPartIndex(c);d=h!==f?n:e.getCharIndex(c);var g=i-p,m=d-i;return g<=m?r:s},e}();t.CharacterMapping=g;var m=function(){function e(e,t,n,i){this.characterMapping=e,this.output=t,this.containsRTL=n,this.containsForeignElements=i}return e}();t.RenderLineOutput=m,t.renderViewLine=r;var v,_=function(){function e(e,t,n,i,o,r,s,a,u,l,c){this.fontIsMonospace=e,this.lineContent=t,this.len=n,this.isOverflowing=i,this.tokens=o,this.containsForeignElements=r,this.tabSize=s,this.containsRTL=a,this.spaceWidth=u,this.renderWhitespace=l,this.renderControlCharacters=c}return e}();!function(e){e[e.LongToken=50]="LongToken"}(v||(v={}))}),define(d[146],h([0,1,6,16,120,88,89,9]),function(e,t,n,i,o,r,s,a){"use strict";function u(e,t,n){return c(e,t,n)}function l(e,t){for(var n=[],i=0,s=e.length;i")}return n.join("")}function c(e,t,n){for(var r=[],a=n.getInitialState(),u=i.TokenizationRegistry.getColorMap(),l=0,c=e.length;l"),a=h.endState}return r.join("")}var d=function(){function e(){}return e.colorizeElement=function(e,t,n,i){i=i||{};var o=i.theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!r)return void console.error("Mode not detected");e.setTheme(o);var s=n.firstChild.nodeValue;n.className+="monaco-editor "+o;var a=function(e){n.innerHTML=e};return this.colorize(t,s,r,i).then(a,function(e){return console.error(e)},a)},e._tokenizationSupportChangedPromise=function(e){var t=null,o=function(){t&&(t.dispose(),t=null)};return new n.TPromise(function(n,r,s){t=i.TokenizationRegistry.onDidChange(function(t){t.languages.indexOf(e)>=0&&(o(),n(void 0))})},o)},e.colorize=function(e,t,o,r){a.startsWithUTF8BOM(t)&&(t=t.substr(1));var s=t.split(/\r\n|\r|\n/),c=e.getModeId(o);r=r||{},"undefined"==typeof r.tabSize&&(r.tabSize=4),e.getOrCreateMode(c);var d=i.TokenizationRegistry.get(c);return d?n.TPromise.as(u(s,r.tabSize,d)):n.TPromise.any([this._tokenizationSupportChangedPromise(c),n.TPromise.timeout(500)]).then(function(e){var t=i.TokenizationRegistry.get(c);return t?u(s,r.tabSize,t):l(s,r.tabSize)})},e.colorizeLine=function(e,t,n,i){void 0===i&&(i=4);var r=o.renderViewLine(new o.RenderLineInput(!1,e,t,0,n,[],i,0,-1,"none",!1));return r.output},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t),o=e.getLineTokens(t,!1),r=o.inflate();return this.colorizeLine(i,e.mightContainRTL(),r,n)},e}();t.Colorizer=d}),define(d[209],h([0,1,24,18,9,28,119,120,21,204,85]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";function d(e,t,n,i){return new y(e,t,n,i)}function h(e,t,n,i){return new _(e,t,n,i)}var p=function(){return!!i.isNative||!(i.isLinux||n.isFirefox||n.isSafari)}(),f=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}();t.DomReadingContext=f;var g=function(){function e(e){this._context=e,this._renderWhitespace=this._context.configuration.editor.viewInfo.renderWhitespace,this._renderControlCharacters=this._context.configuration.editor.viewInfo.renderControlCharacters,this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth,this._useMonospaceOptimizations=this._context.configuration.editor.fontInfo.isMonospace&&!this._context.configuration.editor.viewInfo.disableMonospaceOptimizations,this._lineHeight=this._context.configuration.editor.lineHeight,this._stopRenderingLineAfter=this._context.configuration.editor.viewInfo.stopRenderingLineAfter,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=r.createFastDomNode(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onModelDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onConfigurationChanged=function(e){e.viewInfo.renderWhitespace&&(this._isMaybeInvalid=!0,this._renderWhitespace=this._context.configuration.editor.viewInfo.renderWhitespace),e.viewInfo.renderControlCharacters&&(this._isMaybeInvalid=!0,this._renderControlCharacters=this._context.configuration.editor.viewInfo.renderControlCharacters),e.viewInfo.disableMonospaceOptimizations&&(this._isMaybeInvalid=!0,this._useMonospaceOptimizations=this._context.configuration.editor.fontInfo.isMonospace&&!this._context.configuration.editor.viewInfo.disableMonospaceOptimizations),e.fontInfo&&(this._isMaybeInvalid=!0,this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth,this._useMonospaceOptimizations=this._context.configuration.editor.fontInfo.isMonospace&&!this._context.configuration.editor.viewInfo.disableMonospaceOptimizations),e.lineHeight&&(this._isMaybeInvalid=!0,this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo.stopRenderingLineAfter&&(this._isMaybeInvalid=!0,this._stopRenderingLineAfter=this._context.configuration.editor.viewInfo.stopRenderingLineAfter)},e.prototype.shouldUpdateHTML=function(e,t,n){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var i=this._context.model,r=s.Decoration.filter(n,t,i.getLineMinColumn(t),i.getLineMaxColumn(t)),u=i.getLineContent(t),l=new a.RenderLineInput(this._useMonospaceOptimizations,u,i.mightContainRTL(),i.getLineMinColumn(t)-1,i.getLineTokens(t),r,i.getTabSize(),this._spaceWidth,this._stopRenderingLineAfter,this._renderWhitespace,this._renderControlCharacters);if(this._renderedViewLine&&this._renderedViewLine.input.equals(l))return!1;var c=a.renderViewLine(l),d=null;if(p&&this._useMonospaceOptimizations&&!c.containsForeignElements){var h=!0;i.mightContainNonBasicASCII()&&(h=o.isBasicASCII(u)),h&&u.length<1e3&&(d=new v(this._renderedViewLine?this._renderedViewLine.domNode:null,l,c))}if(!d){var f=/^\s*$/.test(l.lineContent);d=C(this._renderedViewLine?this._renderedViewLine.domNode:null,l,f,c)}return this._renderedViewLine=d,!0},e.prototype.getLineOuterHTML=function(e,t,n){e.push('
    '),e.push(this.getLineInnerHTML(t)),e.push("
    ")},e.prototype.getLineInnerHTML=function(e){return this._renderedViewLine.html},e.prototype.layoutLine=function(e,t){this._renderedViewLine.domNode.setLineNumber(String(e)),this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._lineHeight)},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getVisibleRangesForRange=function(e,t,n){return this._renderedViewLine.getVisibleRangesForRange(e,t,n)},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine.getColumnOfNodeOffset(e,t,n)},e}();t.ViewLine=g;var v=function(){function e(t,n,i){this.domNode=t,this.input=n,this.html=i.output,this._characterMapping=i.characterMapping,this._charWidth=n.spaceWidth,this._charOffset=e._createCharOffset(i.characterMapping)}return e._createCharOffset=function(e){for(var t=e.getPartLengths(),n=e.length,i=new Uint32Array(n),o=0,r=0,s=0;si&&t>i)return null;i!==-1&&e>i&&(e=i),i!==-1&&t>i&&(t=i);var o=this._getCharPosition(e),r=this._getCharPosition(t);return[new c.HorizontalRange(o,r-o)]},e.prototype._getCharPosition=function(e){return 0===this._charOffset.length?0:Math.round(this._charWidth*this._charOffset[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),_=function(){function e(e,t,n,i){if(this.domNode=e,this.input=t,this.html=i.output,this._characterMapping=i.characterMapping,this._isWhitespaceOnly=n,this._cachedWidth=-1,this._pixelOffsetCache=null,!i.containsRTL){this._pixelOffsetCache=new Int32Array(this._characterMapping.length+1);for(var o=0,r=this._characterMapping.length;o<=r;o++)this._pixelOffsetCache[o]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){e|=0,t|=0;var i=0|this.input.stopRenderingLineAfter;if(i!==-1&&e>i&&t>i)return null;if(i!==-1&&e>i&&(e=i),i!==-1&&t>i&&(t=i),null!==this._pixelOffsetCache){var o=this._readPixelOffset(e,n);if(o===-1)return null;var r=this._readPixelOffset(t,n);return r===-1?null:[new c.HorizontalRange(o,r-o)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return i===-1?null:[new c.HorizontalRange(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(n!==-1)return n;var i=this._actualReadPixelOffset(e,t);return this._pixelOffsetCache[e]=i,i}return this._actualReadPixelOffset(e,t)},e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length)return 0;if(e===this._characterMapping.length&&this._isWhitespaceOnly)return this.getWidth();var n=this._characterMapping.charOffsetToPartData(e-1),i=a.CharacterMapping.getPartIndex(n),o=a.CharacterMapping.getCharIndex(n),r=l.RangeUtil.readHorizontalRanges(this._getReadingTarget(),i,o,i,o,t.clientRectDeltaLeft,t.endNode);return r&&0!==r.length?r[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new c.HorizontalRange(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=a.CharacterMapping.getPartIndex(i),r=a.CharacterMapping.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),u=a.CharacterMapping.getPartIndex(s),d=a.CharacterMapping.getCharIndex(s);return l.RangeUtil.readHorizontalRanges(this._getReadingTarget(),o,r,u,d,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;var r=this._characterMapping.partDataToCharOffset(o,i,n);return r+1},e}(),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._readVisibleRangesForRange=function(t,n,i){var o=e.prototype._readVisibleRangesForRange.call(this,t,n,i);if(!o||0===o.length||t===n||1===t&&n===this._characterMapping.length)return o;var r=this._readPixelOffset(n-1,i),s=this._readPixelOffset(n,i);if(r!==-1&&s!==-1){var a=r<=s,u=o[o.length-1];a&&u.left>>1,t===e[o]?i=t&&(this.whitespaceId2Index[u]=l+1)}this.whitespaceId2Index[e.toString()]=t,this.prefixSumValidIndex=Math.min(this.prefixSumValidIndex,t-1)},e.prototype.changeWhitespace=function(e,t,n){e|=0,t|=0,n|=0;var i=!1;return i=this.changeWhitespaceHeight(e,n)||i,i=this.changeWhitespaceAfterLineNumber(e,t)||i},e.prototype.changeWhitespaceHeight=function(e,t){e|=0,t|=0;var n=e.toString();if(this.whitespaceId2Index.hasOwnProperty(n)){var i=this.whitespaceId2Index[n];if(this.heights[i]!==t)return this.heights[i]=t,this.prefixSumValidIndex=Math.min(this.prefixSumValidIndex,i-1),!0}return!1},e.prototype.changeWhitespaceAfterLineNumber=function(t,n){t|=0,n|=0;var i=t.toString();if(this.whitespaceId2Index.hasOwnProperty(i)){var o=this.whitespaceId2Index[i];if(this.afterLineNumbers[o]!==n){var r=this.ordinals[o],s=this.heights[o];this.removeWhitespace(t);var a=e.findInsertionIndex(this.afterLineNumbers,n,this.ordinals,r);return this.insertWhitespaceAtIndex(t,a,n,r,s),!0}}return!1},e.prototype.removeWhitespace=function(e){e|=0;var t=e.toString();if(this.whitespaceId2Index.hasOwnProperty(t)){var n=this.whitespaceId2Index[t];return delete this.whitespaceId2Index[t],this.removeWhitespaceAtIndex(n),!0}return!1},e.prototype.removeWhitespaceAtIndex=function(e){e|=0,this.heights.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,i=t.length;n=e&&(this.whitespaceId2Index[o]=r-1)}},e.prototype.onModelLinesDeleted=function(e,t){e|=0,t|=0;var n,i,o;for(i=0,o=this.afterLineNumbers.length;it&&(this.afterLineNumbers[i]-=t-e+1)},e.prototype.onModelLinesInserted=function(e,t){e|=0,t|=0;var n,i,o;for(i=0,o=this.afterLineNumbers.length;i=t.length||t[s+1]>=e)return s;n=s+1|0}else i=s-1|0}return-1},e.prototype.findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t=this.findLastWhitespaceBeforeLineNumber(e),n=t+1;return n1?t*(e-1):0;var i=this.whitespaces.getAccumulatedHeightBeforeLineNumber(e);return n+i},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this.whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this.whitespaces.getCount()>0},e.prototype.isAfterLines=function(e,t){var n=this.getTotalHeight(t);return e>n},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e,t){if(e|=0,t|=0,e<0)return 1;for(var n=1,i=0|this.linesCount,o=i;n=s+t)n=r+1;else{if(e>=s)return r;o=r}}return n>i?i:n},e.prototype.getCenteredLineInViewport=function(e,t,n){e|=0,t|=0,n|=0;for(var i,o,r=this.getLinesViewportData(e,t,n),s=(t-e)/2,a=r.startLineNumber;a<=r.endLineNumber;a++)if(i=r.visibleRangesDeltaTop+r.relativeVerticalOffset[a-r.startLineNumber],o=i+n,i<=s&&ss)return a;return r.endLineNumber},e.prototype.getLinesViewportData=function(e,t,n){e|=0,t|=0,n|=0;var i,o,r=0|this.getLineNumberAtOrAfterVerticalOffset(e,n),s=0|this.linesCount,a=0|this.getVerticalOffsetForLineNumber(r,n),u=0|this.whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this.whitespaces.getCount();u===-1?(u=l,o=s+1,i=0):(o=0|this.whitespaces.getAfterLineNumberForWhitespaceIndex(u),i=0|this.whitespaces.getHeightForWhitespaceIndex(u));var c=a,d=c,h=5e5,p=0;a>=h&&(p=Math.floor(a/h)*h,p=Math.floor(p/n)*n,d-=p);for(var f=[],g=r;g<=s;g++){for(c+=n,f.push(d),d+=n;o===g;)d+=i,c+=i,u++,u>=l?o=s+1:(o=0|this.whitespaces.getAfterLineNumberForWhitespaceIndex(u),i=0|this.whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){s=g;break}}return{viewportTop:e-p,viewportHeight:t-e,bigNumbersDelta:p,startLineNumber:r,endLineNumber:s,visibleRangesDeltaTop:-(e-p),relativeVerticalOffset:f}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e,t){e|=0,t|=0;var n,i=this.whitespaces.getAfterLineNumberForWhitespaceIndex(e);n=i>=1?t*i:0;var o;return o=e>0?this.whitespaces.getAccumulatedHeight(e-1):0,n+o},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e,t){e|=0,t|=0;var n,i,o,r=0,s=this.whitespaces.getCount()-1;if(s<0)return-1;var a=this.getVerticalOffsetForWhitespaceIndex(s,t),u=this.whitespaces.getHeightForWhitespaceIndex(s);if(e>=a+u)return-1;for(;r=i+o)r=n+1;else{if(e>=i)return n;s=n}return r},e.prototype.getWhitespaceAtVerticalOffset=function(e,t){e|=0,t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e,t);if(n<0)return null;if(n>=this.whitespaces.getCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(n,t);if(i>e)return null;var o=this.whitespaces.getHeightForWhitespaceIndex(n),r=this.whitespaces.getIdForWhitespaceIndex(n),s=this.whitespaces.getAfterLineNumberForWhitespaceIndex(n);return{id:r,afterLineNumber:s,verticalOffset:i,height:o}},e.prototype.getWhitespaceViewportData=function(e,t,n){e|=0,t|=0,n|=0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(e,n),o=this.whitespaces.getCount()-1;if(i<0)return[];var r,s,a,u=[];for(r=i;r<=o&&(s=this.getVerticalOffsetForWhitespaceIndex(r,n),a=this.whitespaces.getHeightForWhitespaceIndex(r),!(s>=t));r++)u.push({id:this.whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this.whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a});return u},e.prototype.getWhitespaces=function(e){return this.whitespaces.getWhitespaces(e)},e}();t.VerticalObjects=i}),define(d[213],h([0,1,212,3,210]),function(e,t,n,i,o){"use strict";var r=function(){function e(e,t){this.configuration=e,this._lineHeight=this.configuration.editor.lineHeight,this._scrollBeyondLastLine=this.configuration.editor.viewInfo.scrollBeyondLastLine,this.model=t,this.verticalObjects=new n.VerticalObjects,this.verticalObjects.replaceLines(t.getLineCount())}return e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this.configuration.editor.lineHeight),e.viewInfo.scrollBeyondLastLine&&(this._scrollBeyondLastLine=this.configuration.editor.viewInfo.scrollBeyondLastLine)},e.prototype.insertWhitespace=function(e,t,n){return this.verticalObjects.insertWhitespace(e,t,n)},e.prototype.changeWhitespace=function(e,t,n){return this.verticalObjects.changeWhitespace(e,t,n)},e.prototype.removeWhitespace=function(e){return this.verticalObjects.removeWhitespace(e)},e.prototype.onModelFlushed=function(){this.verticalObjects.replaceLines(this.model.getLineCount())},e.prototype.onModelLinesDeleted=function(e){this.verticalObjects.onModelLinesDeleted(e.fromLineNumber,e.toLineNumber)},e.prototype.onModelLinesInserted=function(e){this.verticalObjects.onModelLinesInserted(e.fromLineNumber,e.toLineNumber)},e.prototype.getVerticalOffsetForLineNumber=function(e){return this.verticalObjects.getVerticalOffsetForLineNumber(e,this._lineHeight)},e.prototype.getLinesTotalHeight=function(){return this.verticalObjects.getTotalHeight(this._lineHeight)},e.prototype.getTotalHeight=function(e,t){var n=this.getLinesTotalHeight();return n+=this._scrollBeyondLastLine?e.height-this._lineHeight:t,Math.max(e.height,n)},e.prototype.isAfterLines=function(e){return this.verticalObjects.isAfterLines(e,this._lineHeight)},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){return this.verticalObjects.getLineNumberAtOrAfterVerticalOffset(e,this._lineHeight)},e.prototype.getHeightForLineNumber=function(e){return this._lineHeight},e.prototype.getWhitespaceViewportData=function(e){return this.verticalObjects.getWhitespaceViewportData(e.top,e.top+e.height,this._lineHeight)},e.prototype.getWhitespaces=function(){return this.verticalObjects.getWhitespaces(this._lineHeight)},e.prototype.getWhitespaceAtVerticalOffset=function(e){return this.verticalObjects.getWhitespaceAtVerticalOffset(e,this._lineHeight)},e.prototype.getLinesViewportData=function(e){var t=this.verticalObjects.getLinesViewportData(e.top,e.top+e.height,this._lineHeight),n=this.model.getDecorationsViewportData(t.startLineNumber,t.endLineNumber),r=new i.Range(t.startLineNumber,1,t.endLineNumber,this.model.getLineMaxColumn(t.endLineNumber)),s=t.startLineNumber===t.endLineNumber||t.relativeVerticalOffset[0]>=t.viewportTop?t.startLineNumber:t.startLineNumber+1,a=t.relativeVerticalOffset[t.relativeVerticalOffset.length-1]+this._lineHeight<=t.viewportTop+t.viewportHeight?t.endLineNumber:t.endLineNumber-1,u=new i.Range(s,1,a,this.model.getLineMaxColumn(a));return new o.ViewLinesViewportData(t,r,u,n)},e.prototype.getCenteredLineInViewport=function(e){return this.verticalObjects.getCenteredLineInViewport(e.top,e.top+e.height,this._lineHeight)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this.verticalObjects.getWhitespaceAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this.verticalObjects.hasWhitespace()},e}();t.LinesLayout=r}),define(d[86],h([0,1,83]),function(e,t,n){"use strict";var i=function(){function e(e,t){this.index=e,this.remainder=t}return e}();t.PrefixSumIndexOfResult=i;var o=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=n.toUint32(e);var i=this.values,o=this.prefixSum,r=t.length;0!==r&&(this.values=new Uint32Array(i.length+r),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+r),this.values.set(t,e),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex+1)))},e.prototype.changeValue=function(e,t){e=n.toUint32(e),t=n.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1=i.length)){var r=i.length-e;t>=r&&(t=r),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(o.subarray(0,this.prefixSumValidIndex+1)))}},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this.getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){if(e<0)return 0;if(e=n.toUint32(e),e<=this.prefixSumValidIndex)return this.prefixSum[e];var t=this.prefixSumValidIndex+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex=Math.max(this.prefixSumValidIndex,e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e);for(var t,n,o,r=0,s=this.values.length-1;r<=s;)if(t=r+(s-r)/2|0,n=this.getAccumulatedValue(t),o=n-this.values[t],e=n))break;r=t+1}return new i(t,e-o)},e}();t.PrefixSumComputer=o}),define(d[215],h([0,1,86]),function(e,t,n){"use strict";var i=function(){function e(e,t,n,i){this._uri=e,this._lines=t,this._eol=n,this._versionId=i}return e.prototype.dispose=function(){this._lines.length=0},Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){for(var t=null,n=0,i=e.length;nthis._lines.length)t=this._lines.length,n=this._lines[t-1].length+1,i=!0;else{var o=this._lines[t-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:t,column:n}:e},t}(u.MirrorModel2),g=function(){function e(){this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var o=this._getModel(e),s=this._getModel(t);if(!o||!s)return null;var a=o.getLinesContent(),u=s.getLinesContent(),l=new r.DiffComputer(a,u,{shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldConsiderTrimWhitespaceInEmptyCase:!0});return i.TPromise.as(l.computeDiff())},e.prototype.computeDirtyDiff=function(e,t,n){var o=this._getModel(e),s=this._getModel(t);if(!o||!s)return null;var a=o.getLinesContent(),u=s.getLinesContent(),l=new r.DiffComputer(a,u,{shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:n,shouldConsiderTrimWhitespaceInEmptyCase:!1});return i.TPromise.as(l.computeDiff())},e.prototype.computeMoreMinimalEdits=function(t,n,r){var a=this._getModel(t);if(!a)return i.TPromise.as(n);for(var u=[],l=0,c=n;le._diffLimit)u.push({range:h,text:p});else for(var g=s.stringDiff(f,p),m=a.offsetAt(o.Range.lift(h).getStartPosition()),v=0,_=g;v<_.length;v++){var y=_[v],C=a.positionAt(m+y.originalStart),b=a.positionAt(m+y.originalStart+y.originalLength),w={text:p.substr(y.modifiedStart,y.modifiedLength),range:{startLineNumber:C.lineNumber,startColumn:C.column,endLineNumber:b.lineNumber,endColumn:b.column}};a.getValueInRange(w.range)!==w.text&&u.push(w)}}return i.TPromise.as(u)},e.prototype.computeLinks=function(e){var t=this._getModel(e);return t?i.TPromise.as(l.computeLinks(t)):null},e.prototype.textualSuggest=function(e,t,n,o){var r=this._getModel(e);if(r){for(var s=[],a=new RegExp(n,o),u=r.getWordUntilPosition(t,a).word,l=0,c=r.getAllUniqueWords(a);lo)return!1;for(var r=0;rd?n[r].commentStrOffset=u-1:n[r].commentStrOffset=u}},e}();t.LineCommentCommand=c}),define(d[125],h([0,1,55,25,35,3,4]),function(e,t,n,i,o,r,s){"use strict";var a={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0},u=function(e){function t(n,i){void 0===i&&(i={});var r=e.call(this,[t.Events.UPDATED])||this;return r.editor=n,r.options=o.mixin(i,a,!1),r.disposed=!1,r.toUnbind=[],r.nextIdx=-1,r.ranges=[],r.ignoreSelectionChange=!1,r.revealFirst=r.options.alwaysRevealFirst,r.toUnbind.push(r.editor.onDidDispose(function(){return r.dispose()})),r.toUnbind.push(r.editor.onDidUpdateDiff(function(){return r.onDiffUpdated()})),r.options.followsCaret&&r.toUnbind.push(r.editor.getModifiedEditor().onDidChangeCursorPosition(function(e){r.ignoreSelectionChange||(r.nextIdx=-1)})),r.options.alwaysRevealFirst&&r.toUnbind.push(r.editor.getModifiedEditor().onDidChangeModel(function(e){r.revealFirst=!0})),r.init(),r}return m(t,e),t.prototype.init=function(){var e=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())},t.prototype.compute=function(e){var n=this;this.ranges=[],e&&e.forEach(function(e){!n.options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){n.ranges.push({rhs:!0,range:new r.Range(e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):n.ranges.push({rhs:!0,range:new r.Range(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.emit(t.Events.UPDATED,{})},t.prototype.initIdx=function(e){for(var t=!1,n=this.editor.getPosition(),i=0,o=this.ranges.length;i=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var t=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var i=t.range.getStartPosition();this.editor.setPosition(i),this.editor.revealPositionInCenter(i)}finally{this.ignoreSelectionChange=!1}}},t.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},t.prototype.next=function(){this.move(!0)},t.prototype.previous=function(){this.move(!1)},t.prototype.dispose=function(){this.toUnbind=s.dispose(this.toUnbind),this.ranges=null,this.disposed=!0,e.prototype.dispose.call(this)},t}(i.EventEmitter);u.Events={UPDATED:"navigation.updated"},t.DiffNavigator=u}),define(d[222],h([0,1,25,3]),function(e,t,n,i){"use strict";var o=function(){function e(){this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._wholeWord=!1,this._matchCase=!1,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._eventEmitter=new n.EventEmitter}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 this._isRegex},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matchCase",{get:function(){return this._matchCase},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(){this._eventEmitter.dispose()},e.prototype.addChangeListener=function(t){return this._eventEmitter.addListener2(e._CHANGED_EVENT,t)},e.prototype.changeMatchInfo=function(t,n,o){var r={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},s=!1;0===n&&(t=0),t>n&&(t=n),this._matchesPosition!==t&&(this._matchesPosition=t,r.matchesPosition=!0,s=!0),this._matchesCount!==n&&(this._matchesCount=n,r.matchesCount=!0,s=!0),"undefined"!=typeof o&&(i.Range.equalsRange(this._currentMatch,o)||(this._currentMatch=o,r.currentMatch=!0,s=!0)),s&&this._eventEmitter.emit(e._CHANGED_EVENT,r)},e.prototype.change=function(t,n,o){void 0===o&&(o=!0);var r={moveCursor:n,updateHistory:o,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},s=!1;"undefined"!=typeof t.searchString&&this._searchString!==t.searchString&&(this._searchString=t.searchString,r.searchString=!0,s=!0),"undefined"!=typeof t.replaceString&&this._replaceString!==t.replaceString&&(this._replaceString=t.replaceString,r.replaceString=!0,s=!0),"undefined"!=typeof t.isRevealed&&this._isRevealed!==t.isRevealed&&(this._isRevealed=t.isRevealed,r.isRevealed=!0,s=!0),"undefined"!=typeof t.isReplaceRevealed&&this._isReplaceRevealed!==t.isReplaceRevealed&&(this._isReplaceRevealed=t.isReplaceRevealed,r.isReplaceRevealed=!0,s=!0),"undefined"!=typeof t.isRegex&&this._isRegex!==t.isRegex&&(this._isRegex=t.isRegex,r.isRegex=!0,s=!0),"undefined"!=typeof t.wholeWord&&this._wholeWord!==t.wholeWord&&(this._wholeWord=t.wholeWord,r.wholeWord=!0,s=!0),"undefined"!=typeof t.matchCase&&this._matchCase!==t.matchCase&&(this._matchCase=t.matchCase,r.matchCase=!0,s=!0),"undefined"!=typeof t.searchScope&&(i.Range.equalsRange(this._searchScope,t.searchScope)||(this._searchScope=t.searchScope,r.searchScope=!0,s=!0)),s&&this._eventEmitter.emit(e._CHANGED_EVENT,r)},e}();o._CHANGED_EVENT="changed",t.FindReplaceState=o}),define(d[223],h([0,1,3]),function(e,t,n){"use strict";var i=function(){function e(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n}return e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){for(var i=[],o=0;o=o)break;var a=e.charCodeAt(n);if(36===a){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 u=a-48;if(n+1=o)break;var a=e.charCodeAt(n);switch(a){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()}var i=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?(this._staticValue=e[0].staticValue,this._pieces=null):(this._staticValue=null,this._pieces=e):(this._staticValue="",this._pieces=null)}return e.fromStaticValue=function(t){return new e([o.staticValue(t)])},Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return null===this._staticValue},enumerable:!0,configurable:!0}),e.prototype.buildReplaceString=function(t){if(null!==this._staticValue)return this._staticValue;for(var n="",i=0,o=this._pieces.length;i0;){if(e0){var u=r.modifyPosition(e.getStartPosition(),a);e=new i.Range(u.lineNumber,u.column,e.endLineNumber,e.endColumn),t=t.substring(a),s=s.substr(a)}var l=n.commonSuffixLength(t,s);if(l>0){var c=r.modifyPosition(e.getEndPosition(),-l);e=new i.Range(e.startLineNumber,e.startColumn,c.lineNumber,c.column),t=t.substring(0,t.length-l),s=s.substring(0,s.length-l)}return{text:t,range:e,forceMoveMarkers:o}},e}();t.EditOperationsCommand=o}),define(d[154],h([0,1,17,10]),function(e,t,n,i){"use strict";var o;!function(e){e[e.IDLE=0]="IDLE",e[e.FIRST_WAIT=1]="FIRST_WAIT",e[e.SECOND_WAIT=2]="SECOND_WAIT",e[e.WAITING_FOR_ASYNC_COMPUTATION=3]="WAITING_FOR_ASYNC_COMPUTATION"}(o||(o={}));var r=function(){function e(e,t,i,o){var r=this;this._computer=e,this._state=0,this._firstWaitScheduler=new n.RunOnceScheduler(function(){return r._triggerAsyncComputation()},this._getHoverTimeMillis()/2),this._secondWaitScheduler=new n.RunOnceScheduler(function(){return r._triggerSyncComputation()},this._getHoverTimeMillis()/2),this._loadingMessageScheduler=new n.RunOnceScheduler(function(){return r._showLoadingMessage()},3*this._getHoverTimeMillis()),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=i,this._progressCallback=o}return e.prototype.getComputer=function(){return this._computer},e.prototype._getHoverTimeMillis=function(){return this._computer.getHoverTimeMillis?this._computer.getHoverTimeMillis():e.HOVER_TIME},e.prototype._triggerAsyncComputation=function(){var e=this;this._state=2,this._secondWaitScheduler.schedule(),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=this._computer.computeAsync().then(function(t){e._asyncComputationPromiseDone=!0,e._withAsyncResult(t)},function(){return e._onError})):this._asyncComputationPromiseDone=!0},e.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},e.prototype._showLoadingMessage=function(){3===this._state&&this._onProgress(this._computer.getResultWithLoadingMessage())},e.prototype._withAsyncResult=function(e){e&&this._computer.onResult(e,!1),3===this._state&&(this._state=0,this._onComplete(this._computer.getResult()))},e.prototype._onComplete=function(e){this._completeCallback&&this._completeCallback(e)},e.prototype._onError=function(e){this._errorCallback?this._errorCallback(e):i.onUnexpectedError(e)},e.prototype._onProgress=function(e){this._progressCallback&&this._progressCallback(e)},e.prototype.start=function(){0===this._state&&(this._state=1,this._firstWaitScheduler.schedule(),this._loadingMessageScheduler.schedule())},e.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),1===this._state&&this._firstWaitScheduler.cancel(),2===this._state&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),3===this._state&&this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(), -this._asyncComputationPromise=null),this._state=0},e}();r.HOVER_TIME=300,t.HoverOperation=r}),define(d[155],h([0,1,11,15,21,37,60,4]),function(e,t,n,i,o,r,s,a){"use strict";var u=function(e){function t(t,n){var i=e.call(this)||this;return i.disposables=[],i.allowEditorOverflow=!0,i._id=t,i._editor=n,i._isVisible=!1,i._containerDomNode=document.createElement("div"),i._containerDomNode.className="monaco-editor-hover hidden",i._containerDomNode.tabIndex=0,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover-content",i.scrollbar=new s.DomScrollableElement(i._domNode,{canUseTranslate3d:!1}),i.disposables.push(i.scrollbar),i._containerDomNode.appendChild(i.scrollbar.getDomNode()),i.onkeydown(i._containerDomNode,function(e){e.equals(9)&&i.hide()}),i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont()})),i._editor.onDidLayoutChange(function(e){return i.updateMaxHeight()}),i.updateMaxHeight(),i._editor.addContentWidget(i),i._showAtPosition=null,i}return m(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,n.toggleClass(this._containerDomNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._containerDomNode},t.prototype.showAt=function(e,t){this._showAtPosition=new i.Position(e.lineNumber,e.column),this.isVisible=!0,this._editor.layoutContentWidget(this),this._editor.render(),this._stoleFocus=t,t&&this._containerDomNode.focus()},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1,this._editor.layoutContentWidget(this),this._stoleFocus&&this._editor.focus())},t.prototype.getPosition=function(){return this.isVisible?{position:this._showAtPosition,preference:[o.ContentWidgetPositionPreference.ABOVE,o.ContentWidgetPositionPreference.BELOW]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),this.disposables=a.dispose(this.disposables),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.concat(n).forEach(function(t){return e._editor.applyFontInfo(t)})},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont(),this._editor.layoutContentWidget(this),this.scrollbar.scanDomNode()},t.prototype.updateMaxHeight=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getConfiguration().fontInfo,n=t.fontSize,i=t.lineHeight;this._domNode.style.fontSize=n+"px",this._domNode.style.lineHeight=i+"px",this._domNode.style.maxHeight=e+"px"},t}(r.Widget);t.ContentHoverWidget=u;var l=function(e){function t(t,n){var i=e.call(this)||this;return i._id=t,i._editor=n,i._isVisible=!1,i._domNode=document.createElement("div"),i._domNode.className="monaco-editor-hover hidden",i._domNode.setAttribute("aria-hidden","true"),i._domNode.setAttribute("role","presentation"),i._showAtLineNumber=-1,i._register(i._editor.onDidChangeConfiguration(function(e){e.fontInfo&&i.updateFont()})),i._editor.addOverlayWidget(i),i}return m(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,n.toggleClass(this._domNode,"hidden",!this._isVisible)},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._domNode},t.prototype.showAt=function(e){this._showAtLineNumber=e,this.isVisible||(this.isVisible=!0);var t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(this._showAtLineNumber),i=this._editor.getScrollTop(),o=this._editor.getConfiguration().lineHeight,r=this._domNode.clientHeight,s=n-i-(r-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(s),0)+"px"},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.getPosition=function(){return null},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this,t=Array.prototype.slice.call(this._domNode.getElementsByTagName("code")),n=Array.prototype.slice.call(this._domNode.getElementsByClassName("code"));t.concat(n).forEach(function(t){return e._editor.applyFontInfo(t)})},t.prototype.updateContents=function(e){this._domNode.textContent="",this._domNode.appendChild(e),this.updateFont()},t}(r.Widget);t.GlyphHoverWidget=l}),define(d[230],h([0,1,20]),function(e,t,n){"use strict";var i=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var i=t.getInverseEditOperations(),o=i[0].range;return this._originalSelection.isEmpty()?new n.Selection(o.endLineNumber,Math.min(this._originalSelection.positionColumn,o.endColumn),o.endLineNumber,Math.min(this._originalSelection.positionColumn,o.endColumn)):new n.Selection(o.endLineNumber,o.endColumn-this._text.length,o.endLineNumber,o.endColumn)},e}();t.InPlaceReplaceCommand=i}),define(d[231],h([0,1,3,20]),function(e,t,n,i){"use strict";var o=function(){function e(e,t){this._selection=e,this._isCopyingDown=t}return e.prototype.getEditOperations=function(e,t){var i=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,i.startLineNumber1&&(i-=1,r=e.getLineMaxColumn(i)),t.addEditOperation(new n.Range(i,r,o,s),null)}},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations(),o=n[0].range;return new i.Selection(o.endLineNumber,this.restoreCursorToColumn,o.endLineNumber,this.restoreCursorToColumn)},e}();t.DeleteLinesCommand=o}),define(d[233],h([0,1,3,20]),function(e,t,n,i){"use strict";var o=function(){function e(e,t){this._selection=e,this._isMovingDown=t}return e.prototype.getEditOperations=function(e,t){var o=e.getLineCount();if((!this._isMovingDown||this._selection.endLineNumber!==o)&&(this._isMovingDown||1!==this._selection.startLineNumber)){this._moveEndPositionDown=!1;var r=this._selection;if(r.startLineNumber=o)return null;for(var r=[],s=i;s<=o;s++)r.push(e.getLineContent(s));var a=r.slice(0);return a.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),n===!0&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}function r(e,t,r){var s=o(e,t,r);return s?n.EditOperation.replace(new i.Range(s.startLineNumber,1,s.endLineNumber,e.getLineMaxColumn(s.endLineNumber)),s.after.join("\n")):null}var s=function(){function e(e,t){this.selection=e,this.descending=t}return e.prototype.getEditOperations=function(e,t){var n=r(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this.selectionId)},e.canRun=function(e,t,n){var i=o(e,t,n);if(!i)return!1;for(var r=0,s=i.before.length;rt.prefixLen?-1:e.prefixLent.offsetDist?1:0})[0];if(n)return this._references[n.idx]},e.prototype.dispose=function(){this._groups=r.dispose(this._groups)},e._compareReferences=function(e,t){return e.uri.toString()t.uri.toString()?1:l.Range.compareRangesUsingStarts(e.range,t.range)},e}();t.ReferencesModel=p}),define(d[237],h([0,1,3,78,74,38]),function(e,t,n,i,o,r){"use strict";function s(e){var t=new c;return t.start=e.range.getStartPosition(),t.end=e.range.getEndPosition(),t}function a(e){var t=new _(e).build();return t}function u(e,t){if(e instanceof d&&e.isEmpty)return null;if(!n.Range.containsPosition(e.range,t))return null;var i;if(e instanceof d){if(e.hasChildren)for(var o=0,r=e.children.length;o0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.hasChildren&&!this.parent},enumerable:!0,configurable:!0}),t.prototype.append=function(e){return!!e&&(e.parent=this,this.children||(this.children=[]),e instanceof t?e.children&&this.children.push.apply(this.children,e.children):this.children.push(e),!0)},t}(c);t.NodeList=d;var h=function(e){function t(){var t=e.call(this)||this;return t.elements=new d,t.elements.parent=t,t}return m(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.open.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.close.end},enumerable:!0,configurable:!0}),t}(c);t.Block=h;var p=function(){function e(e,t,n){this.range=e,this.bracket=t,this.bracketType=n}return e}(),f=function(){function e(e,t,n){this.lineNumber=t,this.lineText=n,this.startOffset=e.startOffset,this.endOffset=e.endOffset,this.type=e.tokenType,this.languageId=e.languageId}return e}(),g=function(){function e(e){this._model=e,this._lineCount=this._model.getLineCount(),this._versionId=this._model.getVersionId(),this._lineNumber=0,this._lineText=null,this._advance()}return e.prototype._advance=function(){for(this._next=this._next?this._next.next():null;!this._next&&this._lineNumber0)return this._nextBuff.shift();var e=this._rawTokenScanner.next();if(!e)return null;var t=e.lineNumber,s=e.lineText,a=e.type,u=e.startOffset,l=e.endOffset;this._cachedLanguageId!==e.languageId&&(this._cachedLanguageId=e.languageId,this._cachedLanguageBrackets=r.LanguageConfigurationRegistry.getBracketsSupport(this._cachedLanguageId));var c=this._cachedLanguageBrackets;if(!c||i.ignoreBracketsInToken(a))return new p(new n.Range(t,u+1,t,l+1),0,null);var d;do if(d=o.BracketsUtils.findNextBracketInToken(c.forwardRegex,t,s,u,l)){var h=d.startColumn-1,f=d.endColumn-1;u=48&&e<=57},e.isVariableCharacter=function(e){return 95===e||e>=97&&e<=122||e>=65&&e<=90},e.prototype.text=function(e){this.value=e,this.pos=0},e.prototype.tokenText=function(e){return this.value.substr(e.pos,e.len)},e.prototype.next=function(){if(this.pos>=this.value.length)return{type:n.EOF,pos:this.pos,len:0};var t,i=this.pos,o=0,r=this.value.charCodeAt(i);if(t=e._table[r],"number"==typeof t)return this.pos+=1,{type:t,pos:i,len:1};if(e.isDigitCharacter(r)){t=n.Int;do o+=1,r=this.value.charCodeAt(i+o);while(e.isDigitCharacter(r));return this.pos+=o,{type:t,pos:i,len:o}}if(e.isVariableCharacter(r)){t=n.VariableName;do r=this.value.charCodeAt(i+ ++o);while(e.isVariableCharacter(r)||e.isDigitCharacter(r));return this.pos+=o,{type:t,pos:i,len:o}}t=n.Format;do o+=1,r=this.value.charCodeAt(i+o);while(!isNaN(r)&&"undefined"==typeof e._table[r]&&!e.isDigitCharacter(r)&&!e.isVariableCharacter(r));return this.pos+=o,{type:t,pos:i,len:o}},e}();i._table=(l={},l[36]=n.Dollar,l[58]=n.Colon,l[123]=n.CurlyOpen,l[125]=n.CurlyClose,l[92]=n.Backslash,l),t.Scanner=i;var o=function(){function e(){}return e.toString=function(e){for(var t="",n=0,i=e;n0&&t(o.defaultValue,n)):o instanceof a?t(o.defaultValue,n):i>0&&o instanceof r&&e[i-1]instanceof r&&(e[i-1].string+=e[i].string,e.splice(i,1),i--)}}var n=[];for(this._scanner.text(e),this._token=this._scanner.next();this._parseAny(n)||this._parseText(n););return t(n,Object.create(null)),n},e.prototype._accept=function(e){if(void 0===e||this._token.type===e)return this._prevToken=this._token,this._token=this._scanner.next(),!0},e.prototype._return=function(e){this._prevToken=void 0,this._token=e,this._scanner.pos=e.pos+e.len},e.prototype._parseAny=function(e){return!!this._parseEscaped(e)||(!(!this._enableInternal||!this._parseInternal(e))||(!(!this._enableTextMate||!this._parseTM(e))||void 0))},e.prototype._parseText=function(e){if(this._token.type!==n.EOF)return e.push(new r(this._scanner.tokenText(this._token))),this._accept(void 0),!0},e.prototype._parseTM=function(e){if(this._accept(n.Dollar)){if(this._accept(n.VariableName)||this._accept(n.Int)){var t=this._scanner.tokenText(this._prevToken);return e.push(/^\d+$/.test(t)?new s(t,[]):new a(t,[])),!0}if(this._accept(n.CurlyOpen))for(var i=[],u=[],l=i;;)if(l!==u&&this._accept(n.Colon))l=u;else{if(this._accept(n.CurlyClose)){var t=o.toString(i);return e.push(/^\d+$/.test(t)?new s(t,u):new a(t,u)),!0}if(!this._parseAny(l)&&!this._parseText(l))return u.length>0?(e.push(new r("${"+o.toString(i)+":")),e.push.apply(e,u)):(e.push(new r("${")),e.push.apply(e,i)),!0}return e.push(new r("$")),!0}},e.prototype._parseInternal=function(e){if(this._accept(n.CurlyOpen)){if(!this._accept(n.CurlyOpen))return this._return(this._prevToken),!1;for(var t=[],i=[],a=t;;)if(this._accept(n.Colon))a=i;else{if(this._accept(n.CurlyClose)){if(!this._accept(n.CurlyClose)){this._return(this._prevToken);continue}return i!==a&&(i=t),e.push(new s(o.toString(t),i)),!0}if(!this._parseAny(a)&&!this._parseText(a))return i.length>0?(e.push(new r("{{"+o.toString(t)+":")),e.push.apply(e,i)):(e.push(new r("{{")),e.push.apply(e,t)),!0}}},e.prototype._parseEscaped=function(e){if(this._accept(n.Backslash))return this._enableInternal&&(this._accept(n.CurlyOpen)||this._accept(n.CurlyClose)||this._accept(n.Backslash))||this._enableTextMate&&(this._accept(n.Dollar)||this._accept(n.CurlyClose)||this._accept(n.Backslash)),e.push(new r(this._scanner.tokenText(this._prevToken))),!0},e}();t.SnippetParser=u;var l}),define(d[93],h([0,1,9,3,239]),function(e,t,n,i,o){"use strict";function r(e,t){for(var n=0,i="",o=0,r=e.length;o0&&/^}/.test(s)?(o+=1,--n,i+="}}"):/^\\./.test(s)?(o+=2,i+=/^\\\$/.test(s)?"$":s.substr(0,2)):(a=s.match(/^({|})/),Array.isArray(a)&&2===a.length?(o+=1,i+="\\"+a[1]):(o+=1,i+=s.charAt(0))))}}return i}function s(e,t){if(t)for(var n=e.slice();n.length>0;){var i=n.shift();if(i instanceof o.Variable){try{i.resolvedValue=t.resolve(i.name)}catch(e){}if(i.isDefined)continue}(i instanceof o.Variable||i instanceof o.Placeholder)&&n.unshift.apply(n,i.defaultValue)}}function a(e){return""===e.id&&""===e.value||"0"===e.id}function u(e,t){var n=Object.create(null),i=!1,r=t.slice();for(e.lines=[""];r.length>0;){var s=r.shift();if(s instanceof o.Text){var u=s.string.split(/\r\n|\n|\r/);e.lines[e.lines.length-1]+=u.shift(),(h=e.lines).push.apply(h,u)}else if(s instanceof o.Placeholder){var l=n[s.name];l||(n[s.name]=l={id:s.name,value:o.Marker.toString(s.defaultValue),occurences:[]},e.placeHolders.push(l)),i=i||a(l);var c=e.lines.length,d=e.lines[c-1].length+1;l.occurences.push({startLineNumber:c,startColumn:d,endLineNumber:c,endColumn:d+o.Marker.toString(s.defaultValue).length}),r.unshift.apply(r,s.defaultValue)}else s instanceof o.Variable&&(s.isDefined?s.resolvedValue?r.unshift(new o.Text(s.resolvedValue)):r.unshift.apply(r,s.defaultValue):r.unshift(new o.Placeholder(s.name,0===s.defaultValue.length?[new o.Text(s.name)]:s.defaultValue)));0!==r.length||i||r.push(new o.Placeholder("0",[]))}e.placeHolders.sort(function(e,t){var n=function(e){return!/^\d+$/.test(e.id)};return a(e)?1:a(t)?-1:n(e)&&n(t)?0:n(e)?-1:n(t)?1:e.id===t.id?0:Number(e.id)0&&(e.finishPlaceHolderIndex=e.placeHolders.length-1,e.placeHolders[e.finishPlaceHolderIndex].id="");var h}var l=function(){function e(){this.lines=[],this.placeHolders=[],this.finishPlaceHolderIndex=-1}return e.fromTextmate=function(t,n){var i=new o.SnippetParser(!0,!1).parse(t),r=new e;return s(i,n),u(r,i),r},e.fromInternal=function(t){var n=new o.SnippetParser(!1,!0).parse(t),i=new e;return u(i,n),i},e.none=function(t){var n=new e;return n.lines=t.split(/\r\n|\n|\r/),n},e.fromEmmet=function(e){return h.parse(e)},Object.defineProperty(e.prototype,"isInsertOnly",{get:function(){return 0===this.placeHolders.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSingleTabstopOnly",{get:function(){if(1!==this.placeHolders.length)return!1;var e=this.placeHolders[0];if(""!==e.value||1!==e.occurences.length)return!1;var t=e.occurences[0];return!!i.Range.isEmpty(t)},enumerable:!0,configurable:!0}),e.prototype.extractLineIndentation=function(e,t){void 0===t&&(t=Number.MAX_VALUE);var i=n.getLeadingWhitespace(e);return i.length>t-1?i.substring(0,t-1):i},e.prototype.bind=function(e,t,n,i){for(var o=[],r=[],s=this.extractLineIndentation(e,n+1),a=[],u=0,l=this.lines.length;u1||1===b?(w+=a[b],E+=a[S]):(w+=s.length,E+=s.length),v.push({startLineNumber:b+t,startColumn:w,endLineNumber:S+t,endColumn:E})}r.push({id:m.id,value:m.value,occurences:v})}return{lines:o,placeHolders:r,finishPlaceHolderIndex:this.finishPlaceHolderIndex}},e}();t.CodeSnippet=l;var c,d=new(function(){function e(){}return e.prototype.parse=function(e){return this._lastGeneratedId=0,this._snippet=new l,this.parseTemplate(e),this._snippet},e.prototype.parseTemplate=function(e){var t,n,o,r,s=Object.create(null),a=e.split("\n");for(t=0,n=a.length;t0&&""===this._snippet.placeHolders[this._snippet.placeHolders.length-1].value&&(this._snippet.finishPlaceHolderIndex=this._snippet.placeHolders.length-1)},e.prototype.parseLine=function(e,t){for(var n=[{placeHolderId:"",placeHolderText:""}],i=[],o=function(e){var n=t(e);if(n)return n;for(var o=0,r=i;o1&&/^}}/.test(u)){if(r+=2,0===n[n.length-1].placeHolderId.length&&(n[n.length-1].placeHolderId=n[n.length-1].placeHolderText,"_"===n[n.length-1].placeHolderId&&(n[n.length-1].placeHolderId="TAB_STOP_"+String(++this._lastGeneratedId),n[n.length-1].placeHolderText="",--a)),0===n[n.length-1].placeHolderText.length){var c=o(n[n.length-1].placeHolderId);n[n.length-1].placeHolderText=c,a+=c.length}i.push({id:n[n.length-1].placeHolderId,value:n[n.length-1].placeHolderText,startColumn:a+1-n[n.length-1].placeHolderText.length,endColumn:a+1}),n[n.length-2].placeHolderText+=n[n.length-1].placeHolderText,n.pop()}else/^\\./.test(u)&&("{"===u.charAt(1)||"}"===u.charAt(1)||"\\"===u.charAt(1)?++r:(n[n.length-1].placeHolderText+=e.charAt(r),++a,++r)),n[n.length-1].placeHolderText+=e.charAt(r),++a,++r}return i.sort(function(e,t){return e.startColumnt.startColumn?1:e.endColumnt.endColumn?1:0}),{line:n[0].placeHolderText,placeHolders:i}},e}()),h=new(function(){function e(){}return e.prototype.parse=function(e){return e=r(e,c.EmmetSnippet),d.parse(e)},e}());!function(e){e[e.TextMateSnippet=0]="TextMateSnippet",e[e.EmmetSnippet=1]="EmmetSnippet"}(c=t.ExternalSnippetType||(t.ExternalSnippetType={}))}),define(d[241],h([0,1,39]),function(e,t,n){"use strict";var i=function(){function e(e){this._editor=e}return e.prototype.resolve=function(e){var t=this._editor.getModel();if(!t)throw new Error;switch(e){case"SELECTION":case"TM_SELECTED_TEXT":return this._tmSelectedText();case"TM_CURRENT_LINE":return this._tmCurrentLine();case"TM_CURRENT_WORD":return this._tmCurrentWord();case"TM_LINE_INDEX":return this._tmLineIndex();case"TM_LINE_NUMBER":return this._tmLineNumber();case"TM_FILENAME":return this._tmFilename();case"TM_DIRECTORY":return this._tmDirectory();case"TM_FILEPATH":return this._tmFilepath()}},e.prototype._tmCurrentLine=function(){var e=this._editor.getSelection().positionLineNumber;return this._editor.getModel().getValueInRange({startLineNumber:e,startColumn:1,endLineNumber:e,endColumn:Number.MAX_VALUE})},e.prototype._tmCurrentWord=function(){var e=this._editor.getModel().getWordAtPosition(this._editor.getPosition());return e?e.word:""},e.prototype._tmFilename=function(){return n.basename(this._editor.getModel().uri.fsPath)},e.prototype._tmDirectory=function(){var e=n.dirname(n.normalize(this._editor.getModel().uri.fsPath));return"."!==e?e:""},e.prototype._tmFilepath=function(){return this._editor.getModel().uri.fsPath},e.prototype._tmLineIndex=function(){return String(this._editor.getSelection().positionLineNumber-1)},e.prototype._tmLineNumber=function(){return String(this._editor.getSelection().positionLineNumber)},e.prototype._tmSelectedText=function(){return this._editor.getModel().getValueInRange(this._editor.getSelection())},e}();t.SnippetVariablesResolver=i}),define(d[242],h([0,1,26,9,87]),function(e,t,n,i,o){"use strict";var r=function(){function e(){}return e}();t.LineContext=r;var s=function(){function e(e,t,n){this._items=e,this._column=t,this._lineContext=n}return Object.defineProperty(e.prototype,"lineContext",{get:function(){return this._lineContext},set:function(e){this._lineContext.leadingLineContent===e.leadingLineContent&&this._lineContext.characterCountDelta===e.characterCountDelta||(this._lineContext=e,this._filteredItems=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this._ensureCachedState(),this._filteredItems},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topScoreIdx",{get:function(){return this._ensureCachedState(),this._topScoreIdx},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"incomplete",{get:function(){return this._ensureCachedState(),this._isIncomplete},enumerable:!0,configurable:!0}),e.prototype.resolveIncompleteInfo=function(){for(var e=[],t=[],n=0,i=this._items;na&&(a=v,this._topScoreIdx=this._filteredItems.length-1),this._stats.suggestionCount++,d.type){case"snippet":this._stats.snippetCount++;break;case"text":this._stats.textCount++}}}},e._scoreByHighlight=function(t,o){var r=t.highlights,s=t.suggestion;if(n.isFalsyOrEmpty(r))return 0;for(var a=0,u=0,l=0,c=Math.min(e._base,s.label.length),d=0,h=0,p=0;h=0)do s.label[h]===o[d]?a+=1:u+=1,h+=1,d+=1;while(h=r.length)break}}return Math.pow(e._base,3)*a+Math.pow(e._base,2)*u+Math.pow(e._base,1)*(e._base-l)+Math.pow(e._base,0)*(e._base-r.length)},e}();s._base=100,t.CompletionModel=s}),define(d[161],h([0,1,4,37,35,11,98,3,425]),function(e,t,n,i,o,r,s,a){"use strict";var u={showArrow:!0,showFrame:!0,frameColor:"",className:""},l="vs.editor.contrib.zoneWidget",c=function(){function e(e,t,n,i,o,r){this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=i,this._onDomNodeTop=o,this._onComputedHeight=r}return e.prototype.onDomNodeTop=function(e){this._onDomNodeTop(e)},e.prototype.onComputedHeight=function(e){this._onComputedHeight(e)},e}();t.ViewZoneDelegate=c;var d=function(){function e(e,t){this._id=e,this._domNode=t}return e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return null},e}();t.OverlayWidgetDelegate=d;var h=function(e){function t(t,i){void 0===i&&(i={});var r=e.call(this)||this;return r._overlayWidget=null,r._positionMarkerId=[],r._viewZone=null,r._disposables=new n.Disposables,r.container=null,r.editor=t,r.options=o.mixin(o.clone(u),i),r.domNode=document.createElement("div"),r.options.isAccessible||(r.domNode.setAttribute("aria-hidden","true"),r.domNode.setAttribute("role","presentation")),r._disposables.add(r.editor.onDidLayoutChange(function(e){var t=r._getWidth(e);r.domNode.style.width=t+"px",r._onWidth(t)})),r}return m(t,e),t.prototype.dispose=function(){var e=this;this._disposables.dispose(),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(function(t){t.removeZone(e._viewZone.id),e._viewZone=null}),this.editor.deltaDecorations(this._positionMarkerId,[])},t.prototype.create=function(){r.addClass(this.domNode,"zone-widget"),r.addClass(this.domNode,this.options.className),this.container=document.createElement("div"),r.addClass(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this._fillContainer(this.container),this._initSash()},t.prototype._getWidth=function(e){return void 0===e&&(e=this.editor.getLayoutInfo()),e.width-e.verticalScrollbarWidth},t.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},t.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px",this._doLayout(t,this._getWidth()),this._resizeSash.layout()},Object.defineProperty(t.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e)return this.editor.getModel().getDecorationRange(e).getStartPosition()},enumerable:!0,configurable:!0}),t.prototype.show=function(e,t){var n=a.Range.isIRange(e)?e:new a.Range(e.lineNumber,e.column,e.lineNumber,e.column);this._showImpl(n,t),this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:{}}])},t.prototype.hide=function(){var e=this;this._viewZone&&(this.editor.changeViewZones(function(t){t.removeZone(e._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null)},t.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;if(this.options.showArrow){var n=Math.round(e/3);t+=2*n}if(this.options.showFrame){var i=Math.round(e/9);t+=2*i}return t},t.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this._getWidth();this.domNode.style.width=o+"px",this.editor.revealPosition(i);var r=document.createElement("div"),s=document.createElement("div"),a=this.editor.getConfiguration().lineHeight,u=0,h=0;if(this.options.showArrow&&(u=Math.round(a/3),s=document.createElement("div"),s.className="zone-widget-arrow below",s.style.top=-u+"px",s.style.borderWidth=u+"px",s.style.left=this.editor.getOffsetForColumn(i.lineNumber,i.column)+"px",s.style.borderBottomColor=this.options.frameColor,r.appendChild(s)),this.options.showFrame&&(h=Math.round(a/9)),this.editor.changeViewZones(function(e){n._viewZone&&e.removeZone(n._viewZone.id),n._overlayWidget&&(n.editor.removeOverlayWidget(n._overlayWidget),n._overlayWidget=null),n.domNode.style.top="-1000px",n._viewZone=new c(r,i.lineNumber,i.column,t,function(e){return n._onViewZoneTop(e)},function(e){return n._onViewZoneHeight(e)}),n._viewZone.id=e.addZone(n._viewZone),n._overlayWidget=new d(l+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.options.showFrame){var p=this.options.frameWidth?this.options.frameWidth:h;this.container.style.borderTopColor=this.options.frameColor,this.container.style.borderBottomColor=this.options.frameColor,this.container.style.borderTopWidth=p+"px",this.container.style.borderBottomWidth=p+"px"}var f=t*a-this._decoratingElementsHeight();this.container.style.top=u+"px",this.container.style.height=f+"px",this.container.style.overflow="hidden",this._doLayout(f,o),this.editor.setSelection(e);var g=Math.min(this.editor.getModel().getLineCount(),Math.max(1,e.endLineNumber+1));this.editor.revealLine(g)},t.prototype._onWidth=function(e){},t.prototype._doLayout=function(e,t){},t.prototype._relayout=function(e){var t=this;this._viewZone.heightInLines!==e&&this.editor.changeViewZones(function(n){t._viewZone.heightInLines=e,n.layoutZone(t._viewZone.id)})},t.prototype._initSash=function(){var e=this;this._resizeSash=new s.Sash(this.domNode,this,{orientation:s.Orientation.HORIZONTAL}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.disable());var t;this._disposables.add(this._resizeSash.addListener2("start",function(n){e._viewZone&&(t={startY:n.startY,heightInLines:e._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.addListener2("end",function(){t=void 0})),this._disposables.add(this._resizeSash.addListener2("change",function(n){if(t){var i=(n.currentY-t.startY)/e.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=t.heightInLines+o;r>5&&r<35&&e._relayout(r)}}))},t.prototype.getHorizontalSashLeft=function(){return 0},t.prototype.getHorizontalSashTop=function(){return parseInt(this.domNode.style.height)-this._decoratingElementsHeight()/2},t.prototype.getHorizontalSashWidth=function(){return this.editor.getLayoutInfo().width},t}(i.Widget);t.ZoneWidget=h}),define(d[244],h([8,7]),function(e,t){return e.create("vs/base/browser/ui/actionbar/actionbar",t)}),define(d[71],h([0,1,244,4,34,274,18,49,11,67,22,25,59,53,198]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";var f=function(e){function t(t,n,i){var o=e.call(this)||this;return o.options=i,o._callOnDispose=[],o._context=t||o,o._action=n,n instanceof a.Action&&o._callOnDispose.push(n.onDidChange(function(e){o.builder&&o._handleActionChangeEvent(e)})),o}return m(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,"callOnDispose",{get:function(){return this._callOnDispose},enumerable:!0,configurable:!0}),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.builder=o.$(e),this.gesture=new h.Gesture(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this.builder.on(h.EventType.Tap,function(e){return t.onClick(e)}),s.isMacintosh&&this.builder.on(u.EventType.CONTEXT_MENU,function(e){return t.onClick(e)}),this.builder.on(u.EventType.MOUSE_DOWN,function(e){n||u.EventHelper.stop(e),t._action.enabled&&t.builder.addClass("active")}),this.builder.on(u.EventType.CLICK,function(e){u.EventHelper.stop(e,!0),setTimeout(function(){return t.onClick(e)},50)}),this.builder.on([u.EventType.MOUSE_UP,u.EventType.MOUSE_OUT],function(e){u.EventHelper.stop(e),t.builder.removeClass("active")})},t.prototype.onClick=function(e){u.EventHelper.stop(e,!0);var t;c.isUndefinedOrNull(this._context)?t=e:(t=this._context,t.event=e),this._actionRunner.run(this._action,t)},t.prototype.focus=function(){this.builder&&this.builder.domFocus()},t.prototype.blur=function(){this.builder&&this.builder.domBlur()},t.prototype._updateEnabled=function(){},t.prototype._updateLabel=function(){},t.prototype._updateTooltip=function(){},t.prototype._updateClass=function(){},t.prototype._updateChecked=function(){},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.builder&&(this.builder.destroy(),this.builder=null),this.gesture&&(this.gesture.dispose(),this.gesture=null),this._callOnDispose=i.dispose(this._callOnDispose)},t}(d.EventEmitter);t.BaseActionItem=f;var g=function(e){function t(n,i){var o=e.call(this,t.ID,n,n?"separator text":"separator")||this;return o.checked=!1,o.radio=!1,o.enabled=!1,o.order=i,o}return m(t,e),t}(a.Action);g.ID="vs.actions.separator",t.Separator=g;var v=function(e){function t(t,n,i){void 0===i&&(i={});var o=e.call(this,t,n,i)||this;return o.options=i,o.options.icon=void 0!==i.icon&&i.icon,o.options.label=void 0===i.label||i.label,o.cssClass="",o}return m(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.$e=o.$("a.action-label").appendTo(this.builder),this.$e.attr({role:"button"}),this.options.label&&this.options.keybinding&&o.$("span.keybinding").text(this.options.keybinding).appendTo(this.builder),this._updateClass(),this._updateLabel(),this._updateTooltip(),this._updateEnabled(),this._updateChecked()},t.prototype.focus=function(){e.prototype.focus.call(this),this.$e.domFocus()},t.prototype._updateLabel=function(){this.options.label&&this.$e.text(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=n.localize(0,null,e,this.options.keybinding))),e&&this.$e.attr({title:e})},t.prototype._updateClass=function(){this.cssClass&&this.$e.removeClass(this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.$e.addClass("icon"),this.cssClass&&this.$e.addClass(this.cssClass),this._updateEnabled()):this.$e.removeClass("icon")},t.prototype._updateEnabled=function(){this.getAction().enabled?(this.builder.removeClass("disabled"),this.$e.removeClass("disabled"),this.$e.attr({tabindex:0})):(this.builder.addClass("disabled"),this.$e.addClass("disabled"),u.removeTabIndexAndUpdateFocus(this.$e.getHTMLElement()))},t.prototype._updateChecked=function(){this.getAction().checked?this.$e.addClass("checked"):this.$e.removeClass("checked")},t.prototype._updateRadio=function(){this.getAction().radio?this.$e.addClass("radio"):this.$e.removeClass("radio")},t}(f);t.ActionItem=v;var _;!function(e){e[e.HORIZONTAL=1]="HORIZONTAL",e[e.VERTICAL=2]="VERTICAL"}(_=t.ActionsOrientation||(t.ActionsOrientation={}));var y={orientation:_.HORIZONTAL,context:null},C=function(e){function t(t,n){void 0===n&&(n=y);var i=e.call(this)||this;i.options=n,i._context=n.context,i.toDispose=[],i._actionRunner=i.options.actionRunner,i._actionRunner||(i._actionRunner=new a.ActionRunner,i.toDispose.push(i._actionRunner)),i.toDispose.push(i.addEmitter2(i._actionRunner)),i.items=[],i.focusedItem=void 0,i.domNode=document.createElement("div"),i.domNode.className="monaco-action-bar",n.animated!==!1&&u.addClass(i.domNode,"animated");var r=i.options.orientation===_.VERTICAL;return r&&(i.domNode.className+=" vertical"),o.$(i.domNode).on(u.EventType.KEY_DOWN,function(e){var t=new p.StandardKeyboardEvent(e),n=!0;t.equals(r?16:15)?i.focusPrevious():t.equals(r?18:17)?i.focusNext():t.equals(9)?i.cancel():t.equals(3)||t.equals(10)||(n=!1),n&&(t.preventDefault(),t.stopPropagation())}),o.$(i.domNode).on(u.EventType.CONTEXT_MENU,function(e){e.preventDefault(),e.stopPropagation()}),o.$(i.domNode).on(u.EventType.KEY_UP,function(e){var t=new p.StandardKeyboardEvent(e);t.equals(3)||t.equals(10)?(i.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&i.updateFocusedItem()}),i.focusTracker=u.trackFocus(i.domNode),i.focusTracker.addBlurListener(function(){document.activeElement!==i.domNode&&u.isAncestor(document.activeElement,i.domNode)||(i.emit(u.EventType.BLUR,{}),i.focusedItem=void 0)}),i.focusTracker.addFocusListener(function(){return i.updateFocusedItem()}),i.actionsList=document.createElement("ul"),i.actionsList.className="actions-container",i.actionsList.setAttribute("role","toolbar"),i.options.ariaLabel&&i.actionsList.setAttribute("aria-label",i.options.ariaLabel),i.domNode.appendChild(i.actionsList),(t instanceof o.Builder?t.getHTMLElement():t).appendChild(i.domNode),i}return m(t,e),t.prototype.setAriaLabel=function(e){e?this.actionsList.setAttribute("aria-label",e):this.actionsList.removeAttribute("aria-label")},t.prototype.updateFocusedItem=function(){for(var e=0;e=n.actionsList.children.length?n.actionsList.appendChild(i):n.actionsList.insertBefore(i,n.actionsList.children[o++]),n.items.push(r)})},t.prototype.pull=function(e){e>=0&&e=0){var n=void 0;e.equals(17)?n=(t+1)%s.length:e.equals(15)&&(n=0===t?s.length-1:t-1),e.equals(9)?s[t].blur():n>=0&&s[n].focus(),i.EventHelper.stop(e,!0)}}}),this.setInputWidth();var u=document.createElement("div");u.className="controls",u.appendChild(this.caseSensitive.domNode),u.appendChild(this.wholeWords.domNode),u.appendChild(this.regex.domNode),this.domNode.appendChild(u)},t.prototype.validate=function(){this.inputBox.validate()},t.prototype.showMessage=function(e){this.inputBox.showMessage(e)},t.prototype.clearMessage=function(){this.inputBox.hideMessage()},t.prototype.clearValidation=function(){this.inputBox.hideMessage()},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t}(r.Widget);l.OPTION_CHANGE="optionChange",t.FindInput=l}),define(d[257],h([8,7]),function(e,t){return e.create("vs/base/common/json",t)}),define(d[178],h([0,1,257]),function(e,t,n){"use strict";function i(e,t){function n(t,n){for(var i=0,o=0;i=48&&r<=57)o=16*o+r-48;else if(r>=65&&r<=70)o=16*o+r-65+10;else{if(!(r>=97&&r<=102))break;o=16*o+r-97+10}h++,i++}return i=p){t+=e.substring(i,h),y=m.UnexpectedEndOfString;break}var o=e.charCodeAt(h);if(34===o){t+=e.substring(i,h),h++;break}if(92!==o){if(r(o)){t+=e.substring(i,h),y=m.UnexpectedEndOfString;break}h++}else{if(t+=e.substring(i,h),h++,h>=p){y=m.UnexpectedEndOfString;break}switch(o=e.charCodeAt(h++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var s=n(4,!0);s>=0?t+=String.fromCharCode(s):y=m.InvalidUnicode;break;default:y=m.InvalidEscapeCharacter}i=h}}return t}function l(){if(f="",y=m.None,g=h,h>=p)return g=p,_=v.EOF;var t=e.charCodeAt(h);if(o(t)){do h++,f+=String.fromCharCode(t),t=e.charCodeAt(h);while(o(t));return _=v.Trivia}if(r(t))return h++,f+=String.fromCharCode(t),13===t&&10===e.charCodeAt(h)&&(h++,f+="\n"),_=v.LineBreakTrivia;switch(t){case 123:return h++,_=v.OpenBraceToken;case 125:return h++,_=v.CloseBraceToken;case 91:return h++,_=v.OpenBracketToken;case 93:return h++,_=v.CloseBracketToken;case 58:return h++,_=v.ColonToken;case 44:return h++,_=v.CommaToken;case 34:return h++,f=u(),_=v.StringLiteral;case 47:var n=h-1;if(47===e.charCodeAt(h+1)){for(h+=2;h=v.LineCommentTrivia&&e<=v.Trivia);return e}void 0===t&&(t=!1);var h=0,p=e.length,f="",g=0,_=v.Unknown,y=m.None;return{setPosition:i,getPosition:function(){return h},scan:t?d:l,getToken:function(){return _},getTokenValue:function(){return f},getTokenOffset:function(){return g},getTokenLength:function(){return h-g},getTokenError:function(){return y}}}function o(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function r(e){return 10===e||13===e||8232===e||8233===e}function s(e){return e>=48&&e<=57}function a(e,t){var n,o,r=i(e),s=[],a=0;do switch(o=r.getPosition(),n=r.scan()){case v.LineCommentTrivia:case v.BlockCommentTrivia:case v.EOF:a!==o&&s.push(e.substring(a,o)),void 0!==t&&s.push(r.getTokenValue().replace(/[^\r\n]/g,t)),a=r.getPosition()}while(n!==v.EOF);return s.join("")}function u(e){switch(e){case y.InvalidSymbol:return n.localize(0,null);case y.InvalidNumberFormat:return n.localize(1,null);case y.PropertyNameExpected:return n.localize(2,null);case y.ValueExpected:return n.localize(3,null);case y.ColonExpected:return n.localize(4,null);case y.CommaExpected:return n.localize(5,null);case y.CloseBraceExpected:return n.localize(6,null);case y.CloseBracketExpected:return n.localize(7,null);case y.EndOfFileExpected:return n.localize(8,null);default:return""}}function l(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}function c(e,t){function n(e,t,n,i){s.value=e,s.offset=t,s.length=n,s.type=i,s.columnOffset=void 0,r=s}var i=[],o=new Object,r=void 0,s={value:void 0,offset:void 0,length:void 0,type:void 0},a=!1;try{g(e,{onObjectBegin:function(e,n){if(t<=e)throw o;r=void 0,a=t>e,i.push("")},onObjectProperty:function(e,r,s){if(t=n.children.length)return;n=n.children[c]}}return n}}function f(e){if("array"===e.type)return e.children.map(f);if("object"===e.type){for(var t={},n=0,i=e.children;n0)for(var i=f.getToken();i!==v.EOF;){if(t.indexOf(i)!==-1){s();break}if(n.indexOf(i)!==-1)break;i=s()}}function u(e){var t=f.getTokenValue();return e?w(t):m(t),s(),!0}function l(){switch(f.getToken()){case v.NumericLiteral:var e=0;try{e=JSON.parse(f.getTokenValue()),"number"!=typeof e&&(a(y.InvalidNumberFormat),e=0)}catch(e){a(y.InvalidNumberFormat)}w(e);break;case v.NullKeyword:w(null);break;case v.TrueKeyword:w(!0);break;case v.FalseKeyword:w(!1);break;default:return!1}return s(),!0}function c(){return f.getToken()!==v.StringLiteral?(a(y.PropertyNameExpected,[],[v.CloseBraceToken,v.CommaToken]),!1):(u(!1),f.getToken()===v.ColonToken?(S(":"),s(),p()||a(y.ValueExpected,[],[v.CloseBraceToken,v.CommaToken])):a(y.ColonExpected,[],[v.CloseBraceToken,v.CommaToken]),!0)}function d(){g(),s();for(var e=!1;f.getToken()!==v.CloseBraceToken&&f.getToken()!==v.EOF;)f.getToken()===v.CommaToken?(e||a(y.ValueExpected,[],[]),S(","),s()):e&&a(y.CommaExpected,[],[]),c()||a(y.ValueExpected,[],[v.CloseBraceToken,v.CommaToken]),e=!0;return _(),f.getToken()!==v.CloseBraceToken?a(y.CloseBraceExpected,[v.CloseBraceToken],[]):s(),!0}function h(){C(),s();for(var e=!1;f.getToken()!==v.CloseBracketToken&&f.getToken()!==v.EOF;)f.getToken()===v.CommaToken?(e||a(y.ValueExpected,[],[]),S(","),s()):e&&a(y.CommaExpected,[],[]),p()||a(y.ValueExpected,[],[v.CloseBracketToken,v.CommaToken]),e=!0;return b(),f.getToken()!==v.CloseBracketToken?a(y.CloseBracketExpected,[v.CloseBracketToken],[]):s(),!0}function p(){switch(f.getToken()){case v.OpenBracketToken:return h();case v.OpenBraceToken:return d();case v.StringLiteral:return u(!0);default:return l()}}var f=i(e,!1),g=o(t.onObjectBegin),m=r(t.onObjectProperty),_=o(t.onObjectEnd),C=o(t.onArrayBegin),b=o(t.onArrayEnd),w=r(t.onLiteralValue),S=r(t.onSeparator),E=r(t.onError),L=n&&n.disallowComments;return s(),f.getToken()===v.EOF||(p()?(f.getToken()!==v.EOF&&a(y.EndOfFileExpected,[],[]),!0):(a(y.ValueExpected,[],[]),!1))}var m;!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter"}(m=t.ScanError||(t.ScanError={}));var v;!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.EOF=16]="EOF"}(v=t.SyntaxKind||(t.SyntaxKind={})),t.createScanner=i;var _;!function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(_||(_={})),t.stripComments=a;var y;!function(e){e[e.InvalidSymbol=0]="InvalidSymbol",e[e.InvalidNumberFormat=1]="InvalidNumberFormat",e[e.PropertyNameExpected=2]="PropertyNameExpected",e[e.ValueExpected=3]="ValueExpected",e[e.ColonExpected=4]="ColonExpected",e[e.CommaExpected=5]="CommaExpected",e[e.CloseBraceExpected=6]="CloseBraceExpected",e[e.CloseBracketExpected=7]="CloseBracketExpected",e[e.EndOfFileExpected=8]="EndOfFileExpected"}(y=t.ParseErrorCode||(t.ParseErrorCode={})),t.getParseErrorMessage=u,t.getLocation=c,t.parse=d,t.parseTree=h,t.findNodeAtLocation=p,t.getNodeValue=f,t.visit=g}),define(d[259],h([8,7]),function(e,t){return e.create("vs/base/common/keybinding",t)}),define(d[137],h([0,1,259,18,31]),function(e,t,n,i,o){"use strict";function r(e,t,n){var i=[],s=o.BinaryKeybindings.hasCtrlCmd(e),a=o.BinaryKeybindings.hasShift(e),u=o.BinaryKeybindings.hasAlt(e),l=o.BinaryKeybindings.hasWinCtrl(e),c=o.BinaryKeybindings.extractKeyCode(e),d=t.getLabelForKey(c);if(!d)return"";(s&&!n.isMacintosh||l&&n.isMacintosh)&&i.push(t.ctrlKeyLabel),a&&i.push(t.shiftKeyLabel),u&&i.push(t.altKeyLabel),s&&n.isMacintosh&&i.push(t.cmdKeyLabel),l&&!n.isMacintosh&&i.push(t.windowsKeyLabel),i.push(d);var h=i.join(t.modifierSeparator);return o.BinaryKeybindings.hasChord(e)?h+" "+r(o.BinaryKeybindings.extractChordPart(e),t,n):h}function s(e,t){e.length>0&&e.push({tagName:"span",text:"+"}),e.push({tagName:"span",className:"monaco-kbkey",text:t})}function a(e,t,n,i){void 0===i&&(i=!1);var r=[],u=o.BinaryKeybindings.hasCtrlCmd(e),l=o.BinaryKeybindings.hasShift(e),c=o.BinaryKeybindings.hasAlt(e),d=o.BinaryKeybindings.hasWinCtrl(e),h=o.BinaryKeybindings.extractKeyCode(e),p=t.getLabelForKey(h);if(!p)return[];(u&&!n.isMacintosh||d&&n.isMacintosh)&&s(r,t.ctrlKeyLabel),l&&s(r,t.shiftKeyLabel),c&&s(r,t.altKeyLabel),u&&n.isMacintosh&&s(r,t.cmdKeyLabel),d&&!n.isMacintosh&&s(r,t.windowsKeyLabel),s(r,p);var f=null;return o.BinaryKeybindings.hasChord(e)&&(f=a(o.BinaryKeybindings.extractChordPart(e),t,n,!0),r.push({tagName:"span",text:" "}),r=r.concat(f)),i?r:[{tagName:"span",className:"monaco-kb",children:r}]}var u=function(){function e(){}return e.getUserSettingsKeybindingRegex=function(){if(!this._cachedKeybindingRegex){var e="numpad(0|1|2|3|4|5|6|7|8|9|_multiply|_add|_subtract|_decimal|_divide|_separator)",t="`|\\-|=|\\[|\\]|\\\\\\\\|;|'|,|\\.|\\/|oem_8|oem_102",n="left|up|right|down|pageup|pagedown|end|home|tab|enter|escape|space|backspace|delete|pausebreak|capslock|insert|contextmenu|numlock|scrolllock",i="[a-z]|[0-9]|f(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19)",o="(("+[e,t,n,i].join(")|(")+"))",r="((ctrl|shift|alt|cmd|win|meta)\\+)*",s="("+r+o+")";this._cachedKeybindingRegex='"\\s*('+s+"(\\s+"+s+')?)\\s*"'}return this._cachedKeybindingRegex},e.toUserSettingsLabel=function(e,t){void 0===t&&(t=i);var n=r(e,p.INSTANCE,t);return n=n.toLowerCase(),t.isMacintosh?n=n.replace(/meta/g,"cmd"):t.isWindows&&(n=n.replace(/meta/g,"win")),n},e.fromUserSettingsLabel=function(t,n){if(void 0===n&&(n=i),!t)return null;t=t.toLowerCase().trim();for(var r=!1,s=!1,a=!1,u=!1,l="";/^(ctrl|shift|alt|meta|win|cmd)(\+|\-)/.test(t);)/^ctrl(\+|\-)/.test(t)&&(n.isMacintosh?u=!0:r=!0,t=t.substr("ctrl-".length)),/^shift(\+|\-)/.test(t)&&(s=!0,t=t.substr("shift-".length)),/^alt(\+|\-)/.test(t)&&(a=!0,t=t.substr("alt-".length)),/^meta(\+|\-)/.test(t)&&(n.isMacintosh?r=!0:u=!0,t=t.substr("meta-".length)),/^win(\+|\-)/.test(t)&&(n.isMacintosh?r=!0:u=!0,t=t.substr("win-".length)),/^cmd(\+|\-)/.test(t)&&(n.isMacintosh?r=!0:u=!0,t=t.substr("cmd-".length));var c=0,d=t.indexOf(" ");d>0?(l=t.substring(0,d),c=e.fromUserSettingsLabel(t.substring(d),n)):l=t;var h=o.USER_SETTINGS.toKeyCode(l),p=0;return r&&(p|=2048),s&&(p|=1024),a&&(p|=512),u&&(p|=256),p|=h,o.KeyChord(p,c)},e._toUSLabel=function(e,t){return void 0===t&&(t=i),r(e.value,t.isMacintosh?c.INSTANCE:h.INSTANCE,t)},e._toUSAriaLabel=function(e,t){return void 0===t&&(t=i),r(e.value,d.INSTANCE,t)},e._toUSHTMLLabel=function(e,t){return void 0===t&&(t=i),a(e.value,t.isMacintosh?c.INSTANCE:h.INSTANCE,t)},e.toCustomLabel=function(e,t,n){return void 0===n&&(n=i),r(e.value,t,n)},e.toCustomHTMLLabel=function(e,t,n){return void 0===n&&(n=i),a(e.value,t,n)},e._toElectronAccelerator=function(e,t){if(void 0===t&&(t=i),o.BinaryKeybindings.hasChord(e.value))return null;var n=o.BinaryKeybindings.extractKeyCode(e.value);return n>=93&&n<=108?null:r(e.value,l.INSTANCE,t)},e}();u._cachedKeybindingRegex=null,t.KeybindingLabels=u;var l=function(){function e(){this.ctrlKeyLabel="Ctrl",this.shiftKeyLabel="Shift",this.altKeyLabel="Alt",this.cmdKeyLabel="Cmd",this.windowsKeyLabel="Super",this.modifierSeparator="+"}return e.prototype.getLabelForKey=function(e){switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return o.KeyCodeUtils.toString(e)},e}();l.INSTANCE=new l,t.ElectronAcceleratorLabelProvider=l;var c=function(){function e(){this.ctrlKeyLabel="⌃",this.shiftKeyLabel="⇧",this.altKeyLabel="⌥",this.cmdKeyLabel="⌘",this.windowsKeyLabel=n.localize(0,null),this.modifierSeparator=""}return e.prototype.getLabelForKey=function(t){switch(t){case 15:return e.leftArrowUnicodeLabel;case 16:return e.upArrowUnicodeLabel;case 17:return e.rightArrowUnicodeLabel;case 18:return e.downArrowUnicodeLabel}return o.KeyCodeUtils.toString(t)},e}();c.INSTANCE=new c,c.leftArrowUnicodeLabel=String.fromCharCode(8592),c.upArrowUnicodeLabel=String.fromCharCode(8593),c.rightArrowUnicodeLabel=String.fromCharCode(8594),c.downArrowUnicodeLabel=String.fromCharCode(8595),t.MacUIKeyLabelProvider=c;var d=function(){function e(){this.ctrlKeyLabel=n.localize(1,null),this.shiftKeyLabel=n.localize(2,null),this.altKeyLabel=n.localize(3,null),this.cmdKeyLabel=n.localize(4,null),this.windowsKeyLabel=n.localize(5,null),this.modifierSeparator="+"}return e.prototype.getLabelForKey=function(e){return o.KeyCodeUtils.toString(e)},e}();d.INSTANCE=new c,t.AriaKeyLabelProvider=d;var h=function(){function e(){this.ctrlKeyLabel=n.localize(6,null),this.shiftKeyLabel=n.localize(7,null),this.altKeyLabel=n.localize(8,null),this.cmdKeyLabel=n.localize(9,null),this.windowsKeyLabel=n.localize(10,null),this.modifierSeparator="+"}return e.prototype.getLabelForKey=function(e){return o.KeyCodeUtils.toString(e)},e}();h.INSTANCE=new h,t.ClassicUIKeyLabelProvider=h;var p=function(){function e(){this.ctrlKeyLabel="Ctrl",this.shiftKeyLabel="Shift",this.altKeyLabel="Alt",this.cmdKeyLabel="Meta",this.windowsKeyLabel="Meta",this.modifierSeparator="+"}return e.prototype.getLabelForKey=function(e){return o.USER_SETTINGS.fromKeyCode(e)},e}();p.INSTANCE=new p}),define(d[261],h([8,7]),function(e,t){return e.create("vs/base/common/severity",t)}),define(d[30],h([0,1,261,9]),function(e,t,n,i){"use strict";var o;!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(o||(o={})),function(e){function t(t){return t?i.equalsIgnoreCase(s,t)?e.Error:i.equalsIgnoreCase(a,t)||i.equalsIgnoreCase(u,t)?e.Warning:i.equalsIgnoreCase(l,t)?e.Info:e.Ignore:e.Ignore}function o(e){return c[e]||i.empty}function r(e,t){return t-e}var s="error",a="warning",u="warn",l="info",c=Object.create(null);c[e.Error]=n.localize(0,null),c[e.Warning]=n.localize(1,null),c[e.Info]=n.localize(2,null),e.fromValue=t,e.toString=o,e.compare=r}(o||(o={})),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o}),define(d[263],h([0,1,4,12,30,11,409]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e){var t=this;this._onClick=new i.Emitter,this._toDispose=[],this._editor=e,this._editor.addOverlayWidget(this),this._toDispose.push(this._editor.onDidScrollChange(function(){t._visible&&t._layout()})),this._toDispose.push(i.any(this._editor.onDidChangeConfiguration,this._editor.onDidChangeModelDecorations)(function(){t._visible&&!t._hasSpaceInGlyphMargin(t._line)&&t.hide()}))}return e.prototype.dispose=function(){this._editor.removeOverlayWidget(this),this._toDispose=n.dispose(this._toDispose)},Object.defineProperty(e.prototype,"onClick",{get:function(){return this._onClick.event},enumerable:!0,configurable:!0}),e.prototype.getId=function(){return"__lightBulbWidget"},e.prototype.getDomNode=function(){var e=this;return this._domNode||(this._domNode=document.createElement("div"),this._domNode.style.width="21px",this._domNode.style.height="20px",this._domNode.className="lightbulb-glyph hidden",this._toDispose.push(r.addDisposableListener(this._domNode,"mousedown",function(t){t.preventDefault();var n=r.getDomNodePagePosition(e._domNode),i=n.top,o=n.height,s=e._editor.getConfiguration().lineHeight;e._onClick.fire({x:t.clientX,y:i+o+Math.floor(s/3)})}))),this._domNode},e.prototype.getPosition=function(){return null},Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){var t=this;this._model=e,this.hide();var n=this._model;e.fixes.done(function(i){n===t._model&&i&&i.length>0?t.show(e):t.hide()},function(e){t.hide()})},enumerable:!0,configurable:!0}),e.prototype.show=function(e){var t=e.range.startLineNumber;this._hasSpaceInGlyphMargin(t)&&(this._visible&&this._line===t||(this._line=t,this._visible=!0,this._layout(),this._domNode.dataset.severity=e.severity>=o.default.Warning?"high":""))},e.prototype._hasSpaceInGlyphMargin=function(e){if(!this._editor.getRawConfiguration().glyphMargin)return!1;var t=this._editor.getLineDecorations(e);if(t)for(var n=0,i=t;n=0;t--){var n=this._arr[t];if(e.value===n.keybinding)return n.callback}return null},e}();t.KeybindingDispatcher=c;var d=function(){function e(e){void 0===e&&(e={clickBehavior:l.ON_MOUSE_UP});var t=this;this.options=e,this.downKeyBindingDispatcher=new c,this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n)}),this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n)}),this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n)}),this.upKeyBindingDispatcher=new c,this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)), -this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this))}return e.prototype.onMouseDown=function(e,t,n,i){if(void 0===i&&(i="mouse"),this.options.clickBehavior===l.ON_MOUSE_DOWN&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(a.findParentWithClass(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){var i=r.isMacintosh;return i&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&((this.options.clickBehavior!==l.ON_MOUSE_DOWN||!n.leftButton&&!n.middleButton)&&this.onLeftClick(e,t,n))},e.prototype.onLeftClick=function(e,t,n,i){void 0===i&&(i="mouse");var o={origin:i,originalEvent:n};if(e.getInput()===t)e.clearFocus(o),e.clearSelection(o);else{var r=n&&n.browserEvent&&"mousedown"===n.browserEvent.type;r||n.preventDefault(),n.stopPropagation(),e.DOMFocus(),e.setSelection([t],o),e.setFocus(t,o),e.isExpanded(t)?e.collapse(t).done(null,s.onUnexpectedError):e.expand(t).done(null,s.onUnexpectedError)}return!0},e.prototype.onContextMenu=function(e,t,n){return(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(n&&(n.preventDefault(),n.stopPropagation()),!1)},e.prototype.onTap=function(e,t,n){var i=n.initialTarget;return(!i||!i.tagName||"input"!==i.tagName.toLowerCase())&&this.onLeftClick(e,t,n,"touch")},e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)},e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)},e.prototype.onKey=function(e,t,n){var i=e.dispatch(n.toKeybinding());return!(!i||!i(t,n))&&(n.preventDefault(),n.stopPropagation(),!0)},e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPrevious(1,n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusPreviousPage(n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNext(1,n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusNextPage(n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusFirst(n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?e.clearHighlight(n):(e.focusLast(n),e.reveal(e.getFocus()).done(null,s.onUnexpectedError)),!0},e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.collapse(i).then(function(t){if(i&&!t)return e.focusParent(n),e.reveal(e.getFocus())}).done(null,s.onUnexpectedError)}return!0},e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var i=e.getFocus();e.expand(i).then(function(t){if(i&&!t)return e.focusFirstChild(n),e.reveal(e.getFocus())}).done(null,s.onUnexpectedError)}return!0},e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var i=e.getFocus();return i&&e.setSelection([i],n),!0},e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();return n&&e.toggleExpansion(n),!0},e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};return e.getHighlight()?(e.clearHighlight(n),!0):e.getSelection().length?(e.clearSelection(n),!0):!!e.getFocus()&&(e.clearFocus(n),!0)},e}();t.DefaultController=d;var h=function(){function e(){}return e.prototype.getDragURI=function(e,t){return null},e.prototype.onDragStart=function(e,t,n){},e.prototype.onDragOver=function(e,t,n,i){return null},e.prototype.drop=function(e,t,n,i){},e}();t.DefaultDragAndDrop=h;var p=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}();t.DefaultFilter=p;var f=function(){function e(){}return e.prototype.compare=function(e,t,n){return 0},e}();t.DefaultSorter=f;var g=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}();t.DefaultAccessibilityProvider=g;var v=function(e){function t(t,i){var o=e.call(this,"vs.tree.collapse",n.localize(0,null),"monaco-tree-action collapse-all",i)||this;return o.viewer=t,o}return m(t,e),t.prototype.run=function(e){return this.viewer.getHighlight()?i.TPromise.as(null):(this.viewer.collapseAll(),this.viewer.clearSelection(),this.viewer.clearFocus(),this.viewer.DOMFocus(),this.viewer.focusFirst(),i.TPromise.as(null))},t}(o.Action);t.CollapseAllAction=v}),define(d[106],h([0,1,264,6,22,87,9,39,133,176,71,75,112,11]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";var f=0,g=function(){function e(){}return e.getLabel=function(e){return e.getLabel()},e.getResourcePath=function(e){var t=e.getResource();return t&&t.fsPath},e}(),v=function(){function e(e){void 0===e&&(e=[]),this.id=(f++).toString(),this.labelHighlights=e,this.descriptionHighlights=[]}return e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){return null},e.prototype.getLabelOptions=function(){return null},e.prototype.getAriaLabel=function(){return this.getLabel()},e.prototype.getDetail=function(){return null},e.prototype.getIcon=function(){return null},e.prototype.getDescription=function(){return null},e.prototype.getResource=function(){return null},e.prototype.isHidden=function(){return this.hidden},e.prototype.setHidden=function(e){this.hidden=e},e.prototype.setHighlights=function(e,t,n){this.labelHighlights=e,this.descriptionHighlights=t,this.detailHighlights=n},e.prototype.getHighlights=function(){return[this.labelHighlights,this.descriptionHighlights,this.detailHighlights]},e.prototype.run=function(e,t){return!1},e.compare=function(e,t,n){n&&(n=s.stripWildcards(n).toLowerCase());var i=e.getHighlights()[0]||[],o=t.getHighlights()[0]||[];if(i.length&&!o.length)return-1;if(!i.length&&o.length)return 1;var r=e.getLabel(),a=t.getLabel();if(r===a){var u=e.getResource(),c=t.getResource();u&&c&&(r=u.fsPath,a=c.fsPath)}return l.compareAnything(r,a,n)},e.compareByScore=function(e,t,n,i,o){return l.compareByScore(e,t,g,n,i,o)},e.highlight=function(e,t,n){void 0===n&&(n=!1);var i=[],o=[],u=s.stripWildcards(t),l=e.getLabel(),c=e.getDescription();if(e.getResource())if(t.toLowerCase()===e.getResource().fsPath.toLowerCase())i.push({start:0,end:l.length}),o.push({start:0,end:c.length});else if(n||t.indexOf(a.nativeSep)>=0){var d=r.matchesFuzzy(t,l,n);if(d)i=d;else{var h=c?c+a.nativeSep:"",p=h.length,f=r.matchesFuzzy(t,h+l,n);f||t===u||(f=r.matchesFuzzy(u,h+l,n)),f&&f.forEach(function(e){e.startp?(i.push({start:0,end:e.end-p}),o.push({start:e.start,end:p})):e.start>=p?i.push({start:e.start-p,end:e.end-p}):o.push(e)})}}else i=r.matchesFuzzy(t,l);else i=r.matchesFuzzy(t,l);return{labelHighlights:i,descriptionHighlights:o}},e.prototype.isFile=function(){return!1},e}();t.QuickOpenEntry=v;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.getHeight=function(){return 0},t.prototype.render=function(e,t,n){return null},t}(v);t.QuickOpenEntryItem=_;var y=function(e){function t(t,n,i){var o=e.call(this)||this;return o.entry=t,o.groupLabel=n,o.withBorder=i,o}return m(t,e),t.prototype.getGroupLabel=function(){return this.groupLabel},t.prototype.setGroupLabel=function(e){this.groupLabel=e},t.prototype.showBorder=function(){return this.withBorder},t.prototype.setShowBorder=function(e){this.withBorder=e},t.prototype.getLabel=function(){return this.entry?this.entry.getLabel():e.prototype.getLabel.call(this)},t.prototype.getLabelOptions=function(){return this.entry?this.entry.getLabelOptions():e.prototype.getLabelOptions.call(this)},t.prototype.getAriaLabel=function(){return this.entry?this.entry.getAriaLabel():e.prototype.getAriaLabel.call(this)},t.prototype.getDetail=function(){return this.entry?this.entry.getDetail():e.prototype.getDetail.call(this)},t.prototype.getResource=function(){return this.entry?this.entry.getResource():e.prototype.getResource.call(this)},t.prototype.getIcon=function(){return this.entry?this.entry.getIcon():e.prototype.getIcon.call(this)},t.prototype.getDescription=function(){return this.entry?this.entry.getDescription():e.prototype.getDescription.call(this)},t.prototype.getEntry=function(){return this.entry},t.prototype.getHighlights=function(){return this.entry?this.entry.getHighlights():e.prototype.getHighlights.call(this)},t.prototype.isHidden=function(){return this.entry?this.entry.isHidden():e.prototype.isHidden.call(this)},t.prototype.setHighlights=function(t,n,i){this.entry?this.entry.setHighlights(t,n,i):e.prototype.setHighlights.call(this,t,n,i)},t.prototype.setHidden=function(t){this.entry?this.entry.setHidden(t):e.prototype.setHidden.call(this,t)},t.prototype.run=function(t,n){return this.entry?this.entry.run(t,n):e.prototype.run.call(this,t,n)},t}(v);t.QuickOpenEntryGroup=y;var C="quickOpenEntry",b="quickOpenEntryGroup",w="quickOpenEntryItem",S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.getTemplateId=function(e,t){return w},t.prototype.render=function(t,n,i,o){return n instanceof _?n.render(t,i,o):e.prototype.render.call(this,t,n,i,o)},t}(d.LegacyRenderer),E=function(){function e(){}return e.prototype.hasActions=function(e,t){return!1},e.prototype.getActions=function(e,t){return i.TPromise.as(null)},e.prototype.hasSecondaryActions=function(e,t){return!1},e.prototype.getSecondaryActions=function(e,t){return i.TPromise.as(null)},e.prototype.getActionItem=function(e,t,n){return null},e}(),L=function(){function e(e,t){void 0===e&&(e=new E),void 0===t&&(t=null),this.actionProvider=e,this.actionRunner=t,this.entryItemRenderer=new S}return e.prototype.getHeight=function(e){return e instanceof _?e.getHeight():e.getDetail()?44:22},e.prototype.getTemplateId=function(e){return e instanceof _?w:e instanceof y?b:C},e.prototype.renderTemplate=function(e,t){if(e===w)return this.entryItemRenderer.renderTemplate(null,e,t);var n;e===b&&(n=document.createElement("div"),p.addClass(n,"results-group"),t.appendChild(n)),p.addClass(t,"actions");var i=document.createElement("div");p.addClass(i,"sub-content"),t.appendChild(i);var o=document.createElement("div");p.addClass(o,"primary-action-bar"),t.appendChild(o);var r=new c.ActionBar(o,{actionRunner:this.actionRunner}),s=p.$(".row"),a=p.$(".row"),l=p.$(".quick-open-entry",null,s,a);i.appendChild(l);var d=document.createElement("span");s.appendChild(d);var f=new u.IconLabel(s,{supportHighlights:!0}),g=document.createElement("span");s.appendChild(g),p.addClass(g,"quick-open-entry-description");var m=new h.HighlightedLabel(g),v=document.createElement("div");a.appendChild(v),p.addClass(v,"quick-open-entry-meta");var _=new h.HighlightedLabel(v);return{container:t,entry:l,icon:d,label:f,detail:_,description:m,group:n,actionBar:r}},e.prototype.renderElement=function(e,t,n){if(t===w)return void this.entryItemRenderer.renderElement(null,e,t,n);var i=n;if(this.actionProvider.hasActions(null,e)?p.addClass(i.container,"has-actions"):p.removeClass(i.container,"has-actions"),i.actionBar.context=e,this.actionProvider.getActions(null,e).then(function(e){i.actionBar.isEmpty()&&e&&e.length>0?i.actionBar.push(e,{icon:!0,label:!1}):i.actionBar.isEmpty()||e&&0!==e.length||i.actionBar.clear()}),e instanceof y){var o=e;o.showBorder()?p.addClass(i.container,"results-group-separator"):p.removeClass(i.container,"results-group-separator");var r=o.getGroupLabel()||"";n.group.textContent=r}if(e instanceof v){var s=e.getHighlights(),a=s[0],u=s[1],l=s[2],c=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";i.icon.className=c;var d=e.getLabelOptions()||Object.create(null);d.matches=a||[],i.label.setValue(e.getLabel(),null,d),i.detail.set(e.getDetail(),l),i.description.set(e.getDescription(),u||[]),i.description.element.title=e.getDescription()}},e.prototype.disposeTemplate=function(e,t){if(e===w)this.entryItemRenderer.disposeTemplate(null,e,t);else{var n=t;n.actionBar.dispose(),n.actionBar=null,n.container=null,n.entry=null,n.description.dispose(),n.description=null,n.detail.dispose(),n.detail=null,n.group=null,n.icon=null,n.label.dispose(),n.label=null}},e}(),N=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new E),this._entries=e,this._dataSource=this,this._renderer=new L(t),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(e.prototype,"entries",{get:function(){return this._entries},set:function(e){this._entries=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),e.prototype.addEntries=function(e){o.isArray(e)&&(this._entries=this._entries.concat(e))},e.prototype.setEntries=function(e){o.isArray(e)&&(this._entries=e)},e.prototype.getEntries=function(e){return e?this._entries.filter(function(e){return!e.isHidden()}):this._entries},e.prototype.getId=function(e){return e.getId()},e.prototype.getLabel=function(e){return e.getLabel()},e.prototype.getAriaLabel=function(e){var t=e.getAriaLabel();return t?n.localize(0,null,e.getAriaLabel()):n.localize(1,null)},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}();t.QuickOpenModel=N}),define(d[141],h([0,1,75,25,184,268,77,327]),function(e,t,n,i,o,r,s){"use strict";var a=function(){function e(e,t,i){if(void 0===i&&(i={}),this.tree=e,this.configuration=t,this.options=i,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer||new n.LegacyRenderer,this.controller=t.controller||new n.DefaultController,this.dnd=t.dnd||new n.DefaultDragAndDrop,this.filter=t.filter||new n.DefaultFilter,this.sorter=t.sorter||null,this.accessibilityProvider=t.accessibilityProvider||new n.DefaultAccessibilityProvider}return e}();t.TreeContext=a;var u=function(e){function t(t,n,i){void 0===i&&(i={});var s=e.call(this)||this;return s.container=t,s.configuration=n,s.options=i,s.options.twistiePixels="number"==typeof s.options.twistiePixels?s.options.twistiePixels:32,s.options.showTwistie=s.options.showTwistie!==!1,s.options.indentPixels="number"==typeof s.options.indentPixels?s.options.indentPixels:12,s.options.alwaysFocused=s.options.alwaysFocused===!0,s.options.useShadows=s.options.useShadows!==!1,s.options.paddingOnRow=s.options.paddingOnRow!==!1,s.context=new a(s,n,i),s.model=new o.TreeModel(s.context),s.view=new r.TreeView(s.context,s.container),s.view.setModel(s.model),s.addEmitter2(s.model),s.addEmitter2(s.view),s}return m(t,e),t.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},t.prototype.layout=function(e){this.view.layout(e)},t.prototype.DOMFocus=function(){this.view.focus()},t.prototype.isDOMFocused=function(){return this.view.isFocused()},t.prototype.DOMBlur=function(){this.view.blur()},t.prototype.onVisible=function(){this.view.onVisible()},t.prototype.onHidden=function(){this.view.onHidden()},t.prototype.setInput=function(e){return this.model.setInput(e)},t.prototype.getInput=function(){return this.model.getInput()},t.prototype.refresh=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),this.model.refresh(e,t)},t.prototype.refreshAll=function(e,t){return void 0===t&&(t=!0),this.model.refreshAll(e,t)},t.prototype.expand=function(e){return this.model.expand(e)},t.prototype.expandAll=function(e){return this.model.expandAll(e)},t.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},t.prototype.collapseAll=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.model.collapseAll(e,t)},t.prototype.toggleExpansion=function(e){return this.model.toggleExpansion(e)},t.prototype.toggleExpansionAll=function(e){return this.model.toggleExpansionAll(e)},t.prototype.isExpanded=function(e){return this.model.isExpanded(e)},t.prototype.getExpandedElements=function(){return this.model.getExpandedElements()},t.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},t.prototype.getRelativeTop=function(e){var t=this.model.getItem(e);return this.view.getRelativeTop(t)},t.prototype.getScrollPosition=function(){return this.view.getScrollPosition()},t.prototype.setScrollPosition=function(e){this.view.setScrollPosition(e)},t.prototype.getContentHeight=function(){return this.view.getTotalHeight()},t.prototype.setHighlight=function(e,t){this.model.setHighlight(e,t)},t.prototype.getHighlight=function(){return this.model.getHighlight()},t.prototype.isHighlighted=function(e){return this.model.isFocused(e)},t.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},t.prototype.select=function(e,t){this.model.select(e,t)},t.prototype.selectRange=function(e,t,n){this.model.selectRange(e,t,n)},t.prototype.deselectRange=function(e,t,n){this.model.deselectRange(e,t,n)},t.prototype.selectAll=function(e,t){this.model.selectAll(e,t)},t.prototype.deselect=function(e,t){this.model.deselect(e,t)},t.prototype.deselectAll=function(e,t){this.model.deselectAll(e,t)},t.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},t.prototype.toggleSelection=function(e,t){this.model.toggleSelection(e,t)},t.prototype.isSelected=function(e){return this.model.isSelected(e)},t.prototype.getSelection=function(){return this.model.getSelection()},t.prototype.clearSelection=function(e){this.model.setSelection([],e)},t.prototype.selectNext=function(e,t,n){this.model.selectNext(e,t,n)},t.prototype.selectPrevious=function(e,t,n){this.model.selectPrevious(e,t,n)},t.prototype.selectParent=function(e,t){this.model.selectParent(e,t)},t.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},t.prototype.isFocused=function(e){return this.model.isFocused(e)},t.prototype.getFocus=function(){return this.model.getFocus()},t.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},t.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},t.prototype.focusParent=function(e){this.model.focusParent(e)},t.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},t.prototype.focusFirst=function(e){this.model.focusFirst(e)},t.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},t.prototype.focusLast=function(e){this.model.focusLast(e)},t.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},t.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},t.prototype.clearFocus=function(e){this.model.setFocus(null,e)},t.prototype.addTraits=function(e,t){this.model.addTraits(e,t)},t.prototype.removeTraits=function(e,t){this.model.removeTraits(e,t)},t.prototype.toggleTrait=function(e,t){this.model.hasTrait(e,t)?this.model.removeTraits(e,[t]):this.model.addTraits(e,[t])},t.prototype.hasTrait=function(e,t){return this.model.hasTrait(e,t)},t.prototype.getNavigator=function(e,t){return new s.MappedNavigator(this.model.getNavigator(e,t),function(e){return e&&e.getElement()})},t.prototype.dispose=function(){null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),e.prototype.dispose.call(this)},t}(i.EventEmitter);t.Tree=u}),define(d[270],h([0,1,265,6,18,67,22,10,76,177,34,100,30,141,250,53,75,11,4,40,275]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,y,C){"use strict";var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.onContextMenu=function(t,n,i){return o.isMacintosh?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(v.DefaultController);t.QuickOpenController=b;var w;!function(e){e[e.ELEMENT_SELECTED=0]="ELEMENT_SELECTED",e[e.FOCUS_LOST=1]="FOCUS_LOST",e[e.CANCELED=2]="CANCELED"}(w=t.HideReason||(t.HideReason={}));var S=n.localize(0,null),E=function(){function e(e,t,n,i){this.toUnbind=[],this.container=e,this.callbacks=t,this.options=n,this.usageLogger=i,this.model=null}return e.prototype.getElement=function(){return c.$(this.builder)},e.prototype.getModel=function(){return this.model},e.prototype.setCallbacks=function(e){this.callbacks=e},e.prototype.create=function(){var e=this;return this.builder=c.$().div(function(t){t.on(_.EventType.KEY_DOWN,function(t){var n=new g.StandardKeyboardEvent(t);9===n.keyCode&&(_.EventHelper.stop(t,!0),e.hide(w.CANCELED))}).on(_.EventType.CONTEXT_MENU,function(e){return _.EventHelper.stop(e,!0)}).on(_.EventType.FOCUS,function(t){return e.gainingFocus()},null,!0).on(_.EventType.BLUR,function(t){return e.loosingFocus(t)},null,!0),e.progressBar=new f.ProgressBar(t.clone()),e.progressBar.getContainer().hide(),t.div({class:"quick-open-input"},function(t){e.inputContainer=t,e.inputBox=new d.InputBox(t.getHTMLElement(),null,{placeholder:e.options.inputPlaceHolder||"",ariaLabel:S}),e.inputElement=e.inputBox.inputElement,e.inputElement.setAttribute("role","combobox"),e.inputElement.setAttribute("aria-haspopup","false"),e.inputElement.setAttribute("aria-autocomplete","list"),_.addDisposableListener(e.inputBox.inputElement,_.EventType.KEY_DOWN,function(t){var n=new g.StandardKeyboardEvent(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)_.EventHelper.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart=e.inputBox.value.length;else if(3===n.keyCode||i){_.EventHelper.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?u.Mode.OPEN_IN_BACKGROUND:u.Mode.OPEN)}}),_.addDisposableListener(e.inputBox.inputElement,_.EventType.INPUT,function(t){e.onType()})}),e.treeContainer=t.div({class:"quick-open-tree"},function(t){e.tree=new p.Tree(t.getHTMLElement(),{dataSource:new l.DataSource(e),controller:new b({clickBehavior:v.ClickBehavior.ON_MOUSE_UP}),renderer:new l.Renderer(e),filter:new l.Filter(e),accessibilityProvider:new l.AccessibilityProvider(e)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:C.ScrollbarVisibility.Visible,ariaLabel:n.localize(1,null)}),e.treeElement=e.tree.getHTMLElement(),e.toUnbind.push(e.tree.addListener2(r.EventType.FOCUS,function(t){e.elementFocused(t.focus,t)})),e.toUnbind.push(e.tree.addListener2(r.EventType.SELECTION,function(t){t.selection&&t.selection.length>0&&e.elementSelected(t.selection[0],t)}))}).on(_.EventType.KEY_DOWN,function(t){var n=new g.StandardKeyboardEvent(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(_.EventHelper.stop(t,!0),e.navigateInTree(n.keyCode)))}).on(_.EventType.KEY_UP,function(t){var n=new g.StandardKeyboardEvent(t),i=n.keyCode;if(e.quickNavigateConfiguration){var r=e.quickNavigateConfiguration.keybindings,s=3===i||r.some(function(e){if(e.hasShift()&&4===i)return!(n.ctrlKey||n.altKey||n.metaKey);if(e.hasAlt()&&6===i)return!0;if(o.isMacintosh){if(e.hasCtrlCmd()&&57===i)return!0;if(e.hasWinCtrl()&&5===i)return!0}else{if(e.hasCtrlCmd()&&5===i)return!0;if(e.hasWinCtrl()&&57===i)return!0}return!1});if(s){var a=e.tree.getFocus();a&&e.elementSelected(a,t)}}}).clone()}).addClass("quick-open-widget").build(this.container),this.layoutDimensions&&this.layout(this.layoutDimensions),this.builder.getHTMLElement()},e.prototype.shouldOpenInBackground=function(e){return 17===e.keyCode&&(!(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)&&this.inputBox.inputElement.selectionStart===this.inputBox.value.length)},e.prototype.onType=function(){var e=this.inputBox.value;this.helpText&&(e?this.helpText.hide():this.helpText.show()),this.callbacks.onType(e)},e.prototype.navigate=function(e,t){this.isVisible&&(this.quickNavigateConfiguration||(this.quickNavigateConfiguration=t,this.tree.DOMFocus()),this.navigateInTree(e?18:16))},e.prototype.navigateInTree=function(e,t){var n=this.tree.getInput(),i=n?n.entries:[],o=this.tree.getFocus();switch(e){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:t?this.tree.focusPrevious():this.tree.focusNext()}var r=this.tree.getFocus();i.length>1&&o===r&&(16===e||2===e&&t?this.tree.focusLast():(18===e||2===e&&!t)&&this.tree.focusFirst()),r=this.tree.getFocus(),r&&this.tree.reveal(r).done(null,a.onUnexpectedError)},e.prototype.elementFocused=function(e,t){if(e&&this.isVisible()){this.inputElement.setAttribute("aria-activedescendant",this.treeElement.getAttribute("aria-activedescendant"));var n={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(e,u.Mode.PREVIEW,n)}},e.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||u.Mode.OPEN,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}if(this.usageLogger){var s=this.model.entries.indexOf(e),a=this.model.entries.length;this.usageLogger.publicLog("quickOpenWidgetItemAccepted",{index:s,count:a,isQuickNavigate:!!this.quickNavigateConfiguration})}i&&this.hide(w.ELEMENT_SELECTED)},e.prototype.extractKeyMods=function(e){var t=e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey));return t?[2048]:[]},e.prototype.show=function(e,t){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=t?t.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(this.inputContainer.hide(),this.builder.show(),this.tree.DOMFocus()):(this.inputContainer.show(),this.builder.show(),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||s.isString(e)?this.helpText.hide():this.helpText.show()),s.isString(e)?this.doShowWithPrefix(e):this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{}),this.callbacks.onShow&&this.callbacks.onShow()},e.prototype.doShowWithPrefix=function(e){this.inputBox.value=e,this.callbacks.onType(e)},e.prototype.doShowWithInput=function(e,t){this.setInput(e,t)},e.prototype.setInputAndLayout=function(e,t){var n=this;this.treeContainer.style({height:this.getHeight(e)+"px"}),this.tree.setInput(null).then(function(){return n.model=e,n.inputElement.setAttribute("aria-haspopup",String(e&&e.entries&&e.entries.length>0)),n.tree.setInput(e)}).done(function(){n.tree.layout(),e&&e.entries.some(function(t){return n.isElementVisible(e,t)})&&n.autoFocus(e,t)},a.onUnexpectedError)},e.prototype.isElementVisible=function(e,t){return!e.filter||e.filter.isVisible(t)},e.prototype.autoFocus=function(e,t){var n=this;void 0===t&&(t={});var i=e.entries.filter(function(t){return n.isElementVisible(e,t)});if(t.autoFocusPrefixMatch){for(var o=void 0,r=void 0,s=t.autoFocusPrefixMatch,u=s.toLowerCase(),l=0;lt.autoFocusIndex&&(this.tree.focusNth(t.autoFocusIndex),this.tree.reveal(this.tree.getFocus()).done(null,a.onUnexpectedError)):t.autoFocusSecondEntry?i.length>1&&this.tree.focusNth(1):t.autoFocusLastEntry&&i.length>1&&this.tree.focusLast()},e.prototype.refresh=function(e,t){var n=this;this.isVisible()&&(this.treeContainer.style({height:this.getHeight(e)+"px"}),this.tree.refresh().done(function(){n.tree.layout();var i=t&&e&&e.entries.some(function(t){return n.isElementVisible(e,t)});i&&!t.autoFocusPrefixMatch&&(i=!n.tree.getFocus()),i&&n.autoFocus(e,t)},a.onUnexpectedError))},e.prototype.getHeight=function(t){var n=this,i=t.renderer;if(!t){var o=i.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*o:0}var r,s=0;this.layoutDimensions&&this.layoutDimensions.height&&(r=.4*(this.layoutDimensions.height-50)),(!r||r>e.MAX_ITEMS_HEIGHT)&&(r=e.MAX_ITEMS_HEIGHT);for(var a=t.entries.filter(function(e){return n.isElementVisible(t,e)}),u=this.options.maxItemsToShow||a.length,l=0;ln?n:e}var a=function(){function e(e){this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight}return e.createFromRawSettings=function(t){var a=String(t.fontFamily)||n.DefaultConfig.editor.fontFamily,u=String(t.fontWeight)||n.DefaultConfig.editor.fontWeight,l=o(t.fontSize,n.DefaultConfig.editor.fontSize);l=s(l,0,100),0===l&&(l=n.DefaultConfig.editor.fontSize);var c=r(t.lineHeight,0);c=s(c,0,150),0===c&&(c=Math.round(n.GOLDEN_LINE_HEIGHT_RATIO*l));var d=1+.1*i.EditorZoom.getZoomLevel();return l*=d,c*=d,new e({fontFamily:a,fontWeight:u,fontSize:l,lineHeight:c})},e.prototype.getId=function(){return this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"},e}();t.BareFontInfo=a;var u=function(e){function t(t){var n=e.call(this,t)||this;return n.isMonospace=t.isMonospace,n.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,n.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,n.spaceWidth=t.spaceWidth,n.maxDigitWidth=t.maxDigitWidth,n}return m(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.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t.prototype.clone=function(){return new t(this)},t}(a);t.FontInfo=u}),define(d[276],h([8,7]),function(e,t){return e.create("vs/editor/common/controller/cursor",t)}),define(d[277],h([8,7]),function(e,t){return e.create("vs/editor/common/model/textModelWithTokens",t)}),define(d[278],h([8,7]),function(e,t){return e.create("vs/editor/common/modes/modesRegistry",t)}),define(d[279],h([8,7]),function(e,t){return e.create("vs/editor/common/modes/snippetsRegistry",t)}),define(d[280],h([8,7]),function(e,t){return e.create("vs/editor/common/services/bulkEdit",t)}),define(d[281],h([0,1,280,26,91,4,27,6,46,3,20]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";function d(e,t,n,i,o){void 0===o&&(o=null);var r=h(e,t,i);return r.add(n),r.progress(o),r.finish()}function h(e,t,i){function o(e){l=e}function r(e){c.push.apply(c,e)}function s(){for(var e,t=0,i=c;t=0&&(t.splice(i,1),0===t.length&&n._commands.delete(e))}else r(t)&&n._commands.delete(e)}}},e.prototype.getCommand=function(e){var t=this._commands.get(e);return Array.isArray(t)?t[0]:t},e.prototype.getCommands=function(){var e=this,t=Object.create(null);return this._commands.forEach(function(n,i){t[i]=e.getCommand(i)}),t},e}()),t.NullCommandService={_serviceBrand:void 0,onWillExecuteCommand:function(){return{dispose:function(){}}},executeCommand:function(){return n.TPromise.as(void 0)}}}),define(d[336],h([0,1,10,27,6,3,16,17,23,44]),function(e,t,n,i,o,r,s,a,u,l){"use strict";function c(e){var t=[],i=s.LinkProviderRegistry.ordered(e).reverse().map(function(i){return a.asWinJsPromise(function(t){return i.provideLinks(e,t)}).then(function(e){if(Array.isArray(e)){var n=e.map(function(e){return new h(e,i)});t=d(t,n)}},n.onUnexpectedExternalError)});return o.TPromise.join(i).then(function(){return t})}function d(e,t){var n,i,o,s,a,u,l,c=[];for(n=0,o=0,i=e.length,s=t.length;n=0&&i.splice(e,1)}}},e.prototype.getMenuItems=function(e){var t=e.id;return this.menuItems[t]||[]},e}());var u=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o._commandService=i,o}return m(t,e),t.prototype.run=function(){for(var e=[],t=0;t=0){var t=e.split("!=");return new u(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("==")>=0){var t=e.split("==");return new a(t[0].trim(),this._deserializeValue(t[1]))}return/^\!\s*/.test(e)?new l(e.substr(1).trim()):new s(e)},e._deserializeValue=function(e){if(e=e.trim(),"true"===e)return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e}();t.ContextKeyExpr=r;var s=function(){function e(e){this.key=e}return e.prototype.getType=function(){return o.Defined},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[this.key]},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyDefinedExpr=s;var a=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return o.Equals},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[this.key]==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new s(this.key):new l(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" == '"+this.value+"'"},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyEqualsExpr=a;var u=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return o.NotEquals},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[this.key]!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new l(this.key):new s(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" != '"+this.value+"'"},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotEqualsExpr=u;var l=function(){function e(e){this.key=e}return e.prototype.getType=function(){return o.Not},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[this.key]},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return"!"+this.key},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotExpr=l;var c=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return o.And},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var n=0,i=this.expr.length;n0&&(r(0,o.light),a=!0),o.dark.length>0&&(r(1,o.dark),r(2,o.dark),a=!0),a){var u=_.getClassName(t,i);return n&&(u=u+" "+_.getClassName(n,i)),u}},e}();f._CSS_MAP={color:"color:{0} !important;",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};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:url('{0}') center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:url('{0}');",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},f.border_rules=["border","borderColor","borderColor","borderSpacing","borderStyle","borderWidth"];var g;!function(e){e[e.Light=0]="Light",e[e.Dark=1]="Dark",e[e.HighContrastBlack=2]="HighContrastBlack"}(g||(g={}));var v;!function(e){e[e.ClassName=0]="ClassName",e[e.InlineClassName=1]="InlineClassName",e[e.GlyphMarginClassName=2]="GlyphMarginClassName",e[e.BeforeContentClassName=3]="BeforeContentClassName",e[e.AfterContentClassName=4]="AfterContentClassName"}(v||(v={}));var _=function(){function e(){}return e._getSelectorPrefixOf=function(e){return 0===e?".monaco-editor.vs":1===e?".monaco-editor.vs-dark":".monaco-editor.hc-black"},e.getClassName=function(e,t){return"ced-"+e+"-"+t},e.getSelector=function(e,t,n,i){var o=this._getSelectorPrefixOf(e)+" ."+this.getClassName(t,i);return n&&(o=o+"."+this.getClassName(n,i)),3===i?o+="::before":4===i&&(o+="::after"),o},e.getDeletionSubstring=function(e){return".ced-"+e+"-"},e}()}),define(d[342],h([0,1,15,2]),function(e,t,n,i){"use strict";var o=function(){function e(e,t,n,i){this.viewModel=e,this.triggerCursorHandler=t,this.outgoingEvents=n,this.commandService=i}return e.prototype.paste=function(e,t,n){this.commandService.executeCommand(i.Handler.Paste,{text:t,pasteOnNewLine:n})},e.prototype.type=function(e,t){this.commandService.executeCommand(i.Handler.Type,{text:t})},e.prototype.replacePreviousChar=function(e,t,n){this.commandService.executeCommand(i.Handler.ReplacePreviousChar,{text:t,replaceCharCnt:n})},e.prototype.compositionStart=function(e){this.commandService.executeCommand(i.Handler.CompositionStart,{})},e.prototype.compositionEnd=function(e){this.commandService.executeCommand(i.Handler.CompositionEnd,{})},e.prototype.cut=function(e){this.commandService.executeCommand(i.Handler.Cut,{})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this.selectAll("mouse"):3===e.mouseDownCount?e.altKey?e.inSelectionMode?this.lastCursorLineSelectDrag("mouse",e.position):this.lastCursorLineSelect("mouse",e.position):e.inSelectionMode?this.lineSelectDrag("mouse",e.position):this.lineSelect("mouse",e.position):2===e.mouseDownCount?e.altKey?this.lastCursorWordSelect("mouse",e.position):e.inSelectionMode?this.wordSelectDrag("mouse",e.position):this.wordSelect("mouse",e.position):e.altKey?e.ctrlKey||e.metaKey||(e.shiftKey?this.columnSelect("mouse",e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect("mouse",e.position):this.createCursor("mouse",e.position,!1)):e.inSelectionMode?this.moveToSelect("mouse",e.position):this.moveTo("mouse",e.position)},e.prototype.moveTo=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.MoveTo,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.moveToSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.MoveToSelect,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.columnSelect=function(e,t,n){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.ColumnSelect,{position:this.convertViewToModelPosition(t),viewPosition:t,mouseColumn:n})},e.prototype.createCursor=function(e,t,n){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.CreateCursor,{position:this.convertViewToModelPosition(t),viewPosition:t,wholeLine:n})},e.prototype.lastCursorMoveToSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LastCursorMoveToSelect,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.wordSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.WordSelect,{position:this.convertViewToModelPosition(t)})},e.prototype.wordSelectDrag=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.WordSelectDrag,{position:this.convertViewToModelPosition(t)})},e.prototype.lastCursorWordSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LastCursorWordSelect,{position:this.convertViewToModelPosition(t)})},e.prototype.lineSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LineSelect,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.lineSelectDrag=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LineSelectDrag,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.lastCursorLineSelect=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LastCursorLineSelect,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.lastCursorLineSelectDrag=function(e,t){t=this._validateViewColumn(t),this.triggerCursorHandler(e,i.Handler.LastCursorLineSelectDrag,{position:this.convertViewToModelPosition(t),viewPosition:t})},e.prototype.selectAll=function(e){this.triggerCursorHandler(e,i.Handler.SelectAll,null)},e.prototype.convertViewToModelPosition=function(e){return this.viewModel.convertViewPositionToModelPosition(e.lineNumber,e.column)},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}();t.ViewController=o}),define(d[162],h([0,1,9,3,2]),function(e,t,n,i,o){"use strict";function r(e){return e===s.IENarrator?l.EMPTY:a?d.EMPTY:c.EMPTY}var s;!function(e){e[e.IENarrator=0]="IENarrator",e[e.NVDA=1]="NVDA"}(s=t.TextAreaStrategy||(t.TextAreaStrategy={}));var a=!1;t.createTextAreaState=r;var u=function(){function e(e,t,n,i,o){this.previousState=e?e.shallowClone():null,this.value=t,this.selectionStart=n,this.selectionEnd=i,this.isInOverwriteMode=o}return e.prototype.updateComposition=function(){return this.previousState?{text:this.value,replaceCharCnt:this.previousState.selectionEnd-this.previousState.selectionStart}:{text:"",replaceCharCnt:0}},e.prototype.getSelectionStart=function(){return this.selectionStart},e.prototype.getValue=function(){return this.value},e.prototype.applyToTextArea=function(e,t,n){t.getValue()!==this.value&&t.setValue(e,this.value),n&&t.setSelectionRange(this.selectionStart,this.selectionEnd)},e.prototype.deduceInput=function(){if(!this.previousState)return{text:"",replaceCharCnt:0};var e=this.previousState.value,t=this.previousState.selectionStart,i=this.previousState.selectionEnd,o=this.value,r=this.selectionStart,s=this.selectionEnd,a=e.substring(i),u=o.substring(s),l=n.commonSuffixLength(a,u);o=o.substring(0,o.length-l),e=e.substring(0,e.length-l);var c=e.substring(0,t),d=o.substring(0,r),h=n.commonPrefixLength(c,d);if(o=o.substring(h),e=e.substring(h),r-=h,t-=h,s-=h,i-=h,r===s){if(e===o&&0===t&&i===e.length&&r===o.length&&o.indexOf("\n")===-1)return{text:"",replaceCharCnt:0};var p=c.length-h;return{text:o,replaceCharCnt:p}}var f=i-t;return{text:o,replaceCharCnt:f}},e}();t.TextAreaState=u;var l=function(e){function t(t,n,i,o,r,s){var a=e.call(this,t,n,i,o,r)||this;return a.selectionToken=s,a}return m(t,e),t.prototype.shallowClone=function(){return new t(null,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode,this.selectionToken)},t.prototype.toEmpty=function(){return t.EMPTY},t.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+", isInOverwriteMode: "+this.isInOverwriteMode+", selectionToken: "+this.selectionToken+"]"},t.prototype.toStrategy=function(e){return e===s.IENarrator?this:a?new d(this.previousState,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode):new c(this.previousState,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode)},t.prototype.equals=function(e){return e instanceof t&&(this.value===e.value&&this.selectionStart===e.selectionStart&&this.selectionEnd===e.selectionEnd&&this.isInOverwriteMode===e.isInOverwriteMode&&this.selectionToken===e.selectionToken)},t.prototype.fromTextArea=function(e){return new t(this,e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),e.isInOverwriteMode(),this.selectionToken)},t.prototype.fromEditorSelection=function(e,n){var r=100,s=0,a=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=e.getLineMaxColumn(l);n.isEmpty()&&this.selectionToken!==a&&(u=1,c=d);var h="",p=Math.max(1,a-s);pr&&(h=h.substring(h.length-r,h.length));var f="",g=Math.min(l+s,e.getLineCount());f+=e.getValueInRange(new i.Range(l,c,l,d),o.EndOfLinePreference.LF),g>l&&(f="\n"+e.getValueInRange(new i.Range(l+1,1,g,e.getLineMaxColumn(g)),o.EndOfLinePreference.LF)),f.length>r&&(f=f.substring(0,r));var m=e.getValueInRange(new i.Range(a,u,l,c),o.EndOfLinePreference.LF);return m.length>2*r&&(m=m.substring(0,r)+String.fromCharCode(8230)+m.substring(m.length-r,m.length)),new t(this,h+m+f,h.length,h.length+m.length,!1,a)},t.prototype.fromText=function(e){return new t(this,e,0,e.length,!1,0)},t.prototype.resetSelection=function(){return new t(this.previousState,this.value,this.value.length,this.value.length,this.isInOverwriteMode,this.selectionToken)},t}(u);l.EMPTY=new l(null,"",0,0,!1,0),t.IENarratorTextAreaState=l;var c=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this}return m(t,e),t.prototype.shallowClone=function(){return new t(null,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode)},t.prototype.toEmpty=function(){return t.EMPTY},t.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+", isInOverwriteMode: "+this.isInOverwriteMode+"]"},t.prototype.toStrategy=function(e){return e===s.NVDA?this:new l(this.previousState,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode,0)},t.prototype.equals=function(e){return e instanceof t&&(this.value===e.value&&this.selectionStart===e.selectionStart&&this.selectionEnd===e.selectionEnd&&this.isInOverwriteMode===e.isInOverwriteMode)},t.prototype.fromTextArea=function(e){return new t(this,e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),e.isInOverwriteMode())},t._getPageOfLine=function(e){return Math.floor((e-1)/t._LINES_PER_PAGE)},t._getRangeForPage=function(e){var n=e*t._LINES_PER_PAGE,o=n+1,r=n+t._LINES_PER_PAGE;return new i.Range(o,1,r,1073741824)},t.prototype.fromEditorSelection=function(e,n){var r=t._getPageOfLine(n.startLineNumber),s=t._getRangeForPage(r),a=t._getPageOfLine(n.endLineNumber),u=t._getRangeForPage(a),l=s.intersectRanges(new i.Range(1,1,n.startLineNumber,n.startColumn)),c=e.getValueInRange(l,o.EndOfLinePreference.LF),d=e.getLineCount(),h=e.getLineMaxColumn(d),p=u.intersectRanges(new i.Range(n.endLineNumber,n.endColumn,d,h)),f=e.getValueInRange(p,o.EndOfLinePreference.LF),g=null;if(r===a||r+1===a)g=e.getValueInRange(n,o.EndOfLinePreference.LF);else{var m=s.intersectRanges(n),v=u.intersectRanges(n);g=e.getValueInRange(m,o.EndOfLinePreference.LF)+String.fromCharCode(8230)+e.getValueInRange(v,o.EndOfLinePreference.LF)}var _=500;return c.length>_&&(c=c.substring(c.length-_,c.length)),f.length>_&&(f=f.substring(0,_)),g.length>2*_&&(g=g.substring(0,_)+String.fromCharCode(8230)+g.substring(g.length-_,g.length)),new t(this,c+g+f,c.length,c.length+g.length,!1)},t.prototype.fromText=function(e){return new t(this,e,0,e.length,!1)},t.prototype.resetSelection=function(){return new t(this.previousState,this.value,this.value.length,this.value.length,this.isInOverwriteMode)},t}(u);c.EMPTY=new c(null,"",0,0,!1),c._LINES_PER_PAGE=10,t.NVDAPagedTextAreaState=c;var d=function(e){function t(t,n,i,o,r){return e.call(this,t,n,i,o,r)||this}return m(t,e),t.prototype.shallowClone=function(){return new t(null,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode)},t.prototype.toEmpty=function(){return t.EMPTY},t.prototype.toString=function(){return"[ , selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+", isInOverwriteMode: "+this.isInOverwriteMode+"]"},t.prototype.toStrategy=function(e){return e===s.NVDA?this:new l(this.previousState,this.value,this.selectionStart,this.selectionEnd,this.isInOverwriteMode,0)},t.prototype.equals=function(e){return e instanceof t&&(this.value===e.value&&this.selectionStart===e.selectionStart&&this.selectionEnd===e.selectionEnd&&this.isInOverwriteMode===e.isInOverwriteMode)},t.prototype.fromTextArea=function(e){return new t(this,e.getValue(),e.getSelectionStart(),e.getSelectionEnd(),e.isInOverwriteMode())},t.prototype.fromEditorSelection=function(e,n){var r=e.getValueInRange(new i.Range(1,1,n.startLineNumber,n.startColumn),o.EndOfLinePreference.LF),s=e.getValueInRange(n,o.EndOfLinePreference.LF),a=e.getLineCount(),u=e.getLineMaxColumn(a),l=e.getValueInRange(new i.Range(n.endLineNumber,n.endColumn,a,u),o.EndOfLinePreference.LF);return new t(this,r+s+l,r.length,r.length+s.length,!1)},t.prototype.fromText=function(e){return new t(this,e,0,e.length,!1)},t.prototype.resetSelection=function(){return new t(this.previousState,this.value,this.value.length,this.value.length,this.isInOverwriteMode)},t}(u);d.EMPTY=new d(null,"",0,0,!1),t.NVDAFullTextAreaState=d}),define(d[344],h([0,1,17,9,12,4,162,3,2]),function(e,t,n,i,o,r,s,a,u){"use strict";var l;!function(e){e[e.Type=0]="Type",e[e.Paste=1]="Paste"}(l||(l={}));var c=navigator.userAgent.indexOf("Chrome/55.")>=0&&navigator.userAgent.indexOf("Edge/")===-1,d=function(e){function t(t,r,u,l,d){var h=e.call(this)||this;h._onKeyDown=h._register(new o.Emitter),h.onKeyDown=h._onKeyDown.event,h._onKeyUp=h._register(new o.Emitter),h.onKeyUp=h._onKeyUp.event,h._onCut=h._register(new o.Emitter),h.onCut=h._onCut.event,h._onPaste=h._register(new o.Emitter),h.onPaste=h._onPaste.event,h._onType=h._register(new o.Emitter),h.onType=h._onType.event,h._onCompositionStart=h._register(new o.Emitter),h.onCompositionStart=h._onCompositionStart.event,h._onCompositionUpdate=h._register(new o.Emitter),h.onCompositionUpdate=h._onCompositionUpdate.event,h._onCompositionEnd=h._register(new o.Emitter),h.onCompositionEnd=h._onCompositionEnd.event,h.Browser=t,h.textArea=u,h.model=l,h.flushAnyAccumulatedEvents=d,h.selection=new a.Range(1,1,1,1),h.selections=[new a.Range(1,1,1,1)],h._nextCommand=0,h.asyncTriggerCut=new n.RunOnceScheduler(function(){return h._onCut.fire()},0),h.lastCopiedValue=null,h.lastCopiedValueIsFromEmptySelection=!1,h.textAreaState=s.createTextAreaState(r),h.hasFocus=!1,h.lastCompositionEndTime=0,h._register(h.textArea.onKeyDown(function(e){return h._onKeyDownHandler(e)})),h._register(h.textArea.onKeyUp(function(e){return h._onKeyUp.fire(e)})),h._register(h.textArea.onKeyPress(function(e){return h._onKeyPressHandler(e)})),h.textareaIsShownAtCursor=!1,h._register(h.textArea.onCompositionStart(function(e){h.textareaIsShownAtCursor||(h.textareaIsShownAtCursor=!0,h.Browser.isEdgeOrIE||h.setTextAreaState("compositionstart",h.textAreaState.toEmpty(),!1),h._onCompositionStart.fire({showAtLineNumber:h.selection.startLineNumber,showAtColumn:h.selection.startColumn}))})),h._register(h.textArea.onCompositionUpdate(function(e){c&&(e={locale:e.locale,data:h.textArea.getValue()}),h.textAreaState=h.textAreaState.fromText(e.data);var t=h.textAreaState.updateComposition();h._onType.fire(t),h._onCompositionUpdate.fire(e)}));var p=function(){var e=h.textAreaState.fromTextArea(h.textArea),t=e.deduceInput();0===t.replaceCharCnt&&1===t.text.length&&i.isHighSurrogate(t.text.charCodeAt(0))||(h.textAreaState=e,0===h._nextCommand?""!==t.text&&h._onType.fire(t):(h.executePaste(t.text),h._nextCommand=0))};return h._register(h.textArea.onCompositionEnd(function(e){h.textAreaState=h.textAreaState.fromText(e.data);var n=h.textAreaState.updateComposition();h._onType.fire(n),(t.isEdgeOrIE||t.isChrome)&&(h.textAreaState=h.textAreaState.fromTextArea(h.textArea)),h.lastCompositionEndTime=(new Date).getTime(),h.textareaIsShownAtCursor&&(h.textareaIsShownAtCursor=!1,h._onCompositionEnd.fire())})),h._register(h.textArea.onInput(function(){h.textareaIsShownAtCursor||p()})),h._register(h.textArea.onCut(function(e){h.flushAnyAccumulatedEvents(),h._ensureClipboardGetsEditorSelection(e),h.asyncTriggerCut.schedule()})),h._register(h.textArea.onCopy(function(e){h.flushAnyAccumulatedEvents(),h._ensureClipboardGetsEditorSelection(e)})),h._register(h.textArea.onPaste(function(e){e.canUseTextData()?h.executePaste(e.getTextData()):(h.textArea.getSelectionStart()!==h.textArea.getSelectionEnd()&&h.setTextAreaState("paste",h.textAreaState.toEmpty(),!1),h._nextCommand=1)})),h._writePlaceholderAndSelectTextArea("ctor",!1),h}return m(t,e),t.prototype.dispose=function(){this.asyncTriggerCut.dispose(),e.prototype.dispose.call(this)},t.prototype.setStrategy=function(e){this.textAreaState=this.textAreaState.toStrategy(e)},t.prototype.setHasFocus=function(e){this.hasFocus!==e&&(this.hasFocus=e,this.hasFocus&&this._writePlaceholderAndSelectTextArea("focusgain",!1))},t.prototype.setCursorSelections=function(e,t){this.selection=e,this.selections=[e].concat(t),this._writePlaceholderAndSelectTextArea("selection changed",!1)},t.prototype.setTextAreaState=function(e,t,n){this.hasFocus||(t=t.resetSelection()),t.applyToTextArea(e,this.textArea,this.hasFocus||n),this.textAreaState=t},t.prototype._onKeyDownHandler=function(e){e.equals(9)&&e.preventDefault(),this._onKeyDown.fire(e)},t.prototype._onKeyPressHandler=function(e){!this.hasFocus},t.prototype.executePaste=function(e){if(""!==e){var t=!1;this.Browser.enableEmptySelectionClipboard&&(t=e===this.lastCopiedValue&&this.lastCopiedValueIsFromEmptySelection),this._onPaste.fire({text:e,pasteOnNewLine:t})}},t.prototype.focusTextArea=function(){this._writePlaceholderAndSelectTextArea("focusTextArea",!0)},t.prototype._writePlaceholderAndSelectTextArea=function(e,t){this.textareaIsShownAtCursor||(this.Browser.isIPad?this.setTextAreaState(e,this.textAreaState.toEmpty(),t):this.setTextAreaState(e,this.textAreaState.fromEditorSelection(this.model,this.selection),t))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._getPlainTextToCopy();if(e.canUseTextData()?e.setTextData(t):this.setTextAreaState("copy or cut",this.textAreaState.fromText(t),!1),this.Browser.enableEmptySelectionClipboard){this.Browser.isFirefox?this.lastCopiedValue=t.replace(/\r\n/g,"\n"):this.lastCopiedValue=t;var n=this.selections;this.lastCopiedValueIsFromEmptySelection=1===n.length&&n[0].isEmpty()}},t.prototype._getPlainTextToCopy=function(){var e=this.model.getEOL(),t=this.selections;if(1===t.length){var n=t[0];if(n.isEmpty()){if(this.Browser.enableEmptySelectionClipboard){var i=this.model.convertViewPositionToModelPosition(n.startLineNumber,1).lineNumber;return this.model.getModelLineContent(i)+e}return""}return this.model.getValueInRange(n,u.EndOfLinePreference.TextDefined)}t=t.slice(0).sort(a.Range.compareRangesUsingStarts);for(var o=[],r=0;r=n)break;var o=e.charCodeAt(t);if(110===o||114===o)return!0; -}}return!1},e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var t;t=this.isRegex?e._isMultilineRegexSource(this.searchString):this.searchString.indexOf("\n")>=0;var i=null;try{i=n.createRegExp(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:this.wholeWord,multiline:t,global:!0})}catch(e){return null}return i?i:null},e}();t.SearchParams=u;var l=function(){function e(){}return e.findMatches=function(e,t,n,i,o){var r=t.parseSearchRequest();return r?r.multiline?this._doFindMatchesMultiline(e,n,r,i,o):this._doFindMatchesLineByLine(e,n,r,i,o):[]},e._getMultilineMatchRange=function(e,t,n,i,r){var s;if("\r\n"===e.getEOL()){for(var a=0,u=0;u=o)return c;d=f,h=g}return c},e._doFindMatchesLineByLine=function(e,t,n,i,o){var r=[],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,r,i,o),r}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);s=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,s,r,i,o);for(var l=t.startLineNumber+1;l0&&d.equalsRange(a[a.length-1].range))return r;if(a.push(s(d,c,u)),r++,r>=l)return r;if(c.index+c[0].length===t.length)return r}while(c);return r},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();return o?o.multiline?this._doFindNextMatchMultiline(e,n,o,i):this._doFindNextMatchLineByLine(e,n,o,i):null},e._doFindNextMatchMultiline=function(e,t,n,a){var u=new i.Position(t.lineNumber,1),l=e.getOffsetAt(u),c=e.getLineCount(),d=e.getValueInRange(new o.Range(u.lineNumber,u.column,c,e.getLineMaxColumn(c)),r.EndOfLinePreference.LF);n.lastIndex=t.column-1;var h=n.exec(d);return h?s(this._getMultilineMatchRange(e,l,d,h.index,h[0]),h,a):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new i.Position(1,1),n,a):null},e._doFindNextMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r),a=this._findFirstMatchInLine(n,s,r,t.column,i);if(a)return a;for(var u=1;u<=o;u++){var l=(r+u-1)%o,c=e.getLineContent(l+1),d=this._findFirstMatchInLine(n,c,l+1,1,i);if(d)return d}return null},e._findFirstMatchInLine=function(e,t,n,i,r){e.lastIndex=i-1;var a=e.exec(t);return a?s(new o.Range(n,a.index+1,n,a.index+1+a[0].length),a,r):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();return o?o.multiline?this._doFindPreviousMatchMultiline(e,n,o,i):this._doFindPreviousMatchLineByLine(e,n,o,i):null},e._doFindPreviousMatchMultiline=function(e,t,n,r){var s=this._doFindMatchesMultiline(e,new o.Range(1,1,t.lineNumber,t.column),n,r,10*a);if(s.length>0)return s[s.length-1];var u=e.getLineCount();return t.lineNumber!==u||t.column!==e.getLineMaxColumn(u)?this._doFindPreviousMatchMultiline(e,new i.Position(u,e.getLineMaxColumn(u)),n,r):null},e._doFindPreviousMatchLineByLine=function(e,t,n,i){var o=e.getLineCount(),r=t.lineNumber,s=e.getLineContent(r).substring(0,t.column-1),a=this._findLastMatchInLine(n,s,r,i);if(a)return a;for(var u=1;u<=o;u++){var l=(o+r-u-1)%o,c=e.getLineContent(l+1),d=this._findLastMatchInLine(n,c,l+1,i);if(d)return d}return null},e._findLastMatchInLine=function(e,t,n,i){for(var r,a=null;r=e.exec(t);){var u=new o.Range(n,r.index+1,n,r.index+1+r[0].length);if(a&&u.equalsRange(a.range))break;if(a=s(u,r,i),r.index+r[0].length===t.length)break}return a},e}();t.TextModelSearch=l}),define(d[94],h([0,1,25,9,15,3,2,72,507,42,86,506,346]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=999;t.LONG_LINE_BOUNDARY=1e3;var f=function(e){function n(t,i){var o=this;return t.push(s.EventType.ModelRawContentChanged,s.EventType.ModelOptionsChanged,s.EventType.ModelContentChanged2),o=e.call(this,t)||this,o._shouldSimplifyMode=i.length>n.MODEL_SYNC_LIMIT,o._shouldDenyMode=i.length>n.MODEL_TOKENIZATION_LIMIT,o._options=new s.TextModelResolvedOptions(i.options),o._constructLines(i),o._setVersionId(1),o._isDisposed=!1,o._isDisposing=!1,o}return m(n,e),n.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},n.prototype.isTooLargeForHavingAMode=function(){return this._assertNotDisposed(),this._shouldDenyMode},n.prototype.isTooLargeForHavingARichMode=function(){return this._assertNotDisposed(),this._shouldSimplifyMode},n.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},n.prototype.updateOptions=function(e){this._assertNotDisposed();var t="undefined"!=typeof e.tabSize?e.tabSize:this._options.tabSize,n="undefined"!=typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,i="undefined"!=typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace,o=new s.TextModelResolvedOptions({tabSize:t,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:i});if(!this._options.equals(o)){var r=this._options.createChangeEvent(o);if(this._options=o,r.tabSize)for(var a=this._options.tabSize,u=0,l=this._lines.length;u=t.LONG_LINE_BOUNDARY?r+=i:o+=i;return r>o},n.prototype.getLineCount=function(){return this._assertNotDisposed(),this._lines.length},n.prototype.getLineContent=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");return this._lines[e-1].text},n.prototype.getIndentLevel=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");return this._lines[e-1].getIndentLevel()},n.prototype._resetIndentRanges=function(){this._indentRanges=null},n.prototype._getIndentRanges=function(){return this._indentRanges||(this._indentRanges=d.computeRanges(this)),this._indentRanges},n.prototype.getIndentRanges=function(){this._assertNotDisposed();var e=this._getIndentRanges();return d.IndentRange.deepCloneArr(e)},n.prototype._toValidLineIndentGuide=function(e,t){var n=this._lines[e-1].getIndentLevel();if(n===-1)return t;var i=Math.ceil(n/this._options.tabSize);return Math.min(i,t)},n.prototype.getLineIndentGuide=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");for(var t=this._getIndentRanges(),n=t.length-1;n>=0;n--){var i=t[n];if(i.startLineNumber===e)return this._toValidLineIndentGuide(e,Math.ceil(i.indent/this._options.tabSize));if(i.startLineNumber0;)n--,i=t[n],i.endLineNumber+1===e&&(o=i.indent);return this._toValidLineIndentGuide(e,Math.ceil(o/this._options.tabSize))}}return 0},n.prototype.getLinesContent=function(){this._assertNotDisposed();for(var e=[],t=0,n=this._lines.length;tthis.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");return this._lines[e-1].text.length+1},n.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");var t=i.firstNonWhitespaceIndex(this._lines[e-1].text);return t===-1?0:t+1},n.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");var t=i.lastNonWhitespaceIndex(this._lines[e-1].text);return t===-1?0:t+2},n.prototype.validateLineNumber=function(e){return this._assertNotDisposed(),e<1&&(e=1),e>this._lines.length&&(e=this._lines.length),e},n.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"==typeof e?e:1),s=Math.floor("number"==typeof t?t:1);if(r<1)return new o.Position(1,1);if(r>this._lines.length)return new o.Position(this._lines.length,this.getLineMaxColumn(this._lines.length));if(s<=1)return new o.Position(r,1);var a=this.getLineMaxColumn(r);if(s>=a)return new o.Position(r,a);if(n){var u=this._lines[r-1].text.charCodeAt(s-2);if(i.isHighSurrogate(u))return new o.Position(r,s-1)}return new o.Position(r,s)},n.prototype.validatePosition=function(e){return this._assertNotDisposed(),this._validatePosition(e.lineNumber,e.column,!0)},n.prototype.validateRange=function(e){this._assertNotDisposed();var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),o=t.lineNumber,s=t.column,a=n.lineNumber,u=n.column,l=this._lines[o-1].text,c=this._lines[a-1].text,d=s>1?l.charCodeAt(s-2):0,h=u>1&&u<=c.length?c.charCodeAt(u-2):0,p=i.isHighSurrogate(d),f=i.isHighSurrogate(h);return p||f?o===a&&s===u?new r.Range(o,s-1,a,u-1):p&&f?new r.Range(o,s-1,a,u+1):p?new r.Range(o,s-1,a,u):new r.Range(o,s,a,u+1):new r.Range(o,s,a,u)},n.prototype.modifyPosition=function(e,t){return this._assertNotDisposed(),this.getPositionAt(this.getOffsetAt(e)+t)},n.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new r.Range(1,1,e,this.getLineMaxColumn(e))},n.prototype._emitModelContentChangedFlushEvent=function(e){this._isDisposing||this.emit(s.EventType.ModelRawContentChanged,e)},n.toRawText=function(e,t){for(var n=0,o=-1;(o=e.indexOf("\r",o+1))!==-1;)n++;var r=i.containsRTL(e),a=!r&&i.isBasicASCII(e),l=e.split(/\r\n|\r|\n/),c="";i.startsWithUTF8BOM(l[0])&&(c=i.UTF8_BOM_CHARACTER,l[0]=l[0].substr(1));var d=l.length-1,h="";h=0===d?t.defaultEOL===s.DefaultEndOfLine.LF?"\n":"\r\n":n>d/2?"\r\n":"\n";var p;if(t.detectIndentation){var f=u.guessIndentation(l,t.tabSize,t.insertSpaces);p=new s.TextModelResolvedOptions({tabSize:f.tabSize,insertSpaces:f.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}else p=new s.TextModelResolvedOptions({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL});return{BOM:c,EOL:h,lines:l,length:e.length,containsRTL:r,isBasicASCII:a,options:p}},n.prototype._constructLines=function(e){for(var t=e.options.tabSize,n=e.lines,i=[],o=0,r=n.length;o=o.length)&&n.isLowSurrogate(o.charCodeAt(i))},e.isHighSurrogate=function(e,t,i){var o=e.getLineContent(t);return!(i<0||i>=o.length)&&n.isHighSurrogate(o.charCodeAt(i))},e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)},e.visibleColumnFromColumn=function(e,t,n){var i=e.length;i>t-1&&(i=t-1);for(var o=0,r=0;r=t){var u=t-o,l=a-t;return ls?s:o},e.nextTabStop=function(e,t){return e+t-e%t},e.prevTabStop=function(e,t){return e-1-(e-1)%t},e}();t.CursorColumns=c}),define(d[349],h([0,1,9,41,3,20,38]),function(e,t,n,i,o,r,s){"use strict";var a=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1}return e.unshiftIndentCount=function(e,t,n){var o=i.CursorColumns.visibleColumnFromColumn(e,t,n),r=i.CursorColumns.prevTabStop(o,n);return r/n},e.shiftIndentCount=function(e,t,n){var o=i.CursorColumns.visibleColumnFromColumn(e,t,n),r=i.CursorColumns.nextTabStop(o,n);return r/n},e.prototype.getEditOperations=function(t,r){var a=this._selection.startLineNumber,u=this._selection.endLineNumber;1===this._selection.endColumn&&a!==u&&(u-=1);var l,c=this._opts.tabSize,d=this._opts.oneIndent,h=a===u,p=["",d];this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(a))&&(this._useLastEditRangeForCursorEndPosition=!0);var f=0,g=0;for(l=a;l<=u;l++,f=g){g=0;var m=t.getLineContent(l),v=n.firstNonWhitespaceIndex(m);if((!this._opts.isUnshift||0!==m.length&&0!==v)&&(h||this._opts.isUnshift||0!==m.length)){if(v===-1&&(v=m.length),l>1){var _=i.CursorColumns.visibleColumnFromColumn(m,v+1,c);if(_%c!==0){var y=s.LanguageConfigurationRegistry.getRawEnterActionAtPosition(t,l-1,t.getLineMaxColumn(l-1));if(y){if(g=f,y.appendText)for(var C=0,b=y.appendText.length;Ca,d=s>u,h=su)continue;if(ys)continue;if(_1&&o--,this.columnSelect(e,t,n.selection.getStartPosition(),i,o)},e.columnSelectRight=function(e,t,n,r,s){for(var a=0,u=Math.min(n.position.lineNumber,r),l=Math.max(n.position.lineNumber,r),c=u;c<=l;c++){var d=t.getLineMaxColumn(c),h=o.CursorColumns.visibleColumnFromColumn2(e,t,new i.Position(c,d));a=Math.max(a,h)}return st.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection.getStartPosition(),o,r)},e}();t.ColumnSelection=r}),define(d[96],h([0,1,41,2,15,3]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n}return e}();t.CursorPosition=s;var a=function(){function e(e,t,n){this.state=e,this.ensureInEditableRange=t,this.reason=n}return e.fromMove=function(t,n,i,r,s,a,u){return new e(t.move(n,new o.Position(i,r),s),a,u)},e}();t.SingleMoveOperationResult=a;var u=function(){function e(){}return e.left=function(e,t,i,o){return o>t.getLineMinColumn(i)?o-=n.CursorColumns.isLowSurrogate(t,i,o-2)?2:1:i>1&&(i-=1,o=t.getLineMaxColumn(i)),new s(i,o,0)},e.moveLeft=function(t,n,o,r,s){var u,l;if(o.hasSelection()&&!r)u=o.selection.startLineNumber,l=o.selection.startColumn;else{var c=e.left(t,n,o.position.lineNumber,o.position.column-(s-1));u=c.lineNumber,l=c.column}return a.fromMove(o,r,u,l,0,!0,i.CursorChangeReason.Explicit)},e.right=function(e,t,i,o){return oc?(i=c,u?o=t.getLineMaxColumn(i):(o=Math.min(t.getLineMaxColumn(i),o),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1))):(o=n.CursorColumns.columnFromVisibleColumn2(e,t,i,l),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1)),r=l-n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new s(i,o,r)},e.moveDown=function(t,n,o,r,s){var u,l;o.hasSelection()&&!r?(u=o.selection.endLineNumber,l=o.selection.endColumn):(u=o.position.lineNumber,l=o.position.column);var c=e.down(t,n,u,l,o.leftoverVisibleColumns,s,!0);return a.fromMove(o,r,c.lineNumber,c.column,c.leftoverVisibleColumns,!0,i.CursorChangeReason.Explicit)},e.translateDown=function(t,s,u){var l=u.selection,c=e.down(t,s,l.selectionStartLineNumber,l.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),d=e.down(t,s,l.positionLineNumber,l.positionColumn,u.leftoverVisibleColumns,1,!1),h=new n.SingleCursorState(new r.Range(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new o.Position(d.lineNumber,d.column),d.leftoverVisibleColumns);return new a(h,!0,i.CursorChangeReason.Explicit)},e.up=function(e,t,i,o,r,a,u){var l=n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize)+r;return i-=a,i<1?(i=1,u?o=t.getLineMinColumn(i):(o=Math.min(t.getLineMaxColumn(i),o),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1))):(o=n.CursorColumns.columnFromVisibleColumn2(e,t,i,l),n.CursorColumns.isInsideSurrogatePair(t,i,o)&&(o-=1)),r=l-n.CursorColumns.visibleColumnFromColumn(t.getLineContent(i),o,e.tabSize),new s(i,o,r)},e.moveUp=function(t,n,o,r,s){var u,l;o.hasSelection()&&!r?(u=o.selection.startLineNumber,l=o.selection.startColumn):(u=o.position.lineNumber,l=o.position.column);var c=e.up(t,n,u,l,o.leftoverVisibleColumns,s,!0);return a.fromMove(o,r,c.lineNumber,c.column,c.leftoverVisibleColumns,!0,i.CursorChangeReason.Explicit)},e.translateUp=function(t,s,u){var l=u.selection,c=e.up(t,s,l.selectionStartLineNumber,l.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),d=e.up(t,s,l.positionLineNumber,l.positionColumn,u.leftoverVisibleColumns,1,!1),h=new n.SingleCursorState(new r.Range(c.lineNumber,c.column,c.lineNumber,c.column),c.leftoverVisibleColumns,new o.Position(d.lineNumber,d.column),d.leftoverVisibleColumns);return new a(h,!0,i.CursorChangeReason.Explicit)},e.moveToBeginningOfLine=function(e,t,n,o){var r,s=n.position.lineNumber,u=t.getLineMinColumn(s),l=t.getLineFirstNonWhitespaceColumn(s)||u,c=n.position.column;return r=c===l?u:l,a.fromMove(n,o,s,r,0,!0,i.CursorChangeReason.Explicit)},e.moveToEndOfLine=function(e,t,n,o){var r=n.position.lineNumber,s=t.getLineMaxColumn(r);return a.fromMove(n,o,r,s,0,!0,i.CursorChangeReason.Explicit)},e.moveToBeginningOfBuffer=function(e,t,n,o){return a.fromMove(n,o,1,1,0,!0,i.CursorChangeReason.Explicit)},e.moveToEndOfBuffer=function(e,t,n,o){var r=t.getLineCount(),s=t.getLineMaxColumn(r);return a.fromMove(n,o,r,s,0,!0,i.CursorChangeReason.Explicit)},e}();t.MoveOperations=u}),define(d[172],h([0,1,54,41,3,96,9]),function(e,t,n,i,o,r,s){"use strict";var a=function(){function e(){} -return e.deleteRight=function(e,t,s){var a=s.selection;if(a.isEmpty()){var u=s.position,l=r.MoveOperations.right(e,t,u.lineNumber,u.column);a=new o.Range(l.lineNumber,l.column,u.lineNumber,u.column)}if(a.isEmpty())return null;var c=!1;return a.startLineNumber!==a.endLineNumber&&(c=!0),new i.EditOperationResult(new n.ReplaceCommand(a,""),{shouldPushStackElementBefore:c,shouldPushStackElementAfter:!1})},e.autoClosingPairDelete=function(e,t,r){if(!e.autoClosingBrackets)return null;if(!r.selection.isEmpty())return null;var s=r.position,a=t.getLineContent(s.lineNumber),u=a[s.column-2];if(!e.autoClosingPairsOpen.hasOwnProperty(u))return null;var l=a[s.column-1],c=e.autoClosingPairsOpen[u];if(l!==c)return null;var d=new o.Range(s.lineNumber,s.column-1,s.lineNumber,s.column+1);return new i.EditOperationResult(new n.ReplaceCommand(d,""),{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1})},e.deleteLeft=function(e,t,a){var u=this.autoClosingPairDelete(e,t,a);if(u)return u;var l=a.selection;if(l.isEmpty()){var c=a.position;if(e.useTabStops&&c.column>1){var d=t.getLineContent(c.lineNumber),h=s.firstNonWhitespaceIndex(d),p=h===-1?d.length+1:h+1;if(c.column<=p){var f=i.CursorColumns.visibleColumnFromColumn2(e,t,c),g=i.CursorColumns.prevTabStop(f,e.tabSize),m=i.CursorColumns.columnFromVisibleColumn2(e,t,c.lineNumber,g);l=new o.Range(c.lineNumber,m,c.lineNumber,c.column)}else l=new o.Range(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var v=r.MoveOperations.left(e,t,c.lineNumber,c.column);l=new o.Range(v.lineNumber,v.column,c.lineNumber,c.column)}}if(l.isEmpty())return null;var _=!1;return l.startLineNumber!==l.endLineNumber&&(_=!0),new i.EditOperationResult(new n.ReplaceCommand(l,""),{shouldPushStackElementBefore:_,shouldPushStackElementAfter:!1})},e.cut=function(e,t,r,s){var a=r.selection;if(a.isEmpty()){if(s){var u=r.position,l=void 0,c=void 0,d=void 0,h=void 0;u.lineNumber1?(l=u.lineNumber-1,c=t.getLineMaxColumn(u.lineNumber-1),d=u.lineNumber,h=t.getLineMaxColumn(u.lineNumber)):(l=u.lineNumber,c=1,d=u.lineNumber,h=t.getLineMaxColumn(u.lineNumber));var p=new o.Range(l,c,d,h);return p.isEmpty()?null:new i.EditOperationResult(new n.ReplaceCommand(p,""),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})}return null}return this.deleteRight(e,t,r)},e}();t.DeleteOperations=a}),define(d[353],h([0,1,10,54,41,3,2,9,349,38,65,479]),function(e,t,n,i,o,r,s,a,u,l,c,d){"use strict";var h=function(){function e(){}return e.indent=function(e,t,n){return new o.EditOperationResult(new u.ShiftCommand(n.selection,{isUnshift:!1,tabSize:e.tabSize,oneIndent:e.oneIndent}),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0,shouldRevealHorizontal:!1})},e.outdent=function(e,t,n){return new o.EditOperationResult(new u.ShiftCommand(n.selection,{isUnshift:!0,tabSize:e.tabSize,oneIndent:e.oneIndent}),{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0,shouldRevealHorizontal:!1})},e.shiftIndent=function(e,t,n){n=n||1;for(var i=u.ShiftCommand.shiftIndentCount(t,t.length+n,e.tabSize),o="",r=0;r=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(0===s){if(2===i)return this._createWord(e,i,o+1,this._findEndOfWord(e,t,i,o+1));i=1}else if(2===s){if(1===i)return this._createWord(e,i,o+1,this._findEndOfWord(e,t,i,o+1));i=2}else if(1===s&&0!==i)return this._createWord(e,i,o+1,this._findEndOfWord(e,t,i,o+1))}return 0!==i?this._createWord(e,i,0,this._findEndOfWord(e,t,i,0)):null},e._findEndOfWord=function(e,t,n,i){for(var o=e.length,r=i;r=0;o--){var r=e.charCodeAt(o),s=t.get(r);if(1===s)return o+1;if(1===n&&2===s)return o+1;if(2===n&&0===s)return o+1}return 0},e.moveWordLeft=function(t,n,o,a,u){var l=o.position,c=l.lineNumber,d=l.column;1===d&&c>1&&(c-=1,d=n.getLineMaxColumn(c));var h=e.findPreviousWordOnLine(t,n,new i.Position(c,d));return 0===u?d=h?h.start+1:1:(h&&d<=h.end+1&&(h=e.findPreviousWordOnLine(t,n,new i.Position(c,h.start+1))),d=h?h.end+1:1),r.SingleMoveOperationResult.fromMove(o,a,c,d,0,!0,s.CursorChangeReason.Explicit)},e.moveWordRight=function(t,n,o,a,u){var l=o.position,c=l.lineNumber,d=l.column;d===n.getLineMaxColumn(c)&&c=h.start+1&&(h=e.findNextWordOnLine(t,n,new i.Position(c,h.end+1))),d=h?h.start+1:n.getLineMaxColumn(c)),r.SingleMoveOperationResult.fromMove(o,a,c,d,0,!0,s.CursorChangeReason.Explicit)},e._deleteWordLeftWhitespace=function(e,t,i){var o=i.position,r=t.getLineContent(o.lineNumber),s=o.column-2,a=u.lastNonWhitespaceIndex(r,s);if(a+1=_.start+1&&(_=e.findNextWordOnLine(t,o,new i.Position(p,_.end+1))),_?f=_.start+1:ft.endLineNumber||e.lineNumber===t.endLineNumber&&e.column>t.endColumn?new o.Position(t.endLineNumber,t.endColumn):e},e.prototype._setState=function(e,t,n){var o=this.model.validateRange(e.selectionStart),r=e.selectionStart.equalsRange(o)?e.selectionStartLeftoverVisibleColumns:0,s=this.model.validatePosition(e.position);n&&(s=this._ensureInEditableRange(s));var a=e.position.equals(s)?e.leftoverVisibleColumns:0;e=new i.SingleCursorState(o,r,s,a);var u=this.viewModelHelper.validateViewRange(t.selectionStart,e.selectionStart),l=this.viewModelHelper.validateViewPosition(t.position,e.position);t=new i.SingleCursorState(u,r,l,a),this.modelState&&this.viewState&&this.modelState.equals(e)&&this.viewState.equals(t)||(this.modelState=e,this.viewState=t,this._selStartMarker=this._ensureMarker(this._selStartMarker,this.modelState.selection.startLineNumber,this.modelState.selection.startColumn,!0),this._selEndMarker=this._ensureMarker(this._selEndMarker,this.modelState.selection.endLineNumber,this.modelState.selection.endColumn,!1))},e.prototype._ensureMarker=function(e,t,n,i){return e?(this.model._changeMarker(e,t,n),this.model._changeMarkerStickiness(e,i),e):this.model._addMarker(0,t,n,i)},e.prototype.saveState=function(){return{selectionStart:this.modelState.selectionStart,viewSelectionStart:this.viewState.selectionStart,position:this.modelState.position,viewPosition:this.viewState.position,leftoverVisibleColumns:this.modelState.leftoverVisibleColumns,selectionStartLeftoverVisibleColumns:this.modelState.selectionStartLeftoverVisibleColumns}},e.prototype.restoreState=function(e){var t,n=this.model.validatePosition(e.position);t=e.selectionStart?this.model.validateRange(e.selectionStart):new r.Range(n.lineNumber,n.column,n.lineNumber,n.column);var s,a=this.viewModelHelper.validateViewPosition(new o.Position(e.viewPosition.lineNumber,e.viewPosition.column),n);s=e.viewSelectionStart?this.viewModelHelper.validateViewRange(new r.Range(e.viewSelectionStart.startLineNumber,e.viewSelectionStart.startColumn,e.viewSelectionStart.endLineNumber,e.viewSelectionStart.endColumn),t):this.viewModelHelper.convertModelRangeToViewRange(t),this._setState(new i.SingleCursorState(t,e.selectionStartLeftoverVisibleColumns,n,e.leftoverVisibleColumns),new i.SingleCursorState(s,e.selectionStartLeftoverVisibleColumns,a,e.leftoverVisibleColumns),!1)},e.prototype.updateModeConfiguration=function(e){this.modeConfiguration=e,this._recreateCursorConfig()},e.prototype.duplicate=function(){var t=new e(this.model,this.configuration,this.modeConfiguration,this.viewModelHelper);return t._setState(this.modelState,this.viewState,!1),t},e.prototype.dispose=function(){this._modelOptionsListener.dispose(),this._configChangeListener.dispose(),this.model._removeMarker(this._selStartMarker),this.model._removeMarker(this._selEndMarker)},e.prototype.setSelection=function(e,t){void 0===t&&(t=null);var n,s,a=this.model.validatePosition({lineNumber:e.positionLineNumber,column:e.positionColumn}),u=this.model.validatePosition({lineNumber:e.selectionStartLineNumber,column:e.selectionStartColumn});t?(n=this.viewModelHelper.validateViewPosition(new o.Position(t.positionLineNumber,t.positionColumn),a),s=this.viewModelHelper.validateViewPosition(new o.Position(t.selectionStartLineNumber,t.selectionStartColumn),u)):(n=this.viewModelHelper.convertModelPositionToViewPosition(a.lineNumber,a.column),s=this.viewModelHelper.convertModelPositionToViewPosition(u.lineNumber,u.column)),this._setState(new i.SingleCursorState(new r.Range(u.lineNumber,u.column,u.lineNumber,u.column),0,a,0),new i.SingleCursorState(new r.Range(s.lineNumber,s.column,s.lineNumber,s.column),0,n,0),!1)},e.prototype.setSelectionStart=function(e){this._setState(this.modelState.withSelectionStart(e),this.viewState.withSelectionStart(this.viewModelHelper.convertModelRangeToViewRange(e)),!1)},e.prototype.collapseSelection=function(){this._setState(this.modelState.collapse(),this.viewState.collapse(),!1)},e.prototype.moveModelPosition=function(e,t,n,i,o){var r=this.viewModelHelper.convertModelPositionToViewPosition(t,n);this._move(e,t,n,r.lineNumber,r.column,i,o)},e.prototype.moveViewPosition=function(e,t,n,i,o){var r=this.viewModelHelper.convertViewToModelPosition(t,n);this._move(e,r.lineNumber,r.column,t,n,i,o)},e.prototype._move=function(e,t,n,i,r,s,a){this._setState(this.modelState.move(e,new o.Position(t,n),s),this.viewState.move(e,new o.Position(i,r),s),a)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype.beginRecoverSelectionFromMarkers=function(){var e=this.model._getMarker(this._selStartMarker),t=this.model._getMarker(this._selEndMarker);return this.modelState.selection.getDirection()===s.SelectionDirection.LTR?new s.Selection(e.lineNumber,e.column,t.lineNumber,t.column):new s.Selection(t.lineNumber,t.column,e.lineNumber,e.column)},e.prototype.endRecoverSelectionFromMarkers=function(e,t){e.cursorPositionChangeReason=a.CursorChangeReason.RecoverFromMarkers,e.shouldPushStackElementBefore=!0,e.shouldPushStackElementAfter=!0,e.shouldReveal=!1,e.shouldRevealHorizontal=!1;var n=new r.Range(t.selectionStartLineNumber,t.selectionStartColumn,t.selectionStartLineNumber,t.selectionStartColumn),s=new o.Position(t.positionLineNumber,t.positionColumn),u=this.viewModelHelper.convertModelRangeToViewRange(n),l=this.viewModelHelper.convertViewToModelPosition(s.lineNumber,s.column);return this._setState(new i.SingleCursorState(n,0,s,0),new i.SingleCursorState(u,0,l,0),!1),!0},e.prototype.setSelectionStartLeftoverVisibleColumns=function(e){this._setState(this.modelState.withSelectionStartLeftoverVisibleColumns(e),this.viewState.withSelectionStartLeftoverVisibleColumns(e),!1)},e.prototype.validatePosition=function(e){return this.model.validatePosition(e)},e.prototype.validateViewPosition=function(e,t,n){return this.viewModelHelper.validateViewPosition(new o.Position(e,t),n)},e.prototype.convertViewSelectionToModelSelection=function(e){return this.viewModelHelper.convertViewSelectionToModelSelection(e)},e.prototype.convertViewToModelPosition=function(e,t){return this.viewModelHelper.convertViewToModelPosition(e,t)},e.prototype.convertModelPositionToViewPosition=function(e,t){return this.viewModelHelper.convertModelPositionToViewPosition(e,t)},e.prototype.getRangeToRevealModelLinesBeforeViewPortTop=function(e){var t,n=this.viewModelHelper.getCurrentCompletelyVisibleModelLinesRangeInViewport();t=this.model.getLineMinColumn(n.startLineNumber)!==n.startColumn?n.startLineNumber:n.startLineNumber-1,t-=e-1,t=this.model.validateRange({startLineNumber:t,startColumn:1,endLineNumber:t,endColumn:1}).startLineNumber;var i=this.model.getLineMinColumn(t),o=this.model.getLineMaxColumn(n.startLineNumber);return new r.Range(t,i,t,o)},e.prototype.getRangeToRevealModelLinesAfterViewPortBottom=function(e){var t=this.viewModelHelper.getCurrentCompletelyVisibleModelLinesRangeInViewport(),n=t.endLineNumber+(e-1);n=this.model.validateRange({startLineNumber:n,startColumn:1,endLineNumber:n,endColumn:1}).startLineNumber;var i=this.model.getLineMinColumn(n),o=this.model.getLineMaxColumn(n);return new r.Range(n,i,n,o)},e.prototype.getLineFromViewPortTop=function(e){void 0===e&&(e=1);var t=this.viewModelHelper.getCurrentCompletelyVisibleModelLinesRangeInViewport(),n=this.model.getLineMinColumn(t.startLineNumber),i=t.startColumn===n?t.startLineNumber:t.startLineNumber+1;return i=i+e-1,i>t.endLineNumber?t.endLineNumber:i},e.prototype.getCenterLineInViewPort=function(){return Math.round((this.getLineFromViewPortTop()+this.getLineFromViewPortBottom()-1)/2)},e.prototype.getLineFromViewPortBottom=function(e){void 0===e&&(e=1);var t=this.viewModelHelper.getCurrentCompletelyVisibleModelLinesRangeInViewport(),n=t.endLineNumber-(e-1);return n>t.startLineNumber?n:this.getLineFromViewPortTop()},e.prototype.isLastLineVisibleInViewPort=function(){return this.viewModel.getLineCount()<=this.getCompletelyVisibleViewLinesRangeInViewport().getEndPosition().lineNumber},e.prototype.getCompletelyVisibleViewLinesRangeInViewport=function(){return this.viewModelHelper.getCurrentCompletelyVisibleViewLinesRangeInViewport()},e.prototype.getRevealViewLinesRangeInViewport=function(){var e=this.getCompletelyVisibleViewLinesRangeInViewport().cloneRange();return!this.isLastLineVisibleInViewPort()&&e.endLineNumber>e.startLineNumber&&(e=new r.Range(e.startLineNumber,e.startColumn,e.endLineNumber-1,this.viewModel.getLineLastNonWhitespaceColumn(e.endLineNumber-1))),e},e.prototype.getNearestRevealViewPositionInViewport=function(){var e=this.viewState.position,t=this.getRevealViewLinesRangeInViewport();return e.lineNumbert.endLineNumber?new o.Position(t.endLineNumber,this.viewModel.getLineFirstNonWhitespaceColumn(t.endLineNumber)):e},e}();t.OneCursor=d;var h=function(){function e(){}return e.moveTo=function(e,t,n,i,o,r){var s,u=e.model.validatePosition(n);s=i?e.validateViewPosition(i.lineNumber,i.column,u):e.convertModelPositionToViewPosition(u.lineNumber,u.column);var l="mouse"===o?a.CursorChangeReason.Explicit:a.CursorChangeReason.NotSet;return"api"===o&&(r.shouldRevealVerticalInCenter=!0),l&&(r.cursorPositionChangeReason=l),e.moveViewPosition(t,s.lineNumber,s.column,0,!1),!0},e._getViewHalfLineSize=function(e,t){return Math.round((e.viewModel.getLineMaxColumn(t)-e.viewModel.getLineMinColumn(t))/2)},e.move=function(e,t,i,o){t.to||n.illegalArgument("to");var r,s=!!t.select,u=e.viewState.position,l=u.lineNumber;switch(t.to){case a.CursorMovePosition.Left:return this._moveLeft(e,s,a.CursorMoveByUnit.HalfLine===t.by?this._getViewHalfLineSize(e,l):t.value,o);case a.CursorMovePosition.Right:return this._moveRight(e,s,a.CursorMoveByUnit.HalfLine===t.by?this._getViewHalfLineSize(e,l):t.value,o);case a.CursorMovePosition.Up:return this._moveUp(e,t,o);case a.CursorMovePosition.Down:return this._moveDown(e,t,o);case a.CursorMovePosition.WrappedLineStart:r=e.viewModel.getLineMinColumn(l);break;case a.CursorMovePosition.WrappedLineFirstNonWhitespaceCharacter:r=e.viewModel.getLineFirstNonWhitespaceColumn(l);break;case a.CursorMovePosition.WrappedLineColumnCenter:r=Math.round((e.viewModel.getLineMaxColumn(l)+e.viewModel.getLineMinColumn(l))/2);break;case a.CursorMovePosition.WrappedLineEnd:r=e.viewModel.getLineMaxColumn(l);break;case a.CursorMovePosition.WrappedLineLastNonWhitespaceCharacter:r=e.viewModel.getLineLastNonWhitespaceColumn(l);break;case a.CursorMovePosition.ViewPortTop:l=e.convertModelPositionToViewPosition(e.getLineFromViewPortTop(t.value),1).lineNumber,r=e.viewModel.getLineFirstNonWhitespaceColumn(l);break;case a.CursorMovePosition.ViewPortBottom:l=e.convertModelPositionToViewPosition(e.getLineFromViewPortBottom(t.value),1).lineNumber,r=e.viewModel.getLineFirstNonWhitespaceColumn(l);break;case a.CursorMovePosition.ViewPortCenter:l=e.convertModelPositionToViewPosition(e.getCenterLineInViewPort(),1).lineNumber,r=e.viewModel.getLineFirstNonWhitespaceColumn(l);break;case a.CursorMovePosition.ViewPortIfOutside:var c=e.getNearestRevealViewPositionInViewport();l=c.lineNumber,r=c.column;break;default:return!1}return o.cursorPositionChangeReason=a.CursorChangeReason.Explicit,e.moveViewPosition(s,l,r,0,!0),!0},e._applyMoveOperationResult=function(e,t,n){return t.cursorPositionChangeReason=n.reason,e.setState(n.modelState,n.viewState,n.ensureInEditableRange),!0},e._fromModelCursorState=function(e,t){var n=e.convertModelPositionToViewPosition(t.state.selectionStart.startLineNumber,t.state.selectionStart.startColumn),o=e.convertModelPositionToViewPosition(t.state.selectionStart.endLineNumber,t.state.selectionStart.endColumn),s=new r.Range(n.lineNumber,n.column,o.lineNumber,o.column),a=e.convertModelPositionToViewPosition(t.state.position.lineNumber,t.state.position.column);return new c(t.state,new i.SingleCursorState(s,t.state.selectionStartLeftoverVisibleColumns,a,t.state.leftoverVisibleColumns),t.ensureInEditableRange,t.reason)},e._fromViewCursorState=function(e,t){var n=e.convertViewToModelPosition(t.state.selectionStart.startLineNumber,t.state.selectionStart.startColumn),o=e.convertViewToModelPosition(t.state.selectionStart.endLineNumber,t.state.selectionStart.endColumn),s=new r.Range(n.lineNumber,n.column,o.lineNumber,o.column),a=e.convertViewToModelPosition(t.state.position.lineNumber,t.state.position.column);return new c(new i.SingleCursorState(s,t.state.selectionStartLeftoverVisibleColumns,a,t.state.leftoverVisibleColumns),t.state,t.ensureInEditableRange,t.reason)},e._moveLeft=function(e,t,n,i){return void 0===n&&(n=1),this._applyMoveOperationResult(e,i,this._fromViewCursorState(e,u.MoveOperations.moveLeft(e.config,e.viewModel,e.viewState,t,n)))},e.moveWordLeft=function(e,t,n,i){ -return this._applyMoveOperationResult(e,i,this._fromModelCursorState(e,l.WordOperations.moveWordLeft(e.config,e.model,e.modelState,t,n)))},e._moveRight=function(e,t,n,i){return void 0===n&&(n=1),this._applyMoveOperationResult(e,i,this._fromViewCursorState(e,u.MoveOperations.moveRight(e.config,e.viewModel,e.viewState,t,n)))},e.moveWordRight=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromModelCursorState(e,l.WordOperations.moveWordRight(e.config,e.model,e.modelState,t,n)))},e._moveDown=function(e,t,n){var i=(t.isPaged?t.pageSize||e.config.pageSize:t.value)||1;return a.CursorMoveByUnit.WrappedLine===t.by?this._moveDownByViewLines(e,t.select,i,n):this._moveDownByModelLines(e,t.select,i,n)},e._moveDownByViewLines=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromViewCursorState(e,u.MoveOperations.moveDown(e.config,e.viewModel,e.viewState,t,n)))},e._moveDownByModelLines=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromModelCursorState(e,u.MoveOperations.moveDown(e.config,e.model,e.modelState,t,n)))},e.translateDown=function(e,t){return this._applyMoveOperationResult(e,t,this._fromViewCursorState(e,u.MoveOperations.translateDown(e.config,e.viewModel,e.viewState)))},e._moveUp=function(e,t,n){var i=(t.isPaged?t.pageSize||e.config.pageSize:t.value)||1;return a.CursorMoveByUnit.WrappedLine===t.by?this._moveUpByViewLines(e,t.select,i,n):this._moveUpByModelLines(e,t.select,i,n)},e._moveUpByViewLines=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromViewCursorState(e,u.MoveOperations.moveUp(e.config,e.viewModel,e.viewState,t,n)))},e._moveUpByModelLines=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromModelCursorState(e,u.MoveOperations.moveUp(e.config,e.model,e.modelState,t,n)))},e.translateUp=function(e,t){return this._applyMoveOperationResult(e,t,this._fromViewCursorState(e,u.MoveOperations.translateUp(e.config,e.viewModel,e.viewState)))},e.moveToBeginningOfLine=function(e,t,n){return this._applyMoveOperationResult(e,n,this._fromViewCursorState(e,u.MoveOperations.moveToBeginningOfLine(e.config,e.viewModel,e.viewState,t)))},e.moveToEndOfLine=function(e,t,n){return this._applyMoveOperationResult(e,n,this._fromViewCursorState(e,u.MoveOperations.moveToEndOfLine(e.config,e.viewModel,e.viewState,t)))},e.expandLineSelection=function(e,t){t.cursorPositionChangeReason=a.CursorChangeReason.Explicit;var n=e.viewState.selection,i=n.startLineNumber,o=n.startColumn,r=n.endLineNumber,s=n.endColumn,l=e.viewModel.getLineMaxColumn(r);if(1!==o||s!==l)o=1,s=l;else{var c=u.MoveOperations.down(e.config,e.viewModel,r,s,0,1,!0);r=c.lineNumber,s=e.viewModel.getLineMaxColumn(r)}return e.moveViewPosition(!1,i,o,0,!0),e.moveViewPosition(!0,r,s,0,!0),!0},e.moveToBeginningOfBuffer=function(e,t,n){return this._applyMoveOperationResult(e,n,this._fromModelCursorState(e,u.MoveOperations.moveToBeginningOfBuffer(e.config,e.model,e.modelState,t)))},e.moveToEndOfBuffer=function(e,t,n){return this._applyMoveOperationResult(e,n,this._fromModelCursorState(e,u.MoveOperations.moveToEndOfBuffer(e.config,e.model,e.modelState,t)))},e.selectAll=function(e,t){var n,i,o,r,s=!0;if(e.model.hasEditableRange()){var a=e.model.getEditableRange(),u=e.modelState.selection;u.equalsRange(a)||(s=!1,n=a.startLineNumber,i=a.startColumn,o=a.endLineNumber,r=a.endColumn)}return s&&(n=1,i=1,o=e.model.getLineCount(),r=e.model.getLineMaxColumn(o)),e.moveModelPosition(!1,n,i,0,!1),e.moveModelPosition(!0,o,r,0,!1),t.shouldReveal=!1,t.shouldRevealHorizontal=!1,!0},e.line=function(e,t,n,i,o){var s=e.validatePosition(n),u=i?e.validateViewPosition(i.lineNumber,i.column,s):e.convertModelPositionToViewPosition(s.lineNumber,s.column);if(o.cursorPositionChangeReason=a.CursorChangeReason.Explicit,o.shouldRevealHorizontal=!1,t&&e.modelState.hasSelection()){var l=e.modelState.selectionStart.getStartPosition().lineNumber;if(s.lineNumberl){var c=u.lineNumber+1,d=1;c>e.viewModel.getLineCount()&&(c=e.viewModel.getLineCount(),d=e.viewModel.getLineMaxColumn(c)),e.moveViewPosition(e.modelState.hasSelection(),c,d,0,!1)}else{var h=e.modelState.selectionStart.getEndPosition();e.moveModelPosition(e.modelState.hasSelection(),h.lineNumber,h.column,0,!1)}return!0}var p=s.lineNumber+1,f=1;p>e.model.getLineCount()&&(p=e.model.getLineCount(),f=e.model.getLineMaxColumn(p));var g=new r.Range(s.lineNumber,1,p,f);return e.setSelectionStart(g),e.moveModelPosition(e.modelState.hasSelection(),g.endLineNumber,g.endColumn,0,!1),!0},e.word=function(e,t,n,i){return this._applyMoveOperationResult(e,i,this._fromModelCursorState(e,l.WordOperations.word(e.config,e.model,e.modelState,t,n)))},e.cancelSelection=function(e,t){return!!e.modelState.hasSelection()&&(e.collapseSelection(),!0)},e}();t.OneCursorOp=h}),define(d[356],h([0,1,10,126,20,38]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e,t,n){this.model=e,this.configuration=t,this.viewModelHelper=n,this.modeConfiguration=this.getModeConfiguration(),this.primaryCursor=new i.OneCursor(this.model,this.configuration,this.modeConfiguration,this.viewModelHelper),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(),this.killSecondaryCursors()},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState();for(var e=0,t=this.secondaryCursors.length;e0},e.prototype.normalize=function(){this._mergeCursorsIfNecessary()},e.prototype.addSecondaryCursor=function(e){var t=new i.OneCursor(this.model,this.configuration,this.modeConfiguration,this.viewModelHelper);e&&t.setSelection(e),this.secondaryCursors.push(t),this.lastAddedCursorIndex=this.secondaryCursors.length},e.prototype.duplicateCursors=function(){var e=[];e.push(this.primaryCursor.duplicate());for(var t=0,n=this.secondaryCursors.length;ti)for(var a=n-i,s=0;s=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(),this.secondaryCursors.splice(e,1)},e.prototype._mergeCursorsIfNecessary=function(){if(0!==this.secondaryCursors.length){for(var e=this.getAll(),t=[],n=0;nd&&t[C].index--;e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),i--}}}},e.prototype.getModeConfiguration=function(){var e,t={electricChars:{},autoClosingPairsOpen:{},autoClosingPairsClose:{},surroundingPairs:{}},i=null;try{i=r.LanguageConfigurationRegistry.getElectricCharacters(this.model.getLanguageIdentifier().id)}catch(e){n.onUnexpectedError(e),i=null}if(i)for(e=0;e50&&(this.cursorUndoStack=this.cursorUndoStack.splice(0,this.cursorUndoStack.length-50)),this.emitCursorPositionChanged(g,u),l&&this.revealRange(h,c?1:0,d),this.emitCursorSelectionChanged(g,u))}catch(e){o.onUnexpectedError(e)}return this._isHandling=!1,r},t.prototype._interpretHandlerContext=function(e){e.shouldPushStackElementBefore&&(this.model.pushStackElement(),e.shouldPushStackElementBefore=!1),this._columnSelectToLineNumber=e.setColumnSelectToLineNumber,this._columnSelectToVisualColumn=e.setColumnSelectToVisualColumn,e.hasExecutedCommands=this._internalExecuteCommands(e.executeCommands,e.isAutoWhitespaceCommand)||e.hasExecutedCommands,e.executeCommands=[],e.shouldPushStackElementAfter&&(this.model.pushStackElement(),e.shouldPushStackElementAfter=!1)},t.prototype._interpretCommandResult=function(e){return!(!e||0===e.length)&&(this.cursors.setSelections(e),!0)},t.prototype._getEditOperationsFromCommand=function(e,t,i,r){var s=this,a=[],u=0,l=function(e,n){e.isEmpty()&&""===n||a.push({identifier:{major:t,minor:u++},range:e,text:n,forceMoveMarkers:!1,isAutoWhitespaceEdit:r})},c=!1,h=function(t,n){var i,o;if(t.isEmpty())if("boolean"==typeof n)i=n,o=n;else{var r=s.model.getLineMaxColumn(t.startLineNumber);t.startColumn===r?(i=!0,o=!0):(i=!1,o=!1)}else t.getDirection()===d.SelectionDirection.LTR?(i=!1,o=!0):(i=!0,o=!1);var a=e.selectionStartMarkers.length;return e.selectionStartMarkers[a]=s.model._addMarker(0,t.selectionStartLineNumber,t.selectionStartColumn,i),e.positionMarkers[a]=s.model._addMarker(0,t.positionLineNumber,t.positionColumn,o),a.toString()},p={addEditOperation:l,trackSelection:h};try{i.getEditOperations(this.model,p)}catch(e){return e.friendlyMessage=n.localize(0,null),o.onUnexpectedError(e),{operations:[],hadTrackedRange:!1}}return{operations:a,hadTrackedRange:c}},t.prototype._getEditOperations=function(e,t,n){for(var i,o,r=[],s=[],a=0;an.identifier.major?t.identifier.major:n.identifier.major,o[i.toString()]=!0;for(var s=0;s0&&r--}return o},t.prototype._collapseDeleteCommands=function(e,t){if(1!==e.length){var n=e.every(function(e){if(!(e instanceof a.ReplaceCommand))return!1;var t=e;return!(t.getText().length>0)});if(n){var i=e,o=i.map(function(e,t){return{range:i[t].getRange(),order:t}});o.sort(function(e,t){return c.Range.compareRangesUsingStarts(e.range,t.range)});for(var r=o[0],s=1;s0||r.hadTrackedRanges[a]?(s[a].sort(l),c[a]=t[a].computeCursorState(i.model,{getInverseEditOperations:function(){return s[a]},getTrackedSelection:function(t){var n=parseInt(t,10),o=i.model._getMarker(e.selectionStartMarkers[n]),r=i.model._getMarker(e.positionMarkers[n]);return new d.Selection(o.lineNumber,o.column,r.lineNumber,r.column)}})):c[a]=o[a];return c}),v=[];for(g in p)p.hasOwnProperty(g)&&v.push(parseInt(g,10));v.sort(function(e,t){return t-e});for(var c=0;c1)return;var u=new c.Range(r.lineNumber,r.column,r.lineNumber,r.column),l=new c.Range(s.lineNumber,s.column,s.lineNumber,s.column);this.emitCursorRevealRange(u,l,t,n,!1)},t.prototype.emitCursorRevealRange=function(e,t,n,i,o){var r={range:e,viewRange:t,verticalType:n,revealHorizontal:i,revealCursor:o};this.emit(h.EventType.CursorRevealRange,r)},t.prototype.trigger=function(e,t,n){if(this._handlers.hasOwnProperty(t)){var i=this._handlers[t];this._onHandler(t,i,e,n)}},t.prototype._registerHandlers=function(){var e=this,t=h.Handler;this._handlers[t.CursorMove]=function(t){return e._cursorMove(t)},this._handlers[t.MoveTo]=function(t){return e._moveTo(!1,t)},this._handlers[t.MoveToSelect]=function(t){return e._moveTo(!0,t)},this._handlers[t.ColumnSelect]=function(t){return e._columnSelectMouse(t)},this._handlers[t.AddCursorUp]=function(t){return e._addCursorUp(t)},this._handlers[t.AddCursorDown]=function(t){return e._addCursorDown(t)},this._handlers[t.CreateCursor]=function(t){return e._createCursor(t)},this._handlers[t.LastCursorMoveToSelect]=function(t){return e._lastCursorMoveTo(t)},this._handlers[t.CursorLeft]=function(t){return e._moveLeft(!1,t)},this._handlers[t.CursorLeftSelect]=function(t){return e._moveLeft(!0,t)},this._handlers[t.CursorWordLeft]=function(t){return e._moveWordLeft(!1,0,t)},this._handlers[t.CursorWordStartLeft]=function(t){return e._moveWordLeft(!1,0,t)},this._handlers[t.CursorWordEndLeft]=function(t){return e._moveWordLeft(!1,1,t)},this._handlers[t.CursorWordLeftSelect]=function(t){return e._moveWordLeft(!0,0,t)},this._handlers[t.CursorWordStartLeftSelect]=function(t){return e._moveWordLeft(!0,0,t)},this._handlers[t.CursorWordEndLeftSelect]=function(t){return e._moveWordLeft(!0,1,t)},this._handlers[t.CursorRight]=function(t){return e._moveRight(!1,t)},this._handlers[t.CursorRightSelect]=function(t){return e._moveRight(!0,t)},this._handlers[t.CursorWordRight]=function(t){return e._moveWordRight(!1,1,t)},this._handlers[t.CursorWordStartRight]=function(t){return e._moveWordRight(!1,0,t)},this._handlers[t.CursorWordEndRight]=function(t){return e._moveWordRight(!1,1,t)},this._handlers[t.CursorWordRightSelect]=function(t){return e._moveWordRight(!0,1,t)},this._handlers[t.CursorWordStartRightSelect]=function(t){return e._moveWordRight(!0,0,t)},this._handlers[t.CursorWordEndRightSelect]=function(t){return e._moveWordRight(!0,1,t)},this._handlers[t.CursorUp]=function(t){return e._moveUp(!1,!1,t)},this._handlers[t.CursorUpSelect]=function(t){return e._moveUp(!0,!1,t)},this._handlers[t.CursorDown]=function(t){return e._moveDown(!1,!1,t)},this._handlers[t.CursorDownSelect]=function(t){return e._moveDown(!0,!1,t)},this._handlers[t.CursorPageUp]=function(t){return e._moveUp(!1,!0,t)},this._handlers[t.CursorPageUpSelect]=function(t){return e._moveUp(!0,!0,t)},this._handlers[t.CursorPageDown]=function(t){return e._moveDown(!1,!0,t)},this._handlers[t.CursorPageDownSelect]=function(t){return e._moveDown(!0,!0,t)},this._handlers[t.CursorHome]=function(t){return e._moveToBeginningOfLine(!1,t)},this._handlers[t.CursorHomeSelect]=function(t){return e._moveToBeginningOfLine(!0,t)},this._handlers[t.CursorEnd]=function(t){return e._moveToEndOfLine(!1,t)},this._handlers[t.CursorEndSelect]=function(t){return e._moveToEndOfLine(!0,t)},this._handlers[t.CursorTop]=function(t){return e._moveToBeginningOfBuffer(!1,t)},this._handlers[t.CursorTopSelect]=function(t){return e._moveToBeginningOfBuffer(!0,t)},this._handlers[t.CursorBottom]=function(t){return e._moveToEndOfBuffer(!1,t)},this._handlers[t.CursorBottomSelect]=function(t){return e._moveToEndOfBuffer(!0,t)},this._handlers[t.CursorColumnSelectLeft]=function(t){return e._columnSelectLeft(t)},this._handlers[t.CursorColumnSelectRight]=function(t){return e._columnSelectRight(t)},this._handlers[t.CursorColumnSelectUp]=function(t){return e._columnSelectUp(!1,t)},this._handlers[t.CursorColumnSelectPageUp]=function(t){return e._columnSelectUp(!0,t)},this._handlers[t.CursorColumnSelectDown]=function(t){return e._columnSelectDown(!1,t)},this._handlers[t.CursorColumnSelectPageDown]=function(t){return e._columnSelectDown(!0,t)},this._handlers[t.SelectAll]=function(t){return e._selectAll(t)},this._handlers[t.LineSelect]=function(t){return e._line(!1,t)},this._handlers[t.LineSelectDrag]=function(t){return e._line(!0,t)},this._handlers[t.LastCursorLineSelect]=function(t){return e._lastCursorLine(!1,t)},this._handlers[t.LastCursorLineSelectDrag]=function(t){return e._lastCursorLine(!0,t)},this._handlers[t.LineInsertBefore]=function(t){return e._lineInsertBefore(t)},this._handlers[t.LineInsertAfter]=function(t){return e._lineInsertAfter(t)},this._handlers[t.LineBreakInsert]=function(t){return e._lineBreakInsert(t)},this._handlers[t.WordSelect]=function(t){return e._word(!1,t)},this._handlers[t.WordSelectDrag]=function(t){return e._word(!0,t)},this._handlers[t.LastCursorWordSelect]=function(t){return e._lastCursorWord(t)},this._handlers[t.CancelSelection]=function(t){return e._cancelSelection(t)},this._handlers[t.RemoveSecondaryCursors]=function(t){return e._removeSecondaryCursors(t)},this._handlers[t.Type]=function(t){return e._type(t)},this._handlers[t.ReplacePreviousChar]=function(t){return e._replacePreviousChar(t)},this._handlers[t.Tab]=function(t){return e._tab(t)},this._handlers[t.Indent]=function(t){return e._indent(t)},this._handlers[t.Outdent]=function(t){return e._outdent(t)},this._handlers[t.Paste]=function(t){return e._paste(t)},this._handlers[t.EditorScroll]=function(t){return e._editorScroll(t)},this._handlers[t.ScrollLineUp]=function(t){return e._scrollUp(!1,t)},this._handlers[t.ScrollLineDown]=function(t){return e._scrollDown(!1,t)},this._handlers[t.ScrollPageUp]=function(t){return e._scrollUp(!0,t)},this._handlers[t.ScrollPageDown]=function(t){return e._scrollDown(!0,t)},this._handlers[t.DeleteLeft]=function(t){return e._deleteLeft(t)},this._handlers[t.DeleteWordLeft]=function(t){return e._deleteWordLeft(!0,0,t)},this._handlers[t.DeleteWordStartLeft]=function(t){return e._deleteWordLeft(!1,0,t)},this._handlers[t.DeleteWordEndLeft]=function(t){return e._deleteWordLeft(!1,1,t)},this._handlers[t.DeleteRight]=function(t){return e._deleteRight(t)},this._handlers[t.DeleteWordRight]=function(t){return e._deleteWordRight(!0,1,t)},this._handlers[t.DeleteWordStartRight]=function(t){return e._deleteWordRight(!1,0,t)},this._handlers[t.DeleteWordEndRight]=function(t){return e._deleteWordRight(!1,1,t)},this._handlers[t.Cut]=function(t){return e._cut(t)},this._handlers[t.ExpandLineSelection]=function(t){return e._expandLineSelection(t)},this._handlers[t.Undo]=function(t){return e._undo(t)},this._handlers[t.CursorUndo]=function(t){return e._cursorUndo(t)},this._handlers[t.Redo]=function(t){return e._redo(t)},this._handlers[t.ExecuteCommand]=function(t){return e._externalExecuteCommand(t)},this._handlers[t.ExecuteCommands]=function(t){return e._externalExecuteCommands(t)},this._handlers[t.RevealLine]=function(t){return e._revealLine(t)}},t.prototype._invokeForAllSorted=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=!0),this._doInvokeForAll(e,!0,t,n,i)},t.prototype._invokeForAll=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=!0),this._doInvokeForAll(e,!1,t,n,i)},t.prototype._doInvokeForAll=function(e,t,n,i,o){void 0===i&&(i=!0),void 0===o&&(o=!0);var r=!1,s=this.cursors.getAll();t&&(s=s.sort(function(e,t){return c.Range.compareRangesUsingStarts(e.modelState.selection,t.modelState.selection)}));var a;e.shouldPushStackElementBefore=i,e.shouldPushStackElementAfter=o;for(var u=0;u=t&&l.OneCursorOp.translateUp(n,i)})},t.prototype._addCursorDown=function(e){if(this.configuration.editor.readOnly)return!1;var t=this.cursors.getSelections().length;return this.cursors.duplicateCursors(),e.shouldRevealTarget=2,this._invokeForAll(e,function(e,n,i){return e>=t&&l.OneCursorOp.translateDown(n,i)})},t.prototype._moveLeft=function(e,t){return t.eventData=t.eventData||{},t.eventData.to=h.CursorMovePosition.Left,t.eventData.select=e,this._cursorMove(t)},t.prototype._moveWordLeft=function(e,t,n){return this._invokeForAll(n,function(n,i,o){return l.OneCursorOp.moveWordLeft(i,e,t,o)})},t.prototype._moveRight=function(e,t){return t.eventData=t.eventData||{},t.eventData.to=h.CursorMovePosition.Right,t.eventData.select=e,this._cursorMove(t)},t.prototype._moveWordRight=function(e,t,n){return this._invokeForAll(n,function(n,i,o){return l.OneCursorOp.moveWordRight(i,e,t,o)})},t.prototype._moveDown=function(e,t,n){return n.eventData=n.eventData||{},n.eventData.to=h.CursorMovePosition.Down,n.eventData.select=e,n.eventData.by=h.CursorMoveByUnit.WrappedLine,n.eventData.isPaged=t,this._cursorMove(n)},t.prototype._moveUp=function(e,t,n){return n.eventData=n.eventData||{},n.eventData.to=h.CursorMovePosition.Up,n.eventData.select=e,n.eventData.by=h.CursorMoveByUnit.WrappedLine,n.eventData.isPaged=t,this._cursorMove(n)},t.prototype._moveToBeginningOfLine=function(e,t){return this._invokeForAll(t,function(t,n,i){return l.OneCursorOp.moveToBeginningOfLine(n,e,i)})},t.prototype._moveToEndOfLine=function(e,t){return this._invokeForAll(t,function(t,n,i){return l.OneCursorOp.moveToEndOfLine(n,e,i)})},t.prototype._moveToBeginningOfBuffer=function(e,t){return this._invokeForAll(t,function(t,n,i){return l.OneCursorOp.moveToBeginningOfBuffer(n,e,i)})},t.prototype._moveToEndOfBuffer=function(e,t){return this._invokeForAll(t,function(t,n,i){return l.OneCursorOp.moveToEndOfBuffer(n,e,i)})},t.prototype._selectAll=function(e){return this.cursors.killSecondaryCursors(),this._invokeForAll(e,function(e,t,n){return l.OneCursorOp.selectAll(t,n)})},t.prototype._line=function(e,t){return this.cursors.killSecondaryCursors(),this._invokeForAll(t,function(n,i,o){return l.OneCursorOp.line(i,e,t.eventData.position,t.eventData.viewPosition,o)})},t.prototype._lastCursorLine=function(e,t){if(this.configuration.editor.readOnly||this.model.hasEditableRange())return!1;var n=this.cursors.getLastAddedCursor();return this._invokeForAll(t,function(i,o,r){return o===n&&l.OneCursorOp.line(o,e,t.eventData.position,t.eventData.viewPosition,r)}),t.shouldReveal=!1,t.shouldRevealHorizontal=!1,!0},t.prototype._expandLineSelection=function(e){return this._invokeForAll(e,function(e,t,n){return l.OneCursorOp.expandLineSelection(t,n)})},t.prototype._word=function(e,t){return this.cursors.killSecondaryCursors(),this._invokeForAll(t,function(n,i,o){return l.OneCursorOp.word(i,e,i.validatePosition(t.eventData.position),o)})},t.prototype._lastCursorWord=function(e){if(this.configuration.editor.readOnly||this.model.hasEditableRange())return!1;var t=this.cursors.getLastAddedCursor();return this._invokeForAll(e,function(n,i,o){return i===t&&l.OneCursorOp.word(i,!0,i.validatePosition(e.eventData.position),o)}),e.shouldReveal=!1,e.shouldRevealHorizontal=!1,!0},t.prototype._removeSecondaryCursors=function(e){return this.cursors.killSecondaryCursors(),!0},t.prototype._cancelSelection=function(e){return this._invokeForAll(e,function(e,t,n){return l.OneCursorOp.cancelSelection(t,n)})},t.prototype._doApplyEdit=function(e,t,n,i){var o=i(t,e);return o&&(n.executeCommand=o.command,n.shouldPushStackElementBefore=o.shouldPushStackElementBefore,n.shouldPushStackElementAfter=o.shouldPushStackElementAfter,n.isAutoWhitespaceCommand=o.isAutoWhitespaceCommand,n.shouldRevealHorizontal=o.shouldRevealHorizontal,n.cursorPositionChangeReason=o.cursorPositionChangeReason),!0},t.prototype._applyEditForAll=function(e,t){var n=this;return this._invokeForAll(e,function(e,i,o){return n._doApplyEdit(e,i,o,t)},!1,!1)},t.prototype._applyEditForAllSorted=function(e,t){var n=this;return this._invokeForAllSorted(e,function(e,i,o){return n._doApplyEdit(e,i,o,t)},!1,!1)},t.prototype._lineInsertBefore=function(e){return this._applyEditForAll(e,function(e){return y.TypeOperations.lineInsertBefore(e.config,e.model,e.modelState)})},t.prototype._lineInsertAfter=function(e){return this._applyEditForAll(e,function(e){return y.TypeOperations.lineInsertAfter(e.config,e.model,e.modelState)})},t.prototype._lineBreakInsert=function(e){return this._applyEditForAll(e,function(e){return y.TypeOperations.lineBreakInsert(e.config,e.model,e.modelState)})},t.prototype._type=function(e){var t=this,n=e.eventData.text;if("keyboard"===e.eventSource)for(var o,r=function(r,a){var u,l=n.charCodeAt(r);i.isHighSurrogate(l)&&r+10?t[n-1]:null;i&&i.toLineNumber===e-1?i.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}},e.prototype.build=function(){return 0===this._ranges.length?null:{ranges:this._ranges}},e}(),g=function(e){function t(t,n,i){var o=this;return t.push(r.EventType.ModelTokensChanged),t.push(r.EventType.ModelLanguageChanged),o=e.call(this,t,n)||this,o._languageIdentifier=i||l.NULL_LANGUAGE_IDENTIFIER,o._tokenizationListener=u.TokenizationRegistry.onDidChange(function(e){e.languages.indexOf(o._languageIdentifier.language)!==-1&&(o._resetTokenizationState(),o.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:o.getLineCount()}]}))}),o._revalidateTokensTimeout=-1,o._resetTokenizationState(),o}return m(t,e),t.prototype.dispose=function(){this._tokenizationListener.dispose(),this._clearTimers(),this._lastState=null,e.prototype.dispose.call(this)},t.prototype._shouldAutoTokenize=function(){return!1},t.prototype._resetValue=function(t){e.prototype._resetValue.call(this,t),this._resetTokenizationState()},t.prototype._resetTokenizationState=function(){this._clearTimers();for(var e=0;ethis.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");return t||this._withModelTokensChangedEventBuilder(function(t){n._updateTokensUntilLine(t,e,!0)}),this._getLineTokens(e)},t.prototype._getLineTokens=function(e){return this._lines[e-1].getTokens(this._languageIdentifier.id,this._colorMap)},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._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._emitModelModeChangedEvent(t)}},t.prototype.getLanguageIdAtPosition=function(e,t){var n=this;if(!this._tokenizationSupport)return this._languageIdentifier.id;var i=this.validatePosition({lineNumber:e,column:t}),o=i.lineNumber,r=i.column;this._withModelTokensChangedEventBuilder(function(e){n._updateTokensUntilLine(e,o,!0)});var s=this._getLineTokens(o),a=s.findTokenAtOffset(r-1);return a.languageId},t.prototype._invalidateLine=function(e){this._lines[e].isInvalid=!0,e=200){t=n-1;break}}this._revalidateTokensNow(t),this._invalidLineStartIndexr){e=d-1;break}if(u=t._lines[d-1].text.length,a>0&&(l=i/a*u,i+l>r)){e=d-1;break}t._updateTokensUntilLine(n,d,!1),a+=u,d=Math.max(d,t._invalidLineStartIndex+1)}i=c.elapsed(),t._invalidLineStartIndex=1;r--){var s=this._getLineTokens(r),a=this._lines[r-1].text,u=void 0,l=void 0;for(r===t.lineNumber?(u=s.findTokenAtOffset(t.column-1),l=t.column-1):(u=s.lastToken(),u&&(l=u.endOffset));u;){if(u.languageId===n&&!c.ignoreBracketsInToken(u.tokenType))for(;;){var h=d.BracketsUtils.findPrevBracketInToken(i,r,a,u.startOffset,l);if(!h)break;var p=a.substring(h.startColumn-1,h.endColumn-1);if(p=p.toLowerCase(),p===e.open?o++:p===e.close&&o--,0===o)return h;l=h.startColumn-1}u=u.prev(),u&&(l=u.endOffset)}}return null},t.prototype._findMatchingBracketDown=function(e,t){for(var n=e.languageIdentifier.id,i=e.forwardRegex,o=1,r=t.lineNumber,s=this.getLineCount();r<=s;r++){var a=this._getLineTokens(r),u=this._lines[r-1].text,l=void 0,h=void 0;for(r===t.lineNumber?(l=a.findTokenAtOffset(t.column-1),h=t.column-1):(l=a.firstToken(),l&&(h=l.startOffset));l;){if(l.languageId===n&&!c.ignoreBracketsInToken(l.tokenType))for(;;){var p=d.BracketsUtils.findNextBracketInToken(i,r,u,h,l.endOffset);if(!p)break;var f=u.substring(p.startColumn-1,p.endColumn-1);if(f=f.toLowerCase(),f===e.open?o++:f===e.close&&o--,0===o)return p;h=p.endColumn-1}l=l.next(),l&&(h=l.startOffset)}}return null},t.prototype.findPrevBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber;o>=1;o--){var r=this._getLineTokens(o),s=this._lines[o-1].text,a=void 0,u=void 0;for(o===t.lineNumber?(a=r.findTokenAtOffset(t.column-1),u=t.column-1):(a=r.lastToken(),a&&(u=a.endOffset));a;){if(n!==a.languageId&&(n=a.languageId,i=h.LanguageConfigurationRegistry.getBracketsSupport(n)),i&&!c.ignoreBracketsInToken(a.tokenType)){var l=d.BracketsUtils.findPrevBracketInToken(i.reversedRegex,o,s,a.startOffset,u);if(l)return this._toFoundBracket(i,l)}a=a.prev(),a&&(u=a.endOffset)}}return null},t.prototype.findNextBracket=function(e){for(var t=this.validatePosition(e),n=-1,i=null,o=t.lineNumber,r=this.getLineCount();o<=r;o++){var s=this._getLineTokens(o),a=this._lines[o-1].text,u=void 0,l=void 0;for(o===t.lineNumber?(u=s.findTokenAtOffset(t.column-1),l=t.column-1):(u=s.firstToken(),u&&(l=u.startOffset));u;){if(n!==u.languageId&&(n=u.languageId,i=h.LanguageConfigurationRegistry.getBracketsSupport(n)),i&&!c.ignoreBracketsInToken(u.tokenType)){var p=d.BracketsUtils.findNextBracketInToken(i.forwardRegex,o,a,l,u.endOffset);if(p)return this._toFoundBracket(i,p)}u=u.next(),u&&(l=u.startOffset)}}return null},t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var i=e.textIsBracket[n];return i?{range:t,open:i.open,close:i.close,isOpen:e.textIsOpenBracket[n]}:null},t}(s.TextModel);g.MODE_TOKENIZATION_FAILED_MSG=n.localize(0,null),t.TextModelWithTokens=g}),define(d[359],h([0,1,116,15,72,358]),function(e,t,n,i,o,r){"use strict";var s=0,a=function(e){function t(t,i,o){var r=e.call(this,t,i,o)||this;return r._markerIdGenerator=new n.IdGenerator(++s+";"),r._markerIdToMarker=Object.create(null),r}return m(t,e),t.prototype.dispose=function(){this._markerIdToMarker=null,e.prototype.dispose.call(this)},t.prototype._resetValue=function(t){e.prototype._resetValue.call(this,t),this._markerIdToMarker=Object.create(null)},t.prototype._addMarker=function(e,t,n,r){var s=this.validatePosition(new i.Position(t,n)),a=new o.LineMarker(this._markerIdGenerator.nextId(),e,s,r);return this._markerIdToMarker[a.id]=a,this._lines[s.lineNumber-1].addMarker(a),a.id},t.prototype._addMarkers=function(e){if(0===e.length)return[];for(var t=[],n=0,i=e.length;nthis.getLineCount())throw new Error("Illegal value "+e+" for `lineNumber`");return this._lines[e-1].getMarkers()},t.prototype._removeMarker=function(e){var t=this._markerIdToMarker[e];t&&(this._lines[t.position.lineNumber-1].removeMarker(t),delete this._markerIdToMarker[e])},t.prototype._removeMarkers=function(e){e.sort(function(e,t){return e.position.lineNumber-t.position.lineNumber});for(var t=0,n=null,i=0,o=e.length;ithis.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype._getMultiLineDecorations=function(e,t,n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=[]; -for(var u in this._multiLineDecorationsMap){var l=this._multiLineDecorationsMap[u];if(!(t&&l.ownerId&&l.ownerId!==t||n&&l.isForValidation)){var c=l.range;c.startLineNumber>r||c.startLineNumber===r&&c.startColumn>s||c.endLineNumberr||m.startLineNumber===r&&m.startColumn>s||m.endLineNumber0){var p={addedDecorations:[],changedDecorations:i,removedDecorations:[]};this.emitModelDecorationsChangedEvent(p)}}},t._createRangeFromMarkers=function(e,t){return t.isBefore(e)?new r.Range(e.lineNumber,e.column,e.lineNumber,e.column):new r.Range(e.lineNumber,e.column,t.lineNumber,t.column)},t.prototype._acquireDecorationsTracker=function(){return 0===this._currentDecorationsTrackerCnt&&(this._currentDecorationsTracker=new f),this._currentDecorationsTrackerCnt++,this._currentDecorationsTracker},t.prototype._releaseDecorationsTracker=function(){if(this._currentDecorationsTrackerCnt--,0===this._currentDecorationsTrackerCnt){var e=this._currentDecorationsTracker;this._currentDecorationsTracker=null,this._handleTrackedDecorations(e)}},t.prototype._handleTrackedDecorations=function(e){if(0!==e.addedDecorationsLen||0!==e.changedDecorationsLen||0!==e.removedDecorationsLen){var t={addedDecorations:e.addedDecorations,changedDecorations:e.changedDecorations,removedDecorations:e.removedDecorations};this.emitModelDecorationsChangedEvent(t)}},t.prototype.emitModelDecorationsChangedEvent=function(e){this._isDisposing||this.emit(s.EventType.ModelDecorationsChanged,e)},t.prototype._normalizeDeltaDecorations=function(e){for(var t=[],n=0,i=e.length;n0&&this._removeMarkers(n)},t.prototype._resolveOldDecorations=function(e){for(var t=[],n=0,i=e.length;n0?(d.push(f),l++):p.options.equals(f.options)?(s[f.index]=p.id,a++,l++):(h.push(p.id),a++)}for(;a0&&this._removeDecorationsImpl(e,h),d.length>0)for(var m=this._addDecorationsImpl(e,t,d),v=0,_=d.length;v<_;v++)s[d[v].index]=m[v];return s},t}(l.TextModelWithMarkers);t.TextModelWithDecorations=_;var y=function(){function e(e){this.stickiness=e.stickiness||s.TrackedRangeStickiness.AlwaysGrowsWhenTypingAtEdges,this.className=e.className?d(e.className):o.empty,this.hoverMessage=e.hoverMessage||[],this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||o.empty,this.isWholeLine=e.isWholeLine||!1,this.overviewRuler=p(e.overviewRuler,e.showInOverviewRuler),this.glyphMarginClassName=e.glyphMarginClassName?d(e.glyphMarginClassName):o.empty,this.linesDecorationsClassName=e.linesDecorationsClassName?d(e.linesDecorationsClassName):o.empty,this.marginClassName=e.marginClassName?d(e.marginClassName):o.empty,this.inlineClassName=e.inlineClassName?d(e.inlineClassName):o.empty,this.beforeContentClassName=e.beforeContentClassName?d(e.beforeContentClassName):o.empty,this.afterContentClassName=e.afterContentClassName?d(e.afterContentClassName):o.empty}return e._overviewRulerEquals=function(e,t){return e.color===t.color&&e.position===t.position&&e.darkColor===t.darkColor},e.prototype.equals=function(t){return this.stickiness===t.stickiness&&this.className===t.className&&this.isWholeLine===t.isWholeLine&&this.showInOverviewRuler===t.showInOverviewRuler&&this.glyphMarginClassName===t.glyphMarginClassName&&this.linesDecorationsClassName===t.linesDecorationsClassName&&this.marginClassName===t.marginClassName&&this.inlineClassName===t.inlineClassName&&this.beforeContentClassName===t.beforeContentClassName&&this.afterContentClassName===t.afterContentClassName&&i.markedStringsEquals(this.hoverMessage,t.hoverMessage)&&i.markedStringsEquals(this.glyphMarginHoverMessage,t.glyphMarginHoverMessage)&&e._overviewRulerEquals(this.overviewRuler,t.overviewRuler)},e}();t.ModelDecorationOptions=y;var C=function(){function e(e,t,n){this.index=e,this.range=t,this.options=n}return e}(),b=function(){function e(e,t){this.color=o.empty,this.darkColor=o.empty,this.position=s.OverviewRulerLane.Center,t&&(this.color=t),e&&e.color&&(this.color=e.color),e&&e.darkColor&&(this.darkColor=e.darkColor),e&&e.hasOwnProperty("position")&&(this.position=e.position)}return e}()}),define(d[361],h([0,1,3,2,505,72,360,9,15]),function(e,t,n,i,o,r,s,a,u){"use strict";var l=function(e){function t(t,n,r){var s=this;return t.push(i.EventType.ModelRawContentChanged),s=e.call(this,t,n,r)||this,s._commandManager=new o.EditStack(s),s._isUndoing=!1,s._isRedoing=!1,s._hasEditableRange=!1,s._editableRangeId=null,s._trimAutoWhitespaceLines=null,s}return m(t,e),t.prototype.onDidChangeRawContent=function(e){return this.addListener2(i.EventType.ModelRawContentChanged,e)},t.prototype.onDidChangeContent=function(e){return this.addListener2(i.EventType.ModelContentChanged2,e)},t.prototype.dispose=function(){this._commandManager=null,e.prototype.dispose.call(this)},t.prototype._resetValue=function(t){e.prototype._resetValue.call(this,t),this._commandManager=new o.EditStack(this),this._hasEditableRange=!1,this._editableRangeId=null,this._trimAutoWhitespaceLines=null},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEditOperations=function(e,t,n){try{return this._beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,i){var o=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var r=t.map(function(e){return{range:o.validateRange(e.range),text:e.text}}),s=!0,a=0,u=e.length;al.endLineNumber,g=l.startLineNumber>p.endLineNumber;if(!f&&!g){c=!0;break}}if(!c){s=!1;break}}if(s)for(var a=0,u=this._trimAutoWhitespaceLines.length;ap.endLineNumber||m===p.startLineNumber&&p.startColumn===v&&p.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0))){_=!1;break}}_&&t.push({identifier:null,range:new n.Range(m,1,m,v),text:null,forceMoveMarkers:!1,isAutoWhitespaceEdit:!1})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,i)},t.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},t.prototype._toSingleEditOperation=function(e){for(var t=!1,i=e[0].range,o=e[e.length-1].range,r=new n.Range(i.startLineNumber,i.startColumn,o.endLineNumber,o.endColumn),s=i.startLineNumber,a=i.startColumn,u=[],l=0,c=e.length;l0){y.sort(function(e,t){return t.lineNumber-e.lineNumber}),this._trimAutoWhitespaceLines=[];for(var s=0,S=y.length;s0&&y[s-1].lineNumber===b)){var E=y[s].oldContent,L=this.getLineContent(b);0!==L.length&&L!==E&&a.firstNonWhitespaceIndex(L)===-1&&this._trimAutoWhitespaceLines.push(b)}}}return _},t._getInverseEditRanges=function(e){for(var t,i,o=[],r=null,s=0,a=e.length;s0){var h=u.lines.length,p=u.lines[0],f=u.lines[h-1];d=1===h?new n.Range(l,c,l,c+p.length):new n.Range(l,c,l+h-1,f.length+1)}else d=new n.Range(l,c,l,c);t=d.endLineNumber,i=d.endColumn,o.push(d),r=u}return o},t.prototype._doApplyEdits=function(e,o){var s=this,a=this._options.tabSize;o.sort(t._sortOpsDescending);for(var l=[],c=[],d=[],h=function(e){e.startColumn===e.endColumn&&0===e.text.length||d.push(e)},p=function(){if(0!==d.length){d.reverse();for(var t=d[0].lineNumber,n=0,i=1,o=d.length;i=0;T--){var x=C+T;h({lineNumber:x,startColumn:x===C?b:1,endColumn:x===w?S:this.getLineMaxColumn(x),text:y.lines?y.lines[T]:"",forceMoveMarkers:y.forceMoveMarkers})}if(N=0;v--,q--)l[v].versionId=q;for(var v=c.length-1,q=j;v>=0;v--,q--)c[v].versionId=q;for(var v=0,_=l.length;v<_;v++)this.emit(i.EventType.ModelRawContentChanged,l[v]);for(var v=0,_=c.length;v<_;v++)this.emit(i.EventType.ModelContentChanged2,c[v])}this._resetIndentRanges()},t.prototype._assertLineNumbersOK=function(){for(var e=0,t=0,n=this._lines.length;t0},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t}(o.EditableTextModel);t.Model=u}),define(d[363],h([0,1,4,16,2,64]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e,t){var n=this;this._disposables=[],this._editor=e,this._langId=o.EditorContextKeys.LanguageId.bindTo(t),this._hasCompletionItemProvider=o.ModeContextKeys.hasCompletionItemProvider.bindTo(t),this._hasCodeActionsProvider=o.ModeContextKeys.hasCodeActionsProvider.bindTo(t),this._hasCodeLensProvider=o.ModeContextKeys.hasCodeLensProvider.bindTo(t),this._hasDefinitionProvider=o.ModeContextKeys.hasDefinitionProvider.bindTo(t),this._hasImplementationProvider=o.ModeContextKeys.hasImplementationProvider.bindTo(t),this._hasHoverProvider=o.ModeContextKeys.hasHoverProvider.bindTo(t),this._hasDocumentHighlightProvider=o.ModeContextKeys.hasDocumentHighlightProvider.bindTo(t),this._hasDocumentSymbolProvider=o.ModeContextKeys.hasDocumentSymbolProvider.bindTo(t),this._hasReferenceProvider=o.ModeContextKeys.hasReferenceProvider.bindTo(t),this._hasRenameProvider=o.ModeContextKeys.hasRenameProvider.bindTo(t),this._hasDocumentFormattingProvider=o.ModeContextKeys.hasDocumentFormattingProvider.bindTo(t),this._hasDocumentSelectionFormattingProvider=o.ModeContextKeys.hasDocumentSelectionFormattingProvider.bindTo(t),this._hasSignatureHelpProvider=o.ModeContextKeys.hasSignatureHelpProvider.bindTo(t),this._isInWalkThrough=o.ModeContextKeys.isInEmbeddedEditor.bindTo(t),this._disposables.push(e.onDidChangeModel(function(){return n._update()})),this._disposables.push(e.onDidChangeModelLanguage(function(){return n._update()})),i.SuggestRegistry.onDidChange(this._update,this,this._disposables),i.CodeActionProviderRegistry.onDidChange(this._update,this,this._disposables),i.CodeLensProviderRegistry.onDidChange(this._update,this,this._disposables),i.DefinitionProviderRegistry.onDidChange(this._update,this,this._disposables),i.ImplementationProviderRegistry.onDidChange(this._update,this,this._disposables),i.HoverProviderRegistry.onDidChange(this._update,this,this._disposables),i.DocumentHighlightProviderRegistry.onDidChange(this._update,this,this._disposables),i.DocumentSymbolProviderRegistry.onDidChange(this._update,this,this._disposables),i.ReferenceProviderRegistry.onDidChange(this._update,this,this._disposables),i.RenameProviderRegistry.onDidChange(this._update,this,this._disposables),i.DocumentFormattingEditProviderRegistry.onDidChange(this._update,this,this._disposables),i.DocumentRangeFormattingEditProviderRegistry.onDidChange(this._update,this,this._disposables),i.SignatureHelpProviderRegistry.onDidChange(this._update,this,this._disposables),this._update()}return e.prototype.dispose=function(){this._disposables=n.dispose(this._disposables)},e.prototype.reset=function(){this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasImplementationProvider.reset(),this._hasHoverProvider.reset(),this._hasDocumentHighlightProvider.reset(),this._hasDocumentSymbolProvider.reset(),this._hasReferenceProvider.reset(),this._hasRenameProvider.reset(),this._hasDocumentFormattingProvider.reset(),this._hasDocumentSelectionFormattingProvider.reset(),this._hasSignatureHelpProvider.reset(),this._isInWalkThrough.reset()},e.prototype._update=function(){var e=this._editor.getModel();return e?(this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(i.SuggestRegistry.has(e)),this._hasCodeActionsProvider.set(i.CodeActionProviderRegistry.has(e)),this._hasCodeLensProvider.set(i.CodeLensProviderRegistry.has(e)),this._hasDefinitionProvider.set(i.DefinitionProviderRegistry.has(e)),this._hasImplementationProvider.set(i.ImplementationProviderRegistry.has(e)),this._hasHoverProvider.set(i.HoverProviderRegistry.has(e)),this._hasDocumentHighlightProvider.set(i.DocumentHighlightProviderRegistry.has(e)),this._hasDocumentSymbolProvider.set(i.DocumentSymbolProviderRegistry.has(e)),this._hasReferenceProvider.set(i.ReferenceProviderRegistry.has(e)),this._hasRenameProvider.set(i.RenameProviderRegistry.has(e)),this._hasSignatureHelpProvider.set(i.SignatureHelpProviderRegistry.has(e)),this._hasDocumentFormattingProvider.set(i.DocumentFormattingEditProviderRegistry.has(e)||i.DocumentRangeFormattingEditProviderRegistry.has(e)),this._hasDocumentSelectionFormattingProvider.set(i.DocumentRangeFormattingEditProviderRegistry.has(e)),void this._isInWalkThrough.set(e.uri.scheme===r.Schemas.walkThroughSnippet)):void this.reset()},e}();t.EditorModeContext=s}),define(d[45],h([0,1,14,2]),function(e,t,n,i){"use strict";function o(e){if(e){var t=e.getControl();if(t){if(i.isCommonCodeEditor(t))return{codeEditor:t,diffEditor:null};if(i.isCommonDiffEditor(t))return{codeEditor:null,diffEditor:t}}}return{codeEditor:null,diffEditor:null}}function r(e){var t=o(e);return t.codeEditor||t.diffEditor&&t.diffEditor.getModifiedEditor()||null}t.ICodeEditorService=n.createDecorator("codeEditorService"),t.getCodeOrDiffEditor=o,t.getCodeEditor=r}),define(d[129],h([0,1,17,4,6,156,188,2,16,44,216,38,56]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=6e4,f=3e5,g=function(){function e(e,t){var i=this;this._workerManager=new v(e);var o=u.LinkProviderRegistry.register("*",{provideLinks:function(e,t){return n.wireCancellationToken(t,i._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri)}))}}),r=u.SuggestRegistry.register("*",{triggerCharacters:[],provideCompletionItems:function(e,n,o){if(t.lookup("editor.wordBasedSuggestions").value)return i._workerManager.withWorker().then(function(t){return t.textualSuggest(e.uri,n)})}});this._registrations=[o,r]}return e.prototype.dispose=function(){this._workerManager.dispose(),i.dispose(this._registrations)},e.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.computeDiff(e,t,n)})},e.prototype.computeDirtyDiff=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.computeDirtyDiff(e,t,n)})},e.prototype.computeMoreMinimalEdits=function(e,t,n){return Array.isArray(t)&&0!==t.length?this._workerManager.withWorker().then(function(i){return i.computeMoreMinimalEdits(e,t,n)}):o.TPromise.as(t)},e.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then(function(i){return i.navigateValueSet(e,t,n)})},e}();g=y([C(0,l.IModelService),C(1,h.IConfigurationService)],g),t.EditorWorkerServiceImpl=g;var v=function(e){function t(t){var i=e.call(this)||this;i._modelService=t,i._editorWorkerClient=null;var o=i._register(new n.IntervalTimer);return o.cancelAndSet(function(){return i._checkStopIdleWorker()},Math.round(f/2)),i._register(i._modelService.onModelRemoved(function(e){return i._checkStopEmptyWorker()})),i}return m(t,e),t.prototype.dispose=function(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),e.prototype.dispose.call(this)},t.prototype._checkStopEmptyWorker=function(){if(this._editorWorkerClient){var e=this._modelService.getModels();0===e.length&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype._checkStopIdleWorker=function(){if(this._editorWorkerClient){var e=(new Date).getTime()-this._lastWorkerUsedTime;e>f&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new w(this._modelService,"editorWorkerService")),o.TPromise.as(this._editorWorkerClient)},t}(i.Disposable),_=function(e){function t(t,i,o){var r=e.call(this)||this;if(r._syncedModels=Object.create(null),r._syncedModelsLastUsedTime=Object.create(null),r._proxy=t,r._modelService=i,!o){var s=new n.IntervalTimer;s.cancelAndSet(function(){return r._checkStopModelSync()},Math.round(p/2)),r._register(s)}return r}return m(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)i.dispose(this._syncedModels[t]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),e.prototype.dispose.call(this)},t.prototype.esureSyncedResources=function(e){for(var t=0;tp&&t.push(n)}for(var o=0;o0&&t._proxy.acceptModelChanged(i.toString(),n)})),o.push({dispose:function(){t._proxy.acceptRemovedModel(i)}}),this._syncedModels[i]=o}},t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],i.dispose(t)},t}(i.Disposable),b=function(){function e(e){this._instance=e,this._proxyObj=o.TPromise.as(this._instance)}return e.prototype.dispose=function(){this._instance.dispose(),this._instance=null,this._proxyObj=null},e.prototype.getProxyObject=function(){return new n.ShallowCancelThenPromise(this._proxyObj)},e}(),w=function(e){function t(t,n){var i=e.call(this)||this;return i._modelService=t,i._workerFactory=new s.DefaultWorkerFactory(n),i._worker=null,i._modelManager=null,i}return m(t,e),t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new r.SimpleWorkerClient(this._workerFactory,"vs/editor/common/services/editorSimpleWorker"))}catch(e){r.logOnceWebWorkerWarning(e),this._worker=new b(new c.EditorSimpleWorkerImpl)}return this._worker},t.prototype._getProxy=function(){var e=this;return new n.ShallowCancelThenPromise(this._getOrCreateWorker().getProxyObject().then(null,function(t){return r.logOnceWebWorkerWarning(t),e._worker=new b(new c.EditorSimpleWorkerImpl),e._getOrCreateWorker().getProxyObject()}))},t.prototype._getOrCreateModelManager=function(e){return this._modelManager||(this._modelManager=this._register(new _(e,this._modelService,!1))),this._modelManager},t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then(function(n){return t._getOrCreateModelManager(n).esureSyncedResources(e),n})},t.prototype.computeDiff=function(e,t,n){return this._withSyncedResources([e,t]).then(function(i){return i.computeDiff(e.toString(),t.toString(),n)})},t.prototype.computeDirtyDiff=function(e,t,n){return this._withSyncedResources([e,t]).then(function(i){return i.computeDirtyDiff(e.toString(),t.toString(),n)})},t.prototype.computeMoreMinimalEdits=function(e,t,n){return this._withSyncedResources([e]).then(function(i){return i.computeMoreMinimalEdits(e.toString(),t,n)})},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(i){var o=n._modelService.getModel(e);if(!o)return null;var r=d.LanguageConfigurationRegistry.getWordDefinition(o.getLanguageIdentifier().id),s=r.source,a=(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"");return i.textualSuggest(e.toString(),t,s,a)})},t.prototype.navigateValueSet=function(e,t,n){var i=this;return this._withSyncedResources([e]).then(function(o){var r=i._modelService.getModel(e);if(!r)return null;var s=d.LanguageConfigurationRegistry.getWordDefinition(r.getLanguageIdentifier().id),a=s.source,u=(s.global?"g":"")+(s.ignoreCase?"i":"")+(s.multiline?"m":"");return o.navigateValueSet(e.toString(),t,n,a,u)})},t}(i.Disposable);t.EditorWorkerClient=w}),define(d[366],h([0,1,17,129]),function(e,t,n,i){"use strict";function o(e,t){return new r(e,t)}t.createWebWorker=o;var r=function(e){function t(t,n){var i=e.call(this,t,n.label)||this;return i._foreignModuleId=n.moduleId,i._foreignModuleCreateData=n.createData||null,i._foreignProxy=null,i}return m(t,e),t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=new n.ShallowCancelThenPromise(this._getProxy().then(function(t){return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData).then(function(n){e._foreignModuleId=null,e._foreignModuleCreateData=null;for(var i=function(e,n){return t.fmr(e,n)},o=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}},r={},s=0;s=i)s.push(a),o++;else{var u=t[n],l=u.compareTo(a);l<0?n++:l>0?(s.push(a),o++):(s.push(u),n++,o++)}}this._zones=s},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.setMaximumHeight=function(e){return this._maximumHeight!==e&&(this._maximumHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setMinimumHeight=function(e){return this._minimumHeight!==e&&(this._minimumHeight=e,this._colorZonesInvalid=!0,!0)},e.prototype.setUseDarkColor=function(e){return this._useDarkColor!==e&&(this._useDarkColor=e,this._colorZonesInvalid=!0,!0)},e.prototype.resolveColorZones=function(){for(var e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),n=Math.floor(this.getCanvasHeight()),i=Math.floor(this._maximumHeight*this._pixelRatio),o=Math.floor(this._minimumHeight*this._pixelRatio),r=this._useDarkColor,s=Math.floor(this._outerHeight),a=n/s,u=[],l=0,c=this._zones.length;lC)for(var b=d.startLineNumber;b<=d.endLineNumber;b++)v=Math.floor(this._getVerticalOffsetForLine(b)),_=v+t,v=Math.floor(v*a),_=Math.floor(_*a),g.push(this.createZone(n,v,_,o,i,d.getColor(r),d.position));else g.push(this.createZone(n,v,_,o,C,d.getColor(r),d.position))}d.setColorZones(g);for(var p=0,f=g.length;pr/2&&(l=r/2),le&&(u=e-l);var c=this._color2Id[s];return c||(c=++this._lastAssignedId,this._color2Id[s]=c,this._id2Color[c]=s),new n.ColorZone(u-l,u+l,c,a)},e}();t.OverviewZoneManager=i}),define(d[130],h([0,1,28,2,24,367]),function(e,t,n,i,o,r){"use strict";var s=function(){function e(e,t,n,i,s,a,u,l){var c=this;this._canvasLeftOffset=e,this._domNode=document.createElement("canvas"),this._domNode.className=t,this._domNode.style.position="absolute",this._lanesCount=3,this._canUseTranslate3d=s,this._zoneManager=new r.OverviewZoneManager(l),this._zoneManager.setMinimumHeight(a),this._zoneManager.setMaximumHeight(u),this._zoneManager.setUseDarkColor(!1),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(n),this._zoneManager.setLineHeight(i),this._zoomListener=o.onDidChangeZoomLevel(function(){c._zoneManager.setPixelRatio(o.getPixelRatio()),c._domNode.style.width=c._zoneManager.getDOMWidth()+"px",c._domNode.style.height=c._zoneManager.getDOMHeight()+"px",c._domNode.width=c._zoneManager.getCanvasWidth(),c._domNode.height=c._zoneManager.getCanvasHeight(),c.render(!0)}),this._zoneManager.setPixelRatio(o.getPixelRatio())}return e.prototype.dispose=function(){this._zoomListener.dispose(),this._zoneManager=null},e.prototype.setLayout=function(e,t){n.StyleMutator.setTop(this._domNode,e.top),n.StyleMutator.setRight(this._domNode,e.right);var i=!1;i=this._zoneManager.setDOMWidth(e.width)||i,i=this._zoneManager.setDOMHeight(e.height)||i,i&&(this._domNode.style.width=this._zoneManager.getDOMWidth()+"px",this._domNode.style.height=this._zoneManager.getDOMHeight()+"px",this._domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.height=this._zoneManager.getCanvasHeight(),t&&this.render(!0))},e.prototype.getLanesCount=function(){return this._lanesCount},e.prototype.setLanesCount=function(e,t){this._lanesCount=e,t&&this.render(!0)},e.prototype.setUseDarkColor=function(e,t){this._zoneManager.setUseDarkColor(e),t&&this.render(!0)},e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPixelWidth=function(){return this._zoneManager.getCanvasWidth()},e.prototype.getPixelHeight=function(){return this._zoneManager.getCanvasHeight()},e.prototype.setScrollHeight=function(e,t){this._zoneManager.setOuterHeight(e),t&&this.render(!0)},e.prototype.setLineHeight=function(e,t){this._zoneManager.setLineHeight(e),t&&this.render(!0)},e.prototype.setCanUseTranslate3d=function(e,t){this._canUseTranslate3d=e,t&&this.render(!0)},e.prototype.setZones=function(e,t){this._zoneManager.setZones(e),t&&this.render(!1)},e.prototype.render=function(e){if(0===this._zoneManager.getOuterHeight())return!1;this._canUseTranslate3d?n.StyleMutator.setTransform(this._domNode,"translate3d(0px, 0px, 0px)"):n.StyleMutator.setTransform(this._domNode,"");var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),o=this._zoneManager.resolveColorZones(),r=this._zoneManager.getId2Color(),s=this._domNode.getContext("2d");if(s.clearRect(0,0,t,i),o.length>0){var a=t-this._canvasLeftOffset;this._lanesCount>=3?this._renderThreeLanes(s,o,r,a):2===this._lanesCount?this._renderTwoLanes(s,o,r,a):1===this._lanesCount&&this._renderOneLane(s,o,r,a)}return!0},e.prototype._renderOneLane=function(e,t,n,o){this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Left|i.OverviewRulerLane.Center|i.OverviewRulerLane.Right,this._canvasLeftOffset,o)},e.prototype._renderTwoLanes=function(e,t,n,o){var r=Math.floor(o/2),s=o-r,a=this._canvasLeftOffset,u=this._canvasLeftOffset+r;this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Left|i.OverviewRulerLane.Center,a,r),this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Right,u,s)},e.prototype._renderThreeLanes=function(e,t,n,o){var r=Math.floor(o/3),s=Math.floor(o/3),a=o-r-s,u=this._canvasLeftOffset,l=this._canvasLeftOffset+r,c=this._canvasLeftOffset+r+a;this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Left,u,r),this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Center,l,a),this._renderVerticalPatch(e,t,n,i.OverviewRulerLane.Right,c,s)},e.prototype._renderVerticalPatch=function(e,t,n,i,o,r){for(var s=0,a=0,u=0,l=0,c=t.length;l=p?u=Math.max(u,f):(e.fillRect(o,a,r,u-a),a=p,u=f)}}e.fillRect(o,a,r,u-a)},e}();t.OverviewRulerImpl=s}),define(d[369],h([0,1,2]),function(e,t,n){"use strict";var i=function(){function e(){}return e.compute=function(e){var t=0|e.outerWidth,i=0|e.outerHeight,o=Boolean(e.showGlyphMargin),r=0|e.lineHeight,s=Boolean(e.showLineNumbers),a=0|e.lineNumbersMinChars,u=0|e.lineDecorationsWidth,l=Number(e.maxDigitWidth),c=0|e.maxLineNumber,d=0|e.verticalScrollbarWidth,h=Boolean(e.verticalScrollbarHasArrows),p=0|e.scrollbarArrowSize,f=0|e.horizontalScrollbarHeight,g=0;if(s){var m=Math.max(this.digitCount(c),a);g=Math.round(m*l)}var v=0;o&&(v=r);var _=t-v-g-u,y=0,C=y+v,b=C+g,w=b+u,S=h?p:0;return new n.EditorLayoutInfo({width:t,height:i,glyphMarginLeft:y,glyphMarginWidth:v,glyphMarginHeight:i,lineNumbersLeft:C,lineNumbersWidth:g,lineNumbersHeight:i,decorationsLeft:b,decorationsWidth:u,decorationsHeight:i,contentLeft:w,contentWidth:_,contentHeight:i,verticalScrollbarWidth:d,horizontalScrollbarHeight:f,overviewRuler:new n.OverviewRulerPosition({top:S,width:d,height:i-2*S,right:0})})},e.digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t?t:1},e}();t.EditorLayoutProvider=i}),define(d[131],h([0,1,15,3,2,86]),function(e,t,n,i,o,r){"use strict";function s(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?u.INSTANCE:l.INSTANCE:new c(a,s)}var a=function(){function e(e,t){this.outputLineIndex=e,this.outputOffset=t}return e}();t.OutputPosition=a;var u=function(){function e(){}return e.prototype.isVisible=function(){return!0},e.prototype.setVisible=function(e){return e?this:l.INSTANCE},e.prototype.getOutputLineCount=function(){return 1},e.prototype.getOutputLineContent=function(e,t,n){return e.getLineContent(t)},e.prototype.getOutputLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)},e.prototype.getOutputLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)},e.prototype.getOutputLineTokens=function(e,t,n){var i=e.getLineTokens(t,!0);return i.inflate()},e.prototype.getInputColumnOfOutputPosition=function(e,t){return t},e.prototype.getOutputPositionOfInputPosition=function(e,t){return new n.Position(e,t)},e}();u.INSTANCE=new u;var l=function(){function e(){}return e.prototype.isVisible=function(){return!1},e.prototype.setVisible=function(e){return e?u.INSTANCE:this},e.prototype.getOutputLineCount=function(){return 0},e.prototype.getOutputLineContent=function(e,t,n){throw new Error("Not supported")},e.prototype.getOutputLineMinColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getOutputLineMaxColumn=function(e,t,n){throw new Error("Not supported")},e.prototype.getOutputLineTokens=function(e,t,n){throw new Error("Not supported")},e.prototype.getInputColumnOfOutputPosition=function(e,t){throw new Error("Not supported")},e.prototype.getOutputPositionOfInputPosition=function(e,t){throw new Error("Not supported")},e}();l.INSTANCE=new l;var c=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.getOutputLineCount=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.getOutputLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getLineContent(t).substring(i,o);return n>0&&(r=this.wrappedIndent+r),r},e.prototype.getOutputLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getOutputLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getOutputLineContent(e,t,n).length+1},e.prototype.getOutputLineTokens=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=0;n>0&&(r=this.wrappedIndentLength);var s=e.getLineTokens(t,!0);return s.sliceAndInflate(i,o,r)},e.prototype.getInputColumnOfOutputPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;return e>0&&(n0&&(r+=this.wrappedIndentLength),new n.Position(e+o,r)},e}();t.SplitLine=c;var d=function(){function e(e,t,n,i,o,r){this.model=e,this._validModelVersionId=-1,this.tabSize=n,this.wrappingColumn=i,this.columnsForFullWidthChar=o,this.wrappingIndent=r,this.linePositionMapperFactory=t,this._constructLines(!0)}return e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},e.prototype._ensureValidState=function(){var e=this.model.getVersionId();if(e!==this._validModelVersionId)throw new Error("SplitLinesCollection: attempt to access a 'newer' model")},e.prototype._constructLines=function(e){var t=this;this.lines=[],e&&(this.hiddenAreasIds=[]);for(var n=this.model.getLinesContent(),o=n.length,a=new Uint32Array(o),u=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(i.Range.compareRangesUsingStarts),l=1,c=0,d=-1,h=d+1=l&&f<=c,m=s(this.linePositionMapperFactory,n[p],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!g);a[p]=m.getOutputLineCount(),this.lines[p]=m}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new r.PrefixSumComputer(a)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)}).sort(i.Range.compareRangesUsingStarts)},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(i.Range.compareRangesUsingStarts),o=[],r=n[0].startLineNumber,s=n[0].endLineNumber,a=1,u=n.length;as+1?(o.push(new i.Range(r,1,s,1)),r=l.startLineNumber,s=l.endLineNumber):l.endLineNumber>s&&(s=l.endLineNumber)}return o.push(new i.Range(r,1,s,1)),o},e.prototype.setHiddenAreas=function(e,t){var n=this,r=this._reduceRanges(e),s=this.hiddenAreasIds.map(function(e){return n.model.getDecorationRange(e)}).sort(i.Range.compareRangesUsingStarts);if(r.length===s.length){for(var a=!1,u=0;u=d&&g<=h?this.lines[u].isVisible()&&(this.lines[u]=this.lines[u].setVisible(!1),m=!0):this.lines[u].isVisible()||(this.lines[u]=this.lines[u].setVisible(!0),m=!0),m){var v=this.lines[u].getOutputLineCount();this.prefixSumComputer.changeValue(u,v)}}return t(o.ViewEventNames.ModelFlushedEvent,null),!0},e.prototype.inputPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e,t){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),t(o.ViewEventNames.ModelFlushedEvent,null),!0)},e.prototype.setWrappingIndent=function(e,t){return this.wrappingIndent!==e&&(this.wrappingIndent=e,this._constructLines(!1),t(o.ViewEventNames.ModelFlushedEvent,null),!0)},e.prototype.setWrappingColumn=function(e,t,n){return(this.wrappingColumn!==e||this.columnsForFullWidthChar!==t)&&(this.wrappingColumn=e,this.columnsForFullWidthChar=t,this._constructLines(!1),n(o.ViewEventNames.ModelFlushedEvent,null),!0)},e.prototype.onModelFlushed=function(e,t){this._constructLines(!0),t(o.ViewEventNames.ModelFlushedEvent,null)},e.prototype.onModelLinesDeleted=function(e,t,n,i){if(!(e<=this._validModelVersionId)){this._validModelVersionId=e;var r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,s=this.prefixSumComputer.getAccumulatedValue(n-1);this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1);var a={fromLineNumber:r,toLineNumber:s};i(o.ViewEventNames.LinesDeletedEvent,a)}},e.prototype.onModelLinesInserted=function(e,t,i,r,a){if(!(e<=this._validModelVersionId)){this._validModelVersionId=e;for(var u=this.getHiddenAreas(),l=!1,c=new n.Position(t,1),d=0;dc?(h=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,p=h+c-1,m=p+1,v=m+(a-c)-1,d=!0):at?t:e},e.prototype.getOutputLineContent=function(e){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getOutputLineContent(this.model,n+1,i)},e.prototype.getOutputIndentGuide=function(e){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);return this.model.getLineIndentGuide(t.index+1)},e.prototype.getOutputLineMinColumn=function(e){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getOutputLineMinColumn(this.model,n+1,i)},e.prototype.getOutputLineMaxColumn=function(e){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getOutputLineMaxColumn(this.model,n+1,i)},e.prototype.getOutputLineTokens=function(e){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1),n=t.index,i=t.remainder;return this.lines[n].getOutputLineTokens(this.model,n+1,i)},e.prototype.convertOutputPositionToInputPosition=function(e,t){this._ensureValidState(),e=this._toValidOutputLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o].getInputColumnOfOutputPosition(r,t);return this.model.validatePosition(new n.Position(o+1,s))},e.prototype.convertInputPositionToOutputPosition=function(e,t){this._ensureValidState();for(var i=this.model.validatePosition(new n.Position(e,t)),o=i.lineNumber,r=i.column,s=o-1,a=!1;s>0&&!this.lines[s].isVisible();)s--,a=!0;if(0===s&&!this.lines[s].isVisible())return new n.Position(1,1);var u,l=1+(0===s?0:this.prefixSumComputer.getAccumulatedValue(s-1));return u=a?this.lines[s].getOutputPositionOfInputPosition(l,this.model.getLineMaxColumn(s+1)):this.lines[o-1].getOutputPositionOfInputPosition(l,r)},e}();t.SplitLinesCollection=d}),define(d[371],h([0,1,9,2,86,131,69,83]),function(e,t,n,i,o,r,s,a){"use strict";var u;!function(e){e[e.NONE=0]="NONE",e[e.BREAK_BEFORE=1]="BREAK_BEFORE",e[e.BREAK_AFTER=2]="BREAK_AFTER",e[e.BREAK_OBTRUSIVE=3]="BREAK_OBTRUSIVE",e[e.BREAK_IDEOGRAPHIC=4]="BREAK_IDEOGRAPHIC"}(u||(u={}));var l=function(e){function t(t,n,i){for(var o=e.call(this,0)||this,r=0;r=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?4:e.prototype.get.call(this,t)},t}(s.CharacterClassifier),c=function(){function e(e,t,n){this.classifier=new l(e,t,n)}return e.nextVisibleColumn=function(e,t,n,i){return e=+e,t=+t,i=+i,n?e+(t-e%t):e+i},e.prototype.createLineMapping=function(t,r,s,u,l){if(s===-1)return null;r=+r,s=+s,u=+u,l=+l;var c=0,h="",p=-1;if(l!==i.WrappingIndent.None&&(p=n.firstNonWhitespaceIndex(t),p!==-1)){h=t.substring(0,p);for(var f=0;f.5*s&&(h="",c=0)}for(var g=this.classifier,m=0,v=[],_=0,y=0,C=-1,b=0,w=-1,S=0,E=t.length,f=0;f0){var x=t.charCodeAt(f-1),M=g.get(x);1!==M&&(C=f,b=c)}var I=1;if(n.isFullWidthCharacter(L)&&(I=u),y=e.nextVisibleColumn(y,r,N,I),y>s&&0!==f){var D=void 0,R=void 0;C!==-1?(D=C,R=b):w!==-1?(D=w,R=S):(D=f,R=c),v[_++]=D-m,m=D,y=e.nextVisibleColumn(R,r,N,I),C=-1,b=0,w=-1,S=0}if(C!==-1&&(b=e.nextVisibleColumn(b,r,N,I)),w!==-1&&(S=e.nextVisibleColumn(S,r,N,I)),2===T&&(l===i.WrappingIndent.None||f>=p)&&(C=f+1,b=c),4===T&&f=4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===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}(),d=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(e){var t=this._viewHelper.getWhitespaceAtVerticalOffset(e);if(t){var i=t.verticalOffset+t.height/2,o=this._context.model.getLineCount(),r=null,s=void 0,a=null;return t.afterLineNumber!==o&&(a=new n.Position(t.afterLineNumber+1,1)),t.afterLineNumber>0&&(r=new n.Position(t.afterLineNumber,this._context.model.getLineMaxColumn(t.afterLineNumber))),s=null===a?r:null===r?a:el)return a.isEdge&&1===u.column?t.fulfill(o.MouseTargetType.CONTENT_EMPTY,new n.Position(r,e.model.getLineMaxColumn(r))):t.fulfill(o.MouseTargetType.CONTENT_EMPTY,u);var c=e.visibleRangeForPosition2(r,s);if(!c)return t.fulfill(o.MouseTargetType.UNKNOWN,u);var d=c.left;if(t.mouseContentHorizontalOffset===d)return t.fulfill(o.MouseTargetType.CONTENT_TEXT,u);var h;if(s>1){var p=c.left;if(h=!1,h=h||p=t.editorPos.y+e.layoutInfo.height&&(r=t.editorPos.y+e.layoutInfo.height-1);var a=new s.PageCoordinates(t.pos.x,r),u=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());return u.position?u: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 i,o=n.startContainer;if(o.nodeType===o.TEXT_NODE){var s=o.parentNode,a=s?s.parentNode:null,u=a?a.parentNode:null,l=u&&u.nodeType===u.ELEMENT_NODE?u.className:null;if(l===r.ClassNames.VIEW_LINE){var c=e.getPositionFromDOMInfo(s,n.startOffset);return{position:c,hitTarget:null}}i=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var s=o.parentNode,a=s?s.parentNode:null,d=a&&a.nodeType===a.ELEMENT_NODE?a.className:null;if(d===r.ClassNames.VIEW_LINE){var c=e.getPositionFromDOMInfo(o,o.textContent.length);return{position:c,hitTarget:null}}i=o}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 i=n.offsetNode.parentNode,o=i?i.parentNode:null,s=o?o.parentNode:null,a=s&&s.nodeType===s.ELEMENT_NODE?s.className:null;if(a===r.ClassNames.VIEW_LINE){var u=e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset);return{position:u,hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var s=o?o.parentElement():null,a=s?s.parentNode:null,u=a?a.parentNode:null,l=u&&u.nodeType===u.ELEMENT_NODE?u.className:"";if(l===r.ClassNames.VIEW_LINE){var c=o.duplicate();c.moveToElementText(s),c.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(s,c.text.length),c.moveToElementText(e.viewDomNode)}else i=s;return o.moveToElementText(e.viewDomNode),{position:n,hitTarget:i}},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}();t.MouseTargetFactory=f}),define(d[376],h([0,1,4,18,24,11,15,20,2,51,135,17,105,36,108]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f){"use strict";function g(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var v=function(e){function t(t,n){var i=e.call(this)||this;return i._destination=t,i._condition=n,i._retryTimer=i._register(new d.TimeoutTimer),i.handler=function(e){return i._handle(e)},i}return m(t,e),t.prototype.dispose=function(){this._retryValue=null,e.prototype.dispose.call(this)},t.prototype._handle=function(e){var t=this;this._condition()?(this._retryTimer.cancel(),this._retryValue=null,this._destination(e)):(this._retryValue=e,this._retryTimer.setIfNotSet(function(){var e=t._retryValue;t._retryValue=null,t._handle(e)},10))},t}(n.Disposable),_=function(){function e(e,t){this.position=e,this.mouseColumn=t}return e}(),y=function(e){function t(n,i,o){var s=e.call(this)||this;s._isFocused=!1,s._context=n,s.viewController=i,s.viewHelper=o,s.mouseTargetFactory=new c.MouseTargetFactory(s._context,o),s.listenersToRemove=[],s._mouseDownOperation=new C(s._context,s.viewController,s.viewHelper,function(e,t){return s._createMouseTarget(e,t)},function(e){return s._getMouseColumn(e)}),s.toDispose=[],s._asyncFocus=new d.RunOnceScheduler(function(){return s.viewHelper.focusTextArea()},0),s.toDispose.push(s._asyncFocus),s.lastMouseLeaveTime=-1;var a=new h.EditorMouseEventFactory(s.viewHelper.viewDomNode);s.listenersToRemove.push(a.onContextMenu(s.viewHelper.viewDomNode,function(e){return s._onContextMenu(e,!0)})),s._mouseMoveEventHandler=new v(function(e){return s._onMouseMove(e)},function(){return!s.viewHelper.isDirty()}),s.toDispose.push(s._mouseMoveEventHandler),s.listenersToRemove.push(a.onMouseMoveThrottled(s.viewHelper.viewDomNode,s._mouseMoveEventHandler.handler,g(s.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),s.listenersToRemove.push(a.onMouseUp(s.viewHelper.viewDomNode,function(e){return s._onMouseUp(e)})),s.listenersToRemove.push(a.onMouseLeave(s.viewHelper.viewDomNode,function(e){return s._onMouseLeave(e)})),s.listenersToRemove.push(a.onMouseDown(s.viewHelper.viewDomNode,function(e){return s._onMouseDown(e)}));var u=function(e){if(s._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new p.StandardMouseWheelEvent(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=f.EditorZoom.getZoomLevel(),i=t.deltaY>0?1:-1;f.EditorZoom.setZoomLevel(n+i),t.preventDefault(),t.stopPropagation()}}};return s.listenersToRemove.push(r.addDisposableListener(s.viewHelper.viewDomNode,"mousewheel",u,!0)),s.listenersToRemove.push(r.addDisposableListener(s.viewHelper.viewDomNode,"DOMMouseScroll",u,!0)),s._context.addEventHandler(s),s}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this.listenersToRemove=n.dispose(this.listenersToRemove),this.toDispose=n.dispose(this.toDispose),this._mouseDownOperation.dispose()},t.prototype.onLayoutChanged=function(e){return!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.onCursorSelectionChanged=function(e){return this._mouseDownOperation.onCursorSelectionChanged(e),!1},t.prototype.onViewFocusChanged=function(e){return this._isFocused=e,!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new h.ClientCoordinates(e,t),i=n.toPageCoordinates(),o=h.createEditorPagePosition(this.viewHelper.viewDomNode);if(i.yo.y+o.height||i.xo.x+o.width)return null;var r=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(r,o,i,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){if(!this._mouseDownOperation.isActive()){var t=e.timestamp;tt.y+t.height){var o=this._viewHelper.getLineNumberAtVerticalOffset(this._viewHelper.getScrollTop()+(e.posy-t.y));return new _(new s.Position(o,this._context.model.getLineMaxColumn(o)),n)}var r=this._viewHelper.getLineNumberAtVerticalOffset(this._viewHelper.getScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new _(new s.Position(r,this._context.model.getLineMaxColumn(r)),n):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t),o=i.position;if(!o)return null;if(i.type===u.MouseTargetType.CONTENT_VIEW_ZONE||i.type===u.MouseTargetType.GUTTER_VIEW_ZONE){var r=new s.Position(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),a=i.detail,l=a.positionBefore,c=a.positionAfter;if(l&&c)return l.isBefore(r)?new _(l,i.mouseColumn):new _(c,i.mouseColumn)}return new _(o,i.mouseColumn)},t.prototype._dispatchMouse=function(e,t){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})},t}(n.Disposable),b=function(){function e(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0}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,"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.setStartedOnLineNumbers=function(e){this._startedOnLineNumbers=e},e.prototype.trySetCount=function(t,n){var i=(new Date).getTime();i-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1),this._lastSetMouseDownCountTime=i,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}();b.CLEAR_MOUSE_DOWN_COUNT_TIME=400}),define(d[377],h([0,1,11,59,376,105]),function(e,t,n,i,o,r){"use strict";function s(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var a=function(e){function t(t,i,o){var r=e.call(this,t,i,o)||this;return r.viewHelper.linesContentDomNode.style.msTouchAction="none",r.viewHelper.linesContentDomNode.style.msContentZooming="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;return i===(n.MSPOINTER_TYPE_MOUSE||"mouse")?void(r._lastPointerType="mouse"):void(i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen",t.addPointer(n.pointerId)))}),r.listenersToRemove.push(n.addDisposableThrottledListener(r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},s)),r.listenersToRemove.push(n.addDisposableListener(r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return m(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 r.EditorMouseEvent(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo("mouse",i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this.viewHelper.setScrollPosition({scrollLeft:this.viewHelper.getScrollLeft()-e.translationX,scrollTop:this.viewHelper.getScrollTop()-e.translationY})},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(o.MouseHandler),u=function(e){function t(t,i,o){var r=e.call(this,t,i,o)||this;return r.viewHelper.linesContentDomNode.style.touchAction="none",r._installGestureHandlerTimeout=window.setTimeout(function(){if(r._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=r.viewHelper.linesContentDomNode,t.target=r.viewHelper.linesContentDomNode,r.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;return"mouse"===i?void(r._lastPointerType="mouse"):void("touch"===i?(r._lastPointerType="touch",e.addPointer(n.pointerId)):(r._lastPointerType="pen",t.addPointer(n.pointerId)))}),r.listenersToRemove.push(n.addDisposableThrottledListener(r.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return r._onGestureChange(e)},s)),r.listenersToRemove.push(n.addDisposableListener(r.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return r._onCaptureGestureTap(e)},!0))}},100),r._lastPointerType="mouse",r}return m(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 r.EditorMouseEvent(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo("mouse",i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this.viewHelper.setScrollPosition({scrollLeft:this.viewHelper.getScrollLeft()-e.translationX,scrollTop:this.viewHelper.getScrollTop()-e.translationY})},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}(o.MouseHandler),l=function(e){function t(t,o,s){var a=e.call(this,t,o,s)||this;return a.gesture=new i.Gesture(a.viewHelper.linesContentDomNode),a.listenersToRemove.push(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Tap,function(e){return a.onTap(e)})),a.listenersToRemove.push(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Change,function(e){return a.onChange(e)})),a.listenersToRemove.push(n.addDisposableListener(a.viewHelper.linesContentDomNode,i.EventType.Contextmenu,function(e){return a._onContextMenu(new r.EditorMouseEvent(e,a.viewHelper.viewDomNode),!1)})),a}return m(t,e),t.prototype.dispose=function(){this.gesture.dispose(),e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new r.EditorMouseEvent(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo("mouse",t.position)},t.prototype.onChange=function(e){this.viewHelper.setScrollPosition({scrollLeft:this.viewHelper.getScrollLeft()-e.translationX,scrollTop:this.viewHelper.getScrollTop()-e.translationY})},t}(o.MouseHandler),c=function(){function e(e,t,n){window.navigator.msPointerEnabled?this.handler=new a(e,t,n):window.TouchEvent?this.handler=new l(e,t,n):window.navigator.pointerEnabled?this.handler=new u(e,t,n):this.handler=new o.MouseHandler(e,t,n)}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}();t.PointerHandler=c}),define(d[136],h([0,1,32,28]),function(e,t,n,i){"use strict";var o=function(){function e(e){this._lines=[],this._rendLineNumberStart=1,this._createLine=e}return 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: "+e);return this._lines[t]},e.prototype.onModelLinesDeleted=function(e,t){if(0===this.getCount())return null;for(var n=this.getStartLineNumber(),i=this.getEndLineNumber(),o=0,r=0,s=n;s<=i;s++){var a=s-this._rendLineNumberStart;e<=s&&s<=t&&(0===r?(o=a,r=1):r++)}if(eo)return null;if(n+e>o){var r=this._lines.splice(e-this._rendLineNumberStart,o-e+1);return r}for(var s=[],a=0;an))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(),i=!0}}return i},e}();t.RenderedLinesCollection=o;var r=function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=n._createDomNode(),n._linesCollection=new o(function(){return n._createLine(); -}),n._scrollDomNode=null,n._scrollDomNodeIsAbove=!1,n._renderer=new s(function(){return n._createLine()}),n}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._linesCollection=null},t.prototype.onConfigurationChanged=function(e){for(var t=this._linesCollection.getStartLineNumber(),n=this._linesCollection.getEndLineNumber(),i=t;i<=n;i++){var o=this._linesCollection.getLine(i);o.onConfigurationChanged(e)}return!0},t.prototype.onLayoutChanged=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.onModelFlushed=function(){var e=this;return this._linesCollection=new o(function(){return e._createLine()}),this._scrollDomNode=null,!0},t.prototype.onModelLinesDeleted=function(e){var t=this._linesCollection.onModelLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt){var u=t,l=Math.min(n,o.rendLineNumberStart-1);u<=l&&(this._insertLinesBefore(o,u,l,i,t),o.linesLength+=l-u+1,o.scrollDomNode&&o.scrollDomNodeIsAbove&&(o.scrollDomNode.parentNode&&o.scrollDomNode.parentNode.removeChild(o.scrollDomNode),o.scrollDomNode=null))}else if(o.rendLineNumberStart0&&(this._removeLinesBefore(o,c),o.linesLength-=c)}if(o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1n){var u=Math.max(0,n-o.rendLineNumberStart+1),l=o.linesLength-1,c=l-u+1;c>0&&(this._removeLinesAfter(o,c),o.linesLength-=c)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=t;r<=n;r++){var s=e.rendLineNumberStart+r,a=e.lines[r].getDomNode();a&&e.lines[r].layoutLine(s,i[s-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this._createLine();e.lines=r.concat(e.lines)},e.prototype._getScrollDomNodeTime=function(e){var t=e.getAttribute("last-scroll-time");return t?parseInt(t,10):0},e.prototype._removeIfNotScrollDomNode=function(e,t,n){var i=this._getScrollDomNodeTime(t);if(!i)return void e.domNode.removeChild(t);if(e.scrollDomNode){var o=this._getScrollDomNodeTime(e.scrollDomNode);if(o>i)return void e.domNode.removeChild(t);e.scrollDomNode.parentNode&&e.scrollDomNode.parentNode.removeChild(e.scrollDomNode),e.scrollDomNode=null}e.scrollDomNode=t,e.scrollDomNodeIsAbove=n},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;s--){var a=e.lines[s];i[s]&&(a.setDomNode(r),r=r.previousSibling)}},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t.join("");for(var o=0;othis.scrollManager.getWidth()&&this.configuration.editor.viewInfo.scrollbar.horizontal!==n.ScrollbarVisibility.Hidden&&(e=this.configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize),this.linesLayout.getTotalHeight(this.getCurrentViewport(),e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this.linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){return this.linesLayout.getLinesViewportData(this.getCurrentViewport())},t.prototype.getWhitespaceViewportData=function(){return this.linesLayout.getWhitespaceViewportData(this.getCurrentViewport())},t.prototype.getWhitespaces=function(){return this.linesLayout.getWhitespaces()},t.prototype.getOverviewRulerInsertData=function(){var e=this.scrollManager.getOverviewRulerLayoutInfo();return{parent:e.parent,insertBefore:e.insertBefore}},t.prototype.getScrollbarContainerDomNode=function(){return this.scrollManager.getScrollbarContainerDomNode()},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollManager.delegateVerticalScrollbarMouseDown(e)},t.prototype.getScrollWidth=function(){return this.scrollManager.getScrollWidth()},t.prototype.getScrollLeft=function(){return this.scrollManager.getScrollLeft()},t.prototype.getScrollHeight=function(){return this.scrollManager.getScrollHeight()},t.prototype.getScrollTop=function(){return this.scrollManager.getScrollTop()},t.prototype.setScrollPosition=function(e){this.scrollManager.setScrollPosition(e)},t.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollManager.getScrollTop()},t.prototype.renderScrollbar=function(){this.scrollManager.renderScrollbar()},t}(r.ViewEventHandler);a.LINES_HORIZONTAL_EXTRA_PX=30,t.LayoutProvider=a}),define(d[382],h([0,1,11,28,21,32]),function(e,t,n,i,o,r){"use strict";var s=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i._contentWidth=0,i._contentLeft=0,i._lineHeight=i._context.configuration.editor.lineHeight,i._renderData={},i.domNode=document.createElement("div"),r.PartFingerprints.write(i.domNode,1),i.domNode.className=o.ClassNames.CONTENT_WIDGETS,i.domNode.style.position="absolute",i.domNode.style.top="0",i.overflowingContentWidgetsDomNode=document.createElement("div"),r.PartFingerprints.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.className=o.ClassNames.OVERFLOWING_CONTENT_WIDGETS,i}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null,this.domNode=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelDecorationsChanged=function(e){return!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){return!1},t.prototype.onCursorSelectionChanged=function(e){return!1},t.prototype.onCursorRevealRange=function(e){return!1},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),!0},t.prototype.onLayoutChanged=function(e){if(this._contentLeft=e.contentLeft,this._contentWidth!==e.contentWidth){this._contentWidth=e.contentWidth;for(var t=Object.keys(this._widgets),n=0,o=t.length;n=r,h=u,p=l>=r,f=i.left;return f+o>n.viewportLeft+n.viewportWidth&&(f=n.viewportLeft+n.viewportWidth-o),fthis._contentWidth)return null;var u=o.top-a,l=o.top+this._lineHeight,c=r+this._contentLeft,d=n.getDomNodePagePosition(this._viewDomNode),h=d.top+u-n.StandardWindow.scrollY,p=d.top+l-n.StandardWindow.scrollY,f=d.left+c-n.StandardWindow.scrollX,g=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,m=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,v=22,_=22,y=h>=v,C=p+a<=m-_;if(f+s+20>g){var b=f-(g-s-20);f-=b,c-=b}if(f<0){var b=f;f-=b,c-=b}return this._context.configuration.editor.viewInfo.fixedOverflowWidgets&&(u=h,l=p,c=f),{aboveTop:u,fitsAbove:y,belowTop:l,fitsBelow:C,left:c}},t.prototype._prepareRenderWidgetAtExactPosition=function(e,t){var n=t.visibleRangeForPosition(e);return n?{top:n.top,left:n.left}:null},t.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e,t){var n=this._prepareRenderWidgetAtExactPosition(e,t);return n.left+=this._contentLeft,n},t.prototype._prepareRenderWidget=function(e,t){var n=this;if(!e.position||!e.preference)return null;var i=this._context.model.validateModelPosition(e.position);if(!this._context.model.modelPositionIsVisible(i))return null;for(var r=this._context.model.convertModelPositionToViewPosition(i.lineNumber,i.column),s=null,a=function(){if(!s){var i=e.widget.getDomNode();s=e.allowEditorOverflow?n._layoutBoxInPage(r,i,t):n._layoutBoxInViewport(r,i,t)}},u=1;u<=2;u++)for(var l=0;l':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty&&this._primaryCursorIsInEditableRange},t}(n.DynamicViewOverlay);t.CurrentLineHighlightOverlay=i}),define(d[384],h([0,1,50,330]),function(e,t,n){"use strict";var i=function(e){function t(t,n){var i=e.call(this)||this;return i._context=t,i._lineHeight=i._context.configuration.editor.lineHeight,i._renderLineHighlight=i._context.configuration.editor.viewInfo.renderLineHighlight,i._layoutProvider=n,i._primaryCursorIsInEditableRange=!0,i._primaryCursorLineNumber=1,i._contentLeft=i._context.configuration.editor.layoutInfo.contentLeft,i._context.addEventHandler(i),i}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null},t.prototype.onModelFlushed=function(){return this._primaryCursorIsInEditableRange=!0,this._primaryCursorLineNumber=1,!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){var t=!1;return this._primaryCursorIsInEditableRange!==e.isInEditableRange&&(this._primaryCursorIsInEditableRange=e.isInEditableRange,t=!0),this._primaryCursorLineNumber!==e.position.lineNumber&&(this._primaryCursorLineNumber=e.position.lineNumber,t=!0),t},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo.renderLineHighlight&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onLayoutChanged=function(e){return!0},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'
    ':""},t.prototype._shouldShowCurrentLine=function(){return("gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._primaryCursorIsInEditableRange},t}(n.DynamicViewOverlay);t.CurrentLineMarginHighlightOverlay=i}),define(d[385],h([0,1,50,3,331]),function(e,t,n,i){"use strict";var o=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderResult=null,n._context.addEventHandler(n),n}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelDecorationsChanged=function(e){return!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){return!1},t.prototype.onCursorSelectionChanged=function(e){return!1},t.prototype.onCursorRevealRange=function(e){return!1},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),!0},t.prototype.onLayoutChanged=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(e){if(!this.shouldRender())throw new Error("I did not ask to render!");for(var t=e.getDecorationsInViewport(),n=[],o=0,r=0,s=t.length;ro?1:i.Range.compareRangesUsingStarts(e.range,t.range)});for(var u=e.visibleRange.startLineNumber,l=e.visibleRange.endLineNumber,c=[],d=u;d<=l;d++){var h=d-u;c[h]=""}this._renderWholeLineDecorations(e,n,c),this._renderNormalDecorations(e,n,c),this._renderResult=c},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s=0,a=t.length;s',c=Math.max(u.range.startLineNumber,o),d=Math.min(u.range.endLineNumber,r),h=c;h<=d;h++){var p=h-o;n[p]+=l}}},t.prototype._renderNormalDecorations=function(e,t,n){for(var i=String(this._lineHeight),o=e.visibleRange.startLineNumber,r=0,s=t.length;r';n[p]+=v}}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)throw new Error("Unexpected render request");return this._renderResult[n]},t}(n.DynamicViewOverlay);t.DecorationsOverlay=o}),define(d[101],h([0,1,50,332]),function(e,t,n){ -"use strict";var i=function(){function e(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}return e}();t.DecorationToRender=i;var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++){var r=o-e;i[r]=[]}if(0===n.length)return i;n.sort(function(e,t){return e.className===t.className?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.className',u=[],l=t;l<=n;l++){var c=l-t,d=i[c];0===d.length?u[c]="":u[c]='
    =this._renderResult.length)throw new Error("Unexpected render request");return this._renderResult[n]},t}(o);t.GlyphMarginOverlay=r}),define(d[387],h([0,1,50,333]),function(e,t,n){"use strict";var i=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._spaceWidth=n._context.configuration.editor.fontInfo.spaceWidth,n._enabled=n._context.configuration.editor.viewInfo.renderIndentGuides,n._renderResult=null,n._context.addEventHandler(n),n}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo.renderIndentGuides&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides),!0},t.prototype.onLayoutChanged=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(e){if(!this.shouldRender())throw new Error("I did not ask to render!");if(!this._enabled)return void(this._renderResult=null);for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getTabSize(),o=i*this._spaceWidth,r=this._lineHeight,s=[],a=t;a<=n;a++){for(var u=a-t,l=this._context.model.getLineIndentGuide(a),c="",d=0,h=0;h
    ',d+=o;s[u]=c}this._renderResult=s},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)throw new Error("Unexpected render request");return this._renderResult[n]},t}(n.DynamicViewOverlay);t.IndentGuidesOverlay=i}),define(d[388],h([0,1,18,50,21,335]),function(e,t,n,i,o){"use strict";var r=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineNumbers=n._context.configuration.editor.viewInfo.renderLineNumbers,n._renderRelativeLineNumbers=n._context.configuration.editor.viewInfo.renderRelativeLineNumbers,n._lineNumbersLeft=0,n._lineNumbersWidth=0,n._renderResult=null,n._context.addEventHandler(n),n}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelDecorationsChanged=function(e){return!1},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){return!!this._renderRelativeLineNumbers},t.prototype.onCursorSelectionChanged=function(e){return!1},t.prototype.onCursorRevealRange=function(e){return!1},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo.renderLineNumbers&&(this._renderLineNumbers=this._context.configuration.editor.viewInfo.renderLineNumbers),e.viewInfo.renderRelativeLineNumbers&&(this._renderRelativeLineNumbers=this._context.configuration.editor.viewInfo.renderRelativeLineNumbers),!0},t.prototype.onLayoutChanged=function(e){return this._lineNumbersLeft=e.lineNumbersLeft,this._lineNumbersWidth=e.lineNumbersWidth,!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype.prepareRender=function(e){if(!this._renderLineNumbers)return void(this._renderResult=null);for(var t=n.isLinux?this._lineHeight%2===0?" lh-even":" lh-odd":"",i=e.visibleRange.startLineNumber,r=e.visibleRange.endLineNumber,s='
    ',a=[],u=i;u<=r;u++){var l=u-i,c=this._context.model.getLineRenderLineNumber(u);c?a[l]=s+c+"
    ":a[l]=""}this._renderResult=a},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)throw new Error("Unexpected render request");return this._renderResult[n]},t}(i.DynamicViewOverlay);t.LineNumbersOverlay=r}),define(d[389],h([0,1,101,338]),function(e,t,n){"use strict";var i=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=0,n._decorationsWidth=0,n._renderResult=null,n._context.addEventHandler(n),n}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelDecorationsChanged=function(e){return!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){return!1},t.prototype.onCursorSelectionChanged=function(e){return!1},t.prototype.onCursorRevealRange=function(e){return!1},t.prototype.onConfigurationChanged=function(e){return!0},t.prototype.onLayoutChanged=function(e){return this._decorationsLeft=e.decorationsLeft,this._decorationsWidth=e.decorationsWidth,!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),i=[],o=0,r=t.length;o',a=[],u=t;u<=n;u++){for(var l=u-t,c=i[l],d="",h=0,p=c.length;h';o[s]=u}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(n.DedupOverlay);t.MarginViewLineDecorationsOverlay=i}),define(d[392],h([0,1,28,21,32,340]),function(e,t,n,i,o){"use strict";var r=function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=0,n._horizontalScrollbarHeight=0,n._editorHeight=0,n._editorWidth=0,n.domNode=document.createElement("div"),o.PartFingerprints.write(n.domNode,4),n.domNode.className=i.ClassNames.OVERLAY_WIDGETS,n}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null},t.prototype.onLayoutChanged=function(e){return this._verticalScrollbarWidth=e.verticalScrollbarWidth,this._horizontalScrollbarHeight=e.horizontalScrollbarHeight,this._editorHeight=e.height,this._editorWidth=e.width,!0},t.prototype.addWidget=function(e){this._widgets[e.getId()]={widget:e,preference:null};var t=e.getDomNode();t.style.position="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],i=n.widget.getDomNode();delete this._widgets[t],i.parentNode.removeChild(i),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t="data-editor-restoreStyleTop",o=e.widget.getDomNode();if(null!==e.preference)if(e.preference===i.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER)o.hasAttribute(t)||o.setAttribute(t,o.style.top),n.StyleMutator.setTop(o,0),n.StyleMutator.setRight(o,2*this._verticalScrollbarWidth);else if(e.preference===i.OverlayWidgetPositionPreference.BOTTOM_RIGHT_CORNER){o.hasAttribute(t)||o.setAttribute(t,o.style.top);var r=o.clientHeight;n.StyleMutator.setTop(o,this._editorHeight-r-2*this._horizontalScrollbarHeight),n.StyleMutator.setRight(o,2*this._verticalScrollbarWidth)}else e.preference===i.OverlayWidgetPositionPreference.TOP_CENTER&&(o.hasAttribute(t)||o.setAttribute(t,o.style.top),n.StyleMutator.setTop(o,0),o.style.right="50%");else if(o.hasAttribute(t)){var s=o.getAttribute(t);o.removeAttribute(t),o.style.top=s}},t.prototype.prepareRender=function(e){if(!this.shouldRender())throw new Error("I did not ask to render!")},t.prototype.render=function(e){n.StyleMutator.setWidth(this.domNode,this._editorWidth);for(var t=Object.keys(this._widgets),i=0,o=t.length;i=this._rulers.length)this.domNode.removeChild(this.domNode.lastChild);else{var r=void 0;o0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return e.viewInfo.scrollbar&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),this._updateShouldShow()},t.prototype.onLayoutChanged=function(e){return this._width!==e.width&&(this._width=e.width,!0)},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){if(!this.shouldRender())throw new Error("I did not ask to render!")},t.prototype.render=function(e){i.StyleMutator.setWidth(this._domNode,this._width),n.toggleClass(this._domNode,o.ClassNames.SCROLL_DECORATION,this._shouldShow)},t}(r.ViewPart);t.ScrollDecorationViewPart=s}),define(d[396],h([0,1,50,24,348]),function(e,t,n,i){"use strict";function o(e){return new a(e)}function r(e){return new u(e.lineNumber,e.ranges.map(o))}var s;!function(e){e[e.EXTERN=0]="EXTERN",e[e.INTERN=1]="INTERN",e[e.FLAT=2]="FLAT"}(s||(s={}));var a=function(){function e(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}return e}(),u=function(){function e(e,t){this.lineNumber=e,this.ranges=t}return e}(),l=i.isEdgeOrIE,c=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._selections=[],n._renderResult=null,n._context.addEventHandler(n),n}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._selections=null,this._renderResult=null},t.prototype.onModelFlushed=function(){return!0},t.prototype.onModelDecorationsChanged=function(e){return!0},t.prototype.onModelLinesDeleted=function(e){return!0},t.prototype.onModelLineChanged=function(e){return!0},t.prototype.onModelLinesInserted=function(e){return!0},t.prototype.onCursorPositionChanged=function(e){return!1},t.prototype.onCursorSelectionChanged=function(e){return this._selections=[e.selection],this._selections=this._selections.concat(e.secondarySelections),!0},t.prototype.onCursorRevealRange=function(e){return!1},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo.roundedSelection&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),!0},t.prototype.onLayoutChanged=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(){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){var n=null,i=null;if(t&&t.length>0&&e.length>0){for(var o=e[0].lineNumber,r=0;!n&&r=0;r--)t[r].lineNumber===s&&(i=t[r].ranges[0]);n&&!n.startStyle&&(n=null),i&&!i.startStyle&&(i=null)}for(var r=0,a=e.length;r0){var p=e[r-1].ranges[0].left,f=e[r-1].ranges[0].left+e[r-1].ranges[0].width;l===p?d.top=2:l>p&&(d.top=1),c===f?h.top=2:p'},t.prototype._actualRenderOneSelection=function(e,n,i,o){for(var r=o.length>0&&o[0].ranges[0].startStyle,s=this._lineHeight.toString(),a=(this._lineHeight-1).toString(),u=o.length>0?o[0].lineNumber:0,l=o.length>0?o[o.length-1].lineNumber:0,c=0,d=o.length;c1,c)}}this._previousFrameVisibleRangesWithStyle=s,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)throw new Error("Unexpected render request");return this._renderResult[n]},t}(n.DynamicViewOverlay);c.SELECTION_CLASS_NAME="selected-text",c.SELECTION_TOP_LEFT="top-left-radius",c.SELECTION_BOTTOM_LEFT="bottom-left-radius",c.SELECTION_TOP_RIGHT="top-right-radius",c.SELECTION_BOTTOM_RIGHT="bottom-right-radius",c.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",c.ROUNDED_PIECE_WIDTH=10,t.SelectionsOverlay=c}),define(d[397],h([0,1,10,28,21,32,15]),function(e,t,n,i,o,r,s){"use strict";var a=function(e){function t(t,n){var i=e.call(this,t)||this;return i._lineHeight=i._context.configuration.editor.lineHeight,i._contentWidth=i._context.configuration.editor.layoutInfo.contentWidth,i._contentLeft=i._context.configuration.editor.layoutInfo.contentLeft,i._whitespaceManager=n,i.domNode=document.createElement("div"),i.domNode.className=o.ClassNames.VIEW_ZONES,i.domNode.style.position="absolute",i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.marginDomNode=document.createElement("div"),i.marginDomNode.className="margin-view-zones",i.marginDomNode.style.position="absolute",i.marginDomNode.setAttribute("role","presentation"),i.marginDomNode.setAttribute("aria-hidden","true"),i._zones={},i}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._whitespaceManager=null,this._zones={}},t.prototype._recomputeWhitespacesProps=function(){for(var e=!1,t=Object.keys(this._zones),n=0,i=t.length;ni&&(n=new r.Position(n.lineNumber,i));for(var s=[],a=0,u=e.secondaryPositions.length;ai&&(s[a]=new r.Position(s[a].lineNumber,i));var l={position:n,secondaryPositions:s,isInEditableRange:e.isInEditableRange};t(o.ViewEventNames.CursorPositionChangedEvent,l)},e.prototype.onCursorSelectionChanged=function(e,t){this.lastCursorSelectionChangedEvent=e;for(var n=this.converter.validateViewSelection(e.viewSelection,e.selection),i=[],r=0,s=e.secondarySelections.length;r1){var v=new o.InlineDecoration(new n.Range(m.endLineNumber,m.endColumn-1,m.endLineNumber,m.endColumn),f.afterContentClassName,!0);l[m.endLineNumber-i].push(v)}}return{decorations:a,inlineDecorations:l}},e}();t.ViewModelDecorations=r}),define(d[400],h([0,1,25,4,9,15,3,20,2,398,399]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";var d=function(e){function t(t,i,o,s,a){var d=e.call(this)||this;return d.lines=t,d.editorId=i,d.configuration=o,d.model=s,d._lastCursorPosition=new r.Position(1,1),d._renderCustomLineNumbers=d.configuration.editor.viewInfo.renderCustomLineNumbers,d._renderRelativeLineNumbers=d.configuration.editor.viewInfo.renderRelativeLineNumbers,d.getCurrentCenteredModelRange=a,d.decorations=new c.ViewModelDecorations(d.editorId,d.model,d.configuration,{convertModelRangeToViewRange:function(e,t){return t?d.convertWholeLineModelRangeToViewRange(e):d.convertModelRangeToViewRange(e)},convertViewRangeToModelRange:function(e){return d.convertViewRangeToModelRange(e)}}),d.decorations.reset(),d.cursors=new l.ViewModelCursors(d.configuration,d),d.listenersToRemove=[],d._toDispose=[],d.listenersToRemove.push(d.model.addBulkListener(function(e){return d.onEvents(e)})),d._toDispose.push(d.configuration.onDidChange(function(e){d.onEvents([new n.EmitterEvent(u.EventType.ConfigurationChanged,e)])})),d}return m(t,e),t.prototype.setHiddenAreas=function(e){try{this._beginDeferredEmit(),this._setHiddenAreas(e)}finally{this._endDeferredEmit()}},t.prototype._setHiddenAreas=function(e){var t=this,n=this.lines.setHiddenAreas(e,function(e,n){return t.emit(e,n)});n&&(this.emit(u.ViewEventNames.LineMappingChangedEvent),this.decorations.onLineMappingChanged(function(e,n){return t.emit(e,n)}),this.cursors.onLineMappingChanged(function(e,n){return t.emit(e,n)}))},t.prototype.dispose=function(){this.listenersToRemove=i.dispose(this.listenersToRemove),this._toDispose=i.dispose(this._toDispose),this.decorations.dispose(),this.decorations=null,this.lines.dispose(),this.lines=null,this.configuration=null,this.model=null},t.prototype._onTabSizeChange=function(e){var t=this,n=this.lines.setTabSize(e,function(e,n){return t.emit(e,n)});return n&&(this.emit(u.ViewEventNames.LineMappingChangedEvent),this.decorations.onLineMappingChanged(function(e,n){return t.emit(e,n)}),this.cursors.onLineMappingChanged(function(e,n){return t.emit(e,n)})),n},t.prototype._onWrappingIndentChange=function(e){var t=this,n=this.lines.setWrappingIndent(e,function(e,n){return t.emit(e,n)});return n&&(this.emit(u.ViewEventNames.LineMappingChangedEvent),this.decorations.onLineMappingChanged(function(e,n){return t.emit(e,n)}),this.cursors.onLineMappingChanged(function(e,n){return t.emit(e,n)})),n},t.prototype._restoreCenteredModelRange=function(e){var t=this.convertModelRangeToViewRange(e),n={range:t,verticalType:1,revealHorizontal:!1,revealCursor:!1};this.emit(u.ViewEventNames.RevealRangeEvent,n)},t.prototype._onWrappingColumnChange=function(e,t){var n=this,i=this.lines.setWrappingColumn(e,t,function(e,t){return n.emit(e,t)});return i&&(this.emit(u.ViewEventNames.LineMappingChangedEvent),this.decorations.onLineMappingChanged(function(e,t){return n.emit(e,t)}),this.cursors.onLineMappingChanged(function(e,t){return n.emit(e,t)})),i},t.prototype.addEventSource=function(e){var t=this;this.listenersToRemove.push(e.addBulkListener2(function(e){return t.onEvents(e)}))},t.prototype.onEvents=function(e){try{this._beginDeferredEmit(),this._onEvents(e)}finally{this._endDeferredEmit()}},t.prototype._onEvents=function(e){var t,n=this,i=e.some(function(e){return e.getType()===u.EventType.ModelRawContentChanged});i||(t=this.getCurrentCenteredModelRange());var o,r,s,a,l,c=!1,d=!1,h=!1;for(o=0,r=e.length;oi&&(e=i);var o=this.getLineMinColumn(e),s=this.getLineMaxColumn(e);ts&&(t=s);var a=this.convertViewPositionToModelPosition(e,t);return a.equals(n)?new r.Position(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},t.prototype.validateViewSelection=function(e,t){var n=new r.Position(t.selectionStartLineNumber,t.selectionStartColumn),i=new r.Position(t.positionLineNumber,t.positionColumn),o=this.validateViewPosition(e.selectionStartLineNumber,e.selectionStartColumn,n),s=this.validateViewPosition(e.positionLineNumber,e.positionColumn,i);return new a.Selection(o.lineNumber,o.column,s.lineNumber,s.column)},t.prototype.onCursorPositionChanged=function(e){var t=this;this.cursors.onCursorPositionChanged(e,function(e,n){return t.emit(e,n)})},t.prototype.onCursorSelectionChanged=function(e){var t=this;this.cursors.onCursorSelectionChanged(e,function(e,n){return t.emit(e,n)})},t.prototype.onCursorRevealRange=function(e){var t=this;this.cursors.onCursorRevealRange(e,function(e,n){return t.emit(e,n)})},t.prototype.onCursorScrollRequest=function(e){var t=this;this.cursors.onCursorScrollRequest(e,function(e,n){return t.emit(e,n)})},t.prototype.getTabSize=function(){return this.model.getOptions().tabSize},t.prototype.getLineCount=function(){return this.lines.getOutputLineCount()},t.prototype.mightContainRTL=function(){return this.model.mightContainRTL()},t.prototype.mightContainNonBasicASCII=function(){return this.model.mightContainNonBasicASCII()},t.prototype.getLineContent=function(e){return this.lines.getOutputLineContent(e)},t.prototype.getLineIndentGuide=function(e){return this.lines.getOutputIndentGuide(e)},t.prototype.getLineMinColumn=function(e){return this.lines.getOutputLineMinColumn(e)},t.prototype.getLineMaxColumn=function(e){return this.lines.getOutputLineMaxColumn(e)},t.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=o.firstNonWhitespaceIndex(this.getLineContent(e));return t===-1?0:t+1},t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=o.lastNonWhitespaceIndex(this.getLineContent(e));return t===-1?0:t+2},t.prototype.getLineTokens=function(e){return this.lines.getOutputLineTokens(e)},t.prototype.getLineRenderLineNumber=function(e){var t=this.convertViewPositionToModelPosition(e,1);if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(this._renderRelativeLineNumbers){var i=Math.abs(this._lastCursorPosition.lineNumber-n);return 0===i?''+n+"":String(i)}return String(n)},t.prototype.getMaxLineNumber=function(){return this.model.getLineCount()},t.prototype.getDecorationsViewportData=function(e,t){var n=new s.Range(e,this.getLineMinColumn(e),t,this.getLineMaxColumn(t));return this.decorations.getDecorationsViewportData(n)},t.prototype.getAllOverviewRulerDecorations=function(){return this.decorations.getAllOverviewRulerDecorations()},t.prototype.getEOL=function(){return this.model.getEOL()},t.prototype.getValueInRange=function(e,t){var n=this.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)},t.prototype.getSelections=function(){return this.cursors.getSelections()},t.prototype.convertViewPositionToModelPosition=function(e,t){return this.lines.convertOutputPositionToInputPosition(e,t)},t.prototype.convertViewRangeToModelRange=function(e){var t=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn),n=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new s.Range(t.lineNumber,t.column,n.lineNumber,n.column)},t.prototype.convertViewSelectionToModelSelection=function(e){var t=this.convertViewPositionToModelPosition(e.selectionStartLineNumber,e.selectionStartColumn),n=this.convertViewPositionToModelPosition(e.positionLineNumber,e.positionColumn);return new a.Selection(t.lineNumber,t.column,n.lineNumber,n.column)},t.prototype.getModelLineContent=function(e){return this.model.getLineContent(e)},t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)},t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)},t.prototype.convertModelPositionToViewPosition=function(e,t){return this.lines.convertInputPositionToOutputPosition(e,t)},t.prototype.convertModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,e.startColumn),n=this.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new s.Range(t.lineNumber,t.column,n.lineNumber,n.column)},t.prototype.convertWholeLineModelRangeToViewRange=function(e){var t=this.convertModelPositionToViewPosition(e.startLineNumber,1),n=this.convertModelPositionToViewPosition(e.endLineNumber,this.model.getLineMaxColumn(e.endLineNumber));return new s.Range(t.lineNumber,t.column,n.lineNumber,n.column)},t.prototype.convertModelSelectionToViewSelection=function(e){var t=this.convertModelPositionToViewPosition(e.selectionStartLineNumber,e.selectionStartColumn),n=this.convertModelPositionToViewPosition(e.positionLineNumber,e.positionColumn);return new a.Selection(t.lineNumber,t.column,n.lineNumber,n.column)},t.prototype.modelPositionIsVisible=function(e){return this.lines.inputPositionIsVisible(e.lineNumber,e.column)},t}(n.EventEmitter);t.ViewModel=d}),define(d[401],h([0,1,2]),function(e,t,n){"use strict";var i=function(){function e(e){this._editor=e,this._decorations=[],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._editor=null,this._decorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=null},e.prototype.reset=function(){this._decorations=[],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.getCurrentMatchesPosition=function(e){for(var t=0,n=this._decorations.length;t0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e),!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)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),!this._cannotFind()){var i=this._decorations.getFindScope(),o=e._getSearchRange(this._editor.getModel(),this._state.isReplaceRevealed,i);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition()),t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var r=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new s.Position(r,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord,!1);if(c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)){var d=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);d||1===a?(1===r?r=u.getLineCount():r--,a=u.getLineMaxColumn(r)):a--,l=new s.Position(r,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord,!1)}return c?n||o.containsRange(c.range)?void this._setCurrentFindMatch(c.range):this._moveToPrevMatch(c.range.getStartPosition(),!0):null}},e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())},e.prototype._moveToNextMatch=function(e){var t=this._getNextMatch(e,!1);t&&this._setCurrentFindMatch(t.range)},e.prototype._getNextMatch=function(t,n,i){if(void 0===i&&(i=!1),this._cannotFind())return null;var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),this._state.isReplaceRevealed,o);r.getEndPosition().isBefore(t)&&(t=r.getStartPosition()),t.isBefore(r.getStartPosition())&&(t=r.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new s.Position(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord,n);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)){var h=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);h||u===l.getLineMaxColumn(a)?(a===l.getLineCount()?a=1:a++,u=1):u++,c=new s.Position(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord,n)}return d?i||r.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?o.parseReplaceString(this._state.replaceString):o.ReplacePattern.fromStaticValue(this._state.replaceString)},e.prototype.replace=function(){if(this._hasMatches()){var e=this._getReplacePattern(),t=this._editor.getSelection(),n=this._getNextMatch(t.getStartPosition(),e.hasReplacementPatterns);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches),o=new r.ReplaceCommand(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new s.Position(t.startLineNumber,t.startColumn+i.length)),this.research(!0)}else this._decorations.setStartPosition(this._editor.getPosition()),this._setCurrentFindMatch(n.range)}},e.prototype._findMatches=function(t,n,i){var o=e._getSearchRange(this._editor.getModel(),this._state.isReplaceRevealed,t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){for(var e=this._decorations.getFindScope(),t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,Number.MAX_VALUE),i=[],o=0,r=n.length;o=e.startLineNumber&&t<=e.endLineNumber}function c(e,t){return te.endLineNumber}function h(e,t){return e instanceof i.Range&&t instanceof i.Range?e.containsRange(t):e.startLineNumber<=t.startLineNumber&&e.endLineNumber>=t.endLineNumber}function p(e,t,n,i,o){var r=o?new m(e,t,n):new g(e,t,n);return r.getRegionsTill(i)}t.toString=o;var f=function(){function e(e,t,n){this.decorationIds=[],this.update(e,t,n)}return Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this._isCollapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isExpanded",{get:function(){return!this._isCollapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indent",{get:function(){return this._indent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"foldingRange",{get:function(){return this._lastRange},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this._lastRange?this._lastRange.startLineNumber:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this._lastRange?this._lastRange.endLineNumber:void 0},enumerable:!0,configurable:!0}),e.prototype.setCollapsed=function(e,t){this._isCollapsed=e,this.decorationIds.length>0&&t.changeDecorationOptions(this.decorationIds[0],this.getVisualDecorationOptions())},e.prototype.getDecorationRange=function(e){return this.decorationIds.length>0?e.getDecorationRange(this.decorationIds[1]):null},e.prototype.getVisualDecorationOptions=function(){return this._isCollapsed?{stickiness:n.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,inlineClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}:{stickiness:n.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding"}},e.prototype.getRangeDecorationOptions=function(){return{stickiness:n.TrackedRangeStickiness.GrowsOnlyWhenTypingBefore}},e.prototype.update=function(e,t,n){this._lastRange=e,this._isCollapsed=!!e.isCollapsed,this._indent=e.indent;var i=[],o=t.getLineMaxColumn(e.startLineNumber),r={startLineNumber:e.startLineNumber,startColumn:o-1,endLineNumber:e.startLineNumber,endColumn:o};i.push({range:r,options:this.getVisualDecorationOptions()});var s={startLineNumber:e.startLineNumber,startColumn:1,endLineNumber:e.endLineNumber,endColumn:t.getLineMaxColumn(e.endLineNumber)};i.push({range:s,options:this.getRangeDecorationOptions()}),this.decorationIds=n.deltaDecorations(this.decorationIds,i)},e.prototype.dispose=function(e){this._lastRange=null,this.decorationIds=e.deltaDecorations(this.decorationIds,[])},e.prototype.toString=function(){var e=this.isCollapsed?"collapsed ":"expanded ";return e+=this._lastRange?this._lastRange.startLineNumber+"/"+this._lastRange.endLineNumber:"no range"},e}();t.CollapsibleRegion=f,t.getCollapsibleRegionsToFoldAtLine=r,t.getCollapsibleRegionsToUnfoldAtLine=s,t.doesLineBelongsToCollapsibleRegion=l;var g=function(){function e(e,t,n){this.region=e,this.children=[];for(var i=t.indexOf(e)+1;i0?r.lastChildIndex:o},e.prototype.getRegionsTill=function(e){var t=[this.region];return e>1&&this.children.forEach(function(n){return t=t.concat(n.getRegionsTill(e-1))}),t},e}(),m=function(){function e(t,n,i){this.region=t;for(var o=n.indexOf(t)-1;o>=0;o--){var r=n[o],s=r.getDecorationRange(i);if(s){if(h(s,t.foldingRange)){this.parent=new e(r,n,i);break}if(d(s,t.foldingRange.endLineNumber))break}}}return e.prototype.getRegionsTill=function(e){var t=[this.region];return this.parent&&e>1&&(t=t.concat(this.parent.getRegionsTill(e-1))),t},e}()}),define(d[405],h([0,1,12,4,19,57,23]),function(e,t,n,i,o,r,s){"use strict";var a=function(){function e(t,i,o,s){var a=this;this._commandService=o,this._contextKeyService=s,this._menuGroups=[],this._disposables=[],this._onDidChange=new n.Emitter,i.then(function(n){var i,o=r.MenuRegistry.getMenuItems(t),s=new Set;o.sort(e._compareMenuItems);for(var u=0,l=o;u0&&t.push([s,u])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();ns?1:e.command.title.localeCompare(t.command.title)},e}();a=y([C(2,s.ICommandService),C(3,o.IContextKeyService)],a),t.Menu=a}),define(d[61],h([0,1,14]),function(e,t,n){"use strict";t.IContextViewService=n.createDecorator("contextViewService"),t.IContextMenuService=n.createDecorator("contextMenuService");var i=function(){function e(e,t){this.label=e,this.entries=t}return e}();t.ContextSubMenu=i}),define(d[62],h([0,1,14]),function(e,t,n){"use strict";t.IEditorService=n.createDecorator("editorService");var i;!function(e){e[e.ONE=0]="ONE",e[e.TWO=1]="TWO",e[e.THREE=2]="THREE"}(i=t.Position||(t.Position={})),t.POSITIONS=[i.ONE,i.TWO,i.THREE];var o;!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT"}(o=t.Direction||(t.Direction={}))}),define(d[408],h([0,1,39,67,18,14]),function(e,t,n,i,o,r){"use strict";function s(e,t){var n=e===t;return o.isLinux||n?n:e.toLowerCase()===t.toLowerCase()}function a(e,t){return o.isLinux||(e=e.toLowerCase(),t=t.toLowerCase()),0===e.indexOf(t+n.nativeSep)}t.IFileService=r.createDecorator("fileService");var u;!function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY",e[e.IMPORT=4]="IMPORT"}(u=t.FileOperation||(t.FileOperation={}));var l=function(){function e(e,t,n){this._resource=e,this._operation=t,this._target=n}return Object.defineProperty(e.prototype,"resource",{get:function(){return this._resource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),e}();t.FileOperationEvent=l;var c;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(c=t.FileChangeType||(t.FileChangeType={}));var d=function(e){function t(t){var n=e.call(this)||this;return n._changes=t,n}return m(t,e),Object.defineProperty(t.prototype,"changes",{get:function(){return this._changes},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return!!e&&this._changes.some(function(n){return n.type===t&&(t===c.DELETED?s(e.fsPath,n.resource.fsPath)||a(e.fsPath,n.resource.fsPath):s(e.fsPath,n.resource.fsPath))})},t.prototype.getAdded=function(){return this.getOfType(c.ADDED)},t.prototype.gotAdded=function(){return this.hasType(c.ADDED)},t.prototype.getDeleted=function(){return this.getOfType(c.DELETED)},t.prototype.gotDeleted=function(){return this.hasType(c.DELETED)},t.prototype.getUpdated=function(){return this.getOfType(c.UPDATED)},t.prototype.gotUpdated=function(){return this.hasType(c.UPDATED)},t.prototype.getOfType=function(e){return this._changes.filter(function(t){return t.type===e})},t.prototype.hasType=function(e){return this._changes.some(function(t){return t.type===e})},t}(i.Event);t.FileChangesEvent=d,t.isEqual=s,t.isParent=a;var h;!function(e){e[e.FILE_IS_BINARY=0]="FILE_IS_BINARY",e[e.FILE_IS_DIRECTORY=1]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=2]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=3]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=4]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=5]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=6]="FILE_READ_ONLY",e[e.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=8]="FILE_INVALID_PATH"}(h=t.FileOperationResult||(t.FileOperationResult={})),t.MAX_FILE_SIZE=52428800,t.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},t.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},t.CONTENT_CHANGE_EVENT_BUFFER_DELAY=1e3,t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},"koi8-ru":{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},"koi8-t":{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},GB2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45}}}),define(d[79],h([0,1]),function(e,t){"use strict";var n=function(){function e(){for(var e=[],t=0;t1),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._editorTextFocus.set(this._editor.isFocused())},t}(r.Disposable)}),define(d[411],h([0,1,6,10,22,55,488,144,14,79]),function(e,t,n,i,o,r,s,a,u,l){"use strict";var c=function(){function t(e,t){void 0===e&&(e=new l.ServiceCollection),void 0===t&&(t=!1),this._services=e,this._strict=t,this._services.set(u.IInstantiationService,this)}return t.prototype.createChild=function(e){var n=this;return this._services.forEach(function(t,i){e.has(t)||(i instanceof a.SyncDescriptor&&(i=n._createAndCacheServiceInstance(t,i)),e.set(t,i))}),new t(e,this._strict)},t.prototype.invokeFunction=function(e){for(var t=this,n=[],o=1;o0?i[0].index:n.length;if(n.length!==d){console.warn("[createInstance] First service dependency of "+e.ctor.name+" at position "+(d+1)+" conflicts with "+n.length+" static arguments");var h=d-n.length;n=h>0?n.concat(new Array(h)):n.slice(0,d)}var p=[e.ctor];p.push.apply(p,n),p.push.apply(p,r);var f=o.create.apply(null,p);return e._validate(f),f},t.prototype._getOrCreateServiceInstance=function(e){var t=this._services.get(e);return t instanceof a.SyncDescriptor?this._createAndCacheServiceInstance(e,t):t},t.prototype._createAndCacheServiceInstance=function(e,t){function n(){var e=new Error("[createInstance] cyclic dependency between services");throw e.message=i.toString(),e}r.ok(this._services.get(e)instanceof a.SyncDescriptor);for(var i=new s.Graph(function(e){return e.id.toString()}),o=0,l=[{id:e,desc:t}];l.length;){var c=l.pop();i.lookupOrInsertNode(c),o++>100&&n();for(var d=u._util.getServiceDependencies(c.desc.ctor),h=0,p=d;ht.command?1:e.weight2-t.weight2}var u=function(){function e(e,t,n,i,o){this.keybinding=e,this.command=t,this.commandArgs=n,this.actualCommand=this.command?this.command.replace(/^\^/,""):this.command,this.when=i,this.isDefault=o}return e.fromKeybindingItem=function(t,n){var i=null;return t.when&&(i=t.when.normalize()),new e(t.keybinding,t.command,t.commandArgs,i,n)},e}();t.NormalizedKeybindingItem=u;var l=function(){function e(t,i,o){void 0===o&&(o=!0),t=t.slice(0).sort(a),this._defaultKeybindings=t,this._shouldWarnOnConflict=o,this._defaultBoundCommands=Object.create(null);for(var r=0,s=t.length;r=0;d--)this._isTargetedForRemoval(n[d],l,a,c)&&n.splice(d,1);else i.push(s)}return n.concat(i)},e.prototype._addKeyPress=function(t,o,r){if(!this._map[t])return this._map[t]=[o],void this._addToLookupMap(r);for(var s=this._map[t],a=s.length-1;a>=0;a--){var u=s[a];u.commandId!==r.command&&(n.BinaryKeybindings.hasChord(u.keybinding)&&n.BinaryKeybindings.hasChord(o.keybinding)&&u.keybinding!==o.keybinding||e.whenIsEntirelyIncluded(!0,u.when,r.when)&&(this._shouldWarnOnConflict&&r.isDefault&&console.warn("Conflict detected, command `"+u.commandId+"` cannot be triggered by "+i.KeybindingLabels.toUserSettingsLabel(t)+" due to "+r.command),e._push(this._lookupMapUnreachable,u.commandId,u.keybinding)))}s.push(o),this._addToLookupMap(r)},e.whenIsEntirelyIncluded=function(e,t,n){if(e||(t=t?t.normalize():null,n=n?n.normalize():null),!n)return!0;if(!t)return!1;for(var i=t.serialize().split(" && "),o=n.serialize().split(" && "),r=Object.create(null),s=0,a=i.length;s=0)&&(r.push(e),!0)});return s.map(function(e){return new n.Keybinding(e)}).reverse()},e.prototype.resolve=function(e,t,i){var o=null;if(0!==t){var r=this._chords[t];if(!r)return null;o=r[i]}else o=this._map[i];var s=this._findCommand(e,o);return s?0===t&&n.BinaryKeybindings.hasChord(s.keybinding)?{enterChord:i,commandId:null,commandArgs:null}:{enterChord:0,commandId:s.commandId,commandArgs:s.commandArgs}:null},e.prototype._findCommand=function(t,n){if(!n)return null;for(var i=n.length-1;i>=0;i--){var o=n[i];if(e.contextMatchesRules(t,o.when))return o}return null},e.contextMatchesRules=function(e,t){return!t||t.evaluate(e)},e}();t.KeybindingResolver=l;var c=function(){function e(){this._lines=[],this._currentLine=""}return e.prototype.write=function(e){this._currentLine+=e},e.prototype.writeLine=function(e){void 0===e&&(e=""),this._lines.push(this._currentLine+e),this._currentLine=""},e.prototype.toString=function(){return this.writeLine(),this._lines.join("\n")},e}();t.OutputBuilder=c;var d=function(){function e(){}return e.writeKeybindingItem=function(t,n){var i=JSON.stringify(e.writeKeybinding(n.keybinding));t.write('{ "key": '+s(i+",",25)+' "command": ');var o=n.when?n.when.serialize():"",r=JSON.stringify(n.command);o.length>0?(t.write(r+","),t.writeLine(),t.write(' "when": "'+o+'" ')):t.write(r+" "),t.write("}")},e.readKeybindingItem=function(t,n){var i=0;"string"==typeof t.key&&(i=e.readKeybinding(t.key));var o=null;"string"==typeof t.when&&(o=e.readKeybindingWhen(t.when));var r=null;"string"==typeof t.command&&(r=t.command);var s=null;return"undefined"!=typeof t.args&&(s=t.args),{keybinding:i,command:r,commandArgs:s,when:o,weight1:1e3,weight2:n}},e.writeKeybinding=function(e,t){return void 0===t&&(t=o),i.KeybindingLabels.toUserSettingsLabel(e,t)},e.readKeybinding=function(e,t){return void 0===t&&(t=o),i.KeybindingLabels.fromUserSettingsLabel(e,t)},e.readKeybindingWhen=function(e){return r.ContextKeyExpr.deserialize(e)},e}();t.IOSupport=d}),define(d[415],h([0,1,4,23,107,19,56,12]),function(e,t,n,i,o,r,s,a){"use strict";function u(e){for(;e;){if(e.hasAttribute(l))return parseInt(e.getAttribute(l),10);e=e.parentElement}return 0}var l="data-keybinding-context",c=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){if(this._value[e]!==t)return this._value[e]=t,!0},e.prototype.removeValue=function(e){return delete this._value[e]},e.prototype.getValue=function(e){var t=this._value[e];return"undefined"==typeof t&&this._parent?this._parent.getValue(e):t},e.prototype.fillInContext=function(e){this._parent&&this._parent.fillInContext(e);for(var t in this._value)e[t]=this._value[t]},e}();t.ContextValuesContainer=c;var d=function(e){function t(t,n,i){var o=e.call(this,t,null)||this;return o._emitter=i,o._subscription=n.onDidUpdateConfiguration(function(e){return o._updateConfigurationContext(e.config)}),o._updateConfigurationContext(n.getConfiguration()),o}return m(t,e),t.prototype.dispose=function(){this._subscription.dispose()},t.prototype._updateConfigurationContext=function(e){var t=this;for(var n in this._value)0===n.indexOf("config.")&&delete this._value[n];var i=function(e,n){for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){n.push(o);var r=e[o];if("boolean"==typeof r){var s=n.join(".");t._value[s]=r,t._emitter.fire(s)}else"object"==typeof r&&i(r,n);n.pop()}};i(e,["config"])},t}(c),h=function(){function e(e,t,n){this._parent=e,this._key=t,this._defaultValue=n,this.reset()}return e.prototype.set=function(e){this._parent.setContext(this._key,e)},e.prototype.reset=function(){"undefined"==typeof this._defaultValue?this._parent.removeContext(this._key):this._parent.setContext(this._key,this._defaultValue)},e.prototype.get=function(){return this._parent.getContextKeyValue(this._key)},e}(),p=function(){function e(e){this._myContextId=e,this._onDidChangeContextKey=new a.Emitter}return e.prototype.createKey=function(e,t){return new h(this,e,t)},Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){return this._onDidChangeContext||(this._onDidChangeContext=a.debounceEvent(this._onDidChangeContextKey.event,function(e,t){return e?e.indexOf(t)<0&&e.push(t):e=[t],e},25)),this._onDidChangeContext},enumerable:!0,configurable:!0}),e.prototype.createScoped=function(e){return new g(this,this._onDidChangeContextKey,e)},e.prototype.contextMatchesRules=function(e){var t=Object.create(null);this.getContextValuesContainer(this._myContextId).fillInContext(t);var n=o.KeybindingResolver.contextMatchesRules(t,e);return n},e.prototype.getContextKeyValue=function(e){return this.getContextValuesContainer(this._myContextId).getValue(e)},e.prototype.setContext=function(e,t){this.getContextValuesContainer(this._myContextId).setValue(e,t)&&this._onDidChangeContextKey.fire(e)},e.prototype.removeContext=function(e){this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContextKey.fire(e)},e.prototype.getContextValue=function(e){var t=Object.create(null);return this.getContextValuesContainer(u(e)).fillInContext(t),t},e}();t.AbstractContextKeyService=p;var f=function(e){function t(t){var n=e.call(this,0)||this;n._toDispose=[],n._lastContextId=0,n._contexts=Object.create(null);var i=new d(n._myContextId,t,n._onDidChangeContextKey);return n._contexts[String(n._myContextId)]=i,n._toDispose.push(i),n}return m(t,e),t.prototype.dispose=function(){this._toDispose=n.dispose(this._toDispose)},t.prototype.getContextValuesContainer=function(e){return this._contexts[String(e)]},t.prototype.createChildContext=function(e){void 0===e&&(e=this._myContextId);var t=++this._lastContextId;return this._contexts[String(t)]=new c(t,this.getContextValuesContainer(e)),t},t.prototype.disposeContext=function(e){delete this._contexts[String(e)]},t}(p);f=y([C(0,s.IConfigurationService)],f),t.ContextKeyService=f;var g=function(e){function t(t,n,i){var o=e.call(this,t.createChildContext())||this;return o._parent=t,o._onDidChangeContextKey=n,i&&(o._domNode=i,o._domNode.setAttribute(l,String(o._myContextId))),o}return m(t,e),t.prototype.dispose=function(){this._parent.disposeContext(this._myContextId),this._domNode&&this._domNode.removeAttribute(l)},Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return this._parent.onDidChangeContext},enumerable:!0,configurable:!0}),t.prototype.getContextValuesContainer=function(e){return this._parent.getContextValuesContainer(e)},t.prototype.createChildContext=function(e){return void 0===e&&(e=this._myContextId),this._parent.createChildContext(e)},t.prototype.disposeContext=function(e){this._parent.disposeContext(e)},t}(p);i.CommandsRegistry.registerCommand(r.SET_CONTEXT_COMMAND_ID,function(e,t,n){e.get(r.IContextKeyService).createKey(String(t),n)})}),define(d[416],h([0,1,26,64,22,12,30]),function(e,t,n,i,o,r,s){"use strict";var a;!function(e){function t(e,t,n){if(e[t])return e[t][n]}function n(e,t,n,i){e[t]||(e[t]=Object.create(null)),e[t][n]=i}function i(e,t,n){return!(!e[t]||!e[t][n])&&(delete e[t][n],o.isEmptyObject(e[t])&&delete e[t],!0)}e.get=t,e.set=n,e.remove=i}(a||(a={}));var u=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){for(var t=0,n=e;t0?a:1,u=u>0?u:1,l=l>=a?l:a,c=c>0?c:u,{resource:t,owner:e,code:i,severity:o,message:r,source:s,startLineNumber:a,startColumn:u,endLineNumber:l,endColumn:c}},e.prototype.changeAll=function(t,i){var o=[],r=this._byOwner[t];if(r){delete this._byOwner[t];for(var s in r){var u=a.get(this._byResource,s,t)[0];u&&o.push(u.resource),a.remove(this._byResource,s,t)}}if(!n.isFalsyOrEmpty(i)){for(var l=Object.create(null),c=0,d=i;c0&&this._onMarkerChanged.fire(o)},e.prototype.read=function(e){void 0===e&&(e=Object.create(null));var t=e.owner,n=e.resource,i=e.take;if((!i||i<0)&&(i=-1),t&&n){var o=a.get(this._byResource,n.toString(),t);return o?o.slice(0,i>0?i:void 0):[]}if(t||n){var r=t?this._byOwner[t]:this._byResource[n.toString()];if(!r)return[];var o=[];for(var s in r)for(var u=0,l=r[s];u0&&d===i)return o}return o}var o=[];for(var h in this._byResource)for(var p in this._byResource[h])for(var f=0,g=this._byResource[h][p];f0&&d===i)return o}return o},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i0)},t=function(e){return{value:e}},n=this._editor.getLineDecorations(this._lineNumber),i=[],o=0,r=n.length;o0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){var n=this,i=document.createDocumentFragment();t.forEach(function(e){var t=r.renderMarkedString(e.value,{actionCallback:function(e){return n.openerService.open(a.default.parse(e)).then(void 0,u.onUnexpectedError)},codeBlockRenderer:function(e,t){var i=n.modeService.getModeIdForLanguageName(e);return n.modeService.getOrCreateMode(i).then(function(e){return'
    '+l.tokenizeToString(t,i)+"
    "})}});i.appendChild(o.$("div.hover-row",null,t))}),this.updateContents(i),this.showAt(e)},t}(i.GlyphHoverWidget);d.ID="editor.contrib.modesGlyphHoverWidget",t.ModesGlyphHoverWidget=d}),define(d[33],h([0,1,22,55]),function(e,t,n,i){"use strict";var o=function(){function e(){this.data={}}return e.prototype.add=function(e,t){i.ok(n.isString(e)),i.ok(n.isObject(t)),i.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.knows=function(e){return this.data.hasOwnProperty(e)},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new o;var r=function(){function e(){this.toBeInstantiated=[],this.instances=[]}return e.prototype.setInstantiationService=function(e){for(this.instantiationService=e;this.toBeInstantiated.length>0;){var t=this.toBeInstantiated.shift();this.instantiate(t)}},e.prototype.instantiate=function(e){var t=this.instantiationService.createInstance(e);this.instances.push(t)},e.prototype._register=function(e){this.instantiationService?this.instantiate(e):this.toBeInstantiated.push(e)},e.prototype._getInstances=function(){return this.instances.slice(0)},e.prototype._setInstances=function(e){this.instances=e},e}();t.BaseRegistry=r}),define(d[29],h([0,1,33]),function(e,t,n){"use strict";function i(e){s.INSTANCE.registerEditorBrowserContribution(e)}t.editorContribution=i;var o;!function(e){function t(){return s.INSTANCE.getEditorBrowserContributions()}e.getEditorContributions=t}(o=t.EditorBrowserRegistry||(t.EditorBrowserRegistry={}));var r={EditorContributions:"editor.contributions"},s=function(){function e(){this.editorContributions=[]}return e.prototype.registerEditorBrowserContribution=function(e){this.editorContributions.push(e)},e.prototype.getEditorBrowserContributions=function(){return this.editorContributions.slice(0)},e}();s.INSTANCE=new s,n.Registry.add(r.EditorContributions,s.INSTANCE)}),define(d[113],h([0,1,278,12,33,38,16]),function(e,t,n,i,o,r,s){"use strict";t.Extensions={ModesRegistry:"editor.modesRegistry"};var a=function(){function e(){this._onDidAddLanguages=new i.Emitter,this.onDidAddLanguages=this._onDidAddLanguages.event,this._languages=[]}return e.prototype.registerLanguage=function(e){this._languages.push(e),this._onDidAddLanguages.fire([e])},e.prototype.registerLanguages=function(e){this._languages=this._languages.concat(e),this._onDidAddLanguages.fire(e)},e.prototype.getLanguages=function(){return this._languages.slice(0)},e}();t.EditorModesRegistry=a,t.ModesRegistry=new a,o.Registry.add(t.Extensions.ModesRegistry,t.ModesRegistry),t.PLAINTEXT_MODE_ID="plaintext",t.PLAINTEXT_LANGUAGE_IDENTIFIER=new s.LanguageIdentifier(t.PLAINTEXT_MODE_ID,1),t.ModesRegistry.registerLanguage({id:t.PLAINTEXT_MODE_ID,extensions:[".txt",".gitignore"],aliases:[n.localize(0,null),"text"],mimetypes:["text/plain"]}),r.LanguageConfigurationRegistry.register(t.PLAINTEXT_LANGUAGE_IDENTIFIER,{brackets:[["(",")"],["[","]"],["{","}"]]})}),define(d[150],h([0,1,279,9,33]),function(e,t,n,i,o){"use strict";function r(e,t){for(var n=100,i=e.getLineContent(t.lineNumber).substr(0,t.column-1),o=Math.max(0,i.length-n),r=i.length-1;r>=o;r--){var s=i.charAt(r);if(/\s/.test(s))return i.substr(r+1)}return 0===o?i:""}t.Extensions={Snippets:"base.contributions.snippets"};var s=function(){function e(){this._snippets=[]}return e.prototype.registerSnippets=function(e,t,n){void 0===n&&(n="");var i=this._snippets[e.id];i||(this._snippets[e.id]=i={}),i[n]=t},e.prototype.visitSnippets=function(e,t){var n=this._snippets[e];if(n)for(var i in n){var o=n[i].every(t);if(!o)return}},e.prototype.getSnippetCompletions=function(t,o){var s=t.getLanguageIdAtPosition(o.lineNumber,o.column);if(this._snippets[s]){var a=[],u=t.getWordAtPosition(o),l=u?u.word.substring(0,o.column-u.startColumn).toLowerCase():"",c=r(t,o).toLowerCase();this.visitSnippets(s,function(e){var t;if(0===l.length&&0===c.length)t=0;else{var o=e.prefix.toLowerCase();if(l.length>0&&i.startsWith(o,l))t=l.length;else{if(!(c.length>l.length&&i.startsWith(o,c)))return!0;t=c.length}}return a.push({type:"snippet",label:e.prefix,get disambiguateLabel(){return n.localize(0,null,e.prefix,e.name)},detail:e.owner,documentation:e.description,insertText:e.codeSnippet,noAutoAccept:!0,snippetType:"textmate",overwriteBefore:t}),!0});for(var d,h=0,p=a.sort(e._compareSuggestionsByLabel);h=r?new u.Range(i.startLineNumber,r-1,i.endLineNumber,r):new u.Range(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&i.startLineNumber===i.endLineNumber){var s=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);s0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}t.Extensions={JSONContribution:"base.contributions.json"};var r=function(){function e(){this.schemasById={},this.eventEmitter=new i.EventEmitter}return e.prototype.addRegistryChangedListener=function(e){return this.eventEmitter.addListener2("registryChanged",e)},e.prototype.registerSchema=function(e,t){this.schemasById[o(e)]=t,this.eventEmitter.emit("registryChanged",{})},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}(),s=new r;n.Registry.add(t.Extensions.JSONContribution,s)}),define(d[152],h([0,1,322,10,30,151,33]),function(e,t,n,i,o,r,s){"use strict";var a=Object.hasOwnProperty,u=s.Registry.as(r.Extensions.JSONContribution),l=function(){function e(e,t){this._messageHandler=e,this._source=t}return e.prototype._msg=function(e,t){this._messageHandler({type:e,message:t,source:this._source})},e.prototype.error=function(e){this._msg(o.default.Error,e)},e.prototype.warn=function(e){this._msg(o.default.Warning,e)},e.prototype.info=function(e){this._msg(o.default.Info,e)},e}();t.ExtensionMessageCollector=l;var c=function(){function e(e){this.name=e,this._handler=null,this._users=null,this._done=!1}return e.prototype.setHandler=function(e){if(null!==this._handler||this._done)throw new Error("Handler already set!");this._handler=e,this._handle()},e.prototype.acceptUsers=function(e){if(null!==this._users||this._done)throw new Error("Users already set!");this._users=e,this._handle()},e.prototype._handle=function(){if(null!==this._handler&&null!==this._users){this._done=!0;var e=this._handler;this._handler=null;var t=this._users;this._users=null;try{e(t)}catch(e){i.onUnexpectedError(e)}}},e}();t.ExtensionPoint=c;var d="vscode://schemas/vscode-extensions",h={properties:{engines:{type:"object",properties:{vscode:{type:"string",description:n.localize(0,null),default:"^0.10.0"}}},publisher:{description:n.localize(1,null),type:"string"},displayName:{description:n.localize(2,null),type:"string"},categories:{description:n.localize(3,null),type:"array",uniqueItems:!0,items:{type:"string",enum:["Languages","Snippets","Linters","Themes","Debuggers","Other","Keymaps","Formatters","Extension Packs"]}},galleryBanner:{type:"object",description:n.localize(4,null),properties:{color:{description:n.localize(5,null),type:"string"},theme:{description:n.localize(6,null),type:"string",enum:["dark","light"]}}},contributes:{description:n.localize(7,null),type:"object",properties:{},default:{}},preview:{type:"boolean",description:n.localize(8,null)},activationEvents:{description:n.localize(9,null),type:"array",items:{type:"string",defaultSnippets:[{label:"onLanguage",body:"onLanguage:${1:languageId}"},{label:"onCommand",body:"onCommand:${2:commandId}"},{label:"onDebug",body:"onDebug:${3:type}"},{label:"workspaceContains",body:"workspaceContains:${4:fileName}"}]}},badges:{type:"array",description:n.localize(10,null),items:{type:"object",required:["url","href","description"],properties:{url:{type:"string",description:n.localize(11,null)},href:{type:"string",description:n.localize(12,null)},description:{type:"string",description:n.localize(13,null)}}}},extensionDependencies:{description:n.localize(14,null),type:"array",uniqueItems:!0,items:{type:"string"}},scripts:{type:"object",properties:{"vscode:prepublish":{description:n.localize(15,null),type:"string"}}},icon:{type:"string",description:n.localize(16,null)}}},p=function(){function e(){this._extensionPoints={}}return e.prototype.registerExtensionPoint=function(e,t,n){if(a.call(this._extensionPoints,e))throw new Error("Duplicate extension point: "+e);var i=new c(e);return this._extensionPoints[e]=i,h.properties.contributes.properties[e]=n,u.registerSchema(d,h),i},e.prototype.getExtensionPoints=function(){var e=this;return Object.keys(this._extensionPoints).map(function(t){return e._extensionPoints[t]})},e}();t.ExtensionsRegistryImpl=p;var f={ExtensionsRegistry:"ExtensionsRegistry"};s.Registry.add(f.ExtensionsRegistry,new p),t.ExtensionsRegistry=s.Registry.as(f.ExtensionsRegistry),u.registerSchema(d,h)}),define(d[114],h([0,1,321,12,33,35,22,152,151]),function(e,t,n,i,o,r,s,a,u){"use strict";function l(e){var t=Array.isArray(e)?e[0]:e;switch(t){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}t.Extensions={Configuration:"base.contributions.configuration"};var c="vscode://schemas/settings",d=o.Registry.as(u.Extensions.JSONContribution),h=function(){function e(){this.overrideIdentifiers=[],this.configurationContributors=[],this.configurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown configuration setting"},this._onDidRegisterConfiguration=new i.Emitter,this.configurationProperties={},this.computeOverridePropertyPattern(),d.registerSchema(c,this.configurationSchema),this.registerOverrideSettingsConfiguration()}return Object.defineProperty(e.prototype,"onDidRegisterConfiguration",{get:function(){return this._onDidRegisterConfiguration.event},enumerable:!0,configurable:!0}),e.prototype.registerConfiguration=function(e){this.registerConfigurations([e])},e.prototype.registerConfigurations=function(e){var t=this;e.forEach(function(e){t.registerProperties(e),t.configurationContributors.push(e),t.registerJSONConfiguration(e),t.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(this)},e.prototype.registerOverrideIdentifiers=function(e){(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey();var t},e.prototype.registerProperties=function(e,t){void 0===t&&(t=!1),t=e.overridable||t;var n=e.properties;if(n)for(var i in n){var o=n[i],r=o.default;s.isUndefined(r)&&(o.default=l(o.type)),t&&(o.overridable=!0),this.configurationProperties[i]=n[i]}var a=e.allOf;if(a)for(var u=0,c=a;u=0?-1:1e4;var f,m=_(i.mouseWheelScrollSensitivity,1),v=this._sanitizeScrollbarOpts(i.scrollbar,m),E=g(i.glyphMargin),L=i.lineNumbers,N=y(i.lineNumbersMinChars,1);if("string"==typeof i.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(i.lineDecorationsWidth)){var T=parseFloat(i.lineDecorationsWidth.substr(0,i.lineDecorationsWidth.length-2));f=T*o.typicalHalfwidthCharacterWidth}else f=y(i.lineDecorationsWidth,0);i.folding&&(f+=16);var x,M,I;L===!0?L="on":L===!1&&(L="off"),"function"==typeof L?(x=!0,M=L,I=!1):"relative"===L?(x=!0,M=null,I=!0):"on"===L?(x=!0,M=null,I=!1):(x=!1,M=null,I=!1);var D=d.EditorLayoutProvider.compute({outerWidth:e,outerHeight:n,showGlyphMargin:E,lineHeight:o.lineHeight,showLineNumbers:x,lineNumbersMinChars:N,lineDecorationsWidth:f,maxDigitWidth:o.maxDigitWidth,maxLineNumber:a,verticalScrollbarWidth:v.verticalScrollbarSize,horizontalScrollbarHeight:v.horizontalScrollbarSize,scrollbarArrowSize:v.arrowSize,verticalScrollbarHasArrows:v.verticalHasArrows});s&&h>0&&(h=0);var R;R=0===h?{isViewportWrapping:!0,wrappingColumn:Math.max(1,Math.floor((D.contentWidth-D.verticalScrollbarWidth)/o.typicalHalfwidthCharacterWidth))}:h>0&&p===!0?{isViewportWrapping:!0,wrappingColumn:Math.min(h,Math.floor((D.contentWidth-D.verticalScrollbarWidth)/o.typicalHalfwidthCharacterWidth))}:h>0?{isViewportWrapping:!1,wrappingColumn:h}:{isViewportWrapping:!1,wrappingColumn:-1};var k=new c.EditorWrappingInfo({isViewportWrapping:R.isViewportWrapping,wrappingColumn:R.wrappingColumn,wrappingIndent:b(i.wrappingIndent),wordWrapBreakBeforeCharacters:String(i.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:String(i.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:String(i.wordWrapBreakObtrusiveCharacters)}),O=g(i.readOnly),P=t.TabFocus.getTabFocusMode();O&&(P=!0);var A=i.renderWhitespace;A===!0?A="boundary":A===!1&&(A="none");var W=i.renderLineHighlight;W===!0?W="line":W===!1&&(W="none");var F=new c.InternalEditorViewOptions({theme:i.theme,canUseTranslate3d:u,disableMonospaceOptimizations:g(i.disableMonospaceOptimizations),experimentalScreenReader:g(i.experimentalScreenReader),rulers:C(i.rulers),ariaLabel:String(i.ariaLabel),renderLineNumbers:x,renderCustomLineNumbers:M,renderRelativeLineNumbers:I,selectOnLineNumbers:g(i.selectOnLineNumbers),glyphMargin:E,revealHorizontalRightPadding:y(i.revealHorizontalRightPadding,0),roundedSelection:g(i.roundedSelection),overviewRulerLanes:y(i.overviewRulerLanes,0,3),cursorBlinking:S(i.cursorBlinking),mouseWheelZoom:g(i.mouseWheelZoom),cursorStyle:w(i.cursorStyle),hideCursorInOverviewRuler:g(i.hideCursorInOverviewRuler),scrollBeyondLastLine:g(i.scrollBeyondLastLine),editorClassName:r,stopRenderingLineAfter:l,renderWhitespace:A,renderControlCharacters:g(i.renderControlCharacters),renderIndentGuides:g(i.renderIndentGuides),renderLineHighlight:W,scrollbar:v,fixedOverflowWidgets:g(i.fixedOverflowWidgets)}),V=new c.EditorContribOptions({selectionClipboard:g(i.selectionClipboard),hover:g(i.hover),contextmenu:g(i.contextmenu),quickSuggestions:g(i.quickSuggestions),quickSuggestionsDelay:y(i.quickSuggestionsDelay),parameterHints:g(i.parameterHints),iconsInSuggestions:g(i.iconsInSuggestions),formatOnType:g(i.formatOnType),formatOnPaste:g(i.formatOnPaste),suggestOnTriggerCharacters:g(i.suggestOnTriggerCharacters),acceptSuggestionOnEnter:g(i.acceptSuggestionOnEnter),acceptSuggestionOnCommitCharacter:g(i.acceptSuggestionOnCommitCharacter),snippetSuggestions:i.snippetSuggestions,emptySelectionClipboard:i.emptySelectionClipboard,tabCompletion:i.tabCompletion,wordBasedSuggestions:i.wordBasedSuggestions,suggestFontSize:i.suggestFontSize,suggestLineHeight:i.suggestLineHeight,selectionHighlight:g(i.selectionHighlight),codeLens:i.referenceInfos&&i.codeLens,folding:g(i.folding)});return new c.InternalEditorOptions({lineHeight:o.lineHeight,readOnly:O,wordSeparators:String(i.wordSeparators),autoClosingBrackets:g(i.autoClosingBrackets),useTabStops:g(i.useTabStops),tabFocusMode:P,layoutInfo:D,fontInfo:o,viewInfo:F,wrappingInfo:k,contribInfo:V})},e._sanitizeScrollbarOpts=function(e,t){var n=function(e){switch(e){case"hidden":return h.ScrollbarVisibility.Hidden;case"visible":return h.ScrollbarVisibility.Visible;default:return h.ScrollbarVisibility.Auto}},i=E(e.horizontalScrollbarSize,10),o=E(e.verticalScrollbarSize,14);return new c.InternalEditorScrollbarOptions({vertical:n(e.vertical),horizontal:n(e.horizontal),arrowSize:E(e.arrowSize,11),useShadows:v(e.useShadows,!0),verticalHasArrows:v(e.verticalHasArrows,!1),horizontalHasArrows:v(e.horizontalHasArrows,!1),horizontalScrollbarSize:i,horizontalSliderSize:E(e.horizontalSliderSize,i),verticalScrollbarSize:o,verticalSliderSize:E(e.verticalSliderSize,o),handleMouseWheel:v(e.handleMouseWheel,!0),mouseWheelScrollSensitivity:t})},e}(),x=function(e){function n(n,o){void 0===o&&(o=null);var r=e.call(this)||this;return r._onDidChange=r._register(new i.Emitter),r.onDidChange=r._onDidChange.event,r._configWithDefaults=new N(n),r._elementSizeObserver=o,r._isDominatedByLongLines=!1,r._maxLineNumber=1,r.editor=r._computeInternalOptions(),r.editorClone=r.editor.clone(),r._register(f.EditorZoom.onDidChangeZoomLevel(function(e){return r._recomputeOptions()})),r._register(t.TabFocus.onDidChangeTabFocus(function(e){return r._recomputeOptions()})),r}return m(n,e),n.prototype.dispose=function(){e.prototype.dispose.call(this)},n.prototype._recomputeOptions=function(){this._setOptions(this._computeInternalOptions())},n.prototype._setOptions=function(e){if(!this.editor||!this.editor.equals(e)){var t=this.editor.createChangeEvent(e);this.editor=e,this.editorClone=this.editor.clone(),this._onDidChange.fire(t)}},n.prototype.getRawOptions=function(){return this._configWithDefaults.getEditorOptions()},n.prototype._computeInternalOptions=function(){var e=this._configWithDefaults.getEditorOptions(),t=this._getEditorClassName(e.theme,g(e.fontLigatures)),n=g(e.disableTranslate3d),i=this._getCanUseTranslate3d();n&&(i=!1);var o=p.BareFontInfo.createFromRawSettings(e);return T.createInternalEditorOptions(this.getOuterWidth(),this.getOuterHeight(),e,this.readConfiguration(o),t,this._isDominatedByLongLines,this._maxLineNumber,i)},n.prototype.updateOptions=function(e){this._configWithDefaults.updateOptions(e),this._recomputeOptions()},n.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},n.prototype.setMaxLineNumber=function(e){this._maxLineNumber=e,this._recomputeOptions()},n}(o.Disposable);t.CommonEditorConfiguration=x;var M=u.Registry.as(a.Extensions.Configuration),I={id:"editor",order:5,type:"object",title:n.localize(0,null),overridable:!0,properties:{"editor.fontFamily":{type:"string",default:l.DefaultConfig.editor.fontFamily,description:n.localize(1,null)},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:l.DefaultConfig.editor.fontWeight,description:n.localize(2,null)},"editor.fontSize":{type:"number",default:l.DefaultConfig.editor.fontSize,description:n.localize(3,null)},"editor.lineHeight":{type:"number",default:l.DefaultConfig.editor.lineHeight,description:n.localize(4,null)},"editor.lineNumbers":{type:"string",enum:["off","on","relative"],default:l.DefaultConfig.editor.lineNumbers,description:n.localize(5,null)},"editor.rulers":{type:"array",items:{type:"number"},default:l.DefaultConfig.editor.rulers,description:n.localize(6,null)},"editor.wordSeparators":{type:"string",default:l.DefaultConfig.editor.wordSeparators,description:n.localize(7,null)},"editor.tabSize":{type:"number",default:l.DEFAULT_INDENTATION.tabSize,minimum:1,description:n.localize(8,null),errorMessage:n.localize(9,null)},"editor.insertSpaces":{type:"boolean",default:l.DEFAULT_INDENTATION.insertSpaces,description:n.localize(10,null),errorMessage:n.localize(11,null)},"editor.detectIndentation":{type:"boolean",default:l.DEFAULT_INDENTATION.detectIndentation,description:n.localize(12,null)},"editor.roundedSelection":{type:"boolean",default:l.DefaultConfig.editor.roundedSelection,description:n.localize(13,null)},"editor.scrollBeyondLastLine":{type:"boolean",default:l.DefaultConfig.editor.scrollBeyondLastLine,description:n.localize(14,null)},"editor.wrappingColumn":{type:"integer",default:l.DefaultConfig.editor.wrappingColumn,minimum:-1,description:n.localize(15,null)},"editor.wordWrap":{type:"boolean",default:l.DefaultConfig.editor.wordWrap,description:n.localize(16,null)},"editor.wrappingIndent":{type:"string",enum:["none","same","indent"],default:l.DefaultConfig.editor.wrappingIndent,description:n.localize(17,null)},"editor.mouseWheelScrollSensitivity":{type:"number",default:l.DefaultConfig.editor.mouseWheelScrollSensitivity,description:n.localize(18,null)},"editor.quickSuggestions":{type:"boolean",default:l.DefaultConfig.editor.quickSuggestions,description:n.localize(19,null)},"editor.quickSuggestionsDelay":{type:"integer",default:l.DefaultConfig.editor.quickSuggestionsDelay,minimum:0,description:n.localize(20,null)},"editor.parameterHints":{type:"boolean",default:l.DefaultConfig.editor.parameterHints,description:n.localize(21,null)},"editor.autoClosingBrackets":{type:"boolean",default:l.DefaultConfig.editor.autoClosingBrackets,description:n.localize(22,null)},"editor.formatOnType":{type:"boolean",default:l.DefaultConfig.editor.formatOnType,description:n.localize(23,null)},"editor.formatOnPaste":{type:"boolean",default:l.DefaultConfig.editor.formatOnPaste,description:n.localize(24,null)},"editor.suggestOnTriggerCharacters":{type:"boolean",default:l.DefaultConfig.editor.suggestOnTriggerCharacters,description:n.localize(25,null)},"editor.acceptSuggestionOnEnter":{type:"boolean",default:l.DefaultConfig.editor.acceptSuggestionOnEnter,description:n.localize(26,null)},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:l.DefaultConfig.editor.acceptSuggestionOnCommitCharacter,description:n.localize(27,null)},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],default:l.DefaultConfig.editor.snippetSuggestions,description:n.localize(28,null)},"editor.emptySelectionClipboard":{type:"boolean",default:l.DefaultConfig.editor.emptySelectionClipboard,description:n.localize(29,null)},"editor.wordBasedSuggestions":{type:"boolean",default:l.DefaultConfig.editor.wordBasedSuggestions,description:n.localize(30,null)},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,description:n.localize(31,null)},"editor.suggestLineHeight":{ -type:"integer",default:0,minimum:0,description:n.localize(32,null)},"editor.tabCompletion":{type:"boolean",default:l.DefaultConfig.editor.tabCompletion,description:n.localize(33,null)},"editor.selectionHighlight":{type:"boolean",default:l.DefaultConfig.editor.selectionHighlight,description:n.localize(34,null)},"editor.overviewRulerLanes":{type:"integer",default:3,description:n.localize(35,null)},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:l.DefaultConfig.editor.cursorBlinking,description:n.localize(36,null)},"editor.mouseWheelZoom":{type:"boolean",default:l.DefaultConfig.editor.mouseWheelZoom,description:n.localize(37,null)},"editor.cursorStyle":{type:"string",enum:["block","line","underline"],default:l.DefaultConfig.editor.cursorStyle,description:n.localize(38,null)},"editor.fontLigatures":{type:"boolean",default:l.DefaultConfig.editor.fontLigatures,description:n.localize(39,null)},"editor.hideCursorInOverviewRuler":{type:"boolean",default:l.DefaultConfig.editor.hideCursorInOverviewRuler,description:n.localize(40,null)},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],default:l.DefaultConfig.editor.renderWhitespace,description:n.localize(41,null)},"editor.renderControlCharacters":{type:"boolean",default:l.DefaultConfig.editor.renderControlCharacters,description:n.localize(42,null)},"editor.renderIndentGuides":{type:"boolean",default:l.DefaultConfig.editor.renderIndentGuides,description:n.localize(43,null)},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:l.DefaultConfig.editor.renderLineHighlight,description:n.localize(44,null)},"editor.codeLens":{type:"boolean",default:l.DefaultConfig.editor.codeLens,description:n.localize(45,null)},"editor.folding":{type:"boolean",default:l.DefaultConfig.editor.folding,description:n.localize(46,null)},"editor.glyphMargin":{type:"boolean",default:l.DefaultConfig.editor.glyphMargin,description:n.localize(47,null)},"editor.useTabStops":{type:"boolean",default:l.DefaultConfig.editor.useTabStops,description:n.localize(48,null)},"editor.trimAutoWhitespace":{type:"boolean",default:l.DEFAULT_TRIM_AUTO_WHITESPACE,description:n.localize(49,null)},"editor.stablePeek":{type:"boolean",default:!1,description:n.localize(50,null)},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:n.localize(51,null)},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:n.localize(52,null)},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:n.localize(53,null)}}};s.isLinux&&(I.properties["editor.selectionClipboard"]={type:"boolean",default:l.DefaultConfig.editor.selectionClipboard,description:n.localize(54,null)}),M.registerConfiguration(I)}),define(d[58],h([0,1,12,4,18,24,115,109,431,430]),function(e,t,n,i,o,r,s,a,u,l){"use strict";function c(e){return h.INSTANCE.readConfiguration(e)}var d=function(){function e(){this._keys=Object.create(null),this._values=Object.create(null)}return e.prototype._itemId=function(e){return r.getZoomLevel()+"-"+e.getId()},e.prototype.has=function(e){var t=this._itemId(e);return!!this._values[t]},e.prototype.get=function(e){var t=this._itemId(e);return this._values[t]},e.prototype.put=function(e,t){var n=this._itemId(e);this._keys[n]=e,this._values[n]=t},e.prototype.getKeys=function(){var e=this;return Object.keys(this._keys).map(function(t){return e._keys[t]})},e}();t.readFontInfo=c;var h=function(e){function t(){var t=e.call(this)||this;return t._changeMonitorTimeout=-1,t._onDidChange=t._register(new n.Emitter),t.onDidChange=t._onDidChange.event,t._cache=new d,t}return m(t,e),t.prototype.dispose=function(){this._changeMonitorTimeout!==-1&&(clearTimeout(this._changeMonitorTimeout),this._changeMonitorTimeout=-1),e.prototype.dispose.call(this)},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 a.FontInfo({fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)}),this._installChangeMonitor()),this._cache.put(e,n)}return this._cache.get(e)},t.prototype._installChangeMonitor=function(){var e=this;this._changeMonitorTimeout===-1&&(this._changeMonitorTimeout=setTimeout(function(){e._changeMonitorTimeout=-1,e._monitorForChanges()},500))},t.prototype._monitorForChanges=function(){for(var e=!1,n=this._cache.getKeys(),i=0;i.001){y=!1;break}}return new a.FontInfo({fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,spaceWidth:r.width,maxDigitWidth:_})},t}(i.Disposable);h.INSTANCE=new h;var p=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this,t,new u.ElementSizeObserver(n,function(){return i._onReferenceDomElementSizeChanged()}))||this;return i._register(h.INSTANCE.onDidChange(function(){return function(){return i._onCSSBasedConfigurationChanged()}})),i._configWithDefaults.getEditorOptions().automaticLayout&&i._elementSizeObserver.startObserving(),i._register(r.onDidChangeZoomLevel(function(e){return i._recomputeOptions()})),i}return m(t,e),t.applyFontInfoSlow=function(e,t){e.style.fontFamily=t.fontFamily,e.style.fontWeight=t.fontWeight,e.style.fontSize=t.fontSize+"px",e.style.lineHeight=t.lineHeight+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.fontFamily),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight)},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(){this._elementSizeObserver.dispose(),e.prototype.dispose.call(this)},t.prototype._getEditorClassName=function(e,t){var n="";return r.isIE?n+="ie ":r.isFirefox?n+="ff ":r.isEdge&&(n+="edge "),o.isMacintosh&&(n+="mac "),t&&(n+="enable-ligatures "),"monaco-editor "+n+e},t.prototype.getOuterWidth=function(){return this._elementSizeObserver.getWidth()},t.prototype.getOuterHeight=function(){return this._elementSizeObserver.getHeight()},t.prototype._getCanUseTranslate3d=function(){return r.canUseTranslate3d&&0===r.getZoomLevel()},t.prototype.readConfiguration=function(e){return h.INSTANCE.readConfiguration(e)},t}(s.CommonEditorConfiguration);t.Configuration=p}),define(d[434],h([0,1,4,24,11,28,115,344,162,3,2,51,58,432]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";var f=function(e){function t(t,n,u){var d=e.call(this)||this;return d._lastCursorSelectionChanged=null,d._context=t,d.viewController=n,d.textArea=new p.TextAreaWrapper(u.textArea),h.Configuration.applyFontInfoSlow(d.textArea.actual,d._context.configuration.editor.fontInfo),d.viewHelper=u,d.contentLeft=0,d.contentWidth=0,d.scrollLeft=0,d.textAreaHandler=new a.TextAreaHandler(i,d._getStrategy(),d.textArea,d._context.model,function(){return d.viewHelper.flushAnyAccumulatedEvents()}),d._toDispose=[],d._toDispose.push(d.textAreaHandler.onKeyDown(function(e){return d.viewController.emitKeyDown(e._actual)})),d._toDispose.push(d.textAreaHandler.onKeyUp(function(e){return d.viewController.emitKeyUp(e._actual)})),d._toDispose.push(d.textAreaHandler.onPaste(function(e){return d.viewController.paste("keyboard",e.text,e.pasteOnNewLine)})),d._toDispose.push(d.textAreaHandler.onCut(function(e){return d.viewController.cut("keyboard")})),d._toDispose.push(d.textAreaHandler.onType(function(e){e.replaceCharCnt?d.viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):d.viewController.type("keyboard",e.text)})),d._toDispose.push(d.textAreaHandler.onCompositionStart(function(e){var t=e.showAtLineNumber,n=e.showAtColumn,i={range:new l.Range(t,n,t,n),verticalType:0,revealHorizontal:!0,revealCursor:!1};d._context.privateViewEventBus.emit(c.ViewEventNames.RevealRangeEvent,i),d.visibleRange=d.viewHelper.visibleRangeForPositionRelativeToEditor(t,n),d.visibleRange&&(r.StyleMutator.setTop(d.textArea.actual,d.visibleRange.top),r.StyleMutator.setLeft(d.textArea.actual,d.contentLeft+d.visibleRange.left-d.scrollLeft)),r.StyleMutator.setHeight(d.textArea.actual,d._context.configuration.editor.lineHeight),o.addClass(d.viewHelper.viewDomNode,"ime-input"),d.viewController.compositionStart("keyboard")})),d._toDispose.push(d.textAreaHandler.onCompositionUpdate(function(e){if(i.isEdgeOrIE)r.StyleMutator.setWidth(d.textArea.actual,0);else{var t=document.createElement("canvas"),n=t.getContext("2d"),s=o.getComputedStyle(d.textArea.actual);if(i.isFirefox){n.font=s.fontStyle+" "+s.fontVariant+" "+s.fontWeight+" "+s.fontStretch+" "+s.fontSize+" / "+s.lineHeight+" "+s.fontFamily;var a=n.measureText(e.data);r.StyleMutator.setWidth(d.textArea.actual,a.width+2)}else{n.font=s.font;var a=n.measureText(e.data);r.StyleMutator.setWidth(d.textArea.actual,a.width)}}})),d._toDispose.push(d.textAreaHandler.onCompositionEnd(function(e){d.textArea.actual.style.height="",d.textArea.actual.style.width="",r.StyleMutator.setLeft(d.textArea.actual,0),r.StyleMutator.setTop(d.textArea.actual,0),o.removeClass(d.viewHelper.viewDomNode,"ime-input"),d.visibleRange=null,d.viewController.compositionEnd("keyboard")})),d._toDispose.push(s.GlobalScreenReaderNVDA.onChange(function(e){d.textAreaHandler.setStrategy(d._getStrategy())})),d._context.addEventHandler(d),d}return m(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this.textAreaHandler.dispose(),this.textArea.dispose(),this._toDispose=n.dispose(this._toDispose)},t.prototype._getStrategy=function(){return s.GlobalScreenReaderNVDA.getValue()?u.TextAreaStrategy.NVDA:this._context.configuration.editor.viewInfo.experimentalScreenReader?u.TextAreaStrategy.NVDA:u.TextAreaStrategy.IENarrator},t.prototype.focusTextArea=function(){this.textAreaHandler.focusTextArea()},t.prototype.onConfigurationChanged=function(e){return e.fontInfo&&h.Configuration.applyFontInfoSlow(this.textArea.actual,this._context.configuration.editor.fontInfo),e.viewInfo.experimentalScreenReader&&this.textAreaHandler.setStrategy(this._getStrategy()),!1},t.prototype.onScrollChanged=function(e){return this.scrollLeft=e.scrollLeft,this.visibleRange&&(r.StyleMutator.setTop(this.textArea.actual,this.visibleRange.top),r.StyleMutator.setLeft(this.textArea.actual,this.contentLeft+this.visibleRange.left-this.scrollLeft)),!1},t.prototype.onViewFocusChanged=function(e){return this.textAreaHandler.setHasFocus(e),!1},t.prototype.onCursorSelectionChanged=function(e){return this._lastCursorSelectionChanged=e,!1},t.prototype.onLayoutChanged=function(e){return this.contentLeft=e.contentLeft,this.contentWidth=e.contentWidth,!1},t.prototype.writeToTextArea=function(){if(this._lastCursorSelectionChanged){var e=this._lastCursorSelectionChanged;this._lastCursorSelectionChanged=null,this.textAreaHandler.setCursorSelections(e.selection,e.secondarySelections)}},t}(d.ViewEventHandler);t.KeyboardHandler=f}),define(d[435],h([0,1,28,21,136,58]),function(e,t,n,i,o,r){"use strict";var s=function(e){function t(t,n){var i=e.call(this,t)||this;return i._dynamicOverlays=[],i._isFocused=!1,i._layoutProvider=n,i.domNode.setClassName("view-overlays"),i}return m(t,e),t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t'),e.push(this.getLineInnerHTML(t)),e.push("")},e.prototype.getLineInnerHTML=function(e){return this._renderPieces},e.prototype.layoutLine=function(e,t){this._domNode.setLineNumber(String(e)),this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight)},e}();t.ViewOverlayLine=a;var u=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i._scrollWidth=i._layoutProvider.getScrollWidth(),i._contentWidth=i._context.configuration.editor.layoutInfo.contentWidth,i.domNode.setWidth(i._scrollWidth),i.domNode.setHeight(0),i}return m(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 this._scrollWidth=t.scrollWidth,e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(this._scrollWidth,this._contentWidth))},t}(s);t.ContentViewOverlays=u;var l=function(e){function t(t,n){var o=e.call(this,t,n)||this;return o._contentLeft=t.configuration.editor.layoutInfo.contentLeft,o._canUseTranslate3d=t.configuration.editor.viewInfo.canUseTranslate3d,o.domNode.setClassName(i.ClassNames.MARGIN_VIEW_OVERLAYS),o.domNode.setWidth(1),r.Configuration.applyFontInfo(o.domNode,o._context.configuration.editor.fontInfo),o}return m(t,e),t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype.onLayoutChanged=function(t){return this._contentLeft=t.contentLeft,e.prototype.onLayoutChanged.call(this,t)||!0},t.prototype.onConfigurationChanged=function(t){return t.fontInfo&&r.Configuration.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),t.viewInfo.canUseTranslate3d&&(this._canUseTranslate3d=this._context.configuration.editor.viewInfo.canUseTranslate3d),e.prototype.onConfigurationChanged.call(this,t)},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(this._layoutProvider.getTotalHeight(),1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(s);t.MarginViewOverlays=l}),define(d[436],h([0,1,17,28,3,15,2,21,136,209,58,85,32,337]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=function(){function e(){this._currentVisibleRange=new o.Range(1,1,1,1),this._bigNumbersDelta=0}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e.prototype.getBigNumbersDelta=function(){return this._bigNumbersDelta},e.prototype.setBigNumbersDelta=function(e){this._bigNumbersDelta=e},e}(),f=function(e){function t(t,i){var o=e.call(this,t)||this;return o._lineHeight=o._context.configuration.editor.lineHeight,o._isViewportWrapping=o._context.configuration.editor.wrappingInfo.isViewportWrapping,o._revealHorizontalRightPadding=o._context.configuration.editor.viewInfo.revealHorizontalRightPadding,o._canUseTranslate3d=t.configuration.editor.viewInfo.canUseTranslate3d,o._layoutProvider=i,h.PartFingerprints.write(o.domNode.domNode,7),o.domNode.setClassName(a.ClassNames.VIEW_LINES),c.Configuration.applyFontInfo(o.domNode,o._context.configuration.editor.fontInfo),o._maxLineWidth=0,o._asyncUpdateLineWidths=new n.RunOnceScheduler(function(){o._updateLineWidths()},200),o._lastRenderedData=new p,o._lastCursorRevealRangeHorizontallyEvent=null,o._textRangeRestingSpot=document.createElement("div"),o._textRangeRestingSpot.className="textRangeRestingSpot",o}return m(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),this._layoutProvider=null,e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode.domNode},t.prototype.onConfigurationChanged=function(t){var n=e.prototype.onConfigurationChanged.call(this,t);return t.wrappingInfo&&(this._maxLineWidth=0),t.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),t.wrappingInfo&&(this._isViewportWrapping=this._context.configuration.editor.wrappingInfo.isViewportWrapping),t.viewInfo.revealHorizontalRightPadding&&(this._revealHorizontalRightPadding=this._context.configuration.editor.viewInfo.revealHorizontalRightPadding),t.viewInfo.canUseTranslate3d&&(this._canUseTranslate3d=this._context.configuration.editor.viewInfo.canUseTranslate3d),t.fontInfo&&c.Configuration.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n},t.prototype.onLayoutChanged=function(t){var n=e.prototype.onLayoutChanged.call(this,t);return this._maxLineWidth=0,n},t.prototype.onModelFlushed=function(){var t=e.prototype.onModelFlushed.call(this);return this._maxLineWidth=0,t},t.prototype.onModelDecorationsChanged=function(t){for(var n=e.prototype.onModelDecorationsChanged.call(this,t),i=this._linesCollection.getStartLineNumber(),o=this._linesCollection.getEndLineNumber(),r=i;r<=o;r++)this._linesCollection.getLine(r).onModelDecorationsChanged();return n||!0},t.prototype.onCursorRevealRange=function(e){var t=this._computeScrollTopToRevealRange(this._layoutProvider.getCurrentViewport(),e.range,e.verticalType);return e.revealHorizontal&&(this._lastCursorRevealRangeHorizontallyEvent=e),this._layoutProvider.setScrollPosition({scrollTop:t}),!0},t.prototype.onCursorScrollRequest=function(e){var t=this._layoutProvider.getScrollTop(),n=t+e.deltaLines*this._lineHeight;return this._layoutProvider.setScrollPosition({scrollTop:n}),!0},t.prototype.onScrollChanged=function(t){return this.domNode.setWidth(t.scrollWidth),e.prototype.onScrollChanged.call(this,t)||!0},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getLineNumberFromDOMInfo(e);if(n===-1)return null;if(n<1||n>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(n))return new r.Position(n,1);var i=this._linesCollection.getStartLineNumber(),o=this._linesCollection.getEndLineNumber();if(no)return null;var s=this._linesCollection.getLine(n).getColumnOfNodeOffset(n,e,t),a=this._context.model.getLineMinColumn(n);return sn?-1:this._linesCollection.getLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,n){if(this.shouldRender())return null;var i=e.endLineNumber;if(e=o.Range.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange()),!e)return null;var r,s=[],a=new l.DomReadingContext(this.domNode.domNode,this._textRangeRestingSpot);n&&(r=this._context.model.convertViewPositionToModelPosition(e.startLineNumber,1).lineNumber);for(var u=this._linesCollection.getStartLineNumber(),c=this._linesCollection.getEndLineNumber(),h=e.startLineNumber;h<=e.endLineNumber;h++)if(!(hc)){var p=h===e.startLineNumber?e.startColumn:1,f=h===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(h),g=this._linesCollection.getLine(h).getVisibleRangesForRange(p,f,a);if(g&&0!==g.length){if(n&&ha)){var c=u===e.startLineNumber?e.startColumn:1,h=u===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(u),p=this._linesCollection.getLine(u).getVisibleRangesForRange(c,h,i);if(p&&0!==p.length)for(var f=this._layoutProvider.getVerticalOffsetForLineNumber(u)-r+t,g=0,m=p.length;gu&&(u=c.left+c.width)}n=u,a=Math.max(0,a-t.HORIZONTAL_EXTRA_PX),u+=this._revealHorizontalRightPadding;var d=this._computeMinimumScrolling(o,r,a,u);return{scrollLeft:d,maxHorizontalOffset:n}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){e|=0,t|=0,n|=0,i|=0,o=!!o,r=!!r;var s=t-e,a=i-n;return at?Math.max(0,i-s):e:n},t}(u.ViewLayer);f.LINE_FEED_WIDTH=10,f.HORIZONTAL_EXTRA_PX=30,t.ViewLines=f}),define(d[437],h([0,1,28,15,3,2,58]),function(e,t,n,i,o,r,s){"use strict";var a=function(){function e(e,t,n,i){this.top=e,this.left=t,this.width=n,this.textContent=i}return e}();t.ViewCursorRenderData=a;var u=function(){function e(e,t){this._context=e,this._isSecondary=t,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._isVisible=!0,this._domNode=n.createFastDomNode(document.createElement("div")),this._isSecondary?this._domNode.setClassName("cursor secondary"):this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),s.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new i.Position(1,1)),this._isInEditableRange=!0,this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode.domNode},e.prototype.getIsInEditableRange=function(){return this._isInEditableRange},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.onModelFlushed=function(){return this.updatePosition(new i.Position(1,1)),this._isInEditableRange=!0,!0},e.prototype.onCursorPositionChanged=function(e,t){return this.updatePosition(e),this._isInEditableRange=t,!0},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo.cursorStyle&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle),e.fontInfo&&(s.Configuration.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},e.prototype._prepareRender=function(e){if(this._cursorStyle===r.TextEditorCursorStyle.Line){var t=e.visibleRangeForPosition(this._position);if(!t)return null;var n=this._isSecondary?1:2;return new a(t.top,t.left,n,"")}var i=e.linesVisibleRangesForRange(new o.Range(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!i||0===i.length||0===i[0].ranges.length)return null;var s=i[0].ranges[0],u=e.getViewportVerticalOffsetForLineNumber(this._position.lineNumber),l=s.width<1?this._typicalHalfwidthCharacterWidth:s.width,c="";if(this._cursorStyle===r.TextEditorCursorStyle.Block){var d=this._context.model.getLineContent(this._position.lineNumber);c=d.charAt(this._position.column-1)}return new a(u,s.left,l,c)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){if(!this._renderData)return this._domNode.setDisplay("none"),null;this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent);var t=this._renderData.top+e.viewportTop-e.bigNumbersDelta;return this._domNode.setDisplay("block"),this._domNode.setTop(t),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._lineHeight),this._domNode.setHeight(this._lineHeight),{position:this._position,contentTop:t,contentLeft:this._renderData.left,height:this._lineHeight,width:2}},e.prototype.updatePosition=function(e){this._position=e,this._domNode.domNode.setAttribute("lineNumber",this._position.lineNumber.toString()),this._domNode.domNode.setAttribute("column",this._position.column.toString())},e}();t.ViewCursor=u}),define(d[438],h([0,1,2,21,32,437,28,17,351]),function(e,t,n,i,o,r,s,a){"use strict";var u=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._selectionIsEmpty=!0,n._primaryCursor=new r.ViewCursor(n._context,!1),n._secondaryCursors=[],n._renderData=[],n._domNode=s.createFastDomNode(document.createElement("div")),n._updateDomClassName(),n._domNode.domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new a.TimeoutTimer,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose()},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.onModelFlushed=function(){this._primaryCursor.onModelFlushed();for(var e=0,t=this._secondaryCursors.length;ee.secondaryPositions.length)for(var o=this._secondaryCursors.length-e.secondaryPositions.length,n=0;n0){var v=t.firstLine;"^"!==v.charAt(0)&&(v="^"+v);try{var _=new RegExp(v);r.regExpLeadsToEndlessLoop(_)||o.registerTextMime({id:i,mime:s,firstline:_})}catch(e){n.onUnexpectedError(e)}}e.aliases.push(i);var y=null;if("undefined"!=typeof t.aliases&&Array.isArray(t.aliases)&&(y=0===t.aliases.length?[null]:t.aliases),null!==y)for(var a=0;a0;if(C&&null===y[0]);else{var b=(C?y[0]:null)||i;!C&&e.name||(e.name=b)}"string"==typeof t.configuration&&e.configurationFiles.push(t.configuration)},e.prototype.isRegisteredMode=function(e){return!!d.call(this.mime2LanguageId,e)||d.call(this._languages,e)},e.prototype.getRegisteredModes=function(){return Object.keys(this._languages)},e.prototype.getRegisteredLanguageNames=function(){return Object.keys(this.name2LanguageId)},e.prototype.getLanguageName=function(e){return d.call(this._languages,e)?this._languages[e].name:null},e.prototype.getModeIdForLanguageNameLowercase=function(e){return this.lowerName2Id[e]||null},e.prototype.getConfigurationFiles=function(e){return d.call(this._languages,e)?this._languages[e].configurationFiles||[]:[]},e.prototype.getMimeForMode=function(e){for(var t=Object.keys(this.mime2LanguageId),n=0,i=t.length;n0?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.getConfigurationFiles=function(e){return this._registry.getConfigurationFiles(e)},e.prototype.lookup=function(e){for(var t=[],n=this._registry.extractModeIds(e),i=0;i0?t[0]:null},e.prototype.getOrCreateModeByFilenameOrFirstLine=function(e,t){var n=this;return this._onReady().then(function(){var i=n.getModeIdByFilenameOrFirstLine(e,t);return n._getOrCreateMode(i||"plaintext")})},e.prototype._getOrCreateMode=function(e){if(!this._instantiatedModes.hasOwnProperty(e)){var t=this.getLanguageIdentifier(e);this._instantiatedModes[e]=new a.FrankensteinMode(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}();t.ModeServiceImpl=l}),define(d[441],h([0,1,33,22,178,35,26,114]),function(e,t,n,i,o,r,s,a){"use strict";function u(){var e=Object.create(null),t=n.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var i in t){var o=t[i].default;c(e,i,o,function(e){return console.error("Conflict in default settings: "+e)})}return e}function l(e,t){var n=Object.create(null);for(var i in e)c(n,i,e[i],t);return n}function c(e,t,n,i){for(var o=t.split("."),r=o.pop(),s=e,a=0;a=0)return void document.execCommand(this.getInputHandler());var r=c(e);return r?(r.focus(),void r.trigger("keyboard",n,t)):void 0},t}(b),T=function(e){function t(){return e.call(this,{id:"editor.action.selectAll",precondition:null,kbOpts:{weight:C,kbExpr:null,primary:2079}})||this}return m(t,e),t.prototype.getEditorHandler=function(){return r.Handler.SelectAll},t.prototype.getInputHandler=function(){return"selectAll"},t}(N);h(new T);var x=function(e){function t(){return e.call(this,{id:v.Undo,precondition:y.Writable,kbOpts:{weight:C,kbExpr:y.TextFocus,primary:2104}})||this}return m(t,e),t.prototype.getEditorHandler=function(){return v.Undo},t.prototype.getInputHandler=function(){return"undo"},t}(N);h(new x);var M=function(e){function t(){return e.call(this,{id:v.Redo,precondition:y.Writable,kbOpts:{weight:C,kbExpr:y.TextFocus,primary:2103,secondary:[3128],mac:{primary:3128}}})||this}return m(t,e),t.prototype.getEditorHandler=function(){return v.Redo},t.prototype.getInputHandler=function(){return"redo"},t}(N);h(new M)}),define(d[159],h([0,1,14]),function(e,t,n){"use strict";t.IProgressService=n.createDecorator("progressService"),t.emptyProgress=Object.freeze({report:function(){}});var i=function(){function e(e){this._callback=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.report=function(e){this._value=e,this._callback()},e}();t.Progress=i,t.IProgressService2=n.createDecorator("progressService2")}),define(d[160],h([0,1,14]),function(e,t,n){"use strict";t.ID="storageService",t.IStorageService=n.createDecorator(t.ID);var i;!function(e){e[e.GLOBAL=0]="GLOBAL",e[e.WORKSPACE=1]="WORKSPACE"}(i=t.StorageScope||(t.StorageScope={})),t.NullStorageService={_serviceBrand:void 0,store:function(){},swap:function(){},remove:function(){},get:function(e,t,n){return n},getInteger:function(e,t,n){return n},getBoolean:function(e,t,n){return n}}}),define(d[47],h([0,1,14]),function(e,t,n){"use strict";t.ITelemetryService=n.createDecorator("telemetryService")}),define(d[13],h([0,1,10,27,23,70,33,47,158,15,44,57]),function(e,t,n,i,o,r,s,a,u,l,c,d){"use strict";function h(e){v.registerEditorAction(new e)}function p(e){y.INSTANCE.registerEditorContribution(e)}t.Command=u.Command,t.EditorCommand=u.EditorCommand;var f=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 m(t,e),t.prototype.toMenuItem=function(){return this.menuOpts?{command:{id:this.id,title:this.label},when:this.precondition,group:this.menuOpts.group,order:this.menuOpts.order}:null},t.prototype.runEditorCommand=function(e,t,n){return this.reportTelemetry(e),this.run(e,t,n)},t.prototype.reportTelemetry=function(e){e.get(a.ITelemetryService).publicLog("editorActionInvoked",{name:this.label,id:this.id})},t}(u.EditorCommand);t.EditorAction=f;var g=function(e){function t(t){var n=e.call(this,t)||this;return n._handlerId=t.handlerId,n}return m(t,e),t.prototype.run=function(e,t){t.trigger(this.id,this._handlerId,null)},t}(f);t.HandlerEditorAction=g,t.editorAction=h,t.commonEditorContribution=p;var v;!function(e){function t(e){y.INSTANCE.registerEditorAction(e)}function s(){return y.INSTANCE.getEditorActions()}function a(){return y.INSTANCE.getEditorContributions()}function u(e){return void 0===e&&(e=0),r.KeybindingsRegistry.WEIGHT.editorContrib(e)}function d(e){r.KeybindingsRegistry.registerCommandAndKeybindingRule(e.toCommandAndKeybindingRule(r.KeybindingsRegistry.WEIGHT.editorContrib()))}function h(e,t){o.CommandsRegistry.registerCommand(e,function(e,n){return t(e,n||{})})}function p(e,t){h(e,function(e,o){var r=o.resource,s=o.position;if(!(r instanceof i.default))throw n.illegalArgument("resource");if(!l.Position.isIPosition(s))throw n.illegalArgument("position");var a=e.get(c.IModelService).getModel(r);if(!a)throw n.illegalArgument("Can not find open model for "+r);var u=l.Position.lift(s);return t(a,u,o)})}e.registerEditorAction=t,e.getEditorActions=s,e.getEditorContributions=a,e.commandWeight=u,e.registerEditorCommand=d,e.registerLanguageCommand=h,e.registerDefaultLanguageCommand=p}(v=t.CommonEditorRegistry||(t.CommonEditorRegistry={}));var _={EditorCommonContributions:"editor.commonContributions"},y=function(){function e(){this.editorContributions=[],this.editorActions=[]}return e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)},e.prototype.registerEditorAction=function(e){var t=e.toMenuItem();t&&d.MenuRegistry.appendMenuItem(d.MenuId.EditorContext,t),r.KeybindingsRegistry.registerCommandAndKeybindingRule(e.toCommandAndKeybindingRule(r.KeybindingsRegistry.WEIGHT.editorContrib())),this.editorActions.push(e)},e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},e.prototype.getEditorActions=function(){return this.editorActions.slice(0)},e}();y.INSTANCE=new y,s.Registry.add(_.EditorCommonContributions,y.INSTANCE)}),define(d[449],h([0,1,284,4,15,17,2,13]),function(e,t,n,i,o,r,s,a){"use strict";var u=s.EditorContextKeys,l=function(e){function t(){return e.call(this,{id:"editor.action.jumpToBracket",label:n.localize(0,null),alias:"Go to Bracket",precondition:null,kbOpts:{kbExpr:u.TextFocus,primary:3160}})||this}return m(t,e),t.prototype.run=function(e,t){var n=d.get(t);n&&n.jumpToBracket()},t}(a.EditorAction);l=y([a.editorAction],l);var c=function(){function e(e,t){this.position=e,this.brackets=t}return e}(),d=h=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._lastBracketsData=[],n._lastVersionId=0,n._decorations=[],n._updateBracketsSoon=n._register(new r.RunOnceScheduler(function(){return n._updateBrackets()},50)),n._updateBracketsSoon.schedule(),n._register(t.onDidChangeCursorPosition(function(e){return n._updateBracketsSoon.schedule()})),n._register(t.onDidChangeModel(function(e){n._decorations=[],n._updateBracketsSoon.schedule()})),n}return m(t,e),t.get=function(e){return e.getContribution(h.ID)},t.prototype.getId=function(){return h.ID},t.prototype.jumpToBracket=function(){var e=this._editor.getModel();if(e){var t=this._editor.getSelection();if(t.isEmpty()){var n=t.getStartPosition(),i=e.matchBracket(n);if(i){var o=null;i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition()),o&&(this._editor.setPosition(o),this._editor.revealPosition(o))}}}},t.prototype._updateBrackets=function(){this._recomputeBrackets();for(var e=[],t=0,n=0,i=this._lastBracketsData.length;n1&&r.sort(o.Position.compare);for(var d=[],h=0,p=0,f=n.length,a=0,u=r.length;a0&&t.executeCommands(this.id,o)},t}(r.EditorAction);a=y([r.editorAction],a)}),define(d[452],h([0,1,287,24,158,2,13,364]),function(e,t,n,i,o,r,s){"use strict";function a(e){return i.supportsExecCommand(e)?s.editorAction:function(){}}var u=r.EditorContextKeys,l="9_cutcopypaste",c=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return m(t,e),t.prototype.runCommand=function(e,t){var n=o.findFocusedEditor(this.id,e,!1);return n&&n.isFocused()?void n.trigger("keyboard",this.id,t):void document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(s.EditorAction),d=function(e){function t(){return e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:n.localize(0,null),alias:"Cut",precondition:u.Writable,kbOpts:{kbExpr:u.TextFocus,primary:2102,win:{primary:2102,secondary:[1044]}},menuOpts:{group:l,order:1}})||this}return m(t,e),t.prototype.run=function(t,n){var o=n.getConfiguration().contribInfo.emptySelectionClipboard&&i.enableEmptySelectionClipboard;!o&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(c);d=y([a("cut")],d);var h=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:n.localize(1,null),alias:"Copy",precondition:null,kbOpts:{kbExpr:u.TextFocus,primary:2081,win:{primary:2081,secondary:[2067]}},menuOpts:{group:l,order:2}})||this}return m(t,e),t.prototype.run=function(t,n){var o=n.getConfiguration().contribInfo.emptySelectionClipboard&&i.enableEmptySelectionClipboard;!o&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(c);h=y([a("copy")],h);var p=function(e){function t(){return e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:n.localize(2,null),alias:"Paste",precondition:u.Writable,kbOpts:{kbExpr:u.TextFocus,primary:2100,win:{primary:2100,secondary:[1043]}},menuOpts:{group:l,order:3}})||this}return m(t,e),t}(c);p=y([a("paste")],p)}),define(d[453],h([0,1,10,27,6,13,16,44,17]),function(e,t,n,i,o,r,s,a,u){"use strict";function l(e){var t=[],i=s.CodeLensProviderRegistry.ordered(e),r=i.map(function(i){return u.asWinJsPromise(function(t){return i.provideCodeLenses(e,t)}).then(function(e){if(Array.isArray(e))for(var n=0,o=e;nt.symbol.range.startLineNumber?1:i.indexOf(e.provider)i.indexOf(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0})})}t.getCodeLensData=l,r.CommonEditorRegistry.registerLanguageCommand("_executeCodeLensProvider",function(e,t){var o=t.resource;if(!(o instanceof i.default))throw n.illegalArgument();var r=e.get(a.IModelService).getModel(o);if(!r)throw n.illegalArgument();return l(r)})}),define(d[454],h([0,1,17,10,4,30,9,6,11,23,52,3,2,16,21,29,453,365]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,m){"use strict";var v=function(){function e(e){this.afterLineNumber=e,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return e.prototype.setAfterLineNumber=function(e){this.afterLineNumber=e},e}(),_=function(){function e(t,n,i,o){var s=this;this._commands=Object.create(null),this._id="codeLensWidget"+ ++e.ID,this._editor=t,this.suppressMouseDown=!0,this.setSymbolRange(n),this._domNode=document.createElement("span"),this._domNode.style.height=t.getConfiguration().lineHeight+"px",this._domNode.innerHTML=" ",u.addClass(this._domNode,"codelens-decoration"),u.addClass(this._domNode,"invisible-cl"),this._subscription=u.addDisposableListener(this._domNode,"click",function(e){var n=e.target;if("A"===n.tagName&&n.id){var a=s._commands[n.id];a&&(t.focus(),i.executeCommand.apply(i,[a.id].concat(a.arguments)).done(void 0,function(e){o.show(r.default.Error,e)}))}}),this.updateVisibility()}return e.prototype.dispose=function(){this._subscription.dispose(),this._symbolRange=null},e.prototype.updateVisibility=function(){this.isVisible()&&(u.removeClass(this._domNode,"invisible-cl"),u.addClass(this._domNode,"fadein"))},e.prototype.withCommands=function(e){if(this._commands=Object.create(null),!e||!e.length)return void(this._domNode.innerHTML="no commands");for(var t=[],n=0;n{1}",n,o),this._commands[n]=i):r=s.format("{0}",o),t.push(r)}this._domNode.innerHTML=t.join(" | "),this._editor.layoutContentWidget(this)},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.setSymbolRange=function(e){this._symbolRange=e;var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[f.ContentWidgetPositionPreference.ABOVE]}},e.prototype.getPosition=function(){return this._widgetPosition},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget")},e}();_.ID=0;var b=function(){function e(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return e.prototype.addDecoration=function(e,t){this._addDecorations.push(e),this._addDecorationsCallbacks.push(t)},e.prototype.removeDecoration=function(e){this._removeDecorations.push(e)},e.prototype.commit=function(e){for(var t=e.deltaDecorations(this._removeDecorations,this._addDecorations),n=0,i=t.length;ni||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(a):(n=[a],o.push(n)))}var l=this._editor.getCenteredRangeInViewport(),c=o.length!==this._lenses.length&&0!==this._editor.getScrollTop();this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){for(var i=0,r=0,s=new b;r0&&s._contextViewService.hideContextView()})),this._toDispose.push(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())}))}return e.get=function(e){return e.getContribution(v.ID)},e.prototype._onContextMenu=function(e){if(!this._editor.getConfiguration().contribInfo.contextmenu)return this._editor.focus(),void(e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position));if(e.target.type!==d.MouseTargetType.OVERLAY_WIDGET&&(e.event.preventDefault(),e.target.type===d.MouseTargetType.CONTENT_TEXT||e.target.type===d.MouseTargetType.CONTENT_EMPTY||e.target.type===d.MouseTargetType.TEXTAREA)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);var t;e.target.type!==d.MouseTargetType.TEXTAREA&&(t={x:e.event.posx,y:e.event.posy+1}),this.showContextMenu(t)}},e.prototype.showContextMenu=function(e){if(this._editor.getConfiguration().contribInfo.contextmenu){if(!this._contextMenuService)return void this._editor.focus();var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e)}},e.prototype._getMenuActions=function(){var e=[],t=this._menuService.createMenu(c.MenuId.EditorContext,this._contextKeyService),n=t.getActions(this._editor.getModel().uri);t.dispose();for(var i=0,o=n;i0?t[0]:null},e.prototype.getId=function(){return v.ID},e.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose=i.dispose(this._toDispose)},e}();f.ID="editor.contrib.contextmenu",f=v=y([p.editorContribution,C(1,a.IContextMenuService),C(2,a.IContextViewService),C(3,l.IContextKeyService),C(4,u.IKeybindingService),C(5,c.IMenuService)],f),t.ContextMenuController=f;var g=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:n.localize(0,null),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:d.EditorContextKeys.TextFocus,primary:1092}})||this}return m(t,e),t.prototype.run=function(e,t){var n=f.get(t);n.showContextMenu()},t}(h.EditorAction);g=y([h.editorAction],g);var v}),define(d[163],h([0,1,291,445,31,4,19,3,20,9,2,13,102,222,16,17]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g){"use strict";function v(e,t){var n=w.get(e);if(!n)return null;var i,o,r=n.getState(),s=r.wholeWord,a=r.matchCase;if(!e.isFocused()&&r.isRevealed&&r.searchString.length>0)i=r.searchString;else{ -var l=e.getSelection();if(l.startLineNumber!==l.endLineNumber&&!t.allowMultiline)return null;if(l.isEmpty()){var c=e.getModel().getWordAtPosition(l.getStartPosition());if(!c)return null;i=c.word,o=new u.Selection(l.startLineNumber,c.startColumn,l.startLineNumber,c.endColumn)}else i=e.getModel().getValueInRange(l);t.changeFindSearchString&&n.setSearchString(i)}return t.highlightFindOptions&&n.highlightFindOptions(),{searchText:i,matchCase:a,wholeWord:s,currentMatch:o}}var _,b=c.EditorContextKeys;!function(e){e[e.NoFocusChange=0]="NoFocusChange",e[e.FocusFindInput=1]="FocusFindInput",e[e.FocusReplaceInput=2]="FocusReplaceInput"}(_=t.FindStartFocusAction||(t.FindStartFocusAction={})),t.CONTEXT_FIND_WIDGET_VISIBLE=new s.RawContextKey("findWidgetVisible",!1),t.CONTEXT_FIND_WIDGET_NOT_VISIBLE=t.CONTEXT_FIND_WIDGET_VISIBLE.toNegated(),t.CONTEXT_FIND_INPUT_FOCUSSED=new s.RawContextKey("findInputFocussed",!1);var w=function(e){function n(n,o){var r=e.call(this)||this;return r._editor=n,r._findWidgetVisible=t.CONTEXT_FIND_WIDGET_VISIBLE.bindTo(o),r._updateHistoryDelayer=new g.Delayer(500),r._currentHistoryNavigator=new i.HistoryNavigator,r._state=r._register(new p.FindReplaceState),r._register(r._state.addChangeListener(function(e){return r._onStateChanged(e)})),r._model=null,r._register(r._editor.onDidChangeModel(function(){var e=r._editor.getModel()&&r._state.isRevealed;r.disposeModel(),r._state.change({searchScope:null},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,shouldFocus:0,shouldAnimate:!1})})),r}return m(n,e),n.get=function(e){return e.getContribution(n.ID)},n.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},n.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},n.prototype.getId=function(){return n.ID},n.prototype._onStateChanged=function(e){e.updateHistory&&e.searchString&&this._delayedUpdateHistory(),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel()))},n.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},n.prototype._updateHistory=function(){this._state.searchString&&this._currentHistoryNavigator.add(this._state.searchString)},n.prototype.getState=function(){return this._state},n.prototype.getHistory=function(){return this._currentHistoryNavigator},n.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},n.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1)},n.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1)},n.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1)},n.prototype.setSearchString=function(e){this._state.change({searchString:e},!1)},n.prototype.highlightFindOptions=function(){},n.prototype.getSelectionSearchString=function(){var e=this._editor.getSelection();if(e.startLineNumber===e.endLineNumber){if(!e.isEmpty())return this._editor.getModel().getValueInRange(e);var t=this._editor.getModel().getWordAtPosition(e.getStartPosition());if(t)return t.word}return null},n.prototype._start=function(e){if(this.disposeModel(),this._editor.getModel()){var t={isRevealed:!0};if(e.seedSearchStringFromSelection){var n=this.getSelectionSearchString();n&&(this._state.isRegex?t.searchString=l.escapeRegExpCharacters(n):t.searchString=n)}e.forceRevealReplace&&(t.isReplaceRevealed=!0),this._state.change(t,!1),this._model||(this._model=new h.FindModelBoundToEditorModel(this._editor,this._state))}},n.prototype.start=function(e){this._start(e)},n.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},n.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},n.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},n.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},n.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},n.prototype.showPreviousFindTerm=function(){var e=this._currentHistoryNavigator.previous();return e&&this._state.change({searchString:e},!1,!1),!0},n.prototype.showNextFindTerm=function(){var e=this._currentHistoryNavigator.next();return e&&this._state.change({searchString:e},!1,!1),!0},n}(r.Disposable);w.ID="editor.contrib.findController",w=y([C(1,s.IContextKeyService)],w),t.CommonFindController=w;var S=function(e){function t(){return e.call(this,{id:h.FIND_IDS.StartFindAction,label:n.localize(0,null),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,mac:{primary:2084,secondary:[2083]}}})||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,shouldFocus:1,shouldAnimate:!0})},t}(d.EditorAction);S=y([d.editorAction],S),t.StartFindAction=S;var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length,shouldFocus:0,shouldAnimate:!0}),this._run(n))},t}(d.EditorAction);t.MatchFindAction=E;var L=function(e){function t(){return e.call(this,{id:h.FIND_IDS.NextMatchFindAction,label:n.localize(1,null),alias:"Find Next",precondition:null,kbOpts:{kbExpr:b.Focus,primary:61,mac:{primary:2085,secondary:[61]}}})||this}return m(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(E);L=y([d.editorAction],L),t.NextMatchFindAction=L;var N=function(e){function t(){return e.call(this,{id:h.FIND_IDS.PreviousMatchFindAction,label:n.localize(2,null),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:b.Focus,primary:1085,mac:{primary:3109,secondary:[1085]}}})||this}return m(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(E);N=y([d.editorAction],N),t.PreviousMatchFindAction=N;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);if(n){var i=n.getSelectionSearchString();i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,shouldFocus:0,shouldAnimate:!0}),this._run(n))}},t}(d.EditorAction);t.SelectionMatchFindAction=T;var x=function(e){function t(){return e.call(this,{id:h.FIND_IDS.NextSelectionMatchFindAction,label:n.localize(3,null),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:b.Focus,primary:2109}})||this}return m(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(T);x=y([d.editorAction],x),t.NextSelectionMatchFindAction=x;var M=function(e){function t(){return e.call(this,{id:h.FIND_IDS.PreviousSelectionMatchFindAction,label:n.localize(4,null),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:b.Focus,primary:3133}})||this}return m(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(T);M=y([d.editorAction],M),t.PreviousSelectionMatchFindAction=M;var I=function(e){function t(){return e.call(this,{id:h.FIND_IDS.StartFindReplaceAction,label:n.localize(5,null),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596}}})||this}return m(t,e),t.prototype.run=function(e,t){if(!t.getConfiguration().readOnly){var n=w.get(t);n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:!0,shouldFocus:2,shouldAnimate:!0})}},t}(d.EditorAction);I=y([d.editorAction],I),t.StartFindReplaceAction=I;var D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._getNextMatch=function(e){var t=v(e,{changeFindSearchString:!0,allowMultiline:!0,highlightFindOptions:!0});if(!t)return null;if(t.currentMatch)return t.currentMatch;var n=e.getSelections(),i=n[n.length-1],o=e.getModel().findNextMatch(t.searchText,i.getEndPosition(),!1,t.matchCase,t.wholeWord,!1);return o?new u.Selection(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null},t}(d.EditorAction);t.SelectNextFindMatchAction=D;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype._getPreviousMatch=function(e){var t=v(e,{changeFindSearchString:!0,allowMultiline:!0,highlightFindOptions:!0});if(!t)return null;if(t.currentMatch)return t.currentMatch;var n=e.getSelections(),i=n[n.length-1],o=e.getModel().findPreviousMatch(t.searchText,i.getStartPosition(),!1,t.matchCase,t.wholeWord,!1);return o?new u.Selection(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn):null},t}(d.EditorAction);t.SelectPreviousFindMatchAction=R;var k=function(e){function t(){return e.call(this,{id:h.FIND_IDS.AddSelectionToNextFindMatchAction,label:n.localize(6,null),alias:"Add Selection To Next Find Match",precondition:null,kbOpts:{kbExpr:b.Focus,primary:2082}})||this}return m(t,e),t.prototype.run=function(e,t){var n=this._getNextMatch(t);if(n){var i=t.getSelections();t.setSelections(i.concat(n)),t.revealRangeInCenterIfOutsideViewport(n)}},t}(D);k=y([d.editorAction],k),t.AddSelectionToNextFindMatchAction=k;var O=function(e){function t(){return e.call(this,{id:h.FIND_IDS.AddSelectionToPreviousFindMatchAction,label:n.localize(7,null),alias:"Add Selection To Previous Find Match",precondition:null})||this}return m(t,e),t.prototype.run=function(e,t){var n=this._getPreviousMatch(t);if(n){var i=t.getSelections();t.setSelections(i.concat(n)),t.revealRangeInCenterIfOutsideViewport(n)}},t}(R);O=y([d.editorAction],O),t.AddSelectionToPreviousFindMatchAction=O;var P=function(e){function t(){return e.call(this,{id:h.FIND_IDS.MoveSelectionToNextFindMatchAction,label:n.localize(8,null),alias:"Move Last Selection To Next Find Match",precondition:null,kbOpts:{kbExpr:b.Focus,primary:o.KeyChord(2089,2082)}})||this}return m(t,e),t.prototype.run=function(e,t){var n=this._getNextMatch(t);if(n){var i=t.getSelections();t.setSelections(i.slice(0,i.length-1).concat(n)),t.revealRangeInCenterIfOutsideViewport(n)}},t}(D);P=y([d.editorAction],P),t.MoveSelectionToNextFindMatchAction=P;var A=function(e){function t(){return e.call(this,{id:h.FIND_IDS.MoveSelectionToPreviousFindMatchAction,label:n.localize(9,null),alias:"Move Last Selection To Previous Find Match",precondition:null})||this}return m(t,e),t.prototype.run=function(e,t){var n=this._getPreviousMatch(t);if(n){var i=t.getSelections();t.setSelections(i.slice(0,i.length-1).concat(n)),t.revealRangeInCenterIfOutsideViewport(n)}},t}(R);A=y([d.editorAction],A),t.MoveSelectionToPreviousFindMatchAction=A;var W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.run=function(e,t){var n=v(t,{changeFindSearchString:!0,allowMultiline:!0,highlightFindOptions:!0});if(n){var i=t.getModel().findMatches(n.searchText,!0,!1,n.matchCase,n.wholeWord,!1).map(function(e){return e.range});if(i.length>0){for(var o=t.getSelection(),r=0,s=i.length;r0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},t.prototype._update=function(){var e=this.editor.getModel();if(e&&(this.lastWordUnderCursor=null,this.editor.getConfiguration().contribInfo.selectionHighlight)){var t=v(this.editor,{changeFindSearchString:!1,allowMultiline:!1,highlightFindOptions:!1});if(!t)return void this.removeDecorations();var n=f.DocumentHighlightProviderRegistry.has(e);if(t.currentMatch){if(n)return void this.removeDecorations();this.lastWordUnderCursor=t.currentMatch}if(/^[ \t]+$/.test(t.searchText))return void this.removeDecorations();if(t.searchText.length>200)return void this.removeDecorations();for(var i=this.editor.getSelections(),o=e.getValueInRange(i[0]),r=1;r=p)l.push(g),r++;else{var m=a.Range.compareRangesUsingStarts(g,i[d]);m<0?(l.push(g),r++):m>0?d++:(r++,d++)}}var _=l.map(function(e){return{range:e,options:{stickiness:c.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight",overviewRuler:n?void 0:{color:"#A0A0A0",darkColor:"#A0A0A0",position:c.OverviewRulerLane.Center}}}});this.decorations=this.editor.deltaDecorations(this.decorations,_)}},t.prototype.dispose=function(){this.removeDecorations(),e.prototype.dispose.call(this)},t}(r.Disposable);H.ID="editor.contrib.selectionHighlighter",H=U=y([d.commonEditorContribution],H),t.SelectionHighlighter=H;var B=d.EditorCommand.bindToContribution(w.get);d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.CloseFindWidgetCommand,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:9,secondary:[1033]}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:h.ToggleCaseSensitiveKeybinding.primary,mac:h.ToggleCaseSensitiveKeybinding.mac,win:h.ToggleCaseSensitiveKeybinding.win,linux:h.ToggleCaseSensitiveKeybinding.linux}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:h.ToggleWholeWordKeybinding.primary,mac:h.ToggleWholeWordKeybinding.mac,win:h.ToggleWholeWordKeybinding.win,linux:h.ToggleWholeWordKeybinding.linux}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:h.ToggleRegexKeybinding.primary,mac:h.ToggleRegexKeybinding.mac,win:h.ToggleRegexKeybinding.win,linux:h.ToggleRegexKeybinding.linux}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ReplaceOneAction,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.replace()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:3094}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ReplaceAllAction,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.replaceAll()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:2563}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.SelectAllMatchesAction,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:b.Focus,primary:515}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ShowPreviousFindTermAction,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.showPreviousFindTerm()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:s.ContextKeyExpr.and(t.CONTEXT_FIND_INPUT_FOCUSSED,b.Focus),primary:h.ShowPreviousFindTermKeybinding.primary,mac:h.ShowPreviousFindTermKeybinding.mac,win:h.ShowPreviousFindTermKeybinding.win,linux:h.ShowPreviousFindTermKeybinding.linux}})),d.CommonEditorRegistry.registerEditorCommand(new B({id:h.FIND_IDS.ShowNextFindTermAction,precondition:t.CONTEXT_FIND_WIDGET_VISIBLE,handler:function(e){return e.showNextFindTerm()},kbOpts:{weight:d.CommonEditorRegistry.commandWeight(5),kbExpr:s.ContextKeyExpr.and(t.CONTEXT_FIND_INPUT_FOCUSSED,b.Focus),primary:h.ShowNextFindTermKeybinding.primary,mac:h.ShowNextFindTermKeybinding.mac,win:h.ShowNextFindTermKeybinding.win,linux:h.ShowNextFindTermKeybinding.linux}}));var U}),define(d[458],h([0,1,290,10,9,11,256,100,37,21,102,3,163,370]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=n.localize(0,null),f=n.localize(1,null),g=n.localize(2,null),v=n.localize(3,null),_=n.localize(4,null),y=n.localize(5,null),C=n.localize(6,null),b=n.localize(7,null),w=n.localize(8,null),S=n.localize(9,null),E=n.localize(10,null),L=n.localize(11,null),N=n.localize(12,null),T=n.localize(13,null),x=69,M=342,I=function(e){function t(t,n,i,o,s,a){var u=e.call(this)||this;u._codeEditor=t,u._controller=n,u._state=i,u._contextViewProvider=o,u._keybindingService=s,u._isVisible=!1,u._isReplaceVisible=!1,u._register(u._state.addChangeListener(function(e){return u._onStateChanged(e)})),u._buildDomNode(),u._updateButtons();var l=function(){var e=u._codeEditor.getConfiguration().layoutInfo.width,t=!1,n=!1,i=!1;M+28>=e+50&&(t=!0),M+28>=e&&(i=!0),M+x+28>=e&&(n=!0),r.toggleClass(u._domNode,"collapsed-find-widget",t),r.toggleClass(u._domNode,"reduced-find-widget",n),r.toggleClass(u._domNode,"narrow-find-widget",i)};return l(),u._register(u._codeEditor.onDidChangeConfiguration(function(e){e.readOnly&&(u._codeEditor.getConfiguration().readOnly&&u._state.change({isReplaceRevealed:!1},!1),u._updateButtons()),e.layoutInfo&&l()})),u._register(u._codeEditor.onDidChangeCursorSelection(function(){u._isVisible&&u._updateToggleSelectionFindButton()})),u._findInputFocussed=h.CONTEXT_FIND_INPUT_FOCUSSED.bindTo(a),u._focusTracker=u._register(r.trackFocus(u._findInput.inputBox.inputElement)),u._focusTracker.addFocusListener(function(){if(u._findInputFocussed.set(!0),u._toggleSelectionFind.checked){var e=u._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1));var t=u._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d.Range.equalsRange(e,t)||u._state.change({searchScope:e},!0))}}),u._focusTracker.addBlurListener(function(){u._findInputFocussed.set(!1)}),u._codeEditor.addOverlayWidget(u),u}return m(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:l.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}:null},t.prototype._onStateChanged=function(e){if(e.searchString&&(this._findInput.setValue(this._state.searchString),this._updateButtons()),e.replaceString&&(this._replaceInputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal(!0):this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?this._codeEditor.getConfiguration().readOnly||this._isReplaceVisible||(this._isReplaceVisible=!0,this._updateButtons()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),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;r.toggleClass(this._domNode,"no-results",t),this._updateMatchesCount()}},t.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=x+"px",this._state.matchesCount>=c.MATCHES_LIMIT?this._matchesCount.title=L:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var e;if(this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=c.MATCHES_LIMIT&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=o.format(N,n,t)}else e=T;this._matchesCount.appendChild(document.createTextNode(e)),x=Math.max(x,this._matchesCount.clientWidth)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection(),t=!!e&&e.startLineNumber!==e.endLineNumber,n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))},t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInputBox.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0;this._prevBtn.setEnabled(this._isVisible&&e),this._nextBtn.setEnabled(this._isVisible&&e),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),r.toggleClass(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var t=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&t)},t.prototype._reveal=function(e){var t=this;this._isVisible||(this._isVisible=!0,this._updateButtons(),setTimeout(function(){r.addClass(t._domNode,"visible"),e||(r.addClass(t._domNode,"noanimation"),setTimeout(function(){r.removeClass(t._domNode,"noanimation")},200))},0),this._codeEditor.layoutOverlayWidget(this))},t.prototype._hide=function(e){this._isVisible&&(this._isVisible=!1,this._updateButtons(),r.removeClass(this._domNode,"visible"),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this))},t.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},t.prototype.focusReplaceInput=function(){this._replaceInputBox.select(),this._replaceInputBox.focus()},t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},t.prototype._onFindInputKeyDown=function(e){switch(e.toKeybinding().value){case 3:return this._codeEditor.getAction(c.FIND_IDS.NextMatchFindAction).run().done(null,i.onUnexpectedError),void e.preventDefault();case 1027:return this._codeEditor.getAction(c.FIND_IDS.PreviousMatchFindAction).run().done(null,i.onUnexpectedError),void e.preventDefault();case 2:return this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault();case 2066:return this._codeEditor.focus(),void e.preventDefault()}},t.prototype._onReplaceInputKeyDown=function(e){switch(e.toKeybinding().value){case 3:return this._controller.replace(),void e.preventDefault();case 2051:return this._controller.replaceAll(),void e.preventDefault();case 2:return this._findInput.focusOnCaseSensitive(),void e.preventDefault();case 1026:return this._findInput.focus(),void e.preventDefault();case 2066:return this._codeEditor.focus(),void e.preventDefault()}},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybindings(e);return 0===t.length?"":" ("+this._keybindingService.getLabelFor(t[0])+")"},t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new s.FindInput(null,this._contextViewProvider,{width:t.FIND_INPUT_AREA_WIDTH,label:p,placeholder:f,appendCaseSensitiveLabel:this._keybindingLabelFor(c.FIND_IDS.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(c.FIND_IDS.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(c.FIND_IDS.ToggleRegexCommand),validation:function(t){if(0===t.length)return null;if(!e._findInput.getRegex())return null;try{return new RegExp(t),null}catch(e){return{content:e.message}}}})),this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)})),this._register(this._findInput.onInput(function(){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._replaceInputBox.focus(),t.preventDefault())})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new R({label:g+this._keybindingLabelFor(c.FIND_IDS.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(c.FIND_IDS.PreviousMatchFindAction).run().done(null,i.onUnexpectedError)},onKeyDown:function(e){}})),this._nextBtn=this._register(new R({label:v+this._keybindingLabelFor(c.FIND_IDS.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(c.FIND_IDS.NextMatchFindAction).run().done(null,i.onUnexpectedError)},onKeyDown:function(e){}}));var n=document.createElement("div");return n.className="find-part",n.appendChild(this._findInput.domNode),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new D({parent:n,title:_,onChange:function(){if(e._toggleSelectionFind.checked){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,1)),t.isEmpty()||e._state.change({searchScope:t},!0)}else e._state.change({searchScope:null},!0)}})),this._closeBtn=this._register(new R({label:y+this._keybindingLabelFor(c.FIND_IDS.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1},!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),n},t.prototype._buildReplacePart=function(){var e=this,n=document.createElement("div");n.className="replace-input",n.style.width=t.REPLACE_INPUT_AREA_WIDTH+"px",this._replaceInputBox=this._register(new a.InputBox(n,null,{ariaLabel:C,placeholder:b})),this._register(r.addStandardDisposableListener(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(r.addStandardDisposableListener(this._replaceInputBox.inputElement,"input",function(t){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new R({label:w+this._keybindingLabelFor(c.FIND_IDS.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new R({label:S+this._keybindingLabelFor(c.FIND_IDS.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()},onKeyDown:function(e){}}));var i=document.createElement("div");return i.className="replace-part",i.appendChild(n),i.appendChild(this._replaceBtn.domNode),i.appendChild(this._replaceAllBtn.domNode),i},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new R({label:E,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1)},onKeyDown:function(e){}})),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","false"),this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n)},t}(u.Widget);I.ID="editor.contrib.findWidget",I.PART_WIDTH=275,I.FIND_INPUT_AREA_WIDTH=I.PART_WIDTH-54,I.REPLACE_INPUT_AREA_WIDTH=I.FIND_INPUT_AREA_WIDTH,t.FindWidget=I;var D=function(e){function t(n){var i=e.call(this)||this;return i._opts=n,i._domNode=document.createElement("div"),i._domNode.className="monaco-checkbox",i._domNode.title=i._opts.title,i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._domNode.appendChild(i._checkbox),i._domNode.appendChild(i._label),i._opts.parent.appendChild(i._domNode),i.onchange(i._checkbox,function(e){i._opts.onChange()}),i}return m(t,e),Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!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._checkbox.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.disable()},t}(u.Widget);D._COUNTER=0;var R=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){return e.equals(10)||e.equals(3)?(n._opts.onTrigger(),void e.preventDefault()):void n._opts.onKeyDown(e)}),n}return m(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){r.toggleClass(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){r.toggleClass(this._domNode,e,t)},t}(u.Widget)}),define(d[459],h([0,1,61,43,19,29,458,403,163]),function(e,t,n,i,o,r,s,a,u){"use strict";var l=function(e){function t(t,n,i,o){var r=e.call(this,t,i)||this;return r._widget=r._register(new s.FindWidget(t,r,r._state,n,o,i)),r._findOptionsWidget=r._register(new a.FindOptionsWidget(t,r._state,o)),r}return m(t,e), -t.prototype._start=function(t){e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t}(u.CommonFindController);l=y([r.editorContribution,C(1,n.IContextViewService),C(2,o.IContextKeyService),C(3,i.IKeybindingService)],l),t.FindController=l}),define(d[460],h([0,1,292,22,17,31,4,2,3,13,29,404,226,225,372]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";function f(e){if(!i.isUndefined(e)){if(!i.isObject(e))return!1;var t=e;if(!i.isUndefined(t.levels)&&!i.isNumber(t.levels))return!1;if(!i.isUndefined(t.direction)&&!i.isString(t.direction))return!1}return!0}var g=a.EditorContextKeys,v=x=function(){function e(e){var t=this;this.editor=e,this._isEnabled=this.editor.getConfiguration().contribInfo.folding,this.globalToDispose=[],this.localToDispose=[],this.decorations=[],this.computeToken=0,this.globalToDispose.push(this.editor.onDidChangeModel(function(){return t.onModelChanged()})),this.globalToDispose.push(this.editor.onDidChangeConfiguration(function(e){var n=t._isEnabled;t._isEnabled=t.editor.getConfiguration().contribInfo.folding,n!==t._isEnabled&&t.onModelChanged()})),this.onModelChanged()}return e.get=function(e){return e.getContribution(p.ID)},e.prototype.getId=function(){return p.ID},e.prototype.dispose=function(){this.cleanState(),this.globalToDispose=s.dispose(this.globalToDispose)},e.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e)return{};var t=[];return this.decorations.forEach(function(n){if(n.isCollapsed){var i=n.getDecorationRange(e);i&&t.push({startLineNumber:i.startLineNumber,endLineNumber:i.endLineNumber,indent:n.indent,isCollapsed:!0})}}),{collapsedRegions:t,lineCount:e.getLineCount()}},e.prototype.restoreViewState=function(e){var t=this.editor.getModel();t&&this._isEnabled&&e&&Array.isArray(e.collapsedRegions)&&0!==e.collapsedRegions.length&&e.lineCount===t.getLineCount()&&(this.cleanState(),this.applyRegions(e.collapsedRegions),this.onModelChanged())},e.prototype.cleanState=function(){this.localToDispose=s.dispose(this.localToDispose)},e.prototype.applyRegions=function(e){var t=this,n=this.editor.getModel();if(n){var i=!1;e=h.limitByIndent(e,x.MAX_FOLDING_REGIONS).sort(function(e,t){return e.startLineNumber-t.startLineNumber}),this.editor.changeDecorations(function(o){for(var r=[],s=0,a=0;ae[s].startLineNumber;){var c=e[s];i=i||c.isCollapsed,r.push(new d.CollapsibleRegion(c,n,o)),s++}if(s0&&(u.forEach(function(e,n){t.editor.changeDecorations(function(t){e.setCollapsed(!1,t),i=!0})}),!d.doesLineBelongsToCollapsibleRegion(u[0].foldingRange,s.startLineNumber))){var l=u[0].startLineNumber,c=n.getLineMaxColumn(u[0].startLineNumber);o[a]=s.setEndPosition(l,c).setStartPosition(l,c),r=!0}}),r&&this.editor.setSelections(o),i&&this.updateHiddenAreas(o[0].startLineNumber)},e.prototype.fold=function(e,t){var n=this,i=!1,o=this.editor.getSelections();o.forEach(function(o){var r=o.startLineNumber,s=d.getCollapsibleRegionsToFoldAtLine(n.decorations,n.editor.getModel(),r,e,t);s.forEach(function(e){return n.editor.changeDecorations(function(t){e.setCollapsed(!0,t),i=!0})})}),i&&this.updateHiddenAreas(o[0].startLineNumber)},e.prototype.foldUnfoldRecursively=function(e){var t=this,n=!1,i=this.editor.getModel(),o=this.editor.getSelections();o.forEach(function(o){for(var r,s=o.startLineNumber,a=[],u=0,l=t.decorations.length;u=s&&(d.endLineNumber<=r||"undefined"==typeof r)){if(d.startLineNumber!==s&&"undefined"==typeof r)return;r=r||d.endLineNumber,a.push(c)}}a.length>0&&a.forEach(function(i){t.editor.changeDecorations(function(t){i.setCollapsed(e,t),n=!0})})}),n&&this.updateHiddenAreas(o[0].startLineNumber)},e.prototype.foldAll=function(){this.changeAll(!0)},e.prototype.unfoldAll=function(){this.changeAll(!1)},e.prototype.changeAll=function(e){var t=this;if(this.decorations.length>0){var n=!0;this.editor.changeDecorations(function(i){t.decorations.forEach(function(t){e!==t.isCollapsed&&(t.setCollapsed(e,i),n=!0)})}),n&&this.updateHiddenAreas(this.editor.getPosition().lineNumber)}},e.prototype.foldLevel=function(e,t){var n=this,i=this.editor.getModel(),o=[i.getFullModelRange()],r=!1;this.editor.changeDecorations(function(s){n.decorations.forEach(function(n){var a=n.getDecorationRange(i);if(a){for(;!u.Range.containsRange(o[o.length-1],a);)o.pop();o.push(a),o.length!==e+1||n.isCollapsed||t.some(function(e){return a.startLineNumber1)){var n=this.editor.getModel(),o=this.editor.getPosition(),r=!1,s=this.editor.onDidChangeModelRawContent(function(e){if(e.changeType===a.EventType.ModelRawContentChangedFlush)r=!0;else if(e.changeType===a.EventType.ModelRawContentChangedLineChanged){var t=e.lineNumber;r=t<=o.lineNumber}else if(e.changeType===a.EventType.ModelRawContentChangedLinesInserted){var n=e.fromLineNumber;r=n<=o.lineNumber}else if(e.changeType===a.EventType.ModelRawContentChangedLinesDeleted){var i=e.toLineNumber;r=i<=o.lineNumber}r&&s.dispose()}),u=n.getOptions();d.getOnTypeFormattingEdits(n,o,e,{tabSize:u.tabSize,insertSpaces:u.insertSpaces}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e,[])}).then(function(e){s.dispose(),r||i.isFalsyOrEmpty(e)||t.editor.executeCommand(t.getId(),new h.EditOperationsCommand(e,t.editor.getSelection()))},function(e){throw s.dispose(),e})}},e.prototype.getId=function(){return T.ID},e.prototype.dispose=function(){this.callOnDispose=r.dispose(this.callOnDispose),this.callOnModel=r.dispose(this.callOnModel)},e}();w.ID="editor.contrib.autoFormat",w=T=y([l.commonEditorContribution,C(1,g.IEditorWorkerService)],w);var S=x=function(){function e(e,t){var n=this;this.editor=e,this.workerService=t,this.callOnDispose=[],this.callOnModel=[],this.callOnDispose.push(e.onDidChangeConfiguration(function(){return n.update()})),this.callOnDispose.push(e.onDidChangeModel(function(){return n.update()})),this.callOnDispose.push(e.onDidChangeModelLanguage(function(){return n.update()})),this.callOnDispose.push(c.DocumentRangeFormattingEditProviderRegistry.onDidChange(this.update,this))}return e.prototype.update=function(){var e=this;if(this.callOnModel=r.dispose(this.callOnModel),this.editor.getConfiguration().contribInfo.formatOnPaste&&this.editor.getModel()){var t=this.editor.getModel(),n=c.DocumentRangeFormattingEditProviderRegistry.ordered(t)[0];n&&n.provideDocumentRangeFormattingEdits&&this.callOnModel.push(this.editor.onDidPaste(function(t){e.trigger(t)}))}},e.prototype.trigger=function(e){var t=this;if(!(this.editor.getSelections().length>1)){var n=this.editor.getModel(),o=n.getOptions(),r=o.tabSize,s=o.insertSpaces,u=this.editor.captureState(a.CodeEditorStateFlag.Value,a.CodeEditorStateFlag.Position);d.getDocumentRangeFormattingEdits(n,e,{tabSize:r,insertSpaces:s}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e,[])}).then(function(e){if(u.validate(t.editor)&&!i.isFalsyOrEmpty(e)){var n=new h.EditOperationsCommand(e,t.editor.getSelection());t.editor.executeCommand(t.getId(),n)}})}},e.prototype.getId=function(){return x.ID},e.prototype.dispose=function(){this.callOnDispose=r.dispose(this.callOnDispose),this.callOnModel=r.dispose(this.callOnModel)},e}();S.ID="editor.contrib.formatOnPaste",S=x=y([l.commonEditorContribution,C(1,g.IEditorWorkerService)],S);var E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.run=function(e,t){var n=this,o=e.get(g.IEditorWorkerService),r=this._getFormattingEdits(t);if(!r)return s.TPromise.as(void 0);var u=t.captureState(a.CodeEditorStateFlag.Value,a.CodeEditorStateFlag.Position);return r.then(function(e){return o.computeMoreMinimalEdits(t.getModel().uri,e,t.getSelections())}).then(function(e){if(u.validate(t)&&!i.isFalsyOrEmpty(e)){var o=new h.EditOperationsCommand(e,t.getSelection());t.executeCommand(n.id,o),t.focus()}})},t}(l.EditorAction);t.AbstractFormatAction=E;var L=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:n.localize(0,null),alias:"Format Document",precondition:u.ContextKeyExpr.and(b.Writable,_.hasDocumentFormattingProvider),kbOpts:{kbExpr:b.TextFocus,primary:1572,linux:{primary:3111}},menuOpts:{group:"1_modification",order:1.3}})||this}return m(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return d.getDocumentFormattingEdits(t,{tabSize:i,insertSpaces:o})},t}(E);L=y([l.editorAction],L),t.FormatDocumentAction=L;var N=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:n.localize(1,null),alias:"Format Code",precondition:u.ContextKeyExpr.and(b.Writable,_.hasDocumentSelectionFormattingProvider,b.HasNonEmptySelection),kbOpts:{kbExpr:b.TextFocus,primary:o.KeyChord(2089,2084)},menuOpts:{group:"1_modification",order:1.31}})||this}return m(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return d.getDocumentRangeFormattingEdits(t,e.getSelection(),{tabSize:i,insertSpaces:o})},t}(E);N=y([l.editorAction],N),t.FormatSelectionAction=N,p.CommandsRegistry.registerCommand("editor.action.format",function(e){var t=e.get(f.ICodeEditorService).getFocusedCodeEditor();if(t)return(new(function(e){function t(){return e.call(this,{})||this}return m(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=e.getSelection(),i=t.getOptions(),o=i.tabSize,r=i.insertSpaces;return n.isEmpty()?d.getDocumentFormattingEdits(t,{tabSize:o,insertSpaces:r}):d.getDocumentRangeFormattingEdits(t,n,{tabSize:o,insertSpaces:r})},t}(E))).run(e,t)});var T,x}),define(d[463],h([0,1,10,6,13,16,17]),function(e,t,n,i,o,r,s){"use strict";function a(e){return i.TPromise.join(e).then(function(e){for(var t=[],n=0,i=e;n=this._markers.length&&(this._nextIdx=0)):(this._nextIdx-=1,this._nextIdx<0&&(this._nextIdx=this._markers.length-1));var t=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(t)},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.next=function(){this.move(!0)},e.prototype.previous=function(){this.move(!1)},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t0;t&&n&&(u[o]=e)}},function(e){i.onUnexpectedExternalError(e)})});return o.TPromise.join(l).then(function(){return n.coalesce(u)})}t.getHover=u,r.CommonEditorRegistry.registerDefaultLanguageCommand("_executeHoverProvider",u)}),define(d[466],h([0,1,297,27,10,11,6,104,66,3,15,16,139,465,154,155,111,134]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v){"use strict";var _=function(){function e(e){this._editor=e,this._range=null}return e.prototype.setRange=function(e){this._range=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeAsync=function(){var e=this._editor.getModel();return d.HoverProviderRegistry.has(e)?p.getHover(e,new c.Position(this._range.startLineNumber,this._range.startColumn)):s.TPromise.as(null)},e.prototype.computeSync=function(){var e=this,t=this._range.startLineNumber;if(t>this._editor.getModel().getLineCount())return[];var n=function(e){return e&&(!Array.isArray(e)||e.length>0)},i=this._editor.getModel().getLineMaxColumn(t),o=this._editor.getLineDecorations(t),r=o.map(function(o){var r=o.range.startLineNumber===t?o.range.startColumn:1,s=o.range.endLineNumber===t?o.range.endColumn:i;if(r>e._range.startColumn||e._range.endColumn>s||!n(o.options.hoverMessage))return null;var a,u=new l.Range(e._range.startLineNumber,r,e._range.startLineNumber,s);return o.options.hoverMessage&&(a=Array.isArray(o.options.hoverMessage)?o.options.hoverMessage.slice():[o.options.hoverMessage]), -{contents:a,range:u}});return r.filter(function(e){return!!e})},e.prototype.onResult=function(e,t){t?this._result=e.concat(this._result):this._result=this._result.concat(e)},e.prototype.getResult=function(){return this._result.slice(0)},e.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},e.prototype._getLoadingMessage=function(){return{range:this._range,contents:[v.textToMarkedString(n.localize(0,null))]}},e}(),y=function(e){function t(n,i,o){var r=e.call(this,t.ID,n)||this;return r._computer=new _(r._editor),r._highlightDecorations=[],r._isChangingDecorations=!1,r._openerService=i||u.NullOpenerService,r._modeService=o,r._hoverOperation=new f.HoverOperation(r._computer,function(e){return r._withResult(e,!0)},null,function(e){return r._withResult(e,!1)}),r}return m(t,e),t.prototype.dispose=function(){this._hoverOperation.cancel(),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._hoverOperation.start())},t.prototype.startShowingAt=function(e,t){if(!this._lastRange||!this._lastRange.equalsRange(e)){if(this._hoverOperation.cancel(),this.isVisible)if(this._showAtPosition.lineNumber!==e.startLineNumber)this.hide();else{for(var n=[],i=0,o=this._messages.length;i=e.endColumn&&n.push(r)}n.length>0?this._renderMessages(e,n):this.hide()}this._lastRange=e,this._computer.setRange(e),this._shouldFocus=t,this._hoverOperation.start()}},t.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),e.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1},t.prototype._withResult=function(e,t){this._messages=e,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,t){var n=this,s=Number.MAX_VALUE,u=t[0].range,c=document.createDocumentFragment();t.forEach(function(e){e.range&&(s=Math.min(s,e.range.startColumn),u=l.Range.plusRange(u,e.range),e.contents.filter(function(e){return!!e}).forEach(function(e){var t=a.renderMarkedString(e,{actionCallback:function(e){n._openerService.open(i.default.parse(e)).then(void 0,o.onUnexpectedError)},codeBlockRenderer:function(e,t){var i=e?n._modeService.getModeIdForLanguageName(e):n._editor.getModel().getLanguageIdentifier().language;return n._modeService.getOrCreateMode(i).then(function(e){return'
    '+h.tokenizeToString(t,i)+"
    "})}});c.appendChild(r.$("div.hover-row",null,t))}))}),this.showAt({lineNumber:e.startLineNumber,column:s},this._shouldFocus),this.updateContents(c),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[{range:u,options:{className:"hoverHighlight"}}]),this._isChangingDecorations=!1},t}(g.ContentHoverWidget);y.ID="editor.contrib.modesContentHoverWidget",t.ModesContentHoverWidget=y}),define(d[467],h([0,1,296,31,18,66,80,3,2,13,29,466,421,4,375]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";var f=u.EditorContextKeys,g=_=function(){function e(e,t,n){var i=this;this._editor=e,this._toUnhook=[],e.getConfiguration().contribInfo.hover&&(this._toUnhook.push(this._editor.onMouseDown(function(e){return i._onEditorMouseDown(e)})),this._toUnhook.push(this._editor.onMouseMove(function(e){return i._onEditorMouseMove(e)})),this._toUnhook.push(this._editor.onMouseLeave(function(e){return i._hideWidgets()})),this._toUnhook.push(this._editor.onKeyDown(function(e){return i._onKeyDown(e)})),this._toUnhook.push(this._editor.onDidChangeModel(function(){return i._hideWidgets()})),this._toUnhook.push(this._editor.onDidChangeModelDecorations(function(){return i._onModelDecorationsChanged()})),this._toUnhook.push(this._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&i._hideWidgets()})),this._contentWidget=new d.ModesContentHoverWidget(e,t,n),this._glyphWidget=new h.ModesGlyphHoverWidget(e,t,n))}return e.get=function(e){return e.getContribution(_.ID)},e.prototype._onModelDecorationsChanged=function(){this._contentWidget.onModelDecorationsChanged(),this._glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorMouseDown=function(e){var t=e.target.type;t===u.MouseTargetType.CONTENT_WIDGET&&e.target.detail===d.ModesContentHoverWidget.ID||t===u.MouseTargetType.OVERLAY_WIDGET&&e.target.detail===h.ModesGlyphHoverWidget.ID||this._hideWidgets()},e.prototype._onEditorMouseMove=function(e){var t=e.target.type,n=o.isMacintosh?"metaKey":"ctrlKey";(t!==u.MouseTargetType.CONTENT_WIDGET||e.target.detail!==d.ModesContentHoverWidget.ID||e.event[n])&&(t!==u.MouseTargetType.OVERLAY_WIDGET||e.target.detail!==h.ModesGlyphHoverWidget.ID||e.event[n])&&(this._editor.getConfiguration().contribInfo.hover&&t===u.MouseTargetType.CONTENT_TEXT?(this._glyphWidget.hide(),this._contentWidget.startShowingAt(e.target.range,!1)):t===u.MouseTargetType.GUTTER_GLYPH_MARGIN?(this._contentWidget.hide(),this._glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets())},e.prototype._onKeyDown=function(e){var t=o.isMacintosh?57:5;e.keyCode!==t&&this._hideWidgets()},e.prototype._hideWidgets=function(){this._glyphWidget.hide(),this._contentWidget.hide()},e.prototype.showContentHover=function(e,t){this._contentWidget.startShowingAt(e,t)},e.prototype.getId=function(){return _.ID},e.prototype.dispose=function(){this._toUnhook=p.dispose(this._toUnhook),this._glyphWidget&&(this._glyphWidget.dispose(),this._glyphWidget=null),this._contentWidget&&(this._contentWidget.dispose(),this._contentWidget=null)},e}();g.ID="editor.contrib.hover",g=_=y([c.editorContribution,C(1,r.IOpenerService),C(2,s.IModeService)],g);var v=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:n.localize(0,null),alias:"Show Hover",precondition:null,kbOpts:{kbExpr:f.TextFocus,primary:i.KeyChord(2089,2087)}})||this}return m(t,e),t.prototype.run=function(e,t){var n=g.get(t);if(n){var i=t.getPosition(),o=new a.Range(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(o,!0)}},t}(l.EditorAction);v=y([l.editorAction],v);var _}),define(d[468],h([0,1,298,6,3,20,2,13,48,230]),function(e,t,n,i,o,r,s,a,u,l){"use strict";var c=p=function(){function e(e,t){this.editor=e,this.editorWorkerService=t,this.requestIdPool=0,this.currentRequest=i.TPromise.as(null),this.decorationRemover=i.TPromise.as(null),this.decorationIds=[]}return e.get=function(e){return e.getContribution(p.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return p.ID},e.prototype.run=function(e,t){var n=this;this.currentRequest.cancel();var a=this.editor.getSelection(),u=this.editor.getModel(),c=u.uri;if(a.startLineNumber!==a.endLineNumber)return null;var d=this.editor.captureState(s.CodeEditorStateFlag.Value,s.CodeEditorStateFlag.Position);return this.currentRequest=this.editorWorkerService.navigateValueSet(c,a,t),this.currentRequest=this.currentRequest.then(function(e){return e&&e.range&&e.value?e:null}),this.currentRequest.then(function(t){if(t&&t.range&&t.value&&d.validate(n.editor)){var s=o.Range.lift(t.range),u=t.range,c=t.value.length-(a.endColumn-a.startColumn);u={startLineNumber:u.startLineNumber,startColumn:u.startColumn,endLineNumber:u.endLineNumber,endColumn:u.startColumn+t.value.length},c>1&&(a=new r.Selection(a.startLineNumber,a.startColumn,a.endLineNumber,a.endColumn+c-1));var h=new l.InPlaceReplaceCommand(s,a,t.value);n.editor.executeCommand(e,h),n.decorationIds=n.editor.deltaDecorations(n.decorationIds,[{range:u,options:p.DECORATION}]),n.decorationRemover.cancel(),n.decorationRemover=i.TPromise.timeout(350),n.decorationRemover.then(function(){n.editor.changeDecorations(function(e){n.decorationIds=e.deltaDecorations(n.decorationIds,[])})})}})},e}();c.ID="editor.contrib.inPlaceReplaceController",c.DECORATION={className:"valueSetReplacement"},c=p=y([a.commonEditorContribution,C(1,u.IEditorWorkerService)],c);var d=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:n.localize(0,null),alias:"Replace with Previous Value",precondition:s.EditorContextKeys.Writable,kbOpts:{kbExpr:s.EditorContextKeys.TextFocus,primary:3154}})||this}return m(t,e),t.prototype.run=function(e,t){var n=c.get(t);if(n)return n.run(this.id,!0)},t}(a.EditorAction);d=y([a.editorAction],d);var h=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:n.localize(1,null),alias:"Replace with Next Value",precondition:s.EditorContextKeys.Writable,kbOpts:{kbExpr:s.EditorContextKeys.TextFocus,primary:3156}})||this}return m(t,e),t.prototype.run=function(e,t){var n=c.get(t);if(n)return n.run(this.id,!1)},t}(a.EditorAction);h=y([a.editorAction],h);var p}),define(d[469],h([0,1,299,4,9,13,21,29,80,147,16,84,63,402]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";function p(e){for(var t="",n=0,i=e.length;n=0;i--){var r=t.tokens1[i];if(e.column-1>=r.offset){n=i;break}}for(var s=0,i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){s=i;break}var a="",u=this._model.getLineContent(e.lineNumber),l="";if(n'+p(l)+'('+l.length+" "+(1===l.length?"char":"chars")+")",a+='
    ';var h=this._decodeMetadata(t.tokens2[(s<<1)+1]);a+='',a+='",a+='",a+='",a+='",a+='",a+="",a+="
    ",n'+o.escape(t.tokens1[n].type)+""),this._domNode.innerHTML=a,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=c.TokenizationRegistry.getColorMap(),n=l.TokenMetadata.getLanguageId(e),i=l.TokenMetadata.getTokenType(e),o=l.TokenMetadata.getFontStyle(e),r=l.TokenMetadata.getForeground(e),s=l.TokenMetadata.getBackground(e);return{languageIdentifier:this._modeService.getLanguageIdentifier(n),tokenType:i,fontStyle:o,foreground:t[r],background:t[s]}},t.prototype._tokenTypeToString=function(e){switch(e){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},t.prototype._fontStyleToString=function(e){var t="";return 1&e&&(t+="italic "),2&e&&(t+="bold "),4&e&&(t+="underline "),0===t.length&&(t="---"),t},t.prototype._getTokensAtLine=function(e){var t=this._getStateBeforeLine(e),n=this._tokenizationSupport.tokenize(this._model.getLineContent(e),t,0),i=this._tokenizationSupport.tokenize2(this._model.getLineContent(e),t,0);return{startState:t,tokens1:n.tokens,tokens2:i.tokens,endState:n.endState}},t.prototype._getStateBeforeLine=function(e){for(var t=this._tokenizationSupport.getInitialState(),n=1;ne.endLineNumber+1?(o.push(e),t):new c.Selection(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new c.Selection(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)});o.push(s);for(var a=t.getModel(),u=[],d=[],h=i,p=0,f=0,g=o.length;f=1){var x=!0;""===E&&(x=!1),!x||" "!==E.charAt(E.length-1)&&"\t"!==E.charAt(E.length-1)||(x=!1,E=E.replace(/[\s\uFEFF\xA0]+$/g," "));var M=N.substr(T-1);E+=(x?" ":"")+M,b=x?M.length+1:M.length}else b=0}var I=new l.Range(v,_,y,C);if(!I.isEmpty()){var D=void 0;m.isEmpty()?(u.push(r.EditOperation.replace(I,E)),D=new c.Selection(I.startLineNumber-p,E.length-b+1,v-p,E.length-b+1)):m.startLineNumber===m.endLineNumber?(u.push(r.EditOperation.replace(I,E)),D=new c.Selection(m.startLineNumber-p,m.startColumn,m.endLineNumber-p,m.endColumn)):(u.push(r.EditOperation.replace(I,E)),D=new c.Selection(m.startLineNumber-p,m.startColumn,m.startLineNumber-p,E.length-w)),null!==l.Range.intersectRanges(I,i)?h=D:d.push(D)}p+=I.endLineNumber-I.startLineNumber}d.unshift(h),t.executeEdits(this.id,u,d)},t}(d.EditorAction);A=y([d.editorAction],A),t.JoinLinesAction=A;var W=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:n.localize(15,null),alias:"Transpose characters around the cursor",precondition:a.EditorContextKeys.Writable})||this}return m(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r=h){if(d.lineNumber===i.getLineCount())continue;var p=new l.Range(d.lineNumber,Math.max(1,d.column-1),d.lineNumber+1,1),f=i.getValueInRange(p).split("").reverse().join("");o.push(new u.ReplaceCommand(new c.Selection(d.lineNumber,Math.max(1,d.column-1),d.lineNumber+1,1),f))}else{var p=new l.Range(d.lineNumber,Math.max(1,d.column-1),d.lineNumber,d.column+1),f=i.getValueInRange(p).split("").reverse().join("");o.push(new u.ReplaceCommandThatPreservesSelection(p,f,new c.Selection(d.lineNumber,d.column+1,d.lineNumber,d.column+1)))}}}t.executeCommands(this.id,o)},t}(d.EditorAction);W=y([d.editorAction],W),t.TransposeAction=W;var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r1&&i.push(new r.Selection(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)),i},t.prototype.run=function(e,t){var n=this,i=t.getSelections(),o=i.map(function(e){return n.getCursorsForSelection(e,t)}).reduce(function(e,t){return e.concat(t)});o.length>0&&t.setSelections(o)},t}(o.EditorAction);u=y([o.editorAction],u)}),define(d[164],h([0,1,10,13,16,17,19]),function(e,t,n,i,o,r,s){"use strict";function a(e,t){var i,s=o.SignatureHelpProviderRegistry.ordered(e);return r.sequence(s.map(function(o){return function(){if(!i)return r.asWinJsPromise(function(n){return o.provideSignatureHelp(e,t,n)}).then(function(e){i=e},n.onUnexpectedExternalError)}})).then(function(){return i})}t.Context={Visible:new s.RawContextKey("parameterHintsVisible",!1),MultipleSignatures:new s.RawContextKey("parameterHintsMultipleSignatures",!1)},t.provideSignatureHelp=a,i.CommonEditorRegistry.registerDefaultLanguageCommand("_executeSignatureHelpProvider",a)}),define(d[474],h([0,1,304,4,6,11,99,16,21,17,10,12,124,19,164,60,69,407]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v){"use strict";var _=r.$,b=function(e){function t(n){var i=e.call(this)||this;return i._onHint=i._register(new d.Emitter),i.onHint=i._onHint.event,i._onCancel=i._register(new d.Emitter),i.onCancel=i._onCancel.event,i.editor=n,i.enabled=!1,i.triggerCharactersListeners=[],i.throttledDelayer=new l.RunOnceScheduler(function(){return i.doTrigger()},t.DELAY),i.active=!1,i._register(i.editor.onDidChangeConfiguration(function(){return i.onEditorConfigurationChange()})),i._register(i.editor.onDidChangeModel(function(e){return i.onModelChanged()})),i._register(i.editor.onDidChangeModelLanguage(function(e){return i.onModelChanged()})),i._register(i.editor.onDidChangeCursorSelection(function(e){return i.onCursorChange(e)})),i._register(a.SignatureHelpProviderRegistry.onDidChange(i.onModelChanged,i)),i.onEditorConfigurationChange(),i.onModelChanged(),i}return m(t,e),t.prototype.cancel=function(e){void 0===e&&(e=!1),this.active=!1,this.throttledDelayer.cancel(),e||this._onCancel.fire(void 0)},t.prototype.trigger=function(e){if(void 0===e&&(e=t.DELAY),this.enabled&&a.SignatureHelpProviderRegistry.has(this.editor.getModel()))return this.cancel(!0),this.throttledDelayer.schedule(e)},t.prototype.doTrigger=function(){var e=this;f.provideSignatureHelp(this.editor.getModel(),this.editor.getPosition()).then(null,c.onUnexpectedError).then(function(t){if(!t||!t.signatures||0===t.signatures.length)return e.cancel(),e._onCancel.fire(void 0),!1;e.active=!0;var n={hints:t};return e._onHint.fire(n),!0})},t.prototype.isTriggered=function(){return this.active||this.throttledDelayer.isScheduled()},t.prototype.onModelChanged=function(){var e=this;this.active&&this.cancel(),this.triggerCharactersListeners=i.dispose(this.triggerCharactersListeners);var t=this.editor.getModel();if(t){for(var n=new v.CharacterSet,o=0,r=a.SignatureHelpProviderRegistry.ordered(t);o1;r.toggleClass(this.element,"multiple",e),this.keyMultipleSignatures.set(e),this.signature.innerHTML="",this.docs.innerHTML="";var t=this.hints.signatures[this.currentSignature];if(t){var i=r.append(this.signature,_(".code")),o=t.parameters.length>0,a=this.editor.getConfiguration().fontInfo;if(i.style.fontSize=a.fontSize+"px",i.style.fontFamily=a.fontFamily,o)this.renderParameters(i,t,this.hints.activeParameter);else{var u=r.append(i,_("span"));u.textContent=t.label}var l=t.parameters[this.hints.activeParameter];if(l&&l.documentation){var c=_("span.documentation");c.textContent=l.documentation,r.append(this.docs,_("p",null,c))}r.toggleClass(this.signature,"has-docs",!!t.documentation),t.documentation&&r.append(this.docs,_("p",null,t.documentation));var d=String(this.currentSignature+1);if(this.hints.signatures.length<10&&(d+="/"+this.hints.signatures.length),this.overloads.textContent=d,l){var h=l.label;this.announcedLabel!==h&&(s.alert(n.localize(0,null,h)),this.announcedLabel=h)}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode()}},e.prototype.renderParameters=function(e,t,n){for(var i,o=t.label.length,s=0,a=t.parameters.length-1;a>=0;a--){var u=t.parameters[a];s=t.label.lastIndexOf(u.label,o);var l=0,c=0;s>=0&&(l=s,c=s+u.label.length),i=document.createElement("span"),i.textContent=t.label.substring(c,o),r.prepend(e,i),i=document.createElement("span"),i.className="parameter "+(a===n?"active":""),i.textContent=t.label.substring(l,c),r.prepend(e,i),o=l}i=document.createElement("span"),i.textContent=t.label.substring(0,o),r.prepend(e,i)},e.prototype.next=function(){var e=this.hints.signatures.length;return e<2?(this.cancel(),!1):(this.currentSignature=(this.currentSignature+1)%e,this.render(),!0)},e.prototype.previous=function(){var e=this.hints.signatures.length;return e<2?(this.cancel(),!1):(this.currentSignature=(this.currentSignature-1+e)%e,this.render(),!0)},e.prototype.cancel=function(){this.model.cancel()},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.trigger=function(){this.model.trigger(0)},e.prototype.updateMaxHeight=function(){var e=Math.max(this.editor.getLayoutInfo().height/4,250);this.element.style.maxHeight=e+"px"},e.prototype.dispose=function(){this.disposables=i.dispose(this.disposables),this.model=null},e}();w.ID="editor.widget.parameterHintsWidget",w=y([C(1,p.IContextKeyService)],w),t.ParameterHintsWidget=w}),define(d[475],h([0,1,303,4,14,2,19,13,29,474,164]),function(e,t,n,i,o,r,s,a,u,l,c){"use strict";var d=g=function(){function e(e,t){this.editor=e,this.widget=t.createInstance(l.ParameterHintsWidget,this.editor)}return e.get=function(e){return e.getContribution(g.ID)},e.prototype.getId=function(){return g.ID},e.prototype.cancel=function(){this.widget.cancel()},e.prototype.previous=function(){this.widget.previous()},e.prototype.next=function(){this.widget.next()},e.prototype.trigger=function(){this.widget.trigger()},e.prototype.dispose=function(){this.widget=i.dispose(this.widget)},e}();d.ID="editor.controller.parameterHints",d=g=y([u.editorContribution,C(1,o.IInstantiationService)],d);var h=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:n.localize(0,null),alias:"Trigger Parameter Hints",precondition:r.ModeContextKeys.hasSignatureHelpProvider,kbOpts:{kbExpr:r.EditorContextKeys.TextFocus,primary:3082}})||this}return m(t,e),t.prototype.run=function(e,t){var n=d.get(t);n&&n.trigger()},t}(a.EditorAction);h=y([a.editorAction],h),t.TriggerParameterHintsAction=h;var p=a.CommonEditorRegistry.commandWeight(75),f=a.EditorCommand.bindToContribution(d.get);a.CommonEditorRegistry.registerEditorCommand(new f({id:"closeParameterHints",precondition:c.Context.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:p,kbExpr:r.EditorContextKeys.TextFocus,primary:9,secondary:[1033]}})),a.CommonEditorRegistry.registerEditorCommand(new f({id:"showPrevParameterHint",precondition:s.ContextKeyExpr.and(c.Context.Visible,c.Context.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:p,kbExpr:r.EditorContextKeys.TextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),a.CommonEditorRegistry.registerEditorCommand(new f({id:"showNextParameterHint",precondition:s.ContextKeyExpr.and(c.Context.Visible,c.Context.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:p,kbExpr:r.EditorContextKeys.TextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var g}),define(d[476],h([0,1,10,27,6,3,13,16,44,17]),function(e,t,n,i,o,r,s,a,u,l){"use strict";function c(e,t){var i=[],r=a.CodeActionProviderRegistry.all(e).map(function(o){return l.asWinJsPromise(function(n){return o.provideCodeActions(e,t,n)}).then(function(e){Array.isArray(e)&&i.push.apply(i,e)},function(e){n.onUnexpectedExternalError(e)})});return o.TPromise.join(r).then(function(){return i})}t.getCodeActions=c,s.CommonEditorRegistry.registerLanguageCommand("_executeCodeActionProvider",function(e,t){var o=t.resource,s=t.range;if(!(o instanceof i.default&&r.Range.isIRange(s)))throw n.illegalArgument();var a=e.get(u.IModelService).getModel(o);if(!a)throw n.illegalArgument();return c(a,a.validateRange(s))})}),define(d[477],h([0,1,26,12,30,4,3,16,476]),function(e,t,n,i,o,r,s,a,u){"use strict";var l=function(){function e(e,t,n){var i=this;this._editor=e,this._markerService=t,this._signalChange=n,this._disposables=[],this._disposables.push(this._markerService.onMarkerChanged(function(e){return i._onMarkerChanges(e)}),this._editor.onDidChangeCursorPosition(function(e){return i._onCursorChange()}))}return e.prototype.dispose=function(){this._disposables=r.dispose(this._disposables)},e.prototype.trigger=function(){var e=this._rangeAtPosition(),t=e.range,n=e.severity;t||(t=this._editor.getSelection()),this._signalChange({type:"manual",severity:n,range:t,position:this._editor.getPosition(),fixes:t&&u.getCodeActions(this._editor.getModel(),this._editor.getModel().validateRange(t))})},e.prototype._onMarkerChanges=function(e){for(var t=this._editor.getModel().uri,n=0,i=e;n=e.lineNumber});o=e.lineNumber;){var r=i[o];if(s.Range.containsPosition(r,e))return r;o++}},e.prototype._wordAtPosition=function(){var e=this._editor.getSelection(),t=e.positionLineNumber,n=e.positionColumn,i=this._editor.getModel(),o=i.getWordAtPosition({lineNumber:t,column:n});if(o)return{startLineNumber:t,startColumn:o.startColumn,endLineNumber:t,endColumn:o.endColumn}},e}();t.QuickFixOracle=l;var c=function(){function e(e,t){var n=this;this._onDidChangeFixes=new i.Emitter,this._disposables=[],this._editor=e,this._markerService=t,this._disposables.push(this._editor.onDidChangeModel(function(){return n._update()})),this._disposables.push(this._editor.onDidChangeModelLanguage(function(){return n._update()})),this._disposables.push(a.CodeActionProviderRegistry.onDidChange(this._update,this)),this._update()}return e.prototype.dispose=function(){this._disposables=r.dispose(this._disposables),r.dispose(this._quickFixOracle)},Object.defineProperty(e.prototype,"onDidChangeFixes",{get:function(){return this._onDidChangeFixes.event},enumerable:!0,configurable:!0}),e.prototype._update=function(){var e=this;this._quickFixOracle&&(this._quickFixOracle.dispose(),this._quickFixOracle=void 0,this._onDidChangeFixes.fire(void 0)),this._editor.getModel()&&a.CodeActionProviderRegistry.has(this._editor.getModel())&&!this._editor.getConfiguration().readOnly&&(this._quickFixOracle=new l(this._editor,this._markerService,function(t){return e._onDidChangeFixes.fire(t)}))},e.prototype.triggerManual=function(){this._quickFixOracle&&this._quickFixOracle.trigger()},e}();t.QuickFixModel=c}),define(d[478],h([0,1,305,4,23,61,19,43,81,2,13,29,235,263,477]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f){"use strict";var g=_=function(){function e(e,t,n,i,o,r){var s=this;this._keybindingService=r,this._disposables=[],this._editor=e,this._model=new f.QuickFixModel(this._editor,t),this._quickFixContextMenu=new h.QuickFixContextMenu(e,o,i),this._lightBulbWidget=new p.LightBulbWidget(e),this._updateLightBulbTitle(),this._disposables.push(this._lightBulbWidget.onClick(this._handleLightBulbSelect,this),this._model.onDidChangeFixes(function(e){return s._onQuickFixEvent(e)}),this._keybindingService.onDidUpdateKeybindings(this._updateLightBulbTitle,this))}return e.get=function(e){return e.getContribution(_.ID)},e.prototype.dispose=function(){this._model.dispose(),i.dispose(this._disposables)},e.prototype._onQuickFixEvent=function(e){e&&"manual"===e.type?this._quickFixContextMenu.show(e.fixes,e.position):e&&e.fixes?this._quickFixContextMenu.isVisible?this._quickFixContextMenu.show(e.fixes,e.position):this._lightBulbWidget.model=e:this._lightBulbWidget.hide()},e.prototype.getId=function(){return _.ID},e.prototype._handleLightBulbSelect=function(e){this._quickFixContextMenu.show(this._lightBulbWidget.model.fixes,e)},e.prototype.triggerFromEditorSelection=function(){this._model.triggerManual()},e.prototype._updateLightBulbTitle=function(){var e,t=this._keybindingService.lookupKeybindings(v.Id)[0];e=t?n.localize(0,null,this._keybindingService.getLabelFor(t)):n.localize(1,null),this._lightBulbWidget.getDomNode().title=e},e}();g.ID="editor.contrib.quickFixController",g=_=y([d.editorContribution,C(1,u.IMarkerService),C(2,s.IContextKeyService),C(3,o.ICommandService),C(4,r.IContextMenuService),C(5,a.IKeybindingService)],g),t.QuickFixController=g;var v=b=function(e){function t(){return e.call(this,{id:b.Id,label:n.localize(2,null),alias:"Quick Fix",precondition:s.ContextKeyExpr.and(l.EditorContextKeys.Writable,l.ModeContextKeys.hasCodeActionsProvider),kbOpts:{kbExpr:l.EditorContextKeys.TextFocus,primary:2132}})||this}return m(t,e),t.prototype.run=function(e,t){var n=g.get(t);n&&n.triggerFromEditorSelection()},t}(c.EditorAction);v.Id="editor.action.quickFix",v=b=y([c.editorAction],v),t.QuickFixAction=v;var _,b}),define(d[121],h([0,1,29,271,13]),function(e,t,n,i,o){"use strict";var r=a=function(){function e(e){this.editor=e}return e.get=function(e){return e.getContribution(a.ID)},e.prototype.getId=function(){return a.ID},e.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},e.prototype.run=function(e){var t=this;this.widget&&(this.widget.destroy(),this.widget=null);var n=function(e){t.clearDecorations(),e&&t.lastKnownEditorSelection&&(t.editor.setSelection(t.lastKnownEditorSelection),t.editor.revealRangeInCenterIfOutsideViewport(t.lastKnownEditorSelection)),t.lastKnownEditorSelection=null,t.editor.focus()};this.widget=new i.QuickOpenEditorWidget(this.editor,function(){return n(!1)},function(){return n(!0)},function(n){t.widget.setInput(e.getModel(n),e.getAutoFocus(n))},{inputAriaLabel:e.inputAriaLabel}),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},e.prototype.decorateLine=function(e,t){var n=this;t.changeDecorations(function(t){var i=[];n.rangeHighlightDecorationId&&(i.push(n.rangeHighlightDecorationId),n.rangeHighlightDecorationId=null);var o=[{range:e,options:{className:"rangeHighlight",isWholeLine:!0}}],r=t.deltaDecorations(i,o);n.rangeHighlightDecorationId=r[0]})},e.prototype.clearDecorations=function(){var e=this;this.rangeHighlightDecorationId&&this.editor.changeDecorations(function(t){t.deltaDecorations([e.rangeHighlightDecorationId],[]),e.rangeHighlightDecorationId=null})},e}();r.ID="editor.controller.quickOpenController",r=a=y([n.editorContribution],r),t.QuickOpenController=r;var s=function(e){function t(t,n){var i=e.call(this,n)||this;return i._inputAriaLabel=t,i}return m(t,e),t.prototype.getController=function(e){return r.get(e)},t.prototype._show=function(e,t){e.run({inputAriaLabel:this._inputAriaLabel,getModel:function(e){return t.getModel(e)},getAutoFocus:function(e){return t.getAutoFocus(e)}})},t}(o.EditorAction);t.BaseEditorQuickOpenAction=s;var a}),define(d[480],h([0,1,306,106,76,2,121,13,413]),function(e,t,n,i,o,r,s,a){"use strict";var u=r.EditorContextKeys,l=function(e){function t(t,n,i){var o=e.call(this)||this;return o.editor=n,o.decorator=i,o._parseResult=o._parseInput(t),o}return m(t,e),t.prototype._parseInput=function(e){var t,i=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});t=0===i.length?{lineNumber:-1,column:-1}:1===i.length?{lineNumber:i[0],column:1}:{lineNumber:i[0],column:i[1]};var o,s=this.editor.getEditorType();switch(s){case r.EditorType.IDiffEditor:o=this.editor.getModel().modified;break;case r.EditorType.ICodeEditor:o=this.editor.getModel();break;default:throw new Error}var a,u=o.validatePosition(t).equals(t);return a=u?t.column&&t.column>1?n.localize(0,null,t.lineNumber,t.column):n.localize(1,null,t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>o.getLineCount()?n.localize(2,null,o.getLineCount()):n.localize(3,null,o.getLineMaxColumn(t.lineNumber)),{position:t,isValid:u,label:a}},t.prototype.getLabel=function(){return this._parseResult.label},t.prototype.getAriaLabel=function(){return n.localize(4,null,this._parseResult.label)},t.prototype.run=function(e,t){return e===o.Mode.OPEN?this.runOpen():this.runPreview()},t.prototype.runOpen=function(){if(!this._parseResult.isValid)return!1;var e=this.toSelection();return this.editor.setSelection(e),this.editor.revealRangeInCenter(e),this.editor.focus(),!0},t.prototype.runPreview=function(){if(!this._parseResult.isValid)return this.decorator.clearDecorations(),!1;var e=this.toSelection();return this.editor.revealRangeInCenter(e),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return{startLineNumber:this._parseResult.position.lineNumber,startColumn:this._parseResult.position.column,endLineNumber:this._parseResult.position.lineNumber,endColumn:this._parseResult.position.column}},t}(i.QuickOpenEntry);t.GotoLineEntry=l;var c=function(e){function t(){return e.call(this,n.localize(5,null),{id:"editor.action.gotoLine",label:n.localize(6,null),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:u.Focus,primary:2085,mac:{primary:293}}})||this}return m(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new i.QuickOpenModel([new l(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(s.BaseEditorQuickOpenAction);c=y([a.editorAction],c),t.GotoLineAction=c}),define(d[481],h([0,1,307,10,87,6,106,76,43,2,121,13,24]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.key=t,r.setHighlights(n),r.action=i,r.editor=o,r}return m(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return n.localize(0,null,this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return e===a.Mode.OPEN&&(r.TPromise.timeout(50).done(function(){n.editor.focus();try{var e=n.action.run()||r.TPromise.as(null);e.done(null,i.onUnexpectedError)}catch(e){i.onUnexpectedError(e)}},i.onUnexpectedError),!0)},t}(s.QuickOpenEntryGroup);t.EditorActionCommandEntry=p;var f=function(e){function t(){return e.call(this,n.localize(1,null),{id:"editor.action.quickCommand",label:n.localize(2,null),alias:"Command Palette",precondition:null,kbOpts:{kbExpr:l.EditorContextKeys.Focus,primary:h.isIE?571:59},menuOpts:{}})||this}return m(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(u.IKeybindingService);this._show(this.getController(t),{getModel:function(e){return new s.QuickOpenModel(n._editorActionsToEntries(i,t,e))},getAutoFocus:function(e){return{autoFocusFirstEntry:!0,autoFocusPrefixMatch:e}}})},t.prototype._sort=function(e,t){var n=e.getLabel().toLowerCase(),i=t.getLabel().toLowerCase();return n.localeCompare(i)},t.prototype._editorActionsToEntries=function(e,t,n){for(var i=t.getSupportedActions(),r=[],s=0;s0?u.join(", "):"",l,a,t))}}return r=r.sort(this._sort)},t}(c.BaseEditorQuickOpenAction);f=y([d.editorAction],f),t.QuickCommandAction=f}),define(d[482],h([0,1,10,27,6,3,13,16,44,17]),function(e,t,n,i,o,r,s,a,u,l){"use strict";function c(e){var t=[],i=a.DocumentSymbolProviderRegistry.all(e).map(function(i){return l.asWinJsPromise(function(t){return i.provideDocumentSymbols(e,t)}).then(function(e){Array.isArray(e)&&t.push.apply(t,e)},function(e){n.onUnexpectedExternalError(e)})});return o.TPromise.join(i).then(function(){var e=[];return h(e,t,""),e.sort(d),{entries:e}})}function d(e,t){return r.Range.compareRangesUsingStarts(r.Range.lift(e.location.range),r.Range.lift(t.location.range))}function h(e,t,n){for(var i=0,o=t;i0&&0===r.indexOf(h)){for(var v=null,_=null,y=0,c=0;c0)):y++}_&&_.setGroupLabel(this.typeToLabel(v,y))}else a.length>0&&a[0].setGroupLabel(n.localize(3,null,a.length));return a},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return n.localize(4,null,t);case"class":return n.localize(5,null,t);case"interface":return n.localize(6,null,t);case"method":return n.localize(7,null,t);case"function":return n.localize(8,null,t);case"property":return n.localize(9,null,t);case"variable":return n.localize(10,null,t);case"var":return n.localize(11,null,t);case"constructor":return n.localize(12,null,t);case"call":return n.localize(13,null,t)}return e},t.prototype.sortNormal=function(e,t,n){var i=t.getLabel().toLowerCase(),o=n.getLabel().toLowerCase(),r=i.localeCompare(o);if(0!==r)return r;var s=t.getRange(),a=n.getRange();return s.startLineNumber-a.startLineNumber},t.prototype.sortScoped=function(e,t,n){e=e.substr(h.length);var i=t.getType(),o=n.getType(),r=i.localeCompare(o);if(0!==r)return r;if(e){var s=t.getLabel().toLowerCase(),a=n.getLabel().toLowerCase(),u=s.localeCompare(a);if(0!==u)return u}var l=t.getRange(),c=n.getRange();return l.startLineNumber-c.startLineNumber},t}(l.BaseEditorQuickOpenAction);f=y([d.editorAction],f),t.QuickOutlineAction=f}),define(d[484],h([0,1,10,6,13,16,17]),function(e,t,n,i,o,r,s){"use strict";function a(e,t){var o=r.ReferenceProviderRegistry.ordered(e).map(function(i){return s.asWinJsPromise(function(n){return i.provideReferences(e,t,{includeDeclaration:!0},n)}).then(function(e){if(Array.isArray(e))return e},function(e){n.onUnexpectedExternalError(e)})});return i.TPromise.join(o).then(function(e){for(var t=[],n=0,i=e;n0?{edits:void 0,rejectReason:l.join("\n")}:t?t:{edits:void 0,rejectReason:n.localize(0,null)}})}t.rename=u,s.CommonEditorRegistry.registerDefaultLanguageCommand("_executeDocumentRenameProvider",function(e,t,n){var i=n.newName;if("string"!=typeof i)throw o.illegalArgument("newName");return u(e,t,i)})}),define(d[486],h([0,1,312,10,30,6,408,19,52,159,13,29,2,281,485,314,68,14]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_){"use strict";var b=new a.RawContextKey("renameInputVisible",!1),w=L=function(){function e(e,t,n,i,o,r){this.editor=e,this._messageService=t,this._textModelResolverService=n, -this._progressService=i,this._fileService=r,this._renameInputField=new g.default(e),this._renameInputVisible=b.bindTo(o)}return e.get=function(e){return e.getContribution(L.ID)},e.prototype.dispose=function(){this._renameInputField.dispose()},e.prototype.getId=function(){return L.ID},e.prototype.run=function(){var e=this,t=this.editor.getSelection(),s=this.editor.getModel().getWordAtPosition(t.getStartPosition());if(s){var a,u=t.startLineNumber,l=0,c=s.word.length;return a={startLineNumber:u,startColumn:s.startColumn,endLineNumber:u,endColumn:s.endColumn},t.isEmpty()||t.startLineNumber!==t.endLineNumber||(l=Math.max(0,t.startColumn-s.startColumn),c=Math.min(s.endColumn,t.endColumn)-s.startColumn),this._renameInputVisible.set(!0),this._renameInputField.getInput(a,s.word,l,c).then(function(t){e._renameInputVisible.reset(),e.editor.focus();var i=e._prepareRename(t).then(function(t){return t.finish().then(function(t){t&&e.editor.setSelection(t)})},function(t){return"string"!=typeof t?(e._messageService.show(o.default.Error,n.localize(0,null)),r.TPromise.wrapError(t)):void e._messageService.show(o.default.Info,t)});return e._progressService.showWhile(i,250),i},function(t){if(e._renameInputVisible.reset(),e.editor.focus(),!i.isPromiseCanceledError(t))return r.TPromise.wrapError(t)})}},e.prototype.acceptRenameInput=function(){this._renameInputField.acceptInput()},e.prototype.cancelRenameInput=function(){this._renameInputField.cancelInput()},e.prototype._prepareRename=function(e){var t=p.createBulkEdit(this._textModelResolverService,this.editor,this._fileService);return f.rename(this.editor.getModel(),this.editor.getPosition(),e).then(function(e){return e.rejectReason?r.TPromise.wrapError(e.rejectReason):(t.add(e.edits),t)})},e}();w.ID="editor.contrib.renameController",w=L=y([d.editorContribution,C(1,u.IMessageService),C(2,v.ITextModelResolverService),C(3,l.IProgressService),C(4,a.IContextKeyService),C(5,_.optional(s.IFileService))],w);var S=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:n.localize(1,null),alias:"Rename Symbol",precondition:a.ContextKeyExpr.and(h.EditorContextKeys.Writable,h.ModeContextKeys.hasRenameProvider),kbOpts:{kbExpr:h.EditorContextKeys.TextFocus,primary:60},menuOpts:{group:"1_modification",order:1.1}})||this}return m(t,e),t.prototype.run=function(e,t){var n=w.get(t);if(n)return n.run()},t}(c.EditorAction);S=y([c.editorAction],S),t.RenameAction=S;var E=c.EditorCommand.bindToContribution(w.get);c.CommonEditorRegistry.registerEditorCommand(new E({id:"acceptRenameInput",precondition:b,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:c.CommonEditorRegistry.commandWeight(99),kbExpr:h.EditorContextKeys.Focus,primary:3}})),c.CommonEditorRegistry.registerEditorCommand(new E({id:"cancelRenameInput",precondition:b,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:c.CommonEditorRegistry.commandWeight(99),kbExpr:h.EditorContextKeys.Focus,primary:9,secondary:[1033]}}));var L}),define(d[487],h([0,1,316,26,6,14,3,2,13,334]),function(e,t,n,i,o,r,s,a,u,l){"use strict";var c=function(){function e(e){this.editor=e,this.next=null,this.previous=null,this.selection=e.getSelection()}return e}(),d=null,h=!1,p=_=function(){function e(e,t){this.editor=e,this._tokenSelectionSupport=t.createInstance(l.TokenSelectionSupport)}return e.get=function(e){return e.getContribution(_.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return _.ID},e.prototype.run=function(e){var t=this,n=this.editor.getSelection(),r=this.editor.getModel();d&&d.editor!==this.editor&&(d=null);var a=o.TPromise.as(null);return d||(a=this._tokenSelectionSupport.getRangesToPosition(r.uri,n.getStartPosition()).then(function(e){if(!i.isFalsyOrEmpty(e)){var n;e.filter(function(e){var n=t.editor.getSelection(),i=new s.Range(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);return i.containsPosition(n.getStartPosition())&&i.containsPosition(n.getEndPosition())}).forEach(function(e){var i=e.range,o=new c(t.editor);o.selection=new s.Range(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn),n&&(o.next=n,n.previous=o),n=o});var o=new c(t.editor);o.next=n,n&&(n.previous=o),d=o;var r=t.editor.onDidChangeCursorPosition(function(e){h||(d=null,r.dispose())})}})),a.then(function(){if(d&&(d=e?d.next:d.previous)){h=!0;try{t.editor.setSelection(d.selection)}finally{h=!1}}})},e}();p.ID="editor.contrib.smartSelectController",p=_=y([u.commonEditorContribution,C(1,r.IInstantiationService)],p);var f=function(e){function t(t,n){var i=e.call(this,n)||this;return i._forward=t,i}return m(t,e),t.prototype.run=function(e,t){var n=p.get(t);if(n)return n.run(this._forward)},t}(u.EditorAction),g=function(e){function t(){return e.call(this,!0,{id:"editor.action.smartSelect.grow",label:n.localize(0,null),alias:"Expand Select",precondition:null,kbOpts:{kbExpr:a.EditorContextKeys.TextFocus,primary:1553,mac:{primary:3345}}})||this}return m(t,e),t}(f);g=y([u.editorAction],g);var v=function(e){function t(){return e.call(this,!1,{id:"editor.action.smartSelect.shrink",label:n.localize(1,null),alias:"Shrink Select",precondition:null,kbOpts:{kbExpr:a.EditorContextKeys.TextFocus,primary:1551,mac:{primary:3343}}})||this}return m(t,e),t}(f);v=y([u.editorAction],v);var _}),define(d[166],h([0,1,9,26,19,46,3,20,2,13,4,93,241]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=u.EditorContextKeys,f=function(){function e(e,t,n,i,o){this.editor=e,this._onStop=o,this.model=e.getModel(),this.finishPlaceHolderIndex=t.finishPlaceHolderIndex,this.trackedPlaceHolders=[],this.placeHolderDecorations=[],this.currentPlaceHolderIndex=0,this.highlightDecorationId=null,this.isFinished=!1,this._initialAlternativeVersionId=i,this.initialize(t,n)}return e.prototype.dispose=function(){this.stopAll()},e.prototype.initialize=function(e,t){for(var n=this,o=[],r=0,a=e.placeHolders;r0&&o[f-1].endLineNumber===h.startLineNumber&&o[f-1].endColumn===h.startColumn&&(p=u.TrackedRangeStickiness.GrowsOnlyWhenTypingAfter)}l.push(t.addDecoration(h,{stickiness:p}))}n.trackedPlaceHolders.push({ranges:l})}}),this.editor.changeDecorations(function(i){var o=[],r=t+e.lines.length-1,a=n.model.getLineMaxColumn(r);o.push({range:new s.Range(t,1,r,a),options:{className:"new-snippet",isWholeLine:!0}});for(var u=0,l=n.trackedPlaceHolders.length;ui.endLineNumber)&&n.stopAll()}else if(e.changeType===u.EventType.ModelRawContentChangedLinesInserted){var o=e.fromLineNumber,i=n.model.getDecorationRange(n.highlightDecorationId);(oi.endLineNumber)&&n.stopAll()}else if(e.changeType===u.EventType.ModelRawContentChangedLinesDeleted){var r=e.fromLineNumber,s=e.toLineNumber,i=n.model.getDecorationRange(n.highlightDecorationId),a=si.endLineNumber;(a||l)&&n.stopAll()}var c=n.editor.getModel().getAlternativeVersionId();n._initialAlternativeVersionId===c&&n.stopAll()}})),this.listenersToRemove.push(this.editor.onDidChangeCursorPosition(function(e){if(!n.isFinished){var t=n.model.getDecorationRange(n.highlightDecorationId),i=e.position.lineNumber;(it.endLineNumber)&&n.stopAll()}})),this.listenersToRemove.push(this.editor.onDidChangeModel(function(){n.stopAll()}));var p=-1;this.listenersToRemove.push(this.editor.onDidBlurEditor(function(){p=setTimeout(function(){n.stopAll()},100)})),this.listenersToRemove.push(this.editor.onDidFocusEditor(function(){p!==-1&&(clearTimeout(p),p=-1)})),this.listenersToRemove.push(this.model.onDidChangeDecorations(function(e){if(!n.isFinished){for(var t=n.model.getEditableRange(),i=null,o=!0,r=!0,s=0;(o||r)&&s0&&(r=t.getLineContent(n.startLineNumber).substring(n.startColumn-1-i,n.startColumn-1));var s="";return o>0&&(s=t.getLineContent(n.endLineNumber).substring(n.endColumn-1,n.endColumn-1+o)),new e(t,r,s,i,o)},e.prototype.next=function(t){var n=e.create(this._model,t,this.overwriteBefore,this.overwriteAfter),i=n.overwriteBefore,o=n.overwriteAfter;return n._contentBefore!==this._contentBefore&&(i=0),n._contentAfter!==this._contentAfter&&(o=0),new e(this._model,null,null,i,o)},e}(),m=_=function(){function e(e,n){this._editor=e,this._variableResolver=new h.SnippetVariablesResolver(e),this._currentController=null,this._inSnippetMode=t.CONTEXT_SNIPPET_MODE.bindTo(n)}return e.get=function(e){return e.getContribution(_.ID)},e.prototype.dispose=function(){this._currentController&&(this._currentController.dispose(),this._currentController=null)},e.prototype.getId=function(){return _.ID},e.prototype.insertSnippet=function(e,t,n){var i=d.CodeSnippet.fromTextmate(e,this._variableResolver);this.run(i,t,n)},e.prototype.run=function(e,t,n,i){var o=this;this._runAndRestoreController(function(){if(e.isInsertOnly||e.isSingleTabstopOnly)o._runForAllSelections(e,t,n,i);else{var r=_._prepareSnippet(o._editor,o._editor.getSelection(),e,t,n,i);o._runPreparedSnippetForPrimarySelection(r,!0)}})},e.prototype.runWithReplaceRange=function(e,t){var n=this;this._runAndRestoreController(function(){n._runPreparedSnippetForPrimarySelection({typeRange:t,adaptedSnippet:_._getAdaptedSnippet(n._editor.getModel(),e,t)},!1)})},e.prototype._runAndRestoreController=function(e){var t=this._currentController;this._currentController=null,e(),this._currentController?t&&t.dispose():this._currentController=t},e._addCommandForSnippet=function(e,t,n,i){var o=t.lines.join("\n"),s=e.getValueInRange(n,u.EndOfLinePreference.LF);o!==s&&i.push(r.EditOperation.replaceMove(n,o))},e.prototype._runPreparedSnippetForPrimarySelection=function(e,t){var n=this,i=this._editor.getModel().getAlternativeVersionId(),o=[];_._addCommandForSnippet(this._editor.getModel(),e.adaptedSnippet,e.typeRange,o),o.length>0&&(t&&this._editor.pushUndoStop(),this._editor.executeEdits("editor.contrib.insertSnippetHelper",o),t&&this._editor.pushUndoStop());var r=_._getSnippetCursorOnly(e.adaptedSnippet);r?this._editor.setSelection(new a.Selection(r.lineNumber,r.column,r.lineNumber,r.column)):e.adaptedSnippet.placeHolders.length>0&&(this._inSnippetMode.set(!0),this._currentController=new f(this._editor,e.adaptedSnippet,e.typeRange.startLineNumber,i,function(){n._inSnippetMode.reset(),n._currentController&&(n._currentController.dispose(),n._currentController=null)}))},e.prototype._runForAllSelections=function(e,t,n,i){for(var o=[],r=this._editor.getSelections(),u=this._editor.getModel(),l=g.create(u,r[0],t,n),c=0,d=[],h=r.map(function(e,t){return{selection:e,i:t}}).sort(function(e,t){return s.Range.compareRangesUsingStarts(e.selection,t.selection)}),p=0,f=h;p0&&s&&(u=u.setEndPosition(u.endLineNumber,u.endColumn+d))}var h=_._getAdaptedSnippet(a,i,u);return{typeRange:u,adaptedSnippet:h}},e._getTypeRangeForSelection=function(e,t,n,i){var o;return o=n||i?e.validateRange(s.Range.plusRange(t,{startLineNumber:t.positionLineNumber,startColumn:t.positionColumn-n,endLineNumber:t.positionLineNumber,endColumn:t.positionColumn+i})):t},e._getAdaptedSnippet=function(e,t,n){return t.bind(e.getLineContent(n.startLineNumber),n.startLineNumber-1,n.startColumn-1,e)},e._getSnippetCursorOnly=function(e){if(1!==e.placeHolders.length)return null;var t=e.placeHolders[0];if(""!==t.value||1!==t.occurences.length)return null;var n=t.occurences[0];return s.Range.isEmpty(n)?{lineNumber:n.startLineNumber,column:n.startColumn}:null},e.prototype.jumpToNextPlaceholder=function(){this._currentController&&this._currentController.onNextPlaceHolder()},e.prototype.jumpToPrevPlaceholder=function(){this._currentController&&this._currentController.onPrevPlaceHolder()},e.prototype.acceptSnippet=function(){this._currentController&&this._currentController.onAccept()},e.prototype.leaveSnippet=function(){this._currentController&&this._currentController.onEscape()},e}();m.ID="editor.contrib.snippetController",m=_=y([l.commonEditorContribution,C(1,o.IContextKeyService)],m),t.SnippetController=m,t.CONTEXT_SNIPPET_MODE=new o.RawContextKey("inSnippetMode",!1);var v=l.EditorCommand.bindToContribution(m.get);l.CommonEditorRegistry.registerEditorCommand(new v({id:"jumpToNextSnippetPlaceholder",precondition:t.CONTEXT_SNIPPET_MODE,handler:function(e){return e.jumpToNextPlaceholder()},kbOpts:{weight:l.CommonEditorRegistry.commandWeight(30),kbExpr:p.TextFocus,primary:2}})),l.CommonEditorRegistry.registerEditorCommand(new v({id:"jumpToPrevSnippetPlaceholder",precondition:t.CONTEXT_SNIPPET_MODE,handler:function(e){return e.jumpToPrevPlaceholder()},kbOpts:{weight:l.CommonEditorRegistry.commandWeight(30),kbExpr:p.TextFocus,primary:1026}})),l.CommonEditorRegistry.registerEditorCommand(new v({id:"acceptSnippet",precondition:t.CONTEXT_SNIPPET_MODE,handler:function(e){return e.acceptSnippet()},kbOpts:{weight:l.CommonEditorRegistry.commandWeight(30),kbExpr:p.TextFocus,primary:3}})),l.CommonEditorRegistry.registerEditorCommand(new v({id:"leaveSnippet",precondition:t.CONTEXT_SNIPPET_MODE,handler:function(e){return e.leaveSnippet()},kbOpts:{weight:l.CommonEditorRegistry.commandWeight(30),kbExpr:p.TextFocus,primary:9,secondary:[1033]}}));var _}),define(d[489],h([0,1,19,70,150,33,9,2,13,166]),function(e,t,n,i,o,r,s,a,u,l){"use strict";var c=a.EditorContextKeys,d=r.Registry.as(o.Extensions.Snippets),h=f=function(){function e(e,t){var n=this;this._currentSnippets=[],this._snippetController=l.SnippetController.get(e);var i=f.ContextKey.bindTo(t);this._cursorChangeSubscription=e.onDidChangeCursorSelection(function(t){n._currentSnippets.length=0;var r;if(t.selection.isEmpty()){var a=o.getNonWhitespacePrefix(e.getModel(),e.getPosition());r=a&&function(e){return s.endsWith(a,e.prefix)}}else{var u=e.getModel().getValueInRange(t.selection);r=function(e){return u===e.prefix}}r&&d.visitSnippets(e.getModel().getLanguageIdentifier().id,function(e){return r(e)&&n._currentSnippets.push(e),!0}),i.set(1===n._currentSnippets.length)})}return e.get=function(e){return e.getContribution(f.ID)},e.prototype.dispose=function(){this._cursorChangeSubscription.dispose()},e.prototype.performSnippetCompletions=function(){if(1===this._currentSnippets.length){var e=this._currentSnippets[0];this._snippetController.insertSnippet(e.codeSnippet,e.prefix.length,0)}},e.prototype.getId=function(){return f.ID},e}();h.ID="editor.tabCompletionController",h.ContextKey=new n.RawContextKey("hasSnippetCompletions",void 0),h=f=y([u.commonEditorContribution,C(1,n.IContextKeyService)],h),t.TabCompletionController=h;var p=u.EditorCommand.bindToContribution(h.get);u.CommonEditorRegistry.registerEditorCommand(new p({id:"insertSnippet",precondition:h.ContextKey,handler:function(e){return e.performSnippetCompletions()},kbOpts:{weight:i.KeybindingsRegistry.WEIGHT.editorContrib(),kbExpr:n.ContextKeyExpr.and(c.TextFocus,c.TabDoesNotMoveFocus,l.CONTEXT_SNIPPET_MODE.toNegated(),n.ContextKeyExpr.has("config.editor.tabCompletion")),primary:2}}));var f}),define(d[122],h([0,1,17,26,9,35,10,6,13,16,150,33,19,42]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";function f(e,o,r,u){void 0===r&&(r="bottom");var c=[],d=v(r);o=o.clone();var h=l.SuggestRegistry.orderedGroups(e);"none"!==r&&h.unshift([t.snippetSuggestSupport]);var p=!1,f=h.map(function(r){return function(){if(!p)return a.TPromise.join(r.map(function(r){if(i.isFalsyOrEmpty(u)||!(u.indexOf(r)<0))return n.asWinJsPromise(function(t){return r.provideCompletionItems(e,o,t)}).then(function(n){var s=c.length;if(n&&!i.isFalsyOrEmpty(n.suggestions))for(var a=0,u=n.suggestions;a=0}var S=!1,E=/^(#([\da-f]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))$/i,L=function(){function e(e,t,n){this.widget=e,this.editor=t;var i=n.lookupKeybindings("editor.action.triggerSuggest");this.triggerKeybindingLabel=0===i.length?"":" ("+n.getLabelFor(i[0])+")"}return Object.defineProperty(e.prototype,"templateId",{get:function(){return"suggestion"},enumerable:!0,configurable:!0}),e.prototype.renderTemplate=function(e){var t=this,i=Object.create(null);i.disposables=[],i.root=e,i.icon=u.append(e,u.$(".icon")),i.colorspan=u.append(i.icon,u.$("span.colorspan"));var r=u.append(e,u.$(".contents")),s=u.append(r,u.$(".main"));i.highlightedLabel=new l.HighlightedLabel(s),i.disposables.push(i.highlightedLabel),i.typeLabel=u.append(s,u.$("span.type-label"));var a=u.append(r,u.$(".docs"));i.documentation=u.append(a,u.$("span.docs-text")),i.documentationDetails=u.append(a,u.$("span.docs-details")),i.documentationDetails.title=n.localize(0,null,this.triggerKeybindingLabel);var c=function(){var e=t.editor.getConfiguration(),n=e.fontInfo.fontFamily,o=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,r=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,a=o+"px",u=r+"px";i.root.style.fontSize=a,s.style.fontFamily=n,s.style.lineHeight=u,i.icon.style.height=u,i.icon.style.width=u,i.documentationDetails.style.height=u,i.documentationDetails.style.width=u};return c(),o.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo||e.contribInfo}).on(c,null,i.disposables),i},e.prototype.renderElement=function(e,t,i){var o=this,r=i,s=e.suggestion;if(w(e)?r.root.setAttribute("aria-label",n.localize(1,null,s.label)):r.root.setAttribute("aria-label",n.localize(2,null,s.label)),r.icon.className="icon "+s.type,r.colorspan.style.backgroundColor="","color"===s.type){var a=b(s.label)||b(s.documentation);a&&(r.icon.className="icon customcolor",r.colorspan.style.backgroundColor=a)}r.highlightedLabel.set(s.label,e.highlights),r.typeLabel.textContent=(s.detail||"").replace(/\n.*$/m,""),r.documentation.textContent=s.documentation||"",w(e)?(u.show(r.documentationDetails),r.documentationDetails.onmousedown=function(e){e.stopPropagation(),e.preventDefault()},r.documentationDetails.onclick=function(e){e.stopPropagation(),e.preventDefault(),o.widget.toggleDetails()}):(u.hide(r.documentationDetails),r.documentationDetails.onmousedown=null,r.documentationDetails.onclick=null)},e.prototype.disposeTemplate=function(e){e.highlightedLabel.dispose(),e.disposables=a.dispose(e.disposables)},e}();L=y([C(2,p.IKeybindingService)],L);var N;!function(e){e[e.Hidden=0]="Hidden",e[e.Loading=1]="Loading",e[e.Empty=2]="Empty",e[e.Open=3]="Open",e[e.Frozen=4]="Frozen",e[e.Details=5]="Details"}(N||(N={}));var T=function(){function e(e,t,i){var r=this;this.widget=t,this.editor=i,this.disposables=[],this.el=u.append(e,u.$(".details")),this.disposables.push(a.toDisposable(function(){return e.removeChild(r.el)}));var s=u.append(this.el,u.$(".header"));this.title=u.append(s,u.$("span.title")),this.titleLabel=new l.HighlightedLabel(this.title),this.disposables.push(this.titleLabel),this.back=u.append(s,u.$("span.go-back")),this.back.title=n.localize(3,null),this.body=u.$(".body"),this.scrollbar=new d.DomScrollableElement(this.body,{canUseTranslate3d:!1}),u.append(this.el,this.scrollbar.getDomNode()),this.disposables.push(this.scrollbar),this.type=u.append(this.body,u.$("p.type")),this.docs=u.append(this.body,u.$("p.docs")),this.ariaLabel=null,this.configureFont(),o.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(e){return e.fontInfo}).on(this.configureFont,this,this.disposables)}return Object.defineProperty(e.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),e.prototype.render=function(e){var t=this;return e?(this.titleLabel.set(e.suggestion.label,e.highlights),this.type.innerText=e.suggestion.detail||"",this.docs.textContent=e.suggestion.documentation,this.back.onmousedown=function(e){e.preventDefault(),e.stopPropagation()},this.back.onclick=function(e){e.preventDefault(),e.stopPropagation(),t.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode(),void(this.ariaLabel=i.format("{0}\n{1}\n{2}",e.suggestion.label||"",e.suggestion.detail||"",e.suggestion.documentation||""))):(this.titleLabel.set(""),this.type.textContent="",this.docs.textContent="",void(this.ariaLabel=null))},e.prototype.getAriaLabel=function(){return this.ariaLabel},e.prototype.scrollDown=function(e){void 0===e&&(e=8),this.body.scrollTop+=e},e.prototype.scrollUp=function(e){void 0===e&&(e=8),this.body.scrollTop-=e},e.prototype.pageDown=function(){this.scrollDown(80)},e.prototype.pageUp=function(){this.scrollUp(80)},e.prototype.configureFont=function(){var e=this.editor.getConfiguration(),t=e.fontInfo.fontFamily,n=e.contribInfo.suggestFontSize||e.fontInfo.fontSize,i=e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight,o=n+"px",r=i+"px";this.el.style.fontSize=o,this.title.style.fontFamily=t,this.type.style.fontFamily=t,this.back.style.height=r,this.back.style.width=r},e.prototype.dispose=function(){this.disposables=a.dispose(this.disposables)},e}(),x=function(){function e(e,t,n,i){var r=this;this.editor=e,this.telemetryService=t,this.allowEditorOverflow=!0,this.onDidSelectEmitter=new o.Emitter,this.onDidFocusEmitter=new o.Emitter,this.onDidHideEmitter=new o.Emitter,this.onDidShowEmitter=new o.Emitter,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.isAuto=!1,this.focusedItem=null,this.element=u.$(".editor-widget.suggest-widget"),this.editor.getConfiguration().contribInfo.iconsInSuggestions||u.addClass(this.element,"no-icons"),this.messageElement=u.append(this.element,u.$(".message")),this.listElement=u.append(this.element,u.$(".tree")),this.details=new T(this.element,this,this.editor);var s=i.createInstance(L,this,this.editor);this.list=new c.List(this.listElement,this,[s],{useShadows:!1}),this.toDispose=[e.onDidBlurEditorText(function(){return r.onEditorBlur()}),this.list.onSelectionChange(function(e){return r.onListSelection(e)}),this.list.onFocusChange(function(e){return r.onListFocus(e)}),this.editor.onDidChangeCursorSelection(function(){return r.onCursorSelectionChanged()})],this.suggestWidgetVisible=m.Context.Visible.bindTo(n),this.suggestWidgetMultipleSuggestions=m.Context.MultipleSuggestions.bindTo(n),this.suggestionSupportsAutoAccept=m.Context.AcceptOnKey.bindTo(n),this.editor.addContentWidget(this),this.setState(0)}return e.prototype.onCursorSelectionChanged=function(){0!==this.state&&this.editor.layoutContentWidget(this)},e.prototype.onEditorBlur=function(){var e=this;S||(this.editorBlurTimeout=r.TPromise.timeout(150).then(function(){e.editor.isFocused()||e.setState(0)}))},e.prototype.onListSelection=function(e){if(e.elements.length){var t=e.elements[0];this.onDidSelectEmitter.fire(t),v.alert(n.localize(6,null,t.suggestion.label)),this.editor.focus()}},e.prototype._getSuggestionAriaAlertLabel=function(e){return w(e)?n.localize(7,null,e.suggestion.label):n.localize(8,null,e.suggestion.label)},e.prototype._ariaAlert=function(e){this._lastAriaAlertLabel!==e&&(this._lastAriaAlertLabel=e,this._lastAriaAlertLabel&&v.alert(this._lastAriaAlertLabel))},e.prototype.onListFocus=function(e){var t=this;if(!e.elements.length)return this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),void this._ariaAlert(null);var n=e.elements[0];if(this._ariaAlert(this._getSuggestionAriaAlertLabel(n)),n!==this.focusedItem){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null);var i=e.indexes[0];this.suggestionSupportsAutoAccept.set(!n.suggestion.noAutoAccept),this.focusedItem=n,this.updateWidgetHeight(),this.list.reveal(i),this.currentSuggestionDetails=n.resolve().then(function(){t.list.setFocus([i]),t.updateWidgetHeight(),t.list.reveal(i),t._ariaAlert(t._getSuggestionAriaAlertLabel(n))}).then(null,function(e){return!s.isPromiseCanceledError(e)&&s.onUnexpectedError(e)}).then(function(){return t.currentSuggestionDetails=null}),this.onDidFocusEmitter.fire(n)}},e.prototype.setState=function(t){if(this.element){ -var n=this.state!==t;switch(this.state=t,u.toggleClass(this.element,"frozen",4===t),t){case 0:u.hide(this.messageElement,this.details.element),u.show(this.listElement),this.hide(),n&&this.list.splice(0,this.list.length);break;case 1:this.messageElement.textContent=e.LOADING_MESSAGE,u.hide(this.listElement,this.details.element),u.show(this.messageElement),this.show();break;case 2:this.messageElement.textContent=e.NO_SUGGESTIONS_MESSAGE,u.hide(this.listElement,this.details.element),u.show(this.messageElement),this.show();break;case 3:u.hide(this.messageElement,this.details.element),u.show(this.listElement),this.show();break;case 4:u.hide(this.messageElement,this.details.element),u.show(this.listElement),this.show();break;case 5:u.hide(this.messageElement,this.listElement),u.show(this.details.element),this.show(),this._ariaAlert(this.details.getAriaLabel())}n&&this.editor.layoutContentWidget(this)}},e.prototype.showTriggered=function(e){var t=this;0===this.state&&(this.isAuto=!!e,this.isAuto||(this.loadingTimeout=setTimeout(function(){t.loadingTimeout=null,t.setState(1)},50)))},e.prototype.showSuggestions=function(e,t,n){if(this.loadingTimeout&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=null),this.completionModel=e,t&&2!==this.state)return void this.setState(4);var i=this.completionModel.items.length,o=0===i;if(this.suggestWidgetMultipleSuggestions.set(i>1),o)n?this.setState(0):this.setState(2),this.completionModel=null;else{var r=this.completionModel.stats;r.wasAutomaticallyTriggered=!!n,this.telemetryService.publicLog("suggestWidget",r),this.list.splice(0,this.list.length,this.completionModel.items),this.list.setFocus([this.completionModel.topScoreIdx]),this.list.reveal(this.completionModel.topScoreIdx,0),this.setState(3)}},e.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},e.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 5:return this.list.focusNext(1,!0),this.renderDetails(),!0;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},e.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 5:return this.list.focusPrevious(1,!0),this.renderDetails(),!0;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state)return this.list.getFocusedElements()[0]},e.prototype.toggleDetails=function(){if(5===this.state)return this.setState(3),void this.editor.focus();if(3===this.state){var e=this.list.getFocusedElements()[0];e&&w(e)&&(this.setState(5),this.editor.focus(),this.telemetryService.publicLog("suggestWidget:toggleDetails"))}},e.prototype.show=function(){var e=this;this.updateWidgetHeight(),this.suggestWidgetVisible.set(!0),this.renderDetails(),this.showTimeout=r.TPromise.timeout(100).then(function(){u.addClass(e.element,"visible"),e.onDidShowEmitter.fire(e)})},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),u.removeClass(this.element,"visible")},e.prototype.hideWidget=function(){clearTimeout(this.loadingTimeout),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.hideDetailsOrHideWidget=function(){5===this.state?this.toggleDetails():this.hideWidget()},e.prototype.getPosition=function(){return 0===this.state?null:{position:this.editor.getPosition(),preference:[g.ContentWidgetPositionPreference.BELOW,g.ContentWidgetPositionPreference.ABOVE]}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.updateWidgetHeight=function(){var e=0;if(2===this.state||1===this.state)e=this.unfocusedHeight;else if(5===this.state)e=12*this.unfocusedHeight;else{var t=this.list.getFocusedElements()[0],n=t?this.getHeight(t):this.unfocusedHeight;e=n;var i=(this.list.contentHeight-n)/this.unfocusedHeight;e+=Math.min(i,11)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.element.style.height=e+"px",this.list.layout(e),this.editor.layoutContentWidget(this),e},e.prototype.renderDetails=function(){5!==this.state?this.details.render(null):this.details.render(this.list.getFocusedElements()[0])},Object.defineProperty(e.prototype,"focusHeight",{get:function(){return 2*this.unfocusedHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"unfocusedHeight",{get:function(){var e=this.editor.getConfiguration();return e.contribInfo.suggestLineHeight||e.fontInfo.lineHeight},enumerable:!0,configurable:!0}),e.prototype.getHeight=function(e){var t=this.list.getFocusedElements()[0];return w(e)&&e===t?this.focusHeight:this.unfocusedHeight},e.prototype.getTemplateId=function(e){return"suggestion"},e.prototype.dispose=function(){this.state=null,this.suggestionSupportsAutoAccept=null,this.currentSuggestionDetails=null,this.focusedItem=null,this.element=null,this.messageElement=null,this.listElement=null,this.details.dispose(),this.details=null,this.list.dispose(),this.list=null,this.toDispose=a.dispose(this.toDispose),this.loadingTimeout&&(clearTimeout(this.loadingTimeout),this.loadingTimeout=null),this.editorBlurTimeout&&(this.editorBlurTimeout.cancel(),this.editorBlurTimeout=null),this.showTimeout&&(this.showTimeout.cancel(),this.showTimeout=null)},e}();x.ID="editor.widget.suggestWidget",x.LOADING_MESSAGE=n.localize(4,null),x.NO_SUGGESTIONS_MESSAGE=n.localize(5,null),x=y([C(1,_.ITelemetryService),C(2,f.IContextKeyService),C(3,h.IInstantiationService)],x),t.SuggestWidget=x}),define(d[492],h([0,1,10,26,17,12,4,6,2,16,15,122,242]),function(e,t,n,i,o,r,s,a,u,l,c,d,h){"use strict";var p=function(){function e(e,t,n){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.auto=n}return e.shouldAutoTrigger=function(e){var t=e.getModel();if(!t)return!1;var n=e.getPosition(),i=t.getWordAtPosition(n);return!!i&&(i.endColumn===n.column&&!!isNaN(Number(i.word)))},e.isInEditableRange=function(e){var t=e.getModel(),n=e.getPosition();if(t.hasEditableRange()){var i=t.getEditableRange();if(!i.containsPosition(n))return!1}return!0},e}();t.LineContext=p;var f;!function(e){e[e.Idle=0]="Idle",e[e.Manual=1]="Manual",e[e.Auto=2]="Auto"}(f||(f={}));var g=function(){function e(e){var t=this;this.editor=e,this.toDispose=[],this.triggerRefilter=new o.TimeoutTimer,this._onDidCancel=new r.Emitter,this._onDidTrigger=new r.Emitter,this._onDidSuggest=new r.Emitter,this.state=0,this.triggerAutoSuggestPromise=null,this.requestPromise=null,this.completionModel=null,this.context=null,this.currentPosition=e.getPosition()||new c.Position(1,1),this.toDispose.push(this.editor.onDidChangeModel(function(){t.updateTriggerCharacters(),t.cancel()})),this.toDispose.push(e.onDidChangeModelLanguage(function(){t.updateTriggerCharacters(),t.cancel()})),this.toDispose.push(this.editor.onDidChangeConfiguration(function(){t.updateTriggerCharacters(),t.updateQuickSuggest()})),this.toDispose.push(l.SuggestRegistry.onDidChange(function(){t.updateTriggerCharacters(),t.updateActiveSuggestSession()})),this.toDispose.push(this.editor.onDidChangeCursorSelection(function(e){t.onCursorChange(e)})),this.updateTriggerCharacters(),this.updateQuickSuggest()}return Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidTrigger",{get:function(){return this._onDidTrigger.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidSuggest",{get:function(){return this._onDidSuggest.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){s.dispose([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this.triggerCharacterListener,this.triggerRefilter]),this.toDispose=s.dispose(this.toDispose),this.cancel()},e.prototype.updateQuickSuggest=function(){this.quickSuggestDelay=this.editor.getConfiguration().contribInfo.quickSuggestionsDelay,(isNaN(this.quickSuggestDelay)||!this.quickSuggestDelay&&0!==this.quickSuggestDelay||this.quickSuggestDelay<0)&&(this.quickSuggestDelay=10)},e.prototype.updateTriggerCharacters=function(){var e=this;if(s.dispose(this.triggerCharacterListener),!this.editor.getConfiguration().readOnly&&this.editor.getModel()&&this.editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),n=0,o=l.SuggestRegistry.all(this.editor.getModel());nthis.context.column&&this.completionModel.incomplete){var t=this.completionModel.resolveIncompleteInfo(),n=t.complete,i=t.incomplete;this.trigger(2===this.state,!0,i,n)}else{var o=this.completionModel.lineContext,r=!1;if(this.completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this.context.column},0===this.completionModel.items.length){if(p.shouldAutoTrigger(this.editor)&&this.context.leadingWord.endColumn0)}this._onDidSuggest.fire({completionModel:this.completionModel,auto:this.context.auto,isFrozen:r})}}},e}();t.SuggestModel=g}),define(d[493],h([0,1,317,10,26,4,14,47,19,23,2,13,29,46,3,93,166,122,492,491]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,b,w){"use strict";var S=function(){function e(e,t,n){var i=this;this._disposables=[],this._activeAcceptCharacters=new Set,this._disposables.push(t.onDidShow(function(){return i._onItem(t.getFocusedItem())})),this._disposables.push(t.onDidFocus(this._onItem,this)),this._disposables.push(t.onDidHide(this.reset,this)),this._disposables.push(e.onWillType(function(t){if(i._activeItem){var o=t[t.length-1];i._activeAcceptCharacters.has(o)&&e.getConfiguration().contribInfo.acceptSuggestionOnCommitCharacter&&n(i._activeItem)}}))}return e.prototype._onItem=function(e){if(!e||o.isFalsyOrEmpty(e.suggestion.commitCharacters))return void this.reset();this._activeItem=e,this._activeAcceptCharacters.clear();for(var t=0,n=e.suggestion.commitCharacters;t0&&this._activeAcceptCharacters.add(i[0])}},e.prototype.reset=function(){this._activeItem=void 0},e.prototype.dispose=function(){r.dispose(this._disposables)},e}(),E=x=function(){function e(e,t,n,i,o){var r=this;this.editor=e,this.commandService=t,this.telemetryService=n,this.toDispose=[],this.model=new b.SuggestModel(this.editor),this.toDispose.push(this.model.onDidTrigger(function(e){return r.widget.showTriggered(e.auto)})),this.toDispose.push(this.model.onDidSuggest(function(e){return r.widget.showSuggestions(e.completionModel,e.isFrozen,e.auto)})),this.toDispose.push(this.model.onDidCancel(function(e){return!e.retrigger&&r.widget.hideWidget()}));var s=_.Context.AcceptSuggestionsOnEnter.bindTo(i),a=function(){s.set(r.editor.getConfiguration().contribInfo.acceptSuggestionOnEnter)};this.toDispose.push(this.editor.onDidChangeConfiguration(function(e){return a()})),a(),this.widget=o.createInstance(w.SuggestWidget,this.editor),this.toDispose.push(this.widget.onDidSelect(this.onDidSelectItem,this));var u=new S(e,this.widget,function(e){return r.onDidSelectItem(e)});this.toDispose.push(u,this.model.onDidSuggest(function(e){0===e.completionModel.items.length&&u.reset()}))}return e.get=function(e){return e.getContribution(x.ID)},e.prototype.getId=function(){return x.ID},e.prototype.dispose=function(){this.toDispose=r.dispose(this.toDispose),this.widget&&(this.widget.dispose(),this.widget=null),this.model&&(this.model.dispose(),this.model=null)},e.prototype.onDidSelectItem=function(e){if(e){var t=e.suggestion,n=e.position,o=this.editor.getPosition().column-n.column;Array.isArray(t.additionalTextEdits)&&(this.editor.pushUndoStop(),this.editor.executeEdits("suggestController.additionalTextEdits",t.additionalTextEdits.map(function(e){return p.EditOperation.replace(f.Range.lift(e.range),e.text)})),this.editor.pushUndoStop()),"textmate"===t.snippetType?v.SnippetController.get(this.editor).insertSnippet(t.insertText,t.overwriteBefore+o,t.overwriteAfter):v.SnippetController.get(this.editor).run(g.CodeSnippet.fromInternal(t.insertText),t.overwriteBefore+o,t.overwriteAfter),t.command&&(r=this.commandService).executeCommand.apply(r,[t.command.id].concat(t.command.arguments)).done(void 0,i.onUnexpectedError)}this.model.cancel();var r},e.prototype.triggerSuggest=function(){this.model.trigger(!1,!1),this.editor.revealLine(this.editor.getPosition().lineNumber),this.editor.focus()},e.prototype.acceptSelectedSuggestion=function(){if(this.widget){var e=this.widget.getFocusedItem();this.onDidSelectItem(e)}},e.prototype.cancelSuggestWidget=function(){this.widget&&(this.model.cancel(),this.widget.hideDetailsOrHideWidget())},e.prototype.selectNextSuggestion=function(){this.widget&&this.widget.selectNext()},e.prototype.selectNextPageSuggestion=function(){this.widget&&this.widget.selectNextPage()},e.prototype.selectPrevSuggestion=function(){this.widget&&this.widget.selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this.widget&&this.widget.selectPreviousPage()},e.prototype.toggleSuggestionDetails=function(){this.widget&&this.widget.toggleDetails()},e}();E.ID="editor.contrib.suggestController",E=x=y([h.editorContribution,C(1,l.ICommandService),C(2,a.ITelemetryService),C(3,u.IContextKeyService),C(4,s.IInstantiationService)],E),t.SuggestController=E;var L=function(e){function t(){return e.call(this,{id:"editor.action.triggerSuggest",label:n.localize(0,null),alias:"Trigger Suggest",precondition:u.ContextKeyExpr.and(c.EditorContextKeys.Writable,c.ModeContextKeys.hasCompletionItemProvider),kbOpts:{kbExpr:c.EditorContextKeys.TextFocus,primary:2058,mac:{primary:266}}})||this}return m(t,e),t.prototype.run=function(e,t){E.get(t).triggerSuggest()},t}(d.EditorAction);L=y([d.editorAction],L),t.TriggerSuggestAction=L;var N=d.CommonEditorRegistry.commandWeight(90),T=d.EditorCommand.bindToContribution(E.get);d.CommonEditorRegistry.registerEditorCommand(new T({id:"acceptSelectedSuggestion",precondition:_.Context.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:2}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"acceptSelectedSuggestionOnEnter",precondition:_.Context.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:N,kbExpr:u.ContextKeyExpr.and(c.EditorContextKeys.TextFocus,_.Context.AcceptSuggestionsOnEnter),primary:3}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"hideSuggestWidget",precondition:_.Context.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:9,secondary:[1033]}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"selectNextSuggestion",precondition:u.ContextKeyExpr.and(_.Context.Visible,_.Context.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"selectNextPageSuggestion",precondition:u.ContextKeyExpr.and(_.Context.Visible,_.Context.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:12,secondary:[524]}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"selectPrevSuggestion",precondition:u.ContextKeyExpr.and(_.Context.Visible,_.Context.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"selectPrevPageSuggestion",precondition:u.ContextKeyExpr.and(_.Context.Visible,_.Context.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:11,secondary:[523]}})),d.CommonEditorRegistry.registerEditorCommand(new T({id:"toggleSuggestionDetails",precondition:_.Context.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:N,kbExpr:c.EditorContextKeys.TextFocus,primary:2058,mac:{primary:266}}}));var x}),define(d[494],h([0,1,319,13,115]),function(e,t,n,i,o){"use strict";var r=s=function(e){function t(){return e.call(this,{id:s.ID,label:n.localize(0,null),alias:"Toggle Tab Key Moves Focus",precondition:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323}}})||this}return m(t,e),t.prototype.run=function(e,t){var n=o.TabFocus.getTabFocusMode();o.TabFocus.setTabFocusMode(!n)},t}(i.EditorAction);r.ID="editor.action.toggleTabFocusMode",r=s=y([i.editorAction],r),t.ToggleTabFocusModeAction=r;var s}),define(d[495],h([0,1,17,10,3,2,13,16,4]),function(e,t,n,i,o,r,s,a,u){"use strict";function l(e,t){var o=a.DocumentHighlightProviderRegistry.ordered(e),r=!1;return n.sequence(o.map(function(o){return function(){if(!r)return n.asWinJsPromise(function(n){return o.provideDocumentHighlights(e,t,n)}).then(function(e){if(Array.isArray(e)&&e.length>0)return r=!0,e},function(e){i.onUnexpectedExternalError(e)})}})).then(function(e){return e[0]})}t.getOccurrencesAtPosition=l,s.CommonEditorRegistry.registerDefaultLanguageCommand("_executeDocumentHighlights",l);var c=function(){function e(e){var t=this;this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.model=this.editor.getModel(),this.toUnhook=[],this.toUnhook.push(e.onDidChangeCursorPosition(function(e){t._onPositionChanged(e)})),this.toUnhook.push(e.onDidChangeModel(function(e){t._stopAll(),t.model=t.editor.getModel()})),this.toUnhook.push(e.onDidChangeModelContent(function(e){t._stopAll()})),this._lastWordRange=null,this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]))},e.prototype._stopAll=function(){this._lastWordRange=null,this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),null!==this.workerRequest&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},e.prototype._onPositionChanged=function(e){var t=this;if(e.reason!==r.CursorChangeReason.Explicit)return void this._stopAll();if(!a.DocumentHighlightProviderRegistry.has(this.model))return void this._stopAll();var n=this.editor.getSelection();if(n.startLineNumber!==n.endLineNumber)return void this._stopAll();var i=n.startLineNumber,s=n.startColumn,u=n.endColumn,c=this.model.getWordAtPosition({lineNumber:i,column:s});if(!c||c.startColumn>s||c.endColumn=u&&(h=!0)}if(this.lastCursorPositionChangeTime=(new Date).getTime(),h)this.workerRequestCompleted&&this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var m=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=l(this.model,this.editor.getPosition()),this.workerRequest.then(function(e){m===t.workerRequestTokenId&&(t.workerRequestCompleted=!0,t.workerRequestValue=e||[],t._beginRenderDecorations())}).done()}this._lastWordRange=d},e.prototype._beginRenderDecorations=function(){var e=this,t=(new Date).getTime(),n=this.lastCursorPositionChangeTime+250;t>=n?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){e.renderDecorations()},n-t)},e.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var e=[],t=0,n=this.workerRequestValue.length;t0&&(this._zonesFromDecorations.length>0||this._zonesFromCursors.length>0)){var i=this._overviewRuler.getDomNode().getContext("2d");i.beginPath(),i.lineWidth=1,i.strokeStyle="rgba(197,197,197,0.8)",i.moveTo(0,0),i.lineTo(0,this._overviewRuler.getPixelHeight()),i.stroke(),i.moveTo(0,0),i.lineTo(this._overviewRuler.getPixelWidth(),0),i.stroke()}},t}(o.ViewPart);s.MIN_DECORATION_HEIGHT=6,s.MAX_DECORATION_HEIGHT=60,s._CURSOR_COLOR="rgba(0, 0, 102, 0.8)",s._CURSOR_COLOR_DARK="rgba(152, 152, 152, 0.8)",t.DecorationsOverviewRuler=s}),define(d[499],h([0,1,10,4,24,11,28,3,2,51,434,377,21,342,443,435,381,382,383,384,385,101,388,387,436,390,389,391,392,498,393,394,395,396,438,397,32,205,85,379]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,y,C,b,w,S,E,L,N,T,x,M,I,D,R,k,O,P,A,W,F,V,H){"use strict";function B(e){try{return e()}catch(e){n.onUnexpectedError(e)}}function U(e,t){try{return e(t)}catch(e){n.onUnexpectedError(e)}}var z=function(e){function t(t,n,i,o){var r=e.call(this)||this;r.triggerCursorHandler=o,r._isDisposed=!1,r._renderAnimationFrame=null,r.outgoingEvents=new H.ViewOutgoingEvents(i);var s=new p.ViewController(i,o,r.outgoingEvents,t);return r.listenersToRemove=[],r.listenersToDispose=[],r.eventDispatcher=new f.ViewEventDispatcher(function(e){return r._renderOnce(e)}),r.linesContent=document.createElement("div"),r.linesContent.className=h.ClassNames.LINES_CONTENT+" monaco-editor-background",r.linesContent.style.position="absolute",r.domNode=document.createElement("div"),r.domNode.className=n.editor.viewInfo.editorClassName,r.overflowGuardContainer=document.createElement("div"),W.PartFingerprints.write(r.overflowGuardContainer,3),r.overflowGuardContainer.className=h.ClassNames.OVERFLOW_GUARD,r.layoutProvider=new v.LayoutProvider(n,i,r.eventDispatcher,r.linesContent,r.domNode,r.overflowGuardContainer),r.eventDispatcher.addEventHandler(r.layoutProvider),r._context=new F.ViewContext(n,i,r.eventDispatcher,function(e){return r.eventDispatcher.addEventHandler(e)},function(e){return r.eventDispatcher.removeEventHandler(e)}),r.createTextArea(),r.createViewParts(),r.keyboardHandler=new c.KeyboardHandler(r._context,s,r.createKeyboardHandlerHelper()),r.pointerHandler=new d.PointerHandler(r._context,s,r.createPointerHandlerHelper()),r.hasFocus=!1,r.codeEditorHelper=null,r.eventDispatcher.addEventHandler(r),r.handleAccumulatedModelEventsTimeout=-1,r.accumulatedModelEvents=[],r.listenersToRemove.push(i.addBulkListener2(function(e){r.accumulatedModelEvents=r.accumulatedModelEvents.concat(e),r.handleAccumulatedModelEventsTimeout===-1&&(r.handleAccumulatedModelEventsTimeout=setTimeout(function(){r.handleAccumulatedModelEventsTimeout=-1,r._flushAnyAccumulatedEvents()}))})),r}return m(t,e),t.prototype._flushAnyAccumulatedEvents=function(){var e=this.accumulatedModelEvents;this.accumulatedModelEvents=[],e.length>0&&this.eventDispatcher.emitMany(e)},t.prototype.createTextArea=function(){var e=this;this.textArea=document.createElement("textarea"),W.PartFingerprints.write(this.textArea,6),this.textArea.className=h.ClassNames.TEXTAREA,this.textArea.setAttribute("wrap","off"),this.textArea.setAttribute("autocorrect","off"),this.textArea.setAttribute("autocapitalize","off"),this.textArea.setAttribute("spellcheck","false"),this.textArea.setAttribute("aria-label",this._context.configuration.editor.viewInfo.ariaLabel), -this.textArea.setAttribute("role","textbox"),this.textArea.setAttribute("aria-multiline","true"),this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),s.StyleMutator.setTop(this.textArea,0),s.StyleMutator.setLeft(this.textArea,0),this.listenersToDispose.push(r.addDisposableListener(this.textArea,"focus",function(){return e._setHasFocus(!0)})),this.listenersToDispose.push(r.addDisposableListener(this.textArea,"blur",function(){return e._setHasFocus(!1)})),this.textAreaCover=document.createElement("div"),this._context.configuration.editor.viewInfo.glyphMargin?this.textAreaCover.className="monaco-editor-background "+h.ClassNames.GLYPH_MARGIN+" "+h.ClassNames.TEXTAREA_COVER:this._context.configuration.editor.viewInfo.renderLineNumbers?this.textAreaCover.className="monaco-editor-background "+h.ClassNames.LINE_NUMBERS+" "+h.ClassNames.TEXTAREA_COVER:this.textAreaCover.className="monaco-editor-background "+h.ClassNames.TEXTAREA_COVER,this.textAreaCover.style.position="absolute",s.StyleMutator.setWidth(this.textAreaCover,1),s.StyleMutator.setHeight(this.textAreaCover,1),s.StyleMutator.setTop(this.textAreaCover,0),s.StyleMutator.setLeft(this.textAreaCover,0)},t.prototype.createViewParts=function(){var e=this;this.viewParts=[],this.viewLines=new L.ViewLines(this._context,this.layoutProvider),this.viewZones=new A.ViewZones(this._context,this.layoutProvider),this.viewParts.push(this.viewZones);var t=new I.DecorationsOverviewRuler(this._context,this.layoutProvider.getScrollHeight(),function(t){return e.layoutProvider.getVerticalOffsetForLineNumber(t)});this.viewParts.push(t);var n=new k.ScrollDecorationViewPart(this._context);this.viewParts.push(n);var i=new g.ContentViewOverlays(this._context,this.layoutProvider);this.viewParts.push(i),i.addDynamicOverlay(new y.CurrentLineHighlightOverlay(this._context,this.layoutProvider)),i.addDynamicOverlay(new O.SelectionsOverlay(this._context)),i.addDynamicOverlay(new b.DecorationsOverlay(this._context)),i.addDynamicOverlay(new E.IndentGuidesOverlay(this._context));var o=new g.MarginViewOverlays(this._context,this.layoutProvider);this.viewParts.push(o),o.addDynamicOverlay(new C.CurrentLineMarginHighlightOverlay(this._context,this.layoutProvider)),o.addDynamicOverlay(new w.GlyphMarginOverlay(this._context)),o.addDynamicOverlay(new x.MarginViewLineDecorationsOverlay(this._context)),o.addDynamicOverlay(new T.LinesDecorationsOverlay(this._context)),o.addDynamicOverlay(new S.LineNumbersOverlay(this._context));var r=new N.Margin(this._context,this.layoutProvider);r.domNode.appendChild(this.viewZones.marginDomNode),r.domNode.appendChild(o.getDomNode()),this.viewParts.push(r),this.contentWidgets=new _.ViewContentWidgets(this._context,this.domNode),this.viewParts.push(this.contentWidgets),this.viewCursors=new P.ViewCursors(this._context),this.viewParts.push(this.viewCursors),this.overlayWidgets=new M.ViewOverlayWidgets(this._context),this.viewParts.push(this.overlayWidgets);var s=new R.Rulers(this._context,this.layoutProvider);if(this.viewParts.push(s),this.linesContentContainer=this.layoutProvider.getScrollbarContainerDomNode(),this.linesContentContainer.style.position="absolute",t){var a=this.layoutProvider.getOverviewRulerInsertData();a.parent.insertBefore(t.getDomNode(),a.insertBefore)}this.linesContent.appendChild(i.getDomNode()),this.linesContent.appendChild(s.domNode),this.linesContent.appendChild(this.viewZones.domNode),this.linesContent.appendChild(this.viewLines.getDomNode()),this.linesContent.appendChild(this.contentWidgets.domNode),this.linesContent.appendChild(this.viewCursors.getDomNode()),this.overflowGuardContainer.appendChild(r.domNode),this.overflowGuardContainer.appendChild(this.linesContentContainer),this.overflowGuardContainer.appendChild(n.getDomNode()),this.overflowGuardContainer.appendChild(this.overlayWidgets.domNode),this.overflowGuardContainer.appendChild(this.textArea),this.overflowGuardContainer.appendChild(this.textAreaCover),this.domNode.appendChild(this.overflowGuardContainer),this.domNode.appendChild(this.contentWidgets.overflowingContentWidgetsDomNode)},t.prototype._flushAccumulatedAndRenderNow=function(){this._flushAnyAccumulatedEvents(),this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode,linesContentDomNode:this.linesContent,focusTextArea:function(){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.focusTextArea: View is disposed");e.focus()},isDirty:function(){return e.accumulatedModelEvents.length>0},getScrollLeft:function(){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getScrollLeft: View is disposed");return e.layoutProvider.getScrollLeft()},getScrollTop:function(){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getScrollTop: View is disposed");return e.layoutProvider.getScrollTop()},setScrollPosition:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.setScrollPosition: View is disposed");e.layoutProvider.setScrollPosition(t)},isAfterLines:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.isAfterLines: View is disposed");return e.layoutProvider.isAfterLines(t)},getLineNumberAtVerticalOffset:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getLineNumberAtVerticalOffset: View is disposed");return e.layoutProvider.getLineNumberAtVerticalOffset(t)},getVerticalOffsetForLineNumber:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getVerticalOffsetForLineNumber: View is disposed");return e.layoutProvider.getVerticalOffsetForLineNumber(t)},getWhitespaceAtVerticalOffset:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getWhitespaceAtVerticalOffset: View is disposed");return e.layoutProvider.getWhitespaceAtVerticalOffset(t)},getLastViewCursorsRenderData:function(){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getLastViewCursorsRenderData: View is disposed");return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.shouldSuppressMouseDownOnViewZone: View is disposed");return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.shouldSuppressMouseDownOnWidget: View is disposed");return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getPositionFromDOMInfo: View is disposed");return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.visibleRangeForPosition2: View is disposed");e._flushAccumulatedAndRenderNow();var i=e.viewLines.visibleRangesForRange2(new a.Range(t,n,t,n),0);return i?i[0]:null},getLineWidth:function(t){if(e._isDisposed)throw new Error("ViewImpl.pointerHandler.getLineWidth: View is disposed");return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createKeyboardHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode,textArea:this.textArea,visibleRangeForPositionRelativeToEditor:function(t,n){if(e._isDisposed)throw new Error("ViewImpl.keyboardHandler.visibleRangeForPositionRelativeToEditor: View is disposed");e._flushAccumulatedAndRenderNow();var i=e.layoutProvider.getLinesViewportData(),o=e.viewLines.visibleRangesForRange2(new a.Range(t,n,t,n),i.visibleRangesDeltaTop);return o?o[0]:null},flushAnyAccumulatedEvents:function(){e._flushAnyAccumulatedEvents()}}},t.prototype.setAriaActiveDescendant=function(e){e?(this.textArea.setAttribute("role","combobox"),this.textArea.getAttribute("aria-activedescendant")!==e&&(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-activedescendant",e))):(this.textArea.setAttribute("role","textbox"),this.textArea.removeAttribute("aria-activedescendant"),this.textArea.removeAttribute("aria-haspopup"))},t.prototype.onLayoutChanged=function(e){if(o.isChrome){this.overflowGuardContainer.clientWidth+"px"}return s.StyleMutator.setWidth(this.domNode,e.width),s.StyleMutator.setHeight(this.domNode,e.height),s.StyleMutator.setWidth(this.overflowGuardContainer,e.width),s.StyleMutator.setHeight(this.overflowGuardContainer,e.height),s.StyleMutator.setWidth(this.linesContent,1e6),s.StyleMutator.setHeight(this.linesContent,1e6),s.StyleMutator.setLeft(this.linesContentContainer,e.contentLeft),s.StyleMutator.setWidth(this.linesContentContainer,e.contentWidth),s.StyleMutator.setHeight(this.linesContentContainer,e.contentHeight),this.outgoingEvents.emitViewLayoutChanged(e),!1},t.prototype.onConfigurationChanged=function(e){return e.viewInfo.editorClassName&&(this.domNode.className=this._context.configuration.editor.viewInfo.editorClassName),e.viewInfo.ariaLabel&&this.textArea.setAttribute("aria-label",this._context.configuration.editor.viewInfo.ariaLabel),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onViewFocusChanged=function(e){return r.toggleClass(this.domNode,"focused",e),e?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onCursorRevealRange=function(e){return!!e.revealCursor&&this.revealCursor()},t.prototype.onCursorScrollRequest=function(e){return!!e.revealCursor&&this.revealCursor()},t.prototype.revealCursor=function(){return this.triggerCursorHandler("revealCursor",u.Handler.CursorMove,{to:u.CursorMovePosition.ViewPortIfOutside}),!1},t.prototype.dispose=function(){this._isDisposed=!0,this.handleAccumulatedModelEventsTimeout!==-1&&(clearTimeout(this.handleAccumulatedModelEventsTimeout),this.handleAccumulatedModelEventsTimeout=-1),null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.accumulatedModelEvents=[],this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.listenersToRemove=i.dispose(this.listenersToRemove),this.listenersToDispose=i.dispose(this.listenersToDispose),this.keyboardHandler.dispose(),this.pointerHandler.dispose(),this.viewLines.dispose();for(var e=0,t=this.viewParts.length;e0}function L(e){return e.originalEndLineNumber>0}function N(e,t,n,i,o,r){return{range:new h.Range(e,t,n,i),options:{className:o,isWholeLine:r}}}function T(){var e=document.createElement("div");return e.className="diagonal-fill",e}var x=function(){function e(){this._zones=[],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,i=t._zones.length;n0&&e.changeDecorations(function(e){e.deltaDecorations(t._decorations,[])}),this._decorations=[]},e.prototype.apply=function(e,t,n){var i=this;e.changeViewZones(function(e){for(var t=0,o=i._zones.length;t0?o/n:0,s=Math.max(1,Math.floor(e.contentHeight*r)),a=Math.floor(t*r);return{height:s,top:a}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height},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,this._lineChanges&&this._updateDecorations(),this._measureDomElement(!0)},t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){if(0===this._lineChanges.length||e=s?n=o+1:(n=o,i=o)}return this._lineChanges[n]},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),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-n;return s<=o?i+Math.min(s,r):i+r-o+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),i=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),o=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,r=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,s=e-i;return s<=r?n+Math.min(s,o):n+o-r+s},t.prototype.getDiffLineInformationForOriginal=function(e){return this._lineChanges?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}:null},t.prototype.getDiffLineInformationForModified=function(e){return this._lineChanges?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}:null},t}(i.EventEmitter);I.ONE_OVERVIEW_WIDTH=15,I.ENTIRE_DIFF_OVERVIEW_WIDTH=30,I.UPDATE_DIFF_DECORATIONS_DELAY=200,I=y([C(2,f.IEditorWorkerService),C(3,c.IContextKeyService),C(4,l.IInstantiationService)],I),t.DiffEditorWidget=I;var D=function(){function e(e){this._dataSource=e}return e.prototype.getEditorsDiffDecorations=function(e,t,n,i,o,r,s){o=o.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber}),i=i.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber});var a=this._getViewZones(e,i,o,r,s,n),u=this._getOriginalEditorDecorations(e,t,n,r,s),l=this._getModifiedEditorDecorations(e,t,n,r,s);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:a.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:a.modified}}},e.prototype._getViewZones=function(e,t,n,i,o,r){return null},e.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){return null},e.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){return null},e}(),R=function(){function e(e){this._source=e,this._index=-1,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)},l=new R(this.modifiedForeignVZ),c=new R(this.originalForeignVZ),d=0,h=this.lineChanges.length;d<=h;d++){var p=d0?-1:0),o=p.modifiedStartLineNumber+(p.modifiedEndLineNumber>0?-1:0),n=p.originalEndLineNumber>0?p.originalEndLineNumber-p.originalStartLineNumber+1:0,t=p.modifiedEndLineNumber>0?p.modifiedEndLineNumber-p.modifiedStartLineNumber+1:0,r=Math.max(p.originalStartLineNumber,p.originalEndLineNumber),s=Math.max(p.modifiedStartLineNumber,p.modifiedEndLineNumber)):(i+=1e7+n,o+=1e7+t,r=i,s=o);for(var f=[],g=[];l.current&&l.current.afterLineNumber<=s;){var m=void 0;m=l.current.afterLineNumber<=o?i-o+l.current.afterLineNumber:r,f.push({afterLineNumber:m,heightInLines:l.current.heightInLines,domNode:null}),l.advance()}for(;c.current&&c.current.afterLineNumber<=r;){var m=void 0;m=c.current.afterLineNumber<=i?o-i+c.current.afterLineNumber:s,g.push({afterLineNumber:m,heightInLines:c.current.heightInLines,domNode:null}),c.advance()}if(null!==p&&E(p)){var v=this._produceOriginalFromDiff(p,n,t);v&&f.push(v)}if(null!==p&&L(p)){var v=this._produceModifiedFromDiff(p,n,t);v&&g.push(v)}var _=0,y=0;for(f=f.sort(a),g=g.sort(a);_=b.heightInLines?(C.heightInLines-=b.heightInLines,y++):(b.heightInLines-=C.heightInLines,_++)}for(;_2*t.MINIMUM_EDITOR_WIDTH?(oi-t.MINIMUM_EDITOR_WIDTH&&(o=i-t.MINIMUM_EDITOR_WIDTH)):o=r,this._sashPosition!==o&&(this._sashPosition=o,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth(),n=t-I.ENTIRE_DIFF_OVERVIEW_WIDTH,i=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=i/n,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,i,o){var r=new P(e,t,n);return r.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r={decorations:[],overviewZones:[]},s=i.getModel(),a=0,u=e.length;at?{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}(k),A=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i.toDispose=[],i.toDispose.push(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())})),i}return m(t,e),t.prototype.dispose=function(){this.toDispose=o.dispose(this.toDispose)},t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){var s=new W(e,t,n,i,o,r);return s.getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r={decorations:[],overviewZones:[]},s=0,a=e.length;s'])}var f=document.createElement("div");f.className="view-lines line-delete",f.innerHTML=a.join(""),w.Configuration.applyFontInfoSlow(f,this.modifiedEditorConfiguration.fontInfo);var g=document.createElement("div");return g.className="inline-deleted-margin-view-zone",g.innerHTML=u.join(""),w.Configuration.applyFontInfoSlow(g,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,domNode:f,marginDomNode:g}},t.prototype.renderOriginalLine=function(e,t,n,i,o,r){var s=t.getLineContent(o),a=g.Decoration.filter(r,o,1,s.length+1),u=v.renderViewLine(new v.RenderLineInput(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,s,t.mightContainRTL(),0,[new b.ViewLineToken(s.length,"")],a,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters)),l=[];return l.push('
    '),l=l.concat(u.output),l.push("
    "),l},t}(k)}),define(d[503],h([0,1,4,6,61,14,23,43,19,2,45,48,118,123,170,84,107,145,57]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,b){"use strict";var w=0,S=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,n,i,o,r,s)||this;return a instanceof h.StandaloneKeybindingService&&(u._standaloneKeybindingService=a),u}return m(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 i="DYNAMIC_"+ ++w,o=v.IOSupport.readKeybindingWhen(n);return this._standaloneKeybindingService.addDynamicKeybinding(i,e,t,o),i},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"),n.empty;var o=e.id,r=e.label,a=u.ContextKeyExpr.and(u.ContextKeyExpr.equals("editorId",this.getId()),v.IOSupport.readKeybindingWhen(e.precondition)),l=e.keybindings,c=u.ContextKeyExpr.and(a,v.IOSupport.readKeybindingWhen(e.keybindingContext)),d=e.contextMenuGroupId||null,h=e.contextMenuOrder||0,p=function(){return i.TPromise.as(e.run(t))},f=[],g=this.getId()+":"+o;if(f.push(s.CommandsRegistry.registerCommand(g,p)),d){var m={command:{id:g,title:r},when:a,group:d,order:h};f.push(b.MenuRegistry.appendMenuItem(b.MenuId.EditorContext,m))}Array.isArray(l)&&(f=f.concat(l.map(function(e){return t._standaloneKeybindingService.addDynamicKeybinding(g,e,p,c)})));var y=new _.InternalEditorAction(g,r,r,a,p,this._contextKeyService);return this._actions[o]=y,f.push({dispose:function(){delete t._actions[o]}}),n.combinedDisposable(f)},t}(p.CodeEditor);S=y([C(2,r.IInstantiationService),C(3,c.ICodeEditorService),C(4,s.ICommandService),C(5,u.IContextKeyService),C(6,a.IKeybindingService)],S),t.StandaloneCodeEditor=S;var E=function(e){function t(t,n,i,o,r,s,a,u,c,d){var h=this;n=n||{},"string"==typeof n.theme&&(n.theme=d.setTheme(n.theme)),h=e.call(this,t,n,o,r,s,a,u)||this,h._contextViewService=c,h._standaloneColorService=d,h._toDispose2=[i];var p=null;if("undefined"==typeof n.model?(p=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),h._ownsModel=!0):(p=n.model,delete n.model,h._ownsModel=!1),h._attachModel(p),p){var f={oldModelUrl:null,newModelUrl:p.uri};h.emit(l.EventType.ModelChanged,f)}return h}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._toDispose2=n.dispose(this._toDispose2)},t.prototype.destroy=function(){this.dispose()},t.prototype.updateOptions=function(t){"string"==typeof t.theme&&(t.theme=this._standaloneColorService.setTheme(t.theme)),e.prototype.updateOptions.call(this,t)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._view&&this._contextViewService.setContainer(this._view.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},t}(S);E=y([C(3,r.IInstantiationService),C(4,c.ICodeEditorService),C(5,s.ICommandService),C(6,u.IContextKeyService),C(7,a.IKeybindingService),C(8,o.IContextViewService),C(9,g.IStandaloneColorService)],E),t.StandaloneEditor=E;var L=function(e){function t(t,n,i,o,r,s,a,u,l){var c=this;return n=n||{},"string"==typeof n.theme&&(n.theme=u.setTheme(n.theme)),c=e.call(this,t,n,l,r,o)||this,s instanceof h.StandaloneKeybindingService&&(c._standaloneKeybindingService=s),c._contextViewService=a,c._standaloneColorService=u,c._toDispose2=[i],c._contextViewService.setContainer(c._containerDomElement),c}return m(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._toDispose2=n.dispose(this._toDispose2)},t.prototype.destroy=function(){this.dispose()},t.prototype.updateOptions=function(t){"string"==typeof t.theme&&(t.theme=this._standaloneColorService.setTheme(t.theme)),e.prototype.updateOptions.call(this,t)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(S,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}(f.DiffEditorWidget);L=y([C(3,r.IInstantiationService),C(4,u.IContextKeyService),C(5,a.IKeybindingService),C(6,o.IContextViewService),C(7,g.IStandaloneColorService),C(8,d.IEditorWorkerService)],L),t.StandaloneDiffEditor=L}),define(d[171],h([0,1,35,14,23,19,45,123]),function(e,t,n,i,o,r,s,a){"use strict";var u=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,i.getRawConfiguration(),o,r,s,a)||this;return u._parentEditor=i,u._overwriteOptions=n,e.prototype.updateOptions.call(u,u._overwriteOptions),u._lifetimeDispose.push(i.onDidChangeConfiguration(function(e){return u._onParentConfigurationChanged(e)})),u}return m(t,e),t.prototype.getParentEditor=function(){return this._parentEditor},t.prototype._onParentConfigurationChanged=function(t){e.prototype.updateOptions.call(this,this._parentEditor.getRawConfiguration()),e.prototype.updateOptions.call(this,this._overwriteOptions)},t.prototype.updateOptions=function(t){n.mixin(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},t}(a.CodeEditor);u=y([C(3,i.IInstantiationService),C(4,s.ICodeEditorService),C(5,o.ICommandService),C(6,r.IContextKeyService)],u),t.EmbeddedCodeEditorWidget=u}),define(d[90],h([0,1,320,49,9,34,12,11,71,14,45,161,171,19,424]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p){"use strict";function f(e,t){var n=e.get(c.ICodeEditorService).getFocusedCodeEditor();return n instanceof h.EmbeddedCodeEditorWidget?n.getParentEditor():n}t.IPeekViewService=l.createDecorator("peekViewService");var g;!function(e){e.inPeekEditor=new p.RawContextKey("inReferenceSearchEditor",!0),e.notInPeekEditor=e.inPeekEditor.toNegated()}(g=t.PeekContext||(t.PeekContext={})),t.NOT_INNER_EDITOR_CONTEXT_KEY=new p.RawContextKey("inReferenceSearchEditor",!0),t.getOuterEditor=f;var v=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new s.Emitter,i._isActive=!1,i}return m(t,e),t.prototype.dispose=function(){this._isActive=!1,e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},enumerable:!0,configurable:!0}),t.prototype.show=function(t,n){this._isActive=!0,this._headElement.style.borderTopColor=this.options.frameColor,this._bodyElement.style.borderTopColor=this.options.frameColor,this._bodyElement.style.borderBottomColor=this.options.frameColor,e.prototype.show.call(this,t,n)},t.prototype._fillContainer=function(e){r.$(e).addClass("peekview-widget"),this._headElement=r.$(".head").getHTMLElement(),this._bodyElement=r.$(".body").getHTMLElement(),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)},t.prototype._fillHead=function(e){var t=this,o=r.$(".peekview-title").on(a.EventType.CLICK,function(e){return t._onTitleClick(e)}).appendTo(this._headElement).getHTMLElement();this._primaryHeading=r.$("span.filename").appendTo(o).getHTMLElement(),this._secondaryHeading=r.$("span.dirname").appendTo(o).getHTMLElement(),this._metaHeading=r.$("span.meta").appendTo(o).getHTMLElement(),this._actionbarWidget=new u.ActionBar(r.$(".peekview-actions").appendTo(this._headElement)),this._actionbarWidget.push(new i.Action("peekview.close",n.localize(0,null),"close-peekview-action",!0,function(){return t.dispose(),null}),{label:!1,icon:!0})},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){r.$(this._primaryHeading).safeInnerHtml(e),t?r.$(this._secondaryHeading).safeInnerHtml(t):a.clearNode(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?r.$(this._metaHeading).safeInnerHtml(e):a.clearNode(this._metaHeading)},t.prototype._fillBody=function(e){},t.prototype._doLayout=function(e,t){if(e<0)return this.dispose(),void this._onDidClose.fire(this);var n=Math.ceil(1.2*this.editor.getConfiguration().lineHeight),i=e-(n+2);this._doLayoutHead(n,t),this._doLayoutBody(i,t)},t.prototype._doLayoutHead=function(e,t){this._headElement.style.height=o.format("{0}px",e),this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=o.format("{0}px",e)},t}(d.ZoneWidget);t.PeekViewWidget=v}),define(d[97],h([0,1,27,14,39]),function(e,t,n,i,o){"use strict";t.IWorkspaceContextService=i.createDecorator("contextService");var r=function(){function e(e){this.workspace=e}return e.prototype.getWorkspace=function(){return this.workspace},e.prototype.hasWorkspace=function(){return!!this.workspace},e.prototype.isInsideWorkspace=function(e){return!(!e||!this.workspace)&&o.isEqualOrParent(e.fsPath,this.workspace.resource.fsPath)},e.prototype.toWorkspaceRelativePath=function(e){return this.isInsideWorkspace(e)?o.normalize(o.relative(this.workspace.resource.fsPath,e.fsPath)):null},e.prototype.toResource=function(e){return"string"==typeof e&&this.workspace?n.default.file(o.join(this.workspace.resource.fsPath,e)):null},e}();t.WorkspaceContextService=r}),define(d[174],h([0,1,4,27,56,326,61,496,14,411,79,23,43,19,416,81,52,159,160,47,97,45,48,129,80,440,44,426,341,118,415,57,84,202]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,y,C,b,w,S,E,L,N,T,x,M,I,D,R,k,O){"use strict";var P;!function(e){function t(e,t){var n=new s(e,t);return a.push(n),n}function n(e){var t=new c.ServiceCollection;for(var n in e)e.hasOwnProperty(n)&&t.set(u.createDecorator(n),e[n]);a.forEach(function(n){return t.set(n.id,n.get(e))});var i=new l.InstantiationService(t,!0);return t.set(u.IInstantiationService,i),[t,i]}var r=new c.ServiceCollection,s=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!");r.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=s;var a=[];e.init=n,e.instantiationService=t(u.IInstantiationService,function(){return new l.InstantiationService(r,!0)}),e.contextService=t(b.IWorkspaceContextService,function(){return new b.WorkspaceContextService({resource:i.default.from({scheme:"inmemory",authority:"model",path:"/"})})}),e.telemetryService=t(C.ITelemetryService,function(){return new I.StandaloneTelemetryService}),e.configurationService=t(o.IConfigurationService,function(){return new I.SimpleConfigurationService}),e.messageService=t(v.IMessageService,function(){return new I.SimpleMessageService}),e.markerService=t(g.IMarkerService,function(){return new f.MarkerService}),e.modeService=t(L.IModeService,function(e){return new N.ModeServiceImpl}),e.modelService=t(T.IModelService,function(t){return new x.ModelServiceImpl(e.markerService.get(t),e.configurationService.get(t))}),e.editorWorkerService=t(S.IEditorWorkerService,function(t){return new E.EditorWorkerServiceImpl(e.modelService.get(t),e.configurationService.get(t))}),e.codeEditorService=t(w.ICodeEditorService,function(){return new M.CodeEditorServiceImpl}),e.progressService=t(_.IProgressService,function(){return new I.SimpleProgressService}),e.storageService=t(y.IStorageService,function(){return y.NullStorageService}),e.standaloneColorService=t(k.IStandaloneColorService,function(){return new O.StandaloneColorServiceImpl})}(P=t.StaticServices||(t.StaticServices={}));var A=function(e){function t(t,n){var i=e.call(this)||this,u=P.init(n),l=u[0],c=u[1];i._serviceCollection=l,i._instantiationService=c;var f=i.get(o.IConfigurationService),g=i.get(v.IMessageService),m=i.get(C.ITelemetryService),_=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o},y=_(p.IContextKeyService,function(){return i._register(new D.ContextKeyService(f))}),b=_(d.ICommandService,function(){return new I.StandaloneCommandService(i._instantiationService)});_(h.IKeybindingService,function(){return i._register(new I.StandaloneKeybindingService(y,b,g,t))});var w=_(s.IContextViewService,function(){return i._register(new a.ContextViewService(t,m,g))});return _(s.IContextMenuService,function(){return i._register(new r.ContextMenuService(t,m,g,w))}),_(R.IMenuService,function(){return new I.SimpleMenuService(b)}),i}return m(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}(n.Disposable);t.DynamicStandaloneServices=A}),define(d[508],h([0,1,2,21,503,40,174,419,66,146,118,16,366,125,62,23,61,14,43,19,45,48,68,63,84,109,328]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,m,v,_,y,C,b,w,S,E,L){"use strict";function N(e){return s.StaticServices.init(e)}function T(e,t,n){var i=new s.DynamicStandaloneServices(e,t),o=null;i.has(f.IEditorService)||(o=new c.SimpleEditorService,i.set(f.IEditorService,o));var r=null;i.has(w.ITextModelResolverService)||(r=new c.SimpleEditorModelResolverService,i.set(w.ITextModelResolverService,r)),i.has(u.IOpenerService)||i.set(u.IOpenerService,new a.OpenerService(i.get(f.IEditorService),i.get(g.ICommandService)));var l=n(i);return o&&o.setEditor(l),r&&r.setEditor(l),l}function x(e,t,n){return T(e,n,function(n){return new o.StandaloneEditor(e,t,n,n.get(v.IInstantiationService),n.get(C.ICodeEditorService),n.get(g.ICommandService),n.get(y.IContextKeyService),n.get(_.IKeybindingService),n.get(m.IContextViewService),n.get(E.IStandaloneColorService))})}function M(e){return s.StaticServices.codeEditorService.get().onCodeEditorAdd(function(t){e(t)})}function I(e,t,n){return T(e,n,function(n){return new o.StandaloneDiffEditor(e,t,n,n.get(v.IInstantiationService),n.get(y.IContextKeyService),n.get(_.IKeybindingService),n.get(m.IContextViewService),n.get(E.IStandaloneColorService),n.get(b.IEditorWorkerService))})}function D(e,t){return new p.DiffNavigator(e,t)}function R(e,t,n){return s.StaticServices.modelService.get().createModel(e,t,n)}function k(e,t,n){if(e=e||"",!t){var i=n?n.path:null,o=e.indexOf("\n"),r=e;return o!==-1&&(r=e.substring(0,o)),R(e,s.StaticServices.modeService.get().getOrCreateModeByFilenameOrFirstLine(i,r),n)}return R(e,s.StaticServices.modeService.get().getOrCreateMode(t),n)}function O(e,t){s.StaticServices.modelService.get().setMode(e,s.StaticServices.modeService.get().getOrCreateMode(t))}function P(e,t,n){e&&s.StaticServices.markerService.get().changeOne(t,e.uri,n)}function A(e){return s.StaticServices.modelService.get().getModel(e)}function W(){return s.StaticServices.modelService.get().getModels()}function F(e){return s.StaticServices.modelService.get().onModelAdded(e)}function V(e){return s.StaticServices.modelService.get().onModelRemoved(e)}function H(e){return s.StaticServices.modelService.get().onModelModeChanged(function(t){e({model:t.model,oldLanguage:t.oldModeId})})}function B(e){return h.createWebWorker(s.StaticServices.modelService.get(),e)}function U(e,t){return l.Colorizer.colorizeElement(s.StaticServices.standaloneColorService.get(),s.StaticServices.modeService.get(),e,t)}function z(e,t,n){return l.Colorizer.colorize(s.StaticServices.modeService.get(),e,t,n)}function K(e,t,n){return void 0===n&&(n=4),l.Colorizer.colorizeModelLine(e,t,n)}function j(e){var t=d.TokenizationRegistry.get(e);return t?t:{getInitialState:function(){return S.NULL_STATE},tokenize:function(t,n,i){return S.nullTokenize(e,t,n,i)},tokenize2:void 0}}function q(e,t){var n=s.StaticServices.modeService.get();n.getOrCreateMode(t);for(var i=j(t),o=e.split(/\r\n|\r|\n/),r=[],a=i.getInitialState(),u=0,l=o.length;u0&&o[r-1]===l||(o[r++]=u.startIndex,o[r++]=l)}for(var c=new Uint32Array(r),s=0;s1?o.setTitleFormat(n.localize(1,null,i)):o.setTitleFormat(n.localize(2,null,i)),null}),r.appendTo(i)}else if(t instanceof M.OneReference){var s=t.parent.preview.preview(t.range);if(!s)return;c.$(".reference").innerHtml(u.format('{0}{1}{2}',u.escape(s.before),u.escape(s.inside),u.escape(s.after))).appendTo(i)}return null},t}(v.LegacyRenderer);O=y([C(0,w.IWorkspaceContextService)],O);var P=function(){function e(e,t){var n=this;this._disposables=new s.Disposables,this._onDidChangePercentages=new r.Emitter,this._ratio=t,this._sash=new h.Sash(e,{getVerticalSashLeft:function(){return n._width*n._ratio},getVerticalSashHeight:function(){return n._height}});var i;this._disposables.add(this._sash.addListener2("start",function(e){i=e.startX-n._width*n.ratio})),this._disposables.add(this._sash.addListener2("change",function(e){var t=e.currentX-i;t>20&&t+200?e.children[0]:void 0},t.prototype._revealReference=function(e){var t=this;e.uri.scheme!==a.Schemas.inMemory?this.setTitle(e.name,o.getPathLabel(e.directory,this._contextService)):this.setTitle(n.localize(6,null));var r=this._textModelResolverService.createModelReference(e.uri);return l.TPromise.join([r,this._tree.reveal(e)]).then(function(n){var i=n[0];if(!t._model)return void i.dispose();t._previewModelReference.dispose(),t._previewModelReference=s.empty;var o=i.object;if(o){t._previewModelReference=i,t._preview.setModel(o.textEditorModel);var r=E.Range.lift(e.range).collapseToStart();t._preview.setSelection(r),t._preview.revealRangeInCenter(r)}else t._preview.setModel(t._previewNotAvailableMessage),i.dispose();t._tree.setSelection([e]),t._tree.setFocus(e)},i.onUnexpectedError)},t}(x.PeekViewWidget);t.ReferenceWidget=A}),define(d[175],h([0,1,310,10,4,30,62,12,14,19,52,47,56,97,160,29,90,510,68]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,m,v,_){"use strict";t.ctxReferenceSearchVisible=new l.RawContextKey("referenceSearchVisible",!1);var b=w=function(){function e(e,n,i,o,r,s,a,u,l,c,d){this._editorService=i,this._textModelResolverService=o,this._telemetryService=r,this._messageService=s,this._instantiationService=a,this._contextService=u,this._storageService=l,this._configurationService=c,this._peekViewService=d,this._requestIdPool=0,this._disposables=[],this._ignoreModelChangeEvent=!1,this._editor=e,this._referenceSearchVisible=t.ctxReferenceSearchVisible.bindTo(n)}return e.get=function(e){return e.getContribution(w.ID)},e.prototype.getId=function(){return w.ID},e.prototype.dispose=function(){this._widget&&(this._widget.dispose(),this._widget=null),this._editor=null},e.prototype.toggleWidget=function(e,t,i){var o,s=this;if(this._widget&&(o=this._widget.position),this.closeWidget(),o&&e.containsPosition(o))return null;this._referenceSearchVisible.set(!0),this._disposables.push(this._editor.onDidChangeModelLanguage(function(){s.closeWidget()})),this._disposables.push(this._editor.onDidChangeModel(function(){s._ignoreModelChangeEvent||s.closeWidget()}));var u="peekViewLayout",l=JSON.parse(this._storageService.get(u,void 0,"{}"));this._widget=new v.ReferenceWidget(this._editor,l,this._textModelResolverService,this._contextService,this._instantiationService),this._widget.setTitle(n.localize(0,null)),this._widget.show(e),this._disposables.push(this._widget.onDidClose(function(){t.cancel(),s._storageService.store(u,JSON.stringify(s._widget.layoutData)),s._widget=null,s.closeWidget()})),this._disposables.push(this._widget.onDidSelectReference(function(e){var t=e.element,n=e.kind;switch(n){case"open":if("editor"===e.source&&s._configurationService.lookup("editor.stablePeek").value)break;case"side":s._openReference(t,"side"===n);break;case"goto":i.onGoto?i.onGoto(t):s._gotoReference(t)}}));var c=++this._requestIdPool,d=t.then(function(t){if(c===s._requestIdPool&&s._widget){s._model&&s._model.dispose(),s._model=t;var n=Date.now();return s._disposables.push({dispose:function(){s._telemetryService.publicLog("zoneWidgetShown",{mode:"reference search",elapsedTime:Date.now()-n})}}),s._widget.setModel(s._model).then(function(){s._widget.setMetaTitle(i.getMetaTitle(s._model));var t=s._editor.getModel().uri,n={lineNumber:e.startLineNumber,column:e.startColumn},o=s._model.nearestReference(t,n);if(o)return s._widget.setSelection(o)})}},function(e){s._messageService.show(r.default.Error,e)}),h=a.stopwatch(a.fromPromise(d));h(function(e){return s._telemetryService.publicLog("findReferences",{duration:e,mode:s._editor.getModel().getLanguageIdentifier().language})})},e.prototype.closeWidget=function(){this._widget&&(this._widget.dispose(),this._widget=null),this._referenceSearchVisible.reset(),this._disposables=o.dispose(this._disposables),this._model&&(this._model.dispose(),this._model=null),this._editor.focus(),this._requestIdPool+=1},e.prototype._gotoReference=function(e){var t=this;this._widget.hide(),this._ignoreModelChangeEvent=!0;var n=e.uri,o=e.range;this._editorService.openEditor({resource:n,options:{selection:o}}).done(function(e){return t._ignoreModelChangeEvent=!1,e&&e.getControl()===t._editor?(t._widget.show(o),void t._widget.focus()):void t.closeWidget()},function(e){t._ignoreModelChangeEvent=!1,i.onUnexpectedError(e)})},e.prototype._openReference=function(e,t){var n=e.uri,i=e.range;this._editorService.openEditor({resource:n,options:{selection:i}},t),t||this.closeWidget()},e}();b.ID="editor.contrib.referencesController",b=w=y([g.editorContribution,C(1,l.IContextKeyService),C(2,s.IEditorService),C(3,_.ITextModelResolverService),C(4,d.ITelemetryService),C(5,c.IMessageService),C(6,u.IInstantiationService),C(7,p.IWorkspaceContextService),C(8,f.IStorageService),C(9,h.IConfigurationService),C(10,u.optional(m.IPeekViewService))],b),t.ReferencesController=b;var w}),define(d[512],h([0,1,294,17,10,31,18,30,9,6,24,62,80,52,3,2,13,16,29,463,175,92,4,90,19,68,373]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_,b,w,S,E,L,N,T,x){"use strict";var M=g.ModeContextKeys,I=g.EditorContextKeys,D=function(){function e(e,t,n){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===n&&(n=!0),this.openToSide=e,this.openInPeek=t,this.filterCurrent=n}return e}();t.DefinitionActionConfig=D;var R=function(e){function t(t,n){var i=e.call(this,n)||this;return i._configuration=t,i}return m(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(p.IMessageService),o=e.get(d.IEditorService),r=t.getModel(),s=t.getPosition();return this.getDeclarationsAtPosition(r,s).then(function(e){if(e){for(var i=[],a=0;a1?i._openInPeek(e,t,n):n.dispose()})}},t.prototype._openReference=function(e,t,n){var i=t.uri,o=t.range;return e.openEditor({resource:i,options:{selection:o,revealIfVisible:!n}},n).then(function(e){return e&&e.getControl()})},t.prototype._openInPeek=function(e,t,i){var o=this,r=S.ReferencesController.get(t);r?r.toggleWidget(t.getSelection(),l.TPromise.as(i),{getMetaTitle:function(e){return e.references.length>1&&n.localize(0,null,e.references.length)},onGoto:function(t){return r.closeWidget(),o._openReference(e,t,!1)}}):i.dispose()},t}(v.EditorAction);t.DefinitionAction=R;var k=s.isWeb?2118:70,O=H=function(e){function t(){return e.call(this,new D,{id:H.ID,label:n.localize(1,null),alias:"Go to Definition",precondition:T.ContextKeyExpr.and(M.hasDefinitionProvider,M.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:I.TextFocus,primary:k},menuOpts:{group:"navigation",order:1.1}})||this}return m(t,e),t}(R);O.ID="editor.action.goToDeclaration",O=H=y([v.editorAction],O),t.GoToDefinitionAction=O;var P=B=function(e){function t(){return e.call(this,new D(!0),{id:B.ID,label:n.localize(2,null),alias:"Open Definition to the Side",precondition:T.ContextKeyExpr.and(M.hasDefinitionProvider,M.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:I.TextFocus,primary:r.KeyChord(2089,k)}})||this}return m(t,e),t}(R);P.ID="editor.action.openDeclarationToTheSide",P=B=y([v.editorAction],P),t.OpenDefinitionToSideAction=P;var A=function(e){function t(){return e.call(this,new D(void 0,!0,!1),{id:"editor.action.previewDeclaration",label:n.localize(3,null),alias:"Peek Definition",precondition:T.ContextKeyExpr.and(M.hasDefinitionProvider,N.PeekContext.notInPeekEditor,M.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:I.TextFocus,primary:582,linux:{primary:3140}},menuOpts:{group:"navigation",order:1.2}})||this}return m(t,e),t}(R);A=y([v.editorAction],A),t.PeekDefinitionAction=A;var W=U=function(e){function t(){return e.call(this,new D,{id:U.ID,label:n.localize(4,null),alias:"Go to Implementation",precondition:T.ContextKeyExpr.and(M.hasImplementationProvider,M.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:I.TextFocus,primary:2118},menuOpts:{group:"navigation",order:1.3}})||this}return m(t,e),t.prototype.getDeclarationsAtPosition=function(e,t){return w.getImplementationAtPosition(e,t)},t}(R);W.ID="editor.action.goToImplementation",W=U=y([v.editorAction],W),t.GoToImplementationAction=W;var F=z=function(e){function t(){return e.call(this,new D(!1,!0,!1),{id:z.ID,label:n.localize(5,null),alias:"Peek Implementation",precondition:T.ContextKeyExpr.and(M.hasImplementationProvider,M.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:I.TextFocus,primary:3142},menuOpts:{group:"navigation",order:1.3}})||this}return m(t,e),t.prototype.getDeclarationsAtPosition=function(e,t){return w.getImplementationAtPosition(e,t)},t}(R);F.ID="editor.action.peekImplementation",F=z=y([v.editorAction],F),t.PeekImplementationAction=F;var V=K=function(){function e(e,t,n){var o=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=[],this.decorations=[],this.editor=e,this.throttler=new i.Throttler,this.toUnhook.push(this.editor.onMouseDown(function(e){return o.onEditorMouseDown(e)})),this.toUnhook.push(this.editor.onMouseUp(function(e){return o.onEditorMouseUp(e)})),this.toUnhook.push(this.editor.onMouseMove(function(e){return o.onEditorMouseMove(e)})),this.toUnhook.push(this.editor.onKeyDown(function(e){return o.onEditorKeyDown(e)})),this.toUnhook.push(this.editor.onKeyUp(function(e){return o.onEditorKeyUp(e)})),this.toUnhook.push(this.editor.onDidChangeCursorSelection(function(e){return o.onDidChangeCursorSelection(e)})),this.toUnhook.push(this.editor.onDidChangeModel(function(e){return o.resetHandler()})),this.toUnhook.push(this.editor.onDidChangeModelContent(function(){return o.resetHandler()})),this.toUnhook.push(this.editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&o.resetHandler()}))}return e.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},e.prototype.onEditorMouseMove=function(e,t){this.lastMouseMoveEvent=e,this.startFindDefinition(e,t)},e.prototype.startFindDefinition=function(e,t){var i=this;if(!this.isEnabled(e,t))return this.currentWordUnderMouse=null,void this.removeDecorations();var r=e.target.position,s=r?this.editor.getModel().getWordAtPosition(r):null;if(!s)return this.currentWordUnderMouse=null,void this.removeDecorations();if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==s.startColumn||this.currentWordUnderMouse.endColumn!==s.endColumn||this.currentWordUnderMouse.word!==s.word){this.currentWordUnderMouse=s;var a=this.editor.captureState(g.CodeEditorStateFlag.Position,g.CodeEditorStateFlag.Value,g.CodeEditorStateFlag.Selection,g.CodeEditorStateFlag.Scroll);this.throttler.queue(function(){return a.validate(i.editor)?i.findDefinition(e.target):l.TPromise.as(null)}).then(function(e){if(!e||!e.length||!a.validate(i.editor))return void i.removeDecorations();if(e.length>1)i.addDecoration({startLineNumber:r.lineNumber,startColumn:s.startColumn,endLineNumber:r.lineNumber,endColumn:s.endColumn},n.localize(6,null,e.length));else{var t=e[0];if(!t.uri)return;i.textModelResolverService.createModelReference(t.uri).then(function(e){var n,o=e.object;if(o&&o.textEditorModel){var a=o.textEditorModel,l=Math.max(1,t.range.startLineNumber),c=void 0;c=f.Range.isEmpty(t.range)?Math.min(l+K.MAX_SOURCE_PREVIEW_LINES,a.getLineCount()):Math.min(t.range.endLineNumber,t.range.startLineNumber+K.MAX_SOURCE_PREVIEW_LINES,a.getLineCount());for(var d=a.getValueInRange({startLineNumber:l,startColumn:1,endLineNumber:c,endColumn:a.getLineMaxColumn(c)}).trim(),h=Number.MAX_VALUE,p=/^[ \t]*/,g=void 0,m=void 0;l<=c&&h>0;)m=a.getLineContent(l++),0!==m.trim().length&&(g=p.exec(m),h=Math.min(h,g[0].length));d=d.replace(new RegExp("^([ \\t]{"+h+"})","gm"),u.empty),c0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},e.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCode===K.TRIGGER_KEY_VALUE||e.keyCode===K.TRIGGER_SIDEBYSIDE_KEY_VALUE&&e[K.TRIGGER_MODIFIER])?this.startFindDefinition(this.lastMouseMoveEvent,e):e[K.TRIGGER_MODIFIER]&&this.removeDecorations()},e.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this.removeDecorations()},e.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=!!e.event[K.TRIGGER_MODIFIER]},e.prototype.onEditorMouseUp=function(e){var t=this;this.isEnabled(e)&&this.hasTriggerKeyOnMouseDown&&this.gotoDefinition(e.target,e.event.altKey).done(function(){t.removeDecorations()},function(e){t.removeDecorations(),o.onUnexpectedError(e)})},e.prototype.onEditorKeyUp=function(e){e.keyCode===K.TRIGGER_KEY_VALUE&&(this.removeDecorations(),this.currentWordUnderMouse=null)},e.prototype.isEnabled=function(e,t){return this.editor.getModel()&&(c.isIE||e.event.detail<=1)&&e.target.type===g.MouseTargetType.CONTENT_TEXT&&(e.event[K.TRIGGER_MODIFIER]||t&&t.keyCode===K.TRIGGER_KEY_VALUE)&&_.DefinitionProviderRegistry.has(this.editor.getModel())},e.prototype.findDefinition=function(e){var t=this.editor.getModel();return t?w.getDeclarationsAtPosition(this.editor.getModel(),e.position):l.TPromise.as(null)},e.prototype.gotoDefinition=function(e,t){var n=t?P.ID:O.ID;return this.editor.setPosition(e.position),this.editor.getAction(n).run()},e.prototype.getId=function(){return K.ID},e.prototype.dispose=function(){this.toUnhook=L.dispose(this.toUnhook)},e}();V.ID="editor.contrib.gotodefinitionwithmouse",V.TRIGGER_MODIFIER=s.isMacintosh?"metaKey":"ctrlKey",V.TRIGGER_SIDEBYSIDE_KEY_VALUE=6,V.TRIGGER_KEY_VALUE=s.isMacintosh?57:5,V.MAX_SOURCE_PREVIEW_LINES=7,V=K=y([b.editorContribution,C(1,x.ITextModelResolverService),C(2,h.IModeService)],V);var H,B,U,z,K}),define(d[229],h([0,1,309,27,6,62,14,23,19,70,15,3,2,13,90,484,175,92]),function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,f,g,v,_){"use strict";function b(e,t){var n=f.getOuterEditor(e,t);if(n){var i=v.ReferencesController.get(n);i&&i.closeWidget()}}var w=h.ModeContextKeys,S=h.EditorContextKeys,E={getMetaTitle:function(e){return e.references.length>1&&n.localize(0,null,e.references.length)}},L=M=function(){function e(e,t,n){n&&f.PeekContext.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.prototype.getId=function(){return M.ID},e}();L.ID="editor.contrib.referenceController",L=M=y([p.commonEditorContribution,C(1,u.IContextKeyService),C(2,s.optional(f.IPeekViewService))],L),t.ReferenceController=L;var N=function(e){function t(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:n.localize(1,null),alias:"Find All References",precondition:u.ContextKeyExpr.and(w.hasReferenceProvider,f.PeekContext.notInPeekEditor,w.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:S.TextFocus,primary:1094},menuOpts:{group:"navigation",order:1.3}})||this}return m(t,e),t.prototype.run=function(e,t){var n=v.ReferencesController.get(t);if(n){var i=t.getSelection(),o=t.getModel(),r=g.provideReferences(o,i.getStartPosition()).then(function(e){return new _.ReferencesModel(e)});n.toggleWidget(i,r,E)}},t}(p.EditorAction);N=y([p.editorAction],N),t.ReferenceAction=N;var T=function(e,t,n){if(!(t instanceof i.default))throw new Error("illegal argument, uri");if(!n)throw new Error("illegal argument, position");return e.get(r.IEditorService).openEditor({resource:t}).then(function(e){var t=e.getControl();if(t&&"function"==typeof t.getEditorType){var i=v.ReferencesController.get(t);if(i){var r=g.provideReferences(t.getModel(),c.Position.lift(n)).then(function(e){return new _.ReferencesModel(e)}),s=new d.Range(n.lineNumber,n.column,n.lineNumber,n.column);return o.TPromise.as(i.toggleWidget(s,r,E))}}})},x=function(e,t,n,s){if(!(t instanceof i.default))throw new Error("illegal argument, uri expected");return e.get(r.IEditorService).openEditor({resource:t}).then(function(e){var t=e.getControl();if(t&&"function"==typeof t.getEditorType){var i=v.ReferencesController.get(t);if(i)return o.TPromise.as(i.toggleWidget(new d.Range(n.lineNumber,n.column,n.lineNumber,n.column),o.TPromise.as(new _.ReferencesModel(s)),E)).then(function(){return!0})}})};a.CommandsRegistry.registerCommand("editor.action.findReferences",T),a.CommandsRegistry.registerCommand("editor.action.showReferences",{handler:x,description:{description:"Show references at a position in a file",args:[{name:"uri",description:"The text document in which to show references",constraint:i.default},{name:"position",description:"The position at which to show",constraint:c.Position.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array}]}}),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"closeReferenceSearch",weight:p.CommonEditorRegistry.commandWeight(50),primary:9,secondary:[1033],when:u.ContextKeyExpr.and(v.ctxReferenceSearchVisible,u.ContextKeyExpr.not("config.editor.stablePeek")),handler:b}),l.KeybindingsRegistry.registerCommandAndKeybindingRule({id:"closeReferenceSearchEditor",weight:p.CommonEditorRegistry.commandWeight(-101),primary:9,secondary:[1033],when:u.ContextKeyExpr.and(f.PeekContext.inPeekEditor,u.ContextKeyExpr.not("config.editor.stablePeek")),handler:b});var M}),define(d[260],h([0,1,168,170,449,362,450,451,452,454,455,456,125,459,462,512,464,467,386,468,427,470,471,472,428,475,478,229,486,487,93,238,493,489,494,423,495,460]),function(e,t){"use strict"}),define(d[515],h([0,1,140,508,509,42,260,483,480,481,469]),function(e,t,n,i,o,r){"use strict";r.DefaultConfig.editor.wrappingIndent="none",r.DefaultConfig.editor.folding=!1,r.DefaultConfig.editor.glyphMargin=!1;var s=self;s.monaco=n.createMonacoBaseAPI(),s.monaco.editor=i.createMonacoEditorAPI(),s.monaco.languages=o.createMonacoLanguagesAPI(),"undefined"!=typeof s.require&&"function"==typeof s.require.config&&s.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main"]})})}).call(this); - -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-typescript version: 2.1.2(a210d77cf42d35831932c488f3869e7dbbcd995a) - * Released under the MIT license - * https://github.com/Microsoft/monaco-typescript/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -define("vs/language/typescript/src/monaco.contribution",["require","exports","vs/editor/edcore.main"],function(e,t){"use strict";function n(){return new monaco.Promise(function(e,t){r(function(n){n.getTypeScriptWorker().then(e,t)})})}function i(){return new monaco.Promise(function(e,t){r(function(n){n.getJavaScriptWorker().then(e,t)})})}function o(){return{ModuleKind:c,JsxEmit:p,NewLineKind:u,ScriptTarget:f,ModuleResolutionKind:d,typescriptDefaults:S,javascriptDefaults:m,getTypeScriptWorker:n,getJavaScriptWorker:i}}function r(t){e(["vs/language/typescript/src/mode"],t)}var a=monaco.Emitter,s=function(){function e(e,t){this._onDidChange=new a,this._extraLibs=Object.create(null),this._workerMaxIdleTime=12e4,this.setCompilerOptions(e),this.setDiagnosticsOptions(t)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),e.prototype.getExtraLibs=function(){var e=Object.create(null);for(var t in this._extraLibs)e[t]=this._extraLibs[t];return Object.freeze(e)},e.prototype.addExtraLib=function(e,t){var n=this;if("undefined"==typeof t&&(t="ts:extralib-"+Date.now()),this._extraLibs[t])throw new Error(t+" already a extra lib");return this._extraLibs[t]=e,this._onDidChange.fire(this),{dispose:function(){delete n._extraLibs[t]&&n._onDidChange.fire(n)}}},e.prototype.getCompilerOptions=function(){return this._compilerOptions},e.prototype.setCompilerOptions=function(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.getDiagnosticsOptions=function(){return this._diagnosticsOptions},e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e.prototype.setMaximunWorkerIdleTime=function(e){this._workerMaxIdleTime=e},e.prototype.getWorkerMaxIdleTime=function(){return this._workerMaxIdleTime},e}();t.LanguageServiceDefaultsImpl=s;var c;!function(e){e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015"}(c||(c={}));var p;!function(e){e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React"}(p||(p={}));var u;!function(e){e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed"}(u||(u={}));var l;!function(e){e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX"}(l||(l={}));var f;!function(e){e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ESNext=5]="ESNext",e[e.Latest=5]="Latest"}(f||(f={}));var g;!function(e){e[e.Standard=0]="Standard",e[e.JSX=1]="JSX"}(g||(g={}));var d;!function(e){e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs"}(d||(d={}));var S=new s({allowNonTsExtensions:!0,target:f.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),m=new s({allowNonTsExtensions:!0,allowJs:!0,target:f.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});monaco.languages.typescript=o(),monaco.languages.register({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"]}),monaco.languages.onLanguage("typescript",function(){r(function(e){return e.setupTypeScript(S)})}),monaco.languages.register({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"]}),monaco.languages.onLanguage("javascript",function(){r(function(e){return e.setupJavaScript(m)})})}); -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-css version: 1.3.1(6787816d8e12533292fca5e861cc1769c775d1e7) - * Released under the MIT license - * https://github.com/Microsoft/monaco-css/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -!function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define("vs/language/css/monaco.contribution",["require","exports","vs/editor/edcore.main"],e)}(function(e,n){function o(){return{cssDefaults:a,lessDefaults:g,scssDefaults:u}}function t(n){e(["vs/language/css/cssMode"],n)}var i=monaco.Emitter,r=function(){function e(e,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e}();n.LanguageServiceDefaultsImpl=r;var s={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore","float":"ignore",idSelector:"ignore"}},a=new r("css",s),u=new r("scss",s),g=new r("less",s);monaco.languages.css=o(),monaco.languages.onLanguage("less",function(){t(function(e){return e.setupMode(g)})}),monaco.languages.onLanguage("scss",function(){t(function(e){return e.setupMode(u)})}),monaco.languages.onLanguage("css",function(){t(function(e){return e.setupMode(a)})})}); -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-json version: 1.2.2(5618dbdb4f72c31da0555b463daa3b053decf40a) - * Released under the MIT license - * https://github.com/Microsoft/monaco-json/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -!function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define("vs/language/json/monaco.contribution",["require","exports","vs/editor/edcore.main"],e)}(function(e,n){function o(){return{jsonDefaults:r}}function t(n){e(["vs/language/json/jsonMode"],n)}var i=monaco.Emitter,s=function(){function e(e,n){this._onDidChange=new i,this._languageId=e,this.setDiagnosticsOptions(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)},e}();n.LanguageServiceDefaultsImpl=s;var a={validate:!0,allowComments:!0,schemas:[]},r=new s("json",a);monaco.languages.json=o(),monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){t(function(e){return e.setupMode(r)})})}); -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-html version: 1.2.1(f1b96cadd5996161d6caaa3dfdf7c39b381053e8) - * Released under the MIT license - * https://github.com/Microsoft/monaco-html/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -!function(e){if("object"==typeof module&&"object"==typeof module.exports){var n=e(require,exports);void 0!==n&&(module.exports=n)}else"function"==typeof define&&define.amd&&define("vs/language/html/monaco.contribution",["require","exports","vs/editor/edcore.main"],e)}(function(e,n){function t(){return{htmlDefaults:m,razorDefaults:d,handlebarDefaults:p}}function o(n){e(["vs/language/html/htmlMode"],n)}var a=monaco.Emitter,r=function(){function e(e,n){this._onDidChange=new a,this._languageId=e,this.setOptions(n)}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),e.prototype.setOptions=function(e){this._options=e||Object.create(null),this._onDidChange.fire(this)},e}();n.LanguageServiceDefaultsImpl=r;var i={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:null,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},u={format:i,suggest:{html5:!0,angular1:!0,ionic:!0}},s={format:i,suggest:{html5:!0}},l={format:i,suggest:{html5:!0,razor:!0}},g="html",c="handlebars",f="razor",m=new r(g,u),d=new r(c,s),p=new r(f,l);monaco.languages.html=t(),monaco.languages.onLanguage(g,function(){o(function(e){return e.setupMode(m)})}),monaco.languages.onLanguage(c,function(){o(function(e){return e.setupMode(d)})}),monaco.languages.onLanguage(f,function(){o(function(e){return e.setupMode(p)})})}); -/*!----------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * monaco-languages version: 0.7.0(18916e97a4ff0f1b195d68d01d632631cc84d50e) - * Released under the MIT license - * https://github.com/Microsoft/monaco-languages/blob/master/LICENSE.md - *-----------------------------------------------------------------------------*/ -define("vs/basic-languages/src/monaco.contribution",["require","exports","vs/editor/edcore.main"],function(e,s){function i(s){var i=l[s].module;return new o.Promise(function(a,t,l){e([i],function(e){o.languages.setMonarchTokensProvider(s,e.language),o.languages.setLanguageConfiguration(s,e.conf),a(void 0)},t)})}function a(e){return n[e]||(n[e]=i(e)),n[e]}function t(e){var s=e.id;l[s]=e,o.languages.register(e),o.languages.onLanguage(s,function(){a(s)})}var o="undefined"==typeof monaco?self.monaco:monaco,l={},n={};s.loadLanguage=a,t({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],module:"./bat"}),t({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],module:"./coffee"}),t({id:"c",extensions:[".c",".h"],aliases:["C","c"],module:"./cpp"}),t({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],module:"./cpp"}),t({id:"csharp",extensions:[".cs",".csx"],aliases:["C#","csharp"],module:"./csharp"}),t({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],module:"./dockerfile"}),t({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],module:"./fsharp"}),t({id:"go",extensions:[".go"],aliases:["Go"],module:"./go"}),t({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],module:"./handlebars"}),t({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],module:"./html"}),t({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],module:"./ini"}),t({id:"jade",extensions:[".jade",".pug"],aliases:["Jade","jade"],module:"./jade"}),t({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],module:"./java"}),t({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],module:"./lua"}),t({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],module:"./markdown"}),t({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],module:"./objective-c"}),t({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],module:"./postiats"}),t({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],module:"./php"}),t({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],module:"./powershell"}),t({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",module:"./python"}),t({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],module:"./r"}),t({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],module:"./razor"}),t({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],module:"./ruby"}),t({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],module:"./swift"}),t({id:"sql",extensions:[".sql"],aliases:["SQL"],module:"./sql"}),t({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],module:"./vb"}),t({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz"],firstLine:"(\\<\\?xml.*)|(\\