diff --git a/BismNormalizer/AlmToolkit/Properties/AssemblyInfo.cs b/BismNormalizer/AlmToolkit/Properties/AssemblyInfo.cs index c1edbf8..8c6f3c7 100644 --- a/BismNormalizer/AlmToolkit/Properties/AssemblyInfo.cs +++ b/BismNormalizer/AlmToolkit/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.31.0")] -[assembly: AssemblyFileVersion("5.0.31.0")] +[assembly: AssemblyVersion("5.0.32.0")] +[assembly: AssemblyFileVersion("5.0.32.0")] diff --git a/BismNormalizer/AlmToolkit/html-resources/dist/main.bundle.js b/BismNormalizer/AlmToolkit/html-resources/dist/main.bundle.js index 656de2e..72adbe2 100644 --- a/BismNormalizer/AlmToolkit/html-resources/dist/main.bundle.js +++ b/BismNormalizer/AlmToolkit/html-resources/dist/main.bundle.js @@ -1 +1 @@ -webpackJsonp([44],{"+0Qw":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Uncomment to see lines flashing when they're painted */\n\n/*.monaco-editor .view-lines > .view-line {\n\tbackground-color: none;\n\tanimation-name: flash-background;\n\tanimation-duration: 800ms;\n}\n@keyframes flash-background {\n\t0% { background-color: lightgreen; }\n\t100% { background-color: none }\n}*/\n\n.monaco-editor.safari .lines-content,\n.monaco-editor.safari .view-line,\n.monaco-editor.safari .view-lines {\n\t-webkit-user-select: text;\n\t-moz-user-select: text;\n\t -ms-user-select: text;\n\t user-select: text;\n}\n\n.monaco-editor .lines-content,\n.monaco-editor .view-line,\n.monaco-editor .view-lines {\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\t-moz-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-editor .view-lines {\n\tcursor: text;\n\twhite-space: nowrap;\n}\n\n.monaco-editor.vs-dark.mac .view-lines,\n.monaco-editor.hc-black.mac .view-lines {\n\tcursor: -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;\n}\n\n.monaco-editor .view-line {\n\tposition: absolute;\n\twidth: 100%;\n}\n\n/* TODO@tokenization bootstrap fix */\n\n/*.monaco-editor .view-line > span > span {\n\tfloat: none;\n\tmin-height: inherit;\n\tmargin-left: inherit;\n}*/"},"+3/4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t){e.call(this),this.scheduler=t}return Object(i.c)(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(n("YaPU").a)},"+CnV":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){var t,i=n("AMGY").a.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}()},"+Tn7":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view {\n\tposition: absolute;\n\tz-index: 1000;\n}"},"/iUD":function(e,t,n){"use strict";t.a=function(e){return"function"==typeof e}},"/nXB":function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===a&&1===e.length&&e[0]instanceof i.a?e[0]:Object(s.a)(n)(new o.a(e,a))};var i=n("YaPU"),o=n("Veqx"),r=n("1Q68"),s=n("8D5t")},0:function(e,t,n){e.exports=n("x35b")},"0P3J":function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new r(e))}};var i=n("TToO"),o=n("OVmG"),r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new s(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),s=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.c)(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(o.a)},"0u1n":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-count-badge {\n\tpadding: 0.2em 0.5em;\n\tborder-radius: 1em;\n\tfont-size: 85%;\n\tfont-weight: normal;\n\ttext-align: center;\n\tdisplay: inline;\n}"},"14gL":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box-dropdown-container {\n\tdisplay: none;\n}\n\n.monaco-select-box-dropdown-container.visible {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\ttext-align: left;\n\twidth: 1px;\n\toverflow: hidden;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\t-webkit-box-flex: 0;\n\t -ms-flex: 0 0 auto;\n\t flex: 0 0 auto;\n\t-ms-flex-item-align: start;\n\t align-self: flex-start;\n\tpadding-bottom: 1px;\n\tpadding-top: 1px;\n\tpadding-left: 1px;\n\tpadding-right: 1px;\n\twidth: 100%;\n\toverflow: hidden;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n}\n\n.hc-black .monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tpadding-bottom: 4px;\n\tpadding-top: 3px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1 1 auto;\n\t flex: 1 1 auto;\n\t-ms-flex-item-align: start;\n\t align-self: flex-start;\n\topacity: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div {\n\toverflow: hidden;\n\tmax-height: 0px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div > .option-text-width-control {\n\tpadding-left: 4px;\n\tpadding-right: 8px;\n\twhite-space: nowrap;\n}\n"},"1Bqh":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return Object(i.c)(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("VwZZ").a)},"1LBi":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .rename-box {\n\tz-index: 100;\n\tcolor: inherit;\n}\n\n.monaco-editor .rename-box .rename-input {\n\tpadding: 4px;\n}\n"},"1O6n":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-progress-container {\n\twidth: 100%;\n\theight: 5px;\n\toverflow: hidden; /* keep progress bit in bounds */\n}\n\n.monaco-progress-container .progress-bit {\n\twidth: 2%;\n\theight: 5px;\n\tposition: absolute;\n\tleft: 0;\n\tdisplay: none;\n}\n\n.monaco-progress-container.active .progress-bit {\n\tdisplay: inherit;\n}\n\n.monaco-progress-container.discrete .progress-bit {\n\tleft: 0;\n\ttransition: width 100ms linear;\n\t-webkit-transition: width 100ms linear;\n\t-o-transition: width 100ms linear;\n\t-moz-transition: width 100ms linear;\n\t-ms-transition: width 100ms linear;\n}\n\n.monaco-progress-container.discrete.done .progress-bit {\n\twidth: 100%;\n}\n\n.monaco-progress-container.infinite .progress-bit {\n\tanimation-name: progress;\n\tanimation-duration: 4s;\n\tanimation-iteration-count: infinite;\n\tanimation-timing-function: linear;\n\t-ms-animation-name: progress;\n\t-ms-animation-duration: 4s;\n\t-ms-animation-iteration-count: infinite;\n\t-ms-animation-timing-function: linear;\n\t-webkit-animation-name: progress;\n\t-webkit-animation-duration: 4s;\n\t-webkit-animation-iteration-count: infinite;\n\t-webkit-animation-timing-function: linear;\n\t-moz-animation-name: progress;\n\t-moz-animation-duration: 4s;\n\t-moz-animation-iteration-count: infinite;\n\t-moz-animation-timing-function: linear;\n\twill-change: transform;\n}\n\n/**\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\n * its relative size to the parent container:\n * 50%: 50 * 50 = 2500%\n * 100%: 50 * 100 - 50 (do not overflow): 4950%\n */\n\n@keyframes progress { from { -webkit-transform: translateX(0%) scaleX(1); transform: translateX(0%) scaleX(1) } 50% { -webkit-transform: translateX(2500%) scaleX(3); transform: translateX(2500%) scaleX(3) } to { -webkit-transform: translateX(4950%) scaleX(1); transform: translateX(4950%) scaleX(1) } }\n\n@-webkit-keyframes progress { from { -webkit-transform: translateX(0%) scaleX(1); transform: translateX(0%) scaleX(1) }\t50% { -webkit-transform: translateX(2500%) scaleX(3); transform: translateX(2500%) scaleX(3) } to { -webkit-transform: translateX(4950%) scaleX(1); transform: translateX(4950%) scaleX(1) } }"},"1Q68":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"1Z8u":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .codelens-decoration {\n\toverflow: hidden;\n\tdisplay: inline-block;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-editor .codelens-decoration > span,\n.monaco-editor .codelens-decoration > a {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tvertical-align: sub;\n}\n\n.monaco-editor .codelens-decoration > a {\n\ttext-decoration: none;\n}\n\n.monaco-editor .codelens-decoration > a:hover {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}\n\n.monaco-editor .codelens-decoration.invisible-cl {\n\topacity: 0;\n}\n\n@keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }\n\n@-webkit-keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }\n\n.monaco-editor .codelens-decoration.fadein {\n\t-webkit-animation: fadein 0.5s linear;\n\tanimation: fadein 0.5s linear;\n}\n"},"1mBN":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .peekview-widget .head {\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing: border-box;\n\t-ms-box-sizing: border-box;\n\tbox-sizing:\tborder-box;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title {\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-left: 20px;\n\tcursor: pointer;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\n\tfont-size: 0.9em;\n\tmargin-left: 0.5em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\ttext-align: right;\n\tpadding-right: 2px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\n\theight: 100%;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item {\n\tmargin-left: 4px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label {\n\twidth: 16px;\n\theight: 100%;\n\tmargin: 0;\n\tline-height: inherit;\n\tbackground-repeat: no-repeat;\n\tbackground-position: center center;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.octicon {\n\tmargin: 0;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-editor .peekview-widget > .body {\n\tborder-top: 1px solid;\n\tposition: relative;\n}\n\n/* Dark Theme */\n\n/* High Contrast Theme */\n\n.monaco-editor.hc-black .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action,\n.monaco-editor.vs-dark .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n'},"2ZBE":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tposition: absolute;\n\twidth: 600px;\n\tz-index: 2000;\n\tpadding-bottom: 6px;\n\tleft: 50%;\n\tmargin-left: -300px;\n}\n\n.monaco-quick-open-widget .monaco-progress-container {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 38px;\n\tz-index: 1;\n\theight: 2px;\n}\n\n.monaco-quick-open-widget .monaco-progress-container .progress-bit {\n\theight: 2px;\n}\n\n.monaco-quick-open-widget .quick-open-input {\n\twidth: 588px;\n\tborder: none;\n\tmargin: 6px;\n}\n\n.monaco-quick-open-widget .quick-open-input .monaco-inputbox {\n\twidth: 100%;\n\theight: 25px;\n}\n\n.monaco-quick-open-widget .quick-open-tree {\n\tline-height: 22px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row > .content > .sub-content {\n\toverflow: hidden;\n}\n\n.monaco-quick-open-widget.content-changing .quick-open-tree .monaco-scrollable-element .slider {\n\tdisplay: none; /* scrollbar slider causes some hectic updates when input changes quickly, so hide it while quick open changes */\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\theight: 100%;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry > .quick-open-row {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\toverflow: hidden;\n\twidth: 16px;\n\theight: 16px;\n\tmargin-right: 4px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\t-ms-flex-negative: 0;\n\t flex-shrink: 0;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-icon-label,\n.monaco-quick-open-widget .quick-open-tree .monaco-icon-label .monaco-icon-label-description-container {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1; /* make sure the icon label grows within the row */\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .monaco-highlighted-label span {\n\topacity: 1;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry-meta {\n\topacity: 0.7;\n\tline-height: normal;\n}\n\n.monaco-quick-open-widget .quick-open-tree .content.has-group-label .quick-open-entry-keybinding {\n\tmargin-right: 8px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry-keybinding .monaco-keybinding-key {\n\tvertical-align: text-bottom;\n}\n\n.monaco-quick-open-widget .quick-open-tree .results-group {\n\tmargin-right: 18px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row.focused > .content.has-actions > .results-group,\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row:hover:not(.highlighted) > .content.has-actions > .results-group,\n.monaco-quick-open-widget .quick-open-tree .focused .monaco-tree-row.focused > .content.has-actions > .results-group {\n\tmargin-right: 0px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .results-group-separator {\n\tborder-top-width: 1px;\n\tborder-top-style: solid;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tmargin-left: -11px;\n\tpadding-left: 11px;\n}\n\n/* Actions in Quick Open Items */\n\n.monaco-tree .monaco-tree-row > .content.actions {\n\tposition: relative;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .sub-content {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions .action-item {\n\tmargin: 0;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar {\n\tline-height: 22px;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar {\n\tdisplay: none;\n\tpadding: 0 0.8em 0 0.4em;\n}\n\n.monaco-tree .monaco-tree-row.focused > .content.has-actions > .primary-action-bar {\n\twidth: 0; /* in order to support a11y with keyboard, we use width: 0 to hide the actions, which still allows to "Tab" into the actions */\n\tdisplay: block;\n}\n\n.monaco-tree .monaco-tree-row:hover:not(.highlighted) > .content.has-actions > .primary-action-bar,\n.monaco-tree.focused .monaco-tree-row.focused > .content.has-actions > .primary-action-bar,\n.monaco-tree .monaco-tree-row > .content.has-actions.more > .primary-action-bar {\n\twidth: inherit;\n\tdisplay: block;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar .action-label {\n\tmargin-right: 0.4em;\n\tmargin-top: 4px;\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-highlighted-label .highlight {\n\tfont-weight: bold;\n}'},"3ZDw":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\n\tborder-right: 0;\n}"},"3a3m":function(e,t,n){"use strict";t.a=function(){return function(e){return Object(o.a)()(Object(i.a)(s)(e))}};var i=n("Jwyl"),o=n("0P3J"),r=n("g5jc");function s(){return new r.a}},"3j2o":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-menu .monaco-action-bar.vertical .action-label.hover {\n\tbackground-color: #EEE;\n}"},"4Yhh":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -------------------- IE10 remove auto clear button -------------------- */\n\n::-ms-clear {\n\tdisplay: none;\n}\n\n/* All widgets */\n\n/* I am not a big fan of this rule */\n\n.monaco-editor .editor-widget input {\n\tcolor: inherit;\n}\n\n/* -------------------- Editor -------------------- */\n\n.monaco-editor {\n\tposition: relative;\n\toverflow: visible;\n\t-webkit-text-size-adjust: 100%;\n\t-webkit-font-feature-settings: "liga" off, "calt" off;\n\tfont-feature-settings: "liga" off, "calt" off;\n}\n\n.monaco-editor.enable-ligatures {\n\t-webkit-font-feature-settings: "liga" on, "calt" on;\n\tfont-feature-settings: "liga" on, "calt" on;\n}\n\n/* -------------------- Misc -------------------- */\n\n.monaco-editor .overflow-guard {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.monaco-editor .view-overlays {\n\tposition: absolute;\n\ttop: 0;\n}'},"5RGO":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-ruler {\n\tposition: absolute;\n\ttop: 0;\n}"},"5kgg":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-diff-editor .diff-review-line-number {\n\ttext-align: right;\n\tdisplay: inline-block;\n}\n\n.monaco-diff-editor .diff-review {\n\tposition: absolute;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\t-moz-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-diff-editor .diff-review-summary {\n\tpadding-left: 10px;\n}\n\n.monaco-diff-editor .diff-review-shadow {\n\tposition: absolute;\n}\n\n.monaco-diff-editor .diff-review-row {\n\twhite-space: pre;\n}\n\n.monaco-diff-editor .diff-review-table {\n\tdisplay: table;\n\tmin-width: 100%;\n}\n\n.monaco-diff-editor .diff-review-row {\n\tdisplay: table-row;\n\twidth: 100%;\n}\n\n.monaco-diff-editor .diff-review-cell {\n\tdisplay: table-cell;\n}\n\n.monaco-diff-editor .diff-review-spacer {\n\tdisplay: inline-block;\n\twidth: 10px;\n}\n\n.monaco-diff-editor .diff-review-actions {\n\tdisplay: inline-block;\n\tposition: absolute;\n\tright: 10px;\n\ttop: 2px;\n}\n\n.monaco-diff-editor .diff-review-actions .action-label {\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 0;\n}\n\n.monaco-diff-editor .action-label.icon.close-diff-review {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-diff-editor.hc-black .action-label.icon.close-diff-review,\n.monaco-diff-editor.vs-dark .action-label.icon.close-diff-review {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}'},"67ys":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-tree {\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: -moz-none;\n\t-ms-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n\tposition: relative;\n}\n.monaco-tree > .monaco-scrollable-element {\n\theight: 100%;\n}\n.monaco-tree > .monaco-scrollable-element > .monaco-tree-wrapper {\n\theight: 100%;\n\twidth: 100%;\n\tposition: relative;\n}\n.monaco-tree .monaco-tree-rows {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row {\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\t-webkit-box-sizing:\t\t\tborder-box;\n\t box-sizing:\t\t\tborder-box;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 100%;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content {\n\tposition: relative;\n\theight: 100%;\n}\n.monaco-tree-drag-image {\n\tdisplay: inline-block;\n\tpadding: 1px 7px;\n\tborder-radius: 10px;\n\tfont-size: 12px;\n\tposition: absolute;\n}\n/* for OS X ballistic scrolling */\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.scrolling {\n\tdisplay: none;\n}\n/* Expansion */\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\n\tcontent: \' \';\n\tposition: absolute;\n\tdisplay: block;\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==") 50% 50% no-repeat;\n\twidth: 16px;\n\theight: 100%;\n\ttop: 0;\n\tleft: -16px;\n}\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg==");\n}\n/* Highlighted */\n.monaco-tree.highlighted .monaco-tree-rows > .monaco-tree-row:not(.highlighted) {\n\topacity: 0.3;\n}\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==");\n}\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\n}\n.vs-dark .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo=");\n}\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before\t{\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n.hc-black .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K");\n}\n.monaco-tree-action.collapse-all {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiMwMDUzOUMiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\n}\n.hc-black .monaco-tree-action.collapse-all,\n.vs-dark .monaco-tree-action.collapse-all {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiM3NUJFRkYiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\n}\n'},"7Do+":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .line-numbers {\n\tposition: absolute;\n\ttext-align: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tcursor: default;\n\theight: 100%;\n}\n\n.monaco-editor .relative-current-line-number {\n\ttext-align: left;\n\tdisplay: inline-block;\n\twidth: 100%;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers {\n\tcursor: -webkit-image-set(\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjE7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcuMSwxMy44IDQuNSwxOS4xIDcuNywyMC4xIDEwLjMsMTQuOSAxNC41LDE4Ii8+PC9zdmc+") 1x,\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzMCA0MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNDI7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQuMywyNy42IDksMzguMSAxNS40LDQwLjIgMjAuNiwyOS43IDI5LDM2Ii8+PC9zdmc+Cg==") 2x\n\t) 30 0, default;\n}\n\n.monaco-editor.mac .margin-view-overlays .line-numbers {\n\tcursor: -webkit-image-set(\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDEyIDE4Ij48c3R5bGU+LnN0MHtmaWxsOiNmZmZ9PC9zdHlsZT48dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBkPSJNNC4zIDE2LjVsMS42LTQuNkgxLjFMMTEuNSAxLjJ2MTQuNEw4LjcgMTNsLTEuNiA0LjV6Ii8+PHBhdGggY2xhc3M9InN0MCIgZD0iTTExIDE0LjVsLTIuNS0yLjNMNyAxNi43IDUgMTZsMS42LTQuNWgtNGw4LjUtOU0wIDEyLjVoNS4ybC0xLjUgNC4xTDcuNSAxOCA5IDE0LjJsMi45IDIuM1YwTDAgMTIuNXoiLz48L3N2Zz4=") 1x,\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDI0IDM2LjEiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5mbGlwcGVkLWN1cnNvci1tYWMtMng8L3RpdGxlPjxwb2x5Z29uIHBvaW50cz0iOC42IDMzLjEgMTEuOCAyMy45IDIuMiAyMy45IDIzIDIuNSAyMyAzMS4zIDE3LjQgMjYuMSAxNC4yIDM1LjEgOC42IDMzLjEiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTIyLDI5LjFsLTUtNC42LTMuMDYyLDguOTM4LTQuMDYyLTEuNUwxMywyM0g1TDIyLDVNMCwyNUgxMC40bC0zLDguM0wxNSwzNi4xbDMuMTI1LTcuNjYyTDI0LDMzVjBaIi8+PC9zdmc+") 2x\n\t) 24 3, default;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\n\tmargin-top: 1px;\n}\n'},"84z/":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcdr = core decorations rendering (div)\n*/\n\n.monaco-editor .lines-content .cdr {\n\tposition: absolute;\n}"},"8D5t":function(e,t,n){"use strict";t.a=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(i.a)(o.a,null,e)};var i=n("Qnch"),o=n("lAP5")},"8EM9":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .cursors-layer {\n\tposition: absolute;\n\ttop: 0;\n}\n.monaco-editor .cursors-layer > .cursor {\n\tposition: absolute;\n\tcursor: text;\n\toverflow: hidden;\n}\n/* -- block-outline-style -- */\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: transparent !important;\n\tborder-style: solid;\n\tborder-width: 1px;\n}\n/* -- underline-style -- */\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\n\tborder-bottom-width: 2px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n/* -- underline-thin-style -- */\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\n\tborder-bottom-width: 1px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n@-webkit-keyframes monaco-cursor-smooth {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t60%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@keyframes monaco-cursor-smooth {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t60%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@-webkit-keyframes monaco-cursor-phase {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t90%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@keyframes monaco-cursor-phase {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t90%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@-webkit-keyframes monaco-cursor-expand {\n\t0%,\n\t20% {\n\t\t-webkit-transform: scaleY(1);\n\t\t transform: scaleY(1);\n\t}\n\t80%,\n\t100% {\n\t\t-webkit-transform: scaleY(0);\n\t\t transform: scaleY(0);\n\t}\n}\n@keyframes monaco-cursor-expand {\n\t0%,\n\t20% {\n\t\t-webkit-transform: scaleY(1);\n\t\t transform: scaleY(1);\n\t}\n\t80%,\n\t100% {\n\t\t-webkit-transform: scaleY(0);\n\t\t transform: scaleY(0);\n\t}\n}\n.cursor-smooth {\n\t-webkit-animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n}\n.cursor-phase {\n\t-webkit-animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n}\n.cursor-expand > .cursor {\n\t-webkit-animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n}"},"8dAB":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .accessibilityHelpWidget {\n\tpadding: 10px;\n\tvertical-align: middle;\n\toverflow: scroll;\n}"},"9Dq5":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\t-webkit-transform: none;\n\ttransform: none;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-box;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\t-webkit-transform: none;\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground-color: #E4E4E4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground-color: #EEE;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\t-ms-flex: 1 1 auto;\n\t-webkit-box-flex: 1;\n\t flex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0.8em 1em;\n\tline-height: 1.1em;\n\tbackground: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tdisplay: inline-block;\n\t-ms-flex: 2 1 auto;\n\t-webkit-box-flex: 2;\n\t flex: 2 1 auto;\n\tpadding: 0.8em 1em;\n\tline-height: 1.1em;\n\tfont-size: 12px;\n\ttext-align: right;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\tfont-family: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";\n\toutline: 0;\n\t-webkit-box-shadow: 0 2px 8px #A8A8A8;\n\t box-shadow: 0 2px 8px #A8A8A8;\n\tborder: none;\n\tcolor: #646465;\n\tbackground-color: white;\n\t-webkit-animation: fadeIn 0.083s linear;\n\tanimation: fadeIn 0.083s linear;\n}\n\n.context-view.monaco-menu-container :focus {\n\toutline: 0;\n}\n\n/* Dark theme */\n\n.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground-color: #4B4C4D;\n}\n\n.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground-color: #3A3A3A;\n}\n\n.vs-dark .context-view.monaco-menu-container {\n\t-webkit-box-shadow: 0 2px 8px #000;\n\t box-shadow: 0 2px 8px #000;\n\tcolor: #BBB;\n\tbackground-color: #2D2F31;\n}\n\n/* High Contrast Theming */\n\n.hc-black .context-view.monaco-menu-container {\n\tborder: 2px solid #6FC3DF;\n\tcolor: white;\n\tbackground-color: #0C141F;\n\t-webkit-box-shadow: none;\n\t box-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n\tborder: 1px dotted #f38518;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground: none;\n\tborder: 1px dashed #f38518;\n}'},"9vcT":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inputarea {\n\tmin-width: 0;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\toutline: none !important;\n\tresize: none;\n\tborder: none;\n\toverflow: hidden;\n\tcolor: transparent;\n\tbackground-color: transparent;\n}\n\n/*.monaco-editor .inputarea {\n\tposition: fixed !important;\n\twidth: 800px !important;\n\theight: 500px !important;\n\ttop: initial !important;\n\tleft: initial !important;\n\tbottom: 0 !important;\n\tright: 0 !important;\n\tcolor: black !important;\n\tbackground: white !important;\n\tline-height: 15px !important;\n\tfont-size: 14px !important;\n}*/\n\n.monaco-editor .inputarea.ime-input {\n\tz-index: 10;\n}\n"},AMGY:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var i="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r=i||"undefined"!=typeof e&&e||o}).call(t,n("DuR2"))},BX3T:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},Bv73:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -- zone widget */\n\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\n\tborder-top-width: 1px;\n\tborder-bottom-width: 1px;\n}\n\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget.results-loaded {\n\t-webkit-transition: height 100ms ease-in;\n\ttransition: height 100ms ease-in;\n}\n\n.monaco-editor .reference-zone-widget .inline {\n\tdisplay: inline-block;\n\tvertical-align: top;\n}\n\n.monaco-editor .reference-zone-widget .messages {\n\theight: 100%;\n\twidth: 100%;\n\ttext-align: center;\n\tpadding: 3em 0;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree {\n\tline-height: 23px;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file {\n\tdisplay: -webkit-inline-box;\n\tdisplay: -ms-inline-flexbox;\n\tdisplay: inline-flex;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\n\tmargin-right: 12px;\n\tmargin-left: auto;\n}\n\n/* High Contrast Theming */\n\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {\n\tfont-weight: bold;\n}\n"},DIA9:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .goto-definition-link {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}"},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"EG+O":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .overlayWidgets {\n\tposition: absolute;\n\ttop: 0;\n\tleft:0;\n}"},Eawl:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}"},F5mM:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.colorpicker-widget {\n\theight: 190px;\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t -ms-user-select: none;\n\t user-select: none;\n}\n\n.monaco-editor .colorpicker-hover:focus {\n\toutline: none;\n}\n\n/* Header */\n\n.colorpicker-header {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\theight: 24px;\n\tposition: relative;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\t-ms-interpolation-mode: nearest-neighbor;\n\t image-rendering: -webkit-optimize-contrast;\n\t image-rendering: -moz-crisp-edges;\n\t image-rendering: -o-pixelated;\n\t image-rendering: pixelated;\n}\n\n.colorpicker-header .picked-color {\n\twidth: 216px;\n\ttext-align: center;\n\tline-height: 24px;\n\tcursor: pointer;\n\tcolor: white;\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\ttext-align: center;\n}\n\n.colorpicker-header .picked-color.light {\n\tcolor: black;\n}\n\n.colorpicker-header .original-color {\n\twidth: 74px;\n\tz-index: inherit;\n\tcursor: pointer;\n}\n\n/* Body */\n\n.colorpicker-body {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tpadding: 8px;\n\tposition: relative;\n}\n\n.colorpicker-body .saturation-wrap {\n\toverflow: hidden;\n\theight: 150px;\n\tposition: relative;\n\tmin-width: 220px;\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n}\n\n.colorpicker-body .saturation-box {\n\theight: 150px;\n\tposition: absolute;\n}\n\n.colorpicker-body .saturation-selection {\n\twidth: 9px;\n\theight: 9px;\n\tmargin: -5px 0 0 -5px;\n\tborder: 1px solid rgb(255, 255, 255);\n\tborder-radius: 100%;\n\t-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n\t box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n\tposition: absolute;\n}\n\n.colorpicker-body .strip {\n\twidth: 25px;\n\theight: 150px;\n}\n\n.colorpicker-body .hue-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: -webkit-grab;\n\tbackground: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(17%, #ffff00), color-stop(33%, #00ff00), color-stop(50%, #00ffff), color-stop(67%, #0000ff), color-stop(83%, #ff00ff), to(#ff0000));\n\tbackground: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.colorpicker-body .opacity-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: -webkit-grab;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\t-ms-interpolation-mode: nearest-neighbor;\n\t image-rendering: -webkit-optimize-contrast;\n\t image-rendering: -moz-crisp-edges;\n\t image-rendering: -o-pixelated;\n\t image-rendering: pixelated;\n}\n\n.colorpicker-body .strip.grabbing {\n\tcursor: -webkit-grabbing;\n}\n\n.colorpicker-body .slider {\n\tposition: absolute;\n\ttop: 0;\n\tleft: -2px;\n\twidth: calc(100% + 4px);\n\theight: 4px;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tborder: 1px solid rgba(255, 255, 255, 0.71);\n\t-webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n\t box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n}\n\n.colorpicker-body .strip .overlay {\n\theight: 150px;\n\tpointer-events: none;\n}'},GK6M:function(e,t,n){"use strict";t.a=function(e){return i=e,r};var i,o=n("fKB6");function r(){try{return i.apply(this,arguments)}catch(e){return o.a.e=e,o.a}}},Gu5N:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- DiffEditor ---------- */\n.monaco-diff-editor .diffOverview {\n\tz-index: 9;\n}\n/* colors not externalized: using transparancy on background */\n.monaco-diff-editor.vs\t\t\t.diffOverview { background: rgba(0, 0, 0, 0.03); }\n.monaco-diff-editor.vs-dark\t\t.diffOverview { background: rgba(255, 255, 255, 0.01); }\n.monaco-diff-editor .diffViewport {\n\t-webkit-box-shadow: inset 0px 0px 1px 0px #B9B9B9;\n\t box-shadow: inset 0px 0px 1px 0px #B9B9B9;\n\tbackground: rgba(0, 0, 0, 0.10);\n}\n.monaco-diff-editor.vs-dark .diffViewport,\n.monaco-diff-editor.hc-black .diffViewport {\n\tbackground: rgba(255, 255, 255, 0.10);\n}\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs\t\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black\t.scrollbar { background: none; }\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\n\tz-index: 10;\n}\n.modified-in-monaco-diff-editor\t\t\t\t.slider.active { background: rgba(171, 171, 171, .4); }\n.modified-in-monaco-diff-editor.hc-black\t.slider.active { background: none; }\n/* ---------- Diff ---------- */\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign,\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n\tbackground-size: 60%;\n\topacity: 0.7;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 50% 50%;\n}\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign {\n\topacity: 1;\n}\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4=");\n}\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjNDI0MjQyIi8+PC9zdmc+");\n}\n.monaco-editor.vs-dark .insert-sign,\n.monaco-diff-editor.vs-dark .insert-sign,\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjQzVDNUM1Ii8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiNDNUM1QzUiLz48L3N2Zz4=");\n}\n.monaco-editor.vs-dark .delete-sign,\n.monaco-diff-editor.vs-dark .delete-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjQzVDNUM1Ii8+PC9zdmc+");\n}\n.monaco-editor .inline-deleted-margin-view-zone {\n\ttext-align: right;\n}\n.monaco-editor .inline-added-margin-view-zone {\n\ttext-align: right;\n}\n.monaco-editor .diagonal-fill {\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII=");\n}\n.monaco-editor.vs-dark .diagonal-fill {\n\topacity: 0.2;\n}\n.monaco-editor.hc-black .diagonal-fill {\n\tbackground: none;\n}\n/* ---------- Inline Diff ---------- */\n.monaco-editor .view-zones .view-lines .view-line span {\n\tdisplay: inline-block;\n}\n'},Hv4S:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .zone-widget {\n\tposition: absolute;\n\tz-index: 10;\n}\n.monaco-editor .zone-widget .zone-widget-container {\n\tborder-top-style: solid;\n\tborder-bottom-style: solid;\n\tborder-top-width: 0;\n\tborder-bottom-width: 0;\n\tposition: relative;\n}\n"},IBAp:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.vs .monaco-custom-checkbox.monaco-case-sensitive {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive,\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive:hover,\n.vs-dark .monaco-custom-checkbox.monaco-case-sensitive {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.vs .monaco-custom-checkbox.monaco-whole-word {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-whole-word,\n.hc-black .monaco-custom-checkbox.monaco-whole-word:hover,\n.vs-dark .monaco-custom-checkbox.monaco-whole-word {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.vs .monaco-custom-checkbox.monaco-regex {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0Y2RjZGNiIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjNDI0MjQyIj48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-regex,\n.hc-black .monaco-custom-checkbox.monaco-regex:hover,\n.vs-dark .monaco-custom-checkbox.monaco-regex {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iIzJkMmQzMCIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n'},IOV5:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .bracket-match {\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n"},JcY2:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .lightbulb-glyph {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n\t-webkit-box-pack: center;\n\t -ms-flex-pack: center;\n\t justify-content: center;\n\theight: 16px;\n\twidth: 20px;\n\tpadding-left: 2px;\n}\n\n.monaco-editor .lightbulb-glyph:hover {\n\tcursor: pointer;\n\t/* transform: scale(1.3, 1.3); */\n}\n\n.monaco-editor.vs .lightbulb-glyph {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iI0Y2RjZGNiIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjODQ4NDg0Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjZmMwIiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjRjBFRkYxIiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-editor.vs-dark .lightbulb-glyph,\n.monaco-editor.hc-black .lightbulb-glyph {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iIzFFMUUxRSIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjRERCMjA0IiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjMjUyNTI2IiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") center center no-repeat;\n}\n'},Jnfr:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="Jnfr"},Jwyl:function(e,t,n){"use strict";var i=n("TToO"),o=n("g5jc"),r=n("YaPU"),s=(n("OVmG"),n("VwZZ")),a=n("0P3J"),u=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.c)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=s.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Object(a.a)()(this)},t}(r.a).prototype,l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}},c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.c)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);t.a=function(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new d(i,t));var o=Object.create(n,l);return o.source=n,o.subjectFactory=i,o}};var d=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},e}()},KL86:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-aria-container {\n\tposition: absolute; /* try to hide from window but not from screen readers */\n\tleft:-999em;\n}"},KU51:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* ---------- Icon label ---------- */\n\n.monaco-icon-label {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex; /* required for icons support :before rule */\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label::before {\n\n\t/* svg icons rendered as background image */\n\tbackground-size: 16px;\n\tbackground-position: left center;\n\tbackground-repeat: no-repeat;\n\tpadding-right: 6px;\n\twidth: 16px;\n\theight: 22px;\n\tdisplay: inline-block;\n\n\t/* fonts icons */\n\t-webkit-font-smoothing: antialiased;\n\tvertical-align: top;\n\n\t-ms-flex-negative: 0;\n\n\t flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container {\n\toverflow: hidden; /* this causes the label/description to shrink first if decorations are enabled */\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container > .label-name {\n\tcolor: inherit;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container > .label-description {\n\topacity: 0.7;\n\tmargin-left: 0.5em;\n\tfont-size: 0.9em;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label.italic > .monaco-icon-label-description-container > .label-name,\n.monaco-icon-label.italic > .monaco-icon-label-description-container > .label-description {\n\tfont-style: italic;\n}\n\n.monaco-icon-label::after {\n\topacity: 0.75;\n\tfont-size: 90%;\n\tfont-weight: 600;\n\tpadding: 0 12px 0 5px;\n\tmargin-left: auto;\n\ttext-align: center;\n}\n\n/* make sure selection color wins when a label is being selected */\n\n.monaco-tree.focused .selected .monaco-icon-label, /* tree */\n.monaco-tree.focused .selected .monaco-icon-label::after,\n.monaco-list:focus .selected .monaco-icon-label, /* list */\n.monaco-list:focus .selected .monaco-icon-label::after\n{\n\tcolor: inherit !important;\n}\n"},LC7R:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-action-bar .actions-container {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\t-webkit-box-pack: end;\n\t -ms-flex-pack: end;\n\t justify-content: flex-end;\n}\n\n.monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar.reverse .actions-container {\n\t-webkit-box-orient: horizontal;\n\t-webkit-box-direction: reverse;\n\t -ms-flex-direction: row-reverse;\n\t flex-direction: row-reverse;\n}\n\n.monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\t-webkit-transition: -webkit-transform 50ms ease;\n\ttransition: -webkit-transform 50ms ease;\n\ttransition: transform 50ms ease;\n\ttransition: transform 50ms ease, -webkit-transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-action-bar.animated .action-item.active { /* 1.272019649 = \u221a\u03c6 */\n\t-webkit-transform: scale(1.272019649, 1.272019649);\n\ttransform: scale(1.272019649, 1.272019649);\n}\n\n.monaco-action-bar .action-item .icon {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar .action-label {\n\tfont-size: 12px;\n\tmargin-right: 0.3em;\n}\n\n.monaco-action-bar .action-label.octicon {\n\tfont-size: 15px;\n\tline-height: 35px;\n\ttext-align: center;\n}\n\n.monaco-action-bar .action-item.disabled .action-label,\n.monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-action-bar.animated.vertical .action-item.active {\n\t-webkit-transform: translate(5px, 0);\n\ttransform: translate(5px, 0);\n}\n\n.secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n\n.monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tmargin-right: 10px;\n}"},LCUL:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-sash {\n\tposition: absolute;\n\tz-index: 90;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n\n.monaco-sash.vertical {\n\tcursor: ew-resize;\n\theight: 100%;\n\ttop: 0;\n}\n\n.monaco-sash.horizontal {\n\tcursor: ns-resize;\n\twidth: 100%;\n\tleft: 0;\n}\n\n.monaco-sash.disabled {\n\tcursor: default !important;\n}\n\n/** Custom Mac Cursor */\n\n.monaco-sash.mac.vertical {\n\tcursor: col-resize;\n}\n\n.monaco-sash.mac.horizontal {\n\tcursor: row-resize;\n}"},MfYP:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcslr = core selections layer rendering (div)\n*/\n\n.monaco-editor .lines-content .cslr {\n\tposition: absolute;\n}\n\n.monaco-editor\t\t\t.top-left-radius\t\t{ border-top-left-radius: 3px; }\n\n.monaco-editor\t\t\t.bottom-left-radius\t\t{ border-bottom-left-radius: 3px; }\n\n.monaco-editor\t\t\t.top-right-radius\t\t{ border-top-right-radius: 3px; }\n\n.monaco-editor\t\t\t.bottom-right-radius\t{ border-bottom-right-radius: 3px; }\n\n.monaco-editor.hc-black .top-left-radius\t\t{ border-top-left-radius: 0; }\n\n.monaco-editor.hc-black .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\n\n.monaco-editor.hc-black .top-right-radius\t\t{ border-top-right-radius: 0; }\n\n.monaco-editor.hc-black .bottom-right-radius\t{ border-bottom-right-radius: 0; }\n"},MlKm:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .lines-decorations {\n\tposition: absolute;\n\ttop: 0;\n\tbackground: white;\n}\n/*\n\tKeeping name short for faster parsing.\n\tcldr = core lines decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cldr {\n\tposition: absolute;\n\theight: 100%;\n}"},N4j0:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length}},NBYJ:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- Find input ---------- */\n.monaco-findInput {\n\tposition: relative;\n}\n.monaco-findInput .monaco-inputbox {\n\tfont-size: 13px;\n\twidth: 100%;\n\theight: 25px;\n}\n.monaco-findInput > .controls {\n\tposition: absolute;\n\ttop: 3px;\n\tright: 2px;\n}\n.vs .monaco-findInput.disabled {\n\tbackground-color: #E1E1E1;\n}\n/* Theming */\n.vs-dark .monaco-findInput.disabled {\n\tbackground-color: #333;\n}\n/* Highlighting */\n.monaco-findInput.highlight-0 .controls {\n\t-webkit-animation: monaco-findInput-highlight-0 100ms linear 0s;\n\t animation: monaco-findInput-highlight-0 100ms linear 0s;\n}\n.monaco-findInput.highlight-1 .controls {\n\t-webkit-animation: monaco-findInput-highlight-1 100ms linear 0s;\n\t animation: monaco-findInput-highlight-1 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-0 .controls,\n.vs-dark .monaco-findInput.highlight-0 .controls {\n\t-webkit-animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n\t animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-1 .controls,\n.vs-dark .monaco-findInput.highlight-1 .controls {\n\t-webkit-animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n\t animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n}\n@-webkit-keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}"},NfGl:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* marker zone */\n\n.monaco-editor .marker-widget {\n\tpadding-left: 2px;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .marker-widget > .stale {\n\topacity: 0.6;\n\tfont-style: italic;\n}\n\n.monaco-editor .marker-widget div.block {\n\tdisplay: inline-block;\n\tvertical-align: top;\n}\n\n.monaco-editor .marker-widget .title {\n\tdisplay: inline-block;\n\tpadding-right: 5px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer {\n\tposition: relative;\n\twhite-space: pre;\n\t-webkit-user-select: text;\n\t-moz-user-select: text;\n\t -ms-user-select: text;\n\t user-select: text;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .filename {\n\tcursor: pointer;\n\topacity: 0.6;\n}\n"},Nuvq:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box {\n\twidth: 100%;\n}\n"},OVmG:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("TToO"),o=n("/iUD"),r=n("VwZZ"),s=n("t7NR"),a=n("tLDX"),u=function(e){function t(t,n,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){if(c(t)){var o=t[a.a]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new l(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,n,i)}}return Object(i.c)(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,n,i){var o=new t(e,n,i);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.a),l=function(e){function t(t,n,i,r){var a;e.call(this),this._parentSubscriber=t;var u=this;Object(o.a)(n)?a=n:n&&(a=n.next,i=n.error,r=n.complete,n!==s.a&&(u=Object.create(n),Object(o.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=i,this._complete=r}return Object(i.c)(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u);function c(e){return e instanceof u||"syncErrorThrowable"in e&&e[a.a]}},OkZj:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* START cover the case that slider is visible on mouseover */\n\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\n\topacity: 0;\n\t-webkit-transition: opacity 100ms linear;\n\ttransition: opacity 100ms linear;\n}\n\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\n\topacity: 1;\n}\n\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\n\topacity: 1;\n}\n\n/* END cover the case that slider is visible on mouseover */\n\n.monaco-editor .minimap-shadow-hidden {\n\tposition: absolute;\n\twidth: 0;\n}\n\n.monaco-editor .minimap-shadow-visible {\n\tposition: absolute;\n\tleft: -6px;\n\twidth: 6px;\n}\n"},PIsA:function(e,t,n){"use strict";var i=n("AMGY"),o=n("N4j0"),r=n("cQXm"),s=n("dgOU"),a=n("YaPU"),u=n("etqZ"),l=n("TToO"),c=function(e){function t(t,n,i){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=i,this.index=0}return Object(l.c)(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("OVmG").a),d=n("+CnV");t.a=function(e,t,n,l){var h=new c(e,n,l);if(h.closed)return null;if(t instanceof a.a)return t._isScalar?(h.next(t.value),h.complete(),null):(h.syncErrorThrowable=!0,t.subscribe(h));if(Object(o.a)(t)){for(var p=0,g=t.length;p0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.a)},"R/+A":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-inputbox {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: 0;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tline-height: auto !important;\n\n\t/* Customizable */\n\tfont-size: inherit;\n}\n\n.monaco-inputbox.idle {\n\tborder: 1px solid transparent;\n}\n\n.monaco-inputbox > .wrapper > .input,\n.monaco-inputbox > .wrapper > .mirror {\n\n\t/* Customizable */\n\tpadding: 4px;\n}\n\n.monaco-inputbox > .wrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-inputbox > .wrapper > .input {\n\tdisplay: inline-block;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\twidth: 100%;\n\theight: 100%;\n\tline-height: inherit;\n\tborder: none;\n\tfont-family: inherit;\n\tfont-size: inherit;\n\tresize: none;\n\tcolor: inherit;\n}\n\n.monaco-inputbox > .wrapper > input {\n\ttext-overflow: ellipsis;\n}\n\n.monaco-inputbox > .wrapper > textarea.input {\n\tdisplay: block;\n\toverflow: hidden;\n}\n\n.monaco-inputbox > .wrapper > .mirror {\n\tposition: absolute;\n\tdisplay: inline-block;\n\twidth: 100%;\n\ttop: 0;\n\tleft: 0;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\twhite-space: pre-wrap;\n\tvisibility: hidden;\n\tmin-height: 26px;\n\tword-wrap: break-word;\n}\n\n/* Context view */\n\n.monaco-inputbox-container {\n\ttext-align: right;\n}\n\n.monaco-inputbox-container .monaco-inputbox-message {\n\tdisplay: inline-block;\n\toverflow: hidden;\n\ttext-align: left;\n\twidth: 100%;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tpadding: 0.4em;\n\tfont-size: 12px;\n\tline-height: 17px;\n\tmin-height: 34px;\n\tmargin-top: -1px;\n\tword-wrap: break-word;\n}\n\n/* Action bar support */\n\n.monaco-inputbox .monaco-action-bar {\n\tposition: absolute;\n\tright: 2px;\n\ttop: 4px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item {\n\tmargin-left: 2px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item .icon {\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}"},Rf9G:function(e,t,n){"use strict";t.a=function(){return Object(i.a)()(this)};var i=n("3a3m")},SoM9:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .iPadShowKeyboard {\n\twidth: 58px;\n\tmin-width: 0;\n\theight: 36px;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\tresize: none;\n\toverflow: hidden;\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iI0YwRUZGMSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") center center no-repeat;\n\tborder: 4px solid #F6F6F6;\n\tborder-radius: 4px;\n}\n\n.monaco-editor.vs-dark .iPadShowKeyboard {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iIzJCMjgyRSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") center center no-repeat;\n\tborder: 4px solid #252526;\n}'},TILf:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(i.c)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(n("YaPU").a)},TToO:function(e,t,n){"use strict";t.c=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o}),t.b=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},t.d=function(e,t){return function(n,i){t(n,i,e)}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n1?new t(e,i):1===o?new r.a(e[0],i):new s.a(i)},t.dispatch=function(e){var t=e.array,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:i,subscriber:e});for(var r=0;r1)for(var n=1;n ");else if("object"==typeof t){var o=[];for(var r in t)if(t.hasOwnProperty(r)){var s=t[r];o.push(r+":"+("string"==typeof s?JSON.stringify(s):S(s)))}i="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+e.replace(H,"\n ")}function U(e,t){return new Error(Z(e,t))}var G="ngDebugContext",Q="ngOriginalError",X="ngErrorLogger";function K(e){return e[G]}function J(e){return e[Q]}function q(e){for(var t=[],n=1;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+S(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Ke(e,t){return Array.isArray(t)?t.reduce(Ke,e):Object(i.a)({},e,t)}var Je=function(){function e(e,t,n,i,a,u){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ze(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var c=new o.a(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),d=new o.a(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){De.assertNotInAngularZone(),N(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){De.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.a)(c,s.a.call(d))}return e.prototype.bootstrap=function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ge?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof we?null:this._injector.get(Ce),r=n.create(j.NULL,[],t||n.selector,o);r.onDestroy(function(){i._unloadComponent(r)});var s=r.injector.get(Pe,null);return s&&r.injector.get(Re).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Se(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;qe(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(le,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),qe(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ie("ApplicationRef#tick()"),e}();function qe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $e=function(){},et=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),tt=function(){},nt=function(e){this.nativeElement=e},it=function(){function e(){this.dirty=!0,this._results=[],this.changes=new xe,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[L()]=function(){return this._results[L()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var i=Array.isArray(n)?e(n):n;return t.concat(i)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),ot=function(){},rt=function(){},st=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof at?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),at=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(i.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return ut(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return lt(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(st);function ut(e,t,n){e.childNodes.forEach(function(e){e instanceof at&&(t(e)&&n.push(e),ut(e,t,n))})}function lt(e,t,n){e instanceof at&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof at&<(e,t,n)})}var ct=new Map;function dt(e){return ct.get(e)||null}function ht(e){ct.set(e.nativeNode,e)}function pt(e,t){var n=mt(e),i=mt(t);return n&&i?function(e,t,n){for(var i=e[L()](),o=t[L()]();;){var r=i.next(),s=o.next();if(r.done&&s.done)return!0;if(r.done||s.done)return!1;if(!n(r.value,s.value))return!1}}(e,t,pt):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||I(e,t)}var gt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),ft=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function mt(e){return!!yt(e)&&(Array.isArray(e)||!(e instanceof Map)&&L()in e)}function yt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var vt=function(){function e(){}return e.prototype.supports=function(e){return mt(e)},e.prototype.create=function(e){return new _t(e)},e}(),bt=function(e,t){return t},_t=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||bt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,i=0,o=null;t||n;){var r=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var i=n[t];return i.viewContainerParent=null,Xn(n,t),Qt.dirtyParentQueries(i),Gn(i),i}function Un(e,t,n){var i=t?gn(t,t.def.lastRenderRootNode):e.renderElement;wn(n,2,n.renderer.parentNode(i),n.renderer.nextSibling(i),void 0)}function Gn(e){wn(e,3,null,null,void 0)}function Qn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Kn=new Object;function Jn(e,t,n,i,o,r){return new qn(e,t,n,i,o,r)}var qn=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=o,a._outputs=r,a.ngContentSelectors=s,a.viewDefFactory=i,a}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,i){if(!i)throw new Error("ngModule should be provided");var o=Mn(this.viewDefFactory),r=o.nodes[0].element.componentProvider.nodeIndex,s=Qt.createRootView(e,t||[],n,o,i,Kn),a=Zt(s,r).instance;return n&&s.renderer.setAttribute(Yt(s,0).renderElement,"ng-version",g.full),new $n(s,new ii(s),a)},t}(ge),$n=function(e){function t(t,n,i){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=i,o}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new nt(Yt(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ai(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ei(e,t,n){return new ti(e,t,n)}var ti=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new nt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ai(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=pn(e),e=e.parent;return e?new ai(e,t):new ai(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Zn(this._data,e);Qt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new ii(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i},e.prototype.createComponent=function(e,t,n,i,o){var r=n||this.parentInjector;o||e instanceof we||(o=r.get(Ce));var s=e.create(r,i,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,o,r,s=e;return o=s._view,r=(n=this._data).viewContainer._embeddedViews,null!==(i=t)&&void 0!==i||(i=r.length),o.viewContainerParent=this._view,Qn(r,i,o),function(e,t){var n=hn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,t.parentNodeDef)}}(n,o),Qt.dirtyParentQueries(o),Un(n,i>0?r[i-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,i,o,r,s,a=this._embeddedViews.indexOf(e._view);return o=t,s=(r=(n=this._data).viewContainer._embeddedViews)[i=a],Xn(r,i),null==o&&(o=r.length),Qn(r,o,s),Qt.dirtyParentQueries(s),Gn(s),Un(n,o>0?r[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Zn(this._data,e);t&&Qt.destroyView(t)},e.prototype.detach=function(e){var t=Zn(this._data,e);return t?new ii(t):null},e}();function ni(e){return new ii(e)}var ii=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return wn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ln(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Qt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Gn(this._view),Qt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function oi(e,t){return new ri(e,t)}var ri=function(e){function t(t,n){var i=e.call(this)||this;return i._parentView=t,i._def=n,i}return Object(i.c)(t,e),t.prototype.createEmbeddedView=function(e){return new ii(Qt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new nt(Yt(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(ot);function si(e,t){return new ai(e,t)}var ai=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=j.THROW_IF_NOT_FOUND),Qt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:en(e)},t)},e}();function ui(e,t){var n=e.def.nodes[t];if(1&n.flags){var i=Yt(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return Vt(e,n.nodeIndex).renderText;if(20240&n.flags)return Zt(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function li(e){return new ci(e.renderer)}var ci=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=xn(t),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,i=t.provider;switch(201347067&t.flags){case 512:return Ii(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var r=o.length;switch(r){case 0:return i();case 1:return i(xi(e,t,n,o[0]));case 2:return i(xi(e,t,n,o[0]),xi(e,t,n,o[1]));case 3:return i(xi(e,t,n,o[0]),xi(e,t,n,o[1]),xi(e,t,n,o[2]));default:for(var s=Array(r),a=0;a0)l=f,Vi(f)||(c=f);else for(;l&&g===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&Vi(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||qt,updateRenderer:i||qt,handleEvent:function(e,n,i,o){return t[n].element.handleEvent(e,i,o)},bindingCount:o,outputCount:r,lastRenderRootNode:p}}function Vi(e){return 0!=(1&e.flags)&&null===e.element.name}function Yi(e,t,n){var i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Zi(e,t,n,i){var o=Qi(e.root,e.renderer,e,t,n);return Xi(o,e.component,i),Ki(o),o}function Ui(e,t,n){var i=Qi(e,e.renderer,null,null,t);return Xi(i,n,n),Ki(i),i}function Gi(e,t,n,i){var o,r=t.element.componentRendererType;return o=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Qi(e.root,o,e,t.element.componentProvider,n)}function Qi(e,t,n,i,o){var r=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function Xi(e,t,n){e.component=t,e.context=n}function Ki(e){var t;fn(e)&&(t=Yt(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,i=e.nodes,o=0;o0&&Rn(e,t,0,n)&&(p=!0),h>1&&Rn(e,t,1,i)&&(p=!0),h>2&&Rn(e,t,2,o)&&(p=!0),h>3&&Rn(e,t,3,r)&&(p=!0),h>4&&Rn(e,t,4,s)&&(p=!0),h>5&&Rn(e,t,5,a)&&(p=!0),h>6&&Rn(e,t,6,u)&&(p=!0),h>7&&Rn(e,t,7,l)&&(p=!0),h>8&&Rn(e,t,8,c)&&(p=!0),h>9&&Rn(e,t,9,d)&&(p=!0),p}(e,t,n,i,o,r,s,a,u,l,c,d);case 2:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=!1,p=t.bindings,g=p.length;if(g>0&&an(e,t,0,n)&&(h=!0),g>1&&an(e,t,1,i)&&(h=!0),g>2&&an(e,t,2,o)&&(h=!0),g>3&&an(e,t,3,r)&&(h=!0),g>4&&an(e,t,4,s)&&(h=!0),g>5&&an(e,t,5,a)&&(h=!0),g>6&&an(e,t,6,u)&&(h=!0),g>7&&an(e,t,7,l)&&(h=!0),g>8&&an(e,t,8,c)&&(h=!0),g>9&&an(e,t,9,d)&&(h=!0),h){var f=t.text.prefix;g>0&&(f+=Hi(n,p[0])),g>1&&(f+=Hi(i,p[1])),g>2&&(f+=Hi(o,p[2])),g>3&&(f+=Hi(r,p[3])),g>4&&(f+=Hi(s,p[4])),g>5&&(f+=Hi(a,p[5])),g>6&&(f+=Hi(u,p[6])),g>7&&(f+=Hi(l,p[7])),g>8&&(f+=Hi(c,p[8])),g>9&&(f+=Hi(d,p[9]));var m=Vt(e,t.nodeIndex).renderText;e.renderer.setValue(m,f)}return h}(e,t,n,i,o,r,s,a,u,l,c,d);case 16384:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=Zt(e,t.nodeIndex),p=h.instance,g=!1,f=void 0,m=t.bindings.length;return m>0&&sn(e,t,0,n)&&(g=!0,f=Ti(e,h,t,0,n,f)),m>1&&sn(e,t,1,i)&&(g=!0,f=Ti(e,h,t,1,i,f)),m>2&&sn(e,t,2,o)&&(g=!0,f=Ti(e,h,t,2,o,f)),m>3&&sn(e,t,3,r)&&(g=!0,f=Ti(e,h,t,3,r,f)),m>4&&sn(e,t,4,s)&&(g=!0,f=Ti(e,h,t,4,s,f)),m>5&&sn(e,t,5,a)&&(g=!0,f=Ti(e,h,t,5,a,f)),m>6&&sn(e,t,6,u)&&(g=!0,f=Ti(e,h,t,6,u,f)),m>7&&sn(e,t,7,l)&&(g=!0,f=Ti(e,h,t,7,l,f)),m>8&&sn(e,t,8,c)&&(g=!0,f=Ti(e,h,t,8,c,f)),m>9&&sn(e,t,9,d)&&(g=!0,f=Ti(e,h,t,9,d,f)),f&&p.ngOnChanges(f),65536&t.flags&&Bt(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),g}(e,t,n,i,o,r,s,a,u,l,c,d);case 32:case 64:case 128:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=t.bindings,p=!1,g=h.length;if(g>0&&an(e,t,0,n)&&(p=!0),g>1&&an(e,t,1,i)&&(p=!0),g>2&&an(e,t,2,o)&&(p=!0),g>3&&an(e,t,3,r)&&(p=!0),g>4&&an(e,t,4,s)&&(p=!0),g>5&&an(e,t,5,a)&&(p=!0),g>6&&an(e,t,6,u)&&(p=!0),g>7&&an(e,t,7,l)&&(p=!0),g>8&&an(e,t,8,c)&&(p=!0),g>9&&an(e,t,9,d)&&(p=!0),p){var f=Ut(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(h.length),g>0&&(m[0]=n),g>1&&(m[1]=i),g>2&&(m[2]=o),g>3&&(m[3]=r),g>4&&(m[4]=s),g>5&&(m[5]=a),g>6&&(m[6]=u),g>7&&(m[7]=l),g>8&&(m[8]=c),g>9&&(m[9]=d);break;case 64:m={},g>0&&(m[h[0].name]=n),g>1&&(m[h[1].name]=i),g>2&&(m[h[2].name]=o),g>3&&(m[h[3].name]=r),g>4&&(m[h[4].name]=s),g>5&&(m[h[5].name]=a),g>6&&(m[h[6].name]=u),g>7&&(m[h[7].name]=l),g>8&&(m[h[8].name]=c),g>9&&(m[h[9].name]=d);break;case 128:var y=n;switch(g){case 1:m=y.transform(n);break;case 2:m=y.transform(i);break;case 3:m=y.transform(i,o);break;case 4:m=y.transform(i,o,r);break;case 5:m=y.transform(i,o,r,s);break;case 6:m=y.transform(i,o,r,s,a);break;case 7:m=y.transform(i,o,r,s,a,u);break;case 8:m=y.transform(i,o,r,s,a,u,l);break;case 9:m=y.transform(i,o,r,s,a,u,l,c);break;case 10:m=y.transform(i,o,r,s,a,u,l,c,d)}}f.value=m}return p}(e,t,n,i,o,r,s,a,u,l,c,d);default:throw"unreachable"}}(e,t,i,o,r,s,a,u,l,c,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var i=!1,o=0;o0&&un(e,t,0,n),h>1&&un(e,t,1,i),h>2&&un(e,t,2,o),h>3&&un(e,t,3,r),h>4&&un(e,t,4,s),h>5&&un(e,t,5,a),h>6&&un(e,t,6,u),h>7&&un(e,t,7,l),h>8&&un(e,t,8,c),h>9&&un(e,t,9,d)}(e,t,i,o,r,s,a,u,l,c,d,h):function(e,t,n){for(var i=0;i=0,r=c.indexOf("Macintosh")>=0,s=c.indexOf("Linux")>=0,u=!0,navigator}var d=o,h=r,p=s,g=a,f=u,m="object"==typeof self?self:"object"==typeof i?i:{},y=null,v=r?2:o?1:3}).call(t,n("W2nU"),n("DuR2"))},beP8:function(e,t,n){"use strict";(function(e,i){var o;n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),function(){var t=Object.create(null);t["WinJS/Core/_WinJS"]={};var n=function(e,n,i){var o={},r=!1,s=n.map(function(e){return"exports"===e?(r=!0,o):t[e]}),a=i.apply({},s);t[e]=r?o:a};n("WinJS/Core/_Global",[],function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof e?e:{}}),n("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof i&&"function"==typeof i.nextTick?i.nextTick.bind(i):e.setTimeout.bind(e)),t(n)}}}),n("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){return e.msWriteProfilerMark||function(){}}),n("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o"),i}n.Namespace||(n.Namespace=Object.create(Object.prototype));Object.defineProperties(n.Namespace,{defineWithParent:{value:s,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return s(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,o=1;return{setName:function(e){t=e},get:function(){switch(o){case 3:return n;case 1:o=2;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{i("WinJS.Namespace._lazy:"+t+",StopTM"),o=1}return e=null,o=3,n;case 2:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(o){case 2:throw"Illegal: reentrancy on initialization";default:o=3,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,n,i){var s=[e],a=null;return n&&(a=r(t,n),s.push(a)),o(s,i,n||""),a},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,i){return n.markSupportedForProcessing(e=e||function(){}),t&&o(e.prototype,t),i&&o(e,i),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,i,r,s){return e?((i=i||function(){}).prototype=Object.create(e.prototype),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):t(i,r,s)},mix:function(e){var t,n;for(e=e||function(){},t=1,n=arguments.length;t .scrollbar,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\n\t\t-ms-high-contrast-adjust: none;\n\t\tbackground: background !important;\n\t\tborder: 1px solid windowtext;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\n\t\tbackground: windowtext !important;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\tbackground: highlight !important;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\n\t\tbackground: highlight !important;\n\t}\n\n\t/* overview ruler */\n\t.monaco-editor.vs .decorationsOverviewRuler,\n\t.monaco-editor.vs-dark .decorationsOverviewRuler {\n\t\topacity: 0;\n\t}\n\n\t/* minimap */\n\t.monaco-editor.vs .minimap,\n\t.monaco-editor.vs-dark .minimap {\n\t\tdisplay: none;\n\t}\n\n\t/* squiggles */\n\t.monaco-editor.vs .squiggly-d-error,\n\t.monaco-editor.vs-dark .squiggly-d-error {\n\t\tbackground: transparent !important;\n\t\tborder-bottom: 4px double #E47777;\n\t}\n\t.monaco-editor.vs .squiggly-c-warning,\n\t.monaco-editor.vs-dark .squiggly-c-warning {\n\t\tborder-bottom: 4px double #71B771;\n\t}\n\t.monaco-editor.vs .squiggly-b-info,\n\t.monaco-editor.vs-dark .squiggly-b-info {\n\t\tborder-bottom: 4px double #71B771;\n\t}\n\t.monaco-editor.vs .squiggly-a-hint,\n\t.monaco-editor.vs-dark .squiggly-a-hint {\n\t\tborder-bottom: 4px double #6c6c6c;\n\t}\n\n\t/* contextmenu */\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-item .action-label:focus,\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item .action-label:focus {\n\t\t-ms-high-contrast-adjust: none;\n\t\tcolor: highlighttext !important;\n\t\tbackground-color: highlight !important;\n\t}\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-item .action-label:hover,\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item .action-label:hover {\n\t\t-ms-high-contrast-adjust: none;\n\t\tbackground: transparent !important;\n\t\tborder: 1px solid highlight;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\n\t/* diff editor */\n\t.monaco-diff-editor.vs .diffOverviewRuler,\n\t.monaco-diff-editor.vs-dark .diffOverviewRuler {\n\t\tdisplay: none;\n\t}\n\t.monaco-editor.vs .line-insert,\n\t.monaco-editor.vs-dark .line-insert,\n\t.monaco-editor.vs .line-delete,\n\t.monaco-editor.vs-dark .line-delete {\n\t\tbackground: transparent !important;\n\t\tborder: 1px solid highlight !important;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\t.monaco-editor.vs .char-insert,\n\t.monaco-editor.vs-dark .char-insert,\n\t.monaco-editor.vs .char-delete,\n\t.monaco-editor.vs-dark .char-delete {\n\t\tbackground: transparent !important;\n\t}\n}\n\n\n/*.monaco-editor.vs [tabindex="0"]:focus {\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}\n\n.monaco-editor.vs-dark [tabindex="0"]:focus {\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}*/\n'},"jF/U":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list {\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: -moz-none;\n\t-ms-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-list > .monaco-scrollable-element {\n\theight: 100%;\n}\n\n.monaco-list-rows {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-list-row {\n\tposition: absolute;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\t-webkit-box-sizing:\t\t\tborder-box;\n\t box-sizing:\t\t\tborder-box;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 100%;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n\n/* for OS X ballistic scrolling */\n\n.monaco-list-row.scrolling {\n\tdisplay: none !important;\n}\n\n/* Focus */\n\n.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple {\n\toutline: 0 !important;\n}"},lAP5:function(e,t,n){"use strict";t.a=function(e){return e}},m849:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .monaco-editor-overlaymessage {\n\tpadding-bottom: 8px;\n}\n\n@-webkit-keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\n\t-webkit-animation: fadeIn 150ms ease-out;\n\t animation: fadeIn 150ms ease-out;\n}\n\n@-webkit-keyframes fadeOut {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n}\n\n@keyframes fadeOut {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n}\n\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\n\t-webkit-animation: fadeOut 100ms ease-out;\n\t animation: fadeOut 100ms ease-out;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message {\n\tpadding: 1px 4px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor {\n\twidth: 0 !important;\n\theight: 0 !important;\n\tborder-color: transparent;\n\tborder-style: solid;\n\tz-index: 1000;\n\tborder-width: 8px;\n\tposition: absolute;\n}\n"},nLHh:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcmdr = core margin decorations rendering (div)\n*/\n\n.monaco-editor .margin-view-overlays .cmdr {\n\tposition: absolute;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}"},"o37+":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor-hover {\n\tcursor: default;\n\tposition: absolute;\n\toverflow: hidden;\n\tz-index: 50;\n\t-webkit-user-select: text;\n\t-ms-user-select: text;\n\t-moz-user-select: text;\n\t-o-user-select: text;\n\tuser-select: text;\n\t-webkit-box-sizing: initial;\n\t box-sizing: initial;\n\t-webkit-animation: fadein 100ms linear;\n\t animation: fadein 100ms linear;\n\tline-height: 1.5em;\n}\n\n.monaco-editor-hover.hidden {\n\tdisplay: none;\n}\n\n.monaco-editor-hover .monaco-editor-hover-content {\n\tmax-width: 500px;\n}\n\n.monaco-editor-hover .hover-row {\n\tpadding: 4px 5px;\n}\n\n.monaco-editor-hover p,\n.monaco-editor-hover ul {\n\tmargin: 8px 0;\n}\n\n.monaco-editor-hover p:first-child,\n.monaco-editor-hover ul:first-child {\n\tmargin-top: 0;\n}\n\n.monaco-editor-hover p:last-child,\n.monaco-editor-hover ul:last-child {\n\tmargin-bottom: 0;\n}\n\n.monaco-editor-hover ul {\n\tpadding-left: 20px;\n}\n\n.monaco-editor-hover li > p {\n\tmargin-bottom: 0;\n}\n\n.monaco-editor-hover li > ul {\n\tmargin-top: 0;\n}\n\n.monaco-editor-hover code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-editor-hover .monaco-tokenized-source {\n\twhite-space: pre-wrap;\n\tword-break: break-all;\n}\n"},om4P:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-builder-hidden {\n\tdisplay: none !important;\n\tvisibility: hidden !important;\n}\n\n.monaco-builder-visible {\n\tdisplay: inherit;\n\tvisibility: visible;\n}\n"},pJVg:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tfont-size: 13px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iNDAiPjxwYXRoIGQ9Ik0yODguNDgzIDMzYy0uNzcyIDAtMS40OTctLjEyMy0yLjE1My0uMzY1LS42NzgtLjI1My0xLjI3LS42MTctMS43Ni0xLjA4NC0uNS0uNDc1LS44OTItMS4wNDktMS4xNjMtMS43MDQtLjI3LS42NDQtLjQwNy0xLjM3MS0uNDA3LTIuMTU4IDAtLjUxNy4wNjEtMS4wMTguMTc4LTEuNDkuMTE2LS40Ny4yOS0uOTI1LjUxNi0xLjM0OC4yMjUtLjQyMi41MDgtLjgxNS44NDQtMS4xNjcuMzM0LS4zNTIuNzE3LS42NTYgMS4xMzktLjkwNS40MTYtLjI0Ni44ODEtLjQ0IDEuMzgtLjU3Ni40OTMtLjEzNCAxLjAyNi0uMjAyIDEuNTg3LS4yMDIuNzA1IDAgMS4zODIuMTA5IDIuMDEzLjMyNC42NDIuMjE3IDEuMjE4LjUzOCAxLjcwOC45NTUuNTAxLjQyNS45MDMuOTQ4IDEuMTkzIDEuNTU2LjI5NC42MjMuNDQyIDEuMzE2LjQ0MiAyLjA2NCAwIC42MTktLjA5IDEuMTg1LS4yNjggMS42NzktLjE3OC40OTItLjQyLjkyLS43MjEgMS4yNzUtLjMzMS4zNzctLjY5OS42NTgtMS4xMDQuODQ3bC0uMDQ4LjAyMnYxLjUzbC0uNTg3LjI2NmMtLjEyOC4wNTktLjI4OC4xMTctLjQ3NC4xNzktLjE5My4wNjItLjQwNC4xMTQtLjY0NS4xNTktLjIyOS4wNC0uNDc3LjA3Ni0uNzUzLjEwMy0uMjcuMDI3LS41NzguMDQtLjkxNy4wNHoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjkxLjcxNiAyNC4wNDFjLS4zOTYtLjMzNi0uODU2LS41OTMtMS4zODQtLjc3MS0uNTI3LS4xOC0xLjA5LS4yNzEtMS42ODktLjI3MS0uNDczIDAtLjkxMi4wNTUtMS4zMjQuMTY3LS40MTQuMTEyLS43OTEuMjctMS4xMzUuNDczLS4zNDIuMjAyLS42NS40NDYtLjkyMi43MzMtLjI3My4yODYtLjUwMi42MDItLjY4Ni45NDktLjE4Ni4zNDctLjMzLjcyMi0uNDI4IDEuMTE5LS4xLjM5OS0uMTQ4LjgxNC0uMTQ4IDEuMjQ3IDAgLjY1Mi4xMDkgMS4yNDcuMzMyIDEuNzc2LjIxOS41MzEuNTMuOTg0LjkyOCAxLjM2MS4zOTYuMzc4Ljg3MS42NjcgMS40MTYuODcuNTQ4LjIwMiAxLjE1Mi4zMDQgMS44MDguMzA0LjMwMiAwIC41NzctLjAxMS44MjMtLjAzNS4yNDYtLjAyMy40NjgtLjA1Ni42NjQtLjA5MS4xOTUtLjAzNi4zNjYtLjA3OC41MTQtLjEyNWwuMzc1LS4xNHYtLjg1NGwtLjQ2My4xODRjLS4xNi4wNTYtLjMzNi4xMDQtLjUyMS4xNDMtLjE4OC4wMzctLjM4Ny4wNjktLjYwNC4wODktLjIxMy4wMjQtLjQ0OC4wMzQtLjcuMDM0LS41NjIgMC0xLjA2NC0uMDg4LTEuNTA5LS4yNjQtLjQ0Mi0uMTc2LS44MTYtLjQyMS0xLjEyNS0uNzMxLS4zMDktLjMxNC0uNTQ1LS42ODctLjcwOC0xLjEyNC0uMTYxLS40MzUtLjI0My0uOTEzLS4yNDMtMS40MzIgMC0uNTQ1LjA5LTEuMDUzLjI3My0xLjUyMi4xODItLjQ3MS40MzUtLjg3OS43NTgtMS4yMjUuMzI0LS4zNDUuNzA4LS42MTcgMS4xNTUtLjgxNS40NDYtLjE5Ni45MzQtLjI5NCAxLjQ1Ny0uMjk0LjQxOSAwIC43OTguMDQ0IDEuMTIyLjEzNi4zMjkuMDkxLjYyLjIxNS44NzEuMzY5LjI1NC4xNTguNDY1LjMzOS42NDMuNTQ3LjE3OS4yMDkuMzI0LjQzMi40MzguNjY3LjExMy4yMzcuMTkzLjQ4LjI0Ni43MzEuMDUxLjI1NC4wNzYuNS4wNzYuNzQxIDAgLjM0NC0uMDMzLjY1My0uMTAyLjkyNi0uMDY4LjI3NC0uMTU4LjUwMy0uMjY5LjY5NC0uMTEuMTg5LS4yMzkuMzM1LS4zODYuNDM0cy0uMjk1LjE0OC0uNDUzLjE0OGwtLjIxNS0uMDQ1Yy0uMDY2LS4wMjktLjExOS0uMDgtLjE2Ni0uMTU2LS4wNDYtLjA3NS0uMDgyLS4xNzctLjEwNy0uMzA2LS4wMjUtLjEyNi0uMDM5LS4yOTItLjAzOS0uNDkybC4wMTgtLjMyNS4wNDEtLjUzLjA1NS0uNjQ0LjA1OC0uNjQ3LjA0OC0uNTQ2LjAyNy0uMzQ0aC0uOTE5bC0uMDU0LjZoLS4wMjFjLS4wMjUtLjEwMy0uMDctLjE5NS0uMTM2LS4yODEtLjA2My0uMDgzLS4xNDEtLjE1NS0uMjMzLS4yMTYtLjA5MS0uMDYxLS4xOTMtLjEwNi0uMzA3LS4xNDEtLjExNS0uMDMzLS4yMzgtLjA0OC0uMzY5LS4wNDgtLjMzNyAwLS42NDYuMDctLjkyNC4yMTYtLjI4MS4xNDQtLjUxOC4zNDQtLjcyMS41OTktLjIwMS4yNTQtLjM1NS41NTYtLjQ2NS45MDUtLjExNS4zNS0uMTcuNzI2LS4xNyAxLjEzNCAwIC4zNDQuMDQ1LjY0NS4xMzUuOTAxLjA4OC4yNi4yMTEuNDczLjM1OS42NDYuMTUzLjE3MS4zMjkuMy41MzQuMzgyLjIuMDg2LjQxNS4xMjkuNjQxLjEyOS4xNzYgMCAuMzQyLS4wMjcuNDk5LS4wODEuMTU0LS4wNTIuMzAyLS4xMy40MzItLjIzMi4xMzQtLjEwNC4yNDgtLjIzLjM0OC0uMzguMTAyLS4xNDkuMTgyLS4zMjMuMjM2LS41MmguMDI3YzAgLjM3Ni4xMDEuNjc0LjMwNy44OTMuMjA3LjIyLjUwMi4zMy44ODkuMzMuMjkyIDAgLjU4LS4wNjQuODYzLS4xOTguMjgzLS4xMzIuNTM2LS4zMjguNzYyLS41ODYuMjIzLS4yNjIuNDA0LS41ODMuNTQzLS45NjYuMTM4LS4zODQuMjA4LS44My4yMDgtMS4zNCAwLS42MDUtLjExNy0xLjE1LS4zNDUtMS42MzQtLjIzMS0uNDgyLS41NDYtLjg5MS0uOTM5LTEuMjI1bS0yLjM2OCAzLjc3NGMtLjA1Ni4yNzctLjEzNi41MTctLjI0Ni43MTktLjEwOS4yMDMtLjI0Ni4zNjMtLjQwNy40ODEtLjE2My4xMTUtLjM1NC4xNzYtLjU3Mi4xNzYtLjEyIDAtLjIzNi0uMDI1LS4zNDQtLjA3OC0uMTA4LS4wNTItLjIwNi0uMTMtLjI4OS0uMjMyLS4wODEtLjEwMy0uMTQ4LS4yMzQtLjE5OC0uMzktLjA0Ni0uMTU2LS4wNy0uMzM3LS4wNy0uNTQ3IDAtLjIzNy4wMjctLjQ4MS4wOC0uNzI5LjA1Ni0uMjQ3LjEzNy0uNDczLjI1LS42NzcuMTA5LS4yLjI1LS4zNjMuNDE2LS40OTIuMTY1LS4xMjcuMzYxLS4xOTEuNTgyLS4xOTEuMTIzIDAgLjIzNC4wMjEuMzQuMDYzLjEwNy4wNDIuMTk4LjEwNy4yNzkuMTk2LjA4LjA4Ny4xNDUuMTk3LjE4OS4zMy4wNDMuMTM0LjA3LjI5NC4wNy40OCAwIC4zMTctLjAzMS42MTUtLjA4Ljg5MSIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik0yODguNDgzIDEzYy0uNzcyIDAtMS40OTctLjEyMy0yLjE1My0uMzY1LS42NzgtLjI1My0xLjI3LS42MTctMS43Ni0xLjA4NC0uNS0uNDc1LS44OTItMS4wNDktMS4xNjMtMS43MDQtLjI2OS0uNjQ0LS40MDctMS4zNzEtLjQwNy0yLjE1OSAwLS41MTcuMDYxLTEuMDE4LjE3OC0xLjQ5LjExNi0uNDcuMjktLjkyNS41MTYtMS4zNDguMjI1LS40MjIuNTA4LS44MTUuODQ0LTEuMTY3LjMzNC0uMzUyLjcxNy0uNjU2IDEuMTM5LS45MDUuNDE2LS4yNDYuODgxLS40NCAxLjM4LS41NzYuNDkyLS4xMzQgMS4wMjUtLjIwMiAxLjU4Ni0uMjAyLjcwNSAwIDEuMzgyLjEwOSAyLjAxMy4zMjQuNjQyLjIxNyAxLjIxOC41MzggMS43MDguOTU1LjUwMS40MjUuOTAzLjk0OCAxLjE5MyAxLjU1Ni4yOTUuNjI0LjQ0MyAxLjMxNy40NDMgMi4wNjUgMCAuNjE5LS4wOSAxLjE4NS0uMjY4IDEuNjc5LS4xNzguNDkyLS40Mi45Mi0uNzIxIDEuMjc1LS4zMzEuMzc3LS42OTkuNjU4LTEuMTA0Ljg0N2wtLjA0OC4wMjJ2MS41M2wtLjU4Ny4yNjZjLS4xMjguMDU5LS4yODguMTE3LS40NzQuMTc5LS4xOTMuMDYyLS40MDQuMTE0LS42NDUuMTU5LS4yMjkuMDQtLjQ3Ny4wNzYtLjc1My4xMDMtLjI3LjAyNy0uNTc4LjA0LS45MTcuMDR6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTI5MS43MTYgNC4wNDFjLS4zOTYtLjMzNi0uODU2LS41OTMtMS4zODQtLjc3MS0uNTI3LS4xNzktMS4wOS0uMjctMS42ODktLjI3LS40NzMgMC0uOTEyLjA1NS0xLjMyNC4xNjctLjQxNC4xMTItLjc5MS4yNy0xLjEzNS40NzMtLjM0Mi4yMDItLjY1LjQ0Ni0uOTIyLjczMy0uMjczLjI4Ni0uNTAyLjYwMi0uNjg2Ljk0OS0uMTg2LjM0Ny0uMzMuNzIyLS40MjggMS4xMTktLjA5OS40LS4xNDguODE1LS4xNDggMS4yNDcgMCAuNjUyLjEwOSAxLjI0Ny4zMzIgMS43NzYuMjE5LjUzMS41My45ODQuOTI4IDEuMzYxLjM5Ni4zNzguODcxLjY2NyAxLjQxNi44Ny41NDguMjAyIDEuMTUyLjMwNCAxLjgwOC4zMDQuMzAyIDAgLjU3Ny0uMDExLjgyMy0uMDM1LjI0Ni0uMDIzLjQ2OC0uMDU2LjY2NC0uMDkxLjE5NS0uMDM2LjM2Ni0uMDc4LjUxNC0uMTI1bC4zNzUtLjE0di0uODU0bC0uNDYzLjE4NGMtLjE2LjA1Ni0uMzM2LjEwNC0uNTIxLjE0My0uMTg4LjAzNy0uMzg3LjA2OS0uNjA0LjA4OS0uMjEzLjAyNC0uNDQ4LjAzNC0uNy4wMzQtLjU2MiAwLTEuMDY0LS4wODgtMS41MDktLjI2NC0uNDQyLS4xNzYtLjgxNi0uNDIxLTEuMTI1LS43MzEtLjMwOS0uMzE0LS41NDUtLjY4Ny0uNzA4LTEuMTI0LS4xNjEtLjQzNS0uMjQzLS45MTMtLjI0My0xLjQzMiAwLS41NDUuMDktMS4wNTMuMjczLTEuNTIyLjE4Mi0uNDcxLjQzNS0uODc5Ljc1OC0xLjIyNS4zMjQtLjM0NS43MDgtLjYxNyAxLjE1NS0uODE1LjQ0Ni0uMTk2LjkzNC0uMjk0IDEuNDU3LS4yOTQuNDE5IDAgLjc5OC4wNDQgMS4xMjIuMTM2LjMyOS4wOTEuNjIuMjE1Ljg3MS4zNjkuMjU0LjE1OC40NjUuMzM5LjY0My41NDcuMTc5LjIwOS4zMjQuNDMyLjQzOC42NjcuMTEzLjIzNy4xOTMuNDguMjQ2LjczMS4wNTEuMjU0LjA3Ni41LjA3Ni43NDEgMCAuMzQ0LS4wMzMuNjUzLS4xMDIuOTI2LS4wNjguMjc0LS4xNTguNTAzLS4yNjkuNjk0LS4xMS4xODktLjIzOS4zMzUtLjM4Ni40MzRzLS4yOTUuMTQ4LS40NTMuMTQ4bC0uMjE1LS4wNDVjLS4wNjYtLjAyOS0uMTE5LS4wOC0uMTY2LS4xNTYtLjA0Ni0uMDc1LS4wODItLjE3Ny0uMTA3LS4zMDYtLjAyNS0uMTI2LS4wMzktLjI5Mi0uMDM5LS40OTJsLjAxOC0uMzI1LjA0MS0uNTMuMDU1LS42NDQuMDU4LS42NDcuMDQ4LS41NDYuMDI3LS4zNDRoLS45MTlsLS4wNTQuNmgtLjAyMWMtLjAyNS0uMTAzLS4wNy0uMTk1LS4xMzYtLjI4MS0uMDYzLS4wODMtLjE0MS0uMTU1LS4yMzMtLjIxNi0uMDkxLS4wNjEtLjE5My0uMTA2LS4zMDctLjE0MS0uMTE1LS4wMzMtLjIzOC0uMDQ4LS4zNjktLjA0OC0uMzM3IDAtLjY0Ni4wNy0uOTI0LjIxNi0uMjgxLjE0NC0uNTE4LjM0NC0uNzIxLjU5OS0uMjAxLjI1NC0uMzU1LjU1Ni0uNDY1LjkwNS0uMTE1LjM1LS4xNy43MjYtLjE3IDEuMTM0IDAgLjM0NC4wNDUuNjQ1LjEzNS45MDEuMDg4LjI2LjIxMS40NzMuMzU5LjY0Ni4xNTMuMTcxLjMyOS4zLjUzNC4zODIuMi4wODYuNDE1LjEyOS42NDEuMTI5LjE3NiAwIC4zNDItLjAyNy40OTktLjA4MS4xNTQtLjA1Mi4zMDItLjEzLjQzMi0uMjMyLjEzNC0uMTA0LjI0OC0uMjMuMzQ4LS4zOC4xMDItLjE0OS4xODItLjMyMy4yMzYtLjUyaC4wMjdjMCAuMzc2LjEwMS42NzQuMzA3Ljg5My4yMDcuMjIuNTAyLjMzLjg4OS4zMy4yOTIgMCAuNTgtLjA2NC44NjMtLjE5OC4yODMtLjEzMi41MzYtLjMyOC43NjItLjU4Ni4yMjMtLjI2Mi40MDQtLjU4My41NDMtLjk2Ni4xMzgtLjM4NS4yMDgtLjgzMS4yMDgtMS4zNDEgMC0uNjA1LS4xMTctMS4xNS0uMzQ1LTEuNjM0LS4yMzEtLjQ4Mi0uNTQ2LS44OTEtLjkzOS0xLjIyNW0tMi4zNjggMy43NzRjLS4wNTYuMjc3LS4xMzYuNTE3LS4yNDYuNzE5LS4xMDkuMjAzLS4yNDYuMzYzLS40MDcuNDgxLS4xNjMuMTE1LS4zNTQuMTc2LS41NzIuMTc2LS4xMiAwLS4yMzYtLjAyNS0uMzQ0LS4wNzgtLjEwOC0uMDUyLS4yMDYtLjEzLS4yODktLjIzMi0uMDgxLS4xMDMtLjE0OC0uMjM0LS4xOTgtLjM5LS4wNDYtLjE1Ni0uMDctLjMzNy0uMDctLjU0NyAwLS4yMzcuMDI3LS40ODEuMDgtLjcyOS4wNTYtLjI0Ny4xMzctLjQ3My4yNS0uNjc3LjEwOS0uMi4yNS0uMzYzLjQxNi0uNDkyLjE2NS0uMTI3LjM2MS0uMTkxLjU4Mi0uMTkxLjEyMyAwIC4yMzQuMDIxLjM0LjA2My4xMDcuMDQyLjE5OC4xMDcuMjc5LjE5Ni4wOC4wODcuMTQ1LjE5Ny4xODkuMzMuMDQzLjEzNC4wNy4yOTQuMDcuNDggMCAuMzE3LS4wMzEuNjE1LS4wOC44OTEiIGZpbGw9IiM0MjQyNDIiLz48cGF0aCBkPSJNMjY0IDM3di0xNGg4LjYyNWwzLjM3NSAzLjU1NnYxMC40NDRoLTEyeiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0yNzIgMjRoLTd2MTJoMTB2LTlsLTMtM3ptMiAxMWgtOHYtMTBoNXYzaDN2N3oiIGZpbGw9IiNDNUM1QzUiLz48cG9seWdvbiBwb2ludHM9IjI2NiwyNSAyNzEsMjUgMjcxLDI4IDI3NCwyOCAyNzQsMzUgMjY2LDM1IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTI2NCAxN3YtMTRoOC42MjVsMy4zNzUgMy41NTZ2MTAuNDQ0aC0xMnoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjcyIDRoLTd2MTJoMTB2LTlsLTMtM3ptMiAxMWgtOHYtMTBoNXYzaDN2N3oiIGZpbGw9IiM0MjQyNDIiLz48cG9seWdvbiBwb2ludHM9IjI2Niw1IDI3MSw1IDI3MSw4IDI3NCw4IDI3NCwxNSAyNjYsMTUiIGZpbGw9IiNGMEVGRjEiLz48cG9seWdvbiBwb2ludHM9IjI0NywzNCAyNDcsMzAgMjQ1LDMwIDI0NSwyNiAyNTUsMjYgMjU1LDM0IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTI1NCAyOWgtOHYtMmg4djJ6bTAgMWgtNnYxaDZ2LTF6bTAgMmgtNnYxaDZ2LTF6IiBmaWxsPSIjQzVDNUM1Ii8+PHBvbHlnb24gcG9pbnRzPSIyNDcsMTQgMjQ3LDEwIDI0NSwxMCAyNDUsNiAyNTUsNiAyNTUsMTQiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjU0IDloLTh2LTJoOHYyem0wIDFoLTZ2MWg2di0xem0wIDJoLTZ2MWg2di0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik0yMzAuNSAyMmMtNC4xNDMgMC03LjUgMy4zNTctNy41IDcuNXMzLjM1NyA3LjUgNy41IDcuNSA3LjUtMy4zNTcgNy41LTcuNS0zLjM1Ny03LjUtNy41LTcuNXptMCAxMWMtMS45MzMgMC0zLjUtMS41NjYtMy41LTMuNXMxLjU2Ny0zLjUgMy41LTMuNSAzLjUgMS41NjYgMy41IDMuNS0xLjU2NyAzLjUtMy41IDMuNXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjI0LjAyNSAyOWMuMTA4LTEuNDE4LjY2OS0yLjcwOCAxLjU0Mi0zLjcyNmwxLjQzMSAxLjQzMWMtLjUxNi42NDYtLjg1MSAxLjQzLS45NDcgMi4yOTVoLTIuMDI2em0yLjk3MyAzLjI5NWMtLjUxNi0uNjQ2LS44NTEtMS40My0uOTQ3LTIuMjk1aC0yLjAyNWMuMTA4IDEuNDE4LjY2OSAyLjcwNyAxLjU0MiAzLjcyNmwxLjQzLTEuNDMxem00LjAwMi05LjI3djIuMDI1Yy44NjUuMDk3IDEuNjQ5LjQzMiAyLjI5NS45NDdsMS40MzEtMS40MzFjLTEuMDE4LS44NzItMi4zMDgtMS40MzItMy43MjYtMS41NDF6bS0zLjI5NSAyLjk3M2MuNjQ2LS41MTYgMS40My0uODUxIDIuMjk1LS45NDd2LTIuMDI1Yy0xLjQxOC4xMDgtMi43MDguNjY5LTMuNzI2IDEuNTQybDEuNDMxIDEuNDN6bTYuMjk3LjcwN2MuNTE2LjY0Ni44NTEgMS40My45NDcgMi4yOTVoMi4wMjVjLS4xMDgtMS40MTgtLjY2OS0yLjcwOC0xLjU0Mi0zLjcyNmwtMS40MyAxLjQzMXptLTQuMDAyIDcuMjQ0Yy0uODY1LS4wOTctMS42NDktLjQzMi0yLjI5NS0uOTQ3bC0xLjQzMSAxLjQzMWMxLjAxOC44NzMgMi4zMDcgMS40MzQgMy43MjYgMS41NDJ2LTIuMDI2em00Ljk0OS0zLjk0OWMtLjA5Ny44NjUtLjQzMiAxLjY0OC0uOTQ3IDIuMjk1bDEuNDMxIDEuNDMxYy44NzMtMS4wMTkgMS40MzQtMi4zMDggMS41NDItMy43MjZoLTIuMDI2em0tMS42NTQgMy4wMDJjLS42NDYuNTE2LTEuNDMuODUxLTIuMjk1Ljk0N3YyLjAyNWMxLjQxOS0uMTA4IDIuNzA4LS42NjkgMy43MjYtMS41NDJsLTEuNDMxLTEuNDN6IiBmaWxsPSIjQzVDNUM1Ii8+PHBhdGggZD0iTTIzMC41IDJjLTQuMTQzIDAtNy41IDMuMzU4LTcuNSA3LjUgMCA0LjE0MyAzLjM1NyA3LjUgNy41IDcuNXM3LjUtMy4zNTcgNy41LTcuNWMwLTQuMTQyLTMuMzU3LTcuNS03LjUtNy41em0wIDExYy0xLjkzMyAwLTMuNS0xLjU2Ni0zLjUtMy41IDAtMS45MzMgMS41NjctMy41IDMuNS0zLjVzMy41IDEuNTY3IDMuNSAzLjVjMCAxLjkzNC0xLjU2NyAzLjUtMy41IDMuNXoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjI0LjAyNSA5Yy4xMDgtMS40MTguNjY5LTIuNzA4IDEuNTQyLTMuNzI2bDEuNDMxIDEuNDMxYy0uNTE2LjY0Ni0uODUxIDEuNDMtLjk0NyAyLjI5NGgtMi4wMjZ6bTIuOTczIDMuMjk1Yy0uNTE2LS42NDYtLjg1MS0xLjQzLS45NDctMi4yOTVoLTIuMDI1Yy4xMDggMS40MTguNjY5IDIuNzA3IDEuNTQyIDMuNzI2bDEuNDMtMS40MzF6bTQuMDAyLTkuMjd2Mi4wMjVjLjg2NS4wOTcgMS42NDkuNDMyIDIuMjk1Ljk0OGwxLjQzMS0xLjQzMWMtMS4wMTgtLjg3My0yLjMwOC0xLjQzMy0zLjcyNi0xLjU0MnptLTMuMjk1IDIuOTc0Yy42NDYtLjUxNiAxLjQzLS44NTEgMi4yOTUtLjk0OHYtMi4wMjZjLTEuNDE4LjEwOC0yLjcwOC42NjktMy43MjYgMS41NDJsMS40MzEgMS40MzJ6bTYuMjk3LjcwN2MuNTE2LjY0Ni44NTEgMS40My45NDcgMi4yOTRoMi4wMjVjLS4xMDgtMS40MTgtLjY2OS0yLjcwOC0xLjU0Mi0zLjcyNmwtMS40MyAxLjQzMnptLTQuMDAyIDcuMjQzYy0uODY1LS4wOTctMS42NDktLjQzMi0yLjI5NS0uOTQ3bC0xLjQzMSAxLjQzMWMxLjAxOC44NzMgMi4zMDcgMS40MzQgMy43MjYgMS41NDJ2LTIuMDI2em00Ljk0OS0zLjk0OWMtLjA5Ny44NjUtLjQzMiAxLjY0OC0uOTQ3IDIuMjk1bDEuNDMxIDEuNDMxYy44NzMtMS4wMTkgMS40MzQtMi4zMDggMS41NDItMy43MjZoLTIuMDI2em0tMS42NTQgMy4wMDJjLS42NDYuNTE2LTEuNDMuODUxLTIuMjk1Ljk0N3YyLjAyNWMxLjQxOS0uMTA4IDIuNzA4LS42NjkgMy43MjYtMS41NDJsLTEuNDMxLTEuNDN6IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgeD0iMjAyIiB5PSIyMyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE0IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTIwMyAyNHYxMmgxNHYtMTJoLTE0em0xMyAxMWgtMTJ2LTEwaDEydjEwem0tNi03di0xaC0xdjVoM3YtNGgtMnptMSAzaC0xdi0yaDF2MnptMy0ydjJoMXYxaC0ydi00aDJ2MWgtMXptLTYtMXY0aC0zdi0yaDF2MWgxdi0xaC0xdi0xaC0xdi0xaDN6IiBmaWxsPSIjQzVDNUM1Ii8+PHBhdGggZD0iTTIxMCAyOWgxdjJoLTF2LTJ6bS0zIDJ2LTFoLTF2MWgxem05LTZ2MTBoLTEydi0xMGgxMnptLTggM2gtM3YxaDF2MWgtMXYyaDN2LTR6bTQgMGgtMnYtMWgtMXY1aDN2LTR6bTMgMGgtMnY0aDJ2LTFoLTF2LTJoMXYtMXoiIGZpbGw9IiMyRDJEMkQiLz48cmVjdCB4PSIyMDIiIHk9IjMiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNCIgZmlsbD0iI0YzRjNGMyIvPjxwYXRoIGQ9Ik0yMDMgNHYxMmgxNHYtMTJoLTE0em0xMyAxMWgtMTJ2LTEwaDEydjEwem0tNi03di0xaC0xdjVoM3YtNGgtMnptMSAzaC0xdi0yaDF2MnptMy0ydjJoMXYxaC0ydi00aDJ2MWgtMXptLTYtMXY0aC0zdi0yaDF2MWgxdi0xaC0xdi0xaC0xdi0xaDN6IiBmaWxsPSIjNDI0MjQyIi8+PHBhdGggZD0iTTIxMCA5aDF2MmgtMXYtMnptLTMgMnYtMWgtMXYxaDF6bTktNnYxMGgtMTJ2LTEwaDEyem0tOCAzaC0zdjFoMXYxaC0xdjJoM3YtNHptNCAwaC0ydi0xaC0xdjVoM3YtNHptMyAwaC0ydjRoMnYtMWgtMXYtMmgxdi0xeiIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik0xOTYuNjUyIDMyLjVjLjgxMS0uNTM3IDEuMzQ4LTEuNDU3IDEuMzQ4LTIuNSAwLTEuNjU0LTEuMzQ2LTMtMy0zLS43NzEgMC0xLjQ2OC4zMDEtMiAuNzc5di01Ljc3OWgtMTF2MTJoMy43NjRsLTEuNDUyLjcyNyAxLjQ4MSAxLjQ4Yy4zMjIuMzIyLjgwMy41IDEuMzU0LjUuNDM2IDAgLjg5Ny0uMTExIDEuMzAxLS4zMTNsMy4xNDQtMS41NzJjLjEzNC4wNTMuMjcxLjA5OC40MTQuMTI3bC0uMDA1LjA1MWMwIDEuNjU0IDEuMzQ2IDMgMyAzczMtMS4zNDYgMy0zYy0uMDAxLTEuMDQzLS41MzgtMS45NjMtMS4zNDktMi41eiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0xOTUgMzNjLS4yOTMgMC0uNTY5LjA2Ni0uODIuMThsLS4yNS0uMjVjLjA0Mi0uMTM3LjA3LS4yNzkuMDctLjQzcy0uMDI4LS4yOTMtLjA3LS40M2wuMjUtLjI1Yy4yNTEuMTEzLjUyNy4xOC44Mi4xOCAxLjEwNCAwIDItLjg5NiAyLTIgMC0xLjEwNS0uODk2LTItMi0ycy0yIC44OTUtMiAyYzAgLjI5My4wNjYuNTY4LjE4LjgybC0uMjUuMjVjLS4xMzctLjA0My0uMjc5LS4wNy0uNDMtLjA3LS4zMzcgMC0uNjQ1LjExNS0uODk1LjMwM2wtMi42MDctMS4zMDUtLjk5OS0uNWMtLjU1Mi0uMjc1LTEuMjIzLS4yNzUtMS40OTkuMDAybC0uNS41IDUgMi41LTUgMi41LjUuNWMuMjc2LjI3NS45NDcuMjc1IDEuNSAwbDEtLjUgMi42MDUtMS4zMDNjLjI1LjE4OC41NTguMzAzLjg5NS4zMDMuMTUgMCAuMjkzLS4wMjkuNDMtLjA3bC4yNS4yNWMtLjExNC4yNS0uMTguNTI3LS4xOC44MiAwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0yYzAtMS4xMDUtLjg5Ni0yLTItMnptMC00Yy41NTMgMCAxIC40NDcgMSAxIDAgLjU1MS0uNDQ3IDEtMSAxcy0xLS40NDktMS0xYzAtLjU1My40NDctMSAxLTF6bS0yLjUgNGMtLjI3NiAwLS41LS4yMjUtLjUtLjUgMC0uMjc3LjIyNC0uNS41LS41cy41LjIyMy41LjVjMCAuMjc1LS4yMjQuNS0uNS41em0yLjUgM2MtLjU1MyAwLTEtLjQ0OS0xLTEgMC0uNTUzLjQ0Ny0xIDEtMXMxIC40NDcgMSAxYzAgLjU1MS0uNDQ3IDEtMSAxem0tMy0xM3Y3LjA1MWMtLjE0Mi4wMjktLjI3OS4wNy0uNDEzLjEyM2wtLjU4Ny0uMTc0di02aC03djdoLTF2LThoOXptLTggMTBoLTF2LTFoMXYxem0yLTFoLTF2MWgxdi0xem0yIDBoLTF2MWgxdi0xeiIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik0xODUuNzkzIDI4Ljc5M2wtMS43OTMgMS4yMDd2LTZoN3Y1LjM4MWwtMi41NTQtLjc3N2MtLjgxNi0uNDA5LTEuOTktLjQ3NS0yLjY1My4xODl6bS0uNzkzIDIuMjA3aC43NjRsLS43NjQtLjM4M3YuMzgzem0xMSA0YzAgLjU1MS0uNDQ3IDEtMSAxcy0xLS40NDktMS0xYzAtLjU1My40NDctMSAxLTFzMSAuNDQ3IDEgMXptLTMuNS0zYy0uMjc2IDAtLjUuMjIzLS41LjUgMCAuMjc1LjIyNC41LjUuNXMuNS0uMjI1LjUtLjVjMC0uMjc3LS4yMjQtLjUtLjUtLjV6bTIuNS0zYy0uNTUzIDAtMSAuNDQ3LTEgMSAwIC41NTEuNDQ3IDEgMSAxczEtLjQ0OSAxLTFjMC0uNTUzLS40NDctMS0xLTF6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTE5Ni42NTIgMTIuNWMuODExLS41MzggMS4zNDgtMS40NTggMS4zNDgtMi41IDAtMS42NTQtMS4zNDYtMy0zLTMtLjc3MSAwLTEuNDY4LjMwMS0yIC43Nzl2LTUuNzc5aC0xMXYxMmgzLjc2NGwtMS40NTIuNzI3IDEuNDgxIDEuNDhjLjMyMi4zMjIuODAzLjUgMS4zNTQuNS40MzYgMCAuODk3LS4xMTEgMS4zMDEtLjMxM2wzLjE0NC0xLjU3MmMuMTM0LjA1My4yNzEuMDk4LjQxNC4xMjdsLS4wMDUuMDUxYzAgMS42NTQgMS4zNDYgMyAzIDNzMy0xLjM0NiAzLTNjLS4wMDEtMS4wNDMtLjUzOC0xLjk2My0xLjM0OS0yLjV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTE5NSAxM2MtLjI5MyAwLS41NjkuMDY2LS44Mi4xOGwtLjI1LS4yNWMuMDQyLS4xMzcuMDctLjI3OS4wNy0uNDNzLS4wMjgtLjI5My0uMDctLjQzbC4yNS0uMjVjLjI1MS4xMTMuNTI3LjE4LjgyLjE4IDEuMTA0IDAgMi0uODk2IDItMiAwLTEuMTA1LS44OTYtMi0yLTJzLTIgLjg5NS0yIDJjMCAuMjkzLjA2Ni41NjguMTguODJsLS4yNS4yNWMtLjEzNy0uMDQzLS4yNzktLjA3LS40My0uMDctLjMzNyAwLS42NDUuMTE1LS44OTUuMzAzbC0yLjYwNy0xLjMwNC0uOTk5LS41Yy0uNTUyLS4yNzUtMS4yMjMtLjI3NS0xLjQ5OS4wMDJsLS41LjQ5OSA1IDIuNS01IDIuNS41LjVjLjI3Ni4yNzUuOTQ3LjI3NSAxLjUgMGwxLS41IDIuNjA1LTEuMzAzYy4yNS4xODguNTU4LjMwMy44OTUuMzAzLjE1IDAgLjI5My0uMDI5LjQzLS4wN2wuMjUuMjVjLS4xMTMuMjUtLjE4LjUyNy0uMTguODIgMCAxLjEwNC44OTYgMiAyIDJzMi0uODk2IDItMmMwLTEuMTA2LS44OTYtMi0yLTJ6bTAtNGMuNTUzIDAgMSAuNDQ3IDEgMSAwIC41NTEtLjQ0NyAxLTEgMXMtMS0uNDQ5LTEtMWMwLS41NTMuNDQ3LTEgMS0xem0tMi41IDRjLS4yNzYgMC0uNS0uMjI1LS41LS41IDAtLjI3Ny4yMjQtLjUuNS0uNXMuNS4yMjMuNS41YzAgLjI3NS0uMjI0LjUtLjUuNXptMi41IDNjLS41NTMgMC0xLS40NDktMS0xIDAtLjU1My40NDctMSAxLTFzMSAuNDQ3IDEgMWMwIC41NS0uNDQ3IDEtMSAxem0tMy0xM3Y3LjA1MWMtLjE0Mi4wMjktLjI3OS4wNy0uNDEzLjEyM2wtLjU4Ny0uMTc0di02aC03djdoLTF2LThoOXptLTggMTBoLTF2LTFoMXYxem0yLTFoLTF2MWgxdi0xem0yIDBoLTF2MWgxdi0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik0xODUuNzkzIDguNzkzbC0xLjc5MyAxLjIwN3YtNmg3djUuMzgxbC0yLjU1NC0uNzc3Yy0uODE2LS40MDktMS45OS0uNDc1LTIuNjUzLjE4OXptLS43OTMgMi4yMDdoLjc2NGwtLjc2NC0uMzgzdi4zODN6bTExIDRjMCAuNTUxLS40NDcgMS0xIDFzLTEtLjQ0OS0xLTFjMC0uNTUzLjQ0Ny0xIDEtMXMxIC40NDcgMSAxem0tMy41LTNjLS4yNzYgMC0uNS4yMjMtLjUuNSAwIC4yNzUuMjI0LjUuNS41cy41LS4yMjUuNS0uNWMwLS4yNzgtLjIyNC0uNS0uNS0uNXptMi41LTNjLS41NTMgMC0xIC40NDctMSAxIDAgLjU1MS40NDcgMSAxIDFzMS0uNDQ5IDEtMWMwLS41NTMtLjQ0Ny0xLTEtMXoiIGZpbGw9IiNGMEVGRjEiLz48cGF0aCBkPSJNMTc4IDI3di0zaC03di0xaC05djE0aDEzdi0zaDN2LTNoLTF2LTNoLTZ2LTFoN3ptLTggN3YtM2gxdjNoLTF6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTE3NyAyNmgtNXYtMWg1djF6bS0xIDNoLTJ2MWgydi0xem0tNCAwaC05djFoOXYtMXptMiA2aC0xMXYxaDExdi0xem0tNS0zaC02djFoNnYtMXptOCAwaC01djFoNXYtMXptLTctOHYzaC03di0zaDd6bS0xIDFoLTV2MWg1di0xeiIgZmlsbD0iI0M1QzVDNSIvPjxyZWN0IHg9IjE2NCIgeT0iMjUiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMTc4IDd2LTNoLTd2LTFoLTl2MTRoMTN2LTNoM3YtM2gtMXYtM2gtNnYtMWg3em0tOCA3di0zaDF2M2gtMXoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMTc3IDZoLTV2LTFoNXYxem0tMSAzaC0ydjFoMnYtMXptLTQgMGgtOXYxaDl2LTF6bTIgNmgtMTF2MWgxMXYtMXptLTUtM2gtNnYxaDZ2LTF6bTggMGgtNXYxaDV2LTF6bS03LTh2M2gtN3YtM2g3em0tMSAxaC01djFoNXYtMXoiIGZpbGw9IiM0MjQyNDIiLz48cmVjdCB4PSIxNjQiIHk9IjUiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIGZpbGw9IiNGMEVGRjEiLz48cG9seWdvbiBwb2ludHM9IjE1NC40MTQsMjQgMTQ5LjU4NiwyNCAxNDgsMjUuNTg2IDE0OCwyOCAxNDQsMjggMTQ0LDM1IDE1MiwzNSAxNTIsMzEgMTU0LjQxNCwzMSAxNTYsMjkuNDE0IDE1NiwyNS41ODYiIGZpbGw9IiMyRDJEMkQiLz48ZyBmaWxsPSIjNzVCRUZGIj48cGF0aCBkPSJNMTU0IDI1aC00bC0xIDF2Mmg1djFoLTJ2MWgybDEtMXYtM2wtMS0xem0wIDJoLTR2LTFoNHYxek0xNDUgMzRoNnYtNWgtNnY1em0xLTNoNHYxaC00di0xeiIvPjwvZz48ZyBmaWxsPSIjMkQyRDJEIj48cmVjdCB4PSIxNDYiIHk9IjMxIiB3aWR0aD0iNCIgaGVpZ2h0PSIxIi8+PHJlY3QgeD0iMTUwIiB5PSIyNiIgd2lkdGg9IjQiIGhlaWdodD0iMSIvPjxyZWN0IHg9IjE1MiIgeT0iMjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiLz48L2c+PHBvbHlnb24gcG9pbnRzPSIxNTQuNDE0LDQgMTQ5LjU4Niw0IDE0OCw1LjU4NiAxNDgsOCAxNDQsOCAxNDQsMTUgMTUyLDE1IDE1MiwxMSAxNTQuNDE0LDExIDE1Niw5LjQxNCAxNTYsNS41ODYiIGZpbGw9IiNGM0YzRjMiLz48ZyBmaWxsPSIjMDA1MzlDIj48cGF0aCBkPSJNMTU0IDVoLTRsLTEgMXYyaDV2MWgtMnYxaDJsMS0xdi0zbC0xLTF6bTAgMmgtNHYtMWg0djF6TTE0NSAxNGg2di01aC02djV6bTEtM2g0djFoLTR2LTF6Ii8+PC9nPjxnIGZpbGw9IiNGMEVGRjEiPjxyZWN0IHg9IjE0NiIgeT0iMTEiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNTAiIHk9IjYiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNTIiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiLz48L2c+PHBhdGggZD0iTTEzOCAyNGgtMTV2NGgtMXY4aDh2LTZoOHYtNnptLTExIDloLTJ2LTJoMnYyeiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0xMzcgMjloLTd2LTFoLTZ2LTNoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXY0em0tMTIgMXYtMWgtMnY2aDJ2LTFoLTF2LTRoMXptMiA0djFoMnYtNmgtMnYxaDF2NGgtMXoiIGZpbGw9IiNDNUM1QzUiLz48cGF0aCBkPSJNMTI1IDI3di0yaDF2MmgtMXptMyAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMTM4IDRoLTE1djRoLTF2OGg4di02aDh2LTZ6bS0xMSA5aC0ydi0yaDJ2MnoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMTM3IDloLTd2LTFoLTZ2LTNoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXY0em0tMTIgMXYtMWgtMnY2aDJ2LTFoLTF2LTRoMXptMiA0djFoMnYtNmgtMnYxaDF2NGgtMXoiIGZpbGw9IiM0MjQyNDIiLz48cGF0aCBkPSJNMTI1IDd2LTJoMXYyaC0xem0zIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2MmgxeiIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik0xMTAuNDQ5IDIzYy0xLjYzNyAwLTMuMDc1Ljc5Ny0zLjk4NyAyLjAxMmwuMDAxLjAwMmMtLjYyOC44MzYtMS4wMTQgMS44NjMtMS4wMTQgMi45ODYgMCAuNDY5LjA2Ny45MzMuMiAxLjM4NWwtMi45MDcgMi45MDhjLS42ODcuNjg2LTEuMjUzIDIuMTYxIDAgMy40MTQuNjA5LjYwOSAxLjI0NC43MzYgMS42Ny43MzYuOTU4IDAgMS42MjEtLjYxMyAxLjc0NC0uNzM2bDIuOTA3LTIuOTA4Yy40NTMuMTMzLjkxNy4yMDEgMS4zODYuMjAxIDEuMTIzIDAgMi4xNDktLjM4NyAyLjk4NS0xLjAxNGwuMDAyLjAwMWMxLjIxNi0uOTEyIDIuMDEzLTIuMzUyIDIuMDEzLTMuOTg3IDAtMi43NjItMi4yMzgtNS01LTV6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTExNC4wOSAyNi4zNTlsLTIuNjQxIDIuNjQxLTItMiAyLjY0MS0yLjY0MWMtLjUwMi0uMjI3LTEuMDU1LS4zNTktMS42NDEtLjM1OS0yLjIwOSAwLTQgMS43OTEtNCA0IDAgLjU4Ni4xMzMgMS4xMzkuMzU5IDEuNjRsLTMuMzU5IDMuMzZzLTEgMSAwIDJoMmwzLjM1OS0zLjM2Yy41MDIuMjI3IDEuMDU1LjM2IDEuNjQxLjM2IDIuMjA5IDAgNC0xLjc5MSA0LTQgMC0uNTg2LS4xMzMtMS4xMzktLjM1OS0xLjY0MXoiIGZpbGw9IiNDNUM1QzUiLz48cGF0aCBkPSJNMTEwLjQ0OSAzYy0xLjYzNyAwLTMuMDc1Ljc5Ny0zLjk4NyAyLjAxMmwuMDAxLjAwMmMtLjYyOC44MzYtMS4wMTQgMS44NjMtMS4wMTQgMi45ODYgMCAuNDY5LjA2Ny45MzMuMiAxLjM4NWwtMi45MDcgMi45MDhjLS42ODcuNjg2LTEuMjUzIDIuMTYxIDAgMy40MTQuNjA5LjYwOSAxLjI0NC43MzYgMS42Ny43MzYuOTU4IDAgMS42MjEtLjYxMyAxLjc0NC0uNzM2bDIuOTA3LTIuOTA4Yy40NTMuMTMzLjkxNy4yMDEgMS4zODYuMjAxIDEuMTIzIDAgMi4xNDktLjM4NyAyLjk4NS0xLjAxNGwuMDAyLjAwMWMxLjIxNi0uOTEyIDIuMDEzLTIuMzUyIDIuMDEzLTMuOTg3IDAtMi43NjItMi4yMzgtNS01LTV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTExNC4wOSA2LjM1OWwtMi42NDEgMi42NDEtMi0yIDIuNjQxLTIuNjQxYy0uNTAyLS4yMjYtMS4wNTUtLjM1OS0xLjY0MS0uMzU5LTIuMjA5IDAtNCAxLjc5MS00IDQgMCAuNTg2LjEzMyAxLjEzOS4zNTkgMS42NGwtMy4zNTkgMy4zNnMtMSAxIDAgMmgybDMuMzU5LTMuMzZjLjUwMi4yMjcgMS4wNTUuMzYgMS42NDEuMzYgMi4yMDkgMCA0LTEuNzkxIDQtNCAwLS41ODYtLjEzMy0xLjEzOS0uMzU5LTEuNjQxeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik04OSAzM2gxdi0xYzAtLjUzNy43NDEtMS42MTMgMS0yLS4yNTktLjM4OS0xLTEuNDY3LTEtMnYtMWgtMXYtM2gxYzEuOTY5LjAyMSAzIDEuMjc3IDMgM3YxbDEgMXYybC0xIDF2MWMwIDEuNzA5LTEuMDMxIDIuOTc5LTMgM2gtMXYtM3ptLTIgMGgtMXYtMWMwLS41MzctLjc0MS0xLjYxMy0xLTIgLjI1OS0uMzg5IDEtMS40NjcgMS0ydi0xaDF2LTNoLTFjLTEuOTY5LjAyMS0zIDEuMjc3LTMgM3YxbC0xIDF2MmwxIDF2MWMwIDEuNzA5IDEuMzE3IDIuOTc5IDMuMjg2IDNoLjcxNHYtM3oiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNOTEgMzN2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik04OSAxM2gxdi0xYzAtLjUzNy43NDEtMS42MTMgMS0yLS4yNTktLjM4OS0xLTEuNDY3LTEtMnYtMWgtMXYtM2gxYzEuOTY5LjAyMSAzIDEuMjc3IDMgM3YxbDEgMXYybC0xIDF2MWMwIDEuNzA5LTEuMDMxIDIuOTc5LTMgM2gtMXYtM3ptLTIgMGgtMXYtMWMwLS41MzctLjc0MS0xLjYxMy0xLTIgLjI1OS0uMzg5IDEtMS40NjcgMS0ydi0xaDF2LTNoLTFjLTEuOTY5LjAyMS0zIDEuMjc3LTMgM3YxbC0xIDF2MmwxIDF2MWMwIDEuNzA5IDEuMzE3IDIuOTc5IDMuMjg2IDNoLjcxNHYtM3oiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNOTEgMTN2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik03My41IDM0Yy0xLjkxNCAwLTMuNjAxLTEuMjQyLTQuMjI3LTNoLTEuNjgzYy0uNTI0LjkxLTEuNTAzIDEuNS0yLjU5MSAxLjUtMS42NTQgMC0zLTEuMzQ2LTMtM3MxLjM0Ni0zIDMtM2MxLjA4OCAwIDIuMDY2LjU4OCAyLjU5MSAxLjVoMS42ODNjLjYyNi0xLjc2IDIuMzEzLTMgNC4yMjctMyAyLjQ4MSAwIDQuNSAyLjAxOCA0LjUgNC41IDAgMi40OC0yLjAxOSA0LjUtNC41IDQuNXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNNzMuNSAyNmMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIgZmlsbD0iIzc1QkVGRiIvPjxjaXJjbGUgY3g9IjczLjUiIGN5PSIyOS41IiByPSIxLjUiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNNzMuNSAxNGMtMS45MTQgMC0zLjYwMS0xLjI0Mi00LjIyNy0zaC0xLjY4M2MtLjUyNC45MS0xLjUwMyAxLjUtMi41OTEgMS41LTEuNjU0IDAtMy0xLjM0Ni0zLTNzMS4zNDYtMyAzLTNjMS4wODggMCAyLjA2Ni41ODggMi41OTEgMS41aDEuNjgzYy42MjYtMS43NiAyLjMxMy0zIDQuMjI3LTMgMi40ODEgMCA0LjUgMi4wMTggNC41IDQuNSAwIDIuNDgtMi4wMTkgNC41LTQuNSA0LjV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTczLjUgNmMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIgZmlsbD0iIzAwNTM5QyIvPjxjaXJjbGUgY3g9IjczLjUiIGN5PSI5LjUiIHI9IjEuNSIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik01OCAyOC41ODZsLTMtMy0xLjQxNCAxLjQxNGgtMi4xNzJsMS0xLTQtNGgtLjgyOGwtNS41ODYgNS41ODZ2LjgyOGw0IDQgMi40MTQtMi40MTRoLjU4NnY1aDEuNTg2bDMgM2guODI4bDMuNTg2LTMuNTg2di0uODI4bC0yLjA4Ni0yLjA4NiAyLjA4Ni0yLjA4NnYtLjgyOHoiIGZpbGw9IiMyRDJEMkQiLz48cG9seWdvbiBwb2ludHM9IjUzLjk5OCwzMy4wMDIgNTEsMzMgNTEsMjkgNTMsMjkgNTIsMzAgNTQsMzIgNTcsMjkgNTUsMjcgNTQsMjggNDksMjggNTEsMjYgNDgsMjMgNDMsMjggNDYsMzEgNDgsMjkgNTAsMjkgNTAsMzQgNTMsMzQgNTIsMzUgNTQsMzcgNTcsMzQgNTUsMzIiIGZpbGw9IiNDMjdEMUEiLz48cGF0aCBkPSJNNTggOC41ODZsLTMtMy0xLjQxNCAxLjQxNGgtMi4xNzJsMS0xLTQtNGgtLjgyOGwtNS41ODYgNS41ODZ2LjgyOGw0IDQgMi40MTQtMi40MTRoLjU4NnY1aDEuNTg2bDMgM2guODI4bDMuNTg2LTMuNTg2di0uODI4bC0yLjA4Ni0yLjA4NiAyLjA4Ni0yLjA4NnYtLjgyOHoiIGZpbGw9IiNGM0YzRjMiLz48cG9seWdvbiBwb2ludHM9IjUzLjk5OCwxMy4wMDIgNTEsMTMgNTEsOSA1Myw5IDUyLDEwIDU0LDEyIDU3LDkgNTUsNyA1NCw4IDQ5LDggNTEsNiA0OCwzIDQzLDggNDYsMTEgNDgsOSA1MCw5IDUwLDE0IDUzLDE0IDUyLDE1IDU0LDE3IDU3LDE0IDU1LDEyIiBmaWxsPSIjQzI3RDFBIi8+PHBhdGggZD0iTTI5LjI2MyAyNGw0LjczNyAyLjM2OXY1LjIzNmwtNi43OTEgMy4zOTVoLS40MmwtNC43ODktMi4zOTV2LTUuMjM2bDYuNzM5LTMuMzY5aC41MjR6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTIzIDI4djRsNCAyIDYtM3YtNGwtNC0yLTYgM3ptNCAxbC0yLTEgNC0yIDIgMS00IDJ6IiBmaWxsPSIjNzVCRUZGIi8+PHBhdGggZD0iTTI5IDI2bDIgMS00IDItMi0xIDQtMnoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjkuMjYzIDRsNC43MzcgMi4zNjl2NS4yMzZsLTYuNzkxIDMuMzk1aC0uNDJsLTQuNzg5LTIuMzk1di01LjIzNmw2LjczOS0zLjM2OWguNTI0eiIgZmlsbD0iI0YzRjNGMyIvPjxwYXRoIGQ9Ik0yMyA4djRsNCAyIDYtM3YtNGwtNC0yLTYgM3ptNCAxbC0yLTEgNC0yIDIgMS00IDJ6IiBmaWxsPSIjMDA1MzlDIi8+PHBhdGggZD0iTTI5IDZsMiAxLTQgMi0yLTEgNC0yeiIgZmlsbD0iI0YwRUZGMSIvPjxwb2x5Z29uIHBvaW50cz0iMiwyNy4zMDggMiwzMi42OTIgNy4yMDksMzYgNy43OTEsMzYgMTMsMzIuNjkyIDEzLDI3LjMwOCA3Ljc5MSwyNCA3LjIwOSwyNCIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik03LjUgMjVsLTQuNSAyLjg1N3Y0LjI4NWw0LjUgMi44NTggNC41LTIuODU3di00LjI4NWwtNC41LTIuODU4em0tLjUgOC40OThsLTMtMS45MDV2LTIuODE1bDMgMS45MDV2Mi44MTV6bS0yLjM1OC01LjQ5OGwyLjg1OC0xLjgxNSAyLjg1OCAxLjgxNS0yLjg1OCAxLjgxNS0yLjg1OC0xLjgxNXptNi4zNTggMy41OTNsLTMgMS45MDV2LTIuODE1bDMtMS45MDV2Mi44MTV6IiBmaWxsPSIjQjE4MEQ3Ii8+PHBvbHlnb24gcG9pbnRzPSIxMC4zNTgsMjggNy41LDI5LjgxNSA0LjY0MiwyOCA3LjUsMjYuMTg1IiBmaWxsPSIjMkQyRDJEIi8+PHBvbHlnb24gcG9pbnRzPSI0LDI4Ljc3NyA3LDMwLjY4MyA3LDMzLjQ5OCA0LDMxLjU5MyIgZmlsbD0iIzJEMkQyRCIvPjxwb2x5Z29uIHBvaW50cz0iOCwzMy40OTggOCwzMC42ODMgMTEsMjguNzc3IDExLDMxLjU5MyIgZmlsbD0iIzJEMkQyRCIvPjxwb2x5Z29uIHBvaW50cz0iMiw3LjMwOCAyLDEyLjY5MiA3LjIwOSwxNiA3Ljc5MSwxNiAxMywxMi42OTIgMTMsNy4zMDggNy43OTEsNCA3LjIwOSw0IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTcuNSA1bC00LjUgMi44NTd2NC4yODVsNC41IDIuODU4IDQuNS0yLjg1N3YtNC4yODZsLTQuNS0yLjg1N3ptLS41IDguNDk4bC0zLTEuOTA1di0yLjgxNmwzIDEuOTA1djIuODE2em0tMi4zNTgtNS40OThsMi44NTgtMS44MTUgMi44NTggMS44MTUtMi44NTggMS44MTUtMi44NTgtMS44MTV6bTYuMzU4IDMuNTkzbC0zIDEuOTA1di0yLjgxNWwzLTEuOTA1djIuODE1eiIgZmlsbD0iIzY1MkQ5MCIvPjxwb2x5Z29uIHBvaW50cz0iMTAuMzU4LDggNy41LDkuODE1IDQuNjQyLDggNy41LDYuMTg1IiBmaWxsPSIjRjBFRkYxIi8+PHBvbHlnb24gcG9pbnRzPSI0LDguNzc3IDcsMTAuNjgzIDcsMTMuNDk4IDQsMTEuNTkzIiBmaWxsPSIjRjBFRkYxIi8+PHBvbHlnb24gcG9pbnRzPSI4LDEzLjQ5OCA4LDEwLjY4MyAxMSw4Ljc3NyAxMSwxMS41OTMiIGZpbGw9IiNGMEVGRjEiLz48L3N2Zz4=");\n\tbackground-repeat: no-repeat;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor\t\t{ background-position: 0 -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable \t\t\t{ background-position: -22px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class \t\t\t\t{ background-position: -43px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface \t\t\t{ background-position: -63px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module \t\t\t{ background-position: -82px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property \t\t\t{ background-position: -102px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum\t\t \t\t{ background-position: -122px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule\t\t \t\t{ background-position: -242px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file\t\t \t\t{ background-position: -262px -4px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor \t{ background-position: 0 -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable \t\t{ background-position: -22px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class \t\t{ background-position: -43px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface \t{ background-position: -63px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module \t\t{ background-position: -82px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property \t\t{ background-position: -102px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum\t\t \t{ background-position: -122px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule\t\t \t{ background-position: -242px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file\t\t \t{ background-position: -262px -24px; }\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\tbackground: none;\n\tdisplay: inline;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon:before {\n\theight: 16px;\n\twidth: 16px;\n\tdisplay: inline-block;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0IxODBENyIgZD0iTTUuNSAzbC00LjUgMi44NTd2NC4yODVsNC41IDIuODU4IDQuNS0yLjg1N3YtNC4yODZsLTQuNS0yLjg1N3ptLS41IDguNDk4bC0zLTEuOTA1di0yLjgxNmwzIDEuOTA1djIuODE2em0tMi4zNTgtNS40OThsMi44NTgtMS44MTUgMi44NTggMS44MTUtMi44NTggMS44MTUtMi44NTgtMS44MTV6bTYuMzU4IDMuNTkzbC0zIDEuOTA1di0yLjgxNWwzLTEuOTA1djIuODE1eiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTEgNnY0bDQgMiA2LTN2LTRsLTQtMi02IDN6bTQgMWwtMi0xIDQtMiAyIDEtNCAyeiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0U4QUI1MyIgcG9pbnRzPSIxMS45OTgsMTEuMDAyIDksMTEgOSw3IDExLDcgMTAsOCAxMiwxMCAxNSw3IDEzLDUgMTIsNiA3LDYgOSw0IDYsMSAxLDYgNCw5IDYsNyA4LDcgOCwxMiAxMSwxMiAxMCwxMyAxMiwxNSAxNSwxMiAxMywxMCIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTExLjUgNGMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkgMTF2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property:before\t{\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEyLjA5IDQuMzU5bC0yLjY0MSAyLjY0MS0yLTIgMi42NDEtMi42NDFjLS41MDItLjIyNi0xLjA1NS0uMzU5LTEuNjQxLS4zNTktMi4yMDkgMC00IDEuNzkxLTQgNCAwIC41ODYuMTMzIDEuMTM5LjM1OSAxLjY0bC0zLjM1OSAzLjM2cy0xIDEgMCAyaDJsMy4zNTktMy4zNmMuNTAzLjIyNiAxLjA1NS4zNiAxLjY0MS4zNiAyLjIwOSAwIDQtMS43OTEgNC00IDAtLjU4Ni0uMTMzLTEuMTM5LS4zNTktMS42NDF6Ii8+PC9zdmc+);\n\tmargin-left: 1px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.value:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum:before\t{\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgZmlsbD0iIzc1QkVGRiI+PHBhdGggZD0iTTEyIDNoLTRsLTEgMXYyaDV2MWgtMnYxaDJsMS0xdi0zbC0xLTF6bTAgMmgtNHYtMWg0djF6TTMgMTJoNnYtNWgtNnY1em0xLTNoNHYxaC00di0xeiIvPjwvZz48L3N2Zz4=);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEwIDVoLTh2LTJoOHYyem0wIDFoLTZ2MWg2di0xem0wIDJoLTZ2MWg2di0xeiIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkuNjc2IDJoLTYuNjc2djEyaDEwdi05bC0zLjMyNC0zem0yLjMyNCAxMWgtOHYtMTBoNXYzaDN2N3oiLz48L3N2Zz4=);\n}'},"s/JM":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .parameter-hints-widget {\n\tz-index: 10;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\tline-height: 1.5em;\n}\n\n.monaco-editor .parameter-hints-widget > .wrapper {\n\tmax-width: 440px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n}\n\n.monaco-editor .parameter-hints-widget.multiple {\n\tmin-height: 3.3em;\n\tpadding: 0 0 0 1.9em;\n}\n\n.monaco-editor .parameter-hints-widget.visible {\n\t-webkit-transition: left .05s ease-in-out;\n\ttransition: left .05s ease-in-out;\n}\n\n.monaco-editor .parameter-hints-widget p,\n.monaco-editor .parameter-hints-widget ul {\n\tmargin: 8px 0;\n}\n\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\n.monaco-editor .parameter-hints-widget .body {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n}\n\n.monaco-editor .parameter-hints-widget .signature {\n\tpadding: 4px 5px;\n}\n\n.monaco-editor .parameter-hints-widget .docs {\n\tpadding: 0 10px 0 5px;\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs.markdown-docs {\n\twhite-space: initial;\n}\n\n.monaco-editor .parameter-hints-widget .docs .code {\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-editor .parameter-hints-widget .buttons {\n\tposition: absolute;\n\tdisplay: none;\n\tbottom: 0;\n\tleft: 0;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .buttons {\n\tdisplay: block;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .button {\n\tposition: absolute;\n\tleft: 2px;\n\twidth: 16px;\n\theight: 16px;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n\n.monaco-editor .parameter-hints-widget .button.previous {\n\tbottom: 24px;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .parameter-hints-widget .button.next {\n\tbottom: 0;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .parameter-hints-widget .overloads {\n\tposition: absolute;\n\tdisplay: none;\n\ttext-align: center;\n\tbottom: 14px;\n\tleft: 0;\n\twidth: 22px;\n\theight: 12px;\n\tline-height: 12px;\n\topacity: 0.5;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .overloads {\n\tdisplay: block;\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\n\tfont-weight: bold;\n\ttext-decoration: underline;\n}\n\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\n\tfont-weight: bold;\n\tmargin-right: 0.5em;\n}\n\n/*** VS Dark & High Contrast*/\n\n.monaco-editor.hc-black .parameter-hints-widget .button.previous,\n.monaco-editor.vs-dark .parameter-hints-widget .button.previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .parameter-hints-widget .button.next,\n.monaco-editor.vs-dark .parameter-hints-widget .button.next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==");\n}'},s0RT:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Checkbox */\n\n.monaco-checkbox .label {\n\twidth: 12px;\n\theight: 12px;\n\tborder: 1px solid black;\n\tbackground-color: transparent;\n\tdisplay: inline-block;\n}\n\n.monaco-checkbox .checkbox {\n\tposition: absolute;\n\toverflow: hidden;\n\tclip: rect(0 0 0 0);\n\theight: 1px;\n\twidth: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\tborder: 0;\n}\n\n.monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: black;\n}\n\n/* Find widget */\n\n.monaco-editor .find-widget {\n\tposition: absolute;\n\tz-index: 10;\n\ttop: -44px; /* find input height + shadow (10px) */\n\theight: 34px; /* find input height */\n\toverflow: hidden;\n\tline-height: 19px;\n\n\t-webkit-transition: top 200ms linear;\n\ttransition: top 200ms linear;\n\n\tpadding: 0 4px;\n}\n\n/* Find widget when replace is toggled on */\n\n.monaco-editor .find-widget.replaceToggled {\n\ttop: -74px; /* find input height + replace input height + shadow (10px) */\n\theight: 64px; /* find input height + replace input height */\n}\n\n.monaco-editor .find-widget.replaceToggled > .replace-part {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-editor .find-widget.visible,\n.monaco-editor .find-widget.replaceToggled.visible {\n\ttop: 0;\n}\n\n.monaco-editor .find-widget .monaco-inputbox .input {\n\tbackground-color: transparent;\n\t/* Style to compensate for //winjs */\n\tmin-height: 0;\n}\n\n.monaco-editor .find-widget .replace-input .input {\n\tfont-size: 13px;\n}\n\n.monaco-editor .find-widget > .find-part,\n.monaco-editor .find-widget > .replace-part {\n\tmargin: 4px 0 0 17px;\n\tfont-size: 12px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\n\theight: 25px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input {\n\twidth: 100% !important;\n\tpadding-right: 66px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {\n\tpadding-top: 2px;\n\tpadding-bottom: 2px;\n}\n\n.monaco-editor .find-widget .monaco-findInput {\n\tvertical-align: middle;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex:1;\n\t -ms-flex:1;\n\t flex:1;\n}\n\n.monaco-editor .find-widget .matchesCount {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex: initial;\n\t -ms-flex: initial;\n\t flex: initial;\n\tmargin: 0 1px 0 3px;\n\tpadding: 2px 2px 0 2px;\n\theight: 25px;\n\tvertical-align: middle;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\ttext-align: center;\n\tline-height: 23px;\n}\n\n.monaco-editor .find-widget .button {\n\tmin-width: 20px;\n\twidth: 20px;\n\theight: 20px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex: initial;\n\t -ms-flex: initial;\n\t flex: initial;\n\tmargin-left: 3px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n\n.monaco-editor .find-widget .button:not(.disabled):hover {\n\tbackground-color: rgba(0, 0, 0, 0.1);\n}\n\n.monaco-editor .find-widget .button.left {\n\tmargin-left: 0;\n\tmargin-right: 3px;\n}\n\n.monaco-editor .find-widget .button.wide {\n\twidth: auto;\n\tpadding: 1px 6px;\n\ttop: -1px;\n}\n\n.monaco-editor .find-widget .button.toggle {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 18px;\n\theight: 100%;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n}\n\n.monaco-editor .find-widget .button.toggle.disabled {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget .previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cG9seWdvbiBmaWxsPSIjNDI0MjQyIiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor .find-widget .next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor .find-widget .disabled {\n\topacity: 0.3;\n\tcursor: default;\n}\n\n.monaco-editor .find-widget .monaco-checkbox {\n\twidth: 20px;\n\theight: 20px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tmargin-left: 3px;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .label {\n\tcontent: \'\';\n\tdisplay: inline-block;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 0 0;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwMzIuMzYyMikiPgogIDxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDYuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgogIDxyZWN0IHdpZHRoPSI2IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDAuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTAzNy4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L2c+Cjwvc3ZnPg==");\n\twidth: 20px;\n\theight: 20px;\n\tborder: none;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label {\n\topacity: 0.3;\n\tcursor: default;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label {\n\tcursor: pointer;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\n\tbackground-color: #DDD;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(100, 100, 100, 0.2);\n}\n\n.monaco-editor .find-widget .close-fw {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .find-widget .expand {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n\n.monaco-editor .find-widget .collapse {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .find-widget .replace {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPGc+CgkJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDNWMWgtMXY1djFoMWgyaDFWNFYzSDExeiBNMTMsNmgtMlY0aDJWNnoiLz4KCQk8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMiwxNWg3VjlIMlYxNXogTTQsMTBoM3YxSDV2MmgydjFINFYxMHoiLz4KCTwvZz4KPC9nPgo8ZyBpZD0iY29sb3JfeDVGX2ltcG9ydGFuY2UiPgoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkKCQlDNC42NTEsMiwzLjk3OSwyLjY3MywzLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor .find-widget .replace-all {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcKCQlIMTN6IE0xMywyVjFoLTF2NWgzVjJIMTN6IE0xNCw1aC0xVjNoMVY1eiBNMTEsMnY0SDhWNGgxdjFoMVY0SDlWM0g4VjJIMTF6Ii8+CjwvZz4KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPgoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTEuOTc5LDMuNUwyLDZMMSw1djEuNUwyLjUsOEw0LDYuNVY1TDMsNkwyLjk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg3VjJIMy40NzkKCQlDMi42NTEsMiwxLjk3OSwyLjY3MywxLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor .find-widget > .replace-part {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget > .replace-part > .replace-input {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\tvertical-align: middle;\n\twidth: auto !important;\n}\n\n/* REDUCED */\n\n.monaco-editor .find-widget.reduced-find-widget .matchesCount,\n.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox {\n\tdisplay:none;\n}\n\n/* NARROW (SMALLER THAN REDUCED) */\n\n.monaco-editor .find-widget.narrow-find-widget {\n\tmax-width: 257px !important;\n}\n\n/* COLLAPSED (SMALLER THAN NARROW) */\n\n.monaco-editor .find-widget.collapsed-find-widget {\n\tmax-width: 111px !important;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\n\tdisplay:none;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-inputbox > .wrapper > .input {\n\tpadding-right: 0px;\n}\n\n.monaco-editor .findMatch {\n\t-webkit-animation-duration: 0;\n\t-webkit-animation-name: inherit !important;\n\t-moz-animation-duration: 0;\n\t-moz-animation-name: inherit !important;\n\t-ms-animation-duration: 0;\n\t-ms-animation-name: inherit !important;\n\tanimation-duration: 0;\n\tanimation-name: inherit !important;\n}\n\n.monaco-editor .find-widget .monaco-sash {\n\twidth: 2px !important;\n\tmargin-left: -4px;\n}\n\n.monaco-editor.hc-black .find-widget .previous,\n.monaco-editor.vs-dark .find-widget .previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cG9seWdvbiBmaWxsPSIjQzVDNUM1IiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor.hc-black .find-widget .next,\n.monaco-editor.vs-dark .find-widget .next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor.hc-black .find-widget .monaco-checkbox .label,\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .label {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwMzIuMzYyMikiPgogIDxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDYuMzYyMiIgc3R5bGU9ImZpbGw6I0M1QzVDNTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgogIDxyZWN0IHdpZHRoPSI2IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDAuMzYyMiIgc3R5bGU9ImZpbGw6I0M1QzVDNTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTAzNy4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L2c+Cjwvc3ZnPg==");\n}\n\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.hc-black .find-widget .close-fw,\n.monaco-editor.vs-dark .find-widget .close-fw {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .find-widget .replace,\n.monaco-editor.vs-dark .find-widget .replace {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPGc+CgkJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDNWMWgtMXY1djFoMWgyaDFWNFYzSDExeiBNMTMsNmgtMlY0aDJWNnoiLz4KCQk8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMiwxNWg3VjlIMlYxNXogTTQsMTBoM3YxSDV2MmgydjFINFYxMHoiLz4KCTwvZz4KPC9nPgo8ZyBpZD0iY29sb3JfeDVGX2ltcG9ydGFuY2UiPgoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkKCQlDNC42NTEsMiwzLjk3OSwyLjY3MywzLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor.hc-black .find-widget .replace-all,\n.monaco-editor.vs-dark .find-widget .replace-all {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcKCQlIMTN6IE0xMywyVjFoLTF2NWgzVjJIMTN6IE0xNCw1aC0xVjNoMVY1eiBNMTEsMnY0SDhWNGgxdjFoMVY0SDlWM0g4VjJIMTF6Ii8+CjwvZz4KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPgoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTEuOTc5LDMuNUwyLDZMMSw1djEuNUwyLjUsOEw0LDYuNVY1TDMsNkwyLjk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg3VjJIMy40NzkKCQlDMi42NTEsMiwxLjk3OSwyLjY3MywxLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor.hc-black .find-widget .expand,\n.monaco-editor.vs-dark .find-widget .expand {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n\n.monaco-editor.hc-black .find-widget .collapse,\n.monaco-editor.vs-dark .find-widget .collapse {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .find-widget .button:not(.disabled):hover,\n.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.hc-black .find-widget .button:before {\n\tposition: relative;\n\ttop: 1px;\n\tleft: 2px;\n}\n\n.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n'},sOjV:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-keybinding {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n\tline-height: 10px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tdisplay: inline-block;\n\tborder: solid 1px rgba(204, 204, 204, 0.4);\n\tborder-bottom-color: rgba(187, 187, 187, 0.4);\n\tborder-radius: 3px;\n\t-webkit-box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\t box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\tbackground-color: rgba(221, 221, 221, 0.4);\n\tvertical-align: middle;\n\tcolor: #555;\n\tfont-size: 11px;\n\tpadding: 3px 5px;\n}\n\n.hc-black .monaco-keybinding > .monaco-keybinding-key,\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(128, 128, 128, 0.17);\n\tcolor: #ccc;\n\tborder: solid 1px rgba(51, 51, 51, 0.6);\n\tborder-bottom-color: rgba(68, 68, 68, 0.6);\n\t-webkit-box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n\t box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n}\n\n.monaco-keybinding > .monaco-keybinding-key-separator {\n\tdisplay: inline-block;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\n\twidth: 2px;\n}"},t7NR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},tLDX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("AMGY").a.Symbol,o="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber"},tVlf:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .tokens-inspect-widget {\n\tz-index: 50;\n\t-webkit-user-select: text;\n\t-ms-user-select: text;\n\t-moz-user-select: text;\n\t-o-user-select: text;\n\tuser-select: text;\n\tpadding: 10px;\n}\n\n.tokens-inspect-separator {\n\theight: 1px;\n\tborder: 0;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token {\n\tfont-family: monospace;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-length {\n\tfont-weight: normal;\n\tfont-size: 60%;\n\tfloat: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\n\twidth: 100%;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\n\tfont-family: monospace;\n\ttext-align: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-type {\n\tfont-family: monospace;\n}\n"},tZ2B:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(){e.apply(this,arguments)}return Object(i.c)(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("OVmG").a)},uHSv:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .glyph-margin {\n\tposition: absolute;\n\ttop: 0;\n}\n\n/*\n\tKeeping name short for faster parsing.\n\tcgmr = core glyph margin rendering (div)\n*/\n\n.monaco-editor .margin-view-overlays .cgmr {\n\tposition: absolute;\n}\n"},uNVx:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor.vs\t\t.snippet-placeholder { background-color: rgba(10, 50, 100, 0.2); min-width: 2px; }\n\n.monaco-editor.vs-dark\t.snippet-placeholder { background-color: rgba(124, 124, 124, 0.3); min-width: 2px; }\n\n.monaco-editor.hc-black\t.snippet-placeholder { background-color: rgba(124, 124, 124, 0.3); min-width: 2px; }\n\n.monaco-editor.vs\t\t.finish-snippet-placeholder { outline: rgba(10, 50, 100, 0.5) solid 1px; }\n\n.monaco-editor.vs-dark\t.finish-snippet-placeholder\t{ outline: #525252 solid 1px; }\n\n.monaco-editor.hc-black\t.finish-snippet-placeholder\t{ outline: #525252 solid 1px; }\n"},wtJh:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tfont-size: 13px;\n}"},x33M:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .scroll-decoration {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\theight: 6px;\n}"},x35b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};n.d(i,"empty",function(){return Mi}),n.d(i,"isFalsyOrWhitespace",function(){return wi}),n.d(i,"pad",function(){return Ci}),n.d(i,"format",function(){return Ni}),n.d(i,"escape",function(){return Ii}),n.d(i,"escapeRegExpCharacters",function(){return Si}),n.d(i,"trim",function(){return xi}),n.d(i,"ltrim",function(){return Di}),n.d(i,"rtrim",function(){return Ti}),n.d(i,"convertSimple2RegExpPattern",function(){return Ei}),n.d(i,"stripWildcards",function(){return ki}),n.d(i,"startsWith",function(){return ji}),n.d(i,"endsWith",function(){return Ai}),n.d(i,"createRegExp",function(){return Oi}),n.d(i,"regExpLeadsToEndlessLoop",function(){return Pi}),n.d(i,"regExpContainsBackreference",function(){return Ri}),n.d(i,"canNormalize",function(){return zi}),n.d(i,"normalizeNFC",function(){return Fi}),n.d(i,"normalizeNFD",function(){return Bi}),n.d(i,"firstNonWhitespaceIndex",function(){return Zi}),n.d(i,"getLeadingWhitespace",function(){return Ui}),n.d(i,"lastNonWhitespaceIndex",function(){return Gi}),n.d(i,"compare",function(){return Qi}),n.d(i,"compareIgnoreCase",function(){return Xi}),n.d(i,"equalsIgnoreCase",function(){return $i}),n.d(i,"startsWithIgnoreCase",function(){return to}),n.d(i,"commonPrefixLength",function(){return no}),n.d(i,"commonSuffixLength",function(){return io}),n.d(i,"overlap",function(){return ro}),n.d(i,"isHighSurrogate",function(){return so}),n.d(i,"isLowSurrogate",function(){return ao}),n.d(i,"containsRTL",function(){return lo}),n.d(i,"containsEmoji",function(){return ho}),n.d(i,"isBasicASCII",function(){return go}),n.d(i,"containsFullWidthCharacter",function(){return fo}),n.d(i,"isFullWidthCharacter",function(){return mo}),n.d(i,"lcut",function(){return yo}),n.d(i,"removeAnsiEscapeCodes",function(){return Mo}),n.d(i,"UTF8_BOM_CHARACTER",function(){return Co}),n.d(i,"startsWithUTF8BOM",function(){return Lo}),n.d(i,"stripUTF8BOM",function(){return No}),n.d(i,"safeBtoa",function(){return Io}),n.d(i,"repeat",function(){return So}),n.d(i,"fuzzyContains",function(){return xo}),n.d(i,"containsUppercaseCharacter",function(){return Do});var o=n("WT6e"),r=function(){},s=function(){},a=n("TToO"),u=n("AMGY");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function c(e){var t=e.subscriber;t.closed||t.error(e.err)}var d=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return Object(a.c)(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){u.a.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return i.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(i.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(i.schedule(c,0,{err:t,subscriber:e}))}).then(null,function(e){u.a.setTimeout(function(){throw e})})},t}(n("YaPU").a).create;n("GK6M"),n("fKB6"),n("tZ2B"),n("PIsA"),n("VwZZ"),n("BX3T"),n("1Q68");var h=n("OVmG");n("Veqx"),n("N4j0"),n("cQXm"),n("etqZ"),Math.pow(2,53),n("TILf"),n("+3/4"),n("+CnV"),n("8D5t"),n("Qnch"),Error,Error,n("g5jc"),n("gIN1");var p=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new g(e,this.project,this.thisArg))},e}(),g=function(e){function t(t,n,i){e.call(this,t),this.project=n,this.count=0,this.thisArg=i||this}return Object(a.c)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(h.a);n("f9aG"),n("/nXB"),n("Jwyl"),n("x6VL"),n("1Bqh"),n("0P3J"),n("3a3m"),n("lAP5"),Error;var f=function(){function e(){this.messages=[]}return e.prototype.add=function(e,t){this.messages.push(e)},e.prototype.clear=function(){this.messages=[]},e}(),m=function(){function e(){}return Object.defineProperty(e.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e,t){this.logService=e,this.windowRef=t,this._window=this.windowRef.nativeWindow}return e.prototype.getGridDataToDisplay=function(){return this.logService.add("Grid data service: Getting data from C#","info"),d(this._window.comparisonJSInteraction.getComparisonList()).pipe((e=function(e){return JSON.parse(e)},function(t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new p(e,void 0))}));var e},e.prototype.sendChange=function(e,t,n){this.logService.add("Grid data service: Updating C# object on change in element","info"),this._window.comparisonJSInteraction.changeOccurred(e,t,n)},e.prototype.saveOrCompare=function(e){this.logService.add("Grid data service: Calling C# service to take action","info"),this._window.comparisonJSInteraction.saveOrCompare(e)},e.prototype.sendSelectedNodesAndAction=function(e,t){this.logService.add("Grid data service: Sending the selected nodes and the action to be performed to C#","info"),this._window.comparisonJSInteraction.performActionsOnSelectedActions(e,t)},e}(),v=function(){function e(e,t){this.gridService=e,this.appLog=t,this.contextMenuPositionX=0,this.contextMenuPositionY=0,this.selectedNodes=[]}return e.prototype.ngOnInit=function(){document.getElementById("skip-selected").focus()},e.prototype.focusElement=function(e){e.preventDefault(),e.target.classList&&e.target.classList.contains("tree-control-context-menu-options")&&document.getElementById(e.target.id).focus()},e.prototype.performAction=function(e){this.gridService.sendSelectedNodesAndAction(e,this.selectedNodes)},e.prototype.onKeydown=function(e){var t;if(e.preventDefault(),e.stopPropagation(),38===e.which||40===e.which){(t=this.getSiblingElement(38===e.which,e.target.id))||(t=38===e.which?document.getElementById(e.target.id).parentElement.lastElementChild:document.getElementById(e.target.id).parentElement.firstElementChild);var n=document.querySelectorAll(".tree-control-context-menu-options"),i=void 0;for(i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i0;a||(a=e[s]=[]);var l=Le(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:r});else{for(var c=!1,d=0;d-1},t}(ie),Ee=["alt","control","meta","shift"],ke={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},je=function(e){function t(t){return e.call(this,t)||this}return Object(a.c)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,i){var o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return P().onAndCancel(e,o.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),r="";if(Ee.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=i,s.fullKey=r,s},t.getEventFullKey=function(e){var t="",n=P().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ee.forEach(function(i){i!=n&&(0,ke[i])(e)&&(t+=i+".")}),t+=n},t.eventCallback=function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ie),Ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var i=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(i,this.inertBodyElement),this.DOM.appendChild(n,i)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,i){"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.DOM.removeAttribute(e,i)});for(var n=0,i=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();Ze.hasOwnProperty(t)&&!He.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(qe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Ke=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Je=/([^\#-~ |!])/g;function qe(e){return e.replace(/&/g,"&").replace(Ke,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Je,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var $e=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),et=/^url\(([^)]+)\)$/,tt=function(){},nt=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(a.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.A.NONE:return t;case o.A.HTML:return t instanceof ot?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=P(),i=null;try{Fe=Fe||new Ae(e,n);var r=t?String(t):"";i=Fe.getInertBodyElement(r);var s=5,a=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=a,a=n.getInnerHTML(i),i=Fe.getInertBodyElement(r)}while(r!==a);var u=new Xe,l=u.sanitizeChildren(n.getTemplateContent(i)||i);return Object(o.L)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}finally{if(i)for(var c=n.getTemplateContent(i)||i,d=0,h=n.childNodesAsList(c);d=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),gt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function ft(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var mt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(ft(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(ft(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}(),yt=function(){},vt=function(){},bt=Object.freeze({dispose:function(){}});function _t(e){for(var t=[],n=1;n0;){var i=this._deliveryQueue.shift(),o=i[0],r=i[1];try{"function"==typeof o?o.call(void 0,r):o[0].call(o[1],r)}catch(n){xt(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}(),Wt=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new zt({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),wt(function(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();function Ft(e,t,n,i){var o;void 0===n&&(n=100),void 0===i&&(i=!1);var r=void 0,s=void 0,a=0,u=new zt({onFirstListenerAdd:function(){o=e(function(e){a++,r=t(r,e),i&&!s&&u.fire(r),clearTimeout(s),s=setTimeout(function(){var e=r;r=void 0,s=void 0,(!i||a>1)&&u.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return u.event}var Ht=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e(function(e){var o=t.buffers[t.buffers.length-1];o?o.push(function(){return n.call(i,e)}):n.call(i,e)},void 0,o)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();function Bt(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e))},null,o)}}function Vt(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e)},null,o)}}var Yt=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(Bt(this._event,t))},e.prototype.forEach=function(t){return new e((n=this._event,i=t,function(e,t,o){return void 0===t&&(t=null),n(function(n){i(n),e.call(t,n)},null,o)}));var n,i},e.prototype.filter=function(t){return new e(Vt(this._event,t))},e.prototype.latch=function(){return new e((n=!0,Vt(this._event,function(e){var i=n||e!==t;return n=!1,t=e,i})));var t,n},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}();function Zt(e){return new Yt(e)}var Ut,Gt=function(){function e(){this.emitter=new zt,this.event=this.emitter.event,this.disposable=bt}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}(),Qt=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),Xt=new Qt,Kt=new Qt,Jt=new Qt;function qt(e,t){return(e|(65535&t)<<16>>>0)>>>0}function $t(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new on(en(n,t),en(i,t)):en(n,t)}function en(e,t){var n=!!(2048&e),i=!!(256&e);return new nn(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}!function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),Xt.define(e,t),Kt.define(e,n),Jt.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Xt.keyCodeToStr(e)},e.fromString=function(e){return Xt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Kt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Jt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Kt.strToKeyCode(e)||Jt.strToKeyCode(e)}}(Ut||(Ut={}));var tn,nn=function(){function e(e,t,n,i,o){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}return e.prototype.equals=function(e){return 1===e.type&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.getHashCode=function(){return(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),on=function(){function e(e,t){this.type=2,this.firstPart=e,this.chordPart=t}return e.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},e}(),rn=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumbern||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 rn(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new rn(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(tn||(tn={}));var an,un,ln=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r}return Object(a.c)(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?tn.LTR:tn.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===tn.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new rn(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===tn.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n0)n.left||(n.left=new mi,n.left.str=i.value()),n=n.left;else if(o<0)n.right||(n.right=new mi,n.right.str=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new mi,n.mid.str=i.value()),n=n.mid}}var r=n.element;return n.element=t,r},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.str);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.element:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),n=[],i=this._root;i;){var o=t.cmp(i.str);if(o>0)n.push([1,i]),i=i.left;else if(o<0)n.push([-1,i]),i=i.right;else{if(!t.hasNext()){for(i.element=void 0;n.length>0&&i.isEmpty();){var r=n.pop(),s=r[1];switch(r[0]){case 1:s.left=void 0;break;case 0:s.mid=void 0;break;case-1:s.right=void 0}i=s}break}t.next(),n.push([0,i]),i=i.mid}}},e.prototype.findSubstr=function(e){for(var t,n=this._iter.reset(e),i=this._root;i;){var o=n.cmp(i.str);if(o>0)i=i.left;else if(o<0)i=i.right;else{if(!n.hasNext())break;n.next(),t=i.element||t,i=i.mid}}return i&&i.element||t},e.prototype.findSuperstr=function(t){for(var n=this._iter.reset(t),i=this._root;i;){var o=n.cmp(i.str);if(o>0)i=i.left;else if(o<0)i=i.right;else{if(!n.hasNext()){if(!i.mid)return;var r=new e(this._iter);return r._root=i.mid,r}n.next(),i=i.mid}}},e.prototype.forEach=function(e){this._forEach(this._root,[],e)},e.prototype._forEach=function(e,t,n){e&&(this._forEach(e.left,t,n),t.push(e.str),e.element&&n(e.element,this._iter.join(t)),this._forEach(e.mid,t,n),t.pop(),this._forEach(e.right,t,n))},e}(),vi=function(e){function t(){return e.call(this)||this}return Object(a.c)(t,e),t.prototype.keys=function(){return(e=this.map,t=[],e.forEach(function(e,n){return t.push(n)}),t).map(function(e){return Tn.parse(e)});var e,t},t}(function(){function e(e){this.ignoreCase=e,this.map=new Map}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return e=[],this.map.forEach(function(t){return e.push(t)}),e;var e},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}()),bi=function(e){return e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew",e}({}),_i=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,bi.AsNew)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,bi.None)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,bi.AsNew),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=bi.None);var n=this._map.get(e);if(n)return t!==bi.None&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=bi.None);var i=this._map.get(e);if(i)i.value=t,n!==bi.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case bi.None:this.addItemLast(i);break;case bi.AsOld:this.addItemFirst(i);break;case bi.AsNew:default:this.addItemLast(i)}this._map.set(e,i),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t.previous=void 0}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===bi.AsOld||t===bi.AsNew)if(t===bi.AsOld){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===bi.AsNew){if(e===this._tail)return;n=e.next,i=e.previous,e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e}()),Mi="";function wi(e){return!e||"string"!=typeof e||0===e.trim().length}function Ci(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r=t.length?e:t[i]})}function Ii(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Si(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function xi(e,t){return void 0===t&&(t=" "),Ti(Di(e,t),t)}function Di(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function Ti(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;-1!==(r=e.lastIndexOf(t,o-1))&&r+n===o;){if(0===r)return"";o=r}return e.substring(0,o)}function Ei(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ki(e){return e.replace(/\*/g,"")}function ji(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t}function Oi(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=Si(e)),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 Pi(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex}function Ri(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)}var zi="function"==typeof"".normalize,Wi=new _i(1e4);function Fi(e){return Yi(e,"NFC",Wi)}var Hi=new _i(1e4);function Bi(e){return Yi(e,"NFD",Hi)}var Vi=/[^\u0000-\u0080]/;function Yi(e,t,n){return zi&&e?n.get(e)||(i=Vi.test(e)?e.normalize(t):e,n.set(e,i),i):e;var i}function Zi(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 Qi(e,t){return et?1:0}function Xi(e,t){for(var n=Math.min(e.length,t.length),i=0;it.length?1:0}function Ki(e){return e>=97&&e<=122}function Ji(e){return e>=65&&e<=90}function qi(e){return Ki(e)||Ji(e)}function $i(e,t){return(e?e.length:0)===(t?t.length:0)&&eo(e,t)}function eo(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var i=0;ie.length)&&eo(e,t,t.length)}function no(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(oo(e,o,n,t,0,i))return i;i-=1,o+=1}return 0}function so(e){return 55296<=e&&e<=56319}function ao(e){return 56320<=e&&e<=57343}var uo=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function lo(e){return uo.test(e)}var co=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function ho(e){return co.test(e)}var po=/^[\t\n\r\x20-\x7E]*$/;function go(e){return po.test(e)}function fo(e){for(var t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function yo(e,t){if(e.length0&&65279===e.charCodeAt(0)}function No(e){return Lo(e)?e.substr(1):e}function Io(e){return btoa(encodeURIComponent(e))}function So(e,t){for(var n="",i=0;i=0){var t=e.split("!=");return new Ao(t[0].trim(),this._deserializeValue(t[1]))}return e.indexOf("==")>=0?(t=e.split("=="),new jo(t[0].trim(),this._deserializeValue(t[1]))):e.indexOf("=~")>=0?(t=e.split("=~"),new Po(t[0].trim(),this._deserializeRegexValue(t[1]))):/^\!\s*/.test(e)?new Oo(e.substr(1).trim()):new ko(e)},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e){if(wi(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null;var i=e.slice(t+1,n),o="i"===e[n+1]?"i":"";try{return new RegExp(i,o)}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null}},e}();function Eo(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case wo.Defined:case wo.Not:case wo.Equals:case wo.NotEquals:case wo.Regex:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var ko=function(){function e(e){this.key=e}return e.prototype.getType=function(){return wo.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.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key},e.prototype.keys=function(){return[this.key]},e}(),jo=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return wo.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.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new ko(this.key):new Oo(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}(),Ao=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return wo.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.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new Oo(this.key):new ko(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}(),Oo=function(){function e(e){this.key=e}return e.prototype.getType=function(){return wo.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.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return"!"+this.key},e.prototype.keys=function(){return[this.key]},e}(),Po=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return wo.Regex},e.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:void 0;return te.regexp.source?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key&&(this.regexp?this.regexp.source:void 0)===t.regexp.source},e.prototype.evaluate=function(e){return!!this.regexp&&this.regexp.test(e.getValue(this.key))},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key+" =~ /"+(this.regexp?this.regexp.source:"")+"/"+(this.regexp.ignoreCase?"i":"")},e.prototype.keys=function(){return[this.key]},e}(),Ro=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return wo.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;n=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ut.toString(e)},t.prototype._getElectronAcceleratorLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?null:this._keyCodeToElectronAccelerator(e.keyCode):null},t.prototype.getElectronAccelerator=function(){if(null!==this._chordPart)return null;var e=this._getElectronAcceleratorLabelForKeybinding(this._firstPart);return $o.toLabel(this._firstPart,e,null,null,this._os)},t.prototype._getUserSettingsLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":Ut.toUserSettingsUS(e.keyCode):null},t.prototype.getUserSettingsLabel=function(){var e=this._getUserSettingsLabelForKeybinding(this._firstPart),t=this._getUserSettingsLabelForKeybinding(this._chordPart),n=er.toLabel(this._firstPart,e,this._chordPart,t,this._os);return n?n.toLowerCase():n},t.prototype.isWYSIWYG=function(){return!0},t.prototype.isChord=function(){return!!this._chordPart},t.prototype.getParts=function(){return[this._toResolvedKeybindingPart(this._firstPart),this._toResolvedKeybindingPart(this._chordPart)]},t.prototype._toResolvedKeybindingPart=function(e){return e?new function(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r}(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getUILabelForKeybinding(e),this._getAriaLabelForKeybinding(e)):null},t.prototype.getDispatchParts=function(){return[this._firstPart?t.getDispatchStr(this._firstPart):null,this._chordPart?t.getDispatchStr(this._chordPart):null]},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+Ut.toString(e.keyCode)},t}(function(){});function ir(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function or(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 sr(e,t){return function e(t,n){if(!(t.length<=1)){var i=t.length/2|0,o=t.slice(0,i),r=t.slice(i);e(o,n),e(r,n);for(var s=0,a=0,u=0;st;o--)i.push(o);return i}var pr=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,o=t.length;i=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(r)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if("undefined"==typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];r.command!==n.command&&(null!==r.keypressChordPart&&null!==n.keypressChordPart&&r.keypressChordPart!==n.keypressChordPart||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r))}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"==typeof t?this._lookupMap.set(e.command,t=[e]):t.push(e)}},e.prototype._removeFromLookupMap=function(e){var t=this._lookupMap.get(e.command);if("undefined"!=typeof t)for(var n=0,i=t.length;n=0;o--)n[i++]=t[o];return n},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return"undefined"==typeof t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){if("undefined"==typeof(a=this._map.get(t)))return null;i=[];for(var o=0,r=a.length;o=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.getAllUnboundCommands=function(e){var t=hi.getCommands(),n=[];for(var i in t)"_"!==i[0]&&0!==i.indexOf("vscode.")&&("object"!=typeof t[i].description||ur(t[i].description.args))&&!0!==e.get(i)&&n.push(i);return n},e}(),gr="/",fr=mn.g?"\\":"/";function mr(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===t)return".";if(0==~t)return e[0];var n=e.substring(0,~t);return mn.g&&":"===n[n.length-1]&&(n+=fr),n}function yr(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?yr(e.substring(0,e.length-1)):e.substr(1+~t)}var vr=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,br=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;function _r(e,t){if(null===e||void 0===e)return e;var n=e.length;if(0===n)return".";var i=mn.g&&t;if(function(e,t){return i?!br.test(e):!vr.test(e)}(e))return e;for(var o=i?"\\":"/",r=function(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,i=e.charCodeAt(0);if(47===i||92===i){if((47===(i=e.charCodeAt(1))||92===i)&&47!==(i=e.charCodeAt(2))&&92!==i){for(var o=3,r=o;o=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))return 47===(i=e.charCodeAt(2))||92===i?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(-1!==s)for(s+=3;s0)&&".."!==d&&(u=-1===c?"":u.slice(0,c),a=!0)}else Mr(e,s,l,".")&&(r||u||l0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=n.charCodeAt(0);47!==o&&92!==o&&(e+=gr)}}e+=n}return _r(e)},Cr=Qn("fileService"),Lr=function(e){return e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED",e}({});function Nr(e,t,n){if(!e)return null;if("string"==typeof e&&(e=Tn.file(e)),e.scheme!==Bo.file&&e.scheme!==Bo.untitled)return e.with({query:null,fragment:null}).toString(!0);var i=t?t.getWorkspaceFolder(e):null;if(i){var o=t.getWorkspace().folders.length>1,r=void 0;if(r=(mn.c?i.uri.fsPath===e.fsPath:$i(i.uri.fsPath,e.fsPath))?"":_r(Di(e.fsPath.substr(i.uri.fsPath.length),fr),!0),o){var s=yr(i.uri.fsPath);r=r?wr(s,r):s}return r}if(Sr(e.fsPath))return _r(xr(e.fsPath),!0);var a=_r(e.fsPath,!0);return!mn.g&&n&&(a=function(e,t){if(mn.g||!e||!t)return e;var n=Dr.original===t?Dr.normalized:void 0;return n||(n=""+Ti(t,gr)+gr,Dr={original:t,normalized:n}),(mn.c?ji(e,n):to(e,n))&&(e="~/"+e.substr(n.length)),e}(a,n.userHome)),a}function Ir(e){if(!e)return null;"string"==typeof e&&(e=Tn.file(e));var t=yr(e.fsPath)||e.fsPath;return Sr(t)?xr(t):t}function Sr(e){return mn.g&&e&&":"===e[1]}function xr(e){return Sr(e)?e.charAt(0).toUpperCase()+e.slice(1):e}Error;var Dr=Object.create(null);Qn("workspacesMainService"),Qn("workspacesService"),Yo("codeWorkspace","Code Workspace");var Tr,Er=Qn("contextService");!function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(Tr||(Tr={}));var kr=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return this.uri.with({path:wr(this.uri.path,e)})},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();function jr(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]&&"object"==typeof e[n]?jr(e[n]):e[n]}),t}var Ar=Object.prototype.hasOwnProperty;function Or(e,t,n){return void 0===n&&(n=!0),ti(e)?(ti(t)&&Object.keys(t).forEach(function(i){i in e?n&&(ti(e[i])&&ti(t[i])?Or(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]}),e):t}function Pr(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}());Fr.add("base.contributions.json",Hr);var Br,Vr={Configuration:"base.contributions.configuration"};!function(e){e[e.WINDOW=1]="WINDOW",e[e.RESOURCE=2]="RESOURCE"}(Br||(Br={}));var Yr={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown configuration setting"},Zr={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown configuration setting"},Ur="vscode://schemas/settings/editor",Gr=Fr.as("base.contributions.json"),Qr=function(){function e(){this.overrideIdentifiers=[],this._onDidRegisterConfiguration=new zt,this.onDidRegisterConfiguration=this._onDidRegisterConfiguration.event,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),Gr.registerSchema(Ur,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=this.toConfiguration(t);o&&e.push(o);var r=[];e.forEach(function(e){r.push.apply(r,i.validateAndRegisterProperties(e,n)),i.configurationContributors.push(e),i.registerJSONConfiguration(e),i.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(r)},e.prototype.notifyConfigurationSchemaUpdated=function(e){Gr.notifySchemaChanged(Ur)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var t={id:"defaultOverrides",title:Yo("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},n=0,i=e;n0;){var n=t.shift();for(var i in Object.freeze(n),n)if(Ar.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e}(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t=0,Ss=Ns.indexOf("Edge/")>=0,xs=Is||Ss,Ds=(Ns.indexOf("Opera"),Ns.indexOf("Firefox")>=0),Ts=Ns.indexOf("AppleWebKit")>=0,Es=Ns.indexOf("Chrome")>=0,ks=-1===Ns.indexOf("Chrome")&&Ns.indexOf("Safari")>=0,js=Ns.indexOf("iPad")>=0,As=Ns.indexOf("Chrome/56.")>=0&&-1===Ns.indexOf("Edge/"),Os={3:7,8:1,9:2,13:3,16:4,17:5,18:6,19:7,20:8,27:9,32:10,33:11,34:12,35:13,36:14,37:15,38:16,39:17,40:18,45:19,46:20,48:21,49:22,50:23,51:24,52:25,53:26,54:27,55:28,56:29,57:30,65:31,66:32,67:33,68:34,69:35,70:36,71:37,72:38,73:39,74:40,75:41,76:42,77:43,78:44,79:45,80:46,81:47,82:48,83:49,84:50,85:51,86:52,87:53,88:54,89:55,90:56,93:58,96:93,97:94,98:95,99:96,100:97,101:98,102:99,103:100,104:101,105:102,106:103,107:104,108:105,109:106,110:107,111:108,112:59,113:60,114:61,115:62,116:63,117:64,118:65,119:66,120:67,121:68,122:69,123:70,124:71,125:72,126:73,127:74,128:75,129:76,130:77,144:78,145:79,186:80,187:81,188:82,189:83,190:84,191:85,192:86,193:110,194:111,219:87,220:88,221:89,222:90,223:91,226:92,229:109};Is?Os[91]=57:Ds?(Os[59]=80,Os[107]=81,Os[109]=83,mn.d&&(Os[224]=57)):Ts&&(Os[91]=57,mn.d?Os[93]=57:Os[92]=57);var Ps=mn.d?256:2048,Rs=mn.d?2048:256,zs=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=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return Ut.fromString(t)}return Os[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=Ps),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=Rs),t|e},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new nn(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}(),Ws=!1,Fs=null;function Hs(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return Ws=!0,null}catch(e){return Ws=!0,null}return e.parent}function Bs(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o=0;){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),Js=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return t&&e.classList&&e.classList.contains(t)},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),qs=Is?Ks:Js,$s=qs.hasClass.bind(qs),ea=qs.addClass.bind(qs),ta=qs.removeClass.bind(qs),na=qs.toggleClass.bind(qs),ia=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();function oa(e,t,n,i){return new ia(e,t,n,i)}var ra=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=function(e){return function(t){return e(new Ys(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new zs(t))}}(n)),oa(e,t,o,i)};function sa(e,t){return oa(e,"mouseout",function(n){for(var i=n.relatedTarget||n.toElement;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}var aa,ua,la,ca,da,ha,pa,ga=null,fa=function(){function e(e,t){this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){xt(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();la=[],ca=null,da=!1,ha=!1,pa=function(){for(da=!1,ca=la,la=[],ha=!0;ca.length>0;)ca.sort(fa.sort),ca.shift().execute();ha=!1},ua=function(e,t){void 0===t&&(t=0);var n=new fa(e,t);return la.push(n),da||(da=!0,ga||(ga=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}),ga(pa)),n},aa=function(e,t){if(ha){var n=new fa(e,t);return ca.push(n),n}return ua(e,t)};var ma=16,ya=function(e,t){return t},va=function(e){function t(t,n,i,o,r){void 0===o&&(o=ya),void 0===r&&(r=ma);var s=e.call(this)||this,a=null,u=0,l=s._register(new vs),c=function(){u=(new Date).getTime(),i(a),a=null};return s._register(oa(t,n,function(e){a=o(a,e);var t=(new Date).getTime()-u;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)})),s}return Object(a.c)(t,e),t}(Ct);function ba(e,t,n,i,o){return new va(e,t,n,i,o)}function _a(e){return document.defaultView.getComputedStyle(e,null)}var Ma=function(e,t){return parseFloat(t)||0};function wa(e,t,n){var i=_a(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),Ma(e,o)}var Ca={getBorderLeftWidth:function(e){return wa(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return wa(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return wa(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return wa(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return wa(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return wa(e,"padding-right","paddingRight")},getPaddingTop:function(e){return wa(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return wa(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return wa(e,"margin-left","marginLeft")},getMarginTop:function(e){return wa(e,"margin-top","marginTop")},getMarginRight:function(e){return wa(e,"margin-right","marginRight")},getMarginBottom:function(e){return wa(e,"margin-bottom","marginBottom")},__commaSentinel:!1};function La(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=_a(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=Ca.getBorderLeftWidth(e),n+=Ca.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function Na(e){var t=e.getBoundingClientRect();return{left:t.left+Ia.scrollX,top:t.top+Ia.scrollY,width:t.width,height:t.height}}var Ia=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function Sa(e){var t=Ca.getMarginLeft(e)+Ca.getMarginRight(e);return e.offsetWidth+t}function xa(e){var t=Ca.getBorderLeftWidth(e)+Ca.getBorderRightWidth(e),n=Ca.getPaddingLeft(e)+Ca.getPaddingRight(e);return e.offsetWidth-t-n}function Da(e){var t=Ca.getBorderTopWidth(e)+Ca.getBorderBottomWidth(e),n=Ca.getPaddingTop(e)+Ca.getPaddingBottom(e);return e.offsetHeight-t-n}function Ta(e){var t=Ca.getMarginTop(e)+Ca.getMarginBottom(e);return e.offsetHeight+t}function Ea(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ka(e,t,n){for(;e;){if($s(e,t))return e;if(n&&$s(e,n))return null;e=e.parentNode}return null}function ja(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var Aa=null;function Oa(){return Aa||(Aa=ja()),Aa}function Pa(e,t){if(void 0===t&&(t=Oa()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),i=[],o=0;o=0;o--)t.sheet.deleteRule(i[o])}}function Ra(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var za={CLICK:"click",AUXCLICK:"auxclick",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:Ts?"webkitAnimationStart":"animationstart",ANIMATION_END:Ts?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ts?"webkitAnimationIteration":"animationiteration"},Wa={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},Fa=function(){function e(e){var t=this;this._onDidFocus=new zt,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new zt,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=!1,i=!1;Gs(e,za.FOCUS,!0)(function(){i=!1,n||(n=!0,t._onDidFocus.fire())},null,this.disposables),Gs(e,za.BLUR,!0)(function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=_t(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();function Ha(e){return new Fa(e)}function Ba(e){for(var t=[],n=1;n=21&&e<=30||e>=31&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,i,o,r){0===r&&1===mn.a&&this._assertNoCtrlAlt(2===e.type?e.firstPart:e,t),this._keybindings.push({keybinding:e,command:t,commandArgs:null,when:o,weight1:n,weight2:i}),this._keybindingsSorted=!1},e.prototype.getDefaultKeybindings=function(){return this._keybindingsSorted||(this._keybindings.sort($a),this._keybindingsSorted=!0),this._keybindings.slice(0)},e}());function $a(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}Fr.add("platform.keybindingsRegistry",qa);var eu=function(){function e(e,t,n,i,o){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0),this._onDidChange=new zt,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=o}return e.prototype.dispose=function(){this._onDidChange.dispose()},Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},Object.defineProperty(e.prototype,"order",{get:function(){return this._order},set:function(e){this._order=e},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){return void 0!==this._actionCallback?this._actionCallback(e):Nt.b.as(!0)},e}(),tu=function(){function e(){this._onDidBeforeRun=new zt,this._onDidRun=new zt}return Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t})},function(t){n._onDidRun.fire({action:e,error:t})})):Nt.b.as(null)},e.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Nt.b.is(n)?n:Nt.b.wrap(n)},e.prototype.dispose=function(){this._onDidBeforeRun.dispose(),this._onDidRun.dispose()},e}(),nu=function(e){for(var t=[],n=1;n=0&&i.splice(e,1)}}},e.prototype.getMenuItems=function(e){var t=e.id,n=this._menuItems[t]||[];return t===iu.CommandPalette.id&&this._appendImplicitItems(n),n},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,i=e;n0&&t.push([r,s])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();ns?1:("string"==typeof e.command.title?e.command.title:e.command.title.value).localeCompare("string"==typeof t.command.title?t.command.title:t.command.title.value)},e=Object(a.b)([Object(a.d)(2,di),Object(a.d)(3,Wo)],e)}(),uu=function(e,t,n,i,o){if(this.resolvedKeybinding=e,e){var r=e.getDispatchParts(),s=r[1];this.keypressFirstPart=r[0],this.keypressChordPart=s}else this.keypressFirstPart=null,this.keypressChordPart=null;this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o},lu=Qn("notificationService"),cu=function(){function e(){this.progress=new du,this._onDidDispose=new zt}return Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event},enumerable:!0,configurable:!0}),e.prototype.updateSeverity=function(e){},e.prototype.updateMessage=function(e){},e.prototype.updateActions=function(e){},e.prototype.dispose=function(){this._onDidDispose.dispose()},e}(),du=function(){function e(){}return e.prototype.infinite=function(){},e.prototype.done=function(){},e.prototype.total=function(e){},e.prototype.worked=function(e){},e}(),hu=function(){function e(e){this._widget=e}return e.prototype.getId=function(){return"editor"},e.prototype.getControl=function(){return this._widget},e.prototype.focus=function(){this._widget.focus()},e.prototype.isVisible=function(){return!0},e.prototype.withTypedEditor=function(e,t){return Zn(this._widget)?e(this._widget):t(this._widget)},e}(),pu=function(){function e(e){this.model=e,this._onDispose=new zt}return Object.defineProperty(e.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),e.prototype.load=function(){return Nt.b.as(this)},Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}(),gu=function(){function e(){this.openEditorDelegate=null}return e.prototype.setEditor=function(e){this.editor=new hu(e)},e.prototype.setOpenEditorDelegate=function(e){this.openEditorDelegate=e},e.prototype.openEditor=function(e,t){var n=this;return Nt.b.as(this.editor.withTypedEditor(function(t){return n.doOpenEditor(t,e)},function(t){return n.doOpenEditor(t.getOriginalEditor(),e)||n.doOpenEditor(t.getModifiedEditor(),e)}))},e.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t)){if(t.resource){if(this.openEditorDelegate)return this.openEditorDelegate(t.resource.toString()),null;var n=t.resource.scheme;if(n===Bo.http||n===Bo.https)return Ja(t.resource.toString()),this.editor}return null}var i=t.options.selection;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return this.editor},e.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.resource.toString()?null:n},e}(),fu=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=new hu(e)},e.prototype.createModelReference=function(e){var t,n=this;return t=this.editor.withTypedEditor(function(t){return n.findModel(t,e)},function(t){return n.findModel(t.getOriginalEditor(),e)||n.findModel(t.getModifiedEditor(),e)}),Nt.b.as(new Lt(t?new pu(t):null))},e.prototype.registerTextModelContentProvider=function(e,t){return{dispose:function(){}}},e.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.toString()?null:n},e}(),mu=function(){function e(){}return e.prototype.show=function(){return e.NULL_PROGRESS_RUNNER},e.prototype.showWhile=function(e,t){return null},e.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},e}(),yu=function(){function e(){}return e.prototype.confirm=function(e){return this.doConfirm(e).then(function(e){return{confirmed:e,checkboxChecked:!1}})},e.prototype.doConfirm=function(e){var t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Nt.b.wrap(window.confirm(t))},e.prototype.show=function(e,t,n,i){return Nt.b.as(0)},e}(),vu=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:Qo.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:Qo.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:Qo.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case Qo.Error:console.error(t.message);break;case Qo.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.prototype.prompt=function(e,t,n){return Nt.b.as(0)},e.NO_OP=new cu,e}(),bu=function(){function e(e){this._onWillExecuteCommand=new zt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,{dispose:function(){delete t._dynamicCommands[n]}}},e.prototype.executeCommand=function(e){for(var t=[],n=1;ne.length)&&(t.charAt(t.length-1)!==fr&&(t+=fr),0===e.indexOf(t)))}(n,t.base)?e(_r(t.pathToRelative(t.base,n)),i):null}}function $u(e,t){return t.trimForExclusions&&Ai(e,"/**")?e.substr(0,e.length-2):e}function el(e,t,n){var i=fr!==gr?e.replace(Wu,fr):e,o=fr+i,r=n?function(e,n){return e&&(e===i||Ai(e,o))?t:null}:function(e,n){return e&&e===i?t:null};return r.allPaths=[(n?"*/":"./")+e],r}function tl(e,t,n){return!(!e||!t)&&function(e,t){if(void 0===t&&(t={}),!e)return Xu;if("string"==typeof e||(o=e)&&"string"==typeof o.base&&"string"==typeof o.pattern&&"function"==typeof o.pathToRelative){var n=Ju(e,t);if(n===Ku)return Xu;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}var o;return function(e,t){var n=nl(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return Ku;var i=Ju(e,n);if(i===Ku)return Ku;if("boolean"==typeof t)return i;if(t){var o=t.when;if("string"==typeof o){var r=function(t){var n=o.replace("$(basename)",t.name);return-1!==t.siblings.indexOf(n)?e:null},s=function(e,t,n){if(!i(e,t))return null;var o=n();return o?Nt.b.is(o)?o.then(r):r(o):null};return s.requiresSiblings=!0,s}}return i}(n,e[n],t)}).filter(function(e){return e!==Ku})),i=n.length;if(!i)return Ku;if(!n.some(function(e){return e.requiresSiblings})){if(1===i)return n[0];var o=function(e,t,i){for(var o=0,r=n.length;o0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?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}function il(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;ro&&(o=a)}return o}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,l=e.pattern,c=e.scheme;if(!i&&!e.hasAccessToAllModels)return 0;if(o=0,c)if(c===t.scheme)o=10;else{if("*"!==c)return 0;o=5}if(u)if(u===n)o=10;else{if("*"!==u)return 0;o=Math.max(o,5)}if(l){if(l!==t.fsPath&&!tl(l,t.fsPath))return 0;o=10}return o}return 0}var ol=Qn("modelService");function rl(e){return!e.isTooLargeForHavingARichMode()&&!e.isForSimpleWidget}var sl,al,ul=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new zt}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)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,i.push(t=[e.provider]))}),i},e.prototype._orderedForEach=function(e,t){if(e){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 i=0,o=this._entries;it._score?-1:e._timet._time?-1:0},e}(),ll=function(){function e(){this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map[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._onDidChange.fire({changedLanguages:Object.keys(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap[2]},e}(),cl=function(e,t){this.language=e,this.id=t},dl=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},e}(),hl=function(e){return e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",e}({}),pl=function(e){return e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write",e}({}),gl=function(e){return e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e}({}),fl=((sl=Object.create(null))[gl.File]="file",sl[gl.Module]="module",sl[gl.Namespace]="namespace",sl[gl.Package]="package",sl[gl.Class]="class",sl[gl.Method]="method",sl[gl.Property]="property",sl[gl.Field]="field",sl[gl.Constructor]="constructor",sl[gl.Enum]="enum",sl[gl.Interface]="interface",sl[gl.Function]="function",sl[gl.Variable]="variable",sl[gl.Constant]="constant",sl[gl.String]="string",sl[gl.Number]="number",sl[gl.Boolean]="boolean",sl[gl.Array]="array",sl[gl.Object]="object",sl[gl.Key]="key",sl[gl.Null]="null",sl[gl.EnumMember]="enum-member",sl[gl.Struct]="struct",sl[gl.Event]="event",sl[gl.Operator]="operator",sl[gl.TypeParameter]="type-parameter",function(e){return sl[e]||"property"});function ml(e){return ti(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}function yl(e){return ti(e)&&e.resource&&Array.isArray(e.edits)}!function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(al||(al={}));var vl=new ul,bl=new ul,_l=new ul,Ml=new ul,wl=new ul,Cl=new ul,Ll=new ul,Nl=new ul,Il=new ul,Sl=new ul,xl=new ul,Dl=new ul,Tl=new ul,El=new ul,kl=new ul,jl=new ul,Al=new ul,Ol=new ul,Pl=new ll,Rl=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEditOperation=function(e,t,n){this.future=[],this.currentOpenStackElement||(this.currentOpenStackElement={beforeVersionId:this.model.getAlternativeVersionId(),beforeCursorState:e,editOperations:[],afterCursorState:null,afterVersionId:-1});var i={operations:this.model.applyEdits(t)};this.currentOpenStackElement.editOperations.push(i);try{this.currentOpenStackElement.afterCursorState=n?n(i.operations):null}catch(e){xt(e),this.currentOpenStackElement.afterCursorState=null}return this.currentOpenStackElement.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement.afterCursorState},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){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;t>>0}function Yl(e,t){e.metadata=254&e.metadata|t<<0}function Zl(e){return(2&e.metadata)>>>1==1}function Ul(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function Gl(e){return(4&e.metadata)>>>2==1}function Ql(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function Xl(e){return(8&e.metadata)>>>3==1}function Kl(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Jl(e,t){e.metadata=207&e.metadata|t<<4}var ql=function(){function e(e,t,n){this.metadata=0,this.parent=null,this.left=null,this.right=null,Yl(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Ql(this,!1),Jl(this,1),Kl(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Ul(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;Ql(this,"squiggly-d-error"===t||"squiggly-c-warning"===t||"squiggly-b-info"===t),Jl(this,this.options.stickiness),Kl(this,!!this.options.overviewRuler.color)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),$l=new ql(null,0,0);$l.parent=$l,$l.left=$l,$l.right=$l,Yl($l,0);var ec=function(){function e(){this.root=$l,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,i,o){return this.root===$l?[]:function(e,t,n,i,o,r){for(var s=e.root,a=0,u=0,l=0,c=[],d=0;s!==$l;)if(Zl(s))Ul(s.left,!1),Ul(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Zl(s.left)){if(a+s.maxEndn)Ul(s,!0);else{if((l=a+s.end)>=t){s.setCachedOffsets(u,l,r);var h=!0;i&&s.ownerId&&s.ownerId!==i&&(h=!1),o&&Gl(s)&&(h=!1),h&&(c[d++]=s)}Ul(s,!0),s.right===$l||Zl(s.right)||(a+=s.delta,s=s.right)}}return Ul(e.root,!1),c}(this,e,t,n,i,o)},e.prototype.search=function(e,t,n){return this.root===$l?[]:ic(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,t){for(var n=e.root,i=[],o=0;n!==$l;)Zl(n)?(Ul(n.left,!1),Ul(n.right,!1),n=n.parent):n.left===$l||Zl(n.left)?(n.ownerId===t&&(i[o++]=n),Ul(n,!0),n.right===$l||Zl(n.right)||(n=n.right)):n=n.left;return Ul(e.root,!1),i}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){for(var t=e.root,n=[],i=0;t!==$l;)Zl(t)?(Ul(t.left,!1),Ul(t.right,!1),t=t.parent):t.left===$l||Zl(t.left)?t.right===$l||Zl(t.right)?(n[i++]=t,Ul(t,!0)):t=t.right:t=t.left;return Ul(e.root,!1),n}(this)},e.prototype.insert=function(e){oc(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){rc(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;n.setCachedOffsets(n.start+i,n.end+i,t)},e.prototype.acceptReplace=function(e,t,n,i){for(var o=function(e,t,n){for(var i=e.root,o=0,r=0,s=0,a=[],u=0;i!==$l;)if(Zl(i))Ul(i.left,!1),Ul(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!Zl(i.left)){if(o+i.maxEndn?Ul(i,!0):((s=o+i.end)>=t&&(i.setCachedOffsets(r,s,0),a[u++]=i),Ul(i,!0),i.right===$l||Zl(i.right)||(o+=i.delta,i=i.right))}return Ul(e.root,!1),a}(this,e,e+t),r=0,s=o.length;rn?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),Ul(o,!0)):(Ul(o,!0),o.right===$l||Zl(o.right)||(r+=o.delta,o=o.right))}Ul(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,s=o.length;rn)&&1!==i&&(2===i||t)}function nc(e,t,n,i,o){var r=function(e){return(48&e.metadata)>>>4}(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,p=e.end,g=!1,f=o?1:u>0?2:0;!h&&tc(d,s,t,f)&&(h=!0),!g&&tc(p,a,t,f)&&(g=!0),c>0&&!o&&(f=u>l?2:0,!h&&tc(d,s,t+c,f)&&(h=!0),!g&&tc(p,a,t+c,f)&&(g=!0)),f=o?1:0,!h&&tc(d,s,n,f)&&(e.start=t+l,h=!0),!g&&tc(p,a,n,f)&&(e.end=t+l,g=!0);var m=l-u;h||(e.start=Math.max(0,d+m),h=!0),g||(e.end=Math.max(0,p+m),g=!0),e.start>e.end&&(e.end=e.start)}function ic(e,t,n,i){for(var o=e.root,r=0,s=[],a=0;o!==$l;)if(Zl(o))Ul(o.left,!1),Ul(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===$l||Zl(o.left)){o.setCachedOffsets(r+o.start,r+o.end,i);var u=!0;t&&o.ownerId&&o.ownerId!==t&&(u=!1),n&&Gl(o)&&(u=!1),u&&(s[a++]=o),Ul(o,!0),o.right===$l||Zl(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return Ul(e.root,!1),s}function oc(e,t){if(e.root===$l)return t.parent=$l,t.left=$l,t.right=$l,Yl(t,0),e.root=t,e.root;!function(e,t){for(var n,i,o=0,r=e.root,s=t.start,a=t.end;;)if(((n=s)===(i=r.start+o)?a-(r.end+o):n-i)<0){if(r.left===$l){t.start-=o,t.end-=o,t.maxEnd-=o,r.left=t;break}r=r.left}else{if(r.right===$l){t.start-=o+r.delta,t.end-=o+r.delta,t.maxEnd-=o+r.delta,r.right=t;break}o+=r.delta,r=r.right}t.parent=r,t.left=$l,t.right=$l,Yl(t,1)}(e,t),dc(t.parent);for(var n=t;n!==e.root&&1===Vl(n.parent);){var i;n.parent===n.parent.parent.left?1===Vl(i=n.parent.parent.right)?(Yl(n.parent,0),Yl(i,0),Yl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&ac(e,n=n.parent),Yl(n.parent,0),Yl(n.parent.parent,1),uc(e,n.parent.parent)):1===Vl(i=n.parent.parent.left)?(Yl(n.parent,0),Yl(i,0),Yl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&uc(e,n=n.parent),Yl(n.parent,0),Yl(n.parent.parent,1),ac(e,n.parent.parent))}return Yl(e.root,0),t}function rc(e,t){var n,i;if(t.left===$l?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===$l?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==$l;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Yl(n,0),t.detach(),sc(),cc(n),void(e.root.parent=$l);var o,r=1===Vl(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(n.parent=i.parent===t?i:i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Yl(i,Vl(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==$l&&(i.left.parent=i),i.right!==$l&&(i.right.parent=i)),t.detach(),r)return dc(n.parent),i!==t&&(dc(i),dc(i.parent)),void sc();for(dc(n),dc(n.parent),i!==t&&(dc(i),dc(i.parent));n!==e.root&&0===Vl(n);)n===n.parent.left?(1===Vl(o=n.parent.right)&&(Yl(o,0),Yl(n.parent,1),ac(e,n.parent),o=n.parent.right),0===Vl(o.left)&&0===Vl(o.right)?(Yl(o,1),n=n.parent):(0===Vl(o.right)&&(Yl(o.left,0),Yl(o,1),uc(e,o),o=n.parent.right),Yl(o,Vl(n.parent)),Yl(n.parent,0),Yl(o.right,0),ac(e,n.parent),n=e.root)):(1===Vl(o=n.parent.left)&&(Yl(o,0),Yl(n.parent,1),uc(e,n.parent),o=n.parent.left),0===Vl(o.left)&&0===Vl(o.right)?(Yl(o,1),n=n.parent):(0===Vl(o.left)&&(Yl(o.right,0),Yl(o,1),ac(e,o),o=n.parent.left),Yl(o,Vl(n.parent)),Yl(n.parent,0),Yl(o.left,0),uc(e,n.parent),n=e.root));Yl(n,0),sc()}function sc(){$l.parent=$l,$l.delta=0,$l.start=0,$l.end=0}function ac(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==$l&&(n.left.parent=t),n.parent=t.parent,t.parent===$l?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,cc(t),cc(n)}function uc(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==$l&&(n.right.parent=t),n.parent=t.parent,t.parent===$l?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,cc(t),cc(n)}function lc(e){var t=e.end;if(e.left!==$l){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==$l){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function cc(e){e.maxEnd=lc(e)}function dc(e){for(;e!==$l;){var t=lc(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}var hc=mn.b.performance&&"function"==typeof mn.b.performance.now,pc=function(){function e(e){this._highResolution=hc&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?mn.b.performance.now():(new Date).getTime()},e}(),gc=new(function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}()),fc=new cl("vs.editor.nullMode",0);function mc(e,t,n,i){return new gn([new pn(i,"",e)],n)}function yc(e,t,n,i){var o=new Uint32Array(2);return o[0]=i,o[1]=(16384|e<<0|2<<23)>>>0,new fn(o,n)}function vc(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),r=i;r+10&&e.getLanguageId(s-1)===o;)s--;return new bc(e,o,s,r+1,e.getStartOffset(s),e.getEndOffset(r))}var bc=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(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function _c(e){return 0!=(7&e)}var Mc=function(){return function(e,t){var n=this;this.brackets=t.map(function(t){return new function(e,t,n,i,o){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=i,this.reversedRegex=o}(e,t[0],t[1],Cc({open:t[0],close:t[1]}),Lc({open:t[0],close:t[1]}))}),this.forwardRegex=Nc(this.brackets),this.reversedRegex=Ic(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}}();function wc(e,t){var n={};return function(i){var o=e(i);return n.hasOwnProperty(o)||(n[o]=t(i)),n[o]}}var Cc=wc(function(e){return e.open+";"+e.close},function(e){return Sc([e.open,e.close])}),Lc=wc(function(e){return e.open+";"+e.close},function(e){return Sc([Ec(e.open),Ec(e.close)])}),Nc=wc(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)}),Sc(t)}),Ic=wc(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(Ec(e.open)),t.push(Ec(e.close))}),Sc(t)});function Sc(e){return Oi("("+e.map(Si).join(")|(")+")",!0)}var xc,Dc,Tc,Ec=(Dc=null,Tc=null,function(e){return Dc!==e&&(Tc=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}(Dc=e)),Tc}),kc=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=i+(n.length-o.index);return new sn(t,r-o[0].length+1,t,r+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=Ec(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i)},e.findNextBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=i+o.index;return new sn(t,r+1,t,r+1+o[0].length)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}();!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(xc||(xc={}));var jc=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;t1&&!!e.close}).map(function(e){return new jc(e)}),n.docComment&&this._complexAutoClosePairs.push(new jc({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}(),Pc=function(){function e(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||[]}return e.prototype.onEnter=function(e,t,n){for(var i=0,o=this._regExpRules.length;i0&&n.length>0)for(i=0,o=this._brackets.length;i0)for(i=0,o=this._brackets.length;i/?".length;n++)e.indexOf("`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"[n])>=0||(t+="\\"+"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"[n]);return t+="\\s]+)",new RegExp(t,"g")}();function Wc(e){var t=zc;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function Fc(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?function(e,t,n,i){var o,r=e-1-i;for(t.lastIndex=0;o=t.exec(n);){if(o.index>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+o.index,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1,a=n.indexOf(" ",r);for(-1===a&&(a=n.length),t.lastIndex=s;o=t.exec(n);)if(o.index<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+o.index,endColumn:i+1+t.lastIndex};return null}(e,t,n,i);return t.lastIndex=0,r}var Hc=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var o=null;n&&(o=n._conf),this._conf=e._mergeConf(o,i),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new Ac(this._conf),this.wordDefinition=this._conf.wordPattern||zc,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new Rc(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Mc(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new Oc(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new Pc(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[1];n.blockCommentStartToken=i[0],n.blockCommentEndToken=o}return n},e}(),Bc=new(function(){function e(){this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new Hc(e,i,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),{dispose:function(){n._entries[e.id]===o&&(n._entries[e.id]=i,n._onDidChange.fire({languageIdentifier:e}))}}},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},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=vc(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},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=vc(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 Wc(t&&t.wordDefinition||null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=t-1,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var r=e.getLineContent(o);if(i.shouldIncrease(r)||i.shouldIndentNextLine(r))return{indentation:Ui(r),action:xc.Indent,line:o};if(i.shouldDecrease(r))return{indentation:Ui(r),action:null,line:o};if(1===o)return{indentation:Ui(e.getLineContent(o)),action:null,line:o};var s=o-1,a=i.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=l;break}return{indentation:Ui(e.getLineContent(u+1)),action:null,line:u+1}}if(n)return{indentation:Ui(e.getLineContent(o)),action:null,line:o};for(l=o;l>0;l--){var c=e.getLineContent(l);if(i.shouldIncrease(c))return{indentation:Ui(c),action:xc.Indent,line:l};if(i.shouldIndentNextLine(c)){u=0;for(var d=l-1;d>0;d--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=d;break}return{indentation:Ui(e.getLineContent(u+1)),action:null,line:u+1}}if(i.shouldDecrease(c))return{indentation:Ui(c),action:null,line:l}}return{indentation:Ui(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var r=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(r){var a=r.line;if(void 0!==a){var u=this._getOnEnterSupport(t),l=null;try{l=u.onEnter("",e.getLineContent(a),"")}catch(e){xt(e)}if(l){var c=Ui(e.getLineContent(a));return l.removeText&&(c=c.substring(0,c.length-l.removeText)),l.indentAction===xc.Indent||l.indentAction===xc.IndentOutdent?c=i.shiftIndent(c):l.indentAction===xc.Outdent&&(c=i.unshiftIndent(c)),o.shouldDecrease(s)&&(c=i.unshiftIndent(c)),l.appendText&&(c+=l.appendText),Ui(c)}}return o.shouldDecrease(s)?r.action===xc.Indent?r.indentation:i.unshiftIndent(r.indentation):r.action===xc.Indent?i.shiftIndent(r.indentation):r.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){e.forceTokenization(t.startLineNumber);var o,r,s=e.getLineTokens(t.startLineNumber),a=vc(s,t.startColumn-1),u=a.getLineContent(),l=!1;a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,o=u.substr(0,t.startColumn-1-a.firstCharOffset)):o=s.getLineContent().substring(0,t.startColumn-1),r=t.isEmpty()?u.substr(t.startColumn-1-a.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset);var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var d=o,h=Ui(o);if(!i&&!l){var p=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(o)&&p&&(h=p.indentation,p.action!==xc.Indent&&(h=n.unshiftIndent(h))),d=h+Di(Di(o," "),"\t")}var g={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?d:e.getLineContent(n)}},f=Ui(s.getLineContent()),m=this.getInheritIndentForLine(g,t.startLineNumber+1);if(!m){var y=l?f:h;return{beforeEnter:y,afterEnter:y}}var v=l?f:m.indentation;return m.action===xc.Indent&&(v=n.shiftIndent(v)),c.shouldDecrease(r)&&(v=n.unshiftIndent(v)),{beforeEnter:l?f:h,afterEnter:v}},e.prototype.getIndentActionForType=function(e,t,n,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this.getIndentRulesSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),u=a.substr(0,t.startColumn-1-o.firstCharOffset);if(s=t.isEmpty()?a.substr(t.startColumn-1-o.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-o.firstCharOffset),!r.shouldDecrease(u+s)&&r.shouldDecrease(u+n+s)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var c=l.indentation;return l.action!==xc.Indent&&(c=i.unshiftIndent(c)),c}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new sn(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=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),a=s.substr(0,t.startColumn-1-i.firstCharOffset);r=t.isEmpty()?s.substr(t.startColumn-1-i.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);var u=t.startLineNumber,l="";if(u>1&&0===i.firstCharOffset){var c=this.getScopedLineTokens(e,u-1);c.languageId===i.languageId&&(l=c.getLineContent())}var d=null;try{d=o.onEnter(l,a,r)}catch(e){xt(e)}return d?(d.appendText||(d.appendText=d.indentAction===xc.Indent||d.indentAction===xc.IndentOutdent?"\t":""),d.removeText&&(n=n.substring(0,n.length-d.removeText)),{enterAction:d,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var i=Ui(e.getLineContent(t));return i.length>n-1&&(i=i.substring(0,n-1)),i},e.prototype.getScopedLineTokens=function(e,t,n){return e.forceTokenization(t),vc(e.getLineTokens(t),isNaN(n)?e.getLineMaxColumn(t)-1:n-1)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}()),Vc=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){return dl.getLanguageId(this._tokens[1+(e<<1)])},e.prototype.getStandardTokenType=function(e){return dl.getTokenType(this._tokens[1+(e<<1)])},e.prototype.getForeground=function(e){return dl.getForeground(this._tokens[1+(e<<1)])},e.prototype.getClassName=function(e){return dl.getClassNameFromMetadata(this._tokens[1+(e<<1)])},e.prototype.getInlineStyle=function(e,t){return dl.getInlineStyleFromMetadata(this._tokens[1+(e<<1)],t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new Yc(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i>>1)-1;nt&&(i=o)}return n},e}(),Yc=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o=n);o++)this._tokensCount++}return e.prototype.equals=function(t){return t instanceof e&&this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount)},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e}();function Zc(e){return(16384|e<<0|2<<23)>>>0}var Uc,Gc=new Uint32Array(0).buffer,Qc=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==Gc&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==Gc){var t=new Uint32Array(this._lineTokens);this.delete(e,t[t.length-2])}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==Gc&&e!==t){var n=new Uint32Array(this._lineTokens),i=n.length>>>1;if(0!==e||n[n.length-2]!==t){var o=Vc.findIndexInTokensArray(n,e),r=o>0?n[o-1<<1]:0;if(tl&&(n[u++]=h,n[u++]=n[1+(d<<1)],l=h)}if(u!==n.length){var p=new Uint32Array(u);p.set(n.subarray(0,u),0),this._lineTokens=p.buffer}}}else this._lineTokens=Gc}},e.prototype.append=function(e){if(e!==Gc)if(this._lineTokens!==Gc){if(null!==this._lineTokens)if(null!==e){var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),i=n.length>>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var r=t.length,s=t[t.length-2],a=0;a>>1,o=Vc.findIndexInTokensArray(n,e);o>0&&(o>0?n[o-1<<1]:0)===e&&o--;for(var r=o;r=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex=0;i--)this.invalidateLine(e.startLineNumber+i-1);this._acceptDeleteRange(e),this._acceptInsertText(new rn(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length))if(0!==t){var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,n);for(var r,s,a,u,l,c=new Array(t),d=t-1;d>=0;d--)c[d]=new Qc(null);this._tokens=(a=c,u=(r=this._tokens).slice(0,s=e.lineNumber),l=r.slice(s),u.concat(a,l))}else this._tokens[i].insert(e.column-1,n)}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var i=null;try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){xt(e)}return i||(i=yc(this.languageIdentifier.id,0,n,0)),i},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var i=e.getLineCount(),o=n-1,r=this._invalidLineStartIndex;r<=o;r++){var s=r+1,a=null,u=e.getLineContent(r+1);try{var l=this._getState(r).clone();a=this.tokenizationSupport.tokenize2(u,l,0)}catch(e){xt(e)}if(a||(a=yc(this.languageIdentifier.id,0,this._getState(r),0)),this._setTokens(this.languageIdentifier.id,r,u.length,a.tokens),t.registerChangedTokens(r+1),this._setIsInvalid(r,!1),s0?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}();function Jc(e,t,n,i){var o;for(o=0;o0&&s>0)return 0;if(u>0&&l>0)return 0;var c=Math.abs(s-l),d=Math.abs(r-u);return 0===c?d:d%c==0?d/c:0}function qc(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,u=[0,0,0,0,0,0,0,0,0],l=function(t){var n=e.getLineLength(t),i=e.getLineContent(t),l=void 0;l=n>65536?function(n){return e.getLineCharCode(t,n)}:function(e){return i.charCodeAt(e)};for(var c=!1,d=0,h=0,p=0,g=0,f=n;g0?o++:h>1&&r++;var y=Jc(s,a,i,d);y<=8&&u[y]++,s=i,a=d},c=1;c<=i;c++)l(c);var d=Jc(s,a,"",0);d<=8&&u[d]++;var h=n;o!==r&&(h=og&&(g=t,p=e)}),{insertSpaces:h,tabSize:p}}!function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Uc||(Uc={}));var $c=function(){function e(e,t,n,i,o,r){t|=0,n|=0,i|=0,o|=0,r|=0,(e|=0)<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),r+i>o&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e("undefined"!=typeof t.width?t.width:this.width,"undefined"!=typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!=typeof t.height?t.height:this.height,"undefined"!=typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,"undefined"!=typeof t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!=typeof t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:this.width!==e.width,scrollWidthChanged:this.scrollWidth!==e.scrollWidth,scrollLeftChanged:this.scrollLeft!==e.scrollLeft,heightChanged:this.height!==e.height,scrollHeightChanged:this.scrollHeight!==e.scrollHeight,scrollTopChanged:this.scrollTop!==e.scrollTop}},e}(),ed=function(e){function t(t,n){var i=e.call(this)||this;return i._onScroll=i._register(new zt),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=n,i._state=new $c(0,0,0,0,0,0),i._smoothScrolling=null,i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){var n=this._state.withScrollPosition(e={scrollLeft:"undefined"==typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"==typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop});if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else n=this._state.withScrollPosition(e),this._smoothScrolling=id.start(this._state,n,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this,t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(Ct),td=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function nd(e,t){var n=t-e;return function(t){return e+n*(1-Math.pow(1-t,3))}}var id=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var i,o,r;if(Math.abs(e-t)>2.5*n){var s=void 0,a=void 0;return e=2?(_=g?rd.Large:rd.LargeBlocks,D=2/m):(_=g?rd.Small:rd.SmallBlocks,D=1/m),(w=Math.max(0,Math.floor((x-u)*D/(s+D))))/D>f&&(w=Math.floor(f*D)),C=x-w,"left"===p?(M=0,L+=w,N+=w,I+=w,S+=w):M=t-w-u}else M=0,w=0,_=rd.None,C=x;var T=Math.max(1,Math.floor((C-u)/s)),E=l?c:0;return{width:t,height:n,glyphMarginLeft:L,glyphMarginWidth:b,glyphMarginHeight:n,lineNumbersLeft:N,lineNumbersWidth:y,lineNumbersHeight:n,decorationsLeft:I,decorationsWidth:r,decorationsHeight:n,contentLeft:S,contentWidth:C,contentHeight:n,renderMinimap:_,minimapLeft:M,minimapWidth:w,viewportColumn:T,verticalScrollbarWidth:u,horizontalScrollbarHeight:d,overviewRuler:{top:E,width:u,height:n-2*E,right:0}}},e}(),vd={fontFamily:mn.d?"Menlo, Monaco, 'Courier New', monospace":mn.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:mn.d?12:14,lineHeight:0,letterSpacing:0},bd={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0},_d={inDiffEditor:!1,wordSeparators:"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:sd.Same,wordWrapBreakBeforeCharacters:"([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b",wordWrapBreakAfterCharacters:" \t})]?|&,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:!0,autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,useTabStops:!0,multiCursorModifier:"altKey",accessibilitySupport:"auto",viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:Yo("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:ad.Blink,mouseWheelZoom:!1,cursorStyle:ud.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,renderLineHighlight:"line",scrollbar:{vertical:Uc.Auto,horizontal:Uc.Auto,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:!0,links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:!0,iconsInSuggestions:!0,formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,snippetSuggestions:"inline",wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0}},Md=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o255?255:0|e}function Cd(e){return e<0?0:e>4294967295?4294967295:0|e}var Ld,Nd,Id=function(){function e(t){var n=wd(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=wd(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),Sd=function(){function e(){this._actual=new Id(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}(),xd=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i=n)break;var i=e.charCodeAt(t);if(110===i||114===i)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 n=null;try{n=Oi(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:t,global:!0})}catch(e){return null}if(!n)return null;var i=!this.isRegex&&!t;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new Ed(n,this.wordSeparators?Dd(this.wordSeparators):null,i?this.searchString:null)},e}(),Ed=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function kd(e,t,n){if(!n)return new ju(e,null);for(var i=[],o=0,r=t.length;o=o)break}return s}return this._doFindMatchesMultiline(e,n,new Od(r.wordSeparators,r.regex),i,o)}return this._doFindMatchesLineByLine(e,n,r,i,o)},e._getMultilineMatchRange=function(e,t,n,i,o){var r,s;if("\r\n"===e.getEOL()){for(var a=0,u=0;u=o)return u;return u},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;l=a))return o;return o}var p,g=new Od(e.wordSeparators,e.regex);g.reset(0);do{if((p=g.next(t))&&(r[o++]=kd(new sn(n,p.index+1+i,n,p.index+1+p[0].length+i),p,s),o>=a))return o}while(p);return o},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Od(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},e._doFindNextMatchMultiline=function(e,t,n,i){var o=new rn(t.lineNumber,1),r=e.getOffsetAt(o),s=e.getLineCount(),a=e.getValueInRange(new sn(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),Du.LF);n.reset(t.column-1);var u=n.next(a);return u?kd(this._getMultilineMatchRange(e,r,a,u.index,u[0]),u,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new rn(1,1),n,i):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,o){e.reset(i-1);var r=e.next(t);return r?kd(new sn(n,r.index+1,n,r.index+1+r[0].length),r,o):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Od(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},e._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new sn(1,1,t.lineNumber,t.column),n,i,9990);if(o.length>0)return o[o.length-1];var r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new rn(r,e.getLineMaxColumn(r)),n,i):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){var o,r=null;for(e.reset(0);o=e.next(t);)r=kd(new sn(n,o.index+1,n,o.index+1+o[0].length),o,i);return r},e}();function Ad(e,t,n,i,o){return function(e,t,n,i,o){if(0===i)return!0;var r=t.charCodeAt(i-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}(e,t,0,i,o)&&function(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}(e,t,n,i,o)}var Od=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||Ad(this._wordSeparators,e,n,i,o))return t}while(t);return null},e}(),Pd=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=null,this.left=null,this.right=null}return e.prototype.next=function(){if(this.right!==Rd)return zd(this.right);for(var e=this;e.parent!==Rd&&e.parent.left!==e;)e=e.parent;return e.parent===Rd?Rd:e.parent},e.prototype.prev=function(){if(this.left!==Rd)return Wd(this.left);for(var e=this;e.parent!==Rd&&e.parent.right!==e;)e=e.parent;return e.parent===Rd?Rd:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Rd=new Pd(null,0);function zd(e){for(;e.left!==Rd;)e=e.left;return e}function Wd(e){for(;e.right!==Rd;)e=e.right;return e}function Fd(e){return e===Rd?0:e.size_left+e.piece.length+Fd(e.right)}function Hd(e){return e===Rd?0:e.lf_left+e.piece.lineFeedCnt+Hd(e.right)}function Bd(){Rd.parent=Rd}function Vd(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Rd&&(n.left.parent=t),n.parent=t.parent,t.parent===Rd?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Yd(e,t){var n=t.left;t.left=n.right,n.right!==Rd&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Rd?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Zd(e,t){var n,i;if(n=t.left===Rd?(i=t).right:t.right===Rd?(i=t).left:(i=zd(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),Bd(),void(e.root.parent=Rd);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Qd(e,n)):(n.parent=i.parent===t?i:i.parent,Qd(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Rd&&(i.left.parent=i),i.right!==Rd&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Qd(e,i)),t.detach(),n.parent.left===n){var r=Fd(n),s=Hd(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,Gd(e,n.parent,a,u)}}if(Qd(e,n.parent),o)Bd();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,Vd(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,Yd(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,Vd(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,Yd(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,Vd(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,Yd(e,n.parent),n=e.root));n.color=0,Bd()}}function Ud(e,t){for(Qd(e,t);t!==e.root&&1===t.parent.color;){var n;t.parent===t.parent.parent.left?1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Vd(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Yd(e,t.parent.parent)):1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Yd(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Vd(e,t.parent.parent))}e.root.color=0}function Gd(e,t,n,i){for(;t!==e.root&&t!==Rd;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Qd(e,t){var n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=Fd((t=t.parent).left)-t.size_left,i=Hd(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}function Xd(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}Rd.parent=Rd,Rd.left=Rd,Rd.right=Rd,Rd.color=0;function Kd(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;othis._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])},e}(),eh=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=0;n=e)&&(this._cache[n]=null,t=!0)}if(t){var o=[];for(n=0;n0){e[o].lineStarts||(e[o].lineStarts=Kd(e[o].buffer));var s=new Jd(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s)}this._searchCache=new eh(1),this._lastVisitedLine={lineNumber:0,value:null},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),i=2*n,o="",r=0,s=[];if(this.iterate(this.root,function(a){var u=t.getNodeContent(a),l=u.length;if(r<=n||r+l0){var a=o.replace(/\r\n|\r|\n/g,e);s.push(new qd(a,Kd(a)))}this.create(s,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.createSnapshot=function(e){return new $d(this,e)},e.prototype.equal=function(e){var t=this;return this.getLength()===e.getLength()&&this.getLineCount()===e.getLineCount()&&this.iterate(this.root,function(n){if(n===Rd)return!0;var i=t.getNodeContent(n),o=i.length,r=e.nodeAt(0),s=e.nodeAt(0+o);return i===e.getValueInRange2(r,s)})},e.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==Rd;)if(i.left!==Rd&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==Rd;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){var r=this.getOffsetAt(n+1,1);return new rn(n+1,i-r+1)}return new rn(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Rd)return r=this.getOffsetAt(n+1,1),new rn(n+1,i-e-r+1);t=t.right}return new rn(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),u=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==Rd;){var l=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,r.piece.length),r=r.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,this._lastVisitedLine.value=e===this._lineCnt?this.getLineRawContent(e):this._EOLNormalized?this.getLineRawContent(e,this._EOLLength):this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1),i=this._buffers[n.node.piece.bufferIndex],o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start);return i.buffer.charCodeAt(o+n.remainder)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,u,l,c){var d,h=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,o),f=this.offsetInBuffer(e.piece.bufferIndex,r);t.reset(g);var m={line:0,column:0};do{if(d=t.next(h.buffer)){if(d.index>=f)return l;this.positionInBuffer(e,d.index-p,m);var y=this.getLineFeedCnt(e.piece.bufferIndex,o,m),v=m.line===o.line?m.column-o.column+i:m.column+1;if(c[l++]=kd(new sn(n+y,v,n+y,v+d[0].length),d,a),d.index+d[0].length>=f)return l;if(l>=u)return l}}while(d);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new Od(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(p>=1){var g=this._buffers[h.piece.bufferIndex].lineStarts,f=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start);if((r=this.findMatchesInNode(h,s,d,d===e.startLineNumber?e.startColumn:1,l,this.positionInBuffer(h,g[l.line+p]-f),t,n,i,r,o))>=i)return o;d+=p}var m=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var y=this.getLineContent(d).substring(m,e.endColumn-1);return r=this._findMatchesInLine(t,s,y,e.endLineNumber,m,r,o,n,i),o}if((r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(m),d,m,r,o,n,i))>=i)return o;h=(a=this.nodeAt2(++d,1)).node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var v=d===e.startLineNumber?e.startColumn-1:0;return y=this.getLineContent(d).substring(v,e.endColumn-1),r=this._findMatchesInLine(t,s,y,e.endLineNumber,v,r,o,n,i),o}return r=this.findMatchesInNode(u.node,s,d,d===e.startLineNumber?e.startColumn:1,l,c,t,n,i,r,o),o},e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,p=n.length,g=-h;-1!==(g=n.indexOf(d,g+h));)if((!c||Ad(c,n,p,g,h))&&(s[r++]=new ju(new sn(i,g+1+o,i,g+1+h+o),null),r>=u))return r;return r}t.reset(0);do{if((l=t.next(n))&&(s[r++]=kd(new sn(i,l.index+1+o,i,l.index+1+l[0].length+o),l,a),r>=u))return r}while(l);return r},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value=null,this.root!==Rd){var i=this.nodeAt(e),o=i.remainder,r=i.nodeStartOffset,s=(y=i.node).piece,a=s.bufferIndex,u=this.positionInBuffer(y,o);if(0===y.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<65535)return this.appendToNode(y,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,y),this._searchCache.valdiate(e);else if(r+y.piece.length>e){var l=[],c=new Jd(s.bufferIndex,u,s.end,this.getLineFeedCnt(s.bufferIndex,u,s.end),this.offsetInBuffer(a,s.end)-this.offsetInBuffer(a,u));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(y,o)){var d={line:c.start.line+1,column:0};c=new Jd(c.bufferIndex,d,c.end,this.getLineFeedCnt(c.bufferIndex,d,c.end),c.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(y,o-1)){var h=this.positionInBuffer(y,o-1);this.deleteNodeTail(y,h),t="\r"+t,0===y.piece.length&&l.push(y)}else this.deleteNodeTail(y,u);else this.deleteNodeTail(y,u);var p=this.createNewPieces(t);c.length>0&&this.rbInsertRight(y,c);for(var g=y,f=0;f=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r=o))break;l=i+1}return n?(n.line=i,n.column=u-r,null):{line:i,column:u-r}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line]+n.column;return i[n.line+1]>o+1?n.line-t.line:13===this._buffers[e].buffer.charCodeAt(o-1)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));var o=Kd(i);t.push(new Jd(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new qd(i,o))}var r=Kd(e);return t.push(new Jd(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new qd(e,r)),t}var s=this._buffers[0].buffer.length,a=Kd(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),this._searchCache.set({node:n,nodeStartOffset:l+=n.size_left,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+u-t);if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Rd;){if(s=this._buffers[n.piece.bufferIndex].buffer,n.piece.lineFeedCnt>0)return u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+s.substring(a,a+u-t);a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+=s.substr(a,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==Rd;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),u=a-i,l=s-o;e.piece=new Jd(n.bufferIndex,n.start,r,a,n.length+l),Gd(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=s-i,u=o-this.offsetInBuffer(n.bufferIndex,r);e.piece=new Jd(n.bufferIndex,r,n.end,s,n.length+u),Gd(this,e,u,a)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new Jd(i.bufferIndex,i.start,u,l,c),Gd(this,e,c-s,l-a);var d=new Jd(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=Kd(t,!1),r=0;re)t=t.left;else{if(t.size_left+t.piece.length>=e){var o={node:t,remainder:e-t.size_left,nodeStartOffset:i+=t.size_left};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==Rd;)if(n.left!==Rd&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Rd;){if(n.piece.lineFeedCnt>0){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===Rd||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;return i!==n.length-1&&!(n[i+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==Rd&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;e.piece=new Jd(e.piece.bufferIndex,e.piece.start,0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1},e.piece.lineFeedCnt-1,e.piece.length-1),Gd(this,e,-1,-1),0===e.piece.length&&n.push(e);var o={line:t.piece.start.line+1,column:0},r=t.piece.length-1,s=this.getLineFeedCnt(t.piece.bufferIndex,o,t.piece.end);t.piece=new Jd(t.piece.bufferIndex,o,t.piece.end,s,r),Gd(this,t,-1,-1),0===t.piece.length&&n.push(t);var a=this.createNewPieces("\r\n");this.rbInsertRight(e,a[0]);for(var u=0;u0){p.sort(function(e,t){return t.lineNumber-e.lineNumber}),b=[],a=0;for(var _=p.length;a<_;a++)if(f=p[a].lineNumber,!(a>0&&p[a-1].lineNumber===f)){var M=p[a].oldContent,w=this.getLineContent(f);0!==w.length&&w!==M&&-1===Zi(w)&&b.push(f)}}return new function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}(y,v,b)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new sn(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u0){var d=a.lines.length,h=a.lines[d-1];c=1===d?new sn(u,l,u,l+a.lines[0].length):new sn(u,l,u+d-1,h.length+1)}else c=new sn(u,l,u,l);t=c.endLineNumber,n=c.endColumn,i.push(c),o=a}return i},e._sortOpsAscending=function(e,t){var n=sn.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=sn.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),ih=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf;return 0===t?e===Tu.LF?"\n":"\r\n":this._cr+this._crlf>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,o=n.length;i=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&this._acceptChunk2(this._hasPreviousChar?String.fromCharCode(this._previousChar)+e:e)},e.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,i=0,o=0,r=0,s=!0,a=0,u=t.length;a126)&&(s=!1)}var c=new function(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o}(Xd(e),i,o,r,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new qd(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=lo(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new ih(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Kd(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();function rh(e,t){var n,i;return("string"==typeof e?(n=e,(i=new oh).acceptChunk(n),i.finish()):e).create(t)}var sh=0,ah=function(){function e(e){this._source=e,this._eos=!1}return e.prototype.read=function(){if(this._eos)return null;for(var e=[],t=0,n=0;;){var i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}},e}(),uh=function(e){function t(n,i,o,r){void 0===r&&(r=null);var s=e.call(this)||this;s._onWillDispose=s._register(new zt),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new yh),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new zt),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new zt),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new zt),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new zt),s.onDidChangeOptions=s._onDidChangeOptions.event,s._eventEmitter=s._register(new vh),s.id="$model"+ ++sh,s.isForSimpleWidget=i.isForSimpleWidget,s._associatedResource="undefined"==typeof r||null===r?Tn.parse("inmemory://model/"+sh):r,s._attachedEditorCount=0,s._buffer=rh(n,i.defaultEOL),s._options=t.resolveOptions(s._buffer,i);var a,u=s._buffer.getLineCount(),l=s._buffer.getValueLengthInRange(new sn(1,1,u,s._buffer.getLineLength(u)+1),Du.TextDefined);return s._isTooLargeForTokenization=l>t.MODEL_TOKENIZATION_LIMIT||u>t.MANY_MANY_LINES,s._shouldSimplifyMode=s._isTooLargeForTokenization||l>t.MODEL_SYNC_LIMIT,s._setVersionId(1),s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=o||fc,s._tokenizationListener=Pl.onDidChange(function(e){-1!==e.changedLanguages.indexOf(s._languageIdentifier.language)&&(s._resetTokenizationState(),s.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:s.getLineCount()}]}),s._shouldAutoTokenize()&&s._warmUpTokens())}),s._revalidateTokensTimeout=-1,s._languageRegistryListener=Bc.onDidChange(function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})}),s._resetTokenizationState(),s._instanceId=(a=sh,(a%=52)<26?String.fromCharCode(97+a):String.fromCharCode(65+a-26)),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new lh,s._commandManager=new Rl(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s}return Object(a.c)(t,e),t.createFromString=function(e,n,i,o){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new t(e,n,i,o)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=qc(e,t.tabSize,t.insertSpaces);return new ku({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new ku({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._commandManager=null,this._decorations=null,this._decorationsTree=null,this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._tokens=null,this._isDisposed=!0,this._buffer=null,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype.equalsTextBuffer=function(e){return this._assertNotDisposed(),this._buffer.equals(e)},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Bl(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=rh(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,i,o,r,s,a,u){return{changes:[{range:new sn(e,t,n,i),rangeLength:o,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:a,isFlush:u}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new lh,this._commandManager=new Rl(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Hl([new function(){this.changeType=1}],this._versionId,!1,!1),this._createContentChanged2(1,1,i,o,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=e===Eu.CRLF?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Hl([new function(){this.changeType=5}],this._versionId,!1,!1),this._createContentChanged2(1,1,o,r,i,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForHavingARichMode=function(){return this._shouldSimplifyMode},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);o>=1e4?t+=o:e+=o}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=new ku({tabSize:"undefined"!=typeof e.tabSize?e.tabSize:this._options.tabSize,insertSpaces:"undefined"!=typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:"undefined"!=typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace});if(!this._options.equals(t)){var n=this._options.createChangeEvent(t);this._options=t,this._onDidChangeOptions.fire(n)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=qc(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;othis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;o<1?(t=1,n=1):o>i?n=this.getLineMaxColumn(t=i):(t=0|o,n=r<=1?1:r>=(c=this.getLineMaxColumn(t))?c:0|r);var s,a,u=e.endLineNumber,l=e.endColumn;if(u<1)s=1,a=1;else if(u>i)a=this.getLineMaxColumn(s=i);else{var c;s=0|u,a=l<=1?1:l>=(c=this.getLineMaxColumn(s))?c:0|l}return o===t&&r===n&&u===s&&l===a&&e instanceof sn&&!(e instanceof ln)?e:new sn(t,n,s,a)},t.prototype._isValidPosition=function(e,t,n){return!(e<1||e>this._buffer.getLineCount()||t<1||t>this.getLineMaxColumn(e)||n&&t>1&&so(this._buffer.getLineCharCode(e,t-2)))},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"==typeof e?e:1),o=Math.floor("number"==typeof t?t:1),r=this._buffer.getLineCount();if(i<1)return new rn(1,1);if(i>r)return new rn(r,this.getLineMaxColumn(r));if(o<=1)return new rn(i,1);var s=this.getLineMaxColumn(i);return o>=s?new rn(i,s):n&&so(this._buffer.getLineCharCode(i,o-2))?new rn(i,o-1):new rn(i,o)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof rn&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=i>1?this._buffer.getLineCharCode(n,i-2):0,a=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=so(s),l=so(a);return!u&&!l}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof sn&&!(e instanceof ln)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,l=so(a),c=so(u);return l||c?i===r&&o===s?new sn(i,o-1,r,s-1):l&&c?new sn(i,o-1,r,s+1):l?new sn(i,o-1,r,s):new sn(i,o,r,s+1):new sn(i,o,r,s)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new sn(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},t.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=sn.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new Td(e,n,i,o).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,r,s):[]}return jd.findMatches(this,new Td(e,n,i,o),a,r,s)},t.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new Td(e,n,i,o).parseSearchRequest(),u=this.getLineCount(),l=new sn(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,a,r,1);return jd.findNextMatch(this,new Td(e,n,i,o),s,r),c.length>0?c[0]:(l=new sn(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,a,r,1)).length>0?c[0]:null)}return jd.findNextMatch(this,new Td(e,n,i,o),s,r)},t.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return jd.findPreviousMatch(this,new Td(e,n,i,o),s,r)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text}}),r=!0,s=0,a=e.length;su.endLineNumber||u.startLineNumber>f.endLineNumber)){l=!0;break}if(!l){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;sf.endLineNumber||h===f.startLineNumber&&f.startColumn===p&&f.isEmpty()&&m&&m.length>0&&"\n"===m.charAt(0))){g=!1;break}}g&&t.push({range:new sn(h,1,h,p),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t._eolCount=function(e){for(var t=0,n=0,i=0,o=e.length;i=0;b--){var _=p+b;u.push(new zl(_,this.getLineContent(s-l-v+_)))}if(ythis.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new sn(r,1,s,a),n,i)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t0)for(;o>0&&s>=1;){var u=this.getLineFirstNonWhitespaceColumn(s);if(0!==u){if(u=0;c--)l=(p=this._tokens._tokenizeText(this._buffer,r[c],l))?p.endState.clone():a.clone();var d=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+d);for(var h=e;h<=t;h++){var p,g=this.getLineContent(h);(p=this._tokens._tokenizeText(this._buffer,g,l))?(this._tokens._setTokens(this._tokens.languageIdentifier.id,h-1,g.length,p.tokens),this._tokens._setIsInvalid(h-1,!1),this._tokens._setState(h-1,l),l=p.endState.clone(),i.registerChangedTokens(h)):l=a.clone()}var f=i.build();f&&this._onDidChangeTokens.fire(f)}}},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Kc;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},t.prototype.isCheapToTokenize=function(e){return this._tokens.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.column,o=this._getLineTokens(n.lineNumber);return o.getLanguageId(o.findTokenIndexAtOffset(i-1))},t.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},t.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=new Kc,n=pc.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20)&&!(this._tokens._tokenizeOneLine(this._buffer,t)>=e););this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var i=t.build();i&&this._onDidChangeTokens.fire(i)},t.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),o=this._getLineTokens(n.lineNumber),r=o.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(o,r),a=s[0],u=s[1],l=Fc(n.column,Bc.getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(l)return l;if(r>0&&a===n.column-1){var c=t._findLanguageBoundaries(o,r-1),d=c[0],h=c[1],p=Fc(n.column,Bc.getWordDefinition(o.getLanguageId(r-1)),i.substring(d,h),d);if(p)return p}return null},t._findLanguageBoundaries=function(e,t){for(var n,i,o=e.getLanguageId(t),r=t;r>=0&&e.getLanguageId(r)===o;r--)n=e.getStartOffset(r);r=t;for(var s=e.getCount();r0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);var l,c,d,h=Bc.getBracketsSupport(n.getLanguageId(--o));if(h&&!_c(n.getStandardTokenType(o))&&(s=Math.max(n.getStartOffset(o),e.column-1-h.maxBracketLength),(l=kc.findPrevBracketInToken(h.reversedRegex,t,i,s,a))&&l.startColumn<=e.column&&e.column<=l.endColumn&&(c=(c=i.substring(l.startColumn-1,l.endColumn-1)).toLowerCase(),d=this._matchFoundBracket(l,h.textIsBracket[c],h.textIsOpenBracket[c]))))return d}return null},t.prototype._matchFoundBracket=function(e,t,n){var i;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i]}else if(i=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,i];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=a-1,c=-1;for(r===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),g=s.getEndOffset(l);if(-1===c&&(c=g),d===n&&!_c(h))for(;;){var f=kc.findPrevBracketInToken(i,r,u,p,c);if(!f)break;var m=u.substring(f.startColumn-1,f.endColumn-1);if((m=m.toLowerCase())===e.open?o++:m===e.close&&o--,0===o)return f;c=f.startColumn-1}c=-1}}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=a.getCount(),l=this._buffer.getLineContent(r),c=0,d=0;for(r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c=1;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),u=s-1,l=-1;for(o===t.lineNumber&&(u=r.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>=0;u--){var c=r.getLanguageId(u),d=r.getStandardTokenType(u),h=r.getStartOffset(u),p=r.getEndOffset(u);if(-1===l&&(l=p),n!==c&&(i=Bc.getBracketsSupport(n=c)),i&&!_c(d)){var g=kc.findPrevBracketInToken(i.reversedRegex,o,a,h,l);if(g)return this._toFoundBracket(i,g)}l=-1}}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=s.getCount(),u=this._buffer.getLineContent(o),l=0,c=0;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);ln)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=Bc.getFoldingRules(this._languageIdentifier.id),o=i&&i.offSide,r=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,r[d]=Math.ceil(h/this._options.tabSize);else{if(-2===s){s=-1,a=-1;for(var p=c-2;p>=0;p--)if((g=this._computeIndentLevel(p))>=0){s=p,a=g;break}}if(-1!==u&&(-2===u||u=0){u=p,l=g;break}}r[d]=-1===a||-1===l?0:a0?this._deferredEvent=this._deferredEvent?this._deferredEvent.merge(e):e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(Ct),bh=function(){function e(t,n,i,o){this._languageIdentifier=t;var r=o.editor;this.readOnly=r.readOnly,this.tabSize=i.tabSize,this.insertSpaces=i.insertSpaces,this.oneIndent=n,this.pageSize=Math.floor(r.layoutInfo.height/r.fontInfo.lineHeight)-2,this.lineHeight=r.lineHeight,this.useTabStops=r.useTabStops,this.wordSeparators=r.wordSeparators,this.emptySelectionClipboard=r.emptySelectionClipboard,this.autoClosingBrackets=r.autoClosingBrackets,this.autoIndent=r.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null;var s=e._getAutoClosingPairs(t);if(s)for(var a=0;a=i.length)&&ao(i.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&so(i.charCodeAt(n))},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)return s-ts?s:o},e.nextTabStop=function(e,t){return e+t-e%t},e.prevTabStop=function(e,t){return e-1-(e-1)%t},e}(),Nh=function(){function e(e){this.modelState=null,this.viewState=null,this._selTrackedRange=null,this._setState(e,new _h(new sn(1,1,1,1),0,new rn(1,1),0),new _h(new sn(1,1,1,1),0,new rn(1,1),0))}return e.prototype.dispose=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,Au.AlwaysGrowsWhenTypingAtEdges)},e.prototype.asCursorState=function(){return new wh(this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===tn.LTR?new ln(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ln(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new _h(r,i,s,o)}else{var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new _h(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n)l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position),n=new _h(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);else{var a=e.convertModelPositionToViewPosition(new rn(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new rn(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new sn(a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new _h(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState&&this.viewState&&this.modelState.equals(t)&&this.viewState.equals(n)||(this.modelState=t,this.viewState=n,this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,Au.AlwaysGrowsWhenTypingAtEdges))},e}(),Ih=function(){function e(e){this.context=e,this.primaryCursor=new Nh(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;en){var r=t-n;for(o=0;o=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;td&&t[_].index--;e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--}}}},e}(),Sh=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},e}(),xh=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},e}(),Dh=function(){function e(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},e}(),Th=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}(),Eh=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},kh=function(){function e(){}return e.left=function(e,t,n,i){return i>t.getLineMinColumn(n)?Lh.isLowSurrogate(t,n,i-2)?i-=2:i-=1:n>1&&(i=t.getLineMaxColumn(n-=1)),new Eh(n,i,0)},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.right=function(e,t,n,i){return iu?(n=u,s?i=t.getLineMaxColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=Lh.columnFromVisibleColumn2(e,t,n,a),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new Eh(n,i,o)},e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,i){var o=i.selection,r=e.down(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new _h(new sn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new rn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,t,n,i,o,r,s){var a=Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;return(n-=r)<1?(n=1,s?i=t.getLineMinColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=Lh.columnFromVisibleColumn2(e,t,n,a),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new Eh(n,i,o)},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,i){var o=i.selection,r=e.up(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new _h(new sn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new rn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||r;return n.move(i,o,n.position.column===s?r:s,0)},e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e}(),jh=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var o=[],r=3!==e,s=0,a=i.length;s1){var d=n.getLineContent(c.lineNumber),h=Zi(d);if(c.column<=(-1===h?d.length+1:h+1)){var p=Lh.visibleColumnFromColumn2(t,n,c),g=Lh.prevTabStop(p,t.tabSize),f=Lh.columnFromVisibleColumn2(t,n,c.lineNumber,g);l=new sn(c.lineNumber,f,c.lineNumber,c.column)}else l=new sn(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var m=kh.left(t,n,c.lineNumber,c.column);l=new sn(m.lineNumber,m.column,c.lineNumber,c.column)}}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new Sh(l,""))}return[r,o]},e.cut=function(e,t,n){for(var i=[],o=0,r=n.length;o1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new sn(u,l,c,d);i[o]=h.isEmpty()?null:new Sh(h,"")}else i[o]=null;else i[o]=new Sh(s,"")}return new Ch(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}(),Ah=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndentCount=function(e,t,n){var i=Lh.visibleColumnFromColumn(e,t,n);return Lh.prevTabStop(i,n)/n},e.shiftIndentCount=function(e,t,n){var i=Lh.visibleColumnFromColumn(e,t,n);return Lh.nextTabStop(i,n)/n},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var i=this._selection.startLineNumber,o=this._selection.endLineNumber;1===this._selection.endColumn&&i!==o&&(o-=1);var r=this._opts.tabSize,s=this._opts.oneIndent,a=i===o;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var u=["",s],l=0,c=0,d=i;d<=o;d++,l=c){c=0;var h=Zi(y=t.getLineContent(d));if((!this._opts.isUnshift||0!==y.length&&0!==h)&&(a||this._opts.isUnshift||0!==y.length)){if(-1===h&&(h=y.length),d>1&&Lh.visibleColumnFromColumn(y,h+1,r)%r!=0&&t.isCheapToTokenize(d-1)){var p=Bc.getRawEnterActionAtPosition(t,d-1,t.getLineMaxColumn(d-1));if(p){if(c=l,p.appendText)for(var g=0,f=p.appendText.length;g1){var a=i-1;for(a=i-1;a>=1&&!(Gi(n.getLineContent(a))>=0);a--);if(a<1)return null;var u=n.getLineMaxColumn(a),l=Bc.getEnterAction(n,new sn(a,u,a,u));l&&(r=l.indentation,(o=l.enterAction)&&(r+=o.appendText))}return o&&(o===xc.Indent&&(r=e.shiftIndent(t,r)),o===xc.Outdent&&(r=e.unshiftIndent(t,r)),r=t.normalizeIndentation(r)),r||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",r=n.getStartPosition();if(e.insertSpaces)for(var s=Lh.visibleColumnFromColumn2(e,t,r),a=e.tabSize,u=a-s%a,l=0;l=0?Math.max(o.endColumn,_+1):n.getLineMaxColumn(o.endLineNumber)),i)return new xh(o,b+t.normalizeIndentation(g.afterEnter),!0);var M=0;return v<=_+1&&(t.insertSpaces||(y=Math.ceil(y/t.tabSize)),M=Math.min(y+1-t.normalizeIndentation(g.afterEnter).length-1,0)),new Dh(o,b+t.normalizeIndentation(g.afterEnter),0,M,!0)}return e._typeCommand(o,"\n"+t.normalizeIndentation(m),i)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i1){var l=Dd(e.wordSeparators),c=u.charCodeAt(a.column-2);if(0===l.get(c))return!1}var d=u.charAt(a.column-1);if(d){var h=e.autoClosingPairsOpen[i]===i,p=!1;for(var g in e.autoClosingPairsClose)if((h||e.autoClosingPairsOpen[g]!==g)&&d===g){p=!0;break}if(!p&&!/\s/.test(d))return!1}if(!t.isCheapToTokenize(a.lineNumber))return!1;t.forceTokenization(a.lineNumber);var f=t.getLineTokens(a.lineNumber),m=!1;try{m=Bc.shouldAutoClosePair(i,f,a.column)}catch(e){xt(e)}if(!m)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n1)return;var a=new sn(r.lineNumber,r.column,r.lineNumber,r.column);this.emitCursorRevealRange(a,t,n,i)},t.prototype.emitCursorRevealRange=function(e,t,n,i){try{this._beginEmit().emit(new Yh(e,t,n,i))}finally{this._endEmit()}},t.prototype.trigger=function(e,t,n){var i=Yn;if(t!==i.CompositionStart)if(t!==i.CompositionEnd){if(!this._configuration.editor.readOnly){var o=new Jh(this._model,this),r=mh.NotSet;this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:r=mh.Paste,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:r=mh.Undo,this._interpretCommandResult(this._model.undo());break;case i.Redo:r=mh.Redo,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n)}}catch(e){xt(e)}this._isHandling=!1,this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(0,0,!0,0)}}else this._isDoingComposition=!1;else this._isDoingComposition=!0},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Ph.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,i=t.length;n0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,function(n){for(var i=[],o=0;o0?(i[n].sort(s),a[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return e.trackedRangesDirection[n]===tn.LTR?new ln(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new ln(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):a[n]=e.selectionsBefore[n]};for(o=0;oo.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s0&&n--}}return t},e}();function ep(e,t,n,i,o,r){for(var s="

",a=i,u=0,l=0,c=t.getCount();l0;)h+=" ",g--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="\ufffd";break;case 13:h+="​";break;default:h+=String.fromCharCode(p)}}if(s+=''+h+"",d>o||a>=o)break}}return s+"
"}var tp=function(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i},np=function(e,t,n,i){this.content=e,this.minColumn=t,this.maxColumn=n,this.tokens=i},ip=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},op=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=null,this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new rn(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new rn(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new sn(s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new function(e,t){this.range=e,this.options=t}(r,o),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=!0;return(t=(t=t&&null!==this._cachedModelDecorationsResolver)&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=Cd(e),t=Cd(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Cd(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t,n,i,o=0,r=this.values.length-1;o<=r;)if(e<(i=(n=this.prefixSum[t=o+(r-o)/2|0])-this.values[t]))r=t-1;else{if(!(e>=n))break;o=t+1}return new function(e,t){this.index=e,this.remainder=t}(t,e-i)},e}(),sp=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new rp(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-o)/d+(i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,r=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=i=o=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,r+1/3),i=e._hue2rgb(c,l,r),o=e._hue2rgb(c,l,r-1/3)}return new up(Math.round(255*n),Math.round(255*i),Math.round(255*o),u)},e}(),cp=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=ap(Math.max(Math.min(1,t),0),3),this.v=ap(Math.max(Math.min(1,n),0),3),this.a=ap(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,o=t.b/255,r=Math.max(n,i,o),s=r-Math.min(n,i,o),a=0===r?0:s/r;return new e(Math.round(60*(0===s?0:r===n?((i-o)/s%6+6)%6:r===i?(o-n)/s+2:(n-i)/s+4)),a,r,t.a)},e.toRGBA=function(e){var t=e.h,n=e.v,i=e.a,o=n*e.s,r=o*(1-Math.abs(t/60%2-1)),s=n-o,a=[0,0,0],u=a[0],l=a[1],c=a[2];return t<60?(u=o,l=r):t<120?(u=r,l=o):t<180?(l=o,c=r):t<240?(l=r,c=o):t<300?(u=r,c=o):t<360&&(u=o,c=r),u=Math.round(255*(u+s)),l=Math.round(255*(l+s)),c=Math.round(255*(c+s)),new up(u,l,c,i)},e}(),dp=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof up)this.rgba=e;else if(e instanceof lp)this._hsla=e,this.rgba=lp.toRGBA(e);else{if(!(e instanceof cp))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=cp.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:lp.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:cp.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&up.equals(this.rgba,e.rgba)&&lp.equals(this.hsla,e.hsla)&&cp.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return ap(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()=s&&d<=a));o[c]=h.getViewLineCount(),this.lines[c]=h}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new sp(o)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map(function(e){return t.model.validateRange(e)}).sort(sn.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;sr+1?(i.push(new sn(o,1,r,1)),o=u.startLineNumber,r=u.endLineNumber):u.endLineNumber>r&&(r=u.endLineNumber)}return i.push(new sn(o,1,r,1)),i},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(sn.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r=u&&p<=l?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),g=!0):(h=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),g=!0)),g){var f=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,f)}}return h||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new Bh(i,o)},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new rn(t,1),a=0;aa?(g=(p=1+(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1))+(o-a)-1,u=!0):ot?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=n.lineNumber-1,a=i.lineNumber-1,u=null,l=s;l<=a;l++){var c=this.lines[l];if(c.isVisible()){var d=0;if(l===s){var h=c.getViewLineNumberOfModelPosition(0,n.column);d=c.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(l+1))-h+1}else h=c.getViewLineNumberOfModelPosition(0,1),d=c.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(l+1))-h+1;r.push(d),null===u&&(u=new rn(l+1,0))}else null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,l)),u=null)}null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,i.lineNumber)),u=null);for(var p=t-e+1,g=new Array(p),f=0,m=0,y=o.length;mt&&(p=!0,h=t-o+1),c.getViewLinesData(this.model,u+1,d,d+h,o-e,n,a),o+=h,p)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),u=s.getViewLineMaxColumn(this.model,o+1,r);tu&&(t=u);var l=s.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new rn(o+1,l)).equals(n)?new rn(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=this.lines[i].getModelColumnOfViewPosition(n.remainder,t);return this.model.validatePosition(new rn(i+1,o))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new rn(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;r>0&&!this.lines[r].isVisible();)r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new rn(1,1);var a=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return s?this.lines[r].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(a,o)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new _p,r=0,s=i.length;r0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(r=this.wrappedIndent+r);var s=n>0?this.wrappedIndentLength+1:1,a=r.length+1,u=0;n>0&&(u=this.wrappedIndentLength);var l=e.getLineTokens(t);return new np(r,s,a,l.sliceAndInflate(i,o,u))},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a0&&(n0&&(o+=this.wrappedIndentLength),new rn(e+i,o)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();function yp(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?gp.INSTANCE:fp.INSTANCE:new mp(a,s)}var vp=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),bp=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new vp(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new Bh(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new Vh(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new Hh(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o=t)return void(n>r&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},e}();function Mp(e,t){if(!e._resolvedColor){var n=t.type;e._resolvedColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n||(n=dp.transparent),n.toString()}("dark"===n?e.darkColor:"light"===n?e.color:e.hcColor,t)}return e._resolvedColor}var wp,Cp,Lp=function(){function e(t,n,i,o){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(o)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e}(),Np=function(){function e(){var e=this;this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Pl.onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=Pl.getColorMap();if(!e)return this._colors=[null],void(this._backgroundIsLight=!0);this._colors=[null];for(var t=1;t=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),Ip=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;it.width||i+4>t.height)console.warn("bad render request outside image data");else{var u,l=a?this.x2charDataLight:this.x2charData,c=e._getChIndex(o),d=4*t.width,h=s.r,p=s.g,g=s.b,f=r.r-h,m=r.g-p,y=r.b-g,v=t.data,b=4*c*2,_=i*d+4*n;v[_+0]=h+f*(u=l[b]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+1]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+2]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+3]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+4]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+5]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+6]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+7]/255),v[_+5]=p+m*u,v[_+6]=g+y*u}},e.prototype.x1RenderChar=function(t,n,i,o,r,s,a){if(n+1>t.width||i+2>t.height)console.warn("bad render request outside image data");else{var u,l=a?this.x1charDataLight:this.x1charData,c=e._getChIndex(o),d=4*t.width,h=s.r,p=s.g,g=s.b,f=r.r-h,m=r.g-p,y=r.b-g,v=t.data,b=2*c*1,_=i*d+4*n;v[_+0]=h+f*(u=l[b]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+1]/255),v[_+1]=p+m*u,v[_+2]=g+y*u}},e.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,g=n*s+4*t;p[g+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,g=n*s+4*t;p[g+0]=c,p[g+1]=d,p[g+2]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h}},e}(),Sp=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}(Id),xp=function(){function e(e,t,n){this.classifier=new Sp(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,n,i,o,r){if(-1===i)return null;n=+n,i=+i,o=+o;var s=0,a="",u=-1;if((r=+r)!==sd.None&&-1!==(u=Zi(t))){a=t.substring(0,u);for(var l=0;li&&(a="",s=0)}var c=this.classifier,d=0,h=[],p=0,g=0,f=-1,m=0,y=-1,v=0,b=t.length;for(l=0;l0){var C=t.charCodeAt(l-1);1!==c.get(C)&&(f=l,m=s)}var L=1;if(mo(_)&&(L=o),(g=e.nextVisibleColumn(g,n,M,L))>i&&0!==l){var N=void 0,I=void 0;-1!==f&&m<=i?(N=f,I=m):-1!==y&&v<=i?(N=y,I=v):(N=l,I=s),h[p++]=N-d,d=N,g=e.nextVisibleColumn(I,n,M,L),f=-1,m=0,y=-1,v=0}if(-1!==f&&(m=e.nextVisibleColumn(m,n,M,L)),-1!==y&&(v=e.nextVisibleColumn(v,n,M,L)),2===w&&(r===sd.None||l>=u)&&(f=l+1,m=s),4===w&&l>>1;t===e[s]?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){t|=0;var i=!1;return i=this.changeWhitespaceHeight(e|=0,n|=0)||i,this.changeWhitespaceAfterLineNumber(e,t)||i},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).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){n|=0;var i=(t|=0).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){var t=(e|=0).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){this._heights.splice(e|=0,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.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;nt&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n=t.length||t[o+1]>=e)return o;n=o+1|0}else i=o-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){var t=this._findLastWhitespaceBeforeLineNumber(e|=0)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this._whitespaces.getCount()>0},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;i=s+n)i=r+1;else{if(e>=s)return r;o=r}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e|=0),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this._whitespaces.getCount();-1===u?(u=l,i=a+1,n=0):(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/o)*o);for(var p=[],g=e+(t-e)/2,f=-1,m=r;m<=a;m++){for(-1===f&&(c<=g&&gg)&&(f=m),c+=o,p[m-r]=d,d+=o;i===m;)d+=n,c+=n,++u>=l?i=a+1:(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===f&&(f=a);var y=0|this.getVerticalOffsetForLineNumber(a),v=r,b=a;return vt&&b--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e|=0);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,i=0,o=this._whitespaces.getCount()-1;if(o<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(o)+this._whitespaces.getHeightForWhitespaceIndex(o))return-1;for(;i=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))i=t+1;else{if(e>=n)return t;o=t}return i},e.prototype.getWhitespaceAtVerticalOffset=function(e){var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0),i=this._whitespaces.getCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),kp=function(e){function t(t,n,i){var o=e.call(this)||this;return o._configuration=t,o._linesLayout=new Ep(n,o._configuration.editor.lineHeight),o.scrollable=o._register(new ed(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e),this._updateHeight()},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t),this._updateHeight()},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t),this._updateHeight()},t.prototype._getHorizontalScrollbarHeight=function(e){return this._configuration.editor.viewInfo.scrollbar.horizontal===Uc.Hidden?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return t+=this._configuration.editor.viewInfo.scrollBeyondLastLine?e.height-this._configuration.editor.lineHeight:this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new tp(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new tp(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,n){return this._configuration.editor.wrappingInfo.isViewportWrapping?Math.max(e,n):Math.max(e+t.LINES_HORIZONTAL_EXTRA_PX,n)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n){return this._linesLayout.insertWhitespace(e,t,n)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t.LINES_HORIZONTAL_EXTRA_PX=30,t}(Ct),jp=!0,Ap=function(e){function t(t,n,i,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=n,r.model=i,r.hasFocus=!1,r.viewportStartLineTrackedRange=null,r.viewportStartLineTop=0,jp&&r.model.isTooLargeForTokenization())r.lines=new bp(r.model);else{var s=r.configuration.editor,a=new xp(s.wrappingInfo.wordWrapBreakBeforeCharacters,s.wrappingInfo.wordWrapBreakAfterCharacters,s.wrappingInfo.wordWrapBreakObtrusiveCharacters);r.lines=new pp(r.model,a,r.model.getOptions().tabSize,s.wrappingInfo.wrappingColumn,s.fontInfo.typicalFullwidthCharacterWidth/s.fontInfo.typicalHalfwidthCharacterWidth,s.wrappingInfo.wrappingIndent)}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new kp(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll(function(e){try{r._beginEmit().emit(new Zh(e))}finally{r._endEmit()}})),r._centeredViewLine=-1,r.decorations=new op(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange(function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e)}finally{r._endEmit()}})),r._register(Np.getInstance().onDidChange(function(){try{r._beginEmit().emit(new Gh)}finally{r._endEmit()}})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,Au.NeverGrowsWhenTypingAtEdges)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=this.getCenteredRangeInViewport(),i=!1,o=this.configuration.editor;if(this.lines.setWrappingSettings(o.wrappingInfo.wrappingIndent,o.wrappingInfo.wrappingColumn,o.fontInfo.typicalFullwidthCharacterWidth/o.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new zh),e.emit(new Fh),e.emit(new Rh),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new Rh)),e.emit(new function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo}(t)),this.viewLayout.onConfigurationChanged(t),i&&n){var r=this.coordinatesConverter.convertModelRangeToViewRange(n);e.emit(new Yh(r,1,!1,1))}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=0,u=r.length;a=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var f=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),m=e.viewLayout.getVerticalOffsetForLineNumber(f.lineNumber);e.viewLayout.deltaScrollNow(0,m-e.viewportStartLineTop)}}})),this._register(this.model.onDidChangeTokens(function(t){for(var n=[],i=0,o=t.ranges.length;ia||(r0&&r[a-1]===r[a]||(s+=this.model.getLineContent(r[a])+i);return s}var u=[];for(a=0;a'+this._getHTMLToCopy(n,r)+""},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",u=n;u<=o;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?i-1:0,h=u===o?r-1:c.length;a+=""===c?"
":ep(c,l.inflate(),t,d,h,s)}return a},t.prototype._getColorMap=function(){for(var e=Pl.getColorMap(),t=[null],n=1,i=e.length;n1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.isFocused()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.isFocused())},t}(Ct),Vp=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._langId=wp.languageId.bindTo(n),i._hasCompletionItemProvider=wp.hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=wp.hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=wp.hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=wp.hasDefinitionProvider.bindTo(n),i._hasImplementationProvider=wp.hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=wp.hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=wp.hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=wp.hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=wp.hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=wp.hasReferenceProvider.bindTo(n),i._hasRenameProvider=wp.hasRenameProvider.bindTo(n),i._hasDocumentFormattingProvider=wp.hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=wp.hasDocumentSelectionFormattingProvider.bindTo(n),i._hasSignatureHelpProvider=wp.hasSignatureHelpProvider.bindTo(n),i._isInWalkThrough=wp.isInEmbeddedEditor.bindTo(n);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(_l.onDidChange(o)),i._register(Dl.onDidChange(o)),i._register(xl.onDidChange(o)),i._register(Nl.onDidChange(o)),i._register(Il.onDidChange(o)),i._register(Sl.onDidChange(o)),i._register(wl.onDidChange(o)),i._register(Ll.onDidChange(o)),i._register(Cl.onDidChange(o)),i._register(vl.onDidChange(o)),i._register(bl.onDidChange(o)),i._register(Tl.onDidChange(o)),i._register(El.onDidChange(o)),i._register(Ml.onDidChange(o)),o(),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.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()},t.prototype._update=function(){var e=this._editor.getModel();e?(this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(_l.has(e)),this._hasCodeActionsProvider.set(Dl.has(e)),this._hasCodeLensProvider.set(xl.has(e)),this._hasDefinitionProvider.set(Nl.has(e)),this._hasImplementationProvider.set(Il.has(e)),this._hasTypeDefinitionProvider.set(Sl.has(e)),this._hasHoverProvider.set(wl.has(e)),this._hasDocumentHighlightProvider.set(Ll.has(e)),this._hasDocumentSymbolProvider.set(Cl.has(e)),this._hasReferenceProvider.set(vl.has(e)),this._hasRenameProvider.set(bl.has(e)),this._hasSignatureHelpProvider.set(Ml.has(e)),this._hasDocumentFormattingProvider.set(Tl.has(e)||El.has(e)),this._hasDocumentSelectionFormattingProvider.set(El.has(e)),this._isInWalkThrough.set(e.uri.scheme===Bo.walkThroughSnippet)):this.reset()},t}(Ct),Yp=Qn("telemetryService"),Zp=Qn("editorService"),Up=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;nn?n:e}function sg(e,t){return"string"!=typeof e?t:e}var ag,ug=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n){var i=sg(t.fontFamily,vd.fontFamily),o=sg(t.fontWeight,vd.fontWeight),r=og(t.fontSize,vd.fontSize);0===(r=rg(r,0,100))?r=vd.fontSize:r<8&&(r=8);var s=function(e,t){if("number"==typeof e)return Math.round(e);var n=parseInt(e);return isNaN(n)?0:n}(t.lineHeight);0===(s=rg(s,0,150))?s=Math.round(ig*r):s<8&&(s=8);var a=og(t.letterSpacing,0);a=rg(a,-5,20);var u=1+.1*ng.getZoomLevel();return new e({zoomLevel:n,fontFamily:i,fontWeight:o,fontSize:r*=u,lineHeight:s*=u,letterSpacing:a})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e}(),lg=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i}return Object(a.c)(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(ug),cg=this&&this.__extends||(ag=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}ag(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dg=_d,hg=vd,pg=bd,gg=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new zt,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),fg=function(e){function t(t){var n=e.call(this)||this;return n._onDidChange=n._register(new zt),n.onDidChange=n._onDidChange.event,n._rawOptions=Or({},t||{}),n._rawOptions.scrollbar=Or({},n._rawOptions.scrollbar||{}),n._rawOptions.minimap=Or({},n._rawOptions.minimap||{}),n._rawOptions.find=Or({},n._rawOptions.find||{}),n._validatedOptions=fd.validate(n._rawOptions,dg),n.editor=null,n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._register(ng.onDidChangeZoomLevel(function(e){return n._recomputeOptions()})),n._register(gg.onDidChangeTabFocus(function(e){return n._recomputeOptions()})),n}return cg(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)))},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=ug.createFromRawSettings(this._rawOptions,t.zoomLevel),i={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:gg.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return md.createInternalEditorOptions(i,e)},t.prototype.updateOptions=function(e){this._rawOptions=Or(this._rawOptions,e||{}),this._validatedOptions=fd.validate(this._rawOptions,dg),this._recomputeOptions()},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},t}(Ct),mg=Fr.as(Vr.Configuration),yg={id:"editor",order:5,type:"object",title:Yo("editorConfigurationTitle","Editor"),overridable:!0,scope:Br.RESOURCE,properties:{"editor.fontFamily":{type:"string",default:hg.fontFamily,description:Yo("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:hg.fontWeight,description:Yo("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:hg.fontSize,description:Yo("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:hg.lineHeight,description:Yo("lineHeight","Controls the line height. Use 0 to compute the lineHeight from the fontSize.")},"editor.letterSpacing":{type:"number",default:hg.letterSpacing,description:Yo("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[Yo("lineNumbers.off","Line numbers are not rendered."),Yo("lineNumbers.on","Line numbers are rendered as absolute number."),Yo("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),Yo("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:Yo("lineNumbers","Controls the display of line numbers. Possible values are 'on', 'off', 'relative' and 'interval'.")},"editor.rulers":{type:"array",items:{type:"number"},default:dg.viewInfo.rulers,description:Yo("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty")},"editor.wordSeparators":{type:"string",default:dg.wordSeparators,description:Yo("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations")},"editor.tabSize":{type:"number",default:pg.tabSize,minimum:1,description:Yo("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `editor.detectIndentation` is on."),errorMessage:Yo("tabSize.errorMessage","Expected 'number'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.")},"editor.insertSpaces":{type:"boolean",default:pg.insertSpaces,description:Yo("insertSpaces","Insert spaces when pressing Tab. This setting is overridden based on the file contents when `editor.detectIndentation` is on."),errorMessage:Yo("insertSpaces.errorMessage","Expected 'boolean'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.")},"editor.detectIndentation":{type:"boolean",default:pg.detectIndentation,description:Yo("detectIndentation","When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:dg.viewInfo.roundedSelection,description:Yo("roundedSelection","Controls if selections have rounded corners")},"editor.scrollBeyondLastLine":{type:"boolean",default:dg.viewInfo.scrollBeyondLastLine,description:Yo("scrollBeyondLastLine","Controls if the editor will scroll beyond the last line")},"editor.smoothScrolling":{type:"boolean",default:dg.viewInfo.smoothScrolling,description:Yo("smoothScrolling","Controls if the editor will scroll using an animation")},"editor.minimap.enabled":{type:"boolean",default:dg.viewInfo.minimap.enabled,description:Yo("minimap.enabled","Controls if the minimap is shown")},"editor.minimap.side":{type:"string",enum:["left","right"],default:dg.viewInfo.minimap.side,description:Yo("minimap.side","Controls the side where to render the minimap. Possible values are 'right' and 'left'")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:dg.viewInfo.minimap.showSlider,description:Yo("minimap.showSlider","Controls whether the minimap slider is automatically hidden. Possible values are 'always' and 'mouseover'")},"editor.minimap.renderCharacters":{type:"boolean",default:dg.viewInfo.minimap.renderCharacters,description:Yo("minimap.renderCharacters","Render the actual characters on a line (as opposed to color blocks)")},"editor.minimap.maxColumn":{type:"number",default:dg.viewInfo.minimap.maxColumn,description:Yo("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:dg.contribInfo.find.seedSearchStringFromSelection,description:Yo("find.seedSearchStringFromSelection","Controls if we seed the search string in Find Widget from editor selection")},"editor.find.autoFindInSelection":{type:"boolean",default:dg.contribInfo.find.autoFindInSelection,description:Yo("find.autoFindInSelection","Controls if Find in Selection flag is turned on when multiple characters or lines of text are selected in the editor")},"editor.find.globalFindClipboard":{type:"boolean",default:dg.contribInfo.find.globalFindClipboard,description:Yo("find.globalFindClipboard","Controls if the Find Widget should read or modify the shared find clipboard on macOS"),included:mn.d},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],enumDescriptions:[Yo("wordWrap.off","Lines will never wrap."),Yo("wordWrap.on","Lines will wrap at the viewport width."),Yo({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `editor.wordWrapColumn`."),Yo({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`.")],default:dg.wordWrap,description:Yo({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap. Can be:\n - 'off' (disable wrapping),\n - 'on' (viewport wrapping),\n - 'wordWrapColumn' (wrap at `editor.wordWrapColumn`) or\n - 'bounded' (wrap at minimum of viewport and `editor.wordWrapColumn`).")},"editor.wordWrapColumn":{type:"integer",default:dg.wordWrapColumn,minimum:1,description:Yo({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `editor.wordWrap` is 'wordWrapColumn' or 'bounded'.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent"],default:"same",description:Yo("wrappingIndent","Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:dg.viewInfo.scrollbar.mouseWheelScrollSensitivity,description:Yo("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Yo("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Yo("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",description:Yo({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. `ctrlCmd` maps to `Control` on Windows and Linux and to `Command` on macOS. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:Yo("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:Yo("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:Yo("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:dg.contribInfo.quickSuggestions,description:Yo("quickSuggestions","Controls if suggestions should automatically show up while typing")},"editor.quickSuggestionsDelay":{type:"integer",default:dg.contribInfo.quickSuggestionsDelay,minimum:0,description:Yo("quickSuggestionsDelay","Controls the delay in ms after which quick suggestions will show up")},"editor.parameterHints":{type:"boolean",default:dg.contribInfo.parameterHints,description:Yo("parameterHints","Enables pop-up that shows parameter documentation and type information as you type")},"editor.autoClosingBrackets":{type:"boolean",default:dg.autoClosingBrackets,description:Yo("autoClosingBrackets","Controls if the editor should automatically close brackets after opening them")},"editor.formatOnType":{type:"boolean",default:dg.contribInfo.formatOnType,description:Yo("formatOnType","Controls if the editor should automatically format the line after typing")},"editor.formatOnPaste":{type:"boolean",default:dg.contribInfo.formatOnPaste,description:Yo("formatOnPaste","Controls if the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:dg.autoIndent,description:Yo("autoIndent","Controls if the editor should automatically adjust the indentation when users type, paste or move lines. Indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:dg.contribInfo.suggestOnTriggerCharacters,description:Yo("suggestOnTriggerCharacters","Controls if suggestions should automatically show up when typing trigger characters")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:dg.contribInfo.acceptSuggestionOnEnter,description:Yo("acceptSuggestionOnEnter","Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:dg.contribInfo.acceptSuggestionOnCommitCharacter,description:Yo("acceptSuggestionOnCommitCharacter","Controls if suggestions should be accepted on commit characters. For instance in JavaScript the semi-colon (';') can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[Yo("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),Yo("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),Yo("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),Yo("snippetSuggestions.none","Do not show snippet suggestions.")],default:dg.contribInfo.snippetSuggestions,description:Yo("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:dg.emptySelectionClipboard,description:Yo("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.wordBasedSuggestions":{type:"boolean",default:dg.contribInfo.wordBasedSuggestions,description:Yo("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],enumDescriptions:[Yo("suggestSelection.first","Always select the first suggestion."),Yo("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),Yo("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:Yo("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,description:Yo("suggestFontSize","Font size for the suggest widget")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,description:Yo("suggestLineHeight","Line height for the suggest widget")},"editor.selectionHighlight":{type:"boolean",default:dg.contribInfo.selectionHighlight,description:Yo("selectionHighlight","Controls whether the editor should highlight similar matches to the selection")},"editor.occurrencesHighlight":{type:"boolean",default:dg.contribInfo.occurrencesHighlight,description:Yo("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences")},"editor.overviewRulerLanes":{type:"integer",default:3,description:Yo("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler")},"editor.overviewRulerBorder":{type:"boolean",default:dg.viewInfo.overviewRulerBorder,description:Yo("overviewRulerBorder","Controls if a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:function(e){if(e===ad.Blink)return"blink";if(e===ad.Expand)return"expand";if(e===ad.Phase)return"phase";if(e===ad.Smooth)return"smooth";if(e===ad.Solid)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}(dg.viewInfo.cursorBlinking),description:Yo("cursorBlinking","Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'")},"editor.mouseWheelZoom":{type:"boolean",default:dg.viewInfo.mouseWheelZoom,description:Yo("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding Ctrl")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:function(e){if(e===ud.Line)return"line";if(e===ud.Block)return"block";if(e===ud.Underline)return"underline";if(e===ud.LineThin)return"line-thin";if(e===ud.BlockOutline)return"block-outline";if(e===ud.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}(dg.viewInfo.cursorStyle),description:Yo("cursorStyle","Controls the cursor style, accepted values are 'block', 'block-outline', 'line', 'line-thin', 'underline' and 'underline-thin'")},"editor.cursorWidth":{type:"integer",default:dg.viewInfo.cursorWidth,description:Yo("cursorWidth","Controls the width of the cursor when editor.cursorStyle is set to 'line'")},"editor.fontLigatures":{type:"boolean",default:dg.viewInfo.fontLigatures,description:Yo("fontLigatures","Enables font ligatures")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:dg.viewInfo.hideCursorInOverviewRuler,description:Yo("hideCursorInOverviewRuler","Controls if the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],default:dg.viewInfo.renderWhitespace,description:Yo("renderWhitespace","Controls how the editor should render whitespace characters, possibilities are 'none', 'boundary', and 'all'. The 'boundary' option does not render single spaces between words.")},"editor.renderControlCharacters":{type:"boolean",default:dg.viewInfo.renderControlCharacters,description:Yo("renderControlCharacters","Controls whether the editor should render control characters")},"editor.renderIndentGuides":{type:"boolean",default:dg.viewInfo.renderIndentGuides,description:Yo("renderIndentGuides","Controls whether the editor should render indent guides")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:dg.viewInfo.renderLineHighlight,description:Yo("renderLineHighlight","Controls how the editor should render the current line highlight, possibilities are 'none', 'gutter', 'line', and 'all'.")},"editor.codeLens":{type:"boolean",default:dg.contribInfo.codeLens,description:Yo("codeLens","Controls if the editor shows code lenses")},"editor.folding":{type:"boolean",default:dg.contribInfo.folding,description:Yo("folding","Controls whether the editor has code folding enabled")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],enumDescriptions:[Yo("foldingStrategyAuto","If available, use a langauge specific folding strategy, otherwise falls back to the indentation based strategy."),Yo("foldingStrategyIndentation","Always use the indentation based folding strategy")],default:dg.contribInfo.foldingStrategy,description:Yo("foldingStrategy","Controls the way folding ranges are computed. 'auto' picks uses a language specific folding strategy, if available. 'indentation' forces that the indentation based folding strategy is used.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:dg.contribInfo.showFoldingControls,description:Yo("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:dg.contribInfo.matchBrackets,description:Yo("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:dg.viewInfo.glyphMargin,description:Yo("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:dg.useTabStops,description:Yo("useTabStops","Inserting and deleting whitespace follows tab stops")},"editor.trimAutoWhitespace":{type:"boolean",default:pg.trimAutoWhitespace,description:Yo("trimAutoWhitespace","Remove trailing auto inserted whitespace")},"editor.stablePeek":{type:"boolean",default:!1,description:Yo("stablePeek","Keep peek editors open even when double clicking their content or when hitting Escape.")},"editor.dragAndDrop":{type:"boolean",default:dg.dragAndDrop,description:Yo("dragAndDrop","Controls if the editor should allow to move selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[Yo("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),Yo("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),Yo("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:dg.accessibilitySupport,description:Yo("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.links":{type:"boolean",default:dg.contribInfo.links,description:Yo("links","Controls whether the editor should detect links and make them clickable")},"editor.colorDecorators":{type:"boolean",default:dg.contribInfo.colorDecorators,description:Yo("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:dg.contribInfo.lightbulbEnabled,description:Yo("codeActions","Enables the code action lightbulb")},"editor.selectionClipboard":{type:"boolean",default:dg.contribInfo.selectionClipboard,description:Yo("selectionClipboard","Controls if the Linux primary clipboard should be supported."),included:mn.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:Yo("sideBySide","Controls if the diff editor shows the diff side by side or inline")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:Yo("ignoreTrimWhitespace","Controls if the diff editor shows changes in leading or trailing whitespace as diffs")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:Yo("renderIndicators","Controls if the diff editor shows +/- indicators for added/removed changes")}}};mg.registerConfiguration(yg);var vg,bg=function(e){function t(t,n){var i=e.call(this)||this;return i.referenceDomElement=t,i.changeCallback=n,i.measureReferenceDomElementToken=-1,i.width=-1,i.height=-1,i.measureReferenceDomElement(!1),i}return Object(a.c)(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(function(){return e.measureReferenceDomElement(!0)},100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())},t}(Ct),_g=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}(),Mg=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.fontFamily,n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.fontFamily,i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.fontFamily,o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests.length;s.001){y=!1;break}}var w=Ms.INSTANCE.getTimeSinceLastZoomLevelChanged()>2e3;return new lg({zoomLevel:ws(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,spaceWidth:r.width,maxDigitWidth:m},w)},t.INSTANCE=new t,t}(Ct),Ig=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this,t)||this;return i._elementSizeObserver=i._register(new bg(n,function(){return i._onReferenceDomElementSizeChanged()})),i._register(Ng.INSTANCE.onDidChange(function(){return i._onCSSBasedConfigurationChanged()})),i._validatedOptions.automaticLayout&&i._elementSizeObserver.startObserving(),i._register(Cs(function(e){return i._recomputeOptions()})),i._register(Ms.INSTANCE.onDidChangeAccessibilitySupport(function(){return i._recomputeOptions()})),i._recomputeOptions(),i}return Object(a.c)(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",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.fontFamily),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return Is?e+="ie ":Ds?e+="ff ":Ss?e+="edge ":ks&&(e+="safari "),mn.d&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:Ts||Ds,pixelRatio:Ls(),zoomLevel:ws(),accessibilitySupport:Ms.INSTANCE.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return Ng.INSTANCE.readConfiguration(e)},t}(fg),Sg=function(){function e(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){na(this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto")},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}();function xg(e){return new Sg(e)}var Dg=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return Object(a.c)(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.prototype.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd)return t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var i=e.value,o=e.selectionStart,r=e.selectionEnd,s=t.value,a=t.selectionStart,u=t.selectionEnd,l=io(i.substring(r),s.substring(u));s=s.substring(0,s.length-l);var c=(i=i.substring(0,i.length-l)).substring(0,o),d=no(c,s.substring(0,a));if(s=s.substring(d),i=i.substring(d),a-=d,o-=d,u-=d,r-=d,n&&a===u&&i.length>0){var h=null;if(a===s.length?ji(s,i)&&(h=s.substring(i.length)):Ai(s,i)&&(h=s.substring(0,s.length-i.length)),null!==h&&h.length>0&&(/\uFE0F/.test(h)||ho(h)))return{text:h,replaceCharCnt:0}}return a===u?i===s&&0===o&&r===i.length&&a===s.length&&-1===s.indexOf("\n")&&fo(s)?{text:"",replaceCharCnt:0}:{text:s,replaceCharCnt:c.length-d}:{text:s,replaceCharCnt:r-o}},e.EMPTY=new e("",0,0,null,null),e}()),Eg=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE;return new sn(n+1,1,n+e._LINES_PER_PAGE+1,1)},e.fromEditorSelection=function(t,n,i,o){var r=e._getPageOfLine(i.startLineNumber),s=e._getRangeForPage(r),a=e._getPageOfLine(i.endLineNumber),u=e._getRangeForPage(a),l=s.intersectRanges(new sn(1,1,i.startLineNumber,i.startColumn)),c=n.getValueInRange(l,Du.LF),d=n.getLineCount(),h=n.getLineMaxColumn(d),p=u.intersectRanges(new sn(i.endLineNumber,i.endColumn,d,h)),g=n.getValueInRange(p,Du.LF),f=null;if(r===a||r+1===a)f=n.getValueInRange(i,Du.LF);else{var m=s.intersectRanges(i),y=u.intersectRanges(i);f=n.getValueInRange(m,Du.LF)+String.fromCharCode(8230)+n.getValueInRange(y,Du.LF)}return o&&(c.length>500&&(c=c.substring(c.length-500,c.length)),g.length>500&&(g=g.substring(0,500)),f.length>1e3&&(f=f.substring(0,500)+String.fromCharCode(8230)+f.substring(f.length-500,f.length))),new Tg(c+f+g,c.length,c.length+f.length,new rn(i.startLineNumber,i.startColumn),new rn(i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}(),kg={forceCopyWithSyntaxHighlighting:!1},jg=function(e){function t(t,n){var i=e.call(this)||this;i._onFocus=i._register(new zt),i.onFocus=i._onFocus.event,i._onBlur=i._register(new zt),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new zt),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new zt),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new zt),i.onCut=i._onCut.event,i._onPaste=i._register(new zt),i.onPaste=i._onPaste.event,i._onType=i._register(new zt),i.onType=i._onType.event,i._onCompositionStart=i._register(new zt),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new zt),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new zt),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new zt),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new Og(n)),i._asyncTriggerCut=i._register(new _s(function(){return i._onCut.fire()},0)),i._textAreaState=Tg.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(ra(n.domNode,"keydown",function(e){i._isDoingComposition&&109===e.keyCode&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),i._onKeyDown.fire(e)})),i._register(ra(n.domNode,"keyup",function(e){i._onKeyUp.fire(e)})),i._register(oa(n.domNode,"compositionstart",function(e){i._isDoingComposition||(i._isDoingComposition=!0,xs||i._setAndWriteTextAreaState("compositionstart",Tg.EMPTY),i._onCompositionStart.fire())}));var o=function(e){var t=i._textAreaState,n=i._textAreaState.readFromTextArea(i._textArea);return[n,Tg.deduceInput(t,n,e)]},r=function(e){var t=i._textAreaState,n=Tg.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},s=function(e){return!(!xs||"ja"!==e)||!(!Is||0!==e.indexOf("zh-Han"))};i._register(oa(n.domNode,"compositionupdate",function(e){if(!As){if(s(e.locale)){var t=o(!1),n=t[1];return i._textAreaState=t[0],i._onType.fire(n),void i._onCompositionUpdate.fire(e)}var a=r(e.data),u=a[1];i._textAreaState=a[0],i._onType.fire(u),i._onCompositionUpdate.fire(e)}})),i._register(oa(n.domNode,"compositionend",function(e){if(s(e.locale)){var t=o(!1),n=t[1];i._textAreaState=t[0],i._onType.fire(n)}else{var a=r(e.data);n=a[1],i._textAreaState=a[0],i._onType.fire(n)}(xs||Es)&&(i._textAreaState=i._textAreaState.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())})),i._register(oa(n.domNode,"input",function(){if(i._textArea.setIgnoreSelectionChangeTime("received input event"),i._isDoingComposition){if(As){var e=r(i._textArea.getValue()),t=e[1];i._textAreaState=e[0],i._onType.fire(t),i._onCompositionUpdate.fire({data:t.text})}}else{var n=o(mn.d),s=n[0],a=n[1];0===a.replaceCharCnt&&1===a.text.length&&so(a.text.charCodeAt(0))||(i._textAreaState=s,0===i._nextCommand?""!==a.text&&i._onType.fire(a):(""!==a.text&&i._onPaste.fire({text:a.text}),i._nextCommand=0))}})),i._register(oa(n.domNode,"cut",function(e){i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(e),i._asyncTriggerCut.schedule()})),i._register(oa(n.domNode,"copy",function(e){i._ensureClipboardGetsEditorSelection(e)})),i._register(oa(n.domNode,"paste",function(e){if(i._textArea.setIgnoreSelectionChangeTime("received paste event"),Ag.canUseTextData(e)){var t=Ag.getTextData(e);""!==t&&i._onPaste.fire({text:t})}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",Tg.EMPTY),i._nextCommand=1})),i._register(oa(n.domNode,"focus",function(){return i._setHasFocus(!0)})),i._register(oa(n.domNode,"blur",function(){return i._setHasFocus(!1)}));var a=0;return i._register(oa(document,"selectionchange",function(e){if(i._hasFocus&&!i._isDoingComposition&&Es&&mn.g){var t=Date.now(),n=t-a;if(a=t,!(n<5)){var o=t-i._textArea.getIgnoreSelectionChangeTime();if(i._textArea.resetSelectionChangeTime(),!(o<100)&&i._textAreaState.selectionStartPosition&&i._textAreaState.selectionEndPosition){var r=i._textArea.getValue();if(i._textAreaState.value===r){var s=i._textArea.getSelectionStart(),u=i._textArea.getSelectionEnd();if(i._textAreaState.selectionStart!==s||i._textAreaState.selectionEnd!==u){var l=i._textAreaState.deduceEditorPosition(s),c=i._host.deduceModelPosition(l[0],l[1],l[2]),d=i._textAreaState.deduceEditorPosition(u),h=i._host.deduceModelPosition(d[0],d[1],d[2]),p=new ln(c.lineNumber,c.column,h.lineNumber,h.column);i._onSelectionChangeRequest.fire(p)}}}}}})),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._hasFocus&&(Ss?this._setAndWriteTextAreaState("focusgain",Tg.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(Ag.canUseTextData(e)){var n=null;!xs&&(t.length<65536||kg.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),Ag.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",Tg.selectedText(t))},t}(Ct),Ag=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),Og=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return Object(a.c)(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i;if(o&&i.selectionStart===t&&i.selectionEnd===n)Ds&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(Ds&&window.parent!==window&&i.focus());try{var r=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}(i,r)}catch(e){}}},t}(Ct),Pg=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t}(Dg),Rg=function(){function e(){}return e.write=function(e,t){e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){for(var n=[],i=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;for(var o=new Uint8Array(i),r=0;r'+n+"":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='
',r=[],s=n;s<=i;s++){var a=s-n,u=this._getLineRenderLineNumber(s);r[a]=u?o+u+"
":""}this._renderResult=r}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(qm);wm(function(e,t){var n=e.getColor(Em);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(jm);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var ey,ty=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),ny=xs||Ds,iy=function(){function e(){this._lastState=null}return e.prototype.set=function(e){this._lastState=e},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null)},e.INSTANCE=new e,e}(),oy=function(e){function t(t,n,i){var o=e.call(this,t)||this;o._primaryCursorVisibleRange=null,o._viewController=n,o._viewHelper=i;var r=o._context.configuration.editor;o._accessibilitySupport=r.accessibilitySupport,o._contentLeft=r.layoutInfo.contentLeft,o._contentWidth=r.layoutInfo.contentWidth,o._contentHeight=r.layoutInfo.contentHeight,o._scrollLeft=0,o._scrollTop=0,o._fontInfo=r.fontInfo,o._lineHeight=r.lineHeight,o._emptySelectionClipboard=r.emptySelectionClipboard,o._visibleTextArea=null,o._selections=[new ln(1,1,1,1)],o.textArea=xg(document.createElement("textarea")),Rg.write(o.textArea,6),o.textArea.setClassName("inputarea"),o.textArea.setAttribute("wrap","off"),o.textArea.setAttribute("autocorrect","off"),o.textArea.setAttribute("autocapitalize","off"),o.textArea.setAttribute("autocomplete","off"),o.textArea.setAttribute("spellcheck","false"),o.textArea.setAttribute("aria-label",r.viewInfo.ariaLabel),o.textArea.setAttribute("role","textbox"),o.textArea.setAttribute("aria-multiline","true"),o.textArea.setAttribute("aria-haspopup","false"),o.textArea.setAttribute("aria-autocomplete","both"),o.textAreaCover=xg(document.createElement("div")),o.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return o._context.model.getLineCount()},getLineMaxColumn:function(e){return o._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return o._context.model.getValueInRange(e,t)}};return o._textAreaInput=o._register(new jg({getPlainTextToCopy:function(){var e=o._context.model.getPlainTextToCopy(o._selections,o._emptySelectionClipboard),t=o._context.model.getEOL(),n=o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),i=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,s=null;return(n||i)&&(s={lastCopiedValue:Ds?r.replace(/\r\n/g,"\n"):r,isFromEmptySelection:o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),multicursorText:i}),iy.INSTANCE.set(s),r},getHTMLToCopy:function(){return o._context.model.getHTMLToCopy(o._selections,o._emptySelectionClipboard)},getScreenReaderContent:function(e){if(js)return Tg.EMPTY;if(1===o._accessibilitySupport){if(mn.d){var t=o._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=o._getWordBeforePosition(n);if(0===i.length&&(i=o._getCharacterBeforePosition(n)),i.length>0)return new Tg(i,i.length,i.length,n,n)}}return Tg.EMPTY}return Eg.fromEditorSelection(e,s,o._selections[0],0===o._accessibilitySupport)},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}},o.textArea)),o._register(o._textAreaInput.onKeyDown(function(e){o._viewController.emitKeyDown(e)})),o._register(o._textAreaInput.onKeyUp(function(e){o._viewController.emitKeyUp(e)})),o._register(o._textAreaInput.onPaste(function(e){var t=iy.INSTANCE.get(e.text),n=!1,i=null;t&&(n=o._emptySelectionClipboard&&t.isFromEmptySelection,i=t.multicursorText),o._viewController.paste("keyboard",e.text,n,i)})),o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")})),o._register(o._textAreaInput.onType(function(e){e.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):o._viewController.type("keyboard",e.text)})),o._register(o._textAreaInput.onSelectionChangeRequest(function(e){o._viewController.setSelection("keyboard",e)})),o._register(o._textAreaInput.onCompositionStart(function(){var e=o._selections[0].startLineNumber,t=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new Yh(new sn(e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(o._visibleTextArea=new ty(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,ny?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")})),o._register(o._textAreaInput.onCompositionUpdate(function(e){o._visibleTextArea=o._visibleTextArea.setWidth(xs?0:function(e,t){var n,i=document.createElement("canvas").getContext("2d");i.font="normal normal "+(n=t).fontWeight+" "+n.fontSize+"px / "+n.lineHeight+"px "+n.fontFamily;var o=i.measureText(e);return Ds?o.width+2:o.width}(e.data,o._fontInfo)),o._render()})),o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")})),o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Wh(!0))})),o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Wh(!1))})),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Dd(this._context.configuration.editor.wordSeparators),i=e.column,o=0;i>1;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||o>50)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!so(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var t=new rn(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)}},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,ny?0:1,ny?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,o){var r=this.textArea,s=this.textAreaCover;o?Ig.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(Ig.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ny)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),t.setClassName(this._context.configuration.editor.viewInfo.glyphMargin?"monaco-editor-background textAreaCover "+zg.CLASS_NAME:0!==this._context.configuration.editor.viewInfo.renderLineNumbers?"monaco-editor-background textAreaCover "+$m.CLASS_NAME:"monaco-editor-background textAreaCover")},t}(Pg);function ry(e,t,n){var i=null,o=null;if("function"==typeof n.value?(i="value",0!==(o=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(i="get",o=n.get),!o)throw new Error("not supported");var r="$memoize$"+t;n[i]=function(){for(var e=[],t=0;t0||window.navigator.msMaxTouchPoints>0},e.prototype.dispose=function(){this.handle&&(this.handle.dispose(),_t(this.toDispose),this.handle=null)},e.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n=e.HOLD_DELAY&&Math.abs(u.initialPageX-ir(u.rollingPageX))<30&&Math.abs(u.initialPageY-ir(u.rollingPageY))<30){var c;(c=r.newGestureEvent(ey.Contextmenu,u.initialTarget)).pageX=ir(u.rollingPageX),c.pageY=ir(u.rollingPageY),r.dispatchEvent(c)}else if(1===i){var d=ir(u.rollingPageX),h=ir(u.rollingPageY),p=ir(u.rollingTimestamps)-u.rollingTimestamps[0],g=d-u.rollingPageX[0],f=h-u.rollingPageY[0],m=r.targets.filter(function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)});r.inertia(m,n,Math.abs(g)/p,g>0?1:-1,d,Math.abs(f)/p,f>0?1:-1,h)}r.dispatchEvent(r.newGestureEvent(ey.End,u.initialTarget)),delete r.activeTouches[a.identifier]},r=this,s=0,a=t.changedTouches.length;s0&&(g=!1,h=o*i*d),s>0&&(g=!1,p=a*s*d);var f=l.newGestureEvent(ey.Change);f.translationX=h,f.translationY=p,t.forEach(function(e){return e.dispatchEvent(f)}),g||l.inertia(t,c,i,o,r+h,s,a,u+p)})},e.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,Object(a.b)([ry],e,"isTouchDevice",null),e}();function ay(e,t){var n=new Ys(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var uy=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return Object(a.c)(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this)},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=_t(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 i=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var o=Vs.getSameOriginWindowChain(),r=0;rn||c.isEmpty()&&0===l.type||(r[s++]=new e(c.startLineNumber===n?c.startColumn:i,c.endLineNumber===n?c.endColumn:o,l.inlineClassName,l.type))}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}(),vy=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},by=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}(),_y=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new by,o=0,r=0,s=t.length;r1&&so(e.charCodeAt(u-2))&&u--,l>1&&so(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;o=i.consumeLowerThan(d,o,n),0===i.count&&(o=d),i.insert(h,c)}return i.consumeLowerThan(1073741824,o,n),n},e}();py="undefined"!=typeof TextDecoder?function(e){return new My(e)}:function(e){return new wy};var My=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||so(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){this._data[e]=(t<<16|n<<0)>>>0,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,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=e.getPartIndex(l);return i-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-i?r:s},e}(),Iy=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function Sy(e,t){if(0===e.lineContent.length){var n=!1,i="\xa0";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r')}return t.appendASCIIString(i),new Iy(new Ny(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,i=e.containsForeignElements,o=e.lineContent,r=e.len,s=e.isOverflowing,a=e.parts,u=e.tabSize,l=e.containsRTL,c=e.spaceWidth,d=e.renderWhitespace,h=e.renderControlCharacters,p=new Ny(r+1,a.length),g=0,f=0,m=0,y=0,v=0;t.appendASCIIString("");for(var b=0,_=a.length;b<_;b++){v+=y;var M=a[b],w=M.endIndex,C=M.type,L=0!==d&&C.indexOf("vs-whitespace")>=0;if(m=0,t.appendASCIIString('0&&(t.write1(8594),D--);D>0;)t.write1(160),D--;else t.write1(183);m++}y=N}else{for(N=0,l&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);g0;)t.write1(160),N++,D--;break;case 32:t.write1(160),N++;break;case 60:t.appendASCIIString("<"),N++;break;case 62:t.appendASCIIString(">"),N++;break;case 38:t.appendASCIIString("&"),N++;break;case 0:t.appendASCIIString("�"),N++;break;case 65279:case 8232:t.write1(65533),N++;break;default:mo(x)&&f++,h&&x<32?(t.write1(9216+x),N++):(t.write1(x),N++)}m++}y=N}t.appendASCIIString("")}return p.setPartData(r,a.length-1,m,v),s&&t.appendASCIIString(""),t.appendASCIIString(""),new Iy(p,l,i)}(function(e){var t,n,i=e.useMonospaceOptimizations,o=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(i[o++]=new Cy(t,""));for(var r=0,s=e.getCount();r=n){i[o++]=new Cy(n,u);break}i[o++]=new Cy(a,u)}}return i}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(r=function(e,t,n,i,o,r,s){var a,u=[],l=0,c=0,d=n[c].type,h=n[c].endIndex,p=Zi(e);-1===p?(p=t,a=t):a=Gi(e);for(var g=0,f=0;fa)v=!0;else if(9===y)v=!0;else if(32===y)if(s)if(m)v=!0;else{var b=f+1=o)&&(u[l++]=new Cy(f,"vs-whitespace"),g%=o):(f===h||v&&f>i)&&(u[l++]=new Cy(f,d),g%=o),9===y?g=o:mo(y)?g+=2:g++,m=v,f===h&&(d=n[++c].type,h=n[c].endIndex)}return u[l++]=new Cy(t,m?"vs-whitespace":d),u}(o,n,r,e.fauxIndentLength,e.tabSize,i,1===e.renderWhitespace));var s=!1;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;al&&(a[u++]=new Cy(l=f.startOffset,g)),!(f.endOffset+1<=p)){a[u++]=new Cy(l=p,g+" "+f.className);break}a[u++]=new Cy(l=f.endOffset+1,g+" "+f.className),s++}p>l&&(a[u++]=new Cy(l=p,g))}var m=n[n.length-1].endIndex;if(s50){for(var c=a.type,d=Math.ceil(l/50),h=1;h=u?o=Math.max(o,u+l-i):(t[n++]=new jy(i,o),i=u,o=l)}return t[n++]=new jy(i,o),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;ia)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&i>0&&0===o&&(i--,o=Number.MAX_VALUE);var u=e.children[t].firstChild,l=e.children[i].firstChild;if(u&&l||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!l&&0===o&&i>0&&(l=e.children[i-1].firstChild,o=1073741824)),!u||!l)return null;n=Math.min(u.textContent.length,Math.max(0,n)),o=Math.min(l.textContent.length,Math.max(0,o));var c=this._readClientRects(u,n,l,o,s);return this._createHorizontalRangesFromClientRects(c,r)},e}(),Py=!!mn.e||!(mn.c||Ds||ks),Ry=xs,zy=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}(),Wy=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),Fy=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=xg(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!Ry&&this._options.themeType!==bm||(this._isMaybeInvalid=!0,0))},e.prototype.renderLine=function(t,n,i,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var r=i.getViewLineRenderingData(t),s=this._options,a=yy.filter(r.inlineDecorations,t,r.minColumn,r.maxColumn);if(Ry||s.themeType===bm)for(var u=i.selections,l=0,c=u.length;lt)){var h=d.startLineNumber===t?d.startColumn:r.minColumn,p=d.endLineNumber===t?d.endColumn:r.maxColumn;h');var f=Sy(g,o);o.appendASCIIString("");var m=null;if(Py&&s.useMonospaceOptimizations&&!f.containsForeignElements){var y=!0;r.mightContainNonBasicASCII&&(y=go(r.content)),y&&r.content.length<1e3&&g.lineTokens.getCount()<100&&(m=new Hy(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping))}return m||(m=Yy(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping,f.containsRTL,f.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine.getColumnOfNodeOffset(e,t,n)},e.CLASS_NAME="view-line",e}(),Hy=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new jy(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),By=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new jy(i,o-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new jy(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length&&!this._containsForeignElements)return 0;if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)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){var n=Oy.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&!this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=Ny.getPartIndex(i),r=Ny.getCharIndex(i),s=Oy.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new jy(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=Ny.getPartIndex(i),r=Ny.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),a=Ny.getPartIndex(s),u=Ny.getCharIndex(s);return Oy.readHorizontalRanges(this._getReadingTarget(),o,r,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),Vy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(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(-1!==r&&-1!==s){var a=o[o.length-1];r<=s&&a.left=4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),Gy=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._context.viewLayout.getWhitespaceAtVerticalOffset(e);if(t){var n=t.verticalOffset+t.height/2,i=this._context.model.getLineCount(),o=null,r=null;return t.afterLineNumber!==i&&(r=new rn(t.afterLineNumber+1,1)),t.afterLineNumber>0&&(o=new rn(t.afterLineNumber,this._context.model.getLineMaxColumn(t.afterLineNumber))),{viewZoneId:t.id,afterLineNumber:t.afterLineNumber,positionBefore:o,positionAfter:r,position:null===r?o:null===o?r:e=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Jy._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}()),Xy={isAfterLines:!0},Ky={isAfterLines:!1},Jy=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=Rg.collect(e.target,this._viewHelper.viewDomNode);return!(!Uy.isChildOfContentWidgets(t)&&!Uy.isChildOfOverflowingContentWidgets(t)&&!Uy.isChildOfOverlayWidgets(t))},e.prototype.createMouseTarget=function(t,n,i,o){var r=new Gy(this._context,this._viewHelper,t),s=new Qy(r,n,i,o);try{return e._createMouseTarget(r,s,!1)}catch(e){return s.fulfill(Hn.UNKNOWN)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(Hn.UNKNOWN);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0)}var r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||e._hitTestContentWidget(t,n))||e._hitTestOverlayWidget(t,n))||e._hitTestMinimap(t,n))||e._hitTestScrollbarSlider(t,n))||e._hitTestViewZone(t,n))||e._hitTestMargin(t,n))||e._hitTestViewCursor(t,n))||e._hitTestTextArea(t,n))||e._hitTestViewLines(t,n,i))||e._hitTestScrollbar(t,n))||n.fulfill(Hn.UNKNOWN)},e._hitTestContentWidget=function(e,t){if(Uy.isChildOfContentWidgets(t.targetPath)||Uy.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(Hn.CONTENT_WIDGET,null,null,n):t.fulfill(Hn.UNKNOWN)}return null},e._hitTestOverlayWidget=function(e,t){if(Uy.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(Hn.OVERLAY_WIDGET,null,null,n):t.fulfill(Hn.UNKNOWN)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=(o=e.lastViewCursorsRenderData).length;na.contentLeft+a.width)){var u=e.getVerticalOffsetForLineNumber(a.position.lineNumber);if(u<=s&&s<=u+a.height)return t.fulfill(Hn.CONTENT_TEXT,a.position)}}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);return n?t.fulfill(t.isInContentArea?Hn.CONTENT_VIEW_ZONE:Hn.GUTTER_VIEW_ZONE,n.position,null,n):null},e._hitTestTextArea=function(e,t){return Uy.isTextArea(t.targetPath)?t.fulfill(Hn.TEXTAREA):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(Hn.GUTTER_GLYPH_MARGIN,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(Hn.GUTTER_LINE_NUMBERS,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(Hn.GUTTER_LINE_DECORATIONS,i,n.range,r))}return null},e._hitTestViewLines=function(t,n,i){if(!Uy.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var o=t.model.getLineCount(),r=t.model.getLineMaxColumn(o);return n.fulfill(Hn.CONTENT_EMPTY,new rn(o,r),void 0,Xy)}if(i)return n.fulfill(Hn.UNKNOWN);var s=e._doHitTest(t,n);return s.position?e.createMouseTargetFromHitTestPosition(t,n,s.position.lineNumber,s.position.column):this._createMouseTarget(t,n.withTarget(s.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(Uy.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(Hn.SCROLLBAR,new rn(n,i))}return null},e._hitTestScrollbarSlider=function(e,t){if(Uy.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(Hn.SCROLLBAR,new rn(i,o))}}return null},e._hitTestScrollbar=function(e,t){if(Uy.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(Hn.SCROLLBAR,new rn(n,i))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-i.contentLeft;return e._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new rn(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r)return t.fulfill(Hn.CONTENT_EMPTY,Ss&&1===o.column?new rn(n,e.model.getLineMaxColumn(n)):o,void 0,Ky);var s=e.visibleRangeForPosition2(n,i);if(!s)return t.fulfill(Hn.UNKNOWN,o);if(t.mouseContentHorizontalOffset===s.left)return t.fulfill(Hn.CONTENT_TEXT,o);var a=[];if(a.push({offset:s.left,column:i}),i>1){var u=e.visibleRangeForPosition2(n,i-1);u&&a.push({offset:u.left,column:i-1})}if(i=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var r=new ly(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i,o=n.startContainer;if(o.nodeType===o.TEXT_NODE){var r=(a=(s=o.parentNode)?s.parentNode:null)?a.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Fy.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};i=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var s,a;if(((a=(s=o.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Fy.CLASS_NAME)return{position:e.getPositionFromDOMInfo(o,o.textContent.length),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,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Fy.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===Fy.CLASS_NAME){var u=o.duplicate();u.moveToElementText(r),u.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,u.text.length),u.moveToElementText(e.viewDomNode)}else i=r;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}();function qy(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var $y=function(e){function t(n,i,o){var r=e.call(this)||this;r._isFocused=!1,r._context=n,r.viewController=i,r.viewHelper=o,r.mouseTargetFactory=new Jy(r._context,o),r._mouseDownOperation=r._register(new ev(r._context,r.viewController,r.viewHelper,function(e,t){return r._createMouseTarget(e,t)},function(e){return r._getMouseColumn(e)})),r._asyncFocus=r._register(new _s(function(){return r.viewHelper.focusTextArea()},0)),r.lastMouseLeaveTime=-1;var s=new fy(r.viewHelper.viewDomNode);r._register(s.onContextMenu(r.viewHelper.viewDomNode,function(e){return r._onContextMenu(e,!0)})),r._register(s.onMouseMoveThrottled(r.viewHelper.viewDomNode,function(e){return r._onMouseMove(e)},qy(r.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),r._register(s.onMouseUp(r.viewHelper.viewDomNode,function(e){return r._onMouseUp(e)})),r._register(s.onMouseLeave(r.viewHelper.viewDomNode,function(e){return r._onMouseLeave(e)})),r._register(s.onMouseDown(r.viewHelper.viewDomNode,function(e){return r._onMouseDown(e)}));var a=function(e){if(r._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new Us(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=ng.getZoomLevel();ng.setZoomLevel(n+(t.deltaY>0?1:-1)),t.preventDefault(),t.stopPropagation()}}};return r._register(oa(r.viewHelper.viewDomNode,"mousewheel",a,!0)),r._register(oa(r.viewHelper.viewDomNode,"DOMMouseScroll",a,!0)),r._context.addEventHandler(r),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new cy(e,t).toPageCoordinates(),i=hy(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,n,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestampt.y+t.height){var s=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return new Zy(null,Hn.OUTSIDE_EDITOR,o,new rn(s,n.getLineMaxColumn(s)))}var a=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new Zy(null,Hn.OUTSIDE_EDITOR,o,new rn(a,n.getLineMaxColumn(a))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(i.type===Hn.CONTENT_VIEW_ZONE||i.type===Hn.GUTTER_VIEW_ZONE){var o=new rn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),r=i.detail,s=r.positionBefore,a=r.positionAfter;if(s&&a)return s.isBefore(o)?new Zy(i.element,i.type,i.mouseColumn,s,null,i.detail):new Zy(i.element,i.type,i.mouseColumn,a,null,i.detail)}return i},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}(Ct),tv=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,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}();function nv(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var iv,ov,rv=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"}),o._register(ba(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e)},nv)),o._register(oa(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e)},!0))}},100),o._lastPointerType="mouse",o}return Object(a.c)(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 gy(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}($y),sv=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"}),o._register(ba(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e)},nv)),o._register(oa(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e)},!0))}},100),o._lastPointerType="mouse",o}return Object(a.c)(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 gy(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}($y),av=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return sy.addTarget(o.viewHelper.linesContentDomNode),o._register(oa(o.viewHelper.linesContentDomNode,ey.Tap,function(e){return o.onTap(e)})),o._register(oa(o.viewHelper.linesContentDomNode,ey.Change,function(e){return o.onChange(e)})),o._register(oa(o.viewHelper.linesContentDomNode,ey.Contextmenu,function(e){return o._onContextMenu(new gy(e,o.viewHelper.viewDomNode),!1)})),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new gy(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}($y),uv=function(){function e(e,t,n){this.handler=window.navigator.msPointerEnabled?new rv(e,t,n):window.TouchEvent?new av(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?new sv(e,t,n):new $y(e,t,n)}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}(),lv=function(){function e(){}return e._createWord=function(e,t,n,i){return{start:n,end:i,wordType:t}},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;o>=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,i,o){var r=i.lineNumber,s=i.column;1===s&&r>1&&(s=n.getLineMaxColumn(r-=1));var a=e._findPreviousWordOnLine(t,n,new rn(r,s));return 0===o?s=a?a.start+1:1:(a&&s<=a.end+1&&(a=e._findPreviousWordOnLine(t,n,new rn(r,a.start+1))),s=a?a.end+1:1),new rn(r,s)},e.moveWordRight=function(t,n,i,o){var r=i.lineNumber,s=i.column;s===n.getLineMaxColumn(r)&&r=a.start+1&&(a=e._findNextWordOnLine(t,n,new rn(r,a.end+1))),s=a?a.start+1:n.getLineMaxColumn(r)),new rn(r,s)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,o=Gi(n,i);return o+11?1:n.getLineMaxColumn(--a):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new rn(a,c.start+1))),u=c?c.end+1:u>1?1:n.getLineMaxColumn(--a)),new sn(a,u,s.lineNumber,s.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i=h.start+1&&(h=e._findNextWordOnLine(t,n,new rn(a,h.end+1))),u=h?h.start+1:ua&&(l=e.model.getLineMaxColumn(u=a)),wh.fromModelState(new _h(new sn(r.lineNumber,1,u,l),0,new rn(u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberc){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(h=e.viewModel.getLineMaxColumn(d=a)),wh.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var p=t.modelState.selectionStart.getEndPosition();return wh.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0))},e.word=function(e,t,n,i){var o=e.model.validatePosition(i);return wh.fromModelState(lv.word(e.config,e.model,t.modelState,n,o))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new wh(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return wh.fromViewState(new _h(new sn(n,i,n,i),0,new rn(n,i),0))},e.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new rn(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return wh.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 11:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,u)];case 10:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;dn.endLineNumber-1&&(o=n.endLineNumber-1),oo,u=i>r,l=ir)continue;if(mi)continue;if(f1&&o--,this.columnSelect(e,t,n.selection,i,o)},e.columnSelectRight=function(e,t,n,i,o){for(var r=0,s=Math.min(n.position.lineNumber,i),a=Math.max(n.position.lineNumber,i),u=s;u<=a;u++){var l=t.getLineMaxColumn(u),c=Lh.visibleColumnFromColumn2(e,t,new rn(u,l));r=Math.max(r,c)}return ot.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection,o,r)},e}(),bv=Yn,_v=qa.WEIGHT.editorCore(),Mv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(Qp);function wv(e){return e.get(Fo).getFocusedCodeEditor()}function Cv(e){qa.registerCommandAndKeybindingRule(e.toCommandAndKeybindingRule(_v))}(yv=dv||(dv={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!ti(e))return!1;var t=e;return!(!ei(t.to)||!oi(t.by)&&!ei(t.by)||!oi(t.value)&&!ni(t.value)||!oi(t.revealCursor)&&!ii(t.revealCursor))}}]},yv.RawDirection={Up:"up",Down:"down"},yv.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},yv.parse=function(e){var t,n;switch(e.to){case yv.RawDirection.Up:t=1;break;case yv.RawDirection.Down:t=2;break;default:return null}switch(e.by){case yv.RawUnit.Line:n=1;break;case yv.RawUnit.WrappedLine:n=2;break;case yv.RawUnit.Page:n=3;break;case yv.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(pv=hv||(hv={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!ti(e))return!1;var t=e;return!(!ni(t.lineNumber)||!oi(t.at)&&!ei(t.at))}}]},pv.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[cv.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(Mv);e.MoveTo=qp(new t({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=qp(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,mh.Explicit,n.viewStates.map(function(e){return wh.fromViewState(e)})),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(Mv);e.ColumnSelect=qp(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var o,r=e.model.validatePosition(i.position);return o=i.viewPosition?e.validateViewPosition(new rn(i.viewPosition.lineNumber,i.viewPosition.column),r):e.convertModelPositionToViewPosition(r),vv.columnSelect(e.config,e.viewModel,t.viewState.selection,o.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=qp(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3599,linux:{primary:0}}})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n))),e.CursorColumnSelectRight=qp(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3601,linux:{primary:0}}})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectUp=qp(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=qp(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3595,linux:{primary:0}}}));var o=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectDown=qp(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=qp(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3596,linux:{primary:0}}}));var r=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:iv.description})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=iv.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,mh.Explicit,cv.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(Mv);e.CursorMoveImpl=r,e.CursorMove=qp(new r);var s=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return Object(a.c)(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(Mv);e.CursorLeft=qp(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=qp(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1039}})),e.CursorRight=qp(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=qp(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1041}})),e.CursorUp=qp(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=qp(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=qp(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:11}})),e.CursorPageUpSelect=qp(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1035}})),e.CursorDown=qp(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=qp(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=qp(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:12}})),e.CursorPageDownSelect=qp(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1036}})),e.CreateCursor=qp(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context;if(!n.config.readOnly){var i;i=t.wholeLine?cv.line(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition):cv.moveTo(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(o.length>1)for(var r=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null,a=0,u=o.length;ao&&(i=o);var r=new sn(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case hv.RawAtArgument.Top:s=3;break;case hv.RawAtArgument.Center:s=1;break;case hv.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(!1,a,s,0)},t}(Mv))),e.SelectAll=qp(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[cv.selectAll(e.context,e.getPrimaryCursor())])},t}(Mv))),e.SetSelection=qp(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[wh.fromModelSelection(t.selection)])},t}(Mv)))}(gv||(gv={})),(mv=fv||(fv={})).LineBreakInsert=qp(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:null,mac:{primary:301}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.lineBreakInsert(t._getCursorConfiguration(),t.getModel(),t.getSelections()))},t}(Qp))),mv.Outdent=qp(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:To.and(wp.editorTextFocus,wp.tabDoesNotMoveFocus),primary:1026}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.outdent(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(Qp))),mv.Tab=qp(new(function(e){function t(){return e.call(this,{id:"tab",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:To.and(wp.editorTextFocus,wp.tabDoesNotMoveFocus),primary:2}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.tab(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(Qp))),mv.DeleteLeft=qp(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors(),o=jh.deleteLeft(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[1];o[0]&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)},t}(Qp))),mv.DeleteRight=qp(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors(),o=jh.deleteRight(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[1];o[0]&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)},t}(Qp)));var Lv=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=wv(e);if(n&&n.isFocused())return this._runEditorHandler(n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=function(e){var t=e.get(Zp);return Ho(t.getActiveEditor&&t.getActiveEditor())}(e);return o?(o.focus(),this._runEditorHandler(o,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t){var n=this._editorHandler;"string"==typeof n?e.trigger("keyboard",n,t):((t=t||{}).source="keyboard",n.runEditorCommand(null,e,t))},t}(Gp),Nv=function(e){function t(t,n){var i=e.call(this,{id:t,precondition:null})||this;return i._handlerId=n,i}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=wv(e);n&&n.trigger("keyboard",this._handlerId,t)},t}(Gp);function Iv(e){Cv(new Nv("default:"+e,e)),Cv(new Nv(e,e))}Cv(new Lv({editorHandler:gv.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:null,kbOpts:{weight:_v,kbExpr:null,primary:2079}})),Cv(new Lv({editorHandler:bv.Undo,inputHandler:"undo",id:bv.Undo,precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:2104}})),Cv(new Nv("default:"+bv.Undo,bv.Undo)),Cv(new Lv({editorHandler:bv.Redo,inputHandler:"redo",id:bv.Redo,precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}}})),Cv(new Nv("default:"+bv.Redo,bv.Redo)),Iv(bv.Type),Iv(bv.ReplacePreviousChar),Iv(bv.CompositionStart),Iv(bv.CompositionEnd),Iv(bv.Paste),Iv(bv.Cut);var Sv=function(){function e(e,t,n,i,o){this.configuration=e,this.viewModel=t,this._execCoreEditorCommandFunc=n,this.outgoingEvents=i,this.commandDelegate=o}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this._execCoreEditorCommandFunc(e,t)},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this._execCoreEditorCommandFunc(gv.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this.selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelectDrag(e.position):this.lastCursorLineSelect(e.position):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this.lastCursorWordSelect(e.position):e.inSelectionMode?this.wordSelectDrag(e.position):this.wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this.columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect(e.position):this.createCursor(e.position,!1)):e.inSelectionMode?this.moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this.convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(gv.MoveTo,this._usualArgs(e))},e.prototype.moveToSelect=function(e){this._execMouseCommand(gv.MoveToSelect,this._usualArgs(e))},e.prototype.columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(gv.ColumnSelect,{position:this.convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},e.prototype.createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(gv.CreateCursor,{position:this.convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype.lastCursorMoveToSelect=function(e){this._execMouseCommand(gv.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype.wordSelect=function(e){this._execMouseCommand(gv.WordSelect,this._usualArgs(e))},e.prototype.wordSelectDrag=function(e){this._execMouseCommand(gv.WordSelectDrag,this._usualArgs(e))},e.prototype.lastCursorWordSelect=function(e){this._execMouseCommand(gv.LastCursorWordSelect,this._usualArgs(e))},e.prototype.lineSelect=function(e){this._execMouseCommand(gv.LineSelect,this._usualArgs(e))},e.prototype.lineSelectDrag=function(e){this._execMouseCommand(gv.LineSelectDrag,this._usualArgs(e))},e.prototype.lastCursorLineSelect=function(e){this._execMouseCommand(gv.LastCursorLineSelect,this._usualArgs(e))},e.prototype.lastCursorLineSelectDrag=function(e){this._execMouseCommand(gv.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype.selectAll=function(){this._execMouseCommand(gv.SelectAll,{})},e.prototype.convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e}(),xv=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var o=0,r=0,s=n;s<=i;s++)e<=s&&s<=t&&(0===r?(o=s-this._rendLineNumberStart,r=1):r++);return e=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);for(var r=[],s=0;sn))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++)this._lines[l-this._rendLineNumberStart].onTokensChanged(),i=!0}return i},e}(),Tv=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Dv(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=xg(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt?(u=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,u,s,i,t),o.linesLength+=s-u+1):o.rendLineNumberStart0&&(this._removeLinesBefore(o,a),o.linesLength-=a),o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1n){var s,a,u=Math.max(0,n-o.rendLineNumberStart+1);(a=(s=o.linesLength-1)-u+1)>0&&(this._removeLinesAfter(o,a),o.linesLength-=a)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=r+a;s[a].layoutLine(u,i[u-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;s--)i[s]&&(e.lines[s].setDomNode(r),r=r.previousSibling)},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),Av=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return Object(a.c)(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(kv),Ov=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),Ig.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return Object(a.c)(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(Ig.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(kv),Pv=function(e,t){this.top=e,this.left=t},Rv=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=xg(document.createElement("div")),Rg.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=xg(document.createElement("div")),Rg.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null,this.domNode=null},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;ni.scrollLeft+i.viewportWidth&&(s=i.scrollLeft+i.viewportWidth-t),s=n,belowTop:r,fitsBelow:i.viewportHeight-r>=n,left:s}},e.prototype._layoutBoxInPage=function(e,t,n,i){var o=e.left-i.scrollLeft;if(o+t<0||o>this._contentWidth)return null;var r,s=e.top-n,a=e.top+this._lineHeight,u=o+this._contentLeft,l=Na(this._viewDomNode.domNode),c=l.top+s-Ia.scrollY,d=l.top+a-Ia.scrollY,h=l.left+u-Ia.scrollX,p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return h+t+20>p&&(h-=r=h-(p-t-20),u-=r),h<0&&(h-=r=h,u-=r),this._fixedOverflowWidgets&&(s=c,a=d,u=h),{aboveTop:s,fitsAbove:c>=22,belowTop:a,fitsBelow:d+n<=g-22,left:u}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new Pv(e.top,e.left+this._contentLeft)},e.prototype._getTopLeft=function(e){if(!this._viewPosition)return null;var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return null;var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop;return new Pv(n,t.left)},e.prototype._prepareRenderWidget=function(e,t){var n=this;if(!e)return null;for(var i=null,o=function(){if(!i){if(-1===n._cachedDomNodeClientWidth||-1===n._cachedDomNodeClientHeight){var o=n.domNode.domNode;n._cachedDomNodeClientWidth=o.clientWidth,n._cachedDomNodeClientHeight=o.clientHeight}i=n.allowEditorOverflow?n._layoutBoxInPage(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t):n._layoutBoxInViewport(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t)}},r=1;r<=2;r++)for(var s=0;se.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){var t=this._getTopLeft(e);this._renderData=this._prepareRenderWidget(t,e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),Wv=(n("Eawl"),function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'
':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(qm));wm(function(e,t){var n=e.getColor(Cm);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(Lm)){var i=e.getColor(Lm);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}}),n("3ZDw");var Fv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";return this._shouldShowCurrentLine()&&(n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"")),'
'}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(qm);wm(function(e,t){var n=e.getColor(Cm);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(Lm);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}}),n("84z/");var Hv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;oi?1:sn.compareRangesUsingStarts(e.range,t.range)});for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++)l[c-a]="";this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var 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++)n[h-o]+=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[f]+=_}}}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(qm),Bv=(n("uHSv"),function(){return function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}()),Vv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++)i[o-e]=[];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',s=[],a=t;a<=n;a++){var u=a-t,l=i[u];s[u]=0===l.length?"":'
=this._renderResult.length?"":this._renderResult[n]},t}(Vv),Zv=(n("gCdB"),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 Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getTabSize()*this._spaceWidth,o=this._lineHeight,r=i,s=this._context.model.getLinesIndentGuides(t,n),a=[],u=t;u<=n;u++){for(var l=u-t,c=s[l],d="",h=e.visibleRangeForPosition(new rn(u,1)),p=h?h.left:0,g=0;g
',p+=i;a[l]=d}this._renderResult=a}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(qm));wm(function(e,t){var n=e.getColor(Tm);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }")}),n("+0Qw");var Uv=function(){function e(){this._currentVisibleRange=new sn(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),Gv=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new Tv(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new Wy(o,i._context.theme.type),Rg.write(i.domNode,7),i.domNode.setClassName("view-lines"),Ig.applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new _s(function(){i._updateLineWidthsSlow()},200),i._lastRenderedData=new Uv,i._horizontalRevealRequest=null,i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new Fy(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&Ig.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=new Wy(this._context.configuration,this._context.theme.type);if(!this._viewLineOptions.equals(e)){this._viewLineOptions=e;for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions);return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r}(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new rn(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(ir)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return sn?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber;if(!(e=sn.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange())))return null;var i,o=[],r=0,s=new zy(this.domNode.domNode,this._textRangeRestingSpot);t&&(i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new rn(e.startLineNumber,1)).lineNumber);for(var a=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),l=e.startLineNumber;l<=e.endLineNumber;l++)if(!(lu)){var c=l===e.startLineNumber?e.startColumn:1,d=l===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(l),h=this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(c,d,s);h&&0!==h.length&&(t&&lo)){var s=r===e.startLineNumber?e.startColumn:1,a=r===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(r),u=this._visibleLines.getVisibleLine(r).getVisibleRangesForRange(s,a,n);u&&0!==u.length&&(t=t.concat(u))}return 0===t.length?null:t},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidthc&&(c=h.left+h.width)}return o=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),{scrollLeft:this._computeMinimumScrolling(s,a,l,c+=this._revealHorizontalRightPadding),maxHorizontalOffset:o}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(Pg),Qv=(n("MlKm"),function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o',r=[],s=t;s<=n;s++){for(var a=s-t,u=i[a],l="",c=0,d=u.length;c';o[s]=u}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(Vv)),Kv=(n("EG+O"),function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=xg(document.createElement("div")),Rg.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=xg(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;null!==e.preference?e.preference===Fn.TOP_RIGHT_CORNER?(t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):e.preference===Fn.BOTTOM_RIGHT_CORNER?(t.setTop(this._editorHeight-t.domNode.clientHeight-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):e.preference===Fn.TOP_CENTER&&(t.setTop(0),t.domNode.style.right="50%"):t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n=3){var o,r,s,a=i-(o=Math.floor(i/3))-(r=Math.floor(i/3)),u=(s=e)+o;return[[0,s,u,s,s+o+a,s,u,s],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}return 2===n?[[0,s=e,s,s,s+(o=Math.floor(i/2)),s,s,s],[0,o,o,o,r=i-o,o+r,o+r,o+r]]:[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),qv=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=xg(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._settings=null,n._updateSettings(!1),n._tokensColorTrackerListener=Pl.onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)}),n._cursorPositions=[],n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new Jv(this._context.configuration,this._context.theme);return!(null!==this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;tt&&(x=t-a),C=x-a,D=x+a),C>v+1||M!==m?(0!==b&&u.fillRect(l[m],y,c[m],v-y),m=M,y=C,v=D):D>v&&(v=D)}u.fillRect(l[m],y,c[m],v-y)}if(!this._settings.hideCursor){var L=2*this._settings.pixelRatio|0,N=L/2|0,I=this._settings.x[7],S=this._settings.w[7];for(u.fillStyle=this._settings.cursorColor,y=-100,v=-100,b=0,_=this._cursorPositions.length;b<_;b++){var x;(x=i.getVerticalOffsetForLineNumber(this._cursorPositions[b].lineNumber)*o|0)t&&(x=t-N);var D=(C=x-N)+L;C>v+1?(0!==b&&u.fillRect(I,y,S,v-y),y=C,v=D):D>v&&(v=D)}u.fillRect(I,y,S,v-y)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(Pg),$v=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),eb=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorn&&(h=n-p);var g=u.color,f=this._color2Id[g];f||(f=++this._lastAssignedId,this._color2Id[g]=f,this._id2Color[f]=g);var m=new $v(h-p,h+p,f);u.setColorZone(m),r.push(m)}return this._colorZonesInvalid=!1,r.sort($v.compare),r},e}(),nb=function(e){function t(t,n){var i=e.call(this)||this;return i._context=t,i._domNode=xg(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new tb(function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e)}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._zoneManager=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(o,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,u=t.length;a=d?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,s=h)}e.fillRect(0,r,i,s-r)},t}(Dg),ib=(n("5RGO"),function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=xg(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e0;)(r=xg(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--;else for(var o=e-t;o>0;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),o--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e,t=this._context.configuration.editor.layoutInfo;return this._width!==(e=0===t.renderMinimap||t.minimapWidth>0&&0===t.minimapLeft?t.width:t.width-t.minimapWidth-t.verticalScrollbarWidth)&&(this._width=e,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(Pg);wm(function(e,t){var n=e.getColor(Nf);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}),n("MfYP");var rb=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},sb=function(e,t){this.lineNumber=e,this.ranges=t};function ab(e){return new rb(e)}function ub(e){return new sb(e.lineNumber,e.ranges.map(ab))}var lb=xs,cb=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 Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._selections=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t1)return!0;return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t){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)}r=0;for(var a=e.length;r0){var p=e[r-1].ranges[0].left,g=e[r-1].ranges[0].left+e[r-1].ranges[0].width;l===p?d.top=2:l>p&&(d.top=1),c===g?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,l)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(qm);wm(function(e,t){var n=e.getColor(Af);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(Pf);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(Of);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")}),n("8EM9");var db=function(e,t,n,i,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o},hb=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=xg(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Ig.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new rn(1,1)),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(Ig.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},e.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===ud.Line||this._cursorStyle===ud.LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i)return null;this._cursorStyle===ud.Line?(n=Ka(this._lineCursorWidth>0?this._lineCursorWidth:2))>2&&(t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)):n=Ka(1);var o=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new db(o,i.left,n,this._lineHeight,t)}var r=e.linesVisibleRangesForRange(new sn(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!r||0===r.length||0===r[0].ranges.length)return null;var s=r[0].ranges[0],a=s.width<1?this._typicalHalfwidthCharacterWidth:s.width;this._cursorStyle===ud.Block&&(t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1));var u=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,l=this._lineHeight;return this._cursorStyle!==ud.Underline&&this._cursorStyle!==ud.UnderlineThin||(u+=this._lineHeight-2,l=2),new db(u,s.left,a,l,t)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e.prototype.updatePosition=function(e){this._position=e},e}(),pb=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 hb(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=xg(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new vs,n._cursorFlatBlinkInterval=new bs,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;tt.length){var r=this._secondaryCursors.length-t.length;for(i=0;i140)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e);n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a-i))}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(bb),Lb=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*s/i))),l=(s-u)/(i-n),c=o*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){return this._computedIsNeeded?Math.round((e-this._arrowSize-this._computedSliderSize/2)/this._computedSliderRatio):0},e.prototype.getDesiredScrollPositionFromDelta=function(e){return this._computedIsNeeded?Math.round((this._computedSliderPosition+e)/this._computedSliderRatio):0},e}(),Nb=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Lb(n.horizontalHasArrows?n.arrowSize:0,n.horizontal===Uc.Hidden?0:n.horizontalScrollbarSize,n.vertical===Uc.Hidden?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var r=(n.arrowSize-_b)/2,s=(n.horizontalScrollbarSize-_b)/2;o._createArrow({className:"left-arrow",top:s,left:r,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:r,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,null,n.horizontalSliderSize),o}return Object(a.c)(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(Cb),Ib=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Lb(n.verticalHasArrows?n.arrowSize:0,n.vertical===Uc.Hidden?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var r=(n.arrowSize-_b)/2,s=(n.verticalScrollbarSize-_b)/2;o._createArrow({className:"up-arrow",top:r,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:r,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,null),o}return Object(a.c)(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(Cb),Sb=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5},e.prototype.accept=function(e,t,n){var i=new function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),xb=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new zt),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=kb(n),o._scrollable=i,o._register(o._scrollable.onScroll(function(e){o._onDidScroll(e),o._onScroll.fire(e)}));var r={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new Ib(o._scrollable,o._options,r)),o._horizontalScrollbar=o._register(new Nb(o._scrollable,o._options,r)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=xg(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=xg(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=xg(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(e){return o._onMouseOver(e)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(e){return o._onMouseOut(e)}),o._hideTimeout=o._register(new vs),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o}return Object(a.c)(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=_t(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,mn.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=kb(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=_t(this._mouseWheelToDispose),e)){var n=function(e){var n=new Us(e);t._onMouseWheel(n)};this._mouseWheelToDispose.push(oa(this._listenOnDomNode,"mousewheel",n)),this._mouseWheelToDispose.push(oa(this._listenOnDomNode,"DOMMouseScroll",n))}},t.prototype._onMouseWheel=function(e){var t,n=Sb.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(i=(t=[o,i])[0],o=t[1]),!this._options.scrollYToX&&(mn.d||!e.browserEvent||!e.browserEvent.shiftKey)||o||(o=i,i=0);var r=this._scrollable.getFutureScrollPosition(),s={};i&&this._verticalScrollbar.writeScrollPosition(s,r.scrollTop-50*i),o&&this._horizontalScrollbar.writeScrollPosition(s,r.scrollLeft-50*o),s=this._scrollable.validateScrollPosition(s),(r.scrollLeft!==s.scrollLeft||r.scrollTop!==s.scrollTop)&&(this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)},t}(bb),Db=function(e){function t(t,n){var i;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new ed(0,function(e){return ua(e)});return(i=e.call(this,t,n,o)||this)._register(o),i}return Object(a.c)(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(xb),Tb=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(a.c)(t,e),t}(xb),Eb=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 Object(a.c)(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(Db);function kb(e){var t={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,mouseWheelSmoothScroll:"undefined"==typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!=typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!=typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!=typeof e.horizontal?e.horizontal:Uc.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:Uc.Auto,verticalScrollbarSize:"undefined"!=typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!=typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,mn.d&&(t.className+=" mac"),t}var jb=function(e){function t(t,n,i,o){var r=e.call(this,t)||this,s=r._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:i.domNode,className:"editor-scrollable "+_m(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity};r.scrollbar=r._register(new Tb(n.domNode,a,r._context.viewLayout.scrollable)),Rg.write(r.scrollbar.getDomNode(),5),r.scrollbarDomNode=xg(r.scrollbar.getDomNode()),r.scrollbarDomNode.setPosition("absolute"),r._setLayout();var u=function(e,t,n){var i={};if(t){var o=e.scrollTop;o&&(i.scrollTop=r._context.viewLayout.getCurrentScrollTop()+o,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=r._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}r._context.viewLayout.setScrollPositionNow(i)};return r._register(oa(i.domNode,"scroll",function(e){return u(i.domNode,!0,!0)})),r._register(oa(n.domNode,"scroll",function(e){return u(n.domNode,!0,!1)})),r._register(oa(o.domNode,"scroll",function(e){return u(o.domNode,!0,!1)})),r._register(oa(r.scrollbarDomNode.domNode,"scroll",function(e){return u(r.scrollbarDomNode.domNode,!0,!1)})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),this.scrollbarDomNode.setWidth("right"===this._context.configuration.editor.viewInfo.minimap.side?e.contentWidth+e.minimapWidth:e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor;this.scrollbar.updateOptions({handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity})}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+_m(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(Pg);function Ab(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;n=s)return new e(a,u,m,y,c,v=1,s);var v=Math.max(1,Math.floor(n-y*h/p));return l&&l.scrollHeight===u&&(l.scrollTop>a&&(v=Math.min(v,l.startLineNumber)),l.scrollTopHb?{scrollTop:o.scrollTop}:{scrollTop:o.getDesiredScrollTopFromDelta(e.posy-t)})},function(){n._slider.toggleClassName("active",!1)})}}),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new Ub(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new Bb(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);this._shadow.setClassName(e.scrollLeft+e.viewportWidth>=e.scrollWidth?"minimap-shadow-hidden":"minimap-shadow-visible");var t=Vb.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=Math.min(this._options.minimapWidth,Math.round(e.scrollLeft/this._options.typicalHalfwidthCharacterWidth*Fb(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(n),this._sliderHorizontal.setWidth(this._options.minimapWidth-n),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this._lastRenderData=this.renderLines(t)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=e.startLineNumber,o=e.endLineNumber,r=Wb(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new Zb(e,s.imageData,s.lines)}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,i,o,r,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,d),p=h.tabSize,g=this._tokensColorTracker.getColor(2),f=this._tokensColorTracker.backgroundIsLight(),m=0,y=[],v=0,b=o-i+1;v=0&&Nh)return;var M=l.charCodeAt(g);if(9===M){var w=a-(g+f)%a;f+=w-1,p+=w*d}else 32===M?p+=d:(2===i?r.x2RenderChar(e,p,s,M,_,t,n):1===i?r.x1RenderChar(e,p,s,M,_,t,n):4===i?r.x2BlockRenderChar(e,p,s,_,t,n):r.x1BlockRenderChar(e,p,s,_,t,n),p+=d)}},t}(Pg);wm(function(e,t){var n=e.getColor(If);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(Sf);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(xf);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(Nf);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")});var Qb=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._cursor=r,a._renderAnimationFrame=null,a.outgoingEvents=new mb(o);var u=new Sv(n,o,s,a.outgoingEvents,t);return a.eventDispatcher=new xv(function(e){return a._renderOnce(e)}),a.eventDispatcher.addEventHandler(a),a._context=new fb(n,i.getTheme(),o,a.eventDispatcher),a._register(i.onThemeChange(function(e){a._context.theme=e,a.eventDispatcher.emit(new Uh),a.render(!0,!1)})),a.viewParts=[],a._textAreaHandler=new oy(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.createViewParts(),a._setLayout(),a.pointerHandler=new uv(a._context,u,a.createPointerHandlerHelper()),a._register(o.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a._register(a._cursor.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a}return Object(a.c)(t,e),t.prototype.createViewParts=function(){this.linesContent=xg(document.createElement("div")),this.linesContent.setClassName("lines-content monaco-editor-background"),this.linesContent.setPosition("absolute"),this.domNode=xg(document.createElement("div")),this.domNode.setClassName(this.getEditorClassName()),this.overflowGuardContainer=xg(document.createElement("div")),Rg.write(this.overflowGuardContainer,3),this.overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new jb(this._context,this.linesContent,this.domNode,this.overflowGuardContainer),this.viewParts.push(this._scrollbar),this.viewLines=new Gv(this._context,this.linesContent),this.viewZones=new gb(this._context),this.viewParts.push(this.viewZones);var e=new qv(this._context);this.viewParts.push(e);var t=new ob(this._context);this.viewParts.push(t);var n=new Av(this._context);this.viewParts.push(n),n.addDynamicOverlay(new Wv(this._context)),n.addDynamicOverlay(new cb(this._context)),n.addDynamicOverlay(new Hv(this._context)),n.addDynamicOverlay(new Zv(this._context));var i=new Ov(this._context);this.viewParts.push(i),i.addDynamicOverlay(new Fv(this._context)),i.addDynamicOverlay(new Yv(this._context)),i.addDynamicOverlay(new Xv(this._context)),i.addDynamicOverlay(new Qv(this._context)),i.addDynamicOverlay(new $m(this._context));var o=new zg(this._context);o.getDomNode().appendChild(this.viewZones.marginDomNode),o.getDomNode().appendChild(i.getDomNode()),this.viewParts.push(o),this.contentWidgets=new Rv(this._context,this.domNode),this.viewParts.push(this.contentWidgets),this.viewCursors=new pb(this._context),this.viewParts.push(this.viewCursors),this.overlayWidgets=new Kv(this._context),this.viewParts.push(this.overlayWidgets);var r=new ib(this._context);this.viewParts.push(r);var s=new Gb(this._context);if(this.viewParts.push(s),e){var a=this._scrollbar.getOverviewRulerLayoutInfo();a.parent.insertBefore(e.getDomNode(),a.insertBefore)}this.linesContent.appendChild(n.getDomNode()),this.linesContent.appendChild(r.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(o.getDomNode()),this.overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this.overflowGuardContainer.appendChild(t.getDomNode()),this.overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this.overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this.overflowGuardContainer.appendChild(this.overlayWidgets.getDomNode()),this.overflowGuardContainer.appendChild(s.getDomNode()),this.domNode.appendChild(this.overflowGuardContainer),this.domNode.appendChild(this.contentWidgets.overflowingContentWidgetsDomNode)},t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){e._flushAccumulatedAndRenderNow();var i=e.viewLines.visibleRangesForRange2(new sn(t,n,t,n));return i?i[0]:null},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){e._flushAccumulatedAndRenderNow();var i=e.viewLines.visibleRangesForRange2(new sn(t,n,t,n));return i?i[0]:null}}},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+_m(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.pointerHandler.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t");function t_(e){return $b+encodeURIComponent(e.toString())+e_}var n_=encodeURIComponent('');wm(function(e,t){var n=e.getColor(Hm);n&&t.addRule(".monaco-editor .squiggly-d-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(Fm);i&&t.addRule('.monaco-editor .squiggly-d-error { background: url("data:image/svg+xml;utf8,'+t_(i)+'") repeat-x bottom left; }');var o=e.getColor(Vm);o&&t.addRule(".monaco-editor .squiggly-c-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(Bm);r&&t.addRule('.monaco-editor .squiggly-c-warning { background: url("data:image/svg+xml;utf8,'+t_(r)+'") repeat-x bottom left; }');var s=e.getColor(Zm);s&&t.addRule(".monaco-editor .squiggly-b-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Ym);a&&t.addRule('.monaco-editor .squiggly-b-info { background: url("data:image/svg+xml;utf8,'+t_(a)+'") repeat-x bottom left; }');var u=e.getColor(Gm);u&&t.addRule(".monaco-editor .squiggly-a-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Um);l&&t.addRule('.monaco-editor .squiggly-a-hint { background: url("data:image/svg+xml;utf8,'+(n_+encodeURIComponent(l.toString())+i_)+'") no-repeat bottom left; }')});var o_=function(e){function t(t,n,i,o,r,s,a){return e.call(this,t,n,!1,i,o,r,s,a)||this}return Object(a.c)(t,e),t.prototype._getContributions=function(){return zp.getEditorContributions()},t.prototype._getActions=function(){return zp.getEditorActions()},Object(a.b)([Object(a.d)(2,Un),Object(a.d)(3,Fo),Object(a.d)(4,di),Object(a.d)(5,Wo),Object(a.d)(6,mm)],t)}(Jb);n("Gu5N"),n("LCUL"),n("om4P");var r_={withElementById:function(e,t){Wr(ei(e),"Expected String as parameter");var n=document.getElementById(e);return n?new c_(n,t):null}},s_="_msDataKey",a_=function(e,t){this.width=e,this.height=t};function u_(e){return e[s_]||(e[s_]={}),e[s_]}function l_(e){return!!e[s_]}var c_=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 h_(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.build=function(t,n){Wr(this.offdom,"This builder was not created off-dom, so build() can not be called."),t?t instanceof e&&(t=t.getHTMLElement()):t=this.container,Wr(t,"Builder can only be build() with a container provided."),Wr(Ra(t),"The container must either be a HTMLElement or a Builder.");var i,o,r=t,s=r.childNodes;if(ni(n)&&n=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(" ")):(ri(e)||(this.currentElement.style.paddingTop=this.toPixel(e)),ri(t)||(this.currentElement.style.paddingRight=this.toPixel(t)),ri(n)||(this.currentElement.style.paddingBottom=this.toPixel(n)),ri(i)||(this.currentElement.style.paddingLeft=this.toPixel(i)),this)},e.prototype.margin=function(e,t,n,i){return ei(e)&&e.indexOf(" ")>=0?this.margin.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.marginTop=this.toPixel(e)),ri(t)||(this.currentElement.style.marginRight=this.toPixel(t)),ri(n)||(this.currentElement.style.marginBottom=this.toPixel(n)),ri(i)||(this.currentElement.style.marginLeft=this.toPixel(i)),this)},e.prototype.position=function(e,t,n,i,o){return ei(e)&&e.indexOf(" ")>=0?this.position.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.top=this.toPixel(e)),ri(t)||(this.currentElement.style.right=this.toPixel(t)),ri(n)||(this.currentElement.style.bottom=this.toPixel(n)),ri(i)||(this.currentElement.style.left=this.toPixel(i)),o||(o="absolute"),this.currentElement.style.position=o,this)},e.prototype.size=function(e,t){return ei(e)&&e.indexOf(" ")>=0?this.size.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.width=this.toPixel(e)),ri(t)||(this.currentElement.style.height=this.toPixel(t)),this)},e.prototype.display=function(e){return this.currentElement.style.display=e,this},e.prototype.show=function(){return this.hasClass("monaco-builder-hidden")&&this.removeClass("monaco-builder-hidden"),this.attr("aria-hidden","false"),this.cancelVisibilityPromise(),this},e.prototype.showDelayed=function(e){var t=this;this.cancelVisibilityPromise();var n=Nt.b.timeout(e);return this.setProperty("__$visibility",n),n.done(function(){t.removeProperty("__$visibility"),t.show()}),this},e.prototype.hide=function(){return this.hasClass("monaco-builder-hidden")||this.addClass("monaco-builder-hidden"),this.attr("aria-hidden","true"),this.cancelVisibilityPromise(),this},e.prototype.isHidden=function(){return this.hasClass("monaco-builder-hidden")||"none"===this.currentElement.style.display},e.prototype.cancelVisibilityPromise=function(){var e=this.getProperty("__$visibility");e&&(e.cancel(),this.removeProperty("__$visibility"))},e.prototype.toPixel=function(e){return-1===e.toString().indexOf("px")?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(Ii(e),t)},e.prototype.setProperty=function(e,t){return function(e,t,n){u_(e)[t]=n}(this.currentElement,e,t),this},e.prototype.getProperty=function(e,t){return function(e,t,n){if(l_(e)){var i=u_(e)[t];if(!oi(i))return i}return n}(this.currentElement,e,t)},e.prototype.removeProperty=function(e){return l_(this.currentElement)&&delete u_(this.currentElement)[e],this},e.prototype.child=function(e){return void 0===e&&(e=0),p_(this.currentElement.children.item(e))},e.prototype.unbindDescendants=function(e){if(e&&e.children)for(var t=0,n=e.children.length;t=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function __(e){return e.end-e.start<=0}function M_(e,t){var n=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return __(i)||n.push(i),__(o)||n.push(o),n}function w_(e,t){for(var n=[],i=0,o=t;i=r.range.end)){if(e.end=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"dblclick"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUp",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseup"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mousedown"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOver",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseover"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMove",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mousemove"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOut",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseout"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"contextmenu"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"touchstart"),function(t){return e.toTouchEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return Vt(Bt(Gs(this.rowsContainer,ey.Tap),function(t){return e.toGestureEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.onScroll=function(e){this.render(e.scrollTop,e.height)},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragOver=function(e){this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=e.posy},e.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=La(this._domNode).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.renderHeight-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))},e.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},e.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},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.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.dispose=function(){this.items=null,this._domNode&&this._domNode.parentElement&&(this._domNode.parentNode.removeChild(this._domNode),this._domNode=null),this.disposables=_t(this.disposables)},Object(a.b)([ry],e.prototype,"onMouseClick",null),Object(a.b)([ry],e.prototype,"onMouseDblClick",null),Object(a.b)([ry],e.prototype,"onMouseUp",null),Object(a.b)([ry],e.prototype,"onMouseDown",null),Object(a.b)([ry],e.prototype,"onMouseOver",null),Object(a.b)([ry],e.prototype,"onMouseMove",null),Object(a.b)([ry],e.prototype,"onMouseOut",null),Object(a.b)([ry],e.prototype,"onContextMenu",null),Object(a.b)([ry],e.prototype,"onTouchStart",null),Object(a.b)([ry],e.prototype,"onTap",null),e}(),x_=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){for(var i=0,o=this.spliceables;i=0){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else this.renderedElements.push(o={index:t,templateData:n});this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var i=[],o=0;o=e+t&&i.push({index:r.index+n-t,templateData:r.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t-1&&this.trait.renderIndex(o,r)}},e.prototype.disposeTemplate=function(e){var t=lr(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),T_=function(){function e(e){this._trait=e,this._onChange=new zt,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new D_(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=this.indexes.filter(function(t){return t=o}).map(function(e){return e+i}));this.renderer.splice(e,t,n.length),this.set(r)},e.prototype.renderIndex=function(e,t){na(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){ta(e,this._trait)},e.prototype.set=function(e){var t=this.indexes;this.indexes=e;var n=V_(t,e);return this.renderer.renderIndexes(n),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.dispose=function(){this.indexes=null,this._onChange=_t(this._onChange)},Object(a.b)([ry],e.prototype,"renderer",null),e}(),E_=function(e){function t(t){var n=e.call(this,"focused")||this;return n.getDomId=t,n}return Object(a.c)(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),n.setAttribute("role","treeitem"),n.setAttribute("id",this.getDomId(t))},t}(T_),k_=function(){function e(e,t,n){this.trait=e,this.view=t,this.getId=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.getId)return this.trait.splice(e,t,n.map(function(e){return!1}));var o=this.trait.get().map(function(e){return i.getId(i.view.element(e))}),r=n.map(function(e){return o.indexOf(i.getId(e))>-1});this.trait.splice(e,t,r)},e}();function j_(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var A_=function(){function e(e,t,n){this.list=e,this.view=t;var i=!(!1===n.multipleSelectionSupport);this.disposables=[],this.openController=n.openController||z_;var o=Zt(Gs(t.domNode,"keydown")).filter(function(e){return!j_(e.target)}).map(function(e){return new zs(e)});o.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),o.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),o.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),o.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),o.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),o.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),i&&o.filter(function(e){return(mn.d?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus()),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(),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.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(hr(this.list.length)),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([]),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=_t(this.disposables)},e}(),O_=function(){function e(e,t){this.list=e,this.view=t,this.disposables=[],this.disposables=[],Zt(Gs(t.domNode,"keydown")).filter(function(e){return!j_(e.target)}).map(function(e){return new zs(e)}).filter(function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)}).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]).querySelector("[tabIndex]");n&&n instanceof HTMLElement&&(e.preventDefault(),e.stopPropagation(),n.focus())}}},e.prototype.dispose=function(){this.disposables=_t(this.disposables)},e}();function P_(e){return e instanceof MouseEvent&&2===e.button}var R_={isSelectionSingleChangeEvent:function(e){return mn.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey},isSelectionRangeChangeEvent:function(e){return e.browserEvent.shiftKey}},z_={shouldOpen:function(e){return!(e instanceof MouseEvent&&P_(e))}},W_=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.view=t,this.options=n,this.didJustPressContextMenuKey=!1,this.disposables=[],this.multipleSelectionSupport=!(!1===n.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=n.multipleSelectionController||R_),this.openController=n.openController||z_,t.onMouseDown(this.onMouseDown,this,this.disposables),t.onMouseClick(this.onPointer,this,this.disposables),t.onMouseDblClick(this.onDoubleClick,this,this.disposables),t.onTouchStart(this.onMouseDown,this,this.disposables),t.onTap(this.onPointer,this,this.disposables),sy.addTarget(t.domNode)}return Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return function(){for(var e=[],t=0;t0}).map(function(){var t=e.list.getFocus()[0];return{index:t,element:e.view.element(t),anchor:e.view.domElement(t)}}).filter(function(e){return!!e.anchor}).event,Zt(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.browserEvent;return{element:e.element,index:e.index,anchor:{x:t.clientX+1,y:t.clientY}}}).event)},enumerable:!0,configurable:!0}),e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):mn.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){!1===this.options.focusOnMouseDown?(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation()):document.activeElement!==e.browserEvent.target&&this.view.domNode.focus();var t=this.list.getFocus()[0],n=this.list.getSelection();if(t=void 0===t?n[0]:t,this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);var i=e.index;if(n.every(function(e){return e!==i})&&this.list.setFocus([i]),this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.options.selectOnMouseDown&&!P_(e.browserEvent)&&(this.list.setSelection([i]),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))},e.prototype.onPointer=function(e){if(!(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)||this.options.selectOnMouseDown)){var t=this.list.getFocus();this.list.setSelection(t),this.openController.shouldOpen(e.browserEvent)&&this.list.open(t,e.browserEvent)}},e.prototype.onDoubleClick=function(e){if(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e)){var t=this.list.getFocus();this.list.setSelection(t),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=hr(Math.min(t,n),Math.max(t,n)+1),o=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var i=[],o=n-1;o>=0&&e[o]===t-(n-o);)i.push(e[o--]);for(i.reverse(),o=n;o=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}n.push(e[i]=this.length)throw new Error("Invalid index "+i)}e=e.sort(Y_),this.selection.set(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.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},e.prototype.setFocus=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}e=e.sort(Y_),this.focus.set(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),n=this.view.element(t=0===t?0:t-1);if(this.getFocusedElements()[0]!==n)this.setFocus([t]);else{var i=this.view.getScrollTop();this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(t)),this.view.getScrollTop()!==i&&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);if(this.getFocusedElements()[0]!==i)this.setFocus([e]);else{var o=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==o&&setTimeout(function(){return t.focusPreviousPage()},0)}},e.prototype.focusLast=function(){0!==this.length&&this.setFocus([this.length-1])},e.prototype.focusFirst=function(){0!==this.length&&this.setFocus([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){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var n,i=this.view.getScrollTop(),o=this.view.elementTop(e),r=this.view.elementHeight(e);if(ni(t))this.view.setScrollTop((r-this.view.renderHeight)*(n=1,Math.min(Math.max(t,0),n))+o);else{var s=o+r,a=i+this.view.renderHeight;o=a&&this.view.setScrollTop(s-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);return nt+this.view.renderHeight?null:Math.abs((t-n)/(i-this.view.renderHeight))},e.prototype.getElementDomId=function(e){return this.idPrefix+"_"+e},e.prototype.isDOMFocused=function(){return this.view.domNode===document.activeElement},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i=this.length)throw new Error("Invalid index "+r)}this._onOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(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.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),na(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();na(this.view.domNode,"selection-none",0===e.length),na(this.view.domNode,"selection-single",1===e.length),na(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=_t(this.disposables)},e.InstanceCount=0,Object(a.b)([ry],e.prototype,"onFocusChange",null),Object(a.b)([ry],e.prototype,"onSelectionChange",null),Object(a.b)([ry],e.prototype,"onPin",null),e}(),G_=(dp.fromHex("#3C3C3C"),dp.fromHex("#F0F0F0"),dp.fromHex("#3C3C3C"),function(){function e(e,t,n){var i=this;this.options=n,this._callOnDispose=[],this._context=e||this,this._action=t,t instanceof eu&&this._callOnDispose.push(t.onDidChange(function(e){i.builder&&i._handleActionChangeEvent(e)}))}return e.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(e.prototype,"callOnDispose",{get:function(){return this._callOnDispose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),e.prototype.getAction=function(){return this._action},e.prototype.isEnabled=function(){return this._action.enabled},e.prototype.setActionContext=function(e){this._context=e},e.prototype.render=function(e){var t=this;this.builder=m_(e),sy.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this.builder.on(ey.Tap,function(e){return t.onClick(e)}),this.builder.on(za.MOUSE_DOWN,function(e){n||Wa.stop(e,!0),t._action.enabled&&0===e.button&&t.builder.addClass("active")}),this.builder.on(za.CLICK,function(e){Wa.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):mn.h(function(){return t.onClick(e)})}),this.builder.on([za.MOUSE_UP,za.MOUSE_OUT],function(e){Wa.stop(e),t.builder.removeClass("active")})},e.prototype.onClick=function(e){var t;Wa.stop(e,!0),ri(this._context)?t=e:(t=this._context).event=e,this._actionRunner.run(this._action,t)},e.prototype.focus=function(){this.builder&&this.builder.domFocus()},e.prototype.blur=function(){this.builder&&this.builder.domBlur()},e.prototype._updateEnabled=function(){},e.prototype._updateLabel=function(){},e.prototype._updateTooltip=function(){},e.prototype._updateClass=function(){},e.prototype._updateChecked=function(){},e.prototype.dispose=function(){this.builder&&(this.builder.destroy(),this.builder=null),this._callOnDispose=_t(this._callOnDispose)},e}()),Q_=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 Object(a.c)(t,e),t.ID="vs.actions.separator",t}(eu),X_=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 Object(a.c)(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.$e=m_("a.action-label").appendTo(this.builder),this.$e.attr(this._action.id===Q_.ID?{role:"presentation"}:this.options.isMenu?{role:"menuitem"}:{role:"button"}),this.options.label&&this.options.keybinding&&m_("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=Yo({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",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"),Qa(this.$e.getHTMLElement()))},t.prototype._updateChecked=function(){this.getAction().checked?this.$e.addClass("checked"):this.$e.removeClass("checked")},t}(G_),K_=function(e){return e[e.HORIZONTAL=0]="HORIZONTAL",e[e.HORIZONTAL_REVERSE=1]="HORIZONTAL_REVERSE",e[e.VERTICAL=2]="VERTICAL",e[e.VERTICAL_REVERSE=3]="VERTICAL_REVERSE",e}({}),J_={orientation:K_.HORIZONTAL,context:null},q_=function(){function e(e,t){void 0===t&&(t=J_);var n,i,o=this;switch(this._onDidBlur=new zt,this._onDidCancel=new zt,this._onDidRun=new zt,this._onDidBeforeRun=new zt,this.options=t,this._context=t.context,this.toDispose=[],this._actionRunner=this.options.actionRunner,this._actionRunner||(this._actionRunner=new tu,this.toDispose.push(this._actionRunner)),this.toDispose.push(this._actionRunner.onDidRun(function(e){return o._onDidRun.fire(e)})),this.toDispose.push(this._actionRunner.onDidBeforeRun(function(e){return o._onDidBeforeRun.fire(e)})),this.items=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&ea(this.domNode,"animated"),this.options.orientation){case K_.HORIZONTAL:n=15,i=17;break;case K_.HORIZONTAL_REVERSE:n=17,i=15,this.domNode.className+=" reverse";break;case K_.VERTICAL:n=16,i=18,this.domNode.className+=" vertical";break;case K_.VERTICAL_REVERSE:n=18,i=16,this.domNode.className+=" vertical reverse"}m_(this.domNode).on(za.KEY_DOWN,function(e){var t=new zs(e),r=!0;t.equals(n)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():t.equals(3)||t.equals(10)||(r=!1),r&&(t.preventDefault(),t.stopPropagation())}),m_(this.domNode).on(za.KEY_UP,function(e){var t=new zs(e);t.equals(3)||t.equals(10)?(o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}),this.focusTracker=Ha(this.domNode),this.toDispose.push(this.focusTracker.onDidBlur(function(){document.activeElement!==o.domNode&&Ea(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)})),this.toDispose.push(this.focusTracker.onDidFocus(function(){return o.updateFocusedItem()})),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.isMenu?"menubar":"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),(e instanceof c_?e.getHTMLElement():e).appendChild(this.domNode)}return Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.setAriaLabel=function(e){e?this.actionsList.setAttribute("aria-label",e):this.actionsList.removeAttribute("aria-label")},e.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)})},e.prototype.getWidth=function(e){return e>=0&&e=0&&e=0&&e0){var v=e[r-1];m=0===v.originalEndLineNumber?v.originalStartLineNumber+1:v.originalEndLineNumber+1,y=0===v.modifiedEndLineNumber?v.modifiedStartLineNumber+1:v.modifiedEndLineNumber+1}var b=g-3+1,_=f-3+1;bC&&(S+=I=C-S,x+=I),x>L&&(S+=I=L-x,x+=I),h[p++]=new $_(M,S,w,x),i[o++]=new eM(h)}var D=i[0].entries,T=[],E=0;for(r=1,s=i.length;rh)&&(h=v),0!==b&&(0===p||bg)&&(g=_)}var M=document.createElement("div");M.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary",w.appendChild(document.createTextNode(u+1+"/"+this._diffs.length+": @@ -"+d+","+(h-d+1)+" +"+p+","+(g-p+1)+" @@")),M.setAttribute("data-line",String(p)),M.setAttribute("aria-label",Yo("header","Difference {0} of {1}: original {2}, {3} lines, modified {4}, {5} lines",u+1,this._diffs.length,d,h-d+1,p,g-p+1)),M.appendChild(w),M.setAttribute("role","listitem"),c.appendChild(M);var C=p;for(f=0,m=l.length;f0&&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;return{height:Math.max(0,Math.floor(e.contentHeight*r)),top:Math.floor(t*r)}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._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.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-(t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0));return r<=i?n+Math.min(r,o):n+o-i+r},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.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-(t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0));return r<=o?n+Math.min(r,i):n+i-o+r},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.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=Object(a.b)([Object(a.d)(2,Vo),Object(a.d)(3,Wo),Object(a.d)(4,Un),Object(a.d)(5,Fo),Object(a.d)(6,mm),Object(a.d)(7,lu)],t)}(Ct),uM=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n}return Object(a.c)(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(Jf)||Xf).transparent(2),n=(e.getColor(qf)||Kf).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.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}}},t.prototype._getViewZones=function(e,t,n,i,o,r){return null},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){return null},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){return null},t}(Ct),lM=function(){function e(e){this._source=e,this._index=-1,this.advance()}return e.prototype.advance=function(){this._index++,this.current=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 lM(this.modifiedForeignVZ),c=new lM(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)):(r=i+=1e7+n,s=o+=1e7+t);for(var g,f=[],m=[];l.current&&l.current.afterLineNumber<=s;)f.push({afterLineNumber:l.current.afterLineNumber<=o?i-o+l.current.afterLineNumber:r,heightInLines:l.current.heightInLines,domNode:null}),l.advance();for(;c.current&&c.current.afterLineNumber<=r;)m.push({afterLineNumber:c.current.afterLineNumber<=i?o-i+c.current.afterLineNumber:s,heightInLines:c.current.heightInLines,domNode:null}),c.advance();null!==p&&yM(p)&&(g=this._produceOriginalFromDiff(p,n,t))&&f.push(g),null!==p&&vM(p)&&(g=this._produceModifiedFromDiff(p,n,t))&&m.push(g);var y=0,v=0;for(f=f.sort(a),m=m.sort(a);y=_.heightInLines?(b.heightInLines-=_.heightInLines,v++):(_.heightInLines-=b.heightInLines,y++)}for(;y2*t.MINIMUM_EDITOR_WIDTH?(in-t.MINIMUM_EDITOR_WIDTH&&(i=n-t.MINIMUM_EDITOR_WIDTH)):i=o,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-aM.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,o){return new gM(e,t,n).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;ut?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(cM),fM=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())})),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){return new mM(e,t,n,i,o,r).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=0,u=e.length;a']));var h=document.createElement("div");h.className="view-lines line-delete",h.innerHTML=a.build(),Ig.applyFontInfoSlow(h,this.modifiedEditorConfiguration.fontInfo);var p=document.createElement("div");return p.className="inline-deleted-margin-view-zone",p.innerHTML=u.join(""),Ig.applyFontInfoSlow(p,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,domNode:h,marginDomNode:p}},t.prototype.renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineContent(o),u=yy.filter(r,o,1,a.length+1),l=new Uint32Array(2);l[0]=a.length,l[1]=16793600;var c=new Vc(l,a);s.appendASCIIString('
'),Sy(new Ly(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,a,t.mightContainRTL(),0,c,u,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),s),s.appendASCIIString("
")},t}(cM);function yM(e){return e.modifiedEndLineNumber>0}function vM(e){return e.originalEndLineNumber>0}wm(function(e,t){var n=e.getColor(Jf);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(qf);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor($f);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px dashed "+o+"; }");var r=e.getColor(em);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px dashed "+r+"; }");var s=e.getColor(Nf);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }")});var bM,_M,MM,wM=Qn("themeService");function CM(e){!function(e,t){bM&&(e.textContent===t&&(t=Yo("repeated","{0} (occurred again)",t)),Xs(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible")}(_M,e)}n("KL86");var LM=0,NM=!1,IM=function(e){function t(t,n,i,o,r,s,a,u){var l,c=this;return(n=n||{}).ariaLabel=n.ariaLabel||Yo("editorViewAccessibleLabel","Editor content"),n.ariaLabel=n.ariaLabel+";"+(Is?Yo("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."):Yo("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")),c=e.call(this,t,n,i,o,r,s,u)||this,a instanceof _u&&(c._standaloneKeybindingService=a),NM||(NM=!0,l=document.body,(bM=document.createElement("div")).className="monaco-aria-container",(_M=document.createElement("div")).className="monaco-alert",_M.setAttribute("role","alert"),_M.setAttribute("aria-atomic","true"),bM.appendChild(_M),(MM=document.createElement("div")).className="monaco-status",MM.setAttribute("role","status"),MM.setAttribute("aria-atomic","true"),bM.appendChild(MM),l.appendChild(bM)),c}return Object(a.c)(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_"+ ++LM,o=To.deserialize(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"),bt;var n=e.id,i=e.label,o=To.and(To.equals("editorId",this.getId()),To.deserialize(e.precondition)),r=e.keybindings,s=To.and(o,To.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return e.run(t)||Nt.b.as(void 0)},c=[],d=this.getId()+":"+n;c.push(hi.registerCommand(d,l)),a&&c.push(ru.appendMenuItem(iu.EditorContext,{command:{id:d,title:i},when:o,group:a,order:u})),Array.isArray(r)&&(c=c.concat(r.map(function(e){return t._standaloneKeybindingService.addDynamicKeybinding(d,e,l,s)})));var h=new Kb(d,i,i,o,l,this._contextKeyService);return this._actions[n]=h,c.push({dispose:function(){delete t._actions[n]}}),Mt(c)},Object(a.b)([Object(a.d)(2,Un),Object(a.d)(3,Fo),Object(a.d)(4,di),Object(a.d)(5,Wo),Object(a.d)(6,pi),Object(a.d)(7,mm)],t)}(o_),SM=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=this;"string"==typeof(n=n||{}).theme&&c.setTheme(n.theme);var h=n.model;return delete n.model,(d=e.call(this,t,n,o,r,s,a,u,c)||this)._contextViewService=l,d._register(i),"undefined"==typeof h?(h=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),d._ownsModel=!0):d._ownsModel=!1,d._attachModel(h),h&&d._onDidChangeModel.fire({oldModelUrl:null,newModelUrl:h.uri}),d}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._view&&this._contextViewService.setContainer(this._view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Fo),Object(a.d)(5,di),Object(a.d)(6,Wo),Object(a.d)(7,pi),Object(a.d)(8,Kn),Object(a.d)(9,wM)],t)}(IM),xM=function(e){function t(t,n,i,o,r,s,a,u,l,c,d){var h=this;return"string"==typeof(n=n||{}).theme&&(n.theme=c.setTheme(n.theme)),(h=e.call(this,t,n,u,r,o,l,c,d)||this)._contextViewService=a,h._register(i),h._contextViewService.setContainer(h._containerDomElement),h}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(IM,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)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Wo),Object(a.d)(5,pi),Object(a.d)(6,Kn),Object(a.d)(7,Vo),Object(a.d)(8,Fo),Object(a.d)(9,wM),Object(a.d)(10,lu)],t)}(aM),DM=(n("czDl"),n("9Dq5"),function(){function e(e,t,n){void 0===n&&(n={}),m_(e).addClass("monaco-menu-container");var i=m_(".monaco-menu").appendTo(e);this.actionBar=new q_(i,{orientation:K_.VERTICAL,actionItemProvider:n.actionItemProvider,context:n.context,actionRunner:n.actionRunner,isMenu:!0}),this.actionBar.push(t,{icon:!0,label:!0})}return Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this.actionBar.onDidCancel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.actionBar.onDidBlur},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this.actionBar.focus(!0)},e.prototype.dispose=function(){this.actionBar&&(this.actionBar.dispose(),this.actionBar=null),this.listener&&(this.listener.dispose(),this.listener=null)},e}()),TM=function(){function e(e,t,n,i){var o=this;this.setContainer(e),this.contextViewService=t,this.telemetryService=n,this.notificationService=i,this.actionRunner=new tu,this.menuContainerElement=null,this.toDispose=[];var r=!1;this.toDispose.push(this.actionRunner.onDidBeforeRun(function(e){o.telemetryService&&o.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),(r=!!e.retainActionItem)||o.contextViewService.hideContextView(!1)})),this.toDispose.push(this.actionRunner.onDidRun(function(e){r&&o.contextViewService.hideContextView(!1),r=!1,e.error&&o.notificationService&&o.notificationService.error(e.error)}))}return e.prototype.setContainer=function(e){var t=this;this.$el&&(this.$el.off(["click","mousedown"]),this.$el=null),e&&(this.$el=m_(e),this.$el.on("mousedown",function(e){return t.onMouseDown(e)}))},e.prototype.showContextMenu=function(e){var t=this;e.getActions().done(function(n){t.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,render:function(i){t.menuContainerElement=i;var o=e.getMenuClassName?e.getMenuClassName():"";o&&(i.className+=" "+o);var r=new DM(i,n,{actionItemProvider:e.getActionItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:t.actionRunner}),s=r.onDidCancel(function(){t.contextViewService.hideContextView(!0)}),a=r.onDidBlur(function(){t.contextViewService.hideContextView(!0)});return r.focus(),Mt([s,a,r])},onHide:function(n){e.onHide&&e.onHide(n),t.menuContainerElement=null}})})},e.prototype.onMouseDown=function(e){if(this.menuContainerElement){for(var t=new Ys(e).target;t;){if(t===this.menuContainerElement)return;t=t.parentElement}this.contextViewService.hideContextView()}},e.prototype.dispose=function(){this.setContainer(null)},e}(),EM=function(){function e(e,t,n,i){this._onDidContextMenu=new zt,this.contextMenuHandler=new TM(e,i,t,n)}return e.prototype.dispose=function(){this.contextMenuHandler.dispose()},e.prototype.setContainer=function(e){this.contextMenuHandler.setContainer(e)},e.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},Object.defineProperty(e.prototype,"onDidContextMenu",{get:function(){return this._onDidContextMenu.event},enumerable:!0,configurable:!0}),e}(),kM=(n("+Tn7"),function(e){return e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e}({})),jM=function(e){return e[e.BELOW=0]="BELOW",e[e.ABOVE=1]="ABOVE",e}({}),AM=function(){function e(e){var t=this;this.$view=m_(".context-view").hide(),this.setContainer(e),this.toDispose=[{dispose:function(){t.setContainer(null)}}],this.toDisposeOnClean=null}return e.prototype.setContainer=function(t){var n=this;this.$container&&(this.$container.getHTMLElement().removeChild(this.$view.getHTMLElement()),this.$container.off(e.BUBBLE_UP_EVENTS),this.$container.off(e.BUBBLE_DOWN_EVENTS,!0),this.$container=null),t&&(this.$container=m_(t),this.$view.appendTo(this.$container),this.$container.on(e.BUBBLE_UP_EVENTS,function(e){n.onDOMEvent(e,document.activeElement,!1)}),this.$container.on(e.BUBBLE_DOWN_EVENTS,function(e){n.onDOMEvent(e,document.activeElement,!0)},null,!0))},e.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()},e.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},e.prototype.doLayout=function(){var e,t=this.delegate.getAnchor();if(Ra(t)){var n=Na(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||0,height:t.height||0};var i={top:Ia.scrollY,left:Ia.scrollX,height:window.innerHeight,width:window.innerWidth},o=this.$view.getTotalSize(),r=this.delegate.anchorPosition||jM.BELOW,s=this.delegate.anchorAlignment||kM.LEFT,a=function(e,t,n,i,o){var r,s,a,u,l=function(e,t,n,i){return t?e:i?n:e},c=function(e,t,n,i,o){return o?l(e,t,n,i):l(n,i,e,t)};return{top:(s=t.top+t.height,c(r=t.top-e.height,r>=n.top&&r+e.height<=n.top+n.height,s,s>=n.top&&s+e.height<=n.top+n.height,i===jM.ABOVE)),left:(u=t.left+t.width-e.width,c(a=t.left,a>=n.left&&a+e.width<=n.left+n.width,u,u>=n.left&&u+e.width<=n.left+n.width,o===kM.LEFT))}}({width:o.width,height:o.height},e,i,r,s),u=Na(this.$container.getHTMLElement());a.top-=u.top,a.left-=u.left,this.$view.removeClass("top","bottom","left","right"),this.$view.addClass(r===jM.BELOW?"bottom":"top"),this.$view.addClass(s===kM.LEFT?"left":"right"),this.$view.style({top:a.top+"px",left:a.left+"px",width:"initial"})},e.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()},e.prototype.isVisible=function(){return!!this.delegate},e.prototype.onDOMEvent=function(e,t,n){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):n&&!Ea(e.target,this.$container.getHTMLElement())&&this.hide())},e.prototype.dispose=function(){this.hide(),this.toDispose=_t(this.toDispose)},e.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],e.BUBBLE_DOWN_EVENTS=["click"],e}(),OM=Qn("logService"),PM=function(e){return e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off",e}({}),RM=function(){function e(){this.onDidChangeLogLevel=(new zt).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return PM.Info},e.prototype.trace=function(e){for(var t=[],n=1;n0?i[0].index:n.length;if(n.length!==l){console.warn("[createInstance] First service dependency of "+e.ctor.name+" at position "+(l+1)+" conflicts with "+n.length+" static arguments");var c=l-n.length;n=c>0?n.concat(new Array(c)):n.slice(0,l)}var d=[e.ctor];return d.push.apply(d,n),d.push.apply(d,o),(function(e){for(var t=[],n=1;n100&&i();for(var a=0,u=Bn.getServiceDependencies(s.desc.ctor);a0?r:1,startColumn:s=s>0?s:1,endLineNumber:a=a>=r?a:r,endColumn:u=u>0?u:s,relatedInformation:n.relatedInformation}},e.prototype.changeAll=function(t,n){var i=[],o=this._byOwner[t];if(o)for(var r in delete this._byOwner[t],o){var s=UM.get(this._byResource,r,t)[0];s&&i.push(s.resource),UM.remove(this._byResource,r,t)}if(!ur(n)){for(var a=Object.create(null),u=0,l=n;u0&&this._onMarkerChanged.fire(i)},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){if(b=UM.get(this._byResource,i.toString(),n)){for(var s=[],a=0,u=b;a0&&c===r)break}}return s}return[]}if(n||i){var d=n?this._byOwner[n]:this._byResource[i.toString()];if(!d)return[];for(var h in s=[],d)for(var p=0,g=d[h];p0&&c===r))return s;return s}for(var f in s=[],this._byResource)for(var m in this._byResource[f])for(var y=0,v=this._byResource[f][m];y0&&c===r))return s}return s},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i0||this.m_modifiedCount>0)&&this.m_changes.push(new aw(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}(),pw=Object.prototype.hasOwnProperty,gw=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&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){var r=void 0;return n<=i?(cw.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new aw(e,0,n,i-n+1)]):e<=t?(cw.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new aw(e,t-e+1,n,0)]):(cw.Assert(e===t+1,"originalStart should only be one more than originalEnd"),cw.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,i,s,a,o),l=s[0],c=a[0];if(null!==u)return u;if(!o[0]){var d,h=this.ComputeDiffRecursive(e,l,n,c,o);return d=o[0]?[new aw(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,o),this.ConcatenateChanges(h,d)}return[new aw(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,g,f,m,y){var v,b,_=null,M=new hw,w=t,C=n,L=h[0]-f[0]-i,N=Number.MIN_VALUE,I=this.m_forwardHistory.length-1;do{(b=L+e)===w||b=0&&(e=(u=this.m_forwardHistory[I])[0],w=1,C=u.length-1)}while(--I>=-1);if(v=M.getReverseChanges(),y[0]){var S=h[0]+1,x=f[0]+1;if(null!==v&&v.length>0){var D=v[v.length-1];S=Math.max(S,D.getOriginalEnd()),x=Math.max(x,D.getModifiedEnd())}_=[new aw(S,d-S+1,x,g-x+1)]}else{M=new hw,w=r,C=s,L=h[0]-f[0]-a,N=Number.MAX_VALUE,I=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(b=L+o)===w||b=l[b+1]?(p=(c=l[b+1]-1)-L-a,c>N&&M.MarkNextChange(),N=c+1,M.AddOriginalElement(c+1,p+1),L=b+1-o):(p=(c=l[b-1])-L-a,c>N&&M.MarkNextChange(),N=c,M.AddModifiedElement(c+1,p+1),L=b-1-o),I>=0&&(o=(l=this.m_reverseHistory[I])[0],w=1,C=l.length-1)}while(--I>=-1);_=M.getChanges()}return this.ConcatenateChanges(v,_)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,r,s){var a,u,l,c=0,d=0,h=0,p=0;e--,n--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g,f,m=t-e+(i-n),y=m+1,v=new Array(y),b=new Array(y),_=i-n,M=t-e,w=e-n,C=t-i,L=(M-_)%2==0;for(v[_]=e,b[M]=t,s[0]=!1,l=1;l<=m/2+1;l++){var N=0,I=0;for(c=this.ClipDiagonalBound(_-l,l,_,y),d=this.ClipDiagonalBound(_+l,l,_,y),g=c;g<=d;g+=2){for(u=(a=g===c||gN+I&&(N=a,I=u),!L&&Math.abs(g-M)<=l-1&&a>=b[g])return o[0]=a,r[0]=u,f<=b[g]&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):null}var S=(N-e+(I-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(N,this.OriginalSequence,S))return s[0]=!0,o[0]=N,r[0]=I,S>0&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):[new aw(++e,t-e+1,++n,i-n+1)];for(h=this.ClipDiagonalBound(M-l,l,M,y),p=this.ClipDiagonalBound(M+l,l,M,y),g=h;g<=p;g+=2){for(u=(a=g===h||g=b[g+1]?b[g+1]-1:b[g-1])-(g-M)-C,f=a;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(b[g]=a,L&&Math.abs(g-_)<=l&&a<=v[g])return o[0]=a,r[0]=u,f>=v[g]&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):null}if(l<=1447){var x=new Array(d-c+2);x[0]=_-c+1,dw.Copy(v,c,x,1,d-c+1),this.m_forwardHistory.push(x),(x=new Array(p-h+2))[0]=M-h+1,dw.Copy(b,h,x,1,p-h+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s)},e.prototype.ShiftChanges=function(e){var t;do{t=!1;for(var n=0;n0,a=i.modifiedLength>0;i.originalStart+i.originalLength=0;n--){if(i=e[n],o=0,r=0,n>0){var c=e[n-1];c.originalLength>0&&(o=c.originalStart+c.originalLength),c.modifiedLength>0&&(r=c.modifiedStart+c.modifiedLength)}s=i.originalLength>0,a=i.modifiedLength>0;for(var d=0,h=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength),p=1;;p++){var g=i.originalStart-p,f=i.modifiedStart-p;if(gh&&(h=m,d=p)}i.originalStart-=d,i.modifiedStart-=d}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this.OriginalSequence.getLength()-1||/^\s*$/.test(this.OriginalSequence.getElementHash(e))},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this.ModifiedSequence.getLength()-1||/^\s*$/.test(this.ModifiedSequence.getElementHash(e))},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)},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),dw.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],dw.Copy(t,1,i,e.length,t.length-1),i):(i=new Array(e.length+t.length),dw.Copy(e,0,i,0,e.length),dw.Copy(t,0,i,e.length,t.length),i)},e.prototype.ChangesOverlap=function(e,t,n){if(cw.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),cw.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 i=e.originalLength,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new aw(e.originalStart,i,e.modifiedStart,o),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e1&&g>1&&d.charCodeAt(p-2)===h.charCodeAt(g-2);)p--,g--;(p>1||g>1)&&this._pushTrimWhitespaceCharChange(o,r+1,1,p,s+1,1,g);for(var f=vw._getLastNonBlankColumn(d,1),m=vw._getLastNonBlankColumn(h,1),y=d.length+1,v=h.length+1;ft&&(t=l),s>n&&(n=s),a>n&&(n=a)}var u=new Md(++n,++t,0);for(i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)},e}(),Lw=null,Nw=null,Iw=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break;r--}while(r>i);if(i>0){var a=t.charCodeAt(i-1),u=t.charCodeAt(r);(40===a&&41===u||91===a&&93===u||123===a&&125===u)&&r--}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=(null===Lw&&(Lw=new Cw([[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]])),Lw),i=function(){if(null===Nw){Nw=new Id(0);for(var e=0;e<" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026".length;e++)Nw.set(" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026".charCodeAt(e),1);for(e=0;e<".,;".length;e++)Nw.set(".,;".charCodeAt(e),2)}return Nw}(),o=[],r=1,s=t.getLineCount();r<=s;r++){for(var a=t.getLineContent(r),u=a.length,l=0,c=0,d=0,h=1,p=!1,g=!1,f=!1;l=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),xw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=Fc(e.column,Wc(t),this._lines[e.lineNumber-1],0);return n?new sn(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype._getAllWords=function(e){var t=this,n=[];return this._lines.forEach(function(i){t._wordenize(i,e).forEach(function(e){n.push(i.substring(e.start,e.end))})}),n},t.prototype.getAllUniqueWords=function(e,t){var n=!1,i=Object.create(null);return this._getAllWords(e).filter(function(e){return t&&!n&&t===e?(n=!0,!1):!i[e]&&(i[e]=!0,!0)})},t.prototype._wordenize=function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;rthis._lines.length)n=this._lines[(t=this._lines.length)-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}(ww),Dw=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._models=Object.create(null)},t.prototype._getModel=function(e){return this._models[e]},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach(function(n){return t.push(e._models[n])}),t},t.prototype.acceptNewModel=function(e){this._models[e.url]=new xw(Tn.parse(e.url),e.lines,e.EOL,e.versionId)},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},t}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var r=i.getLinesContent(),s=o.getLinesContent(),a=new Mw(r,s,{shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return Nt.b.as(a.computeDiff())},e.prototype.computeDirtyDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var r=i.getLinesContent(),s=o.getLinesContent(),a=new Mw(r,s,{shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return Nt.b.as(a.computeDiff())},e.prototype.computeMoreMinimalEdits=function(t,n){var i=this._getModel(t);if(!i)return Nt.b.as(n);for(var o,r=[],s=0,a=n;se._diffLimit)r.push({range:l,text:c});else for(var p=lw(h,c,!1),g=i.offsetAt(sn.lift(l).getStartPosition()),f=0,m=p;fkw&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Ww(this._modelService,"editorWorkerService")),Nt.b.as(this._editorWorkerClient)},t}(Ct),Rw=function(e){function t(t,n,i){var o=e.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=n,!i){var r=new bs;r.cancelAndSet(function(){return o._checkStopModelSync()},Math.round(Ew/2)),o._register(r)}return o}return Object(a.c)(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)_t(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;tEw&&t.push(n);for(var i=0;i=0}}(e);Bw.push(n),n.userConfigured?Yw.push(n):Vw.push(n),t&&!n.userConfigured&&Bw.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})}function Uw(e,t,n){for(var i,o,r,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)&&tl(a.filepatternLowercase,a.filepatternOnPath?e:t)&&(o=a),a.extension&&(!r||a.extension.length>r.extension.length)&&Ai(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}var Gw=new(function(){function e(){this._onDidAddLanguages=new zt,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}());Fr.add("editor.modesRegistry",Gw);var Qw=new cl("plaintext",1);Gw.registerLanguage({id:"plaintext",extensions:[".txt",".gitignore"],aliases:[Yo("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Bc.register(Qw,{brackets:[["(",")"],["[","]"],["{","}"]]});var Xw=Object.prototype.hasOwnProperty,Kw=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this;this._nextLanguageId=1,this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},this._languageIds=[],this._warnOnOverwrite=t,e&&(this._registerLanguages(Gw.getLanguages()),Gw.onDidAddLanguages(function(e){return n._registerLanguages(e)}))}return e.prototype._registerLanguages=function(e){var t=this;if(0!==e.length){for(var n=0;n0&&((m=e.mimetypes).push.apply(m,t.mimetypes),i=t.mimetypes[0]),i||e.mimetypes.push(i="text/x-"+n),Array.isArray(t.extensions))for(var o=0,r=t.extensions;o0){var h=t.firstLine;"^"!==h.charAt(0)&&(h="^"+h);try{var p=new RegExp(h);Pi(p)||Zw({id:n,mime:i,firstline:p},this._warnOnOverwrite)}catch(e){xt(e)}}e.aliases.push(n);var g=null;if("undefined"!=typeof t.aliases&&Array.isArray(t.aliases)&&(g=0===t.aliases.length?[null]:t.aliases),null!==g)for(var f=0;f0;y&&null===g[0]||!y&&e.name||(e.name=(y?g[0]:null)||n),"string"==typeof t.configuration&&e.configurationFiles.push(t.configuration)},e.prototype.isRegisteredMode=function(e){return!!Xw.call(this._mimeTypesMap,e)||Xw.call(this._languages,e)},e.prototype.getRegisteredModes=function(){return Object.keys(this._languages)},e.prototype.getRegisteredLanguageNames=function(){return Object.keys(this._nameMap)},e.prototype.getLanguageName=function(e){return Xw.call(this._languages,e)?this._languages[e].name:null},e.prototype.getModeIdForLanguageNameLowercase=function(e){return Xw.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},e.prototype.getConfigurationFiles=function(e){return Xw.call(this._languages,e)&&this._languages[e].configurationFiles||[]},e.prototype.getMimeForMode=function(e){return Xw.call(this._languages,e)&&this._languages[e].mimetypes[0]||null},e.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map(function(e){return e.trim()}).map(function(e){return Xw.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e}).filter(function(e){return Xw.call(t._languages,e)}):[]},e.prototype.getLanguageIdentifier=function(e){if("vs.editor.nullMode"===e||0===e)return fc;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIds[e]))return null;return Xw.call(this._languages,t)?this._languages[t].identifier:null},e.prototype.getModeIdsFromLanguageName=function(e){return e&&Xw.call(this._nameMap,e)?[this._nameMap[e].language]:[]},e.prototype.getModeIdsFromFilenameOrFirstLine=function(e,t){if(!e&&!t)return[];var n=function(e,t){if(!e)return["application/unknown"];var n=yr(e=e.toLowerCase()),i=Uw(e,n,Yw);if(i)return[i,"text/plain"];var o=Uw(e,n,Vw);if(o)return[o,"text/plain"];if(t){var r=function(e){if(Lo(e)&&(e=e.substr(1)),e.length>0)for(var t=0;t0)return n.mime}}return null}(t);if(r)return[r,"text/plain"]}return["application/unknown"]}(e,t);return this.extractModeIds(n.join(","))},e.prototype.getExtensions=function(e){return Xw.call(this._nameMap,e)?this._languages[this._nameMap[e].language].extensions:[]},e.prototype.getFilenames=function(e){return Xw.call(this._nameMap,e)?this._languages[this._nameMap[e].language].filenames:[]},e}(),Jw=function(){function e(e){void 0===e&&(e=!1),this._onDidCreateMode=new zt,this.onDidCreateMode=this._onDidCreateMode.event,this._instantiatedModes={},this._registry=new Kw(!0,e)}return e.prototype._onReady=function(){return Nt.b.as(!0)},e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getRegisteredModes=function(){return this._registry.getRegisteredModes()},e.prototype.getRegisteredLanguageNames=function(){return this._registry.getRegisteredLanguageNames()},e.prototype.getExtensions=function(e){return this._registry.getExtensions(e)},e.prototype.getFilenames=function(e){return this._registry.getFilenames(e)},e.prototype.getMimeForMode=function(e){return this._registry.getMimeForMode(e)},e.prototype.getLanguageName=function(e){return this._registry.getLanguageName(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilenameOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilenameOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.getConfigurationFiles=function(e){return this._registry.getConfigurationFiles(e)},e.prototype.getMode=function(e){for(var t=this._registry.extractModeIds(e),n=!1,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 Hw(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),qw=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this},e}();function $w(e){return eC(e)?!e.value:!Array.isArray(e)||e.every($w)}function eC(e){return e instanceof qw||!(!e||"object"!=typeof e)&&"string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted)}function tC(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted}function nC(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}var iC=function(){function e(){}return e.insert=function(e,t){return{range:new sn(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}();function oC(e){return e.toString()}var rC=function(){function e(e,t,n){this.model=e,this._markerDecorations=[],this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return n(e,t)}))}return e.prototype.dispose=function(){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,[]),this._modelEventListeners=_t(this._modelEventListeners),this.model=null},e.prototype.acceptMarkerDecorations=function(e){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,e)},e}(),sC=function(){function e(){}return e.setMarkers=function(e,t){var n=this,i=t.read({resource:e.model.uri,take:500}).map(function(t){return{range:n._createDecorationRange(e.model,t),options:n._createDecorationOption(t)}});e.acceptMarkerDecorations(i)},e._createDecorationRange=function(e,t){var n=sn.lift(t);if(t.severity===HM.Hint&&sn.spansMultipleLines(n)&&(n=n.setEndPosition(n.startLineNumber,n.startColumn)),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new sn(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new sn(n.startLineNumber,o-1,n.endLineNumber,o):new sn(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r0?(r=new sn(o+1,1,n-a+1,1),s=new sn(o+1,1,i-a+1,1)):o>0?(r=new sn(o,e.getLineMaxColumn(o),n,e.getLineMaxColumn(n)),s=new sn(o,1+t.getLineLength(o),i,1+t.getLineLength(i))):(r=new sn(1,1,n,e.getLineMaxColumn(n)),s=new sn(1,1,i,1+t.getLineLength(i))),[iC.replaceMove(r,t.getValueInRange(s,Du.TextDefined))]},e.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),!t||Nt.b.is(t)?(o=this._createModelData(e,Qw,n,i),this.setMode(o.model,t)):o=this._createModelData(e,t.getLanguageIdentifier(),n,i),this._markerService&&sC.setMarkers(o,this._markerService),this._onModelAdded.fire(o.model),o.model},e.prototype.setMode=function(e,t){t&&(Nt.b.is(t)?t.then(function(t){e.isDisposed()||e.setMode(t.getLanguageIdentifier())}):e.setMode(t.getLanguageIdentifier()))},e.prototype.destroyModel=function(e){var t=this._models[oC(e)];t&&t.model.dispose()},e.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},e.prototype._removeCSS=function(){Pa(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","letterSpacing"],t),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!=typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!=typeof e.contentIconPath&&t.push(Ni(gC.contentIconPath,"string"==typeof e.contentIconPath?Tn.file(e.contentIconPath).toString().replace(/'/g,"%27"):Tn.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ni(gC.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!=typeof e.gutterIconPath&&(t.push(Ni(gC.gutterIconPath,"string"==typeof e.gutterIconPath?Tn.file(e.gutterIconPath).toString():Tn.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),"undefined"!=typeof e.gutterIconSize&&t.push(Ni(gC.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ni("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;ot?1:0}(e.token,t.token);return 0!==n?n:e.index-t.index});for(var t=0,n="000000",i="ffffff";e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(t=o.fontStyle),null!==o.foreground&&(n=o.foreground),null!==o.background&&(i=o.background)}for(var r=new EC,s=new AC(t,r.getId(n),r.getId(i)),a=new PC(s),u=0,l=e.length;u>>0)}return(n|e<<0)>>>0},e}(),jC=/\b(comment|string|regex)\b/,AC=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),OC=function(){return function(e,t){this.mainRule=e,this.children=t||Object.create(null)}}(),PC=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 OC(this._mainRule,e)},e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(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){var r,s,a=t.indexOf(".");-1===a?(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)}else this._mainRule.acceptOverwrite(n,i,o)},e}(),RC={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(xC={},xC[Tf]="#FFFFFE",xC[Ef]="#000000",xC[Pf]="#E5EBF1",xC[Tm]="#D3D3D3",xC[Rf]="#ADD6FF4D",xC)},zC={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(DC={},DC[Tf]="#1E1E1E",DC[Ef]="#D4D4D4",DC[Pf]="#3A3D41",DC[Tm]="#404040",DC[Rf]="#ADD6FF26",DC)},WC={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(TC={},TC[Tf]="#000000",TC[Ef]="#FFFFFF",TC[Tm]="#FFFFFF",TC)},FC="vs",HC="vs-dark",BC="hc-black",VC=Fr.as(Wg),YC=Fr.as("base.contributions.theming"),ZC=function(){function e(e,t,n,i){for(var o in t.length>0?(this.id=e+" "+t,this.themeName=t):(this.id=e,this.themeName=e),this.base=e,this.rules=i,this.colors={},n)this.colors[o]=dp.fromHex(n[o]);this.defaultColors={}}return e.prototype.getColor=function(e,t){return this.colors.hasOwnProperty(e)?this.colors[e]:!1!==t?this.getDefault(e):null},e.prototype.getDefault=function(e){if(this.defaultColors.hasOwnProperty(e))return this.defaultColors[e];var t=VC.resolveDefaultColor(e,this);return this.defaultColors[e]=t,t},e.prototype.defines=function(e){return this.colors.hasOwnProperty(e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case FC:return"light";case BC:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){return this._tokenTheme||(this._tokenTheme=kC.createFromRawTokenTheme(this.rules)),this._tokenTheme},enumerable:!0,configurable:!0}),e}();function UC(e){return e===FC||e===HC||e===BC}function GC(e){switch(e){case FC:return RC;case HC:return zC;case BC:return WC}}function QC(e){var t=GC(e);return new ZC(e,"",t.colors,t.rules)}var XC=function(){function e(){this._onThemeChange=new zt,this._knownThemes=new Map,this._knownThemes.set(FC,QC(FC)),this._knownThemes.set(HC,QC(HC)),this._knownThemes.set(BC,QC(BC)),this._styleElement=ja(),this._styleElement.className="monaco-colors",this.setTheme(FC)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e)||UC(e))throw new Error("Illegal theme name!");if(!UC(t.base))throw new Error("Illegal theme base!");var n=[],i={};if(t.inherit){var o=GC(t.base);for(var r in n=n.concat(o.rules),o.colors)i[r]=o.colors[r]}for(var r in n=n.concat(t.rules),t.colors)i[r]=t.colors[r];this._knownThemes.set(e,new ZC(t.base,e,i,n))},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(FC),this._theme=t;var n=[],i={},o={addRule:function(e){i[e]||(n.push(e),i[e]=!0)}};YC.getThemingParticipants().forEach(function(e){return e(t,o)});var r=t.tokenTheme.getColorMap();return o.addRule(function(e){for(var t=[],n=1,i=e.length;n=0;t--){var n=this._arr[t];if(e.equals(n.keybinding))return n.callback}return null},e}(),nL=function(){function e(e){void 0===e&&(e={clickBehavior:$C.ON_MOUSE_DOWN,keyboardSupport:!0,openMode:eL.SINGLE_CLICK});var t=this;this.options=e,this.downKeyBindingDispatcher=new tL,this.upKeyBindingDispatcher=new tL,("boolean"!=typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(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)}),mn.d&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(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.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),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===$C.ON_MOUSE_DOWN&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(ka(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){return mn.d&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(this.options.clickBehavior!==$C.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},r=n,s="mouse"===i&&2===r.detail;return e.getInput()===t?(e.clearFocus(o),e.clearSelection(o)):(n&&r.browserEvent&&"mousedown"===r.browserEvent.type||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],o),e.setFocus(t,o),(this.openOnSingleClick||s||this.isClickOnTwistie(r))&&(e.isExpanded(t)?e.collapse(t).done(null,xt):e.expand(t).done(null,xt))),!0},e.prototype.setOpenMode=function(e){this.options.openMode=e},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===eL.SINGLE_CLICK},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;return t&&"content"===t.className&&$s(t.parentElement,"monaco-tree-row")},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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)}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,xt)}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}(),iL=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}(),oL=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),rL=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),sL=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),aL=function(){function e(e){this._onDispose=new zt,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=null)},e}(),uL=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,i,o=this,r=this.getLock(e);return r?new Nt.b(function(i,s){var a;n=(a=r.onDispose,function(e,t,n){void 0===t&&(t=null);var i=a(function(n){return i.dispose(),e.call(t,n)},null,n);return i})(function(){return o.run(e,t).then(i,s)})},function(){n.dispose()}):new Nt.b(function(n,r){if(e.isDisposed())return r(new Error("Item is disposed."));var s=o.locks[e.id]=new aL(e);return i=t().then(function(t){return delete o.locks[e.id],s.dispose(),t}).then(n,r)},function(){return i.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}(),lL=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new Wt,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new Wt,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new Wt,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new Wt,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new Wt,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new Wt,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new Wt,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new Wt,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new Wt,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new Wt,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new Wt,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){Wr(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Mt([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){Wr(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),cL=function(){function e(e,t,n,i,o){this._onDidCreate=new zt,this.onDidCreate=this._onDidCreate.event,this._onDidReveal=new zt,this.onDidReveal=this._onDidReveal.event,this._onExpand=new zt,this.onExpand=this._onExpand.event,this._onDidExpand=new zt,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new zt,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new zt,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new zt,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new zt,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new zt,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new zt,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new zt,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new zt,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,o),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null),this._onDidReveal.fire({item:this,relativeTop:e})},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Nt.b.as(!1):this.lock.run(this,function(){var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Nt.b.as(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).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)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Nt.b.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)?Nt.b.as(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Nt.b.as(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=!1),!i&&!this.isExpanded())return this.needsChildrenRefresh=!0,Nt.b.as(this);this.needsChildrenRefresh=!1;var r=function(){var i={item:o,isNested:n};return o._onRefreshChildren.fire(i),(o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Nt.b.as([])).then(function(n){if(o.isDisposed()||o.registry.isDisposed())return Nt.b.as(null);if(!Array.isArray(n))return Nt.b.wrapError(new Error("Please return an array of children."));n=n?n.slice(0):[],n=o.sort(n);for(var i={};null!==o.firstChild;)i[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=n.length;r0?o[0]:this.input,s=this.getNavigator(r,!1),a=0;a0?n[0]:this.input,!1).parent();i&&(t?this.setSelection([i],e):this.select(i,e))},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},e.prototype.isFocused=function(e){var t=this.getItem(e);return!!t&&t.hasTrait("focused")},e.prototype.getFocus=function(e){var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.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},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,n,i,o=null,r=0;t=e.next();){if(!(n=this.heightMap[i=this.indexes[t]]))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},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=null,this.indexes=null},e}(),CL=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}(),LL=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return Object(a.c)(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(CL),NL=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return Object(a.c)(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(CL),IL=function(e){return e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e}({}),SL=function(e){return e[e.BUBBLE_DOWN=0]="BUBBLE_DOWN",e[e.BUBBLE_UP=1]="BUBBLE_UP",e}({}),xL=function(){function e(e){this.context=e,this._cache={"":[]}}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){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},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]})},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null,this.context=null},e}(),DL=function(){function e(e,t){var n=this;this.width=0,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"];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");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var r=Io(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",r)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");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 s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=oa(this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),!e&&this.element){var a=window.getComputedStyle(this.element),u=parseFloat(a.paddingLeft);this.context.horizontalScrolling&&(this.element.style.width="fit-content"),this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData),this.context.horizontalScrolling&&(this.width=xa(this.element)+u,this.element.style.width="")}}},e.prototype.updateWidth=function(){if(this.context.horizontalScrolling&&this.element){var e=window.getComputedStyle(this.element),t=parseFloat(e.paddingLeft);this.element.style.width="fit-content",this.width=xa(this.element)+t,this.element.style.width=""}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[EL.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[EL.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null,this.model=null},e}(),TL=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 Object(a.c)(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}(DL),EL=function(e){function t(n,i){var o=e.call(this)||this;o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new gs(50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o._onDOMFocus=new zt,o._onDOMBlur=new zt,o.instance=++t.counter;var r="undefined"==typeof n.options.horizontalScrollMode?Uc.Hidden:n.options.horizontalScrollMode;o.horizontalScrolling=r!==Uc.Hidden,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new xL(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.model=null,o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=ja(o.domNode),o.treeStyler=n.styler,o.treeStyler||(o.treeStyler=new sL(o.styleElement,"monaco-tree-instance-"+o.instance)),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&ea(o.domNode,"focused"),o.context.options.paddingOnRow||ea(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new Db(o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:r,vertical:"undefined"!=typeof n.options.verticalScrollMode?n.options.verticalScrollMode:Uc.Auto,useShadows:n.options.useShadows}),o.scrollableElement.onScroll(function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth)}),Is?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):sy.addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var s=Ha(o.domNode);return o.viewListeners.push(s.onDidFocus(function(){return o.onFocus()})),o.viewListeners.push(s.onDidBlur(function(){return o.onBlur()})),o.viewListeners.push(s),o.viewListeners.push(oa(o.domNode,"keydown",function(e){return o.onKeyDown(e)})),o.viewListeners.push(oa(o.domNode,"keyup",function(e){return o.onKeyUp(e)})),o.viewListeners.push(oa(o.domNode,"mousedown",function(e){return o.onMouseDown(e)})),o.viewListeners.push(oa(o.domNode,"mouseup",function(e){return o.onMouseUp(e)})),o.viewListeners.push(oa(o.wrapper,"click",function(e){return o.onClick(e)})),o.viewListeners.push(oa(o.wrapper,"auxclick",function(e){return o.onClick(e)})),o.viewListeners.push(oa(o.domNode,"contextmenu",function(e){return o.onContextMenu(e)})),o.viewListeners.push(oa(o.wrapper,ey.Tap,function(e){return o.onTap(e)})),o.viewListeners.push(oa(o.wrapper,ey.Change,function(e){return o.onTouchChange(e)})),Is&&(o.viewListeners.push(oa(o.wrapper,"MSPointerDown",function(e){return o.onMsPointerDown(e)})),o.viewListeners.push(oa(o.wrapper,"MSGestureTap",function(e){return o.onMsGestureTap(e)})),o.viewListeners.push(ba(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(oa(window,"dragover",function(e){return o.onDragOver(e)})),o.viewListeners.push(oa(o.wrapper,"drop",function(e){return o.onDrop(e)})),o.viewListeners.push(oa(window,"dragend",function(e){return o.onDragEnd(e)})),o.viewListeners.push(oa(window,"dragleave",function(e){return o.onDragOver(e)})),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.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.applyStyles(n.options),o}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDOMBlur",{get:function(){return this._onDOMBlur.event},enumerable:!0,configurable:!0}),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new DL(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,t){this.isTreeVisible()&&(this.viewHeight=e||Da(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||xa(this.wrapper)))},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r1e3,l=void 0,c=void 0;if(u||(c=(l=new gw({getLength:function(){return r.length},getElementHash:function(e){return r[e]}},{getLength:function(){return s.length},getElementHash:function(e){return s[e].id}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new vL(r,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var g=s[p.modifiedStart-1]||n;g=g.getDepth()>0?g:null,this.onInsertItems(new vL(s,p.modifiedStart,p.modifiedStart+p.modifiedLength),g?g.id:null)}}else(u||l.length)&&(this.onRemoveItems(new vL(r)),this.onInsertItems(new vL(s),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},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 _L(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.updateWidth=function(e){if(e&&e.isVisible()){var t=this.items[e.id];t&&(t.updateWidth(),this.updateScrollWidth())}},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.relativeTop,n=this.items[e.item.id];if(n)if(null!==t)this.scrollTop=(n.height-this.viewHeight)*(t=(t=t<0?0:t)>1?1:t)+n.top;else{var i=n.top+n.height,o=this.scrollTop+this.viewHeight;n.top=o&&(this.scrollTop=i-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.trait,n=this.items[e.item.id];n&&n.addClass(t),"highlighted"===t&&(ea(this.domNode,t),n&&(this.highlightedItemWasDraggable=!!n.draggable,n.draggable&&(n.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.trait,n=this.items[e.item.id];n&&n.removeClass(t),"highlighted"===t&&(ta(this.domNode,t),this.highlightedItemWasDraggable&&(n.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();na(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",Io(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(),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 Ys(e),n=this.getItemAround(t.target);n&&(Is&&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 Ys(e);if(!(t.ctrlKey&&mn.e&&mn.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new Ys(e);if(!(t.ctrlKey&&mn.e&&mn.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.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,o=new zs(e);if(n=this.model.getFocus()){var r=this.context.dataSource.getId(this.context.tree,n);i=Na(this.items[r].element)}else n=this.model.getInput(),i=Na(this.inputItem.element);t=new NL(i.left+i.width,i.top,o)}else{var s=new Ys(e),a=this.getItemAround(s.target);if(!a)return;n=a.model.getElement(),t=new LL(s)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new zs(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 zs(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("ResourceURLs",JSON.stringify([e.uri])),n.dataTransfer.setDragImage){var s;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 fL(i),t.currentExternalDragAndDropData=new mL(i),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new Zs(n))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=La(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,i=this,o=new Zs(e),r=this.getItemAround(o.target);if(!r||0===o.posx&&0===o.posy&&o.browserEvent.type===za.DRAG_LEAVE)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=o.posy,!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!o.dataTransfer.types)return!1;this.currentDragAndDropData=new yL}this.currentDragAndDropData.update(o);var s,a=r.model;do{if(n=a?a.getElement():this.model.getInput(),!(s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,o))||s.bubble!==SL.BUBBLE_UP)break;a=a&&a.parent}while(a);if(!a)return this.currentDropElement=null,!1;var u=s&&s.accept;u?(this.currentDropElement=a.getElement(),o.preventDefault(),o.dataTransfer.dropEffect=s.effect===IL.COPY?"copy":"move"):this.currentDropElement=null;var l,c,d=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(c=s,!(!(l=this.currentDropElementReaction)&&!c||l&&c&&l.accept===c.accept&&l.bubble===c.bubble&&l.effect===c.effect)))&&(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=s,u)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),s.bubble===SL.BUBBLE_DOWN)for(var h,p=a.getNavigator();h=p.next();)(r=this.items[h.id])&&(r.dropTarget=!0,this.currentDropTargets.push(r));s.autoExpand&&(this.currentDropPromise=Nt.b.timeout(500).then(function(){return i.context.tree.expand(i.currentDropElement)}).then(function(){return i.shouldInvalidateDropReaction=!0}))}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new Zs(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||ea(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||ta(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},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&&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=_t(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.modelListeners=null,this.viewListeners=_t(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.domNode=null,this.items&&(Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()}),this.items=null),this.context.cache&&(this.context.cache.dispose(),this.context.cache=null),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t.currentExternalDragAndDropData=null,t}(wL),kL=function(){return function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new nL({clickBehavior:$C.ON_MOUSE_UP,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new iL,this.filter=t.filter||new oL,this.sorter=t.sorter||null,this.accessibilityProvider=t.accessibilityProvider||new rL,this.styler=t.styler||null}}(),jL={listFocusBackground:dp.fromHex("#073655"),listActiveSelectionBackground:dp.fromHex("#0E639C"),listActiveSelectionForeground:dp.fromHex("#FFFFFF"),listFocusAndSelectionBackground:dp.fromHex("#094771"),listFocusAndSelectionForeground:dp.fromHex("#FFFFFF"),listInactiveSelectionBackground:dp.fromHex("#3F3F46"),listHoverBackground:dp.fromHex("#2A2D2E"),listDropBackground:dp.fromHex("#383B3D")},AL=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new Gt,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new Gt,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new Gt,this.onDidChangeHighlight=this._onHighlightChange.event,this._onDidExpandItem=new Gt,this.onDidExpandItem=this._onDidExpandItem.event,this._onDidCollapseItem=new Gt,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDispose=new zt,this.onDidDispose=this._onDispose.event,this.container=e,Or(n,jL,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,this.context=new kL(this,t,n),this.model=new gL(this.context),this.view=new EL(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.view&&this.view.onDOMBlur},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.onVisible=function(){this.view.onVisible()},e.prototype.onHidden=function(){this.view.onHidden()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.refresh=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),this.model.refresh(e,t)},e.prototype.updateWidth=function(e){var t=this.model.getItem(e);return this.view.updateWidth(t)},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.expandAll=function(e){return this.model.expandAll(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.collapseAll=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.model.collapseAll(e,t)},e.prototype.collapseDeepestExpandedLevel=function(){return this.model.collapseDeepestExpandedLevel()},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.toggleExpansionAll=function(e){return this.model.toggleExpansionAll(e)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.getExpandedElements=function(){return this.model.getExpandedElements()},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getItem(e);return this.view.getRelativeTop(t)},e.prototype.getScrollPosition=function(){return this.view.getScrollPosition()},e.prototype.setScrollPosition=function(e){this.view.setScrollPosition(e)},e.prototype.getContentHeight=function(){return this.view.getContentHeight()},e.prototype.setHighlight=function(e,t){this.model.setHighlight(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.isHighlighted=function(e){return this.model.isFocused(e)},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.select=function(e,t){this.model.select(e,t)},e.prototype.selectRange=function(e,t,n){this.model.selectRange(e,t,n)},e.prototype.deselectRange=function(e,t,n){this.model.deselectRange(e,t,n)},e.prototype.selectAll=function(e,t){this.model.selectAll(e,t)},e.prototype.deselect=function(e,t){this.model.deselect(e,t)},e.prototype.deselectAll=function(e,t){this.model.deselectAll(e,t)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.toggleSelection=function(e,t){this.model.toggleSelection(e,t)},e.prototype.isSelected=function(e){return this.model.isSelected(e)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.selectNext=function(e,t,n){this.model.selectNext(e,t,n)},e.prototype.selectPrevious=function(e,t,n){this.model.selectPrevious(e,t,n)},e.prototype.selectParent=function(e,t){this.model.selectParent(e,t)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.isFocused=function(e){return this.model.isFocused(e)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.addTraits=function(e,t){this.model.addTraits(e,t)},e.prototype.removeTraits=function(e,t){this.model.removeTraits(e,t)},e.prototype.toggleTrait=function(e,t){this.model.hasTrait(e,t)?this.model.removeTraits(e,[t]):this.model.addTraits(e,[t])},e.prototype.hasTrait=function(e,t){return this.model.hasTrait(e,t)},e.prototype.getNavigator=function(e,t){return new ML(this.model.getNavigator(e,t),function(e){return e&&e.getElement()})},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}();function OL(e,t){var n=Object.create(null);for(var i in t){var o=t[i];"string"==typeof o?n[i]=e.getColor(o):"function"==typeof o&&(n[i]=o(e))}return n}function PL(e,t,n){function i(i){var o=OL(e.getTheme(),t);"function"==typeof n?n(o):n.style(o)}return i(e.getTheme()),e.onThemeChange(i)}function RL(e,t,n){return PL(t,Or(n||Object.create(null),zL,!1),e)}var zL={listFocusBackground:lf,listFocusForeground:cf,listActiveSelectionBackground:dm(df,.1),listActiveSelectionForeground:hf,listFocusAndSelectionBackground:df,listFocusAndSelectionForeground:hf,listInactiveSelectionBackground:pf,listInactiveSelectionForeground:gf,listInactiveFocusBackground:ff,listHoverBackground:mf,listHoverForeground:yf,listDropBackground:vf,listFocusOutline:Gg,listSelectionOutline:Gg,listHoverOutline:Gg};new zo("inputFocus",!1);var WL,FL=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1)})),l.disposables.push(u.onDidChangeConfiguration(function(e){e.affectsConfiguration(QL)&&(l._openOnSingleClick=JL(u)),e.affectsConfiguration(GL)&&(l._useAltAsMultipleSelectionModifier=KL(u))})),l}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"openOnSingleClick",{get:function(){return this._openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useAltAsMultipleSelectionModifier",{get:function(){return this._useAltAsMultipleSelectionModifier},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposables=_t(this.disposables)},Object(a.b)([Object(a.d)(3,Wo),Object(a.d)(4,HL),Object(a.d)(5,mm),Object(a.d)(6,Un),Object(a.d)(7,is)],t)}(AL),tN=function(e){function t(t,n){var i=e.call(this,function(e){return"boolean"!=typeof e.keyboardSupport&&(e.keyboardSupport=!1),"number"!=typeof e.clickBehavior&&(e.clickBehavior=$C.ON_MOUSE_DOWN),e}(t))||this;return i.configurationService=n,i.disposables=[],ri(t.openMode)&&(i.setOpenMode(i.getOpenModeSetting()),i.registerListeners()),i}return Object(a.c)(t,e),t.prototype.registerListeners=function(){var e=this;this.disposables.push(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(QL)&&e.setOpenMode(e.getOpenModeSetting())}))},t.prototype.getOpenModeSetting=function(){return JL(this.configurationService)?eL.SINGLE_CLICK:eL.DOUBLE_CLICK},t.prototype.dispose=function(){this.disposables=_t(this.disposables)},Object(a.b)([Object(a.d)(1,is)],t)}(nL);Fr.as(Vr.Configuration).registerConfiguration({id:"workbench",order:7,title:Yo("workbenchConfigurationTitle","Workbench"),type:"object",properties:(qL={},qL[GL]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Yo("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Yo("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Yo({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). `ctrlCmd` maps to `Control` on Windows and Linux and to `Command` on macOS. The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},qL[QL]={type:"string",enum:["singleClick","doubleClick"],enumDescriptions:[Yo("openMode.singleClick","Opens items on mouse single click."),Yo("openMode.doubleClick","Open items on mouse double click.")],default:"singleClick",description:Yo({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Set to `singleClick` to open items with a single mouse click and `doubleClick` to only open via mouse double click. For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},qL[XL]={type:"boolean",default:!1,description:Yo("horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench.")},qL)}),function(e){var t=new Su,n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var i=[];function o(e,t){var o=new n(e,t);return i.push(o),o}e.init=function(e){var t=new Su;for(var n in e)e.hasOwnProperty(n)&&t.set(Qn(n),e[n]);i.forEach(function(n){return t.set(n.id,n.get(e))});var o=new ZM(t,!0);return t.set(Un,o),[t,o]},e.instantiationService=o(Un,function(){return new ZM(t,!0)});var r=new wu;e.configurationService=o(is,function(){return r}),e.resourceConfigurationService=o(Tw,function(){return new Cu(r)}),e.contextService=o(Er,function(){return new Iu}),e.telemetryService=o(Yp,function(){return new Nu}),e.dialogService=o(KC,function(){return new yu}),e.notificationService=o(lu,function(){return new vu}),e.markerService=o(QM,function(){return new JM}),e.modeService=o(Fw,function(e){return new Jw}),e.modelService=o(ol,function(t){return new uC(e.markerService.get(t),e.configurationService.get(t))}),e.editorWorkerService=o(Vo,function(t){return new Aw(e.modelService.get(t),e.resourceConfigurationService.get(t))}),e.standaloneThemeService=o(wM,function(){return new XC}),e.codeEditorService=o(Fo,function(t){return new dC(e.standaloneThemeService.get(t))}),e.progressService=o(qM,function(){return new mu}),e.storageService=o(wg,function(){return Cg}),e.logService=o(OM,function(){return new RM})}($L||($L={}));var nN=function(e){function t(t,n){var i=e.call(this)||this,o=$L.init(n),r=o[1];i._serviceCollection=o[0],i._instantiationService=r;var s=i.get(is),a=i.get(lu),u=i.get(Yp),l=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o},c=l(Wo,function(){return i._register(new LC(s))});l(HL,function(){return new BL(c)});var d=l(di,function(){return new bu(i._instantiationService)});l(pi,function(){return i._register(new _u(c,d,u,a,t))});var h=l(Kn,function(){return i._register(new zM(t,u,new RM))});return l(Jn,function(){return i._register(new EM(t,u,a,h))}),l(ou,function(){return new Lu(d)}),i}return Object(a.c)(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}(Ct),iN=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return Nt.b.wrap(null)},e.prototype.getTelemetryInfo=function(){return Nt.b.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}()),oN=function(){function e(e,t,n){void 0===n&&(n=iN),this._editorService=e,this._commandService=t,this._telemetryService=n}return e.prototype.open=function(e,t){this._telemetryService.publicLog("openerService",{scheme:e.scheme});var n,i=e.scheme,o=e.path,r=e.query,s=e.fragment,a=Nt.b.wrap(void 0);if(i===Bo.http||i===Bo.https||i===Bo.mailto)Ja(e.toString(!0));else if("command"===i&&hi.getCommand(o)){var u=[];try{u=function e(t,n){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return Tn.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1))}return t}(JSON.parse(r),0),Array.isArray(u)||(u=[u])}catch(e){}a=(n=this._commandService).executeCommand.apply(n,[o].concat(u))}else{var l=void 0,c=/^L?(\d+)(?:,(\d+))?/.exec(s);if(c&&(l={startLineNumber:parseInt(c[1]),startColumn:c[2]?parseInt(c[2]):1},e=e.with({fragment:""})),!e.scheme)return Nt.b.as(void 0);e.scheme===Bo.file&&(e=e.with({path:_r(e.path)})),a=this._editorService.openEditor({resource:e,options:{selection:l}},t&&t.openToSide)}return a},Object(a.b)([Object(a.d)(0,Zp),Object(a.d)(1,di),Object(a.d)(2,Xn(Yp))],e)}(),rN=Qn("openerService"),sN=Object.freeze({_serviceBrand:void 0,open:function(){return Nt.b.as(void 0)}}),aN=function(){function e(){}return e.colorizeElement=function(e,t,n,i){var o=(i=i||{}).theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(r){e.setTheme(o);var s=n.firstChild.nodeValue;n.className+=" "+o;var a=function(e){n.innerHTML=e};return this.colorize(t,s,r,i).then(a,function(e){return console.error(e)},a)}console.error("Mode not detected")},e._tokenizationSupportChangedPromise=function(e){var t=null,n=function(){t&&(t.dispose(),t=null)};return new Nt.b(function(i,o,r){t=Pl.onDidChange(function(t){t.changedLanguages.indexOf(e)>=0&&(n(),i(void 0))})},n)},e.colorize=function(e,t,n,i){Lo(t)&&(t=t.substr(1));var o=t.split(/\r\n|\r|\n/),r=e.getModeId(n);"undefined"==typeof(i=i||{}).tabSize&&(i.tabSize=4),e.getOrCreateMode(r);var s=Pl.get(r);return s?Nt.b.as(uN(o,i.tabSize,s)):Nt.b.any([this._tokenizationSupportChangedPromise(r),Nt.b.timeout(500)]).then(function(e){var t=Pl.get(r);return t?uN(o,i.tabSize,t):function(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;o")}return n.join("")}(o,i.tabSize)})},e.colorizeLine=function(e,t,n,i){return void 0===i&&(i=4),Dy(new Ly(!1,e,t,0,n,[],i,0,-1,"none",!1,!1)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainRTL(),o,n)},e}();function uN(e,t,n){return function(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r"),o=u.endState}return i.join("")}(e,t,n)}var lN=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 Object(a.c)(t,e),t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=new fs(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=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 n=t.range.getStartPosition();this._editor.setPosition(n),this._editor.revealPositionInCenter(n,0)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(){this._move(!0)},e.prototype.previous=function(){this._move(!1)},e.prototype.dispose=function(){_t(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=null,this.disposed=!0},e}(),hN=Qn("textModelService");function pN(e,t,n){var i=new nN(e,t),o=null;i.has(Zp)||(o=new gu,i.set(Zp,o));var r=null;i.has(hN)||(r=new fu,i.set(hN,r)),i.has(rN)||i.set(rN,new oN(i.get(Zp),i.get(di)));var s=n(i);return o&&o.setEditor(s),r&&r.setEditor(s),s}function gN(e,t,n){return $L.modelService.get().createModel(e,t,n)}var fN=function(e){return e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate",e}({}),mN=function(e){return e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom",e}({});function yN(e){return"string"==typeof e}function vN(e){return!yN(e)}function bN(e){return!e}function _N(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function MN(e){return e.replace(/[&<>'"_]/g,"-")}function wN(e,t){throw new Error(e.languageId+": "+t)}function CN(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,u,l,c,d,h,p){return bN(a)?bN(u)?!bN(l)&&l0;){var n=e.tokenizer[t];if(n)return n;var i=t.lastIndexOf(".");t=i<0?null:t.substr(0,i)}return null}function NN(e,t,n){return"boolean"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function IN(e,t,n){return"string"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function SN(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,i){var o="";return"string"==typeof e[i]?o=e[i]:e[i]&&e[i]instanceof RegExp?o=e[i].source:wN(e,void 0===e[i]?"language definition does not contain attribute '"+i+"', used at: "+t:"attribute reference '"+i+"' must be a string, used at: "+t),bN(o)?"":"(?:"+o+")"});return new RegExp(t,e.ignoreCase?"i":"")}function xN(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,u="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?u="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=s[1],l=s[2]):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];c||wN(e,"the @ match target '"+l+"' is not defined, in rule: "+t),function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;var n;for(n in t)if(t.hasOwnProperty(n)&&"string"!=typeof t[n])return!1;return!0}(0,c)||wN(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=Rr(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=SN(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,i,o){return SN(e,"^"+CN(e,l,n,i,o)+"$").test(t)};else if(l.indexOf("$")<0){var p=_N(e,l);a=function(e){return"=="===u?e===p:e!==p}}else{var g=_N(e,l);a=function(t,n,i,o,r){var s=CN(e,g,n,i,o);return"=="===u?t===s:t!==s}}else{var f=Rr(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?f(e):!f(e)}}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var r=function(e,t,n,i){if(i<0)return e;if(i=100){i-=100;var o=n.split(".");if(o.unshift(n),i0&&"^"===n[0],this.name=this.name+": "+n,this.regex=SN(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=function e(t,n,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)return wN(t,"a 'token' attribute must be of type string, in rule: "+n),{token:""};var o={token:i.token};if(i.token.indexOf("$")>=0&&(o.tokenSubst=!0),"string"==typeof i.bracket&&("@open"===i.bracket?o.bracket=1:"@close"===i.bracket?o.bracket=-1:wN(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n)),i.next)if("string"!=typeof i.next)wN(t,"the next state must be a string value in rule: "+n);else{var r=i.next;/^(@pop|@push|@popall)$/.test(r)||("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&(function(e,t){for(;t&&t.length>0;){if(e.stateNames[t])return!0;var n=t.lastIndexOf(".");t=n<0?null:t.substr(0,n)}return!1}(t,CN(t,r,"",[],""))||wN(t,"the next state '"+i.next+"' is not defined in rule: "+n))),o.next=r}return"number"==typeof i.goBack&&(o.goBack=i.goBack),"string"==typeof i.switchTo&&(o.switchTo=i.switchTo),"string"==typeof i.log&&(o.log=i.log),"string"==typeof i.nextEmbedded&&(o.nextEmbedded=i.nextEmbedded,t.usesEmbedded=!0),o}if(Array.isArray(i)){var s,a=[];for(s in i)i.hasOwnProperty(s)&&(a[s]=e(t,n,i[s]));return{group:a}}if(i.cases){var u,l=[];for(u in i.cases)if(i.cases.hasOwnProperty(u)){var c=e(t,n,i.cases[u]);l.push("@default"===u||"@"===u||""===u?{test:null,value:c,name:u}:"@eos"===u?{test:function(e,t,n,i){return i},value:c,name:u}:xN(t,n,u,c))}var d=t.defaultToken;return{test:function(e,t,n,i){var o;for(o in l)if(l.hasOwnProperty(o)&&(!l[o].test||l[o].test(e,t,n,i)))return l[o].value;return d}}}return wN(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n),""}return{token:""}}(e,this.name,t)},e}(),TN=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new EN(e,t);var n=EN.getStackElementId(e);n.length>0&&(n+="|");var i=this._entries[n+=t];return i||(i=new EN(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),EN=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 TN.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 TN.create(this.parent,e)},e}(),kN=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),jN=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 AN(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new AN(e,t);var n=EN.getStackElementId(e),i=this._entries[n];return i||(i=new AN(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),AN=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:jN.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}(),ON=Object.hasOwnProperty,PN=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 pn(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Pl.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new gn(this._tokens,e)},e}(),RN=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,i){i.enterMode(n,this._modeId);for(var o,r,s=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null,d=null,h=null,p=null;l=s)break;var C=this._lexer.tokenizer[y];C||(C=LN(this._lexer,y))||wN(this._lexer,"tokenizer state is not defined: "+y);var L=e.substr(l);for(var N in C)if(ON.call(C,N)){var I=C[N];if((0===l||!I.matchOnlyAtLineStart)&&(v=L.match(I.regex))){b=v[0],_=I.action;break}}}for(v||(v=[""],b=""),_||(l=this._lexer.maxStack?wN(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]"):u=u.push(y);else if("@pop"===_.next)u.depth<=1?wN(this._lexer,"trying to pop an empty stack in rule: "+M.name):u=u.pop();else if("@popall"===_.next)u=u.popall();else{var x;"@"===(x=CN(this._lexer,_.next,b,v,y))[0]&&(x=x.substr(1)),LN(this._lexer,x)?u=u.push(x):wN(this._lexer,"trying to set a next state '"+x+"' that is undefined in rule: "+M.name)}_.log&&"string"==typeof _.log&&(o=this._lexer,r=this._lexer.languageId+": "+CN(this._lexer,_.log,b,v,y),console.log(o.languageId+": "+r))}if(null===S&&wN(this._lexer,"lexer rule has no well-defined action in rule: "+M.name),Array.isArray(S)){c&&c.length>0&&wN(this._lexer,"groups cannot be nested: "+M.name),v.length!==S.length+1&&wN(this._lexer,"matched number of groups does not match the number of actions in rule: "+M.name);for(var D=0,T=1;T0&&o[r-1]===c)){var d=l.startIndex;0===a?d=0:d=1&&u.length<=3)if(c.setRegex(o,u[0]),u.length>=3)if("string"==typeof u[1])c.setAction(o,{token:u[1],next:u[2]});else if("object"==typeof u[1]){var d=u[1];d.next=u[2],c.setAction(o,d)}else wN(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);else c.setAction(o,u[1]);else u.regex||wN(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e),u.name&&(c.name=IN(u.name)),u.matchOnlyAtStart&&(c.matchOnlyAtLineStart=NN(u.matchOnlyAtLineStart)),c.setRegex(o,u.regex),c.setAction(o,u.action);i.push(c)}}}for(i in o.languageId=e,o.ignoreCase=n.ignoreCase,o.noThrow=n.noThrow,o.usesEmbedded=n.usesEmbedded,o.stateNames=t.tokenizer,o.defaultToken=n.defaultToken,t.tokenizer&&"object"==typeof t.tokenizer||wN(n,"a language definition must define the 'tokenizer' attribute as an object"),n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(i)){n.start||(n.start=i);var s=t.tokenizer[i];n.tokenizer[i]=new Array,r("tokenizer."+i,n.tokenizer[i],s)}n.usesEmbedded=o.usesEmbedded,t.brackets?Array.isArray(t.brackets)||wN(n,"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 a=[];for(var u in t.brackets)if(t.brackets.hasOwnProperty(u)){var l=t.brackets[u];l&&Array.isArray(l)&&3===l.length&&(l={token:l[2],open:l[0],close:l[1]}),l.open===l.close&&wN(n,"open and close brackets in a 'brackets' attribute must be different: "+l.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required."),"string"==typeof l.open&&"string"==typeof l.token?a.push({token:IN(l.token)+n.tokenPostfix,open:_N(n,IN(l.open)),close:_N(n,IN(l.close))}):wN(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=a,n.noThrow=!0,n}(e,t),i=function(t,n,i,o){return new zN(t,n,e,o)}($L.modeService.get(),$L.standaloneThemeService.get(),0,n);return Pl.register(e,i)},registerReferenceProvider:function(e,t){return vl.register(e,t)},registerRenameProvider:function(e,t){return bl.register(e,t)},registerCompletionItemProvider:function(e,t){var n=new BN(t);return _l.register(e,{triggerCharacters:t.triggerCharacters,provideCompletionItems:function(e,t,i,o){return n.provideCompletionItems(e,t,i,o)},resolveCompletionItem:function(e,t,i,o){return n.resolveCompletionItem(e,t,i,o)}})},registerSignatureHelpProvider:function(e,t){return Ml.register(e,t)},registerHoverProvider:function(e,t){return wl.register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return ds(t.provideHover(e,n,i)).then(function(e){if(e)return!e.range&&o&&(e.range=new sn(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new sn(n.lineNumber,n.column,n.lineNumber,n.column)),e})}})},registerDocumentSymbolProvider:function(e,t){return Cl.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Ll.register(e,t)},registerDefinitionProvider:function(e,t){return Nl.register(e,t)},registerImplementationProvider:function(e,t){return Il.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Sl.register(e,t)},registerCodeLensProvider:function(e,t){return xl.register(e,t)},registerCodeActionProvider:function(e,t){return Dl.register(e,{provideCodeActions:function(e,n,i,o){var r=$L.markerService.get().read({resource:e.uri}).filter(function(e){return sn.areIntersectingOrTouching(e,n)});return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})},registerDocumentFormattingEditProvider:function(e,t){return Tl.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return El.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return kl.register(e,t)},registerLinkProvider:function(e,t){return jl.register(e,t)},registerColorProvider:function(e,t){return Al.register(e,t)},DocumentHighlightKind:pl,CompletionItemKind:FN,SymbolKind:gl,IndentAction:xc,SuggestTriggerKind:hl};var ZN=YN.editor;VN.monaco=YN,"undefined"!=typeof VN.require&&"function"==typeof VN.require.config&&VN.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index"]});var UN=monaco.Emitter,GN=function(){function e(e,t){this._onDidChange=new UN,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.setMaximumWorkerIdleTime=function(e){this._workerMaxIdleTime=e},e.prototype.getWorkerMaxIdleTime=function(){return this._workerMaxIdleTime},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}(),QN=function(e){return 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",e}({}),XN=function(e){return e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e}({}),KN=function(e){return e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e}({}),JN=function(e){return 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",e}({}),qN=function(e){return e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e}({}),$N=new GN({allowNonTsExtensions:!0,target:JN.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),eI=new GN({allowNonTsExtensions:!0,allowJs:!0,target:JN.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function tI(){return monaco.Promise.wrap(n.e(1).then(n.bind(null,"ffKE")))}monaco.languages.typescript={ModuleKind:QN,JsxEmit:XN,NewLineKind:KN,ScriptTarget:JN,ModuleResolutionKind:qN,typescriptDefaults:$N,javascriptDefaults:eI,getTypeScriptWorker:function(){return tI().then(function(e){return e.getTypeScriptWorker()})},getJavaScriptWorker:function(){return tI().then(function(e){return e.getJavaScriptWorker()})}},monaco.languages.register({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"]}),monaco.languages.onLanguage("typescript",function(){return tI().then(function(e){return e.setupTypeScript($N)})}),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(){return tI().then(function(e){return e.setupJavaScript(eI)})});var nI=monaco.Emitter,iI=function(){function e(e,t){this._onDidChange=new nI,this._languageId=e,this.setDiagnosticsOptions(t)}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}(),oI={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"}},rI=new iI("css",oI),sI=new iI("scss",oI),aI=new iI("less",oI);function uI(){return monaco.Promise.wrap(n.e(5).then(n.bind(null,"hs/E")))}monaco.languages.css={cssDefaults:rI,lessDefaults:aI,scssDefaults:sI},monaco.languages.onLanguage("less",function(){uI().then(function(e){return e.setupMode(aI)})}),monaco.languages.onLanguage("scss",function(){uI().then(function(e){return e.setupMode(sI)})}),monaco.languages.onLanguage("css",function(){uI().then(function(e){return e.setupMode(rI)})});var lI=monaco.Emitter,cI=new(function(){function e(e,t){this._onDidChange=new lI,this._languageId=e,this.setDiagnosticsOptions(t)}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}())("json",{validate:!0,allowComments:!0,schemas:[]});monaco.languages.json={jsonDefaults:cI},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){monaco.Promise.wrap(n.e(3).then(n.bind(null,"SG+P"))).then(function(e){return e.setupMode(cI)})});var dI=monaco.Emitter,hI=function(){function e(e,t){this._onDidChange=new dI,this._languageId=e,this.setOptions(t)}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}(),pI={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"},gI={format:pI,suggest:{html5:!0}},fI={format:pI,suggest:{html5:!0,razor:!0}},mI=new hI("html",{format:pI,suggest:{html5:!0,angular1:!0,ionic:!0}}),yI=new hI("handlebars",gI),vI=new hI("razor",fI);function bI(){return monaco.Promise.wrap(n.e(4).then(n.bind(null,"bYte")))}monaco.languages.html={htmlDefaults:mI,razorDefaults:vI,handlebarDefaults:yI},monaco.languages.onLanguage("html",function(){bI().then(function(e){return e.setupMode(mI)})}),monaco.languages.onLanguage("handlebars",function(){bI().then(function(e){return e.setupMode(yI)})}),monaco.languages.onLanguage("razor",function(){bI().then(function(e){return e.setupMode(vI)})});var _I="undefined"==typeof monaco?self.monaco:monaco,MI={},wI={};function CI(e){var t=e.id;MI[t]=e,_I.languages.register(e),_I.languages.onLanguage(t,function(){!function(e){wI[e]||(wI[e]=function(e){return(0,MI[e].loader)().then(function(t){_I.languages.setMonarchTokensProvider(e,t.language),_I.languages.setLanguageConfiguration(e,t.conf)})}(e))}(t)})}var LI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return LI.Promise.wrap(n.e(43).then(n.bind(null,"zNPU")))}});var NI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return NI.Promise.wrap(n.e(42).then(n.bind(null,"WdiG")))}});var II="undefined"==typeof monaco?self.monaco:monaco;CI({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return II.Promise.wrap(n.e(0).then(n.bind(null,"Aj3d")))}}),CI({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return II.Promise.wrap(n.e(0).then(n.bind(null,"Aj3d")))}});var SI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"csharp",extensions:[".cs",".csx"],aliases:["C#","csharp"],loader:function(){return SI.Promise.wrap(n.e(41).then(n.bind(null,"Wrsc")))}});var xI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return xI.Promise.wrap(n.e(40).then(n.bind(null,"s/8m")))}});var DI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return DI.Promise.wrap(n.e(39).then(n.bind(null,"Ej8Q")))}});var TI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return TI.Promise.wrap(n.e(38).then(n.bind(null,"WfTH")))}});var EI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return EI.Promise.wrap(n.e(37).then(n.bind(null,"gQGc")))}});var kI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return kI.Promise.wrap(n.e(36).then(n.bind(null,"AZr8")))}});var jI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return jI.Promise.wrap(n.e(35).then(n.bind(null,"UIna")))}});var AI="undefined"==typeof monaco?self.monaco:monaco;CI({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"],loader:function(){return AI.Promise.wrap(n.e(34).then(n.bind(null,"jIYi")))}});var OI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return OI.Promise.wrap(n.e(33).then(n.bind(null,"fj+P")))}});var PI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return PI.Promise.wrap(n.e(32).then(n.bind(null,"x3ms")))}});var RI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return RI.Promise.wrap(n.e(31).then(n.bind(null,"U5zn")))}});var zI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return zI.Promise.wrap(n.e(30).then(n.bind(null,"y5sU")))}});var WI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return WI.Promise.wrap(n.e(29).then(n.bind(null,"C7VQ")))}});var FI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return FI.Promise.wrap(n.e(28).then(n.bind(null,"E+87")))}});var HI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return HI.Promise.wrap(n.e(27).then(n.bind(null,"LnLg")))}});var BI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return BI.Promise.wrap(n.e(26).then(n.bind(null,"nMQi")))}});var VI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return VI.Promise.wrap(n.e(25).then(n.bind(null,"wkLx")))}});var YI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return YI.Promise.wrap(n.e(24).then(n.bind(null,"D8Nr")))}});var ZI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ZI.Promise.wrap(n.e(23).then(n.bind(null,"aG5m")))}});var UI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return UI.Promise.wrap(n.e(22).then(n.bind(null,"9NZ8")))}});var GI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return GI.Promise.wrap(n.e(21).then(n.bind(null,"uWun")))}});var QI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return QI.Promise.wrap(n.e(20).then(n.bind(null,"rAsP")))}});var XI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return XI.Promise.wrap(n.e(19).then(n.bind(null,"LlI+")))}});var KI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return KI.Promise.wrap(n.e(18).then(n.bind(null,"z9c4")))}});var JI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return JI.Promise.wrap(n.e(17).then(n.bind(null,"TP/O")))}});var qI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return qI.Promise.wrap(n.e(16).then(n.bind(null,"pESm")))}});var $I="undefined"==typeof monaco?self.monaco:monaco;CI({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return $I.Promise.wrap(n.e(15).then(n.bind(null,"/y3V")))}});var eS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return eS.Promise.wrap(n.e(14).then(n.bind(null,"QEBt")))}});var tS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return tS.Promise.wrap(n.e(13).then(n.bind(null,"vFHx")))}});var nS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return nS.Promise.wrap(n.e(12).then(n.bind(null,"jkhk")))}});var iS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return iS.Promise.wrap(n.e(11).then(n.bind(null,"0Tt9")))}});var oS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return oS.Promise.wrap(n.e(10).then(n.bind(null,"77T5")))}});var rS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return rS.Promise.wrap(n.e(9).then(n.bind(null,"DMQN")))}});var sS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return sS.Promise.wrap(n.e(8).then(n.bind(null,"mE9w")))}});var aS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz"],firstLine:"(\\<\\?xml.*)|(\\0&&(n._decorations=n._editor.deltaDecorations(n._decorations,[])),n._updateBracketsSoon.schedule()})),n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.jumpToBracket=function(){var e=this._editor.getModel();if(e){var t=this._editor.getSelections().map(function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findNextBracket(n);r&&r.range&&(o=r.range.getStartPosition())}return o?new ln(o.lineNumber,o.column,o.lineNumber,o.column):new ln(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(){var e=this._editor.getModel();if(e){var t=[];this._editor.getSelections().forEach(function(n){var i=n.getStartPosition(),o=e.matchBracket(i),r=null,s=null;if(!o){var a=e.findNextBracket(i);a&&a.range&&(o=e.matchBracket(a.range.getStartPosition()))}o&&(o[0].startLineNumber===o[1].startLineNumber?(r=o[1].startColumn0&&(this._editor.setSelections(t),this._editor.revealRange(t[0]))}},t.prototype._updateBrackets=function(){if(this._matchBrackets){this._recomputeBrackets();for(var e=[],n=0,i=0,o=this._lastBracketsData.length;i1&&o.sort(rn.compare);var l=[],c=0,d=0,h=n.length;for(s=0,a=o.length;st.getLineMinColumn(i)?ao(t.getLineContent(i).charCodeAt(n-2))?n-=2:n-=1:i>1&&(n=t.getLineMaxColumn(i-=1)),new rn(i,n)},t.prototype.positionRightOf=function(e,t){var n=e.column,i=e.lineNumber;return n0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())},t}(Xp)),n("3j2o");var vS="9_cutcopypaste",bS=mn.e||document.queryCommandSupported("cut"),_S=mn.e||document.queryCommandSupported("copy"),MS=_S&&!xs,wS=mn.e||!Es&&document.queryCommandSupported("paste"),CS=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=e.get(Fo).getFocusedCodeEditor();n&&n.isFocused()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(Xp),LS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]}};return mn.e||(t=null),e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:Yo("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:wp.writable,kbOpts:t,menuOpts:{group:vS,order:1}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(CS),NS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]}};return mn.e||(t=null),e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:Yo("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:null,kbOpts:t,menuOpts:{group:vS,order:2}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(CS),IS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]}};return mn.e||(t=null),e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:Yo("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:wp.writable,kbOpts:t,menuOpts:{group:vS,order:3}})||this}return Object(a.c)(t,e),t}(CS),SS=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:Yo("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:null}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||(kg.forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),kg.forceCopyWithSyntaxHighlighting=!1)},t}(CS);function xS(e){var t=[],n=xl.ordered(e),i=n.map(function(n){return hs(function(t){return n.provideCodeLenses(e,t)}).then(function(e){if(Array.isArray(e))for(var i=0,o=e;it.symbol.range.startLineNumber?1:n.indexOf(e.provider)n.indexOf(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0})})}bS&&$p(LS),_S&&$p(NS),wS&&$p(IS),MS&&$p(SS),Kp("_executeCodeLensProvider",function(e,t){var n=t.resource;if(!(n instanceof Tn))throw jt();var i=e.get(ol).getModel(n);if(!i)throw jt();return xS(i).then(function(e){return e.map(function(e){return e.symbol})})}),n("1Z8u");var DS=function(){function e(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return e.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},e}(),TS=function(){function e(t,n,i,o){var r=this;this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._disposables=[],this._commands=Object.create(null),this._id="codeLensWidget"+ ++e._idPool,this._editor=t,this.setSymbolRange(n),this._domNode=document.createElement("span"),this._domNode.innerHTML=" ",ea(this._domNode,"codelens-decoration"),ea(this._domNode,"invisible-cl"),this._updateHeight(),this._disposables.push(this._editor.onDidChangeConfiguration(function(e){return e.fontInfo&&r._updateHeight()})),this._disposables.push(oa(this._domNode,"click",function(e){var n=e.target;if("A"===n.tagName&&n.id){var s=r._commands[n.id];s&&(t.focus(),i.executeCommand.apply(i,[s.id].concat(s.arguments)).done(void 0,function(e){o.error(e)}))}})),this.updateVisibility()}return e.prototype.dispose=function(){_t(this._disposables)},e.prototype._updateHeight=function(){var e=this._editor.getConfiguration(),t=e.fontInfo,n=e.lineHeight;this._domNode.style.height=Math.round(1.1*n)+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.fontSize=Math.round(.9*t.fontSize)+"px",this._domNode.innerHTML=" "},e.prototype.updateVisibility=function(){this.isVisible()&&(ta(this._domNode,"invisible-cl"),ea(this._domNode,"fadein"))},e.prototype.withCommands=function(e){if(this._commands=Object.create(null),e&&e.length){for(var t=[],n=0;n{1}",n,o),this._commands[n]=i):r=Ni("{0}",o),t.push(r)}this._domNode.innerHTML=t.join(" | "),this._editor.layoutContentWidget(this)}else this._domNode.innerHTML="no commands"},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.setSymbolRange=function(e){var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[Wn.ABOVE]}},e.prototype.getPosition=function(){return this._widgetPosition},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget")},e._idPool=0,e}(),ES=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;n a:hover { color: "+i+" !important; }")}),eg(function(){function e(e,t,n){var i=this;this._editor=e,this._commandService=t,this._notificationService=n,this._isEnabled=this._editor.getConfiguration().contribInfo.codeLens,this._globalToDispose=[],this._localToDispose=[],this._lenses=[],this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter=0,this._globalToDispose.push(this._editor.onDidChangeModel(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeModelLanguage(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeConfiguration(function(e){var t=i._isEnabled;i._isEnabled=i._editor.getConfiguration().contribInfo.codeLens,t!==i._isEnabled&&i._onModelChange()})),this._globalToDispose.push(xl.onDidChange(this._onModelChange,this)),this._onModelChange()}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose=_t(this._globalToDispose)},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter++),this._currentFindOccPromise&&(this._currentFindOccPromise.cancel(),this._currentFindOccPromise=null),this._localToDispose=_t(this._localToDispose)},e.prototype.getId=function(){return e.ID},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled&&xl.has(t)){for(var n=0,i=xl.all(t);n0&&e._detectVisibleLenses.schedule()})),this._localToDispose.push(this._editor.onDidLayoutChange(function(t){e._detectVisibleLenses.schedule()})),this._localToDispose.push({dispose:function(){e._editor.getModel()?e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){e._disposeAllLenses(t,n)})}):e._disposeAllLenses(null,null)}}),s.schedule()}},e.prototype._disposeAllLenses=function(e,t){var n=new ES;this._lenses.forEach(function(e){return e.dispose(n,t)}),e&&n.commit(e),this._lenses=[]},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.getModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,s=e;ri||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(a):o.push(n=[a]))}var l=this._editor.getVisibleRanges(),c=l.length>0?l[0].getStartPosition():null,d=0;if(c){var h=this._editor.getTopForPosition(c.lineNumber,c.column);d=this._editor.getScrollTop()-h}this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){for(var i=0,r=0,s=new ES;re.length)return!1;for(var o=0;o=65&&r<=90&&r+32===s||s>=65&&s<=90&&s+32===r))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,o){var r,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,l=t.endColumn,c=i.getLineContent(s),d=i.getLineContent(u),h=n.blockCommentStartToken,p=n.blockCommentEndToken,g=c.lastIndexOf(h,a-1+h.length),f=d.indexOf(p,l-1-p.length);if(-1!==g&&-1!==f)if(s===u)c.substring(g+h.length,f).indexOf(p)>=0&&(g=-1,f=-1);else{var m=c.substring(g+h.length),y=d.substring(0,f);(m.indexOf(p)>=0||y.indexOf(p)>=0)&&(g=-1,f=-1)}-1!==g&&-1!==f?(g+h.length0&&32===d.charCodeAt(f-1)&&(p=" "+p,f-=1),r=e._createRemoveBlockCommentOperations(new sn(s,g+h.length+1,u,f+1),h,p)):(r=e._createAddBlockCommentOperations(t,h,p),this._usedEndToken=1===r.length?p:null);for(var v=0;vd?u-1:u}},e}(),RS=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=t.getModel();if(n){for(var i=[],o=t.getSelections(),r=n.getOptions(),s=0;s0&&s._contextViewService.hideContextView()})),this._toDispose.push(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())}))}return e.get=function(t){return t.getContribution(e.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));var t;e.target.type!==Hn.OVERLAY_WIDGET&&(e.event.preventDefault(),(e.target.type===Hn.CONTENT_TEXT||e.target.type===Hn.CONTENT_EMPTY||e.target.type===Hn.TEXTAREA)&&(this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position),e.target.type!==Hn.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){var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e)}else this._editor.focus()},e.prototype._getMenuActions=function(){var e=[],t=this._menuService.createMenu(iu.EditorContext,this._contextKeyService),n=t.getActions({arg:this._editor.getModel().uri});t.dispose();for(var i=0,o=n;i0&&this._contextViewService.hideContextView(),this._toDispose=_t(this._toDispose)},e.ID="editor.contrib.contextmenu",e=Object(a.b)([Object(a.d)(1,Jn),Object(a.d)(2,Kn),Object(a.d)(3,Wo),Object(a.d)(4,pi),Object(a.d)(5,ou)],e)}(),VS=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:Yo("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:1092}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){BS.get(t).showContextMenu()},t}(Xp);eg(BS),$p(VS);var YS=function(){function e(e){this.selections=e}return e.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n50&&n._undoStack.shift()),n._prevState=n._readState()})),n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype._readState=function(){return this._editor.getModel()?new YS(this._editor.getSelections()):null},t.prototype.getId=function(){return t.ID},t.prototype.cursorUndo=function(){for(var e=new YS(this._editor.getSelections());this._undoStack.length>0;){var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1)}},t.ID="editor.contrib.cursorUndoController",t}(Ct),US=function(e){function t(){return e.call(this,{id:"cursorUndo",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:2099}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){ZS.get(t).cursorUndo()},t}(Qp);eg(ZS),qp(new US),n("WUwp");var GS=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new sn(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.targetSelection=!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?new ln(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?new ln(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumberthis._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t0;){if(e=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n.length;i1e3){r=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height,l=Math.max(2,Math.ceil(3/(u/a))),c=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,p=t.length;h=g.startLineNumber?g.endLineNumber>d&&(d=g.endLineNumber):(s.push({range:new sn(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=g.startLineNumber,d=g.endLineNumber)}s.push({range:new sn(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var f=new Array(t.length);for(h=0,p=t.length;h=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumbere.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn0){for(var n=[],i=0;i0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new rn(n,i)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new rn(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),c?n||r.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._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new rn(n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,i,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var r=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),r);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new rn(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return i&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),d?o||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,i,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new XS(null);for(var t=new JS(e),n=0,i=e.length;n=i)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var r=a-48;if(n+1=i)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1)}}}return t.finalize()}(this._state.replaceString):XS.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,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches),o=new Sh(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new rn(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(),t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new Td(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,o=this._editor.getModel(),r=o.getValue(Du.LF),s=o.getFullModelRange(),a=this._getReplacePattern();i=r.replace(t,a.hasReplacementPatterns?function(){return a.buildReplaceString(arguments)}:a.buildReplaceString(null));var u=new Th(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),i=[],o=0,r=n.length;ot&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,o=!0),"undefined"!=typeof n&&(sn.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(i)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase;"undefined"!=typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,o=!0),"undefined"!=typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,o=!0),"undefined"!=typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,o=!0),"undefined"!=typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,o=!0),"undefined"!=typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!=typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!=typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!=typeof e.searchScope&&(sn.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,o=!0)),this._isRegexOverride="undefined"!=typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!=typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!=typeof e.matchCaseOverride?e.matchCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),o&&this._onFindReplaceStateChange.fire(i)},e}(),gx=Qn("clipboardService"),fx=(n("s0RT"),n("NBYJ"),n("R/+A"),function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}()),mx=new fx("id#");(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\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:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links={},this.options=e||m.defaults,this.rules=t.normal,this.options.gfm&&(this.rules=this.options.tables?t.tables:t.gfm)}t._label=/(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,t.def=c(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=c(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=c(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t.html=c(t.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,t._tag).getRegex(),t.paragraph=c(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag","<"+t._tag).getRegex(),t.blockquote=c(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=f({},t),t.gfm=f({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=c(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=f({},t.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.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)},n.prototype.token=function(e,n){var i,o,r,s,a,u,l,c,d,h,p;for(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(n&&(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,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),this.tokens.push({type:"list_start",ordered:p=(s=r[2]).length>1,start:p?+s:""}),i=!1,h=(r=r[0].match(this.rules.item)).length,c=0;c1&&a.length>1||(e=r.slice(c+1).join("\n")+e,c=h-1)),o=i||/\n\n(?!\s*$)/.test(u),c!==h-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),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:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(n&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),d=r[1].toLowerCase(),this.tokens.links[d]||(this.tokens.links[d]={href:r[2],title:r[3]});else if(n&&(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:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function c(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){return h[" "+e]||(h[" "+e]=/^[^:]+:\/*[^/]*$/.test(e)?e+"/":e.replace(/[^/]*$/,"")),e=h[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=c(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,i._href=/\s*?(?:\s+['"]([\s\S]*?)['"])?\s*/,i.link=c(i.link).replace("inside",i._inside).replace("href",i._href).getRegex(),i.reflink=c(i.reflink).replace("inside",i._inside).getRegex(),i.normal=f({},i),i.pedantic=f({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),i.gfm=f({},i.normal,{escape:c(i.escape).replace("])","~|])").getRegex(),url:c(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",i._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:c(i.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),i.breaks=f({},i.gfm,{br:c(i.br).replace("{2,}","*").getRegex(),text:c(i.gfm.text).replace("{2,}","*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,i,o,r="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),r+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),i="@"===o[2]?"mailto:"+(n=u(this.mangle(o[1]))):n=u(o[1]),r+=this.renderer.link(i,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),r+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,r+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,r+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),r+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),r+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),r+=this.renderer.codespan(u(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),r+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),r+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),r+=this.renderer.text(u(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else o[0]=this.rules._backpedal.exec(o[0])[0],e=e.substring(o[0].length),"@"===o[2]?i="mailto:"+(n=u(o[0])):(n=u(o[0]),i="www."===o[1]?"http://"+n:n),r+=this.renderer.link(i,null,n);return r},o.prototype.outputLink=function(e,t){var n=u(t.href),i=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.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:u(e,!0))+"\n
\n":"
"+(n?e:u(e,!0))+"\n
"},r.prototype.blockquote=function(e){return"
\n"+e+"
\n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},r.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return n}this.options.baseUrl&&!p.test(e)&&(e=d(this.options.baseUrl,e));var o='
    "+n+""},r.prototype.image=function(e,t,n){this.options.baseUrl&&!p.test(e)&&(e=d(this.options.baseUrl,e));var i=''+n+'":">")},r.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,f({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.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,l(this.inlineText.output(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="";for(n="",e=0;eAn error occurred:

    "+u(e.message+"",!0)+"
    ";throw e}}g.exec=g,m.options=m.setOptions=function(e){return f(m.defaults,e),m},m.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new r,xhtml:!1,baseUrl:null},m.Parser=a,m.parser=a.parse,m.Renderer=r,m.TextRenderer=s,m.Lexer=n,m.lexer=n.lex,m.InlineLexer=o,m.inlineLexer=o.output,m.parse=m,hx=m}).call(this);var yx=hx;function vx(e){var t=document.createElement(e.inline?"span":"div");return e.className&&(t.className=e.className),t}function bx(e,t){void 0===t&&(t={});var n=vx(t);return function e(t,n,i){var o;if(2===n.type)o=document.createTextNode(n.content);else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&i){var r=document.createElement("a");r.href="#",i.disposeables.push(ra(r,"click",function(e){i.callback(String(n.index),e)})),o=r}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);t!==o&&t.appendChild(o),Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,i)})}(n,function(t){for(var n={type:1,children:[]},i=0,o=n,r=[],s=new _x(e);!s.eos();){var a=s.next(),u="\\"===a&&0!==Mx(s.peek());if(u&&(a=s.next()),u||0===Mx(a)||a!==s.peek())if("\n"===a)2===o.type&&(o=r.pop()),o.children.push({type:7});else if(2!==o.type){var l={type:2,content:a};o.children.push(l),r.push(o),o=l}else o.content+=a;else{s.advance(),2===o.type&&(o=r.pop());var c=Mx(a);if(o.type===c||5===o.type&&6===c)o=r.pop();else{var d={type:c,children:[]};5===c&&(d.index=i,i++),o.children.push(d),r.push(o),o=d}}}return 2===o.type&&(o=r.pop()),n}(),t.actionHandler),n}var _x=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 Mx(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}var wx,Cx=Za;!function(e){e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR"}(wx||(wx={}));var Lx={inputBackground:dp.fromHex("#3C3C3C"),inputForeground:dp.fromHex("#CCCCCC"),inputValidationInfoBorder:dp.fromHex("#55AAFF"),inputValidationInfoBackground:dp.fromHex("#063B49"),inputValidationWarningBorder:dp.fromHex("#B89500"),inputValidationWarningBackground:dp.fromHex("#352A05"),inputValidationErrorBorder:dp.fromHex("#BE1100"),inputValidationErrorBackground:dp.fromHex("#5A1D1D")},Nx=function(e){function t(t,n,i){var o=e.call(this)||this;o.state="idle",o._onDidChange=o._register(new zt),o.onDidChange=o._onDidChange.event,o._onDidHeightChange=o._register(new zt),o.onDidHeightChange=o._onDidHeightChange.event,o.contextViewProvider=n,o.options=i||Object.create(null),Or(o.options,Lx,!1),o.message=null,o.cachedHeight=null,o.placeholder=o.options.placeholder||"",o.ariaLabel=o.options.ariaLabel||"",o.inputBackground=o.options.inputBackground,o.inputForeground=o.options.inputForeground,o.inputBorder=o.options.inputBorder,o.inputValidationInfoBorder=o.options.inputValidationInfoBorder,o.inputValidationInfoBackground=o.options.inputValidationInfoBackground,o.inputValidationWarningBorder=o.options.inputValidationWarningBorder,o.inputValidationWarningBackground=o.options.inputValidationWarningBackground,o.inputValidationErrorBorder=o.options.inputValidationErrorBorder,o.inputValidationErrorBackground=o.options.inputValidationErrorBackground,o.options.validationOptions&&(o.validation=o.options.validationOptions.validation),o.element=Ba(t,Cx(".monaco-inputbox.idle"));var r=o.options.flexibleHeight?"textarea":"input",s=Ba(o.element,Cx(".wrapper"));return o.input=Ba(s,Cx(r+".input")),o.input.setAttribute("autocorrect","off"),o.input.setAttribute("autocapitalize","off"),o.input.setAttribute("spellcheck","false"),o.onfocus(o.input,function(){return ea(o.element,"synthetic-focus")}),o.onblur(o.input,function(){return ta(o.element,"synthetic-focus")}),o.options.flexibleHeight?o.mirror=Ba(s,Cx("div.mirror")):(o.input.type=o.options.type||"text",o.input.setAttribute("wrap","off")),o.ariaLabel&&o.input.setAttribute("aria-label",o.ariaLabel),o.placeholder&&o.setPlaceHolder(o.placeholder),o.oninput(o.input,function(){return o.onValueChange()}),o.onblur(o.input,function(){return o.onBlur()}),o.onfocus(o.input,function(){return o.onFocus()}),o.placeholder&&Is&&o.onclick(o.input,function(e){Wa.stop(e,!0),o.input.focus()}),setTimeout(function(){o.input&&o.updateMirror()},0),o.options.actions&&(o.actionbar=o._register(new q_(o.element)),o.actionbar.push(o.options.actions,{icon:!0,label:!1})),o.applyStyles(),o}return Object(a.c)(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return null===this.cachedHeight?Ta(this.element):this.cachedHeight},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},Object.defineProperty(t.prototype,"width",{get:function(){return Sa(this.input)},set:function(e){this.input.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e,t){this.message=e,ta(this.element,"idle"),ta(this.element,"info"),ta(this.element,"warning"),ta(this.element,"error"),ea(this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null,CM(e.type===wx.ERROR?Yo("alertErrorMessage","Error: {0}",e.content):e.type===wx.WARNING?Yo("alertWarningMessage","Warning: {0}",e.content):Yo("alertInfoMessage","Info: {0}",e.content)),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,ta(this.element,"info"),ta(this.element,"warning"),ta(this.element,"error"),ea(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.isInputValid=function(){return!!this.validation&&!this.validation(this.value)},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case wx.INFO:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground};case wx.WARNING:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground}}},t.prototype.classForType=function(e){switch(e){case wx.INFO:return"info";case wx.WARNING:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=Sa(e.element)+"px"};this.state="open",this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:kM.RIGHT,render:function(i){t=Ba(i,Cx(".monaco-inputbox-container")),n();var o={inline:!0,className:"monaco-inputbox-message"},r=e.message.formatContent?bx(e.message.content,o):function(e,t){void 0===t&&(t={});var n=vx(t);return n.textContent=e,n}(e.message.content,o);ea(r,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return r.style.backgroundColor=s.background?s.background.toString():null,r.style.border=s.border?"1px solid "+s.border:null,Ba(t,r),null},layout:n})}},t.prototype._hideMessage=function(){this.contextViewProvider&&"open"===this.state&&(this.state="idle",this.contextViewProvider.hideContextView())},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=e.charCodeAt(e.length-1);this.mirror.textContent=e+(10===t?" ":""),this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedHeight;this.cachedHeight=Ta(this.mirror),e!==this.cachedHeight&&(this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=null,this.message=null,this.placeholder=null,this.ariaLabel=null,this.validation=null,this.state=null,this.actionbar=null,e.prototype.dispose.call(this)},t}(bb),Ix=(n("IBAp"),n("Q9Nm"),{inputActiveOptionBorder:dp.fromHex("#007ACC")}),Sx=function(e){function t(t){var n=e.call(this)||this;return n._opts=jr(t),Or(n._opts,Ix,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox "+n._opts.actionClassName+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,function(e){n.checked=!n._checked,n._opts.onChange(!1),e.preventDefault()}),n.onkeydown(n.domNode,function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._opts.onChange(!0),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){Qa(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(bb),xx=Yo("caseDescription","Match Case"),Dx=Yo("wordsDescription","Match Whole Word"),Tx=Yo("regexDescription","Use Regular Expression"),Ex=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:xx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),kx=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:Dx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),jx=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:Tx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),Ax=Yo("defaultLabel","input"),Ox=function(e){function t(t,n,i){var o=e.call(this)||this;return o._onDidOptionChange=o._register(new zt),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new zt),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new zt),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new zt),o.onInput=o._onInput.event,o._onKeyUp=o._register(new zt),o.onKeyUp=o._onKeyUp.event,o._onCaseSensitiveKeyDown=o._register(new zt),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.width=i.width||100,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Ax,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.regex=null,o.wholeWords=null,o.caseSensitive=null,o.domNode=null,o.inputBox=null,o.buildDomNode(i.appendCaseSensitiveLabel||"",i.appendWholeWordsLabel||"",i.appendRegexLabel||""),Boolean(t)&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,function(e){return o._onKeyDown.fire(e)}),o.onkeyup(o.inputBox.inputElement,function(e){return o._onKeyUp.fire(e)}),o.oninput(o.inputBox.inputElement,function(e){return o._onInput.fire()}),o.onmousedown(o.inputBox.inputElement,function(e){return o._onMouseDown.fire(e)}),o}return Object(a.c)(t,e),t.prototype.enable=function(){ta(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){ea(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.clear=function(){this.clearValidation(),this.setValue(""),this.focus()},t.prototype.setWidth=function(e){this.width=e,this.domNode.style.width=this.width+"px",this.contextViewProvider.layout(),this.setInputWidth()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),this.inputBox.style({inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorBorder:this.inputValidationErrorBorder})}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e,this.setInputWidth()},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e,this.setInputWidth()},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.setInputWidth(),this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){ta(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ea(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.setInputWidth=function(){var e=this.width-this.caseSensitive.width()-this.wholeWords.width()-this.regex.width();this.inputBox.width=e},t.prototype.buildDomNode=function(e,t,n){var i=this;this.domNode=document.createElement("div"),this.domNode.style.width=this.width+"px",ea(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Nx(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation||null},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorBorder:this.inputValidationErrorBorder})),this.regex=this._register(new jx({appendTitle:n,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},inputActiveOptionBorder:this.inputActiveOptionBorder})),this.wholeWords=this._register(new kx({appendTitle:t,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},inputActiveOptionBorder:this.inputActiveOptionBorder})),this.caseSensitive=this._register(new Ex({appendTitle:e,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},onKeyDown:function(e){i._onCaseSensitiveKeyDown.fire(e)},inputActiveOptionBorder:this.inputActiveOptionBorder}));var o=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=o.indexOf(document.activeElement);if(t>=0){var n=void 0;e.equals(17)?n=(t+1)%o.length:e.equals(15)&&(n=0===t?o.length-1:t-1),e.equals(9)?o[t].blur():n>=0&&o[n].focus(),Wa.stop(e,!0)}}}),this.setInputWidth();var r=document.createElement("div");r.className="controls",r.appendChild(this.caseSensitive.domNode),r.appendChild(this.wholeWords.domNode),r.appendChild(this.regex.domNode),this.domNode.appendChild(r)},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.OPTION_CHANGE="optionChange",t}(bb),Px=Yo("label.find","Find"),Rx=Yo("placeholder.find","Find"),zx=Yo("label.previousMatchButton","Previous match"),Wx=Yo("label.nextMatchButton","Next match"),Fx=Yo("label.toggleSelectionFind","Find in selection"),Hx=Yo("label.closeButton","Close"),Bx=Yo("label.replace","Replace"),Vx=Yo("placeholder.replace","Replace"),Yx=Yo("label.replaceButton","Replace"),Zx=Yo("label.replaceAllButton","Replace All"),Ux=Yo("label.toggleReplaceButton","Toggle Replace mode"),Gx=Yo("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),Qx=Yo("label.matchesLocation","{0} of {1}"),Xx=Yo("label.noResults","No Results"),Kx=69,Jx=17+(Kx+3+1)+92+2,qx=function(){return function(e){this.afterLineNumber=e,this.heightInPx=34,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}(),$x=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u._codeEditor=t,u._controller=n,u._state=i,u._contextViewProvider=o,u._keybindingService=r,u._isVisible=!1,u._isReplaceVisible=!1,u._register(u._state.onFindReplaceStateChange(function(e){return u._onStateChanged(e)})),u._buildDomNode(),u._updateButtons(),u._tryUpdateWidgetWidth(),u._register(u._codeEditor.onDidChangeConfiguration(function(e){e.readOnly&&(u._codeEditor.getConfiguration().readOnly&&u._state.change({isReplaceRevealed:!1},!1),u._updateButtons()),e.layoutInfo&&u._tryUpdateWidgetWidth()})),u._register(u._codeEditor.onDidChangeCursorSelection(function(){u._isVisible&&u._updateToggleSelectionFindButton()})),u._register(u._codeEditor.onDidFocusEditor(function(){if(u._isVisible){var e=u._controller.getGlobalBufferTerm();e&&e!==u._state.searchString&&(u._state.change({searchString:e},!0),u._findInput.select())}})),u._findInputFocused=tx.bindTo(s),u._findFocusTracker=u._register(Ha(u._findInput.inputBox.inputElement)),u._register(u._findFocusTracker.onDidFocus(function(){u._findInputFocused.set(!0),u._updateSearchScope()})),u._register(u._findFocusTracker.onDidBlur(function(){u._findInputFocused.set(!1)})),u._replaceInputFocused=nx.bindTo(s),u._replaceFocusTracker=u._register(Ha(u._replaceInputBox.inputElement)),u._register(u._replaceFocusTracker.onDidFocus(function(){u._replaceInputFocused.set(!0),u._updateSearchScope()})),u._register(u._replaceFocusTracker.onDidBlur(function(){u._replaceInputFocused.set(!1)})),u._codeEditor.addOverlayWidget(u),u._viewZone=new qx(0),u._applyTheme(a.getTheme()),u._register(a.onThemeChange(u._applyTheme.bind(u))),u._register(u._codeEditor.onDidChangeModel(function(e){u._isVisible&&void 0!==u._viewZoneId&&u._codeEditor.changeViewZones(function(e){e.removeZone(u._viewZoneId),u._viewZoneId=void 0})})),u._register(u._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?u._layoutViewZone():setTimeout(function(){u._layoutViewZone()},0)})),u}return Object(a.c)(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:Fn.TOP_RIGHT_CORNER}:null},t.prototype._onStateChanged=function(e){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._replaceInputBox.width=this._findInput.inputBox.width,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._toggleSelectionFind.checked=!!this._state.searchScope,this._updateToggleSelectionFindButton()),(e.searchString||e.matchesCount||e.matchesPosition)&&(na(this._domNode,"no-results",this._state.searchString.length>0&&0===this._state.matchesCount),this._updateMatchesCount()),(e.searchString||e.currentMatch)&&this._layoutViewZone()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Kx+"px",this._matchesCount.title=this._state.matchesCount>=19999?Gx:"",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=Ni(Qx,n,t)}else e=Xx;this._matchesCount.appendChild(document.createTextNode(e)),Kx=Math.max(Kx,this._matchesCount.clientWidth)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection();this._toggleSelectionFind.setEnabled(this._isVisible&&(this._toggleSelectionFind.checked||!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn)))},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),na(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;if(!this._isVisible){this._isVisible=!0;var n=this._codeEditor.getSelection();this._toggleSelectionFind.checked=!(!n||n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn||!this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection),this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ea(t._domNode,"visible"),t._domNode.setAttribute("aria-hidden","false")},0),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&n){var o=Na(this._codeEditor.getDomNode()),r=this._codeEditor.getScrolledVisiblePosition(n.getStartPosition()),s=o.left+r.left;if(r.topn.startLineNumber&&(i=!1);var a=La(this._domNode).left;s>a&&(i=!1);var u=this._codeEditor.getScrolledVisiblePosition(n.getEndPosition());o.left+u.left>a&&(i=!1)}}this._showViewZone(i)}},t.prototype._hide=function(e){var t=this;this._isVisible&&(this._isVisible=!1,this._updateButtons(),ta(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._codeEditor.changeViewZones(function(e){void 0!==t._viewZoneId&&(e.removeZone(t._viewZoneId),t._viewZoneId=void 0,t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()-t._viewZone.heightInPx))}))},t.prototype._layoutViewZone=function(){var e=this;this._isVisible&&void 0===this._viewZoneId&&this._codeEditor.changeViewZones(function(t){e._viewZone.heightInPx=e._state.isReplaceRevealed?64:34,e._viewZoneId=t.addZone(e._viewZone),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+e._viewZone.heightInPx)})},t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0),this._isVisible&&this._codeEditor.changeViewZones(function(n){var i=34;void 0!==t._viewZoneId?(t._state.isReplaceRevealed?(t._viewZone.heightInPx=64,i=30):(t._viewZone.heightInPx=34,i=-30),n.removeZone(t._viewZoneId)):t._viewZone.heightInPx=34,t._viewZoneId=n.addZone(t._viewZone),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+i)})},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(ef),inputBackground:e.getColor(Jg),inputForeground:e.getColor(qg),inputBorder:e.getColor($g),inputValidationInfoBackground:e.getColor(tf),inputValidationInfoBorder:e.getColor(nf),inputValidationWarningBackground:e.getColor(of),inputValidationWarningBorder:e.getColor(rf),inputValidationErrorBackground:e.getColor(sf),inputValidationErrorBorder:e.getColor(af)};this._findInput.style(t),this._replaceInputBox.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,i=!1,o=!1;if(this._resized&&Sa(this._domNode)>411)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInputBox.inputElement.style.width=Sa(this._findInput.inputBox.inputElement)+"px");if(439+t>=e&&(i=!0),439+t-Kx>=e&&(o=!0),439+t-Kx>=e+50&&(n=!0),na(this._domNode,"collapsed-find-widget",n),na(this._domNode,"narrow-find-widget",o),na(this._domNode,"reduced-find-widget",i),o||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){var r=Sa(this._findInput.inputBox.inputElement);r>0&&(this._replaceInputBox.inputElement.style.width=r+"px")}}},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._updateSearchScope=function(){if(this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1)),e.startLineNumber!==e.endLineNumber&&(sn.equalsRange(e,this._state.currentMatch)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){return e.equals(3)?(this._codeEditor.getAction(lx.NextMatchFindAction).run().done(null,xt),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(lx.PreviousMatchFindAction).run().done(null,xt),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new Ox(null,this._contextViewProvider,{width:221,label:Px,placeholder:Rx,appendCaseSensitiveLabel:this._keybindingLabelFor(lx.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(lx.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(lx.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._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)})),this._register(this._findInput.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())})),mn.c&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new tD({label:zx+this._keybindingLabelFor(lx.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(lx.PreviousMatchFindAction).run().done(null,xt)}})),this._nextBtn=this._register(new tD({label:Wx+this._keybindingLabelFor(lx.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(lx.NextMatchFindAction).run().done(null,xt)}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new eD({parent:t,title:Fx+this._keybindingLabelFor(lx.ToggleSearchScopeCommand),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 tD({label:Hx+this._keybindingLabelFor(lx.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),t.appendChild(this._closeBtn.domNode),t},t.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new Nx(t,null,{ariaLabel:Bx,placeholder:Vx})),this._register(ra(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(ra(this._replaceInputBox.inputElement,"input",function(t){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new tD({label:Yx+this._keybindingLabelFor(lx.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new tD({label:Zx+this._keybindingLabelFor(lx.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new tD({label:Ux,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash()},t.prototype._buildSash=function(){var e=this;this._resizeSash=new v_(this._domNode,this,{orientation:y_.VERTICAL}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(n){t=Sa(e._domNode)})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var i=t+n.startX-n.currentX;if(!(i<411)){var o=i-Jx;i>(parseFloat(_a(e._domNode).maxWidth)||0)||(e._domNode.style.width=i+"px",e._isReplaceVisible&&(e._replaceInputBox.width=o))}}))},t.ID="editor.contrib.findWidget",t}(bb),eD=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._domNode.tabIndex=0,i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._checkbox.tabIndex=-1,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._label.tabIndex=-1,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 Object(a.c)(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.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(bb),tD=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,function(e){n._opts.onTrigger(),e.preventDefault()}),n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return Object(a.c)(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){na(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){na(this._domNode,e,t)},t}(bb);wm(function(e,t){function n(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")}n(".findMatch",e.getColor(Ff)),n(".currentFindMatch",e.getColor(Wf)),n(".findScope",e.getColor(Hf)),n(".find-widget",e.getColor(kf));var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Vf);o&&t.addRule(".monaco-editor .findMatch { border: 1px dotted "+o+"; -moz-box-sizing: border-box; box-sizing: border-box; }");var r=e.getColor(Bf);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; -moz-box-sizing: border-box; box-sizing: border-box; }");var s=e.getColor(Yf);s&&t.addRule(".monaco-editor .findScope { border: 1px dashed "+s+"; }");var a=e.getColor(Ug);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var u=e.getColor(Yg);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var l=e.getColor(jf);l&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+l+"; width: 3px !important; margin-left: -4px;}")});var nD=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._hideSoon=r._register(new _s(function(){return r._hide()},2e3)),r._isVisible=!1,r._editor=t,r._state=n,r._keybindingService=i,r._domNode=document.createElement("div"),r._domNode.className="findOptionsWidget",r._domNode.style.display="none",r._domNode.style.top="10px",r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true");var s=o.getTheme().getColor(ef);return r.caseSensitive=r._register(new Ex({appendTitle:r._keybindingLabelFor(lx.ToggleCaseSensitiveCommand),isChecked:r._state.matchCase,onChange:function(e){r._state.change({matchCase:r.caseSensitive.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.caseSensitive.domNode),r.wholeWords=r._register(new kx({appendTitle:r._keybindingLabelFor(lx.ToggleWholeWordCommand),isChecked:r._state.wholeWord,onChange:function(e){r._state.change({wholeWord:r.wholeWords.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.wholeWords.domNode),r.regex=r._register(new jx({appendTitle:r._keybindingLabelFor(lx.ToggleRegexCommand),isChecked:r._state.isRegex,onChange:function(e){r._state.change({isRegex:r.regex.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.regex.domNode),r._editor.addOverlayWidget(r),r._register(r._state.onFindReplaceStateChange(function(e){var t=!1;e.isRegex&&(r.regex.checked=r._state.isRegex,t=!0),e.wholeWord&&(r.wholeWords.checked=r._state.wholeWord,t=!0),e.matchCase&&(r.caseSensitive.checked=r._state.matchCase,t=!0),!r._state.isRevealed&&t&&r._revealTemporarily()})),r._register(sa(r._domNode,function(e){return r._onMouseOut()})),r._register(oa(r._domNode,"mouseover",function(e){return r._onMouseOver()})),r._applyTheme(o.getTheme()),r._register(o.onThemeChange(r._applyTheme.bind(r))),r}return Object(a.c)(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:Fn.TOP_RIGHT_CORNER}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(ef)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(bb);function iD(e){var t=e.getSelection();if(t.startLineNumber===t.endLineNumber){if(!t.isEmpty())return e.getModel().getValueInRange(t);var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}return null}wm(function(e,t){var n=e.getColor(kf);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Ug);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+o+"; }")});var oD=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._findWidgetVisible=ex.bindTo(n),r._storageService=i,r._clipboardService=o,r._updateHistoryDelayer=new gs(500),r._currentHistoryNavigator=new QS,r._state=r._register(new px),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange(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,matchCase:r._storageService.getBoolean("editor.matchCase",vg.WORKSPACE,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",vg.WORKSPACE,!1),isRegex:r._storageService.getBoolean("editor.isRegex",vg.WORKSPACE,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1})})),r}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype.getId=function(){return t.ID},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.updateHistory&&e.searchString&&this._delayedUpdateHistory(),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,vg.WORKSPACE),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,vg.WORKSPACE),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,vg.WORKSPACE)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",vg.WORKSPACE,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",vg.WORKSPACE,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",vg.WORKSPACE,this._state.isRegex)},!1)},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._currentHistoryNavigator.add(this._state.searchString)},t.prototype.getState=function(){return this._state},t.prototype.getHistory=function(){return this._currentHistoryNavigator},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1)},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1)},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1)},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else{var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1)),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=Si(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.getModel()){var t,n={isRevealed:!0};e.seedSearchStringFromSelection&&(t=iD(this._editor))&&(n.searchString=this._state.isRegex?Si(t):t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),this._state.change(n,!1),this._model||(this._model=new cx(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.showPreviousFindTerm=function(){var e=this._currentHistoryNavigator.previous();return e&&this._state.change({searchString:e},!1,!1),!0},t.prototype.showNextFindTerm=function(){var e=this._currentHistoryNavigator.next();return e&&this._state.change({searchString:e},!1,!1),!0},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForHavingARichMode()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForHavingARichMode()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,wg),Object(a.d)(3,gx)],t)}(Ct),rD=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,i,s,a)||this;return u._contextViewService=n,u._contextKeyService=i,u._keybindingService=o,u._themeService=r,u}return Object(a.c)(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new $x(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new nD(this._editor,this._state,this._keybindingService,this._themeService))},Object(a.b)([Object(a.d)(1,Kn),Object(a.d)(2,Wo),Object(a.d)(3,pi),Object(a.d)(4,mm),Object(a.d)(5,wg),Object(a.d)(6,Xn(gx))],t)}(oD),sD=function(e){function t(){return e.call(this,{id:lx.StartFindAction,label:Yo("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0})},t}(Xp),aD=function(e){function t(){return e.call(this,{id:lx.StartFindWithSelection,label:Yo("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:null,mac:{primary:2083}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0}),n.setGlobalBufferTerm(n.getState().searchString))},t}(Xp),uD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0}),this._run(n))},t}(Xp),lD=function(e){function t(){return e.call(this,{id:lx.NextMatchFindAction,label:Yo("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:wp.focus,primary:61,mac:{primary:2085,secondary:[61]}}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(uD),cD=function(e){function t(){return e.call(this,{id:lx.PreviousMatchFindAction,label:Yo("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:wp.focus,primary:1085,mac:{primary:3109,secondary:[1085]}}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(uD),dD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);if(n){var i=iD(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0}),this._run(n))}},t}(Xp),hD=function(e){function t(){return e.call(this,{id:lx.NextSelectionMatchFindAction,label:Yo("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:wp.focus,primary:2109}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(dD),pD=function(e){function t(){return e.call(this,{id:lx.PreviousSelectionMatchFindAction,label:Yo("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:wp.focus,primary:3133}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(dD),gD=function(e){function t(){return e.call(this,{id:lx.StartFindReplaceAction,label:Yo("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){if(!t.getConfiguration().readOnly){var n=oD.get(t),i=t.getSelection(),o=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,r=n.getState().searchString||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:r,shouldAnimate:!0})}},t}(Xp),fD=function(e){function t(){return e.call(this,{id:lx.ShowNextFindTermAction,label:Yo("showNextFindTermAction","Show Next Find Term"),alias:"Show Next Find Term",precondition:ex,kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:To.and(tx,wp.focus),primary:ux.primary,mac:ux.mac,win:ux.win,linux:ux.linux}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.showNextFindTerm()},t}(uD),mD=function(e){function t(){return e.call(this,{id:lx.ShowPreviousFindTermAction,label:Yo("showPreviousFindTermAction","Show Previous Find Term"),alias:"Find Show Previous Find Term",precondition:ex,kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:To.and(tx,wp.focus),primary:ax.primary,mac:ax.mac,win:ax.win,linux:ax.linux}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.showPreviousFindTerm()},t}(uD);eg(rD),$p(sD),$p(aD),$p(lD),$p(cD),$p(hD),$p(pD),$p(gD),$p(fD),$p(mD);var yD=Qp.bindToContribution(oD.get);qp(new yD({id:lx.CloseFindWidgetCommand,precondition:ex,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:9,secondary:[1033]}})),qp(new yD({id:lx.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:ix.primary,mac:ix.mac,win:ix.win,linux:ix.linux}})),qp(new yD({id:lx.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:ox.primary,mac:ox.mac,win:ox.win,linux:ox.linux}})),qp(new yD({id:lx.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:rx.primary,mac:rx.mac,win:rx.win,linux:rx.linux}})),qp(new yD({id:lx.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:sx.primary,mac:sx.mac,win:sx.win,linux:sx.linux}})),qp(new yD({id:lx.ReplaceOneAction,precondition:ex,handler:function(e){return e.replace()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:3094}})),qp(new yD({id:lx.ReplaceAllAction,precondition:ex,handler:function(e){return e.replaceAll()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:2563}})),qp(new yD({id:lx.SelectAllMatchesAction,precondition:ex,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:515}})),n("Vcj/");var vD=65535,bD=function(){function e(e,t,n){if(e.length!==t.length||e.length>vD)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var o=t[t.length-1];return e.getStartLineNumber(o)<=n&&e.getEndLineNumber(o)>=i},i=0,o=this._startIndexes.length;i16777215||s>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;t.length>0&&!n(r,s);)t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=r+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return 16777215&this._startIndexes[e]},e.prototype.getEndLineNumber=function(e){return 16777215&this._endIndexes[e]},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){return 0!=(this._collapseStates[e/32|0]&1<>>24)+((4278190080&this._endIndexes[e])>>>16);return t===vD?-1:t},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e.prototype.hidesLine=function(e){return this.startLineNumber=d))break;o(a,c===d),a++}}u=s()}for(;a0?e:null},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n=0;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){for(var n=[],i=t&&2===t.length,o=i?[]:null,r=e?e.endLineNumber:Number.MAX_VALUE,s=e?e.regionIndex+1:0,a=this._regions.length;s0&&!u.containedBy(o[o.length-1]);)o.pop();o.push(u),t(u,o.length)&&n.push(u)}else t&&!t(u)||n.push(u)}return n},e}();function wD(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r1)){var u=e.getRegionsInside(a,function(e,i){return e.isCollapsed!==t&&i=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function ND(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var ID=function(){function e(e){this.editor=e,this.COLLAPSED_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}),this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding"}),this.EXPANDED_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding alwaysShowFoldIcons"}),this.autoHideFoldingControls=!0}return e.prototype.getDecorationOption=function(e){return e?this.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:this.EXPANDED_VISUAL_DECORATION},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e}(),SD=function(){function e(e){var t=this;this._updateEventEmitter=new zt,this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n0},e.prototype.isHidden=function(e){return null!==xD(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){return o&&function(e,t){return e>=o.startLineNumber&&e<=o.endLineNumber}(e)||(o=xD(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function xD(e,t){var n=function(e,n){var i=0,o=e.length;if(0===o)return 0;for(;i=0&&e[n].endLineNumber>=t?e[n]:null}var DD=function(){function e(){}return e.prototype.compute=function(e,t){var n=Bc.getFoldingRules(e.getLanguageIdentifier().id);return Nt.b.as(function(e,t,n,i){void 0===i&&(i=5e3);var o=e.getOptions().tabSize,r=new TD(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[];a.push({indent:-1,line:e.getLineCount()+1,marker:!1});for(var u=e.getLineCount();u>0;u--){var l=e.getLineContent(u),c=uh.computeIndentLevel(l,o),d=a[a.length-1];if(-1!==c){var h=void 0;if(s&&(h=l.match(s))){if(!h[1]){a.push({indent:-2,line:u,marker:!0});continue}for(var p=a.length-1;p>0&&!a[p].marker;)p--;if(p>0){a.length=p+1,r.insertFirst(u,(d=a[p]).line,c),d.marker=!1,d.indent=c,d.line=u;continue}}if(d.indent>c){do{a.pop(),d=a[a.length-1]}while(d.indent>c);var g=d.line-1;g-u>=1&&r.insertFirst(u,g,c)}d.indent===c?d.line=u:a.push({indent:c,line:u,marker:!1})}else t&&!d.marker&&(d.line=u)}return r.toIndentRanges(e)}(e,n&&n.offSide,n&&n.markers))},e}(),TD=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,n){if(!(e>16777215||t>16777215)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;i>=0;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new bD(t,n)}var r=0,s=this._indentOccurrences.length;for(i=0;ithis._foldingRangesLimit){s=i;break}r+=a}}var u=e.getOptions().tabSize;for(t=new Uint32Array(r),n=new Uint32Array(r),i=this._length-1,o=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l);uh.computeIndentLevel(c,u)0&&l.endLineNumber>l.startLineNumber&&l.endLineNumber<=s&&i.push({startLineNumber:l.startLineNumber,endLineNumber:l.endLineNumber,rank:o,type:l.type})}}}return i},Dt)}(this.providers,e,t).then(function(e){return e?function(t){for(var n=e.sort(function(e,t){var n=e.startLineNumber-t.startLineNumber;return 0===n&&(n=e.rank-t.rank),n}),i=new jD(5e3),o=null,r=[],s=0,a=n;so.startLineNumber)if(u.endLineNumber<=o.endLineNumber)r.push(o),o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length);else if(u.startLineNumber>o.endLineNumber){do{o=r.pop()}while(o&&u.startLineNumber>o.endLineNumber);r.push(o),o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length)}}else o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length)}return i.toIndentRanges()}():null})},e}(),jD=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>16777215||t>16777215)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;nthis._foldingRangesLimit){o=n;break}i+=r}}e=new Uint32Array(i),t=new Uint32Array(i);for(var s=[],a=(n=0,0);n0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,function(e){return e.isCollapsed&&o>e.startLineNumber}))},r=0,s=n;r0){var s=i.modifyPosition(e.getStartPosition(),r);e=new sn(s.lineNumber,s.column,e.endLineNumber,e.endColumn),t=t.substring(r),o=o.substr(r)}var a=io(t,o);if(a>0){var u=i.modifyPosition(e.getEndPosition(),-a);e=new sn(e.startLineNumber,e.startColumn,u.lineNumber,u.column),t=t.substring(0,t.length-a),o=o.substring(0,o.length-a)}return{text:t,range:e,forceMoveMarkers:n}},e}(),eT=function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?Ni("{0}#{1}",n.uri.toString(),n.getVersionId()):null}0!=(4&this.flags)&&(this.position=e.getPosition()),0!=(2&this.flags)&&(this.selection=e.getSelection()),0!=(8&this.flags)&&(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop())}return e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))},e}();function tT(e){if((e=e.filter(function(e){return e.range})).length){for(var t=e[0].range,n=1;n1)){var n=this.editor.getModel(),i=this.editor.getPosition(),o=!1,r=this.editor.onDidChangeModelContent(function(e){if(e.isFlush)return o=!0,void r.dispose();for(var t=0,n=e.changes.length;t1)){var n=this.editor.getModel(),i=n.getOptions(),o=i.tabSize,r=i.insertSpaces,s=new eT(this.editor,5);KD(n,e,{tabSize:o,insertSpaces:r}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e)}).then(function(e){s.validate(t.editor)&&!ur(e)&&($D.execute(t.editor,e),tT(e))})}},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.callOnDispose=_t(this.callOnDispose),this.callOnModel=_t(this.callOnModel)},e.ID="editor.contrib.formatOnPaste",e=Object(a.b)([Object(a.d)(1,Vo)],e)}(),oT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=e.get(Vo),i=e.get(lu),o=this._getFormattingEdits(t);if(!o)return Nt.b.as(void 0);var r=new eT(t,5);return o.then(function(e){return n.computeMoreMinimalEdits(t.getModel().uri,e)}).then(function(e){r.validate(t)&&!ur(e)&&($D.execute(t,e),tT(e),t.focus())},function(e){if(!(e instanceof Error&&e.name===XD.Name))throw e;i.info(Yo("no.provider","There is no formatter for '{0}'-files installed.",t.getModel().getLanguageIdentifier().language))})},t}(Xp),rT=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:Yo("formatDocument.label","Format Document"),alias:"Format Document",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:1572,linux:{primary:3111}},menuOpts:{when:wp.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Object(a.c)(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions();return JD(t,{tabSize:n.tabSize,insertSpaces:n.insertSpaces})},t}(oT),sT=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:Yo("formatSelection.label","Format Selection"),alias:"Format Code",precondition:To.and(wp.writable,wp.hasNonEmptySelection),kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,2084)},menuOpts:{when:To.and(wp.hasDocumentSelectionFormattingProvider,wp.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Object(a.c)(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return KD(t,e.getSelection(),{tabSize:i,insertSpaces:o})},t}(oT);function aT(e,t,n,i){var o=n.ordered(e).map(function(n,o){return hs(function(o){return i(n,e,t,o)}).then(void 0,function(e){return Dt(e),null})});return Nt.b.join(o).then(dr).then(function(e){return e.filter(function(e){return!!e})})}function uT(e,t){return aT(e,t,Nl,function(e,t,n,i){return e.provideDefinition(t,n,i)})}function lT(e,t){return aT(e,t,Il,function(e,t,n,i){return e.provideImplementation(t,n,i)})}function cT(e,t){return aT(e,t,Sl,function(e,t,n,i){return e.provideTypeDefinition(t,n,i)})}eg(nT),eg(iT),$p(rT),$p(sT),hi.registerCommand("editor.action.format",function(e){var t=e.get(Fo).getFocusedCodeEditor();if(t)return(new(function(e){function t(){return e.call(this,{})||this}return Object(a.c)(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()?JD(t,{tabSize:o,insertSpaces:r}):KD(t,n,{tabSize:o,insertSpaces:r})},t}(oT))).run(e,t)}),Jp("_executeDefinitionProvider",uT),Jp("_executeImplementationProvider",lT),Jp("_executeTypeDefinitionProvider",cT),n("Bv73"),n("0u1n");var dT={badgeBackground:dp.fromHex("#4D4D4D"),badgeForeground:dp.fromHex("#FFFFFF")},hT=function(){function e(e,t){this.options=t||Object.create(null),Or(this.options,dT,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Ba(e,Za(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setCountFormat=function(e){this.countFormat=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=Ni(this.countFormat,this.count),this.element.title=Ni(this.titleFormat,this.count),this.applyStyles()},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():null,t=this.badgeForeground?this.badgeForeground.toString():null,n=this.badgeBorder?this.badgeBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},e}();function pT(e){return Ii(e)}n("KU51");var gT,fT,mT=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&&Pr(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.highlights=t,this.render())},e.prototype.render=function(){Xs(this.domNode);for(var e,t=[],n=0,i=0;i"),t.push(pT(this.text.substring(n,e.start))),t.push(""),n=e.end),t.push(''),t.push(pT(this.text.substring(e.start,e.end))),t.push(""),n=e.end);n"),t.push(pT(this.text.substring(n))),t.push("")),this.domNode.innerHTML=t.join(""),this.didEverRender=!0},e.prototype.dispose=function(){this.text=null,this.highlights=null},e}(),yT=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),vT=function(){function e(e,t){var n=this;this.domNode=new yT(Ba(e,Za(".monaco-icon-label"))),this.labelDescriptionContainer=new yT(Ba(this.domNode.element,Za(".monaco-icon-label-description-container"))),this.labelNode=t&&t.supportHighlights?new mT(Ba(this.labelDescriptionContainer.element,Za("a.label-name"))):new yT(Ba(this.labelDescriptionContainer.element,Za("a.label-name"))),this.descriptionNodeFactory=t&&t.supportDescriptionHighlights?function(){return new mT(Ba(n.labelDescriptionContainer.element,Za("span.label-description")))}:function(){return new yT(Ba(n.labelDescriptionContainer.element,Za("span.label-description")))}}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode.element},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){return Mt([oa(this.labelDescriptionContainer.element,za.CLICK,function(t){return e(t)})])},e.prototype.setValue=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=n&&n.title?n.title:"",this.labelNode instanceof mT?this.labelNode.set(e||"",n?n.matches:void 0):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof mT?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=n&&n.descriptionTitle?n.descriptionTitle:"",this.descriptionNode.empty=!t))},e.prototype.dispose=function(){this.domNode.dispose(),this.labelNode.dispose(),this.descriptionNode&&this.descriptionNode.dispose()},e}(),bT=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;return r.setFile(n,i,o),r}return Object(a.c)(t,e),t.prototype.setFile=function(e,t,n){var i=mr(e.fsPath);this.setValue(Ir(e),i&&"."!==i?Nr(i,t,n):"",{title:e.fsPath})},t}(vT),_T=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this,t,i.getRawConfiguration(),o,r,s,a,u)||this;return l._parentEditor=i,l._overwriteOptions=n,e.prototype.updateOptions.call(l,l._overwriteOptions),l._register(i.onDidChangeConfiguration(function(e){return l._onParentConfigurationChanged(e)})),l}return Object(a.c)(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){Or(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Fo),Object(a.d)(5,di),Object(a.d)(6,Wo),Object(a.d)(7,mm)],t)}(o_),MT=(n("1mBN"),n("Hv4S"),new dp(new up(0,122,204))),wT={showArrow:!0,showFrame:!0,className:"",frameColor:MT,arrowColor:MT,keepEditorSelection:!1},CT=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}(),LT=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}(),NT=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[]}return e.prototype.dispose=function(){this.hide(),Pa(this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){var e,t,n;Pa(this._ruleName),e=".monaco-editor "+this._ruleName,t="border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ",void 0===n&&(n=Oa()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:sn.fromPositions(e),options:{className:this._ruleName,stickiness:Au.NeverGrowsWhenTypingAtEdges}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new fx(".arrow-decoration-"),e}(),IT=function(){function e(e,t){void 0===t&&(t={});var n=this;this._positionMarkerId=[],this._disposables=[],this._isShowing=!1,this.editor=e,this.options=jr(t),Or(this.options,wT,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.push(this.editor.onDidLayoutChange(function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)}))}return e.prototype.dispose=function(){var e=this;_t(this._disposables),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,[])},e.prototype.create=function(){ea(this.domNode,"zone-widget"),ea(this.domNode,this.options.className),this.container=document.createElement("div"),ea(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new NT(this.editor),this._disposables.push(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e)return this.editor.getModel().getDecorationRange(e).getStartPosition()},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=sn.isIRange(e)?e:new sn(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:ph.EMPTY}])},e.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),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=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 CT(s,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 LT("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden",this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=Math.min(this.editor.getModel().getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(p)},e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),ea(this.container,e)},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.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)})},e.prototype._initSash=function(){var e,t=this;this._resizeSash=new v_(this.domNode,this,{orientation:y_.HORIZONTAL}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.disable()),this._disposables.push(this._resizeSash.onDidStart(function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})})),this._disposables.push(this._resizeSash.onDidEnd(function(){e=void 0})),this._disposables.push(this._resizeSash.onDidChange(function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;r>5&&r<35&&t._relayout(r)}}))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return parseInt(this.domNode.style.height)-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}();(fT=gT||(gT={})).inPeekEditor=new zo("inReferenceSearchEditor",!0),fT.notInPeekEditor=fT.inPeekEditor.toNegated();var ST={headerBackgroundColor:dp.white,primaryHeadingColor:dp.fromHex("#333333"),secondaryHeadingColor:dp.fromHex("#6c6c6cb3")},xT=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new zt,Or(i.options,ST,!1),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=m_(".head").getHTMLElement(),this._bodyElement=m_(".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,n=m_(".peekview-title").on(za.CLICK,function(e){return t._onTitleClick(e)}).appendTo(this._headElement).getHTMLElement();this._primaryHeading=m_("span.filename").appendTo(n).getHTMLElement(),this._secondaryHeading=m_("span.dirname").appendTo(n).getHTMLElement(),this._metaHeading=m_("span.meta").appendTo(n).getHTMLElement();var i=m_(".peekview-actions").appendTo(this._headElement),o=this._getActionBarOptions();this._actionbarWidget=new q_(i,o),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new eu("peekview.close",Yo("label.close","Close"),"close-peekview-action",!0,function(){return t.dispose(),null}),{label:!1,icon:!0})},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){m_(this._primaryHeading).safeInnerHtml(e),this._primaryHeading.setAttribute("aria-label",e),t?m_(this._secondaryHeading).safeInnerHtml(t):Xs(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?m_(this._metaHeading).safeInnerHtml(e):Xs(this._metaHeading)},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{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=Ni("{0}px",e),this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=Ni("{0}px",e)},t}(IT),DT=function(){function e(e,t){this._parent=e,this._range=t,this._onRefChanged=new zt,this.onRefChanged=this._onRefChanged.event,this._id=mx.nextId()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directory",{get:function(){return this._parent.directory},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._onRefChanged.fire(this)},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return Yo("aria.oneReference","symbol in {0} on line {1} at column {2}",yr(this.uri.fsPath),this.range.startLineNumber,this.range.startColumn)},e}(),TT=function(){function e(e){this._modelReference=e}return Object.defineProperty(e.prototype,"_model",{get:function(){return this._modelReference.object.textEditorModel},enumerable:!0,configurable:!0}),e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._model;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=n.getWordUntilPosition({lineNumber:i,column:o-t}),u=new sn(i,a.startColumn,i,o),l=new sn(r,s,r,Number.MAX_VALUE);return{before:n.getValueInRange(u).replace(/^\s+/,Mi),inside:n.getValueInRange(e),after:n.getValueInRange(l).replace(/\s+$/,Mi)}}},e.prototype.dispose=function(){this._modelReference&&(this._modelReference.dispose(),this._modelReference=null)},e}(),ET=function(){function e(e,t){this._parent=e,this._uri=t,this._children=[]}return Object.defineProperty(e.prototype,"id",{get:function(){return this._uri.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return yr(this.uri.fsPath)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directory",{get:function(){return mr(this.uri.fsPath)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){var e=this.children.length;return 1===e?Yo("aria.fileReferences.1","1 symbol in {0}, full path {1}",yr(this.uri.fsPath),this.uri.fsPath):Yo("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,yr(this.uri.fsPath),this.uri.fsPath)},e.prototype.resolve=function(e){var t=this;return this._resolved?Nt.b.as(this):e.createModelReference(this._uri).then(function(e){if(!e.object)throw e.dispose(),new Error;return t._preview=new TT(e),t._resolved=!0,t},function(e){return t._children=[],t._resolved=!0,t._loadFailure=e,t})},e.prototype.dispose=function(){this._preview&&(this._preview.dispose(),this._preview=null)},e}(),kT=function(){function e(t){var n,i=this;this._groups=[],this._references=[],this._onDidChangeReferenceRange=new zt,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._disposables=[],t.sort(e._compareReferences);for(var o=0,r=t;o0?n.children[i=t?(i+1)%o:(i+o-1)%o]:(i=n.parent.groups.indexOf(n),t?n.parent.groups[i=(i+1)%r].children[0]:n.parent.groups[i=(i+r-1)%r].children[n.parent.groups[i].children.length-1])},e.prototype.nearestReference=function(e,t){var n=this._references.map(function(n,i){return{idx:i,prefixLen:no(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}}).sort(function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0})[0];if(n)return this._references[n.idx]},e.prototype.dispose=function(){this._groups=_t(this._groups),_t(this._disposables),this._disposables.length=0},e._compareReferences=function(e,t){var n=e.uri.toString(),i=t.uri.toString();return ni?1:sn.compareRangesUsingStarts(e.range,t.range)},e}(),jT=Qn("environmentService"),AT=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},OT=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1?Yo("referencesCount","{0} references",t):Yo("referenceCount","{0} reference",t))},Object(a.b)([Object(a.d)(1,Er),Object(a.d)(2,Xn(jT)),Object(a.d)(3,mm)],e)}(),FT=function(){function e(e){var t=document.createElement("div");this.before=document.createElement("span"),this.inside=document.createElement("span"),this.after=document.createElement("span"),ea(this.inside,"referenceMatch"),ea(t,"reference"),t.appendChild(this.before),t.appendChild(this.inside),t.appendChild(this.after),e.appendChild(t)}return e.prototype.set=function(e){var t=e.parent.preview.preview(e.range),n=t.inside,i=t.after;this.before.innerHTML=Ii(t.before),this.inside.innerHTML=Ii(n),this.after.innerHTML=Ii(i)},e}(),HT=function(){function e(e,t,n){this._contextService=e,this._themeService=t,this._environmentService=n}return e.prototype.getHeight=function(e,t){return 23},e.prototype.getTemplateId=function(t,n){if(n instanceof ET)return e._ids.FileReferences;if(n instanceof DT)return e._ids.OneReference;throw n},e.prototype.renderTemplate=function(t,n,i){if(n===e._ids.FileReferences)return new WT(i,this._contextService,this._environmentService,this._themeService);if(n===e._ids.OneReference)return new FT(i);throw n},e.prototype.renderElement=function(e,t,n,i){if(t instanceof ET)i.set(t);else{if(!(t instanceof DT))throw n;i.set(t)}},e.prototype.disposeTemplate=function(e,t,n){n instanceof WT&&n.dispose()},e._ids={FileReferences:"FileReferences",OneReference:"OneReference"},e=Object(a.b)([Object(a.d)(0,Er),Object(a.d)(1,mm),Object(a.d)(2,Xn(jT))],e)}(),BT=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return t instanceof ET?t.getAriaMessage():t instanceof DT?t.getAriaMessage():void 0},e}(),VT=function(){function e(e,t){var n,i=this;this._disposables=[],this._onDidChangePercentages=new zt,this._ratio=t,this._sash=new v_(e,{getVerticalSashLeft:function(){return i._width*i._ratio},getVerticalSashHeight:function(){return i._height}}),this._disposables.push(this._sash.onDidStart(function(e){n=e.startX-i._width*i.ratio})),this._disposables.push(this._sash.onDidChange(function(e){var t=e.currentX-n;t>20&&t+200?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return AT(this,void 0,Nt.b,function(){var n,i=this;return OT(this,function(o){switch(o.label){case 0:return e.uri.scheme!==Bo.inMemory?this.setTitle(e.name,Nr(e.directory,this._contextService,this._environmentService)):this.setTitle(Yo("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),t?[4,this._tree.reveal(e.parent)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,Nt.b.join([n,this._tree.reveal(e)]).then(function(t){var n=t[0];if(i._model){_t(i._previewModelReference);var o=n.object;if(o){i._previewModelReference=n;var r=i._preview.getModel()===o.textEditorModel;i._preview.setModel(o.textEditorModel);var s=sn.lift(e.range).collapseToStart();i._preview.setSelection(s),i._preview.revealRangeInCenter(s,r?0:1)}else i._preview.setModel(i._previewNotAvailableMessage),n.dispose()}else n.dispose()},xt)]}})})},t}(xT),UT=Hg("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},Yo("peekViewTitleBackground","Background color of the peek view title area.")),GT=Hg("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},Yo("peekViewTitleForeground","Color of the peek view title.")),QT=Hg("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},Yo("peekViewTitleInfoForeground","Color of the peek view title info.")),XT=Hg("peekView.border",{dark:"#007acc",light:"#007acc",hc:Ug},Yo("peekViewBorder","Color of the peek view borders and arrow.")),KT=Hg("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:dp.black},Yo("peekViewResultsBackground","Background color of the peek view result list.")),JT=Hg("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:dp.white},Yo("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),qT=Hg("peekViewResult.fileForeground",{dark:dp.white,light:"#1E1E1E",hc:dp.white},Yo("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),$T=Hg("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},Yo("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),eE=Hg("peekViewResult.selectionForeground",{dark:dp.white,light:"#6C6C6C",hc:dp.white},Yo("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),tE=Hg("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:dp.black},Yo("peekViewEditorBackground","Background color of the peek view editor.")),nE=Hg("peekViewEditorGutter.background",{dark:tE,light:tE,hc:tE},Yo("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),iE=Hg("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},Yo("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),oE=Hg("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},Yo("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));wm(function(e,t){var n=e.getColor(iE);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: "+n+"; }");var i=e.getColor(oE);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(Gg);o&&(t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { border: 1px dotted "+o+"; box-sizing: border-box; }"),t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }"));var r=e.getColor(KT);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+r+"; }");var s=e.getColor(JT);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+s+"; }");var a=e.getColor(qT);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+a+"; }");var u=e.getColor($T);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+u+"; }");var l=e.getColor(eE);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+l+" !important; }");var c=e.getColor(tE);c&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+c+";}");var d=e.getColor(nE);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+d+";}")});var rE=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},sE=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&Yo("meta.title"," \u2013 {0} definitions",e.references.length)},t.prototype._onResult=function(e,t,n){var i=this;if(CM(n.getAriaMessage()),this._configuration.openInPeek)this._openInPeek(e,t,n);else{var o=n.nearestReference(t.getModel().uri,t.getPosition());this._openReference(e,o,this._configuration.openToSide).then(function(t){t&&n.references.length>1?i._openInPeek(e,t,n):n.dispose()})}},t.prototype._openReference=function(e,t,n){return e.openEditor({resource:t.uri,options:{selection:sn.collapseToStart(t.range),revealIfVisible:!0,revealInCenterIfOutsideViewport:!0}},n).then(function(e){return e&&e.getControl()})},t.prototype._openInPeek=function(e,t,n){var i=this,o=uE.get(t);o?o.toggleWidget(t.getSelection(),Nt.b.as(n),{getMetaTitle:function(e){return i._getMetaTitle(e)},onGoto:function(t){return o.closeWidget(),i._openReference(e,t,!1)}}):n.dispose()},t}(Xp),pE=mn.f?2118:70,gE=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:To.and(wp.hasDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:pE},menuOpts:{group:"navigation",order:1.1}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToDeclaration",t}(hE),fE=function(e){function t(){return e.call(this,new dE(!0),{id:t.ID,label:Yo("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:To.and(wp.hasDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,pE)}})||this}return Object(a.c)(t,e),t.ID="editor.action.openDeclarationToTheSide",t}(hE),mE=function(e){function t(){return e.call(this,new dE(void 0,!0,!1),{id:"editor.action.previewDeclaration",label:Yo("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:To.and(wp.hasDefinitionProvider,gT.notInPeekEditor,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:582,linux:{primary:3140}},menuOpts:{group:"navigation",order:1.2}})||this}return Object(a.c)(t,e),t}(hE),yE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._getDeclarationsAtPosition=function(e,t){return lT(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?Yo("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):Yo("goToImplementation.generic.noResults","No implementation found")},t.prototype._getMetaTitle=function(e){return e.references.length>1&&Yo("meta.implementations.title"," \u2013 {0} implementations",e.references.length)},t}(hE),vE=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToImplementation.label","Go to Implementation"),alias:"Go to Implementation",precondition:To.and(wp.hasImplementationProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:2118}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToImplementation",t}(yE),bE=function(e){function t(){return e.call(this,new dE(!1,!0,!1),{id:t.ID,label:Yo("actions.peekImplementation.label","Peek Implementation"),alias:"Peek Implementation",precondition:To.and(wp.hasImplementationProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:3142}})||this}return Object(a.c)(t,e),t.ID="editor.action.peekImplementation",t}(yE),_E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._getDeclarationsAtPosition=function(e,t){return cT(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?Yo("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):Yo("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getMetaTitle=function(e){return e.references.length>1&&Yo("meta.typeDefinitions.title"," \u2013 {0} type definitions",e.references.length)},t}(hE),ME=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:To.and(wp.hasTypeDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:0},menuOpts:{group:"navigation",order:1.4}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToTypeDefinition",t}(_E),wE=function(e){function t(){return e.call(this,new dE(!1,!0,!1),{id:t.ID,label:Yo("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:To.and(wp.hasTypeDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:0}})||this}return Object(a.c)(t,e),t.ID="editor.action.peekTypeDefinition",t}(_E);function CE(e,t){return!!e[t]}$p(gE),$p(fE),$p(mE),$p(vE),$p(bE),$p(ME),$p(wE),n("DIA9");var LE=function(){return function(e,t){this.target=e.target,this.hasTriggerModifier=CE(e.event,t.triggerModifier),this.hasSideBySideModifier=CE(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Is||e.event.detail<=1}}(),NE=function(){return function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=CE(e,t.triggerModifier)}}(),IE=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function SE(e){return"altKey"===e?mn.d?new IE(57,"metaKey",6,"altKey"):new IE(5,"ctrlKey",6,"altKey"):mn.d?new IE(6,"altKey",57,"metaKey"):new IE(6,"altKey",5,"ctrlKey")}var xE=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new zt),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new zt),n.onExecute=n._onExecute.event,n._onCancel=n._register(new zt),n.onCancel=n._onCancel.event,n._editor=t,n._opts=SE(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=SE(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new LE(e,n._opts))})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new LE(e,n._opts))})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new LE(e,n._opts))})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new NE(e,n._opts))})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new NE(e,n._opts))})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler()})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e)})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler()})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler()})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()})),n}return Object(a.c)(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(Ct);eg(function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=[],this.decorations=[],this.editor=e,this.throttler=new ps;var o=new xE(e);this.toUnhook.push(o),this.toUnhook.push(o.onMouseMoveOrRelevantKeyDown(function(e){i.startFindDefinition(e[0],e[1])})),this.toUnhook.push(o.onExecute(function(e){i.isEnabled(e)&&i.gotoDefinition(e.target,e.hasSideBySideModifier).done(function(){i.removeDecorations()},function(e){i.removeDecorations(),xt(e)})})),this.toUnhook.push(o.onCancel(function(){i.removeDecorations(),i.currentWordUnderMouse=null}))}return e.prototype.startFindDefinition=function(t,n){var i=this;if(!this.isEnabled(t,n))return this.currentWordUnderMouse=null,void this.removeDecorations();var o=t.target.position,r=o?this.editor.getModel().getWordAtPosition(o):null;if(!r)return this.currentWordUnderMouse=null,void this.removeDecorations();if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==r.startColumn||this.currentWordUnderMouse.endColumn!==r.endColumn||this.currentWordUnderMouse.word!==r.word){this.currentWordUnderMouse=r;var s=new eT(this.editor,15);this.throttler.queue(function(){return s.validate(i.editor)?i.findDefinition(t.target):Nt.b.wrap(null)}).then(function(t){if(t&&t.length&&s.validate(i.editor))if(t.length>1)i.addDecoration(new sn(o.lineNumber,r.startColumn,o.lineNumber,r.endColumn),(new qw).appendText(Yo("multipleResults","Click to show {0} definitions.",t.length)));else{var n=t[0];if(!n.uri)return;i.textModelResolverService.createModelReference(n.uri).then(function(t){if(t.object&&t.object.textEditorModel){var s=t.object.textEditorModel,a=n.range.startLineNumber;if(0!==s.getLineMaxColumn(a)){for(var u=s.getLineFirstNonWhitespaceColumn(a),l=Math.min(s.getLineCount(),a+e.MAX_SOURCE_PREVIEW_LINES),c=a+1,d=u;c0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.getModel()&&e.isNoneOrSingleMouseDown&&e.target.type===Hn.CONTENT_TEXT&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey)&&Nl.has(this.editor.getModel())},e.prototype.findDefinition=function(e){return this.editor.getModel()?uT(this.editor.getModel(),e.position):Nt.b.as(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e.position);var i=new hE(new dE(t,!1,!0,!1),{alias:void 0,label:void 0,id:void 0,precondition:void 0});return this.editor.invokeWithinContext(function(e){return i.run(e,n.editor)})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.toUnhook=_t(this.toUnhook)},e.ID="editor.contrib.gotodefinitionwithmouse",e.MAX_SOURCE_PREVIEW_LINES=8,e=Object(a.b)([Object(a.d)(1,hN),Object(a.d)(2,Fw)],e)}()),wm(function(e,t){var n=e.getColor(Qf);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}),n("NfGl");var DE=function(){function e(e,t,n){var i=this;this.lines=0,this.longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=[],this._editor=t;var o=document.createElement("div");o.className="descriptioncontainer",o.setAttribute("aria-live","assertive"),o.setAttribute("role","alert"),this._messageBlock=document.createElement("span"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.push(ra(this._relatedBlock,"click",function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new Db(o,{horizontal:Uc.Auto,vertical:Uc.Hidden,useShadows:!1,horizontalScrollbarSize:3}),ea(this._scrollable.getDomNode(),"block"),e.appendChild(this._scrollable.getDomNode()),this._disposables.push(this._scrollable.onScroll(function(e){return o.style.left="-"+e.scrollLeft+"px"})),this._disposables.push(this._scrollable)}return e.prototype.dispose=function(){_t(this._disposables)},e.prototype.update=function(e){var t=e.source,n=e.message,i=e.relatedInformation;if(t){this.lines=0,this.longestLineLength=0;for(var o=new Array(t.length+3+1).join(" "),r=n.split(/\r\n|\r|\n/g),s=0;s=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(FE.compareMarker),this._nextIdx=t?Math.max(-1,rr(this._markers,t,FE.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx&&this._onCurrentMarkerChanged.fire(this._markers[this._nextIdx]),i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t0&&(n[o]=e)},function(e){Dt(e)})});return Nt.b.join(i).then(function(){return(e=n)?e.filter(function(e){return!!e}):e;var e})}qp(new(Qp.bindToContribution(WE.get))({id:"closeMarkersNavigation",precondition:VE,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:qa.WEIGHT.editorContrib(50),kbExpr:wp.focus,primary:9,secondary:[1033]}})),n("o37+"),Jp("_executeHoverProvider",YE);var ZE=function(){function e(e,t,n,i){var o=this;this._computer=e,this._state=0,this._firstWaitScheduler=new _s(function(){return o._triggerAsyncComputation()},this._getHoverTimeMillis()/2),this._secondWaitScheduler=new _s(function(){return o._triggerSyncComputation()},this._getHoverTimeMillis()/2),this._loadingMessageScheduler=new _s(function(){return o._showLoadingMessage()},3*this._getHoverTimeMillis()),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}return 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(t){return e._onError(t)})):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):xt(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.HOVER_TIME=300,e}(),UE=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 Eb(i._domNode,{}),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 Object(a.c)(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,na(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 rn(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:[Wn.ABOVE,Wn.BELOW]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),this.disposables=_t(this.disposables),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).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.onContentsChange()},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},t.prototype.updateMaxHeight=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getConfiguration().fontInfo,n=t.lineHeight;this._domNode.style.fontSize=t.fontSize+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.maxHeight=e+"px"},t}(bb),GE=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 Object(a.c)(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,na(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=n-i-(this._domNode.clientHeight-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(r),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}(bb),QE=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new zt,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new zt,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new zt,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;nthis._editor.getModel().getLineCount())return[];var n=AS.get(this._editor),i=this._editor.getModel().getLineMaxColumn(t),o=!1;return this._editor.getLineDecorations(t).map(function(r){var s=r.range.startLineNumber===t?r.range.startColumn:1,a=r.range.endLineNumber===t?r.range.endColumn:i;if(s>e._range.startColumn||e._range.endColumn>a)return null;var u=new sn(e._range.startLineNumber,s,e._range.startLineNumber,a),l=n.getColorData(r.range.getStartPosition());if(!o&&l){o=!0;var c=l.colorInfo;return new ok(c.range,c.color,l.provider)}if($w(r.options.hoverMessage))return null;var d=void 0;return r.options.hoverMessage&&(d=Array.isArray(r.options.hoverMessage)?r.options.hoverMessage.slice():[r.options.hoverMessage]),{contents:d,range:u}}).filter(function(e){return!!e})},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort(function(e,t){return e instanceof ok?-1:t instanceof ok?1:0})):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:[(new qw).appendText(Yo("modesContentHover.loading","Loading..."))]}},e}(),sk=function(e){function t(n,i,o){var r=e.call(this,t.ID,n)||this;return r._themeService=o,r.renderDisposable=bt,r.toDispose=[],r._computer=new rk(r._editor),r._highlightDecorations=[],r._isChangingDecorations=!1,r._markdownRenderer=i,i.onDidRenderCodeBlock(r.onContentsChange,r,r.toDispose),r._hoverOperation=new ZE(r._computer,function(e){return r._withResult(e,!0)},null,function(e){return r._withResult(e,!1)}),r.toDispose.push(ra(r.getDomNode(),za.FOCUS,function(){r._colorPicker&&ea(r.getDomNode(),"colorpicker-hover")})),r.toDispose.push(ra(r.getDomNode(),za.BLUR,function(){ta(r.getDomNode(),"colorpicker-hover")})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this.renderDisposable.dispose(),this.renderDisposable=bt,this._hoverOperation.cancel(),this.toDispose=_t(this.toDispose),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||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)}if(n.length>0){if(function(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o,r=Number.MAX_VALUE,s=n[0].range,a=document.createDocumentFragment(),u=!0,l=!1;n.forEach(function(t){if(t.range)if(r=Math.min(r,t.range.startColumn),s=sn.plusRange(s,t.range),t instanceof ok){l=!0;var n=t.color,c=new up(255*n.red,255*n.green,255*n.blue,n.alpha),d=new dp(c),h=i._editor.getModel(),p=new sn(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn),g={range:t.range,color:t.color},f=new QE(d,[],0),m=new nk(a,f,i._editor.getConfiguration().pixelRatio,i._themeService);jS(h,g,t.provider).then(function(n){f.colorPresentations=n;var s=i._editor.getModel().getValueInRange(t.range);f.guessColorPresentation(d,s);var u=function(){var e,t;f.presentation.textEdit?(e=[f.presentation.textEdit],t=(t=new sn(f.presentation.textEdit.range.startLineNumber,f.presentation.textEdit.range.startColumn,f.presentation.textEdit.range.endLineNumber,f.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+f.presentation.textEdit.text.length)):(e=[{identifier:null,range:p,text:f.presentation.label,forceMoveMarkers:!1}],t=p.setEndPosition(p.endLineNumber,p.startColumn+f.presentation.label.length)),h.pushEditOperations([],e,function(){return[]}),f.presentation.additionalTextEdits&&(e=f.presentation.additionalTextEdits.slice(),h.pushEditOperations([],e,function(){return[]}),i.hide()),i._editor.pushUndoStop(),p=t},l=function(e){return jS(h,{range:p,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},t.provider).then(function(e){f.colorPresentations=e})},c=f.onColorFlushed(function(e){l(e).then(u)}),g=f.onDidChangeColor(l);i._colorPicker=m,i.showAt(new rn(e.startLineNumber,r),i._shouldFocus),i.updateContents(a),i._colorPicker.layout(),i.renderDisposable=Mt([c,g,m,o])})}else t.contents.filter(function(e){return!$w(e)}).forEach(function(e){var t=i._markdownRenderer.render(e);o=t,a.appendChild(ik("div.hover-row",null,t.element)),u=!1})}),l||u||(this.showAt(new rn(e.startLineNumber,r),this._shouldFocus),this.updateContents(a)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[{range:s,options:t._DECORATION_OPTIONS}]),this._isChangingDecorations=!1},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=ph.register({className:"hoverHighlight"}),t}(UE),ak=function(){function e(e){this._editor=e,this._lineNumber=-1}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeSync=function(){for(var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[],i=0,o=t.length;i0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){var n=this;_t(this._renderDisposeables),this._renderDisposeables=[];var i=document.createDocumentFragment();t.forEach(function(e){var t=n._markdownRenderer.render(e.value);n._renderDisposeables.push(t),i.appendChild(Za("div.hover-row",null,t.element))}),this.updateContents(i),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(GE),lk=function(){function e(e,t,n){void 0===n&&(n=sN),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=new zt,this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}return e.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=e?t._modeService.getModeIdForLanguageName(e):t._editor.getModel().getLanguageIdentifier().language;return t._modeService.getOrCreateMode(i).then(function(e){return function(e,t){for(var n='
    ',i=e.split(/\r\n|\r|\n/),o=t.getInitialState(),r=0,s=i.length;r0&&(n+="
    ");var u=t.tokenize2(a,o,0);Vc.convertToEndOffset(u.tokens,a.length);for(var l=new Vc(u.tokens,a).inflate(),c=0,d=0,h=l.getCount();d'+Ii(a.substring(c,g))+"",c=g}o=u.endState}return n+"
    "}(n,Pl.get(i)||{getInitialState:function(){return gc},tokenize:void 0,tokenize2:function(e,t,n){return yc(0,0,t,n)}})}).then(function(e){return''+e+""})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(Tn.parse(e)).then(void 0,xt)},disposeables:e}}},e.prototype.render=function(e){var t=[];return{element:e?function(e,t){void 0===t&&(t={});var n,i=vx(t),o=new Promise(function(e){return n=e}),r=new yx.Renderer;return r.image=function(e,t,n){var i=[];if(e){var o=e.split("|").map(function(e){return e.trim()});e=o[0];var r=o[1];if(r){var s=/height=(\d+)/.exec(r),a=/width=(\d+)/.exec(r),u=s&&s[1],l=a&&a[1],c=isFinite(parseInt(l)),d=isFinite(parseInt(u));c&&i.push('width="'+l+'"'),d&&i.push('height="'+u+'"')}}var h=[];return e&&h.push('src="'+e+'"'),n&&h.push('alt="'+n+'"'),t&&h.push('title="'+t+'"'),i.length&&(h=h.concat(i)),""},r.link=function(t,n,i){return t===i&&(i=nC(i)),n=nC(n),!(t=nC(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted?i:''+i+""},r.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(r.code=function(e,n){var r=t.codeBlockRenderer(n,e),s=mx.nextId(),a=Promise.all([r,o]).then(function(e){var t=e[0],n=i.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
    '+Ii(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(ra(i,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName){var i=n.dataset.href;i&&t.actionHandler.callback(i,e)}})),i.innerHTML=yx(e.value,{sanitize:!0,renderer:r}),n(),i}(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return _t(t)}}},Object(a.b)([Object(a.d)(1,Fw),Object(a.d)(2,Xn(rN))],e)}(),ck=function(){function e(e,t,n,i){var o=this;this._openerService=t,this._modeService=n,this._themeService=i,this._editor=e,this._toUnhook=[],this._isMouseDown=!1,e.getConfiguration().contribInfo.hover&&(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.onMouseLeave(function(e){return o._hideWidgets()})),this._toUnhook.push(this._editor.onKeyDown(function(e){return o._onKeyDown(e)})),this._toUnhook.push(this._editor.onDidChangeModel(function(){return o._hideWidgets()})),this._toUnhook.push(this._editor.onDidChangeModelDecorations(function(){return o._onModelDecorationsChanged()})),this._toUnhook.push(this._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&o._hideWidgets()})))}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget||this._createHoverWidget(),this._contentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget||this._createHoverWidget(),this._glyphWidget},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;t!==Hn.CONTENT_WIDGET||e.target.detail!==sk.ID?t===Hn.OVERLAY_WIDGET&&e.target.detail===uk.ID||(t!==Hn.OVERLAY_WIDGET&&e.target.detail!==uk.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type,n=mn.d?"metaKey":"ctrlKey";this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||(t!==Hn.CONTENT_WIDGET||e.target.detail!==sk.ID||e.event[n])&&(t!==Hn.OVERLAY_WIDGET||e.target.detail!==uk.ID||e.event[n])&&(this._editor.getConfiguration().contribInfo.hover&&t===Hn.CONTENT_TEXT?(this.glyphWidget.hide(),this.contentWidget.startShowingAt(e.target.range,!1)):t===Hn.GUTTER_GLYPH_MARGIN?(this.contentWidget.hide(),this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets())},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&this._hideWidgets()},e.prototype._hideWidgets=function(){!this._contentWidget||this._isMouseDown&&this._hoverClicked&&this._contentWidget.isColorPickerVisible()||(this._glyphWidget.hide(),this._contentWidget.hide())},e.prototype._createHoverWidget=function(){var e=new lk(this._editor,this._modeService,this._openerService);this._contentWidget=new sk(this._editor,e,this._themeService),this._glyphWidget=new uk(this._editor,e)},e.prototype.showContentHover=function(e,t){this.contentWidget.startShowingAt(e,t)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._toUnhook=_t(this._toUnhook),this._glyphWidget&&(this._glyphWidget.dispose(),this._glyphWidget=null),this._contentWidget&&(this._contentWidget.dispose(),this._contentWidget=null)},e.ID="editor.contrib.hover",e=Object(a.b)([Object(a.d)(1,rN),Object(a.d)(2,Fw),Object(a.d)(3,mm)],e)}(),dk=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:Yo("showHover","Show Hover"),alias:"Show Hover",precondition:null,kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,2087)}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=ck.get(t);if(n){var i=t.getPosition(),o=new sn(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(o,!0)}},t}(Xp);eg(ck),$p(dk),wm(function(e,t){var n=e.getColor(Zf);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(Uf);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(Gf);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"));var r=e.getColor(Qg);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(Xg);s&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+s+"; }")});var hk=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new ln(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new ln(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)},e}(),pk=function(){function e(e,t){this.editor=e,this.editorWorkerService=t,this.currentRequest=Nt.b.as(null),this.decorationRemover=Nt.b.as(null),this.decorationIds=[]}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.prototype.run=function(t,n){var i=this;this.currentRequest.cancel();var o=this.editor.getSelection(),r=this.editor.getModel().uri;if(o.startLineNumber!==o.endLineNumber)return null;var s=new eT(this.editor,5);return this.editorWorkerService.canNavigateValueSet(r)?(this.currentRequest=this.editorWorkerService.navigateValueSet(r,o,n),this.currentRequest=this.currentRequest.then(function(e){return e&&e.range&&e.value?e:null})):this.currentRequest=Nt.b.as(null),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&s.validate(i.editor)){var r=sn.lift(n.range),a=n.range,u=n.value.length-(o.endColumn-o.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+n.value.length},u>1&&(o=new ln(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn+u-1));var l=new hk(r,o,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,l),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:a,options:e.DECORATION}]),i.decorationRemover.cancel(),i.decorationRemover=Nt.b.timeout(350),i.decorationRemover.then(function(){i.editor.changeDecorations(function(e){i.decorationIds=e.deltaDecorations(i.decorationIds,[])})})}})},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=ph.register({className:"valueSetReplacement"}),e=Object(a.b)([Object(a.d)(1,Vo)],e)}(),gk=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:Yo("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:3154}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=pk.get(t);if(n)return n.run(this.id,!0)},t}(Xp),fk=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:Yo("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:3156}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=pk.get(t);if(n)return n.run(this.id,!1)},t}(Xp);eg(pk),$p(gk),$p(fk),wm(function(e,t){var n=e.getColor(Rm);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")});var mk=function(){function e(e,t){this.selection=e,this.descending=t}return e.prototype.getEditOperations=function(e,t){var n=function(e,t,n){var i=yk(e,t,n);return i?iC.replace(new sn(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null}(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=yk(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o=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())}),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}var vk=function(){function e(e,t){this.selection=e,this.cursors=t}return e.prototype.getEditOperations=function(e,t){for(var n=function(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber});for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,u=e.getLineCount();a<=u;a++){var l=e.getLineContent(a),c=l.length+1,d=0;if(!(r1&&(o=e.getLineMaxColumn(n-=1)),t.addTrackedEditOperation(new sn(n,o,i,r),null)}},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber,this.restoreCursorToColumn,n.endLineNumber,this.restoreCursorToColumn)},e}();function Mk(e,t){for(var n=0,i=0;i=i.startLineNumber+1&&t<=i.endLineNumber+1?t-1:t)};var y=Bc.getGoodIndentForLine(a,e.getLanguageIdAtPosition(c,1),i.startLineNumber+1,s);null!==y&&(m=Ui(e.getLineContent(i.startLineNumber)),(_=Mk(y,o))!==(M=Mk(m,o))&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,_-M))}}else t.addEditOperation(new sn(i.startLineNumber,1,i.startLineNumber,1),h+"\n")}else{var v;if(d=e.getLineContent(c=i.startLineNumber-1),t.addEditOperation(new sn(c,1,c+1,1),null),t.addEditOperation(new sn(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+d),this.shouldAutoIndent(e,i))if(a.getLineContent=function(t){return e.getLineContent(t===c?i.startLineNumber:t)},null!==(v=this.matchEnterRule(e,s,o,i.startLineNumber,i.startLineNumber-2)))0!==v&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,v);else{var b=Bc.getGoodIndentForLine(a,e.getLanguageIdAtPosition(i.startLineNumber,1),c,s);if(null!==b){var _,M,w=Ui(e.getLineContent(i.startLineNumber));(_=Mk(b,o))!==(M=Mk(w,o))&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,_-M)}}}}this._selectionId=t.trackSelection(i)}},e.prototype.buildIndentConverter=function(e){return{shiftIndent:function(t){for(var n=Ah.shiftIndentCount(t,t.length+1,e),i="",o=0;o=1&&!(Gi(s===o&&void 0!==r?r:e.getLineContent(s))>=0);)s--;if(s<1||i>e.getLineCount())return null;var a=e.getLineMaxColumn(s),u=Bc.getEnterAction(e,new sn(s,a,s,a));if(u){var l=u.indentation,c=u.enterAction;c.indentAction===xc.None?l=u.indentation+c.appendText:c.indentAction===xc.Indent?l=u.indentation+c.appendText:c.indentAction===xc.IndentOutdent?l=u.indentation:c.indentAction===xc.Outdent&&(l=t.unshiftIndent(u.indentation)+c.appendText);var d=e.getLineContent(i);if(this.trimLeft(d).indexOf(this.trimLeft(l))>=0){var h=Ui(e.getLineContent(i)),p=Ui(l);return 2&Bc.getIndentMetadata(e,i)&&(p=t.unshiftIndent(p)),Mk(p,n)-Mk(h,n)}}return null},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},e.prototype.shouldAutoIndent=function(e,t){if(!this._autoIndent)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==Bc.getIndentRulesSupport(n)},e.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=Ui(e.getLineContent(s)),u=wk(Mk(a,i)+r,i,o);u!==a&&(t.addEditOperation(new sn(s,1,s,a.length+1),u),s===n.endLineNumber&&n.endColumn<=a.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumbere.endLineNumber+1?(o.push(e),t):new ln(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new ln(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)});o.push(r);for(var s=t.getModel(),a=[],u=[],l=i,c=0,d=0,h=o.length;d=1){var L=!0;""===_&&(L=!1),!L||" "!==_.charAt(_.length-1)&&"\t"!==_.charAt(_.length-1)||(L=!1,_=_.replace(/[\s\uFEFF\xA0]+$/g," "));var N=w.substr(C-1);_+=(L?" ":"")+N,y=L?N.length+1:N.length}else y=0}var I=new sn(g,1,f,m);if(!I.isEmpty()){var S=void 0;p.isEmpty()?(a.push(iC.replace(I,_)),S=new ln(I.startLineNumber-c,_.length-y+1,g-c,_.length-y+1)):p.startLineNumber===p.endLineNumber?(a.push(iC.replace(I,_)),S=new ln(p.startLineNumber-c,p.startColumn,p.endLineNumber-c,p.endColumn)):(a.push(iC.replace(I,_)),S=new ln(p.startLineNumber-c,p.startColumn,p.startLineNumber-c,_.length-v)),null!==sn.intersectRanges(I,i)?l=S:u.push(S)}c+=I.endLineNumber-I.startLineNumber}u.unshift(l),t.pushUndoStop(),t.executeEdits(this.id,a,u),t.pushUndoStop()},t}(Xp),Vk=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:Yo("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:wp.writable})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r=l){if(u.lineNumber===i.getLineCount())continue;var c=new sn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new Sh(new ln(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d))}else c=new sn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),d=i.getValueInRange(c).split("").reverse().join(""),o.push(new Th(c,d,new ln(u.lineNumber,u.column+1,u.lineNumber,u.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()},t}(Xp),Yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(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 ln(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)),i},t.prototype.run=function(e,t){var n=this,i=t.getSelections().map(function(e){return n.getCursorsForSelection(e,t)}).reduce(function(e,t){return e.concat(t)});i.length>0&&t.setSelections(i)},t}(Xp),sj=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},aj=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}return e.create=function(t,n){var i=n.getState();if(!t.isFocused()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var u,l=t.getSelection(),c=null;if(l.isEmpty()){var d=t.getModel().getWordAtPosition(l.getStartPosition());if(!d)return null;u=d.word,c=new ln(l.startLineNumber,d.startColumn,l.startLineNumber,d.endColumn)}else u=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,u,o,r,c)},e.prototype.addSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new ln(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new ln(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824)},e}(),uj=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n._sessionDispose=[],n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=aj.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose=[this._editor.onDidChangeCursorSelection(function(e){t._ignoreSelectionChange||t._endSession()}),this._editor.onDidBlurEditorText(function(){t._endSession()}),e.getState().onFindReplaceStateChange(function(e){(e.matchCase||e.wholeWord)&&t._endSession()})]}},t.prototype._endSession=function(){this._sessionDispose=_t(this._sessionDispose),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new ln(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!vj(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),o=[],r=0,s=t.length;r0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(t.length>0){for(var i=this._editor.getSelection(),o=0,r=t.length;o1){var u=r.getState().matchCase;if(!vj(t.getModel(),a,u))return null}s=aj.create(t,r)}if(!s)return null;var l=null,c=Ll.has(n);if(s.currentMatch){if(c)return null;if(!t.getConfiguration().contribInfo.occurrencesHighlight)return null;l=s.currentMatch}if(/^[ \t]+$/.test(s.searchText))return null;if(s.searchText.length>200)return null;var d=r.getState(),h=d.matchCase;if(d.isRevealed){var p=d.searchString;h||(p=p.toLowerCase());var g=s.searchText;if(h||(g=g.toLowerCase()),p===g&&s.matchCase===d.matchCase&&s.wholeWord===d.wholeWord&&!d.isRegex)return null}return new mj(l,s.searchText,s.matchCase,s.wholeWord?t.getConfiguration().wordSeparators:null)},t.prototype._setState=function(e){if(mj.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=Ll.has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(e){return e.range});o.sort(sn.compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(sn.compareRangesUsingStarts);for(var s=[],a=0,u=0,l=o.length,c=r.length;a=c)s.push(d),a++;else{var h=sn.compareRangesUsingStarts(d,r[u]);h<0?(s.push(d),a++):h>0?u++:(a++,u++)}}var p=s.map(function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,p)}}else this.decorations.length>0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight",overviewRuler:{color:ym(cm),darkColor:ym(cm),position:xu.Center}}),t._SELECTION_HIGHLIGHT=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight"}),t}(Ct);function vj(e,t,n){for(var i=bj(e,t[0],!n),o=1,r=t.length;o1;na(this.element,"multiple",e),this.keyMultipleSignatures.set(e),this.signature.innerHTML="",this.docs.innerHTML="";var t=this.hints.signatures[this.currentSignature];if(t){var n=Ba(this.signature,wj(".code")),i=t.parameters.length>0,o=this.editor.getConfiguration().fontInfo;n.style.fontSize=o.fontSize+"px",n.style.fontFamily=o.fontFamily,i?this.renderParameters(n,t,this.hints.activeParameter):Ba(n,wj("span")).textContent=t.label,_t(this.renderDisposeables),this.renderDisposeables=[];var r=t.parameters[this.hints.activeParameter];if(r&&r.documentation){var s=wj("span.documentation");if("string"==typeof r.documentation)ta(this.docs,"markdown-docs"),s.textContent=r.documentation;else{ea(this.docs,"markdown-docs");var a=this.markdownRenderer.render(r.documentation);this.renderDisposeables.push(a),s.appendChild(a.element)}Ba(this.docs,wj("p",null,s))}na(this.signature,"has-docs",!!t.documentation),"string"==typeof t.documentation?Ba(this.docs,wj("p",null,t.documentation)):(a=this.markdownRenderer.render(t.documentation),this.renderDisposeables.push(a),Ba(this.docs,a.element));var u=String(this.currentSignature+1);if(this.hints.signatures.length<10&&(u+="/"+this.hints.signatures.length),this.overloads.textContent=u,r){var l=r.label;this.announcedLabel!==l&&(CM(Yo("hint","{0}, hint",l)),this.announcedLabel=l)}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode()}},e.prototype.renderParameters=function(e,t,n){for(var i,o=t.label.length,r=0,s=t.parameters.length-1;s>=0;s--){var a=t.parameters[s],u=0,l=0;(r=t.label.lastIndexOf(a.label,o-1))>=0&&(u=r,l=r+a.label.length),(i=document.createElement("span")).textContent=t.label.substring(l,o),Va(e,i),(i=document.createElement("span")).className="parameter "+(s===n?"active":""),i.textContent=t.label.substring(u,l),Va(e,i),o=u}(i=document.createElement("span")).textContent=t.label.substring(0,o),Va(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=_t(this.disposables),this.renderDisposeables=_t(this.renderDisposeables),this.model&&(this.model.dispose(),this.model=null)},e.ID="editor.widget.parameterHintsWidget",e=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,rN),Object(a.d)(3,Fw)],e)}();wm(function(e,t){var n=e.getColor(Gf);n&&(t.addRule(".monaco-editor .parameter-hints-widget { border: "+(e.type===bm?2:1)+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }"));var i=e.getColor(Uf);i&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+i+"; }");var o=e.getColor(Qg);o&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+o+"; }");var r=e.getColor(Xg);r&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+r+"; }")});var Nj=function(){function e(e,t){this.editor=e,this.widget=t.createInstance(Lj,this.editor)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.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=_t(this.widget)},e.ID="editor.controller.parameterHints",e=Object(a.b)([Object(a.d)(1,Un)],e)}(),Ij=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:Yo("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:wp.hasSignatureHelpProvider,kbOpts:{kbExpr:wp.editorTextFocus,primary:3082}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=Nj.get(t);n&&n.trigger()},t}(Xp);eg(Nj),$p(Ij);var Sj=qa.WEIGHT.editorContrib(75),xj=Qp.bindToContribution(Nj.get);qp(new xj({id:"closeParameterHints",precondition:_j.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:9,secondary:[1033]}})),qp(new xj({id:"showPrevParameterHint",precondition:To.and(_j.Visible,_j.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),qp(new xj({id:"showNextParameterHint",precondition:To.and(_j.Visible,_j.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var Dj=function(){function e(e,t,n){this._editor=e,this._contextMenuService=t,this._onApplyCodeAction=n,this._onDidExecuteCodeAction=new zt,this.onDidExecuteCodeAction=this._onDidExecuteCodeAction.event}return e.prototype.show=function(e,t){var n=this,i=e.then(function(e){return e.map(function(e){return new eu(e.command?e.command.id:e.title,e.title,void 0,!0,function(){return ms(n._onApplyCodeAction(e),function(){return n._onDidExecuteCodeAction.fire(void 0)})})})});this._contextMenuService.showContextMenu({getAnchor:function(){return rn.isIPosition(t)&&(t=n._toCoords(t)),t},getActions:function(){return i},onHide:function(){n._visible=!1},autoSelectFirstItem:!0})},Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),e.prototype._toCoords=function(e){this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),n=Na(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}},e}(),Tj=(n("JcY2"),function(){function e(e){var t=this;this._disposables=[],this._onClick=new zt,this.onClick=this._onClick.event,this._futureFixes=new hn,this._domNode=document.createElement("div"),this._domNode.className="lightbulb-glyph",this._editor=e,this._editor.addContentWidget(this),this._disposables.push(this._editor.onDidChangeModel(function(e){return t._futureFixes.cancel()})),this._disposables.push(this._editor.onDidChangeModelLanguage(function(e){return t._futureFixes.cancel()})),this._disposables.push(this._editor.onDidChangeModelContent(function(e){t._model&&t.model.position.lineNumber>=t._editor.getModel().getLineCount()&&t._futureFixes.cancel()})),this._disposables.push(ra(this._domNode,"click",function(e){t._editor.focus();var n=Na(t._domNode),i=n.top,o=n.height,r=t._editor.getConfiguration().lineHeight,s=Math.floor(r/3);t._position.position.lineNumber0?t._show():t.hide()},function(e){t.hide()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),e.prototype._show=function(){var t=this._editor.getConfiguration();if(t.contribInfo.lightbulbEnabled){var n=this._model.position.lineNumber,i=this._editor.getModel(),o=i.getOptions().tabSize,r=i.getLineContent(n),s=uh.computeIndentLevel(r,o),a=n;t.fontInfo.spaceWidth*s>22||(n>1?a-=1:a+=1),this._position={position:{lineNumber:a,column:1},preference:e._posPref},this._editor.layoutContentWidget(this)}},e.prototype.hide=function(){this._position=null,this._model=null,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},e._posPref=[Wn.EXACT],e}());function Ej(e,t,n){var i=[],o=Dl.all(e).map(function(o){return hs(function(i){return o.provideCodeActions(e,t,{only:n?n.value:void 0},i)}).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&(this._edits=this._edits.map(function(e,t){return{value:e,index:t}}).sort(function(e,t){var n=sn.compareRangesUsingStarts(e.value.range,t.value.range);return 0===n&&(n=e.index-t.index),n}).map(function(e){return e.value}),this._initialSelections=this._getInitialSelections(),this._model.pushStackElement(),this._model.pushEditOperations(this._initialSelections,this._edits,function(t){return e._getEndCursorSelections(t)}),this._model.pushStackElement()),void 0!==this._newEol&&(this._model.pushStackElement(),this._model.setEOL(this._newEol),this._model.pushStackElement())},e.prototype._getInitialSelections=function(){var e=this._edits[0].range;return[new ln(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn)]},e.prototype._getEndCursorSelections=function(e){for(var t=0,n=0;n1&&t>1?Yo("summary.nm","Made {0} text edits in {1} files",e,t):Yo("summary.n0","Made {0} text edits in one file",e,t)},e.prototype.perform=function(){return Rj(this,void 0,Nt.b,function(){var e,t,n,i,o,r,s,a,u,l,c,d,h=this;return zj(this,function(p){switch(p.label){case 0:for(e=new Set,t=0,n=[],o=0,r=this._edits;o0)throw i.dispose(),new Error(Yo("conflict","These files have changed in the meantime: {0}",o.join(", ")));return[4,i.apply()];case 2:return r=s.sent(),i.dispose(),[2,r]}})})},e=Object(a.b)([Object(a.d)(2,hN),Object(a.d)(3,Xn(Cr))],e)}(),Yj=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},Zj=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&Yo("meta.titleReference"," \u2013 {0} references",e.references.length)}},qj=function(){function e(e,t){e instanceof _T&&gT.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.ID="editor.contrib.referenceController",e=Object(a.b)([Object(a.d)(1,Wo)],e)}(),$j=function(e){function t(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:Yo("references.action.label","Find All References"),alias:"Find All References",precondition:To.and(wp.hasReferenceProvider,gT.notInPeekEditor,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:1094},menuOpts:{group:"navigation",order:1.5}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=uE.get(t);if(n){var i=t.getSelection(),o=nA(t.getModel(),i.getStartPosition()).then(function(e){return new kT(e)});n.toggleWidget(i,o,Jj)}},t}(Xp);function eA(e,t){tA(e,function(e){return e.closeWidget()})}function tA(e,t){var n=function(e){var t=e.get(Fo).getFocusedCodeEditor();return t instanceof _T?t.getParentEditor():t}(e);if(n){var i=uE.get(n);i&&t(i)}}function nA(e,t){var n=vl.ordered(e).map(function(n){return hs(function(i){return n.provideReferences(e,t,{includeDeclaration:!0},i)}).then(function(e){if(Array.isArray(e))return e},function(e){Dt(e)})});return Nt.b.join(n).then(function(e){for(var t=[],n=0,i=e;n0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0},e.prototype.resolveRenameLocation=function(){return oA(this,void 0,Nt.b,function(){var e,t,n,i=this;return rA(this,function(o){switch(o.label){case 0:return(e=this._provider[0]).resolveRenameLocation?[4,hs(function(t){return e.resolveRenameLocation(i.model,i.position,t)})]:[3,2];case 1:t=o.sent(),o.label=2;case 2:return t||(n=this.model.getWordAtPosition(this.position))&&(t=new sn(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn)),[2,t]}})})},e.prototype.provideRenameEdits=function(e,t,n,i){return void 0===t&&(t=0),void 0===n&&(n=[]),void 0===i&&(i=this.position),oA(this,void 0,Nt.b,function(){var i,o,r=this;return rA(this,function(s){switch(s.label){case 0:return t>=this._provider.length?[2,{edits:void 0,rejectReason:n.join("\n")}]:(i=this._provider[t],[4,hs(function(t){return i.provideRenameEdits(r.model,r.position,e,t)})]);case 1:return(o=s.sent())?o.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(o.rejectReason))]:[2,o]:[2,this.provideRenameEdits(e,t+1,n.concat(Yo("no result","No result.")))]}})})},e}(),aA=new zo("renameInputVisible",!1),uA=function(){function e(e,t,n,i,o,r,s){this.editor=e,this._notificationService=t,this._textModelResolverService=n,this._progressService=i,this._fileService=s,this._renameInputField=new iA(e,r),this._renameInputVisible=aA.bindTo(o)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._renameInputField.dispose()},e.prototype.getId=function(){return e.ID},e.prototype.run=function(){return oA(this,void 0,Nt.b,function(){var e,t,n,i,o,r,s,a,u=this;return rA(this,function(l){switch(l.label){case 0:e=this.editor.getPosition(),t=new sA(this.editor.getModel(),e),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t.resolveRenameLocation()];case 2:return n=l.sent(),[3,4];case 3:return i=l.sent(),lE.get(this.editor).showMessage(i,e),[2,void 0];case 4:return o=this.editor.getModel().getValueInRange(n),r=this.editor.getSelection(),s=0,a=o.length,r.isEmpty()||r.startLineNumber!==r.endLineNumber||(s=Math.max(0,r.startColumn-n.startColumn),a=Math.min(n.endColumn,r.endColumn)-n.startColumn),this._renameInputVisible.set(!0),[2,this._renameInputField.getInput(sn.lift(n),o,s,a).then(function(e){if(u._renameInputVisible.reset(),"boolean"!=typeof e){u.editor.focus();var i=new Vj(u.editor,null,u._textModelResolverService,u._fileService),r=new eT(u.editor,15),s=t.provideRenameEdits(e,0,[],sn.lift(n).getStartPosition()).then(function(t){if(!t.rejectReason)return i.add(t.edits),i.perform().then(function(t){t&&u.editor.setSelection(t),CM(Yo("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",o,e,i.ariaMessage()))});r.validate(u.editor)?lE.get(u.editor).showMessage(t.rejectReason,u.editor.getPosition()):u._notificationService.info(t.rejectReason)},function(e){return u._notificationService.error(Yo("rename.failed","Rename failed to execute.")),Nt.b.wrapError(e)});return u._progressService.showWhile(s,250),s}e&&u.editor.focus()},function(e){return u._renameInputVisible.reset(),Nt.b.wrapError(e)})]}})})},e.prototype.acceptRenameInput=function(){this._renameInputField.acceptInput()},e.prototype.cancelRenameInput=function(){this._renameInputField.cancelInput(!0)},e.ID="editor.contrib.renameController",e=Object(a.b)([Object(a.d)(1,lu),Object(a.d)(2,hN),Object(a.d)(3,qM),Object(a.d)(4,Wo),Object(a.d)(5,mm),Object(a.d)(6,Xn(Cr))],e)}(),lA=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:Yo("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:To.and(wp.writable,wp.hasRenameProvider),kbOpts:{kbExpr:wp.editorTextFocus,primary:60},menuOpts:{group:"1_modification",order:1.1}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=uA.get(t);if(n)return n.run()},t}(Xp);eg(uA),$p(lA);var cA=Qp.bindToContribution(uA.get);qp(new cA({id:"acceptRenameInput",precondition:aA,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:qa.WEIGHT.editorContrib(99),kbExpr:wp.focus,primary:3}})),qp(new cA({id:"cancelRenameInput",precondition:aA,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:qa.WEIGHT.editorContrib(99),kbExpr:wp.focus,primary:9,secondary:[1033]}})),Jp("_executeDocumentRenameProvider",function(e,t,n){var i=n.newName;if("string"!=typeof i)throw jt("newName");return function(e,t,n){return oA(this,void 0,Nt.b,function(){return rA(this,function(i){return[2,new sA(e,t).provideRenameEdits(n)]})})}(e,t,i)});var dA=function(){function e(){}return Object.defineProperty(e.prototype,"range",{get:function(){return new sn(this.start.lineNumber,this.start.column,this.end.lineNumber,this.end.column)},enumerable:!0,configurable:!0}),e}(),hA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.hasChildren?this.children[0].start:this.parent.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.hasChildren?this.children[this.children.length-1].end:this.parent.end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this.children&&this.children.length>0},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}(dA),pA=function(e){function t(){var t=e.call(this)||this;return t.elements=new hA,t.elements.parent=t,t}return Object(a.c)(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}(dA),gA=function(e,t,n){this.range=e,this.bracket=t,this.bracketType=n};function fA(e){var t=new dA;return t.start=e.range.getStartPosition(),t.end=e.range.getEndPosition(),t}var mA,yA=function(){function e(e){this._model=e,this._lineCount=this._model.getLineCount(),this._versionId=this._model.getVersionId(),this._lineNumber=0,this._tokenIndex=0,this._lineTokens=null,this._advance()}return e.prototype._advance=function(){for(this._lineTokens&&(this._tokenIndex++,this._tokenIndex>=this._lineTokens.getCount()&&(this._lineTokens=null));this._lineNumber0)return this._nextBuff.shift();var e=this._rawTokenScanner.next();if(!e)return null;var t=e.lineNumber,n=e.lineText,i=e.type,o=e.startOffset,r=e.endOffset;this._cachedLanguageId!==e.languageId&&(this._cachedLanguageId=e.languageId,this._cachedLanguageBrackets=Bc.getBracketsSupport(this._cachedLanguageId));var s,a=this._cachedLanguageBrackets;if(!a||_c(i))return new gA(new sn(t,o+1,t,r+1),0,null);do{if(s=kc.findNextBracketInToken(a.forwardRegex,t,n,o,r)){var u=s.startColumn-1,l=s.endColumn-1;o=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:mA.EOF,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if("number"==typeof(t=e._table[o]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=mA.Int;do{o=this.value.charCodeAt(n+(i+=1))}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(o)){t=mA.VariableName;do{o=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}t=mA.Format;do{o=this.value.charCodeAt(n+(i+=1))}while(!isNaN(o)&&"undefined"==typeof e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}},e._table=((RA={})[36]=mA.Dollar,RA[58]=mA.Colon,RA[44]=mA.Comma,RA[123]=mA.CurlyOpen,RA[125]=mA.CurlyClose,RA[92]=mA.Backslash,RA[47]=mA.Forwardslash,RA[124]=mA.Pipe,RA[43]=mA.Plus,RA[45]=mA.Dash,RA[63]=mA.QuestionMark,RA),e}(),DA=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof TA&&this._children[this._children.length-1]instanceof TA?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,t.forEach(function(e){return e.parent=n})},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof FA)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce(function(e,t){return e+t.toString()},"")},e.prototype.len=function(){return 0},e}(),TA=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return Object(a.c)(t,e),t.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},t.prototype.toString=function(){return this.value},t.prototype.toTextmateString=function(){return t.escape(this.value)},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(DA),EA=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return Object(a.c)(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.indext.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof kA?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.toTextmateString=function(){return 0===this.children.length?"$"+this.index:this.choice?"${"+this.index+"|"+this.choice.toTextmateString()+"|}":"${"+this.index+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+"}"},t.prototype.clone=function(){var e=new t(this.index);return e._children=this.children.map(function(e){return e.clone()}),e},t}(DA),kA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return Object(a.c)(t,e),t.prototype.appendChild=function(e){return e instanceof TA&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.toTextmateString=function(){return this.options.map(function(e){return e.value.replace(/\||,/g,"\\$&")}).join(",")},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(DA),jA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.resolve=function(e){var t=this;return e.replace(this.regexp,function(){for(var e="",n=0,i=t._children;no.index?arguments[o.index]:"";e+=r=o.resolve(r)}else e+=o.toString()}return e})},t.prototype.toString=function(){return""},t.prototype.toTextmateString=function(){return"/"+TA.escape(this.regexp.source)+"/"+this.children.map(function(e){return e.toTextmateString()})+"/"+(this.regexp.ignoreCase?"i":"")},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(function(e){return e.clone()}),e},t}(DA),AA=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r}return Object(a.c)(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue},t.prototype.toTextmateString=function(){var e="${";return e+=this.index,this.shorthandName?e+=":/"+this.shorthandName:this.ifValue&&this.elseValue?e+=":?"+this.ifValue+":"+this.elseValue:this.ifValue?e+=":+"+this.ifValue:this.elseValue&&(e+=":-"+this.elseValue),e+"}"},t.prototype.clone=function(){return new t(this.index,this.shorthandName,this.ifValue,this.elseValue)},t}(DA),OA=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return Object(a.c)(t,e),t.prototype.resolve=function(e){var t=e.resolve(this),n=this._children[0];return n instanceof jA&&1===this._children.length&&(t=n.resolve(t||"")),void 0!==t&&(this._children=[new TA(t)],!0)},t.prototype.toTextmateString=function(){return 0===this.children.length?"${"+this.name+"}":"${"+this.name+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+"}"},t.prototype.clone=function(){var e=new t(this.name);return e._children=this.children.map(function(e){return e.clone()}),e},t}(DA);function PA(e,t){for(var n=e.slice();n.length>0;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children)}}var RA,zA,WA,FA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof EA&&(t.push(n),e=!e||e.index0?o.set(e.index,e.children):r.push(e)),!0});for(var a=0,u=r;a0&&t),!o.has(0)&&n&&i.appendChild(new EA(0)),i},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(this._token.type===mA.EOF)return!1;for(var t=this._token;this._token.type!==e;)this._token=this._scanner.next();var n=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),n},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(mA.Backslash,!0))&&(t=this._accept(mA.Dollar,!0)||this._accept(mA.CurlyClose,!0)||this._accept(mA.Backslash,!0)||t,e.appendChild(new TA(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token;return this._accept(mA.Dollar)&&(t=this._accept(mA.VariableName,!0)||this._accept(mA.Int,!0))?(e.appendChild(/^\d+$/.test(t)?new EA(Number(t)):new OA(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(mA.Dollar)&&this._accept(mA.CurlyOpen)&&(t=this._accept(mA.Int,!0))))return this._backTo(n);var i=new EA(Number(t));if(this._accept(mA.Colon))for(;;){if(this._accept(mA.CurlyClose))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new TA("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(mA.Pipe)))return this._accept(mA.CurlyClose)?(e.appendChild(i),!0):this._backTo(n);for(var o=new kA;;){if(this._parseChoiceElement(o)){if(this._accept(mA.Comma))continue;if(this._accept(mA.Pipe)&&this._accept(mA.CurlyClose))return i.appendChild(o),e.appendChild(i),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];this._token.type!==mA.Comma&&this._token.type!==mA.Pipe;){var i=void 0;if(!(i=(i=this._accept(mA.Backslash,!0))?this._accept(mA.Comma,!0)||this._accept(mA.Pipe,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new TA(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(mA.Dollar)&&this._accept(mA.CurlyOpen)&&(t=this._accept(mA.VariableName,!0))))return this._backTo(n);var i=new OA(t);if(!this._accept(mA.Colon))return this._accept(mA.Forwardslash)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(mA.CurlyClose)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(mA.CurlyClose))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new TA("${"+t+":")),i.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){for(var t=new jA,n="",i="";!this._accept(mA.Forwardslash);){var o=void 0;if(o=this._accept(mA.Backslash,!0))n+=o=this._accept(mA.Forwardslash,!0)||o;else{if(this._token.type===mA.EOF)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(mA.Forwardslash);)if(o=void 0,o=this._accept(mA.Backslash,!0))o=this._accept(mA.Forwardslash,!0)||o,t.appendChild(new TA(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1;for(;!this._accept(mA.CurlyClose);){if(this._token.type===mA.EOF)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(e){return!1}return e.appendChild(t),!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(mA.Dollar))return!1;var n=!1;this._accept(mA.CurlyOpen)&&(n=!0);var i=this._accept(mA.Int,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new AA(Number(i))),!0;if(this._accept(mA.CurlyClose))return e.appendChild(new AA(Number(i))),!0;if(!this._accept(mA.Colon))return this._backTo(t),!1;if(this._accept(mA.Forwardslash)){var o=this._accept(mA.VariableName,!0);return o&&this._accept(mA.CurlyClose)?(e.appendChild(new AA(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(mA.Plus)){if(r=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,r,void 0)),!0}else if(this._accept(mA.Dash)){if(s=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,void 0,s)),!0}else if(this._accept(mA.QuestionMark)){var r;if((r=this._until(mA.Colon))&&(s=this._until(mA.CurlyClose)))return e.appendChild(new AA(Number(i),void 0,r,s)),!0}else{var s;if(s=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return this._token.type!==mA.EOF&&(e.appendChild(new TA(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}(),BA=(Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0}),function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t0&&(this._placeholderGroupsIdx-=1),this._editor.getModel().changeDecorations(function(t){for(var i=new Set,o=[],r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t ")+'"'},e.prototype.insert=function(){var t=this,n=this._editor.getModel(),i=e.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1),o=i.edits;this._snippets=i.snippets,this._editor.setSelections(n.pushEditOperations(this._editor.getSelections(),o,function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return ln.fromPositions(e.range.getEndPosition())})}))},e.prototype.merge=function(t,n,i){var o=this;void 0===n&&(n=0),void 0===i&&(i=0),this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var r=e.createEditsAndSnippets(this._editor,t,n,i,!0),s=r.edits,a=r.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),s,function(e){for(var t=0,n=o._snippets;t0},e}(),XA={Visible:new zo("suggestWidgetVisible",!1),MultipleSuggestions:new zo("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new zo("suggestionMakesTextEdit",!0),AcceptOnKey:new zo("suggestionSupportsAcceptOnKey",!0),AcceptSuggestionsOnEnter:new zo("acceptSuggestionOnEnter",!0)};function KA(e,t,n,i,o){void 0===n&&(n="bottom");var r=[],s=function(e){return"none"===e?function(e){return"snippet"!==e.type}:function(){return!0}}(n);t=t.clone();var a=_l.orderedGroups(e);"none"!==n&&zA&&a.unshift([zA]);var u=o||{triggerKind:hl.Invoke},l=!1;return ys(a.map(function(n){return function(){if(!l)return Nt.b.join(n.map(function(n){if(ur(i)||!(i.indexOf(n)<0))return hs(function(i){return n.provideCompletionItems(e,t,u,i)}).then(function(i){var o=r.length;if(i&&!ur(i.suggestions))for(var a=0,u=i.suggestions;a")}},e.prototype._doInsert=function(e,t,n,i,o){var r=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0),this._snippetListener=_t(this._snippetListener),i&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new QA(this._editor,e,t,n),this._session.insert()),o&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&r.cancel()}),this._editor.onDidChangeModel(function(){return r.cancel()}),this._editor.onDidChangeCursorSelection(function(){return r._updateState()})]},e.prototype._updateState=function(){if(this._session){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},e.prototype._handleChoice=function(){var e,t,n=this._session.choice;if(n){if(this._currentChoice!==n){this._currentChoice=n,this._editor.setSelections(this._editor.getSelections().map(function(e){return ln.fromPositions(e.getStartPosition())}));var i=n.options[0];e=this._editor,t=n.options.map(function(e,t){return{type:"value",label:e.value,insertText:e.value,sortText:So("a",t),overwriteAfter:i.value.length}}),setTimeout(function(){WA=t,e.getContribution("editor.contrib.suggestController").triggerSuggest([iO]),WA=void 0},0)}}else this._currentChoice=void 0},e.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},e.prototype.cancel=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),_t(this._snippetListener),_t(this._session),this._session=void 0,this._modelVersionId=-1},e.prototype.prev=function(){this._session.prev(),this._updateState()},e.prototype.next=function(){this._session.next(),this._updateState()},e.InSnippetMode=new zo("inSnippetMode",!1),e.HasNextTabstop=new zo("hasNextTabstop",!1),e.HasPrevTabstop=new zo("hasPrevTabstop",!1),e=Object(a.b)([Object(a.d)(1,OM),Object(a.d)(2,Wo)],e)}();eg(oO);var rO=Qp.bindToContribution(oO.get);function sO(){for(var e=[],t=0;t0?[{start:0,end:t.length}]:[]:null}function lO(e){return 97<=e&&e<=122}function cO(e){return 65<=e&&e<=90}function dO(e){return 48<=e&&e<=57}function hO(e){return 32===e||9===e||10===e||13===e}function pO(e){return lO(e)||cO(e)||dO(e)}function gO(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function fO(e,t){for(var n=t;n0&&!pO(e.charCodeAt(n-1)))return n}return e.length}function mO(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=mO(e,t,n+1,i+1);!o&&(r=fO(t,r))60)return null;var n=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s.2&&e.upperPercent<.8&&e.alphaPercent>.6&&e.numericPercent<.2}(n)){if(!function(e){return 0===e.lowerPercent&&e.upperPercent>.6}(n))return null;t=t.toLowerCase()}for(var i=null,o=0;o=0&&(i.push(s),o=s+1)}return[i.length,i]}function CO(){for(var e=[],t=[0],n=1;n<=100;n++)t.push(-n);for(n=0;n<=100;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var LO=CO(),NO=CO(),IO=CO(),SO=!1;function xO(e,t,n,i,o){function r(e,t,n){for(void 0===n&&(n=" ");e.length=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:return!0;default:return!1}}function TO(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function EO(e,t,n){var i=e.length>100?100:e.length,o=t.length>100?100:t.length,r=0;for(void 0===n&&(n=i);ro)){for(var s=e.toLowerCase(),a=t.toLowerCase(),u=r,l=0;u1?1:c),p=LO[u-1][l]+-1,g=LO[u][l-1]+-1;g>=p?g>h?(LO[u][l]=g,IO[u][l]=4):g===h?(LO[u][l]=g,IO[u][l]=6):(LO[u][l]=h,IO[u][l]=2):p>h?(LO[u][l]=p,IO[u][l]=1):p===h?(LO[u][l]=p,IO[u][l]=3):(LO[u][l]=h,IO[u][l]=2)}if(SO&&(console.log(xO(LO,e,i,t,o)),console.log(xO(IO,e,i,t,o)),console.log(xO(NO,e,i,t,o))),jO=0,AO=-100,OO=r,function e(t,n,i,o,r){if(!(jO>=10||i<-25)){for(var s=0;t>OO&&n>0;){var a=NO[t][n],u=IO[t][n];if(4===u)n-=1,r?i-=5:o.isEmpty()||(i-=1),r=!1,s=0;else{if(!(2&u))return;if(4&u&&e(t,n-1,o.isEmpty()?i:i-1,o.slice(),r),i+=a,t-=1,o.unshift(n-=1),r=!0,1===a){if(s+=1,t===OO)return}else i+=1+s*(a-1),s=0}}jO+=1,(i-=n>=3?9:3*n)>AO&&(AO=i,kO=o)}}(i,o,i===o?1:0,new PO,!1),0!==jO)return[AO,kO.toArray()]}}}var kO,jO=0,AO=0,OO=0,PO=function(){function e(){}return e.prototype.isEmpty=function(){return!this._data&&(!this._parent||this._parent.isEmpty())},e.prototype.unshift=function(e){this._data?this._data.unshift(e):this._data=[e]},e.prototype.slice=function(){var t=new e;return t._parent=this,t._parentLen=this._data?this._data.length:0,t},e.prototype.toArray=function(){if(!this._data)return this._parent.toArray();for(var e=[],t=this;t;)t._parent&&t._parent._data&&e.push(t._parent._data.slice(t._parent._data.length-t._parentLen)),t=t._parent;return Array.prototype.concat.apply(this._data,e)},e}();function RO(e,t,n){return function(e,t,n,i){var o=EO(e,t,i);if(e.length>=3)for(var r=Math.min(7,e.length-1),s=1;so[0])&&(o=u))}}return o}(e,t,0,n)}function zO(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}var WO=function(){function e(t,n,i,o){this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._refilterKind=1,this._lineContext=i,"top"===o?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return e.prototype.dispose=function(){for(var e,t=new Set,n=0,i=this._items;n2e3?EO:RO,a=0;at.score?-1:e.scoret.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.suggestion.type!==n.suggestion.type){if("snippet"===t.suggestion.type)return 1;if("snippet"===n.suggestion.type)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.suggestion.type!==n.suggestion.type){if("snippet"===t.suggestion.type)return-1;if("snippet"===n.suggestion.type)return 1}return e._compareCompletionItems(t,n)},e}(),FO=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();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&i.endColumn===n.column&&!!isNaN(Number(i.word))},e}(),HO=function(){function e(e){var t=this;this._toDispose=[],this._triggerRefilter=new vs,this._onDidCancel=new zt,this._onDidTrigger=new zt,this._onDidSuggest=new zt,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._editor=e,this._state=0,this._triggerAutoSuggestPromise=null,this._requestPromise=null,this._completionModel=null,this._context=null,this._currentSelection=this._editor.getSelection()||new ln(1,1,1,1),this._toDispose.push(this._editor.onDidChangeModel(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeModelLanguage(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeConfiguration(function(){t._updateTriggerCharacters(),t._updateQuickSuggest()})),this._toDispose.push(_l.onDidChange(function(){t._updateTriggerCharacters(),t._updateActiveSuggestSession()})),this._toDispose.push(this._editor.onDidChangeCursorSelection(function(e){t._onCursorChange(e)})),this._toDispose.push(this._editor.onDidChangeModelContent(function(e){t._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){_t([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerCharacterListener,this._triggerRefilter]),this._toDispose=_t(this._toDispose),_t(this._completionModel),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(_t(this._triggerCharacterListener),!this._editor.getConfiguration().readOnly&&this._editor.getModel()&&this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),n=0,i=_l.all(this._editor.getModel());nthis._context.column&&this._completionModel.incomplete&&0!==e.leadingWord.word.length){var t=this._completionModel.resolveIncompleteInfo();this.trigger({auto:2===this._state},!0,t.incomplete,t.complete)}else{var n=this._completionModel.lineContext,i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(FO.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,isFrozen:i})}}else this.cancel()},e}(),BO=(n("YUwp"),this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1),r)this.setState(i?0:2),this.completionModel=null;else{var s=this.completionModel.stats;s.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",BO({},s,this.editor.getTelemetryData())),this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),this.setState(n?4:3),this.list.reveal(t,t),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},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 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!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 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog("suggestWidget:toggleDetailsFocus",this.editor.getTelemetryData())},e.prototype.toggleDetails=function(){if(JO(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Ga(this.details.element),ta(this.element,"docs-side"),ta(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog("suggestWidget:collapseDetails",this.editor.getTelemetryData());else{if(3!==this.state&&5!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(),this.telemetryService.publicLog("suggestWidget:expandDetails",this.editor.getTelemetryData())}},e.prototype.showDetails=function(){this.expandSideOrBelow(),Ua(this.details.element),this.details.render(this.list.getFocusedElements()[0]),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus(),this._ariaAlert(this.details.getAriaLabel())},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout=Nt.b.timeout(100).then(function(){ea(e.element,"visible"),e.onDidShowEmitter.fire(e)})},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),ta(this.element,"visible")},e.prototype.hideWidget=function(){clearTimeout(this.loadingTimeout),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){return 0===this.state?null:{position:this.editor.getPosition(),preference:[Wn.BELOW,Wn.ABOVE]}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.updateListHeight=function(){var e;return e=2===this.state||1===this.state?this.unfocusedHeight:Math.min(this.list.contentHeight/this.unfocusedHeight,12)*this.unfocusedHeight,this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){var e=this.editor.getConfiguration().fontInfo.lineHeight,t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Na(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Na(this.element),s=r.top;r.lefts&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},e.prototype.expandSideOrBelow=function(){var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])o&&u.type===s.type&&(o=u.touch,i=r)}return i},t.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){e.push([n,t])}),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t0&&this._activeAcceptCharacters.add(i[0])}}else this.reset()},e.prototype.reset=function(){this._activeItem=void 0},e.prototype.dispose=function(){_t(this._disposables)},e}(),aP=function(){function e(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._contextKeyService=n,this._instantiationService=i,this._toDispose=[],this._model=new HO(this._editor),this._memory=i.createInstance(rP,this._editor.getConfiguration().contribInfo.suggestSelection),this._toDispose.push(this._model.onDidTrigger(function(e){o._widget||o._createSuggestWidget(),o._widget.showTriggered(e.auto)})),this._toDispose.push(this._model.onDidSuggest(function(e){var t=o._memory.select(o._editor.getModel(),o._editor.getPosition(),e.completionModel.items);o._widget.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.push(this._model.onDidCancel(function(e){o._widget&&!e.retrigger&&o._widget.hideWidget()}));var r=XA.AcceptSuggestionsOnEnter.bindTo(n),s=function(){var e=o._editor.getConfiguration().contribInfo,t=e.acceptSuggestionOnEnter,n=e.suggestSelection;r.set("on"===t||"smart"===t),o._memory.setMode(n)};this._toDispose.push(this._editor.onDidChangeConfiguration(function(e){return s()})),s()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._createSuggestWidget=function(){var e=this;this._widget=this._instantiationService.createInstance(eP,this._editor),this._toDispose.push(this._widget.onDidSelect(this._onDidSelectItem,this));var t=new sP(this._editor,this._widget,function(t){return e._onDidSelectItem(t)});this._toDispose.push(t,this._model.onDidSuggest(function(e){0===e.completionModel.items.length&&t.reset()}));var n=XA.MakesTextEdit.bindTo(this._contextKeyService);this._toDispose.push(this._widget.onDidFocus(function(t){var i=t.item,o=e._editor.getPosition(),r=i.position.column-i.suggestion.overwriteBefore,s=o.column,a=!0;"smart"!==e._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter||2!==e._model.state||i.suggestion.command||i.suggestion.additionalTextEdits||"textmate"===i.suggestion.snippetType||s-r!==i.suggestion.insertText.length||(a=e._editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:s})!==i.suggestion.insertText),n.set(a)})),this._toDispose.push({dispose:function(){n.reset()}})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._toDispose=_t(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&&e.item){var t=e.item,n=t.suggestion,i=t.position,o=this._editor.getPosition().column-i.column;Array.isArray(n.additionalTextEdits)&&(this._editor.pushUndoStop(),this._editor.executeEdits("suggestController.additionalTextEdits",n.additionalTextEdits.map(function(e){return iC.replace(sn.lift(e.range),e.text)})),this._editor.pushUndoStop()),this._memory.memorize(this._editor.getModel(),this._editor.getPosition(),e.item);var r,s=n.insertText;"textmate"!==n.snippetType&&(s=HA.escape(s)),oO.get(this._editor).insert(s,n.overwriteBefore+o,n.overwriteAfter),n.command?n.command.id===uP.id?this._model.trigger({auto:!0},!0):((r=this._commandService).executeCommand.apply(r,[n.command.id].concat(n.command.arguments)).done(void 0,xt),this._model.cancel()):this._model.cancel(),this._alertCompletionItem(e.item)}else this._model.cancel()},e.prototype._alertCompletionItem=function(e){var t=e.suggestion;CM(Yo("arai.alert.snippet","Accepting '{0}' did insert the following text: {1}",t.label,t.insertText))},e.prototype.triggerSuggest=function(e){this._model.trigger({auto:!1},!1,e),this._editor.revealLine(this._editor.getPosition().lineNumber,0),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.hideWidget())},e.prototype.selectNextSuggestion=function(){this._widget&&this._widget.selectNext()},e.prototype.selectNextPageSuggestion=function(){this._widget&&this._widget.selectNextPage()},e.prototype.selectLastSuggestion=function(){this._widget&&this._widget.selectLast()},e.prototype.selectPrevSuggestion=function(){this._widget&&this._widget.selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this._widget&&this._widget.selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this._widget&&this._widget.selectFirst()},e.prototype.toggleSuggestionDetails=function(){this._widget&&this._widget.toggleDetails()},e.prototype.toggleSuggestionFocus=function(){this._widget&&this._widget.toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=Object(a.b)([Object(a.d)(1,di),Object(a.d)(2,Wo),Object(a.d)(3,Un)],e)}(),uP=function(e){function t(){return e.call(this,{id:t.id,label:Yo("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:To.and(wp.writable,wp.hasCompletionItemProvider),kbOpts:{kbExpr:wp.textInputFocus,primary:2058,mac:{primary:266}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=aP.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(Xp);eg(aP),$p(uP);var lP=qa.WEIGHT.editorContrib(90),cP=Qp.bindToContribution(aP.get);qp(new cP({id:"acceptSelectedSuggestion",precondition:XA.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2}})),qp(new cP({id:"acceptSelectedSuggestionOnEnter",precondition:XA.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:lP,kbExpr:To.and(wp.textInputFocus,XA.AcceptSuggestionsOnEnter,XA.MakesTextEdit),primary:3}})),qp(new cP({id:"hideSuggestWidget",precondition:XA.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:9,secondary:[1033]}})),qp(new cP({id:"selectNextSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),qp(new cP({id:"selectNextPageSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:12,secondary:[2060]}})),qp(new cP({id:"selectLastSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:13}})),qp(new cP({id:"selectPrevSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),qp(new cP({id:"selectPrevPageSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:11,secondary:[2059]}})),qp(new cP({id:"selectFirstSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:14}})),qp(new cP({id:"toggleSuggestionDetails",precondition:XA.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2058,mac:{primary:266}}})),qp(new cP({id:"toggleSuggestionFocus",precondition:XA.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2570,mac:{primary:778}}}));var dP=function(e){function t(){return e.call(this,{id:t.ID,label:Yo({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=gg.getTabFocusMode();gg.setTabFocusMode(!n)},t.ID="editor.action.toggleTabFocusMode",t}(Xp);$p(dP);var hP=Hg("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},Yo("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque to not hide underlying decorations."),!0),pP=Hg("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},Yo("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque to not hide underlying decorations."),!0),gP=Hg("editor.wordHighlightBorder",{light:null,dark:null,hc:Gg},Yo("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),fP=Hg("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Gg},Yo("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),mP=Hg("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},Yo("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),yP=Hg("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},Yo("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),vP=new zo("hasWordHighlights",!1);function bP(e,t){var n=!1;return ys(Ll.ordered(e).map(function(i){return function(){if(!n)return hs(function(n){return i.provideDocumentHighlights(e,t,n)}).then(function(e){if(Array.isArray(e)&&e.length>0)return n=!0,e},function(e){Dt(e)})}})).then(function(e){return e[0]})}Jp("_executeDocumentHighlights",bP);var _P=function(){function e(e,t){var n=this;this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=vP.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getConfiguration().contribInfo.occurrencesHighlight,this.model=this.editor.getModel(),this.toUnhook=[],this.toUnhook.push(e.onDidChangeCursorPosition(function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)})),this.toUnhook.push(e.onDidChangeModel(function(e){n._stopAll(),n.model=n.editor.getModel()})),this.toUnhook.push(e.onDidChangeModelContent(function(e){n._stopAll()})),this.toUnhook.push(e.onDidChangeConfiguration(function(e){var t=n.editor.getConfiguration().contribInfo.occurrencesHighlight;n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll())})),this._lastWordRange=null,this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0},e.prototype.restore=function(){this.occurrencesHighlight&&this._run()},e.prototype._getSortedHighlights=function(){var e=this;return this._decorationIds.map(function(t){return e.model.getDecorationRange(t)}).sort(sn.compareRangesUsingStarts)},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(lr(t,function(t){return t.containsPosition(e.editor.getPosition())})+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(lr(t,function(t){return t.containsPosition(e.editor.getPosition())})-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},e.prototype._stopAll=function(){this._lastWordRange=null,this._removeDecorations(),-1!==this.renderDecorationsTimer&&(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){this.occurrencesHighlight&&e.reason===mh.Explicit?this._run():this._stopAll()},e.prototype._run=function(){var e=this;if(Ll.has(this.model)){var t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn=o&&(a=!0)}if(this.lastCursorPositionChangeTime=(new Date).getTime(),a)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var d=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=bP(this.model,this.editor.getPosition()),this.workerRequest.then(function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}).done()}this._lastWordRange=s}}else this._stopAll()}else this._stopAll()},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 t=[],n=0,i=this.workerRequestValue.length;n0?Ni(tR,e.length):null:JP}(t,n);switch(o+=e.wrappingInfo.inDiffEditor?e.readOnly?Yo("readonlyDiffEditor"," in a read-only pane of a diff editor."):Yo("editableDiffEditor"," in a pane of a diff editor."):e.readOnly?Yo("readonlyEditor"," in a read-only code editor"):Yo("editableEditor"," in a code editor"),e.accessibilitySupport){case 0:var r=mn.d?Yo("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."):Yo("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.");o+="\n\n - "+r;break;case 2:o+="\n\n - "+Yo("auto_on","The editor is configured to be optimized for usage with a Screen Reader.");break;case 1:o+="\n\n - "+Yo("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o+=" "+r}var s=Yo("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),a=Yo("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),u=Yo("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),l=Yo("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.");o+=e.tabFocusMode?"\n\n - "+this._descriptionForCommand(dP.ID,s,a):"\n\n - "+this._descriptionForCommand(dP.ID,u,l),o+="\n\n - "+(mn.d?Yo("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."):Yo("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility.")),o+="\n\n"+Yo("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),this._contentDomNode.domNode.appendChild(bx(o)),this._contentDomNode.domNode.setAttribute("aria-label",o)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Xs(this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,pi),Object(a.d)(3,rN)],t)}(bb),iR=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:Yo("ShowAccessibilityHelpAction","Show Accessibility Help"),alias:"Show Accessibility Help",precondition:null,kbOpts:{kbExpr:wp.focus,primary:Is?2107:571}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=KP.get(t);n&&n.show()},t}(Xp);eg(KP),$p(iR),qp(new(Qp.bindToContribution(KP.get))({id:"closeAccessibilityHelp",precondition:XP,handler:function(e){return e.hide()},kbOpts:{weight:qa.WEIGHT.editorContrib(100),kbExpr:wp.focus,primary:9,secondary:[1033]}})),wm(function(e,t){var n=e.getColor(kf);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Ug);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+o+"; }")}),n("tVlf");var oR=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._standaloneThemeService=n,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel(function(e){return o.stop()})),o._register(o._editor.onDidChangeModelLanguage(function(e){return o.stop()})),o._register(Pl.onDidChange(function(e){return o.stop()})),o}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this)},t.prototype.launch=function(){this._widget||this._editor.getModel()&&(this._widget=new sR(this._editor,this._standaloneThemeService,this._modeService))},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},t.ID="editor.contrib.inspectTokens",t=Object(a.b)([Object(a.d)(1,wM),Object(a.d)(2,Fw)],t)}(Ct),rR=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:Yo("inspectTokens","Developer: Inspect Tokens"),alias:"Developer: Inspect Tokens",precondition:null})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oR.get(t);n&&n.launch()},t}(Xp),sR=function(e){function t(t,n,i){var o,r=e.call(this)||this;return r.allowEditorOverflow=!0,r._editor=t,r._modeService=i,r._model=r._editor.getModel(),r._domNode=document.createElement("div"),r._domNode.className="tokens-inspect-widget",r._tokenizationSupport=(o=r._model.getLanguageIdentifier(),Pl.get(o.language)||{getInitialState:function(){return gc},tokenize:function(e,t,n){return mc(o.language,0,t,n)},tokenize2:function(e,t,n){return yc(o.id,0,t,n)}}),r._compute(r._editor.getPosition()),r._register(r._editor.onDidChangeCursorPosition(function(e){return r._compute(r._editor.getPosition())})),r._editor.addContentWidget(r),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t._ID},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--)if(e.column-1>=t.tokens1[i].offset){n=i;break}var o=0;for(i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){o=i;break}var r="",s=this._model.getLineContent(e.lineNumber),a="";n'+function(e){for(var t="",n=0,i=e.length;n('+a.length+" "+(1===a.length?"char":"chars")+")",r+='
    ';var u=this._decodeMetadata(t.tokens2[1+(o<<1)]);r+='',r+='",r+='",r+='",r+='",r+='",r+="",r+='
    ',n'+Ii(t.tokens1[n].type)+""),this._domNode.innerHTML=r,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=Pl.getColorMap(),n=dl.getLanguageId(e),i=dl.getTokenType(e),o=dl.getFontStyle(e),r=dl.getForeground(e),s=dl.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;n0?n.actionBar.push(e,{icon:!0,label:!1}):n.actionBar.isEmpty()||e&&0!==e.length||n.actionBar.clear()}),e instanceof pR&&e.getGroupLabel()?ea(n.container,"has-group-label"):ta(n.container,"has-group-label"),e instanceof pR){var o=e,r=n;o.showBorder()?(ea(r.container,"results-group-separator"),r.container.style.borderTopColor=i.pickerGroupBorder.toString()):(ta(r.container,"results-group-separator"),r.container.style.borderTopColor=null);var s=o.getGroupLabel()||"";r.group.textContent=s,r.group.style.color=i.pickerGroupForeground.toString()}if(e instanceof hR){var a=e.getHighlights(),u=a[0],l=a[1],c=a[2],d=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=d;var h=e.getLabelOptions()||Object.create(null);h.matches=u||[],h.title=e.getTooltip(),h.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),h.descriptionMatches=l||[],n.label.setValue(e.getLabel(),e.getDescription(),h),n.detail.set(e.getDetail(),c),n.keybinding.set(e.getKeybinding(),null)}},e.prototype.disposeTemplate=function(e,t){var n=t;n.actionBar.dispose(),n.actionBar=null,n.container=null,n.entry=null,n.keybinding.dispose(),n.keybinding=null,n.detail.dispose(),n.detail=null,n.group=null,n.icon=null,n.label.dispose(),n.label=null},e}(),mR=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new gR),this._entries=e,this._dataSource=this,this._renderer=new fR(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){$n(e)&&(this._entries=this._entries.concat(e))},e.prototype.setEntries=function(e){$n(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){return e.getAriaLabel()?Yo("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):Yo("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}(),yR=function(e){return e[e.PREVIEW=0]="PREVIEW",e[e.OPEN=1]="OPEN",e[e.OPEN_IN_BACKGROUND=2]="OPEN_IN_BACKGROUND",e}({}),vR=(n("2ZBE"),function(){function e(e){this.modelProvider=ui(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return n&&n===t&&n.entries.length>0},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Nt.b.as(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Nt.b.as(null)},e}()),bR=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.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel();return String(n.entries.indexOf(t)+1)},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel();return String(e.entries.length)},e}(),_R=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}(),MR=function(){function e(e,t){this.modelProvider=e,this.styles=t}return e.prototype.updateStyles=function(e){this.styles=e},e.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},e.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles)},e.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},e}(),wR=(n("1O6n"),{progressBarBackground:dp.fromHex("#0E70C0")}),CR=function(){function e(e,t){this.options=t||Object.create(null),Or(this.options,wR,!1),this.toUnbind=[],this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.create(e)}return e.prototype.create=function(e){var t=this;m_(e).div({class:"monaco-progress-container"},function(e){t.element=e.clone(),e.div({class:"progress-bit"}).on([za.ANIMATION_START,za.ANIMATION_END,za.ANIMATION_ITERATION],function(e){switch(e.type){case za.ANIMATION_ITERATION:t.animationStopToken&&t.animationStopToken(null)}},t.toUnbind),t.bit=e.getHTMLElement()}),this.applyStyles()},e.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.removeClass("active"),this.element.removeClass("infinite"),this.element.removeClass("discrete"),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("done"),this.element.hasClass("infinite")?(this.bit.style.opacity="0",e?Nt.b.timeout(200).then(function(){return t.off()}):this.off()):(this.bit.style.width="inherit",e?Nt.b.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("discrete"),this.element.removeClass("done"),this.element.addClass("active"),this.element.addClass("infinite"),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 Wr(!isNaN(this.totalWork),"Total work not set"),e=Number(e),Wr(!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("infinite")&&this.element.removeClass("infinite"),this.element.hasClass("done")&&this.element.removeClass("done"),this.element.hasClass("active")||this.element.addClass("active"),this.element.hasClass("discrete")||this.element.addClass("discrete"),this.bit.style.width=this.workedVal/this.totalWork*100+"%",this},e.prototype.getContainer=function(){return m_(this.element)},e.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},e.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},e.prototype.dispose=function(){this.toUnbind=_t(this.toUnbind)},e}(),LR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.onContextMenu=function(t,n,i){return mn.d?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(nL),NR=function(e){return e[e.ELEMENT_SELECTED=0]="ELEMENT_SELECTED",e[e.FOCUS_LOST=1]="FOCUS_LOST",e[e.CANCELED=2]="CANCELED",e}({}),IR={background:dp.fromHex("#1E1E1E"),foreground:dp.fromHex("#CCCCCC"),pickerGroupForeground:dp.fromHex("#0097FB"),pickerGroupBorder:dp.fromHex("#3F3F46"),widgetShadow:dp.fromHex("#000000"),progressBarBackground:dp.fromHex("#0E70C0")},SR=Yo("quickOpenAriaLabel","Quick picker. Type to narrow down results."),xR=function(){function e(e,t,n){this.isDisposed=!1,this.toUnbind=[],this.container=e,this.callbacks=t,this.options=n,this.styles=n||Object.create(null),Or(this.styles,IR,!1),this.model=null}return e.prototype.getElement=function(){return m_(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=m_().div(function(t){t.on(za.KEY_DOWN,function(t){9===new zs(t).keyCode&&(Wa.stop(t,!0),e.hide(NR.CANCELED))}).on(za.CONTEXT_MENU,function(e){return Wa.stop(e,!0)}).on(za.FOCUS,function(t){return e.gainingFocus()},null,!0).on(za.BLUR,function(t){return e.loosingFocus(t)},null,!0),e.progressBar=new CR(t.clone(),{progressBarBackground:e.styles.progressBarBackground}),e.progressBar.getContainer().hide(),t.div({class:"quick-open-input"},function(t){e.inputContainer=t,e.inputBox=new Nx(t.getHTMLElement(),null,{placeholder:e.options.inputPlaceHolder||"",ariaLabel:SR,inputBackground:e.styles.inputBackground,inputForeground:e.styles.inputForeground,inputBorder:e.styles.inputBorder,inputValidationInfoBackground:e.styles.inputValidationInfoBackground,inputValidationInfoBorder:e.styles.inputValidationInfoBorder,inputValidationWarningBackground:e.styles.inputValidationWarningBackground,inputValidationWarningBorder:e.styles.inputValidationWarningBorder,inputValidationErrorBackground:e.styles.inputValidationErrorBackground,inputValidationErrorBorder:e.styles.inputValidationErrorBorder}),e.inputElement=e.inputBox.inputElement,e.inputElement.setAttribute("role","combobox"),e.inputElement.setAttribute("aria-haspopup","false"),e.inputElement.setAttribute("aria-autocomplete","list"),oa(e.inputBox.inputElement,za.KEY_DOWN,function(t){var n=new zs(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)Wa.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){Wa.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?yR.OPEN_IN_BACKGROUND:yR.OPEN)}}),oa(e.inputBox.inputElement,za.INPUT,function(t){e.onType()})}),e.treeContainer=t.div({class:"quick-open-tree"},function(t){e.tree=(e.options.treeCreator||function(e,t,n){return new AL(e,t,n)})(t.getHTMLElement(),{dataSource:new vR(e),controller:new LR({clickBehavior:$C.ON_MOUSE_UP,keyboardSupport:e.options.keyboardSupport}),renderer:e.renderer=new MR(e,e.styles),filter:new _R(e),accessibilityProvider:new bR(e)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:Uc.Visible,horizontalScrollMode:Uc.Hidden,ariaLabel:Yo("treeAriaLabel","Quick Picker"),keyboardSupport:e.options.keyboardSupport,preventRootFocus:!0}),e.treeElement=e.tree.getHTMLElement(),e.toUnbind.push(e.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),e.toUnbind.push(e.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof Ys?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?yR.OPEN_IN_BACKGROUND:yR.OPEN)}}))}).on(za.KEY_DOWN,function(t){var n=new zs(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Wa.stop(t,!0),e.navigateInTree(n.keyCode)))}).on(za.KEY_UP,function(t){var n=new zs(t),i=n.keyCode;if(e.quickNavigateConfiguration&&(3===i||e.quickNavigateConfiguration.keybindings.some(function(e){var t=e.getParts(),o=t[0];return!(t[1]||(o.shiftKey&&4===i?n.ctrlKey||n.altKey||n.metaKey:!(o.altKey&&6===i||o.ctrlKey&&5===i||o.metaKey&&57===i)))}))){var o=e.tree.getFocus();o&&e.elementSelected(o,t)}}).clone()}).addClass("monaco-quick-open-widget").build(this.container),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),oa(this.treeContainer.getHTMLElement(),za.KEY_DOWN,function(t){var n=new zs(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Wa.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.focus())}),this.builder.getHTMLElement()},e.prototype.style=function(e){this.styles=e,this.applyStyles()},e.prototype.applyStyles=function(){if(this.builder){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,i=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.builder.style("color",e),this.builder.style("background-color",t),this.builder.style("border-color",n),this.builder.style("border-width",n?"1px":null),this.builder.style("border-style",n?"solid":null),this.builder.style("box-shadow",i?"0 5px 8px "+i:null)}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},e.prototype.shouldOpenInBackground=function(e){if(e instanceof zs){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},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&&t&&(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())&&this.tree.reveal(r).done(null,xt)},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,yR.PREVIEW,n)}},e.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||yR.OPEN,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(NR.ELEMENT_SELECTED)},e.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},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||ei(e)?this.helpText.hide():this.helpText.show()),ei(e)?this.doShowWithPrefix(e):this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{}),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),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)},xt)},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,a=s.toLowerCase(),u=0;ut.autoFocusIndex&&(this.tree.focusNth(t.autoFocusIndex),this.tree.reveal(this.tree.getFocus()).done(null,xt)):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()&&(e||(e=this.tree.getInput()),e&&(this.treeContainer.style({height:this.getHeight(e)+"px"}),this.tree.refresh().done(function(){n.tree.layout(),t&&t&&e&&e.entries.some(function(t){return n.isElementVisible(e,t)})&&n.autoFocus(e,t)},xt)))},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;l0&&0===n.indexOf(":")){var d=null,h=null,p=0;for(s=0;s0)):p++}h&&h.setGroupLabel(this.typeToLabel(d,p))}else o.length>0&&o[0].setGroupLabel(Yo("symbols","symbols ({0})",o.length));return o},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return Yo("modules","modules ({0})",t);case"class":return Yo("class","classes ({0})",t);case"interface":return Yo("interface","interfaces ({0})",t);case"method":return Yo("method","methods ({0})",t);case"function":return Yo("function","functions ({0})",t);case"property":return Yo("property","properties ({0})",t);case"variable":return Yo("variable","variables ({0})",t);case"var":return Yo("variable2","variables ({0})",t);case"constructor":return Yo("_constructor","constructors ({0})",t);case"call":return Yo("call","calls ({0})",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(":".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}(ER)),n("wtJh");var OR=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 Object(a.c)(t,e),t.prototype._parseInput=function(e){var t,n,i=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});t=0===i.length?new rn(-1,-1):new rn(i[0],1===i.length?1:i[1]);var o=(n=Zn(this.editor)?this.editor.getModel():this.editor.getModel().modified).validatePosition(t).equals(t);return{position:t,isValid:o,label:o?t.column&&t.column>1?Yo("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}",t.lineNumber,t.column):Yo("gotoLineLabelValidLine","Go to line {0}",t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>n.getLineCount()?Yo("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to",n.getLineCount()):Yo("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to",n.getLineMaxColumn(t.lineNumber))}},t.prototype.getLabel=function(){return this._parseResult.label},t.prototype.getAriaLabel=function(){return Yo("gotoLineAriaLabel","Go to line {0}",this._parseResult.label)},t.prototype.run=function(e,t){return e===yR.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,0),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,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new sn(this._parseResult.position.lineNumber,this._parseResult.position.column,this._parseResult.position.lineNumber,this._parseResult.position.column)},t}(hR);$p(function(e){function t(){return e.call(this,Yo("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),{id:"editor.action.gotoLine",label:Yo("GotoLineAction.label","Go to Line..."),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:wp.focus,primary:2085,mac:{primary:293}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new mR([new OR(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(ER));var PR=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 Object(a.c)(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return Yo("ariaLabelEntry","{0}, commands",this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return e===yR.OPEN&&(Nt.b.timeout(50).done(function(){n.editor.focus();try{(n.action.run()||Nt.b.as(null)).done(null,xt)}catch(e){xt(e)}},xt),!0)},t}(pR);$p(function(e){function t(){return e.call(this,Yo("quickCommandActionInput","Type the name of an action you want to execute"),{id:"editor.action.quickCommand",label:Yo("QuickCommandAction.label","Command Palette"),alias:"Command Palette",precondition:null,kbOpts:{kbExpr:wp.focus,primary:Is?571:59},menuOpts:{}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(pi);this._show(this.getController(t),{getModel:function(e){return new mR(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(),o=[],r=0;rt&&(this.treeControlContextMenuX=t/2)}this.treeControlContextMenuY=this.treeControlContextMenuY+r,this.showContextMenu=!0,this.selectedCell=e.target.id},e.prototype.onSelect=function(e,t){var n;t.stopPropagation(),this.showContextMenu=!1,document.getElementById("comparison-table-container").style.overflowY="auto",this.appLog.add("Grid: Row selected","info"),n=e?"node-"+e.Id:t.target.id;for(var i=t.ctrlKey,o=t.shiftKey,r=document.querySelectorAll(".transparent-cell"),s=0;s-1?(this.lastSelectedRow.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)):(this.lastSelectedRow.classList.add("selected-row"),this.selectedNodes.push(o.Id))),c=document.getElementById("comparison-grid"),d=this.getSiblingElement(!1,c.firstElementChild.firstElementChild.id),h=c.firstElementChild.lastElementChild,a=n.id,o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(a.split("node-")[1],10)}),!this.oldDirection||this.oldDirection===this.direction||d!==n&&h!==n||(this.selectedNodes.indexOf(o.Id)>-1?(n.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)):(n.classList.add("selected-row"),this.selectedNodes.push(o.Id))),this.oldDirection=this.direction;u;)(t=this.getSiblingElement(l,a))&&t.classList&&t.classList.contains("grid-data-row")?(a=t.id,document.getElementById(a+"-"+i).focus(),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(a.split("node-")[1],10)}),this.selectedObject=o,-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id)):(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),t.focus(),t=this.getSiblingElement(l,a)):u=!1}}else{if(!e.shiftKey)if("action-dropdown"===i){var p=void 0;p=document.getElementById(e.target.id).firstElementChild,o=this.comparisonDataToDisplay.find(function(t){return t.Id===parseInt(e.target.id.split("node-")[1],10)});var g=p.selectedOptions[0],f=g.innerHTML;if(t=this.getSiblingElement(38===e.which,g.id)){p.selectedIndex=38===e.which?p.selectedIndex-1:p.selectedIndex+1;var m=p.selectedOptions[0].innerHTML;m!==f&&(this.gridService.sendChange(o.Id,m,f),this.getDataToDisplay(!0))}}else{this.selectedNodes=[];for(var y=document.querySelectorAll(".selected-row"),v=0;v1?this.selectedNodes.indexOf(o.Id)>-1&&(n.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1),b=!1):0!==this.selectedNodes.length&&1!==this.selectedNodes.length||(this.oldDirection=this.direction),t&&t.classList.contains("grid-data-row")||(t=n,b=!1),_=t.id,document.getElementById(_+"-"+i).focus(),_=_.split("node-")[1],o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(_,10)}),-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id),this.lastSelectedRow=t):b&&(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),this.selectedObject=o}}else if((37===e.which||39===e.which||9===e.which||e.shiftKey&&9===e.which)&&!e.ctrlKey){e.preventDefault(),e.stopPropagation(),l=!0;var M=void 0;c=void 0,d=void 0,h=void 0,c=document.getElementById("comparison-grid"),d=this.getSiblingElement(!1,c.firstElementChild.firstElementChild.id),h=c.firstElementChild.lastElementChild,(39===e.which||9===e.which&&!e.shiftKey)&&(l=!1),(t=this.getSiblingElement(l,e.target.id))?t.focus():(i=document.getElementById(e.target.id).getAttribute("data-column-type"),n===d&&"node-type"===i||n===h&&"action-dropdown"===i||(n.classList.remove("selected-row"),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(n.id.split("node-")[1],10)}),this.selectedNodes.indexOf(o.Id)>-1&&this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1),t=this.getSiblingElement(l,n.id),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(t.id.split("node-")[1],10)}),this.selectedObject=o,-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id)):(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),M=l?document.getElementById(t.id).lastElementChild:document.getElementById(t.id).firstElementChild,document.getElementById(M.id).focus()))}for(var w=document.querySelectorAll(".selected-row .greyed-out-cell"),C=0;C0){t.selectedObject=t.comparisonDataToDisplay[0];var o=t;t.intervalId=setInterval(function(){o.bindElements(i)},1e3)}}t.showContextMenu=!1})},e.prototype.changeOptions=function(e){for(var t,n,i=0;i0),e(t,9,0,n.comparisonDataToDisplay.length>0),e(t,12,0,n.comparisonDataToDisplay.length>0)},null)}var XR=o.T({encapsulation:0,styles:[["body[_ngcontent-%COMP%]{overflow-y:hidden}"]],data:{}});function KR(e){return o._11(0,[(e()(),o.V(0,0,null,null,1,"app-grid",[],null,[["document","mouseup"],["window","resize"]],function(e,t,n){var i=!0;return"document:mouseup"===t&&(i=!1!==o._6(e,1).onMouseUp(n)&&i),"window:resize"===t&&(i=!1!==o._6(e,1).onResize(n)&&i),i},QR,HR)),o.U(1,114688,null,0,FR,[y,f,o.s],null,null),(e()(),o._10(-1,null,["\n"]))],function(e,t){e(t,1,0)},null)}var JR=o.R("app-root",s,function(e){return o._11(0,[(e()(),o.V(0,0,null,null,1,"app-root",[],null,null,null,KR,XR)),o.U(1,49152,null,0,s,[],null,null)],null,null)},{},{},[]),qR=o.S(r,[s],function(e){return o._3([o._4(512,o.g,o.O,[[8,[JR]],[3,o.g],o.q]),o._4(5120,o.p,o._8,[[3,o.p]]),o._4(4608,I,S,[o.p,[2,N]]),o._4(4608,o.f,o.f,[]),o._4(5120,o.a,o.X,[]),o._4(5120,o.n,o._5,[]),o._4(5120,o.o,o._7,[]),o._4(4608,tt,nt,[A]),o._4(6144,o.z,null,[tt]),o._4(4608,xe,De,[]),o._4(5120,te,function(e,t,n,i,o){return[new Ie(e,t),new je(n),new Te(i,o)]},[A,o.s,A,A,xe]),o._4(4608,ne,ne,[te,o.s]),o._4(135680,re,re,[A]),o._4(4608,he,he,[ne,re]),o._4(6144,o.x,null,[he]),o._4(6144,oe,null,[re]),o._4(4608,o.C,o.C,[o.s]),o._4(4608,G,G,[A]),o._4(4608,J,J,[A]),o._4(4608,pt,pt,[]),o._4(4608,f,f,[]),o._4(4608,m,m,[]),o._4(4608,y,y,[f,m]),o._4(512,j,j,[]),o._4(1024,o.i,dt,[]),o._4(1024,o.b,function(e){return[(t=e,q("probe",ee),q("coreTokens",Object(a.a)({},$,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return ee})];var t},[[2,o.r]]),o._4(512,o.c,o.c,[[2,o.b]]),o._4(131584,o.e,o.e,[o.s,o.P,o.m,o.i,o.g,o.c]),o._4(512,o.d,o.d,[o.e]),o._4(512,ht,ht,[[3,ht]]),o._4(512,yt,yt,[]),o._4(512,vt,vt,[]),o._4(512,r,r,[])])});Object(o.I)(),ct().bootstrapModuleFactory(qR).catch(function(e){return console.log(e)})},x6VL:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(i.c)(t,e),t}(Error)}},[0]); \ No newline at end of file +webpackJsonp([44],{"+0Qw":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Uncomment to see lines flashing when they're painted */\n\n/*.monaco-editor .view-lines > .view-line {\n\tbackground-color: none;\n\tanimation-name: flash-background;\n\tanimation-duration: 800ms;\n}\n@keyframes flash-background {\n\t0% { background-color: lightgreen; }\n\t100% { background-color: none }\n}*/\n\n.monaco-editor.safari .lines-content,\n.monaco-editor.safari .view-line,\n.monaco-editor.safari .view-lines {\n\t-webkit-user-select: text;\n\t-moz-user-select: text;\n\t -ms-user-select: text;\n\t user-select: text;\n}\n\n.monaco-editor .lines-content,\n.monaco-editor .view-line,\n.monaco-editor .view-lines {\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\t-moz-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-editor .view-lines {\n\tcursor: text;\n\twhite-space: nowrap;\n}\n\n.monaco-editor.vs-dark.mac .view-lines,\n.monaco-editor.hc-black.mac .view-lines {\n\tcursor: -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;\n}\n\n.monaco-editor .view-line {\n\tposition: absolute;\n\twidth: 100%;\n}\n\n/* TODO@tokenization bootstrap fix */\n\n/*.monaco-editor .view-line > span > span {\n\tfloat: none;\n\tmin-height: inherit;\n\tmargin-left: inherit;\n}*/"},"+3/4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t){e.call(this),this.scheduler=t}return Object(i.c)(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(n("YaPU").a)},"+CnV":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){var t,i=n("AMGY").a.Symbol;return"function"==typeof i?i.observable?t=i.observable:(t=i("observable"),i.observable=t):t="@@observable",t}()},"+Tn7":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.context-view {\n\tposition: absolute;\n\tz-index: 1000;\n}"},"/iUD":function(e,t,n){"use strict";t.a=function(e){return"function"==typeof e}},"/nXB":function(e,t,n){"use strict";t.a=function(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof u&&(n=e.pop()),null===a&&1===e.length&&e[0]instanceof i.a?e[0]:Object(s.a)(n)(new o.a(e,a))};var i=n("YaPU"),o=n("Veqx"),r=n("1Q68"),s=n("8D5t")},0:function(e,t,n){e.exports=n("x35b")},"0P3J":function(e,t,n){"use strict";t.a=function(){return function(e){return e.lift(new r(e))}};var i=n("TToO"),o=n("OVmG"),r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var i=new s(e,n),o=t.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),s=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.c)(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},t}(o.a)},"0u1n":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-count-badge {\n\tpadding: 0.2em 0.5em;\n\tborder-radius: 1em;\n\tfont-size: 85%;\n\tfont-weight: normal;\n\ttext-align: center;\n\tdisplay: inline;\n}"},"14gL":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box-dropdown-container {\n\tdisplay: none;\n}\n\n.monaco-select-box-dropdown-container.visible {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\ttext-align: left;\n\twidth: 1px;\n\toverflow: hidden;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\t-webkit-box-flex: 0;\n\t -ms-flex: 0 0 auto;\n\t flex: 0 0 auto;\n\t-ms-flex-item-align: start;\n\t align-self: flex-start;\n\tpadding-bottom: 1px;\n\tpadding-top: 1px;\n\tpadding-left: 1px;\n\tpadding-right: 1px;\n\twidth: 100%;\n\toverflow: hidden;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n}\n\n.hc-black .monaco-select-box-dropdown-container > .select-box-dropdown-list-container {\n\tpadding-bottom: 4px;\n\tpadding-top: 3px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-list-container .monaco-list .monaco-list-row > .option-text {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n\tpadding-left: 3.5px;\n\twhite-space: nowrap;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1 1 auto;\n\t flex: 1 1 auto;\n\t-ms-flex-item-align: start;\n\t align-self: flex-start;\n\topacity: 0;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div {\n\toverflow: hidden;\n\tmax-height: 0px;\n}\n\n.monaco-select-box-dropdown-container > .select-box-dropdown-container-width-control > .width-control-div > .option-text-width-control {\n\tpadding-left: 4px;\n\tpadding-right: 8px;\n\twhite-space: nowrap;\n}\n"},"1Bqh":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return Object(i.c)(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n("VwZZ").a)},"1LBi":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .rename-box {\n\tz-index: 100;\n\tcolor: inherit;\n}\n\n.monaco-editor .rename-box .rename-input {\n\tpadding: 4px;\n}\n"},"1O6n":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-progress-container {\n\twidth: 100%;\n\theight: 5px;\n\toverflow: hidden; /* keep progress bit in bounds */\n}\n\n.monaco-progress-container .progress-bit {\n\twidth: 2%;\n\theight: 5px;\n\tposition: absolute;\n\tleft: 0;\n\tdisplay: none;\n}\n\n.monaco-progress-container.active .progress-bit {\n\tdisplay: inherit;\n}\n\n.monaco-progress-container.discrete .progress-bit {\n\tleft: 0;\n\ttransition: width 100ms linear;\n\t-webkit-transition: width 100ms linear;\n\t-o-transition: width 100ms linear;\n\t-moz-transition: width 100ms linear;\n\t-ms-transition: width 100ms linear;\n}\n\n.monaco-progress-container.discrete.done .progress-bit {\n\twidth: 100%;\n}\n\n.monaco-progress-container.infinite .progress-bit {\n\tanimation-name: progress;\n\tanimation-duration: 4s;\n\tanimation-iteration-count: infinite;\n\tanimation-timing-function: linear;\n\t-ms-animation-name: progress;\n\t-ms-animation-duration: 4s;\n\t-ms-animation-iteration-count: infinite;\n\t-ms-animation-timing-function: linear;\n\t-webkit-animation-name: progress;\n\t-webkit-animation-duration: 4s;\n\t-webkit-animation-iteration-count: infinite;\n\t-webkit-animation-timing-function: linear;\n\t-moz-animation-name: progress;\n\t-moz-animation-duration: 4s;\n\t-moz-animation-iteration-count: infinite;\n\t-moz-animation-timing-function: linear;\n\twill-change: transform;\n}\n\n/**\n * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of\n * that container. Since translateX is relative to the progress bit size, we have to multiple it with\n * its relative size to the parent container:\n * 50%: 50 * 50 = 2500%\n * 100%: 50 * 100 - 50 (do not overflow): 4950%\n */\n\n@keyframes progress { from { -webkit-transform: translateX(0%) scaleX(1); transform: translateX(0%) scaleX(1) } 50% { -webkit-transform: translateX(2500%) scaleX(3); transform: translateX(2500%) scaleX(3) } to { -webkit-transform: translateX(4950%) scaleX(1); transform: translateX(4950%) scaleX(1) } }\n\n@-webkit-keyframes progress { from { -webkit-transform: translateX(0%) scaleX(1); transform: translateX(0%) scaleX(1) }\t50% { -webkit-transform: translateX(2500%) scaleX(3); transform: translateX(2500%) scaleX(3) } to { -webkit-transform: translateX(4950%) scaleX(1); transform: translateX(4950%) scaleX(1) } }"},"1Q68":function(e,t,n){"use strict";t.a=function(e){return e&&"function"==typeof e.schedule}},"1Z8u":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .codelens-decoration {\n\toverflow: hidden;\n\tdisplay: inline-block;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-editor .codelens-decoration > span,\n.monaco-editor .codelens-decoration > a {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none;\n\twhite-space: nowrap;\n\tvertical-align: sub;\n}\n\n.monaco-editor .codelens-decoration > a {\n\ttext-decoration: none;\n}\n\n.monaco-editor .codelens-decoration > a:hover {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}\n\n.monaco-editor .codelens-decoration.invisible-cl {\n\topacity: 0;\n}\n\n@keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }\n\n@-webkit-keyframes fadein { 0% { opacity:0; visibility:visible;} 100% { opacity:1; } }\n\n.monaco-editor .codelens-decoration.fadein {\n\t-webkit-animation: fadein 0.5s linear;\n\tanimation: fadein 0.5s linear;\n}\n"},"1mBN":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .peekview-widget .head {\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing: border-box;\n\t-ms-box-sizing: border-box;\n\tbox-sizing:\tborder-box;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title {\n\tdisplay: inline-block;\n\tfont-size: 13px;\n\tmargin-left: 20px;\n\tcursor: pointer;\n}\n\n.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty) {\n\tfont-size: 0.9em;\n\tmargin-left: 0.5em;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\ttext-align: right;\n\tpadding-right: 2px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar,\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar > .actions-container {\n\theight: 100%;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-item {\n\tmargin-left: 4px;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label {\n\twidth: 16px;\n\theight: 100%;\n\tmargin: 0;\n\tline-height: inherit;\n\tbackground-repeat: no-repeat;\n\tbackground-position: center center;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions > .monaco-action-bar .action-label.octicon {\n\tmargin: 0;\n}\n\n.monaco-editor .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-editor .peekview-widget > .body {\n\tborder-top: 1px solid;\n\tposition: relative;\n}\n\n/* Dark Theme */\n\n/* High Contrast Theme */\n\n.monaco-editor.hc-black .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action,\n.monaco-editor.vs-dark .peekview-widget .head .peekview-actions .action-label.icon.close-peekview-action {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n'},"2ZBE":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tposition: absolute;\n\twidth: 600px;\n\tz-index: 2000;\n\tpadding-bottom: 6px;\n\tleft: 50%;\n\tmargin-left: -300px;\n}\n\n.monaco-quick-open-widget .monaco-progress-container {\n\tposition: absolute;\n\tleft: 0;\n\ttop: 38px;\n\tz-index: 1;\n\theight: 2px;\n}\n\n.monaco-quick-open-widget .monaco-progress-container .progress-bit {\n\theight: 2px;\n}\n\n.monaco-quick-open-widget .quick-open-input {\n\twidth: 588px;\n\tborder: none;\n\tmargin: 6px;\n}\n\n.monaco-quick-open-widget .quick-open-input .monaco-inputbox {\n\twidth: 100%;\n\theight: 25px;\n}\n\n.monaco-quick-open-widget .quick-open-tree {\n\tline-height: 22px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row > .content > .sub-content {\n\toverflow: hidden;\n}\n\n.monaco-quick-open-widget.content-changing .quick-open-tree .monaco-scrollable-element .slider {\n\tdisplay: none; /* scrollbar slider causes some hectic updates when input changes quickly, so hide it while quick open changes */\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry {\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\theight: 100%;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry > .quick-open-row {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\toverflow: hidden;\n\twidth: 16px;\n\theight: 16px;\n\tmargin-right: 4px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\t-ms-flex-negative: 0;\n\t flex-shrink: 0;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-icon-label,\n.monaco-quick-open-widget .quick-open-tree .monaco-icon-label .monaco-icon-label-description-container {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1; /* make sure the icon label grows within the row */\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .monaco-highlighted-label span {\n\topacity: 1;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry-meta {\n\topacity: 0.7;\n\tline-height: normal;\n}\n\n.monaco-quick-open-widget .quick-open-tree .content.has-group-label .quick-open-entry-keybinding {\n\tmargin-right: 8px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry-keybinding .monaco-keybinding-key {\n\tvertical-align: text-bottom;\n}\n\n.monaco-quick-open-widget .quick-open-tree .results-group {\n\tmargin-right: 18px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row.focused > .content.has-actions > .results-group,\n.monaco-quick-open-widget .quick-open-tree .monaco-tree-row:hover:not(.highlighted) > .content.has-actions > .results-group,\n.monaco-quick-open-widget .quick-open-tree .focused .monaco-tree-row.focused > .content.has-actions > .results-group {\n\tmargin-right: 0px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .results-group-separator {\n\tborder-top-width: 1px;\n\tborder-top-style: solid;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tmargin-left: -11px;\n\tpadding-left: 11px;\n}\n\n/* Actions in Quick Open Items */\n\n.monaco-tree .monaco-tree-row > .content.actions {\n\tposition: relative;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .sub-content {\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions .action-item {\n\tmargin: 0;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar {\n\tline-height: 22px;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar {\n\tdisplay: none;\n\tpadding: 0 0.8em 0 0.4em;\n}\n\n.monaco-tree .monaco-tree-row.focused > .content.has-actions > .primary-action-bar {\n\twidth: 0; /* in order to support a11y with keyboard, we use width: 0 to hide the actions, which still allows to "Tab" into the actions */\n\tdisplay: block;\n}\n\n.monaco-tree .monaco-tree-row:hover:not(.highlighted) > .content.has-actions > .primary-action-bar,\n.monaco-tree.focused .monaco-tree-row.focused > .content.has-actions > .primary-action-bar,\n.monaco-tree .monaco-tree-row > .content.has-actions.more > .primary-action-bar {\n\twidth: inherit;\n\tdisplay: block;\n}\n\n.monaco-tree .monaco-tree-row > .content.actions > .primary-action-bar .action-label {\n\tmargin-right: 0.4em;\n\tmargin-top: 4px;\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .monaco-highlighted-label .highlight {\n\tfont-weight: bold;\n}'},"3ZDw":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\n\tborder-right: 0;\n}"},"3a3m":function(e,t,n){"use strict";t.a=function(){return function(e){return Object(o.a)()(Object(i.a)(s)(e))}};var i=n("Jwyl"),o=n("0P3J"),r=n("g5jc");function s(){return new r.a}},"3j2o":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-menu .monaco-action-bar.vertical .action-label.hover {\n\tbackground-color: #EEE;\n}"},"4Yhh":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -------------------- IE10 remove auto clear button -------------------- */\n\n::-ms-clear {\n\tdisplay: none;\n}\n\n/* All widgets */\n\n/* I am not a big fan of this rule */\n\n.monaco-editor .editor-widget input {\n\tcolor: inherit;\n}\n\n/* -------------------- Editor -------------------- */\n\n.monaco-editor {\n\tposition: relative;\n\toverflow: visible;\n\t-webkit-text-size-adjust: 100%;\n\t-webkit-font-feature-settings: "liga" off, "calt" off;\n\tfont-feature-settings: "liga" off, "calt" off;\n}\n\n.monaco-editor.enable-ligatures {\n\t-webkit-font-feature-settings: "liga" on, "calt" on;\n\tfont-feature-settings: "liga" on, "calt" on;\n}\n\n/* -------------------- Misc -------------------- */\n\n.monaco-editor .overflow-guard {\n\tposition: relative;\n\toverflow: hidden;\n}\n\n.monaco-editor .view-overlays {\n\tposition: absolute;\n\ttop: 0;\n}'},"5RGO":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-ruler {\n\tposition: absolute;\n\ttop: 0;\n}"},"5kgg":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-diff-editor .diff-review-line-number {\n\ttext-align: right;\n\tdisplay: inline-block;\n}\n\n.monaco-diff-editor .diff-review {\n\tposition: absolute;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\t-moz-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-diff-editor .diff-review-summary {\n\tpadding-left: 10px;\n}\n\n.monaco-diff-editor .diff-review-shadow {\n\tposition: absolute;\n}\n\n.monaco-diff-editor .diff-review-row {\n\twhite-space: pre;\n}\n\n.monaco-diff-editor .diff-review-table {\n\tdisplay: table;\n\tmin-width: 100%;\n}\n\n.monaco-diff-editor .diff-review-row {\n\tdisplay: table-row;\n\twidth: 100%;\n}\n\n.monaco-diff-editor .diff-review-cell {\n\tdisplay: table-cell;\n}\n\n.monaco-diff-editor .diff-review-spacer {\n\tdisplay: inline-block;\n\twidth: 10px;\n}\n\n.monaco-diff-editor .diff-review-actions {\n\tdisplay: inline-block;\n\tposition: absolute;\n\tright: 10px;\n\ttop: 2px;\n}\n\n.monaco-diff-editor .diff-review-actions .action-label {\n\twidth: 16px;\n\theight: 16px;\n\tmargin: 2px 0;\n}\n\n.monaco-diff-editor .action-label.icon.close-diff-review {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-diff-editor.hc-black .action-label.icon.close-diff-review,\n.monaco-diff-editor.vs-dark .action-label.icon.close-diff-review {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\n}'},"67ys":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-tree {\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: -moz-none;\n\t-ms-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n\tposition: relative;\n}\n.monaco-tree > .monaco-scrollable-element {\n\theight: 100%;\n}\n.monaco-tree > .monaco-scrollable-element > .monaco-tree-wrapper {\n\theight: 100%;\n\twidth: 100%;\n\tposition: relative;\n}\n.monaco-tree .monaco-tree-rows {\n\tposition: absolute;\n\twidth: 100%;\n\theight: 100%;\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row {\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\t-webkit-box-sizing:\t\t\tborder-box;\n\t box-sizing:\t\t\tborder-box;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 100%;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content {\n\tposition: relative;\n\theight: 100%;\n}\n.monaco-tree-drag-image {\n\tdisplay: inline-block;\n\tpadding: 1px 7px;\n\tborder-radius: 10px;\n\tfont-size: 12px;\n\tposition: absolute;\n}\n/* for OS X ballistic scrolling */\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.scrolling {\n\tdisplay: none;\n}\n/* Expansion */\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\n\tcontent: \' \';\n\tposition: absolute;\n\tdisplay: block;\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==") 50% 50% no-repeat;\n\twidth: 16px;\n\theight: 100%;\n\ttop: 0;\n\tleft: -16px;\n}\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\n}\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnPgoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCTwvZz4KPC9zdmc+Cg==");\n}\n/* Highlighted */\n.monaco-tree.highlighted .monaco-tree-rows > .monaco-tree-row:not(.highlighted) {\n\topacity: 0.3;\n}\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==");\n}\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\n}\n.vs-dark .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOmdyZXk7Ij4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+Cgk8L2c+Cjwvc3ZnPgo=");\n}\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before\t{\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n.hc-black .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4KPHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZlcnNpb249JzEuMScgd2lkdGg9JzEwcHgnIGhlaWdodD0nMTBweCc+Cgk8c3R5bGU+CiAgICBjaXJjbGUgewogICAgICBhbmltYXRpb246IGJhbGwgMC42cyBsaW5lYXIgaW5maW5pdGU7CiAgICB9CgogICAgY2lyY2xlOm50aC1jaGlsZCgyKSB7IGFuaW1hdGlvbi1kZWxheTogMC4wNzVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDMpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjE1czsgfQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDUpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjNzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDYpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjM3NXM7IH0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9CiAgICBjaXJjbGU6bnRoLWNoaWxkKDgpIHsgYW5pbWF0aW9uLWRlbGF5OiAwLjUyNXM7IH0KCiAgICBAa2V5ZnJhbWVzIGJhbGwgewogICAgICBmcm9tIHsgb3BhY2l0eTogMTsgfQogICAgICB0byB7IG9wYWNpdHk6IDAuMzsgfQogICAgfQoJPC9zdHlsZT4KCTxnIHN0eWxlPSJmaWxsOndoaXRlOyI+CgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+CgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPgoJPC9nPgo8L3N2Zz4K");\n}\n.monaco-tree-action.collapse-all {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiMwMDUzOUMiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\n}\n.hc-black .monaco-tree-action.collapse-all,\n.vs-dark .monaco-tree-action.collapse-all {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiM3NUJFRkYiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\n}\n'},"7Do+":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .margin-view-overlays .line-numbers {\n\tposition: absolute;\n\ttext-align: right;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tcursor: default;\n\theight: 100%;\n}\n\n.monaco-editor .relative-current-line-number {\n\ttext-align: left;\n\tdisplay: inline-block;\n\twidth: 100%;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers {\n\tcursor: -webkit-image-set(\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjE7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcuMSwxMy44IDQuNSwxOS4xIDcuNywyMC4xIDEwLjMsMTQuOSAxNC41LDE4Ii8+PC9zdmc+") 1x,\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzMCA0MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNDI7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQuMywyNy42IDksMzguMSAxNS40LDQwLjIgMjAuNiwyOS43IDI5LDM2Ii8+PC9zdmc+Cg==") 2x\n\t) 30 0, default;\n}\n\n.monaco-editor.mac .margin-view-overlays .line-numbers {\n\tcursor: -webkit-image-set(\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDEyIDE4Ij48c3R5bGU+LnN0MHtmaWxsOiNmZmZ9PC9zdHlsZT48dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBkPSJNNC4zIDE2LjVsMS42LTQuNkgxLjFMMTEuNSAxLjJ2MTQuNEw4LjcgMTNsLTEuNiA0LjV6Ii8+PHBhdGggY2xhc3M9InN0MCIgZD0iTTExIDE0LjVsLTIuNS0yLjNMNyAxNi43IDUgMTZsMS42LTQuNWgtNGw4LjUtOU0wIDEyLjVoNS4ybC0xLjUgNC4xTDcuNSAxOCA5IDE0LjJsMi45IDIuM1YwTDAgMTIuNXoiLz48L3N2Zz4=") 1x,\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDI0IDM2LjEiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5mbGlwcGVkLWN1cnNvci1tYWMtMng8L3RpdGxlPjxwb2x5Z29uIHBvaW50cz0iOC42IDMzLjEgMTEuOCAyMy45IDIuMiAyMy45IDIzIDIuNSAyMyAzMS4zIDE3LjQgMjYuMSAxNC4yIDM1LjEgOC42IDMzLjEiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTIyLDI5LjFsLTUtNC42LTMuMDYyLDguOTM4LTQuMDYyLTEuNUwxMywyM0g1TDIyLDVNMCwyNUgxMC40bC0zLDguM0wxNSwzNi4xbDMuMTI1LTcuNjYyTDI0LDMzVjBaIi8+PC9zdmc+") 2x\n\t) 24 3, default;\n}\n\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\n\tmargin-top: 1px;\n}\n'},"84z/":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcdr = core decorations rendering (div)\n*/\n\n.monaco-editor .lines-content .cdr {\n\tposition: absolute;\n}"},"8D5t":function(e,t,n){"use strict";t.a=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(i.a)(o.a,null,e)};var i=n("Qnch"),o=n("lAP5")},"8EM9":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .cursors-layer {\n\tposition: absolute;\n\ttop: 0;\n}\n.monaco-editor .cursors-layer > .cursor {\n\tposition: absolute;\n\tcursor: text;\n\toverflow: hidden;\n}\n/* -- block-outline-style -- */\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tbackground: transparent !important;\n\tborder-style: solid;\n\tborder-width: 1px;\n}\n/* -- underline-style -- */\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\n\tborder-bottom-width: 2px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n/* -- underline-thin-style -- */\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\n\tborder-bottom-width: 1px;\n\tborder-bottom-style: solid;\n\tbackground: transparent !important;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n@-webkit-keyframes monaco-cursor-smooth {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t60%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@keyframes monaco-cursor-smooth {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t60%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@-webkit-keyframes monaco-cursor-phase {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t90%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@keyframes monaco-cursor-phase {\n\t0%,\n\t20% {\n\t\topacity: 1;\n\t}\n\t90%,\n\t100% {\n\t\topacity: 0;\n\t}\n}\n@-webkit-keyframes monaco-cursor-expand {\n\t0%,\n\t20% {\n\t\t-webkit-transform: scaleY(1);\n\t\t transform: scaleY(1);\n\t}\n\t80%,\n\t100% {\n\t\t-webkit-transform: scaleY(0);\n\t\t transform: scaleY(0);\n\t}\n}\n@keyframes monaco-cursor-expand {\n\t0%,\n\t20% {\n\t\t-webkit-transform: scaleY(1);\n\t\t transform: scaleY(1);\n\t}\n\t80%,\n\t100% {\n\t\t-webkit-transform: scaleY(0);\n\t\t transform: scaleY(0);\n\t}\n}\n.cursor-smooth {\n\t-webkit-animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\n}\n.cursor-phase {\n\t-webkit-animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\n}\n.cursor-expand > .cursor {\n\t-webkit-animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n\t animation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\n}"},"8dAB":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .accessibilityHelpWidget {\n\tpadding: 10px;\n\tvertical-align: middle;\n\toverflow: scroll;\n}"},"9Dq5":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-menu .monaco-action-bar.vertical {\n\tmargin-left: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .actions-container {\n\tdisplay: block;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item {\n\tpadding: 0;\n\t-webkit-transform: none;\n\ttransform: none;\n\tdisplay: -ms-flexbox;\n\tdisplay: -webkit-box;\n\tdisplay: flex;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\n\t-webkit-transform: none;\n\ttransform: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground-color: #E4E4E4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground-color: #EEE;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label {\n\t-ms-flex: 1 1 auto;\n\t-webkit-box-flex: 1;\n\t flex: 1 1 auto;\n\ttext-decoration: none;\n\tpadding: 0.8em 1em;\n\tline-height: 1.1em;\n\tbackground: none;\n}\n\n.monaco-menu .monaco-action-bar.vertical .keybinding {\n\tdisplay: inline-block;\n\t-ms-flex: 2 1 auto;\n\t-webkit-box-flex: 2;\n\t flex: 2 1 auto;\n\tpadding: 0.8em 1em;\n\tline-height: 1.1em;\n\tfont-size: 12px;\n\ttext-align: right;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding {\n\topacity: 0.4;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\n\tdisplay: inline-block;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tmargin: 0;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\n\tpadding: 0.5em 0 0 0;\n\tmargin-bottom: 0.5em;\n\twidth: 100%;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\n\tpadding: 0.7em 1em 0.1em 1em;\n\tfont-weight: bold;\n\topacity: 1;\n}\n\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\n\tcolor: inherit;\n}\n\n/* Context Menu */\n\n.context-view.monaco-menu-container {\n\tfont-family: "Segoe WPC", "Segoe UI", ".SFNSDisplay-Light", "SFUIText-Light", "HelveticaNeue-Light", sans-serif, "Droid Sans Fallback";\n\toutline: 0;\n\t-webkit-box-shadow: 0 2px 8px #A8A8A8;\n\t box-shadow: 0 2px 8px #A8A8A8;\n\tborder: none;\n\tcolor: #646465;\n\tbackground-color: white;\n\t-webkit-animation: fadeIn 0.083s linear;\n\tanimation: fadeIn 0.083s linear;\n}\n\n.context-view.monaco-menu-container :focus {\n\toutline: 0;\n}\n\n/* Dark theme */\n\n.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground-color: #4B4C4D;\n}\n\n.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground-color: #3A3A3A;\n}\n\n.vs-dark .context-view.monaco-menu-container {\n\t-webkit-box-shadow: 0 2px 8px #000;\n\t box-shadow: 0 2px 8px #000;\n\tcolor: #BBB;\n\tbackground-color: #2D2F31;\n}\n\n/* High Contrast Theming */\n\n.hc-black .context-view.monaco-menu-container {\n\tborder: 2px solid #6FC3DF;\n\tcolor: white;\n\tbackground-color: #0C141F;\n\t-webkit-box-shadow: none;\n\t box-shadow: none;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused {\n\tbackground: none;\n\tborder: 1px dotted #f38518;\n}\n\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item:hover:not(.disabled) {\n\tbackground: none;\n\tborder: 1px dashed #f38518;\n}'},"9vcT":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .inputarea {\n\tmin-width: 0;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\toutline: none !important;\n\tresize: none;\n\tborder: none;\n\toverflow: hidden;\n\tcolor: transparent;\n\tbackground-color: transparent;\n}\n\n/*.monaco-editor .inputarea {\n\tposition: fixed !important;\n\twidth: 800px !important;\n\theight: 500px !important;\n\ttop: initial !important;\n\tleft: initial !important;\n\tbottom: 0 !important;\n\tright: 0 !important;\n\tcolor: black !important;\n\tbackground: white !important;\n\tline-height: 15px !important;\n\tfont-size: 14px !important;\n}*/\n\n.monaco-editor .inputarea.ime-input {\n\tz-index: 10;\n}\n"},AMGY:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return r});var i="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,r=i||"undefined"!=typeof e&&e||o}).call(t,n("DuR2"))},BX3T:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},Bv73:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* -- zone widget */\n\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget {\n\tborder-top-width: 1px;\n\tborder-bottom-width: 1px;\n}\n\n.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget.results-loaded {\n\t-webkit-transition: height 100ms ease-in;\n\ttransition: height 100ms ease-in;\n}\n\n.monaco-editor .reference-zone-widget .inline {\n\tdisplay: inline-block;\n\tvertical-align: top;\n}\n\n.monaco-editor .reference-zone-widget .messages {\n\theight: 100%;\n\twidth: 100%;\n\ttext-align: center;\n\tpadding: 3em 0;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree {\n\tline-height: 23px;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference {\n\ttext-overflow: ellipsis;\n\toverflow: hidden;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file {\n\tdisplay: -webkit-inline-box;\n\tdisplay: -ms-inline-flexbox;\n\tdisplay: inline-flex;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {\n\tmargin-right: 12px;\n\tmargin-left: auto;\n}\n\n/* High Contrast Theming */\n\n.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {\n\tfont-weight: bold;\n}\n"},DIA9:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .goto-definition-link {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}"},DuR2:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"EG+O":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .overlayWidgets {\n\tposition: absolute;\n\ttop: 0;\n\tleft:0;\n}"},Eawl:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .view-overlays .current-line {\n\tdisplay: block;\n\tposition: absolute;\n\tleft: 0;\n\ttop: 0;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}"},F5mM:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.colorpicker-widget {\n\theight: 190px;\n\t-webkit-user-select: none;\n\t -moz-user-select: none;\n\t -ms-user-select: none;\n\t user-select: none;\n}\n\n.monaco-editor .colorpicker-hover:focus {\n\toutline: none;\n}\n\n/* Header */\n\n.colorpicker-header {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\theight: 24px;\n\tposition: relative;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\t-ms-interpolation-mode: nearest-neighbor;\n\t image-rendering: -webkit-optimize-contrast;\n\t image-rendering: -moz-crisp-edges;\n\t image-rendering: -o-pixelated;\n\t image-rendering: pixelated;\n}\n\n.colorpicker-header .picked-color {\n\twidth: 216px;\n\ttext-align: center;\n\tline-height: 24px;\n\tcursor: pointer;\n\tcolor: white;\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\ttext-align: center;\n}\n\n.colorpicker-header .picked-color.light {\n\tcolor: black;\n}\n\n.colorpicker-header .original-color {\n\twidth: 74px;\n\tz-index: inherit;\n\tcursor: pointer;\n}\n\n/* Body */\n\n.colorpicker-body {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tpadding: 8px;\n\tposition: relative;\n}\n\n.colorpicker-body .saturation-wrap {\n\toverflow: hidden;\n\theight: 150px;\n\tposition: relative;\n\tmin-width: 220px;\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n}\n\n.colorpicker-body .saturation-box {\n\theight: 150px;\n\tposition: absolute;\n}\n\n.colorpicker-body .saturation-selection {\n\twidth: 9px;\n\theight: 9px;\n\tmargin: -5px 0 0 -5px;\n\tborder: 1px solid rgb(255, 255, 255);\n\tborder-radius: 100%;\n\t-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n\t box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);\n\tposition: absolute;\n}\n\n.colorpicker-body .strip {\n\twidth: 25px;\n\theight: 150px;\n}\n\n.colorpicker-body .hue-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: -webkit-grab;\n\tbackground: -webkit-gradient(linear, left top, left bottom, from(#ff0000), color-stop(17%, #ffff00), color-stop(33%, #00ff00), color-stop(50%, #00ffff), color-stop(67%, #0000ff), color-stop(83%, #ff00ff), to(#ff0000));\n\tbackground: linear-gradient(to bottom, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);\n}\n\n.colorpicker-body .opacity-strip {\n\tposition: relative;\n\tmargin-left: 8px;\n\tcursor: -webkit-grab;\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=");\n\tbackground-size: 9px 9px;\n\t-ms-interpolation-mode: nearest-neighbor;\n\t image-rendering: -webkit-optimize-contrast;\n\t image-rendering: -moz-crisp-edges;\n\t image-rendering: -o-pixelated;\n\t image-rendering: pixelated;\n}\n\n.colorpicker-body .strip.grabbing {\n\tcursor: -webkit-grabbing;\n}\n\n.colorpicker-body .slider {\n\tposition: absolute;\n\ttop: 0;\n\tleft: -2px;\n\twidth: calc(100% + 4px);\n\theight: 4px;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\tborder: 1px solid rgba(255, 255, 255, 0.71);\n\t-webkit-box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n\t box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.85);\n}\n\n.colorpicker-body .strip .overlay {\n\theight: 150px;\n\tpointer-events: none;\n}'},GK6M:function(e,t,n){"use strict";t.a=function(e){return i=e,r};var i,o=n("fKB6");function r(){try{return i.apply(this,arguments)}catch(e){return o.a.e=e,o.a}}},Gu5N:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- DiffEditor ---------- */\n.monaco-diff-editor .diffOverview {\n\tz-index: 9;\n}\n/* colors not externalized: using transparancy on background */\n.monaco-diff-editor.vs\t\t\t.diffOverview { background: rgba(0, 0, 0, 0.03); }\n.monaco-diff-editor.vs-dark\t\t.diffOverview { background: rgba(255, 255, 255, 0.01); }\n.monaco-diff-editor .diffViewport {\n\t-webkit-box-shadow: inset 0px 0px 1px 0px #B9B9B9;\n\t box-shadow: inset 0px 0px 1px 0px #B9B9B9;\n\tbackground: rgba(0, 0, 0, 0.10);\n}\n.monaco-diff-editor.vs-dark .diffViewport,\n.monaco-diff-editor.hc-black .diffViewport {\n\tbackground: rgba(255, 255, 255, 0.10);\n}\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs\t\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark\t.scrollbar { background: rgba(0,0,0,0); }\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black\t.scrollbar { background: none; }\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\n\tz-index: 10;\n}\n.modified-in-monaco-diff-editor\t\t\t\t.slider.active { background: rgba(171, 171, 171, .4); }\n.modified-in-monaco-diff-editor.hc-black\t.slider.active { background: none; }\n/* ---------- Diff ---------- */\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign,\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n\tbackground-size: 60%;\n\topacity: 0.7;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 50% 50%;\n}\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign {\n\topacity: 1;\n}\n.monaco-editor .insert-sign,\n.monaco-diff-editor .insert-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4=");\n}\n.monaco-editor .delete-sign,\n.monaco-diff-editor .delete-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjNDI0MjQyIi8+PC9zdmc+");\n}\n.monaco-editor.vs-dark .insert-sign,\n.monaco-diff-editor.vs-dark .insert-sign,\n.monaco-editor.hc-black .insert-sign,\n.monaco-diff-editor.hc-black .insert-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjQzVDNUM1Ii8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiNDNUM1QzUiLz48L3N2Zz4=");\n}\n.monaco-editor.vs-dark .delete-sign,\n.monaco-diff-editor.vs-dark .delete-sign,\n.monaco-editor.hc-black .delete-sign,\n.monaco-diff-editor.hc-black .delete-sign {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjQzVDNUM1Ii8+PC9zdmc+");\n}\n.monaco-editor .inline-deleted-margin-view-zone {\n\ttext-align: right;\n}\n.monaco-editor .inline-added-margin-view-zone {\n\ttext-align: right;\n}\n.monaco-editor .diagonal-fill {\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII=");\n}\n.monaco-editor.vs-dark .diagonal-fill {\n\topacity: 0.2;\n}\n.monaco-editor.hc-black .diagonal-fill {\n\tbackground: none;\n}\n/* ---------- Inline Diff ---------- */\n.monaco-editor .view-zones .view-lines .view-line span {\n\tdisplay: inline-block;\n}\n'},Hv4S:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .zone-widget {\n\tposition: absolute;\n\tz-index: 10;\n}\n.monaco-editor .zone-widget .zone-widget-container {\n\tborder-top-style: solid;\n\tborder-bottom-style: solid;\n\tborder-top-width: 0;\n\tborder-bottom-width: 0;\n\tposition: relative;\n}\n"},IBAp:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.vs .monaco-custom-checkbox.monaco-case-sensitive {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive,\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive:hover,\n.vs-dark .monaco-custom-checkbox.monaco-case-sensitive {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.vs .monaco-custom-checkbox.monaco-whole-word {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-whole-word,\n.hc-black .monaco-custom-checkbox.monaco-whole-word:hover,\n.vs-dark .monaco-custom-checkbox.monaco-whole-word {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.vs .monaco-custom-checkbox.monaco-regex {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0Y2RjZGNiIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjNDI0MjQyIj48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n\n.hc-black .monaco-custom-checkbox.monaco-regex,\n.hc-black .monaco-custom-checkbox.monaco-regex:hover,\n.vs-dark .monaco-custom-checkbox.monaco-regex {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iIzJkMmQzMCIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\n}\n'},IOV5:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .bracket-match {\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n}\n"},JcY2:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .lightbulb-glyph {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n\t-webkit-box-pack: center;\n\t -ms-flex-pack: center;\n\t justify-content: center;\n\theight: 16px;\n\twidth: 20px;\n\tpadding-left: 2px;\n}\n\n.monaco-editor .lightbulb-glyph:hover {\n\tcursor: pointer;\n\t/* transform: scale(1.3, 1.3); */\n}\n\n.monaco-editor.vs .lightbulb-glyph {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iI0Y2RjZGNiIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjODQ4NDg0Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjZmMwIiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjRjBFRkYxIiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") center center no-repeat;\n}\n\n.monaco-editor.vs-dark .lightbulb-glyph,\n.monaco-editor.hc-black .lightbulb-glyph {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+PHBhdGggZmlsbD0iIzFFMUUxRSIgZD0iTTEzLjUgNC4yQzEzLjEgMi4xIDEwLjggMCA5LjMgMEg2LjdjLS40IDAtLjYuMi0uNi4yQzQgLjggMi41IDIuNyAyLjUgNC45YzAgLjUtLjEgMi4zIDEuNyAzLjguNS41IDEuMiAyIDEuMyAyLjR2My4zTDcuMSAxNmgybDEuNS0xLjZWMTFjLjEtLjQuOC0xLjkgMS4zLTIuMyAxLjEtLjkgMS41LTEuOSAxLjYtMi43VjQuMnoiLz48Zz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNNi41IDEyaDN2MWgtM3pNNy41IDE1aDEuMWwuOS0xaC0zeiIvPjwvZz48cGF0aCBmaWxsPSIjRERCMjA0IiBkPSJNMTIuNiA1YzAtMi4zLTEuOC00LjEtNC4xLTQuMS0uMSAwLTEuNC4xLTEuNC4xLTIuMS4zLTMuNyAyLTMuNyA0IDAgLjEtLjIgMS42IDEuNCAzIC43LjcgMS41IDIuNCAxLjYgMi45bC4xLjFoM2wuMS0uMmMuMS0uNS45LTIuMiAxLjYtMi45IDEuNi0xLjMgMS40LTIuOCAxLjQtMi45em0tMyAxbC0uNSAzaC0uNlY2YzEuMSAwIC45LTEgLjktMUg2LjV2LjFjMCAuMi4xLjkgMSAuOXYzSDdsLS4yLS43TDYuNSA2Yy0uNyAwLS45LS40LTEtLjd2LS40YzAtLjguOS0uOS45LS45aDMuMXMxIC4xIDEgMWMwIDAgLjEgMS0uOSAxeiIvPjwvZz48cGF0aCBmaWxsPSIjMjUyNTI2IiBkPSJNMTAuNSA1YzAtLjktMS0xLTEtMUg2LjRzLS45LjEtLjkuOXYuNGMwIC4zLjMuNy45LjdsLjQgMi4zLjIuN2guNVY2Yy0xIDAtMS0uNy0xLS45VjVoM3MuMSAxLS45IDF2M2guNmwuNS0zYy45IDAgLjgtMSAuOC0xeiIvPjwvc3ZnPg==") center center no-repeat;\n}\n'},Jnfr:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="Jnfr"},Jwyl:function(e,t,n){"use strict";var i=n("TToO"),o=n("g5jc"),r=n("YaPU"),s=(n("OVmG"),n("VwZZ")),a=n("0P3J"),u=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(i.c)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=s.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return Object(a.a)()(this)},t}(r.a).prototype,l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}},c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(i.c)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);t.a=function(e,t){return function(n){var i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new d(i,t));var o=Object.create(n,l);return o.source=n,o.subjectFactory=i,o}};var d=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(t.subscribe(i)),o},e}()},KL86:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-aria-container {\n\tposition: absolute; /* try to hide from window but not from screen readers */\n\tleft:-999em;\n}"},KU51:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* ---------- Icon label ---------- */\n\n.monaco-icon-label {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex; /* required for icons support :before rule */\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label::before {\n\n\t/* svg icons rendered as background image */\n\tbackground-size: 16px;\n\tbackground-position: left center;\n\tbackground-repeat: no-repeat;\n\tpadding-right: 6px;\n\twidth: 16px;\n\theight: 22px;\n\tdisplay: inline-block;\n\n\t/* fonts icons */\n\t-webkit-font-smoothing: antialiased;\n\tvertical-align: top;\n\n\t-ms-flex-negative: 0;\n\n\t flex-shrink: 0; /* fix for https://github.com/Microsoft/vscode/issues/13787 */\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container {\n\toverflow: hidden; /* this causes the label/description to shrink first if decorations are enabled */\n\ttext-overflow: ellipsis;\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container > .label-name {\n\tcolor: inherit;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label > .monaco-icon-label-description-container > .label-description {\n\topacity: 0.7;\n\tmargin-left: 0.5em;\n\tfont-size: 0.9em;\n\twhite-space: pre; /* enable to show labels that include multiple whitespaces */\n}\n\n.monaco-icon-label.italic > .monaco-icon-label-description-container > .label-name,\n.monaco-icon-label.italic > .monaco-icon-label-description-container > .label-description {\n\tfont-style: italic;\n}\n\n.monaco-icon-label::after {\n\topacity: 0.75;\n\tfont-size: 90%;\n\tfont-weight: 600;\n\tpadding: 0 12px 0 5px;\n\tmargin-left: auto;\n\ttext-align: center;\n}\n\n/* make sure selection color wins when a label is being selected */\n\n.monaco-tree.focused .selected .monaco-icon-label, /* tree */\n.monaco-tree.focused .selected .monaco-icon-label::after,\n.monaco-list:focus .selected .monaco-icon-label, /* list */\n.monaco-list:focus .selected .monaco-icon-label::after\n{\n\tcolor: inherit !important;\n}\n"},LC7R:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-action-bar {\n\ttext-align: right;\n\toverflow: hidden;\n\twhite-space: nowrap;\n}\n\n.monaco-action-bar .actions-container {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tmargin: 0 auto;\n\tpadding: 0;\n\twidth: 100%;\n\t-webkit-box-pack: end;\n\t -ms-flex-pack: end;\n\t justify-content: flex-end;\n}\n\n.monaco-action-bar.vertical .actions-container {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar.reverse .actions-container {\n\t-webkit-box-orient: horizontal;\n\t-webkit-box-direction: reverse;\n\t -ms-flex-direction: row-reverse;\n\t flex-direction: row-reverse;\n}\n\n.monaco-action-bar .action-item {\n\tcursor: pointer;\n\tdisplay: inline-block;\n\t-webkit-transition: -webkit-transform 50ms ease;\n\ttransition: -webkit-transform 50ms ease;\n\ttransition: transform 50ms ease;\n\ttransition: transform 50ms ease, -webkit-transform 50ms ease;\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\n}\n\n.monaco-action-bar .action-item.disabled {\n\tcursor: default;\n}\n\n.monaco-action-bar.animated .action-item.active { /* 1.272019649 = \u221a\u03c6 */\n\t-webkit-transform: scale(1.272019649, 1.272019649);\n\ttransform: scale(1.272019649, 1.272019649);\n}\n\n.monaco-action-bar .action-item .icon {\n\tdisplay: inline-block;\n}\n\n.monaco-action-bar .action-label {\n\tfont-size: 12px;\n\tmargin-right: 0.3em;\n}\n\n.monaco-action-bar .action-label.octicon {\n\tfont-size: 15px;\n\tline-height: 35px;\n\ttext-align: center;\n}\n\n.monaco-action-bar .action-item.disabled .action-label,\n.monaco-action-bar .action-item.disabled .action-label:hover {\n\topacity: 0.4;\n}\n\n/* Vertical actions */\n\n.monaco-action-bar.vertical {\n\ttext-align: left;\n}\n\n.monaco-action-bar.vertical .action-item {\n\tdisplay: block;\n}\n\n.monaco-action-bar.vertical .action-label.separator {\n\tdisplay: block;\n\tborder-bottom: 1px solid #bbb;\n\tpadding-top: 1px;\n\tmargin-left: .8em;\n\tmargin-right: .8em;\n}\n\n.monaco-action-bar.animated.vertical .action-item.active {\n\t-webkit-transform: translate(5px, 0);\n\ttransform: translate(5px, 0);\n}\n\n.secondary-actions .monaco-action-bar .action-label {\n\tmargin-left: 6px;\n}\n\n/* Action Items */\n\n.monaco-action-bar .action-item.select-container {\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\n\t-webkit-box-flex: 1;\n\t -ms-flex: 1;\n\t flex: 1;\n\tmax-width: 170px;\n\tmin-width: 60px;\n\tmargin-right: 10px;\n}"},LCUL:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-sash {\n\tposition: absolute;\n\tz-index: 90;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n\n.monaco-sash.vertical {\n\tcursor: ew-resize;\n\theight: 100%;\n\ttop: 0;\n}\n\n.monaco-sash.horizontal {\n\tcursor: ns-resize;\n\twidth: 100%;\n\tleft: 0;\n}\n\n.monaco-sash.disabled {\n\tcursor: default !important;\n}\n\n/** Custom Mac Cursor */\n\n.monaco-sash.mac.vertical {\n\tcursor: col-resize;\n}\n\n.monaco-sash.mac.horizontal {\n\tcursor: row-resize;\n}"},MfYP:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcslr = core selections layer rendering (div)\n*/\n\n.monaco-editor .lines-content .cslr {\n\tposition: absolute;\n}\n\n.monaco-editor\t\t\t.top-left-radius\t\t{ border-top-left-radius: 3px; }\n\n.monaco-editor\t\t\t.bottom-left-radius\t\t{ border-bottom-left-radius: 3px; }\n\n.monaco-editor\t\t\t.top-right-radius\t\t{ border-top-right-radius: 3px; }\n\n.monaco-editor\t\t\t.bottom-right-radius\t{ border-bottom-right-radius: 3px; }\n\n.monaco-editor.hc-black .top-left-radius\t\t{ border-top-left-radius: 0; }\n\n.monaco-editor.hc-black .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\n\n.monaco-editor.hc-black .top-right-radius\t\t{ border-top-right-radius: 0; }\n\n.monaco-editor.hc-black .bottom-right-radius\t{ border-bottom-right-radius: 0; }\n"},MlKm:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n.monaco-editor .lines-decorations {\n\tposition: absolute;\n\ttop: 0;\n\tbackground: white;\n}\n/*\n\tKeeping name short for faster parsing.\n\tcldr = core lines decorations rendering (div)\n*/\n.monaco-editor .margin-view-overlays .cldr {\n\tposition: absolute;\n\theight: 100%;\n}"},N4j0:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length}},NBYJ:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/* ---------- Find input ---------- */\n.monaco-findInput {\n\tposition: relative;\n}\n.monaco-findInput .monaco-inputbox {\n\tfont-size: 13px;\n\twidth: 100%;\n\theight: 25px;\n}\n.monaco-findInput > .controls {\n\tposition: absolute;\n\ttop: 3px;\n\tright: 2px;\n}\n.vs .monaco-findInput.disabled {\n\tbackground-color: #E1E1E1;\n}\n/* Theming */\n.vs-dark .monaco-findInput.disabled {\n\tbackground-color: #333;\n}\n/* Highlighting */\n.monaco-findInput.highlight-0 .controls {\n\t-webkit-animation: monaco-findInput-highlight-0 100ms linear 0s;\n\t animation: monaco-findInput-highlight-0 100ms linear 0s;\n}\n.monaco-findInput.highlight-1 .controls {\n\t-webkit-animation: monaco-findInput-highlight-1 100ms linear 0s;\n\t animation: monaco-findInput-highlight-1 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-0 .controls,\n.vs-dark .monaco-findInput.highlight-0 .controls {\n\t-webkit-animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n\t animation: monaco-findInput-highlight-dark-0 100ms linear 0s;\n}\n.hc-black .monaco-findInput.highlight-1 .controls,\n.vs-dark .monaco-findInput.highlight-1 .controls {\n\t-webkit-animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n\t animation: monaco-findInput-highlight-dark-1 100ms linear 0s;\n}\n@-webkit-keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-0 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t100% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-1 {\n\t0% { background: rgba(253, 255, 0, 0.8); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-0 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t100% { background: transparent; }\n}\n@-webkit-keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}\n@keyframes monaco-findInput-highlight-dark-1 {\n\t0% { background: rgba(255, 255, 255, 0.44); }\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\n\t99% { background: transparent; }\n}"},NfGl:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* marker zone */\n\n.monaco-editor .marker-widget {\n\tpadding-left: 2px;\n\ttext-overflow: ellipsis;\n\twhite-space: nowrap;\n}\n\n.monaco-editor .marker-widget > .stale {\n\topacity: 0.6;\n\tfont-style: italic;\n}\n\n.monaco-editor .marker-widget div.block {\n\tdisplay: inline-block;\n\tvertical-align: top;\n}\n\n.monaco-editor .marker-widget .title {\n\tdisplay: inline-block;\n\tpadding-right: 5px;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer {\n\tposition: relative;\n\twhite-space: pre;\n\t-webkit-user-select: text;\n\t-moz-user-select: text;\n\t -ms-user-select: text;\n\t user-select: text;\n}\n\n.monaco-editor .marker-widget .descriptioncontainer .filename {\n\tcursor: pointer;\n\topacity: 0.6;\n}\n"},Nuvq:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-select-box {\n\twidth: 100%;\n}\n"},OVmG:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("TToO"),o=n("/iUD"),r=n("VwZZ"),s=n("t7NR"),a=n("tLDX"),u=function(e){function t(t,n,i){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){if(c(t)){var o=t[a.a]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new l(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new l(this,t,n,i)}}return Object(i.c)(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,n,i){var o=new t(e,n,i);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.a),l=function(e){function t(t,n,i,r){var a;e.call(this),this._parentSubscriber=t;var u=this;Object(o.a)(n)?a=n:n&&(a=n.next,i=n.error,r=n.complete,n!==s.a&&(u=Object.create(n),Object(o.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=i,this._complete=r}return Object(i.c)(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u);function c(e){return e instanceof u||"syncErrorThrowable"in e&&e[a.a]}},OkZj:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* START cover the case that slider is visible on mouseover */\n\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\n\topacity: 0;\n\t-webkit-transition: opacity 100ms linear;\n\ttransition: opacity 100ms linear;\n}\n\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\n\topacity: 1;\n}\n\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\n\topacity: 1;\n}\n\n/* END cover the case that slider is visible on mouseover */\n\n.monaco-editor .minimap-shadow-hidden {\n\tposition: absolute;\n\twidth: 0;\n}\n\n.monaco-editor .minimap-shadow-visible {\n\tposition: absolute;\n\tleft: -6px;\n\twidth: 6px;\n}\n"},PIsA:function(e,t,n){"use strict";var i=n("AMGY"),o=n("N4j0"),r=n("cQXm"),s=n("dgOU"),a=n("YaPU"),u=n("etqZ"),l=n("TToO"),c=function(e){function t(t,n,i){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=i,this.index=0}return Object(l.c)(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("OVmG").a),d=n("+CnV");t.a=function(e,t,n,l){var h=new c(e,n,l);if(h.closed)return null;if(t instanceof a.a)return t._isScalar?(h.next(t.value),h.complete(),null):(h.syncErrorThrowable=!0,t.subscribe(h));if(Object(o.a)(t)){for(var p=0,g=t.length;p0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.a)},"R/+A":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-inputbox {\n\tposition: relative;\n\tdisplay: block;\n\tpadding: 0;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tline-height: auto !important;\n\n\t/* Customizable */\n\tfont-size: inherit;\n}\n\n.monaco-inputbox.idle {\n\tborder: 1px solid transparent;\n}\n\n.monaco-inputbox > .wrapper > .input,\n.monaco-inputbox > .wrapper > .mirror {\n\n\t/* Customizable */\n\tpadding: 4px;\n}\n\n.monaco-inputbox > .wrapper {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-inputbox > .wrapper > .input {\n\tdisplay: inline-block;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\twidth: 100%;\n\theight: 100%;\n\tline-height: inherit;\n\tborder: none;\n\tfont-family: inherit;\n\tfont-size: inherit;\n\tresize: none;\n\tcolor: inherit;\n}\n\n.monaco-inputbox > .wrapper > input {\n\ttext-overflow: ellipsis;\n}\n\n.monaco-inputbox > .wrapper > textarea.input {\n\tdisplay: block;\n\toverflow: hidden;\n}\n\n.monaco-inputbox > .wrapper > .mirror {\n\tposition: absolute;\n\tdisplay: inline-block;\n\twidth: 100%;\n\ttop: 0;\n\tleft: 0;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\twhite-space: pre-wrap;\n\tvisibility: hidden;\n\tmin-height: 26px;\n\tword-wrap: break-word;\n}\n\n/* Context view */\n\n.monaco-inputbox-container {\n\ttext-align: right;\n}\n\n.monaco-inputbox-container .monaco-inputbox-message {\n\tdisplay: inline-block;\n\toverflow: hidden;\n\ttext-align: left;\n\twidth: 100%;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n\tpadding: 0.4em;\n\tfont-size: 12px;\n\tline-height: 17px;\n\tmin-height: 34px;\n\tmargin-top: -1px;\n\tword-wrap: break-word;\n}\n\n/* Action bar support */\n\n.monaco-inputbox .monaco-action-bar {\n\tposition: absolute;\n\tright: 2px;\n\ttop: 4px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item {\n\tmargin-left: 2px;\n}\n\n.monaco-inputbox .monaco-action-bar .action-item .icon {\n\tbackground-repeat: no-repeat;\n\twidth: 16px;\n\theight: 16px;\n}"},Rf9G:function(e,t,n){"use strict";t.a=function(){return Object(i.a)()(this)};var i=n("3a3m")},SoM9:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .iPadShowKeyboard {\n\twidth: 58px;\n\tmin-width: 0;\n\theight: 36px;\n\tmin-height: 0;\n\tmargin: 0;\n\tpadding: 0;\n\tposition: absolute;\n\tresize: none;\n\toverflow: hidden;\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iI0YwRUZGMSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjNDI0MjQyIiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iIzQyNDI0MiIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiM0MjQyNDIiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") center center no-repeat;\n\tborder: 4px solid #F6F6F6;\n\tborder-radius: 4px;\n}\n\n.monaco-editor.vs-dark .iPadShowKeyboard {\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1OCIgaGVpZ2h0PSIzNiI+PHBhdGggZmlsbD0iIzJCMjgyRSIgZD0iTTU0IDMydi0yOGgtNTB2MjhoNTB6bS0xNi0yaC0xOHYtNmgxOHY2em02IDBoLTR2LTZoNHY2em04IDBoLTZ2LTZoNnY2em0tNC0yNGg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bS02LTEyaDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptMCA2aDR2NGgtNHYtNHptLTYtMTJoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDEyaC00di02aDR2NnptLTYtMjRoNHY0aC00di00em0wIDZoNHY0aC00di00em0wIDZoNHY0aC00di00em0tNi0xMmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg0djRoLTR2LTR6bTAgNmg2djZoLTZ2LTZ6Ii8+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTU1LjMzNiAwaC01My4yODVjLTEuMzQ0IDAtMi4wNTEuNjU2LTIuMDUxIDJ2MzJjMCAxLjM0NC43MDcgMS45NjUgMi4wNTEgMS45NjVsNTMuOTQ5LjAzNWMxLjM0NCAwIDItLjY1NiAyLTJ2LTMyYzAtMS4zNDQtMS4zMi0yLTIuNjY0LTJ6bS0xLjMzNiAzMmgtNTB2LTI4aDUwdjI4eiIvPjxyZWN0IHg9IjYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMjQiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzAiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDIiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNDgiIHk9IjEyIiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjEyIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMTgiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjMwIiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iMzYiIHk9IjYiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iNiIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjQiIGhlaWdodD0iNCIvPjxyZWN0IHg9IjQ4IiB5PSI2IiBmaWxsPSIjQzVDNUM1IiB3aWR0aD0iNCIgaGVpZ2h0PSI0Ii8+PHJlY3QgeD0iNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxMiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIxOCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIyNCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzMCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSIzNiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0MiIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI0OCIgeT0iMTgiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjQiLz48cmVjdCB4PSI2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjQ2IiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjYiIGhlaWdodD0iNiIvPjxyZWN0IHg9IjIwIiB5PSIyNCIgZmlsbD0iI0M1QzVDNSIgd2lkdGg9IjE4IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSIxNCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48cmVjdCB4PSI0MCIgeT0iMjQiIGZpbGw9IiNDNUM1QzUiIHdpZHRoPSI0IiBoZWlnaHQ9IjYiLz48L3N2Zz4=") center center no-repeat;\n\tborder: 4px solid #252526;\n}'},TILf:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(i.c)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(n("YaPU").a)},TToO:function(e,t,n){"use strict";t.c=function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o}),t.b=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},t.d=function(e,t){return function(n,i){t(n,i,e)}};var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n1?new t(e,i):1===o?new r.a(e[0],i):new s.a(i)},t.dispatch=function(e){var t=e.array,n=e.index,i=e.subscriber;n>=e.count?i.complete():(i.next(t[n]),i.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,i=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:i,subscriber:e});for(var r=0;r1)for(var n=1;n ");else if("object"==typeof t){var o=[];for(var r in t)if(t.hasOwnProperty(r)){var s=t[r];o.push(r+":"+("string"==typeof s?JSON.stringify(s):S(s)))}i="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+i+"]: "+e.replace(H,"\n ")}function U(e,t){return new Error(Z(e,t))}var G="ngDebugContext",Q="ngOriginalError",X="ngErrorLogger";function K(e){return e[G]}function J(e){return e[Q]}function q(e){for(var t=[],n=1;n0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+S(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Ke(e,t){return Array.isArray(t)?t.reduce(Ke,e):Object(i.a)({},e,t)}var Je=function(){function e(e,t,n,i,a,u){var l=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ze(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var c=new o.a(function(e){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){e.next(l._stable),e.complete()})}),d=new o.a(function(e){var t;l._zone.runOutsideAngular(function(){t=l._zone.onStable.subscribe(function(){De.assertNotInAngularZone(),N(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,e.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){De.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.a)(c,s.a.call(d))}return e.prototype.bootstrap=function(e,t){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ge?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof we?null:this._injector.get(Ce),r=n.create(j.NULL,[],t||n.selector,o);r.onDestroy(function(){i._unloadComponent(r)});var s=r.injector.get(Pe,null);return s&&r.injector.get(Re).registerApplication(r.location.nativeElement,s),this._loadComponent(r),Ze()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Se(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;qe(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(le,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),qe(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ie("ApplicationRef#tick()"),e}();function qe(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $e=function(){},et=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),tt=function(){},nt=function(e){this.nativeElement=e},it=function(){function e(){this.dirty=!0,this._results=[],this.changes=new xe,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[L()]=function(){return this._results[L()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var i=Array.isArray(n)?e(n):n;return t.concat(i)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),ot=function(){},rt=function(){},st=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof at?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),at=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(i.c)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,i=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=i}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return ut(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return lt(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(st);function ut(e,t,n){e.childNodes.forEach(function(e){e instanceof at&&(t(e)&&n.push(e),ut(e,t,n))})}function lt(e,t,n){e instanceof at&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof at&<(e,t,n)})}var ct=new Map;function dt(e){return ct.get(e)||null}function ht(e){ct.set(e.nativeNode,e)}function pt(e,t){var n=mt(e),i=mt(t);return n&&i?function(e,t,n){for(var i=e[L()](),o=t[L()]();;){var r=i.next(),s=o.next();if(r.done&&s.done)return!0;if(r.done||s.done)return!1;if(!n(r.value,s.value))return!1}}(e,t,pt):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||I(e,t)}var gt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),ft=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function mt(e){return!!yt(e)&&(Array.isArray(e)||!(e instanceof Map)&&L()in e)}function yt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var vt=function(){function e(){}return e.prototype.supports=function(e){return mt(e)},e.prototype.create=function(e){return new _t(e)},e}(),bt=function(e,t){return t},_t=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||bt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,i=0,o=null;t||n;){var r=!n||t&&t.currentIndex=n.length)&&(t=n.length-1),t<0)return null;var i=n[t];return i.viewContainerParent=null,Xn(n,t),Qt.dirtyParentQueries(i),Gn(i),i}function Un(e,t,n){var i=t?gn(t,t.def.lastRenderRootNode):e.renderElement;wn(n,2,n.renderer.parentNode(i),n.renderer.nextSibling(i),void 0)}function Gn(e){wn(e,3,null,null,void 0)}function Qn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Kn=new Object;function Jn(e,t,n,i,o,r){return new qn(e,t,n,i,o,r)}var qn=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=o,a._outputs=r,a.ngContentSelectors=s,a.viewDefFactory=i,a}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,i){if(!i)throw new Error("ngModule should be provided");var o=Mn(this.viewDefFactory),r=o.nodes[0].element.componentProvider.nodeIndex,s=Qt.createRootView(e,t||[],n,o,i,Kn),a=Zt(s,r).instance;return n&&s.renderer.setAttribute(Yt(s,0).renderElement,"ng-version",g.full),new $n(s,new ii(s),a)},t}(ge),$n=function(e){function t(t,n,i){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=i,o}return Object(i.c)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new nt(Yt(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ai(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function ei(e,t,n){return new ti(e,t,n)}var ti=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new nt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ai(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=pn(e),e=e.parent;return e?new ai(e,t):new ai(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Zn(this._data,e);Qt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new ii(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i},e.prototype.createComponent=function(e,t,n,i,o){var r=n||this.parentInjector;o||e instanceof we||(o=r.get(Ce));var s=e.create(r,i,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,i,o,r,s=e;return o=s._view,r=(n=this._data).viewContainer._embeddedViews,null!==(i=t)&&void 0!==i||(i=r.length),o.viewContainerParent=this._view,Qn(r,i,o),function(e,t){var n=hn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var i=n.parent;i;)i.childFlags|=4,i=i.parent}}(0,t.parentNodeDef)}}(n,o),Qt.dirtyParentQueries(o),Un(n,i>0?r[i-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,i,o,r,s,a=this._embeddedViews.indexOf(e._view);return o=t,s=(r=(n=this._data).viewContainer._embeddedViews)[i=a],Xn(r,i),null==o&&(o=r.length),Qn(r,o,s),Qt.dirtyParentQueries(s),Gn(s),Un(n,o>0?r[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Zn(this._data,e);t&&Qt.destroyView(t)},e.prototype.detach=function(e){var t=Zn(this._data,e);return t?new ii(t):null},e}();function ni(e){return new ii(e)}var ii=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return wn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){ln(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Qt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Qt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Qt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Gn(this._view),Qt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function oi(e,t){return new ri(e,t)}var ri=function(e){function t(t,n){var i=e.call(this)||this;return i._parentView=t,i._def=n,i}return Object(i.c)(t,e),t.prototype.createEmbeddedView=function(e){return new ii(Qt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new nt(Yt(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(ot);function si(e,t){return new ai(e,t)}var ai=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=j.THROW_IF_NOT_FOUND),Qt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:en(e)},t)},e}();function ui(e,t){var n=e.def.nodes[t];if(1&n.flags){var i=Yt(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return Vt(e,n.nodeIndex).renderText;if(20240&n.flags)return Zt(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function li(e){return new ci(e.renderer)}var ci=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=xn(t),i=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,i),i},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,i=t.provider;switch(201347067&t.flags){case 512:return Ii(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,o){var r=o.length;switch(r){case 0:return i();case 1:return i(xi(e,t,n,o[0]));case 2:return i(xi(e,t,n,o[0]),xi(e,t,n,o[1]));case 3:return i(xi(e,t,n,o[0]),xi(e,t,n,o[1]),xi(e,t,n,o[2]));default:for(var s=Array(r),a=0;a0)l=f,Vi(f)||(c=f);else for(;l&&g===l.nodeIndex+l.childCount;){var v=l.parent;v&&(v.childFlags|=l.childFlags,v.childMatchedQueries|=l.childMatchedQueries),c=(l=v)&&Vi(l)?l.renderParent:l}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||qt,updateRenderer:i||qt,handleEvent:function(e,n,i,o){return t[n].element.handleEvent(e,i,o)},bindingCount:o,outputCount:r,lastRenderRootNode:p}}function Vi(e){return 0!=(1&e.flags)&&null===e.element.name}function Yi(e,t,n){var i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Zi(e,t,n,i){var o=Qi(e.root,e.renderer,e,t,n);return Xi(o,e.component,i),Ki(o),o}function Ui(e,t,n){var i=Qi(e,e.renderer,null,null,t);return Xi(i,n,n),Ki(i),i}function Gi(e,t,n,i){var o,r=t.element.componentRendererType;return o=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Qi(e.root,o,e,t.element.componentProvider,n)}function Qi(e,t,n,i,o){var r=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function Xi(e,t,n){e.component=t,e.context=n}function Ki(e){var t;fn(e)&&(t=Yt(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,i=e.nodes,o=0;o0&&Rn(e,t,0,n)&&(p=!0),h>1&&Rn(e,t,1,i)&&(p=!0),h>2&&Rn(e,t,2,o)&&(p=!0),h>3&&Rn(e,t,3,r)&&(p=!0),h>4&&Rn(e,t,4,s)&&(p=!0),h>5&&Rn(e,t,5,a)&&(p=!0),h>6&&Rn(e,t,6,u)&&(p=!0),h>7&&Rn(e,t,7,l)&&(p=!0),h>8&&Rn(e,t,8,c)&&(p=!0),h>9&&Rn(e,t,9,d)&&(p=!0),p}(e,t,n,i,o,r,s,a,u,l,c,d);case 2:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=!1,p=t.bindings,g=p.length;if(g>0&&an(e,t,0,n)&&(h=!0),g>1&&an(e,t,1,i)&&(h=!0),g>2&&an(e,t,2,o)&&(h=!0),g>3&&an(e,t,3,r)&&(h=!0),g>4&&an(e,t,4,s)&&(h=!0),g>5&&an(e,t,5,a)&&(h=!0),g>6&&an(e,t,6,u)&&(h=!0),g>7&&an(e,t,7,l)&&(h=!0),g>8&&an(e,t,8,c)&&(h=!0),g>9&&an(e,t,9,d)&&(h=!0),h){var f=t.text.prefix;g>0&&(f+=Hi(n,p[0])),g>1&&(f+=Hi(i,p[1])),g>2&&(f+=Hi(o,p[2])),g>3&&(f+=Hi(r,p[3])),g>4&&(f+=Hi(s,p[4])),g>5&&(f+=Hi(a,p[5])),g>6&&(f+=Hi(u,p[6])),g>7&&(f+=Hi(l,p[7])),g>8&&(f+=Hi(c,p[8])),g>9&&(f+=Hi(d,p[9]));var m=Vt(e,t.nodeIndex).renderText;e.renderer.setValue(m,f)}return h}(e,t,n,i,o,r,s,a,u,l,c,d);case 16384:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=Zt(e,t.nodeIndex),p=h.instance,g=!1,f=void 0,m=t.bindings.length;return m>0&&sn(e,t,0,n)&&(g=!0,f=Ti(e,h,t,0,n,f)),m>1&&sn(e,t,1,i)&&(g=!0,f=Ti(e,h,t,1,i,f)),m>2&&sn(e,t,2,o)&&(g=!0,f=Ti(e,h,t,2,o,f)),m>3&&sn(e,t,3,r)&&(g=!0,f=Ti(e,h,t,3,r,f)),m>4&&sn(e,t,4,s)&&(g=!0,f=Ti(e,h,t,4,s,f)),m>5&&sn(e,t,5,a)&&(g=!0,f=Ti(e,h,t,5,a,f)),m>6&&sn(e,t,6,u)&&(g=!0,f=Ti(e,h,t,6,u,f)),m>7&&sn(e,t,7,l)&&(g=!0,f=Ti(e,h,t,7,l,f)),m>8&&sn(e,t,8,c)&&(g=!0,f=Ti(e,h,t,8,c,f)),m>9&&sn(e,t,9,d)&&(g=!0,f=Ti(e,h,t,9,d,f)),f&&p.ngOnChanges(f),65536&t.flags&&Bt(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),g}(e,t,n,i,o,r,s,a,u,l,c,d);case 32:case 64:case 128:return function(e,t,n,i,o,r,s,a,u,l,c,d){var h=t.bindings,p=!1,g=h.length;if(g>0&&an(e,t,0,n)&&(p=!0),g>1&&an(e,t,1,i)&&(p=!0),g>2&&an(e,t,2,o)&&(p=!0),g>3&&an(e,t,3,r)&&(p=!0),g>4&&an(e,t,4,s)&&(p=!0),g>5&&an(e,t,5,a)&&(p=!0),g>6&&an(e,t,6,u)&&(p=!0),g>7&&an(e,t,7,l)&&(p=!0),g>8&&an(e,t,8,c)&&(p=!0),g>9&&an(e,t,9,d)&&(p=!0),p){var f=Ut(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(h.length),g>0&&(m[0]=n),g>1&&(m[1]=i),g>2&&(m[2]=o),g>3&&(m[3]=r),g>4&&(m[4]=s),g>5&&(m[5]=a),g>6&&(m[6]=u),g>7&&(m[7]=l),g>8&&(m[8]=c),g>9&&(m[9]=d);break;case 64:m={},g>0&&(m[h[0].name]=n),g>1&&(m[h[1].name]=i),g>2&&(m[h[2].name]=o),g>3&&(m[h[3].name]=r),g>4&&(m[h[4].name]=s),g>5&&(m[h[5].name]=a),g>6&&(m[h[6].name]=u),g>7&&(m[h[7].name]=l),g>8&&(m[h[8].name]=c),g>9&&(m[h[9].name]=d);break;case 128:var y=n;switch(g){case 1:m=y.transform(n);break;case 2:m=y.transform(i);break;case 3:m=y.transform(i,o);break;case 4:m=y.transform(i,o,r);break;case 5:m=y.transform(i,o,r,s);break;case 6:m=y.transform(i,o,r,s,a);break;case 7:m=y.transform(i,o,r,s,a,u);break;case 8:m=y.transform(i,o,r,s,a,u,l);break;case 9:m=y.transform(i,o,r,s,a,u,l,c);break;case 10:m=y.transform(i,o,r,s,a,u,l,c,d)}}f.value=m}return p}(e,t,n,i,o,r,s,a,u,l,c,d);default:throw"unreachable"}}(e,t,i,o,r,s,a,u,l,c,d,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var i=!1,o=0;o0&&un(e,t,0,n),h>1&&un(e,t,1,i),h>2&&un(e,t,2,o),h>3&&un(e,t,3,r),h>4&&un(e,t,4,s),h>5&&un(e,t,5,a),h>6&&un(e,t,6,u),h>7&&un(e,t,7,l),h>8&&un(e,t,8,c),h>9&&un(e,t,9,d)}(e,t,i,o,r,s,a,u,l,c,d,h):function(e,t,n){for(var i=0;i=0,r=c.indexOf("Macintosh")>=0,s=c.indexOf("Linux")>=0,u=!0,navigator}var d=o,h=r,p=s,g=a,f=u,m="object"==typeof self?self:"object"==typeof i?i:{},y=null,v=r?2:o?1:3}).call(t,n("W2nU"),n("DuR2"))},beP8:function(e,t,n){"use strict";(function(e,i){var o;n.d(t,"a",function(){return r}),n.d(t,"b",function(){return s}),function(){var t=Object.create(null);t["WinJS/Core/_WinJS"]={};var n=function(e,n,i){var o={},r=!1,s=n.map(function(e){return"exports"===e?(r=!0,o):t[e]}),a=i.apply({},s);t[e]=r?o:a};n("WinJS/Core/_Global",[],function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof e?e:{}}),n("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof i&&"function"==typeof i.nextTick?i.nextTick.bind(i):e.setTimeout.bind(e)),t(n)}}}),n("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){return e.msWriteProfilerMark||function(){}}),n("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,i){function o(e,t,n){var i,o,r,s=Object.keys(t),a=Array.isArray(e);for(o=0,r=s.length;o"),i}n.Namespace||(n.Namespace=Object.create(Object.prototype));Object.defineProperties(n.Namespace,{defineWithParent:{value:s,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return s(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,o=1;return{setName:function(e){t=e},get:function(){switch(o){case 3:return n;case 1:o=2;try{i("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{i("WinJS.Namespace._lazy:"+t+",StopTM"),o=1}return e=null,o=3,n;case 2:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(o){case 2:throw"Illegal: reentrancy on initialization";default:o=3,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,n,i){var s=[e],a=null;return n&&(a=r(t,n),s.push(a)),o(s,i,n||""),a},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,i){return n.markSupportedForProcessing(e=e||function(){}),t&&o(e.prototype,t),i&&o(e,i),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,i,r,s){return e?((i=i||function(){}).prototype=Object.create(e.prototype),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):t(i,r,s)},mix:function(e){var t,n;for(e=e||function(){},t=1,n=arguments.length;t .scrollbar,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\n\t\t-ms-high-contrast-adjust: none;\n\t\tbackground: background !important;\n\t\tborder: 1px solid windowtext;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\n\t\tbackground: windowtext !important;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\n\t\tbackground: highlight !important;\n\t}\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\n\t\tbackground: highlight !important;\n\t}\n\n\t/* overview ruler */\n\t.monaco-editor.vs .decorationsOverviewRuler,\n\t.monaco-editor.vs-dark .decorationsOverviewRuler {\n\t\topacity: 0;\n\t}\n\n\t/* minimap */\n\t.monaco-editor.vs .minimap,\n\t.monaco-editor.vs-dark .minimap {\n\t\tdisplay: none;\n\t}\n\n\t/* squiggles */\n\t.monaco-editor.vs .squiggly-d-error,\n\t.monaco-editor.vs-dark .squiggly-d-error {\n\t\tbackground: transparent !important;\n\t\tborder-bottom: 4px double #E47777;\n\t}\n\t.monaco-editor.vs .squiggly-c-warning,\n\t.monaco-editor.vs-dark .squiggly-c-warning {\n\t\tborder-bottom: 4px double #71B771;\n\t}\n\t.monaco-editor.vs .squiggly-b-info,\n\t.monaco-editor.vs-dark .squiggly-b-info {\n\t\tborder-bottom: 4px double #71B771;\n\t}\n\t.monaco-editor.vs .squiggly-a-hint,\n\t.monaco-editor.vs-dark .squiggly-a-hint {\n\t\tborder-bottom: 4px double #6c6c6c;\n\t}\n\n\t/* contextmenu */\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-item .action-label:focus,\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item .action-label:focus {\n\t\t-ms-high-contrast-adjust: none;\n\t\tcolor: highlighttext !important;\n\t\tbackground-color: highlight !important;\n\t}\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-item .action-label:hover,\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-item .action-label:hover {\n\t\t-ms-high-contrast-adjust: none;\n\t\tbackground: transparent !important;\n\t\tborder: 1px solid highlight;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\n\t/* diff editor */\n\t.monaco-diff-editor.vs .diffOverviewRuler,\n\t.monaco-diff-editor.vs-dark .diffOverviewRuler {\n\t\tdisplay: none;\n\t}\n\t.monaco-editor.vs .line-insert,\n\t.monaco-editor.vs-dark .line-insert,\n\t.monaco-editor.vs .line-delete,\n\t.monaco-editor.vs-dark .line-delete {\n\t\tbackground: transparent !important;\n\t\tborder: 1px solid highlight !important;\n\t\t-webkit-box-sizing: border-box;\n\t\t box-sizing: border-box;\n\t}\n\t.monaco-editor.vs .char-insert,\n\t.monaco-editor.vs-dark .char-insert,\n\t.monaco-editor.vs .char-delete,\n\t.monaco-editor.vs-dark .char-delete {\n\t\tbackground: transparent !important;\n\t}\n}\n\n\n/*.monaco-editor.vs [tabindex="0"]:focus {\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}\n\n.monaco-editor.vs-dark [tabindex="0"]:focus {\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\n\toutline-offset: -1px;\n\topacity: 1 !important;\n}*/\n'},"jF/U":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-list {\n\tposition: relative;\n\theight: 100%;\n\twidth: 100%;\n\twhite-space: nowrap;\n\t-webkit-user-select: none;\n\t-moz-user-select: -moz-none;\n\t-ms-user-select: none;\n\t-o-user-select: none;\n\tuser-select: none;\n}\n\n.monaco-list > .monaco-scrollable-element {\n\theight: 100%;\n}\n\n.monaco-list-rows {\n\tposition: relative;\n\twidth: 100%;\n\theight: 100%;\n}\n\n.monaco-list-row {\n\tposition: absolute;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\t-webkit-box-sizing:\t\t\tborder-box;\n\t box-sizing:\t\t\tborder-box;\n\tcursor: pointer;\n\toverflow: hidden;\n\twidth: 100%;\n\t-ms-touch-action: none;\n\t touch-action: none;\n}\n\n/* for OS X ballistic scrolling */\n\n.monaco-list-row.scrolling {\n\tdisplay: none !important;\n}\n\n/* Focus */\n\n.monaco-list.element-focused, .monaco-list.selection-single, .monaco-list.selection-multiple {\n\toutline: 0 !important;\n}"},lAP5:function(e,t,n){"use strict";t.a=function(e){return e}},m849:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .monaco-editor-overlaymessage {\n\tpadding-bottom: 8px;\n}\n\n@-webkit-keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n\n.monaco-editor .monaco-editor-overlaymessage.fadeIn {\n\t-webkit-animation: fadeIn 150ms ease-out;\n\t animation: fadeIn 150ms ease-out;\n}\n\n@-webkit-keyframes fadeOut {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n}\n\n@keyframes fadeOut {\n\tfrom { opacity: 1; }\n\tto { opacity: 0; }\n}\n\n.monaco-editor .monaco-editor-overlaymessage.fadeOut {\n\t-webkit-animation: fadeOut 100ms ease-out;\n\t animation: fadeOut 100ms ease-out;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .message {\n\tpadding: 1px 4px;\n}\n\n.monaco-editor .monaco-editor-overlaymessage .anchor {\n\twidth: 0 !important;\n\theight: 0 !important;\n\tborder-color: transparent;\n\tborder-style: solid;\n\tz-index: 1000;\n\tborder-width: 8px;\n\tposition: absolute;\n}\n"},nLHh:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/*\n\tKeeping name short for faster parsing.\n\tcmdr = core margin decorations rendering (div)\n*/\n\n.monaco-editor .margin-view-overlays .cmdr {\n\tposition: absolute;\n\tleft: 0;\n\twidth: 100%;\n\theight: 100%;\n}"},"o37+":function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor-hover {\n\tcursor: default;\n\tposition: absolute;\n\toverflow: hidden;\n\tz-index: 50;\n\t-webkit-user-select: text;\n\t-ms-user-select: text;\n\t-moz-user-select: text;\n\t-o-user-select: text;\n\tuser-select: text;\n\t-webkit-box-sizing: initial;\n\t box-sizing: initial;\n\t-webkit-animation: fadein 100ms linear;\n\t animation: fadein 100ms linear;\n\tline-height: 1.5em;\n}\n\n.monaco-editor-hover.hidden {\n\tdisplay: none;\n}\n\n.monaco-editor-hover .monaco-editor-hover-content {\n\tmax-width: 500px;\n}\n\n.monaco-editor-hover .hover-row {\n\tpadding: 4px 5px;\n}\n\n.monaco-editor-hover p,\n.monaco-editor-hover ul {\n\tmargin: 8px 0;\n}\n\n.monaco-editor-hover p:first-child,\n.monaco-editor-hover ul:first-child {\n\tmargin-top: 0;\n}\n\n.monaco-editor-hover p:last-child,\n.monaco-editor-hover ul:last-child {\n\tmargin-bottom: 0;\n}\n\n.monaco-editor-hover ul {\n\tpadding-left: 20px;\n}\n\n.monaco-editor-hover li > p {\n\tmargin-bottom: 0;\n}\n\n.monaco-editor-hover li > ul {\n\tmargin-top: 0;\n}\n\n.monaco-editor-hover code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-editor-hover .monaco-tokenized-source {\n\twhite-space: pre-wrap;\n\tword-break: break-all;\n}\n"},om4P:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-builder-hidden {\n\tdisplay: none !important;\n\tvisibility: hidden !important;\n}\n\n.monaco-builder-visible {\n\tdisplay: inherit;\n\tvisibility: visible;\n}\n"},pJVg:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tfont-size: 13px;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iNDAiPjxwYXRoIGQ9Ik0yODguNDgzIDMzYy0uNzcyIDAtMS40OTctLjEyMy0yLjE1My0uMzY1LS42NzgtLjI1My0xLjI3LS42MTctMS43Ni0xLjA4NC0uNS0uNDc1LS44OTItMS4wNDktMS4xNjMtMS43MDQtLjI3LS42NDQtLjQwNy0xLjM3MS0uNDA3LTIuMTU4IDAtLjUxNy4wNjEtMS4wMTguMTc4LTEuNDkuMTE2LS40Ny4yOS0uOTI1LjUxNi0xLjM0OC4yMjUtLjQyMi41MDgtLjgxNS44NDQtMS4xNjcuMzM0LS4zNTIuNzE3LS42NTYgMS4xMzktLjkwNS40MTYtLjI0Ni44ODEtLjQ0IDEuMzgtLjU3Ni40OTMtLjEzNCAxLjAyNi0uMjAyIDEuNTg3LS4yMDIuNzA1IDAgMS4zODIuMTA5IDIuMDEzLjMyNC42NDIuMjE3IDEuMjE4LjUzOCAxLjcwOC45NTUuNTAxLjQyNS45MDMuOTQ4IDEuMTkzIDEuNTU2LjI5NC42MjMuNDQyIDEuMzE2LjQ0MiAyLjA2NCAwIC42MTktLjA5IDEuMTg1LS4yNjggMS42NzktLjE3OC40OTItLjQyLjkyLS43MjEgMS4yNzUtLjMzMS4zNzctLjY5OS42NTgtMS4xMDQuODQ3bC0uMDQ4LjAyMnYxLjUzbC0uNTg3LjI2NmMtLjEyOC4wNTktLjI4OC4xMTctLjQ3NC4xNzktLjE5My4wNjItLjQwNC4xMTQtLjY0NS4xNTktLjIyOS4wNC0uNDc3LjA3Ni0uNzUzLjEwMy0uMjcuMDI3LS41NzguMDQtLjkxNy4wNHoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjkxLjcxNiAyNC4wNDFjLS4zOTYtLjMzNi0uODU2LS41OTMtMS4zODQtLjc3MS0uNTI3LS4xOC0xLjA5LS4yNzEtMS42ODktLjI3MS0uNDczIDAtLjkxMi4wNTUtMS4zMjQuMTY3LS40MTQuMTEyLS43OTEuMjctMS4xMzUuNDczLS4zNDIuMjAyLS42NS40NDYtLjkyMi43MzMtLjI3My4yODYtLjUwMi42MDItLjY4Ni45NDktLjE4Ni4zNDctLjMzLjcyMi0uNDI4IDEuMTE5LS4xLjM5OS0uMTQ4LjgxNC0uMTQ4IDEuMjQ3IDAgLjY1Mi4xMDkgMS4yNDcuMzMyIDEuNzc2LjIxOS41MzEuNTMuOTg0LjkyOCAxLjM2MS4zOTYuMzc4Ljg3MS42NjcgMS40MTYuODcuNTQ4LjIwMiAxLjE1Mi4zMDQgMS44MDguMzA0LjMwMiAwIC41NzctLjAxMS44MjMtLjAzNS4yNDYtLjAyMy40NjgtLjA1Ni42NjQtLjA5MS4xOTUtLjAzNi4zNjYtLjA3OC41MTQtLjEyNWwuMzc1LS4xNHYtLjg1NGwtLjQ2My4xODRjLS4xNi4wNTYtLjMzNi4xMDQtLjUyMS4xNDMtLjE4OC4wMzctLjM4Ny4wNjktLjYwNC4wODktLjIxMy4wMjQtLjQ0OC4wMzQtLjcuMDM0LS41NjIgMC0xLjA2NC0uMDg4LTEuNTA5LS4yNjQtLjQ0Mi0uMTc2LS44MTYtLjQyMS0xLjEyNS0uNzMxLS4zMDktLjMxNC0uNTQ1LS42ODctLjcwOC0xLjEyNC0uMTYxLS40MzUtLjI0My0uOTEzLS4yNDMtMS40MzIgMC0uNTQ1LjA5LTEuMDUzLjI3My0xLjUyMi4xODItLjQ3MS40MzUtLjg3OS43NTgtMS4yMjUuMzI0LS4zNDUuNzA4LS42MTcgMS4xNTUtLjgxNS40NDYtLjE5Ni45MzQtLjI5NCAxLjQ1Ny0uMjk0LjQxOSAwIC43OTguMDQ0IDEuMTIyLjEzNi4zMjkuMDkxLjYyLjIxNS44NzEuMzY5LjI1NC4xNTguNDY1LjMzOS42NDMuNTQ3LjE3OS4yMDkuMzI0LjQzMi40MzguNjY3LjExMy4yMzcuMTkzLjQ4LjI0Ni43MzEuMDUxLjI1NC4wNzYuNS4wNzYuNzQxIDAgLjM0NC0uMDMzLjY1My0uMTAyLjkyNi0uMDY4LjI3NC0uMTU4LjUwMy0uMjY5LjY5NC0uMTEuMTg5LS4yMzkuMzM1LS4zODYuNDM0cy0uMjk1LjE0OC0uNDUzLjE0OGwtLjIxNS0uMDQ1Yy0uMDY2LS4wMjktLjExOS0uMDgtLjE2Ni0uMTU2LS4wNDYtLjA3NS0uMDgyLS4xNzctLjEwNy0uMzA2LS4wMjUtLjEyNi0uMDM5LS4yOTItLjAzOS0uNDkybC4wMTgtLjMyNS4wNDEtLjUzLjA1NS0uNjQ0LjA1OC0uNjQ3LjA0OC0uNTQ2LjAyNy0uMzQ0aC0uOTE5bC0uMDU0LjZoLS4wMjFjLS4wMjUtLjEwMy0uMDctLjE5NS0uMTM2LS4yODEtLjA2My0uMDgzLS4xNDEtLjE1NS0uMjMzLS4yMTYtLjA5MS0uMDYxLS4xOTMtLjEwNi0uMzA3LS4xNDEtLjExNS0uMDMzLS4yMzgtLjA0OC0uMzY5LS4wNDgtLjMzNyAwLS42NDYuMDctLjkyNC4yMTYtLjI4MS4xNDQtLjUxOC4zNDQtLjcyMS41OTktLjIwMS4yNTQtLjM1NS41NTYtLjQ2NS45MDUtLjExNS4zNS0uMTcuNzI2LS4xNyAxLjEzNCAwIC4zNDQuMDQ1LjY0NS4xMzUuOTAxLjA4OC4yNi4yMTEuNDczLjM1OS42NDYuMTUzLjE3MS4zMjkuMy41MzQuMzgyLjIuMDg2LjQxNS4xMjkuNjQxLjEyOS4xNzYgMCAuMzQyLS4wMjcuNDk5LS4wODEuMTU0LS4wNTIuMzAyLS4xMy40MzItLjIzMi4xMzQtLjEwNC4yNDgtLjIzLjM0OC0uMzguMTAyLS4xNDkuMTgyLS4zMjMuMjM2LS41MmguMDI3YzAgLjM3Ni4xMDEuNjc0LjMwNy44OTMuMjA3LjIyLjUwMi4zMy44ODkuMzMuMjkyIDAgLjU4LS4wNjQuODYzLS4xOTguMjgzLS4xMzIuNTM2LS4zMjguNzYyLS41ODYuMjIzLS4yNjIuNDA0LS41ODMuNTQzLS45NjYuMTM4LS4zODQuMjA4LS44My4yMDgtMS4zNCAwLS42MDUtLjExNy0xLjE1LS4zNDUtMS42MzQtLjIzMS0uNDgyLS41NDYtLjg5MS0uOTM5LTEuMjI1bS0yLjM2OCAzLjc3NGMtLjA1Ni4yNzctLjEzNi41MTctLjI0Ni43MTktLjEwOS4yMDMtLjI0Ni4zNjMtLjQwNy40ODEtLjE2My4xMTUtLjM1NC4xNzYtLjU3Mi4xNzYtLjEyIDAtLjIzNi0uMDI1LS4zNDQtLjA3OC0uMTA4LS4wNTItLjIwNi0uMTMtLjI4OS0uMjMyLS4wODEtLjEwMy0uMTQ4LS4yMzQtLjE5OC0uMzktLjA0Ni0uMTU2LS4wNy0uMzM3LS4wNy0uNTQ3IDAtLjIzNy4wMjctLjQ4MS4wOC0uNzI5LjA1Ni0uMjQ3LjEzNy0uNDczLjI1LS42NzcuMTA5LS4yLjI1LS4zNjMuNDE2LS40OTIuMTY1LS4xMjcuMzYxLS4xOTEuNTgyLS4xOTEuMTIzIDAgLjIzNC4wMjEuMzQuMDYzLjEwNy4wNDIuMTk4LjEwNy4yNzkuMTk2LjA4LjA4Ny4xNDUuMTk3LjE4OS4zMy4wNDMuMTM0LjA3LjI5NC4wNy40OCAwIC4zMTctLjAzMS42MTUtLjA4Ljg5MSIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik0yODguNDgzIDEzYy0uNzcyIDAtMS40OTctLjEyMy0yLjE1My0uMzY1LS42NzgtLjI1My0xLjI3LS42MTctMS43Ni0xLjA4NC0uNS0uNDc1LS44OTItMS4wNDktMS4xNjMtMS43MDQtLjI2OS0uNjQ0LS40MDctMS4zNzEtLjQwNy0yLjE1OSAwLS41MTcuMDYxLTEuMDE4LjE3OC0xLjQ5LjExNi0uNDcuMjktLjkyNS41MTYtMS4zNDguMjI1LS40MjIuNTA4LS44MTUuODQ0LTEuMTY3LjMzNC0uMzUyLjcxNy0uNjU2IDEuMTM5LS45MDUuNDE2LS4yNDYuODgxLS40NCAxLjM4LS41NzYuNDkyLS4xMzQgMS4wMjUtLjIwMiAxLjU4Ni0uMjAyLjcwNSAwIDEuMzgyLjEwOSAyLjAxMy4zMjQuNjQyLjIxNyAxLjIxOC41MzggMS43MDguOTU1LjUwMS40MjUuOTAzLjk0OCAxLjE5MyAxLjU1Ni4yOTUuNjI0LjQ0MyAxLjMxNy40NDMgMi4wNjUgMCAuNjE5LS4wOSAxLjE4NS0uMjY4IDEuNjc5LS4xNzguNDkyLS40Mi45Mi0uNzIxIDEuMjc1LS4zMzEuMzc3LS42OTkuNjU4LTEuMTA0Ljg0N2wtLjA0OC4wMjJ2MS41M2wtLjU4Ny4yNjZjLS4xMjguMDU5LS4yODguMTE3LS40NzQuMTc5LS4xOTMuMDYyLS40MDQuMTE0LS42NDUuMTU5LS4yMjkuMDQtLjQ3Ny4wNzYtLjc1My4xMDMtLjI3LjAyNy0uNTc4LjA0LS45MTcuMDR6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTI5MS43MTYgNC4wNDFjLS4zOTYtLjMzNi0uODU2LS41OTMtMS4zODQtLjc3MS0uNTI3LS4xNzktMS4wOS0uMjctMS42ODktLjI3LS40NzMgMC0uOTEyLjA1NS0xLjMyNC4xNjctLjQxNC4xMTItLjc5MS4yNy0xLjEzNS40NzMtLjM0Mi4yMDItLjY1LjQ0Ni0uOTIyLjczMy0uMjczLjI4Ni0uNTAyLjYwMi0uNjg2Ljk0OS0uMTg2LjM0Ny0uMzMuNzIyLS40MjggMS4xMTktLjA5OS40LS4xNDguODE1LS4xNDggMS4yNDcgMCAuNjUyLjEwOSAxLjI0Ny4zMzIgMS43NzYuMjE5LjUzMS41My45ODQuOTI4IDEuMzYxLjM5Ni4zNzguODcxLjY2NyAxLjQxNi44Ny41NDguMjAyIDEuMTUyLjMwNCAxLjgwOC4zMDQuMzAyIDAgLjU3Ny0uMDExLjgyMy0uMDM1LjI0Ni0uMDIzLjQ2OC0uMDU2LjY2NC0uMDkxLjE5NS0uMDM2LjM2Ni0uMDc4LjUxNC0uMTI1bC4zNzUtLjE0di0uODU0bC0uNDYzLjE4NGMtLjE2LjA1Ni0uMzM2LjEwNC0uNTIxLjE0My0uMTg4LjAzNy0uMzg3LjA2OS0uNjA0LjA4OS0uMjEzLjAyNC0uNDQ4LjAzNC0uNy4wMzQtLjU2MiAwLTEuMDY0LS4wODgtMS41MDktLjI2NC0uNDQyLS4xNzYtLjgxNi0uNDIxLTEuMTI1LS43MzEtLjMwOS0uMzE0LS41NDUtLjY4Ny0uNzA4LTEuMTI0LS4xNjEtLjQzNS0uMjQzLS45MTMtLjI0My0xLjQzMiAwLS41NDUuMDktMS4wNTMuMjczLTEuNTIyLjE4Mi0uNDcxLjQzNS0uODc5Ljc1OC0xLjIyNS4zMjQtLjM0NS43MDgtLjYxNyAxLjE1NS0uODE1LjQ0Ni0uMTk2LjkzNC0uMjk0IDEuNDU3LS4yOTQuNDE5IDAgLjc5OC4wNDQgMS4xMjIuMTM2LjMyOS4wOTEuNjIuMjE1Ljg3MS4zNjkuMjU0LjE1OC40NjUuMzM5LjY0My41NDcuMTc5LjIwOS4zMjQuNDMyLjQzOC42NjcuMTEzLjIzNy4xOTMuNDguMjQ2LjczMS4wNTEuMjU0LjA3Ni41LjA3Ni43NDEgMCAuMzQ0LS4wMzMuNjUzLS4xMDIuOTI2LS4wNjguMjc0LS4xNTguNTAzLS4yNjkuNjk0LS4xMS4xODktLjIzOS4zMzUtLjM4Ni40MzRzLS4yOTUuMTQ4LS40NTMuMTQ4bC0uMjE1LS4wNDVjLS4wNjYtLjAyOS0uMTE5LS4wOC0uMTY2LS4xNTYtLjA0Ni0uMDc1LS4wODItLjE3Ny0uMTA3LS4zMDYtLjAyNS0uMTI2LS4wMzktLjI5Mi0uMDM5LS40OTJsLjAxOC0uMzI1LjA0MS0uNTMuMDU1LS42NDQuMDU4LS42NDcuMDQ4LS41NDYuMDI3LS4zNDRoLS45MTlsLS4wNTQuNmgtLjAyMWMtLjAyNS0uMTAzLS4wNy0uMTk1LS4xMzYtLjI4MS0uMDYzLS4wODMtLjE0MS0uMTU1LS4yMzMtLjIxNi0uMDkxLS4wNjEtLjE5My0uMTA2LS4zMDctLjE0MS0uMTE1LS4wMzMtLjIzOC0uMDQ4LS4zNjktLjA0OC0uMzM3IDAtLjY0Ni4wNy0uOTI0LjIxNi0uMjgxLjE0NC0uNTE4LjM0NC0uNzIxLjU5OS0uMjAxLjI1NC0uMzU1LjU1Ni0uNDY1LjkwNS0uMTE1LjM1LS4xNy43MjYtLjE3IDEuMTM0IDAgLjM0NC4wNDUuNjQ1LjEzNS45MDEuMDg4LjI2LjIxMS40NzMuMzU5LjY0Ni4xNTMuMTcxLjMyOS4zLjUzNC4zODIuMi4wODYuNDE1LjEyOS42NDEuMTI5LjE3NiAwIC4zNDItLjAyNy40OTktLjA4MS4xNTQtLjA1Mi4zMDItLjEzLjQzMi0uMjMyLjEzNC0uMTA0LjI0OC0uMjMuMzQ4LS4zOC4xMDItLjE0OS4xODItLjMyMy4yMzYtLjUyaC4wMjdjMCAuMzc2LjEwMS42NzQuMzA3Ljg5My4yMDcuMjIuNTAyLjMzLjg4OS4zMy4yOTIgMCAuNTgtLjA2NC44NjMtLjE5OC4yODMtLjEzMi41MzYtLjMyOC43NjItLjU4Ni4yMjMtLjI2Mi40MDQtLjU4My41NDMtLjk2Ni4xMzgtLjM4NS4yMDgtLjgzMS4yMDgtMS4zNDEgMC0uNjA1LS4xMTctMS4xNS0uMzQ1LTEuNjM0LS4yMzEtLjQ4Mi0uNTQ2LS44OTEtLjkzOS0xLjIyNW0tMi4zNjggMy43NzRjLS4wNTYuMjc3LS4xMzYuNTE3LS4yNDYuNzE5LS4xMDkuMjAzLS4yNDYuMzYzLS40MDcuNDgxLS4xNjMuMTE1LS4zNTQuMTc2LS41NzIuMTc2LS4xMiAwLS4yMzYtLjAyNS0uMzQ0LS4wNzgtLjEwOC0uMDUyLS4yMDYtLjEzLS4yODktLjIzMi0uMDgxLS4xMDMtLjE0OC0uMjM0LS4xOTgtLjM5LS4wNDYtLjE1Ni0uMDctLjMzNy0uMDctLjU0NyAwLS4yMzcuMDI3LS40ODEuMDgtLjcyOS4wNTYtLjI0Ny4xMzctLjQ3My4yNS0uNjc3LjEwOS0uMi4yNS0uMzYzLjQxNi0uNDkyLjE2NS0uMTI3LjM2MS0uMTkxLjU4Mi0uMTkxLjEyMyAwIC4yMzQuMDIxLjM0LjA2My4xMDcuMDQyLjE5OC4xMDcuMjc5LjE5Ni4wOC4wODcuMTQ1LjE5Ny4xODkuMzMuMDQzLjEzNC4wNy4yOTQuMDcuNDggMCAuMzE3LS4wMzEuNjE1LS4wOC44OTEiIGZpbGw9IiM0MjQyNDIiLz48cGF0aCBkPSJNMjY0IDM3di0xNGg4LjYyNWwzLjM3NSAzLjU1NnYxMC40NDRoLTEyeiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0yNzIgMjRoLTd2MTJoMTB2LTlsLTMtM3ptMiAxMWgtOHYtMTBoNXYzaDN2N3oiIGZpbGw9IiNDNUM1QzUiLz48cG9seWdvbiBwb2ludHM9IjI2NiwyNSAyNzEsMjUgMjcxLDI4IDI3NCwyOCAyNzQsMzUgMjY2LDM1IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTI2NCAxN3YtMTRoOC42MjVsMy4zNzUgMy41NTZ2MTAuNDQ0aC0xMnoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjcyIDRoLTd2MTJoMTB2LTlsLTMtM3ptMiAxMWgtOHYtMTBoNXYzaDN2N3oiIGZpbGw9IiM0MjQyNDIiLz48cG9seWdvbiBwb2ludHM9IjI2Niw1IDI3MSw1IDI3MSw4IDI3NCw4IDI3NCwxNSAyNjYsMTUiIGZpbGw9IiNGMEVGRjEiLz48cG9seWdvbiBwb2ludHM9IjI0NywzNCAyNDcsMzAgMjQ1LDMwIDI0NSwyNiAyNTUsMjYgMjU1LDM0IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTI1NCAyOWgtOHYtMmg4djJ6bTAgMWgtNnYxaDZ2LTF6bTAgMmgtNnYxaDZ2LTF6IiBmaWxsPSIjQzVDNUM1Ii8+PHBvbHlnb24gcG9pbnRzPSIyNDcsMTQgMjQ3LDEwIDI0NSwxMCAyNDUsNiAyNTUsNiAyNTUsMTQiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjU0IDloLTh2LTJoOHYyem0wIDFoLTZ2MWg2di0xem0wIDJoLTZ2MWg2di0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik0yMzAuNSAyMmMtNC4xNDMgMC03LjUgMy4zNTctNy41IDcuNXMzLjM1NyA3LjUgNy41IDcuNSA3LjUtMy4zNTcgNy41LTcuNS0zLjM1Ny03LjUtNy41LTcuNXptMCAxMWMtMS45MzMgMC0zLjUtMS41NjYtMy41LTMuNXMxLjU2Ny0zLjUgMy41LTMuNSAzLjUgMS41NjYgMy41IDMuNS0xLjU2NyAzLjUtMy41IDMuNXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjI0LjAyNSAyOWMuMTA4LTEuNDE4LjY2OS0yLjcwOCAxLjU0Mi0zLjcyNmwxLjQzMSAxLjQzMWMtLjUxNi42NDYtLjg1MSAxLjQzLS45NDcgMi4yOTVoLTIuMDI2em0yLjk3MyAzLjI5NWMtLjUxNi0uNjQ2LS44NTEtMS40My0uOTQ3LTIuMjk1aC0yLjAyNWMuMTA4IDEuNDE4LjY2OSAyLjcwNyAxLjU0MiAzLjcyNmwxLjQzLTEuNDMxem00LjAwMi05LjI3djIuMDI1Yy44NjUuMDk3IDEuNjQ5LjQzMiAyLjI5NS45NDdsMS40MzEtMS40MzFjLTEuMDE4LS44NzItMi4zMDgtMS40MzItMy43MjYtMS41NDF6bS0zLjI5NSAyLjk3M2MuNjQ2LS41MTYgMS40My0uODUxIDIuMjk1LS45NDd2LTIuMDI1Yy0xLjQxOC4xMDgtMi43MDguNjY5LTMuNzI2IDEuNTQybDEuNDMxIDEuNDN6bTYuMjk3LjcwN2MuNTE2LjY0Ni44NTEgMS40My45NDcgMi4yOTVoMi4wMjVjLS4xMDgtMS40MTgtLjY2OS0yLjcwOC0xLjU0Mi0zLjcyNmwtMS40MyAxLjQzMXptLTQuMDAyIDcuMjQ0Yy0uODY1LS4wOTctMS42NDktLjQzMi0yLjI5NS0uOTQ3bC0xLjQzMSAxLjQzMWMxLjAxOC44NzMgMi4zMDcgMS40MzQgMy43MjYgMS41NDJ2LTIuMDI2em00Ljk0OS0zLjk0OWMtLjA5Ny44NjUtLjQzMiAxLjY0OC0uOTQ3IDIuMjk1bDEuNDMxIDEuNDMxYy44NzMtMS4wMTkgMS40MzQtMi4zMDggMS41NDItMy43MjZoLTIuMDI2em0tMS42NTQgMy4wMDJjLS42NDYuNTE2LTEuNDMuODUxLTIuMjk1Ljk0N3YyLjAyNWMxLjQxOS0uMTA4IDIuNzA4LS42NjkgMy43MjYtMS41NDJsLTEuNDMxLTEuNDN6IiBmaWxsPSIjQzVDNUM1Ii8+PHBhdGggZD0iTTIzMC41IDJjLTQuMTQzIDAtNy41IDMuMzU4LTcuNSA3LjUgMCA0LjE0MyAzLjM1NyA3LjUgNy41IDcuNXM3LjUtMy4zNTcgNy41LTcuNWMwLTQuMTQyLTMuMzU3LTcuNS03LjUtNy41em0wIDExYy0xLjkzMyAwLTMuNS0xLjU2Ni0zLjUtMy41IDAtMS45MzMgMS41NjctMy41IDMuNS0zLjVzMy41IDEuNTY3IDMuNSAzLjVjMCAxLjkzNC0xLjU2NyAzLjUtMy41IDMuNXoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMjI0LjAyNSA5Yy4xMDgtMS40MTguNjY5LTIuNzA4IDEuNTQyLTMuNzI2bDEuNDMxIDEuNDMxYy0uNTE2LjY0Ni0uODUxIDEuNDMtLjk0NyAyLjI5NGgtMi4wMjZ6bTIuOTczIDMuMjk1Yy0uNTE2LS42NDYtLjg1MS0xLjQzLS45NDctMi4yOTVoLTIuMDI1Yy4xMDggMS40MTguNjY5IDIuNzA3IDEuNTQyIDMuNzI2bDEuNDMtMS40MzF6bTQuMDAyLTkuMjd2Mi4wMjVjLjg2NS4wOTcgMS42NDkuNDMyIDIuMjk1Ljk0OGwxLjQzMS0xLjQzMWMtMS4wMTgtLjg3My0yLjMwOC0xLjQzMy0zLjcyNi0xLjU0MnptLTMuMjk1IDIuOTc0Yy42NDYtLjUxNiAxLjQzLS44NTEgMi4yOTUtLjk0OHYtMi4wMjZjLTEuNDE4LjEwOC0yLjcwOC42NjktMy43MjYgMS41NDJsMS40MzEgMS40MzJ6bTYuMjk3LjcwN2MuNTE2LjY0Ni44NTEgMS40My45NDcgMi4yOTRoMi4wMjVjLS4xMDgtMS40MTgtLjY2OS0yLjcwOC0xLjU0Mi0zLjcyNmwtMS40MyAxLjQzMnptLTQuMDAyIDcuMjQzYy0uODY1LS4wOTctMS42NDktLjQzMi0yLjI5NS0uOTQ3bC0xLjQzMSAxLjQzMWMxLjAxOC44NzMgMi4zMDcgMS40MzQgMy43MjYgMS41NDJ2LTIuMDI2em00Ljk0OS0zLjk0OWMtLjA5Ny44NjUtLjQzMiAxLjY0OC0uOTQ3IDIuMjk1bDEuNDMxIDEuNDMxYy44NzMtMS4wMTkgMS40MzQtMi4zMDggMS41NDItMy43MjZoLTIuMDI2em0tMS42NTQgMy4wMDJjLS42NDYuNTE2LTEuNDMuODUxLTIuMjk1Ljk0N3YyLjAyNWMxLjQxOS0uMTA4IDIuNzA4LS42NjkgMy43MjYtMS41NDJsLTEuNDMxLTEuNDN6IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgeD0iMjAyIiB5PSIyMyIgd2lkdGg9IjE2IiBoZWlnaHQ9IjE0IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTIwMyAyNHYxMmgxNHYtMTJoLTE0em0xMyAxMWgtMTJ2LTEwaDEydjEwem0tNi03di0xaC0xdjVoM3YtNGgtMnptMSAzaC0xdi0yaDF2MnptMy0ydjJoMXYxaC0ydi00aDJ2MWgtMXptLTYtMXY0aC0zdi0yaDF2MWgxdi0xaC0xdi0xaC0xdi0xaDN6IiBmaWxsPSIjQzVDNUM1Ii8+PHBhdGggZD0iTTIxMCAyOWgxdjJoLTF2LTJ6bS0zIDJ2LTFoLTF2MWgxem05LTZ2MTBoLTEydi0xMGgxMnptLTggM2gtM3YxaDF2MWgtMXYyaDN2LTR6bTQgMGgtMnYtMWgtMXY1aDN2LTR6bTMgMGgtMnY0aDJ2LTFoLTF2LTJoMXYtMXoiIGZpbGw9IiMyRDJEMkQiLz48cmVjdCB4PSIyMDIiIHk9IjMiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNCIgZmlsbD0iI0YzRjNGMyIvPjxwYXRoIGQ9Ik0yMDMgNHYxMmgxNHYtMTJoLTE0em0xMyAxMWgtMTJ2LTEwaDEydjEwem0tNi03di0xaC0xdjVoM3YtNGgtMnptMSAzaC0xdi0yaDF2MnptMy0ydjJoMXYxaC0ydi00aDJ2MWgtMXptLTYtMXY0aC0zdi0yaDF2MWgxdi0xaC0xdi0xaC0xdi0xaDN6IiBmaWxsPSIjNDI0MjQyIi8+PHBhdGggZD0iTTIxMCA5aDF2MmgtMXYtMnptLTMgMnYtMWgtMXYxaDF6bTktNnYxMGgtMTJ2LTEwaDEyem0tOCAzaC0zdjFoMXYxaC0xdjJoM3YtNHptNCAwaC0ydi0xaC0xdjVoM3YtNHptMyAwaC0ydjRoMnYtMWgtMXYtMmgxdi0xeiIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik0xOTYuNjUyIDMyLjVjLjgxMS0uNTM3IDEuMzQ4LTEuNDU3IDEuMzQ4LTIuNSAwLTEuNjU0LTEuMzQ2LTMtMy0zLS43NzEgMC0xLjQ2OC4zMDEtMiAuNzc5di01Ljc3OWgtMTF2MTJoMy43NjRsLTEuNDUyLjcyNyAxLjQ4MSAxLjQ4Yy4zMjIuMzIyLjgwMy41IDEuMzU0LjUuNDM2IDAgLjg5Ny0uMTExIDEuMzAxLS4zMTNsMy4xNDQtMS41NzJjLjEzNC4wNTMuMjcxLjA5OC40MTQuMTI3bC0uMDA1LjA1MWMwIDEuNjU0IDEuMzQ2IDMgMyAzczMtMS4zNDYgMy0zYy0uMDAxLTEuMDQzLS41MzgtMS45NjMtMS4zNDktMi41eiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0xOTUgMzNjLS4yOTMgMC0uNTY5LjA2Ni0uODIuMThsLS4yNS0uMjVjLjA0Mi0uMTM3LjA3LS4yNzkuMDctLjQzcy0uMDI4LS4yOTMtLjA3LS40M2wuMjUtLjI1Yy4yNTEuMTEzLjUyNy4xOC44Mi4xOCAxLjEwNCAwIDItLjg5NiAyLTIgMC0xLjEwNS0uODk2LTItMi0ycy0yIC44OTUtMiAyYzAgLjI5My4wNjYuNTY4LjE4LjgybC0uMjUuMjVjLS4xMzctLjA0My0uMjc5LS4wNy0uNDMtLjA3LS4zMzcgMC0uNjQ1LjExNS0uODk1LjMwM2wtMi42MDctMS4zMDUtLjk5OS0uNWMtLjU1Mi0uMjc1LTEuMjIzLS4yNzUtMS40OTkuMDAybC0uNS41IDUgMi41LTUgMi41LjUuNWMuMjc2LjI3NS45NDcuMjc1IDEuNSAwbDEtLjUgMi42MDUtMS4zMDNjLjI1LjE4OC41NTguMzAzLjg5NS4zMDMuMTUgMCAuMjkzLS4wMjkuNDMtLjA3bC4yNS4yNWMtLjExNC4yNS0uMTguNTI3LS4xOC44MiAwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0yYzAtMS4xMDUtLjg5Ni0yLTItMnptMC00Yy41NTMgMCAxIC40NDcgMSAxIDAgLjU1MS0uNDQ3IDEtMSAxcy0xLS40NDktMS0xYzAtLjU1My40NDctMSAxLTF6bS0yLjUgNGMtLjI3NiAwLS41LS4yMjUtLjUtLjUgMC0uMjc3LjIyNC0uNS41LS41cy41LjIyMy41LjVjMCAuMjc1LS4yMjQuNS0uNS41em0yLjUgM2MtLjU1MyAwLTEtLjQ0OS0xLTEgMC0uNTUzLjQ0Ny0xIDEtMXMxIC40NDcgMSAxYzAgLjU1MS0uNDQ3IDEtMSAxem0tMy0xM3Y3LjA1MWMtLjE0Mi4wMjktLjI3OS4wNy0uNDEzLjEyM2wtLjU4Ny0uMTc0di02aC03djdoLTF2LThoOXptLTggMTBoLTF2LTFoMXYxem0yLTFoLTF2MWgxdi0xem0yIDBoLTF2MWgxdi0xeiIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik0xODUuNzkzIDI4Ljc5M2wtMS43OTMgMS4yMDd2LTZoN3Y1LjM4MWwtMi41NTQtLjc3N2MtLjgxNi0uNDA5LTEuOTktLjQ3NS0yLjY1My4xODl6bS0uNzkzIDIuMjA3aC43NjRsLS43NjQtLjM4M3YuMzgzem0xMSA0YzAgLjU1MS0uNDQ3IDEtMSAxcy0xLS40NDktMS0xYzAtLjU1My40NDctMSAxLTFzMSAuNDQ3IDEgMXptLTMuNS0zYy0uMjc2IDAtLjUuMjIzLS41LjUgMCAuMjc1LjIyNC41LjUuNXMuNS0uMjI1LjUtLjVjMC0uMjc3LS4yMjQtLjUtLjUtLjV6bTIuNS0zYy0uNTUzIDAtMSAuNDQ3LTEgMSAwIC41NTEuNDQ3IDEgMSAxczEtLjQ0OSAxLTFjMC0uNTUzLS40NDctMS0xLTF6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTE5Ni42NTIgMTIuNWMuODExLS41MzggMS4zNDgtMS40NTggMS4zNDgtMi41IDAtMS42NTQtMS4zNDYtMy0zLTMtLjc3MSAwLTEuNDY4LjMwMS0yIC43Nzl2LTUuNzc5aC0xMXYxMmgzLjc2NGwtMS40NTIuNzI3IDEuNDgxIDEuNDhjLjMyMi4zMjIuODAzLjUgMS4zNTQuNS40MzYgMCAuODk3LS4xMTEgMS4zMDEtLjMxM2wzLjE0NC0xLjU3MmMuMTM0LjA1My4yNzEuMDk4LjQxNC4xMjdsLS4wMDUuMDUxYzAgMS42NTQgMS4zNDYgMyAzIDNzMy0xLjM0NiAzLTNjLS4wMDEtMS4wNDMtLjUzOC0xLjk2My0xLjM0OS0yLjV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTE5NSAxM2MtLjI5MyAwLS41NjkuMDY2LS44Mi4xOGwtLjI1LS4yNWMuMDQyLS4xMzcuMDctLjI3OS4wNy0uNDNzLS4wMjgtLjI5My0uMDctLjQzbC4yNS0uMjVjLjI1MS4xMTMuNTI3LjE4LjgyLjE4IDEuMTA0IDAgMi0uODk2IDItMiAwLTEuMTA1LS44OTYtMi0yLTJzLTIgLjg5NS0yIDJjMCAuMjkzLjA2Ni41NjguMTguODJsLS4yNS4yNWMtLjEzNy0uMDQzLS4yNzktLjA3LS40My0uMDctLjMzNyAwLS42NDUuMTE1LS44OTUuMzAzbC0yLjYwNy0xLjMwNC0uOTk5LS41Yy0uNTUyLS4yNzUtMS4yMjMtLjI3NS0xLjQ5OS4wMDJsLS41LjQ5OSA1IDIuNS01IDIuNS41LjVjLjI3Ni4yNzUuOTQ3LjI3NSAxLjUgMGwxLS41IDIuNjA1LTEuMzAzYy4yNS4xODguNTU4LjMwMy44OTUuMzAzLjE1IDAgLjI5My0uMDI5LjQzLS4wN2wuMjUuMjVjLS4xMTMuMjUtLjE4LjUyNy0uMTguODIgMCAxLjEwNC44OTYgMiAyIDJzMi0uODk2IDItMmMwLTEuMTA2LS44OTYtMi0yLTJ6bTAtNGMuNTUzIDAgMSAuNDQ3IDEgMSAwIC41NTEtLjQ0NyAxLTEgMXMtMS0uNDQ5LTEtMWMwLS41NTMuNDQ3LTEgMS0xem0tMi41IDRjLS4yNzYgMC0uNS0uMjI1LS41LS41IDAtLjI3Ny4yMjQtLjUuNS0uNXMuNS4yMjMuNS41YzAgLjI3NS0uMjI0LjUtLjUuNXptMi41IDNjLS41NTMgMC0xLS40NDktMS0xIDAtLjU1My40NDctMSAxLTFzMSAuNDQ3IDEgMWMwIC41NS0uNDQ3IDEtMSAxem0tMy0xM3Y3LjA1MWMtLjE0Mi4wMjktLjI3OS4wNy0uNDEzLjEyM2wtLjU4Ny0uMTc0di02aC03djdoLTF2LThoOXptLTggMTBoLTF2LTFoMXYxem0yLTFoLTF2MWgxdi0xem0yIDBoLTF2MWgxdi0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik0xODUuNzkzIDguNzkzbC0xLjc5MyAxLjIwN3YtNmg3djUuMzgxbC0yLjU1NC0uNzc3Yy0uODE2LS40MDktMS45OS0uNDc1LTIuNjUzLjE4OXptLS43OTMgMi4yMDdoLjc2NGwtLjc2NC0uMzgzdi4zODN6bTExIDRjMCAuNTUxLS40NDcgMS0xIDFzLTEtLjQ0OS0xLTFjMC0uNTUzLjQ0Ny0xIDEtMXMxIC40NDcgMSAxem0tMy41LTNjLS4yNzYgMC0uNS4yMjMtLjUuNSAwIC4yNzUuMjI0LjUuNS41cy41LS4yMjUuNS0uNWMwLS4yNzgtLjIyNC0uNS0uNS0uNXptMi41LTNjLS41NTMgMC0xIC40NDctMSAxIDAgLjU1MS40NDcgMSAxIDFzMS0uNDQ5IDEtMWMwLS41NTMtLjQ0Ny0xLTEtMXoiIGZpbGw9IiNGMEVGRjEiLz48cGF0aCBkPSJNMTc4IDI3di0zaC03di0xaC05djE0aDEzdi0zaDN2LTNoLTF2LTNoLTZ2LTFoN3ptLTggN3YtM2gxdjNoLTF6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTE3NyAyNmgtNXYtMWg1djF6bS0xIDNoLTJ2MWgydi0xem0tNCAwaC05djFoOXYtMXptMiA2aC0xMXYxaDExdi0xem0tNS0zaC02djFoNnYtMXptOCAwaC01djFoNXYtMXptLTctOHYzaC03di0zaDd6bS0xIDFoLTV2MWg1di0xeiIgZmlsbD0iI0M1QzVDNSIvPjxyZWN0IHg9IjE2NCIgeT0iMjUiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMTc4IDd2LTNoLTd2LTFoLTl2MTRoMTN2LTNoM3YtM2gtMXYtM2gtNnYtMWg3em0tOCA3di0zaDF2M2gtMXoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMTc3IDZoLTV2LTFoNXYxem0tMSAzaC0ydjFoMnYtMXptLTQgMGgtOXYxaDl2LTF6bTIgNmgtMTF2MWgxMXYtMXptLTUtM2gtNnYxaDZ2LTF6bTggMGgtNXYxaDV2LTF6bS03LTh2M2gtN3YtM2g3em0tMSAxaC01djFoNXYtMXoiIGZpbGw9IiM0MjQyNDIiLz48cmVjdCB4PSIxNjQiIHk9IjUiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIGZpbGw9IiNGMEVGRjEiLz48cG9seWdvbiBwb2ludHM9IjE1NC40MTQsMjQgMTQ5LjU4NiwyNCAxNDgsMjUuNTg2IDE0OCwyOCAxNDQsMjggMTQ0LDM1IDE1MiwzNSAxNTIsMzEgMTU0LjQxNCwzMSAxNTYsMjkuNDE0IDE1NiwyNS41ODYiIGZpbGw9IiMyRDJEMkQiLz48ZyBmaWxsPSIjNzVCRUZGIj48cGF0aCBkPSJNMTU0IDI1aC00bC0xIDF2Mmg1djFoLTJ2MWgybDEtMXYtM2wtMS0xem0wIDJoLTR2LTFoNHYxek0xNDUgMzRoNnYtNWgtNnY1em0xLTNoNHYxaC00di0xeiIvPjwvZz48ZyBmaWxsPSIjMkQyRDJEIj48cmVjdCB4PSIxNDYiIHk9IjMxIiB3aWR0aD0iNCIgaGVpZ2h0PSIxIi8+PHJlY3QgeD0iMTUwIiB5PSIyNiIgd2lkdGg9IjQiIGhlaWdodD0iMSIvPjxyZWN0IHg9IjE1MiIgeT0iMjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiLz48L2c+PHBvbHlnb24gcG9pbnRzPSIxNTQuNDE0LDQgMTQ5LjU4Niw0IDE0OCw1LjU4NiAxNDgsOCAxNDQsOCAxNDQsMTUgMTUyLDE1IDE1MiwxMSAxNTQuNDE0LDExIDE1Niw5LjQxNCAxNTYsNS41ODYiIGZpbGw9IiNGM0YzRjMiLz48ZyBmaWxsPSIjMDA1MzlDIj48cGF0aCBkPSJNMTU0IDVoLTRsLTEgMXYyaDV2MWgtMnYxaDJsMS0xdi0zbC0xLTF6bTAgMmgtNHYtMWg0djF6TTE0NSAxNGg2di01aC02djV6bTEtM2g0djFoLTR2LTF6Ii8+PC9nPjxnIGZpbGw9IiNGMEVGRjEiPjxyZWN0IHg9IjE0NiIgeT0iMTEiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNTAiIHk9IjYiIHdpZHRoPSI0IiBoZWlnaHQ9IjEiLz48cmVjdCB4PSIxNTIiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiLz48L2c+PHBhdGggZD0iTTEzOCAyNGgtMTV2NGgtMXY4aDh2LTZoOHYtNnptLTExIDloLTJ2LTJoMnYyeiIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik0xMzcgMjloLTd2LTFoLTZ2LTNoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXY0em0tMTIgMXYtMWgtMnY2aDJ2LTFoLTF2LTRoMXptMiA0djFoMnYtNmgtMnYxaDF2NGgtMXoiIGZpbGw9IiNDNUM1QzUiLz48cGF0aCBkPSJNMTI1IDI3di0yaDF2MmgtMXptMyAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXptMiAwdi0yaC0xdjJoMXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMTM4IDRoLTE1djRoLTF2OGg4di02aDh2LTZ6bS0xMSA5aC0ydi0yaDJ2MnoiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNMTM3IDloLTd2LTFoLTZ2LTNoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXYyaDF2LTJoMXY0em0tMTIgMXYtMWgtMnY2aDJ2LTFoLTF2LTRoMXptMiA0djFoMnYtNmgtMnYxaDF2NGgtMXoiIGZpbGw9IiM0MjQyNDIiLz48cGF0aCBkPSJNMTI1IDd2LTJoMXYyaC0xem0zIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2Mmgxem0yIDB2LTJoLTF2MmgxeiIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik0xMTAuNDQ5IDIzYy0xLjYzNyAwLTMuMDc1Ljc5Ny0zLjk4NyAyLjAxMmwuMDAxLjAwMmMtLjYyOC44MzYtMS4wMTQgMS44NjMtMS4wMTQgMi45ODYgMCAuNDY5LjA2Ny45MzMuMiAxLjM4NWwtMi45MDcgMi45MDhjLS42ODcuNjg2LTEuMjUzIDIuMTYxIDAgMy40MTQuNjA5LjYwOSAxLjI0NC43MzYgMS42Ny43MzYuOTU4IDAgMS42MjEtLjYxMyAxLjc0NC0uNzM2bDIuOTA3LTIuOTA4Yy40NTMuMTMzLjkxNy4yMDEgMS4zODYuMjAxIDEuMTIzIDAgMi4xNDktLjM4NyAyLjk4NS0xLjAxNGwuMDAyLjAwMWMxLjIxNi0uOTEyIDIuMDEzLTIuMzUyIDIuMDEzLTMuOTg3IDAtMi43NjItMi4yMzgtNS01LTV6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTExNC4wOSAyNi4zNTlsLTIuNjQxIDIuNjQxLTItMiAyLjY0MS0yLjY0MWMtLjUwMi0uMjI3LTEuMDU1LS4zNTktMS42NDEtLjM1OS0yLjIwOSAwLTQgMS43OTEtNCA0IDAgLjU4Ni4xMzMgMS4xMzkuMzU5IDEuNjRsLTMuMzU5IDMuMzZzLTEgMSAwIDJoMmwzLjM1OS0zLjM2Yy41MDIuMjI3IDEuMDU1LjM2IDEuNjQxLjM2IDIuMjA5IDAgNC0xLjc5MSA0LTQgMC0uNTg2LS4xMzMtMS4xMzktLjM1OS0xLjY0MXoiIGZpbGw9IiNDNUM1QzUiLz48cGF0aCBkPSJNMTEwLjQ0OSAzYy0xLjYzNyAwLTMuMDc1Ljc5Ny0zLjk4NyAyLjAxMmwuMDAxLjAwMmMtLjYyOC44MzYtMS4wMTQgMS44NjMtMS4wMTQgMi45ODYgMCAuNDY5LjA2Ny45MzMuMiAxLjM4NWwtMi45MDcgMi45MDhjLS42ODcuNjg2LTEuMjUzIDIuMTYxIDAgMy40MTQuNjA5LjYwOSAxLjI0NC43MzYgMS42Ny43MzYuOTU4IDAgMS42MjEtLjYxMyAxLjc0NC0uNzM2bDIuOTA3LTIuOTA4Yy40NTMuMTMzLjkxNy4yMDEgMS4zODYuMjAxIDEuMTIzIDAgMi4xNDktLjM4NyAyLjk4NS0xLjAxNGwuMDAyLjAwMWMxLjIxNi0uOTEyIDIuMDEzLTIuMzUyIDIuMDEzLTMuOTg3IDAtMi43NjItMi4yMzgtNS01LTV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTExNC4wOSA2LjM1OWwtMi42NDEgMi42NDEtMi0yIDIuNjQxLTIuNjQxYy0uNTAyLS4yMjYtMS4wNTUtLjM1OS0xLjY0MS0uMzU5LTIuMjA5IDAtNCAxLjc5MS00IDQgMCAuNTg2LjEzMyAxLjEzOS4zNTkgMS42NGwtMy4zNTkgMy4zNnMtMSAxIDAgMmgybDMuMzU5LTMuMzZjLjUwMi4yMjcgMS4wNTUuMzYgMS42NDEuMzYgMi4yMDkgMCA0LTEuNzkxIDQtNCAwLS41ODYtLjEzMy0xLjEzOS0uMzU5LTEuNjQxeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik04OSAzM2gxdi0xYzAtLjUzNy43NDEtMS42MTMgMS0yLS4yNTktLjM4OS0xLTEuNDY3LTEtMnYtMWgtMXYtM2gxYzEuOTY5LjAyMSAzIDEuMjc3IDMgM3YxbDEgMXYybC0xIDF2MWMwIDEuNzA5LTEuMDMxIDIuOTc5LTMgM2gtMXYtM3ptLTIgMGgtMXYtMWMwLS41MzctLjc0MS0xLjYxMy0xLTIgLjI1OS0uMzg5IDEtMS40NjcgMS0ydi0xaDF2LTNoLTFjLTEuOTY5LjAyMS0zIDEuMjc3LTMgM3YxbC0xIDF2MmwxIDF2MWMwIDEuNzA5IDEuMzE3IDIuOTc5IDMuMjg2IDNoLjcxNHYtM3oiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNOTEgMzN2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIgZmlsbD0iI0M1QzVDNSIvPjxwYXRoIGQ9Ik04OSAxM2gxdi0xYzAtLjUzNy43NDEtMS42MTMgMS0yLS4yNTktLjM4OS0xLTEuNDY3LTEtMnYtMWgtMXYtM2gxYzEuOTY5LjAyMSAzIDEuMjc3IDMgM3YxbDEgMXYybC0xIDF2MWMwIDEuNzA5LTEuMDMxIDIuOTc5LTMgM2gtMXYtM3ptLTIgMGgtMXYtMWMwLS41MzctLjc0MS0xLjYxMy0xLTIgLjI1OS0uMzg5IDEtMS40NjcgMS0ydi0xaDF2LTNoLTFjLTEuOTY5LjAyMS0zIDEuMjc3LTMgM3YxbC0xIDF2MmwxIDF2MWMwIDEuNzA5IDEuMzE3IDIuOTc5IDMuMjg2IDNoLjcxNHYtM3oiIGZpbGw9IiNGM0YzRjMiLz48cGF0aCBkPSJNOTEgMTN2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIgZmlsbD0iIzQyNDI0MiIvPjxwYXRoIGQ9Ik03My41IDM0Yy0xLjkxNCAwLTMuNjAxLTEuMjQyLTQuMjI3LTNoLTEuNjgzYy0uNTI0LjkxLTEuNTAzIDEuNS0yLjU5MSAxLjUtMS42NTQgMC0zLTEuMzQ2LTMtM3MxLjM0Ni0zIDMtM2MxLjA4OCAwIDIuMDY2LjU4OCAyLjU5MSAxLjVoMS42ODNjLjYyNi0xLjc2IDIuMzEzLTMgNC4yMjctMyAyLjQ4MSAwIDQuNSAyLjAxOCA0LjUgNC41IDAgMi40OC0yLjAxOSA0LjUtNC41IDQuNXoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNNzMuNSAyNmMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIgZmlsbD0iIzc1QkVGRiIvPjxjaXJjbGUgY3g9IjczLjUiIGN5PSIyOS41IiByPSIxLjUiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNNzMuNSAxNGMtMS45MTQgMC0zLjYwMS0xLjI0Mi00LjIyNy0zaC0xLjY4M2MtLjUyNC45MS0xLjUwMyAxLjUtMi41OTEgMS41LTEuNjU0IDAtMy0xLjM0Ni0zLTNzMS4zNDYtMyAzLTNjMS4wODggMCAyLjA2Ni41ODggMi41OTEgMS41aDEuNjgzYy42MjYtMS43NiAyLjMxMy0zIDQuMjI3LTMgMi40ODEgMCA0LjUgMi4wMTggNC41IDQuNSAwIDIuNDgtMi4wMTkgNC41LTQuNSA0LjV6IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTczLjUgNmMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIgZmlsbD0iIzAwNTM5QyIvPjxjaXJjbGUgY3g9IjczLjUiIGN5PSI5LjUiIHI9IjEuNSIgZmlsbD0iI0YwRUZGMSIvPjxwYXRoIGQ9Ik01OCAyOC41ODZsLTMtMy0xLjQxNCAxLjQxNGgtMi4xNzJsMS0xLTQtNGgtLjgyOGwtNS41ODYgNS41ODZ2LjgyOGw0IDQgMi40MTQtMi40MTRoLjU4NnY1aDEuNTg2bDMgM2guODI4bDMuNTg2LTMuNTg2di0uODI4bC0yLjA4Ni0yLjA4NiAyLjA4Ni0yLjA4NnYtLjgyOHoiIGZpbGw9IiMyRDJEMkQiLz48cG9seWdvbiBwb2ludHM9IjUzLjk5OCwzMy4wMDIgNTEsMzMgNTEsMjkgNTMsMjkgNTIsMzAgNTQsMzIgNTcsMjkgNTUsMjcgNTQsMjggNDksMjggNTEsMjYgNDgsMjMgNDMsMjggNDYsMzEgNDgsMjkgNTAsMjkgNTAsMzQgNTMsMzQgNTIsMzUgNTQsMzcgNTcsMzQgNTUsMzIiIGZpbGw9IiNDMjdEMUEiLz48cGF0aCBkPSJNNTggOC41ODZsLTMtMy0xLjQxNCAxLjQxNGgtMi4xNzJsMS0xLTQtNGgtLjgyOGwtNS41ODYgNS41ODZ2LjgyOGw0IDQgMi40MTQtMi40MTRoLjU4NnY1aDEuNTg2bDMgM2guODI4bDMuNTg2LTMuNTg2di0uODI4bC0yLjA4Ni0yLjA4NiAyLjA4Ni0yLjA4NnYtLjgyOHoiIGZpbGw9IiNGM0YzRjMiLz48cG9seWdvbiBwb2ludHM9IjUzLjk5OCwxMy4wMDIgNTEsMTMgNTEsOSA1Myw5IDUyLDEwIDU0LDEyIDU3LDkgNTUsNyA1NCw4IDQ5LDggNTEsNiA0OCwzIDQzLDggNDYsMTEgNDgsOSA1MCw5IDUwLDE0IDUzLDE0IDUyLDE1IDU0LDE3IDU3LDE0IDU1LDEyIiBmaWxsPSIjQzI3RDFBIi8+PHBhdGggZD0iTTI5LjI2MyAyNGw0LjczNyAyLjM2OXY1LjIzNmwtNi43OTEgMy4zOTVoLS40MmwtNC43ODktMi4zOTV2LTUuMjM2bDYuNzM5LTMuMzY5aC41MjR6IiBmaWxsPSIjMkQyRDJEIi8+PHBhdGggZD0iTTIzIDI4djRsNCAyIDYtM3YtNGwtNC0yLTYgM3ptNCAxbC0yLTEgNC0yIDIgMS00IDJ6IiBmaWxsPSIjNzVCRUZGIi8+PHBhdGggZD0iTTI5IDI2bDIgMS00IDItMi0xIDQtMnoiIGZpbGw9IiMyRDJEMkQiLz48cGF0aCBkPSJNMjkuMjYzIDRsNC43MzcgMi4zNjl2NS4yMzZsLTYuNzkxIDMuMzk1aC0uNDJsLTQuNzg5LTIuMzk1di01LjIzNmw2LjczOS0zLjM2OWguNTI0eiIgZmlsbD0iI0YzRjNGMyIvPjxwYXRoIGQ9Ik0yMyA4djRsNCAyIDYtM3YtNGwtNC0yLTYgM3ptNCAxbC0yLTEgNC0yIDIgMS00IDJ6IiBmaWxsPSIjMDA1MzlDIi8+PHBhdGggZD0iTTI5IDZsMiAxLTQgMi0yLTEgNC0yeiIgZmlsbD0iI0YwRUZGMSIvPjxwb2x5Z29uIHBvaW50cz0iMiwyNy4zMDggMiwzMi42OTIgNy4yMDksMzYgNy43OTEsMzYgMTMsMzIuNjkyIDEzLDI3LjMwOCA3Ljc5MSwyNCA3LjIwOSwyNCIgZmlsbD0iIzJEMkQyRCIvPjxwYXRoIGQ9Ik03LjUgMjVsLTQuNSAyLjg1N3Y0LjI4NWw0LjUgMi44NTggNC41LTIuODU3di00LjI4NWwtNC41LTIuODU4em0tLjUgOC40OThsLTMtMS45MDV2LTIuODE1bDMgMS45MDV2Mi44MTV6bS0yLjM1OC01LjQ5OGwyLjg1OC0xLjgxNSAyLjg1OCAxLjgxNS0yLjg1OCAxLjgxNS0yLjg1OC0xLjgxNXptNi4zNTggMy41OTNsLTMgMS45MDV2LTIuODE1bDMtMS45MDV2Mi44MTV6IiBmaWxsPSIjQjE4MEQ3Ii8+PHBvbHlnb24gcG9pbnRzPSIxMC4zNTgsMjggNy41LDI5LjgxNSA0LjY0MiwyOCA3LjUsMjYuMTg1IiBmaWxsPSIjMkQyRDJEIi8+PHBvbHlnb24gcG9pbnRzPSI0LDI4Ljc3NyA3LDMwLjY4MyA3LDMzLjQ5OCA0LDMxLjU5MyIgZmlsbD0iIzJEMkQyRCIvPjxwb2x5Z29uIHBvaW50cz0iOCwzMy40OTggOCwzMC42ODMgMTEsMjguNzc3IDExLDMxLjU5MyIgZmlsbD0iIzJEMkQyRCIvPjxwb2x5Z29uIHBvaW50cz0iMiw3LjMwOCAyLDEyLjY5MiA3LjIwOSwxNiA3Ljc5MSwxNiAxMywxMi42OTIgMTMsNy4zMDggNy43OTEsNCA3LjIwOSw0IiBmaWxsPSIjRjNGM0YzIi8+PHBhdGggZD0iTTcuNSA1bC00LjUgMi44NTd2NC4yODVsNC41IDIuODU4IDQuNS0yLjg1N3YtNC4yODZsLTQuNS0yLjg1N3ptLS41IDguNDk4bC0zLTEuOTA1di0yLjgxNmwzIDEuOTA1djIuODE2em0tMi4zNTgtNS40OThsMi44NTgtMS44MTUgMi44NTggMS44MTUtMi44NTggMS44MTUtMi44NTgtMS44MTV6bTYuMzU4IDMuNTkzbC0zIDEuOTA1di0yLjgxNWwzLTEuOTA1djIuODE1eiIgZmlsbD0iIzY1MkQ5MCIvPjxwb2x5Z29uIHBvaW50cz0iMTAuMzU4LDggNy41LDkuODE1IDQuNjQyLDggNy41LDYuMTg1IiBmaWxsPSIjRjBFRkYxIi8+PHBvbHlnb24gcG9pbnRzPSI0LDguNzc3IDcsMTAuNjgzIDcsMTMuNDk4IDQsMTEuNTkzIiBmaWxsPSIjRjBFRkYxIi8+PHBvbHlnb24gcG9pbnRzPSI4LDEzLjQ5OCA4LDEwLjY4MyAxMSw4Ljc3NyAxMSwxMS41OTMiIGZpbGw9IiNGMEVGRjEiLz48L3N2Zz4=");\n\tbackground-repeat: no-repeat;\n}\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor\t\t{ background-position: 0 -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field,\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable \t\t\t{ background-position: -22px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class \t\t\t\t{ background-position: -43px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface \t\t\t{ background-position: -63px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module \t\t\t{ background-position: -82px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property \t\t\t{ background-position: -102px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum\t\t \t\t{ background-position: -122px -3px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule\t\t \t\t{ background-position: -242px -4px; }\n\n.monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file\t\t \t\t{ background-position: -262px -4px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor \t{ background-position: 0 -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field,\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable \t\t{ background-position: -22px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class \t\t{ background-position: -43px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface \t{ background-position: -63px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module \t\t{ background-position: -82px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property \t\t{ background-position: -102px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum\t\t \t{ background-position: -122px -23px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule\t\t \t{ background-position: -242px -24px; }\n\n.vs-dark .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file\t\t \t{ background-position: -262px -24px; }\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon {\n\tbackground: none;\n\tdisplay: inline;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon:before {\n\theight: 16px;\n\twidth: 16px;\n\tdisplay: inline-block;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.method:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.function:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.constructor:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0IxODBENyIgZD0iTTUuNSAzbC00LjUgMi44NTd2NC4yODVsNC41IDIuODU4IDQuNS0yLjg1N3YtNC4yODZsLTQuNS0yLjg1N3ptLS41IDguNDk4bC0zLTEuOTA1di0yLjgxNmwzIDEuOTA1djIuODE2em0tMi4zNTgtNS40OThsMi44NTgtMS44MTUgMi44NTggMS44MTUtMi44NTggMS44MTUtMi44NTgtMS44MTV6bTYuMzU4IDMuNTkzbC0zIDEuOTA1di0yLjgxNWwzLTEuOTA1djIuODE1eiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.field:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.variable:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTEgNnY0bDQgMiA2LTN2LTRsLTQtMi02IDN6bTQgMWwtMi0xIDQtMiAyIDEtNCAyeiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.class:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0U4QUI1MyIgcG9pbnRzPSIxMS45OTgsMTEuMDAyIDksMTEgOSw3IDExLDcgMTAsOCAxMiwxMCAxNSw3IDEzLDUgMTIsNiA3LDYgOSw0IDYsMSAxLDYgNCw5IDYsNyA4LDcgOCwxMiAxMSwxMiAxMCwxMyAxMiwxNSAxNSwxMiAxMywxMCIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.interface:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTExLjUgNGMtMS43NTkgMC0zLjIwNCAxLjMwOC0zLjQ0OSAzaC0zLjEyMmMtLjIyMy0uODYxLS45OTgtMS41LTEuOTI5LTEuNS0xLjEwNCAwLTIgLjg5NS0yIDIgMCAxLjEwNC44OTYgMiAyIDIgLjkzMSAwIDEuNzA2LS42MzkgMS45MjktMS41aDMuMTIyYy4yNDUgMS42OTEgMS42OSAzIDMuNDQ5IDMgMS45MyAwIDMuNS0xLjU3IDMuNS0zLjUgMC0xLjkzMS0xLjU3LTMuNS0zLjUtMy41em0wIDVjLS44MjcgMC0xLjUtLjY3NC0xLjUtMS41IDAtLjgyOC42NzMtMS41IDEuNS0xLjVzMS41LjY3MiAxLjUgMS41YzAgLjgyNi0uNjczIDEuNS0xLjUgMS41eiIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.module:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkgMTF2LTFjMC0uODM0LjQ5Ni0xLjczOCAxLTItLjUwNC0uMjctMS0xLjE2OC0xLTJ2LTFjMC0uODQtLjU4NC0xLTEtMXYtMWMyLjA4MyAwIDIgMS4xNjYgMiAydjFjMCAuOTY5LjcwMy45OCAxIDF2MmMtLjMyMi4wMi0xIC4wNTMtMSAxdjFjMCAuODM0LjA4MyAyLTIgMnYtMWMuODMzIDAgMS0xIDEtMXptLTYgMHYtMWMwLS44MzQtLjQ5Ni0xLjczOC0xLTIgLjUwNC0uMjcgMS0xLjE2OCAxLTJ2LTFjMC0uODQuNTg0LTEgMS0xdi0xYy0yLjA4MyAwLTIgMS4xNjYtMiAydjFjMCAuOTY5LS43MDMuOTgtMSAxdjJjLjMyMi4wMiAxIC4wNTMgMSAxdjFjMCAuODM0LS4wODMgMiAyIDJ2LTFjLS44MzMgMC0xLTEtMS0xeiIvPjwvc3ZnPg==);\n\tmargin-left: 2px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.property:before\t{\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEyLjA5IDQuMzU5bC0yLjY0MSAyLjY0MS0yLTIgMi42NDEtMi42NDFjLS41MDItLjIyNi0xLjA1NS0uMzU5LTEuNjQxLS4zNTktMi4yMDkgMC00IDEuNzkxLTQgNCAwIC41ODYuMTMzIDEuMTM5LjM1OSAxLjY0bC0zLjM1OSAzLjM2cy0xIDEgMCAyaDJsMy4zNTktMy4zNmMuNTAzLjIyNiAxLjA1NS4zNiAxLjY0MS4zNiAyLjIwOSAwIDQtMS43OTEgNC00IDAtLjU4Ni0uMTMzLTEuMTM5LS4zNTktMS42NDF6Ii8+PC9zdmc+);\n\tmargin-left: 1px;\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.value:before,\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.enum:before\t{\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PGcgZmlsbD0iIzc1QkVGRiI+PHBhdGggZD0iTTEyIDNoLTRsLTEgMXYyaDV2MWgtMnYxaDJsMS0xdi0zbC0xLTF6bTAgMmgtNHYtMWg0djF6TTMgMTJoNnYtNWgtNnY1em0xLTNoNHYxaC00di0xeiIvPjwvZz48L3N2Zz4=);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.rule:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTEwIDVoLTh2LTJoOHYyem0wIDFoLTZ2MWg2di0xem0wIDJoLTZ2MWg2di0xeiIvPjwvc3ZnPg==);\n}\n\n.hc-black .monaco-quick-open-widget .quick-open-tree .quick-open-entry .quick-open-entry-icon.file:before {\n\tcontent: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTkuNjc2IDJoLTYuNjc2djEyaDEwdi05bC0zLjMyNC0zem0yLjMyNCAxMWgtOHYtMTBoNXYzaDN2N3oiLz48L3N2Zz4=);\n}'},"s/JM":function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .parameter-hints-widget {\n\tz-index: 10;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n\tline-height: 1.5em;\n}\n\n.monaco-editor .parameter-hints-widget > .wrapper {\n\tmax-width: 440px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n}\n\n.monaco-editor .parameter-hints-widget.multiple {\n\tmin-height: 3.3em;\n\tpadding: 0 0 0 1.9em;\n}\n\n.monaco-editor .parameter-hints-widget.visible {\n\t-webkit-transition: left .05s ease-in-out;\n\ttransition: left .05s ease-in-out;\n}\n\n.monaco-editor .parameter-hints-widget p,\n.monaco-editor .parameter-hints-widget ul {\n\tmargin: 8px 0;\n}\n\n.monaco-editor .parameter-hints-widget .monaco-scrollable-element,\n.monaco-editor .parameter-hints-widget .body {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-orient: vertical;\n\t-webkit-box-direction: normal;\n\t -ms-flex-direction: column;\n\t flex-direction: column;\n}\n\n.monaco-editor .parameter-hints-widget .signature {\n\tpadding: 4px 5px;\n}\n\n.monaco-editor .parameter-hints-widget .docs {\n\tpadding: 0 10px 0 5px;\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs.markdown-docs {\n\twhite-space: initial;\n}\n\n.monaco-editor .parameter-hints-widget .docs .code {\n\twhite-space: pre-wrap;\n}\n\n.monaco-editor .parameter-hints-widget .docs code {\n\tborder-radius: 3px;\n\tpadding: 0 0.4em;\n}\n\n.monaco-editor .parameter-hints-widget .buttons {\n\tposition: absolute;\n\tdisplay: none;\n\tbottom: 0;\n\tleft: 0;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .buttons {\n\tdisplay: block;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .button {\n\tposition: absolute;\n\tleft: 2px;\n\twidth: 16px;\n\theight: 16px;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n\n.monaco-editor .parameter-hints-widget .button.previous {\n\tbottom: 24px;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .parameter-hints-widget .button.next {\n\tbottom: 0;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .parameter-hints-widget .overloads {\n\tposition: absolute;\n\tdisplay: none;\n\ttext-align: center;\n\tbottom: 14px;\n\tleft: 0;\n\twidth: 22px;\n\theight: 12px;\n\tline-height: 12px;\n\topacity: 0.5;\n}\n\n.monaco-editor .parameter-hints-widget.multiple .overloads {\n\tdisplay: block;\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter {\n\tdisplay: inline-block;\n}\n\n.monaco-editor .parameter-hints-widget .signature .parameter.active {\n\tfont-weight: bold;\n\ttext-decoration: underline;\n}\n\n.monaco-editor .parameter-hints-widget .documentation-parameter > .parameter {\n\tfont-weight: bold;\n\tmargin-right: 0.5em;\n}\n\n/*** VS Dark & High Contrast*/\n\n.monaco-editor.hc-black .parameter-hints-widget .button.previous,\n.monaco-editor.vs-dark .parameter-hints-widget .button.previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTEwLjggOS41bC45LS45TDguMSA1IDQuMiA4LjZsLjkuOSAzLTIuNyAyLjcgMi43eiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .parameter-hints-widget .button.next,\n.monaco-editor.vs-dark .parameter-hints-widget .button.next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTUuMSA1bC0uOS45IDMuNiAzLjYgMy45LTMuNi0xLS45LTMgMi43TDUuMSA1eiIvPjwvc3ZnPg==");\n}'},s0RT:function(e,t){e.exports='/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n/* Checkbox */\n\n.monaco-checkbox .label {\n\twidth: 12px;\n\theight: 12px;\n\tborder: 1px solid black;\n\tbackground-color: transparent;\n\tdisplay: inline-block;\n}\n\n.monaco-checkbox .checkbox {\n\tposition: absolute;\n\toverflow: hidden;\n\tclip: rect(0 0 0 0);\n\theight: 1px;\n\twidth: 1px;\n\tmargin: -1px;\n\tpadding: 0;\n\tborder: 0;\n}\n\n.monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: black;\n}\n\n/* Find widget */\n\n.monaco-editor .find-widget {\n\tposition: absolute;\n\tz-index: 10;\n\ttop: -44px; /* find input height + shadow (10px) */\n\theight: 34px; /* find input height */\n\toverflow: hidden;\n\tline-height: 19px;\n\n\t-webkit-transition: top 200ms linear;\n\ttransition: top 200ms linear;\n\n\tpadding: 0 4px;\n}\n\n/* Find widget when replace is toggled on */\n\n.monaco-editor .find-widget.replaceToggled {\n\ttop: -74px; /* find input height + replace input height + shadow (10px) */\n\theight: 64px; /* find input height + replace input height */\n}\n\n.monaco-editor .find-widget.replaceToggled > .replace-part {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-editor .find-widget.visible,\n.monaco-editor .find-widget.replaceToggled.visible {\n\ttop: 0;\n}\n\n.monaco-editor .find-widget .monaco-inputbox .input {\n\tbackground-color: transparent;\n\t/* Style to compensate for //winjs */\n\tmin-height: 0;\n}\n\n.monaco-editor .find-widget .replace-input .input {\n\tfont-size: 13px;\n}\n\n.monaco-editor .find-widget > .find-part,\n.monaco-editor .find-widget > .replace-part {\n\tmargin: 4px 0 0 17px;\n\tfont-size: 12px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\n\theight: 25px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input {\n\twidth: 100% !important;\n\tpadding-right: 66px;\n}\n\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {\n\tpadding-top: 2px;\n\tpadding-bottom: 2px;\n}\n\n.monaco-editor .find-widget .monaco-findInput {\n\tvertical-align: middle;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex:1;\n\t -ms-flex:1;\n\t flex:1;\n}\n\n.monaco-editor .find-widget .matchesCount {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex: initial;\n\t -ms-flex: initial;\n\t flex: initial;\n\tmargin: 0 1px 0 3px;\n\tpadding: 2px 2px 0 2px;\n\theight: 25px;\n\tvertical-align: middle;\n\t-webkit-box-sizing: border-box;\n\t box-sizing: border-box;\n\ttext-align: center;\n\tline-height: 23px;\n}\n\n.monaco-editor .find-widget .button {\n\tmin-width: 20px;\n\twidth: 20px;\n\theight: 20px;\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\t-webkit-box-flex: initial;\n\t -ms-flex: initial;\n\t flex: initial;\n\tmargin-left: 3px;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tcursor: pointer;\n}\n\n.monaco-editor .find-widget .button:not(.disabled):hover {\n\tbackground-color: rgba(0, 0, 0, 0.1);\n}\n\n.monaco-editor .find-widget .button.left {\n\tmargin-left: 0;\n\tmargin-right: 3px;\n}\n\n.monaco-editor .find-widget .button.wide {\n\twidth: auto;\n\tpadding: 1px 6px;\n\ttop: -1px;\n}\n\n.monaco-editor .find-widget .button.toggle {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\twidth: 18px;\n\theight: 100%;\n\t-webkit-box-sizing:\tborder-box;\n\t-o-box-sizing:\t\tborder-box;\n\t-ms-box-sizing:\t\tborder-box;\n\tbox-sizing:\t\t\tborder-box;\n}\n\n.monaco-editor .find-widget .button.toggle.disabled {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget .previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cG9seWdvbiBmaWxsPSIjNDI0MjQyIiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor .find-widget .next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor .find-widget .disabled {\n\topacity: 0.3;\n\tcursor: default;\n}\n\n.monaco-editor .find-widget .monaco-checkbox {\n\twidth: 20px;\n\theight: 20px;\n\tdisplay: inline-block;\n\tvertical-align: middle;\n\tmargin-left: 3px;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .label {\n\tcontent: \'\';\n\tdisplay: inline-block;\n\tbackground-repeat: no-repeat;\n\tbackground-position: 0 0;\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwMzIuMzYyMikiPgogIDxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDYuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgogIDxyZWN0IHdpZHRoPSI2IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDAuMzYyMiIgc3R5bGU9ImZpbGw6IzQyNDI0MjtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTAzNy4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L2c+Cjwvc3ZnPg==");\n\twidth: 20px;\n\theight: 20px;\n\tborder: none;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label {\n\topacity: 0.3;\n\tcursor: default;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label {\n\tcursor: pointer;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\n\tbackground-color: #DDD;\n}\n\n.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(100, 100, 100, 0.2);\n}\n\n.monaco-editor .find-widget .close-fw {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .find-widget .expand {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n\n.monaco-editor .find-widget .collapse {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor .find-widget .replace {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPGc+CgkJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDNWMWgtMXY1djFoMWgyaDFWNFYzSDExeiBNMTMsNmgtMlY0aDJWNnoiLz4KCQk8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMiwxNWg3VjlIMlYxNXogTTQsMTBoM3YxSDV2MmgydjFINFYxMHoiLz4KCTwvZz4KPC9nPgo8ZyBpZD0iY29sb3JfeDVGX2ltcG9ydGFuY2UiPgoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkKCQlDNC42NTEsMiwzLjk3OSwyLjY3MywzLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor .find-widget .replace-all {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcKCQlIMTN6IE0xMywyVjFoLTF2NWgzVjJIMTN6IE0xNCw1aC0xVjNoMVY1eiBNMTEsMnY0SDhWNGgxdjFoMVY0SDlWM0g4VjJIMTF6Ii8+CjwvZz4KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPgoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTEuOTc5LDMuNUwyLDZMMSw1djEuNUwyLjUsOEw0LDYuNVY1TDMsNkwyLjk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg3VjJIMy40NzkKCQlDMi42NTEsMiwxLjk3OSwyLjY3MywxLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor .find-widget > .replace-part {\n\tdisplay: none;\n}\n\n.monaco-editor .find-widget > .replace-part > .replace-input {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\tdisplay: -webkit-flex;\n\tvertical-align: middle;\n\twidth: auto !important;\n}\n\n/* REDUCED */\n\n.monaco-editor .find-widget.reduced-find-widget .matchesCount,\n.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox {\n\tdisplay:none;\n}\n\n/* NARROW (SMALLER THAN REDUCED) */\n\n.monaco-editor .find-widget.narrow-find-widget {\n\tmax-width: 257px !important;\n}\n\n/* COLLAPSED (SMALLER THAN NARROW) */\n\n.monaco-editor .find-widget.collapsed-find-widget {\n\tmax-width: 111px !important;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\n\tdisplay:none;\n}\n\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-inputbox > .wrapper > .input {\n\tpadding-right: 0px;\n}\n\n.monaco-editor .findMatch {\n\t-webkit-animation-duration: 0;\n\t-webkit-animation-name: inherit !important;\n\t-moz-animation-duration: 0;\n\t-moz-animation-name: inherit !important;\n\t-ms-animation-duration: 0;\n\t-ms-animation-name: inherit !important;\n\tanimation-duration: 0;\n\tanimation-name: inherit !important;\n}\n\n.monaco-editor .find-widget .monaco-sash {\n\twidth: 2px !important;\n\tmargin-left: -4px;\n}\n\n.monaco-editor.hc-black .find-widget .previous,\n.monaco-editor.vs-dark .find-widget .previous {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cG9seWdvbiBmaWxsPSIjQzVDNUM1IiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor.hc-black .find-widget .next,\n.monaco-editor.vs-dark .find-widget .next {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiCgkgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIKCSB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjE2cHgiIGhlaWdodD0iMTZweCIgdmlld0JveD0iLTEgLTMgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTEgLTMgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+Cjwvc3ZnPgo=");\n}\n\n.monaco-editor.hc-black .find-widget .monaco-checkbox .label,\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .label {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CjxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwMzIuMzYyMikiPgogIDxyZWN0IHdpZHRoPSI5IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDYuMzYyMiIgc3R5bGU9ImZpbGw6I0M1QzVDNTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgogIDxyZWN0IHdpZHRoPSI2IiBoZWlnaHQ9IjIiIHg9IjIiIHk9IjEwNDAuMzYyMiIgc3R5bGU9ImZpbGw6I0M1QzVDNTtmaWxsLW9wYWNpdHk6MTtzdHJva2U6bm9uZSIgLz4KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTAzNy4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPgo8L2c+Cjwvc3ZnPg==");\n}\n\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.hc-black .find-widget .close-fw,\n.monaco-editor.vs-dark .find-widget .close-fw {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .find-widget .replace,\n.monaco-editor.vs-dark .find-widget .replace {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPGc+CgkJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDNWMWgtMXY1djFoMWgyaDFWNFYzSDExeiBNMTMsNmgtMlY0aDJWNnoiLz4KCQk8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMiwxNWg3VjlIMlYxNXogTTQsMTBoM3YxSDV2MmgydjFINFYxMHoiLz4KCTwvZz4KPC9nPgo8ZyBpZD0iY29sb3JfeDVGX2ltcG9ydGFuY2UiPgoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkKCQlDNC42NTEsMiwzLjk3OSwyLjY3MywzLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor.hc-black .find-widget .replace-all,\n.monaco-editor.vs-dark .find-widget .replace-all {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIKCSBoZWlnaHQ9IjE2cHgiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTYgMTYiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iaWNvbl94NUZfYmciPgoJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcKCQlIMTN6IE0xMywyVjFoLTF2NWgzVjJIMTN6IE0xNCw1aC0xVjNoMVY1eiBNMTEsMnY0SDhWNGgxdjFoMVY0SDlWM0g4VjJIMTF6Ii8+CjwvZz4KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPgoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTEuOTc5LDMuNUwyLDZMMSw1djEuNUwyLjUsOEw0LDYuNVY1TDMsNkwyLjk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg3VjJIMy40NzkKCQlDMi42NTEsMiwxLjk3OSwyLjY3MywxLjk3OSwzLjV6Ii8+CjwvZz4KPC9zdmc+Cg==");\n}\n\n.monaco-editor.hc-black .find-widget .expand,\n.monaco-editor.vs-dark .find-widget .expand {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\n}\n\n.monaco-editor.hc-black .find-widget .collapse,\n.monaco-editor.vs-dark .find-widget .collapse {\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\n}\n\n.monaco-editor.hc-black .find-widget .button:not(.disabled):hover,\n.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n\n.monaco-editor.hc-black .find-widget .button:before {\n\tposition: relative;\n\ttop: 1px;\n\tleft: 2px;\n}\n\n.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label {\n\tbackground-color: rgba(255, 255, 255, 0.1);\n}\n'},sOjV:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-keybinding {\n\tdisplay: -webkit-box;\n\tdisplay: -ms-flexbox;\n\tdisplay: flex;\n\t-webkit-box-align: center;\n\t -ms-flex-align: center;\n\t align-items: center;\n\tline-height: 10px;\n}\n\n.monaco-keybinding > .monaco-keybinding-key {\n\tdisplay: inline-block;\n\tborder: solid 1px rgba(204, 204, 204, 0.4);\n\tborder-bottom-color: rgba(187, 187, 187, 0.4);\n\tborder-radius: 3px;\n\t-webkit-box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\t box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4);\n\tbackground-color: rgba(221, 221, 221, 0.4);\n\tvertical-align: middle;\n\tcolor: #555;\n\tfont-size: 11px;\n\tpadding: 3px 5px;\n}\n\n.hc-black .monaco-keybinding > .monaco-keybinding-key,\n.vs-dark .monaco-keybinding > .monaco-keybinding-key {\n\tbackground-color: rgba(128, 128, 128, 0.17);\n\tcolor: #ccc;\n\tborder: solid 1px rgba(51, 51, 51, 0.6);\n\tborder-bottom-color: rgba(68, 68, 68, 0.6);\n\t-webkit-box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n\t box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6);\n}\n\n.monaco-keybinding > .monaco-keybinding-key-separator {\n\tdisplay: inline-block;\n}\n\n.monaco-keybinding > .monaco-keybinding-key-chord-separator {\n\twidth: 2px;\n}"},t7NR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},tLDX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("AMGY").a.Symbol,o="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber"},tVlf:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .tokens-inspect-widget {\n\tz-index: 50;\n\t-webkit-user-select: text;\n\t-ms-user-select: text;\n\t-moz-user-select: text;\n\t-o-user-select: text;\n\tuser-select: text;\n\tpadding: 10px;\n}\n\n.tokens-inspect-separator {\n\theight: 1px;\n\tborder: 0;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token {\n\tfont-family: monospace;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-length {\n\tfont-weight: normal;\n\tfont-size: 60%;\n\tfloat: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-table {\n\twidth: 100%;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-metadata-value {\n\tfont-family: monospace;\n\ttext-align: right;\n}\n\n.monaco-editor .tokens-inspect-widget .tm-token-type {\n\tfont-family: monospace;\n}\n"},tZ2B:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(){e.apply(this,arguments)}return Object(i.c)(t,e),t.prototype.notifyNext=function(e,t,n,i,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("OVmG").a)},uHSv:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .glyph-margin {\n\tposition: absolute;\n\ttop: 0;\n}\n\n/*\n\tKeeping name short for faster parsing.\n\tcgmr = core glyph margin rendering (div)\n*/\n\n.monaco-editor .margin-view-overlays .cgmr {\n\tposition: absolute;\n}\n"},uNVx:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor.vs\t\t.snippet-placeholder { background-color: rgba(10, 50, 100, 0.2); min-width: 2px; }\n\n.monaco-editor.vs-dark\t.snippet-placeholder { background-color: rgba(124, 124, 124, 0.3); min-width: 2px; }\n\n.monaco-editor.hc-black\t.snippet-placeholder { background-color: rgba(124, 124, 124, 0.3); min-width: 2px; }\n\n.monaco-editor.vs\t\t.finish-snippet-placeholder { outline: rgba(10, 50, 100, 0.5) solid 1px; }\n\n.monaco-editor.vs-dark\t.finish-snippet-placeholder\t{ outline: #525252 solid 1px; }\n\n.monaco-editor.hc-black\t.finish-snippet-placeholder\t{ outline: #525252 solid 1px; }\n"},wtJh:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-quick-open-widget {\n\tfont-size: 13px;\n}"},x33M:function(e,t){e.exports="/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n\n.monaco-editor .scroll-decoration {\n\tposition: absolute;\n\ttop: 0;\n\tleft: 0;\n\theight: 6px;\n}"},x35b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={};n.d(i,"empty",function(){return Mi}),n.d(i,"isFalsyOrWhitespace",function(){return wi}),n.d(i,"pad",function(){return Ci}),n.d(i,"format",function(){return Ni}),n.d(i,"escape",function(){return Ii}),n.d(i,"escapeRegExpCharacters",function(){return Si}),n.d(i,"trim",function(){return xi}),n.d(i,"ltrim",function(){return Di}),n.d(i,"rtrim",function(){return Ti}),n.d(i,"convertSimple2RegExpPattern",function(){return Ei}),n.d(i,"stripWildcards",function(){return ki}),n.d(i,"startsWith",function(){return ji}),n.d(i,"endsWith",function(){return Ai}),n.d(i,"createRegExp",function(){return Oi}),n.d(i,"regExpLeadsToEndlessLoop",function(){return Pi}),n.d(i,"regExpContainsBackreference",function(){return Ri}),n.d(i,"canNormalize",function(){return zi}),n.d(i,"normalizeNFC",function(){return Fi}),n.d(i,"normalizeNFD",function(){return Bi}),n.d(i,"firstNonWhitespaceIndex",function(){return Zi}),n.d(i,"getLeadingWhitespace",function(){return Ui}),n.d(i,"lastNonWhitespaceIndex",function(){return Gi}),n.d(i,"compare",function(){return Qi}),n.d(i,"compareIgnoreCase",function(){return Xi}),n.d(i,"equalsIgnoreCase",function(){return $i}),n.d(i,"startsWithIgnoreCase",function(){return to}),n.d(i,"commonPrefixLength",function(){return no}),n.d(i,"commonSuffixLength",function(){return io}),n.d(i,"overlap",function(){return ro}),n.d(i,"isHighSurrogate",function(){return so}),n.d(i,"isLowSurrogate",function(){return ao}),n.d(i,"containsRTL",function(){return lo}),n.d(i,"containsEmoji",function(){return ho}),n.d(i,"isBasicASCII",function(){return go}),n.d(i,"containsFullWidthCharacter",function(){return fo}),n.d(i,"isFullWidthCharacter",function(){return mo}),n.d(i,"lcut",function(){return yo}),n.d(i,"removeAnsiEscapeCodes",function(){return Mo}),n.d(i,"UTF8_BOM_CHARACTER",function(){return Co}),n.d(i,"startsWithUTF8BOM",function(){return Lo}),n.d(i,"stripUTF8BOM",function(){return No}),n.d(i,"safeBtoa",function(){return Io}),n.d(i,"repeat",function(){return So}),n.d(i,"fuzzyContains",function(){return xo}),n.d(i,"containsUppercaseCharacter",function(){return Do});var o=n("WT6e"),r=function(){},s=function(){},a=n("TToO"),u=n("AMGY");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function c(e){var t=e.subscriber;t.closed||t.error(e.err)}var d=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return Object(a.c)(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){u.a.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return i.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(i.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(i.schedule(c,0,{err:t,subscriber:e}))}).then(null,function(e){u.a.setTimeout(function(){throw e})})},t}(n("YaPU").a).create;n("GK6M"),n("fKB6"),n("tZ2B"),n("PIsA"),n("VwZZ"),n("BX3T"),n("1Q68");var h=n("OVmG");n("Veqx"),n("N4j0"),n("cQXm"),n("etqZ"),Math.pow(2,53),n("TILf"),n("+3/4"),n("+CnV"),n("8D5t"),n("Qnch"),Error,Error,n("g5jc"),n("gIN1");var p=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new g(e,this.project,this.thisArg))},e}(),g=function(e){function t(t,n,i){e.call(this,t),this.project=n,this.count=0,this.thisArg=i||this}return Object(a.c)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(h.a);n("f9aG"),n("/nXB"),n("Jwyl"),n("x6VL"),n("1Bqh"),n("0P3J"),n("3a3m"),n("lAP5"),Error;var f=function(){function e(){this.messages=[]}return e.prototype.add=function(e,t){this.messages.push(e)},e.prototype.clear=function(){this.messages=[]},e}(),m=function(){function e(){}return Object.defineProperty(e.prototype,"nativeWindow",{get:function(){return window},enumerable:!0,configurable:!0}),e}(),y=function(){function e(e,t){this.logService=e,this.windowRef=t,this._window=this.windowRef.nativeWindow}return e.prototype.getGridDataToDisplay=function(){return this.logService.add("Grid data service: Getting data from C#","info"),d(this._window.comparisonJSInteraction.getComparisonList()).pipe((e=function(e){return JSON.parse(e)},function(t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return t.lift(new p(e,void 0))}));var e},e.prototype.sendChange=function(e,t,n){this.logService.add("Grid data service: Updating C# object on change in element","info"),this._window.comparisonJSInteraction.changeOccurred(e,t,n)},e.prototype.saveOrCompare=function(e){this.logService.add("Grid data service: Calling C# service to take action","info"),this._window.comparisonJSInteraction.saveOrCompare(e)},e.prototype.sendSelectedNodesAndAction=function(e,t){this.logService.add("Grid data service: Sending the selected nodes and the action to be performed to C#","info"),this._window.comparisonJSInteraction.performActionsOnSelectedActions(e,t)},e}(),v=function(){function e(e,t){this.gridService=e,this.appLog=t,this.contextMenuPositionX=0,this.contextMenuPositionY=0,this.selectedNodes=[]}return e.prototype.ngOnInit=function(){document.getElementById("skip-selected").focus()},e.prototype.focusElement=function(e){e.preventDefault(),e.target.classList&&e.target.classList.contains("tree-control-context-menu-options")&&document.getElementById(e.target.id).focus()},e.prototype.performAction=function(e){this.gridService.sendSelectedNodesAndAction(e,this.selectedNodes)},e.prototype.onKeydown=function(e){var t;if(e.preventDefault(),e.stopPropagation(),38===e.which||40===e.which){(t=this.getSiblingElement(38===e.which,e.target.id))||(t=38===e.which?document.getElementById(e.target.id).parentElement.lastElementChild:document.getElementById(e.target.id).parentElement.firstElementChild);var n=document.querySelectorAll(".tree-control-context-menu-options"),i=void 0;for(i=0;i0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,i=0;i0;a||(a=e[s]=[]);var l=Le(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:r});else{for(var c=!1,d=0;d-1},t}(ie),Ee=["alt","control","meta","shift"],ke={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},je=function(e){function t(t){return e.call(this,t)||this}return Object(a.c)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,i){var o=t.parseEventName(n),r=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return P().onAndCancel(e,o.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=t._normalizeKey(n.pop()),r="";if(Ee.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=i,s.fullKey=r,s},t.getEventFullKey=function(e){var t="",n=P().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ee.forEach(function(i){i!=n&&(0,ke[i])(e)&&(t+=i+".")}),t+=n},t.eventCallback=function(e,n,i){return function(o){t.getEventFullKey(o)===e&&i.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ie),Ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var i=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(i,this.inertBodyElement),this.DOM.appendChild(n,i)}this.DOM.setInnerHTML(this.inertBodyElement,''),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'

    '),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e=""+e+"";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e=""+e+"";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,i){"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.DOM.removeAttribute(e,i)});for(var n=0,i=this.DOM.childNodesAsList(e);n")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();Ze.hasOwnProperty(t)&&!He.hasOwnProperty(t)&&(this.buf.push(""))},e.prototype.chars=function(e){this.buf.push(qe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Ke=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Je=/([^\#-~ |!])/g;function qe(e){return e.replace(/&/g,"&").replace(Ke,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Je,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}var $e=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),et=/^url\(([^)]+)\)$/,tt=function(){},nt=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(a.c)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case o.A.NONE:return t;case o.A.HTML:return t instanceof ot?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=P(),i=null;try{Fe=Fe||new Ae(e,n);var r=t?String(t):"";i=Fe.getInertBodyElement(r);var s=5,a=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=a,a=n.getInnerHTML(i),i=Fe.getInertBodyElement(r)}while(r!==a);var u=new Xe,l=u.sanitizeChildren(n.getTemplateContent(i)||i);return Object(o.L)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),l}finally{if(i)for(var c=n.getTemplateContent(i)||i,d=0,h=n.childNodesAsList(c);d=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),gt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(function(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function ft(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var mt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(ft(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(ft(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}(),yt=function(){},vt=function(){},bt=Object.freeze({dispose:function(){}});function _t(e){for(var t=[],n=1;n0;){var i=this._deliveryQueue.shift(),o=i[0],r=i[1];try{"function"==typeof o?o.call(void 0,r):o[0].call(o[1],r)}catch(n){xt(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}(),Wt=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new zt({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};return this.events.push(n),this.hasListeners&&this.hook(n),wt(function(e){var t,n=this,i=!1;return function(){return i?t:(i=!0,t=e.apply(n,arguments))}}(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},e.prototype.onFirstListenerAdd=function(){var e=this;this.hasListeners=!0,this.events.forEach(function(t){return e.hook(t)})},e.prototype.onLastListenerRemove=function(){var e=this;this.hasListeners=!1,this.events.forEach(function(t){return e.unhook(t)})},e.prototype.hook=function(e){var t=this;e.listener=e.event(function(e){return t.emitter.fire(e)})},e.prototype.unhook=function(e){e.listener.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();function Ft(e,t,n,i){var o;void 0===n&&(n=100),void 0===i&&(i=!1);var r=void 0,s=void 0,a=0,u=new zt({onFirstListenerAdd:function(){o=e(function(e){a++,r=t(r,e),i&&!s&&u.fire(r),clearTimeout(s),s=setTimeout(function(){var e=r;r=void 0,s=void 0,(!i||a>1)&&u.fire(e),a=0},n)})},onLastListenerRemove:function(){o.dispose()}});return u.event}var Ht=function(){function e(){this.buffers=[]}return e.prototype.wrapEvent=function(e){var t=this;return function(n,i,o){return e(function(e){var o=t.buffers[t.buffers.length-1];o?o.push(function(){return n.call(i,e)}):n.call(i,e)},void 0,o)}},e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();function Bt(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return n.call(i,t(e))},null,o)}}function Vt(e,t){return function(n,i,o){return void 0===i&&(i=null),e(function(e){return t(e)&&n.call(i,e)},null,o)}}var Yt=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(Bt(this._event,t))},e.prototype.forEach=function(t){return new e((n=this._event,i=t,function(e,t,o){return void 0===t&&(t=null),n(function(n){i(n),e.call(t,n)},null,o)}));var n,i},e.prototype.filter=function(t){return new e(Vt(this._event,t))},e.prototype.latch=function(){return new e((n=!0,Vt(this._event,function(e){var i=n||e!==t;return n=!1,t=e,i})));var t,n},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e}();function Zt(e){return new Yt(e)}var Ut,Gt=function(){function e(){this.emitter=new zt,this.event=this.emitter.event,this.disposable=bt}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}(),Qt=function(){function e(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}return e.prototype.define=function(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e},e.prototype.keyCodeToStr=function(e){return this._keyCodeToStr[e]},e.prototype.strToKeyCode=function(e){return this._strToKeyCode[e.toLowerCase()]||0},e}(),Xt=new Qt,Kt=new Qt,Jt=new Qt;function qt(e,t){return(e|(65535&t)<<16>>>0)>>>0}function $t(e,t){if(0===e)return null;var n=(65535&e)>>>0,i=(4294901760&e)>>>16;return 0!==i?new on(en(n,t),en(i,t)):en(n,t)}function en(e,t){var n=!!(2048&e),i=!!(256&e);return new nn(2===t?i:n,!!(1024&e),!!(512&e),2===t?n:i,255&e)}!function(){function e(e,t,n,i){void 0===n&&(n=t),void 0===i&&(i=n),Xt.define(e,t),Kt.define(e,n),Jt.define(e,i)}e(0,"unknown"),e(1,"Backspace"),e(2,"Tab"),e(3,"Enter"),e(4,"Shift"),e(5,"Ctrl"),e(6,"Alt"),e(7,"PauseBreak"),e(8,"CapsLock"),e(9,"Escape"),e(10,"Space"),e(11,"PageUp"),e(12,"PageDown"),e(13,"End"),e(14,"Home"),e(15,"LeftArrow","Left"),e(16,"UpArrow","Up"),e(17,"RightArrow","Right"),e(18,"DownArrow","Down"),e(19,"Insert"),e(20,"Delete"),e(21,"0"),e(22,"1"),e(23,"2"),e(24,"3"),e(25,"4"),e(26,"5"),e(27,"6"),e(28,"7"),e(29,"8"),e(30,"9"),e(31,"A"),e(32,"B"),e(33,"C"),e(34,"D"),e(35,"E"),e(36,"F"),e(37,"G"),e(38,"H"),e(39,"I"),e(40,"J"),e(41,"K"),e(42,"L"),e(43,"M"),e(44,"N"),e(45,"O"),e(46,"P"),e(47,"Q"),e(48,"R"),e(49,"S"),e(50,"T"),e(51,"U"),e(52,"V"),e(53,"W"),e(54,"X"),e(55,"Y"),e(56,"Z"),e(57,"Meta"),e(58,"ContextMenu"),e(59,"F1"),e(60,"F2"),e(61,"F3"),e(62,"F4"),e(63,"F5"),e(64,"F6"),e(65,"F7"),e(66,"F8"),e(67,"F9"),e(68,"F10"),e(69,"F11"),e(70,"F12"),e(71,"F13"),e(72,"F14"),e(73,"F15"),e(74,"F16"),e(75,"F17"),e(76,"F18"),e(77,"F19"),e(78,"NumLock"),e(79,"ScrollLock"),e(80,";",";","OEM_1"),e(81,"=","=","OEM_PLUS"),e(82,",",",","OEM_COMMA"),e(83,"-","-","OEM_MINUS"),e(84,".",".","OEM_PERIOD"),e(85,"/","/","OEM_2"),e(86,"`","`","OEM_3"),e(110,"ABNT_C1"),e(111,"ABNT_C2"),e(87,"[","[","OEM_4"),e(88,"\\","\\","OEM_5"),e(89,"]","]","OEM_6"),e(90,"'","'","OEM_7"),e(91,"OEM_8"),e(92,"OEM_102"),e(93,"NumPad0"),e(94,"NumPad1"),e(95,"NumPad2"),e(96,"NumPad3"),e(97,"NumPad4"),e(98,"NumPad5"),e(99,"NumPad6"),e(100,"NumPad7"),e(101,"NumPad8"),e(102,"NumPad9"),e(103,"NumPad_Multiply"),e(104,"NumPad_Add"),e(105,"NumPad_Separator"),e(106,"NumPad_Subtract"),e(107,"NumPad_Decimal"),e(108,"NumPad_Divide")}(),function(e){e.toString=function(e){return Xt.keyCodeToStr(e)},e.fromString=function(e){return Xt.strToKeyCode(e)},e.toUserSettingsUS=function(e){return Kt.keyCodeToStr(e)},e.toUserSettingsGeneral=function(e){return Jt.keyCodeToStr(e)},e.fromUserSettings=function(e){return Kt.strToKeyCode(e)||Jt.strToKeyCode(e)}}(Ut||(Ut={}));var tn,nn=function(){function e(e,t,n,i,o){this.type=1,this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyCode=o}return e.prototype.equals=function(e){return 1===e.type&&this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode},e.prototype.getHashCode=function(){return(this.ctrlKey?"1":"0")+(this.shiftKey?"1":"0")+(this.altKey?"1":"0")+(this.metaKey?"1":"0")+this.keyCode},e.prototype.isModifierKey=function(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode},e.prototype.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode},e}(),on=function(){function e(e,t){this.type=2,this.firstPart=e,this.chordPart=t}return e.prototype.getHashCode=function(){return this.firstPart.getHashCode()+";"+this.chordPart.getHashCode()},e}(),rn=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column},e.prototype.isBefore=function(t){return e.isBefore(this,t)},e.isBefore=function(e,t){return e.lineNumbern||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 rn(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new rn(this.startLineNumber,this.startColumn)},e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)},e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)},e.prototype.collapseToStart=function(){return e.collapseToStart(this)},e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)},e.fromPositions=function(t,n){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn},e.areIntersectingOrTouching=function(e,t){return!(e.endLineNumbere.startLineNumber},e}();!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(tn||(tn={}));var an,un,ln=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.selectionStartLineNumber=t,r.selectionStartColumn=n,r.positionLineNumber=i,r.positionColumn=o,r}return Object(a.c)(t,e),t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)},t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)},t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn},t.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?tn.LTR:tn.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===tn.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new rn(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===tn.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),new t(e.lineNumber,e.column,n.lineNumber,n.column)},t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)},t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,i=e.length;n0)n.left||(n.left=new mi,n.left.str=i.value()),n=n.left;else if(o<0)n.right||(n.right=new mi,n.right.str=i.value()),n=n.right;else{if(!i.hasNext())break;i.next(),n.mid||(n.mid=new mi,n.mid.str=i.value()),n=n.mid}}var r=n.element;return n.element=t,r},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var i=t.cmp(n.str);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.element:void 0},e.prototype.delete=function(e){for(var t=this._iter.reset(e),n=[],i=this._root;i;){var o=t.cmp(i.str);if(o>0)n.push([1,i]),i=i.left;else if(o<0)n.push([-1,i]),i=i.right;else{if(!t.hasNext()){for(i.element=void 0;n.length>0&&i.isEmpty();){var r=n.pop(),s=r[1];switch(r[0]){case 1:s.left=void 0;break;case 0:s.mid=void 0;break;case-1:s.right=void 0}i=s}break}t.next(),n.push([0,i]),i=i.mid}}},e.prototype.findSubstr=function(e){for(var t,n=this._iter.reset(e),i=this._root;i;){var o=n.cmp(i.str);if(o>0)i=i.left;else if(o<0)i=i.right;else{if(!n.hasNext())break;n.next(),t=i.element||t,i=i.mid}}return i&&i.element||t},e.prototype.findSuperstr=function(t){for(var n=this._iter.reset(t),i=this._root;i;){var o=n.cmp(i.str);if(o>0)i=i.left;else if(o<0)i=i.right;else{if(!n.hasNext()){if(!i.mid)return;var r=new e(this._iter);return r._root=i.mid,r}n.next(),i=i.mid}}},e.prototype.forEach=function(e){this._forEach(this._root,[],e)},e.prototype._forEach=function(e,t,n){e&&(this._forEach(e.left,t,n),t.push(e.str),e.element&&n(e.element,this._iter.join(t)),this._forEach(e.mid,t,n),t.pop(),this._forEach(e.right,t,n))},e}(),vi=function(e){function t(){return e.call(this)||this}return Object(a.c)(t,e),t.prototype.keys=function(){return(e=this.map,t=[],e.forEach(function(e,n){return t.push(n)}),t).map(function(e){return Tn.parse(e)});var e,t},t}(function(){function e(e){this.ignoreCase=e,this.map=new Map}return e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)},e.prototype.get=function(e){return this.map.get(this.toKey(e))},e.prototype.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return e=[],this.map.forEach(function(t){return e.push(t)}),e;var e},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e}()),bi=function(e){return e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew",e}({}),_i=function(e){function t(t,n){void 0===n&&(n=1);var i=e.call(this)||this;return i._limit=t,i._ratio=Math.min(Math.max(0,n),1),i}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,bi.AsNew)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,bi.None)},t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,bi.AsNew),this.checkTrim()},t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},t}(function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.get=function(e,t){void 0===t&&(t=bi.None);var n=this._map.get(e);if(n)return t!==bi.None&&this.touch(n,t),n.value},e.prototype.set=function(e,t,n){void 0===n&&(n=bi.None);var i=this._map.get(e);if(i)i.value=t,n!==bi.None&&this.touch(i,n);else{switch(i={key:e,value:t,next:void 0,previous:void 0},n){case bi.None:this.addItemLast(i);break;case bi.AsOld:this.addItemFirst(i);break;case bi.AsNew:default:this.addItemLast(i)}this._map.set(e,i),this._size++}},e.prototype.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t.previous=void 0}else this.clear()},e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e},e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e},e.prototype.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(t===bi.AsOld||t===bi.AsNew)if(t===bi.AsOld){if(e===this._head)return;var n=e.next,i=e.previous;e===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(t===bi.AsNew){if(e===this._tail)return;n=e.next,i=e.previous,e===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}},e}()),Mi="";function wi(e){return!e||"string"!=typeof e||0===e.trim().length}function Ci(e,t,n){void 0===n&&(n="0");for(var i=""+e,o=[i],r=i.length;r=t.length?e:t[i]})}function Ii(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function Si(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function xi(e,t){return void 0===t&&(t=" "),Ti(Di(e,t),t)}function Di(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var i=0;e.indexOf(t,i)===i;)i+=n;return e.substring(i)}function Ti(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;-1!==(r=e.lastIndexOf(t,o-1))&&r+n===o;){if(0===r)return"";o=r}return e.substring(0,o)}function Ei(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ki(e){return e.replace(/\*/g,"")}function ji(e,t){if(e.length0?e.indexOf(t,n)===n:0===n&&e===t}function Oi(e,t,n){if(void 0===n&&(n={}),!e)throw new Error("Cannot create regex from empty string");t||(e=Si(e)),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 Pi(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex}function Ri(e){return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)}var zi="function"==typeof"".normalize,Wi=new _i(1e4);function Fi(e){return Yi(e,"NFC",Wi)}var Hi=new _i(1e4);function Bi(e){return Yi(e,"NFD",Hi)}var Vi=/[^\u0000-\u0080]/;function Yi(e,t,n){return zi&&e?n.get(e)||(i=Vi.test(e)?e.normalize(t):e,n.set(e,i),i):e;var i}function Zi(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 Qi(e,t){return et?1:0}function Xi(e,t){for(var n=Math.min(e.length,t.length),i=0;it.length?1:0}function Ki(e){return e>=97&&e<=122}function Ji(e){return e>=65&&e<=90}function qi(e){return Ki(e)||Ji(e)}function $i(e,t){return(e?e.length:0)===(t?t.length:0)&&eo(e,t)}function eo(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var i=0;ie.length)&&eo(e,t,t.length)}function no(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(oo(e,o,n,t,0,i))return i;i-=1,o+=1}return 0}function so(e){return 55296<=e&&e<=56319}function ao(e){return 56320<=e&&e<=57343}var uo=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function lo(e){return uo.test(e)}var co=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function ho(e){return co.test(e)}var po=/^[\t\n\r\x20-\x7E]*$/;function go(e){return po.test(e)}function fo(e){for(var t=0,n=e.length;t=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function yo(e,t){if(e.length0&&65279===e.charCodeAt(0)}function No(e){return Lo(e)?e.substr(1):e}function Io(e){return btoa(encodeURIComponent(e))}function So(e,t){for(var n="",i=0;i=0){var t=e.split("!=");return new Ao(t[0].trim(),this._deserializeValue(t[1]))}return e.indexOf("==")>=0?(t=e.split("=="),new jo(t[0].trim(),this._deserializeValue(t[1]))):e.indexOf("=~")>=0?(t=e.split("=~"),new Po(t[0].trim(),this._deserializeRegexValue(t[1]))):/^\!\s*/.test(e)?new Oo(e.substr(1).trim()):new ko(e)},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e){if(wi(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null;var i=e.slice(t+1,n),o="i"===e[n+1]?"i":"";try{return new RegExp(i,o)}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null}},e}();function Eo(e,t){var n=e.getType(),i=t.getType();if(n!==i)return n-i;switch(n){case wo.Defined:case wo.Not:case wo.Equals:case wo.NotEquals:case wo.Regex:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var ko=function(){function e(e){this.key=e}return e.prototype.getType=function(){return wo.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.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key},e.prototype.keys=function(){return[this.key]},e}(),jo=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return wo.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.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new ko(this.key):new Oo(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}(),Ao=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return wo.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.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new Oo(this.key):new ko(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}(),Oo=function(){function e(e){this.key=e}return e.prototype.getType=function(){return wo.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.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return"!"+this.key},e.prototype.keys=function(){return[this.key]},e}(),Po=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return wo.Regex},e.prototype.cmp=function(e){if(this.keye.key)return 1;var t=this.regexp?this.regexp.source:void 0;return te.regexp.source?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key&&(this.regexp?this.regexp.source:void 0)===t.regexp.source},e.prototype.evaluate=function(e){return!!this.regexp&&this.regexp.test(e.getValue(this.key))},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key+" =~ /"+(this.regexp?this.regexp.source:"")+"/"+(this.regexp.ignoreCase?"i":"")},e.prototype.keys=function(){return[this.key]},e}(),Ro=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return wo.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;n=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Ut.toString(e)},t.prototype._getElectronAcceleratorLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?null:this._keyCodeToElectronAccelerator(e.keyCode):null},t.prototype.getElectronAccelerator=function(){if(null!==this._chordPart)return null;var e=this._getElectronAcceleratorLabelForKeybinding(this._firstPart);return $o.toLabel(this._firstPart,e,null,null,this._os)},t.prototype._getUserSettingsLabelForKeybinding=function(e){return e?e.isDuplicateModifierCase()?"":Ut.toUserSettingsUS(e.keyCode):null},t.prototype.getUserSettingsLabel=function(){var e=this._getUserSettingsLabelForKeybinding(this._firstPart),t=this._getUserSettingsLabelForKeybinding(this._chordPart),n=er.toLabel(this._firstPart,e,this._chordPart,t,this._os);return n?n.toLowerCase():n},t.prototype.isWYSIWYG=function(){return!0},t.prototype.isChord=function(){return!!this._chordPart},t.prototype.getParts=function(){return[this._toResolvedKeybindingPart(this._firstPart),this._toResolvedKeybindingPart(this._chordPart)]},t.prototype._toResolvedKeybindingPart=function(e){return e?new function(e,t,n,i,o,r){this.ctrlKey=e,this.shiftKey=t,this.altKey=n,this.metaKey=i,this.keyLabel=o,this.keyAriaLabel=r}(e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getUILabelForKeybinding(e),this._getAriaLabelForKeybinding(e)):null},t.prototype.getDispatchParts=function(){return[this._firstPart?t.getDispatchStr(this._firstPart):null,this._chordPart?t.getDispatchStr(this._chordPart):null]},t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";return e.ctrlKey&&(t+="ctrl+"),e.shiftKey&&(t+="shift+"),e.altKey&&(t+="alt+"),e.metaKey&&(t+="meta+"),t+Ut.toString(e.keyCode)},t}(function(){});function ir(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]}function or(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 sr(e,t){return function e(t,n){if(!(t.length<=1)){var i=t.length/2|0,o=t.slice(0,i),r=t.slice(i);e(o,n),e(r,n);for(var s=0,a=0,u=0;st;o--)i.push(o);return i}var pr=function(){function e(t,n){this._defaultKeybindings=t,this._defaultBoundCommands=new Map;for(var i=0,o=t.length;i=0;c--)this._isTargetedForRemoval(e[c],a,u,s,l)&&e.splice(c,1);else n.push(r)}return e.concat(n)},e.prototype._addKeyPress=function(t,n){var i=this._map.get(t);if("undefined"==typeof i)return this._map.set(t,[n]),void this._addToLookupMap(n);for(var o=i.length-1;o>=0;o--){var r=i[o];r.command!==n.command&&(null!==r.keypressChordPart&&null!==n.keypressChordPart&&r.keypressChordPart!==n.keypressChordPart||e.whenIsEntirelyIncluded(r.when,n.when)&&this._removeFromLookupMap(r))}i.push(n),this._addToLookupMap(n)},e.prototype._addToLookupMap=function(e){if(e.command){var t=this._lookupMap.get(e.command);"undefined"==typeof t?this._lookupMap.set(e.command,t=[e]):t.push(e)}},e.prototype._removeFromLookupMap=function(e){var t=this._lookupMap.get(e.command);if("undefined"!=typeof t)for(var n=0,i=t.length;n=0;o--)n[i++]=t[o];return n},e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);return"undefined"==typeof t||0===t.length?null:t[t.length-1]},e.prototype.resolve=function(e,t,n){var i=null;if(null!==t){if("undefined"==typeof(a=this._map.get(t)))return null;i=[];for(var o=0,r=a.length;o=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.getAllUnboundCommands=function(e){var t=hi.getCommands(),n=[];for(var i in t)"_"!==i[0]&&0!==i.indexOf("vscode.")&&("object"!=typeof t[i].description||ur(t[i].description.args))&&!0!==e.get(i)&&n.push(i);return n},e}(),gr="/",fr=mn.g?"\\":"/";function mr(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===t)return".";if(0==~t)return e[0];var n=e.substring(0,~t);return mn.g&&":"===n[n.length-1]&&(n+=fr),n}function yr(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?yr(e.substring(0,e.length-1)):e.substr(1+~t)}var vr=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,br=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;function _r(e,t){if(null===e||void 0===e)return e;var n=e.length;if(0===n)return".";var i=mn.g&&t;if(function(e,t){return i?!br.test(e):!vr.test(e)}(e))return e;for(var o=i?"\\":"/",r=function(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,i=e.charCodeAt(0);if(47===i||92===i){if((47===(i=e.charCodeAt(1))||92===i)&&47!==(i=e.charCodeAt(2))&&92!==i){for(var o=3,r=o;o=65&&i<=90||i>=97&&i<=122)&&58===e.charCodeAt(1))return 47===(i=e.charCodeAt(2))||92===i?e.slice(0,2)+t:e.slice(0,2);var s=e.indexOf("://");if(-1!==s)for(s+=3;s0)&&".."!==d&&(u=-1===c?"":u.slice(0,c),a=!0)}else Mr(e,s,l,".")&&(r||u||l0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=n.charCodeAt(0);47!==o&&92!==o&&(e+=gr)}}e+=n}return _r(e)},Cr=Qn("fileService"),Lr=function(e){return e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED",e}({});function Nr(e,t,n){if(!e)return null;if("string"==typeof e&&(e=Tn.file(e)),e.scheme!==Bo.file&&e.scheme!==Bo.untitled)return e.with({query:null,fragment:null}).toString(!0);var i=t?t.getWorkspaceFolder(e):null;if(i){var o=t.getWorkspace().folders.length>1,r=void 0;if(r=(mn.c?i.uri.fsPath===e.fsPath:$i(i.uri.fsPath,e.fsPath))?"":_r(Di(e.fsPath.substr(i.uri.fsPath.length),fr),!0),o){var s=yr(i.uri.fsPath);r=r?wr(s,r):s}return r}if(Sr(e.fsPath))return _r(xr(e.fsPath),!0);var a=_r(e.fsPath,!0);return!mn.g&&n&&(a=function(e,t){if(mn.g||!e||!t)return e;var n=Dr.original===t?Dr.normalized:void 0;return n||(n=""+Ti(t,gr)+gr,Dr={original:t,normalized:n}),(mn.c?ji(e,n):to(e,n))&&(e="~/"+e.substr(n.length)),e}(a,n.userHome)),a}function Ir(e){if(!e)return null;"string"==typeof e&&(e=Tn.file(e));var t=yr(e.fsPath)||e.fsPath;return Sr(t)?xr(t):t}function Sr(e){return mn.g&&e&&":"===e[1]}function xr(e){return Sr(e)?e.charAt(0).toUpperCase()+e.slice(1):e}Error;var Dr=Object.create(null);Qn("workspacesMainService"),Qn("workspacesService"),Yo("codeWorkspace","Code Workspace");var Tr,Er=Qn("contextService");!function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(Tr||(Tr={}));var kr=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return this.uri.with({path:wr(this.uri.path,e)})},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();function jr(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]&&"object"==typeof e[n]?jr(e[n]):e[n]}),t}var Ar=Object.prototype.hasOwnProperty;function Or(e,t,n){return void 0===n&&(n=!0),ti(e)?(ti(t)&&Object.keys(t).forEach(function(i){i in e?n&&(ti(e[i])&&ti(t[i])?Or(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]}),e):t}function Pr(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n,i;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n0&&"#"===n.charAt(n.length-1)?n.substring(0,n.length-1):n)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}());Fr.add("base.contributions.json",Hr);var Br,Vr={Configuration:"base.contributions.configuration"};!function(e){e[e.WINDOW=1]="WINDOW",e[e.RESOURCE=2]="RESOURCE"}(Br||(Br={}));var Yr={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown configuration setting"},Zr={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown configuration setting"},Ur="vscode://schemas/settings/editor",Gr=Fr.as("base.contributions.json"),Qr=function(){function e(){this.overrideIdentifiers=[],this._onDidRegisterConfiguration=new zt,this.onDidRegisterConfiguration=this._onDidRegisterConfiguration.event,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),Gr.registerSchema(Ur,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=this.toConfiguration(t);o&&e.push(o);var r=[];e.forEach(function(e){r.push.apply(r,i.validateAndRegisterProperties(e,n)),i.configurationContributors.push(e),i.registerJSONConfiguration(e),i.updateSchemaForOverrideSettingsConfiguration(e)}),this._onDidRegisterConfiguration.fire(r)},e.prototype.notifyConfigurationSchemaUpdated=function(e){Gr.notifySchemaChanged(Ur)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var t={id:"defaultOverrides",title:Yo("defaultConfigurations.title","Default Configuration Overrides"),properties:{}},n=0,i=e;n0;){var n=t.shift();for(var i in Object.freeze(n),n)if(Ar.call(n,i)){var o=n[i];"object"!=typeof o||Object.isFrozen(o)||t.push(o)}}return e}(e):e},e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t=0,Ss=Ns.indexOf("Edge/")>=0,xs=Is||Ss,Ds=(Ns.indexOf("Opera"),Ns.indexOf("Firefox")>=0),Ts=Ns.indexOf("AppleWebKit")>=0,Es=Ns.indexOf("Chrome")>=0,ks=-1===Ns.indexOf("Chrome")&&Ns.indexOf("Safari")>=0,js=Ns.indexOf("iPad")>=0,As=Ns.indexOf("Chrome/56.")>=0&&-1===Ns.indexOf("Edge/"),Os={3:7,8:1,9:2,13:3,16:4,17:5,18:6,19:7,20:8,27:9,32:10,33:11,34:12,35:13,36:14,37:15,38:16,39:17,40:18,45:19,46:20,48:21,49:22,50:23,51:24,52:25,53:26,54:27,55:28,56:29,57:30,65:31,66:32,67:33,68:34,69:35,70:36,71:37,72:38,73:39,74:40,75:41,76:42,77:43,78:44,79:45,80:46,81:47,82:48,83:49,84:50,85:51,86:52,87:53,88:54,89:55,90:56,93:58,96:93,97:94,98:95,99:96,100:97,101:98,102:99,103:100,104:101,105:102,106:103,107:104,108:105,109:106,110:107,111:108,112:59,113:60,114:61,115:62,116:63,117:64,118:65,119:66,120:67,121:68,122:69,123:70,124:71,125:72,126:73,127:74,128:75,129:76,130:77,144:78,145:79,186:80,187:81,188:82,189:83,190:84,191:85,192:86,193:110,194:111,219:87,220:88,221:89,222:90,223:91,226:92,229:109};Is?Os[91]=57:Ds?(Os[59]=80,Os[107]=81,Os[109]=83,mn.d&&(Os[224]=57)):Ts&&(Os[91]=57,mn.d?Os[93]=57:Os[92]=57);var Ps=mn.d?256:2048,Rs=mn.d?2048:256,zs=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=function(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return Ut.fromString(t)}return Os[e.keyCode]||0}(t),this.code=t.code,this.ctrlKey=this.ctrlKey||5===this.keyCode,this.altKey=this.altKey||6===this.keyCode,this.shiftKey=this.shiftKey||4===this.keyCode,this.metaKey=this.metaKey||57===this.keyCode,this._asKeybinding=this._computeKeybinding(),this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}return e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding},e.prototype.equals=function(e){return this._asKeybinding===e},e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;return this.ctrlKey&&(t|=Ps),this.altKey&&(t|=512),this.shiftKey&&(t|=1024),this.metaKey&&(t|=Rs),t|e},e.prototype._computeRuntimeKeybinding=function(){var e=0;return 5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode),new nn(this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)},e}(),Ws=!1,Fs=null;function Hs(e){if(!e.parent||e.parent===e)return null;try{var t=e.location,n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port)return Ws=!0,null}catch(e){return Ws=!0,null}return e.parent}function Bs(e,t){for(var n,i=e.document.getElementsByTagName("iframe"),o=0,r=i.length;o=0;){if(r=s+o,(0===s||32===n.charCodeAt(s-1))&&32===n.charCodeAt(r))return this._lastStart=s,void(this._lastEnd=r+1);if(s>0&&32===n.charCodeAt(s-1)&&r===i)return this._lastStart=s-1,void(this._lastEnd=r);if(0===s&&r===i)return this._lastStart=0,void(this._lastEnd=r)}this._lastStart=-1}else this._lastStart=-1}else this._lastStart=-1},e.prototype.hasClass=function(e,t){return this._findClassName(e,t),-1!==this._lastStart},e.prototype.addClass=function(e,t){e.className?(this._findClassName(e,t),-1===this._lastStart&&(e.className=e.className+" "+t)):e.className=t},e.prototype.removeClass=function(e,t){this._findClassName(e,t),-1!==this._lastStart&&(e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd))},e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t),-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t),-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)},e}()),Js=new(function(){function e(){}return e.prototype.hasClass=function(e,t){return t&&e.classList&&e.classList.contains(t)},e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)},e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)},e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)},e}()),qs=Is?Ks:Js,$s=qs.hasClass.bind(qs),ea=qs.addClass.bind(qs),ta=qs.removeClass.bind(qs),na=qs.toggleClass.bind(qs),ia=function(){function e(e,t,n,i){this._node=e,this._type=t,this._handler=n,this._useCapture=i||!1,this._node.addEventListener(this._type,this._handler,this._useCapture)}return e.prototype.dispose=function(){this._handler&&(this._node.removeEventListener(this._type,this._handler,this._useCapture),this._node=null,this._handler=null)},e}();function oa(e,t,n,i){return new ia(e,t,n,i)}var ra=function(e,t,n,i){var o=n;return"click"===t||"mousedown"===t?o=function(e){return function(t){return e(new Ys(t))}}(n):"keydown"!==t&&"keypress"!==t&&"keyup"!==t||(o=function(e){return function(t){return e(new zs(t))}}(n)),oa(e,t,o,i)};function sa(e,t){return oa(e,"mouseout",function(n){for(var i=n.relatedTarget||n.toElement;i&&i!==e;)i=i.parentNode;i!==e&&t(n)})}var aa,ua,la,ca,da,ha,pa,ga=null,fa=function(){function e(e,t){this._runner=e,this.priority=t,this._canceled=!1}return e.prototype.dispose=function(){this._canceled=!0},e.prototype.execute=function(){if(!this._canceled)try{this._runner()}catch(e){xt(e)}},e.sort=function(e,t){return t.priority-e.priority},e}();la=[],ca=null,da=!1,ha=!1,pa=function(){for(da=!1,ca=la,la=[],ha=!0;ca.length>0;)ca.sort(fa.sort),ca.shift().execute();ha=!1},ua=function(e,t){void 0===t&&(t=0);var n=new fa(e,t);return la.push(n),da||(da=!0,ga||(ga=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||function(e){return setTimeout(function(){return e((new Date).getTime())},0)}),ga(pa)),n},aa=function(e,t){if(ha){var n=new fa(e,t);return ca.push(n),n}return ua(e,t)};var ma=16,ya=function(e,t){return t},va=function(e){function t(t,n,i,o,r){void 0===o&&(o=ya),void 0===r&&(r=ma);var s=e.call(this)||this,a=null,u=0,l=s._register(new vs),c=function(){u=(new Date).getTime(),i(a),a=null};return s._register(oa(t,n,function(e){a=o(a,e);var t=(new Date).getTime()-u;t>=r?(l.cancel(),c()):l.setIfNotSet(c,r-t)})),s}return Object(a.c)(t,e),t}(Ct);function ba(e,t,n,i,o){return new va(e,t,n,i,o)}function _a(e){return document.defaultView.getComputedStyle(e,null)}var Ma=function(e,t){return parseFloat(t)||0};function wa(e,t,n){var i=_a(e),o="0";return i&&(o=i.getPropertyValue?i.getPropertyValue(t):i.getAttribute(n)),Ma(e,o)}var Ca={getBorderLeftWidth:function(e){return wa(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return wa(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return wa(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return wa(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return wa(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return wa(e,"padding-right","paddingRight")},getPaddingTop:function(e){return wa(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return wa(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return wa(e,"margin-left","marginLeft")},getMarginTop:function(e){return wa(e,"margin-top","marginTop")},getMarginRight:function(e){return wa(e,"margin-right","marginRight")},getMarginBottom:function(e){return wa(e,"margin-bottom","marginBottom")},__commaSentinel:!1};function La(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=_a(e);o&&(i-="rtl"!==o.direction?e.scrollLeft:-e.scrollLeft),e===t&&(i+=Ca.getBorderLeftWidth(e),n+=Ca.getBorderTopWidth(e),n+=e.offsetTop,i+=e.offsetLeft,t=e.offsetParent)}return{left:i,top:n}}function Na(e){var t=e.getBoundingClientRect();return{left:t.left+Ia.scrollX,top:t.top+Ia.scrollY,width:t.width,height:t.height}}var Ia=new(function(){function e(){}return Object.defineProperty(e.prototype,"scrollX",{get:function(){return"number"==typeof window.scrollX?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scrollY",{get:function(){return"number"==typeof window.scrollY?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),e}());function Sa(e){var t=Ca.getMarginLeft(e)+Ca.getMarginRight(e);return e.offsetWidth+t}function xa(e){var t=Ca.getBorderLeftWidth(e)+Ca.getBorderRightWidth(e),n=Ca.getPaddingLeft(e)+Ca.getPaddingRight(e);return e.offsetWidth-t-n}function Da(e){var t=Ca.getBorderTopWidth(e)+Ca.getBorderBottomWidth(e),n=Ca.getPaddingTop(e)+Ca.getPaddingBottom(e);return e.offsetHeight-t-n}function Ta(e){var t=Ca.getMarginTop(e)+Ca.getMarginBottom(e);return e.offsetHeight+t}function Ea(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function ka(e,t,n){for(;e;){if($s(e,t))return e;if(n&&$s(e,n))return null;e=e.parentNode}return null}function ja(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");return t.type="text/css",t.media="screen",e.appendChild(t),t}var Aa=null;function Oa(){return Aa||(Aa=ja()),Aa}function Pa(e,t){if(void 0===t&&(t=Oa()),t){for(var n=function(e){return e&&e.sheet&&e.sheet.rules?e.sheet.rules:e&&e.sheet&&e.sheet.cssRules?e.sheet.cssRules:[]}(t),i=[],o=0;o=0;o--)t.sheet.deleteRule(i[o])}}function Ra(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var za={CLICK:"click",AUXCLICK:"auxclick",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:Ts?"webkitAnimationStart":"animationstart",ANIMATION_END:Ts?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:Ts?"webkitAnimationIteration":"animationiteration"},Wa={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1,t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}},Fa=function(){function e(e){var t=this;this._onDidFocus=new zt,this.onDidFocus=this._onDidFocus.event,this._onDidBlur=new zt,this.onDidBlur=this._onDidBlur.event,this.disposables=[];var n=!1,i=!1;Gs(e,za.FOCUS,!0)(function(){i=!1,n||(n=!0,t._onDidFocus.fire())},null,this.disposables),Gs(e,za.BLUR,!0)(function(){n&&(i=!0,window.setTimeout(function(){i&&(i=!1,n=!1,t._onDidBlur.fire())},0))},null,this.disposables)}return e.prototype.dispose=function(){this.disposables=_t(this.disposables),this._onDidFocus.dispose(),this._onDidBlur.dispose()},e}();function Ha(e){return new Fa(e)}function Ba(e){for(var t=[],n=1;n=21&&e<=30||e>=31&&e<=56||80===e||81===e||82===e||83===e||84===e||85===e||86===e||110===e||111===e||87===e||88===e||89===e||90===e||91===e||92===e},e.prototype._assertNoCtrlAlt=function(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)},e.prototype._registerDefaultKeybinding=function(e,t,n,i,o,r){0===r&&1===mn.a&&this._assertNoCtrlAlt(2===e.type?e.firstPart:e,t),this._keybindings.push({keybinding:e,command:t,commandArgs:null,when:o,weight1:n,weight2:i}),this._keybindingsSorted=!1},e.prototype.getDefaultKeybindings=function(){return this._keybindingsSorted||(this._keybindings.sort($a),this._keybindingsSorted=!0),this._keybindings.slice(0)},e}());function $a(e,t){return e.weight1!==t.weight1?e.weight1-t.weight1:e.commandt.command?1:e.weight2-t.weight2}Fr.add("platform.keybindingsRegistry",qa);var eu=function(){function e(e,t,n,i,o){void 0===t&&(t=""),void 0===n&&(n=""),void 0===i&&(i=!0),this._onDidChange=new zt,this._id=e,this._label=t,this._cssClass=n,this._enabled=i,this._actionCallback=o}return e.prototype.dispose=function(){this._onDidChange.dispose()},Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){this._setLabel(e)},enumerable:!0,configurable:!0}),e.prototype._setLabel=function(e){this._label!==e&&(this._label=e,this._onDidChange.fire({label:e}))},Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._setTooltip(e)},enumerable:!0,configurable:!0}),e.prototype._setTooltip=function(e){this._tooltip!==e&&(this._tooltip=e,this._onDidChange.fire({tooltip:e}))},Object.defineProperty(e.prototype,"class",{get:function(){return this._cssClass},set:function(e){this._setClass(e)},enumerable:!0,configurable:!0}),e.prototype._setClass=function(e){this._cssClass!==e&&(this._cssClass=e,this._onDidChange.fire({class:e}))},Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._setEnabled(e)},enumerable:!0,configurable:!0}),e.prototype._setEnabled=function(e){this._enabled!==e&&(this._enabled=e,this._onDidChange.fire({enabled:e}))},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(e){this._setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"radio",{get:function(){return this._radio},set:function(e){this._setRadio(e)},enumerable:!0,configurable:!0}),e.prototype._setChecked=function(e){this._checked!==e&&(this._checked=e,this._onDidChange.fire({checked:e}))},e.prototype._setRadio=function(e){this._radio!==e&&(this._radio=e,this._onDidChange.fire({radio:e}))},Object.defineProperty(e.prototype,"order",{get:function(){return this._order},set:function(e){this._order=e},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){return void 0!==this._actionCallback?this._actionCallback(e):Nt.b.as(!0)},e}(),tu=function(){function e(){this._onDidBeforeRun=new zt,this._onDidRun=new zt}return Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.run=function(e,t){var n=this;return e.enabled?(this._onDidBeforeRun.fire({action:e}),this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t})},function(t){n._onDidRun.fire({action:e,error:t})})):Nt.b.as(null)},e.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Nt.b.is(n)?n:Nt.b.wrap(n)},e.prototype.dispose=function(){this._onDidBeforeRun.dispose(),this._onDidRun.dispose()},e}(),nu=function(e){for(var t=[],n=1;n=0&&i.splice(e,1)}}},e.prototype.getMenuItems=function(e){var t=e.id,n=this._menuItems[t]||[];return t===iu.CommandPalette.id&&this._appendImplicitItems(n),n},e.prototype._appendImplicitItems=function(e){for(var t=new Set,n=0,i=e;n0&&t.push([r,s])}return t},e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,i=e.keys();ns?1:("string"==typeof e.command.title?e.command.title:e.command.title.value).localeCompare("string"==typeof t.command.title?t.command.title:t.command.title.value)},e=Object(a.b)([Object(a.d)(2,di),Object(a.d)(3,Wo)],e)}(),uu=function(e,t,n,i,o){if(this.resolvedKeybinding=e,e){var r=e.getDispatchParts(),s=r[1];this.keypressFirstPart=r[0],this.keypressChordPart=s}else this.keypressFirstPart=null,this.keypressChordPart=null;this.bubble=!!t&&94===t.charCodeAt(0),this.command=this.bubble?t.substr(1):t,this.commandArgs=n,this.when=i,this.isDefault=o},lu=Qn("notificationService"),cu=function(){function e(){this.progress=new du,this._onDidDispose=new zt}return Object.defineProperty(e.prototype,"onDidDispose",{get:function(){return this._onDidDispose.event},enumerable:!0,configurable:!0}),e.prototype.updateSeverity=function(e){},e.prototype.updateMessage=function(e){},e.prototype.updateActions=function(e){},e.prototype.dispose=function(){this._onDidDispose.dispose()},e}(),du=function(){function e(){}return e.prototype.infinite=function(){},e.prototype.done=function(){},e.prototype.total=function(e){},e.prototype.worked=function(e){},e}(),hu=function(){function e(e){this._widget=e}return e.prototype.getId=function(){return"editor"},e.prototype.getControl=function(){return this._widget},e.prototype.focus=function(){this._widget.focus()},e.prototype.isVisible=function(){return!0},e.prototype.withTypedEditor=function(e,t){return Zn(this._widget)?e(this._widget):t(this._widget)},e}(),pu=function(){function e(e){this.model=e,this._onDispose=new zt}return Object.defineProperty(e.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!0,configurable:!0}),e.prototype.load=function(){return Nt.b.as(this)},Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose.fire()},e}(),gu=function(){function e(){this.openEditorDelegate=null}return e.prototype.setEditor=function(e){this.editor=new hu(e)},e.prototype.setOpenEditorDelegate=function(e){this.openEditorDelegate=e},e.prototype.openEditor=function(e,t){var n=this;return Nt.b.as(this.editor.withTypedEditor(function(t){return n.doOpenEditor(t,e)},function(t){return n.doOpenEditor(t.getOriginalEditor(),e)||n.doOpenEditor(t.getModifiedEditor(),e)}))},e.prototype.doOpenEditor=function(e,t){if(!this.findModel(e,t)){if(t.resource){if(this.openEditorDelegate)return this.openEditorDelegate(t.resource.toString()),null;var n=t.resource.scheme;if(n===Bo.http||n===Bo.https)return Ja(t.resource.toString()),this.editor}return null}var i=t.options.selection;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn)e.setSelection(i),e.revealRangeInCenter(i,1);else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o),e.revealPositionInCenter(o,1)}return this.editor},e.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.resource.toString()?null:n},e}(),fu=function(){function e(){}return e.prototype.setEditor=function(e){this.editor=new hu(e)},e.prototype.createModelReference=function(e){var t,n=this;return t=this.editor.withTypedEditor(function(t){return n.findModel(t,e)},function(t){return n.findModel(t.getOriginalEditor(),e)||n.findModel(t.getModifiedEditor(),e)}),Nt.b.as(new Lt(t?new pu(t):null))},e.prototype.registerTextModelContentProvider=function(e,t){return{dispose:function(){}}},e.prototype.findModel=function(e,t){var n=e.getModel();return n.uri.toString()!==t.toString()?null:n},e}(),mu=function(){function e(){}return e.prototype.show=function(){return e.NULL_PROGRESS_RUNNER},e.prototype.showWhile=function(e,t){return null},e.NULL_PROGRESS_RUNNER={done:function(){},total:function(){},worked:function(){}},e}(),yu=function(){function e(){}return e.prototype.confirm=function(e){return this.doConfirm(e).then(function(e){return{confirmed:e,checkboxChecked:!1}})},e.prototype.doConfirm=function(e){var t=e.message;return e.detail&&(t=t+"\n\n"+e.detail),Nt.b.wrap(window.confirm(t))},e.prototype.show=function(e,t,n,i){return Nt.b.as(0)},e}(),vu=function(){function e(){}return e.prototype.info=function(e){return this.notify({severity:Qo.Info,message:e})},e.prototype.warn=function(e){return this.notify({severity:Qo.Warning,message:e})},e.prototype.error=function(e){return this.notify({severity:Qo.Error,message:e})},e.prototype.notify=function(t){switch(t.severity){case Qo.Error:console.error(t.message);break;case Qo.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP},e.prototype.prompt=function(e,t,n){return Nt.b.as(0)},e.NO_OP=new cu,e}(),bu=function(){function e(e){this._onWillExecuteCommand=new zt,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._instantiationService=e,this._dynamicCommands=Object.create(null)}return e.prototype.addCommand=function(e){var t=this,n=e.id;return this._dynamicCommands[n]=e,{dispose:function(){delete t._dynamicCommands[n]}}},e.prototype.executeCommand=function(e){for(var t=[],n=1;ne.length)&&(t.charAt(t.length-1)!==fr&&(t+=fr),0===e.indexOf(t)))}(n,t.base)?e(_r(t.pathToRelative(t.base,n)),i):null}}function $u(e,t){return t.trimForExclusions&&Ai(e,"/**")?e.substr(0,e.length-2):e}function el(e,t,n){var i=fr!==gr?e.replace(Wu,fr):e,o=fr+i,r=n?function(e,n){return e&&(e===i||Ai(e,o))?t:null}:function(e,n){return e&&e===i?t:null};return r.allPaths=[(n?"*/":"./")+e],r}function tl(e,t,n){return!(!e||!t)&&function(e,t){if(void 0===t&&(t={}),!e)return Xu;if("string"==typeof e||(o=e)&&"string"==typeof o.base&&"string"==typeof o.pattern&&"function"==typeof o.pathToRelative){var n=Ju(e,t);if(n===Ku)return Xu;var i=function(e,t){return!!n(e,t)};return n.allBasenames&&(i.allBasenames=n.allBasenames),n.allPaths&&(i.allPaths=n.allPaths),i}var o;return function(e,t){var n=nl(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return Ku;var i=Ju(e,n);if(i===Ku)return Ku;if("boolean"==typeof t)return i;if(t){var o=t.when;if("string"==typeof o){var r=function(t){var n=o.replace("$(basename)",t.name);return-1!==t.siblings.indexOf(n)?e:null},s=function(e,t,n){if(!i(e,t))return null;var o=n();return o?Nt.b.is(o)?o.then(r):r(o):null};return s.requiresSiblings=!0,s}}return i}(n,e[n],t)}).filter(function(e){return e!==Ku})),i=n.length;if(!i)return Ku;if(!n.some(function(e){return e.requiresSiblings})){if(1===i)return n[0];var o=function(e,t,i){for(var o=0,r=n.length;o0;n--){var r=e.charCodeAt(n-1);if(47===r||92===r)break}t=e.substr(n)}var s=o.indexOf(t);return-1!==s?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}function il(e,t,n,i){if(Array.isArray(e)){for(var o=0,r=0,s=e;ro&&(o=a)}return o}if("string"==typeof e)return i?"*"===e?5:e===n?10:0:0;if(e){var u=e.language,l=e.pattern,c=e.scheme;if(!i&&!e.hasAccessToAllModels)return 0;if(o=0,c)if(c===t.scheme)o=10;else{if("*"!==c)return 0;o=5}if(u)if(u===n)o=10;else{if("*"!==u)return 0;o=Math.max(o,5)}if(l){if(l!==t.fsPath&&!tl(l,t.fsPath))return 0;o=10}return o}return 0}var ol=Qn("modelService");function rl(e){return!e.isTooLargeForHavingARichMode()&&!e.isForSimpleWidget}var sl,al,ul=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new zt}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)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,i.push(t=[e.provider]))}),i},e.prototype._orderedForEach=function(e,t){if(e){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 i=0,o=this._entries;it._score?-1:e._timet._time?-1:0},e}(),ll=function(){function e(){this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._colorMap=null}return e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var n=this;return this._map[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._onDidChange.fire({changedLanguages:Object.keys(this._map),changedColorMap:!0})},e.prototype.getColorMap=function(){return this._colorMap},e.prototype.getDefaultBackground=function(){return this._colorMap[2]},e}(),cl=function(e,t){this.language=e,this.id=t},dl=function(){function e(){}return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),i=this.getFontStyle(e),o="color: "+t[n]+";";return 1&i&&(o+="font-style: italic;"),2&i&&(o+="font-weight: bold;"),4&i&&(o+="text-decoration: underline;"),o},e}(),hl=function(e){return e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions",e}({}),pl=function(e){return e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write",e}({}),gl=function(e){return e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter",e}({}),fl=((sl=Object.create(null))[gl.File]="file",sl[gl.Module]="module",sl[gl.Namespace]="namespace",sl[gl.Package]="package",sl[gl.Class]="class",sl[gl.Method]="method",sl[gl.Property]="property",sl[gl.Field]="field",sl[gl.Constructor]="constructor",sl[gl.Enum]="enum",sl[gl.Interface]="interface",sl[gl.Function]="function",sl[gl.Variable]="variable",sl[gl.Constant]="constant",sl[gl.String]="string",sl[gl.Number]="number",sl[gl.Boolean]="boolean",sl[gl.Array]="array",sl[gl.Object]="object",sl[gl.Key]="key",sl[gl.Null]="null",sl[gl.EnumMember]="enum-member",sl[gl.Struct]="struct",sl[gl.Event]="event",sl[gl.Operator]="operator",sl[gl.TypeParameter]="type-parameter",function(e){return sl[e]||"property"});function ml(e){return ti(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))}function yl(e){return ti(e)&&e.resource&&Array.isArray(e.edits)}!function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(al||(al={}));var vl=new ul,bl=new ul,_l=new ul,Ml=new ul,wl=new ul,Cl=new ul,Ll=new ul,Nl=new ul,Il=new ul,Sl=new ul,xl=new ul,Dl=new ul,Tl=new ul,El=new ul,kl=new ul,jl=new ul,Al=new ul,Ol=new ul,Pl=new ll,Rl=function(){function e(e){this.model=e,this.currentOpenStackElement=null,this.past=[],this.future=[]}return e.prototype.pushStackElement=function(){null!==this.currentOpenStackElement&&(this.past.push(this.currentOpenStackElement),this.currentOpenStackElement=null)},e.prototype.clear=function(){this.currentOpenStackElement=null,this.past=[],this.future=[]},e.prototype.pushEditOperation=function(e,t,n){this.future=[],this.currentOpenStackElement||(this.currentOpenStackElement={beforeVersionId:this.model.getAlternativeVersionId(),beforeCursorState:e,editOperations:[],afterCursorState:null,afterVersionId:-1});var i={operations:this.model.applyEdits(t)};this.currentOpenStackElement.editOperations.push(i);try{this.currentOpenStackElement.afterCursorState=n?n(i.operations):null}catch(e){xt(e),this.currentOpenStackElement.afterCursorState=null}return this.currentOpenStackElement.afterVersionId=this.model.getVersionId(),this.currentOpenStackElement.afterCursorState},e.prototype.undo=function(){if(this.pushStackElement(),this.past.length>0){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;t>>0}function Yl(e,t){e.metadata=254&e.metadata|t<<0}function Zl(e){return(2&e.metadata)>>>1==1}function Ul(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function Gl(e){return(4&e.metadata)>>>2==1}function Ql(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function Xl(e){return(8&e.metadata)>>>3==1}function Kl(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function Jl(e,t){e.metadata=207&e.metadata|t<<4}var ql=function(){function e(e,t,n){this.metadata=0,this.parent=null,this.left=null,this.right=null,Yl(this,1),this.start=t,this.end=n,this.delta=0,this.maxEnd=n,this.id=e,this.ownerId=0,this.options=null,Ql(this,!1),Jl(this,1),Kl(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=null,Ul(this,!1)}return e.prototype.reset=function(e,t,n,i){this.start=t,this.end=n,this.maxEnd=n,this.cachedVersionId=e,this.cachedAbsoluteStart=t,this.cachedAbsoluteEnd=n,this.range=i},e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;Ql(this,"squiggly-d-error"===t||"squiggly-c-warning"===t||"squiggly-b-info"===t),Jl(this,this.options.stickiness),Kl(this,!!this.options.overviewRuler.color)},e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null),this.cachedVersionId=n,this.cachedAbsoluteStart=e,this.cachedAbsoluteEnd=t},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),$l=new ql(null,0,0);$l.parent=$l,$l.left=$l,$l.right=$l,Yl($l,0);var ec=function(){function e(){this.root=$l,this.requestNormalizeDelta=!1}return e.prototype.intervalSearch=function(e,t,n,i,o){return this.root===$l?[]:function(e,t,n,i,o,r){for(var s=e.root,a=0,u=0,l=0,c=[],d=0;s!==$l;)if(Zl(s))Ul(s.left,!1),Ul(s.right,!1),s===s.parent.right&&(a-=s.parent.delta),s=s.parent;else{if(!Zl(s.left)){if(a+s.maxEndn)Ul(s,!0);else{if((l=a+s.end)>=t){s.setCachedOffsets(u,l,r);var h=!0;i&&s.ownerId&&s.ownerId!==i&&(h=!1),o&&Gl(s)&&(h=!1),h&&(c[d++]=s)}Ul(s,!0),s.right===$l||Zl(s.right)||(a+=s.delta,s=s.right)}}return Ul(e.root,!1),c}(this,e,t,n,i,o)},e.prototype.search=function(e,t,n){return this.root===$l?[]:ic(this,e,t,n)},e.prototype.collectNodesFromOwner=function(e){return function(e,t){for(var n=e.root,i=[],o=0;n!==$l;)Zl(n)?(Ul(n.left,!1),Ul(n.right,!1),n=n.parent):n.left===$l||Zl(n.left)?(n.ownerId===t&&(i[o++]=n),Ul(n,!0),n.right===$l||Zl(n.right)||(n=n.right)):n=n.left;return Ul(e.root,!1),i}(this,e)},e.prototype.collectNodesPostOrder=function(){return function(e){for(var t=e.root,n=[],i=0;t!==$l;)Zl(t)?(Ul(t.left,!1),Ul(t.right,!1),t=t.parent):t.left===$l||Zl(t.left)?t.right===$l||Zl(t.right)?(n[i++]=t,Ul(t,!0)):t=t.right:t=t.left;return Ul(e.root,!1),n}(this)},e.prototype.insert=function(e){oc(this,e),this._normalizeDeltaIfNecessary()},e.prototype.delete=function(e){rc(this,e),this._normalizeDeltaIfNecessary()},e.prototype.resolveNode=function(e,t){for(var n=e,i=0;e!==this.root;)e===e.parent.right&&(i+=e.parent.delta),e=e.parent;n.setCachedOffsets(n.start+i,n.end+i,t)},e.prototype.acceptReplace=function(e,t,n,i){for(var o=function(e,t,n){for(var i=e.root,o=0,r=0,s=0,a=[],u=0;i!==$l;)if(Zl(i))Ul(i.left,!1),Ul(i.right,!1),i===i.parent.right&&(o-=i.parent.delta),i=i.parent;else{if(!Zl(i.left)){if(o+i.maxEndn?Ul(i,!0):((s=o+i.end)>=t&&(i.setCachedOffsets(r,s,0),a[u++]=i),Ul(i,!0),i.right===$l||Zl(i.right)||(o+=i.delta,i=i.right))}return Ul(e.root,!1),a}(this,e,e+t),r=0,s=o.length;rn?(o.start+=s,o.end+=s,o.delta+=s,(o.delta<-1073741824||o.delta>1073741824)&&(e.requestNormalizeDelta=!0),Ul(o,!0)):(Ul(o,!0),o.right===$l||Zl(o.right)||(r+=o.delta,o=o.right))}Ul(e.root,!1)}(this,e,e+t,n),this._normalizeDeltaIfNecessary(),r=0,s=o.length;rn)&&1!==i&&(2===i||t)}function nc(e,t,n,i,o){var r=function(e){return(48&e.metadata)>>>4}(e),s=0===r||2===r,a=1===r||2===r,u=n-t,l=i,c=Math.min(u,l),d=e.start,h=!1,p=e.end,g=!1,f=o?1:u>0?2:0;!h&&tc(d,s,t,f)&&(h=!0),!g&&tc(p,a,t,f)&&(g=!0),c>0&&!o&&(f=u>l?2:0,!h&&tc(d,s,t+c,f)&&(h=!0),!g&&tc(p,a,t+c,f)&&(g=!0)),f=o?1:0,!h&&tc(d,s,n,f)&&(e.start=t+l,h=!0),!g&&tc(p,a,n,f)&&(e.end=t+l,g=!0);var m=l-u;h||(e.start=Math.max(0,d+m),h=!0),g||(e.end=Math.max(0,p+m),g=!0),e.start>e.end&&(e.end=e.start)}function ic(e,t,n,i){for(var o=e.root,r=0,s=[],a=0;o!==$l;)if(Zl(o))Ul(o.left,!1),Ul(o.right,!1),o===o.parent.right&&(r-=o.parent.delta),o=o.parent;else if(o.left===$l||Zl(o.left)){o.setCachedOffsets(r+o.start,r+o.end,i);var u=!0;t&&o.ownerId&&o.ownerId!==t&&(u=!1),n&&Gl(o)&&(u=!1),u&&(s[a++]=o),Ul(o,!0),o.right===$l||Zl(o.right)||(r+=o.delta,o=o.right)}else o=o.left;return Ul(e.root,!1),s}function oc(e,t){if(e.root===$l)return t.parent=$l,t.left=$l,t.right=$l,Yl(t,0),e.root=t,e.root;!function(e,t){for(var n,i,o=0,r=e.root,s=t.start,a=t.end;;)if(((n=s)===(i=r.start+o)?a-(r.end+o):n-i)<0){if(r.left===$l){t.start-=o,t.end-=o,t.maxEnd-=o,r.left=t;break}r=r.left}else{if(r.right===$l){t.start-=o+r.delta,t.end-=o+r.delta,t.maxEnd-=o+r.delta,r.right=t;break}o+=r.delta,r=r.right}t.parent=r,t.left=$l,t.right=$l,Yl(t,1)}(e,t),dc(t.parent);for(var n=t;n!==e.root&&1===Vl(n.parent);){var i;n.parent===n.parent.parent.left?1===Vl(i=n.parent.parent.right)?(Yl(n.parent,0),Yl(i,0),Yl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.right&&ac(e,n=n.parent),Yl(n.parent,0),Yl(n.parent.parent,1),uc(e,n.parent.parent)):1===Vl(i=n.parent.parent.left)?(Yl(n.parent,0),Yl(i,0),Yl(n.parent.parent,1),n=n.parent.parent):(n===n.parent.left&&uc(e,n=n.parent),Yl(n.parent,0),Yl(n.parent.parent,1),ac(e,n.parent.parent))}return Yl(e.root,0),t}function rc(e,t){var n,i;if(t.left===$l?(i=t,(n=t.right).delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta):t.right===$l?(n=t.left,i=t):((n=(i=function(e){for(;e.left!==$l;)e=e.left;return e}(t.right)).right).start+=i.delta,n.end+=i.delta,n.delta+=i.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),i.start+=t.delta,i.end+=t.delta,i.delta=t.delta,(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0)),i===e.root)return e.root=n,Yl(n,0),t.detach(),sc(),cc(n),void(e.root.parent=$l);var o,r=1===Vl(i);if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?n.parent=i.parent:(n.parent=i.parent===t?i:i.parent,i.left=t.left,i.right=t.right,i.parent=t.parent,Yl(i,Vl(t)),t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==$l&&(i.left.parent=i),i.right!==$l&&(i.right.parent=i)),t.detach(),r)return dc(n.parent),i!==t&&(dc(i),dc(i.parent)),void sc();for(dc(n),dc(n.parent),i!==t&&(dc(i),dc(i.parent));n!==e.root&&0===Vl(n);)n===n.parent.left?(1===Vl(o=n.parent.right)&&(Yl(o,0),Yl(n.parent,1),ac(e,n.parent),o=n.parent.right),0===Vl(o.left)&&0===Vl(o.right)?(Yl(o,1),n=n.parent):(0===Vl(o.right)&&(Yl(o.left,0),Yl(o,1),uc(e,o),o=n.parent.right),Yl(o,Vl(n.parent)),Yl(n.parent,0),Yl(o.right,0),ac(e,n.parent),n=e.root)):(1===Vl(o=n.parent.left)&&(Yl(o,0),Yl(n.parent,1),uc(e,n.parent),o=n.parent.left),0===Vl(o.left)&&0===Vl(o.right)?(Yl(o,1),n=n.parent):(0===Vl(o.left)&&(Yl(o.right,0),Yl(o,1),ac(e,o),o=n.parent.left),Yl(o,Vl(n.parent)),Yl(n.parent,0),Yl(o.left,0),uc(e,n.parent),n=e.root));Yl(n,0),sc()}function sc(){$l.parent=$l,$l.delta=0,$l.start=0,$l.end=0}function ac(e,t){var n=t.right;n.delta+=t.delta,(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0),n.start+=t.delta,n.end+=t.delta,t.right=n.left,n.left!==$l&&(n.left.parent=t),n.parent=t.parent,t.parent===$l?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n,cc(t),cc(n)}function uc(e,t){var n=t.left;t.delta-=n.delta,(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0),t.start-=n.delta,t.end-=n.delta,t.left=n.right,n.right!==$l&&(n.right.parent=t),n.parent=t.parent,t.parent===$l?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n,cc(t),cc(n)}function lc(e){var t=e.end;if(e.left!==$l){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==$l){var i=e.right.maxEnd+e.delta;i>t&&(t=i)}return t}function cc(e){e.maxEnd=lc(e)}function dc(e){for(;e!==$l;){var t=lc(e);if(e.maxEnd===t)return;e.maxEnd=t,e=e.parent}}var hc=mn.b.performance&&"function"==typeof mn.b.performance.now,pc=function(){function e(e){this._highResolution=hc&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?mn.b.performance.now():(new Date).getTime()},e}(),gc=new(function(){function e(){}return e.prototype.clone=function(){return this},e.prototype.equals=function(e){return this===e},e}()),fc=new cl("vs.editor.nullMode",0);function mc(e,t,n,i){return new gn([new pn(i,"",e)],n)}function yc(e,t,n,i){var o=new Uint32Array(2);return o[0]=i,o[1]=(16384|e<<0|2<<23)>>>0,new fn(o,n)}function vc(e,t){for(var n=e.getCount(),i=e.findTokenIndexAtOffset(t),o=e.getLanguageId(i),r=i;r+10&&e.getLanguageId(s-1)===o;)s--;return new bc(e,o,s,r+1,e.getStartOffset(s),e.getEndOffset(r))}var bc=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(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)},e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex},e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)},e}();function _c(e){return 0!=(7&e)}var Mc=function(){return function(e,t){var n=this;this.brackets=t.map(function(t){return new function(e,t,n,i,o){this.languageIdentifier=e,this.open=t,this.close=n,this.forwardRegex=i,this.reversedRegex=o}(e,t[0],t[1],Cc({open:t[0],close:t[1]}),Lc({open:t[0],close:t[1]}))}),this.forwardRegex=Nc(this.brackets),this.reversedRegex=Ic(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}}();function wc(e,t){var n={};return function(i){var o=e(i);return n.hasOwnProperty(o)||(n[o]=t(i)),n[o]}}var Cc=wc(function(e){return e.open+";"+e.close},function(e){return Sc([e.open,e.close])}),Lc=wc(function(e){return e.open+";"+e.close},function(e){return Sc([Ec(e.open),Ec(e.close)])}),Nc=wc(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)}),Sc(t)}),Ic=wc(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];return e.forEach(function(e){t.push(Ec(e.open)),t.push(Ec(e.close))}),Sc(t)});function Sc(e){return Oi("("+e.map(Si).join(")|(")+")",!0)}var xc,Dc,Tc,Ec=(Dc=null,Tc=null,function(e){return Dc!==e&&(Tc=function(e){for(var t="",n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}(Dc=e)),Tc}),kc=function(){function e(){}return e._findPrevBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=i+(n.length-o.index);return new sn(t,r-o[0].length+1,t,r+1)},e.findPrevBracketInToken=function(e,t,n,i,o){var r=Ec(n).substring(n.length-o,n.length-i);return this._findPrevBracketInText(e,t,r,i)},e.findNextBracketInText=function(e,t,n,i){var o=n.match(e);if(!o)return null;var r=i+o.index;return new sn(t,r+1,t,r+1+o[0].length)},e.findNextBracketInToken=function(e,t,n,i,o){var r=n.substring(i,o);return this.findNextBracketInText(e,t,r,i)},e}();!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(xc||(xc={}));var jc=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;t1&&!!e.close}).map(function(e){return new jc(e)}),n.docComment&&this._complexAutoClosePairs.push(new jc({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}(),Pc=function(){function e(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||[]}return e.prototype.onEnter=function(e,t,n){for(var i=0,o=this._regExpRules.length;i0&&n.length>0)for(i=0,o=this._brackets.length;i0)for(i=0,o=this._brackets.length;i/?".length;n++)e.indexOf("`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"[n])>=0||(t+="\\"+"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?"[n]);return t+="\\s]+)",new RegExp(t,"g")}();function Wc(e){var t=zc;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function Fc(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?function(e,t,n,i){var o,r=e-1-i;for(t.lastIndex=0;o=t.exec(n);){if(o.index>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+o.index,endColumn:i+1+t.lastIndex}}return null}(e,t,n,i):function(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1,a=n.indexOf(" ",r);for(-1===a&&(a=n.length),t.lastIndex=s;o=t.exec(n);)if(o.index<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+o.index,endColumn:i+1+t.lastIndex};return null}(e,t,n,i);return t.lastIndex=0,r}var Hc=function(){function e(t,n,i){this._languageIdentifier=t,this._brackets=null,this._electricCharacter=null;var o=null;n&&(o=n._conf),this._conf=e._mergeConf(o,i),this.onEnter=e._handleOnEnter(this._conf),this.comments=e._handleComments(this._conf),this.characterPair=new Ac(this._conf),this.wordDefinition=this._conf.wordPattern||zc,this.indentationRules=this._conf.indentationRules,this._conf.indentationRules&&(this.indentRulesSupport=new Rc(this._conf.indentationRules)),this.foldingRules=this._conf.folding||{}}return Object.defineProperty(e.prototype,"brackets",{get:function(){return!this._brackets&&this._conf.brackets&&(this._brackets=new Mc(this._languageIdentifier,this._conf.brackets)),this._brackets},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"electricCharacter",{get:function(){if(!this._electricCharacter){var e=[];this._conf.autoClosingPairs?e=this._conf.autoClosingPairs:this._conf.brackets&&(e=this._conf.brackets.map(function(e){return{open:e[0],close:e[1]}})),this._electricCharacter=new Oc(this.brackets,e,this._conf.__electricCharacterSupport)}return this._electricCharacter},enumerable:!0,configurable:!0}),e._mergeConf=function(e,t){return{comments:e?t.comments||e.comments:t.comments,brackets:e?t.brackets||e.brackets:t.brackets,wordPattern:e?t.wordPattern||e.wordPattern:t.wordPattern,indentationRules:e?t.indentationRules||e.indentationRules:t.indentationRules,onEnterRules:e?t.onEnterRules||e.onEnterRules:t.onEnterRules,autoClosingPairs:e?t.autoClosingPairs||e.autoClosingPairs:t.autoClosingPairs,surroundingPairs:e?t.surroundingPairs||e.surroundingPairs:t.surroundingPairs,folding:e?t.folding||e.folding:t.folding,__electricCharacterSupport:e?t.__electricCharacterSupport||e.__electricCharacterSupport:t.__electricCharacterSupport}},e._handleOnEnter=function(e){var t={},n=!0;return e.brackets&&(n=!1,t.brackets=e.brackets),e.indentationRules&&(n=!1),e.onEnterRules&&(n=!1,t.regExpRules=e.onEnterRules),n?null:new Pc(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[1];n.blockCommentStartToken=i[0],n.blockCommentEndToken=o}return n},e}(),Bc=new(function(){function e(){this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._entries=[]}return e.prototype.register=function(e,t){var n=this,i=this._getRichEditSupport(e.id),o=new Hc(e,i,t);return this._entries[e.id]=o,this._onDidChange.fire({languageIdentifier:e}),{dispose:function(){n._entries[e.id]===o&&(n._entries[e.id]=i,n._onDidChange.fire({languageIdentifier:e}))}}},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},e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.electricCharacter||null},e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);return t?t.getElectricCharacters():[]},e.prototype.onElectricCharacter=function(e,t,n){var i=vc(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},e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.characterPair||null},e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getAutoClosingPairs():[]},e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);return t?t.getSurroundingPairs():[]},e.prototype.shouldAutoClosePair=function(e,t,n){var i=vc(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 Wc(t&&t.wordDefinition||null)},e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);return t?t.foldingRules:{}},e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.indentRulesSupport||null},e.prototype.getPrecedingValidLine=function(e,t,n){var i=e.getLanguageIdAtPosition(t,0);if(t>1){var o=t-1,r=-1;for(o=t-1;o>=1;o--){if(e.getLanguageIdAtPosition(o,0)!==i)return r;var s=e.getLineContent(o);if(!n.shouldIgnore(s)&&!/^\s+$/.test(s)&&""!==s)return o;r=o}}return-1},e.prototype.getInheritIndentForLine=function(e,t,n){void 0===n&&(n=!0);var i=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!i)return null;if(t<=1)return{indentation:"",action:null};var o=this.getPrecedingValidLine(e,t,i);if(o<0)return null;if(o<1)return{indentation:"",action:null};var r=e.getLineContent(o);if(i.shouldIncrease(r)||i.shouldIndentNextLine(r))return{indentation:Ui(r),action:xc.Indent,line:o};if(i.shouldDecrease(r))return{indentation:Ui(r),action:null,line:o};if(1===o)return{indentation:Ui(e.getLineContent(o)),action:null,line:o};var s=o-1,a=i.getIndentMetadata(e.getLineContent(s));if(!(3&a)&&4&a){for(var u=0,l=s-1;l>0;l--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=l;break}return{indentation:Ui(e.getLineContent(u+1)),action:null,line:u+1}}if(n)return{indentation:Ui(e.getLineContent(o)),action:null,line:o};for(l=o;l>0;l--){var c=e.getLineContent(l);if(i.shouldIncrease(c))return{indentation:Ui(c),action:xc.Indent,line:l};if(i.shouldIndentNextLine(c)){u=0;for(var d=l-1;d>0;d--)if(!i.shouldIndentNextLine(e.getLineContent(l))){u=d;break}return{indentation:Ui(e.getLineContent(u+1)),action:null,line:u+1}}if(i.shouldDecrease(c))return{indentation:Ui(c),action:null,line:l}}return{indentation:Ui(e.getLineContent(1)),action:null,line:1}},e.prototype.getGoodIndentForLine=function(e,t,n,i){var o=this.getIndentRulesSupport(t);if(!o)return null;var r=this.getInheritIndentForLine(e,n),s=e.getLineContent(n);if(r){var a=r.line;if(void 0!==a){var u=this._getOnEnterSupport(t),l=null;try{l=u.onEnter("",e.getLineContent(a),"")}catch(e){xt(e)}if(l){var c=Ui(e.getLineContent(a));return l.removeText&&(c=c.substring(0,c.length-l.removeText)),l.indentAction===xc.Indent||l.indentAction===xc.IndentOutdent?c=i.shiftIndent(c):l.indentAction===xc.Outdent&&(c=i.unshiftIndent(c)),o.shouldDecrease(s)&&(c=i.unshiftIndent(c)),l.appendText&&(c+=l.appendText),Ui(c)}}return o.shouldDecrease(s)?r.action===xc.Indent?r.indentation:i.unshiftIndent(r.indentation):r.action===xc.Indent?i.shiftIndent(r.indentation):r.indentation}return null},e.prototype.getIndentForEnter=function(e,t,n,i){e.forceTokenization(t.startLineNumber);var o,r,s=e.getLineTokens(t.startLineNumber),a=vc(s,t.startColumn-1),u=a.getLineContent(),l=!1;a.firstCharOffset>0&&s.getLanguageId(0)!==a.languageId?(l=!0,o=u.substr(0,t.startColumn-1-a.firstCharOffset)):o=s.getLineContent().substring(0,t.startColumn-1),r=t.isEmpty()?u.substr(t.startColumn-1-a.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-a.firstCharOffset);var c=this.getIndentRulesSupport(a.languageId);if(!c)return null;var d=o,h=Ui(o);if(!i&&!l){var p=this.getInheritIndentForLine(e,t.startLineNumber);c.shouldDecrease(o)&&p&&(h=p.indentation,p.action!==xc.Indent&&(h=n.unshiftIndent(h))),d=h+Di(Di(o," "),"\t")}var g={getLineTokens:function(t){return e.getLineTokens(t)},getLanguageIdentifier:function(){return e.getLanguageIdentifier()},getLanguageIdAtPosition:function(t,n){return e.getLanguageIdAtPosition(t,n)},getLineContent:function(n){return n===t.startLineNumber?d:e.getLineContent(n)}},f=Ui(s.getLineContent()),m=this.getInheritIndentForLine(g,t.startLineNumber+1);if(!m){var y=l?f:h;return{beforeEnter:y,afterEnter:y}}var v=l?f:m.indentation;return m.action===xc.Indent&&(v=n.shiftIndent(v)),c.shouldDecrease(r)&&(v=n.unshiftIndent(v)),{beforeEnter:l?f:h,afterEnter:v}},e.prototype.getIndentActionForType=function(e,t,n,i){var o=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),r=this.getIndentRulesSupport(o.languageId);if(!r)return null;var s,a=o.getLineContent(),u=a.substr(0,t.startColumn-1-o.firstCharOffset);if(s=t.isEmpty()?a.substr(t.startColumn-1-o.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-o.firstCharOffset),!r.shouldDecrease(u+s)&&r.shouldDecrease(u+n+s)){var l=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!l)return null;var c=l.indentation;return l.action!==xc.Indent&&(c=i.unshiftIndent(c)),c}return null},e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);return n?t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t)):null},e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.onEnter||null},e.prototype.getRawEnterActionAtPosition=function(e,t,n){var i=this.getEnterAction(e,new sn(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=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn),o=this._getOnEnterSupport(i.languageId);if(!o)return null;var r,s=i.getLineContent(),a=s.substr(0,t.startColumn-1-i.firstCharOffset);r=t.isEmpty()?s.substr(t.startColumn-1-i.firstCharOffset):this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset);var u=t.startLineNumber,l="";if(u>1&&0===i.firstCharOffset){var c=this.getScopedLineTokens(e,u-1);c.languageId===i.languageId&&(l=c.getLineContent())}var d=null;try{d=o.onEnter(l,a,r)}catch(e){xt(e)}return d?(d.appendText||(d.appendText=d.indentAction===xc.Indent||d.indentAction===xc.IndentOutdent?"\t":""),d.removeText&&(n=n.substring(0,n.length-d.removeText)),{enterAction:d,indentation:n}):null},e.prototype.getIndentationAtPosition=function(e,t,n){var i=Ui(e.getLineContent(t));return i.length>n-1&&(i=i.substring(0,n-1)),i},e.prototype.getScopedLineTokens=function(e,t,n){return e.forceTokenization(t),vc(e.getLineTokens(t),isNaN(n)?e.getLineMaxColumn(t)-1:n-1)},e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);return t&&t.brackets||null},e}()),Vc=function(){function e(e,t){this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=t}return e.prototype.equals=function(t){return t instanceof e&&this.slicedEquals(t,0,this._tokensCount)},e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;for(var i=t<<1,o=i+(n<<1),r=i;r0?this._tokens[e-1<<1]:0},e.prototype.getLanguageId=function(e){return dl.getLanguageId(this._tokens[1+(e<<1)])},e.prototype.getStandardTokenType=function(e){return dl.getTokenType(this._tokens[1+(e<<1)])},e.prototype.getForeground=function(e){return dl.getForeground(this._tokens[1+(e<<1)])},e.prototype.getClassName=function(e){return dl.getClassNameFromMetadata(this._tokens[1+(e<<1)])},e.prototype.getInlineStyle=function(e,t){return dl.getInlineStyleFromMetadata(this._tokens[1+(e<<1)],t)},e.prototype.getEndOffset=function(e){return this._tokens[e<<1]},e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)},e.prototype.inflate=function(){return this},e.prototype.sliceAndInflate=function(e,t,n){return new Yc(this,e,t,n)},e.convertToEndOffset=function(e,t){for(var n=(e.length>>>1)-1,i=0;i>>1)-1;nt&&(i=o)}return n},e}(),Yc=function(){function e(e,t,n,i){this._source=e,this._startOffset=t,this._endOffset=n,this._deltaOffset=i,this._firstTokenIndex=e.findTokenIndexAtOffset(t),this._tokensCount=0;for(var o=this._firstTokenIndex,r=e.getCount();o=n);o++)this._tokensCount++}return e.prototype.equals=function(t){return t instanceof e&&this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount)},e.prototype.getCount=function(){return this._tokensCount},e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)},e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset},e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)},e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)},e}();function Zc(e){return(16384|e<<0|2<<23)>>>0}var Uc,Gc=new Uint32Array(0).buffer,Qc=function(){function e(e){this._state=e,this._lineTokens=null,this._invalid=!0}return e.prototype.deleteBeginning=function(e){null!==this._lineTokens&&this._lineTokens!==Gc&&this.delete(0,e)},e.prototype.deleteEnding=function(e){if(null!==this._lineTokens&&this._lineTokens!==Gc){var t=new Uint32Array(this._lineTokens);this.delete(e,t[t.length-2])}},e.prototype.delete=function(e,t){if(null!==this._lineTokens&&this._lineTokens!==Gc&&e!==t){var n=new Uint32Array(this._lineTokens),i=n.length>>>1;if(0!==e||n[n.length-2]!==t){var o=Vc.findIndexInTokensArray(n,e),r=o>0?n[o-1<<1]:0;if(tl&&(n[u++]=h,n[u++]=n[1+(d<<1)],l=h)}if(u!==n.length){var p=new Uint32Array(u);p.set(n.subarray(0,u),0),this._lineTokens=p.buffer}}}else this._lineTokens=Gc}},e.prototype.append=function(e){if(e!==Gc)if(this._lineTokens!==Gc){if(null!==this._lineTokens)if(null!==e){var t=new Uint32Array(this._lineTokens),n=new Uint32Array(e),i=n.length>>>1,o=new Uint32Array(t.length+n.length);o.set(t,0);for(var r=t.length,s=t[t.length-2],a=0;a>>1,o=Vc.findIndexInTokensArray(n,e);o>0&&(o>0?n[o-1<<1]:0)===e&&o--;for(var r=o;r=e},e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex=0;i--)this.invalidateLine(e.startLineNumber+i-1);this._acceptDeleteRange(e),this._acceptInsertText(new rn(e.startLineNumber,e.startColumn),t,n)},e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(!(t>=this._tokens.length))if(e.startLineNumber!==e.endLineNumber){var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var i=e.endLineNumber-1,o=null;if(i=this._tokens.length))if(0!==t){var o=this._tokens[i];o.deleteEnding(e.column-1),o.insert(e.column-1,n);for(var r,s,a,u,l,c=new Array(t),d=t-1;d>=0;d--)c[d]=new Qc(null);this._tokens=(a=c,u=(r=this._tokens).slice(0,s=e.lineNumber),l=r.slice(s),u.concat(a,l))}else this._tokens[i].insert(e.column-1,n)}},e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;return this._updateTokensUntilLine(e,t,n),n},e.prototype._tokenizeText=function(e,t,n){var i=null;try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){xt(e)}return i||(i=yc(this.languageIdentifier.id,0,n,0)),i},e.prototype._updateTokensUntilLine=function(e,t,n){if(this.tokenizationSupport){for(var i=e.getLineCount(),o=n-1,r=this._invalidLineStartIndex;r<=o;r++){var s=r+1,a=null,u=e.getLineContent(r+1);try{var l=this._getState(r).clone();a=this.tokenizationSupport.tokenize2(u,l,0)}catch(e){xt(e)}if(a||(a=yc(this.languageIdentifier.id,0,this._getState(r),0)),this._setTokens(this.languageIdentifier.id,r,u.length,a.tokens),t.registerChangedTokens(r+1),this._setIsInvalid(r,!1),s0?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}();function Jc(e,t,n,i){var o;for(o=0;o0&&s>0)return 0;if(u>0&&l>0)return 0;var c=Math.abs(s-l),d=Math.abs(r-u);return 0===c?d:d%c==0?d/c:0}function qc(e,t,n){for(var i=Math.min(e.getLineCount(),1e4),o=0,r=0,s="",a=0,u=[0,0,0,0,0,0,0,0,0],l=function(t){var n=e.getLineLength(t),i=e.getLineContent(t),l=void 0;l=n>65536?function(n){return e.getLineCharCode(t,n)}:function(e){return i.charCodeAt(e)};for(var c=!1,d=0,h=0,p=0,g=0,f=n;g0?o++:h>1&&r++;var y=Jc(s,a,i,d);y<=8&&u[y]++,s=i,a=d},c=1;c<=i;c++)l(c);var d=Jc(s,a,"",0);d<=8&&u[d]++;var h=n;o!==r&&(h=og&&(g=t,p=e)}),{insertSpaces:h,tabSize:p}}!function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(Uc||(Uc={}));var $c=function(){function e(e,t,n,i,o,r){t|=0,n|=0,i|=0,o|=0,r|=0,(e|=0)<0&&(e=0),n+e>t&&(n=t-e),n<0&&(n=0),i<0&&(i=0),r+i>o&&(r=o-i),r<0&&(r=0),this.width=e,this.scrollWidth=t,this.scrollLeft=n,this.height=i,this.scrollHeight=o,this.scrollTop=r}return e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop},e.prototype.withScrollDimensions=function(t){return new e("undefined"!=typeof t.width?t.width:this.width,"undefined"!=typeof t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,"undefined"!=typeof t.height?t.height:this.height,"undefined"!=typeof t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)},e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,"undefined"!=typeof t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,"undefined"!=typeof t.scrollTop?t.scrollTop:this.scrollTop)},e.prototype.createScrollEvent=function(e){return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:this.width!==e.width,scrollWidthChanged:this.scrollWidth!==e.scrollWidth,scrollLeftChanged:this.scrollLeft!==e.scrollLeft,heightChanged:this.height!==e.height,scrollHeightChanged:this.scrollHeight!==e.scrollHeight,scrollTopChanged:this.scrollTop!==e.scrollTop}},e}(),ed=function(e){function t(t,n){var i=e.call(this)||this;return i._onScroll=i._register(new zt),i.onScroll=i._onScroll.event,i._smoothScrollDuration=t,i._scheduleAtNextAnimationFrame=n,i._state=new $c(0,0,0,0,0,0),i._smoothScrolling=null,i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),e.prototype.dispose.call(this)},t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e},t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)},t.prototype.getScrollDimensions=function(){return this._state},t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},t.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(t)},t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){var n=this._state.withScrollPosition(e={scrollLeft:"undefined"==typeof e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:"undefined"==typeof e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop});if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var i=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=i}else n=this._state.withScrollPosition(e),this._smoothScrolling=id.start(this._state,n,this._smoothScrollDuration);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this,t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(Ct),td=function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n};function nd(e,t){var n=t-e;return function(t){return e+n*(1-Math.pow(1-t,3))}}var id=function(){function e(e,t,n,i){this.from=e,this.to=t,this.duration=i,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return e.prototype._initAnimations=function(){this.scrollLeft=this._initAnimation(this.from.scrollLeft,this.to.scrollLeft,this.to.width),this.scrollTop=this._initAnimation(this.from.scrollTop,this.to.scrollTop,this.to.height)},e.prototype._initAnimation=function(e,t,n){var i,o,r;if(Math.abs(e-t)>2.5*n){var s=void 0,a=void 0;return e=2?(_=g?rd.Large:rd.LargeBlocks,D=2/m):(_=g?rd.Small:rd.SmallBlocks,D=1/m),(w=Math.max(0,Math.floor((x-u)*D/(s+D))))/D>f&&(w=Math.floor(f*D)),C=x-w,"left"===p?(M=0,L+=w,N+=w,I+=w,S+=w):M=t-w-u}else M=0,w=0,_=rd.None,C=x;var T=Math.max(1,Math.floor((C-u)/s)),E=l?c:0;return{width:t,height:n,glyphMarginLeft:L,glyphMarginWidth:b,glyphMarginHeight:n,lineNumbersLeft:N,lineNumbersWidth:y,lineNumbersHeight:n,decorationsLeft:I,decorationsWidth:r,decorationsHeight:n,contentLeft:S,contentWidth:C,contentHeight:n,renderMinimap:_,minimapLeft:M,minimapWidth:w,viewportColumn:T,verticalScrollbarWidth:u,horizontalScrollbarHeight:d,overviewRuler:{top:E,width:u,height:n-2*E,right:0}}},e}(),vd={fontFamily:mn.d?"Menlo, Monaco, 'Courier New', monospace":mn.c?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:mn.d?12:14,lineHeight:0,letterSpacing:0},bd={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0},_d={inDiffEditor:!1,wordSeparators:"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:sd.Same,wordWrapBreakBeforeCharacters:"([{\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\xa3\xa5\uff04\uffe1\uffe5+\uff0b",wordWrapBreakAfterCharacters:" \t})]?|&,;\xa2\xb0\u2032\u2033\u2030\u2103\u3001\u3002\uff61\uff64\uffe0\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff05\u30fb\uff65\u309d\u309e\u30fd\u30fe\u30fc\u30a1\u30a3\u30a5\u30a7\u30a9\u30c3\u30e3\u30e5\u30e7\u30ee\u30f5\u30f6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308e\u3095\u3096\u31f0\u31f1\u31f2\u31f3\u31f4\u31f5\u31f6\u31f7\u31f8\u31f9\u31fa\u31fb\u31fc\u31fd\u31fe\u31ff\u3005\u303b\uff67\uff68\uff69\uff6a\uff6b\uff6c\uff6d\uff6e\uff6f\uff70\u201d\u3009\u300b\u300d\u300f\u3011\u3015\uff09\uff3d\uff5d\uff63",wordWrapBreakObtrusiveCharacters:".",autoClosingBrackets:!0,autoIndent:!0,dragAndDrop:!0,emptySelectionClipboard:!0,useTabStops:!0,multiCursorModifier:"altKey",accessibilitySupport:"auto",viewInfo:{extraEditorClassName:"",disableMonospaceOptimizations:!1,rulers:[],ariaLabel:Yo("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:ad.Blink,mouseWheelZoom:!1,cursorStyle:ud.Line,cursorWidth:0,hideCursorInOverviewRuler:!1,scrollBeyondLastLine:!0,smoothScrolling:!1,stopRenderingLineAfter:1e4,renderWhitespace:"none",renderControlCharacters:!1,fontLigatures:!1,renderIndentGuides:!0,renderLineHighlight:"line",scrollbar:{vertical:Uc.Auto,horizontal:Uc.Auto,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:10,horizontalSliderSize:10,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,mouseWheelScrollSensitivity:1},minimap:{enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120},fixedOverflowWidgets:!1},contribInfo:{selectionClipboard:!0,hover:!0,links:!0,contextmenu:!0,quickSuggestions:{other:!0,comments:!1,strings:!1},quickSuggestionsDelay:10,parameterHints:!0,iconsInSuggestions:!0,formatOnType:!1,formatOnPaste:!1,suggestOnTriggerCharacters:!0,acceptSuggestionOnEnter:"on",acceptSuggestionOnCommitCharacter:!0,snippetSuggestions:"inline",wordBasedSuggestions:!0,suggestSelection:"recentlyUsed",suggestFontSize:0,suggestLineHeight:0,selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0}},Md=function(){function e(e,t,n){for(var i=new Uint8Array(e*t),o=0,r=e*t;o255?255:0|e}function Cd(e){return e<0?0:e>4294967295?4294967295:0|e}var Ld,Nd,Id=function(){function e(t){var n=wd(t);this._defaultValue=n,this._asciiMap=e._createAsciiMap(n),this._map=new Map}return e._createAsciiMap=function(e){for(var t=new Uint8Array(256),n=0;n<256;n++)t[n]=e;return t},e.prototype.set=function(e,t){var n=wd(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)},e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue},e}(),Sd=function(){function e(){this._actual=new Id(0)}return e.prototype.add=function(e){this._actual.set(e,1)},e.prototype.has=function(e){return 1===this._actual.get(e)},e}(),xd=function(e){function t(t){for(var n=e.call(this,0)||this,i=0,o=t.length;i=n)break;var i=e.charCodeAt(t);if(110===i||114===i)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 n=null;try{n=Oi(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:t,global:!0})}catch(e){return null}if(!n)return null;var i=!this.isRegex&&!t;return i&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(i=this.matchCase),new Ed(n,this.wordSeparators?Dd(this.wordSeparators):null,i?this.searchString:null)},e}(),Ed=function(e,t,n){this.regex=e,this.wordSeparators=t,this.simpleSearch=n};function kd(e,t,n){if(!n)return new ju(e,null);for(var i=[],o=0,r=t.length;o=o)break}return s}return this._doFindMatchesMultiline(e,n,new Od(r.wordSeparators,r.regex),i,o)}return this._doFindMatchesLineByLine(e,n,r,i,o)},e._getMultilineMatchRange=function(e,t,n,i,o){var r,s;if("\r\n"===e.getEOL()){for(var a=0,u=0;u=o)return u;return u},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;l=a))return o;return o}var p,g=new Od(e.wordSeparators,e.regex);g.reset(0);do{if((p=g.next(t))&&(r[o++]=kd(new sn(n,p.index+1+i,n,p.index+1+p[0].length+i),p,s),o>=a))return o}while(p);return o},e.findNextMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Od(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,r,i):this._doFindNextMatchLineByLine(e,n,r,i)},e._doFindNextMatchMultiline=function(e,t,n,i){var o=new rn(t.lineNumber,1),r=e.getOffsetAt(o),s=e.getLineCount(),a=e.getValueInRange(new sn(o.lineNumber,o.column,s,e.getLineMaxColumn(s)),Du.LF);n.reset(t.column-1);var u=n.next(a);return u?kd(this._getMultilineMatchRange(e,r,a,u.index,u[0]),u,i):1!==t.lineNumber||1!==t.column?this._doFindNextMatchMultiline(e,new rn(1,1),n,i):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,o){e.reset(i-1);var r=e.next(t);return r?kd(new sn(n,r.index+1,n,r.index+1+r[0].length),r,o):null},e.findPreviousMatch=function(e,t,n,i){var o=t.parseSearchRequest();if(!o)return null;var r=new Od(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,r,i):this._doFindPreviousMatchLineByLine(e,n,r,i)},e._doFindPreviousMatchMultiline=function(e,t,n,i){var o=this._doFindMatchesMultiline(e,new sn(1,1,t.lineNumber,t.column),n,i,9990);if(o.length>0)return o[o.length-1];var r=e.getLineCount();return t.lineNumber!==r||t.column!==e.getLineMaxColumn(r)?this._doFindPreviousMatchMultiline(e,new rn(r,e.getLineMaxColumn(r)),n,i):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){var o,r=null;for(e.reset(0);o=e.next(t);)r=kd(new sn(n,o.index+1,n,o.index+1+o[0].length),o,i);return r},e}();function Ad(e,t,n,i,o){return function(e,t,n,i,o){if(0===i)return!0;var r=t.charCodeAt(i-1);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i);if(0!==e.get(s))return!0}return!1}(e,t,0,i,o)&&function(e,t,n,i,o){if(i+o===n)return!0;var r=t.charCodeAt(i+o);if(0!==e.get(r))return!0;if(13===r||10===r)return!0;if(o>0){var s=t.charCodeAt(i+o-1);if(0!==e.get(s))return!0}return!1}(e,t,n,i,o)}var Od=function(){function e(e,t){this._wordSeparators=e,this._searchRegex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return e.prototype.reset=function(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0},e.prototype.next=function(e){var t,n=e.length;do{if(this._prevMatchStartIndex+this._prevMatchLength===n)return null;if(!(t=this._searchRegex.exec(e)))return null;var i=t.index,o=t[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength)return null;if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||Ad(this._wordSeparators,e,n,i,o))return t}while(t);return null},e}(),Pd=function(){function e(e,t){this.piece=e,this.color=t,this.size_left=0,this.lf_left=0,this.parent=null,this.left=null,this.right=null}return e.prototype.next=function(){if(this.right!==Rd)return zd(this.right);for(var e=this;e.parent!==Rd&&e.parent.left!==e;)e=e.parent;return e.parent===Rd?Rd:e.parent},e.prototype.prev=function(){if(this.left!==Rd)return Wd(this.left);for(var e=this;e.parent!==Rd&&e.parent.right!==e;)e=e.parent;return e.parent===Rd?Rd:e.parent},e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},e}(),Rd=new Pd(null,0);function zd(e){for(;e.left!==Rd;)e=e.left;return e}function Wd(e){for(;e.right!==Rd;)e=e.right;return e}function Fd(e){return e===Rd?0:e.size_left+e.piece.length+Fd(e.right)}function Hd(e){return e===Rd?0:e.lf_left+e.piece.lineFeedCnt+Hd(e.right)}function Bd(){Rd.parent=Rd}function Vd(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0),n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0),t.right=n.left,n.left!==Rd&&(n.left.parent=t),n.parent=t.parent,t.parent===Rd?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n,n.left=t,t.parent=n}function Yd(e,t){var n=t.left;t.left=n.right,n.right!==Rd&&(n.right.parent=t),n.parent=t.parent,t.size_left-=n.size_left+(n.piece?n.piece.length:0),t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0),t.parent===Rd?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n,n.right=t,t.parent=n}function Zd(e,t){var n,i;if(n=t.left===Rd?(i=t).right:t.right===Rd?(i=t).left:(i=zd(t.right)).right,i===e.root)return e.root=n,n.color=0,t.detach(),Bd(),void(e.root.parent=Rd);var o=1===i.color;if(i===i.parent.left?i.parent.left=n:i.parent.right=n,i===t?(n.parent=i.parent,Qd(e,n)):(n.parent=i.parent===t?i:i.parent,Qd(e,n),i.left=t.left,i.right=t.right,i.parent=t.parent,i.color=t.color,t===e.root?e.root=i:t===t.parent.left?t.parent.left=i:t.parent.right=i,i.left!==Rd&&(i.left.parent=i),i.right!==Rd&&(i.right.parent=i),i.size_left=t.size_left,i.lf_left=t.lf_left,Qd(e,i)),t.detach(),n.parent.left===n){var r=Fd(n),s=Hd(n);if(r!==n.parent.size_left||s!==n.parent.lf_left){var a=r-n.parent.size_left,u=s-n.parent.lf_left;n.parent.size_left=r,n.parent.lf_left=s,Gd(e,n.parent,a,u)}}if(Qd(e,n.parent),o)Bd();else{for(var l;n!==e.root&&0===n.color;)n===n.parent.left?(1===(l=n.parent.right).color&&(l.color=0,n.parent.color=1,Vd(e,n.parent),l=n.parent.right),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.right.color&&(l.left.color=0,l.color=1,Yd(e,l),l=n.parent.right),l.color=n.parent.color,n.parent.color=0,l.right.color=0,Vd(e,n.parent),n=e.root)):(1===(l=n.parent.left).color&&(l.color=0,n.parent.color=1,Yd(e,n.parent),l=n.parent.left),0===l.left.color&&0===l.right.color?(l.color=1,n=n.parent):(0===l.left.color&&(l.right.color=0,l.color=1,Vd(e,l),l=n.parent.left),l.color=n.parent.color,n.parent.color=0,l.left.color=0,Yd(e,n.parent),n=e.root));n.color=0,Bd()}}function Ud(e,t){for(Qd(e,t);t!==e.root&&1===t.parent.color;){var n;t.parent===t.parent.parent.left?1===(n=t.parent.parent.right).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.right&&Vd(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Yd(e,t.parent.parent)):1===(n=t.parent.parent.left).color?(t.parent.color=0,n.color=0,t.parent.parent.color=1,t=t.parent.parent):(t===t.parent.left&&Yd(e,t=t.parent),t.parent.color=0,t.parent.parent.color=1,Vd(e,t.parent.parent))}e.root.color=0}function Gd(e,t,n,i){for(;t!==e.root&&t!==Rd;)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}function Qd(e,t){var n=0,i=0;if(t!==e.root){if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=Fd((t=t.parent).left)-t.size_left,i=Hd(t.left)-t.lf_left,t.size_left+=n,t.lf_left+=i}for(;t!==e.root&&(0!==n||0!==i);)t.parent.left===t&&(t.parent.size_left+=n,t.parent.lf_left+=i),t=t.parent}}function Xd(e){var t;return(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0),t}Rd.parent=Rd,Rd.left=Rd,Rd.right=Rd,Rd.color=0;function Kd(e,t){void 0===t&&(t=!0);for(var n=[0],i=1,o=0,r=e.length;othis._pieces.length-1?null:0===this._index?this._BOM+this._tree.getPieceContent(this._pieces[this._index++]):this._tree.getPieceContent(this._pieces[this._index++])},e}(),eh=function(){function e(e){this._limit=e,this._cache=[]}return e.prototype.get=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartOffset<=e&&n.nodeStartOffset+n.node.piece.length>=e)return n}return null},e.prototype.get2=function(e){for(var t=this._cache.length-1;t>=0;t--){var n=this._cache[t];if(n.nodeStartLineNumber&&n.nodeStartLineNumber=e)return n}return null},e.prototype.set=function(e){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(e)},e.prototype.valdiate=function(e){for(var t=!1,n=0;n=e)&&(this._cache[n]=null,t=!0)}if(t){var o=[];for(n=0;n0){e[o].lineStarts||(e[o].lineStarts=Kd(e[o].buffer));var s=new Jd(o+1,{line:0,column:0},{line:e[o].lineStarts.length-1,column:e[o].buffer.length-e[o].lineStarts[e[o].lineStarts.length-1]},e[o].lineStarts.length-1,e[o].buffer.length);this._buffers.push(e[o]),i=this.rbInsertRight(i,s)}this._searchCache=new eh(1),this._lastVisitedLine={lineNumber:0,value:null},this.computeBufferMetadata()},e.prototype.normalizeEOL=function(e){var t=this,n=65535-Math.floor(21845),i=2*n,o="",r=0,s=[];if(this.iterate(this.root,function(a){var u=t.getNodeContent(a),l=u.length;if(r<=n||r+l0){var a=o.replace(/\r\n|\r|\n/g,e);s.push(new qd(a,Kd(a)))}this.create(s,e,!0)},e.prototype.getEOL=function(){return this._EOL},e.prototype.setEOL=function(e){this._EOL=e,this._EOLLength=this._EOL.length,this.normalizeEOL(e)},e.prototype.createSnapshot=function(e){return new $d(this,e)},e.prototype.equal=function(e){var t=this;return this.getLength()===e.getLength()&&this.getLineCount()===e.getLineCount()&&this.iterate(this.root,function(n){if(n===Rd)return!0;var i=t.getNodeContent(n),o=i.length,r=e.nodeAt(0),s=e.nodeAt(0+o);return i===e.getValueInRange2(r,s)})},e.prototype.getOffsetAt=function(e,t){for(var n=0,i=this.root;i!==Rd;)if(i.left!==Rd&&i.lf_left+1>=e)i=i.left;else{if(i.lf_left+i.piece.lineFeedCnt+1>=e)return(n+=i.size_left)+(this.getAccumulatedValue(i,e-i.lf_left-2)+t-1);e-=i.lf_left+i.piece.lineFeedCnt,n+=i.size_left+i.piece.length,i=i.right}return n},e.prototype.getPositionAt=function(e){e=Math.floor(e),e=Math.max(0,e);for(var t=this.root,n=0,i=e;t!==Rd;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var o=this.getIndexOf(t,e-t.size_left);if(n+=t.lf_left+o.index,0===o.index){var r=this.getOffsetAt(n+1,1);return new rn(n+1,i-r+1)}return new rn(n+1,o.remainder+1)}if(e-=t.size_left+t.piece.length,n+=t.lf_left+t.piece.lineFeedCnt,t.right===Rd)return r=this.getOffsetAt(n+1,1),new rn(n+1,i-e-r+1);t=t.right}return new rn(1,1)},e.prototype.getValueInRange=function(e,t){if(e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn)return"";var n=this.nodeAt2(e.startLineNumber,e.startColumn),i=this.nodeAt2(e.endLineNumber,e.endColumn),o=this.getValueInRange2(n,i);return t?t===this._EOL&&this._EOLNormalized&&t===this.getEOL()&&this._EOLNormalized?o:o.replace(/\r\n|\r|\n/g,t):o},e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node,i=this._buffers[n.piece.bufferIndex].buffer,o=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return i.substring(o+e.remainder,o+t.remainder)}var r=e.node,s=this._buffers[r.piece.bufferIndex].buffer,a=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start),u=s.substring(a+e.remainder,a+r.piece.length);for(r=r.next();r!==Rd;){var l=this._buffers[r.piece.bufferIndex].buffer,c=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);if(r===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,r.piece.length),r=r.next()}return u},e.prototype.getLinesContent=function(){return this.getContentOfSubTree(this.root).split(/\r\n|\r|\n/)},e.prototype.getLength=function(){return this._length},e.prototype.getLineCount=function(){return this._lineCnt},e.prototype.getLineContent=function(e){return this._lastVisitedLine.lineNumber===e?this._lastVisitedLine.value:(this._lastVisitedLine.lineNumber=e,this._lastVisitedLine.value=e===this._lineCnt?this.getLineRawContent(e):this._EOLNormalized?this.getLineRawContent(e,this._EOLLength):this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,""),this._lastVisitedLine.value)},e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1),i=this._buffers[n.node.piece.bufferIndex],o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start);return i.buffer.charCodeAt(o+n.remainder)},e.prototype.getLineLength=function(e){if(e===this.getLineCount()){var t=this.getOffsetAt(e,1);return this.getLength()-t}return this.getOffsetAt(e+1,1)-this.getOffsetAt(e,1)-this._EOLLength},e.prototype.findMatchesInNode=function(e,t,n,i,o,r,s,a,u,l,c){var d,h=this._buffers[e.piece.bufferIndex],p=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start),g=this.offsetInBuffer(e.piece.bufferIndex,o),f=this.offsetInBuffer(e.piece.bufferIndex,r);t.reset(g);var m={line:0,column:0};do{if(d=t.next(h.buffer)){if(d.index>=f)return l;this.positionInBuffer(e,d.index-p,m);var y=this.getLineFeedCnt(e.piece.bufferIndex,o,m),v=m.line===o.line?m.column-o.column+i:m.column+1;if(c[l++]=kd(new sn(n+y,v,n+y,v+d[0].length),d,a),d.index+d[0].length>=f)return l;if(l>=u)return l}}while(d);return l},e.prototype.findMatchesLineByLine=function(e,t,n,i){var o=[],r=0,s=new Od(t.wordSeparators,t.regex),a=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===a)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(a.node,a.remainder),c=this.positionInBuffer(u.node,u.remainder);if(a.node===u.node)return this.findMatchesInNode(a.node,s,e.startLineNumber,e.startColumn,l,c,t,n,i,r,o),o;for(var d=e.startLineNumber,h=a.node;h!==u.node;){var p=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(p>=1){var g=this._buffers[h.piece.bufferIndex].lineStarts,f=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start);if((r=this.findMatchesInNode(h,s,d,d===e.startLineNumber?e.startColumn:1,l,this.positionInBuffer(h,g[l.line+p]-f),t,n,i,r,o))>=i)return o;d+=p}var m=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var y=this.getLineContent(d).substring(m,e.endColumn-1);return r=this._findMatchesInLine(t,s,y,e.endLineNumber,m,r,o,n,i),o}if((r=this._findMatchesInLine(t,s,this.getLineContent(d).substr(m),d,m,r,o,n,i))>=i)return o;h=(a=this.nodeAt2(++d,1)).node,l=this.positionInBuffer(a.node,a.remainder)}if(d===e.endLineNumber){var v=d===e.startLineNumber?e.startColumn-1:0;return y=this.getLineContent(d).substring(v,e.endColumn-1),r=this._findMatchesInLine(t,s,y,e.endLineNumber,v,r,o,n,i),o}return r=this.findMatchesInNode(u.node,s,d,d===e.startLineNumber?e.startColumn:1,l,c,t,n,i,r,o),o},e.prototype._findMatchesInLine=function(e,t,n,i,o,r,s,a,u){var l,c=e.wordSeparators;if(!a&&e.simpleSearch){for(var d=e.simpleSearch,h=d.length,p=n.length,g=-h;-1!==(g=n.indexOf(d,g+h));)if((!c||Ad(c,n,p,g,h))&&(s[r++]=new ju(new sn(i,g+1+o,i,g+1+h+o),null),r>=u))return r;return r}t.reset(0);do{if((l=t.next(n))&&(s[r++]=kd(new sn(i,l.index+1+o,i,l.index+1+l[0].length+o),l,a),r>=u))return r}while(l);return r},e.prototype.insert=function(e,t,n){if(void 0===n&&(n=!1),this._EOLNormalized=this._EOLNormalized&&n,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value=null,this.root!==Rd){var i=this.nodeAt(e),o=i.remainder,r=i.nodeStartOffset,s=(y=i.node).piece,a=s.bufferIndex,u=this.positionInBuffer(y,o);if(0===y.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&r+s.length===e&&t.length<65535)return this.appendToNode(y,t),void this.computeBufferMetadata();if(r===e)this.insertContentToNodeLeft(t,y),this._searchCache.valdiate(e);else if(r+y.piece.length>e){var l=[],c=new Jd(s.bufferIndex,u,s.end,this.getLineFeedCnt(s.bufferIndex,u,s.end),this.offsetInBuffer(a,s.end)-this.offsetInBuffer(a,u));if(this.shouldCheckCRLF()&&this.endWithCR(t)&&10===this.nodeCharCodeAt(y,o)){var d={line:c.start.line+1,column:0};c=new Jd(c.bufferIndex,d,c.end,this.getLineFeedCnt(c.bufferIndex,d,c.end),c.length-1),t+="\n"}if(this.shouldCheckCRLF()&&this.startWithLF(t))if(13===this.nodeCharCodeAt(y,o-1)){var h=this.positionInBuffer(y,o-1);this.deleteNodeTail(y,h),t="\r"+t,0===y.piece.length&&l.push(y)}else this.deleteNodeTail(y,u);else this.deleteNodeTail(y,u);var p=this.createNewPieces(t);c.length>0&&this.rbInsertRight(y,c);for(var g=y,f=0;f=0;u--)a=this.rbInsertLeft(a,s[u]);this.validateCRLFWithPrevNode(a),this.deleteNodes(n)},e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");for(var n=this.createNewPieces(e),i=this.rbInsertRight(t,n[0]),o=i,r=1;r=o))break;l=i+1}return n?(n.line=i,n.column=u-r,null):{line:i,column:u-r}},e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var i=this._buffers[e].lineStarts;if(n.line===i.length-1)return n.line-t.line;var o=i[n.line]+n.column;return i[n.line+1]>o+1?n.line-t.line:13===this._buffers[e].buffer.charCodeAt(o-1)?n.line-t.line+1:n.line-t.line},e.prototype.offsetInBuffer=function(e,t){return this._buffers[e].lineStarts[t.line]+t.column},e.prototype.deleteNodes=function(e){for(var t=0;t65535){for(var t=[];e.length>65535;){var n=e.charCodeAt(65534),i=void 0;13===n||n>=55296&&n<=56319?(i=e.substring(0,65534),e=e.substring(65534)):(i=e.substring(0,65535),e=e.substring(65535));var o=Kd(i);t.push(new Jd(this._buffers.length,{line:0,column:0},{line:o.length-1,column:i.length-o[o.length-1]},o.length-1,i.length)),this._buffers.push(new qd(i,o))}var r=Kd(e);return t.push(new Jd(this._buffers.length,{line:0,column:0},{line:r.length-1,column:e.length-r[r.length-1]},r.length-1,e.length)),this._buffers.push(new qd(e,r)),t}var s=this._buffers[0].buffer.length,a=Kd(e,!1),u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===s&&0!==s&&this.startWithLF(e)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},u=this._lastChangeBufferPos;for(var l=0;l=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1)return r=this.getAccumulatedValue(n,e-n.lf_left-2),u=this.getAccumulatedValue(n,e-n.lf_left-1),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),this._searchCache.set({node:n,nodeStartOffset:l+=n.size_left,nodeStartLineNumber:c-(e-1-n.lf_left)}),s.substring(a+r,a+u-t);if(n.lf_left+n.piece.lineFeedCnt===e-1){r=this.getAccumulatedValue(n,e-n.lf_left-2),s=this._buffers[n.piece.bufferIndex].buffer,a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i=s.substring(a+r,a+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt,l+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Rd;){if(s=this._buffers[n.piece.bufferIndex].buffer,n.piece.lineFeedCnt>0)return u=this.getAccumulatedValue(n,0),a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+s.substring(a,a+u-t);a=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start),i+=s.substr(a,n.piece.length),n=n.next()}return i},e.prototype.computeBufferMetadata=function(){for(var e=this.root,t=1,n=0;e!==Rd;)t+=e.lf_left+e.piece.lineFeedCnt,n+=e.size_left+e.piece.length,e=e.right;this._lineCnt=t,this._length=n,this._searchCache.valdiate(this._length)},e.prototype.getIndexOf=function(e,t){var n=e.piece,i=this.positionInBuffer(e,t),o=i.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var r=this.getLineFeedCnt(e.piece.bufferIndex,n.start,i);if(r!==o)return{index:r,remainder:0}}return{index:o,remainder:i.column}},e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece,i=this._buffers[n.bufferIndex].lineStarts,o=n.start.line+t+1;return o>n.end.line?i[n.end.line]+n.end.column-i[n.start.line]-n.start.column:i[o]-i[n.start.line]-n.start.column},e.prototype.deleteNodeTail=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.end),r=t,s=this.offsetInBuffer(n.bufferIndex,r),a=this.getLineFeedCnt(n.bufferIndex,n.start,r),u=a-i,l=s-o;e.piece=new Jd(n.bufferIndex,n.start,r,a,n.length+l),Gd(this,e,l,u)},e.prototype.deleteNodeHead=function(e,t){var n=e.piece,i=n.lineFeedCnt,o=this.offsetInBuffer(n.bufferIndex,n.start),r=t,s=this.getLineFeedCnt(n.bufferIndex,r,n.end),a=s-i,u=o-this.offsetInBuffer(n.bufferIndex,r);e.piece=new Jd(n.bufferIndex,r,n.end,s,n.length+u),Gd(this,e,u,a)},e.prototype.shrinkNode=function(e,t,n){var i=e.piece,o=i.start,r=i.end,s=i.length,a=i.lineFeedCnt,u=t,l=this.getLineFeedCnt(i.bufferIndex,i.start,u),c=this.offsetInBuffer(i.bufferIndex,t)-this.offsetInBuffer(i.bufferIndex,o);e.piece=new Jd(i.bufferIndex,i.start,u,l,c),Gd(this,e,c-s,l-a);var d=new Jd(i.bufferIndex,n,r,this.getLineFeedCnt(i.bufferIndex,n,r),this.offsetInBuffer(i.bufferIndex,r)-this.offsetInBuffer(i.bufferIndex,n)),h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)},e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e),i=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;for(var o=Kd(t,!1),r=0;re)t=t.left;else{if(t.size_left+t.piece.length>=e){var o={node:t,remainder:e-t.size_left,nodeStartOffset:i+=t.size_left};return this._searchCache.set(o),o}e-=t.size_left+t.piece.length,i+=t.size_left+t.piece.length,t=t.right}return null},e.prototype.nodeAt2=function(e,t){for(var n=this.root,i=0;n!==Rd;)if(n.left!==Rd&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2),r=this.getAccumulatedValue(n,e-n.lf_left-1);return i+=n.size_left,{node:n,remainder:Math.min(o+t-1,r),nodeStartOffset:i}}if(n.lf_left+n.piece.lineFeedCnt===e-1){if((o=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:o+t-1,nodeStartOffset:i};t-=n.piece.length-o;break}e-=n.lf_left+n.piece.lineFeedCnt,i+=n.size_left+n.piece.length,n=n.right}for(n=n.next();n!==Rd;){if(n.piece.lineFeedCnt>0){r=this.getAccumulatedValue(n,0);var s=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,r),nodeStartOffset:s}}if(n.piece.length>=t-1)return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)};t-=n.piece.length,n=n.next()}return null},e.prototype.nodeCharCodeAt=function(e,t){if(e.piece.lineFeedCnt<1)return-1;var n=this._buffers[e.piece.bufferIndex],i=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(i)},e.prototype.offsetOfNode=function(e){if(!e)return 0;for(var t=e.size_left;e!==this.root;)e.parent.right===e&&(t+=e.parent.size_left+e.parent.piece.length),e=e.parent;return t},e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&"\n"===this._EOL)},e.prototype.startWithLF=function(e){if("string"==typeof e)return 10===e.charCodeAt(0);if(e===Rd||0===e.piece.lineFeedCnt)return!1;var t=e.piece,n=this._buffers[t.bufferIndex].lineStarts,i=t.start.line,o=n[i]+t.start.column;return i!==n.length-1&&!(n[i+1]>o+1)&&10===this._buffers[t.bufferIndex].buffer.charCodeAt(o)},e.prototype.endWithCR=function(e){return"string"==typeof e?13===e.charCodeAt(e.length-1):e!==Rd&&0!==e.piece.lineFeedCnt&&13===this.nodeCharCodeAt(e,e.piece.length-1)},e.prototype.validateCRLFWithPrevNode=function(e){if(this.shouldCheckCRLF()&&this.startWithLF(e)){var t=e.prev();this.endWithCR(t)&&this.fixCRLF(t,e)}},e.prototype.validateCRLFWithNextNode=function(e){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var t=e.next();this.startWithLF(t)&&this.fixCRLF(e,t)}},e.prototype.fixCRLF=function(e,t){var n=[],i=this._buffers[e.piece.bufferIndex].lineStarts;e.piece=new Jd(e.piece.bufferIndex,e.piece.start,0===e.piece.end.column?{line:e.piece.end.line-1,column:i[e.piece.end.line]-i[e.piece.end.line-1]-1}:{line:e.piece.end.line,column:e.piece.end.column-1},e.piece.lineFeedCnt-1,e.piece.length-1),Gd(this,e,-1,-1),0===e.piece.length&&n.push(e);var o={line:t.piece.start.line+1,column:0},r=t.piece.length-1,s=this.getLineFeedCnt(t.piece.bufferIndex,o,t.piece.end);t.piece=new Jd(t.piece.bufferIndex,o,t.piece.end,s,r),Gd(this,t,-1,-1),0===t.piece.length&&n.push(t);var a=this.createNewPieces("\r\n");this.rbInsertRight(e,a[0]);for(var u=0;u0){p.sort(function(e,t){return t.lineNumber-e.lineNumber}),b=[],a=0;for(var _=p.length;a<_;a++)if(f=p[a].lineNumber,!(a>0&&p[a-1].lineNumber===f)){var M=p[a].oldContent,w=this.getLineContent(f);0!==w.length&&w!==M&&-1===Zi(w)&&b.push(f)}}return new function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}(y,v,b)},e.prototype._reduceOperations=function(e){return e.length<1e3?e:[this._toSingleEditOperation(e)]},e.prototype._toSingleEditOperation=function(e){for(var t=!1,n=e[0].range,i=e[e.length-1].range,o=new sn(n.startLineNumber,n.startColumn,i.endLineNumber,i.endColumn),r=n.startLineNumber,s=n.startColumn,a=[],u=0,l=e.length;u0){var d=a.lines.length,h=a.lines[d-1];c=1===d?new sn(u,l,u,l+a.lines[0].length):new sn(u,l,u+d-1,h.length+1)}else c=new sn(u,l,u,l);t=c.endLineNumber,n=c.endColumn,i.push(c),o=a}return i},e._sortOpsAscending=function(e,t){var n=sn.compareRangesUsingEnds(e.range,t.range);return 0===n?e.sortIndex-t.sortIndex:n},e._sortOpsDescending=function(e,t){var n=sn.compareRangesUsingEnds(e.range,t.range);return 0===n?t.sortIndex-e.sortIndex:-n},e}(),ih=function(){function e(e,t,n,i,o,r,s,a){this._chunks=e,this._bom=t,this._cr=n,this._lf=i,this._crlf=o,this._containsRTL=r,this._isBasicASCII=s,this._normalizeEOL=a}return e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf;return 0===t?e===Tu.LF?"\n":"\r\n":this._cr+this._crlf>t/2?"\r\n":"\n"},e.prototype.create=function(e){var t=this._getEOL(e),n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var i=0,o=n.length;i=55296&&t<=56319?(this._acceptChunk1(e.substr(0,e.length-1),!1),this._hasPreviousChar=!0,this._previousChar=t):(this._acceptChunk1(e,!1),this._hasPreviousChar=!1,this._previousChar=t)}},e.prototype._acceptChunk1=function(e,t){(t||0!==e.length)&&this._acceptChunk2(this._hasPreviousChar?String.fromCharCode(this._previousChar)+e:e)},e.prototype._acceptChunk2=function(e){var t=function(e,t){e.length=0,e[0]=0;for(var n=1,i=0,o=0,r=0,s=!0,a=0,u=t.length;a126)&&(s=!1)}var c=new function(e,t,n,i,o){this.lineStarts=e,this.cr=t,this.lf=n,this.crlf=i,this.isBasicASCII=o}(Xd(e),i,o,r,s);return e.length=0,c}(this._tmpLineStarts,e);this.chunks.push(new qd(e,t.lineStarts)),this.cr+=t.cr,this.lf+=t.lf,this.crlf+=t.crlf,this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII),this.isBasicASCII||this.containsRTL||(this.containsRTL=lo(e))},e.prototype.finish=function(e){return void 0===e&&(e=!0),this._finish(),new ih(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)},e.prototype._finish=function(){if(0===this.chunks.length&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Kd(e.buffer);e.lineStarts=t,13===this._previousChar&&this.cr++}},e}();function rh(e,t){var n,i;return("string"==typeof e?(n=e,(i=new oh).acceptChunk(n),i.finish()):e).create(t)}var sh=0,ah=function(){function e(e){this._source=e,this._eos=!1}return e.prototype.read=function(){if(this._eos)return null;for(var e=[],t=0,n=0;;){var i=this._source.read();if(null===i)return this._eos=!0,0===t?null:e.join("");if(i.length>0&&(e[t++]=i,n+=i.length),n>=65536)return e.join("")}},e}(),uh=function(e){function t(n,i,o,r){void 0===r&&(r=null);var s=e.call(this)||this;s._onWillDispose=s._register(new zt),s.onWillDispose=s._onWillDispose.event,s._onDidChangeDecorations=s._register(new yh),s.onDidChangeDecorations=s._onDidChangeDecorations.event,s._onDidChangeLanguage=s._register(new zt),s.onDidChangeLanguage=s._onDidChangeLanguage.event,s._onDidChangeLanguageConfiguration=s._register(new zt),s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event,s._onDidChangeTokens=s._register(new zt),s.onDidChangeTokens=s._onDidChangeTokens.event,s._onDidChangeOptions=s._register(new zt),s.onDidChangeOptions=s._onDidChangeOptions.event,s._eventEmitter=s._register(new vh),s.id="$model"+ ++sh,s.isForSimpleWidget=i.isForSimpleWidget,s._associatedResource="undefined"==typeof r||null===r?Tn.parse("inmemory://model/"+sh):r,s._attachedEditorCount=0,s._buffer=rh(n,i.defaultEOL),s._options=t.resolveOptions(s._buffer,i);var a,u=s._buffer.getLineCount(),l=s._buffer.getValueLengthInRange(new sn(1,1,u,s._buffer.getLineLength(u)+1),Du.TextDefined);return s._isTooLargeForTokenization=l>t.MODEL_TOKENIZATION_LIMIT||u>t.MANY_MANY_LINES,s._shouldSimplifyMode=s._isTooLargeForTokenization||l>t.MODEL_SYNC_LIMIT,s._setVersionId(1),s._isDisposed=!1,s._isDisposing=!1,s._languageIdentifier=o||fc,s._tokenizationListener=Pl.onDidChange(function(e){-1!==e.changedLanguages.indexOf(s._languageIdentifier.language)&&(s._resetTokenizationState(),s.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:s.getLineCount()}]}),s._shouldAutoTokenize()&&s._warmUpTokens())}),s._revalidateTokensTimeout=-1,s._languageRegistryListener=Bc.onDidChange(function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})}),s._resetTokenizationState(),s._instanceId=(a=sh,(a%=52)<26?String.fromCharCode(97+a):String.fromCharCode(65+a-26)),s._lastDecorationId=0,s._decorations=Object.create(null),s._decorationsTree=new lh,s._commandManager=new Rl(s),s._isUndoing=!1,s._isRedoing=!1,s._trimAutoWhitespaceLines=null,s}return Object(a.c)(t,e),t.createFromString=function(e,n,i,o){return void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS),void 0===i&&(i=null),void 0===o&&(o=null),new t(e,n,i,o)},t.resolveOptions=function(e,t){if(t.detectIndentation){var n=qc(e,t.tabSize,t.insertSpaces);return new ku({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new ku({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})},t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})},t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})},t.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._commandManager=null,this._decorations=null,this._decorationsTree=null,this._tokenizationListener.dispose(),this._languageRegistryListener.dispose(),this._clearTimers(),this._tokens=null,this._isDisposed=!0,this._buffer=null,e.prototype.dispose.call(this),this._isDisposing=!1},t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},t.prototype.equalsTextBuffer=function(e){return this._assertNotDisposed(),this._buffer.equals(e)},t.prototype._emitContentChangedEvent=function(e,t){this._isDisposing||this._eventEmitter.fire(new Bl(e,t))},t.prototype.setValue=function(e){if(this._assertNotDisposed(),null!==e){var t=rh(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)}},t.prototype._createContentChanged2=function(e,t,n,i,o,r,s,a,u){return{changes:[{range:new sn(e,t,n,i),rangeLength:o,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:s,isRedoing:a,isFlush:u}},t.prototype.setValueFromTextBuffer=function(e){if(this._assertNotDisposed(),null!==e){var t=this.getFullModelRange(),n=this.getValueLengthInRange(t),i=this.getLineCount(),o=this.getLineMaxColumn(i);this._buffer=e,this._increaseVersionId(),this._resetTokenizationState(),this._decorations=Object.create(null),this._decorationsTree=new lh,this._commandManager=new Rl(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Hl([new function(){this.changeType=1}],this._versionId,!1,!1),this._createContentChanged2(1,1,i,o,n,this.getValue(),!1,!1,!0))}},t.prototype.setEOL=function(e){this._assertNotDisposed();var t=e===Eu.CRLF?"\r\n":"\n";if(this._buffer.getEOL()!==t){var n=this.getFullModelRange(),i=this.getValueLengthInRange(n),o=this.getLineCount(),r=this.getLineMaxColumn(o);this._onBeforeEOLChange(),this._buffer.setEOL(t),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Hl([new function(){this.changeType=5}],this._versionId,!1,!1),this._createContentChanged2(1,1,o,r,i,this.getValue(),!1,!1,!1))}},t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId(),t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)},t.prototype._onAfterEOLChange=function(){for(var e=this.getVersionId(),t=this._decorationsTree.collectNodesPostOrder(),n=0,i=t.length;n0},t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},t.prototype.isTooLargeForHavingARichMode=function(){return this._shouldSimplifyMode},t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},t.prototype.isDisposed=function(){return this._isDisposed},t.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var e=0,t=0,n=this._buffer.getLineCount(),i=1;i<=n;i++){var o=this._buffer.getLineLength(i);o>=1e4?t+=o:e+=o}return t>e},Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),t.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=new ku({tabSize:"undefined"!=typeof e.tabSize?e.tabSize:this._options.tabSize,insertSpaces:"undefined"!=typeof e.insertSpaces?e.insertSpaces:this._options.insertSpaces,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:"undefined"!=typeof e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace});if(!this._options.equals(t)){var n=this._options.createChangeEvent(t);this._options=t,this._onDidChangeOptions.fire(n)}},t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=qc(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize})},t._normalizeIndentationFromWhitespace=function(e,t,n){for(var i=0,o=0;othis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)},t.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},t.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},t.prototype.getLineMinColumn=function(e){return this._assertNotDisposed(),1},t.prototype.getLineMaxColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1},t.prototype.getLineFirstNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)},t.prototype.getLineLastNonWhitespaceColumn=function(e){if(this._assertNotDisposed(),e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)},t.prototype._validateRangeRelaxedNoAllocations=function(e){var t,n,i=this._buffer.getLineCount(),o=e.startLineNumber,r=e.startColumn;o<1?(t=1,n=1):o>i?n=this.getLineMaxColumn(t=i):(t=0|o,n=r<=1?1:r>=(c=this.getLineMaxColumn(t))?c:0|r);var s,a,u=e.endLineNumber,l=e.endColumn;if(u<1)s=1,a=1;else if(u>i)a=this.getLineMaxColumn(s=i);else{var c;s=0|u,a=l<=1?1:l>=(c=this.getLineMaxColumn(s))?c:0|l}return o===t&&r===n&&u===s&&l===a&&e instanceof sn&&!(e instanceof ln)?e:new sn(t,n,s,a)},t.prototype._isValidPosition=function(e,t,n){return!(e<1||e>this._buffer.getLineCount()||t<1||t>this.getLineMaxColumn(e)||n&&t>1&&so(this._buffer.getLineCharCode(e,t-2)))},t.prototype._validatePosition=function(e,t,n){var i=Math.floor("number"==typeof e?e:1),o=Math.floor("number"==typeof t?t:1),r=this._buffer.getLineCount();if(i<1)return new rn(1,1);if(i>r)return new rn(r,this.getLineMaxColumn(r));if(o<=1)return new rn(i,1);var s=this.getLineMaxColumn(i);return o>=s?new rn(i,s):n&&so(this._buffer.getLineCharCode(i,o-2))?new rn(i,o-1):new rn(i,o)},t.prototype.validatePosition=function(e){return this._assertNotDisposed(),e instanceof rn&&this._isValidPosition(e.lineNumber,e.column,!0)?e:this._validatePosition(e.lineNumber,e.column,!0)},t.prototype._isValidRange=function(e,t){var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn;if(!this._isValidPosition(n,i,!1))return!1;if(!this._isValidPosition(o,r,!1))return!1;if(t){var s=i>1?this._buffer.getLineCharCode(n,i-2):0,a=r>1&&r<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,r-2):0,u=so(s),l=so(a);return!u&&!l}return!0},t.prototype.validateRange=function(e){if(this._assertNotDisposed(),e instanceof sn&&!(e instanceof ln)&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1),n=this._validatePosition(e.endLineNumber,e.endColumn,!1),i=t.lineNumber,o=t.column,r=n.lineNumber,s=n.column,a=o>1?this._buffer.getLineCharCode(i,o-2):0,u=s>1&&s<=this._buffer.getLineLength(r)?this._buffer.getLineCharCode(r,s-2):0,l=so(a),c=so(u);return l||c?i===r&&o===s?new sn(i,o-1,r,s-1):l&&c?new sn(i,o-1,r,s+1):l?new sn(i,o-1,r,s):new sn(i,o,r,s+1):new sn(i,o,r,s)},t.prototype.modifyPosition=function(e,t){this._assertNotDisposed();var n=this.getOffsetAt(e)+t;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,n)))},t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new sn(1,1,e,this.getLineMaxColumn(e))},t.prototype.findMatchesLineByLine=function(e,t,n,i){return this._buffer.findMatchesLineByLine(e,t,n,i)},t.prototype.findMatches=function(e,t,n,i,o,r,s){var a;if(void 0===s&&(s=999),this._assertNotDisposed(),a=sn.isIRange(t)?this.validateRange(t):this.getFullModelRange(),!n&&e.indexOf("\n")<0){var u=new Td(e,n,i,o).parseSearchRequest();return u?this.findMatchesLineByLine(a,u,r,s):[]}return jd.findMatches(this,new Td(e,n,i,o),a,r,s)},t.prototype.findNextMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var a=new Td(e,n,i,o).parseSearchRequest(),u=this.getLineCount(),l=new sn(s.lineNumber,s.column,u,this.getLineMaxColumn(u)),c=this.findMatchesLineByLine(l,a,r,1);return jd.findNextMatch(this,new Td(e,n,i,o),s,r),c.length>0?c[0]:(l=new sn(1,1,s.lineNumber,this.getLineMaxColumn(s.lineNumber)),(c=this.findMatchesLineByLine(l,a,r,1)).length>0?c[0]:null)}return jd.findNextMatch(this,new Td(e,n,i,o),s,r)},t.prototype.findPreviousMatch=function(e,t,n,i,o,r){this._assertNotDisposed();var s=this.validatePosition(t);return jd.findPreviousMatch(this,new Td(e,n,i,o),s,r)},t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},t.prototype.pushEditOperations=function(e,t,n){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t.prototype._pushEditOperations=function(e,t,n){var i=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var o=t.map(function(e){return{range:i.validateRange(e.range),text:e.text}}),r=!0,s=0,a=e.length;su.endLineNumber||u.startLineNumber>f.endLineNumber)){l=!0;break}if(!l){r=!1;break}}if(r)for(s=0,a=this._trimAutoWhitespaceLines.length;sf.endLineNumber||h===f.startLineNumber&&f.startColumn===p&&f.isEmpty()&&m&&m.length>0&&"\n"===m.charAt(0))){g=!1;break}}g&&t.push({range:new sn(h,1,h,p),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)},t.prototype.applyEdits=function(e){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},t._eolCount=function(e){for(var t=0,n=0,i=0,o=e.length;i=0;b--){var _=p+b;u.push(new zl(_,this.getLineContent(s-l-v+_)))}if(ythis.getLineCount()?[]:this.getLinesDecorations(e,e,t,n)},t.prototype.getLinesDecorations=function(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=this.getLineCount(),r=Math.min(o,Math.max(1,e)),s=Math.min(o,Math.max(1,t)),a=this.getLineMaxColumn(s);return this._getDecorationsInRange(new sn(r,1,s,a),n,i)},t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var i=this.validateRange(e);return this._getDecorationsInRange(i,t,n)},t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(i)},t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0),void 0===t&&(t=!1);var n=this.getVersionId(),i=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(i)},t.prototype._getDecorationsInRange=function(e,t,n){var i=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn),o=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn),r=this.getVersionId(),s=this._decorationsTree.intervalSearch(i,o,t,n,r);return this._ensureNodesHaveRanges(s)},t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t0)for(;o>0&&s>=1;){var u=this.getLineFirstNonWhitespaceColumn(s);if(0!==u){if(u=0;c--)l=(p=this._tokens._tokenizeText(this._buffer,r[c],l))?p.endState.clone():a.clone();var d=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+d);for(var h=e;h<=t;h++){var p,g=this.getLineContent(h);(p=this._tokens._tokenizeText(this._buffer,g,l))?(this._tokens._setTokens(this._tokens.languageIdentifier.id,h-1,g.length,p.tokens),this._tokens._setIsInvalid(h-1,!1),this._tokens._setState(h-1,l),l=p.endState.clone(),i.registerChangedTokens(h)):l=a.clone()}var f=i.build();f&&this._onDidChangeTokens.fire(f)}}},t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Kc;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)},t.prototype.isCheapToTokenize=function(e){return this._tokens.isCheapToTokenize(e)},t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)},t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)},t.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)},t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},t.prototype.getModeId=function(){return this._languageIdentifier.language},t.prototype.setMode=function(e){if(this._languageIdentifier.id!==e.id){var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e,this._resetTokenizationState(),this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]}),this._onDidChangeLanguage.fire(t),this._onDidChangeLanguageConfiguration.fire({})}},t.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),i=n.column,o=this._getLineTokens(n.lineNumber);return o.getLanguageId(o.findTokenIndexAtOffset(i-1))},t.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1,e._revalidateTokensNow()},0))},t.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e),this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()},t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());for(var t=new Kc,n=pc.create(!1);this._tokens.hasLinesToTokenize(this._buffer)&&!(n.elapsed()>20)&&!(this._tokens._tokenizeOneLine(this._buffer,t)>=e););this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var i=t.build();i&&this._onDidChangeTokens.fire(i)},t.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)},t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e),i=this.getLineContent(n.lineNumber),o=this._getLineTokens(n.lineNumber),r=o.findTokenIndexAtOffset(n.column-1),s=t._findLanguageBoundaries(o,r),a=s[0],u=s[1],l=Fc(n.column,Bc.getWordDefinition(o.getLanguageId(r)),i.substring(a,u),a);if(l)return l;if(r>0&&a===n.column-1){var c=t._findLanguageBoundaries(o,r-1),d=c[0],h=c[1],p=Fc(n.column,Bc.getWordDefinition(o.getLanguageId(r-1)),i.substring(d,h),d);if(p)return p}return null},t._findLanguageBoundaries=function(e,t){for(var n,i,o=e.getLanguageId(t),r=t;r>=0&&e.getLanguageId(r)===o;r--)n=e.getStartOffset(r);r=t;for(var s=e.getCount();r0&&n.getStartOffset(o)===e.column-1){a=n.getStartOffset(o);var l,c,d,h=Bc.getBracketsSupport(n.getLanguageId(--o));if(h&&!_c(n.getStandardTokenType(o))&&(s=Math.max(n.getStartOffset(o),e.column-1-h.maxBracketLength),(l=kc.findPrevBracketInToken(h.reversedRegex,t,i,s,a))&&l.startColumn<=e.column&&e.column<=l.endColumn&&(c=(c=i.substring(l.startColumn-1,l.endColumn-1)).toLowerCase(),d=this._matchFoundBracket(l,h.textIsBracket[c],h.textIsOpenBracket[c]))))return d}return null},t.prototype._matchFoundBracket=function(e,t,n){var i;if(n){if(i=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,i]}else if(i=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,i];return null},t.prototype._findMatchingBracketUp=function(e,t){for(var n=e.languageIdentifier.id,i=e.reversedRegex,o=-1,r=t.lineNumber;r>=1;r--){var s=this._getLineTokens(r),a=s.getCount(),u=this._buffer.getLineContent(r),l=a-1,c=-1;for(r===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);l>=0;l--){var d=s.getLanguageId(l),h=s.getStandardTokenType(l),p=s.getStartOffset(l),g=s.getEndOffset(l);if(-1===c&&(c=g),d===n&&!_c(h))for(;;){var f=kc.findPrevBracketInToken(i,r,u,p,c);if(!f)break;var m=u.substring(f.startColumn-1,f.endColumn-1);if((m=m.toLowerCase())===e.open?o++:m===e.close&&o--,0===o)return f;c=f.startColumn-1}c=-1}}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=a.getCount(),l=this._buffer.getLineContent(r),c=0,d=0;for(r===t.lineNumber&&(c=a.findTokenIndexAtOffset(t.column-1),d=t.column-1);c=1;o--){var r=this._getLineTokens(o),s=r.getCount(),a=this._buffer.getLineContent(o),u=s-1,l=-1;for(o===t.lineNumber&&(u=r.findTokenIndexAtOffset(t.column-1),l=t.column-1);u>=0;u--){var c=r.getLanguageId(u),d=r.getStandardTokenType(u),h=r.getStartOffset(u),p=r.getEndOffset(u);if(-1===l&&(l=p),n!==c&&(i=Bc.getBracketsSupport(n=c)),i&&!_c(d)){var g=kc.findPrevBracketInToken(i.reversedRegex,o,a,h,l);if(g)return this._toFoundBracket(i,g)}l=-1}}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=s.getCount(),u=this._buffer.getLineContent(o),l=0,c=0;for(o===t.lineNumber&&(l=s.findTokenIndexAtOffset(t.column-1),c=t.column-1);ln)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");for(var i=Bc.getFoldingRules(this._languageIdentifier.id),o=i&&i.offSide,r=new Array(t-e+1),s=-2,a=-1,u=-2,l=-1,c=e;c<=t;c++){var d=c-e,h=this._computeIndentLevel(c-1);if(h>=0)s=c-1,a=h,r[d]=Math.ceil(h/this._options.tabSize);else{if(-2===s){s=-1,a=-1;for(var p=c-2;p>=0;p--)if((g=this._computeIndentLevel(p))>=0){s=p,a=g;break}}if(-1!==u&&(-2===u||u=0){u=p,l=g;break}}r[d]=-1===a||-1===l?0:a0?this._deferredEvent=this._deferredEvent?this._deferredEvent.merge(e):e:(this._fastEmitter.fire(e),this._slowEmitter.fire(e))},t}(Ct),bh=function(){function e(t,n,i,o){this._languageIdentifier=t;var r=o.editor;this.readOnly=r.readOnly,this.tabSize=i.tabSize,this.insertSpaces=i.insertSpaces,this.oneIndent=n,this.pageSize=Math.floor(r.layoutInfo.height/r.fontInfo.lineHeight)-2,this.lineHeight=r.lineHeight,this.useTabStops=r.useTabStops,this.wordSeparators=r.wordSeparators,this.emptySelectionClipboard=r.emptySelectionClipboard,this.autoClosingBrackets=r.autoClosingBrackets,this.autoIndent=r.autoIndent,this.autoClosingPairsOpen={},this.autoClosingPairsClose={},this.surroundingPairs={},this._electricChars=null;var s=e._getAutoClosingPairs(t);if(s)for(var a=0;a=i.length)&&ao(i.charCodeAt(n))},e.isHighSurrogate=function(e,t,n){var i=e.getLineContent(t);return!(n<0||n>=i.length)&&so(i.charCodeAt(n))},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)return s-ts?s:o},e.nextTabStop=function(e,t){return e+t-e%t},e.prevTabStop=function(e,t){return e-1-(e-1)%t},e}(),Nh=function(){function e(e){this.modelState=null,this.viewState=null,this._selTrackedRange=null,this._setState(e,new _h(new sn(1,1,1,1),0,new rn(1,1),0),new _h(new sn(1,1,1,1),0,new rn(1,1),0))}return e.prototype.dispose=function(e){this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,null,Au.AlwaysGrowsWhenTypingAtEdges)},e.prototype.asCursorState=function(){return new wh(this.modelState,this.viewState)},e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);return this.modelState.selection.getDirection()===tn.LTR?new ln(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ln(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)},e.prototype.ensureValidState=function(e){this._setState(e,this.modelState,this.viewState)},e.prototype.setState=function(e,t,n){this._setState(e,t,n)},e.prototype._setState=function(e,t,n){if(t){r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0,o=(s=e.model.validatePosition(t.position),t.position.equals(s)?t.leftoverVisibleColumns:0);t=new _h(r,i,s,o)}else{var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart)),s=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new _h(r,n.selectionStartLeftoverVisibleColumns,s,n.leftoverVisibleColumns)}if(n)l=e.validateViewRange(n.selectionStart,t.selectionStart),c=e.validateViewPosition(n.position,t.position),n=new _h(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns);else{var a=e.convertModelPositionToViewPosition(new rn(t.selectionStart.startLineNumber,t.selectionStart.startColumn)),u=e.convertModelPositionToViewPosition(new rn(t.selectionStart.endLineNumber,t.selectionStart.endColumn)),l=new sn(a.lineNumber,a.column,u.lineNumber,u.column),c=e.convertModelPositionToViewPosition(t.position);n=new _h(l,t.selectionStartLeftoverVisibleColumns,c,t.leftoverVisibleColumns)}this.modelState&&this.viewState&&this.modelState.equals(t)&&this.viewState.equals(n)||(this.modelState=t,this.viewState=n,this._selTrackedRange=e.model._setTrackedRange(this._selTrackedRange,this.modelState.selection,Au.AlwaysGrowsWhenTypingAtEdges))},e}(),Ih=function(){function e(e){this.context=e,this.primaryCursor=new Nh(e),this.secondaryCursors=[],this.lastAddedCursorIndex=0}return e.prototype.dispose=function(){this.primaryCursor.dispose(this.context),this.killSecondaryCursors()},e.prototype.updateContext=function(e){this.context=e},e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;en){var r=t-n;for(o=0;o=e+1&&this.lastAddedCursorIndex--,this.secondaryCursors[e].dispose(this.context),this.secondaryCursors.splice(e,1)},e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;td&&t[_].index--;e.splice(d,1),t.splice(c,1),this._removeSecondaryCursor(d-1),o--}}}},e}(),Sh=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber,n.endColumn,n.endLineNumber,n.endColumn)},e}(),xh=function(){function e(e,t,n){void 0===n&&(n=!1),this._range=e,this._text=t,this.insertsAutoWhitespace=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.startLineNumber,n.startColumn,n.startLineNumber,n.startColumn)},e}(),Dh=function(){function e(e,t,n,i,o){void 0===o&&(o=!1),this._range=e,this._text=t,this._columnDeltaOffset=i,this._lineNumberDeltaOffset=n,this.insertsAutoWhitespace=o}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset,n.endLineNumber+this._lineNumberDeltaOffset,n.endColumn+this._columnDeltaOffset)},e}(),Th=function(){function e(e,t,n){this._range=e,this._text=t,this._initialSelection=n}return e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text),this._selectionId=t.trackSelection(this._initialSelection)},e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)},e}(),Eh=function(e,t,n){this.lineNumber=e,this.column=t,this.leftoverVisibleColumns=n},kh=function(){function e(){}return e.left=function(e,t,n,i){return i>t.getLineMinColumn(n)?Lh.isLowSurrogate(t,n,i-2)?i-=2:i-=1:n>1&&(i=t.getLineMaxColumn(n-=1)),new Eh(n,i,0)},e.moveLeft=function(t,n,i,o,r){var s,a;if(i.hasSelection()&&!o)s=i.selection.startLineNumber,a=i.selection.startColumn;else{var u=e.left(t,n,i.position.lineNumber,i.position.column-(r-1));s=u.lineNumber,a=u.column}return i.move(o,s,a,0)},e.right=function(e,t,n,i){return iu?(n=u,s?i=t.getLineMaxColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=Lh.columnFromVisibleColumn2(e,t,n,a),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new Eh(n,i,o)},e.moveDown=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.endLineNumber,a=i.selection.endColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.down(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateDown=function(t,n,i){var o=i.selection,r=e.down(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.down(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new _h(new sn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new rn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.up=function(e,t,n,i,o,r,s){var a=Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize)+o;return(n-=r)<1?(n=1,s?i=t.getLineMinColumn(n):(i=Math.min(t.getLineMaxColumn(n),i),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1))):(i=Lh.columnFromVisibleColumn2(e,t,n,a),Lh.isInsideSurrogatePair(t,n,i)&&(i-=1)),o=a-Lh.visibleColumnFromColumn(t.getLineContent(n),i,e.tabSize),new Eh(n,i,o)},e.moveUp=function(t,n,i,o,r){var s,a;i.hasSelection()&&!o?(s=i.selection.startLineNumber,a=i.selection.startColumn):(s=i.position.lineNumber,a=i.position.column);var u=e.up(t,n,s,a,i.leftoverVisibleColumns,r,!0);return i.move(o,u.lineNumber,u.column,u.leftoverVisibleColumns)},e.translateUp=function(t,n,i){var o=i.selection,r=e.up(t,n,o.selectionStartLineNumber,o.selectionStartColumn,i.selectionStartLeftoverVisibleColumns,1,!1),s=e.up(t,n,o.positionLineNumber,o.positionColumn,i.leftoverVisibleColumns,1,!1);return new _h(new sn(r.lineNumber,r.column,r.lineNumber,r.column),r.leftoverVisibleColumns,new rn(s.lineNumber,s.column),s.leftoverVisibleColumns)},e.moveToBeginningOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMinColumn(o),s=t.getLineFirstNonWhitespaceColumn(o)||r;return n.move(i,o,n.position.column===s?r:s,0)},e.moveToEndOfLine=function(e,t,n,i){var o=n.position.lineNumber,r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e.moveToBeginningOfBuffer=function(e,t,n,i){return n.move(i,1,1,0)},e.moveToEndOfBuffer=function(e,t,n,i){var o=t.getLineCount(),r=t.getLineMaxColumn(o);return n.move(i,o,r,0)},e}(),jh=function(){function e(){}return e.deleteRight=function(e,t,n,i){for(var o=[],r=3!==e,s=0,a=i.length;s1){var d=n.getLineContent(c.lineNumber),h=Zi(d);if(c.column<=(-1===h?d.length+1:h+1)){var p=Lh.visibleColumnFromColumn2(t,n,c),g=Lh.prevTabStop(p,t.tabSize),f=Lh.columnFromVisibleColumn2(t,n,c.lineNumber,g);l=new sn(c.lineNumber,f,c.lineNumber,c.column)}else l=new sn(c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var m=kh.left(t,n,c.lineNumber,c.column);l=new sn(m.lineNumber,m.column,c.lineNumber,c.column)}}l.isEmpty()?o[s]=null:(l.startLineNumber!==l.endLineNumber&&(r=!0),o[s]=new Sh(l,""))}return[r,o]},e.cut=function(e,t,n){for(var i=[],o=0,r=n.length;o1?(u=a.lineNumber-1,l=t.getLineMaxColumn(a.lineNumber-1),c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber)):(u=a.lineNumber,l=1,c=a.lineNumber,d=t.getLineMaxColumn(a.lineNumber));var h=new sn(u,l,c,d);i[o]=h.isEmpty()?null:new Sh(h,"")}else i[o]=null;else i[o]=new Sh(s,"")}return new Ch(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},e}(),Ah=function(){function e(e,t){this._opts=t,this._selection=e,this._useLastEditRangeForCursorEndPosition=!1,this._selectionStartColumnStaysPut=!1}return e.unshiftIndentCount=function(e,t,n){var i=Lh.visibleColumnFromColumn(e,t,n);return Lh.prevTabStop(i,n)/n},e.shiftIndentCount=function(e,t,n){var i=Lh.visibleColumnFromColumn(e,t,n);return Lh.nextTabStop(i,n)/n},e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)},e.prototype.getEditOperations=function(t,n){var i=this._selection.startLineNumber,o=this._selection.endLineNumber;1===this._selection.endColumn&&i!==o&&(o-=1);var r=this._opts.tabSize,s=this._opts.oneIndent,a=i===o;if(this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(i))&&(this._useLastEditRangeForCursorEndPosition=!0),this._opts.useTabStops)for(var u=["",s],l=0,c=0,d=i;d<=o;d++,l=c){c=0;var h=Zi(y=t.getLineContent(d));if((!this._opts.isUnshift||0!==y.length&&0!==h)&&(a||this._opts.isUnshift||0!==y.length)){if(-1===h&&(h=y.length),d>1&&Lh.visibleColumnFromColumn(y,h+1,r)%r!=0&&t.isCheapToTokenize(d-1)){var p=Bc.getRawEnterActionAtPosition(t,d-1,t.getLineMaxColumn(d-1));if(p){if(c=l,p.appendText)for(var g=0,f=p.appendText.length;g1){var a=i-1;for(a=i-1;a>=1&&!(Gi(n.getLineContent(a))>=0);a--);if(a<1)return null;var u=n.getLineMaxColumn(a),l=Bc.getEnterAction(n,new sn(a,u,a,u));l&&(r=l.indentation,(o=l.enterAction)&&(r+=o.appendText))}return o&&(o===xc.Indent&&(r=e.shiftIndent(t,r)),o===xc.Outdent&&(r=e.unshiftIndent(t,r)),r=t.normalizeIndentation(r)),r||null},e._replaceJumpToNextIndent=function(e,t,n,i){var o="",r=n.getStartPosition();if(e.insertSpaces)for(var s=Lh.visibleColumnFromColumn2(e,t,r),a=e.tabSize,u=a-s%a,l=0;l=0?Math.max(o.endColumn,_+1):n.getLineMaxColumn(o.endLineNumber)),i)return new xh(o,b+t.normalizeIndentation(g.afterEnter),!0);var M=0;return v<=_+1&&(t.insertSpaces||(y=Math.ceil(y/t.tabSize)),M=Math.min(y+1-t.normalizeIndentation(g.afterEnter).length-1,0)),new Dh(o,b+t.normalizeIndentation(g.afterEnter),0,M,!0)}return e._typeCommand(o,"\n"+t.normalizeIndentation(m),i)},e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var i=0,o=n.length;i1){var l=Dd(e.wordSeparators),c=u.charCodeAt(a.column-2);if(0===l.get(c))return!1}var d=u.charAt(a.column-1);if(d){var h=e.autoClosingPairsOpen[i]===i,p=!1;for(var g in e.autoClosingPairsClose)if((h||e.autoClosingPairsOpen[g]!==g)&&d===g){p=!0;break}if(!p&&!/\s/.test(d))return!1}if(!t.isCheapToTokenize(a.lineNumber))return!1;t.forceTokenization(a.lineNumber);var f=t.getLineTokens(a.lineNumber),m=!1;try{m=Bc.shouldAutoClosePair(i,f,a.column)}catch(e){xt(e)}if(!m)return!1}return!0},e._runAutoClosingOpenCharType=function(e,t,n,i,o){for(var r=[],s=0,a=i.length;s0&&this._emit(e)}},t.prototype._emit=function(e){for(var t=this._listeners.slice(0),n=0,i=t.length;n1)return;var a=new sn(r.lineNumber,r.column,r.lineNumber,r.column);this.emitCursorRevealRange(a,t,n,i)},t.prototype.emitCursorRevealRange=function(e,t,n,i){try{this._beginEmit().emit(new Yh(e,t,n,i))}finally{this._endEmit()}},t.prototype.trigger=function(e,t,n){var i=Yn;if(t!==i.CompositionStart)if(t!==i.CompositionEnd){if(!this._configuration.editor.readOnly){var o=new Jh(this._model,this),r=mh.NotSet;this._cursors.ensureValidState(),this._isHandling=!0;try{switch(t){case i.Type:this._type(e,n.text);break;case i.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case i.Paste:r=mh.Paste,this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case i.Cut:this._cut();break;case i.Undo:r=mh.Undo,this._interpretCommandResult(this._model.undo());break;case i.Redo:r=mh.Redo,this._interpretCommandResult(this._model.redo());break;case i.ExecuteCommand:this._externalExecuteCommand(n);break;case i.ExecuteCommands:this._externalExecuteCommands(n)}}catch(e){xt(e)}this._isHandling=!1,this._emitStateChangedIfNecessary(e,r,o)&&this._revealRange(0,0,!0,0)}}else this._isDoingComposition=!1;else this._isDoingComposition=!0},t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Ph.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,i=t.length;n0&&(r[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,r,function(n){for(var i=[],o=0;o0?(i[n].sort(s),a[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return i[n]},getTrackedSelection:function(t){var n=parseInt(t,10),i=e.model._getTrackedRange(e.trackedRanges[n]);return e.trackedRangesDirection[n]===tn.LTR?new ln(i.startLineNumber,i.startColumn,i.endLineNumber,i.endColumn):new ln(i.endLineNumber,i.endColumn,i.startLineNumber,i.startColumn)}})):a[n]=e.selectionsBefore[n]};for(o=0;oo.identifier.major?i.identifier.major:o.identifier.major).toString()]=!0;for(var s=0;s0&&n--}}return t},e}();function ep(e,t,n,i,o,r){for(var s="

    ",a=i,u=0,l=0,c=t.getCount();l0;)h+=" ",g--;break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="\ufffd";break;case 13:h+="​";break;default:h+=String.fromCharCode(p)}}if(s+=''+h+"",d>o||a>=o)break}}return s+"
    "}var tp=function(e,t,n,i){this.top=0|e,this.left=0|t,this.width=0|n,this.height=0|i},np=function(e,t,n,i){this.content=e,this.minColumn=t,this.maxColumn=n,this.tokens=i},ip=function(e,t,n){this.range=e,this.inlineClassName=t,this.type=n},op=function(){function e(e,t,n,i,o){this.editorId=e,this.model=t,this.configuration=n,this._linesCollection=i,this._coordinatesConverter=o,this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()}return e.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},e.prototype.dispose=function(){this._decorationsCache=null,this._clearCachedModelDecorationsResolver()},e.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},e.prototype._getOrCreateViewModelDecoration=function(e){var t=e.id,n=this._decorationsCache[t];if(!n){var i=e.range,o=e.options,r=void 0;if(o.isWholeLine){var s=this._coordinatesConverter.convertModelPositionToViewPosition(new rn(i.startLineNumber,1)),a=this._coordinatesConverter.convertModelPositionToViewPosition(new rn(i.endLineNumber,this.model.getLineMaxColumn(i.endLineNumber)));r=new sn(s.lineNumber,s.column,a.lineNumber,a.column)}else r=this._coordinatesConverter.convertModelRangeToViewRange(i);n=new function(e,t){this.range=e,this.options=t}(r,o),this._decorationsCache[t]=n}return n},e.prototype.getDecorationsViewportData=function(e){var t=!0;return(t=(t=t&&null!==this._cachedModelDecorationsResolver)&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e),this._cachedModelDecorationsResolverViewRange=e),this._cachedModelDecorationsResolver},e.prototype._getDecorationsViewportData=function(e){for(var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly),n=e.startLineNumber,i=e.endLineNumber,o=[],r=0,s=[],a=n;a<=i;a++)s[a-n]=[];for(var u=0,l=t.length;u=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=Cd(e),t=Cd(t),this.values[e]!==t&&(this.values[e]=t,e-1=n.length)return!1;var o=n.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(n.length-t),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=Cd(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t,n,i,o=0,r=this.values.length-1;o<=r;)if(e<(i=(n=this.prefixSum[t=o+(r-o)/2|0])-this.values[t]))r=t-1;else{if(!(e>=n))break;o=t+1}return new function(e,t){this.index=e,this.remainder=t}(t,e-i)},e}(),sp=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new rp(e),this._bustCache()}return e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0,this._cache=null},e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()},e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()},e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()},e.prototype.getTotalValue=function(){return this._actual.getTotalValue()},e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)},e.prototype.getIndexOf=function(e){if(e=Math.floor(e),null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t0){switch(l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1),s){case n:u=(i-o)/d+(i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},e.toRGBA=function(t){var n,i,o,r=t.h/360,s=t.s,a=t.l,u=t.a;if(0===s)n=i=o=a;else{var l=a<.5?a*(1+s):a+s-a*s,c=2*a-l;n=e._hue2rgb(c,l,r+1/3),i=e._hue2rgb(c,l,r),o=e._hue2rgb(c,l,r-1/3)}return new up(Math.round(255*n),Math.round(255*i),Math.round(255*o),u)},e}(),cp=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0),this.s=ap(Math.max(Math.min(1,t),0),3),this.v=ap(Math.max(Math.min(1,n),0),3),this.a=ap(Math.max(Math.min(1,i),0),3)}return e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a},e.fromRGBA=function(t){var n=t.r/255,i=t.g/255,o=t.b/255,r=Math.max(n,i,o),s=r-Math.min(n,i,o),a=0===r?0:s/r;return new e(Math.round(60*(0===s?0:r===n?((i-o)/s%6+6)%6:r===i?(o-n)/s+2:(n-i)/s+4)),a,r,t.a)},e.toRGBA=function(e){var t=e.h,n=e.v,i=e.a,o=n*e.s,r=o*(1-Math.abs(t/60%2-1)),s=n-o,a=[0,0,0],u=a[0],l=a[1],c=a[2];return t<60?(u=o,l=r):t<120?(u=r,l=o):t<180?(l=o,c=r):t<240?(l=r,c=o):t<300?(u=r,c=o):t<360&&(u=o,c=r),u=Math.round(255*(u+s)),l=Math.round(255*(l+s)),c=Math.round(255*(c+s)),new up(u,l,c,i)},e}(),dp=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof up)this.rgba=e;else if(e instanceof lp)this._hsla=e,this.rgba=lp.toRGBA(e);else{if(!(e instanceof cp))throw new Error("Invalid color ctor argument");this._hsva=e,this.rgba=cp.toRGBA(e)}}return e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red},Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:lp.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hsva",{get:function(){return this._hsva?this._hsva:cp.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),e.prototype.equals=function(e){return!!e&&up.equals(this.rgba,e.rgba)&&lp.equals(this.hsla,e.hsla)&&cp.equals(this.hsva,e.hsva)},e.prototype.getRelativeLuminance=function(){return ap(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)},e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},e.prototype.getContrastRatio=function(e){var t=this.getRelativeLuminance(),n=e.getRelativeLuminance();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},e.prototype.isDarker=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3<128},e.prototype.isLighter=function(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128},e.prototype.isLighterThan=function(e){return this.getRelativeLuminance()>e.getRelativeLuminance()},e.prototype.isDarkerThan=function(e){return this.getRelativeLuminance()=s&&d<=a));o[c]=h.getViewLineCount(),this.lines[c]=h}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new sp(o)},e.prototype.getHiddenAreas=function(){var e=this;return this.hiddenAreasIds.map(function(t){return e.model.getDecorationRange(t)})},e.prototype._reduceRanges=function(e){var t=this;if(0===e.length)return[];for(var n=e.map(function(e){return t.model.validateRange(e)}).sort(sn.compareRangesUsingStarts),i=[],o=n[0].startLineNumber,r=n[0].endLineNumber,s=1,a=n.length;sr+1?(i.push(new sn(o,1,r,1)),o=u.startLineNumber,r=u.endLineNumber):u.endLineNumber>r&&(r=u.endLineNumber)}return i.push(new sn(o,1,r,1)),i},e.prototype.setHiddenAreas=function(e){var t=this,n=this._reduceRanges(e),i=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(sn.compareRangesUsingStarts);if(n.length===i.length){for(var o=!1,r=0;r=u&&p<=l?this.lines[r].isVisible()&&(this.lines[r]=this.lines[r].setVisible(!1),g=!0):(h=!0,this.lines[r].isVisible()||(this.lines[r]=this.lines[r].setVisible(!0),g=!0)),g){var f=this.lines[r].getViewLineCount();this.prefixSumComputer.changeValue(r,f)}}return h||this.setHiddenAreas([]),!0},e.prototype.modelPositionIsVisible=function(e,t){return!(e<1||e>this.lines.length)&&this.lines[e-1].isVisible()},e.prototype.setTabSize=function(e){return this.tabSize!==e&&(this.tabSize=e,this._constructLines(!1),!0)},e.prototype.setWrappingSettings=function(e,t,n){return(this.wrappingIndent!==e||this.wrappingColumn!==t||this.columnsForFullWidthChar!==n)&&(this.wrappingIndent=e,this.wrappingColumn=t,this.columnsForFullWidthChar=n,this._constructLines(!1),!0)},e.prototype.onModelFlushed=function(){this._constructLines(!0)},e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var i=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,o=this.prefixSumComputer.getAccumulatedValue(n-1);return this.lines.splice(t-1,n-t+1),this.prefixSumComputer.removeValues(t-1,n-t+1),new Bh(i,o)},e.prototype.onModelLinesInserted=function(e,t,n,i){if(e<=this._validModelVersionId)return null;for(var o=this.getHiddenAreas(),r=!1,s=new rn(t,1),a=0;aa?(g=(p=1+(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+a-1))+(o-a)-1,u=!0):ot?t:e},e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)},e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e),t=this._toValidViewLineNumber(t);for(var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e)),i=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),o=[],r=[],s=n.lineNumber-1,a=i.lineNumber-1,u=null,l=s;l<=a;l++){var c=this.lines[l];if(c.isVisible()){var d=0;if(l===s){var h=c.getViewLineNumberOfModelPosition(0,n.column);d=c.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(l+1))-h+1}else h=c.getViewLineNumberOfModelPosition(0,1),d=c.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(l+1))-h+1;r.push(d),null===u&&(u=new rn(l+1,0))}else null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,l)),u=null)}null!==u&&(o=o.concat(this.model.getLinesIndentGuides(u.lineNumber,i.lineNumber)),u=null);for(var p=t-e+1,g=new Array(p),f=0,m=0,y=o.length;mt&&(p=!0,h=t-o+1),c.getViewLinesData(this.model,u+1,d,d+h,o-e,n,a),o+=h,p)break}}return a},e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState(),e=this._toValidViewLineNumber(e);var i=this.prefixSumComputer.getIndexOf(e-1),o=i.index,r=i.remainder,s=this.lines[o],a=s.getViewLineMinColumn(this.model,o+1,r),u=s.getViewLineMaxColumn(this.model,o+1,r);tu&&(t=u);var l=s.getModelColumnOfViewPosition(r,t);return this.model.validatePosition(new rn(o+1,l)).equals(n)?new rn(e,t):this.convertModelPositionToViewPosition(n.lineNumber,n.column)},e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState(),e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1),i=n.index,o=this.lines[i].getModelColumnOfViewPosition(n.remainder,t);return this.model.validatePosition(new rn(i+1,o))},e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();for(var n=this.model.validatePosition(new rn(e,t)),i=n.lineNumber,o=n.column,r=i-1,s=!1;r>0&&!this.lines[r].isVisible();)r--,s=!0;if(0===r&&!this.lines[r].isVisible())return new rn(1,1);var a=1+(0===r?0:this.prefixSumComputer.getAccumulatedValue(r-1));return s?this.lines[r].getViewPositionOfModelPosition(a,this.model.getLineMaxColumn(r+1)):this.lines[i-1].getViewPositionOfModelPosition(a,o)},e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var o=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(o,this.model.getLineMaxColumn(n+1))},e.prototype.getAllOverviewRulerDecorations=function(e,t,n){for(var i=this.model.getOverviewRulerDecorations(e,t),o=new _p,r=0,s=i.length;r0&&(r=this.wrappedIndent+r),r},e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return n>0?this.wrappedIndentLength+1:1},e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1},e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var i=this.getInputStartOffsetOfOutputLineIndex(n),o=this.getInputEndOffsetOfOutputLineIndex(e,t,n),r=e.getValueInRange({startLineNumber:t,startColumn:i+1,endLineNumber:t,endColumn:o+1});n>0&&(r=this.wrappedIndent+r);var s=n>0?this.wrappedIndentLength+1:1,a=r.length+1,u=0;n>0&&(u=this.wrappedIndentLength);var l=e.getLineTokens(t);return new np(r,s,a,l.sliceAndInflate(i,o,u))},e.prototype.getViewLinesData=function(e,t,n,i,o,r,s){if(!this._isVisible)throw new Error("Not supported");for(var a=n;a0&&(n0&&(o+=this.wrappedIndentLength),new rn(e+i,o)},e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex},e}();function yp(e,t,n,i,o,r,s){var a=e.createLineMapping(t,n,i,o,r);return null===a?s?gp.INSTANCE:fp.INSTANCE:new mp(a,s)}var vp=function(){function e(e){this._lines=e}return e.prototype._validPosition=function(e){return this._lines.model.validatePosition(e)},e.prototype._validRange=function(e){return this._lines.model.validateRange(e)},e.prototype.convertViewPositionToModelPosition=function(e){return this._validPosition(e)},e.prototype.convertViewRangeToModelRange=function(e){return this._validRange(e)},e.prototype.validateViewPosition=function(e,t){return this._validPosition(t)},e.prototype.validateViewRange=function(e,t){return this._validRange(t)},e.prototype.convertModelPositionToViewPosition=function(e){return this._validPosition(e)},e.prototype.convertModelRangeToViewRange=function(e){return this._validRange(e)},e.prototype.modelPositionIsVisible=function(e){var t=this._lines.model.getLineCount();return!(e.lineNumber<1||e.lineNumber>t)},e}(),bp=function(){function e(e){this.model=e}return e.prototype.dispose=function(){},e.prototype.createCoordinatesConverter=function(){return new vp(this)},e.prototype.getHiddenAreas=function(){return[]},e.prototype.setHiddenAreas=function(e){return!1},e.prototype.setTabSize=function(e){return!1},e.prototype.setWrappingSettings=function(e,t,n){return!1},e.prototype.onModelFlushed=function(){},e.prototype.onModelLinesDeleted=function(e,t,n){return new Bh(t,n)},e.prototype.onModelLinesInserted=function(e,t,n,i){return new Vh(t,n)},e.prototype.onModelLineChanged=function(e,t,n){return[!1,new Hh(t,t),null,null]},e.prototype.acceptVersionId=function(e){},e.prototype.getViewLineCount=function(){return this.model.getLineCount()},e.prototype.warmUpLookupCache=function(e,t){},e.prototype.getViewLinesIndentGuides=function(e,t){for(var n=t-e+1,i=new Array(n),o=0;o=t)return void(n>r&&(o[o.length-1]=n));o.push(i,t,n)}else this.result[e]=[i,t,n]},e}();function Mp(e,t){if(!e._resolvedColor){var n=t.type;e._resolvedColor=function(e,t){if("string"==typeof e)return e;var n=e?t.getColor(e.id):null;return n||(n=dp.transparent),n.toString()}("dark"===n?e.darkColor:"light"===n?e.color:e.hcColor,t)}return e._resolvedColor}var wp,Cp,Lp=function(){function e(t,n,i,o){this.r=e._clamp(t),this.g=e._clamp(n),this.b=e._clamp(i),this.a=e._clamp(o)}return e._clamp=function(e){return e<0?0:e>255?255:0|e},e}(),Np=function(){function e(){var e=this;this._onDidChange=new zt,this.onDidChange=this._onDidChange.event,this._updateColorMap(),Pl.onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}return e.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new e),this._INSTANCE},e.prototype._updateColorMap=function(){var e=Pl.getColorMap();if(!e)return this._colors=[null],void(this._backgroundIsLight=!0);this._colors=[null];for(var t=1;t=.5,this._onDidChange.fire(void 0)},e.prototype.getColor=function(e){return(e<1||e>=this._colors.length)&&(e=2),this._colors[e]},e.prototype.backgroundIsLight=function(){return this._backgroundIsLight},e._INSTANCE=null,e}(),Ip=function(){function e(t,n){if(760!==t.length)throw new Error("Invalid x2CharData");if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t,this.x1charData=n,this.x2charDataLight=e.soften(t,.8),this.x1charDataLight=e.soften(n,50/60)}return e.soften=function(e,t){for(var n=new Uint8ClampedArray(e.length),i=0,o=e.length;it.width||i+4>t.height)console.warn("bad render request outside image data");else{var u,l=a?this.x2charDataLight:this.x2charData,c=e._getChIndex(o),d=4*t.width,h=s.r,p=s.g,g=s.b,f=r.r-h,m=r.g-p,y=r.b-g,v=t.data,b=4*c*2,_=i*d+4*n;v[_+0]=h+f*(u=l[b]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+1]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+2]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+3]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+4]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+5]/255),v[_+5]=p+m*u,v[_+6]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+6]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[_+4]=h+f*(u=l[b+7]/255),v[_+5]=p+m*u,v[_+6]=g+y*u}},e.prototype.x1RenderChar=function(t,n,i,o,r,s,a){if(n+1>t.width||i+2>t.height)console.warn("bad render request outside image data");else{var u,l=a?this.x1charDataLight:this.x1charData,c=e._getChIndex(o),d=4*t.width,h=s.r,p=s.g,g=s.b,f=r.r-h,m=r.g-p,y=r.b-g,v=t.data,b=2*c*1,_=i*d+4*n;v[_+0]=h+f*(u=l[b]/255),v[_+1]=p+m*u,v[_+2]=g+y*u,v[(_+=d)+0]=h+f*(u=l[b+1]/255),v[_+1]=p+m*u,v[_+2]=g+y*u}},e.prototype.x2BlockRenderChar=function(e,t,n,i,o,r){if(t+2>e.width||n+4>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,g=n*s+4*t;p[g+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h,p[g+4]=c,p[g+5]=d,p[g+6]=h}},e.prototype.x1BlockRenderChar=function(e,t,n,i,o,r){if(t+1>e.width||n+2>e.height)console.warn("bad render request outside image data");else{var s=4*e.width,a=o.r,u=o.g,l=o.b,c=a+.5*(i.r-a),d=u+.5*(i.g-u),h=l+.5*(i.b-l),p=e.data,g=n*s+4*t;p[g+0]=c,p[g+1]=d,p[g+2]=h,p[(g+=s)+0]=c,p[g+1]=d,p[g+2]=h}},e}(),Sp=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}(Id),xp=function(){function e(e,t,n){this.classifier=new Sp(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,n,i,o,r){if(-1===i)return null;n=+n,i=+i,o=+o;var s=0,a="",u=-1;if((r=+r)!==sd.None&&-1!==(u=Zi(t))){a=t.substring(0,u);for(var l=0;li&&(a="",s=0)}var c=this.classifier,d=0,h=[],p=0,g=0,f=-1,m=0,y=-1,v=0,b=t.length;for(l=0;l0){var C=t.charCodeAt(l-1);1!==c.get(C)&&(f=l,m=s)}var L=1;if(mo(_)&&(L=o),(g=e.nextVisibleColumn(g,n,M,L))>i&&0!==l){var N=void 0,I=void 0;-1!==f&&m<=i?(N=f,I=m):-1!==y&&v<=i?(N=y,I=v):(N=l,I=s),h[p++]=N-d,d=N,g=e.nextVisibleColumn(I,n,M,L),f=-1,m=0,y=-1,v=0}if(-1!==f&&(m=e.nextVisibleColumn(m,n,M,L)),-1!==y&&(v=e.nextVisibleColumn(v,n,M,L)),2===w&&(r===sd.None||l>=u)&&(f=l+1,m=s),4===w&&l>>1;t===e[s]?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){t|=0;var i=!1;return i=this.changeWhitespaceHeight(e|=0,n|=0)||i,this.changeWhitespaceAfterLineNumber(e,t)||i},e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).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){n|=0;var i=(t|=0).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){var t=(e|=0).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){this._heights.splice(e|=0,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.onLinesDeleted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;nt&&(this._afterLineNumbers[n]-=t-e+1)}},e.prototype.onLinesInserted=function(e,t){e|=0,t|=0;for(var n=0,i=this._afterLineNumbers.length;n=t.length||t[o+1]>=e)return o;n=o+1|0}else i=o-1|0}return-1},e.prototype._findFirstWhitespaceAfterLineNumber=function(e){var t=this._findLastWhitespaceBeforeLineNumber(e|=0)+1;return t1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.getWhitespaceAccumulatedHeightBeforeLineNumber=function(e){return this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)},e.prototype.hasWhitespace=function(){return this._whitespaces.getCount()>0},e.prototype.isAfterLines=function(e){return e>this.getLinesTotalHeight()},e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;for(var t=0|this._lineCount,n=this._lineHeight,i=1,o=t;i=s+n)i=r+1;else{if(e>=s)return r;o=r}}return i>t?t:i},e.prototype.getLinesViewportData=function(e,t){t|=0;var n,i,o=this._lineHeight,r=0|this.getLineNumberAtOrAfterVerticalOffset(e|=0),s=0|this.getVerticalOffsetForLineNumber(r),a=0|this._lineCount,u=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r),l=0|this._whitespaces.getCount();-1===u?(u=l,i=a+1,n=0):(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));var c=s,d=c,h=0;s>=5e5&&(h=5e5*Math.floor(s/5e5),d-=h=Math.floor(h/o)*o);for(var p=[],g=e+(t-e)/2,f=-1,m=r;m<=a;m++){for(-1===f&&(c<=g&&gg)&&(f=m),c+=o,p[m-r]=d,d+=o;i===m;)d+=n,c+=n,++u>=l?i=a+1:(i=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(u),n=0|this._whitespaces.getHeightForWhitespaceIndex(u));if(c>=t){a=m;break}}-1===f&&(f=a);var y=0|this.getVerticalOffsetForLineNumber(a),v=r,b=a;return vt&&b--,{bigNumbersDelta:h,startLineNumber:r,endLineNumber:a,relativeVerticalOffset:p,centeredLineNumber:f,completelyVisibleStartLineNumber:v,completelyVisibleEndLineNumber:b}},e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e|=0);return(t>=1?this._lineHeight*t:0)+(e>0?this._whitespaces.getAccumulatedHeight(e-1):0)},e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n,i=0,o=this._whitespaces.getCount()-1;if(o<0)return-1;if(e>=this.getVerticalOffsetForWhitespaceIndex(o)+this._whitespaces.getHeightForWhitespaceIndex(o))return-1;for(;i=(n=this.getVerticalOffsetForWhitespaceIndex(t))+this._whitespaces.getHeightForWhitespaceIndex(t))i=t+1;else{if(e>=n)return t;o=t}return i},e.prototype.getWhitespaceAtVerticalOffset=function(e){var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var i=this._whitespaces.getHeightForWhitespaceIndex(t);return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:i}},e.prototype.getWhitespaceViewportData=function(e,t){t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e|=0),i=this._whitespaces.getCount()-1;if(n<0)return[];for(var o=[],r=n;r<=i;r++){var s=this.getVerticalOffsetForWhitespaceIndex(r),a=this._whitespaces.getHeightForWhitespaceIndex(r);if(s>=t)break;o.push({id:this._whitespaces.getIdForWhitespaceIndex(r),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(r),verticalOffset:s,height:a})}return o},e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)},e}(),kp=function(e){function t(t,n,i){var o=e.call(this)||this;return o._configuration=t,o._linesLayout=new Ep(n,o._configuration.editor.lineHeight),o.scrollable=o._register(new ed(0,i)),o._configureSmoothScrollDuration(),o.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight}),o.onDidScroll=o.scrollable.onScroll,o._updateHeight(),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onHeightMaybeChanged=function(){this._updateHeight()},t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)},t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight),e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight}),e.viewInfo&&this._configureSmoothScrollDuration(),this._updateHeight()},t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e),this._updateHeight()},t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t),this._updateHeight()},t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t),this._updateHeight()},t.prototype._getHorizontalScrollbarHeight=function(e){return this._configuration.editor.viewInfo.scrollbar.horizontal===Uc.Hidden?0:e.width>=e.scrollWidth?0:this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize},t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions(),t=this._linesLayout.getLinesTotalHeight();return t+=this._configuration.editor.viewInfo.scrollBeyondLastLine?e.height-this._configuration.editor.lineHeight:this._getHorizontalScrollbarHeight(e),Math.max(e.height,t)},t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})},t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getCurrentScrollPosition();return new tp(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions(),t=this.scrollable.getFutureScrollPosition();return new tp(t.scrollTop,t.scrollLeft,e.width,e.height)},t.prototype._computeScrollWidth=function(e,n){return this._configuration.editor.wrappingInfo.isViewportWrapping?Math.max(e,n):Math.max(e+t.LINES_HORIZONTAL_EXTRA_PX,n)},t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t}),this._updateHeight()},t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition(),t=e.scrollTop,n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}},t.prototype.addWhitespace=function(e,t,n){return this._linesLayout.insertWhitespace(e,t,n)},t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)},t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)},t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)},t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)},t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)},t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)},t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)},t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();return e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height),e<0&&(e=0),this._linesLayout.getLinesViewportData(e,e+t.height)},t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)},t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},t.prototype.getScrollWidth=function(){return this.scrollable.getScrollDimensions().scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollable.getScrollDimensions().scrollHeight},t.prototype.getCurrentScrollLeft=function(){return this.scrollable.getCurrentScrollPosition().scrollLeft},t.prototype.getCurrentScrollTop=function(){return this.scrollable.getCurrentScrollPosition().scrollTop},t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)},t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)},t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)},t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})},t.LINES_HORIZONTAL_EXTRA_PX=30,t}(Ct),jp=!0,Ap=function(e){function t(t,n,i,o){var r=e.call(this)||this;if(r.editorId=t,r.configuration=n,r.model=i,r.hasFocus=!1,r.viewportStartLineTrackedRange=null,r.viewportStartLineTop=0,jp&&r.model.isTooLargeForTokenization())r.lines=new bp(r.model);else{var s=r.configuration.editor,a=new xp(s.wrappingInfo.wordWrapBreakBeforeCharacters,s.wrappingInfo.wordWrapBreakAfterCharacters,s.wrappingInfo.wordWrapBreakObtrusiveCharacters);r.lines=new pp(r.model,a,r.model.getOptions().tabSize,s.wrappingInfo.wrappingColumn,s.fontInfo.typicalFullwidthCharacterWidth/s.fontInfo.typicalHalfwidthCharacterWidth,s.wrappingInfo.wrappingIndent)}return r.coordinatesConverter=r.lines.createCoordinatesConverter(),r.viewLayout=r._register(new kp(r.configuration,r.getLineCount(),o)),r._register(r.viewLayout.onDidScroll(function(e){try{r._beginEmit().emit(new Zh(e))}finally{r._endEmit()}})),r._centeredViewLine=-1,r.decorations=new op(r.editorId,r.model,r.configuration,r.lines,r.coordinatesConverter),r._registerModelEvents(),r._register(r.configuration.onDidChange(function(e){try{var t=r._beginEmit();r._onConfigurationChanged(t,e)}finally{r._endEmit()}})),r._register(Np.getInstance().onDidChange(function(){try{r._beginEmit().emit(new Gh)}finally{r._endEmit()}})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.decorations.dispose(),this.lines.dispose(),this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,null,Au.NeverGrowsWhenTypingAtEdges)},t.prototype.setHasFocus=function(e){this.hasFocus=e},t.prototype._onConfigurationChanged=function(e,t){var n=this.getCenteredRangeInViewport(),i=!1,o=this.configuration.editor;if(this.lines.setWrappingSettings(o.wrappingInfo.wrappingIndent,o.wrappingInfo.wrappingColumn,o.fontInfo.typicalFullwidthCharacterWidth/o.fontInfo.typicalHalfwidthCharacterWidth)&&(e.emit(new zh),e.emit(new Fh),e.emit(new Rh),this.decorations.onLineMappingChanged(),this.viewLayout.onFlushed(this.getLineCount()),0!==this.viewLayout.getCurrentScrollTop()&&(i=!0)),t.readOnly&&(this.decorations.reset(),e.emit(new Rh)),e.emit(new function(e){this.type=1,this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,this.lineHeight=e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.emptySelectionClipboard=e.emptySelectionClipboard,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo}(t)),this.viewLayout.onConfigurationChanged(t),i&&n){var r=this.coordinatesConverter.convertModelRangeToViewRange(n);e.emit(new Yh(r,1,!1,1))}},t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{for(var n=e._beginEmit(),i=!1,o=!1,r=t.changes,s=t.versionId,a=0,u=r.length;a=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var f=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition()),m=e.viewLayout.getVerticalOffsetForLineNumber(f.lineNumber);e.viewLayout.deltaScrollNow(0,m-e.viewportStartLineTop)}}})),this._register(this.model.onDidChangeTokens(function(t){for(var n=[],i=0,o=t.ranges.length;ia||(r0&&r[a-1]===r[a]||(s+=this.model.getLineContent(r[a])+i);return s}var u=[];for(a=0;a'+this._getHTMLToCopy(n,r)+""},t.prototype._getHTMLToCopy=function(e,t){for(var n=e.startLineNumber,i=e.startColumn,o=e.endLineNumber,r=e.endColumn,s=this.getTabSize(),a="",u=n;u<=o;u++){var l=this.model.getLineTokens(u),c=l.getLineContent(),d=u===n?i-1:0,h=u===o?r-1:c.length;a+=""===c?"
    ":ep(c,l.inflate(),t,d,h,s)}return a},t.prototype._getColorMap=function(){for(var e=Pl.getColorMap(),t=[null],n=1,i=e.length;n1),this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},t.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.isFocused()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.isFocused())},t}(Ct),Vp=function(e){function t(t,n){var i=e.call(this)||this;i._editor=t,i._langId=wp.languageId.bindTo(n),i._hasCompletionItemProvider=wp.hasCompletionItemProvider.bindTo(n),i._hasCodeActionsProvider=wp.hasCodeActionsProvider.bindTo(n),i._hasCodeLensProvider=wp.hasCodeLensProvider.bindTo(n),i._hasDefinitionProvider=wp.hasDefinitionProvider.bindTo(n),i._hasImplementationProvider=wp.hasImplementationProvider.bindTo(n),i._hasTypeDefinitionProvider=wp.hasTypeDefinitionProvider.bindTo(n),i._hasHoverProvider=wp.hasHoverProvider.bindTo(n),i._hasDocumentHighlightProvider=wp.hasDocumentHighlightProvider.bindTo(n),i._hasDocumentSymbolProvider=wp.hasDocumentSymbolProvider.bindTo(n),i._hasReferenceProvider=wp.hasReferenceProvider.bindTo(n),i._hasRenameProvider=wp.hasRenameProvider.bindTo(n),i._hasDocumentFormattingProvider=wp.hasDocumentFormattingProvider.bindTo(n),i._hasDocumentSelectionFormattingProvider=wp.hasDocumentSelectionFormattingProvider.bindTo(n),i._hasSignatureHelpProvider=wp.hasSignatureHelpProvider.bindTo(n),i._isInWalkThrough=wp.isInEmbeddedEditor.bindTo(n);var o=function(){return i._update()};return i._register(t.onDidChangeModel(o)),i._register(t.onDidChangeModelLanguage(o)),i._register(_l.onDidChange(o)),i._register(Dl.onDidChange(o)),i._register(xl.onDidChange(o)),i._register(Nl.onDidChange(o)),i._register(Il.onDidChange(o)),i._register(Sl.onDidChange(o)),i._register(wl.onDidChange(o)),i._register(Ll.onDidChange(o)),i._register(Cl.onDidChange(o)),i._register(vl.onDidChange(o)),i._register(bl.onDidChange(o)),i._register(Tl.onDidChange(o)),i._register(El.onDidChange(o)),i._register(Ml.onDidChange(o)),o(),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.reset=function(){this._langId.reset(),this._hasCompletionItemProvider.reset(),this._hasCodeActionsProvider.reset(),this._hasCodeLensProvider.reset(),this._hasDefinitionProvider.reset(),this._hasImplementationProvider.reset(),this._hasTypeDefinitionProvider.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()},t.prototype._update=function(){var e=this._editor.getModel();e?(this._langId.set(e.getLanguageIdentifier().language),this._hasCompletionItemProvider.set(_l.has(e)),this._hasCodeActionsProvider.set(Dl.has(e)),this._hasCodeLensProvider.set(xl.has(e)),this._hasDefinitionProvider.set(Nl.has(e)),this._hasImplementationProvider.set(Il.has(e)),this._hasTypeDefinitionProvider.set(Sl.has(e)),this._hasHoverProvider.set(wl.has(e)),this._hasDocumentHighlightProvider.set(Ll.has(e)),this._hasDocumentSymbolProvider.set(Cl.has(e)),this._hasReferenceProvider.set(vl.has(e)),this._hasRenameProvider.set(bl.has(e)),this._hasSignatureHelpProvider.set(Ml.has(e)),this._hasDocumentFormattingProvider.set(Tl.has(e)||El.has(e)),this._hasDocumentSelectionFormattingProvider.set(El.has(e)),this._isInWalkThrough.set(e.uri.scheme===Bo.walkThroughSnippet)):this.reset()},t}(Ct),Yp=Qn("telemetryService"),Zp=Qn("editorService"),Up=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;nn?n:e}function sg(e,t){return"string"!=typeof e?t:e}var ag,ug=function(){function e(e){this.zoomLevel=e.zoomLevel,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}return e.createFromRawSettings=function(t,n){var i=sg(t.fontFamily,vd.fontFamily),o=sg(t.fontWeight,vd.fontWeight),r=og(t.fontSize,vd.fontSize);0===(r=rg(r,0,100))?r=vd.fontSize:r<8&&(r=8);var s=function(e,t){if("number"==typeof e)return Math.round(e);var n=parseInt(e);return isNaN(n)?0:n}(t.lineHeight);0===(s=rg(s,0,150))?s=Math.round(ig*r):s<8&&(s=8);var a=og(t.letterSpacing,0);a=rg(a,-5,20);var u=1+.1*ng.getZoomLevel();return new e({zoomLevel:n,fontFamily:i,fontWeight:o,fontSize:r*=u,lineHeight:s*=u,letterSpacing:a})},e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing},e}(),lg=function(e){function t(t,n){var i=e.call(this,t)||this;return i.isTrusted=n,i.isMonospace=t.isMonospace,i.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth,i.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth,i.spaceWidth=t.spaceWidth,i.maxDigitWidth=t.maxDigitWidth,i}return Object(a.c)(t,e),t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth},t}(ug),cg=this&&this.__extends||(ag=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}ag(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),dg=_d,hg=vd,pg=bd,gg=new(function(){function e(){this._tabFocus=!1,this._onDidChangeTabFocus=new zt,this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}return e.prototype.getTabFocusMode=function(){return this._tabFocus},e.prototype.setTabFocusMode=function(e){this._tabFocus!==e&&(this._tabFocus=e,this._onDidChangeTabFocus.fire(this._tabFocus))},e}()),fg=function(e){function t(t){var n=e.call(this)||this;return n._onDidChange=n._register(new zt),n.onDidChange=n._onDidChange.event,n._rawOptions=Or({},t||{}),n._rawOptions.scrollbar=Or({},n._rawOptions.scrollbar||{}),n._rawOptions.minimap=Or({},n._rawOptions.minimap||{}),n._rawOptions.find=Or({},n._rawOptions.find||{}),n._validatedOptions=fd.validate(n._rawOptions,dg),n.editor=null,n._isDominatedByLongLines=!1,n._lineNumbersDigitCount=1,n._register(ng.onDidChangeZoomLevel(function(e){return n._recomputeOptions()})),n._register(gg.onDidChangeTabFocus(function(e){return n._recomputeOptions()})),n}return cg(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._recomputeOptions=function(){var e=this.editor,t=this._computeInternalOptions();e&&e.equals(t)||(this.editor=t,e&&this._onDidChange.fire(e.createChangeEvent(t)))},t.prototype.getRawOptions=function(){return this._rawOptions},t.prototype._computeInternalOptions=function(){var e=this._validatedOptions,t=this._getEnvConfiguration(),n=ug.createFromRawSettings(this._rawOptions,t.zoomLevel),i={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:gg.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return md.createInternalEditorOptions(i,e)},t.prototype.updateOptions=function(e){this._rawOptions=Or(this._rawOptions,e||{}),this._validatedOptions=fd.validate(this._rawOptions,dg),this._recomputeOptions()},t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e,this._recomputeOptions()},t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);this._lineNumbersDigitCount!==n&&(this._lineNumbersDigitCount=n,this._recomputeOptions())},t._digitCount=function(e){for(var t=0;e;)e=Math.floor(e/10),t++;return t||1},t}(Ct),mg=Fr.as(Vr.Configuration),yg={id:"editor",order:5,type:"object",title:Yo("editorConfigurationTitle","Editor"),overridable:!0,scope:Br.RESOURCE,properties:{"editor.fontFamily":{type:"string",default:hg.fontFamily,description:Yo("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:hg.fontWeight,description:Yo("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:hg.fontSize,description:Yo("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:hg.lineHeight,description:Yo("lineHeight","Controls the line height. Use 0 to compute the lineHeight from the fontSize.")},"editor.letterSpacing":{type:"number",default:hg.letterSpacing,description:Yo("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[Yo("lineNumbers.off","Line numbers are not rendered."),Yo("lineNumbers.on","Line numbers are rendered as absolute number."),Yo("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),Yo("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:Yo("lineNumbers","Controls the display of line numbers. Possible values are 'on', 'off', 'relative' and 'interval'.")},"editor.rulers":{type:"array",items:{type:"number"},default:dg.viewInfo.rulers,description:Yo("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty")},"editor.wordSeparators":{type:"string",default:dg.wordSeparators,description:Yo("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations")},"editor.tabSize":{type:"number",default:pg.tabSize,minimum:1,description:Yo("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `editor.detectIndentation` is on."),errorMessage:Yo("tabSize.errorMessage","Expected 'number'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.")},"editor.insertSpaces":{type:"boolean",default:pg.insertSpaces,description:Yo("insertSpaces","Insert spaces when pressing Tab. This setting is overridden based on the file contents when `editor.detectIndentation` is on."),errorMessage:Yo("insertSpaces.errorMessage","Expected 'boolean'. Note that the value \"auto\" has been replaced by the `editor.detectIndentation` setting.")},"editor.detectIndentation":{type:"boolean",default:pg.detectIndentation,description:Yo("detectIndentation","When opening a file, `editor.tabSize` and `editor.insertSpaces` will be detected based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:dg.viewInfo.roundedSelection,description:Yo("roundedSelection","Controls if selections have rounded corners")},"editor.scrollBeyondLastLine":{type:"boolean",default:dg.viewInfo.scrollBeyondLastLine,description:Yo("scrollBeyondLastLine","Controls if the editor will scroll beyond the last line")},"editor.smoothScrolling":{type:"boolean",default:dg.viewInfo.smoothScrolling,description:Yo("smoothScrolling","Controls if the editor will scroll using an animation")},"editor.minimap.enabled":{type:"boolean",default:dg.viewInfo.minimap.enabled,description:Yo("minimap.enabled","Controls if the minimap is shown")},"editor.minimap.side":{type:"string",enum:["left","right"],default:dg.viewInfo.minimap.side,description:Yo("minimap.side","Controls the side where to render the minimap. Possible values are 'right' and 'left'")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:dg.viewInfo.minimap.showSlider,description:Yo("minimap.showSlider","Controls whether the minimap slider is automatically hidden. Possible values are 'always' and 'mouseover'")},"editor.minimap.renderCharacters":{type:"boolean",default:dg.viewInfo.minimap.renderCharacters,description:Yo("minimap.renderCharacters","Render the actual characters on a line (as opposed to color blocks)")},"editor.minimap.maxColumn":{type:"number",default:dg.viewInfo.minimap.maxColumn,description:Yo("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:dg.contribInfo.find.seedSearchStringFromSelection,description:Yo("find.seedSearchStringFromSelection","Controls if we seed the search string in Find Widget from editor selection")},"editor.find.autoFindInSelection":{type:"boolean",default:dg.contribInfo.find.autoFindInSelection,description:Yo("find.autoFindInSelection","Controls if Find in Selection flag is turned on when multiple characters or lines of text are selected in the editor")},"editor.find.globalFindClipboard":{type:"boolean",default:dg.contribInfo.find.globalFindClipboard,description:Yo("find.globalFindClipboard","Controls if the Find Widget should read or modify the shared find clipboard on macOS"),included:mn.d},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],enumDescriptions:[Yo("wordWrap.off","Lines will never wrap."),Yo("wordWrap.on","Lines will wrap at the viewport width."),Yo({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `editor.wordWrapColumn`."),Yo({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `editor.wordWrapColumn`.")],default:dg.wordWrap,description:Yo({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap. Can be:\n - 'off' (disable wrapping),\n - 'on' (viewport wrapping),\n - 'wordWrapColumn' (wrap at `editor.wordWrapColumn`) or\n - 'bounded' (wrap at minimum of viewport and `editor.wordWrapColumn`).")},"editor.wordWrapColumn":{type:"integer",default:dg.wordWrapColumn,minimum:1,description:Yo({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `editor.wordWrap` is 'wordWrapColumn' or 'bounded'.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent"],default:"same",description:Yo("wrappingIndent","Controls the indentation of wrapped lines. Can be one of 'none', 'same' or 'indent'.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:dg.viewInfo.scrollbar.mouseWheelScrollSensitivity,description:Yo("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Yo("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Yo("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",description:Yo({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. `ctrlCmd` maps to `Control` on Windows and Linux and to `Command` on macOS. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:Yo("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:Yo("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:Yo("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:dg.contribInfo.quickSuggestions,description:Yo("quickSuggestions","Controls if suggestions should automatically show up while typing")},"editor.quickSuggestionsDelay":{type:"integer",default:dg.contribInfo.quickSuggestionsDelay,minimum:0,description:Yo("quickSuggestionsDelay","Controls the delay in ms after which quick suggestions will show up")},"editor.parameterHints":{type:"boolean",default:dg.contribInfo.parameterHints,description:Yo("parameterHints","Enables pop-up that shows parameter documentation and type information as you type")},"editor.autoClosingBrackets":{type:"boolean",default:dg.autoClosingBrackets,description:Yo("autoClosingBrackets","Controls if the editor should automatically close brackets after opening them")},"editor.formatOnType":{type:"boolean",default:dg.contribInfo.formatOnType,description:Yo("formatOnType","Controls if the editor should automatically format the line after typing")},"editor.formatOnPaste":{type:"boolean",default:dg.contribInfo.formatOnPaste,description:Yo("formatOnPaste","Controls if the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:dg.autoIndent,description:Yo("autoIndent","Controls if the editor should automatically adjust the indentation when users type, paste or move lines. Indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:dg.contribInfo.suggestOnTriggerCharacters,description:Yo("suggestOnTriggerCharacters","Controls if suggestions should automatically show up when typing trigger characters")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:dg.contribInfo.acceptSuggestionOnEnter,description:Yo("acceptSuggestionOnEnter","Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:dg.contribInfo.acceptSuggestionOnCommitCharacter,description:Yo("acceptSuggestionOnCommitCharacter","Controls if suggestions should be accepted on commit characters. For instance in JavaScript the semi-colon (';') can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[Yo("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),Yo("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),Yo("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),Yo("snippetSuggestions.none","Do not show snippet suggestions.")],default:dg.contribInfo.snippetSuggestions,description:Yo("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:dg.emptySelectionClipboard,description:Yo("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.wordBasedSuggestions":{type:"boolean",default:dg.contribInfo.wordBasedSuggestions,description:Yo("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],enumDescriptions:[Yo("suggestSelection.first","Always select the first suggestion."),Yo("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),Yo("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:Yo("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,description:Yo("suggestFontSize","Font size for the suggest widget")},"editor.suggestLineHeight":{type:"integer",default:0,minimum:0,description:Yo("suggestLineHeight","Line height for the suggest widget")},"editor.selectionHighlight":{type:"boolean",default:dg.contribInfo.selectionHighlight,description:Yo("selectionHighlight","Controls whether the editor should highlight similar matches to the selection")},"editor.occurrencesHighlight":{type:"boolean",default:dg.contribInfo.occurrencesHighlight,description:Yo("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences")},"editor.overviewRulerLanes":{type:"integer",default:3,description:Yo("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler")},"editor.overviewRulerBorder":{type:"boolean",default:dg.viewInfo.overviewRulerBorder,description:Yo("overviewRulerBorder","Controls if a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:function(e){if(e===ad.Blink)return"blink";if(e===ad.Expand)return"expand";if(e===ad.Phase)return"phase";if(e===ad.Smooth)return"smooth";if(e===ad.Solid)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")}(dg.viewInfo.cursorBlinking),description:Yo("cursorBlinking","Control the cursor animation style, possible values are 'blink', 'smooth', 'phase', 'expand' and 'solid'")},"editor.mouseWheelZoom":{type:"boolean",default:dg.viewInfo.mouseWheelZoom,description:Yo("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding Ctrl")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:function(e){if(e===ud.Line)return"line";if(e===ud.Block)return"block";if(e===ud.Underline)return"underline";if(e===ud.LineThin)return"line-thin";if(e===ud.BlockOutline)return"block-outline";if(e===ud.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}(dg.viewInfo.cursorStyle),description:Yo("cursorStyle","Controls the cursor style, accepted values are 'block', 'block-outline', 'line', 'line-thin', 'underline' and 'underline-thin'")},"editor.cursorWidth":{type:"integer",default:dg.viewInfo.cursorWidth,description:Yo("cursorWidth","Controls the width of the cursor when editor.cursorStyle is set to 'line'")},"editor.fontLigatures":{type:"boolean",default:dg.viewInfo.fontLigatures,description:Yo("fontLigatures","Enables font ligatures")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:dg.viewInfo.hideCursorInOverviewRuler,description:Yo("hideCursorInOverviewRuler","Controls if the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],default:dg.viewInfo.renderWhitespace,description:Yo("renderWhitespace","Controls how the editor should render whitespace characters, possibilities are 'none', 'boundary', and 'all'. The 'boundary' option does not render single spaces between words.")},"editor.renderControlCharacters":{type:"boolean",default:dg.viewInfo.renderControlCharacters,description:Yo("renderControlCharacters","Controls whether the editor should render control characters")},"editor.renderIndentGuides":{type:"boolean",default:dg.viewInfo.renderIndentGuides,description:Yo("renderIndentGuides","Controls whether the editor should render indent guides")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],default:dg.viewInfo.renderLineHighlight,description:Yo("renderLineHighlight","Controls how the editor should render the current line highlight, possibilities are 'none', 'gutter', 'line', and 'all'.")},"editor.codeLens":{type:"boolean",default:dg.contribInfo.codeLens,description:Yo("codeLens","Controls if the editor shows code lenses")},"editor.folding":{type:"boolean",default:dg.contribInfo.folding,description:Yo("folding","Controls whether the editor has code folding enabled")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],enumDescriptions:[Yo("foldingStrategyAuto","If available, use a langauge specific folding strategy, otherwise falls back to the indentation based strategy."),Yo("foldingStrategyIndentation","Always use the indentation based folding strategy")],default:dg.contribInfo.foldingStrategy,description:Yo("foldingStrategy","Controls the way folding ranges are computed. 'auto' picks uses a language specific folding strategy, if available. 'indentation' forces that the indentation based folding strategy is used.")},"editor.showFoldingControls":{type:"string",enum:["always","mouseover"],default:dg.contribInfo.showFoldingControls,description:Yo("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:dg.contribInfo.matchBrackets,description:Yo("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:dg.viewInfo.glyphMargin,description:Yo("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:dg.useTabStops,description:Yo("useTabStops","Inserting and deleting whitespace follows tab stops")},"editor.trimAutoWhitespace":{type:"boolean",default:pg.trimAutoWhitespace,description:Yo("trimAutoWhitespace","Remove trailing auto inserted whitespace")},"editor.stablePeek":{type:"boolean",default:!1,description:Yo("stablePeek","Keep peek editors open even when double clicking their content or when hitting Escape.")},"editor.dragAndDrop":{type:"boolean",default:dg.dragAndDrop,description:Yo("dragAndDrop","Controls if the editor should allow to move selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[Yo("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),Yo("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),Yo("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:dg.accessibilitySupport,description:Yo("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.links":{type:"boolean",default:dg.contribInfo.links,description:Yo("links","Controls whether the editor should detect links and make them clickable")},"editor.colorDecorators":{type:"boolean",default:dg.contribInfo.colorDecorators,description:Yo("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:dg.contribInfo.lightbulbEnabled,description:Yo("codeActions","Enables the code action lightbulb")},"editor.selectionClipboard":{type:"boolean",default:dg.contribInfo.selectionClipboard,description:Yo("selectionClipboard","Controls if the Linux primary clipboard should be supported."),included:mn.c},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:Yo("sideBySide","Controls if the diff editor shows the diff side by side or inline")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:Yo("ignoreTrimWhitespace","Controls if the diff editor shows changes in leading or trailing whitespace as diffs")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:Yo("renderIndicators","Controls if the diff editor shows +/- indicators for added/removed changes")}}};mg.registerConfiguration(yg);var vg,bg=function(e){function t(t,n){var i=e.call(this)||this;return i.referenceDomElement=t,i.changeCallback=n,i.measureReferenceDomElementToken=-1,i.width=-1,i.height=-1,i.measureReferenceDomElement(!1),i}return Object(a.c)(t,e),t.prototype.dispose=function(){this.stopObserving(),e.prototype.dispose.call(this)},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.startObserving=function(){var e=this;-1===this.measureReferenceDomElementToken&&(this.measureReferenceDomElementToken=setInterval(function(){return e.measureReferenceDomElement(!0)},100))},t.prototype.stopObserving=function(){-1!==this.measureReferenceDomElementToken&&(clearInterval(this.measureReferenceDomElementToken),this.measureReferenceDomElementToken=-1)},t.prototype.observe=function(e){this.measureReferenceDomElement(!0,e)},t.prototype.measureReferenceDomElement=function(e,t){var n=0,i=0;t?(n=t.width,i=t.height):this.referenceDomElement&&(n=this.referenceDomElement.clientWidth,i=this.referenceDomElement.clientHeight),n=Math.max(5,n),i=Math.max(5,i),this.width===n&&this.height===i||(this.width=n,this.height=i,e&&this.changeCallback())},t}(Ct),_g=function(){function e(e,t){this.chr=e,this.type=t,this.width=0}return e.prototype.fulfill=function(e){this.width=e},e}(),Mg=function(){function e(e,t){this._bareFontInfo=e,this._requests=t,this._container=null,this._testElements=null}return e.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute",t.style.top="-50000px",t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.fontFamily,n.style.fontWeight=this._bareFontInfo.fontWeight,n.style.fontSize=this._bareFontInfo.fontSize+"px",n.style.lineHeight=this._bareFontInfo.lineHeight+"px",n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(n);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.fontFamily,i.style.fontWeight="bold",i.style.fontSize=this._bareFontInfo.fontSize+"px",i.style.lineHeight=this._bareFontInfo.lineHeight+"px",i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",t.appendChild(i);var o=document.createElement("div");o.style.fontFamily=this._bareFontInfo.fontFamily,o.style.fontWeight=this._bareFontInfo.fontWeight,o.style.fontSize=this._bareFontInfo.fontSize+"px",o.style.lineHeight=this._bareFontInfo.lineHeight+"px",o.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",o.style.fontStyle="italic",t.appendChild(o);for(var r=[],s=0,a=this._requests.length;s.001){y=!1;break}}var w=Ms.INSTANCE.getTimeSinceLastZoomLevelChanged()>2e3;return new lg({zoomLevel:ws(),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:i.width,typicalFullwidthCharacterWidth:o.width,spaceWidth:r.width,maxDigitWidth:m},w)},t.INSTANCE=new t,t}(Ct),Ig=function(e){function t(t,n){void 0===n&&(n=null);var i=e.call(this,t)||this;return i._elementSizeObserver=i._register(new bg(n,function(){return i._onReferenceDomElementSizeChanged()})),i._register(Ng.INSTANCE.onDidChange(function(){return i._onCSSBasedConfigurationChanged()})),i._validatedOptions.automaticLayout&&i._elementSizeObserver.startObserving(),i._register(Cs(function(e){return i._recomputeOptions()})),i._register(Ms.INSTANCE.onDidChangeAccessibilitySupport(function(){return i._recomputeOptions()})),i._recomputeOptions(),i}return Object(a.c)(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",e.style.letterSpacing=t.letterSpacing+"px"},t.applyFontInfo=function(e,t){e.setFontFamily(t.fontFamily),e.setFontWeight(t.fontWeight),e.setFontSize(t.fontSize),e.setLineHeight(t.lineHeight),e.setLetterSpacing(t.letterSpacing)},t.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},t.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},t.prototype.observeReferenceElement=function(e){this._elementSizeObserver.observe(e)},t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getExtraEditorClassName=function(){var e="";return Is?e+="ie ":Ds?e+="ff ":Ss?e+="edge ":ks&&(e+="safari "),mn.d&&(e+="mac "),e},t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:Ts||Ds,pixelRatio:Ls(),zoomLevel:ws(),accessibilitySupport:Ms.INSTANCE.getAccessibilitySupport()}},t.prototype.readConfiguration=function(e){return Ng.INSTANCE.readConfiguration(e)},t}(fg),Sg=function(){function e(e){this.domNode=e,this._maxWidth=-1,this._width=-1,this._height=-1,this._top=-1,this._left=-1,this._bottom=-1,this._right=-1,this._fontFamily="",this._fontWeight="",this._fontSize=-1,this._lineHeight=-1,this._letterSpacing=-100,this._className="",this._display="",this._position="",this._visibility="",this._layerHint=!1}return e.prototype.setMaxWidth=function(e){this._maxWidth!==e&&(this._maxWidth=e,this.domNode.style.maxWidth=this._maxWidth+"px")},e.prototype.setWidth=function(e){this._width!==e&&(this._width=e,this.domNode.style.width=this._width+"px")},e.prototype.setHeight=function(e){this._height!==e&&(this._height=e,this.domNode.style.height=this._height+"px")},e.prototype.setTop=function(e){this._top!==e&&(this._top=e,this.domNode.style.top=this._top+"px")},e.prototype.unsetTop=function(){-1!==this._top&&(this._top=-1,this.domNode.style.top="")},e.prototype.setLeft=function(e){this._left!==e&&(this._left=e,this.domNode.style.left=this._left+"px")},e.prototype.setBottom=function(e){this._bottom!==e&&(this._bottom=e,this.domNode.style.bottom=this._bottom+"px")},e.prototype.setRight=function(e){this._right!==e&&(this._right=e,this.domNode.style.right=this._right+"px")},e.prototype.setFontFamily=function(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)},e.prototype.setFontWeight=function(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)},e.prototype.setFontSize=function(e){this._fontSize!==e&&(this._fontSize=e,this.domNode.style.fontSize=this._fontSize+"px")},e.prototype.setLineHeight=function(e){this._lineHeight!==e&&(this._lineHeight=e,this.domNode.style.lineHeight=this._lineHeight+"px")},e.prototype.setLetterSpacing=function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.domNode.style.letterSpacing=this._letterSpacing+"px")},e.prototype.setClassName=function(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)},e.prototype.toggleClassName=function(e,t){na(this.domNode,e,t),this._className=this.domNode.className},e.prototype.setDisplay=function(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)},e.prototype.setPosition=function(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)},e.prototype.setVisibility=function(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)},e.prototype.setLayerHinting=function(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.willChange=this._layerHint?"transform":"auto")},e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)},e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)},e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)},e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)},e}();function xg(e){return new Sg(e)}var Dg=function(e){function t(){var t=e.call(this)||this;return t._shouldRender=!0,t}return Object(a.c)(t,e),t.prototype.shouldRender=function(){return this._shouldRender},t.prototype.forceShouldRender=function(){this._shouldRender=!0},t.prototype.setShouldRender=function(){this._shouldRender=!0},t.prototype.onDidRender=function(){this._shouldRender=!1},t.prototype.onConfigurationChanged=function(e){return!1},t.prototype.onCursorStateChanged=function(e){return!1},t.prototype.onDecorationsChanged=function(e){return!1},t.prototype.onFlushed=function(e){return!1},t.prototype.onFocusChanged=function(e){return!1},t.prototype.onLanguageConfigurationChanged=function(e){return!1},t.prototype.onLineMappingChanged=function(e){return!1},t.prototype.onLinesChanged=function(e){return!1},t.prototype.onLinesDeleted=function(e){return!1},t.prototype.onLinesInserted=function(e){return!1},t.prototype.onRevealRangeRequest=function(e){return!1},t.prototype.onScrollChanged=function(e){return!1},t.prototype.onTokensChanged=function(e){return!1},t.prototype.onTokensColorsChanged=function(e){return!1},t.prototype.onZonesChanged=function(e){return!1},t.prototype.onThemeChanged=function(e){return!1},t.prototype.handleEvents=function(e){for(var t=!1,n=0,i=e.length;n, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},e.prototype.readFromTextArea=function(t){return new e(t.getValue(),t.getSelectionStart(),t.getSelectionEnd(),null,null)},e.prototype.collapseSelection=function(){return new e(this.value,this.value.length,this.value.length,null,null)},e.prototype.writeToTextArea=function(e,t,n){t.setValue(e,this.value),n&&t.setSelectionRange(e,this.selectionStart,this.selectionEnd)},e.prototype.deduceEditorPosition=function(e){if(e<=this.selectionStart){var t=this.value.substring(e,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,t,-1)}if(e>=this.selectionEnd)return t=this.value.substring(this.selectionEnd,e),this._finishDeduceEditorPosition(this.selectionEndPosition,t,1);var n=this.value.substring(this.selectionStart,e);if(-1===n.indexOf(String.fromCharCode(8230)))return this._finishDeduceEditorPosition(this.selectionStartPosition,n,1);var i=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,i,-1)},e.prototype._finishDeduceEditorPosition=function(e,t,n){for(var i=0,o=-1;-1!==(o=t.indexOf("\n",o+1));)i++;return[e,n*t.length,i]},e.selectedText=function(t){return new e(t,0,t.length,null,null)},e.deduceInput=function(e,t,n){if(!e)return{text:"",replaceCharCnt:0};var i=e.value,o=e.selectionStart,r=e.selectionEnd,s=t.value,a=t.selectionStart,u=t.selectionEnd,l=io(i.substring(r),s.substring(u));s=s.substring(0,s.length-l);var c=(i=i.substring(0,i.length-l)).substring(0,o),d=no(c,s.substring(0,a));if(s=s.substring(d),i=i.substring(d),a-=d,o-=d,u-=d,r-=d,n&&a===u&&i.length>0){var h=null;if(a===s.length?ji(s,i)&&(h=s.substring(i.length)):Ai(s,i)&&(h=s.substring(0,s.length-i.length)),null!==h&&h.length>0&&(/\uFE0F/.test(h)||ho(h)))return{text:h,replaceCharCnt:0}}return a===u?i===s&&0===o&&r===i.length&&a===s.length&&-1===s.indexOf("\n")&&fo(s)?{text:"",replaceCharCnt:0}:{text:s,replaceCharCnt:c.length-d}:{text:s,replaceCharCnt:r-o}},e.EMPTY=new e("",0,0,null,null),e}()),Eg=function(){function e(){}return e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)},e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE;return new sn(n+1,1,n+e._LINES_PER_PAGE+1,1)},e.fromEditorSelection=function(t,n,i,o){var r=e._getPageOfLine(i.startLineNumber),s=e._getRangeForPage(r),a=e._getPageOfLine(i.endLineNumber),u=e._getRangeForPage(a),l=s.intersectRanges(new sn(1,1,i.startLineNumber,i.startColumn)),c=n.getValueInRange(l,Du.LF),d=n.getLineCount(),h=n.getLineMaxColumn(d),p=u.intersectRanges(new sn(i.endLineNumber,i.endColumn,d,h)),g=n.getValueInRange(p,Du.LF),f=null;if(r===a||r+1===a)f=n.getValueInRange(i,Du.LF);else{var m=s.intersectRanges(i),y=u.intersectRanges(i);f=n.getValueInRange(m,Du.LF)+String.fromCharCode(8230)+n.getValueInRange(y,Du.LF)}return o&&(c.length>500&&(c=c.substring(c.length-500,c.length)),g.length>500&&(g=g.substring(0,500)),f.length>1e3&&(f=f.substring(0,500)+String.fromCharCode(8230)+f.substring(f.length-500,f.length))),new Tg(c+f+g,c.length,c.length+f.length,new rn(i.startLineNumber,i.startColumn),new rn(i.endLineNumber,i.endColumn))},e._LINES_PER_PAGE=10,e}(),kg={forceCopyWithSyntaxHighlighting:!1},jg=function(e){function t(t,n){var i=e.call(this)||this;i._onFocus=i._register(new zt),i.onFocus=i._onFocus.event,i._onBlur=i._register(new zt),i.onBlur=i._onBlur.event,i._onKeyDown=i._register(new zt),i.onKeyDown=i._onKeyDown.event,i._onKeyUp=i._register(new zt),i.onKeyUp=i._onKeyUp.event,i._onCut=i._register(new zt),i.onCut=i._onCut.event,i._onPaste=i._register(new zt),i.onPaste=i._onPaste.event,i._onType=i._register(new zt),i.onType=i._onType.event,i._onCompositionStart=i._register(new zt),i.onCompositionStart=i._onCompositionStart.event,i._onCompositionUpdate=i._register(new zt),i.onCompositionUpdate=i._onCompositionUpdate.event,i._onCompositionEnd=i._register(new zt),i.onCompositionEnd=i._onCompositionEnd.event,i._onSelectionChangeRequest=i._register(new zt),i.onSelectionChangeRequest=i._onSelectionChangeRequest.event,i._host=t,i._textArea=i._register(new Og(n)),i._asyncTriggerCut=i._register(new _s(function(){return i._onCut.fire()},0)),i._textAreaState=Tg.EMPTY,i.writeScreenReaderContent("ctor"),i._hasFocus=!1,i._isDoingComposition=!1,i._nextCommand=0,i._register(ra(n.domNode,"keydown",function(e){i._isDoingComposition&&109===e.keyCode&&e.stopPropagation(),e.equals(9)&&e.preventDefault(),i._onKeyDown.fire(e)})),i._register(ra(n.domNode,"keyup",function(e){i._onKeyUp.fire(e)})),i._register(oa(n.domNode,"compositionstart",function(e){i._isDoingComposition||(i._isDoingComposition=!0,xs||i._setAndWriteTextAreaState("compositionstart",Tg.EMPTY),i._onCompositionStart.fire())}));var o=function(e){var t=i._textAreaState,n=i._textAreaState.readFromTextArea(i._textArea);return[n,Tg.deduceInput(t,n,e)]},r=function(e){var t=i._textAreaState,n=Tg.selectedText(e);return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]},s=function(e){return!(!xs||"ja"!==e)||!(!Is||0!==e.indexOf("zh-Han"))};i._register(oa(n.domNode,"compositionupdate",function(e){if(!As){if(s(e.locale)){var t=o(!1),n=t[1];return i._textAreaState=t[0],i._onType.fire(n),void i._onCompositionUpdate.fire(e)}var a=r(e.data),u=a[1];i._textAreaState=a[0],i._onType.fire(u),i._onCompositionUpdate.fire(e)}})),i._register(oa(n.domNode,"compositionend",function(e){if(s(e.locale)){var t=o(!1),n=t[1];i._textAreaState=t[0],i._onType.fire(n)}else{var a=r(e.data);n=a[1],i._textAreaState=a[0],i._onType.fire(n)}(xs||Es)&&(i._textAreaState=i._textAreaState.readFromTextArea(i._textArea)),i._isDoingComposition&&(i._isDoingComposition=!1,i._onCompositionEnd.fire())})),i._register(oa(n.domNode,"input",function(){if(i._textArea.setIgnoreSelectionChangeTime("received input event"),i._isDoingComposition){if(As){var e=r(i._textArea.getValue()),t=e[1];i._textAreaState=e[0],i._onType.fire(t),i._onCompositionUpdate.fire({data:t.text})}}else{var n=o(mn.d),s=n[0],a=n[1];0===a.replaceCharCnt&&1===a.text.length&&so(a.text.charCodeAt(0))||(i._textAreaState=s,0===i._nextCommand?""!==a.text&&i._onType.fire(a):(""!==a.text&&i._onPaste.fire({text:a.text}),i._nextCommand=0))}})),i._register(oa(n.domNode,"cut",function(e){i._textArea.setIgnoreSelectionChangeTime("received cut event"),i._ensureClipboardGetsEditorSelection(e),i._asyncTriggerCut.schedule()})),i._register(oa(n.domNode,"copy",function(e){i._ensureClipboardGetsEditorSelection(e)})),i._register(oa(n.domNode,"paste",function(e){if(i._textArea.setIgnoreSelectionChangeTime("received paste event"),Ag.canUseTextData(e)){var t=Ag.getTextData(e);""!==t&&i._onPaste.fire({text:t})}else i._textArea.getSelectionStart()!==i._textArea.getSelectionEnd()&&i._setAndWriteTextAreaState("paste",Tg.EMPTY),i._nextCommand=1})),i._register(oa(n.domNode,"focus",function(){return i._setHasFocus(!0)})),i._register(oa(n.domNode,"blur",function(){return i._setHasFocus(!1)}));var a=0;return i._register(oa(document,"selectionchange",function(e){if(i._hasFocus&&!i._isDoingComposition&&Es&&mn.g){var t=Date.now(),n=t-a;if(a=t,!(n<5)){var o=t-i._textArea.getIgnoreSelectionChangeTime();if(i._textArea.resetSelectionChangeTime(),!(o<100)&&i._textAreaState.selectionStartPosition&&i._textAreaState.selectionEndPosition){var r=i._textArea.getValue();if(i._textAreaState.value===r){var s=i._textArea.getSelectionStart(),u=i._textArea.getSelectionEnd();if(i._textAreaState.selectionStart!==s||i._textAreaState.selectionEnd!==u){var l=i._textAreaState.deduceEditorPosition(s),c=i._host.deduceModelPosition(l[0],l[1],l[2]),d=i._textAreaState.deduceEditorPosition(u),h=i._host.deduceModelPosition(d[0],d[1],d[2]),p=new ln(c.lineNumber,c.column,h.lineNumber,h.column);i._onSelectionChangeRequest.fire(p)}}}}}})),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.focusTextArea=function(){this._setHasFocus(!0)},t.prototype.isFocused=function(){return this._hasFocus},t.prototype._setHasFocus=function(e){this._hasFocus!==e&&(this._hasFocus=e,this._hasFocus&&(Ss?this._setAndWriteTextAreaState("focusgain",Tg.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire())},t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection()),t.writeToTextArea(e,this._textArea,this._hasFocus),this._textAreaState=t},t.prototype.writeScreenReaderContent=function(e){this._isDoingComposition||this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))},t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(Ag.canUseTextData(e)){var n=null;!xs&&(t.length<65536||kg.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy()),Ag.setTextData(e,t,n)}else this._setAndWriteTextAreaState("copy or cut",Tg.selectedText(t))},t}(Ct),Ag=function(){function e(){}return e.canUseTextData=function(e){return!!e.clipboardData||!!window.clipboardData},e.getTextData=function(e){if(e.clipboardData)return e.preventDefault(),e.clipboardData.getData("text/plain");if(window.clipboardData)return e.preventDefault(),window.clipboardData.getData("Text");throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},e.setTextData=function(e,t,n){if(e.clipboardData)return e.clipboardData.setData("text/plain",t),null!==n&&e.clipboardData.setData("text/html",n),void e.preventDefault();if(window.clipboardData)return window.clipboardData.setData("Text",t),void e.preventDefault();throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},e}(),Og=function(e){function t(t){var n=e.call(this)||this;return n._actual=t,n._ignoreSelectionChangeTime=0,n}return Object(a.c)(t,e),t.prototype.setIgnoreSelectionChangeTime=function(e){this._ignoreSelectionChangeTime=Date.now()},t.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},t.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},t.prototype.getValue=function(){return this._actual.domNode.value},t.prototype.setValue=function(e,t){var n=this._actual.domNode;n.value!==t&&(this.setIgnoreSelectionChangeTime("setValue"),n.value=t)},t.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},t.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},t.prototype.setSelectionRange=function(e,t,n){var i=this._actual.domNode,o=document.activeElement===i;if(o&&i.selectionStart===t&&i.selectionEnd===n)Ds&&window.parent!==window&&i.focus();else{if(o)return this.setIgnoreSelectionChangeTime("setSelectionRange"),i.setSelectionRange(t,n),void(Ds&&window.parent!==window&&i.focus());try{var r=function(e){for(var t=[],n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)t[n]=e.scrollTop,e=e.parentNode;return t}(i);this.setIgnoreSelectionChangeTime("setSelectionRange"),i.focus(),i.setSelectionRange(t,n),function(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++)e.scrollTop!==t[n]&&(e.scrollTop=t[n]),e=e.parentNode}(i,r)}catch(e){}}},t}(Ct),Pg=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t}(Dg),Rg=function(){function e(){}return e.write=function(e,t){e.setAttribute("data-mprt",String(t))},e.read=function(e){var t=e.getAttribute("data-mprt");return null===t?0:parseInt(t,10)},e.collect=function(e,t){for(var n=[],i=0;e&&e!==document.body&&e!==t;)e.nodeType===e.ELEMENT_NODE&&(n[i++]=this.read(e)),e=e.parentElement;for(var o=new Uint8Array(i),r=0;r'+n+"":String(i)}return 3===this._renderLineNumbers?this._lastCursorModelPosition.lineNumber===n?String(n):n%10==0?String(n):"":String(n)},t.prototype.prepareRender=function(e){if(0!==this._renderLineNumbers){for(var n=e.visibleRange.startLineNumber,i=e.visibleRange.endLineNumber,o='
    ',r=[],s=n;s<=i;s++){var a=s-n,u=this._getLineRenderLineNumber(s);r[a]=u?o+u+"
    ":""}this._renderResult=r}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.CLASS_NAME="line-numbers",t}(qm);wm(function(e,t){var n=e.getColor(Em);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var i=e.getColor(jm);i&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var ey,ty=function(){function e(e,t,n){this.top=e,this.left=t,this.width=n}return e.prototype.setWidth=function(t){return new e(this.top,this.left,t)},e}(),ny=xs||Ds,iy=function(){function e(){this._lastState=null}return e.prototype.set=function(e){this._lastState=e},e.prototype.get=function(e){return this._lastState&&this._lastState.lastCopiedValue===e?this._lastState:(this._lastState=null,null)},e.INSTANCE=new e,e}(),oy=function(e){function t(t,n,i){var o=e.call(this,t)||this;o._primaryCursorVisibleRange=null,o._viewController=n,o._viewHelper=i;var r=o._context.configuration.editor;o._accessibilitySupport=r.accessibilitySupport,o._contentLeft=r.layoutInfo.contentLeft,o._contentWidth=r.layoutInfo.contentWidth,o._contentHeight=r.layoutInfo.contentHeight,o._scrollLeft=0,o._scrollTop=0,o._fontInfo=r.fontInfo,o._lineHeight=r.lineHeight,o._emptySelectionClipboard=r.emptySelectionClipboard,o._visibleTextArea=null,o._selections=[new ln(1,1,1,1)],o.textArea=xg(document.createElement("textarea")),Rg.write(o.textArea,6),o.textArea.setClassName("inputarea"),o.textArea.setAttribute("wrap","off"),o.textArea.setAttribute("autocorrect","off"),o.textArea.setAttribute("autocapitalize","off"),o.textArea.setAttribute("autocomplete","off"),o.textArea.setAttribute("spellcheck","false"),o.textArea.setAttribute("aria-label",r.viewInfo.ariaLabel),o.textArea.setAttribute("role","textbox"),o.textArea.setAttribute("aria-multiline","true"),o.textArea.setAttribute("aria-haspopup","false"),o.textArea.setAttribute("aria-autocomplete","both"),o.textAreaCover=xg(document.createElement("div")),o.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return o._context.model.getLineCount()},getLineMaxColumn:function(e){return o._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return o._context.model.getValueInRange(e,t)}};return o._textAreaInput=o._register(new jg({getPlainTextToCopy:function(){var e=o._context.model.getPlainTextToCopy(o._selections,o._emptySelectionClipboard),t=o._context.model.getEOL(),n=o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),i=Array.isArray(e)?e:null,r=Array.isArray(e)?e.join(t):e,s=null;return(n||i)&&(s={lastCopiedValue:Ds?r.replace(/\r\n/g,"\n"):r,isFromEmptySelection:o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),multicursorText:i}),iy.INSTANCE.set(s),r},getHTMLToCopy:function(){return o._context.model.getHTMLToCopy(o._selections,o._emptySelectionClipboard)},getScreenReaderContent:function(e){if(js)return Tg.EMPTY;if(1===o._accessibilitySupport){if(mn.d){var t=o._selections[0];if(t.isEmpty()){var n=t.getStartPosition(),i=o._getWordBeforePosition(n);if(0===i.length&&(i=o._getCharacterBeforePosition(n)),i.length>0)return new Tg(i,i.length,i.length,n,n)}}return Tg.EMPTY}return Eg.fromEditorSelection(e,s,o._selections[0],0===o._accessibilitySupport)},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}},o.textArea)),o._register(o._textAreaInput.onKeyDown(function(e){o._viewController.emitKeyDown(e)})),o._register(o._textAreaInput.onKeyUp(function(e){o._viewController.emitKeyUp(e)})),o._register(o._textAreaInput.onPaste(function(e){var t=iy.INSTANCE.get(e.text),n=!1,i=null;t&&(n=o._emptySelectionClipboard&&t.isFromEmptySelection,i=t.multicursorText),o._viewController.paste("keyboard",e.text,n,i)})),o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")})),o._register(o._textAreaInput.onType(function(e){e.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):o._viewController.type("keyboard",e.text)})),o._register(o._textAreaInput.onSelectionChangeRequest(function(e){o._viewController.setSelection("keyboard",e)})),o._register(o._textAreaInput.onCompositionStart(function(){var e=o._selections[0].startLineNumber,t=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new Yh(new sn(e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);n&&(o._visibleTextArea=new ty(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,ny?0:1),o._render()),o.textArea.setClassName("inputarea ime-input"),o._viewController.compositionStart("keyboard")})),o._register(o._textAreaInput.onCompositionUpdate(function(e){o._visibleTextArea=o._visibleTextArea.setWidth(xs?0:function(e,t){var n,i=document.createElement("canvas").getContext("2d");i.font="normal normal "+(n=t).fontWeight+" "+n.fontSize+"px / "+n.lineHeight+"px "+n.fontFamily;var o=i.measureText(e);return Ds?o.width+2:o.width}(e.data,o._fontInfo)),o._render()})),o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null,o._render(),o.textArea.setClassName("inputarea"),o._viewController.compositionEnd("keyboard")})),o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Wh(!0))})),o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Wh(!1))})),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._getWordBeforePosition=function(e){for(var t=this._context.model.getLineContent(e.lineNumber),n=Dd(this._context.configuration.editor.wordSeparators),i=e.column,o=0;i>1;){var r=t.charCodeAt(i-2);if(0!==n.get(r)||o>50)return t.substring(i-1,e.column-1);o++,i--}return t.substring(0,e.column-1)},t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!so(t.charCodeAt(0)))return t}return""},t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;return e.fontInfo&&(this._fontInfo=t.fontInfo),e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel),e.layoutInfo&&(this._contentLeft=t.layoutInfo.contentLeft,this._contentWidth=t.layoutInfo.contentWidth,this._contentHeight=t.layoutInfo.contentHeight),e.lineHeight&&(this._lineHeight=t.lineHeight),e.accessibilitySupport&&(this._accessibilitySupport=t.accessibilitySupport,this._textAreaInput.writeScreenReaderContent("strategy changed")),e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return this._scrollLeft=e.scrollLeft,this._scrollTop=e.scrollTop,!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.isFocused=function(){return this._textAreaInput.isFocused()},t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},t.prototype.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var t=new rn(this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)}},t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render"),this._render()},t.prototype._render=function(){if(this._visibleTextArea)this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);else if(this._primaryCursorVisibleRange){var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(ethis._contentLeft+this._contentWidth)this._renderAtTopLeft();else{var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;t<0||t>this._contentHeight?this._renderAtTopLeft():this._renderInsideEditor(t,e,ny?0:1,ny?0:1,!1)}}else this._renderAtTopLeft()},t.prototype._renderInsideEditor=function(e,t,n,i,o){var r=this.textArea,s=this.textAreaCover;o?Ig.applyFontInfo(r,this._fontInfo):(r.setFontSize(1),r.setLineHeight(this._fontInfo.lineHeight)),r.setTop(e),r.setLeft(t),r.setWidth(n),r.setHeight(i),s.setTop(0),s.setLeft(0),s.setWidth(0),s.setHeight(0)},t.prototype._renderAtTopLeft=function(){var e=this.textArea,t=this.textAreaCover;if(Ig.applyFontInfo(e,this._fontInfo),e.setTop(0),e.setLeft(0),t.setTop(0),t.setLeft(0),ny)return e.setWidth(0),e.setHeight(0),t.setWidth(0),void t.setHeight(0);e.setWidth(1),e.setHeight(1),t.setWidth(1),t.setHeight(1),t.setClassName(this._context.configuration.editor.viewInfo.glyphMargin?"monaco-editor-background textAreaCover "+zg.CLASS_NAME:0!==this._context.configuration.editor.viewInfo.renderLineNumbers?"monaco-editor-background textAreaCover "+$m.CLASS_NAME:"monaco-editor-background textAreaCover")},t}(Pg);function ry(e,t,n){var i=null,o=null;if("function"==typeof n.value?(i="value",0!==(o=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")):"function"==typeof n.get&&(i="get",o=n.get),!o)throw new Error("not supported");var r="$memoize$"+t;n[i]=function(){for(var e=[],t=0;t0||window.navigator.msMaxTouchPoints>0},e.prototype.dispose=function(){this.handle&&(this.handle.dispose(),_t(this.toDispose),this.handle=null)},e.prototype.onTouchStart=function(e){var t=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var n=0,i=e.targetTouches.length;n=e.HOLD_DELAY&&Math.abs(u.initialPageX-ir(u.rollingPageX))<30&&Math.abs(u.initialPageY-ir(u.rollingPageY))<30){var c;(c=r.newGestureEvent(ey.Contextmenu,u.initialTarget)).pageX=ir(u.rollingPageX),c.pageY=ir(u.rollingPageY),r.dispatchEvent(c)}else if(1===i){var d=ir(u.rollingPageX),h=ir(u.rollingPageY),p=ir(u.rollingTimestamps)-u.rollingTimestamps[0],g=d-u.rollingPageX[0],f=h-u.rollingPageY[0],m=r.targets.filter(function(e){return u.initialTarget instanceof Node&&e.contains(u.initialTarget)});r.inertia(m,n,Math.abs(g)/p,g>0?1:-1,d,Math.abs(f)/p,f>0?1:-1,h)}r.dispatchEvent(r.newGestureEvent(ey.End,u.initialTarget)),delete r.activeTouches[a.identifier]},r=this,s=0,a=t.changedTouches.length;s0&&(g=!1,h=o*i*d),s>0&&(g=!1,p=a*s*d);var f=l.newGestureEvent(ey.Change);f.translationX=h,f.translationY=p,t.forEach(function(e){return e.dispatchEvent(f)}),g||l.inertia(t,c,i,o,r+h,s,a,u+p)})},e.prototype.onTouchMove=function(e){for(var t=Date.now(),n=0,i=e.changedTouches.length;n3&&(r.rollingPageX.shift(),r.rollingPageY.shift(),r.rollingTimestamps.shift()),r.rollingPageX.push(o.pageX),r.rollingPageY.push(o.pageY),r.rollingTimestamps.push(t)}else console.warn("end of an UNKNOWN touch",o)}this.dispatched&&(e.preventDefault(),e.stopPropagation(),this.dispatched=!1)},e.SCROLL_FRICTION=-.005,e.HOLD_DELAY=700,Object(a.b)([ry],e,"isTouchDevice",null),e}();function ay(e,t){var n=new Ys(t);return n.preventDefault(),{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var uy=function(e){function t(){var t=e.call(this)||this;return t.hooks=[],t.mouseMoveEventMerger=null,t.mouseMoveCallback=null,t.onStopCallback=null,t}return Object(a.c)(t,e),t.prototype.dispose=function(){this.stopMonitoring(!1),e.prototype.dispose.call(this)},t.prototype.stopMonitoring=function(e){if(this.isMonitoring()){this.hooks=_t(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 i=this;if(!this.isMonitoring()){this.mouseMoveEventMerger=e,this.mouseMoveCallback=t,this.onStopCallback=n;for(var o=Vs.getSameOriginWindowChain(),r=0;rn||c.isEmpty()&&0===l.type||(r[s++]=new e(c.startLineNumber===n?c.startColumn:i,c.endLineNumber===n?c.endColumn:o,l.inlineClassName,l.type))}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}(),vy=function(e,t,n){this.startOffset=e,this.endOffset=t,this.className=n},by=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}(),_y=function(){function e(){}return e.normalize=function(e,t){if(0===t.length)return[];for(var n=[],i=new by,o=0,r=0,s=t.length;r1&&so(e.charCodeAt(u-2))&&u--,l>1&&so(e.charCodeAt(l-2))&&l--;var d=u-1,h=l-2;o=i.consumeLowerThan(d,o,n),0===i.count&&(o=d),i.insert(h,c)}return i.consumeLowerThan(1073741824,o,n),n},e}();py="undefined"!=typeof TextDecoder?function(e){return new My(e)}:function(e){return new wy};var My=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE"),this._capacity=0|e,this._buffer=new Uint16Array(this._capacity),this._completedStrings=null,this._bufferLength=0}return e.prototype.reset=function(){this._completedStrings=null,this._bufferLength=0},e.prototype.build=function(){return null!==this._completedStrings?(this._flushBuffer(),this._completedStrings.join("")):this._buildBuffer()},e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)},e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0,null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e},e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||so(e))&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer(),this._buffer[this._bufferLength++]=e},e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity)return this._flushBuffer(),void(this._completedStrings[this._completedStrings.length]=e);for(var n=0;n>>16},e.getCharIndex=function(e){return(65535&e)>>>0},e.prototype.setPartData=function(e,t,n,i){this._data[e]=(t<<16|n<<0)>>>0,this._absoluteOffsets[e]=i+n},e.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},e.prototype.charOffsetToPartData=function(e){return 0===this.length?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]},e.prototype.partDataToCharOffset=function(t,n,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=e.getPartIndex(l);return i-e.getCharIndex(l)<=(d!==e.getPartIndex(c)?n:e.getCharIndex(c))-i?r:s},e}(),Iy=function(e,t,n){this.characterMapping=e,this.containsRTL=t,this.containsForeignElements=n};function Sy(e,t){if(0===e.lineContent.length){var n=!1,i="\xa0";if(e.lineDecorations.length>0){for(var o=[],r=0,s=e.lineDecorations.length;r')}return t.appendASCIIString(i),new Iy(new Ny(0,0),!1,n)}return function(e,t){var n=e.fontIsMonospace,i=e.containsForeignElements,o=e.lineContent,r=e.len,s=e.isOverflowing,a=e.parts,u=e.tabSize,l=e.containsRTL,c=e.spaceWidth,d=e.renderWhitespace,h=e.renderControlCharacters,p=new Ny(r+1,a.length),g=0,f=0,m=0,y=0,v=0;t.appendASCIIString("");for(var b=0,_=a.length;b<_;b++){v+=y;var M=a[b],w=M.endIndex,C=M.type,L=0!==d&&C.indexOf("vs-whitespace")>=0;if(m=0,t.appendASCIIString('0&&(t.write1(8594),D--);D>0;)t.write1(160),D--;else t.write1(183);m++}y=N}else{for(N=0,l&&t.appendASCIIString(' dir="ltr"'),t.appendASCII(62);g0;)t.write1(160),N++,D--;break;case 32:t.write1(160),N++;break;case 60:t.appendASCIIString("<"),N++;break;case 62:t.appendASCIIString(">"),N++;break;case 38:t.appendASCIIString("&"),N++;break;case 0:t.appendASCIIString("�"),N++;break;case 65279:case 8232:t.write1(65533),N++;break;default:mo(x)&&f++,h&&x<32?(t.write1(9216+x),N++):(t.write1(x),N++)}m++}y=N}t.appendASCIIString("")}return p.setPartData(r,a.length-1,m,v),s&&t.appendASCIIString(""),t.appendASCIIString(""),new Iy(p,l,i)}(function(e){var t,n,i=e.useMonospaceOptimizations,o=e.lineContent;-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter0&&(i[o++]=new Cy(t,""));for(var r=0,s=e.getCount();r=n){i[o++]=new Cy(n,u);break}i[o++]=new Cy(a,u)}}return i}(e.lineTokens,e.fauxIndentLength,n);2!==e.renderWhitespace&&1!==e.renderWhitespace||(r=function(e,t,n,i,o,r,s){var a,u=[],l=0,c=0,d=n[c].type,h=n[c].endIndex,p=Zi(e);-1===p?(p=t,a=t):a=Gi(e);for(var g=0,f=0;fa)v=!0;else if(9===y)v=!0;else if(32===y)if(s)if(m)v=!0;else{var b=f+1=o)&&(u[l++]=new Cy(f,"vs-whitespace"),g%=o):(f===h||v&&f>i)&&(u[l++]=new Cy(f,d),g%=o),9===y?g=o:mo(y)?g+=2:g++,m=v,f===h&&(d=n[++c].type,h=n[c].endIndex)}return u[l++]=new Cy(t,m?"vs-whitespace":d),u}(o,n,r,e.fauxIndentLength,e.tabSize,i,1===e.renderWhitespace));var s=!1;if(e.lineDecorations.length>0){for(var a=0,u=e.lineDecorations.length;al&&(a[u++]=new Cy(l=f.startOffset,g)),!(f.endOffset+1<=p)){a[u++]=new Cy(l=p,g+" "+f.className);break}a[u++]=new Cy(l=f.endOffset+1,g+" "+f.className),s++}p>l&&(a[u++]=new Cy(l=p,g))}var m=n[n.length-1].endIndex;if(s50){for(var c=a.type,d=Math.ceil(l/50),h=1;h=u?o=Math.max(o,u+l-i):(t[n++]=new jy(i,o),i=u,o=l)}return t[n++]=new jy(i,o),t},e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;for(var n=[],i=0,o=e.length;ia)return null;(t=Math.min(a,Math.max(0,t)))!==(i=Math.min(a,Math.max(0,i)))&&i>0&&0===o&&(i--,o=Number.MAX_VALUE);var u=e.children[t].firstChild,l=e.children[i].firstChild;if(u&&l||(!u&&0===n&&t>0&&(u=e.children[t-1].firstChild,n=1073741824),!l&&0===o&&i>0&&(l=e.children[i-1].firstChild,o=1073741824)),!u||!l)return null;n=Math.min(u.textContent.length,Math.max(0,n)),o=Math.min(l.textContent.length,Math.max(0,o));var c=this._readClientRects(u,n,l,o,s);return this._createHorizontalRangesFromClientRects(c,r)},e}(),Py=!!mn.e||!(mn.c||Ds||ks),Ry=xs,zy=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}(),Wy=function(){function e(e,t){this.themeType=t,this.renderWhitespace=e.editor.viewInfo.renderWhitespace,this.renderControlCharacters=e.editor.viewInfo.renderControlCharacters,this.spaceWidth=e.editor.fontInfo.spaceWidth,this.useMonospaceOptimizations=e.editor.fontInfo.isMonospace&&!e.editor.viewInfo.disableMonospaceOptimizations,this.lineHeight=e.editor.lineHeight,this.stopRenderingLineAfter=e.editor.viewInfo.stopRenderingLineAfter,this.fontLigatures=e.editor.viewInfo.fontLigatures}return e.prototype.equals=function(e){return this.themeType===e.themeType&&this.renderWhitespace===e.renderWhitespace&&this.renderControlCharacters===e.renderControlCharacters&&this.spaceWidth===e.spaceWidth&&this.useMonospaceOptimizations===e.useMonospaceOptimizations&&this.lineHeight===e.lineHeight&&this.stopRenderingLineAfter===e.stopRenderingLineAfter&&this.fontLigatures===e.fontLigatures},e}(),Fy=function(){function e(e){this._options=e,this._isMaybeInvalid=!0,this._renderedViewLine=null}return e.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},e.prototype.setDomNode=function(e){if(!this._renderedViewLine)throw new Error("I have no rendered view line to set the dom node to...");this._renderedViewLine.domNode=xg(e)},e.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},e.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},e.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},e.prototype.onOptionsChanged=function(e){this._isMaybeInvalid=!0,this._options=e},e.prototype.onSelectionChanged=function(){return!(!Ry&&this._options.themeType!==bm||(this._isMaybeInvalid=!0,0))},e.prototype.renderLine=function(t,n,i,o){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var r=i.getViewLineRenderingData(t),s=this._options,a=yy.filter(r.inlineDecorations,t,r.minColumn,r.maxColumn);if(Ry||s.themeType===bm)for(var u=i.selections,l=0,c=u.length;lt)){var h=d.startLineNumber===t?d.startColumn:r.minColumn,p=d.endLineNumber===t?d.endColumn:r.maxColumn;h');var f=Sy(g,o);o.appendASCIIString("");var m=null;if(Py&&s.useMonospaceOptimizations&&!f.containsForeignElements){var y=!0;r.mightContainNonBasicASCII&&(y=go(r.content)),y&&r.content.length<1e3&&g.lineTokens.getCount()<100&&(m=new Hy(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping))}return m||(m=Yy(this._renderedViewLine?this._renderedViewLine.domNode:null,g,f.characterMapping,f.containsRTL,f.containsForeignElements)),this._renderedViewLine=m,!0},e.prototype.layoutLine=function(e,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},e.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},e.prototype.getWidthIsFast=function(){return!this._renderedViewLine||this._renderedViewLine.getWidthIsFast()},e.prototype.getVisibleRangesForRange=function(e,t,n){e|=0,t|=0,e=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,e)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var i=0|this._renderedViewLine.input.stopRenderingLineAfter;return-1!==i&&e>i&&t>i?null:(-1!==i&&e>i&&(e=i),-1!==i&&t>i&&(t=i),this._renderedViewLine.getVisibleRangesForRange(e,t,n))},e.prototype.getColumnOfNodeOffset=function(e,t,n){return this._renderedViewLine.getColumnOfNodeOffset(e,t,n)},e.CLASS_NAME="view-line",e}(),Hy=function(){function e(e,t,n){this.domNode=e,this.input=t,this._characterMapping=n,this._charWidth=t.spaceWidth}return e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},e.prototype.getWidthIsFast=function(){return!0},e.prototype.getVisibleRangesForRange=function(e,t,n){var i=this._getCharPosition(e),o=this._getCharPosition(t);return[new jy(i,o-i)]},e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();return 0===t.length?0:Math.round(this._charWidth*t[e-1])},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),By=function(){function e(e,t,n,i,o){if(this.domNode=e,this.input=t,this._characterMapping=n,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=o,this._cachedWidth=-1,this._pixelOffsetCache=null,!i||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var r=0,s=this._characterMapping.length;r<=s;r++)this._pixelOffsetCache[r]=-1}}return e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild},e.prototype.getWidth=function(){return-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth),this._cachedWidth},e.prototype.getWidthIsFast=function(){return-1!==this._cachedWidth},e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var i=this._readPixelOffset(e,n);if(-1===i)return null;var o=this._readPixelOffset(t,n);return-1===o?null:[new jy(i,o-i)]}return this._readVisibleRangesForRange(e,t,n)},e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var i=this._readPixelOffset(e,n);return-1===i?null:[new jy(i,0)]}return this._readRawVisibleRangesForRange(e,t,n)},e.prototype._readPixelOffset=function(e,t){if(0===this._characterMapping.length&&!this._containsForeignElements)return 0;if(null!==this._pixelOffsetCache){var n=this._pixelOffsetCache[e];if(-1!==n)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){var n=Oy.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);return n&&0!==n.length?n[0].left:-1}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&!this._containsForeignElements)return this.getWidth();var i=this._characterMapping.charOffsetToPartData(e-1),o=Ny.getPartIndex(i),r=Ny.getCharIndex(i),s=Oy.readHorizontalRanges(this._getReadingTarget(),o,r,o,r,t.clientRectDeltaLeft,t.endNode);return s&&0!==s.length?s[0].left:-1},e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new jy(0,this.getWidth())];var i=this._characterMapping.charOffsetToPartData(e-1),o=Ny.getPartIndex(i),r=Ny.getCharIndex(i),s=this._characterMapping.charOffsetToPartData(t-1),a=Ny.getPartIndex(s),u=Ny.getCharIndex(s);return Oy.readHorizontalRanges(this._getReadingTarget(),o,r,a,u,n.clientRectDeltaLeft,n.endNode)},e.prototype.getColumnOfNodeOffset=function(e,t,n){for(var i=t.textContent.length,o=-1;t;)t=t.previousSibling,o++;return this._characterMapping.partDataToCharOffset(o,i,n)+1},e}(),Vy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(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(-1!==r&&-1!==s){var a=o[o.length-1];r<=s&&a.left=4&&3===e[0]&&7===e[3]},e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]},e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]},e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]},e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]},e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]},e}(),Gy=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._context.viewLayout.getWhitespaceAtVerticalOffset(e);if(t){var n=t.verticalOffset+t.height/2,i=this._context.model.getLineCount(),o=null,r=null;return t.afterLineNumber!==i&&(r=new rn(t.afterLineNumber+1,1)),t.afterLineNumber>0&&(o=new rn(t.afterLineNumber,this._context.model.getLineMaxColumn(t.afterLineNumber))),{viewZoneId:t.id,afterLineNumber:t.afterLineNumber,positionBefore:o,positionAfter:r,position:null===r?o:null===o?r:e=e.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,Jy._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}}()),Xy={isAfterLines:!0},Ky={isAfterLines:!1},Jy=function(){function e(e,t){this._context=e,this._viewHelper=t}return e.prototype.mouseTargetIsWidget=function(e){var t=Rg.collect(e.target,this._viewHelper.viewDomNode);return!(!Uy.isChildOfContentWidgets(t)&&!Uy.isChildOfOverflowingContentWidgets(t)&&!Uy.isChildOfOverlayWidgets(t))},e.prototype.createMouseTarget=function(t,n,i,o){var r=new Gy(this._context,this._viewHelper,t),s=new Qy(r,n,i,o);try{return e._createMouseTarget(r,s,!1)}catch(e){return s.fulfill(Hn.UNKNOWN)}},e._createMouseTarget=function(t,n,i){if(null===n.target){if(i)return n.fulfill(Hn.UNKNOWN);var o=e._doHitTest(t,n);return o.position?e.createMouseTargetFromHitTestPosition(t,n,o.position.lineNumber,o.position.column):this._createMouseTarget(t,n.withTarget(o.hitTarget),!0)}var r=null;return(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r||e._hitTestContentWidget(t,n))||e._hitTestOverlayWidget(t,n))||e._hitTestMinimap(t,n))||e._hitTestScrollbarSlider(t,n))||e._hitTestViewZone(t,n))||e._hitTestMargin(t,n))||e._hitTestViewCursor(t,n))||e._hitTestTextArea(t,n))||e._hitTestViewLines(t,n,i))||e._hitTestScrollbar(t,n))||n.fulfill(Hn.UNKNOWN)},e._hitTestContentWidget=function(e,t){if(Uy.isChildOfContentWidgets(t.targetPath)||Uy.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(Hn.CONTENT_WIDGET,null,null,n):t.fulfill(Hn.UNKNOWN)}return null},e._hitTestOverlayWidget=function(e,t){if(Uy.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(Hn.OVERLAY_WIDGET,null,null,n):t.fulfill(Hn.UNKNOWN)}return null},e._hitTestViewCursor=function(e,t){if(t.target)for(var n=0,i=(o=e.lastViewCursorsRenderData).length;na.contentLeft+a.width)){var u=e.getVerticalOffsetForLineNumber(a.position.lineNumber);if(u<=s&&s<=u+a.height)return t.fulfill(Hn.CONTENT_TEXT,a.position)}}}return null},e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);return n?t.fulfill(t.isInContentArea?Hn.CONTENT_VIEW_ZONE:Hn.GUTTER_VIEW_ZONE,n.position,null,n):null},e._hitTestTextArea=function(e,t){return Uy.isTextArea(t.targetPath)?t.fulfill(Hn.TEXTAREA):null},e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset),i=n.range.getStartPosition(),o=Math.abs(t.pos.x-t.editorPos.x),r={isAfterLines:n.isAfterLines,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:o};return(o-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth?t.fulfill(Hn.GUTTER_GLYPH_MARGIN,i,n.range,r):(o-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth?t.fulfill(Hn.GUTTER_LINE_NUMBERS,i,n.range,r):(o-=e.layoutInfo.lineNumbersWidth,t.fulfill(Hn.GUTTER_LINE_DECORATIONS,i,n.range,r))}return null},e._hitTestViewLines=function(t,n,i){if(!Uy.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var o=t.model.getLineCount(),r=t.model.getLineMaxColumn(o);return n.fulfill(Hn.CONTENT_EMPTY,new rn(o,r),void 0,Xy)}if(i)return n.fulfill(Hn.UNKNOWN);var s=e._doHitTest(t,n);return s.position?e.createMouseTargetFromHitTestPosition(t,n,s.position.lineNumber,s.position.column):this._createMouseTarget(t,n.withTarget(s.hitTarget),!0)},e._hitTestMinimap=function(e,t){if(Uy.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(Hn.SCROLLBAR,new rn(n,i))}return null},e._hitTestScrollbarSlider=function(e,t){if(Uy.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var i=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),o=e.model.getLineMaxColumn(i);return t.fulfill(Hn.SCROLLBAR,new rn(i,o))}}return null},e._hitTestScrollbar=function(e,t){if(Uy.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),i=e.model.getLineMaxColumn(n);return t.fulfill(Hn.SCROLLBAR,new rn(n,i))}return null},e.prototype.getMouseColumn=function(t,n){var i=this._context.configuration.editor.layoutInfo,o=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-i.contentLeft;return e._getMouseColumn(o,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)},e._getMouseColumn=function(e,t){return e<0?1:Math.round(e/t)+1},e.createMouseTargetFromHitTestPosition=function(e,t,n,i){var o=new rn(n,i),r=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>r)return t.fulfill(Hn.CONTENT_EMPTY,Ss&&1===o.column?new rn(n,e.model.getLineMaxColumn(n)):o,void 0,Ky);var s=e.visibleRangeForPosition2(n,i);if(!s)return t.fulfill(Hn.UNKNOWN,o);if(t.mouseContentHorizontalOffset===s.left)return t.fulfill(Hn.CONTENT_TEXT,o);var a=[];if(a.push({offset:s.left,column:i}),i>1){var u=e.visibleRangeForPosition2(n,i-1);u&&a.push({offset:u.left,column:i-1})}if(i=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var r=new ly(t.pos.x,o),s=this._actualDoHitTestWithCaretRangeFromPoint(e,r.toClientCoordinates());return s.position?s:this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())},e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var i,o=n.startContainer;if(o.nodeType===o.TEXT_NODE){var r=(a=(s=o.parentNode)?s.parentNode:null)?a.parentNode:null;if((r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Fy.CLASS_NAME)return{position:e.getPositionFromDOMInfo(s,n.startOffset),hitTarget:null};i=o.parentNode}else if(o.nodeType===o.ELEMENT_NODE){var s,a;if(((a=(s=o.parentNode)?s.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Fy.CLASS_NAME)return{position:e.getPositionFromDOMInfo(o,o.textContent.length),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,r=o?o.parentNode:null;return(r&&r.nodeType===r.ELEMENT_NODE?r.className:null)===Fy.CLASS_NAME?{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}:{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}},e._doHitTestWithMoveToPoint=function(e,t){var n=null,i=null,o=document.body.createTextRange();try{o.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}o.collapse(!0);var r=o?o.parentElement():null,s=r?r.parentNode:null,a=s?s.parentNode:null;if((a&&a.nodeType===a.ELEMENT_NODE?a.className:"")===Fy.CLASS_NAME){var u=o.duplicate();u.moveToElementText(r),u.setEndPoint("EndToStart",o),n=e.getPositionFromDOMInfo(r,u.text.length),u.moveToElementText(e.viewDomNode)}else i=r;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}();function qy(e){return function(t,n){var i=!1;return e&&(i=e.mouseTargetIsWidget(n)),i||n.preventDefault(),n}}var $y=function(e){function t(n,i,o){var r=e.call(this)||this;r._isFocused=!1,r._context=n,r.viewController=i,r.viewHelper=o,r.mouseTargetFactory=new Jy(r._context,o),r._mouseDownOperation=r._register(new ev(r._context,r.viewController,r.viewHelper,function(e,t){return r._createMouseTarget(e,t)},function(e){return r._getMouseColumn(e)})),r._asyncFocus=r._register(new _s(function(){return r.viewHelper.focusTextArea()},0)),r.lastMouseLeaveTime=-1;var s=new fy(r.viewHelper.viewDomNode);r._register(s.onContextMenu(r.viewHelper.viewDomNode,function(e){return r._onContextMenu(e,!0)})),r._register(s.onMouseMoveThrottled(r.viewHelper.viewDomNode,function(e){return r._onMouseMove(e)},qy(r.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME)),r._register(s.onMouseUp(r.viewHelper.viewDomNode,function(e){return r._onMouseUp(e)})),r._register(s.onMouseLeave(r.viewHelper.viewDomNode,function(e){return r._onMouseLeave(e)})),r._register(s.onMouseDown(r.viewHelper.viewDomNode,function(e){return r._onMouseDown(e)}));var a=function(e){if(r._context.configuration.editor.viewInfo.mouseWheelZoom){var t=new Us(e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=ng.getZoomLevel();ng.setZoomLevel(n+(t.deltaY>0?1:-1)),t.preventDefault(),t.stopPropagation()}}};return r._register(oa(r.viewHelper.viewDomNode,"mousewheel",a,!0)),r._register(oa(r.viewHelper.viewDomNode,"DOMMouseScroll",a,!0)),r._context.addEventHandler(r),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),e.prototype.dispose.call(this)},t.prototype.onCursorStateChanged=function(e){return this._mouseDownOperation.onCursorStateChanged(e),!1},t.prototype.onFocusChanged=function(e){return this._isFocused=e.isFocused,!1},t.prototype.onScrollChanged=function(e){return this._mouseDownOperation.onScrollChanged(),!1},t.prototype.getTargetAtClientPoint=function(e,t){var n=new cy(e,t).toPageCoordinates(),i=hy(this.viewHelper.viewDomNode);if(n.yi.y+i.height||n.xi.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,n,null)},t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,e.editorPos,e.pos,t?e.target:null)},t.prototype._getMouseColumn=function(e){return this.mouseTargetFactory.getMouseColumn(e.editorPos,e.pos)},t.prototype._onContextMenu=function(e,t){this.viewController.emitContextMenu({event:e,target:this._createMouseTarget(e,t)})},t.prototype._onMouseMove=function(e){this._mouseDownOperation.isActive()||e.timestampt.y+t.height){var s=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return new Zy(null,Hn.OUTSIDE_EDITOR,o,new rn(s,n.getLineMaxColumn(s)))}var a=i.getLineNumberAtVerticalOffset(i.getCurrentScrollTop()+(e.posy-t.y));return e.posxt.x+t.width?new Zy(null,Hn.OUTSIDE_EDITOR,o,new rn(a,n.getLineMaxColumn(a))):null},t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var i=this._createMouseTarget(e,t);if(!i.position)return null;if(i.type===Hn.CONTENT_VIEW_ZONE||i.type===Hn.GUTTER_VIEW_ZONE){var o=new rn(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),r=i.detail,s=r.positionBefore,a=r.positionAfter;if(s&&a)return s.isBefore(o)?new Zy(i.element,i.type,i.mouseColumn,s,null,i.detail):new Zy(i.element,i.type,i.mouseColumn,a,null,i.detail)}return i},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}(Ct),tv=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,this.isDragAndDrop=!1}return Object.defineProperty(e.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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.CLEAR_MOUSE_DOWN_COUNT_TIME=400,e}();function nv(e,t){var n={translationY:t.translationY,translationX:t.translationX};return e&&(n.translationY+=e.translationY,n.translationX+=e.translationX),n}var iv,ov,rv=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.msTouchAction="none",o.viewHelper.linesContentDomNode.style.msContentZooming="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var i=n.pointerType;i!==(n.MSPOINTER_TYPE_MOUSE||"mouse")?i===(n.MSPOINTER_TYPE_TOUCH||"touch")?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"}),o._register(ba(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e)},nv)),o._register(oa(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e)},!0))}},100),o._lastPointerType="mouse",o}return Object(a.c)(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 gy(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}($y),sv=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.viewHelper.linesContentDomNode.style.touchAction="none",o._installGestureHandlerTimeout=window.setTimeout(function(){if(o._installGestureHandlerTimeout=-1,window.MSGesture){var e=new MSGesture,t=new MSGesture;e.target=o.viewHelper.linesContentDomNode,t.target=o.viewHelper.linesContentDomNode,o.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var i=n.pointerType;"mouse"!==i?"touch"===i?(o._lastPointerType="touch",e.addPointer(n.pointerId)):(o._lastPointerType="pen",t.addPointer(n.pointerId)):o._lastPointerType="mouse"}),o._register(ba(o.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return o._onGestureChange(e)},nv)),o._register(oa(o.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return o._onCaptureGestureTap(e)},!0))}},100),o._lastPointerType="mouse",o}return Object(a.c)(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 gy(e,this.viewHelper.viewDomNode),i=this._createMouseTarget(n,!1);i.position&&this.viewController.moveTo(i.position),n.browserEvent.fromElement?(n.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){t.viewHelper.focusTextArea()})},t.prototype._onGestureChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),e.prototype.dispose.call(this)},t}($y),av=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return sy.addTarget(o.viewHelper.linesContentDomNode),o._register(oa(o.viewHelper.linesContentDomNode,ey.Tap,function(e){return o.onTap(e)})),o._register(oa(o.viewHelper.linesContentDomNode,ey.Change,function(e){return o.onChange(e)})),o._register(oa(o.viewHelper.linesContentDomNode,ey.Contextmenu,function(e){return o._onContextMenu(new gy(e,o.viewHelper.viewDomNode),!1)})),o}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onTap=function(e){e.preventDefault(),this.viewHelper.focusTextArea();var t=this._createMouseTarget(new gy(e,this.viewHelper.viewDomNode),!1);t.position&&this.viewController.moveTo(t.position)},t.prototype.onChange=function(e){this._context.viewLayout.deltaScrollNow(-e.translationX,-e.translationY)},t}($y),uv=function(){function e(e,t,n){this.handler=window.navigator.msPointerEnabled?new rv(e,t,n):window.TouchEvent?new av(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?new sv(e,t,n):new $y(e,t,n)}return e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)},e.prototype.dispose=function(){this.handler.dispose()},e}(),lv=function(){function e(){}return e._createWord=function(e,t,n,i){return{start:n,end:i,wordType:t}},e._findPreviousWordOnLine=function(e,t,n){var i=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(i,e,n)},e._doFindPreviousWordOnLine=function(e,t,n){for(var i=0,o=n.column-2;o>=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,i,o){var r=i.lineNumber,s=i.column;1===s&&r>1&&(s=n.getLineMaxColumn(r-=1));var a=e._findPreviousWordOnLine(t,n,new rn(r,s));return 0===o?s=a?a.start+1:1:(a&&s<=a.end+1&&(a=e._findPreviousWordOnLine(t,n,new rn(r,a.start+1))),s=a?a.end+1:1),new rn(r,s)},e.moveWordRight=function(t,n,i,o){var r=i.lineNumber,s=i.column;s===n.getLineMaxColumn(r)&&r=a.start+1&&(a=e._findNextWordOnLine(t,n,new rn(r,a.end+1))),s=a?a.start+1:n.getLineMaxColumn(r)),new rn(r,s)},e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber),i=t.column-2,o=Gi(n,i);return o+11?1:n.getLineMaxColumn(--a):(c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new rn(a,c.start+1))),u=c?c.end+1:u>1?1:n.getLineMaxColumn(--a)),new sn(a,u,s.lineNumber,s.column)},e._findFirstNonWhitespaceChar=function(e,t){for(var n=e.length,i=t;i=h.start+1&&(h=e._findNextWordOnLine(t,n,new rn(a,h.end+1))),u=h?h.start+1:ua&&(l=e.model.getLineMaxColumn(u=a)),wh.fromModelState(new _h(new sn(r.lineNumber,1,u,l),0,new rn(u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(r.lineNumberc){a=e.viewModel.getLineCount();var d=s.lineNumber+1,h=1;return d>a&&(h=e.viewModel.getLineMaxColumn(d=a)),wh.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var p=t.modelState.selectionStart.getEndPosition();return wh.fromModelState(t.modelState.move(t.modelState.hasSelection(),p.lineNumber,p.column,0))},e.word=function(e,t,n,i){var o=e.model.validatePosition(i);return wh.fromModelState(lv.word(e.config,e.model,t.modelState,n,o))},e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new wh(t.modelState,t.viewState);var n=t.viewState.position.lineNumber,i=t.viewState.position.column;return wh.fromViewState(new _h(new sn(n,i,n,i),0,new rn(n,i),0))},e.moveTo=function(e,t,n,i,o){var r=e.model.validatePosition(i),s=o?e.validateViewPosition(new rn(o.lineNumber,o.column),r):e.convertModelPositionToViewPosition(r);return wh.fromViewState(t.viewState.move(n,s.lineNumber,s.column,0))},e.move=function(e,t,n){var i=n.select,o=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,i):this._moveLeft(e,t,i,o);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,i):this._moveRight(e,t,i,o);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,i,o):this._moveUpByModelLines(e,t,i,o);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,i,o):this._moveDownByModelLines(e,t,i,o);case 4:return this._moveToViewMinColumn(e,t,i);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,i);case 6:return this._moveToViewCenterColumn(e,t,i);case 7:return this._moveToViewMaxColumn(e,t,i);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,i);case 9:var r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._firstLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a);return[this._moveToModelPosition(e,r,i,a,u)];case 11:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=this._lastLineNumberInRange(e.model,s,o),u=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,u)];case 10:return r=t[0],s=e.getCompletelyVisibleModelRange(),a=Math.round((s.startLineNumber+s.endLineNumber)/2),u=e.model.getLineFirstNonWhitespaceColumn(a),[this._moveToModelPosition(e,r,i,a,u)];case 12:for(var l=e.getCompletelyVisibleViewRange(),c=[],d=0,h=t.length;dn.endLineNumber-1&&(o=n.endLineNumber-1),oo,u=i>r,l=ir)continue;if(mi)continue;if(f1&&o--,this.columnSelect(e,t,n.selection,i,o)},e.columnSelectRight=function(e,t,n,i,o){for(var r=0,s=Math.min(n.position.lineNumber,i),a=Math.max(n.position.lineNumber,i),u=s;u<=a;u++){var l=t.getLineMaxColumn(u),c=Lh.visibleColumnFromColumn2(e,t,new rn(u,l));r=Math.max(r,c)}return ot.getLineCount()&&(o=t.getLineCount()),this.columnSelect(e,t,n.selection,o,r)},e}(),bv=Yn,_v=qa.WEIGHT.editorCore(),Mv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors();i&&this.runCoreEditorCommand(i,n||{})},t}(Qp);function wv(e){return e.get(Fo).getFocusedCodeEditor()}function Cv(e){qa.registerCommandAndKeybindingRule(e.toCommandAndKeybindingRule(_v))}(yv=dv||(dv={})).description={description:"Scroll editor in the given direction",args:[{name:"Editor scroll argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:function(e){if(!ti(e))return!1;var t=e;return!(!ei(t.to)||!oi(t.by)&&!ei(t.by)||!oi(t.value)&&!ni(t.value)||!oi(t.revealCursor)&&!ii(t.revealCursor))}}]},yv.RawDirection={Up:"up",Down:"down"},yv.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"},yv.parse=function(e){var t,n;switch(e.to){case yv.RawDirection.Up:t=1;break;case yv.RawDirection.Down:t=2;break;default:return null}switch(e.by){case yv.RawUnit.Line:n=1;break;case yv.RawUnit.WrappedLine:n=2;break;case yv.RawUnit.Page:n=3;break;case yv.RawUnit.HalfPage:n=4;break;default:n=2}return{direction:t,unit:n,value:Math.floor(e.value||1),revealCursor:!!e.revealCursor,select:!!e.select}},(pv=hv||(hv={})).description={description:"Reveal the given line at the given logical position",args:[{name:"Reveal line argument object",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:function(e){if(!ti(e))return!1;var t=e;return!(!ni(t.lineNumber)||!oi(t.at)&&!ei(t.at))}}]},pv.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"},function(e){var t=function(e){function t(t){var n=e.call(this,t)||this;return n._inSelectionMode=t.inSelectionMode,n}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[cv.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]),e.reveal(!0,0,0)},t}(Mv);e.MoveTo=qp(new t({id:"_moveTo",inSelectionMode:!1,precondition:null})),e.MoveToSelect=qp(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,mh.Explicit,n.viewStates.map(function(e){return wh.fromViewState(e)})),e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn}),e.reveal(!0,n.reversed?1:2,0)},t}(Mv);e.ColumnSelect=qp(new(function(e){function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){var o,r=e.model.validatePosition(i.position);return o=i.viewPosition?e.validateViewPosition(new rn(i.viewPosition.lineNumber,i.viewPosition.column),r):e.convertModelPositionToViewPosition(r),vv.columnSelect(e.config,e.viewModel,t.viewState.selection,o.lineNumber,i.mouseColumn-1)},t}(n))),e.CursorColumnSelectLeft=qp(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3599,linux:{primary:0}}})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n))),e.CursorColumnSelectRight=qp(new(function(e){function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3601,linux:{primary:0}}})||this}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)},t}(n)));var i=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectUp=qp(new i({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3600,linux:{primary:0}}})),e.CursorColumnSelectPageUp=qp(new i({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3595,linux:{primary:0}}}));var o=function(e){function t(t){var n=e.call(this,t)||this;return n._isPaged=t.isPaged,n}return Object(a.c)(t,e),t.prototype._getColumnSelectResult=function(e,t,n,i){return vv.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)},t}(n);e.CursorColumnSelectDown=qp(new o({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3602,linux:{primary:0}}})),e.CursorColumnSelectPageDown=qp(new o({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:3596,linux:{primary:0}}}));var r=function(e){function t(){return e.call(this,{id:"cursorMove",precondition:null,description:iv.description})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=iv.parse(t);n&&this._runCursorMove(e,t.source,n)},t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement(),e.setStates(t,mh.Explicit,cv.move(e.context,e.getAll(),n)),e.reveal(!0,0,0)},t}(Mv);e.CursorMoveImpl=r,e.CursorMove=qp(new r);var s=function(t){function n(e){var n=t.call(this,e)||this;return n._staticArgs=e.args,n}return Object(a.c)(n,t),n.prototype.runCoreEditorCommand=function(t,n){var i=this._staticArgs;-1===this._staticArgs.value&&(i={direction:this._staticArgs.direction,unit:this._staticArgs.unit,select:this._staticArgs.select,value:t.context.config.pageSize}),e.CursorMove._runCursorMove(t,n.source,i)},n}(Mv);e.CursorLeft=qp(new s({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}})),e.CursorLeftSelect=qp(new s({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1039}})),e.CursorRight=qp(new s({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}})),e.CursorRightSelect=qp(new s({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1041}})),e.CursorUp=qp(new s({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}})),e.CursorUpSelect=qp(new s({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}})),e.CursorPageUp=qp(new s({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:11}})),e.CursorPageUpSelect=qp(new s({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1035}})),e.CursorDown=qp(new s({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}})),e.CursorDownSelect=qp(new s({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}})),e.CursorPageDown=qp(new s({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:12}})),e.CursorPageDownSelect=qp(new s({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1036}})),e.CreateCursor=qp(new(function(e){function t(){return e.call(this,{id:"createCursor",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){var n=e.context;if(!n.config.readOnly){var i;i=t.wholeLine?cv.line(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition):cv.moveTo(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var o=e.getAll();if(o.length>1)for(var r=i.modelState?i.modelState.position:null,s=i.viewState?i.viewState.position:null,a=0,u=o.length;ao&&(i=o);var r=new sn(i,1,i,e.context.model.getLineMaxColumn(i)),s=0;if(n.at)switch(n.at){case hv.RawAtArgument.Top:s=3;break;case hv.RawAtArgument.Center:s=1;break;case hv.RawAtArgument.Bottom:s=4}var a=e.context.convertModelRangeToViewRange(r);e.revealRange(!1,a,s,0)},t}(Mv))),e.SelectAll=qp(new(function(e){function t(){return e.call(this,{id:"selectAll",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[cv.selectAll(e.context,e.getPrimaryCursor())])},t}(Mv))),e.SetSelection=qp(new(function(e){function t(){return e.call(this,{id:"setSelection",precondition:null})||this}return Object(a.c)(t,e),t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement(),e.setStates(t.source,mh.Explicit,[wh.fromModelSelection(t.selection)])},t}(Mv)))}(gv||(gv={})),(mv=fv||(fv={})).LineBreakInsert=qp(new(function(e){function t(){return e.call(this,{id:"lineBreakInsert",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:null,mac:{primary:301}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.lineBreakInsert(t._getCursorConfiguration(),t.getModel(),t.getSelections()))},t}(Qp))),mv.Outdent=qp(new(function(e){function t(){return e.call(this,{id:"outdent",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:To.and(wp.editorTextFocus,wp.tabDoesNotMoveFocus),primary:1026}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.outdent(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(Qp))),mv.Tab=qp(new(function(e){function t(){return e.call(this,{id:"tab",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:To.and(wp.editorTextFocus,wp.tabDoesNotMoveFocus),primary:2}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){t.pushUndoStop(),t.executeCommands(this.id,Ph.tab(t._getCursorConfiguration(),t.getModel(),t.getSelections())),t.pushUndoStop()},t}(Qp))),mv.DeleteLeft=qp(new(function(e){function t(){return e.call(this,{id:"deleteLeft",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors(),o=jh.deleteLeft(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[1];o[0]&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(2)},t}(Qp))),mv.DeleteRight=qp(new(function(e){function t(){return e.call(this,{id:"deleteRight",precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){var i=t._getCursors(),o=jh.deleteRight(i.getPrevEditOperationType(),t._getCursorConfiguration(),t.getModel(),t.getSelections()),r=o[1];o[0]&&t.pushUndoStop(),t.executeCommands(this.id,r),i.setPrevEditOperationType(3)},t}(Qp)));var Lv=function(e){function t(t){var n=e.call(this,t)||this;return n._editorHandler=t.editorHandler,n._inputHandler=t.inputHandler,n}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=wv(e);if(n&&n.isFocused())return this._runEditorHandler(n,t);var i=document.activeElement;if(!(i&&["input","textarea"].indexOf(i.tagName.toLowerCase())>=0)){var o=function(e){var t=e.get(Zp);return Ho(t.getActiveEditor&&t.getActiveEditor())}(e);return o?(o.focus(),this._runEditorHandler(o,t)):void 0}document.execCommand(this._inputHandler)},t.prototype._runEditorHandler=function(e,t){var n=this._editorHandler;"string"==typeof n?e.trigger("keyboard",n,t):((t=t||{}).source="keyboard",n.runEditorCommand(null,e,t))},t}(Gp),Nv=function(e){function t(t,n){var i=e.call(this,{id:t,precondition:null})||this;return i._handlerId=n,i}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=wv(e);n&&n.trigger("keyboard",this._handlerId,t)},t}(Gp);function Iv(e){Cv(new Nv("default:"+e,e)),Cv(new Nv(e,e))}Cv(new Lv({editorHandler:gv.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:null,kbOpts:{weight:_v,kbExpr:null,primary:2079}})),Cv(new Lv({editorHandler:bv.Undo,inputHandler:"undo",id:bv.Undo,precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:2104}})),Cv(new Nv("default:"+bv.Undo,bv.Undo)),Cv(new Lv({editorHandler:bv.Redo,inputHandler:"redo",id:bv.Redo,precondition:wp.writable,kbOpts:{weight:_v,kbExpr:wp.textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}}})),Cv(new Nv("default:"+bv.Redo,bv.Redo)),Iv(bv.Type),Iv(bv.ReplacePreviousChar),Iv(bv.CompositionStart),Iv(bv.CompositionEnd),Iv(bv.Paste),Iv(bv.Cut);var Sv=function(){function e(e,t,n,i,o){this.configuration=e,this.viewModel=t,this._execCoreEditorCommandFunc=n,this.outgoingEvents=i,this.commandDelegate=o}return e.prototype._execMouseCommand=function(e,t){t.source="mouse",this._execCoreEditorCommandFunc(e,t)},e.prototype.paste=function(e,t,n,i){this.commandDelegate.paste(e,t,n,i)},e.prototype.type=function(e,t){this.commandDelegate.type(e,t)},e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)},e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)},e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)},e.prototype.cut=function(e){this.commandDelegate.cut(e)},e.prototype.setSelection=function(e,t){this._execCoreEditorCommandFunc(gv.SetSelection,{source:e,selection:t})},e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);return e.column=4?this.selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelectDrag(e.position):this.lastCursorLineSelect(e.position):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this.lastCursorWordSelect(e.position):e.inSelectionMode?this.wordSelectDrag(e.position):this.wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this.columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect(e.position):this.createCursor(e.position,!1)):e.inSelectionMode?this.moveToSelect(e.position):this.moveTo(e.position)},e.prototype._usualArgs=function(e){return e=this._validateViewColumn(e),{position:this.convertViewToModelPosition(e),viewPosition:e}},e.prototype.moveTo=function(e){this._execMouseCommand(gv.MoveTo,this._usualArgs(e))},e.prototype.moveToSelect=function(e){this._execMouseCommand(gv.MoveToSelect,this._usualArgs(e))},e.prototype.columnSelect=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(gv.ColumnSelect,{position:this.convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})},e.prototype.createCursor=function(e,t){e=this._validateViewColumn(e),this._execMouseCommand(gv.CreateCursor,{position:this.convertViewToModelPosition(e),viewPosition:e,wholeLine:t})},e.prototype.lastCursorMoveToSelect=function(e){this._execMouseCommand(gv.LastCursorMoveToSelect,this._usualArgs(e))},e.prototype.wordSelect=function(e){this._execMouseCommand(gv.WordSelect,this._usualArgs(e))},e.prototype.wordSelectDrag=function(e){this._execMouseCommand(gv.WordSelectDrag,this._usualArgs(e))},e.prototype.lastCursorWordSelect=function(e){this._execMouseCommand(gv.LastCursorWordSelect,this._usualArgs(e))},e.prototype.lineSelect=function(e){this._execMouseCommand(gv.LineSelect,this._usualArgs(e))},e.prototype.lineSelectDrag=function(e){this._execMouseCommand(gv.LineSelectDrag,this._usualArgs(e))},e.prototype.lastCursorLineSelect=function(e){this._execMouseCommand(gv.LastCursorLineSelect,this._usualArgs(e))},e.prototype.lastCursorLineSelectDrag=function(e){this._execMouseCommand(gv.LastCursorLineSelectDrag,this._usualArgs(e))},e.prototype.selectAll=function(){this._execMouseCommand(gv.SelectAll,{})},e.prototype.convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)},e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)},e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)},e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)},e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)},e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)},e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)},e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)},e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)},e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)},e}(),xv=function(){function e(e){this._eventHandlerGateKeeper=e,this._eventHandlers=[],this._eventQueue=null,this._isConsumingQueue=!1}return e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},e.prototype.onLinesDeleted=function(e,t){if(0===this.getCount())return null;var n=this.getStartLineNumber(),i=this.getEndLineNumber();if(ti)return null;for(var o=0,r=0,s=n;s<=i;s++)e<=s&&s<=t&&(0===r?(o=s-this._rendLineNumberStart,r=1):r++);return e=n&&r<=i&&(this._lines[r-this._rendLineNumberStart].onContentChanged(),o=!0);return o},e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1,i=this.getStartLineNumber(),o=this.getEndLineNumber();if(e<=i)return this._rendLineNumberStart+=n,null;if(e>o)return null;if(n+e>o)return this._lines.splice(e-this._rendLineNumberStart,o-e+1);for(var r=[],s=0;sn))for(var a=Math.max(t,s.fromLineNumber),u=Math.min(n,s.toLineNumber),l=a;l<=u;l++)this._lines[l-this._rendLineNumberStart].onTokensChanged(),i=!0}return i},e}(),Tv=function(){function e(e){var t=this;this._host=e,this.domNode=this._createDomNode(),this._linesCollection=new Dv(function(){return t._host.createVisibleLine()})}return e.prototype._createDomNode=function(){var e=xg(document.createElement("div"));return e.setClassName("view-layer"),e.setPosition("absolute"),e.domNode.setAttribute("role","presentation"),e.domNode.setAttribute("aria-hidden","true"),e},e.prototype.onConfigurationChanged=function(e){return e.layoutInfo},e.prototype.onFlushed=function(e){return this._linesCollection.flush(),!0},e.prototype.onLinesChanged=function(e){return this._linesCollection.onLinesChanged(e.fromLineNumber,e.toLineNumber)},e.prototype.onLinesDeleted=function(e){var t=this._linesCollection.onLinesDeleted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,i=t.length;nt?(u=t)<=(s=Math.min(n,o.rendLineNumberStart-1))&&(this._insertLinesBefore(o,u,s,i,t),o.linesLength+=s-u+1):o.rendLineNumberStart0&&(this._removeLinesBefore(o,a),o.linesLength-=a),o.rendLineNumberStart=t,o.rendLineNumberStart+o.linesLength-1n){var s,a,u=Math.max(0,n-o.rendLineNumberStart+1);(a=(s=o.linesLength-1)-u+1)>0&&(this._removeLinesAfter(o,a),o.linesLength-=a)}return this._finishRendering(o,!1,i),o},e.prototype._renderUntouchedLines=function(e,t,n,i,o){for(var r=e.rendLineNumberStart,s=e.lines,a=t;a<=n;a++){var u=r+a;s[a].layoutLine(u,i[u-o])}},e.prototype._insertLinesBefore=function(e,t,n,i,o){for(var r=[],s=0,a=t;a<=n;a++)r[s++]=this.host.createVisibleLine();e.lines=r.concat(e.lines)},e.prototype._removeLinesBefore=function(e,t){for(var n=0;n=0;s--)i[s]&&(e.lines[s].setDomNode(r),r=r.previousSibling)},e.prototype._finishRenderingInvalidLines=function(e,t,n){var i=document.createElement("div");i.innerHTML=t;for(var o=0;o'),i.appendASCIIString(o),i.appendASCIIString(""),!0)},e.prototype.layoutLine=function(e,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},e}(),Av=function(e){function t(t){var n=e.call(this,t)||this;return n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n.domNode.setHeight(0),n}return Object(a.c)(t,e),t.prototype.onConfigurationChanged=function(t){return t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),e.prototype.onConfigurationChanged.call(this,t)},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},t}(kv),Ov=function(e){function t(t){var n=e.call(this,t)||this;return n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n.domNode.setClassName("margin-view-overlays"),n.domNode.setWidth(1),Ig.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo),n}return Object(a.c)(t,e),t.prototype.onConfigurationChanged=function(t){var n=!1;return t.fontInfo&&(Ig.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo),n=!0),t.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft,n=!0),e.prototype.onConfigurationChanged.call(this,t)||n},t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},t.prototype._viewOverlaysRender=function(t){e.prototype._viewOverlaysRender.call(this,t);var n=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(n),this.domNode.setWidth(this._contentLeft)},t}(kv),Pv=function(e,t){this.top=e,this.left=t},Rv=function(e){function t(t,n){var i=e.call(this,t)||this;return i._viewDomNode=n,i._widgets={},i.domNode=xg(document.createElement("div")),Rg.write(i.domNode,1),i.domNode.setClassName("contentWidgets"),i.domNode.setPosition("absolute"),i.domNode.setTop(0),i.overflowingContentWidgetsDomNode=xg(document.createElement("div")),Rg.write(i.overflowingContentWidgetsDomNode,2),i.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null,this.domNode=null},t.prototype.onConfigurationChanged=function(e){for(var t=Object.keys(this._widgets),n=0,i=t.length;ni.scrollLeft+i.viewportWidth&&(s=i.scrollLeft+i.viewportWidth-t),s=n,belowTop:r,fitsBelow:i.viewportHeight-r>=n,left:s}},e.prototype._layoutBoxInPage=function(e,t,n,i){var o=e.left-i.scrollLeft;if(o+t<0||o>this._contentWidth)return null;var r,s=e.top-n,a=e.top+this._lineHeight,u=o+this._contentLeft,l=Na(this._viewDomNode.domNode),c=l.top+s-Ia.scrollY,d=l.top+a-Ia.scrollY,h=l.left+u-Ia.scrollX,p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return h+t+20>p&&(h-=r=h-(p-t-20),u-=r),h<0&&(h-=r=h,u-=r),this._fixedOverflowWidgets&&(s=c,a=d,u=h),{aboveTop:s,fitsAbove:c>=22,belowTop:a,fitsBelow:d+n<=g-22,left:u}},e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new Pv(e.top,e.left+this._contentLeft)},e.prototype._getTopLeft=function(e){if(!this._viewPosition)return null;var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return null;var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop;return new Pv(n,t.left)},e.prototype._prepareRenderWidget=function(e,t){var n=this;if(!e)return null;for(var i=null,o=function(){if(!i){if(-1===n._cachedDomNodeClientWidth||-1===n._cachedDomNodeClientHeight){var o=n.domNode.domNode;n._cachedDomNodeClientWidth=o.clientWidth,n._cachedDomNodeClientHeight=o.clientHeight}i=n.allowEditorOverflow?n._layoutBoxInPage(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t):n._layoutBoxInViewport(e,n._cachedDomNodeClientWidth,n._cachedDomNodeClientHeight,t)}},r=1;r<=2;r++)for(var s=0;se.endLineNumber||this.domNode.setMaxWidth(this._maxWidth))},e.prototype.prepareRender=function(e){var t=this._getTopLeft(e);this._renderData=this._prepareRenderWidget(t,e)},e.prototype.render=function(e){this._renderData?(this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)):this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"))},e}(),Wv=(n("Eawl"),function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._scrollWidth=0,n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){this._scrollWidth=e.scrollWidth},t.prototype.render=function(e,t){return t===this._primaryCursorLineNumber&&this._shouldShowCurrentLine()?'
    ':""},t.prototype._shouldShowCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t.prototype._willRenderMarginCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t}(qm));wm(function(e,t){var n=e.getColor(Cm);if(n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }"),!n||n.isTransparent()||e.defines(Lm)){var i=e.getColor(Lm);i&&(t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"))}}),n("3ZDw");var Fv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._renderLineHighlight=n._context.configuration.editor.viewInfo.renderLineHighlight,n._selectionIsEmpty=!0,n._primaryCursorLineNumber=1,n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._renderLineHighlight=this._context.configuration.editor.viewInfo.renderLineHighlight),e.layoutInfo&&(this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft),!0},t.prototype.onCursorStateChanged=function(e){var t=!1,n=e.selections[0].positionLineNumber;this._primaryCursorLineNumber!==n&&(this._primaryCursorLineNumber=n,t=!0);var i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i?(this._selectionIsEmpty=i,t=!0,!0):t},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";return this._shouldShowCurrentLine()&&(n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"")),'
    '}return""},t.prototype._shouldShowCurrentLine=function(){return"gutter"===this._renderLineHighlight||"all"===this._renderLineHighlight},t.prototype._willRenderContentCurrentLine=function(){return("line"===this._renderLineHighlight||"all"===this._renderLineHighlight)&&this._selectionIsEmpty},t}(qm);wm(function(e,t){var n=e.getColor(Cm);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var i=e.getColor(Lm);i&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}}),n("84z/");var Hv=function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._lineHeight=n._context.configuration.editor.lineHeight,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.prepareRender=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;oi?1:sn.compareRangesUsingStarts(e.range,t.range)});for(var a=e.visibleRange.startLineNumber,u=e.visibleRange.endLineNumber,l=[],c=a;c<=u;c++)l[c-a]="";this._renderWholeLineDecorations(e,n,l),this._renderNormalDecorations(e,n,l),this._renderResult=l},t.prototype._renderWholeLineDecorations=function(e,t,n){for(var 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++)n[h-o]+=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[f]+=_}}}}},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(qm),Bv=(n("uHSv"),function(){return function(e,t,n){this.startLineNumber=+e,this.endLineNumber=+t,this.className=String(n)}}()),Vv=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._render=function(e,t,n){for(var i=[],o=e;o<=t;o++)i[o-e]=[];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',s=[],a=t;a<=n;a++){var u=a-t,l=i[u];s[u]=0===l.length?"":'
    =this._renderResult.length?"":this._renderResult[n]},t}(Vv),Zv=(n("gCdB"),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 Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth),e.viewInfo&&(this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype.onLanguageConfigurationChanged=function(e){return!0},t.prototype.prepareRender=function(e){if(this._enabled){for(var t=e.visibleRange.startLineNumber,n=e.visibleRange.endLineNumber,i=this._context.model.getTabSize()*this._spaceWidth,o=this._lineHeight,r=i,s=this._context.model.getLinesIndentGuides(t,n),a=[],u=t;u<=n;u++){for(var l=u-t,c=s[l],d="",h=e.visibleRangeForPosition(new rn(u,1)),p=h?h.left:0,g=0;g
    ',p+=i;a[l]=d}this._renderResult=a}else this._renderResult=null},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t}(qm));wm(function(e,t){var n=e.getColor(Tm);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }")}),n("+0Qw");var Uv=function(){function e(){this._currentVisibleRange=new sn(1,1,1,1)}return e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e},e}(),Gv=function(e){function t(t,n){var i=e.call(this,t)||this;i._linesContent=n,i._textRangeRestingSpot=document.createElement("div"),i._visibleLines=new Tv(i),i.domNode=i._visibleLines.domNode;var o=i._context.configuration;return i._lineHeight=o.editor.lineHeight,i._typicalHalfwidthCharacterWidth=o.editor.fontInfo.typicalHalfwidthCharacterWidth,i._isViewportWrapping=o.editor.wrappingInfo.isViewportWrapping,i._revealHorizontalRightPadding=o.editor.viewInfo.revealHorizontalRightPadding,i._canUseLayerHinting=o.editor.canUseLayerHinting,i._viewLineOptions=new Wy(o,i._context.theme.type),Rg.write(i.domNode,7),i.domNode.setClassName("view-lines"),Ig.applyFontInfo(i.domNode,o.editor.fontInfo),i._maxLineWidth=0,i._asyncUpdateLineWidths=new _s(function(){i._updateLineWidthsSlow()},200),i._lastRenderedData=new Uv,i._horizontalRevealRequest=null,i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this.domNode},t.prototype.createVisibleLine=function(){return new Fy(this._viewLineOptions)},t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e),e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;return e.lineHeight&&(this._lineHeight=t.editor.lineHeight),e.fontInfo&&(this._typicalHalfwidthCharacterWidth=t.editor.fontInfo.typicalHalfwidthCharacterWidth),e.wrappingInfo&&(this._isViewportWrapping=t.editor.wrappingInfo.isViewportWrapping),e.viewInfo&&(this._revealHorizontalRightPadding=t.editor.viewInfo.revealHorizontalRightPadding),e.canUseLayerHinting&&(this._canUseLayerHinting=t.editor.canUseLayerHinting),e.fontInfo&&Ig.applyFontInfo(this.domNode,t.editor.fontInfo),this._onOptionsMaybeChanged(),e.layoutInfo&&(this._maxLineWidth=0),!0},t.prototype._onOptionsMaybeChanged=function(){var e=new Wy(this._context.configuration,this._context.theme.type);if(!this._viewLineOptions.equals(e)){this._viewLineOptions=e;for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions);return!0}return!1},t.prototype.onCursorStateChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=!1,o=t;o<=n;o++)i=this._visibleLines.getVisibleLine(o).onSelectionChanged()||i;return i},t.prototype.onDecorationsChanged=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=t;i<=n;i++)this._visibleLines.getVisibleLine(i).onDecorationsChanged();return!0},t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);return this._maxLineWidth=0,t},t.prototype.onLinesChanged=function(e){return this._visibleLines.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._visibleLines.onLinesDeleted(e)},t.prototype.onLinesInserted=function(e){return this._visibleLines.onLinesInserted(e)},t.prototype.onRevealRangeRequest=function(e){var t=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),e.range,e.verticalType),n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new function(e,t,n,i,o,r){this.lineNumber=e,this.startColumn=t,this.endColumn=n,this.startScrollTop=i,this.stopScrollTop=o,this.scrollType=r}(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var i=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);return 0===e.scrollType&&i>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n),!0},t.prototype.onScrollChanged=function(e){if(this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTopn)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(e.scrollWidth),this._visibleLines.onScrollChanged(e)||!0},t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)},t.prototype.onZonesChanged=function(e){return this._visibleLines.onZonesChanged(e)},t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var i=this._getLineNumberFor(n);if(-1===i)return null;if(i<1||i>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(i))return new rn(i,1);var o=this._visibleLines.getStartLineNumber(),r=this._visibleLines.getEndLineNumber();if(ir)return null;var s=this._visibleLines.getVisibleLine(i).getColumnOfNodeOffset(i,e,t),a=this._context.model.getLineMinColumn(i);return sn?-1:this._visibleLines.getVisibleLine(e).getWidth()},t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber;if(!(e=sn.intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange())))return null;var i,o=[],r=0,s=new zy(this.domNode.domNode,this._textRangeRestingSpot);t&&(i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new rn(e.startLineNumber,1)).lineNumber);for(var a=this._visibleLines.getStartLineNumber(),u=this._visibleLines.getEndLineNumber(),l=e.startLineNumber;l<=e.endLineNumber;l++)if(!(lu)){var c=l===e.startLineNumber?e.startColumn:1,d=l===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(l),h=this._visibleLines.getVisibleLine(l).getVisibleRangesForRange(c,d,s);h&&0!==h.length&&(t&&lo)){var s=r===e.startLineNumber?e.startColumn:1,a=r===e.endLineNumber?e.endColumn:this._context.model.getLineMaxColumn(r),u=this._visibleLines.getVisibleLine(r).getVisibleRangesForRange(s,a,n);u&&0!==u.length&&(t=t.concat(u))}return 0===t.length?null:t},t.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},t.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},t.prototype._updateLineWidths=function(e){for(var t=this._visibleLines.getStartLineNumber(),n=this._visibleLines.getEndLineNumber(),i=1,o=!0,r=t;r<=n;r++){var s=this._visibleLines.getVisibleLine(r);!e||s.getWidthIsFast()?i=Math.max(i,s.getWidth()):o=!1}return o&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(i),o},t.prototype.prepareRender=function(){throw new Error("Not supported")},t.prototype.render=function(){throw new Error("Not supported")},t.prototype.renderText=function(e){if(this._visibleLines.renderLines(e),this._lastRenderedData.setCurrentVisibleRange(e.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber,n=this._horizontalRevealRequest.startColumn,i=this._horizontalRevealRequest.endColumn,o=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var r=this._computeScrollLeftToRevealRange(t,n,i);this._isViewportWrapping||this._ensureMaxLineWidth(r.maxHorizontalOffset),0===o?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:r.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:r.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);this._maxLineWidthc&&(c=h.left+h.width)}return o=c,l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX),{scrollLeft:this._computeMinimumScrolling(s,a,l,c+=this._revealHorizontalRightPadding),maxHorizontalOffset:o}},t.prototype._computeMinimumScrolling=function(e,t,n,i,o,r){o=!!o,r=!!r;var s=(t|=0)-(e|=0);return(i|=0)-(n|=0)t?Math.max(0,i-s):e:n},t.HORIZONTAL_EXTRA_PX=30,t}(Pg),Qv=(n("MlKm"),function(e){function t(t){var n=e.call(this)||this;return n._context=t,n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft,n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth,n._renderResult=null,n._context.addEventHandler(n),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.layoutInfo&&(this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft,this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._getDecorations=function(e){for(var t=e.getDecorationsInViewport(),n=[],i=0,o=0,r=t.length;o',r=[],s=t;s<=n;s++){for(var a=s-t,u=i[a],l="",c=0,d=u.length;c';o[s]=u}this._renderResult=o},t.prototype.render=function(e,t){return this._renderResult?this._renderResult[t-e]:""},t}(Vv)),Kv=(n("EG+O"),function(e){function t(t){var n=e.call(this,t)||this;return n._widgets={},n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth,n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth,n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,n._editorHeight=n._context.configuration.editor.layoutInfo.height,n._editorWidth=n._context.configuration.editor.layoutInfo.width,n._domNode=xg(document.createElement("div")),Rg.write(n._domNode,4),n._domNode.setClassName("overlayWidgets"),n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._widgets=null},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){return!!e.layoutInfo&&(this._verticalScrollbarWidth=this._context.configuration.editor.layoutInfo.verticalScrollbarWidth,this._minimapWidth=this._context.configuration.editor.layoutInfo.minimapWidth,this._horizontalScrollbarHeight=this._context.configuration.editor.layoutInfo.horizontalScrollbarHeight,this._editorHeight=this._context.configuration.editor.layoutInfo.height,this._editorWidth=this._context.configuration.editor.layoutInfo.width,!0)},t.prototype.addWidget=function(e){var t=xg(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t},t.setPosition("absolute"),t.setAttribute("widgetId",e.getId()),this._domNode.appendChild(t),this.setShouldRender()},t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];return n.preference!==t&&(n.preference=t,this.setShouldRender(),!0)},t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t].domNode.domNode;delete this._widgets[t],n.parentNode.removeChild(n),this.setShouldRender()}},t.prototype._renderWidget=function(e){var t=e.domNode;null!==e.preference?e.preference===Fn.TOP_RIGHT_CORNER?(t.setTop(0),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):e.preference===Fn.BOTTOM_RIGHT_CORNER?(t.setTop(this._editorHeight-t.domNode.clientHeight-2*this._horizontalScrollbarHeight),t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)):e.preference===Fn.TOP_CENTER&&(t.setTop(0),t.domNode.style.right="50%"):t.unsetTop()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);for(var t=Object.keys(this._widgets),n=0,i=t.length;n=3){var o,r,s,a=i-(o=Math.floor(i/3))-(r=Math.floor(i/3)),u=(s=e)+o;return[[0,s,u,s,s+o+a,s,u,s],[0,o,a,o+a,r,o+a+r,a+r,o+a+r]]}return 2===n?[[0,s=e,s,s,s+(o=Math.floor(i/2)),s,s,s],[0,o,o,o,r=i-o,o+r,o+r,o+r]]:[[0,e,e,e,e,e,e,e],[0,i,i,i,i,i,i,i]]},e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight},e}(),qv=function(e){function t(t){var n=e.call(this,t)||this;return n._domNode=xg(document.createElement("canvas")),n._domNode.setClassName("decorationsOverviewRuler"),n._domNode.setPosition("absolute"),n._domNode.setLayerHinting(!0),n._domNode.setAttribute("aria-hidden","true"),n._settings=null,n._updateSettings(!1),n._tokensColorTrackerListener=Pl.onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)}),n._cursorPositions=[],n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},t.prototype._updateSettings=function(e){var t=new Jv(this._context.configuration,this._context.theme);return!(null!==this._settings&&this._settings.equals(t)||(this._settings=t,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,e&&this._render(),0))},t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)},t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;tt&&(x=t-a),C=x-a,D=x+a),C>v+1||M!==m?(0!==b&&u.fillRect(l[m],y,c[m],v-y),m=M,y=C,v=D):D>v&&(v=D)}u.fillRect(l[m],y,c[m],v-y)}if(!this._settings.hideCursor){var L=2*this._settings.pixelRatio|0,N=L/2|0,I=this._settings.x[7],S=this._settings.w[7];for(u.fillStyle=this._settings.cursorColor,y=-100,v=-100,b=0,_=this._cursorPositions.length;b<_;b++){var x;(x=i.getVerticalOffsetForLineNumber(this._cursorPositions[b].lineNumber)*o|0)t&&(x=t-N);var D=(C=x-N)+L;C>v+1?(0!==b&&u.fillRect(I,y,S,v-y),y=C,v=D):D>v&&(v=D)}u.fillRect(I,y,S,v-y)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(u.beginPath(),u.lineWidth=1,u.strokeStyle=this._settings.borderColor,u.moveTo(0,0),u.lineTo(0,t),u.stroke(),u.moveTo(0,0),u.lineTo(e,0),u.stroke())},t}(Pg),$v=function(){function e(e,t,n){this.from=0|e,this.to=0|t,this.colorId=0|n}return e.compare=function(e,t){return e.colorId===t.colorId?e.from===t.from?e.to-t.to:e.from-t.from:e.colorId-t.colorId},e}(),eb=function(){function e(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.color=n,this._colorZone=null}return e.compare=function(e,t){return e.color===t.color?e.startLineNumber===t.startLineNumber?e.endLineNumber-t.endLineNumber:e.startLineNumber-t.startLineNumber:e.colorn&&(h=n-p);var g=u.color,f=this._color2Id[g];f||(f=++this._lastAssignedId,this._color2Id[g]=f,this._id2Color[f]=g);var m=new $v(h-p,h+p,f);u.setColorZone(m),r.push(m)}return this._colorZonesInvalid=!1,r.sort($v.compare),r},e}(),nb=function(e){function t(t,n){var i=e.call(this)||this;return i._context=t,i._domNode=xg(document.createElement("canvas")),i._domNode.setClassName(n),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._zoneManager=new tb(function(e){return i._context.viewLayout.getVerticalOffsetForLineNumber(e)}),i._zoneManager.setDOMWidth(0),i._zoneManager.setDOMHeight(0),i._zoneManager.setOuterHeight(i._context.viewLayout.getScrollHeight()),i._zoneManager.setLineHeight(i._context.configuration.editor.lineHeight),i._zoneManager.setPixelRatio(i._context.configuration.editor.pixelRatio),i._context.addEventHandler(i),i}return Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._zoneManager=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight),this._render()),e.pixelRatio&&(this._zoneManager.setPixelRatio(this._context.configuration.editor.pixelRatio),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},t.prototype.onFlushed=function(e){return this._render(),!0},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0},t.prototype.onZonesChanged=function(e){return this._render(),!0},t.prototype.getDomNode=function(){return this._domNode.domNode},t.prototype.setLayout=function(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);var t=!1;t=this._zoneManager.setDOMWidth(e.width)||t,(t=this._zoneManager.setDOMHeight(e.height)||t)&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},t.prototype.setZones=function(e){this._zoneManager.setZones(e),this._render()},t.prototype._render=function(){if(0===this._zoneManager.getOuterHeight())return!1;var e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),n=this._zoneManager.resolveColorZones(),i=this._zoneManager.getId2Color(),o=this._domNode.domNode.getContext("2d");return o.clearRect(0,0,e,t),n.length>0&&this._renderOneLane(o,n,i,e),!0},t.prototype._renderOneLane=function(e,t,n,i){for(var o=0,r=0,s=0,a=0,u=t.length;a=d?s=Math.max(s,h):(e.fillRect(0,r,i,s-r),r=d,s=h)}e.fillRect(0,r,i,s-r)},t}(Dg),ib=(n("5RGO"),function(e){function t(t){var n=e.call(this,t)||this;return n.domNode=xg(document.createElement("div")),n.domNode.setAttribute("role","presentation"),n.domNode.setAttribute("aria-hidden","true"),n.domNode.setClassName("view-rulers"),n._renderedRulers=[],n._rulers=n._context.configuration.editor.viewInfo.rulers,n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return!!(e.viewInfo||e.layoutInfo||e.fontInfo)&&(this._rulers=this._context.configuration.editor.viewInfo.rulers,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,!0)},t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged},t.prototype.prepareRender=function(e){},t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length,t=this._rulers.length;if(e!==t)if(e0;)(r=xg(document.createElement("div"))).setClassName("view-ruler"),r.setWidth(n),this.domNode.appendChild(r),this._renderedRulers.push(r),i--;else for(var o=e-t;o>0;){var r=this._renderedRulers.pop();this.domNode.removeChild(r),o--}},t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t0;return this._shouldShow!==e&&(this._shouldShow=e,!0)},t.prototype.getDomNode=function(){return this._domNode},t.prototype._updateWidth=function(){var e,t=this._context.configuration.editor.layoutInfo;return this._width!==(e=0===t.renderMinimap||t.minimapWidth>0&&0===t.minimapLeft?t.width:t.width-t.minimapWidth-t.verticalScrollbarWidth)&&(this._width=e,!0)},t.prototype.onConfigurationChanged=function(e){var t=!1;return e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows),e.layoutInfo&&(t=this._updateWidth()),this._updateShouldShow()||t},t.prototype.onScrollChanged=function(e){return this._scrollTop=e.scrollTop,this._updateShouldShow()},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},t}(Pg);wm(function(e,t){var n=e.getColor(Nf);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")}),n("MfYP");var rb=function(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null},sb=function(e,t){this.lineNumber=e,this.ranges=t};function ab(e){return new rb(e)}function ub(e){return new sb(e.lineNumber,e.ranges.map(ab))}var lb=xs,cb=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 Object(a.c)(t,e),t.prototype.dispose=function(){this._context.removeEventHandler(this),this._context=null,this._selections=null,this._renderResult=null,e.prototype.dispose.call(this)},t.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.viewInfo&&(this._roundedSelection=this._context.configuration.editor.viewInfo.roundedSelection),!0},t.prototype.onCursorStateChanged=function(e){return this._selections=e.selections.slice(0),!0},t.prototype.onDecorationsChanged=function(e){return!0},t.prototype.onFlushed=function(e){return!0},t.prototype.onLinesChanged=function(e){return!0},t.prototype.onLinesDeleted=function(e){return!0},t.prototype.onLinesInserted=function(e){return!0},t.prototype.onScrollChanged=function(e){return e.scrollTopChanged},t.prototype.onZonesChanged=function(e){return!0},t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t1)return!0;return!1},t.prototype._enrichVisibleRangesWithStyle=function(e,t){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)}r=0;for(var a=e.length;r0){var p=e[r-1].ranges[0].left,g=e[r-1].ranges[0].left+e[r-1].ranges[0].width;l===p?d.top=2:l>p&&(d.top=1),c===g?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,l)}}this._previousFrameVisibleRangesWithStyle=r,this._renderResult=t},t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;return n<0||n>=this._renderResult.length?"":this._renderResult[n]},t.SELECTION_CLASS_NAME="selected-text",t.SELECTION_TOP_LEFT="top-left-radius",t.SELECTION_BOTTOM_LEFT="bottom-left-radius",t.SELECTION_TOP_RIGHT="top-right-radius",t.SELECTION_BOTTOM_RIGHT="bottom-right-radius",t.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",t.ROUNDED_PIECE_WIDTH=10,t}(qm);wm(function(e,t){var n=e.getColor(Af);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var i=e.getColor(Pf);i&&t.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var o=e.getColor(Of);o&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+o+"; }")}),n("8EM9");var db=function(e,t,n,i,o){this.top=e,this.left=t,this.width=n,this.height=i,this.textContent=o},hb=function(){function e(e){this._context=e,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineHeight=this._context.configuration.editor.lineHeight,this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=xg(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),Ig.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._domNode.setDisplay("none"),this.updatePosition(new rn(1,1)),this._lastRenderedContent="",this._renderData=null}return e.prototype.getDomNode=function(){return this._domNode},e.prototype.getPosition=function(){return this._position},e.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},e.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},e.prototype.onConfigurationChanged=function(e){return e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight),e.fontInfo&&(Ig.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo),this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth),e.viewInfo&&(this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle,this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)),!0},e.prototype.onCursorPositionChanged=function(e){return this.updatePosition(e),!0},e.prototype._prepareRender=function(e){var t="";if(this._cursorStyle===ud.Line||this._cursorStyle===ud.LineThin){var n,i=e.visibleRangeForPosition(this._position);if(!i)return null;this._cursorStyle===ud.Line?(n=Ka(this._lineCursorWidth>0?this._lineCursorWidth:2))>2&&(t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)):n=Ka(1);var o=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new db(o,i.left,n,this._lineHeight,t)}var r=e.linesVisibleRangesForRange(new sn(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!r||0===r.length||0===r[0].ranges.length)return null;var s=r[0].ranges[0],a=s.width<1?this._typicalHalfwidthCharacterWidth:s.width;this._cursorStyle===ud.Block&&(t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1));var u=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta,l=this._lineHeight;return this._cursorStyle!==ud.Underline&&this._cursorStyle!==ud.UnderlineThin||(u+=this._lineHeight-2,l=2),new db(u,s.left,a,l,t)},e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)},e.prototype.render=function(e){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},e.prototype.updatePosition=function(e){this._position=e},e}(),pb=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 hb(n._context),n._secondaryCursors=[],n._renderData=[],n._domNode=xg(document.createElement("div")),n._domNode.setAttribute("role","presentation"),n._domNode.setAttribute("aria-hidden","true"),n._updateDomClassName(),n._domNode.appendChild(n._primaryCursor.getDomNode()),n._startCursorBlinkAnimation=new vs,n._cursorFlatBlinkInterval=new bs,n._blinkingEnabled=!1,n._editorHasFocus=!1,n._updateBlinking(),n}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},t.prototype.getDomNode=function(){return this._domNode},t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly),e.viewInfo&&(this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking,this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle),this._primaryCursor.onConfigurationChanged(e),this._updateBlinking(),e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;tt.length){var r=this._secondaryCursors.length-t.length;for(i=0;i140)n._setDesiredScrollPositionNow(r.getScrollPosition());else{var a=n._sliderMousePosition(e);n._setDesiredScrollPositionNow(r.getDesiredScrollPositionFromDelta(a-i))}},function(){n.slider.toggleClassName("active",!1),n._host.onDragEnd(),t()}),this._host.onDragStart()},t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e),this._scrollable.setScrollPositionNow(t)},t}(bb),Lb=function(){function e(e,t,n){this._scrollbarSize=Math.round(t),this._oppositeScrollbarSize=Math.round(n),this._arrowSize=Math.round(e),this._visibleSize=0,this._scrollSize=0,this._scrollPosition=0,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);return t.setVisibleSize(this._visibleSize),t.setScrollSize(this._scrollSize),t.setScrollPosition(this._scrollPosition),t},e.prototype.setVisibleSize=function(e){var t=Math.round(e);return this._visibleSize!==t&&(this._visibleSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollSize=function(e){var t=Math.round(e);return this._scrollSize!==t&&(this._scrollSize=t,this._refreshComputedValues(),!0)},e.prototype.setScrollPosition=function(e){var t=Math.round(e);return this._scrollPosition!==t&&(this._scrollPosition=t,this._refreshComputedValues(),!0)},e._computeValues=function(e,t,n,i,o){var r=Math.max(0,n-e),s=Math.max(0,r-2*t),a=i>0&&i>n;if(!a)return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(s),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*s/i))),l=(s-u)/(i-n),c=o*l;return{computedAvailableSize:Math.round(r),computedIsNeeded:a,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}},e.prototype._refreshComputedValues=function(){var t=e._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=t.computedAvailableSize,this._computedIsNeeded=t.computedIsNeeded,this._computedSliderSize=t.computedSliderSize,this._computedSliderRatio=t.computedSliderRatio,this._computedSliderPosition=t.computedSliderPosition},e.prototype.getArrowSize=function(){return this._arrowSize},e.prototype.getScrollPosition=function(){return this._scrollPosition},e.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},e.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},e.prototype.isNeeded=function(){return this._computedIsNeeded},e.prototype.getSliderSize=function(){return this._computedSliderSize},e.prototype.getSliderPosition=function(){return this._computedSliderPosition},e.prototype.getDesiredScrollPositionFromOffset=function(e){return this._computedIsNeeded?Math.round((e-this._arrowSize-this._computedSliderSize/2)/this._computedSliderRatio):0},e.prototype.getDesiredScrollPositionFromDelta=function(e){return this._computedIsNeeded?Math.round((this._computedSliderPosition+e)/this._computedSliderRatio):0},e}(),Nb=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Lb(n.horizontalHasArrows?n.arrowSize:0,n.horizontal===Uc.Hidden?0:n.horizontalScrollbarSize,n.vertical===Uc.Hidden?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var r=(n.arrowSize-_b)/2,s=(n.horizontalScrollbarSize-_b)/2;o._createArrow({className:"left-arrow",top:s,left:r,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,1,0))}}),o._createArrow({className:"right-arrow",top:s,left:void 0,bottom:void 0,right:r,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,-1,0))}})}return o._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,null,n.horizontalSliderSize),o}return Object(a.c)(t,e),t.prototype._updateSlider=function(e,t){this.slider.setWidth(e),this.slider.setLeft(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e),this.domNode.setHeight(t),this.domNode.setLeft(0),this.domNode.setBottom(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(e.width)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return e},t.prototype._sliderMousePosition=function(e){return e.posx},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy},t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t},t}(Cb),Ib=function(e){function t(t,n,i){var o=e.call(this,{lazyRender:n.lazyRender,host:i,scrollbarState:new Lb(n.verticalHasArrows?n.arrowSize:0,n.vertical===Uc.Hidden?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var r=(n.arrowSize-_b)/2,s=(n.verticalScrollbarSize-_b)/2;o._createArrow({className:"up-arrow",top:r,left:s,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,0,1))}}),o._createArrow({className:"down-arrow",top:void 0,left:s,bottom:r,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return o._host.onMouseWheel(new Us(null,0,-1))}})}return o._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,null),o}return Object(a.c)(t,e),t.prototype._updateSlider=function(e,t){this.slider.setHeight(e),this.slider.setTop(t)},t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t),this.domNode.setHeight(e),this.domNode.setRight(0),this.domNode.setTop(0)},t.prototype.onDidScroll=function(e){return this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(e.height)||this._shouldRender,this._shouldRender},t.prototype._mouseDownRelativePosition=function(e,t){return t},t.prototype._sliderMousePosition=function(e){return e.posy},t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx},t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t},t}(Cb),Sb=function(){function e(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;for(var e=1,t=0,n=1,i=this._rear;;){var o=i===this._front?e:Math.pow(2,-n);if(e-=o,t+=this._memory[i].score*o,i===this._front)break;i=(this._capacity+i-1)%this._capacity,n++}return t<=.5},e.prototype.accept=function(e,t,n){var i=new function(e,t,n){this.timestamp=e,this.deltaX=t,this.deltaY=n,this.score=0}(e,t,n);i.score=this._computeScore(i),-1===this._front&&-1===this._rear?(this._memory[0]=i,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=i)},e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;return(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25),Math.min(Math.max(t,0),1)},e.INSTANCE=new e,e}(),xb=function(e){function t(t,n,i){var o=e.call(this)||this;o._onScroll=o._register(new zt),o.onScroll=o._onScroll.event,t.style.overflow="hidden",o._options=kb(n),o._scrollable=i,o._register(o._scrollable.onScroll(function(e){o._onDidScroll(e),o._onScroll.fire(e)}));var r={onMouseWheel:function(e){return o._onMouseWheel(e)},onDragStart:function(){return o._onDragStart()},onDragEnd:function(){return o._onDragEnd()}};return o._verticalScrollbar=o._register(new Ib(o._scrollable,o._options,r)),o._horizontalScrollbar=o._register(new Nb(o._scrollable,o._options,r)),o._domNode=document.createElement("div"),o._domNode.className="monaco-scrollable-element "+o._options.className,o._domNode.setAttribute("role","presentation"),o._domNode.style.position="relative",o._domNode.style.overflow="hidden",o._domNode.appendChild(t),o._domNode.appendChild(o._horizontalScrollbar.domNode.domNode),o._domNode.appendChild(o._verticalScrollbar.domNode.domNode),o._options.useShadows&&(o._leftShadowDomNode=xg(document.createElement("div")),o._leftShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._leftShadowDomNode.domNode),o._topShadowDomNode=xg(document.createElement("div")),o._topShadowDomNode.setClassName("shadow"),o._domNode.appendChild(o._topShadowDomNode.domNode),o._topLeftShadowDomNode=xg(document.createElement("div")),o._topLeftShadowDomNode.setClassName("shadow top-left-corner"),o._domNode.appendChild(o._topLeftShadowDomNode.domNode)),o._listenOnDomNode=o._options.listenOnDomNode||o._domNode,o._mouseWheelToDispose=[],o._setListeningToMouseWheel(o._options.handleMouseWheel),o.onmouseover(o._listenOnDomNode,function(e){return o._onMouseOver(e)}),o.onnonbubblingmouseout(o._listenOnDomNode,function(e){return o._onMouseOut(e)}),o._hideTimeout=o._register(new vs),o._isDragging=!1,o._mouseIsOver=!1,o._shouldRender=!0,o}return Object(a.c)(t,e),t.prototype.dispose=function(){this._mouseWheelToDispose=_t(this._mouseWheelToDispose),e.prototype.dispose.call(this)},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)},t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)},t.prototype.updateClassName=function(e){this._options.className=e,mn.d&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},t.prototype.updateOptions=function(e){var t=kb(e);this._options.handleMouseWheel=t.handleMouseWheel,this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},t.prototype._setListeningToMouseWheel=function(e){var t=this;if(this._mouseWheelToDispose.length>0!==e&&(this._mouseWheelToDispose=_t(this._mouseWheelToDispose),e)){var n=function(e){var n=new Us(e);t._onMouseWheel(n)};this._mouseWheelToDispose.push(oa(this._listenOnDomNode,"mousewheel",n)),this._mouseWheelToDispose.push(oa(this._listenOnDomNode,"DOMMouseScroll",n))}},t.prototype._onMouseWheel=function(e){var t,n=Sb.INSTANCE;if(n.accept(Date.now(),e.deltaX,e.deltaY),e.deltaY||e.deltaX){var i=e.deltaY*this._options.mouseWheelScrollSensitivity,o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(i=(t=[o,i])[0],o=t[1]),!this._options.scrollYToX&&(mn.d||!e.browserEvent||!e.browserEvent.shiftKey)||o||(o=i,i=0);var r=this._scrollable.getFutureScrollPosition(),s={};i&&this._verticalScrollbar.writeScrollPosition(s,r.scrollTop-50*i),o&&this._horizontalScrollbar.writeScrollPosition(s,r.scrollLeft-50*o),s=this._scrollable.validateScrollPosition(s),(r.scrollLeft!==s.scrollLeft||r.scrollTop!==s.scrollTop)&&(this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(s):this._scrollable.setScrollPositionNow(s),this._shouldRender=!0)}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(e.preventDefault(),e.stopPropagation())},t.prototype._onDidScroll=function(e){this._shouldRender=this._horizontalScrollbar.onDidScroll(e)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(e)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._reveal(),this._options.lazyRender||this._render()},t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},t.prototype._render=function(){if(this._shouldRender&&(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows)){var e=this._scrollable.getCurrentScrollPosition(),t=e.scrollTop>0,n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":"")),this._topShadowDomNode.setClassName("shadow"+(t?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}},t.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},t.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},t.prototype._onMouseOut=function(e){this._mouseIsOver=!1,this._hide()},t.prototype._onMouseOver=function(e){this._mouseIsOver=!0,this._reveal()},t.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},t.prototype._hide=function(){this._mouseIsOver||this._isDragging||(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)},t}(bb),Db=function(e){function t(t,n){var i;(n=n||{}).mouseWheelSmoothScroll=!1;var o=new ed(0,function(e){return ua(e)});return(i=e.call(this,t,n,o)||this)._register(o),i}return Object(a.c)(t,e),t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)},t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},t}(xb),Tb=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}return Object(a.c)(t,e),t}(xb),Eb=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 Object(a.c)(t,e),t.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},t}(Db);function kb(e){var t={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,mouseWheelSmoothScroll:"undefined"==typeof e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:"undefined"!=typeof e.arrowSize?e.arrowSize:11,listenOnDomNode:"undefined"!=typeof e.listenOnDomNode?e.listenOnDomNode:null,horizontal:"undefined"!=typeof e.horizontal?e.horizontal:Uc.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:Uc.Auto,verticalScrollbarSize:"undefined"!=typeof e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:"undefined"!=typeof e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:"undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:0};return t.horizontalSliderSize="undefined"!=typeof e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize,t.verticalSliderSize="undefined"!=typeof e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize,mn.d&&(t.className+=" mac"),t}var jb=function(e){function t(t,n,i,o){var r=e.call(this,t)||this,s=r._context.configuration.editor.viewInfo.scrollbar,a={listenOnDomNode:i.domNode,className:"editor-scrollable "+_m(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity};r.scrollbar=r._register(new Tb(n.domNode,a,r._context.viewLayout.scrollable)),Rg.write(r.scrollbar.getDomNode(),5),r.scrollbarDomNode=xg(r.scrollbar.getDomNode()),r.scrollbarDomNode.setPosition("absolute"),r._setLayout();var u=function(e,t,n){var i={};if(t){var o=e.scrollTop;o&&(i.scrollTop=r._context.viewLayout.getCurrentScrollTop()+o,e.scrollTop=0)}if(n){var s=e.scrollLeft;s&&(i.scrollLeft=r._context.viewLayout.getCurrentScrollLeft()+s,e.scrollLeft=0)}r._context.viewLayout.setScrollPositionNow(i)};return r._register(oa(i.domNode,"scroll",function(e){return u(i.domNode,!0,!0)})),r._register(oa(n.domNode,"scroll",function(e){return u(n.domNode,!0,!1)})),r._register(oa(o.domNode,"scroll",function(e){return u(o.domNode,!0,!1)})),r._register(oa(r.scrollbarDomNode.domNode,"scroll",function(e){return u(r.scrollbarDomNode.domNode,!0,!1)})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft),this.scrollbarDomNode.setWidth("right"===this._context.configuration.editor.viewInfo.minimap.side?e.contentWidth+e.minimapWidth:e.contentWidth),this.scrollbarDomNode.setHeight(e.contentHeight)},t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},t.prototype.getDomNode=function(){return this.scrollbarDomNode},t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)},t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor;this.scrollbar.updateOptions({handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity})}return e.layoutInfo&&this._setLayout(),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onThemeChanged=function(e){return this.scrollbar.updateClassName("editor-scrollable "+_m(this._context.theme.type)),!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){this.scrollbar.renderNow()},t}(Pg);function Ab(e){for(var t=new Uint8ClampedArray(e.length),n=0,i=e.length;n=s)return new e(a,u,m,y,c,v=1,s);var v=Math.max(1,Math.floor(n-y*h/p));return l&&l.scrollHeight===u&&(l.scrollTop>a&&(v=Math.min(v,l.startLineNumber)),l.scrollTopHb?{scrollTop:o.scrollTop}:{scrollTop:o.getDesiredScrollTopFromDelta(e.posy-t)})},function(){n._slider.toggleClassName("active",!1)})}}),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),e.prototype.dispose.call(this)},t.prototype._getMinimapDomNodeClassName=function(){return"always"===this._options.showSlider?"minimap slider-always":"minimap slider-mouseover"},t.prototype.getDomNode=function(){return this._domNode},t.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},t.prototype._getBuffer=function(){return this._buffers||(this._buffers=new Ub(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers.getBuffer()},t.prototype._onOptionsMaybeChanged=function(){var e=new Bb(this._context.configuration);return!this._options.equals(e)&&(this._options=e,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()},t.prototype.onFlushed=function(e){return this._lastRenderData=null,!0},t.prototype.onLinesChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onLinesChanged(e)},t.prototype.onLinesDeleted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(e),!0},t.prototype.onLinesInserted=function(e){return this._lastRenderData&&this._lastRenderData.onLinesInserted(e),!0},t.prototype.onScrollChanged=function(e){return!0},t.prototype.onTokensChanged=function(e){return!!this._lastRenderData&&this._lastRenderData.onTokensChanged(e)},t.prototype.onTokensColorsChanged=function(e){return this._lastRenderData=null,this._buffers=null,!0},t.prototype.onZonesChanged=function(e){return this._lastRenderData=null,!0},t.prototype.prepareRender=function(e){},t.prototype.render=function(e){if(0===this._options.renderMinimap)return this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),void this._sliderHorizontal.setHeight(0);this._shadow.setClassName(e.scrollLeft+e.viewportWidth>=e.scrollWidth?"minimap-shadow-hidden":"minimap-shadow-visible");var t=Vb.create(this._options,e.visibleRange.startLineNumber,e.visibleRange.endLineNumber,e.viewportHeight,e.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),e.scrollTop,e.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(t.sliderTop),this._slider.setHeight(t.sliderHeight);var n=Math.min(this._options.minimapWidth,Math.round(e.scrollLeft/this._options.typicalHalfwidthCharacterWidth*Fb(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(n),this._sliderHorizontal.setWidth(this._options.minimapWidth-n),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(t.sliderHeight),this._lastRenderData=this.renderLines(t)},t.prototype.renderLines=function(e){var n=this._options.renderMinimap,i=e.startLineNumber,o=e.endLineNumber,r=Wb(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var s=this._lastRenderData._get();return new Zb(e,s.imageData,s.lines)}for(var a=this._getBuffer(),u=t._renderUntouchedLines(a,i,o,r,this._lastRenderData),l=u[0],c=u[1],d=u[2],h=this._context.model.getMinimapLinesRenderingData(i,o,d),p=h.tabSize,g=this._tokensColorTracker.getColor(2),f=this._tokensColorTracker.backgroundIsLight(),m=0,y=[],v=0,b=o-i+1;v=0&&Nh)return;var M=l.charCodeAt(g);if(9===M){var w=a-(g+f)%a;f+=w-1,p+=w*d}else 32===M?p+=d:(2===i?r.x2RenderChar(e,p,s,M,_,t,n):1===i?r.x1RenderChar(e,p,s,M,_,t,n):4===i?r.x2BlockRenderChar(e,p,s,_,t,n):r.x1BlockRenderChar(e,p,s,_,t,n),p+=d)}},t}(Pg);wm(function(e,t){var n=e.getColor(If);if(n){var i=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var o=e.getColor(Sf);if(o){var r=o.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+r+"; }")}var s=e.getColor(xf);if(s){var a=s.transparent(.5);t.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+a+"; }")}var u=e.getColor(Nf);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")});var Qb=function(e){function t(t,n,i,o,r,s){var a=e.call(this)||this;a._cursor=r,a._renderAnimationFrame=null,a.outgoingEvents=new mb(o);var u=new Sv(n,o,s,a.outgoingEvents,t);return a.eventDispatcher=new xv(function(e){return a._renderOnce(e)}),a.eventDispatcher.addEventHandler(a),a._context=new fb(n,i.getTheme(),o,a.eventDispatcher),a._register(i.onThemeChange(function(e){a._context.theme=e,a.eventDispatcher.emit(new Uh),a.render(!0,!1)})),a.viewParts=[],a._textAreaHandler=new oy(a._context,u,a.createTextAreaHandlerHelper()),a.viewParts.push(a._textAreaHandler),a.createViewParts(),a._setLayout(),a.pointerHandler=new uv(a._context,u,a.createPointerHandlerHelper()),a._register(o.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a._register(a._cursor.addEventListener(function(e){a.eventDispatcher.emitMany(e)})),a}return Object(a.c)(t,e),t.prototype.createViewParts=function(){this.linesContent=xg(document.createElement("div")),this.linesContent.setClassName("lines-content monaco-editor-background"),this.linesContent.setPosition("absolute"),this.domNode=xg(document.createElement("div")),this.domNode.setClassName(this.getEditorClassName()),this.overflowGuardContainer=xg(document.createElement("div")),Rg.write(this.overflowGuardContainer,3),this.overflowGuardContainer.setClassName("overflow-guard"),this._scrollbar=new jb(this._context,this.linesContent,this.domNode,this.overflowGuardContainer),this.viewParts.push(this._scrollbar),this.viewLines=new Gv(this._context,this.linesContent),this.viewZones=new gb(this._context),this.viewParts.push(this.viewZones);var e=new qv(this._context);this.viewParts.push(e);var t=new ob(this._context);this.viewParts.push(t);var n=new Av(this._context);this.viewParts.push(n),n.addDynamicOverlay(new Wv(this._context)),n.addDynamicOverlay(new cb(this._context)),n.addDynamicOverlay(new Hv(this._context)),n.addDynamicOverlay(new Zv(this._context));var i=new Ov(this._context);this.viewParts.push(i),i.addDynamicOverlay(new Fv(this._context)),i.addDynamicOverlay(new Yv(this._context)),i.addDynamicOverlay(new Xv(this._context)),i.addDynamicOverlay(new Qv(this._context)),i.addDynamicOverlay(new $m(this._context));var o=new zg(this._context);o.getDomNode().appendChild(this.viewZones.marginDomNode),o.getDomNode().appendChild(i.getDomNode()),this.viewParts.push(o),this.contentWidgets=new Rv(this._context,this.domNode),this.viewParts.push(this.contentWidgets),this.viewCursors=new pb(this._context),this.viewParts.push(this.viewCursors),this.overlayWidgets=new Kv(this._context),this.viewParts.push(this.overlayWidgets);var r=new ib(this._context);this.viewParts.push(r);var s=new Gb(this._context);if(this.viewParts.push(s),e){var a=this._scrollbar.getOverviewRulerLayoutInfo();a.parent.insertBefore(e.getDomNode(),a.insertBefore)}this.linesContent.appendChild(n.getDomNode()),this.linesContent.appendChild(r.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(o.getDomNode()),this.overflowGuardContainer.appendChild(this._scrollbar.getDomNode()),this.overflowGuardContainer.appendChild(t.getDomNode()),this.overflowGuardContainer.appendChild(this._textAreaHandler.textArea),this.overflowGuardContainer.appendChild(this._textAreaHandler.textAreaCover),this.overflowGuardContainer.appendChild(this.overlayWidgets.getDomNode()),this.overflowGuardContainer.appendChild(s.getDomNode()),this.domNode.appendChild(this.overflowGuardContainer),this.domNode.appendChild(this.contentWidgets.overflowingContentWidgetsDomNode)},t.prototype._flushAccumulatedAndRenderNow=function(){this._renderNow()},t.prototype.createPointerHandlerHelper=function(){var e=this;return{viewDomNode:this.domNode.domNode,linesContentDomNode:this.linesContent.domNode,focusTextArea:function(){e.focus()},getLastViewCursorsRenderData:function(){return e.viewCursors.getLastRenderData()||[]},shouldSuppressMouseDownOnViewZone:function(t){return e.viewZones.shouldSuppressMouseDownOnViewZone(t)},shouldSuppressMouseDownOnWidget:function(t){return e.contentWidgets.shouldSuppressMouseDownOnWidget(t)},getPositionFromDOMInfo:function(t,n){return e._flushAccumulatedAndRenderNow(),e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){e._flushAccumulatedAndRenderNow();var i=e.viewLines.visibleRangesForRange2(new sn(t,n,t,n));return i?i[0]:null},getLineWidth:function(t){return e._flushAccumulatedAndRenderNow(),e.viewLines.getLineWidth(t)}}},t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){e._flushAccumulatedAndRenderNow();var i=e.viewLines.visibleRangesForRange2(new sn(t,n,t,n));return i?i[0]:null}}},t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.domNode.setWidth(e.width),this.domNode.setHeight(e.height),this.overflowGuardContainer.setWidth(e.width),this.overflowGuardContainer.setHeight(e.height),this.linesContent.setWidth(1e6),this.linesContent.setHeight(1e6)},t.prototype.getEditorClassName=function(){var e=this._textAreaHandler.isFocused()?" focused":"";return this._context.configuration.editor.editorClassName+" "+_m(this._context.theme.type)+e},t.prototype.onConfigurationChanged=function(e){return e.editorClassName&&this.domNode.setClassName(this.getEditorClassName()),e.layoutInfo&&this._setLayout(),!1},t.prototype.onFocusChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),this._context.model.setHasFocus(e.isFocused),e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost(),!1},t.prototype.onScrollChanged=function(e){return this.outgoingEvents.emitScrollChanged(e),!1},t.prototype.onThemeChanged=function(e){return this.domNode.setClassName(this.getEditorClassName()),!1},t.prototype.dispose=function(){null!==this._renderAnimationFrame&&(this._renderAnimationFrame.dispose(),this._renderAnimationFrame=null),this.eventDispatcher.removeEventHandler(this),this.outgoingEvents.dispose(),this.pointerHandler.dispose(),this.viewLines.dispose();for(var t=0,n=this.viewParts.length;t");function t_(e){return $b+encodeURIComponent(e.toString())+e_}var n_=encodeURIComponent('');wm(function(e,t){var n=e.getColor(Hm);n&&t.addRule(".monaco-editor .squiggly-d-error { border-bottom: 4px double "+n+"; }");var i=e.getColor(Fm);i&&t.addRule('.monaco-editor .squiggly-d-error { background: url("data:image/svg+xml;utf8,'+t_(i)+'") repeat-x bottom left; }');var o=e.getColor(Vm);o&&t.addRule(".monaco-editor .squiggly-c-warning { border-bottom: 4px double "+o+"; }");var r=e.getColor(Bm);r&&t.addRule('.monaco-editor .squiggly-c-warning { background: url("data:image/svg+xml;utf8,'+t_(r)+'") repeat-x bottom left; }');var s=e.getColor(Zm);s&&t.addRule(".monaco-editor .squiggly-b-info { border-bottom: 4px double "+s+"; }");var a=e.getColor(Ym);a&&t.addRule('.monaco-editor .squiggly-b-info { background: url("data:image/svg+xml;utf8,'+t_(a)+'") repeat-x bottom left; }');var u=e.getColor(Gm);u&&t.addRule(".monaco-editor .squiggly-a-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Um);l&&t.addRule('.monaco-editor .squiggly-a-hint { background: url("data:image/svg+xml;utf8,'+(n_+encodeURIComponent(l.toString())+i_)+'") no-repeat bottom left; }')});var o_=function(e){function t(t,n,i,o,r,s,a){return e.call(this,t,n,!1,i,o,r,s,a)||this}return Object(a.c)(t,e),t.prototype._getContributions=function(){return zp.getEditorContributions()},t.prototype._getActions=function(){return zp.getEditorActions()},Object(a.b)([Object(a.d)(2,Un),Object(a.d)(3,Fo),Object(a.d)(4,di),Object(a.d)(5,Wo),Object(a.d)(6,mm)],t)}(Jb);n("Gu5N"),n("LCUL"),n("om4P");var r_={withElementById:function(e,t){Wr(ei(e),"Expected String as parameter");var n=document.getElementById(e);return n?new c_(n,t):null}},s_="_msDataKey",a_=function(e,t){this.width=e,this.height=t};function u_(e){return e[s_]||(e[s_]={}),e[s_]}function l_(e){return!!e[s_]}var c_=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 h_(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.build=function(t,n){Wr(this.offdom,"This builder was not created off-dom, so build() can not be called."),t?t instanceof e&&(t=t.getHTMLElement()):t=this.container,Wr(t,"Builder can only be build() with a container provided."),Wr(Ra(t),"The container must either be a HTMLElement or a Builder.");var i,o,r=t,s=r.childNodes;if(ni(n)&&n=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(" ")):(ri(e)||(this.currentElement.style.paddingTop=this.toPixel(e)),ri(t)||(this.currentElement.style.paddingRight=this.toPixel(t)),ri(n)||(this.currentElement.style.paddingBottom=this.toPixel(n)),ri(i)||(this.currentElement.style.paddingLeft=this.toPixel(i)),this)},e.prototype.margin=function(e,t,n,i){return ei(e)&&e.indexOf(" ")>=0?this.margin.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.marginTop=this.toPixel(e)),ri(t)||(this.currentElement.style.marginRight=this.toPixel(t)),ri(n)||(this.currentElement.style.marginBottom=this.toPixel(n)),ri(i)||(this.currentElement.style.marginLeft=this.toPixel(i)),this)},e.prototype.position=function(e,t,n,i,o){return ei(e)&&e.indexOf(" ")>=0?this.position.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.top=this.toPixel(e)),ri(t)||(this.currentElement.style.right=this.toPixel(t)),ri(n)||(this.currentElement.style.bottom=this.toPixel(n)),ri(i)||(this.currentElement.style.left=this.toPixel(i)),o||(o="absolute"),this.currentElement.style.position=o,this)},e.prototype.size=function(e,t){return ei(e)&&e.indexOf(" ")>=0?this.size.apply(this,e.split(" ")):(ri(e)||(this.currentElement.style.width=this.toPixel(e)),ri(t)||(this.currentElement.style.height=this.toPixel(t)),this)},e.prototype.display=function(e){return this.currentElement.style.display=e,this},e.prototype.show=function(){return this.hasClass("monaco-builder-hidden")&&this.removeClass("monaco-builder-hidden"),this.attr("aria-hidden","false"),this.cancelVisibilityPromise(),this},e.prototype.showDelayed=function(e){var t=this;this.cancelVisibilityPromise();var n=Nt.b.timeout(e);return this.setProperty("__$visibility",n),n.done(function(){t.removeProperty("__$visibility"),t.show()}),this},e.prototype.hide=function(){return this.hasClass("monaco-builder-hidden")||this.addClass("monaco-builder-hidden"),this.attr("aria-hidden","true"),this.cancelVisibilityPromise(),this},e.prototype.isHidden=function(){return this.hasClass("monaco-builder-hidden")||"none"===this.currentElement.style.display},e.prototype.cancelVisibilityPromise=function(){var e=this.getProperty("__$visibility");e&&(e.cancel(),this.removeProperty("__$visibility"))},e.prototype.toPixel=function(e){return-1===e.toString().indexOf("px")?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(Ii(e),t)},e.prototype.setProperty=function(e,t){return function(e,t,n){u_(e)[t]=n}(this.currentElement,e,t),this},e.prototype.getProperty=function(e,t){return function(e,t,n){if(l_(e)){var i=u_(e)[t];if(!oi(i))return i}return n}(this.currentElement,e,t)},e.prototype.removeProperty=function(e){return l_(this.currentElement)&&delete u_(this.currentElement)[e],this},e.prototype.child=function(e){return void 0===e&&(e=0),p_(this.currentElement.children.item(e))},e.prototype.unbindDescendants=function(e){if(e&&e.children)for(var t=0,n=e.children.length;t=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start),i=Math.min(e.end,t.end);return i-n<=0?{start:0,end:0}:{start:n,end:i}}function __(e){return e.end-e.start<=0}function M_(e,t){var n=[],i={start:e.start,end:Math.min(t.start,e.end)},o={start:Math.max(t.end,e.start),end:e.end};return __(i)||n.push(i),__(o)||n.push(o),n}function w_(e,t){for(var n=[],i=0,o=t;i=r.range.end)){if(e.end=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDblClick",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"dblclick"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseUp",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseup"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseDown",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mousedown"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOver",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseover"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseMove",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mousemove"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onMouseOut",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"mouseout"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"contextmenu"),function(t){return e.toMouseEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTouchStart",{get:function(){var e=this;return Vt(Bt(Gs(this.domNode,"touchstart"),function(t){return e.toTouchEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onTap",{get:function(){var e=this;return Vt(Bt(Gs(this.rowsContainer,ey.Tap),function(t){return e.toGestureEvent(t)}),function(e){return e.index>=0})},enumerable:!0,configurable:!0}),e.prototype.toMouseEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toTouchEvent=function(e){var t=this.getItemIndexFromEventTarget(e.target),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.toGestureEvent=function(e){var t=this.getItemIndexFromEventTarget(e.initialTarget),n=t<0?void 0:this.items[t];return{browserEvent:e,index:t,element:n&&n.element}},e.prototype.onScroll=function(e){this.render(e.scrollTop,e.height)},e.prototype.onTouchChange=function(e){e.preventDefault(),e.stopPropagation(),this.scrollTop-=e.translationY},e.prototype.onDragOver=function(e){this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=e.posy},e.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=La(this._domNode).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0!==e.dragAndDropMouseY){var n=e.dragAndDropMouseY-t,i=0,o=e.renderHeight-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))},e.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},e.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},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.getNextToLastElement=function(e){var t=e[e.length-1];if(!t)return null;var n=this.items[t.end];return n&&n.row?n.row.domNode:null},e.prototype.dispose=function(){this.items=null,this._domNode&&this._domNode.parentElement&&(this._domNode.parentNode.removeChild(this._domNode),this._domNode=null),this.disposables=_t(this.disposables)},Object(a.b)([ry],e.prototype,"onMouseClick",null),Object(a.b)([ry],e.prototype,"onMouseDblClick",null),Object(a.b)([ry],e.prototype,"onMouseUp",null),Object(a.b)([ry],e.prototype,"onMouseDown",null),Object(a.b)([ry],e.prototype,"onMouseOver",null),Object(a.b)([ry],e.prototype,"onMouseMove",null),Object(a.b)([ry],e.prototype,"onMouseOut",null),Object(a.b)([ry],e.prototype,"onContextMenu",null),Object(a.b)([ry],e.prototype,"onTouchStart",null),Object(a.b)([ry],e.prototype,"onTap",null),e}(),x_=function(){function e(e){this.spliceables=e}return e.prototype.splice=function(e,t,n){for(var i=0,o=this.spliceables;i=0){var o=this.renderedElements[i];this.trait.unrender(n),o.index=t}else this.renderedElements.push(o={index:t,templateData:n});this.trait.renderIndex(t,n)},e.prototype.splice=function(e,t,n){for(var i=[],o=0;o=e+t&&i.push({index:r.index+n-t,templateData:r.templateData})}this.renderedElements=i},e.prototype.renderIndexes=function(e){for(var t=0,n=this.renderedElements;t-1&&this.trait.renderIndex(o,r)}},e.prototype.disposeTemplate=function(e){var t=lr(this.renderedElements,function(t){return t.templateData===e});t<0||this.renderedElements.splice(t,1)},e}(),T_=function(){function e(e){this._trait=e,this._onChange=new zt,this.indexes=[]}return Object.defineProperty(e.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderer",{get:function(){return new D_(this)},enumerable:!0,configurable:!0}),e.prototype.splice=function(e,t,n){var i=n.length-t,o=e+t,r=this.indexes.filter(function(t){return t=o}).map(function(e){return e+i}));this.renderer.splice(e,t,n.length),this.set(r)},e.prototype.renderIndex=function(e,t){na(t,this._trait,this.contains(e))},e.prototype.unrender=function(e){ta(e,this._trait)},e.prototype.set=function(e){var t=this.indexes;this.indexes=e;var n=V_(t,e);return this.renderer.renderIndexes(n),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.dispose=function(){this.indexes=null,this._onChange=_t(this._onChange)},Object(a.b)([ry],e.prototype,"renderer",null),e}(),E_=function(e){function t(t){var n=e.call(this,"focused")||this;return n.getDomId=t,n}return Object(a.c)(t,e),t.prototype.renderIndex=function(t,n){e.prototype.renderIndex.call(this,t,n),n.setAttribute("role","treeitem"),n.setAttribute("id",this.getDomId(t))},t}(T_),k_=function(){function e(e,t,n){this.trait=e,this.view=t,this.getId=n}return e.prototype.splice=function(e,t,n){var i=this;if(!this.getId)return this.trait.splice(e,t,n.map(function(e){return!1}));var o=this.trait.get().map(function(e){return i.getId(i.view.element(e))}),r=n.map(function(e){return o.indexOf(i.getId(e))>-1});this.trait.splice(e,t,r)},e}();function j_(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName}var A_=function(){function e(e,t,n){this.list=e,this.view=t;var i=!(!1===n.multipleSelectionSupport);this.disposables=[],this.openController=n.openController||z_;var o=Zt(Gs(t.domNode,"keydown")).filter(function(e){return!j_(e.target)}).map(function(e){return new zs(e)});o.filter(function(e){return 3===e.keyCode}).on(this.onEnter,this,this.disposables),o.filter(function(e){return 16===e.keyCode}).on(this.onUpArrow,this,this.disposables),o.filter(function(e){return 18===e.keyCode}).on(this.onDownArrow,this,this.disposables),o.filter(function(e){return 11===e.keyCode}).on(this.onPageUpArrow,this,this.disposables),o.filter(function(e){return 12===e.keyCode}).on(this.onPageDownArrow,this,this.disposables),o.filter(function(e){return 9===e.keyCode}).on(this.onEscape,this,this.disposables),i&&o.filter(function(e){return(mn.d?e.metaKey:e.ctrlKey)&&31===e.keyCode}).on(this.onCtrlA,this,this.disposables)}return e.prototype.onEnter=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(this.list.getFocus()),this.openController.shouldOpen(e.browserEvent)&&this.list.open(this.list.getFocus(),e.browserEvent)},e.prototype.onUpArrow=function(e){e.preventDefault(),e.stopPropagation(),this.list.focusPrevious(),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.onCtrlA=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection(hr(this.list.length)),this.view.domNode.focus()},e.prototype.onEscape=function(e){e.preventDefault(),e.stopPropagation(),this.list.setSelection([]),this.view.domNode.focus()},e.prototype.dispose=function(){this.disposables=_t(this.disposables)},e}(),O_=function(){function e(e,t){this.list=e,this.view=t,this.disposables=[],this.disposables=[],Zt(Gs(t.domNode,"keydown")).filter(function(e){return!j_(e.target)}).map(function(e){return new zs(e)}).filter(function(e){return!(2!==e.keyCode||e.ctrlKey||e.metaKey||e.shiftKey||e.altKey)}).on(this.onTab,this,this.disposables)}return e.prototype.onTab=function(e){if(e.target===this.view.domNode){var t=this.list.getFocus();if(0!==t.length){var n=this.view.domElement(t[0]).querySelector("[tabIndex]");n&&n instanceof HTMLElement&&(e.preventDefault(),e.stopPropagation(),n.focus())}}},e.prototype.dispose=function(){this.disposables=_t(this.disposables)},e}();function P_(e){return e instanceof MouseEvent&&2===e.button}var R_={isSelectionSingleChangeEvent:function(e){return mn.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey},isSelectionRangeChangeEvent:function(e){return e.browserEvent.shiftKey}},z_={shouldOpen:function(e){return!(e instanceof MouseEvent&&P_(e))}},W_=function(){function e(e,t,n){void 0===n&&(n={}),this.list=e,this.view=t,this.options=n,this.didJustPressContextMenuKey=!1,this.disposables=[],this.multipleSelectionSupport=!(!1===n.multipleSelectionSupport),this.multipleSelectionSupport&&(this.multipleSelectionController=n.multipleSelectionController||R_),this.openController=n.openController||z_,t.onMouseDown(this.onMouseDown,this,this.disposables),t.onMouseClick(this.onPointer,this,this.disposables),t.onMouseDblClick(this.onDoubleClick,this,this.disposables),t.onTouchStart(this.onMouseDown,this,this.disposables),t.onTap(this.onPointer,this,this.disposables),sy.addTarget(t.domNode)}return Object.defineProperty(e.prototype,"onContextMenu",{get:function(){var e=this;return function(){for(var e=[],t=0;t0}).map(function(){var t=e.list.getFocus()[0];return{index:t,element:e.view.element(t),anchor:e.view.domElement(t)}}).filter(function(e){return!!e.anchor}).event,Zt(this.view.onContextMenu).filter(function(){return!e.didJustPressContextMenuKey}).map(function(e){var t=e.browserEvent;return{element:e.element,index:e.index,anchor:{x:t.clientX+1,y:t.clientY}}}).event)},enumerable:!0,configurable:!0}),e.prototype.isSelectionSingleChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionSingleChangeEvent(e):mn.d?e.browserEvent.metaKey:e.browserEvent.ctrlKey},e.prototype.isSelectionRangeChangeEvent=function(e){return this.multipleSelectionController?this.multipleSelectionController.isSelectionRangeChangeEvent(e):e.browserEvent.shiftKey},e.prototype.isSelectionChangeEvent=function(e){return this.isSelectionSingleChangeEvent(e)||this.isSelectionRangeChangeEvent(e)},e.prototype.onMouseDown=function(e){!1===this.options.focusOnMouseDown?(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation()):document.activeElement!==e.browserEvent.target&&this.view.domNode.focus();var t=this.list.getFocus()[0],n=this.list.getSelection();if(t=void 0===t?n[0]:t,this.multipleSelectionSupport&&this.isSelectionRangeChangeEvent(e))return this.changeSelection(e,t);var i=e.index;if(n.every(function(e){return e!==i})&&this.list.setFocus([i]),this.multipleSelectionSupport&&this.isSelectionChangeEvent(e))return this.changeSelection(e,t);this.options.selectOnMouseDown&&!P_(e.browserEvent)&&(this.list.setSelection([i]),this.openController.shouldOpen(e.browserEvent)&&this.list.open([i],e.browserEvent))},e.prototype.onPointer=function(e){if(!(this.multipleSelectionSupport&&this.isSelectionChangeEvent(e)||this.options.selectOnMouseDown)){var t=this.list.getFocus();this.list.setSelection(t),this.openController.shouldOpen(e.browserEvent)&&this.list.open(t,e.browserEvent)}},e.prototype.onDoubleClick=function(e){if(!this.multipleSelectionSupport||!this.isSelectionChangeEvent(e)){var t=this.list.getFocus();this.list.setSelection(t),this.list.pin(t)}},e.prototype.changeSelection=function(e,t){var n=e.index;if(this.isSelectionRangeChangeEvent(e)&&void 0!==t){var i=hr(Math.min(t,n),Math.max(t,n)+1),o=function(e,t){var n=e.indexOf(t);if(-1===n)return[];for(var i=[],o=n-1;o>=0&&e[o]===t-(n-o);)i.push(e[o--]);for(i.reverse(),o=n;o=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){i++,o++;continue}e[i]=e.length)n.push(t[o++]);else if(o>=t.length)n.push(e[i++]);else{if(e[i]===t[o]){n.push(e[i]),i++,o++;continue}n.push(e[i]=this.length)throw new Error("Invalid index "+i)}e=e.sort(Y_),this.selection.set(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.getSelectedElements=function(){var e=this;return this.getSelection().map(function(t){return e.view.element(t)})},e.prototype.setFocus=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}e=e.sort(Y_),this.focus.set(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),n=this.view.element(t=0===t?0:t-1);if(this.getFocusedElements()[0]!==n)this.setFocus([t]);else{var i=this.view.getScrollTop();this.view.setScrollTop(i+this.view.renderHeight-this.view.elementHeight(t)),this.view.getScrollTop()!==i&&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);if(this.getFocusedElements()[0]!==i)this.setFocus([e]);else{var o=n;this.view.setScrollTop(n-this.view.renderHeight),this.view.getScrollTop()!==o&&setTimeout(function(){return t.focusPreviousPage()},0)}},e.prototype.focusLast=function(){0!==this.length&&this.setFocus([this.length-1])},e.prototype.focusFirst=function(){0!==this.length&&this.setFocus([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){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var n,i=this.view.getScrollTop(),o=this.view.elementTop(e),r=this.view.elementHeight(e);if(ni(t))this.view.setScrollTop((r-this.view.renderHeight)*(n=1,Math.min(Math.max(t,0),n))+o);else{var s=o+r,a=i+this.view.renderHeight;o=a&&this.view.setScrollTop(s-this.view.renderHeight)}},e.prototype.getRelativeTop=function(e){if(e<0||e>=this.length)throw new Error("Invalid index "+e);var t=this.view.getScrollTop(),n=this.view.elementTop(e),i=this.view.elementHeight(e);return nt+this.view.renderHeight?null:Math.abs((t-n)/(i-this.view.renderHeight))},e.prototype.getElementDomId=function(e){return this.idPrefix+"_"+e},e.prototype.isDOMFocused=function(){return this.view.domNode===document.activeElement},e.prototype.getHTMLElement=function(){return this.view.domNode},e.prototype.open=function(e,t){for(var n=this,i=0,o=e;i=this.length)throw new Error("Invalid index "+r)}this._onOpen.fire({indexes:e,elements:e.map(function(e){return n.view.element(e)}),browserEvent:t})},e.prototype.pin=function(e){for(var t=0,n=e;t=this.length)throw new Error("Invalid index "+i)}this._onPin.fire(e)},e.prototype.style=function(e){this.styleController.style(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.getElementDomId(e[0])):this.view.domNode.removeAttribute("aria-activedescendant"),this.view.domNode.setAttribute("role","tree"),na(this.view.domNode,"element-focused",e.length>0)},e.prototype._onSelectionChange=function(){var e=this.selection.get();na(this.view.domNode,"selection-none",0===e.length),na(this.view.domNode,"selection-single",1===e.length),na(this.view.domNode,"selection-multiple",e.length>1)},e.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables=_t(this.disposables)},e.InstanceCount=0,Object(a.b)([ry],e.prototype,"onFocusChange",null),Object(a.b)([ry],e.prototype,"onSelectionChange",null),Object(a.b)([ry],e.prototype,"onPin",null),e}(),G_=(dp.fromHex("#3C3C3C"),dp.fromHex("#F0F0F0"),dp.fromHex("#3C3C3C"),function(){function e(e,t,n){var i=this;this.options=n,this._callOnDispose=[],this._context=e||this,this._action=t,t instanceof eu&&this._callOnDispose.push(t.onDidChange(function(e){i.builder&&i._handleActionChangeEvent(e)}))}return e.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(e.prototype,"callOnDispose",{get:function(){return this._callOnDispose},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actionRunner",{get:function(){return this._actionRunner},set:function(e){this._actionRunner=e},enumerable:!0,configurable:!0}),e.prototype.getAction=function(){return this._action},e.prototype.isEnabled=function(){return this._action.enabled},e.prototype.setActionContext=function(e){this._context=e},e.prototype.render=function(e){var t=this;this.builder=m_(e),sy.addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0),this.builder.on(ey.Tap,function(e){return t.onClick(e)}),this.builder.on(za.MOUSE_DOWN,function(e){n||Wa.stop(e,!0),t._action.enabled&&0===e.button&&t.builder.addClass("active")}),this.builder.on(za.CLICK,function(e){Wa.stop(e,!0),t.options&&t.options.isMenu?t.onClick(e):mn.h(function(){return t.onClick(e)})}),this.builder.on([za.MOUSE_UP,za.MOUSE_OUT],function(e){Wa.stop(e),t.builder.removeClass("active")})},e.prototype.onClick=function(e){var t;Wa.stop(e,!0),ri(this._context)?t=e:(t=this._context).event=e,this._actionRunner.run(this._action,t)},e.prototype.focus=function(){this.builder&&this.builder.domFocus()},e.prototype.blur=function(){this.builder&&this.builder.domBlur()},e.prototype._updateEnabled=function(){},e.prototype._updateLabel=function(){},e.prototype._updateTooltip=function(){},e.prototype._updateClass=function(){},e.prototype._updateChecked=function(){},e.prototype.dispose=function(){this.builder&&(this.builder.destroy(),this.builder=null),this._callOnDispose=_t(this._callOnDispose)},e}()),Q_=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 Object(a.c)(t,e),t.ID="vs.actions.separator",t}(eu),X_=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 Object(a.c)(t,e),t.prototype.render=function(t){e.prototype.render.call(this,t),this.$e=m_("a.action-label").appendTo(this.builder),this.$e.attr(this._action.id===Q_.ID?{role:"presentation"}:this.options.isMenu?{role:"menuitem"}:{role:"button"}),this.options.label&&this.options.keybinding&&m_("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=Yo({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",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"),Qa(this.$e.getHTMLElement()))},t.prototype._updateChecked=function(){this.getAction().checked?this.$e.addClass("checked"):this.$e.removeClass("checked")},t}(G_),K_=function(e){return e[e.HORIZONTAL=0]="HORIZONTAL",e[e.HORIZONTAL_REVERSE=1]="HORIZONTAL_REVERSE",e[e.VERTICAL=2]="VERTICAL",e[e.VERTICAL_REVERSE=3]="VERTICAL_REVERSE",e}({}),J_={orientation:K_.HORIZONTAL,context:null},q_=function(){function e(e,t){void 0===t&&(t=J_);var n,i,o=this;switch(this._onDidBlur=new zt,this._onDidCancel=new zt,this._onDidRun=new zt,this._onDidBeforeRun=new zt,this.options=t,this._context=t.context,this.toDispose=[],this._actionRunner=this.options.actionRunner,this._actionRunner||(this._actionRunner=new tu,this.toDispose.push(this._actionRunner)),this.toDispose.push(this._actionRunner.onDidRun(function(e){return o._onDidRun.fire(e)})),this.toDispose.push(this._actionRunner.onDidBeforeRun(function(e){return o._onDidBeforeRun.fire(e)})),this.items=[],this.focusedItem=void 0,this.domNode=document.createElement("div"),this.domNode.className="monaco-action-bar",!1!==t.animated&&ea(this.domNode,"animated"),this.options.orientation){case K_.HORIZONTAL:n=15,i=17;break;case K_.HORIZONTAL_REVERSE:n=17,i=15,this.domNode.className+=" reverse";break;case K_.VERTICAL:n=16,i=18,this.domNode.className+=" vertical";break;case K_.VERTICAL_REVERSE:n=18,i=16,this.domNode.className+=" vertical reverse"}m_(this.domNode).on(za.KEY_DOWN,function(e){var t=new zs(e),r=!0;t.equals(n)?o.focusPrevious():t.equals(i)?o.focusNext():t.equals(9)?o.cancel():t.equals(3)||t.equals(10)||(r=!1),r&&(t.preventDefault(),t.stopPropagation())}),m_(this.domNode).on(za.KEY_UP,function(e){var t=new zs(e);t.equals(3)||t.equals(10)?(o.doTrigger(t),t.preventDefault(),t.stopPropagation()):(t.equals(2)||t.equals(1026))&&o.updateFocusedItem()}),this.focusTracker=Ha(this.domNode),this.toDispose.push(this.focusTracker.onDidBlur(function(){document.activeElement!==o.domNode&&Ea(document.activeElement,o.domNode)||(o._onDidBlur.fire(),o.focusedItem=void 0)})),this.toDispose.push(this.focusTracker.onDidFocus(function(){return o.updateFocusedItem()})),this.actionsList=document.createElement("ul"),this.actionsList.className="actions-container",this.actionsList.setAttribute("role",this.options.isMenu?"menubar":"toolbar"),this.options.ariaLabel&&this.actionsList.setAttribute("aria-label",this.options.ariaLabel),this.domNode.appendChild(this.actionsList),(e instanceof c_?e.getHTMLElement():e).appendChild(this.domNode)}return Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this._onDidBlur.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this._onDidCancel.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidRun",{get:function(){return this._onDidRun.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBeforeRun",{get:function(){return this._onDidBeforeRun.event},enumerable:!0,configurable:!0}),e.prototype.setAriaLabel=function(e){e?this.actionsList.setAttribute("aria-label",e):this.actionsList.removeAttribute("aria-label")},e.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)})},e.prototype.getWidth=function(e){return e>=0&&e=0&&e=0&&e0){var v=e[r-1];m=0===v.originalEndLineNumber?v.originalStartLineNumber+1:v.originalEndLineNumber+1,y=0===v.modifiedEndLineNumber?v.modifiedStartLineNumber+1:v.modifiedEndLineNumber+1}var b=g-3+1,_=f-3+1;bC&&(S+=I=C-S,x+=I),x>L&&(S+=I=L-x,x+=I),h[p++]=new $_(M,S,w,x),i[o++]=new eM(h)}var D=i[0].entries,T=[],E=0;for(r=1,s=i.length;rh)&&(h=v),0!==b&&(0===p||bg)&&(g=_)}var M=document.createElement("div");M.className="diff-review-row";var w=document.createElement("div");w.className="diff-review-cell diff-review-summary",w.appendChild(document.createTextNode(u+1+"/"+this._diffs.length+": @@ -"+d+","+(h-d+1)+" +"+p+","+(g-p+1)+" @@")),M.setAttribute("data-line",String(p)),M.setAttribute("aria-label",Yo("header","Difference {0} of {1}: original {2}, {3} lines, modified {4}, {5} lines",u+1,this._diffs.length,d,h-d+1,p,g-p+1)),M.appendChild(w),M.setAttribute("role","listitem"),c.appendChild(M);var C=p;for(f=0,m=l.length;f0&&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;return{height:Math.max(0,Math.floor(e.contentHeight*r)),top:Math.floor(t*r)}},t.prototype._createDataSource=function(){var e=this;return{getWidth:function(){return e._width},getHeight:function(){return e._height-e._reviewHeight},getContainerDomNode:function(){return e._containerDomElement},relayoutEditors:function(){e._doLayout()},getOriginalEditor:function(){return e.originalEditor},getModifiedEditor:function(){return e.modifiedEditor}}},t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose(),this._strategy=e,e.applyColors(this._themeService.getTheme()),this._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.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0),i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-(t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0));return r<=i?n+Math.min(r,o):n+o-i+r},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.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0,o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0,r=e-(t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0));return r<=o?n+Math.min(r,i):n+i-o+r},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.ONE_OVERVIEW_WIDTH=15,t.ENTIRE_DIFF_OVERVIEW_WIDTH=30,t.UPDATE_DIFF_DECORATIONS_DELAY=200,t=Object(a.b)([Object(a.d)(2,Vo),Object(a.d)(3,Wo),Object(a.d)(4,Un),Object(a.d)(5,Fo),Object(a.d)(6,mm),Object(a.d)(7,lu)],t)}(Ct),uM=function(e){function t(t){var n=e.call(this)||this;return n._dataSource=t,n}return Object(a.c)(t,e),t.prototype.applyColors=function(e){var t=(e.getColor(Jf)||Xf).transparent(2),n=(e.getColor(qf)||Kf).transparent(2),i=!t.equals(this._insertColor)||!n.equals(this._removeColor);return this._insertColor=t,this._removeColor=n,i},t.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}}},t.prototype._getViewZones=function(e,t,n,i,o,r){return null},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){return null},t.prototype._getModifiedEditorDecorations=function(e,t,n,i,o){return null},t}(Ct),lM=function(){function e(e){this._source=e,this._index=-1,this.advance()}return e.prototype.advance=function(){this._index++,this.current=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 lM(this.modifiedForeignVZ),c=new lM(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)):(r=i+=1e7+n,s=o+=1e7+t);for(var g,f=[],m=[];l.current&&l.current.afterLineNumber<=s;)f.push({afterLineNumber:l.current.afterLineNumber<=o?i-o+l.current.afterLineNumber:r,heightInLines:l.current.heightInLines,domNode:null}),l.advance();for(;c.current&&c.current.afterLineNumber<=r;)m.push({afterLineNumber:c.current.afterLineNumber<=i?o-i+c.current.afterLineNumber:s,heightInLines:c.current.heightInLines,domNode:null}),c.advance();null!==p&&yM(p)&&(g=this._produceOriginalFromDiff(p,n,t))&&f.push(g),null!==p&&vM(p)&&(g=this._produceModifiedFromDiff(p,n,t))&&m.push(g);var y=0,v=0;for(f=f.sort(a),m=m.sort(a);y=_.heightInLines?(b.heightInLines-=_.heightInLines,v++):(_.heightInLines-=b.heightInLines,y++)}for(;y2*t.MINIMUM_EDITOR_WIDTH?(in-t.MINIMUM_EDITOR_WIDTH&&(i=n-t.MINIMUM_EDITOR_WIDTH)):i=o,this._sashPosition!==i&&(this._sashPosition=i,this._sash.layout()),this._sashPosition},t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},t.prototype.onSashDrag=function(e){var t=this._dataSource.getWidth()-aM.ENTIRE_DIFF_OVERVIEW_WIDTH,n=this.layout((this._startSashPosition+(e.currentX-e.startX))/t);this._sashRatio=n/t,this._dataSource.relayoutEditors()},t.prototype.onSashDragEnd=function(){this._sash.layout()},t.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},t.prototype.getVerticalSashTop=function(e){return 0},t.prototype.getVerticalSashLeft=function(e){return this._sashPosition},t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()},t.prototype._getViewZones=function(e,t,n,i,o){return new gM(e,t,n).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=i.getModel(),u=0,l=e.length;ut?{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null}:null},t.prototype._produceModifiedFromDiff=function(e,t,n){return t>n?{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null}:null},t}(cM),fM=function(e){function t(t,n){var i=e.call(this,t)||this;return i.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft,i._register(t.getOriginalEditor().onDidLayoutChange(function(e){i.decorationsLeft!==e.decorationsLeft&&(i.decorationsLeft=e.decorationsLeft,t.relayoutEditors())})),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype.setEnableSplitViewResizing=function(e){},t.prototype._getViewZones=function(e,t,n,i,o,r){return new mM(e,t,n,i,o,r).getViewZones()},t.prototype._getOriginalEditorDecorations=function(e,t,n,i,o){for(var r=this._removeColor.toString(),s={decorations:[],overviewZones:[]},a=0,u=e.length;a']));var h=document.createElement("div");h.className="view-lines line-delete",h.innerHTML=a.build(),Ig.applyFontInfoSlow(h,this.modifiedEditorConfiguration.fontInfo);var p=document.createElement("div");return p.className="inline-deleted-margin-view-zone",p.innerHTML=u.join(""),Ig.applyFontInfoSlow(p,this.modifiedEditorConfiguration.fontInfo),{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,domNode:h,marginDomNode:p}},t.prototype.renderOriginalLine=function(e,t,n,i,o,r,s){var a=t.getLineContent(o),u=yy.filter(r,o,1,a.length+1),l=new Uint32Array(2);l[0]=a.length,l[1]=16793600;var c=new Vc(l,a);s.appendASCIIString('
    '),Sy(new Ly(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,a,t.mightContainRTL(),0,c,u,i,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),s),s.appendASCIIString("
    ")},t}(cM);function yM(e){return e.modifiedEndLineNumber>0}function vM(e){return e.originalEndLineNumber>0}wm(function(e,t){var n=e.getColor(Jf);n&&(t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var i=e.getColor(qf);i&&(t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+i+"; }"),t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+i+"; }"));var o=e.getColor($f);o&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px dashed "+o+"; }");var r=e.getColor(em);r&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px dashed "+r+"; }");var s=e.getColor(Nf);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+s+"; }")});var bM,_M,MM,wM=Qn("themeService");function CM(e){!function(e,t){bM&&(e.textContent===t&&(t=Yo("repeated","{0} (occurred again)",t)),Xs(e),e.textContent=t,e.style.visibility="hidden",e.style.visibility="visible")}(_M,e)}n("KL86");var LM=0,NM=!1,IM=function(e){function t(t,n,i,o,r,s,a,u){var l,c=this;return(n=n||{}).ariaLabel=n.ariaLabel||Yo("editorViewAccessibleLabel","Editor content"),n.ariaLabel=n.ariaLabel+";"+(Is?Yo("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."):Yo("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options.")),c=e.call(this,t,n,i,o,r,s,u)||this,a instanceof _u&&(c._standaloneKeybindingService=a),NM||(NM=!0,l=document.body,(bM=document.createElement("div")).className="monaco-aria-container",(_M=document.createElement("div")).className="monaco-alert",_M.setAttribute("role","alert"),_M.setAttribute("aria-atomic","true"),bM.appendChild(_M),(MM=document.createElement("div")).className="monaco-status",MM.setAttribute("role","status"),MM.setAttribute("aria-atomic","true"),bM.appendChild(MM),l.appendChild(bM)),c}return Object(a.c)(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_"+ ++LM,o=To.deserialize(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"),bt;var n=e.id,i=e.label,o=To.and(To.equals("editorId",this.getId()),To.deserialize(e.precondition)),r=e.keybindings,s=To.and(o,To.deserialize(e.keybindingContext)),a=e.contextMenuGroupId||null,u=e.contextMenuOrder||0,l=function(){return e.run(t)||Nt.b.as(void 0)},c=[],d=this.getId()+":"+n;c.push(hi.registerCommand(d,l)),a&&c.push(ru.appendMenuItem(iu.EditorContext,{command:{id:d,title:i},when:o,group:a,order:u})),Array.isArray(r)&&(c=c.concat(r.map(function(e){return t._standaloneKeybindingService.addDynamicKeybinding(d,e,l,s)})));var h=new Kb(d,i,i,o,l,this._contextKeyService);return this._actions[n]=h,c.push({dispose:function(){delete t._actions[n]}}),Mt(c)},Object(a.b)([Object(a.d)(2,Un),Object(a.d)(3,Fo),Object(a.d)(4,di),Object(a.d)(5,Wo),Object(a.d)(6,pi),Object(a.d)(7,mm)],t)}(o_),SM=function(e){function t(t,n,i,o,r,s,a,u,l,c){var d=this;"string"==typeof(n=n||{}).theme&&c.setTheme(n.theme);var h=n.model;return delete n.model,(d=e.call(this,t,n,o,r,s,a,u,c)||this)._contextViewService=l,d._register(i),"undefined"==typeof h?(h=self.monaco.editor.createModel(n.value||"",n.language||"text/plain"),d._ownsModel=!0):d._ownsModel=!1,d._attachModel(h),h&&d._onDidChangeModel.fire({oldModelUrl:null,newModelUrl:h.uri}),d}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t),this._view&&this._contextViewService.setContainer(this._view.domNode.domNode)},t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t),t&&this._ownsModel&&(t.dispose(),this._ownsModel=!1)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Fo),Object(a.d)(5,di),Object(a.d)(6,Wo),Object(a.d)(7,pi),Object(a.d)(8,Kn),Object(a.d)(9,wM)],t)}(IM),xM=function(e){function t(t,n,i,o,r,s,a,u,l,c,d){var h=this;return"string"==typeof(n=n||{}).theme&&(n.theme=c.setTheme(n.theme)),(h=e.call(this,t,n,u,r,o,l,c,d)||this)._contextViewService=a,h._register(i),h._contextViewService.setContainer(h._containerDomElement),h}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this)},t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(IM,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)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Wo),Object(a.d)(5,pi),Object(a.d)(6,Kn),Object(a.d)(7,Vo),Object(a.d)(8,Fo),Object(a.d)(9,wM),Object(a.d)(10,lu)],t)}(aM),DM=(n("czDl"),n("9Dq5"),function(){function e(e,t,n){void 0===n&&(n={}),m_(e).addClass("monaco-menu-container");var i=m_(".monaco-menu").appendTo(e);this.actionBar=new q_(i,{orientation:K_.VERTICAL,actionItemProvider:n.actionItemProvider,context:n.context,actionRunner:n.actionRunner,isMenu:!0}),this.actionBar.push(t,{icon:!0,label:!0})}return Object.defineProperty(e.prototype,"onDidCancel",{get:function(){return this.actionBar.onDidCancel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.actionBar.onDidBlur},enumerable:!0,configurable:!0}),e.prototype.focus=function(){this.actionBar.focus(!0)},e.prototype.dispose=function(){this.actionBar&&(this.actionBar.dispose(),this.actionBar=null),this.listener&&(this.listener.dispose(),this.listener=null)},e}()),TM=function(){function e(e,t,n,i){var o=this;this.setContainer(e),this.contextViewService=t,this.telemetryService=n,this.notificationService=i,this.actionRunner=new tu,this.menuContainerElement=null,this.toDispose=[];var r=!1;this.toDispose.push(this.actionRunner.onDidBeforeRun(function(e){o.telemetryService&&o.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"}),(r=!!e.retainActionItem)||o.contextViewService.hideContextView(!1)})),this.toDispose.push(this.actionRunner.onDidRun(function(e){r&&o.contextViewService.hideContextView(!1),r=!1,e.error&&o.notificationService&&o.notificationService.error(e.error)}))}return e.prototype.setContainer=function(e){var t=this;this.$el&&(this.$el.off(["click","mousedown"]),this.$el=null),e&&(this.$el=m_(e),this.$el.on("mousedown",function(e){return t.onMouseDown(e)}))},e.prototype.showContextMenu=function(e){var t=this;e.getActions().done(function(n){t.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,render:function(i){t.menuContainerElement=i;var o=e.getMenuClassName?e.getMenuClassName():"";o&&(i.className+=" "+o);var r=new DM(i,n,{actionItemProvider:e.getActionItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:t.actionRunner}),s=r.onDidCancel(function(){t.contextViewService.hideContextView(!0)}),a=r.onDidBlur(function(){t.contextViewService.hideContextView(!0)});return r.focus(),Mt([s,a,r])},onHide:function(n){e.onHide&&e.onHide(n),t.menuContainerElement=null}})})},e.prototype.onMouseDown=function(e){if(this.menuContainerElement){for(var t=new Ys(e).target;t;){if(t===this.menuContainerElement)return;t=t.parentElement}this.contextViewService.hideContextView()}},e.prototype.dispose=function(){this.setContainer(null)},e}(),EM=function(){function e(e,t,n,i){this._onDidContextMenu=new zt,this.contextMenuHandler=new TM(e,i,t,n)}return e.prototype.dispose=function(){this.contextMenuHandler.dispose()},e.prototype.setContainer=function(e){this.contextMenuHandler.setContainer(e)},e.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e),this._onDidContextMenu.fire()},Object.defineProperty(e.prototype,"onDidContextMenu",{get:function(){return this._onDidContextMenu.event},enumerable:!0,configurable:!0}),e}(),kM=(n("+Tn7"),function(e){return e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e}({})),jM=function(e){return e[e.BELOW=0]="BELOW",e[e.ABOVE=1]="ABOVE",e}({}),AM=function(){function e(e){var t=this;this.$view=m_(".context-view").hide(),this.setContainer(e),this.toDispose=[{dispose:function(){t.setContainer(null)}}],this.toDisposeOnClean=null}return e.prototype.setContainer=function(t){var n=this;this.$container&&(this.$container.getHTMLElement().removeChild(this.$view.getHTMLElement()),this.$container.off(e.BUBBLE_UP_EVENTS),this.$container.off(e.BUBBLE_DOWN_EVENTS,!0),this.$container=null),t&&(this.$container=m_(t),this.$view.appendTo(this.$container),this.$container.on(e.BUBBLE_UP_EVENTS,function(e){n.onDOMEvent(e,document.activeElement,!1)}),this.$container.on(e.BUBBLE_DOWN_EVENTS,function(e){n.onDOMEvent(e,document.activeElement,!0)},null,!0))},e.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()},e.prototype.layout=function(){this.isVisible()&&(!1!==this.delegate.canRelayout?(this.delegate.layout&&this.delegate.layout(),this.doLayout()):this.hide())},e.prototype.doLayout=function(){var e,t=this.delegate.getAnchor();if(Ra(t)){var n=Na(t);e={top:n.top,left:n.left,width:n.width,height:n.height}}else e={top:t.y,left:t.x,width:t.width||0,height:t.height||0};var i={top:Ia.scrollY,left:Ia.scrollX,height:window.innerHeight,width:window.innerWidth},o=this.$view.getTotalSize(),r=this.delegate.anchorPosition||jM.BELOW,s=this.delegate.anchorAlignment||kM.LEFT,a=function(e,t,n,i,o){var r,s,a,u,l=function(e,t,n,i){return t?e:i?n:e},c=function(e,t,n,i,o){return o?l(e,t,n,i):l(n,i,e,t)};return{top:(s=t.top+t.height,c(r=t.top-e.height,r>=n.top&&r+e.height<=n.top+n.height,s,s>=n.top&&s+e.height<=n.top+n.height,i===jM.ABOVE)),left:(u=t.left+t.width-e.width,c(a=t.left,a>=n.left&&a+e.width<=n.left+n.width,u,u>=n.left&&u+e.width<=n.left+n.width,o===kM.LEFT))}}({width:o.width,height:o.height},e,i,r,s),u=Na(this.$container.getHTMLElement());a.top-=u.top,a.left-=u.left,this.$view.removeClass("top","bottom","left","right"),this.$view.addClass(r===jM.BELOW?"bottom":"top"),this.$view.addClass(s===kM.LEFT?"left":"right"),this.$view.style({top:a.top+"px",left:a.left+"px",width:"initial"})},e.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()},e.prototype.isVisible=function(){return!!this.delegate},e.prototype.onDOMEvent=function(e,t,n){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):n&&!Ea(e.target,this.$container.getHTMLElement())&&this.hide())},e.prototype.dispose=function(){this.hide(),this.toDispose=_t(this.toDispose)},e.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],e.BUBBLE_DOWN_EVENTS=["click"],e}(),OM=Qn("logService"),PM=function(e){return e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.Off=6]="Off",e}({}),RM=function(){function e(){this.onDidChangeLogLevel=(new zt).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return PM.Info},e.prototype.trace=function(e){for(var t=[],n=1;n0?i[0].index:n.length;if(n.length!==l){console.warn("[createInstance] First service dependency of "+e.ctor.name+" at position "+(l+1)+" conflicts with "+n.length+" static arguments");var c=l-n.length;n=c>0?n.concat(new Array(c)):n.slice(0,l)}var d=[e.ctor];return d.push.apply(d,n),d.push.apply(d,o),(function(e){for(var t=[],n=1;n100&&i();for(var a=0,u=Bn.getServiceDependencies(s.desc.ctor);a0?r:1,startColumn:s=s>0?s:1,endLineNumber:a=a>=r?a:r,endColumn:u=u>0?u:s,relatedInformation:n.relatedInformation}},e.prototype.changeAll=function(t,n){var i=[],o=this._byOwner[t];if(o)for(var r in delete this._byOwner[t],o){var s=UM.get(this._byResource,r,t)[0];s&&i.push(s.resource),UM.remove(this._byResource,r,t)}if(!ur(n)){for(var a=Object.create(null),u=0,l=n;u0&&this._onMarkerChanged.fire(i)},e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,i=t.resource,o=t.severities,r=t.take;if((!r||r<0)&&(r=-1),n&&i){if(b=UM.get(this._byResource,i.toString(),n)){for(var s=[],a=0,u=b;a0&&c===r)break}}return s}return[]}if(n||i){var d=n?this._byOwner[n]:this._byResource[i.toString()];if(!d)return[];for(var h in s=[],d)for(var p=0,g=d[h];p0&&c===r))return s;return s}for(var f in s=[],this._byResource)for(var m in this._byResource[f])for(var y=0,v=this._byResource[f][m];y0&&c===r))return s}return s},e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity},e._debouncer=function(t,n){t||(e._dedupeMap=Object.create(null),t=[]);for(var i=0,o=n;i0||this.m_modifiedCount>0)&&this.m_changes.push(new aw(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}(),pw=Object.prototype.hasOwnProperty,gw=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&&i>=n&&this.ElementsAreEqual(t,i);)t--,i--;if(e>t||n>i){var r=void 0;return n<=i?(cw.Assert(e===t+1,"originalStart should only be one more than originalEnd"),r=[new aw(e,0,n,i-n+1)]):e<=t?(cw.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[new aw(e,t-e+1,n,0)]):(cw.Assert(e===t+1,"originalStart should only be one more than originalEnd"),cw.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),r=[]),r}var s=[0],a=[0],u=this.ComputeRecursionPoint(e,t,n,i,s,a,o),l=s[0],c=a[0];if(null!==u)return u;if(!o[0]){var d,h=this.ComputeDiffRecursive(e,l,n,c,o);return d=o[0]?[new aw(l+1,t-(l+1)+1,c+1,i-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,i,o),this.ConcatenateChanges(h,d)}return[new aw(e,t-e+1,n,i-n+1)]},e.prototype.WALKTRACE=function(e,t,n,i,o,r,s,a,u,l,c,d,h,p,g,f,m,y){var v,b,_=null,M=new hw,w=t,C=n,L=h[0]-f[0]-i,N=Number.MIN_VALUE,I=this.m_forwardHistory.length-1;do{(b=L+e)===w||b=0&&(e=(u=this.m_forwardHistory[I])[0],w=1,C=u.length-1)}while(--I>=-1);if(v=M.getReverseChanges(),y[0]){var S=h[0]+1,x=f[0]+1;if(null!==v&&v.length>0){var D=v[v.length-1];S=Math.max(S,D.getOriginalEnd()),x=Math.max(x,D.getModifiedEnd())}_=[new aw(S,d-S+1,x,g-x+1)]}else{M=new hw,w=r,C=s,L=h[0]-f[0]-a,N=Number.MAX_VALUE,I=m?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{(b=L+o)===w||b=l[b+1]?(p=(c=l[b+1]-1)-L-a,c>N&&M.MarkNextChange(),N=c+1,M.AddOriginalElement(c+1,p+1),L=b+1-o):(p=(c=l[b-1])-L-a,c>N&&M.MarkNextChange(),N=c,M.AddModifiedElement(c+1,p+1),L=b-1-o),I>=0&&(o=(l=this.m_reverseHistory[I])[0],w=1,C=l.length-1)}while(--I>=-1);_=M.getChanges()}return this.ConcatenateChanges(v,_)},e.prototype.ComputeRecursionPoint=function(e,t,n,i,o,r,s){var a,u,l,c=0,d=0,h=0,p=0;e--,n--,o[0]=0,r[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var g,f,m=t-e+(i-n),y=m+1,v=new Array(y),b=new Array(y),_=i-n,M=t-e,w=e-n,C=t-i,L=(M-_)%2==0;for(v[_]=e,b[M]=t,s[0]=!1,l=1;l<=m/2+1;l++){var N=0,I=0;for(c=this.ClipDiagonalBound(_-l,l,_,y),d=this.ClipDiagonalBound(_+l,l,_,y),g=c;g<=d;g+=2){for(u=(a=g===c||gN+I&&(N=a,I=u),!L&&Math.abs(g-M)<=l-1&&a>=b[g])return o[0]=a,r[0]=u,f<=b[g]&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):null}var S=(N-e+(I-n)-l)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(N,this.OriginalSequence,S))return s[0]=!0,o[0]=N,r[0]=I,S>0&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):[new aw(++e,t-e+1,++n,i-n+1)];for(h=this.ClipDiagonalBound(M-l,l,M,y),p=this.ClipDiagonalBound(M+l,l,M,y),g=h;g<=p;g+=2){for(u=(a=g===h||g=b[g+1]?b[g+1]-1:b[g-1])-(g-M)-C,f=a;a>e&&u>n&&this.ElementsAreEqual(a,u);)a--,u--;if(b[g]=a,L&&Math.abs(g-_)<=l&&a<=v[g])return o[0]=a,r[0]=u,f>=v[g]&&l<=1448?this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s):null}if(l<=1447){var x=new Array(d-c+2);x[0]=_-c+1,dw.Copy(v,c,x,1,d-c+1),this.m_forwardHistory.push(x),(x=new Array(p-h+2))[0]=M-h+1,dw.Copy(b,h,x,1,p-h+1),this.m_reverseHistory.push(x)}}return this.WALKTRACE(_,c,d,w,M,h,p,C,v,b,a,t,o,u,i,r,L,s)},e.prototype.ShiftChanges=function(e){var t;do{t=!1;for(var n=0;n0,a=i.modifiedLength>0;i.originalStart+i.originalLength=0;n--){if(i=e[n],o=0,r=0,n>0){var c=e[n-1];c.originalLength>0&&(o=c.originalStart+c.originalLength),c.modifiedLength>0&&(r=c.modifiedStart+c.modifiedLength)}s=i.originalLength>0,a=i.modifiedLength>0;for(var d=0,h=this._boundaryScore(i.originalStart,i.originalLength,i.modifiedStart,i.modifiedLength),p=1;;p++){var g=i.originalStart-p,f=i.modifiedStart-p;if(gh&&(h=m,d=p)}i.originalStart-=d,i.modifiedStart-=d}return e},e.prototype._OriginalIsBoundary=function(e){return e<=0||e>=this.OriginalSequence.getLength()-1||/^\s*$/.test(this.OriginalSequence.getElementHash(e))},e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1},e.prototype._ModifiedIsBoundary=function(e){return e<=0||e>=this.ModifiedSequence.getLength()-1||/^\s*$/.test(this.ModifiedSequence.getElementHash(e))},e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1},e.prototype._boundaryScore=function(e,t,n,i){return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,i)?1:0)},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),dw.Copy(e,0,i,0,e.length-1),i[e.length-1]=n[0],dw.Copy(t,1,i,e.length,t.length-1),i):(i=new Array(e.length+t.length),dw.Copy(e,0,i,0,e.length),dw.Copy(t,0,i,e.length,t.length),i)},e.prototype.ChangesOverlap=function(e,t,n){if(cw.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change"),cw.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 i=e.originalLength,o=e.modifiedLength;return e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(o=t.modifiedStart+t.modifiedLength-e.modifiedStart),n[0]=new aw(e.originalStart,i,e.modifiedStart,o),!0}return n[0]=null,!1},e.prototype.ClipDiagonalBound=function(e,t,n,i){if(e>=0&&e1&&g>1&&d.charCodeAt(p-2)===h.charCodeAt(g-2);)p--,g--;(p>1||g>1)&&this._pushTrimWhitespaceCharChange(o,r+1,1,p,s+1,1,g);for(var f=vw._getLastNonBlankColumn(d,1),m=vw._getLastNonBlankColumn(h,1),y=d.length+1,v=h.length+1;ft&&(t=l),s>n&&(n=s),a>n&&(n=a)}var u=new Md(++n,++t,0);for(i=0,o=e.length;i=this._maxCharCode?0:this._states.get(e,t)},e}(),Lw=null,Nw=null,Iw=function(){function e(){}return e._createLink=function(e,t,n,i,o){var r=o-1;do{var s=t.charCodeAt(r);if(2!==e.get(s))break;r--}while(r>i);if(i>0){var a=t.charCodeAt(i-1),u=t.charCodeAt(r);(40===a&&41===u||91===a&&93===u||123===a&&125===u)&&r--}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=(null===Lw&&(Lw=new Cw([[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]])),Lw),i=function(){if(null===Nw){Nw=new Id(0);for(var e=0;e<" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026".length;e++)Nw.set(" \t<>'\"\u3001\u3002\uff61\uff64\uff0c\uff0e\uff1a\uff1b\uff1f\uff01\uff20\uff03\uff04\uff05\uff06\uff0a\u2018\u201c\u3008\u300a\u300c\u300e\u3010\u3014\uff08\uff3b\uff5b\uff62\uff63\uff5d\uff3d\uff09\u3015\u3011\u300f\u300d\u300b\u3009\u201d\u2019\uff40\uff5e\u2026".charCodeAt(e),1);for(e=0;e<".,;".length;e++)Nw.set(".,;".charCodeAt(e),2)}return Nw}(),o=[],r=1,s=t.getLineCount();r<=s;r++){for(var a=t.getLineContent(r),u=a.length,l=0,c=0,d=0,h=1,p=!1,g=!1,f=!1;l=0?((i+=n?1:-1)<0?i=e.length-1:i%=e.length,e[i]):null},e.INSTANCE=new e,e}(),xw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eol",{get:function(){return this._eol},enumerable:!0,configurable:!0}),t.prototype.getValue=function(){return this.getText()},t.prototype.getLinesContent=function(){return this._lines.slice(0)},t.prototype.getLineCount=function(){return this._lines.length},t.prototype.getLineContent=function(e){return this._lines[e-1]},t.prototype.getWordAtPosition=function(e,t){var n=Fc(e.column,Wc(t),this._lines[e.lineNumber-1],0);return n?new sn(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null},t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);return n?{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}:{word:"",startColumn:e.column,endColumn:e.column}},t.prototype._getAllWords=function(e){var t=this,n=[];return this._lines.forEach(function(i){t._wordenize(i,e).forEach(function(e){n.push(i.substring(e.start,e.end))})}),n},t.prototype.getAllUniqueWords=function(e,t){var n=!1,i=Object.create(null);return this._getAllWords(e).filter(function(e){return t&&!n&&t===e?(n=!0,!1):!i[e]&&(i[e]=!0,!0)})},t.prototype._wordenize=function(e,t){var n,i=[];for(t.lastIndex=0;(n=t.exec(e))&&0!==n[0].length;)i.push({start:n.index,end:n.index+n[0].length});return i},t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol,n=e.startLineNumber-1,i=e.endLineNumber-1,o=[];o.push(this._lines[n].substring(e.startColumn-1));for(var r=n+1;rthis._lines.length)n=this._lines[(t=this._lines.length)-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}(ww),Dw=function(e){function t(t){var n=e.call(this,t)||this;return n._models=Object.create(null),n}return Object(a.c)(t,e),t.prototype.dispose=function(){this._models=Object.create(null)},t.prototype._getModel=function(e){return this._models[e]},t.prototype._getModels=function(){var e=this,t=[];return Object.keys(this._models).forEach(function(n){return t.push(e._models[n])}),t},t.prototype.acceptNewModel=function(e){this._models[e.url]=new xw(Tn.parse(e.url),e.lines,e.EOL,e.versionId)},t.prototype.acceptModelChanged=function(e,t){this._models[e]&&this._models[e].onEvents(t)},t.prototype.acceptRemovedModel=function(e){this._models[e]&&delete this._models[e]},t}(function(){function e(e){this._foreignModuleFactory=e,this._foreignModule=null}return e.prototype.computeDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var r=i.getLinesContent(),s=o.getLinesContent(),a=new Mw(r,s,{shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return Nt.b.as(a.computeDiff())},e.prototype.computeDirtyDiff=function(e,t,n){var i=this._getModel(e),o=this._getModel(t);if(!i||!o)return null;var r=i.getLinesContent(),s=o.getLinesContent(),a=new Mw(r,s,{shouldPostProcessCharChanges:!1,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0});return Nt.b.as(a.computeDiff())},e.prototype.computeMoreMinimalEdits=function(t,n){var i=this._getModel(t);if(!i)return Nt.b.as(n);for(var o,r=[],s=0,a=n;se._diffLimit)r.push({range:l,text:c});else for(var p=lw(h,c,!1),g=i.offsetAt(sn.lift(l).getStartPosition()),f=0,m=p;fkw&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},t.prototype.withWorker=function(){return this._lastWorkerUsedTime=(new Date).getTime(),this._editorWorkerClient||(this._editorWorkerClient=new Ww(this._modelService,"editorWorkerService")),Nt.b.as(this._editorWorkerClient)},t}(Ct),Rw=function(e){function t(t,n,i){var o=e.call(this)||this;if(o._syncedModels=Object.create(null),o._syncedModelsLastUsedTime=Object.create(null),o._proxy=t,o._modelService=n,!i){var r=new bs;r.cancelAndSet(function(){return o._checkStopModelSync()},Math.round(Ew/2)),o._register(r)}return o}return Object(a.c)(t,e),t.prototype.dispose=function(){for(var t in this._syncedModels)_t(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;tEw&&t.push(n);for(var i=0;i=0}}(e);Bw.push(n),n.userConfigured?Yw.push(n):Vw.push(n),t&&!n.userConfigured&&Bw.forEach(function(e){e.mime===n.mime||e.userConfigured||(n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>"),n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>"))})}function Uw(e,t,n){for(var i,o,r,s=n.length-1;s>=0;s--){var a=n[s];if(t===a.filenameLowercase){i=a;break}a.filepattern&&(!o||a.filepattern.length>o.filepattern.length)&&tl(a.filepatternLowercase,a.filepatternOnPath?e:t)&&(o=a),a.extension&&(!r||a.extension.length>r.extension.length)&&Ai(t,a.extensionLowercase)&&(r=a)}return i?i.mime:o?o.mime:r?r.mime:null}var Gw=new(function(){function e(){this._onDidAddLanguages=new zt,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}());Fr.add("editor.modesRegistry",Gw);var Qw=new cl("plaintext",1);Gw.registerLanguage({id:"plaintext",extensions:[".txt",".gitignore"],aliases:[Yo("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),Bc.register(Qw,{brackets:[["(",")"],["[","]"],["{","}"]]});var Xw=Object.prototype.hasOwnProperty,Kw=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this;this._nextLanguageId=1,this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={},this._languageIds=[],this._warnOnOverwrite=t,e&&(this._registerLanguages(Gw.getLanguages()),Gw.onDidAddLanguages(function(e){return n._registerLanguages(e)}))}return e.prototype._registerLanguages=function(e){var t=this;if(0!==e.length){for(var n=0;n0&&((m=e.mimetypes).push.apply(m,t.mimetypes),i=t.mimetypes[0]),i||e.mimetypes.push(i="text/x-"+n),Array.isArray(t.extensions))for(var o=0,r=t.extensions;o0){var h=t.firstLine;"^"!==h.charAt(0)&&(h="^"+h);try{var p=new RegExp(h);Pi(p)||Zw({id:n,mime:i,firstline:p},this._warnOnOverwrite)}catch(e){xt(e)}}e.aliases.push(n);var g=null;if("undefined"!=typeof t.aliases&&Array.isArray(t.aliases)&&(g=0===t.aliases.length?[null]:t.aliases),null!==g)for(var f=0;f0;y&&null===g[0]||!y&&e.name||(e.name=(y?g[0]:null)||n),"string"==typeof t.configuration&&e.configurationFiles.push(t.configuration)},e.prototype.isRegisteredMode=function(e){return!!Xw.call(this._mimeTypesMap,e)||Xw.call(this._languages,e)},e.prototype.getRegisteredModes=function(){return Object.keys(this._languages)},e.prototype.getRegisteredLanguageNames=function(){return Object.keys(this._nameMap)},e.prototype.getLanguageName=function(e){return Xw.call(this._languages,e)?this._languages[e].name:null},e.prototype.getModeIdForLanguageNameLowercase=function(e){return Xw.call(this._lowercaseNameMap,e)?this._lowercaseNameMap[e].language:null},e.prototype.getConfigurationFiles=function(e){return Xw.call(this._languages,e)&&this._languages[e].configurationFiles||[]},e.prototype.getMimeForMode=function(e){return Xw.call(this._languages,e)&&this._languages[e].mimetypes[0]||null},e.prototype.extractModeIds=function(e){var t=this;return e?e.split(",").map(function(e){return e.trim()}).map(function(e){return Xw.call(t._mimeTypesMap,e)?t._mimeTypesMap[e].language:e}).filter(function(e){return Xw.call(t._languages,e)}):[]},e.prototype.getLanguageIdentifier=function(e){if("vs.editor.nullMode"===e||0===e)return fc;var t;if("string"==typeof e)t=e;else if(!(t=this._languageIds[e]))return null;return Xw.call(this._languages,t)?this._languages[t].identifier:null},e.prototype.getModeIdsFromLanguageName=function(e){return e&&Xw.call(this._nameMap,e)?[this._nameMap[e].language]:[]},e.prototype.getModeIdsFromFilenameOrFirstLine=function(e,t){if(!e&&!t)return[];var n=function(e,t){if(!e)return["application/unknown"];var n=yr(e=e.toLowerCase()),i=Uw(e,n,Yw);if(i)return[i,"text/plain"];var o=Uw(e,n,Vw);if(o)return[o,"text/plain"];if(t){var r=function(e){if(Lo(e)&&(e=e.substr(1)),e.length>0)for(var t=0;t0)return n.mime}}return null}(t);if(r)return[r,"text/plain"]}return["application/unknown"]}(e,t);return this.extractModeIds(n.join(","))},e.prototype.getExtensions=function(e){return Xw.call(this._nameMap,e)?this._languages[this._nameMap[e].language].extensions:[]},e.prototype.getFilenames=function(e){return Xw.call(this._nameMap,e)?this._languages[this._nameMap[e].language].filenames:[]},e}(),Jw=function(){function e(e){void 0===e&&(e=!1),this._onDidCreateMode=new zt,this.onDidCreateMode=this._onDidCreateMode.event,this._instantiatedModes={},this._registry=new Kw(!0,e)}return e.prototype._onReady=function(){return Nt.b.as(!0)},e.prototype.isRegisteredMode=function(e){return this._registry.isRegisteredMode(e)},e.prototype.getRegisteredModes=function(){return this._registry.getRegisteredModes()},e.prototype.getRegisteredLanguageNames=function(){return this._registry.getRegisteredLanguageNames()},e.prototype.getExtensions=function(e){return this._registry.getExtensions(e)},e.prototype.getFilenames=function(e){return this._registry.getFilenames(e)},e.prototype.getMimeForMode=function(e){return this._registry.getMimeForMode(e)},e.prototype.getLanguageName=function(e){return this._registry.getLanguageName(e)},e.prototype.getModeIdForLanguageName=function(e){return this._registry.getModeIdForLanguageNameLowercase(e)},e.prototype.getModeIdByFilenameOrFirstLine=function(e,t){var n=this._registry.getModeIdsFromFilenameOrFirstLine(e,t);return n.length>0?n[0]:null},e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);return t.length>0?t[0]:null},e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)},e.prototype.getConfigurationFiles=function(e){return this._registry.getConfigurationFiles(e)},e.prototype.getMode=function(e){for(var t=this._registry.extractModeIds(e),n=!1,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 Hw(t),this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]},e}(),qw=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this},e}();function $w(e){return eC(e)?!e.value:!Array.isArray(e)||e.every($w)}function eC(e){return e instanceof qw||!(!e||"object"!=typeof e)&&"string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted)}function tC(e,t){return e===t||!(!e||!t)&&e.value===t.value&&e.isTrusted===t.isTrusted}function nC(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}var iC=function(){function e(){}return e.insert=function(e,t){return{range:new sn(e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}},e.delete=function(e){return{range:e,text:null}},e.replace=function(e,t){return{range:e,text:t}},e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}},e}();function oC(e){return e.toString()}var rC=function(){function e(e,t,n){this.model=e,this._markerDecorations=[],this._modelEventListeners=[],this._modelEventListeners.push(e.onWillDispose(function(){return t(e)})),this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return n(e,t)}))}return e.prototype.dispose=function(){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,[]),this._modelEventListeners=_t(this._modelEventListeners),this.model=null},e.prototype.acceptMarkerDecorations=function(e){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,e)},e}(),sC=function(){function e(){}return e.setMarkers=function(e,t){var n=this,i=t.read({resource:e.model.uri,take:500}).map(function(t){return{range:n._createDecorationRange(e.model,t),options:n._createDecorationOption(t)}});e.acceptMarkerDecorations(i)},e._createDecorationRange=function(e,t){var n=sn.lift(t);if(t.severity===HM.Hint&&sn.spansMultipleLines(n)&&(n=n.setEndPosition(n.startLineNumber,n.startColumn)),(n=e.validateRange(n)).isEmpty()){var i=e.getWordAtPosition(n.getStartPosition());if(i)n=new sn(n.startLineNumber,i.startColumn,n.endLineNumber,i.endColumn);else{var o=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===o||(n=n.endColumn>=o?new sn(n.startLineNumber,o-1,n.endLineNumber,o):new sn(n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var r=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);r0?(r=new sn(o+1,1,n-a+1,1),s=new sn(o+1,1,i-a+1,1)):o>0?(r=new sn(o,e.getLineMaxColumn(o),n,e.getLineMaxColumn(n)),s=new sn(o,1+t.getLineLength(o),i,1+t.getLineLength(i))):(r=new sn(1,1,n,e.getLineMaxColumn(n)),s=new sn(1,1,i,1+t.getLineLength(i))),[iC.replaceMove(r,t.getValueInRange(s,Du.TextDefined))]},e.prototype.createModel=function(e,t,n,i){var o;return void 0===i&&(i=!1),!t||Nt.b.is(t)?(o=this._createModelData(e,Qw,n,i),this.setMode(o.model,t)):o=this._createModelData(e,t.getLanguageIdentifier(),n,i),this._markerService&&sC.setMarkers(o,this._markerService),this._onModelAdded.fire(o.model),o.model},e.prototype.setMode=function(e,t){t&&(Nt.b.is(t)?t.then(function(t){e.isDisposed()||e.setMode(t.getLanguageIdentifier())}):e.setMode(t.getLanguageIdentifier()))},e.prototype.destroyModel=function(e){var t=this._models[oC(e)];t&&t.model.dispose()},e.prototype.getModels=function(){for(var e=[],t=Object.keys(this._models),n=0,i=t.length;n0&&(o.insertRule(this._unThemedSelector+" {"+e+"}",0),r=!0),t.length>0&&(o.insertRule(".vs"+this._unThemedSelector+" {"+t+"}",0),r=!0),n.length>0&&(o.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+n+"}",0),r=!0),this._hasContent=r},e.prototype._removeCSS=function(){Pa(this._unThemedSelector,this._providerArgs.styleSheet)},e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["backgroundColor"],t),this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t),this.collectBorderSettingsCSSText(e,t),t.join("")},e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];return this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","letterSpacing"],t),t.join("")},e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if("undefined"!=typeof e){if(this.collectBorderSettingsCSSText(e,t),"undefined"!=typeof e.contentIconPath&&t.push(Ni(gC.contentIconPath,"string"==typeof e.contentIconPath?Tn.file(e.contentIconPath).toString().replace(/'/g,"%27"):Tn.revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))),"string"==typeof e.contentText){var n=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push(Ni(gC.contentText,n))}this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","color","backgroundColor","margin"],t),this.collectCSSText(e,["width","height"],t)&&t.push("display:inline-block;")}return t.join("")},e.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(e){if(!e)return"";var t=[];return"undefined"!=typeof e.gutterIconPath&&(t.push(Ni(gC.gutterIconPath,"string"==typeof e.gutterIconPath?Tn.file(e.gutterIconPath).toString():Tn.revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27"))),"undefined"!=typeof e.gutterIconSize&&t.push(Ni(gC.gutterIconSize,e.gutterIconSize))),t.join("")},e.prototype.collectBorderSettingsCSSText=function(e,t){return!!this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)&&(t.push(Ni("box-sizing: border-box;")),!0)},e.prototype.collectCSSText=function(e,t,n){for(var i=n.length,o=0,r=t;ot?1:0}(e.token,t.token);return 0!==n?n:e.index-t.index});for(var t=0,n="000000",i="ffffff";e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(t=o.fontStyle),null!==o.foreground&&(n=o.foreground),null!==o.background&&(i=o.background)}for(var r=new EC,s=new AC(t,r.getId(n),r.getId(i)),a=new PC(s),u=0,l=e.length;u>>0)}return(n|e<<0)>>>0},e}(),jC=/\b(comment|string|regex)\b/,AC=function(){function e(e,t,n){this._fontStyle=e,this._foreground=t,this._background=n,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)},e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e),0!==t&&(this._foreground=t),0!==n&&(this._background=n),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},e}(),OC=function(){return function(e,t){this.mainRule=e,this.children=t||Object.create(null)}}(),PC=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 OC(this._mainRule,e)},e.prototype.match=function(e){if(""===e)return this._mainRule;var t,n,i=e.indexOf(".");-1===i?(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){var r,s,a=t.indexOf(".");-1===a?(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)}else this._mainRule.acceptOverwrite(n,i,o)},e}(),RC={base:"vs",inherit:!1,rules:[{token:"",foreground:"000000",background:"fffffe"},{token:"invalid",foreground:"cd3131"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"001188"},{token:"variable.predefined",foreground:"4864AA"},{token:"constant",foreground:"dd0000"},{token:"comment",foreground:"008000"},{token:"number",foreground:"09885A"},{token:"number.hex",foreground:"3030c0"},{token:"regexp",foreground:"800000"},{token:"annotation",foreground:"808080"},{token:"type",foreground:"008080"},{token:"delimiter",foreground:"000000"},{token:"delimiter.html",foreground:"383838"},{token:"delimiter.xml",foreground:"0000FF"},{token:"tag",foreground:"800000"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta.scss",foreground:"800000"},{token:"metatag",foreground:"e00000"},{token:"metatag.content.html",foreground:"FF0000"},{token:"metatag.html",foreground:"808080"},{token:"metatag.xml",foreground:"808080"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"863B00"},{token:"string.key.json",foreground:"A31515"},{token:"string.value.json",foreground:"0451A5"},{token:"attribute.name",foreground:"FF0000"},{token:"attribute.value",foreground:"0451A5"},{token:"attribute.value.number",foreground:"09885A"},{token:"attribute.value.unit",foreground:"09885A"},{token:"attribute.value.html",foreground:"0000FF"},{token:"attribute.value.xml",foreground:"0000FF"},{token:"string",foreground:"A31515"},{token:"string.html",foreground:"0000FF"},{token:"string.sql",foreground:"FF0000"},{token:"string.yaml",foreground:"0451A5"},{token:"keyword",foreground:"0000FF"},{token:"keyword.json",foreground:"0451A5"},{token:"keyword.flow",foreground:"AF00DB"},{token:"keyword.flow.scss",foreground:"0000FF"},{token:"operator.scss",foreground:"666666"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"666666"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(xC={},xC[Tf]="#FFFFFE",xC[Ef]="#000000",xC[Pf]="#E5EBF1",xC[Tm]="#D3D3D3",xC[Rf]="#ADD6FF4D",xC)},zC={base:"vs-dark",inherit:!1,rules:[{token:"",foreground:"D4D4D4",background:"1E1E1E"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"74B0DF"},{token:"variable.predefined",foreground:"4864AA"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"B5CEA8"},{token:"number.hex",foreground:"5BB498"},{token:"regexp",foreground:"B46695"},{token:"annotation",foreground:"cc6666"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"DCDCDC"},{token:"delimiter.html",foreground:"808080"},{token:"delimiter.xml",foreground:"808080"},{token:"tag",foreground:"569CD6"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta.scss",foreground:"A79873"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"DD6A6F"},{token:"metatag.content.html",foreground:"9CDCFE"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key.json",foreground:"9CDCFE"},{token:"string.value.json",foreground:"CE9178"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"},{token:"attribute.value.number.css",foreground:"B5CEA8"},{token:"attribute.value.unit.css",foreground:"B5CEA8"},{token:"attribute.value.hex.css",foreground:"D4D4D4"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"keyword.json",foreground:"CE9178"},{token:"keyword.flow.scss",foreground:"569CD6"},{token:"operator.scss",foreground:"909090"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(DC={},DC[Tf]="#1E1E1E",DC[Ef]="#D4D4D4",DC[Pf]="#3A3D41",DC[Tm]="#404040",DC[Rf]="#ADD6FF26",DC)},WC={base:"hc-black",inherit:!1,rules:[{token:"",foreground:"FFFFFF",background:"000000"},{token:"invalid",foreground:"f44747"},{token:"emphasis",fontStyle:"italic"},{token:"strong",fontStyle:"bold"},{token:"variable",foreground:"1AEBFF"},{token:"variable.parameter",foreground:"9CDCFE"},{token:"constant",foreground:"569CD6"},{token:"comment",foreground:"608B4E"},{token:"number",foreground:"FFFFFF"},{token:"regexp",foreground:"C0C0C0"},{token:"annotation",foreground:"569CD6"},{token:"type",foreground:"3DC9B0"},{token:"delimiter",foreground:"FFFF00"},{token:"delimiter.html",foreground:"FFFF00"},{token:"tag",foreground:"569CD6"},{token:"tag.id.jade",foreground:"4F76AC"},{token:"tag.class.jade",foreground:"4F76AC"},{token:"meta",foreground:"D4D4D4"},{token:"meta.tag",foreground:"CE9178"},{token:"metatag",foreground:"569CD6"},{token:"metatag.content.html",foreground:"1AEBFF"},{token:"metatag.html",foreground:"569CD6"},{token:"metatag.xml",foreground:"569CD6"},{token:"metatag.php",fontStyle:"bold"},{token:"key",foreground:"9CDCFE"},{token:"string.key",foreground:"9CDCFE"},{token:"string.value",foreground:"CE9178"},{token:"attribute.name",foreground:"569CD6"},{token:"attribute.value",foreground:"3FF23F"},{token:"string",foreground:"CE9178"},{token:"string.sql",foreground:"FF0000"},{token:"keyword",foreground:"569CD6"},{token:"keyword.flow",foreground:"C586C0"},{token:"operator.sql",foreground:"778899"},{token:"operator.swift",foreground:"909090"},{token:"predefined.sql",foreground:"FF00FF"}],colors:(TC={},TC[Tf]="#000000",TC[Ef]="#FFFFFF",TC[Tm]="#FFFFFF",TC)},FC="vs",HC="vs-dark",BC="hc-black",VC=Fr.as(Wg),YC=Fr.as("base.contributions.theming"),ZC=function(){function e(e,t,n,i){for(var o in t.length>0?(this.id=e+" "+t,this.themeName=t):(this.id=e,this.themeName=e),this.base=e,this.rules=i,this.colors={},n)this.colors[o]=dp.fromHex(n[o]);this.defaultColors={}}return e.prototype.getColor=function(e,t){return this.colors.hasOwnProperty(e)?this.colors[e]:!1!==t?this.getDefault(e):null},e.prototype.getDefault=function(e){if(this.defaultColors.hasOwnProperty(e))return this.defaultColors[e];var t=VC.resolveDefaultColor(e,this);return this.defaultColors[e]=t,t},e.prototype.defines=function(e){return this.colors.hasOwnProperty(e)},Object.defineProperty(e.prototype,"type",{get:function(){switch(this.base){case FC:return"light";case BC:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tokenTheme",{get:function(){return this._tokenTheme||(this._tokenTheme=kC.createFromRawTokenTheme(this.rules)),this._tokenTheme},enumerable:!0,configurable:!0}),e}();function UC(e){return e===FC||e===HC||e===BC}function GC(e){switch(e){case FC:return RC;case HC:return zC;case BC:return WC}}function QC(e){var t=GC(e);return new ZC(e,"",t.colors,t.rules)}var XC=function(){function e(){this._onThemeChange=new zt,this._knownThemes=new Map,this._knownThemes.set(FC,QC(FC)),this._knownThemes.set(HC,QC(HC)),this._knownThemes.set(BC,QC(BC)),this._styleElement=ja(),this._styleElement.className="monaco-colors",this.setTheme(FC)}return Object.defineProperty(e.prototype,"onThemeChange",{get:function(){return this._onThemeChange.event},enumerable:!0,configurable:!0}),e.prototype.defineTheme=function(e,t){if(!/^[a-z0-9\-]+$/i.test(e)||UC(e))throw new Error("Illegal theme name!");if(!UC(t.base))throw new Error("Illegal theme base!");var n=[],i={};if(t.inherit){var o=GC(t.base);for(var r in n=n.concat(o.rules),o.colors)i[r]=o.colors[r]}for(var r in n=n.concat(t.rules),t.colors)i[r]=t.colors[r];this._knownThemes.set(e,new ZC(t.base,e,i,n))},e.prototype.getTheme=function(){return this._theme},e.prototype.setTheme=function(e){var t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(FC),this._theme=t;var n=[],i={},o={addRule:function(e){i[e]||(n.push(e),i[e]=!0)}};YC.getThemingParticipants().forEach(function(e){return e(t,o)});var r=t.tokenTheme.getColorMap();return o.addRule(function(e){for(var t=[],n=1,i=e.length;n=0;t--){var n=this._arr[t];if(e.equals(n.keybinding))return n.callback}return null},e}(),nL=function(){function e(e){void 0===e&&(e={clickBehavior:$C.ON_MOUSE_DOWN,keyboardSupport:!0,openMode:eL.SINGLE_CLICK});var t=this;this.options=e,this.downKeyBindingDispatcher=new tL,this.upKeyBindingDispatcher=new tL,("boolean"!=typeof e.keyboardSupport||e.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)}),this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(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)}),mn.d&&(this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)}),this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)}),this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})),this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)}),this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(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.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)}),this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)}),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===$C.ON_MOUSE_DOWN&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(ka(n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,i)}return!1},e.prototype.onClick=function(e,t,n){return mn.d&&n.ctrlKey?(n.preventDefault(),n.stopPropagation(),!1):(!n.target||!n.target.tagName||"input"!==n.target.tagName.toLowerCase())&&(this.options.clickBehavior!==$C.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},r=n,s="mouse"===i&&2===r.detail;return e.getInput()===t?(e.clearFocus(o),e.clearSelection(o)):(n&&r.browserEvent&&"mousedown"===r.browserEvent.type||n.preventDefault(),n.stopPropagation(),e.domFocus(),e.setSelection([t],o),e.setFocus(t,o),(this.openOnSingleClick||s||this.isClickOnTwistie(r))&&(e.isExpanded(t)?e.collapse(t).done(null,xt):e.expand(t).done(null,xt))),!0},e.prototype.setOpenMode=function(e){this.options.openMode=e},Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===eL.SINGLE_CLICK},enumerable:!0,configurable:!0}),e.prototype.isClickOnTwistie=function(e){var t=e.target;return t&&"content"===t.className&&$s(t.parentElement,"monaco-tree-row")},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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)),!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,xt)}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,xt)}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}(),iL=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}(),oL=function(){function e(){}return e.prototype.isVisible=function(e,t){return!0},e}(),rL=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return null},e}(),sL=function(){function e(e,t){this.styleElement=e,this.selectorSuffix=t}return e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"",n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }"),e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }"),e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }"),e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }"),e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t"),e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t"),e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }"),e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }"),e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }"),e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }"),e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t"),e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var i=n.join("\n");i!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=i)},e}(),aL=function(){function e(e){this._onDispose=new zt,this.onDispose=this._onDispose.event,this._item=e}return Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=null)},e}(),uL=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,i,o=this,r=this.getLock(e);return r?new Nt.b(function(i,s){var a;n=(a=r.onDispose,function(e,t,n){void 0===t&&(t=null);var i=a(function(n){return i.dispose(),e.call(t,n)},null,n);return i})(function(){return o.run(e,t).then(i,s)})},function(){n.dispose()}):new Nt.b(function(n,r){if(e.isDisposed())return r(new Error("Item is disposed."));var s=o.locks[e.id]=new aL(e);return i=t().then(function(t){return delete o.locks[e.id],s.dispose(),t}).then(n,r)},function(){return i.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}(),lL=function(){function e(){this._isDisposed=!1,this._onDidRevealItem=new Wt,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new Wt,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new Wt,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new Wt,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new Wt,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new Wt,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new Wt,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new Wt,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new Wt,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new Wt,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new Wt,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return e.prototype.register=function(e){Wr(!this.isRegistered(e.id),"item already registered: "+e.id);var t=Mt([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}},e.prototype.deregister=function(e){Wr(this.isRegistered(e.id),"item not registered: "+e.id),this.items[e.id].disposable.dispose(),delete this.items[e.id]},e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)},e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null},e.prototype.dispose=function(){this.items=null,this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},e.prototype.isDisposed=function(){return this._isDisposed},e}(),cL=function(){function e(e,t,n,i,o){this._onDidCreate=new zt,this.onDidCreate=this._onDidCreate.event,this._onDidReveal=new zt,this.onDidReveal=this._onDidReveal.event,this._onExpand=new zt,this.onExpand=this._onExpand.event,this._onDidExpand=new zt,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new zt,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new zt,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new zt,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new zt,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new zt,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new zt,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new zt,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new zt,this.onDidDispose=this._onDidDispose.event,this.registry=t,this.context=n,this.lock=i,this.element=o,this.id=e,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,o),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return e.prototype.getElement=function(){return this.element},e.prototype.hasChildren=function(){return this.doesHaveChildren},e.prototype.getDepth=function(){return this.depth},e.prototype.isVisible=function(){return this.visible},e.prototype.setVisible=function(e){this.visible=e},e.prototype.isExpanded=function(){return this.expanded},e.prototype._setExpanded=function(e){this.expanded=e},e.prototype.reveal=function(e){void 0===e&&(e=null),this._onDidReveal.fire({item:this,relativeTop:e})},e.prototype.expand=function(){var e=this;return this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this)?Nt.b.as(!1):this.lock.run(this,function(){var t={item:e};return e._onExpand.fire(t),(e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):Nt.b.as(null)).then(function(){return e._setExpanded(!0),e._onDidExpand.fire(t),!0})}).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)})},e.prototype.collapse=function(e){var t=this;if(void 0===e&&(e=!1),e){var n=Nt.b.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)?Nt.b.as(!1):this.lock.run(this,function(){var e={item:t};return t._onCollapse.fire(e),t._setExpanded(!1),t._onDidCollapse.fire(e),Nt.b.as(!0)})},e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0,this._onDidAddTrait.fire(t)},e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e],this._onDidRemoveTrait.fire(t)},e.prototype.hasTrait=function(e){return this.traits[e]||!1},e.prototype.getAllTraits=function(){var e,t=[];for(e in this.traits)this.traits.hasOwnProperty(e)&&this.traits[e]&&t.push(e);return t},e.prototype.getHeight=function(){return this.height},e.prototype.refreshChildren=function(t,n,i){var o=this;if(void 0===n&&(n=!1),void 0===i&&(i=!1),!i&&!this.isExpanded())return this.needsChildrenRefresh=!0,Nt.b.as(this);this.needsChildrenRefresh=!1;var r=function(){var i={item:o,isNested:n};return o._onRefreshChildren.fire(i),(o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):Nt.b.as([])).then(function(n){if(o.isDisposed()||o.registry.isDisposed())return Nt.b.as(null);if(!Array.isArray(n))return Nt.b.wrapError(new Error("Please return an array of children."));n=n?n.slice(0):[],n=o.sort(n);for(var i={};null!==o.firstChild;)i[o.firstChild.id]=o.firstChild,o.removeChild(o.firstChild);for(var r=0,s=n.length;r0?o[0]:this.input,s=this.getNavigator(r,!1),a=0;a0?n[0]:this.input,!1).parent();i&&(t?this.setSelection([i],e):this.select(i,e))},e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)},e.prototype.isFocused=function(e){var t=this.getItem(e);return!!t&&t.hasTrait("focused")},e.prototype.getFocus=function(e){var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]},e.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},e.prototype.onInsertItem=function(e){},e.prototype.onRemoveItems=function(e){for(var t,n,i,o=null,r=0;t=e.next();){if(!(n=this.heightMap[i=this.indexes[t]]))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},e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)},e.prototype.itemAtIndex=function(e){return this.heightMap[e]},e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null},e.prototype.createViewItem=function(e){throw new Error("not implemented")},e.prototype.dispose=function(){this.heightMap=null,this.indexes=null},e}(),CL=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}(),LL=function(e){function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;return n.originalEvent=t,n}return Object(a.c)(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(CL),NL=function(e){function t(t,n,i){var o=e.call(this,t,n,i.target)||this;return o.originalEvent=i,o}return Object(a.c)(t,e),t.prototype.preventDefault=function(){this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},t}(CL),IL=function(e){return e[e.COPY=0]="COPY",e[e.MOVE=1]="MOVE",e}({}),SL=function(e){return e[e.BUBBLE_DOWN=0]="BUBBLE_DOWN",e[e.BUBBLE_UP=1]="BUBBLE_UP",e}({}),xL=function(){function e(e){this.context=e,this._cache={"":[]}}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){!function(e){try{e.parentElement.removeChild(e)}catch(e){}}(t.element),this.cache(e).push(t)},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]})},e.prototype.dispose=function(){this.garbageCollect(),this._cache=null,this.context=null},e}(),DL=function(){function e(e,t){var n=this;this.width=0,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"];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");var i=this.context.accessibilityProvider,o=i.getAriaLabel(this.context.tree,this.model.getElement());if(o&&this.element.setAttribute("aria-label",o),i.getPosInSet&&i.getSetSize&&(this.element.setAttribute("aria-setsize",i.getSetSize()),this.element.setAttribute("aria-posinset",i.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var r=Io(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",r)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");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 s=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(s!==this.uri&&(this.unbindDragStart&&(this.unbindDragStart.dispose(),this.unbindDragStart=null),s?(this.uri=s,this.draggable=!0,this.unbindDragStart=oa(this.element,"dragstart",function(e){t.onDragStart(e)})):this.uri=null),!e&&this.element){var a=window.getComputedStyle(this.element),u=parseFloat(a.paddingLeft);this.context.horizontalScrolling&&(this.element.style.width="fit-content"),this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData),this.context.horizontalScrolling&&(this.width=xa(this.element)+u,this.element.style.width="")}}},e.prototype.updateWidth=function(){if(this.context.horizontalScrolling&&this.element){var e=window.getComputedStyle(this.element),t=parseFloat(e.paddingLeft);this.element.style.width="fit-content",this.width=xa(this.element)+t,this.element.style.width=""}},e.prototype.insertInDOM=function(e,t){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[EL.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[EL.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null)},e.prototype.dispose=function(){this.row=null,this.model=null},e}(),TL=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 Object(a.c)(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}(DL),EL=function(e){function t(n,i){var o=e.call(this)||this;o.lastClickTimeStamp=0,o.contentWidthUpdateDelayer=new gs(50),o.isRefreshing=!1,o.refreshingPreviousChildrenIds={},o._onDOMFocus=new zt,o._onDOMBlur=new zt,o.instance=++t.counter;var r="undefined"==typeof n.options.horizontalScrollMode?Uc.Hidden:n.options.horizontalScrollMode;o.horizontalScrolling=r!==Uc.Hidden,o.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new xL(n),horizontalScrolling:o.horizontalScrolling},o.modelListeners=[],o.viewListeners=[],o.model=null,o.items={},o.domNode=document.createElement("div"),o.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+o.instance,o.domNode.tabIndex=n.options.preventRootFocus?-1:0,o.styleElement=ja(o.domNode),o.treeStyler=n.styler,o.treeStyler||(o.treeStyler=new sL(o.styleElement,"monaco-tree-instance-"+o.instance)),o.domNode.setAttribute("role","tree"),o.context.options.ariaLabel&&o.domNode.setAttribute("aria-label",o.context.options.ariaLabel),o.context.options.alwaysFocused&&ea(o.domNode,"focused"),o.context.options.paddingOnRow||ea(o.domNode,"no-row-padding"),o.wrapper=document.createElement("div"),o.wrapper.className="monaco-tree-wrapper",o.scrollableElement=new Db(o.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:r,vertical:"undefined"!=typeof n.options.verticalScrollMode?n.options.verticalScrollMode:Uc.Auto,useShadows:n.options.useShadows}),o.scrollableElement.onScroll(function(e){o.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth)}),Is?(o.wrapper.style.msTouchAction="none",o.wrapper.style.msContentZooming="none"):sy.addTarget(o.wrapper),o.rowsContainer=document.createElement("div"),o.rowsContainer.className="monaco-tree-rows",n.options.showTwistie&&(o.rowsContainer.className+=" show-twisties");var s=Ha(o.domNode);return o.viewListeners.push(s.onDidFocus(function(){return o.onFocus()})),o.viewListeners.push(s.onDidBlur(function(){return o.onBlur()})),o.viewListeners.push(s),o.viewListeners.push(oa(o.domNode,"keydown",function(e){return o.onKeyDown(e)})),o.viewListeners.push(oa(o.domNode,"keyup",function(e){return o.onKeyUp(e)})),o.viewListeners.push(oa(o.domNode,"mousedown",function(e){return o.onMouseDown(e)})),o.viewListeners.push(oa(o.domNode,"mouseup",function(e){return o.onMouseUp(e)})),o.viewListeners.push(oa(o.wrapper,"click",function(e){return o.onClick(e)})),o.viewListeners.push(oa(o.wrapper,"auxclick",function(e){return o.onClick(e)})),o.viewListeners.push(oa(o.domNode,"contextmenu",function(e){return o.onContextMenu(e)})),o.viewListeners.push(oa(o.wrapper,ey.Tap,function(e){return o.onTap(e)})),o.viewListeners.push(oa(o.wrapper,ey.Change,function(e){return o.onTouchChange(e)})),Is&&(o.viewListeners.push(oa(o.wrapper,"MSPointerDown",function(e){return o.onMsPointerDown(e)})),o.viewListeners.push(oa(o.wrapper,"MSGestureTap",function(e){return o.onMsGestureTap(e)})),o.viewListeners.push(ba(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(oa(window,"dragover",function(e){return o.onDragOver(e)})),o.viewListeners.push(oa(o.wrapper,"drop",function(e){return o.onDrop(e)})),o.viewListeners.push(oa(window,"dragend",function(e){return o.onDragEnd(e)})),o.viewListeners.push(oa(window,"dragleave",function(e){return o.onDragOver(e)})),o.wrapper.appendChild(o.rowsContainer),o.domNode.appendChild(o.scrollableElement.getDomNode()),i.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.applyStyles(n.options),o}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDOMBlur",{get:function(){return this._onDOMBlur.event},enumerable:!0,configurable:!0}),t.prototype.applyStyles=function(e){this.treeStyler.style(e)},t.prototype.createViewItem=function(e){return new DL(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,t){this.isTreeVisible()&&(this.viewHeight=e||Da(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=t||xa(this.wrapper)))},t.prototype.render=function(e,t,n,i,o){var r,s,a=e,u=e+t,l=this.lastRenderTop+this.lastRenderHeight;for(r=this.indexAfter(u)-1,s=this.indexAt(Math.max(l,a));r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,s=this.indexAt(a);r>=s;r--)this.insertItemInDOM(this.itemAtIndex(r));for(r=this.indexAt(this.lastRenderTop),s=Math.min(this.indexAt(a),this.indexAfter(l));r1e3,l=void 0,c=void 0;if(u||(c=(l=new gw({getLength:function(){return r.length},getElementHash:function(e){return r[e]}},{getLength:function(){return s.length},getElementHash:function(e){return s[e].id}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,i=e.modifiedStart+e.modifiedLength;n0&&this.onRemoveItems(new vL(r,p.originalStart,p.originalStart+p.originalLength)),p.modifiedLength>0){var g=s[p.modifiedStart-1]||n;g=g.getDepth()>0?g:null,this.onInsertItems(new vL(s,p.modifiedStart,p.modifiedStart+p.modifiedLength),g?g.id:null)}}else(u||l.length)&&(this.onRemoveItems(new vL(r)),this.onInsertItems(new vL(s),n.getDepth()>0?n.id:null));(u||l.length)&&this.onRowsChanged()}},t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])},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 _L(t.getNavigator(),function(e){return e&&e.id})),this.onRowsChanged())},t.prototype.updateWidth=function(e){if(e&&e.isVisible()){var t=this.items[e.id];t&&(t.updateWidth(),this.updateScrollWidth())}},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.relativeTop,n=this.items[e.item.id];if(n)if(null!==t)this.scrollTop=(n.height-this.viewHeight)*(t=(t=t<0?0:t)>1?1:t)+n.top;else{var i=n.top+n.height,o=this.scrollTop+this.viewHeight;n.top=o&&(this.scrollTop=i-this.viewHeight)}},t.prototype.onItemAddTrait=function(e){var t=e.trait,n=this.items[e.item.id];n&&n.addClass(t),"highlighted"===t&&(ea(this.domNode,t),n&&(this.highlightedItemWasDraggable=!!n.draggable,n.draggable&&(n.draggable=!1)))},t.prototype.onItemRemoveTrait=function(e){var t=e.trait,n=this.items[e.item.id];n&&n.removeClass(t),"highlighted"===t&&(ta(this.domNode,t),this.highlightedItemWasDraggable&&(n.draggable=!0),this.highlightedItemWasDraggable=!1)},t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();na(this.domNode,"no-focused-item",!e),e?this.domNode.setAttribute("aria-activedescendant",Io(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(),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 Ys(e),n=this.getItemAround(t.target);n&&(Is&&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 Ys(e);if(!(t.ctrlKey&&mn.e&&mn.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)}}},t.prototype.onMouseUp=function(e){if(this.context.controller.onMouseUp&&(!this.lastPointerType||"mouse"===this.lastPointerType)){var t=new Ys(e);if(!(t.ctrlKey&&mn.e&&mn.d)){var n=this.getItemAround(t.target);n&&this.context.controller.onMouseUp(this.context.tree,n.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,o=new zs(e);if(n=this.model.getFocus()){var r=this.context.dataSource.getId(this.context.tree,n);i=Na(this.items[r].element)}else n=this.model.getInput(),i=Na(this.inputItem.element);t=new NL(i.left+i.width,i.top,o)}else{var s=new Ys(e),a=this.getItemAround(s.target);if(!a)return;n=a.model.getElement(),t=new LL(s)}this.context.controller.onContextMenu(this.context.tree,n,t)},t.prototype.onKeyDown=function(e){var t=new zs(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 zs(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("ResourceURLs",JSON.stringify([e.uri])),n.dataTransfer.setDragImage){var s;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 fL(i),t.currentExternalDragAndDropData=new mL(i),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new Zs(n))}},t.prototype.setupDragAndDropScrollInterval=function(){var e=this,t=La(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,i=this,o=new Zs(e),r=this.getItemAround(o.target);if(!r||0===o.posx&&0===o.posy&&o.browserEvent.type===za.DRAG_LEAVE)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=o.posy,!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!o.dataTransfer.types)return!1;this.currentDragAndDropData=new yL}this.currentDragAndDropData.update(o);var s,a=r.model;do{if(n=a?a.getElement():this.model.getInput(),!(s=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,n,o))||s.bubble!==SL.BUBBLE_UP)break;a=a&&a.parent}while(a);if(!a)return this.currentDropElement=null,!1;var u=s&&s.accept;u?(this.currentDropElement=a.getElement(),o.preventDefault(),o.dataTransfer.dropEffect=s.effect===IL.COPY?"copy":"move"):this.currentDropElement=null;var l,c,d=a.id===this.inputItem.id?this.inputItem:this.items[a.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==d||(c=s,!(!(l=this.currentDropElementReaction)&&!c||l&&c&&l.accept===c.accept&&l.bubble===c.bubble&&l.effect===c.effect)))&&(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=s,u)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),s.bubble===SL.BUBBLE_DOWN)for(var h,p=a.getNavigator();h=p.next();)(r=this.items[h.id])&&(r.dropTarget=!0,this.currentDropTargets.push(r));s.autoExpand&&(this.currentDropPromise=Nt.b.timeout(500).then(function(){return i.context.tree.expand(i.currentDropElement)}).then(function(){return i.shouldInvalidateDropReaction=!0}))}return!0},t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new Zs(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||ea(this.domNode,"focused"),this._onDOMFocus.fire()},t.prototype.onBlur=function(){this.context.options.alwaysFocused||ta(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},t.prototype.onMsPointerDown=function(e){if(this.msGesture){var t=e.pointerType;t!==(e.MSPOINTER_TYPE_MOUSE||"mouse")?t===(e.MSPOINTER_TYPE_TOUCH||"touch")&&(this.lastPointerType="touch",e.stopPropagation(),e.preventDefault(),this.msGesture.addPointer(e.pointerId)):this.lastPointerType="mouse"}},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&&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=_t(this.modelListeners),this.model=null)},t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose(),this.releaseModel(),this.modelListeners=null,this.viewListeners=_t(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.domNode=null,this.items&&(Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()}),this.items=null),this.context.cache&&(this.context.cache.dispose(),this.context.cache=null),e.prototype.dispose.call(this)},t.BINDING="monaco-tree-row",t.LOADING_DECORATION_DELAY=800,t.counter=0,t.currentExternalDragAndDropData=null,t}(wL),kL=function(){return function(e,t,n){if(void 0===n&&(n={}),this.tree=e,this.configuration=t,this.options=n,!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource,this.renderer=t.renderer,this.controller=t.controller||new nL({clickBehavior:$C.ON_MOUSE_UP,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport}),this.dnd=t.dnd||new iL,this.filter=t.filter||new oL,this.sorter=t.sorter||null,this.accessibilityProvider=t.accessibilityProvider||new rL,this.styler=t.styler||null}}(),jL={listFocusBackground:dp.fromHex("#073655"),listActiveSelectionBackground:dp.fromHex("#0E639C"),listActiveSelectionForeground:dp.fromHex("#FFFFFF"),listFocusAndSelectionBackground:dp.fromHex("#094771"),listFocusAndSelectionForeground:dp.fromHex("#FFFFFF"),listInactiveSelectionBackground:dp.fromHex("#3F3F46"),listHoverBackground:dp.fromHex("#2A2D2E"),listDropBackground:dp.fromHex("#383B3D")},AL=function(){function e(e,t,n){void 0===n&&(n={}),this._onDidChangeFocus=new Gt,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new Gt,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new Gt,this.onDidChangeHighlight=this._onHighlightChange.event,this._onDidExpandItem=new Gt,this.onDidExpandItem=this._onDidExpandItem.event,this._onDidCollapseItem=new Gt,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDispose=new zt,this.onDidDispose=this._onDispose.event,this.container=e,Or(n,jL,!1),n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32,n.showTwistie=!1!==n.showTwistie,n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12,n.alwaysFocused=!0===n.alwaysFocused,n.useShadows=!1!==n.useShadows,n.paddingOnRow=!1!==n.paddingOnRow,this.context=new kL(this,t,n),this.model=new gL(this.context),this.view=new EL(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return e.prototype.style=function(e){this.view.applyStyles(e)},Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidBlur",{get:function(){return this.view&&this.view.onDOMBlur},enumerable:!0,configurable:!0}),e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},e.prototype.layout=function(e,t){this.view.layout(e,t)},e.prototype.domFocus=function(){this.view.focus()},e.prototype.isDOMFocused=function(){return this.view.isFocused()},e.prototype.domBlur=function(){this.view.blur()},e.prototype.onVisible=function(){this.view.onVisible()},e.prototype.onHidden=function(){this.view.onHidden()},e.prototype.setInput=function(e){return this.model.setInput(e)},e.prototype.getInput=function(){return this.model.getInput()},e.prototype.refresh=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!0),this.model.refresh(e,t)},e.prototype.updateWidth=function(e){var t=this.model.getItem(e);return this.view.updateWidth(t)},e.prototype.expand=function(e){return this.model.expand(e)},e.prototype.expandAll=function(e){return this.model.expandAll(e)},e.prototype.collapse=function(e,t){return void 0===t&&(t=!1),this.model.collapse(e,t)},e.prototype.collapseAll=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=!1),this.model.collapseAll(e,t)},e.prototype.collapseDeepestExpandedLevel=function(){return this.model.collapseDeepestExpandedLevel()},e.prototype.toggleExpansion=function(e,t){return void 0===t&&(t=!1),this.model.toggleExpansion(e,t)},e.prototype.toggleExpansionAll=function(e){return this.model.toggleExpansionAll(e)},e.prototype.isExpanded=function(e){return this.model.isExpanded(e)},e.prototype.getExpandedElements=function(){return this.model.getExpandedElements()},e.prototype.reveal=function(e,t){return void 0===t&&(t=null),this.model.reveal(e,t)},e.prototype.getRelativeTop=function(e){var t=this.model.getItem(e);return this.view.getRelativeTop(t)},e.prototype.getScrollPosition=function(){return this.view.getScrollPosition()},e.prototype.setScrollPosition=function(e){this.view.setScrollPosition(e)},e.prototype.getContentHeight=function(){return this.view.getContentHeight()},e.prototype.setHighlight=function(e,t){this.model.setHighlight(e,t)},e.prototype.getHighlight=function(){return this.model.getHighlight()},e.prototype.isHighlighted=function(e){return this.model.isFocused(e)},e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)},e.prototype.select=function(e,t){this.model.select(e,t)},e.prototype.selectRange=function(e,t,n){this.model.selectRange(e,t,n)},e.prototype.deselectRange=function(e,t,n){this.model.deselectRange(e,t,n)},e.prototype.selectAll=function(e,t){this.model.selectAll(e,t)},e.prototype.deselect=function(e,t){this.model.deselect(e,t)},e.prototype.deselectAll=function(e,t){this.model.deselectAll(e,t)},e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)},e.prototype.toggleSelection=function(e,t){this.model.toggleSelection(e,t)},e.prototype.isSelected=function(e){return this.model.isSelected(e)},e.prototype.getSelection=function(){return this.model.getSelection()},e.prototype.clearSelection=function(e){this.model.setSelection([],e)},e.prototype.selectNext=function(e,t,n){this.model.selectNext(e,t,n)},e.prototype.selectPrevious=function(e,t,n){this.model.selectPrevious(e,t,n)},e.prototype.selectParent=function(e,t){this.model.selectParent(e,t)},e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)},e.prototype.isFocused=function(e){return this.model.isFocused(e)},e.prototype.getFocus=function(){return this.model.getFocus()},e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)},e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)},e.prototype.focusParent=function(e){this.model.focusParent(e)},e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)},e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)},e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)},e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)},e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)},e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)},e.prototype.clearFocus=function(e){this.model.setFocus(null,e)},e.prototype.addTraits=function(e,t){this.model.addTraits(e,t)},e.prototype.removeTraits=function(e,t){this.model.removeTraits(e,t)},e.prototype.toggleTrait=function(e,t){this.model.hasTrait(e,t)?this.model.removeTraits(e,[t]):this.model.addTraits(e,[t])},e.prototype.hasTrait=function(e,t){return this.model.hasTrait(e,t)},e.prototype.getNavigator=function(e,t){return new ML(this.model.getNavigator(e,t),function(e){return e&&e.getElement()})},e.prototype.dispose=function(){this._onDispose.fire(),null!==this.model&&(this.model.dispose(),this.model=null),null!==this.view&&(this.view.dispose(),this.view=null),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},e}();function OL(e,t){var n=Object.create(null);for(var i in t){var o=t[i];"string"==typeof o?n[i]=e.getColor(o):"function"==typeof o&&(n[i]=o(e))}return n}function PL(e,t,n){function i(i){var o=OL(e.getTheme(),t);"function"==typeof n?n(o):n.style(o)}return i(e.getTheme()),e.onThemeChange(i)}function RL(e,t,n){return PL(t,Or(n||Object.create(null),zL,!1),e)}var zL={listFocusBackground:lf,listFocusForeground:cf,listActiveSelectionBackground:dm(df,.1),listActiveSelectionForeground:hf,listFocusAndSelectionBackground:df,listFocusAndSelectionForeground:hf,listInactiveSelectionBackground:pf,listInactiveSelectionForeground:gf,listInactiveFocusBackground:ff,listHoverBackground:mf,listHoverForeground:yf,listDropBackground:vf,listFocusOutline:Gg,listSelectionOutline:Gg,listHoverOutline:Gg};new zo("inputFocus",!1);var WL,FL=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1)})),l.disposables.push(u.onDidChangeConfiguration(function(e){e.affectsConfiguration(QL)&&(l._openOnSingleClick=JL(u)),e.affectsConfiguration(GL)&&(l._useAltAsMultipleSelectionModifier=KL(u))})),l}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"openOnSingleClick",{get:function(){return this._openOnSingleClick},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useAltAsMultipleSelectionModifier",{get:function(){return this._useAltAsMultipleSelectionModifier},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.disposables=_t(this.disposables)},Object(a.b)([Object(a.d)(3,Wo),Object(a.d)(4,HL),Object(a.d)(5,mm),Object(a.d)(6,Un),Object(a.d)(7,is)],t)}(AL),tN=function(e){function t(t,n){var i=e.call(this,function(e){return"boolean"!=typeof e.keyboardSupport&&(e.keyboardSupport=!1),"number"!=typeof e.clickBehavior&&(e.clickBehavior=$C.ON_MOUSE_DOWN),e}(t))||this;return i.configurationService=n,i.disposables=[],ri(t.openMode)&&(i.setOpenMode(i.getOpenModeSetting()),i.registerListeners()),i}return Object(a.c)(t,e),t.prototype.registerListeners=function(){var e=this;this.disposables.push(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(QL)&&e.setOpenMode(e.getOpenModeSetting())}))},t.prototype.getOpenModeSetting=function(){return JL(this.configurationService)?eL.SINGLE_CLICK:eL.DOUBLE_CLICK},t.prototype.dispose=function(){this.disposables=_t(this.disposables)},Object(a.b)([Object(a.d)(1,is)],t)}(nL);Fr.as(Vr.Configuration).registerConfiguration({id:"workbench",order:7,title:Yo("workbenchConfigurationTitle","Workbench"),type:"object",properties:(qL={},qL[GL]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Yo("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Yo("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Yo({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). `ctrlCmd` maps to `Control` on Windows and Linux and to `Command` on macOS. The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},qL[QL]={type:"string",enum:["singleClick","doubleClick"],enumDescriptions:[Yo("openMode.singleClick","Opens items on mouse single click."),Yo("openMode.doubleClick","Open items on mouse double click.")],default:"singleClick",description:Yo({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). Set to `singleClick` to open items with a single mouse click and `doubleClick` to only open via mouse double click. For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},qL[XL]={type:"boolean",default:!1,description:Yo("horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench.")},qL)}),function(e){var t=new Su,n=function(){function e(e,t){this._serviceId=e,this._factory=t,this._value=null}return Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),e.prototype.get=function(e){if(!this._value){if(e&&(this._value=e[this._serviceId.toString()]),this._value||(this._value=this._factory(e)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value},e}();e.LazyStaticService=n;var i=[];function o(e,t){var o=new n(e,t);return i.push(o),o}e.init=function(e){var t=new Su;for(var n in e)e.hasOwnProperty(n)&&t.set(Qn(n),e[n]);i.forEach(function(n){return t.set(n.id,n.get(e))});var o=new ZM(t,!0);return t.set(Un,o),[t,o]},e.instantiationService=o(Un,function(){return new ZM(t,!0)});var r=new wu;e.configurationService=o(is,function(){return r}),e.resourceConfigurationService=o(Tw,function(){return new Cu(r)}),e.contextService=o(Er,function(){return new Iu}),e.telemetryService=o(Yp,function(){return new Nu}),e.dialogService=o(KC,function(){return new yu}),e.notificationService=o(lu,function(){return new vu}),e.markerService=o(QM,function(){return new JM}),e.modeService=o(Fw,function(e){return new Jw}),e.modelService=o(ol,function(t){return new uC(e.markerService.get(t),e.configurationService.get(t))}),e.editorWorkerService=o(Vo,function(t){return new Aw(e.modelService.get(t),e.resourceConfigurationService.get(t))}),e.standaloneThemeService=o(wM,function(){return new XC}),e.codeEditorService=o(Fo,function(t){return new dC(e.standaloneThemeService.get(t))}),e.progressService=o(qM,function(){return new mu}),e.storageService=o(wg,function(){return Cg}),e.logService=o(OM,function(){return new RM})}($L||($L={}));var nN=function(e){function t(t,n){var i=e.call(this)||this,o=$L.init(n),r=o[1];i._serviceCollection=o[0],i._instantiationService=r;var s=i.get(is),a=i.get(lu),u=i.get(Yp),l=function(e,t){var o=null;return n&&(o=n[e.toString()]),o||(o=t()),i._serviceCollection.set(e,o),o},c=l(Wo,function(){return i._register(new LC(s))});l(HL,function(){return new BL(c)});var d=l(di,function(){return new bu(i._instantiationService)});l(pi,function(){return i._register(new _u(c,d,u,a,t))});var h=l(Kn,function(){return i._register(new zM(t,u,new RM))});return l(Jn,function(){return i._register(new EM(t,u,a,h))}),l(ou,function(){return new Lu(d)}),i}return Object(a.c)(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}(Ct),iN=new(function(){function e(){}return e.prototype.publicLog=function(e,t){return Nt.b.wrap(null)},e.prototype.getTelemetryInfo=function(){return Nt.b.wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})},e}()),oN=function(){function e(e,t,n){void 0===n&&(n=iN),this._editorService=e,this._commandService=t,this._telemetryService=n}return e.prototype.open=function(e,t){this._telemetryService.publicLog("openerService",{scheme:e.scheme});var n,i=e.scheme,o=e.path,r=e.query,s=e.fragment,a=Nt.b.wrap(void 0);if(i===Bo.http||i===Bo.https||i===Bo.mailto)Ja(e.toString(!0));else if("command"===i&&hi.getCommand(o)){var u=[];try{u=function e(t,n){if(!t||n>200)return t;if("object"==typeof t){switch(t.$mid){case 1:return Tn.revive(t);case 2:return new RegExp(t.source,t.flags)}for(var i in t)Object.hasOwnProperty.call(t,i)&&(t[i]=e(t[i],n+1))}return t}(JSON.parse(r),0),Array.isArray(u)||(u=[u])}catch(e){}a=(n=this._commandService).executeCommand.apply(n,[o].concat(u))}else{var l=void 0,c=/^L?(\d+)(?:,(\d+))?/.exec(s);if(c&&(l={startLineNumber:parseInt(c[1]),startColumn:c[2]?parseInt(c[2]):1},e=e.with({fragment:""})),!e.scheme)return Nt.b.as(void 0);e.scheme===Bo.file&&(e=e.with({path:_r(e.path)})),a=this._editorService.openEditor({resource:e,options:{selection:l}},t&&t.openToSide)}return a},Object(a.b)([Object(a.d)(0,Zp),Object(a.d)(1,di),Object(a.d)(2,Xn(Yp))],e)}(),rN=Qn("openerService"),sN=Object.freeze({_serviceBrand:void 0,open:function(){return Nt.b.as(void 0)}}),aN=function(){function e(){}return e.colorizeElement=function(e,t,n,i){var o=(i=i||{}).theme||"vs",r=i.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(r){e.setTheme(o);var s=n.firstChild.nodeValue;n.className+=" "+o;var a=function(e){n.innerHTML=e};return this.colorize(t,s,r,i).then(a,function(e){return console.error(e)},a)}console.error("Mode not detected")},e._tokenizationSupportChangedPromise=function(e){var t=null,n=function(){t&&(t.dispose(),t=null)};return new Nt.b(function(i,o,r){t=Pl.onDidChange(function(t){t.changedLanguages.indexOf(e)>=0&&(n(),i(void 0))})},n)},e.colorize=function(e,t,n,i){Lo(t)&&(t=t.substr(1));var o=t.split(/\r\n|\r|\n/),r=e.getModeId(n);"undefined"==typeof(i=i||{}).tabSize&&(i.tabSize=4),e.getOrCreateMode(r);var s=Pl.get(r);return s?Nt.b.as(uN(o,i.tabSize,s)):Nt.b.any([this._tokenizationSupportChangedPromise(r),Nt.b.timeout(500)]).then(function(e){var t=Pl.get(r);return t?uN(o,i.tabSize,t):function(e,t){var n=[],i=new Uint32Array(2);i[0]=0,i[1]=16793600;for(var o=0,r=e.length;o")}return n.join("")}(o,i.tabSize)})},e.colorizeLine=function(e,t,n,i){return void 0===i&&(i=4),Dy(new Ly(!1,e,t,0,n,[],i,0,-1,"none",!1,!1)).html},e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var i=e.getLineContent(t);e.forceTokenization(t);var o=e.getLineTokens(t).inflate();return this.colorizeLine(i,e.mightContainRTL(),o,n)},e}();function uN(e,t,n){return function(e,t,n){for(var i=[],o=n.getInitialState(),r=0,s=e.length;r"),o=u.endState}return i.join("")}(e,t,n)}var lN=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 Object(a.c)(t,e),t.prototype._getForeignProxy=function(){var e=this;return this._foreignProxy||(this._foreignProxy=new fs(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=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 n=t.range.getStartPosition();this._editor.setPosition(n),this._editor.revealPositionInCenter(n,0)}finally{this.ignoreSelectionChange=!1}}},e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},e.prototype.next=function(){this._move(!0)},e.prototype.previous=function(){this._move(!1)},e.prototype.dispose=function(){_t(this._disposables),this._disposables.length=0,this._onDidUpdate.dispose(),this.ranges=null,this.disposed=!0},e}(),hN=Qn("textModelService");function pN(e,t,n){var i=new nN(e,t),o=null;i.has(Zp)||(o=new gu,i.set(Zp,o));var r=null;i.has(hN)||(r=new fu,i.set(hN,r)),i.has(rN)||i.set(rN,new oN(i.get(Zp),i.get(di)));var s=n(i);return o&&o.setEditor(s),r&&r.setEditor(s),s}function gN(e,t,n){return $L.modelService.get().createModel(e,t,n)}var fN=function(e){return e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate",e}({}),mN=function(e){return e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom",e}({});function yN(e){return"string"==typeof e}function vN(e){return!yN(e)}function bN(e){return!e}function _N(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function MN(e){return e.replace(/[&<>'"_]/g,"-")}function wN(e,t){throw new Error(e.languageId+": "+t)}function CN(e,t,n,i,o){var r=null;return t.replace(/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,function(t,s,a,u,l,c,d,h,p){return bN(a)?bN(u)?!bN(l)&&l0;){var n=e.tokenizer[t];if(n)return n;var i=t.lastIndexOf(".");t=i<0?null:t.substr(0,i)}return null}function NN(e,t,n){return"boolean"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function IN(e,t,n){return"string"==typeof e?e:(n&&(e||void 0===t)&&n(),void 0===t?null:t)}function SN(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,i){var o="";return"string"==typeof e[i]?o=e[i]:e[i]&&e[i]instanceof RegExp?o=e[i].source:wN(e,void 0===e[i]?"language definition does not contain attribute '"+i+"', used at: "+t:"attribute reference '"+i+"' must be a string, used at: "+t),bN(o)?"":"(?:"+o+")"});return new RegExp(t,e.ignoreCase?"i":"")}function xN(e,t,n,i){var o=-1,r=n,s=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);s&&(s[3]&&(o=parseInt(s[3]),s[2]&&(o+=100)),r=s[4]);var a,u="~",l=r;if(r&&0!==r.length?/^\w*$/.test(l)?u="==":(s=r.match(/^(@|!@|~|!~|==|!=)(.*)$/))&&(u=s[1],l=s[2]):(u="!=",l=""),"~"!==u&&"!~"!==u||!/^(\w|\|)*$/.test(l))if("@"===u||"!@"===u){var c=e[l];c||wN(e,"the @ match target '"+l+"' is not defined, in rule: "+t),function(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;var n;for(n in t)if(t.hasOwnProperty(n)&&"string"!=typeof t[n])return!1;return!0}(0,c)||wN(e,"the @ match target '"+l+"' must be an array of strings, in rule: "+t);var d=Rr(c,e.ignoreCase);a=function(e){return"@"===u?d(e):!d(e)}}else if("~"===u||"!~"===u)if(l.indexOf("$")<0){var h=SN(e,"^"+l+"$");a=function(e){return"~"===u?h.test(e):!h.test(e)}}else a=function(t,n,i,o){return SN(e,"^"+CN(e,l,n,i,o)+"$").test(t)};else if(l.indexOf("$")<0){var p=_N(e,l);a=function(e){return"=="===u?e===p:e!==p}}else{var g=_N(e,l);a=function(t,n,i,o,r){var s=CN(e,g,n,i,o);return"=="===u?t===s:t!==s}}else{var f=Rr(l.split("|"),e.ignoreCase);a=function(e){return"~"===u?f(e):!f(e)}}return-1===o?{name:n,value:i,test:function(e,t,n,i){return a(e,e,t,n,i)}}:{name:n,value:i,test:function(e,t,n,i){var r=function(e,t,n,i){if(i<0)return e;if(i=100){i-=100;var o=n.split(".");if(o.unshift(n),i0&&"^"===n[0],this.name=this.name+": "+n,this.regex=SN(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")},e.prototype.setAction=function(e,t){this.action=function e(t,n,i){if(i){if("string"==typeof i)return i;if(i.token||""===i.token){if("string"!=typeof i.token)return wN(t,"a 'token' attribute must be of type string, in rule: "+n),{token:""};var o={token:i.token};if(i.token.indexOf("$")>=0&&(o.tokenSubst=!0),"string"==typeof i.bracket&&("@open"===i.bracket?o.bracket=1:"@close"===i.bracket?o.bracket=-1:wN(t,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+n)),i.next)if("string"!=typeof i.next)wN(t,"the next state must be a string value in rule: "+n);else{var r=i.next;/^(@pop|@push|@popall)$/.test(r)||("@"===r[0]&&(r=r.substr(1)),r.indexOf("$")<0&&(function(e,t){for(;t&&t.length>0;){if(e.stateNames[t])return!0;var n=t.lastIndexOf(".");t=n<0?null:t.substr(0,n)}return!1}(t,CN(t,r,"",[],""))||wN(t,"the next state '"+i.next+"' is not defined in rule: "+n))),o.next=r}return"number"==typeof i.goBack&&(o.goBack=i.goBack),"string"==typeof i.switchTo&&(o.switchTo=i.switchTo),"string"==typeof i.log&&(o.log=i.log),"string"==typeof i.nextEmbedded&&(o.nextEmbedded=i.nextEmbedded,t.usesEmbedded=!0),o}if(Array.isArray(i)){var s,a=[];for(s in i)i.hasOwnProperty(s)&&(a[s]=e(t,n,i[s]));return{group:a}}if(i.cases){var u,l=[];for(u in i.cases)if(i.cases.hasOwnProperty(u)){var c=e(t,n,i.cases[u]);l.push("@default"===u||"@"===u||""===u?{test:null,value:c,name:u}:"@eos"===u?{test:function(e,t,n,i){return i},value:c,name:u}:xN(t,n,u,c))}var d=t.defaultToken;return{test:function(e,t,n,i){var o;for(o in l)if(l.hasOwnProperty(o)&&(!l[o].test||l[o].test(e,t,n,i)))return l[o].value;return d}}}return wN(t,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+n),""}return{token:""}}(e,this.name,t)},e}(),TN=function(){function e(e){this._maxCacheDepth=e,this._entries=Object.create(null)}return e.create=function(e,t){return this._INSTANCE.create(e,t)},e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new EN(e,t);var n=EN.getStackElementId(e);n.length>0&&(n+="|");var i=this._entries[n+=t];return i||(i=new EN(e,t),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),EN=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 TN.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 TN.create(this.parent,e)},e}(),kN=function(){function e(e,t){this.modeId=e,this.state=t}return e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)},e.prototype.clone=function(){return this.state.clone()===this.state?this:new e(this.modeId,this.state)},e}(),jN=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 AN(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new AN(e,t);var n=EN.getStackElementId(e),i=this._entries[n];return i||(i=new AN(e,null),this._entries[n]=i,i)},e._INSTANCE=new e(5),e}(),AN=function(){function e(e,t){this.stack=e,this.embeddedModeData=t}return e.prototype.clone=function(){return(this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData?this:jN.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}(),ON=Object.hasOwnProperty,PN=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 pn(e,t,this._language)))},e.prototype.nestedModeTokenize=function(e,t,n){var i=t.modeId,o=t.state,r=Pl.get(i);if(!r)return this.enterMode(n,i),this.emit(n,""),o;var s=r.tokenize(e,o,n);return this._tokens=this._tokens.concat(s.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,s.endState},e.prototype.finalize=function(e){return new gn(this._tokens,e)},e}(),RN=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,i){i.enterMode(n,this._modeId);for(var o,r,s=e.length,a=t.embeddedModeData,u=t.stack,l=0,c=null,d=null,h=null,p=null;l=s)break;var C=this._lexer.tokenizer[y];C||(C=LN(this._lexer,y))||wN(this._lexer,"tokenizer state is not defined: "+y);var L=e.substr(l);for(var N in C)if(ON.call(C,N)){var I=C[N];if((0===l||!I.matchOnlyAtLineStart)&&(v=L.match(I.regex))){b=v[0],_=I.action;break}}}for(v||(v=[""],b=""),_||(l=this._lexer.maxStack?wN(this._lexer,"maximum tokenizer stack size reached: ["+u.state+","+u.parent.state+",...]"):u=u.push(y);else if("@pop"===_.next)u.depth<=1?wN(this._lexer,"trying to pop an empty stack in rule: "+M.name):u=u.pop();else if("@popall"===_.next)u=u.popall();else{var x;"@"===(x=CN(this._lexer,_.next,b,v,y))[0]&&(x=x.substr(1)),LN(this._lexer,x)?u=u.push(x):wN(this._lexer,"trying to set a next state '"+x+"' that is undefined in rule: "+M.name)}_.log&&"string"==typeof _.log&&(o=this._lexer,r=this._lexer.languageId+": "+CN(this._lexer,_.log,b,v,y),console.log(o.languageId+": "+r))}if(null===S&&wN(this._lexer,"lexer rule has no well-defined action in rule: "+M.name),Array.isArray(S)){c&&c.length>0&&wN(this._lexer,"groups cannot be nested: "+M.name),v.length!==S.length+1&&wN(this._lexer,"matched number of groups does not match the number of actions in rule: "+M.name);for(var D=0,T=1;T0&&o[r-1]===c)){var d=l.startIndex;0===a?d=0:d=1&&u.length<=3)if(c.setRegex(o,u[0]),u.length>=3)if("string"==typeof u[1])c.setAction(o,{token:u[1],next:u[2]});else if("object"==typeof u[1]){var d=u[1];d.next=u[2],c.setAction(o,d)}else wN(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);else c.setAction(o,u[1]);else u.regex||wN(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e),u.name&&(c.name=IN(u.name)),u.matchOnlyAtStart&&(c.matchOnlyAtLineStart=NN(u.matchOnlyAtLineStart)),c.setRegex(o,u.regex),c.setAction(o,u.action);i.push(c)}}}for(i in o.languageId=e,o.ignoreCase=n.ignoreCase,o.noThrow=n.noThrow,o.usesEmbedded=n.usesEmbedded,o.stateNames=t.tokenizer,o.defaultToken=n.defaultToken,t.tokenizer&&"object"==typeof t.tokenizer||wN(n,"a language definition must define the 'tokenizer' attribute as an object"),n.tokenizer=[],t.tokenizer)if(t.tokenizer.hasOwnProperty(i)){n.start||(n.start=i);var s=t.tokenizer[i];n.tokenizer[i]=new Array,r("tokenizer."+i,n.tokenizer[i],s)}n.usesEmbedded=o.usesEmbedded,t.brackets?Array.isArray(t.brackets)||wN(n,"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 a=[];for(var u in t.brackets)if(t.brackets.hasOwnProperty(u)){var l=t.brackets[u];l&&Array.isArray(l)&&3===l.length&&(l={token:l[2],open:l[0],close:l[1]}),l.open===l.close&&wN(n,"open and close brackets in a 'brackets' attribute must be different: "+l.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required."),"string"==typeof l.open&&"string"==typeof l.token?a.push({token:IN(l.token)+n.tokenPostfix,open:_N(n,IN(l.open)),close:_N(n,IN(l.close))}):wN(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array")}return n.brackets=a,n.noThrow=!0,n}(e,t),i=function(t,n,i,o){return new zN(t,n,e,o)}($L.modeService.get(),$L.standaloneThemeService.get(),0,n);return Pl.register(e,i)},registerReferenceProvider:function(e,t){return vl.register(e,t)},registerRenameProvider:function(e,t){return bl.register(e,t)},registerCompletionItemProvider:function(e,t){var n=new BN(t);return _l.register(e,{triggerCharacters:t.triggerCharacters,provideCompletionItems:function(e,t,i,o){return n.provideCompletionItems(e,t,i,o)},resolveCompletionItem:function(e,t,i,o){return n.resolveCompletionItem(e,t,i,o)}})},registerSignatureHelpProvider:function(e,t){return Ml.register(e,t)},registerHoverProvider:function(e,t){return wl.register(e,{provideHover:function(e,n,i){var o=e.getWordAtPosition(n);return ds(t.provideHover(e,n,i)).then(function(e){if(e)return!e.range&&o&&(e.range=new sn(n.lineNumber,o.startColumn,n.lineNumber,o.endColumn)),e.range||(e.range=new sn(n.lineNumber,n.column,n.lineNumber,n.column)),e})}})},registerDocumentSymbolProvider:function(e,t){return Cl.register(e,t)},registerDocumentHighlightProvider:function(e,t){return Ll.register(e,t)},registerDefinitionProvider:function(e,t){return Nl.register(e,t)},registerImplementationProvider:function(e,t){return Il.register(e,t)},registerTypeDefinitionProvider:function(e,t){return Sl.register(e,t)},registerCodeLensProvider:function(e,t){return xl.register(e,t)},registerCodeActionProvider:function(e,t){return Dl.register(e,{provideCodeActions:function(e,n,i,o){var r=$L.markerService.get().read({resource:e.uri}).filter(function(e){return sn.areIntersectingOrTouching(e,n)});return t.provideCodeActions(e,n,{markers:r,only:i.only},o)}})},registerDocumentFormattingEditProvider:function(e,t){return Tl.register(e,t)},registerDocumentRangeFormattingEditProvider:function(e,t){return El.register(e,t)},registerOnTypeFormattingEditProvider:function(e,t){return kl.register(e,t)},registerLinkProvider:function(e,t){return jl.register(e,t)},registerColorProvider:function(e,t){return Al.register(e,t)},DocumentHighlightKind:pl,CompletionItemKind:FN,SymbolKind:gl,IndentAction:xc,SuggestTriggerKind:hl};var ZN=YN.editor;VN.monaco=YN,"undefined"!=typeof VN.require&&"function"==typeof VN.require.config&&VN.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index"]});var UN=monaco.Emitter,GN=function(){function e(e,t){this._onDidChange=new UN,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.setMaximumWorkerIdleTime=function(e){this._workerMaxIdleTime=e},e.prototype.getWorkerMaxIdleTime=function(){return this._workerMaxIdleTime},e.prototype.setEagerModelSync=function(e){this._eagerModelSync=e},e.prototype.getEagerModelSync=function(){return this._eagerModelSync},e}(),QN=function(e){return 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",e}({}),XN=function(e){return e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e}({}),KN=function(e){return e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e}({}),JN=function(e){return 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",e}({}),qN=function(e){return e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e}({}),$N=new GN({allowNonTsExtensions:!0,target:JN.Latest},{noSemanticValidation:!1,noSyntaxValidation:!1}),eI=new GN({allowNonTsExtensions:!0,allowJs:!0,target:JN.Latest},{noSemanticValidation:!0,noSyntaxValidation:!1});function tI(){return monaco.Promise.wrap(n.e(1).then(n.bind(null,"ffKE")))}monaco.languages.typescript={ModuleKind:QN,JsxEmit:XN,NewLineKind:KN,ScriptTarget:JN,ModuleResolutionKind:qN,typescriptDefaults:$N,javascriptDefaults:eI,getTypeScriptWorker:function(){return tI().then(function(e){return e.getTypeScriptWorker()})},getJavaScriptWorker:function(){return tI().then(function(e){return e.getJavaScriptWorker()})}},monaco.languages.register({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"]}),monaco.languages.onLanguage("typescript",function(){return tI().then(function(e){return e.setupTypeScript($N)})}),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(){return tI().then(function(e){return e.setupJavaScript(eI)})});var nI=monaco.Emitter,iI=function(){function e(e,t){this._onDidChange=new nI,this._languageId=e,this.setDiagnosticsOptions(t)}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}(),oI={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"}},rI=new iI("css",oI),sI=new iI("scss",oI),aI=new iI("less",oI);function uI(){return monaco.Promise.wrap(n.e(5).then(n.bind(null,"hs/E")))}monaco.languages.css={cssDefaults:rI,lessDefaults:aI,scssDefaults:sI},monaco.languages.onLanguage("less",function(){uI().then(function(e){return e.setupMode(aI)})}),monaco.languages.onLanguage("scss",function(){uI().then(function(e){return e.setupMode(sI)})}),monaco.languages.onLanguage("css",function(){uI().then(function(e){return e.setupMode(rI)})});var lI=monaco.Emitter,cI=new(function(){function e(e,t){this._onDidChange=new lI,this._languageId=e,this.setDiagnosticsOptions(t)}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}())("json",{validate:!0,allowComments:!0,schemas:[]});monaco.languages.json={jsonDefaults:cI},monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){monaco.Promise.wrap(n.e(3).then(n.bind(null,"SG+P"))).then(function(e){return e.setupMode(cI)})});var dI=monaco.Emitter,hI=function(){function e(e,t){this._onDidChange=new dI,this._languageId=e,this.setOptions(t)}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}(),pI={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"},gI={format:pI,suggest:{html5:!0}},fI={format:pI,suggest:{html5:!0,razor:!0}},mI=new hI("html",{format:pI,suggest:{html5:!0,angular1:!0,ionic:!0}}),yI=new hI("handlebars",gI),vI=new hI("razor",fI);function bI(){return monaco.Promise.wrap(n.e(4).then(n.bind(null,"bYte")))}monaco.languages.html={htmlDefaults:mI,razorDefaults:vI,handlebarDefaults:yI},monaco.languages.onLanguage("html",function(){bI().then(function(e){return e.setupMode(mI)})}),monaco.languages.onLanguage("handlebars",function(){bI().then(function(e){return e.setupMode(yI)})}),monaco.languages.onLanguage("razor",function(){bI().then(function(e){return e.setupMode(vI)})});var _I="undefined"==typeof monaco?self.monaco:monaco,MI={},wI={};function CI(e){var t=e.id;MI[t]=e,_I.languages.register(e),_I.languages.onLanguage(t,function(){!function(e){wI[e]||(wI[e]=function(e){return(0,MI[e].loader)().then(function(t){_I.languages.setMonarchTokensProvider(e,t.language),_I.languages.setLanguageConfiguration(e,t.conf)})}(e))}(t)})}var LI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:function(){return LI.Promise.wrap(n.e(43).then(n.bind(null,"zNPU")))}});var NI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return NI.Promise.wrap(n.e(42).then(n.bind(null,"WdiG")))}});var II="undefined"==typeof monaco?self.monaco:monaco;CI({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:function(){return II.Promise.wrap(n.e(0).then(n.bind(null,"Aj3d")))}}),CI({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:function(){return II.Promise.wrap(n.e(0).then(n.bind(null,"Aj3d")))}});var SI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"csharp",extensions:[".cs",".csx"],aliases:["C#","csharp"],loader:function(){return SI.Promise.wrap(n.e(41).then(n.bind(null,"Wrsc")))}});var xI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return xI.Promise.wrap(n.e(40).then(n.bind(null,"s/8m")))}});var DI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:function(){return DI.Promise.wrap(n.e(39).then(n.bind(null,"Ej8Q")))}});var TI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return TI.Promise.wrap(n.e(38).then(n.bind(null,"WfTH")))}});var EI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return EI.Promise.wrap(n.e(37).then(n.bind(null,"gQGc")))}});var kI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return kI.Promise.wrap(n.e(36).then(n.bind(null,"AZr8")))}});var jI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return jI.Promise.wrap(n.e(35).then(n.bind(null,"UIna")))}});var AI="undefined"==typeof monaco?self.monaco:monaco;CI({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"],loader:function(){return AI.Promise.wrap(n.e(34).then(n.bind(null,"jIYi")))}});var OI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:function(){return OI.Promise.wrap(n.e(33).then(n.bind(null,"fj+P")))}});var PI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return PI.Promise.wrap(n.e(32).then(n.bind(null,"x3ms")))}});var RI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:function(){return RI.Promise.wrap(n.e(31).then(n.bind(null,"U5zn")))}});var zI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:function(){return zI.Promise.wrap(n.e(30).then(n.bind(null,"y5sU")))}});var WI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return WI.Promise.wrap(n.e(29).then(n.bind(null,"C7VQ")))}});var FI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:function(){return FI.Promise.wrap(n.e(28).then(n.bind(null,"E+87")))}});var HI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:function(){return HI.Promise.wrap(n.e(27).then(n.bind(null,"LnLg")))}});var BI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return BI.Promise.wrap(n.e(26).then(n.bind(null,"nMQi")))}});var VI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return VI.Promise.wrap(n.e(25).then(n.bind(null,"wkLx")))}});var YI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return YI.Promise.wrap(n.e(24).then(n.bind(null,"D8Nr")))}});var ZI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:function(){return ZI.Promise.wrap(n.e(23).then(n.bind(null,"aG5m")))}});var UI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return UI.Promise.wrap(n.e(22).then(n.bind(null,"9NZ8")))}});var GI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:function(){return GI.Promise.wrap(n.e(21).then(n.bind(null,"uWun")))}});var QI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:function(){return QI.Promise.wrap(n.e(20).then(n.bind(null,"rAsP")))}});var XI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return XI.Promise.wrap(n.e(19).then(n.bind(null,"LlI+")))}});var KI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:function(){return KI.Promise.wrap(n.e(18).then(n.bind(null,"z9c4")))}});var JI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"redis",extensions:[".redis"],aliases:["redis"],loader:function(){return JI.Promise.wrap(n.e(17).then(n.bind(null,"TP/O")))}});var qI="undefined"==typeof monaco?self.monaco:monaco;CI({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return qI.Promise.wrap(n.e(16).then(n.bind(null,"pESm")))}});var $I="undefined"==typeof monaco?self.monaco:monaco;CI({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return $I.Promise.wrap(n.e(15).then(n.bind(null,"/y3V")))}});var eS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return eS.Promise.wrap(n.e(14).then(n.bind(null,"QEBt")))}});var tS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:function(){return tS.Promise.wrap(n.e(13).then(n.bind(null,"vFHx")))}});var nS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:function(){return nS.Promise.wrap(n.e(12).then(n.bind(null,"jkhk")))}});var iS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return iS.Promise.wrap(n.e(11).then(n.bind(null,"0Tt9")))}});var oS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:function(){return oS.Promise.wrap(n.e(10).then(n.bind(null,"77T5")))}});var rS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:function(){return rS.Promise.wrap(n.e(9).then(n.bind(null,"DMQN")))}});var sS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:function(){return sS.Promise.wrap(n.e(8).then(n.bind(null,"mE9w")))}});var aS="undefined"==typeof monaco?self.monaco:monaco;CI({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz"],firstLine:"(\\<\\?xml.*)|(\\0&&(n._decorations=n._editor.deltaDecorations(n._decorations,[])),n._updateBracketsSoon.schedule()})),n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.jumpToBracket=function(){var e=this._editor.getModel();if(e){var t=this._editor.getSelections().map(function(t){var n=t.getStartPosition(),i=e.matchBracket(n),o=null;if(i)i[0].containsPosition(n)?o=i[1].getStartPosition():i[1].containsPosition(n)&&(o=i[0].getStartPosition());else{var r=e.findNextBracket(n);r&&r.range&&(o=r.range.getStartPosition())}return o?new ln(o.lineNumber,o.column,o.lineNumber,o.column):new ln(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}},t.prototype.selectToBracket=function(){var e=this._editor.getModel();if(e){var t=[];this._editor.getSelections().forEach(function(n){var i=n.getStartPosition(),o=e.matchBracket(i),r=null,s=null;if(!o){var a=e.findNextBracket(i);a&&a.range&&(o=e.matchBracket(a.range.getStartPosition()))}o&&(o[0].startLineNumber===o[1].startLineNumber?(r=o[1].startColumn0&&(this._editor.setSelections(t),this._editor.revealRange(t[0]))}},t.prototype._updateBrackets=function(){if(this._matchBrackets){this._recomputeBrackets();for(var e=[],n=0,i=0,o=this._lastBracketsData.length;i1&&o.sort(rn.compare);var l=[],c=0,d=0,h=n.length;for(s=0,a=o.length;st.getLineMinColumn(i)?ao(t.getLineContent(i).charCodeAt(n-2))?n-=2:n-=1:i>1&&(n=t.getLineMaxColumn(i-=1)),new rn(i,n)},t.prototype.positionRightOf=function(e,t){var n=e.column,i=e.lineNumber;return n0&&(t.pushUndoStop(),t.executeCommands(this.id,i),t.pushUndoStop())},t}(Xp)),n("3j2o");var vS="9_cutcopypaste",bS=mn.e||document.queryCommandSupported("cut"),_S=mn.e||document.queryCommandSupported("copy"),MS=_S&&!xs,wS=mn.e||!Es&&document.queryCommandSupported("paste"),CS=function(e){function t(t,n){var i=e.call(this,n)||this;return i.browserCommand=t,i}return Object(a.c)(t,e),t.prototype.runCommand=function(e,t){var n=e.get(Fo).getFocusedCodeEditor();n&&n.isFocused()?n.trigger("keyboard",this.id,t):document.execCommand(this.browserCommand)},t.prototype.run=function(e,t){t.focus(),document.execCommand(this.browserCommand)},t}(Xp),LS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]}};return mn.e||(t=null),e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:Yo("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:wp.writable,kbOpts:t,menuOpts:{group:vS,order:1}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(CS),NS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]}};return mn.e||(t=null),e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:Yo("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:null,kbOpts:t,menuOpts:{group:vS,order:2}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||e.prototype.run.call(this,t,n)},t}(CS),IS=function(e){function t(){var t={kbExpr:wp.textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]}};return mn.e||(t=null),e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:Yo("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:wp.writable,kbOpts:t,menuOpts:{group:vS,order:3}})||this}return Object(a.c)(t,e),t}(CS),SS=function(e){function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:Yo("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:null}})||this}return Object(a.c)(t,e),t.prototype.run=function(t,n){!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty()||(kg.forceCopyWithSyntaxHighlighting=!0,e.prototype.run.call(this,t,n),kg.forceCopyWithSyntaxHighlighting=!1)},t}(CS);function xS(e){var t=[],n=xl.ordered(e),i=n.map(function(n){return hs(function(t){return n.provideCodeLenses(e,t)}).then(function(e){if(Array.isArray(e))for(var i=0,o=e;it.symbol.range.startLineNumber?1:n.indexOf(e.provider)n.indexOf(t.provider)?1:e.symbol.range.startColumnt.symbol.range.startColumn?1:0})})}bS&&$p(LS),_S&&$p(NS),wS&&$p(IS),MS&&$p(SS),Kp("_executeCodeLensProvider",function(e,t){var n=t.resource;if(!(n instanceof Tn))throw jt();var i=e.get(ol).getModel(n);if(!i)throw jt();return xS(i).then(function(e){return e.map(function(e){return e.symbol})})}),n("1Z8u");var DS=function(){function e(e,t){this.afterLineNumber=e,this._onHeight=t,this.heightInLines=1,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}return e.prototype.onComputedHeight=function(e){void 0===this._lastHeight?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())},e}(),TS=function(){function e(t,n,i,o){var r=this;this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._disposables=[],this._commands=Object.create(null),this._id="codeLensWidget"+ ++e._idPool,this._editor=t,this.setSymbolRange(n),this._domNode=document.createElement("span"),this._domNode.innerHTML=" ",ea(this._domNode,"codelens-decoration"),ea(this._domNode,"invisible-cl"),this._updateHeight(),this._disposables.push(this._editor.onDidChangeConfiguration(function(e){return e.fontInfo&&r._updateHeight()})),this._disposables.push(oa(this._domNode,"click",function(e){var n=e.target;if("A"===n.tagName&&n.id){var s=r._commands[n.id];s&&(t.focus(),i.executeCommand.apply(i,[s.id].concat(s.arguments)).done(void 0,function(e){o.error(e)}))}})),this.updateVisibility()}return e.prototype.dispose=function(){_t(this._disposables)},e.prototype._updateHeight=function(){var e=this._editor.getConfiguration(),t=e.fontInfo,n=e.lineHeight;this._domNode.style.height=Math.round(1.1*n)+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.fontSize=Math.round(.9*t.fontSize)+"px",this._domNode.innerHTML=" "},e.prototype.updateVisibility=function(){this.isVisible()&&(ta(this._domNode,"invisible-cl"),ea(this._domNode,"fadein"))},e.prototype.withCommands=function(e){if(this._commands=Object.create(null),e&&e.length){for(var t=[],n=0;n{1}",n,o),this._commands[n]=i):r=Ni("{0}",o),t.push(r)}this._domNode.innerHTML=t.join(" | "),this._editor.layoutContentWidget(this)}else this._domNode.innerHTML="no commands"},e.prototype.getId=function(){return this._id},e.prototype.getDomNode=function(){return this._domNode},e.prototype.setSymbolRange=function(e){var t=e.startLineNumber,n=this._editor.getModel().getLineFirstNonWhitespaceColumn(t);this._widgetPosition={position:{lineNumber:t,column:n},preference:[Wn.ABOVE]}},e.prototype.getPosition=function(){return this._widgetPosition},e.prototype.isVisible=function(){return this._domNode.hasAttribute("monaco-visible-content-widget")},e._idPool=0,e}(),ES=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;n a:hover { color: "+i+" !important; }")}),eg(function(){function e(e,t,n){var i=this;this._editor=e,this._commandService=t,this._notificationService=n,this._isEnabled=this._editor.getConfiguration().contribInfo.codeLens,this._globalToDispose=[],this._localToDispose=[],this._lenses=[],this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter=0,this._globalToDispose.push(this._editor.onDidChangeModel(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeModelLanguage(function(){return i._onModelChange()})),this._globalToDispose.push(this._editor.onDidChangeConfiguration(function(e){var t=i._isEnabled;i._isEnabled=i._editor.getConfiguration().contribInfo.codeLens,t!==i._isEnabled&&i._onModelChange()})),this._globalToDispose.push(xl.onDidChange(this._onModelChange,this)),this._onModelChange()}return e.prototype.dispose=function(){this._localDispose(),this._globalToDispose=_t(this._globalToDispose)},e.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=null,this._modelChangeCounter++),this._currentFindOccPromise&&(this._currentFindOccPromise.cancel(),this._currentFindOccPromise=null),this._localToDispose=_t(this._localToDispose)},e.prototype.getId=function(){return e.ID},e.prototype._onModelChange=function(){var e=this;this._localDispose();var t=this._editor.getModel();if(t&&this._isEnabled&&xl.has(t)){for(var n=0,i=xl.all(t);n0&&e._detectVisibleLenses.schedule()})),this._localToDispose.push(this._editor.onDidLayoutChange(function(t){e._detectVisibleLenses.schedule()})),this._localToDispose.push({dispose:function(){e._editor.getModel()?e._editor.changeDecorations(function(t){e._editor.changeViewZones(function(n){e._disposeAllLenses(t,n)})}):e._disposeAllLenses(null,null)}}),s.schedule()}},e.prototype._disposeAllLenses=function(e,t){var n=new ES;this._lenses.forEach(function(e){return e.dispose(n,t)}),e&&n.commit(e),this._lenses=[]},e.prototype._renderCodeLensSymbols=function(e){var t=this;if(this._editor.getModel()){for(var n,i=this._editor.getModel().getLineCount(),o=[],r=0,s=e;ri||(n&&n[n.length-1].symbol.range.startLineNumber===u?n.push(a):o.push(n=[a]))}var l=this._editor.getVisibleRanges(),c=l.length>0?l[0].getStartPosition():null,d=0;if(c){var h=this._editor.getTopForPosition(c.lineNumber,c.column);d=this._editor.getScrollTop()-h}this._editor.changeDecorations(function(e){t._editor.changeViewZones(function(n){for(var i=0,r=0,s=new ES;re.length)return!1;for(var o=0;o=65&&r<=90&&r+32===s||s>=65&&s<=90&&s+32===r))return!1}return!0},e.prototype._createOperationsForBlockComment=function(t,n,i,o){var r,s=t.startLineNumber,a=t.startColumn,u=t.endLineNumber,l=t.endColumn,c=i.getLineContent(s),d=i.getLineContent(u),h=n.blockCommentStartToken,p=n.blockCommentEndToken,g=c.lastIndexOf(h,a-1+h.length),f=d.indexOf(p,l-1-p.length);if(-1!==g&&-1!==f)if(s===u)c.substring(g+h.length,f).indexOf(p)>=0&&(g=-1,f=-1);else{var m=c.substring(g+h.length),y=d.substring(0,f);(m.indexOf(p)>=0||y.indexOf(p)>=0)&&(g=-1,f=-1)}-1!==g&&-1!==f?(g+h.length0&&32===d.charCodeAt(f-1)&&(p=" "+p,f-=1),r=e._createRemoveBlockCommentOperations(new sn(s,g+h.length+1,u,f+1),h,p)):(r=e._createAddBlockCommentOperations(t,h,p),this._usedEndToken=1===r.length?p:null);for(var v=0;vd?u-1:u}},e}(),RS=function(e){function t(t,n){var i=e.call(this,n)||this;return i._type=t,i}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=t.getModel();if(n){for(var i=[],o=t.getSelections(),r=n.getOptions(),s=0;s0&&s._contextViewService.hideContextView()})),this._toDispose.push(this._editor.onKeyDown(function(e){58===e.keyCode&&(e.preventDefault(),e.stopPropagation(),s.showContextMenu())}))}return e.get=function(t){return t.getContribution(e.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));var t;e.target.type!==Hn.OVERLAY_WIDGET&&(e.event.preventDefault(),(e.target.type===Hn.CONTENT_TEXT||e.target.type===Hn.CONTENT_EMPTY||e.target.type===Hn.TEXTAREA)&&(this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position),e.target.type!==Hn.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){var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e)}else this._editor.focus()},e.prototype._getMenuActions=function(){var e=[],t=this._menuService.createMenu(iu.EditorContext,this._contextKeyService),n=t.getActions({arg:this._editor.getModel().uri});t.dispose();for(var i=0,o=n;i0&&this._contextViewService.hideContextView(),this._toDispose=_t(this._toDispose)},e.ID="editor.contrib.contextmenu",e=Object(a.b)([Object(a.d)(1,Jn),Object(a.d)(2,Kn),Object(a.d)(3,Wo),Object(a.d)(4,pi),Object(a.d)(5,ou)],e)}(),VS=function(e){function t(){return e.call(this,{id:"editor.action.showContextMenu",label:Yo("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:1092}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){BS.get(t).showContextMenu()},t}(Xp);eg(BS),$p(VS);var YS=function(){function e(e){this.selections=e}return e.prototype.equals=function(e){var t=this.selections.length;if(t!==e.selections.length)return!1;for(var n=0;n50&&n._undoStack.shift()),n._prevState=n._readState()})),n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype._readState=function(){return this._editor.getModel()?new YS(this._editor.getSelections()):null},t.prototype.getId=function(){return t.ID},t.prototype.cursorUndo=function(){for(var e=new YS(this._editor.getSelections());this._undoStack.length>0;){var t=this._undoStack.pop();if(!t.equals(e))return this._isCursorUndo=!0,this._editor.setSelections(t.selections),this._editor.revealRangeInCenterIfOutsideViewport(t.selections[0],0),void(this._isCursorUndo=!1)}},t.ID="editor.contrib.cursorUndoController",t}(Ct),US=function(e){function t(){return e.call(this,{id:"cursorUndo",precondition:null,kbOpts:{kbExpr:wp.textInputFocus,primary:2099}})||this}return Object(a.c)(t,e),t.prototype.runEditorCommand=function(e,t,n){ZS.get(t).cursorUndo()},t}(Qp);eg(ZS),qp(new US),n("WUwp");var GS=function(){function e(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n}return e.prototype.getEditOperations=function(e,t){var n=e.getValueInRange(this.selection);this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new sn(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.targetSelection=!this.selection.containsPosition(this.targetPosition)||this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition))?this.copy?new ln(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumber>this.selection.endLineNumber?new ln(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn):this.targetPosition.lineNumberthis._limit&&this._initialize(e.slice(e.length-this._limit))},e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t0;){if(e=0?t+1:1},e.prototype.getCurrentMatchesPosition=function(t){for(var n=this._editor.getModel().getDecorationsInRange(t),i=0,o=n.length;i1e3){r=e._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var a=i._editor.getModel().getLineCount(),u=i._editor.getLayoutInfo().height,l=Math.max(2,Math.ceil(3/(u/a))),c=t[0].range.startLineNumber,d=t[0].range.endLineNumber,h=1,p=t.length;h=g.startLineNumber?g.endLineNumber>d&&(d=g.endLineNumber):(s.push({range:new sn(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),c=g.startLineNumber,d=g.endLineNumber)}s.push({range:new sn(c,1,d,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var f=new Array(t.length);for(h=0,p=t.length;h=0;t--){var n=this._decorations[t],i=this._editor.getModel().getDecorationRange(n);if(i&&!(i.endLineNumber>e.lineNumber)){if(i.endLineNumbere.column))return i}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn0){for(var n=[],i=0;i0},e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1},e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)},e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||1===i?(1===n?n=o.getLineCount():n--,i=o.getLineMaxColumn(n)):i--,new rn(n,i)},e.prototype._moveToPrevMatch=function(t,n){if(void 0===n&&(n=!1),this._decorations.getCount()<19999){var i=this._decorations.matchBeforePosition(t);return i&&i.isEmpty()&&i.getStartPosition().equals(t)&&(t=this._prevSearchPosition(t),i=this._decorations.matchBeforePosition(t)),void(i&&this._setCurrentFindMatch(i))}if(!this._cannotFind()){var o=this._decorations.getFindScope(),r=e._getSearchRange(this._editor.getModel(),o);r.getEndPosition().isBefore(t)&&(t=r.getEndPosition()),t.isBefore(r.getStartPosition())&&(t=r.getEndPosition());var s=t.lineNumber,a=t.column,u=this._editor.getModel(),l=new rn(s,a),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return c&&c.range.isEmpty()&&c.range.getStartPosition().equals(l)&&(l=this._prevSearchPosition(l),c=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)),c?n||r.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._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),n=e.lineNumber,i=e.column,o=this._editor.getModel();return t||i===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,i=1):i++,new rn(n,i)},e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);return t&&t.isEmpty()&&t.getStartPosition().equals(e)&&(e=this._nextSearchPosition(e),t=this._decorations.matchAfterPosition(e)),void(t&&this._setCurrentFindMatch(t))}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)},e.prototype._getNextMatch=function(t,n,i,o){if(void 0===o&&(o=!1),this._cannotFind())return null;var r=this._decorations.getFindScope(),s=e._getSearchRange(this._editor.getModel(),r);s.getEndPosition().isBefore(t)&&(t=s.getStartPosition()),t.isBefore(s.getStartPosition())&&(t=s.getStartPosition());var a=t.lineNumber,u=t.column,l=this._editor.getModel(),c=new rn(a,u),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);return i&&d&&d.range.isEmpty()&&d.range.getStartPosition().equals(c)&&(c=this._nextSearchPosition(c),d=l.findNextMatch(this._state.searchString,c,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)),d?o||s.containsRange(d.range)?d:this._getNextMatch(d.range.getEndPosition(),n,i,!0):null},e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())},e.prototype._getReplacePattern=function(){return this._state.isRegex?function(e){if(!e||0===e.length)return new XS(null);for(var t=new JS(e),n=0,i=e.length;n=i)break;if(36===(a=e.charCodeAt(n))){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(48===a||38===a){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1);continue}if(49<=a&&a<=57){var r=a-48;if(n+1=i)break;var a;switch(a=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic("\t",n+1)}}}return t.finalize()}(this._state.replaceString):XS.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,!1);if(n)if(t.equalsRange(n.range)){var i=e.buildReplaceString(n.matches),o=new Sh(t,i);this._executeEditorCommand("replace",o),this._decorations.setStartPosition(new rn(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(),t);return this._editor.getModel().findMatches(this._state.searchString,o,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,i)},e.prototype.replaceAll=function(){if(this._hasMatches()){var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}},e.prototype._largeReplaceAll=function(){var e=new Td(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(e){var t=e.regex;if(!t.multiline){var n="m";t.ignoreCase&&(n+="i"),t.global&&(n+="g"),t=new RegExp(t.source,n)}var i,o=this._editor.getModel(),r=o.getValue(Du.LF),s=o.getFullModelRange(),a=this._getReplacePattern();i=r.replace(t,a.hasReplacementPatterns?function(){return a.buildReplaceString(arguments)}:a.buildReplaceString(null));var u=new Th(s,i,this._editor.getSelection());this._executeEditorCommand("replaceAll",u)}},e.prototype._regularReplaceAll=function(e){for(var t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns,1073741824),i=[],o=0,r=n.length;ot&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,i.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,i.matchesCount=!0,o=!0),"undefined"!=typeof n&&(sn.equalsRange(this._currentMatch,n)||(this._currentMatch=n,i.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(i)},e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var i={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},o=!1,r=this.isRegex,s=this.wholeWord,a=this.matchCase;"undefined"!=typeof e.searchString&&this._searchString!==e.searchString&&(this._searchString=e.searchString,i.searchString=!0,o=!0),"undefined"!=typeof e.replaceString&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,i.replaceString=!0,o=!0),"undefined"!=typeof e.isRevealed&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,i.isRevealed=!0,o=!0),"undefined"!=typeof e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,i.isReplaceRevealed=!0,o=!0),"undefined"!=typeof e.isRegex&&(this._isRegex=e.isRegex),"undefined"!=typeof e.wholeWord&&(this._wholeWord=e.wholeWord),"undefined"!=typeof e.matchCase&&(this._matchCase=e.matchCase),"undefined"!=typeof e.searchScope&&(sn.equalsRange(this._searchScope,e.searchScope)||(this._searchScope=e.searchScope,i.searchScope=!0,o=!0)),this._isRegexOverride="undefined"!=typeof e.isRegexOverride?e.isRegexOverride:0,this._wholeWordOverride="undefined"!=typeof e.wholeWordOverride?e.wholeWordOverride:0,this._matchCaseOverride="undefined"!=typeof e.matchCaseOverride?e.matchCaseOverride:0,r!==this.isRegex&&(o=!0,i.isRegex=!0),s!==this.wholeWord&&(o=!0,i.wholeWord=!0),a!==this.matchCase&&(o=!0,i.matchCase=!0),o&&this._onFindReplaceStateChange.fire(i)},e}(),gx=Qn("clipboardService"),fx=(n("s0RT"),n("NBYJ"),n("R/+A"),function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}()),mx=new fx("id#");(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:g,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:g,blockquote:/^( {0,3}> ?(paragraph|[^\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:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:g,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links={},this.options=e||m.defaults,this.rules=t.normal,this.options.gfm&&(this.rules=this.options.tables?t.tables:t.gfm)}t._label=/(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,t.def=c(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=c(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=c(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._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",t.html=c(t.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,t._tag).getRegex(),t.paragraph=c(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag","<"+t._tag).getRegex(),t.blockquote=c(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=f({},t),t.gfm=f({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=c(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=f({},t.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.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)},n.prototype.token=function(e,n){var i,o,r,s,a,u,l,c,d,h,p;for(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(n&&(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,n),this.tokens.push({type:"blockquote_end"});else if(r=this.rules.list.exec(e)){for(e=e.substring(r[0].length),this.tokens.push({type:"list_start",ordered:p=(s=r[2]).length>1,start:p?+s:""}),i=!1,h=(r=r[0].match(this.rules.item)).length,c=0;c1&&a.length>1||(e=r.slice(c+1).join("\n")+e,c=h-1)),o=i||/\n\n(?!\s*$)/.test(u),c!==h-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),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:!this.options.sanitizer&&("pre"===r[1]||"script"===r[1]||"style"===r[1]),text:r[0]});else if(n&&(r=this.rules.def.exec(e)))e=e.substring(r[0].length),r[3]&&(r[3]=r[3].substring(1,r[3].length-1)),d=r[1].toLowerCase(),this.tokens.links[d]||(this.tokens.links[d]={href:r[2],title:r[3]});else if(n&&(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:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:g,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:g,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function c(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){return h[" "+e]||(h[" "+e]=/^[^:]+:\/*[^/]*$/.test(e)?e+"/":e.replace(/[^/]*$/,"")),e=h[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}i._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,i._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,i.autolink=c(i.autolink).replace("scheme",i._scheme).replace("email",i._email).getRegex(),i._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,i._href=/\s*?(?:\s+['"]([\s\S]*?)['"])?\s*/,i.link=c(i.link).replace("inside",i._inside).replace("href",i._href).getRegex(),i.reflink=c(i.reflink).replace("inside",i._inside).getRegex(),i.normal=f({},i),i.pedantic=f({},i.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),i.gfm=f({},i.normal,{escape:c(i.escape).replace("])","~|])").getRegex(),url:c(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",i._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:c(i.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),i.breaks=f({},i.gfm,{br:c(i.br).replace("{2,}","*").getRegex(),text:c(i.gfm.text).replace("{2,}","*").getRegex()}),o.rules=i,o.output=function(e,t,n){return new o(t,n).output(e)},o.prototype.output=function(e){for(var t,n,i,o,r="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),r+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),i="@"===o[2]?"mailto:"+(n=u(this.mangle(o[1]))):n=u(o[1]),r+=this.renderer.link(i,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),r+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,r+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){r+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,r+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),r+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),r+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),r+=this.renderer.codespan(u(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),r+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),r+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),r+=this.renderer.text(u(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else o[0]=this.rules._backpedal.exec(o[0])[0],e=e.substring(o[0].length),"@"===o[2]?i="mailto:"+(n=u(o[0])):(n=u(o[0]),i="www."===o[1]?"http://"+n:n),r+=this.renderer.link(i,null,n);return r},o.prototype.outputLink=function(e,t){var n=u(t.href),i=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,i,this.output(e[1])):this.renderer.image(n,i,u(e[1]))},o.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026"):e},o.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",i=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},r.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:u(e,!0))+"\n
    \n":"
    "+(n?e:u(e,!0))+"\n
    "},r.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},r.prototype.html=function(e){return e},r.prototype.heading=function(e,t,n){return"'+e+"\n"},r.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},r.prototype.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},r.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},r.prototype.paragraph=function(e){return"

    "+e+"

    \n"},r.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},r.prototype.tablerow=function(e){return"\n"+e+"\n"},r.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},r.prototype.strong=function(e){return""+e+""},r.prototype.em=function(e){return""+e+""},r.prototype.codespan=function(e){return""+e+""},r.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},r.prototype.del=function(e){return""+e+""},r.prototype.link=function(e,t,n){if(this.options.sanitize){try{var i=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return n}this.options.baseUrl&&!p.test(e)&&(e=d(this.options.baseUrl,e));var o='
    "+n+""},r.prototype.image=function(e,t,n){this.options.baseUrl&&!p.test(e)&&(e=d(this.options.baseUrl,e));var i=''+n+'":">")},r.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},a.parse=function(e,t){return new a(t).parse(e)},a.prototype.parse=function(e){this.inline=new o(e.links,this.options),this.inlineText=new o(e.links,f({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},a.prototype.next=function(){return this.token=this.tokens.pop()},a.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},a.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},a.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,l(this.inlineText.output(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="";for(n="",e=0;eAn error occurred:

    "+u(e.message+"",!0)+"
    ";throw e}}g.exec=g,m.options=m.setOptions=function(e){return f(m.defaults,e),m},m.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new r,xhtml:!1,baseUrl:null},m.Parser=a,m.parser=a.parse,m.Renderer=r,m.TextRenderer=s,m.Lexer=n,m.lexer=n.lex,m.InlineLexer=o,m.inlineLexer=o.output,m.parse=m,hx=m}).call(this);var yx=hx;function vx(e){var t=document.createElement(e.inline?"span":"div");return e.className&&(t.className=e.className),t}function bx(e,t){void 0===t&&(t={});var n=vx(t);return function e(t,n,i){var o;if(2===n.type)o=document.createTextNode(n.content);else if(3===n.type)o=document.createElement("b");else if(4===n.type)o=document.createElement("i");else if(5===n.type&&i){var r=document.createElement("a");r.href="#",i.disposeables.push(ra(r,"click",function(e){i.callback(String(n.index),e)})),o=r}else 7===n.type?o=document.createElement("br"):1===n.type&&(o=t);t!==o&&t.appendChild(o),Array.isArray(n.children)&&n.children.forEach(function(t){e(o,t,i)})}(n,function(t){for(var n={type:1,children:[]},i=0,o=n,r=[],s=new _x(e);!s.eos();){var a=s.next(),u="\\"===a&&0!==Mx(s.peek());if(u&&(a=s.next()),u||0===Mx(a)||a!==s.peek())if("\n"===a)2===o.type&&(o=r.pop()),o.children.push({type:7});else if(2!==o.type){var l={type:2,content:a};o.children.push(l),r.push(o),o=l}else o.content+=a;else{s.advance(),2===o.type&&(o=r.pop());var c=Mx(a);if(o.type===c||5===o.type&&6===c)o=r.pop();else{var d={type:c,children:[]};5===c&&(d.index=i,i++),o.children.push(d),r.push(o),o=d}}}return 2===o.type&&(o=r.pop()),n}(),t.actionHandler),n}var _x=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 Mx(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}var wx,Cx=Za;!function(e){e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR"}(wx||(wx={}));var Lx={inputBackground:dp.fromHex("#3C3C3C"),inputForeground:dp.fromHex("#CCCCCC"),inputValidationInfoBorder:dp.fromHex("#55AAFF"),inputValidationInfoBackground:dp.fromHex("#063B49"),inputValidationWarningBorder:dp.fromHex("#B89500"),inputValidationWarningBackground:dp.fromHex("#352A05"),inputValidationErrorBorder:dp.fromHex("#BE1100"),inputValidationErrorBackground:dp.fromHex("#5A1D1D")},Nx=function(e){function t(t,n,i){var o=e.call(this)||this;o.state="idle",o._onDidChange=o._register(new zt),o.onDidChange=o._onDidChange.event,o._onDidHeightChange=o._register(new zt),o.onDidHeightChange=o._onDidHeightChange.event,o.contextViewProvider=n,o.options=i||Object.create(null),Or(o.options,Lx,!1),o.message=null,o.cachedHeight=null,o.placeholder=o.options.placeholder||"",o.ariaLabel=o.options.ariaLabel||"",o.inputBackground=o.options.inputBackground,o.inputForeground=o.options.inputForeground,o.inputBorder=o.options.inputBorder,o.inputValidationInfoBorder=o.options.inputValidationInfoBorder,o.inputValidationInfoBackground=o.options.inputValidationInfoBackground,o.inputValidationWarningBorder=o.options.inputValidationWarningBorder,o.inputValidationWarningBackground=o.options.inputValidationWarningBackground,o.inputValidationErrorBorder=o.options.inputValidationErrorBorder,o.inputValidationErrorBackground=o.options.inputValidationErrorBackground,o.options.validationOptions&&(o.validation=o.options.validationOptions.validation),o.element=Ba(t,Cx(".monaco-inputbox.idle"));var r=o.options.flexibleHeight?"textarea":"input",s=Ba(o.element,Cx(".wrapper"));return o.input=Ba(s,Cx(r+".input")),o.input.setAttribute("autocorrect","off"),o.input.setAttribute("autocapitalize","off"),o.input.setAttribute("spellcheck","false"),o.onfocus(o.input,function(){return ea(o.element,"synthetic-focus")}),o.onblur(o.input,function(){return ta(o.element,"synthetic-focus")}),o.options.flexibleHeight?o.mirror=Ba(s,Cx("div.mirror")):(o.input.type=o.options.type||"text",o.input.setAttribute("wrap","off")),o.ariaLabel&&o.input.setAttribute("aria-label",o.ariaLabel),o.placeholder&&o.setPlaceHolder(o.placeholder),o.oninput(o.input,function(){return o.onValueChange()}),o.onblur(o.input,function(){return o.onBlur()}),o.onfocus(o.input,function(){return o.onFocus()}),o.placeholder&&Is&&o.onclick(o.input,function(e){Wa.stop(e,!0),o.input.focus()}),setTimeout(function(){o.input&&o.updateMirror()},0),o.options.actions&&(o.actionbar=o._register(new q_(o.element)),o.actionbar.push(o.options.actions,{icon:!0,label:!1})),o.applyStyles(),o}return Object(a.c)(t,e),t.prototype.onBlur=function(){this._hideMessage()},t.prototype.onFocus=function(){this._showMessage()},t.prototype.setPlaceHolder=function(e){this.input&&(this.input.setAttribute("placeholder",e),this.input.title=e)},t.prototype.setAriaLabel=function(e){this.ariaLabel=e,this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){this.input.value!==e&&(this.input.value=e,this.onValueChange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return null===this.cachedHeight?Ta(this.element):this.cachedHeight},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.hasFocus=function(){return document.activeElement===this.input},t.prototype.select=function(e){void 0===e&&(e=null),this.input.select(),e&&this.input.setSelectionRange(e.start,e.end)},t.prototype.enable=function(){this.input.removeAttribute("disabled")},t.prototype.disable=function(){this.input.disabled=!0,this._hideMessage()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},Object.defineProperty(t.prototype,"width",{get:function(){return Sa(this.input)},set:function(e){this.input.style.width=e+"px"},enumerable:!0,configurable:!0}),t.prototype.showMessage=function(e,t){this.message=e,ta(this.element,"idle"),ta(this.element,"info"),ta(this.element,"warning"),ta(this.element,"error"),ea(this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null,CM(e.type===wx.ERROR?Yo("alertErrorMessage","Error: {0}",e.content):e.type===wx.WARNING?Yo("alertWarningMessage","Warning: {0}",e.content):Yo("alertInfoMessage","Info: {0}",e.content)),(this.hasFocus()||t)&&this._showMessage()},t.prototype.hideMessage=function(){this.message=null,ta(this.element,"info"),ta(this.element,"warning"),ta(this.element,"error"),ea(this.element,"idle"),this._hideMessage(),this.applyStyles()},t.prototype.isInputValid=function(){return!!this.validation&&!this.validation(this.value)},t.prototype.validate=function(){var e=null;return this.validation&&((e=this.validation(this.value))?(this.inputElement.setAttribute("aria-invalid","true"),this.showMessage(e)):this.inputElement.hasAttribute("aria-invalid")&&(this.inputElement.removeAttribute("aria-invalid"),this.hideMessage())),!e},t.prototype.stylesForType=function(e){switch(e){case wx.INFO:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground};case wx.WARNING:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground}}},t.prototype.classForType=function(e){switch(e){case wx.INFO:return"info";case wx.WARNING:return"warning";default:return"error"}},t.prototype._showMessage=function(){var e=this;if(this.contextViewProvider&&this.message){var t,n=function(){return t.style.width=Sa(e.element)+"px"};this.state="open",this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:kM.RIGHT,render:function(i){t=Ba(i,Cx(".monaco-inputbox-container")),n();var o={inline:!0,className:"monaco-inputbox-message"},r=e.message.formatContent?bx(e.message.content,o):function(e,t){void 0===t&&(t={});var n=vx(t);return n.textContent=e,n}(e.message.content,o);ea(r,e.classForType(e.message.type));var s=e.stylesForType(e.message.type);return r.style.backgroundColor=s.background?s.background.toString():null,r.style.border=s.border?"1px solid "+s.border:null,Ba(t,r),null},layout:n})}},t.prototype._hideMessage=function(){this.contextViewProvider&&"open"===this.state&&(this.state="idle",this.contextViewProvider.hideContextView())},t.prototype.onValueChange=function(){this._onDidChange.fire(this.value),this.validate(),this.updateMirror(),"open"===this.state&&this.contextViewProvider.layout()},t.prototype.updateMirror=function(){if(this.mirror){var e=this.value||this.placeholder,t=e.charCodeAt(e.length-1);this.mirror.textContent=e+(10===t?" ":""),this.layout()}},t.prototype.style=function(e){this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null,t=this.inputForeground?this.inputForeground.toString():null,n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.input.style.backgroundColor=e,this.input.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},t.prototype.layout=function(){if(this.mirror){var e=this.cachedHeight;this.cachedHeight=Ta(this.mirror),e!==this.cachedHeight&&(this.input.style.height=this.cachedHeight+"px",this._onDidHeightChange.fire(this.cachedHeight))}},t.prototype.dispose=function(){this._hideMessage(),this.element=null,this.input=null,this.contextViewProvider=null,this.message=null,this.placeholder=null,this.ariaLabel=null,this.validation=null,this.state=null,this.actionbar=null,e.prototype.dispose.call(this)},t}(bb),Ix=(n("IBAp"),n("Q9Nm"),{inputActiveOptionBorder:dp.fromHex("#007ACC")}),Sx=function(e){function t(t){var n=e.call(this)||this;return n._opts=jr(t),Or(n._opts,Ix,!1),n._checked=n._opts.isChecked,n.domNode=document.createElement("div"),n.domNode.title=n._opts.title,n.domNode.className="monaco-custom-checkbox "+n._opts.actionClassName+" "+(n._checked?"checked":"unchecked"),n.domNode.tabIndex=0,n.domNode.setAttribute("role","checkbox"),n.domNode.setAttribute("aria-checked",String(n._checked)),n.domNode.setAttribute("aria-label",n._opts.title),n.applyStyles(),n.onclick(n.domNode,function(e){n.checked=!n._checked,n._opts.onChange(!1),e.preventDefault()}),n.onkeydown(n.domNode,function(e){if(10===e.keyCode||3===e.keyCode)return n.checked=!n._checked,n._opts.onChange(!0),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"enabled",{get:function(){return"true"!==this.domNode.getAttribute("aria-disabled")},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.domNode.focus()},Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked"),this.applyStyles()},enumerable:!0,configurable:!0}),t.prototype.width=function(){return 22},t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),this.applyStyles()},t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent")},t.prototype.enable=function(){this.domNode.tabIndex=0,this.domNode.setAttribute("aria-disabled",String(!1))},t.prototype.disable=function(){Qa(this.domNode),this.domNode.setAttribute("aria-disabled",String(!0))},t}(bb),xx=Yo("caseDescription","Match Case"),Dx=Yo("wordsDescription","Match Whole Word"),Tx=Yo("regexDescription","Use Regular Expression"),Ex=function(e){function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:xx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),kx=function(e){function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:Dx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),jx=function(e){function t(t){return e.call(this,{actionClassName:"monaco-regex",title:Tx+t.appendTitle,isChecked:t.isChecked,onChange:t.onChange,onKeyDown:t.onKeyDown,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return Object(a.c)(t,e),t}(Sx),Ax=Yo("defaultLabel","input"),Ox=function(e){function t(t,n,i){var o=e.call(this)||this;return o._onDidOptionChange=o._register(new zt),o.onDidOptionChange=o._onDidOptionChange.event,o._onKeyDown=o._register(new zt),o.onKeyDown=o._onKeyDown.event,o._onMouseDown=o._register(new zt),o.onMouseDown=o._onMouseDown.event,o._onInput=o._register(new zt),o.onInput=o._onInput.event,o._onKeyUp=o._register(new zt),o.onKeyUp=o._onKeyUp.event,o._onCaseSensitiveKeyDown=o._register(new zt),o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event,o._lastHighlightFindOptions=0,o.contextViewProvider=n,o.width=i.width||100,o.placeholder=i.placeholder||"",o.validation=i.validation,o.label=i.label||Ax,o.inputActiveOptionBorder=i.inputActiveOptionBorder,o.inputBackground=i.inputBackground,o.inputForeground=i.inputForeground,o.inputBorder=i.inputBorder,o.inputValidationInfoBorder=i.inputValidationInfoBorder,o.inputValidationInfoBackground=i.inputValidationInfoBackground,o.inputValidationWarningBorder=i.inputValidationWarningBorder,o.inputValidationWarningBackground=i.inputValidationWarningBackground,o.inputValidationErrorBorder=i.inputValidationErrorBorder,o.inputValidationErrorBackground=i.inputValidationErrorBackground,o.regex=null,o.wholeWords=null,o.caseSensitive=null,o.domNode=null,o.inputBox=null,o.buildDomNode(i.appendCaseSensitiveLabel||"",i.appendWholeWordsLabel||"",i.appendRegexLabel||""),Boolean(t)&&t.appendChild(o.domNode),o.onkeydown(o.inputBox.inputElement,function(e){return o._onKeyDown.fire(e)}),o.onkeyup(o.inputBox.inputElement,function(e){return o._onKeyUp.fire(e)}),o.oninput(o.inputBox.inputElement,function(e){return o._onInput.fire()}),o.onmousedown(o.inputBox.inputElement,function(e){return o._onMouseDown.fire(e)}),o}return Object(a.c)(t,e),t.prototype.enable=function(){ta(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},t.prototype.disable=function(){ea(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},t.prototype.setEnabled=function(e){e?this.enable():this.disable()},t.prototype.clear=function(){this.clearValidation(),this.setValue(""),this.focus()},t.prototype.setWidth=function(e){this.width=e,this.domNode.style.width=this.width+"px",this.contextViewProvider.layout(),this.setInputWidth()},t.prototype.getValue=function(){return this.inputBox.value},t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)},t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder,this.inputBackground=e.inputBackground,this.inputForeground=e.inputForeground,this.inputBorder=e.inputBorder,this.inputValidationInfoBackground=e.inputValidationInfoBackground,this.inputValidationInfoBorder=e.inputValidationInfoBorder,this.inputValidationWarningBackground=e.inputValidationWarningBackground,this.inputValidationWarningBorder=e.inputValidationWarningBorder,this.inputValidationErrorBackground=e.inputValidationErrorBackground,this.inputValidationErrorBorder=e.inputValidationErrorBorder,this.applyStyles()},t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e),this.wholeWords.style(e),this.caseSensitive.style(e),this.inputBox.style({inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorBorder:this.inputValidationErrorBorder})}},t.prototype.select=function(){this.inputBox.select()},t.prototype.focus=function(){this.inputBox.focus()},t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e,this.setInputWidth()},t.prototype.getWholeWords=function(){return this.wholeWords.checked},t.prototype.setWholeWords=function(e){this.wholeWords.checked=e,this.setInputWidth()},t.prototype.getRegex=function(){return this.regex.checked},t.prototype.setRegex=function(e){this.regex.checked=e,this.setInputWidth(),this.validate()},t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},t.prototype.highlightFindOptions=function(){ta(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ea(this.domNode,"highlight-"+this._lastHighlightFindOptions)},t.prototype.setInputWidth=function(){var e=this.width-this.caseSensitive.width()-this.wholeWords.width()-this.regex.width();this.inputBox.width=e},t.prototype.buildDomNode=function(e,t,n){var i=this;this.domNode=document.createElement("div"),this.domNode.style.width=this.width+"px",ea(this.domNode,"monaco-findInput"),this.inputBox=this._register(new Nx(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation||null},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorBorder:this.inputValidationErrorBorder})),this.regex=this._register(new jx({appendTitle:n,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},inputActiveOptionBorder:this.inputActiveOptionBorder})),this.wholeWords=this._register(new kx({appendTitle:t,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},inputActiveOptionBorder:this.inputActiveOptionBorder})),this.caseSensitive=this._register(new Ex({appendTitle:e,isChecked:!1,onChange:function(e){i._onDidOptionChange.fire(e),e||i.inputBox.focus(),i.setInputWidth(),i.validate()},onKeyDown:function(e){i._onCaseSensitiveKeyDown.fire(e)},inputActiveOptionBorder:this.inputActiveOptionBorder}));var o=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=o.indexOf(document.activeElement);if(t>=0){var n=void 0;e.equals(17)?n=(t+1)%o.length:e.equals(15)&&(n=0===t?o.length-1:t-1),e.equals(9)?o[t].blur():n>=0&&o[n].focus(),Wa.stop(e,!0)}}}),this.setInputWidth();var r=document.createElement("div");r.className="controls",r.appendChild(this.caseSensitive.domNode),r.appendChild(this.wholeWords.domNode),r.appendChild(this.regex.domNode),this.domNode.appendChild(r)},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.OPTION_CHANGE="optionChange",t}(bb),Px=Yo("label.find","Find"),Rx=Yo("placeholder.find","Find"),zx=Yo("label.previousMatchButton","Previous match"),Wx=Yo("label.nextMatchButton","Next match"),Fx=Yo("label.toggleSelectionFind","Find in selection"),Hx=Yo("label.closeButton","Close"),Bx=Yo("label.replace","Replace"),Vx=Yo("placeholder.replace","Replace"),Yx=Yo("label.replaceButton","Replace"),Zx=Yo("label.replaceAllButton","Replace All"),Ux=Yo("label.toggleReplaceButton","Toggle Replace mode"),Gx=Yo("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999),Qx=Yo("label.matchesLocation","{0} of {1}"),Xx=Yo("label.noResults","No Results"),Kx=69,Jx=17+(Kx+3+1)+92+2,qx=function(){return function(e){this.afterLineNumber=e,this.heightInPx=34,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}}(),$x=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this)||this;return u._codeEditor=t,u._controller=n,u._state=i,u._contextViewProvider=o,u._keybindingService=r,u._isVisible=!1,u._isReplaceVisible=!1,u._register(u._state.onFindReplaceStateChange(function(e){return u._onStateChanged(e)})),u._buildDomNode(),u._updateButtons(),u._tryUpdateWidgetWidth(),u._register(u._codeEditor.onDidChangeConfiguration(function(e){e.readOnly&&(u._codeEditor.getConfiguration().readOnly&&u._state.change({isReplaceRevealed:!1},!1),u._updateButtons()),e.layoutInfo&&u._tryUpdateWidgetWidth()})),u._register(u._codeEditor.onDidChangeCursorSelection(function(){u._isVisible&&u._updateToggleSelectionFindButton()})),u._register(u._codeEditor.onDidFocusEditor(function(){if(u._isVisible){var e=u._controller.getGlobalBufferTerm();e&&e!==u._state.searchString&&(u._state.change({searchString:e},!0),u._findInput.select())}})),u._findInputFocused=tx.bindTo(s),u._findFocusTracker=u._register(Ha(u._findInput.inputBox.inputElement)),u._register(u._findFocusTracker.onDidFocus(function(){u._findInputFocused.set(!0),u._updateSearchScope()})),u._register(u._findFocusTracker.onDidBlur(function(){u._findInputFocused.set(!1)})),u._replaceInputFocused=nx.bindTo(s),u._replaceFocusTracker=u._register(Ha(u._replaceInputBox.inputElement)),u._register(u._replaceFocusTracker.onDidFocus(function(){u._replaceInputFocused.set(!0),u._updateSearchScope()})),u._register(u._replaceFocusTracker.onDidBlur(function(){u._replaceInputFocused.set(!1)})),u._codeEditor.addOverlayWidget(u),u._viewZone=new qx(0),u._applyTheme(a.getTheme()),u._register(a.onThemeChange(u._applyTheme.bind(u))),u._register(u._codeEditor.onDidChangeModel(function(e){u._isVisible&&void 0!==u._viewZoneId&&u._codeEditor.changeViewZones(function(e){e.removeZone(u._viewZoneId),u._viewZoneId=void 0})})),u._register(u._codeEditor.onDidScrollChange(function(e){e.scrollTopChanged?u._layoutViewZone():setTimeout(function(){u._layoutViewZone()},0)})),u}return Object(a.c)(t,e),t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return this._isVisible?{preference:Fn.TOP_RIGHT_CORNER}:null},t.prototype._onStateChanged=function(e){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._replaceInputBox.width=this._findInput.inputBox.width,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._toggleSelectionFind.checked=!!this._state.searchScope,this._updateToggleSelectionFindButton()),(e.searchString||e.matchesCount||e.matchesPosition)&&(na(this._domNode,"no-results",this._state.searchString.length>0&&0===this._state.matchesCount),this._updateMatchesCount()),(e.searchString||e.currentMatch)&&this._layoutViewZone()},t.prototype._updateMatchesCount=function(){var e;if(this._matchesCount.style.minWidth=Kx+"px",this._matchesCount.title=this._state.matchesCount>=19999?Gx:"",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild),this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?"),e=Ni(Qx,n,t)}else e=Xx;this._matchesCount.appendChild(document.createTextNode(e)),Kx=Math.max(Kx,this._matchesCount.clientWidth)},t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection();this._toggleSelectionFind.setEnabled(this._isVisible&&(this._toggleSelectionFind.checked||!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn)))},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),na(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;if(!this._isVisible){this._isVisible=!0;var n=this._codeEditor.getSelection();this._toggleSelectionFind.checked=!(!n||n.startLineNumber===n.endLineNumber&&n.startColumn===n.endColumn||!this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection),this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ea(t._domNode,"visible"),t._domNode.setAttribute("aria-hidden","false")},0),this._codeEditor.layoutOverlayWidget(this);var i=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&n){var o=Na(this._codeEditor.getDomNode()),r=this._codeEditor.getScrolledVisiblePosition(n.getStartPosition()),s=o.left+r.left;if(r.topn.startLineNumber&&(i=!1);var a=La(this._domNode).left;s>a&&(i=!1);var u=this._codeEditor.getScrolledVisiblePosition(n.getEndPosition());o.left+u.left>a&&(i=!1)}}this._showViewZone(i)}},t.prototype._hide=function(e){var t=this;this._isVisible&&(this._isVisible=!1,this._updateButtons(),ta(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._codeEditor.changeViewZones(function(e){void 0!==t._viewZoneId&&(e.removeZone(t._viewZoneId),t._viewZoneId=void 0,t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()-t._viewZone.heightInPx))}))},t.prototype._layoutViewZone=function(){var e=this;this._isVisible&&void 0===this._viewZoneId&&this._codeEditor.changeViewZones(function(t){e._viewZone.heightInPx=e._state.isReplaceRevealed?64:34,e._viewZoneId=t.addZone(e._viewZone),e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+e._viewZone.heightInPx)})},t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0),this._isVisible&&this._codeEditor.changeViewZones(function(n){var i=34;void 0!==t._viewZoneId?(t._state.isReplaceRevealed?(t._viewZone.heightInPx=64,i=30):(t._viewZone.heightInPx=34,i=-30),n.removeZone(t._viewZoneId)):t._viewZone.heightInPx=34,t._viewZoneId=n.addZone(t._viewZone),e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+i)})},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(ef),inputBackground:e.getColor(Jg),inputForeground:e.getColor(qg),inputBorder:e.getColor($g),inputValidationInfoBackground:e.getColor(tf),inputValidationInfoBorder:e.getColor(nf),inputValidationWarningBackground:e.getColor(of),inputValidationWarningBorder:e.getColor(rf),inputValidationErrorBackground:e.getColor(sf),inputValidationErrorBorder:e.getColor(af)};this._findInput.style(t),this._replaceInputBox.style(t)},t.prototype._tryUpdateWidgetWidth=function(){if(this._isVisible){var e=this._codeEditor.getConfiguration().layoutInfo.width,t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth,n=!1,i=!1,o=!1;if(this._resized&&Sa(this._domNode)>411)return this._domNode.style.maxWidth=e-28-t-15+"px",void(this._replaceInputBox.inputElement.style.width=Sa(this._findInput.inputBox.inputElement)+"px");if(439+t>=e&&(i=!0),439+t-Kx>=e&&(o=!0),439+t-Kx>=e+50&&(n=!0),na(this._domNode,"collapsed-find-widget",n),na(this._domNode,"narrow-find-widget",o),na(this._domNode,"reduced-find-widget",i),o||n||(this._domNode.style.maxWidth=e-28-t-15+"px"),this._resized){var r=Sa(this._findInput.inputBox.inputElement);r>0&&(this._replaceInputBox.inputElement.style.width=r+"px")}}},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._updateSearchScope=function(){if(this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1)),e.startLineNumber!==e.endLineNumber&&(sn.equalsRange(e,this._state.currentMatch)||this._state.change({searchScope:e},!0))}},t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()},t.prototype._onFindInputKeyDown=function(e){return e.equals(3)?(this._codeEditor.getAction(lx.NextMatchFindAction).run().done(null,xt),void e.preventDefault()):e.equals(1027)?(this._codeEditor.getAction(lx.PreviousMatchFindAction).run().done(null,xt),void e.preventDefault()):e.equals(2)?(this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype._onReplaceInputKeyDown=function(e){return e.equals(3)?(this._controller.replace(),void e.preventDefault()):e.equals(2051)?(this._controller.replaceAll(),void e.preventDefault()):e.equals(2)?(this._findInput.focusOnCaseSensitive(),void e.preventDefault()):e.equals(1026)?(this._findInput.focus(),void e.preventDefault()):e.equals(2066)?(this._codeEditor.focus(),void e.preventDefault()):void 0},t.prototype.getHorizontalSashTop=function(e){return 0},t.prototype.getHorizontalSashLeft=function(e){return 0},t.prototype.getHorizontalSashWidth=function(e){return 500},t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new Ox(null,this._contextViewProvider,{width:221,label:Px,placeholder:Rx,appendCaseSensitiveLabel:this._keybindingLabelFor(lx.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(lx.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(lx.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._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)})),this._register(this._findInput.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())})),mn.c&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new tD({label:zx+this._keybindingLabelFor(lx.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(lx.PreviousMatchFindAction).run().done(null,xt)}})),this._nextBtn=this._register(new tD({label:Wx+this._keybindingLabelFor(lx.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(lx.NextMatchFindAction).run().done(null,xt)}}));var t=document.createElement("div");return t.className="find-part",t.appendChild(this._findInput.domNode),t.appendChild(this._matchesCount),t.appendChild(this._prevBtn.domNode),t.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new eD({parent:t,title:Fx+this._keybindingLabelFor(lx.ToggleSearchScopeCommand),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 tD({label:Hx+this._keybindingLabelFor(lx.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){t.equals(2)&&e._isReplaceVisible&&(e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus(),t.preventDefault())}})),t.appendChild(this._closeBtn.domNode),t},t.prototype._buildReplacePart=function(){var e=this,t=document.createElement("div");t.className="replace-input",t.style.width="221px",this._replaceInputBox=this._register(new Nx(t,null,{ariaLabel:Bx,placeholder:Vx})),this._register(ra(this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)})),this._register(ra(this._replaceInputBox.inputElement,"input",function(t){e._state.change({replaceString:e._replaceInputBox.value},!1)})),this._replaceBtn=this._register(new tD({label:Yx+this._keybindingLabelFor(lx.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){t.equals(1026)&&(e._closeBtn.focus(),t.preventDefault())}})),this._replaceAllBtn=this._register(new tD({label:Zx+this._keybindingLabelFor(lx.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");return n.className="replace-part",n.appendChild(t),n.appendChild(this._replaceBtn.domNode),n.appendChild(this._replaceAllBtn.domNode),n},t.prototype._buildDomNode=function(){var e=this,t=this._buildFindPart(),n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new tD({label:Ux,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1),e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width),e._showViewZone()}})),this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width="411px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(t),this._domNode.appendChild(n),this._buildSash()},t.prototype._buildSash=function(){var e=this;this._resizeSash=new v_(this._domNode,this,{orientation:y_.VERTICAL}),this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(n){t=Sa(e._domNode)})),this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var i=t+n.startX-n.currentX;if(!(i<411)){var o=i-Jx;i>(parseFloat(_a(e._domNode).maxWidth)||0)||(e._domNode.style.width=i+"px",e._isReplaceVisible&&(e._replaceInputBox.width=o))}}))},t.ID="editor.contrib.findWidget",t}(bb),eD=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._domNode.tabIndex=0,i._checkbox=document.createElement("input"),i._checkbox.type="checkbox",i._checkbox.className="checkbox",i._checkbox.id="checkbox-"+t._COUNTER++,i._checkbox.tabIndex=-1,i._label=document.createElement("label"),i._label.className="label",i._label.htmlFor=i._checkbox.id,i._label.tabIndex=-1,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 Object(a.c)(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.domNode.tabIndex=0):(this.disable(),this.domNode.tabIndex=-1)},t._COUNTER=0,t}(bb),tD=function(e){function t(t){var n=e.call(this)||this;return n._opts=t,n._domNode=document.createElement("div"),n._domNode.title=n._opts.label,n._domNode.tabIndex=0,n._domNode.className="button "+n._opts.className,n._domNode.setAttribute("role","button"),n._domNode.setAttribute("aria-label",n._opts.label),n.onclick(n._domNode,function(e){n._opts.onTrigger(),e.preventDefault()}),n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3))return n._opts.onTrigger(),void e.preventDefault();n._opts.onKeyDown&&n._opts.onKeyDown(e)}),n}return Object(a.c)(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){na(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){na(this._domNode,e,t)},t}(bb);wm(function(e,t){function n(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")}n(".findMatch",e.getColor(Ff)),n(".currentFindMatch",e.getColor(Wf)),n(".findScope",e.getColor(Hf)),n(".find-widget",e.getColor(kf));var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Vf);o&&t.addRule(".monaco-editor .findMatch { border: 1px dotted "+o+"; -moz-box-sizing: border-box; box-sizing: border-box; }");var r=e.getColor(Bf);r&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+r+"; padding: 1px; -moz-box-sizing: border-box; box-sizing: border-box; }");var s=e.getColor(Yf);s&&t.addRule(".monaco-editor .findScope { border: 1px dashed "+s+"; }");var a=e.getColor(Ug);a&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+a+"; }");var u=e.getColor(Yg);u&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+u+"; }");var l=e.getColor(jf);l&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+l+"; width: 3px !important; margin-left: -4px;}")});var nD=function(e){function t(t,n,i,o){var r=e.call(this)||this;r._hideSoon=r._register(new _s(function(){return r._hide()},2e3)),r._isVisible=!1,r._editor=t,r._state=n,r._keybindingService=i,r._domNode=document.createElement("div"),r._domNode.className="findOptionsWidget",r._domNode.style.display="none",r._domNode.style.top="10px",r._domNode.setAttribute("role","presentation"),r._domNode.setAttribute("aria-hidden","true");var s=o.getTheme().getColor(ef);return r.caseSensitive=r._register(new Ex({appendTitle:r._keybindingLabelFor(lx.ToggleCaseSensitiveCommand),isChecked:r._state.matchCase,onChange:function(e){r._state.change({matchCase:r.caseSensitive.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.caseSensitive.domNode),r.wholeWords=r._register(new kx({appendTitle:r._keybindingLabelFor(lx.ToggleWholeWordCommand),isChecked:r._state.wholeWord,onChange:function(e){r._state.change({wholeWord:r.wholeWords.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.wholeWords.domNode),r.regex=r._register(new jx({appendTitle:r._keybindingLabelFor(lx.ToggleRegexCommand),isChecked:r._state.isRegex,onChange:function(e){r._state.change({isRegex:r.regex.checked},!1)},inputActiveOptionBorder:s})),r._domNode.appendChild(r.regex.domNode),r._editor.addOverlayWidget(r),r._register(r._state.onFindReplaceStateChange(function(e){var t=!1;e.isRegex&&(r.regex.checked=r._state.isRegex,t=!0),e.wholeWord&&(r.wholeWords.checked=r._state.wholeWord,t=!0),e.matchCase&&(r.caseSensitive.checked=r._state.matchCase,t=!0),!r._state.isRevealed&&t&&r._revealTemporarily()})),r._register(sa(r._domNode,function(e){return r._onMouseOut()})),r._register(oa(r._domNode,"mouseover",function(e){return r._onMouseOver()})),r._applyTheme(o.getTheme()),r._register(o.onThemeChange(r._applyTheme.bind(r))),r}return Object(a.c)(t,e),t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);return t?" ("+t.getLabel()+")":""},t.prototype.dispose=function(){this._editor.removeOverlayWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype.getDomNode=function(){return this._domNode},t.prototype.getPosition=function(){return{preference:Fn.TOP_RIGHT_CORNER}},t.prototype.highlightFindOptions=function(){this._revealTemporarily()},t.prototype._revealTemporarily=function(){this._show(),this._hideSoon.schedule()},t.prototype._onMouseOut=function(){this._hideSoon.schedule()},t.prototype._onMouseOver=function(){this._hideSoon.cancel()},t.prototype._show=function(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")},t.prototype._hide=function(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")},t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(ef)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)},t.ID="editor.contrib.findOptionsWidget",t}(bb);function iD(e){var t=e.getSelection();if(t.startLineNumber===t.endLineNumber){if(!t.isEmpty())return e.getModel().getValueInRange(t);var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}return null}wm(function(e,t){var n=e.getColor(kf);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Ug);o&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+o+"; }")});var oD=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r._editor=t,r._findWidgetVisible=ex.bindTo(n),r._storageService=i,r._clipboardService=o,r._updateHistoryDelayer=new gs(500),r._currentHistoryNavigator=new QS,r._state=r._register(new px),r.loadQueryState(),r._register(r._state.onFindReplaceStateChange(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,matchCase:r._storageService.getBoolean("editor.matchCase",vg.WORKSPACE,!1),wholeWord:r._storageService.getBoolean("editor.wholeWord",vg.WORKSPACE,!1),isRegex:r._storageService.getBoolean("editor.isRegex",vg.WORKSPACE,!1)},!1),e&&r._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1})})),r}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this.disposeModel(),e.prototype.dispose.call(this)},t.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},t.prototype.getId=function(){return t.ID},t.prototype._onStateChanged=function(e){this.saveQueryState(e),e.updateHistory&&e.searchString&&this._delayedUpdateHistory(),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)},t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,vg.WORKSPACE),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,vg.WORKSPACE),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,vg.WORKSPACE)},t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",vg.WORKSPACE,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",vg.WORKSPACE,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",vg.WORKSPACE,this._state.isRegex)},!1)},t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},t.prototype._updateHistory=function(){this._state.searchString&&this._currentHistoryNavigator.add(this._state.searchString)},t.prototype.getState=function(){return this._state},t.prototype.getHistory=function(){return this._currentHistoryNavigator},t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1)},t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1)},t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1)},t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else{var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,1)),e.isEmpty()||this._state.change({searchScope:e},!0)}},t.prototype.setSearchString=function(e){this._state.isRegex&&(e=Si(e)),this._state.change({searchString:e},!1)},t.prototype.highlightFindOptions=function(){},t.prototype._start=function(e){if(this.disposeModel(),this._editor.getModel()){var t,n={isRevealed:!0};e.seedSearchStringFromSelection&&(t=iD(this._editor))&&(n.searchString=this._state.isRegex?Si(t):t),!n.searchString&&e.seedSearchStringFromGlobalClipboard&&(t=this.getGlobalBufferTerm())&&(n.searchString=t),e.forceRevealReplace?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),this._state.change(n,!1),this._model||(this._model=new cx(this._editor,this._state))}},t.prototype.start=function(e){this._start(e)},t.prototype.moveToNextMatch=function(){return!!this._model&&(this._model.moveToNextMatch(),!0)},t.prototype.moveToPrevMatch=function(){return!!this._model&&(this._model.moveToPrevMatch(),!0)},t.prototype.replace=function(){return!!this._model&&(this._model.replace(),!0)},t.prototype.replaceAll=function(){return!!this._model&&(this._model.replaceAll(),!0)},t.prototype.selectAllMatches=function(){return!!this._model&&(this._model.selectAllMatches(),this._editor.focus(),!0)},t.prototype.showPreviousFindTerm=function(){var e=this._currentHistoryNavigator.previous();return e&&this._state.change({searchString:e},!1,!1),!0},t.prototype.showNextFindTerm=function(){var e=this._currentHistoryNavigator.next();return e&&this._state.change({searchString:e},!1,!1),!0},t.prototype.getGlobalBufferTerm=function(){return this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForHavingARichMode()?this._clipboardService.readFindText():""},t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForHavingARichMode()&&this._clipboardService.writeFindText(e)},t.ID="editor.contrib.findController",t=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,wg),Object(a.d)(3,gx)],t)}(Ct),rD=function(e){function t(t,n,i,o,r,s,a){var u=e.call(this,t,i,s,a)||this;return u._contextViewService=n,u._contextKeyService=i,u._keybindingService=o,u._themeService=r,u}return Object(a.c)(t,e),t.prototype._start=function(t){this._widget||this._createFindWidget(),e.prototype._start.call(this,t),2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()},t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},t.prototype._createFindWidget=function(){this._widget=this._register(new $x(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService)),this._findOptionsWidget=this._register(new nD(this._editor,this._state,this._keybindingService,this._themeService))},Object(a.b)([Object(a.d)(1,Kn),Object(a.d)(2,Wo),Object(a.d)(3,pi),Object(a.d)(4,mm),Object(a.d)(5,wg),Object(a.d)(6,Xn(gx))],t)}(oD),sD=function(e){function t(){return e.call(this,{id:lx.StartFindAction,label:Yo("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0})},t}(Xp),aD=function(e){function t(){return e.call(this,{id:lx.StartFindWithSelection,label:Yo("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:null,mac:{primary:2083}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0}),n.setGlobalBufferTerm(n.getState().searchString))},t}(Xp),uD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);n&&!this._run(n)&&(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0}),this._run(n))},t}(Xp),lD=function(e){function t(){return e.call(this,{id:lx.NextMatchFindAction,label:Yo("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:wp.focus,primary:61,mac:{primary:2085,secondary:[61]}}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(uD),cD=function(e){function t(){return e.call(this,{id:lx.PreviousMatchFindAction,label:Yo("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:wp.focus,primary:1085,mac:{primary:3109,secondary:[1085]}}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(uD),dD=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oD.get(t);if(n){var i=iD(t);i&&n.setSearchString(i),this._run(n)||(n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0}),this._run(n))}},t}(Xp),hD=function(e){function t(){return e.call(this,{id:lx.NextSelectionMatchFindAction,label:Yo("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:wp.focus,primary:2109}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToNextMatch()},t}(dD),pD=function(e){function t(){return e.call(this,{id:lx.PreviousSelectionMatchFindAction,label:Yo("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:wp.focus,primary:3133}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.moveToPrevMatch()},t}(dD),gD=function(e){function t(){return e.call(this,{id:lx.StartFindReplaceAction,label:Yo("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){if(!t.getConfiguration().readOnly){var n=oD.get(t),i=t.getSelection(),o=!i.isEmpty()&&i.startLineNumber===i.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,r=n.getState().searchString||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:r,shouldAnimate:!0})}},t}(Xp),fD=function(e){function t(){return e.call(this,{id:lx.ShowNextFindTermAction,label:Yo("showNextFindTermAction","Show Next Find Term"),alias:"Show Next Find Term",precondition:ex,kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:To.and(tx,wp.focus),primary:ux.primary,mac:ux.mac,win:ux.win,linux:ux.linux}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.showNextFindTerm()},t}(uD),mD=function(e){function t(){return e.call(this,{id:lx.ShowPreviousFindTermAction,label:Yo("showPreviousFindTermAction","Show Previous Find Term"),alias:"Find Show Previous Find Term",precondition:ex,kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:To.and(tx,wp.focus),primary:ax.primary,mac:ax.mac,win:ax.win,linux:ax.linux}})||this}return Object(a.c)(t,e),t.prototype._run=function(e){return e.showPreviousFindTerm()},t}(uD);eg(rD),$p(sD),$p(aD),$p(lD),$p(cD),$p(hD),$p(pD),$p(gD),$p(fD),$p(mD);var yD=Qp.bindToContribution(oD.get);qp(new yD({id:lx.CloseFindWidgetCommand,precondition:ex,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:9,secondary:[1033]}})),qp(new yD({id:lx.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:ix.primary,mac:ix.mac,win:ix.win,linux:ix.linux}})),qp(new yD({id:lx.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:ox.primary,mac:ox.mac,win:ox.win,linux:ox.linux}})),qp(new yD({id:lx.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:rx.primary,mac:rx.mac,win:rx.win,linux:rx.linux}})),qp(new yD({id:lx.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:sx.primary,mac:sx.mac,win:sx.win,linux:sx.linux}})),qp(new yD({id:lx.ReplaceOneAction,precondition:ex,handler:function(e){return e.replace()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:3094}})),qp(new yD({id:lx.ReplaceAllAction,precondition:ex,handler:function(e){return e.replaceAll()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:2563}})),qp(new yD({id:lx.SelectAllMatchesAction,precondition:ex,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:qa.WEIGHT.editorContrib(5),kbExpr:wp.focus,primary:515}})),n("Vcj/");var vD=65535,bD=function(){function e(e,t,n){if(e.length!==t.length||e.length>vD)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new Uint32Array(Math.ceil(e.length/32)),this._types=n}return e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var t=[],n=function(n,i){var o=t[t.length-1];return e.getStartLineNumber(o)<=n&&e.getEndLineNumber(o)>=i},i=0,o=this._startIndexes.length;i16777215||s>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;t.length>0&&!n(r,s);)t.pop();var a=t.length>0?t[t.length-1]:-1;t.push(i),this._startIndexes[i]=r+((255&a)<<24),this._endIndexes[i]=s+((65280&a)<<16)}}},Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),e.prototype.getStartLineNumber=function(e){return 16777215&this._startIndexes[e]},e.prototype.getEndLineNumber=function(e){return 16777215&this._endIndexes[e]},e.prototype.getType=function(e){return this._types?this._types[e]:void 0},e.prototype.hasTypes=function(){return!!this._types},e.prototype.isCollapsed=function(e){return 0!=(this._collapseStates[e/32|0]&1<>>24)+((4278190080&this._endIndexes[e])>>>16);return t===vD?-1:t},e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t},e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1},e.prototype.toString=function(){for(var e=[],t=0;t=this.endLineNumber},e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber},e.prototype.hidesLine=function(e){return this.startLineNumber=d))break;o(a,c===d),a++}}u=s()}for(;a0?e:null},e.prototype.applyMemento=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n=0;){var r=this._regions.toRegion(i);t&&!t(r,o)||n.push(r),o++,i=r.parentIndex}return n},e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null},e.prototype.getRegionsInside=function(e,t){for(var n=[],i=t&&2===t.length,o=i?[]:null,r=e?e.endLineNumber:Number.MAX_VALUE,s=e?e.regionIndex+1:0,a=this._regions.length;s0&&!u.containedBy(o[o.length-1]);)o.pop();o.push(u),t(u,o.length)&&n.push(u)}else t&&!t(u)||n.push(u)}return n},e}();function wD(e,t,n,i){void 0===n&&(n=Number.MAX_VALUE);var o=[];if(i&&i.length>0)for(var r=0,s=i;r1)){var u=e.getRegionsInside(a,function(e,i){return e.isCollapsed!==t&&i=0;s--)if(n!==o.isCollapsed(s)){var a=o.getStartLineNumber(s);t.test(i.getLineContent(a))&&r.push(o.toRegion(s))}e.toggleCollapseState(r)}function ND(e,t,n){for(var i=e.regions,o=[],r=i.length-1;r>=0;r--)n!==i.isCollapsed(r)&&t===i.getType(r)&&o.push(i.toRegion(r));e.toggleCollapseState(o)}var ID=function(){function e(e){this.editor=e,this.COLLAPSED_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"}),this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding"}),this.EXPANDED_VISUAL_DECORATION=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,linesDecorationsClassName:"folding alwaysShowFoldIcons"}),this.autoHideFoldingControls=!0}return e.prototype.getDecorationOption=function(e){return e?this.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?this.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:this.EXPANDED_VISUAL_DECORATION},e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)},e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)},e}(),SD=function(){function e(e){var t=this;this._updateEventEmitter=new zt,this._foldingModel=e,this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()}),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),e.prototype.updateHiddenRanges=function(){for(var e=!1,t=[],n=0,i=0,o=Number.MAX_VALUE,r=-1,s=this._foldingModel.regions;n0},e.prototype.isHidden=function(e){return null!==xD(this._hiddenRanges,e)},e.prototype.adjustSelections=function(e){for(var t=this,n=!1,i=this._foldingModel.textModel,o=null,r=function(e){return o&&function(e,t){return e>=o.startLineNumber&&e<=o.endLineNumber}(e)||(o=xD(t._hiddenRanges,e)),o?o.startLineNumber-1:null},s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},e}();function xD(e,t){var n=function(e,n){var i=0,o=e.length;if(0===o)return 0;for(;i=0&&e[n].endLineNumber>=t?e[n]:null}var DD=function(){function e(){}return e.prototype.compute=function(e,t){var n=Bc.getFoldingRules(e.getLanguageIdentifier().id);return Nt.b.as(function(e,t,n,i){void 0===i&&(i=5e3);var o=e.getOptions().tabSize,r=new TD(i),s=void 0;n&&(s=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var a=[];a.push({indent:-1,line:e.getLineCount()+1,marker:!1});for(var u=e.getLineCount();u>0;u--){var l=e.getLineContent(u),c=uh.computeIndentLevel(l,o),d=a[a.length-1];if(-1!==c){var h=void 0;if(s&&(h=l.match(s))){if(!h[1]){a.push({indent:-2,line:u,marker:!0});continue}for(var p=a.length-1;p>0&&!a[p].marker;)p--;if(p>0){a.length=p+1,r.insertFirst(u,(d=a[p]).line,c),d.marker=!1,d.indent=c,d.line=u;continue}}if(d.indent>c){do{a.pop(),d=a[a.length-1]}while(d.indent>c);var g=d.line-1;g-u>=1&&r.insertFirst(u,g,c)}d.indent===c?d.line=u:a.push({indent:c,line:u,marker:!1})}else t&&!d.marker&&(d.line=u)}return r.toIndentRanges(e)}(e,n&&n.offSide,n&&n.markers))},e}(),TD=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.insertFirst=function(e,t,n){if(!(e>16777215||t>16777215)){var i=this._length;this._startIndexes[i]=e,this._endIndexes[i]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}},e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){for(var t=new Uint32Array(this._length),n=new Uint32Array(this._length),i=this._length-1,o=0;i>=0;i--,o++)t[o]=this._startIndexes[i],n[o]=this._endIndexes[i];return new bD(t,n)}var r=0,s=this._indentOccurrences.length;for(i=0;ithis._foldingRangesLimit){s=i;break}r+=a}}var u=e.getOptions().tabSize;for(t=new Uint32Array(r),n=new Uint32Array(r),i=this._length-1,o=0;i>=0;i--){var l=this._startIndexes[i],c=e.getLineContent(l);uh.computeIndentLevel(c,u)0&&l.endLineNumber>l.startLineNumber&&l.endLineNumber<=s&&i.push({startLineNumber:l.startLineNumber,endLineNumber:l.endLineNumber,rank:o,type:l.type})}}}return i},Dt)}(this.providers,e,t).then(function(e){return e?function(t){for(var n=e.sort(function(e,t){var n=e.startLineNumber-t.startLineNumber;return 0===n&&(n=e.rank-t.rank),n}),i=new jD(5e3),o=null,r=[],s=0,a=n;so.startLineNumber)if(u.endLineNumber<=o.endLineNumber)r.push(o),o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length);else if(u.startLineNumber>o.endLineNumber){do{o=r.pop()}while(o&&u.startLineNumber>o.endLineNumber);r.push(o),o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length)}}else o=u,i.add(u.startLineNumber,u.endLineNumber,u.type,r.length)}return i.toIndentRanges()}():null})},e}(),jD=function(){function e(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}return e.prototype.add=function(e,t,n,i){if(!(e>16777215||t>16777215)){var o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=i,this._types[o]=n,this._length++,i<30&&(this._nestingLevelCounts[i]=(this._nestingLevelCounts[i]||0)+1)}},e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var e=new Uint32Array(this._length),t=new Uint32Array(this._length),n=0;nthis._foldingRangesLimit){o=n;break}i+=r}}e=new Uint32Array(i),t=new Uint32Array(i);for(var s=[],a=(n=0,0);n0){for(var i=[],o=function(n){var o=n.selectionStartLineNumber;e.hiddenRangeModel.isHidden(o)&&i.push.apply(i,t.getAllRegionsAtLine(o,function(e){return e.isCollapsed&&o>e.startLineNumber}))},r=0,s=n;r0){var s=i.modifyPosition(e.getStartPosition(),r);e=new sn(s.lineNumber,s.column,e.endLineNumber,e.endColumn),t=t.substring(r),o=o.substr(r)}var a=io(t,o);if(a>0){var u=i.modifyPosition(e.getEndPosition(),-a);e=new sn(e.startLineNumber,e.startColumn,u.lineNumber,u.column),t=t.substring(0,t.length-a),o=o.substring(0,o.length-a)}return{text:t,range:e,forceMoveMarkers:n}},e}(),eT=function(){function e(e,t){if(this.flags=t,0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?Ni("{0}#{1}",n.uri.toString(),n.getVersionId()):null}0!=(4&this.flags)&&(this.position=e.getPosition()),0!=(2&this.flags)&&(this.selection=e.getSelection()),0!=(8&this.flags)&&(this.scrollLeft=e.getScrollLeft(),this.scrollTop=e.getScrollTop())}return e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.modelVersionId===n.modelVersionId&&this.scrollLeft===n.scrollLeft&&this.scrollTop===n.scrollTop&&!(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))&&!(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))},e.prototype.validate=function(t){return this._equals(new e(t,this.flags))},e}();function tT(e){if((e=e.filter(function(e){return e.range})).length){for(var t=e[0].range,n=1;n1)){var n=this.editor.getModel(),i=this.editor.getPosition(),o=!1,r=this.editor.onDidChangeModelContent(function(e){if(e.isFlush)return o=!0,void r.dispose();for(var t=0,n=e.changes.length;t1)){var n=this.editor.getModel(),i=n.getOptions(),o=i.tabSize,r=i.insertSpaces,s=new eT(this.editor,5);KD(n,e,{tabSize:o,insertSpaces:r}).then(function(e){return t.workerService.computeMoreMinimalEdits(n.uri,e)}).then(function(e){s.validate(t.editor)&&!ur(e)&&($D.execute(t.editor,e),tT(e))})}},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.callOnDispose=_t(this.callOnDispose),this.callOnModel=_t(this.callOnModel)},e.ID="editor.contrib.formatOnPaste",e=Object(a.b)([Object(a.d)(1,Vo)],e)}(),oT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=e.get(Vo),i=e.get(lu),o=this._getFormattingEdits(t);if(!o)return Nt.b.as(void 0);var r=new eT(t,5);return o.then(function(e){return n.computeMoreMinimalEdits(t.getModel().uri,e)}).then(function(e){r.validate(t)&&!ur(e)&&($D.execute(t,e),tT(e),t.focus())},function(e){if(!(e instanceof Error&&e.name===XD.Name))throw e;i.info(Yo("no.provider","There is no formatter for '{0}'-files installed.",t.getModel().getLanguageIdentifier().language))})},t}(Xp),rT=function(e){function t(){return e.call(this,{id:"editor.action.formatDocument",label:Yo("formatDocument.label","Format Document"),alias:"Format Document",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:1572,linux:{primary:3111}},menuOpts:{when:wp.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Object(a.c)(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions();return JD(t,{tabSize:n.tabSize,insertSpaces:n.insertSpaces})},t}(oT),sT=function(e){function t(){return e.call(this,{id:"editor.action.formatSelection",label:Yo("formatSelection.label","Format Selection"),alias:"Format Code",precondition:To.and(wp.writable,wp.hasNonEmptySelection),kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,2084)},menuOpts:{when:To.and(wp.hasDocumentSelectionFormattingProvider,wp.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Object(a.c)(t,e),t.prototype._getFormattingEdits=function(e){var t=e.getModel(),n=t.getOptions(),i=n.tabSize,o=n.insertSpaces;return KD(t,e.getSelection(),{tabSize:i,insertSpaces:o})},t}(oT);function aT(e,t,n,i){var o=n.ordered(e).map(function(n,o){return hs(function(o){return i(n,e,t,o)}).then(void 0,function(e){return Dt(e),null})});return Nt.b.join(o).then(dr).then(function(e){return e.filter(function(e){return!!e})})}function uT(e,t){return aT(e,t,Nl,function(e,t,n,i){return e.provideDefinition(t,n,i)})}function lT(e,t){return aT(e,t,Il,function(e,t,n,i){return e.provideImplementation(t,n,i)})}function cT(e,t){return aT(e,t,Sl,function(e,t,n,i){return e.provideTypeDefinition(t,n,i)})}eg(nT),eg(iT),$p(rT),$p(sT),hi.registerCommand("editor.action.format",function(e){var t=e.get(Fo).getFocusedCodeEditor();if(t)return(new(function(e){function t(){return e.call(this,{})||this}return Object(a.c)(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()?JD(t,{tabSize:o,insertSpaces:r}):KD(t,n,{tabSize:o,insertSpaces:r})},t}(oT))).run(e,t)}),Jp("_executeDefinitionProvider",uT),Jp("_executeImplementationProvider",lT),Jp("_executeTypeDefinitionProvider",cT),n("Bv73"),n("0u1n");var dT={badgeBackground:dp.fromHex("#4D4D4D"),badgeForeground:dp.fromHex("#FFFFFF")},hT=function(){function e(e,t){this.options=t||Object.create(null),Or(this.options,dT,!1),this.badgeBackground=this.options.badgeBackground,this.badgeForeground=this.options.badgeForeground,this.badgeBorder=this.options.badgeBorder,this.element=Ba(e,Za(".monaco-count-badge")),this.countFormat=this.options.countFormat||"{0}",this.titleFormat=this.options.titleFormat||"",this.setCount(this.options.count||0)}return e.prototype.setCount=function(e){this.count=e,this.render()},e.prototype.setCountFormat=function(e){this.countFormat=e,this.render()},e.prototype.setTitleFormat=function(e){this.titleFormat=e,this.render()},e.prototype.render=function(){this.element.textContent=Ni(this.countFormat,this.count),this.element.title=Ni(this.titleFormat,this.count),this.applyStyles()},e.prototype.style=function(e){this.badgeBackground=e.badgeBackground,this.badgeForeground=e.badgeForeground,this.badgeBorder=e.badgeBorder,this.applyStyles()},e.prototype.applyStyles=function(){if(this.element){var e=this.badgeBackground?this.badgeBackground.toString():null,t=this.badgeForeground?this.badgeForeground.toString():null,n=this.badgeBorder?this.badgeBorder.toString():null;this.element.style.backgroundColor=e,this.element.style.color=t,this.element.style.borderWidth=n?"1px":null,this.element.style.borderStyle=n?"solid":null,this.element.style.borderColor=n}},e}();function pT(e){return Ii(e)}n("KU51");var gT,fT,mT=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&&Pr(this.highlights,t)||(Array.isArray(t)||(t=[]),this.text=e,this.highlights=t,this.render())},e.prototype.render=function(){Xs(this.domNode);for(var e,t=[],n=0,i=0;i"),t.push(pT(this.text.substring(n,e.start))),t.push(""),n=e.end),t.push(''),t.push(pT(this.text.substring(e.start,e.end))),t.push(""),n=e.end);n"),t.push(pT(this.text.substring(n))),t.push("")),this.domNode.innerHTML=t.join(""),this.didEverRender=!0},e.prototype.dispose=function(){this.text=null,this.highlights=null},e}(),yT=function(){function e(e){this._element=e}return Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textContent",{set:function(e){this.disposed||e===this._textContent||(this._textContent=e,this._element.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"className",{set:function(e){this.disposed||e===this._className||(this._className=e,this._element.className=e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{set:function(e){this.disposed||e===this._title||(this._title=e,this._title?this._element.title=e:this._element.removeAttribute("title"))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{set:function(e){this.disposed||e===this._empty||(this._empty=e,this._element.style.marginLeft=e?"0":null)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposed=!0},e}(),vT=function(){function e(e,t){var n=this;this.domNode=new yT(Ba(e,Za(".monaco-icon-label"))),this.labelDescriptionContainer=new yT(Ba(this.domNode.element,Za(".monaco-icon-label-description-container"))),this.labelNode=t&&t.supportHighlights?new mT(Ba(this.labelDescriptionContainer.element,Za("a.label-name"))):new yT(Ba(this.labelDescriptionContainer.element,Za("a.label-name"))),this.descriptionNodeFactory=t&&t.supportDescriptionHighlights?function(){return new mT(Ba(n.labelDescriptionContainer.element,Za("span.label-description")))}:function(){return new yT(Ba(n.labelDescriptionContainer.element,Za("span.label-description")))}}return Object.defineProperty(e.prototype,"element",{get:function(){return this.domNode.element},enumerable:!0,configurable:!0}),e.prototype.onClick=function(e){return Mt([oa(this.labelDescriptionContainer.element,za.CLICK,function(t){return e(t)})])},e.prototype.setValue=function(e,t,n){var i=["monaco-icon-label"];n&&(n.extraClasses&&i.push.apply(i,n.extraClasses),n.italic&&i.push("italic")),this.domNode.className=i.join(" "),this.domNode.title=n&&n.title?n.title:"",this.labelNode instanceof mT?this.labelNode.set(e||"",n?n.matches:void 0):this.labelNode.textContent=e||"",(t||this.descriptionNode)&&(this.descriptionNode||(this.descriptionNode=this.descriptionNodeFactory()),this.descriptionNode instanceof mT?(this.descriptionNode.set(t||"",n?n.descriptionMatches:void 0),n&&n.descriptionTitle?this.descriptionNode.element.title=n.descriptionTitle:this.descriptionNode.element.removeAttribute("title")):(this.descriptionNode.textContent=t||"",this.descriptionNode.title=n&&n.descriptionTitle?n.descriptionTitle:"",this.descriptionNode.empty=!t))},e.prototype.dispose=function(){this.domNode.dispose(),this.labelNode.dispose(),this.descriptionNode&&this.descriptionNode.dispose()},e}(),bT=function(e){function t(t,n,i,o){var r=e.call(this,t)||this;return r.setFile(n,i,o),r}return Object(a.c)(t,e),t.prototype.setFile=function(e,t,n){var i=mr(e.fsPath);this.setValue(Ir(e),i&&"."!==i?Nr(i,t,n):"",{title:e.fsPath})},t}(vT),_T=function(e){function t(t,n,i,o,r,s,a,u){var l=e.call(this,t,i.getRawConfiguration(),o,r,s,a,u)||this;return l._parentEditor=i,l._overwriteOptions=n,e.prototype.updateOptions.call(l,l._overwriteOptions),l._register(i.onDidChangeConfiguration(function(e){return l._onParentConfigurationChanged(e)})),l}return Object(a.c)(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){Or(this._overwriteOptions,t,!0),e.prototype.updateOptions.call(this,this._overwriteOptions)},Object(a.b)([Object(a.d)(3,Un),Object(a.d)(4,Fo),Object(a.d)(5,di),Object(a.d)(6,Wo),Object(a.d)(7,mm)],t)}(o_),MT=(n("1mBN"),n("Hv4S"),new dp(new up(0,122,204))),wT={showArrow:!0,showFrame:!0,className:"",frameColor:MT,arrowColor:MT,keepEditorSelection:!1},CT=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}(),LT=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}(),NT=function(){function e(t){this._editor=t,this._ruleName=e._IdGenerator.nextId(),this._decorations=[]}return e.prototype.dispose=function(){this.hide(),Pa(this._ruleName)},Object.defineProperty(e.prototype,"color",{set:function(e){this._color!==e&&(this._color=e,this._updateStyle())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this._height!==e&&(this._height=e,this._updateStyle())},enumerable:!0,configurable:!0}),e.prototype._updateStyle=function(){var e,t,n;Pa(this._ruleName),e=".monaco-editor "+this._ruleName,t="border-style: solid; border-color: transparent; border-bottom-color: "+this._color+"; border-width: "+this._height+"px; bottom: -"+this._height+"px; margin-left: -"+this._height+"px; ",void 0===n&&(n=Oa()),n&&t&&n.sheet.insertRule(e+"{"+t+"}",0)},e.prototype.show=function(e){this._decorations=this._editor.deltaDecorations(this._decorations,[{range:sn.fromPositions(e),options:{className:this._ruleName,stickiness:Au.NeverGrowsWhenTypingAtEdges}}])},e.prototype.hide=function(){this._editor.deltaDecorations(this._decorations,[])},e._IdGenerator=new fx(".arrow-decoration-"),e}(),IT=function(){function e(e,t){void 0===t&&(t={});var n=this;this._positionMarkerId=[],this._disposables=[],this._isShowing=!1,this.editor=e,this.options=jr(t),Or(this.options,wT,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.push(this.editor.onDidLayoutChange(function(e){var t=n._getWidth(e);n.domNode.style.width=t+"px",n.domNode.style.left=n._getLeft(e)+"px",n._onWidth(t)}))}return e.prototype.dispose=function(){var e=this;_t(this._disposables),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,[])},e.prototype.create=function(){ea(this.domNode,"zone-widget"),ea(this.domNode,this.options.className),this.container=document.createElement("div"),ea(this.container,"zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new NT(this.editor),this._disposables.push(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()},e.prototype.style=function(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()},e.prototype._applyStyles=function(){if(this.container){var e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow){var t=this.options.arrowColor.toString();this._arrow.color=t}},e.prototype._getWidth=function(e){return e.width-e.minimapWidth-e.verticalScrollbarWidth},e.prototype._getLeft=function(e){return e.minimapWidth>0&&0===e.minimapLeft?e.minimapWidth:0},e.prototype._onViewZoneTop=function(e){this.domNode.style.top=e+"px"},e.prototype._onViewZoneHeight=function(e){this.domNode.style.height=e+"px";var t=e-this._decoratingElementsHeight();this.container.style.height=t+"px";var n=this.editor.getLayoutInfo();this._doLayout(t,this._getWidth(n)),this._resizeSash.layout()},Object.defineProperty(e.prototype,"position",{get:function(){var e=this._positionMarkerId[0];if(e)return this.editor.getModel().getDecorationRange(e).getStartPosition()},enumerable:!0,configurable:!0}),e.prototype.show=function(e,t){var n=sn.isIRange(e)?e:new sn(e.lineNumber,e.column,e.lineNumber,e.column);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:n,options:ph.EMPTY}])},e.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),this._arrow&&this._arrow.hide()},e.prototype._decoratingElementsHeight=function(){var e=this.editor.getConfiguration().lineHeight,t=0;return this.options.showArrow&&(t+=2*Math.round(e/3)),this.options.showFrame&&(t+=2*Math.round(e/9)),t},e.prototype._showImpl=function(e,t){var n=this,i={lineNumber:e.startLineNumber,column:e.startColumn},o=this.editor.getLayoutInfo(),r=this._getWidth(o);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(o)+"px";var s=document.createElement("div");s.style.overflow="hidden";var a=this.editor.getConfiguration().lineHeight,u=this.editor.getLayoutInfo().height/a*.8;t>=u&&(t=u);var l=0,c=0;if(this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(i)),this.options.showFrame&&(c=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 CT(s,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 LT("vs.editor.contrib.zoneWidget"+n._viewZone.id,n.domNode),n.editor.addOverlayWidget(n._overlayWidget)}),this.options.showFrame){var d=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=d+"px",this.container.style.borderBottomWidth=d+"px"}var h=t*a-this._decoratingElementsHeight();this.container.style.top=l+"px",this.container.style.height=h+"px",this.container.style.overflow="hidden",this._doLayout(h,r),this.options.keepEditorSelection||this.editor.setSelection(e);var p=Math.min(this.editor.getModel().getLineCount(),Math.max(1,e.endLineNumber+1));this.revealLine(p)},e.prototype.revealLine=function(e){this.editor.revealLine(e,0)},e.prototype.setCssClass=function(e,t){t&&this.container.classList.remove(t),ea(this.container,e)},e.prototype._onWidth=function(e){},e.prototype._doLayout=function(e,t){},e.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)})},e.prototype._initSash=function(){var e,t=this;this._resizeSash=new v_(this.domNode,this,{orientation:y_.HORIZONTAL}),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.disable()),this._disposables.push(this._resizeSash.onDidStart(function(n){t._viewZone&&(e={startY:n.startY,heightInLines:t._viewZone.heightInLines})})),this._disposables.push(this._resizeSash.onDidEnd(function(){e=void 0})),this._disposables.push(this._resizeSash.onDidChange(function(n){if(e){var i=(n.currentY-e.startY)/t.editor.getConfiguration().lineHeight,o=i<0?Math.ceil(i):Math.floor(i),r=e.heightInLines+o;r>5&&r<35&&t._relayout(r)}}))},e.prototype.getHorizontalSashLeft=function(){return 0},e.prototype.getHorizontalSashTop=function(){return parseInt(this.domNode.style.height)-this._decoratingElementsHeight()/2},e.prototype.getHorizontalSashWidth=function(){var e=this.editor.getLayoutInfo();return e.width-e.minimapWidth},e}();(fT=gT||(gT={})).inPeekEditor=new zo("inReferenceSearchEditor",!0),fT.notInPeekEditor=fT.inPeekEditor.toNegated();var ST={headerBackgroundColor:dp.white,primaryHeadingColor:dp.fromHex("#333333"),secondaryHeadingColor:dp.fromHex("#6c6c6cb3")},xT=function(e){function t(t,n){void 0===n&&(n={});var i=e.call(this,t,n)||this;return i._onDidClose=new zt,Or(i.options,ST,!1),i}return Object(a.c)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this._onDidClose.fire(this)},Object.defineProperty(t.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),t.prototype.style=function(t){var n=this.options;t.headerBackgroundColor&&(n.headerBackgroundColor=t.headerBackgroundColor),t.primaryHeadingColor&&(n.primaryHeadingColor=t.primaryHeadingColor),t.secondaryHeadingColor&&(n.secondaryHeadingColor=t.secondaryHeadingColor),e.prototype.style.call(this,t)},t.prototype._applyStyles=function(){e.prototype._applyStyles.call(this);var t=this.options;this._headElement&&(this._headElement.style.backgroundColor=t.headerBackgroundColor.toString()),this._primaryHeading&&(this._primaryHeading.style.color=t.primaryHeadingColor.toString()),this._secondaryHeading&&(this._secondaryHeading.style.color=t.secondaryHeadingColor.toString()),this._bodyElement&&(this._bodyElement.style.borderColor=t.frameColor.toString())},t.prototype._fillContainer=function(e){this.setCssClass("peekview-widget"),this._headElement=m_(".head").getHTMLElement(),this._bodyElement=m_(".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,n=m_(".peekview-title").on(za.CLICK,function(e){return t._onTitleClick(e)}).appendTo(this._headElement).getHTMLElement();this._primaryHeading=m_("span.filename").appendTo(n).getHTMLElement(),this._secondaryHeading=m_("span.dirname").appendTo(n).getHTMLElement(),this._metaHeading=m_("span.meta").appendTo(n).getHTMLElement();var i=m_(".peekview-actions").appendTo(this._headElement),o=this._getActionBarOptions();this._actionbarWidget=new q_(i,o),this._disposables.push(this._actionbarWidget),this._actionbarWidget.push(new eu("peekview.close",Yo("label.close","Close"),"close-peekview-action",!0,function(){return t.dispose(),null}),{label:!1,icon:!0})},t.prototype._getActionBarOptions=function(){return{}},t.prototype._onTitleClick=function(e){},t.prototype.setTitle=function(e,t){m_(this._primaryHeading).safeInnerHtml(e),this._primaryHeading.setAttribute("aria-label",e),t?m_(this._secondaryHeading).safeInnerHtml(t):Xs(this._secondaryHeading)},t.prototype.setMetaTitle=function(e){e?m_(this._metaHeading).safeInnerHtml(e):Xs(this._metaHeading)},t.prototype._doLayout=function(e,t){if(!this._isShowing&&e<0)this.dispose();else{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=Ni("{0}px",e),this._headElement.style.lineHeight=this._headElement.style.height},t.prototype._doLayoutBody=function(e,t){this._bodyElement.style.height=Ni("{0}px",e)},t}(IT),DT=function(){function e(e,t){this._parent=e,this._range=t,this._onRefChanged=new zt,this.onRefChanged=this._onRefChanged.event,this._id=mx.nextId()}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._parent.uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directory",{get:function(){return this._parent.directory},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){this._range=e,this._onRefChanged.fire(this)},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){return Yo("aria.oneReference","symbol in {0} on line {1} at column {2}",yr(this.uri.fsPath),this.range.startLineNumber,this.range.startColumn)},e}(),TT=function(){function e(e){this._modelReference=e}return Object.defineProperty(e.prototype,"_model",{get:function(){return this._modelReference.object.textEditorModel},enumerable:!0,configurable:!0}),e.prototype.preview=function(e,t){void 0===t&&(t=8);var n=this._model;if(n){var i=e.startLineNumber,o=e.startColumn,r=e.endLineNumber,s=e.endColumn,a=n.getWordUntilPosition({lineNumber:i,column:o-t}),u=new sn(i,a.startColumn,i,o),l=new sn(r,s,r,Number.MAX_VALUE);return{before:n.getValueInRange(u).replace(/^\s+/,Mi),inside:n.getValueInRange(e),after:n.getValueInRange(l).replace(/\s+$/,Mi)}}},e.prototype.dispose=function(){this._modelReference&&(this._modelReference.dispose(),this._modelReference=null)},e}(),ET=function(){function e(e,t){this._parent=e,this._uri=t,this._children=[]}return Object.defineProperty(e.prototype,"id",{get:function(){return this._uri.toString()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return yr(this.uri.fsPath)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"directory",{get:function(){return mr(this.uri.fsPath)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preview",{get:function(){return this._preview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"failure",{get:function(){return this._loadFailure},enumerable:!0,configurable:!0}),e.prototype.getAriaMessage=function(){var e=this.children.length;return 1===e?Yo("aria.fileReferences.1","1 symbol in {0}, full path {1}",yr(this.uri.fsPath),this.uri.fsPath):Yo("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,yr(this.uri.fsPath),this.uri.fsPath)},e.prototype.resolve=function(e){var t=this;return this._resolved?Nt.b.as(this):e.createModelReference(this._uri).then(function(e){if(!e.object)throw e.dispose(),new Error;return t._preview=new TT(e),t._resolved=!0,t},function(e){return t._children=[],t._resolved=!0,t._loadFailure=e,t})},e.prototype.dispose=function(){this._preview&&(this._preview.dispose(),this._preview=null)},e}(),kT=function(){function e(t){var n,i=this;this._groups=[],this._references=[],this._onDidChangeReferenceRange=new zt,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._disposables=[],t.sort(e._compareReferences);for(var o=0,r=t;o0?n.children[i=t?(i+1)%o:(i+o-1)%o]:(i=n.parent.groups.indexOf(n),t?n.parent.groups[i=(i+1)%r].children[0]:n.parent.groups[i=(i+r-1)%r].children[n.parent.groups[i].children.length-1])},e.prototype.nearestReference=function(e,t){var n=this._references.map(function(n,i){return{idx:i,prefixLen:no(n.uri.toString(),e.toString()),offsetDist:100*Math.abs(n.range.startLineNumber-t.lineNumber)+Math.abs(n.range.startColumn-t.column)}}).sort(function(e,t){return e.prefixLen>t.prefixLen?-1:e.prefixLent.offsetDist?1:0})[0];if(n)return this._references[n.idx]},e.prototype.dispose=function(){this._groups=_t(this._groups),_t(this._disposables),this._disposables.length=0},e._compareReferences=function(e,t){var n=e.uri.toString(),i=t.uri.toString();return ni?1:sn.compareRangesUsingStarts(e.range,t.range)},e}(),jT=Qn("environmentService"),AT=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},OT=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1?Yo("referencesCount","{0} references",t):Yo("referenceCount","{0} reference",t))},Object(a.b)([Object(a.d)(1,Er),Object(a.d)(2,Xn(jT)),Object(a.d)(3,mm)],e)}(),FT=function(){function e(e){var t=document.createElement("div");this.before=document.createElement("span"),this.inside=document.createElement("span"),this.after=document.createElement("span"),ea(this.inside,"referenceMatch"),ea(t,"reference"),t.appendChild(this.before),t.appendChild(this.inside),t.appendChild(this.after),e.appendChild(t)}return e.prototype.set=function(e){var t=e.parent.preview.preview(e.range),n=t.inside,i=t.after;this.before.innerHTML=Ii(t.before),this.inside.innerHTML=Ii(n),this.after.innerHTML=Ii(i)},e}(),HT=function(){function e(e,t,n){this._contextService=e,this._themeService=t,this._environmentService=n}return e.prototype.getHeight=function(e,t){return 23},e.prototype.getTemplateId=function(t,n){if(n instanceof ET)return e._ids.FileReferences;if(n instanceof DT)return e._ids.OneReference;throw n},e.prototype.renderTemplate=function(t,n,i){if(n===e._ids.FileReferences)return new WT(i,this._contextService,this._environmentService,this._themeService);if(n===e._ids.OneReference)return new FT(i);throw n},e.prototype.renderElement=function(e,t,n,i){if(t instanceof ET)i.set(t);else{if(!(t instanceof DT))throw n;i.set(t)}},e.prototype.disposeTemplate=function(e,t,n){n instanceof WT&&n.dispose()},e._ids={FileReferences:"FileReferences",OneReference:"OneReference"},e=Object(a.b)([Object(a.d)(0,Er),Object(a.d)(1,mm),Object(a.d)(2,Xn(jT))],e)}(),BT=function(){function e(){}return e.prototype.getAriaLabel=function(e,t){return t instanceof ET?t.getAriaMessage():t instanceof DT?t.getAriaMessage():void 0},e}(),VT=function(){function e(e,t){var n,i=this;this._disposables=[],this._onDidChangePercentages=new zt,this._ratio=t,this._sash=new v_(e,{getVerticalSashLeft:function(){return i._width*i._ratio},getVerticalSashHeight:function(){return i._height}}),this._disposables.push(this._sash.onDidStart(function(e){n=e.startX-i._width*i.ratio})),this._disposables.push(this._sash.onDidChange(function(e){var t=e.currentX-n;t>20&&t+200?e.children[0]:void 0},t.prototype._revealReference=function(e,t){return AT(this,void 0,Nt.b,function(){var n,i=this;return OT(this,function(o){switch(o.label){case 0:return e.uri.scheme!==Bo.inMemory?this.setTitle(e.name,Nr(e.directory,this._contextService,this._environmentService)):this.setTitle(Yo("peekView.alternateTitle","References")),n=this._textModelResolverService.createModelReference(e.uri),t?[4,this._tree.reveal(e.parent)]:[3,2];case 1:o.sent(),o.label=2;case 2:return[2,Nt.b.join([n,this._tree.reveal(e)]).then(function(t){var n=t[0];if(i._model){_t(i._previewModelReference);var o=n.object;if(o){i._previewModelReference=n;var r=i._preview.getModel()===o.textEditorModel;i._preview.setModel(o.textEditorModel);var s=sn.lift(e.range).collapseToStart();i._preview.setSelection(s),i._preview.revealRangeInCenter(s,r?0:1)}else i._preview.setModel(i._previewNotAvailableMessage),n.dispose()}else n.dispose()},xt)]}})})},t}(xT),UT=Hg("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},Yo("peekViewTitleBackground","Background color of the peek view title area.")),GT=Hg("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},Yo("peekViewTitleForeground","Color of the peek view title.")),QT=Hg("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#6c6c6cb3",hc:"#FFFFFF99"},Yo("peekViewTitleInfoForeground","Color of the peek view title info.")),XT=Hg("peekView.border",{dark:"#007acc",light:"#007acc",hc:Ug},Yo("peekViewBorder","Color of the peek view borders and arrow.")),KT=Hg("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:dp.black},Yo("peekViewResultsBackground","Background color of the peek view result list.")),JT=Hg("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:dp.white},Yo("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),qT=Hg("peekViewResult.fileForeground",{dark:dp.white,light:"#1E1E1E",hc:dp.white},Yo("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),$T=Hg("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},Yo("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),eE=Hg("peekViewResult.selectionForeground",{dark:dp.white,light:"#6C6C6C",hc:dp.white},Yo("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),tE=Hg("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:dp.black},Yo("peekViewEditorBackground","Background color of the peek view editor.")),nE=Hg("peekViewEditorGutter.background",{dark:tE,light:tE,hc:tE},Yo("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),iE=Hg("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},Yo("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),oE=Hg("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},Yo("peekViewEditorMatchHighlight","Match highlight color in the peek view editor."));wm(function(e,t){var n=e.getColor(iE);n&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { background-color: "+n+"; }");var i=e.getColor(oE);i&&t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+i+"; }");var o=e.getColor(Gg);o&&(t.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch { border: 1px dotted "+o+"; box-sizing: border-box; }"),t.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+o+"; box-sizing: border-box; }"));var r=e.getColor(KT);r&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+r+"; }");var s=e.getColor(JT);s&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+s+"; }");var a=e.getColor(qT);a&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+a+"; }");var u=e.getColor($T);u&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+u+"; }");var l=e.getColor(eE);l&&t.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-tree.focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+l+" !important; }");var c=e.getColor(tE);c&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {\tbackground-color: "+c+";}");var d=e.getColor(nE);d&&t.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {\tbackground-color: "+d+";}")});var rE=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},sE=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&Yo("meta.title"," \u2013 {0} definitions",e.references.length)},t.prototype._onResult=function(e,t,n){var i=this;if(CM(n.getAriaMessage()),this._configuration.openInPeek)this._openInPeek(e,t,n);else{var o=n.nearestReference(t.getModel().uri,t.getPosition());this._openReference(e,o,this._configuration.openToSide).then(function(t){t&&n.references.length>1?i._openInPeek(e,t,n):n.dispose()})}},t.prototype._openReference=function(e,t,n){return e.openEditor({resource:t.uri,options:{selection:sn.collapseToStart(t.range),revealIfVisible:!0,revealInCenterIfOutsideViewport:!0}},n).then(function(e){return e&&e.getControl()})},t.prototype._openInPeek=function(e,t,n){var i=this,o=uE.get(t);o?o.toggleWidget(t.getSelection(),Nt.b.as(n),{getMetaTitle:function(e){return i._getMetaTitle(e)},onGoto:function(t){return o.closeWidget(),i._openReference(e,t,!1)}}):n.dispose()},t}(Xp),pE=mn.f?2118:70,gE=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:To.and(wp.hasDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:pE},menuOpts:{group:"navigation",order:1.1}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToDeclaration",t}(hE),fE=function(e){function t(){return e.call(this,new dE(!0),{id:t.ID,label:Yo("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:To.and(wp.hasDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,pE)}})||this}return Object(a.c)(t,e),t.ID="editor.action.openDeclarationToTheSide",t}(hE),mE=function(e){function t(){return e.call(this,new dE(void 0,!0,!1),{id:"editor.action.previewDeclaration",label:Yo("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:To.and(wp.hasDefinitionProvider,gT.notInPeekEditor,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:582,linux:{primary:3140}},menuOpts:{group:"navigation",order:1.2}})||this}return Object(a.c)(t,e),t}(hE),yE=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._getDeclarationsAtPosition=function(e,t){return lT(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?Yo("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):Yo("goToImplementation.generic.noResults","No implementation found")},t.prototype._getMetaTitle=function(e){return e.references.length>1&&Yo("meta.implementations.title"," \u2013 {0} implementations",e.references.length)},t}(hE),vE=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToImplementation.label","Go to Implementation"),alias:"Go to Implementation",precondition:To.and(wp.hasImplementationProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:2118}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToImplementation",t}(yE),bE=function(e){function t(){return e.call(this,new dE(!1,!0,!1),{id:t.ID,label:Yo("actions.peekImplementation.label","Peek Implementation"),alias:"Peek Implementation",precondition:To.and(wp.hasImplementationProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:3142}})||this}return Object(a.c)(t,e),t.ID="editor.action.peekImplementation",t}(yE),_E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype._getDeclarationsAtPosition=function(e,t){return cT(e,t)},t.prototype._getNoResultFoundMessage=function(e){return e&&e.word?Yo("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):Yo("goToTypeDefinition.generic.noResults","No type definition found")},t.prototype._getMetaTitle=function(e){return e.references.length>1&&Yo("meta.typeDefinitions.title"," \u2013 {0} type definitions",e.references.length)},t}(hE),ME=function(e){function t(){return e.call(this,new dE,{id:t.ID,label:Yo("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:To.and(wp.hasTypeDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:0},menuOpts:{group:"navigation",order:1.4}})||this}return Object(a.c)(t,e),t.ID="editor.action.goToTypeDefinition",t}(_E),wE=function(e){function t(){return e.call(this,new dE(!1,!0,!1),{id:t.ID,label:Yo("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:To.and(wp.hasTypeDefinitionProvider,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:0}})||this}return Object(a.c)(t,e),t.ID="editor.action.peekTypeDefinition",t}(_E);function CE(e,t){return!!e[t]}$p(gE),$p(fE),$p(mE),$p(vE),$p(bE),$p(ME),$p(wE),n("DIA9");var LE=function(){return function(e,t){this.target=e.target,this.hasTriggerModifier=CE(e.event,t.triggerModifier),this.hasSideBySideModifier=CE(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=Is||e.event.detail<=1}}(),NE=function(){return function(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=CE(e,t.triggerModifier)}}(),IE=function(){function e(e,t,n,i){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=i}return e.prototype.equals=function(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier},e}();function SE(e){return"altKey"===e?mn.d?new IE(57,"metaKey",6,"altKey"):new IE(5,"ctrlKey",6,"altKey"):mn.d?new IE(6,"altKey",57,"metaKey"):new IE(6,"altKey",5,"ctrlKey")}var xE=function(e){function t(t){var n=e.call(this)||this;return n._onMouseMoveOrRelevantKeyDown=n._register(new zt),n.onMouseMoveOrRelevantKeyDown=n._onMouseMoveOrRelevantKeyDown.event,n._onExecute=n._register(new zt),n.onExecute=n._onExecute.event,n._onCancel=n._register(new zt),n.onCancel=n._onCancel.event,n._editor=t,n._opts=SE(n._editor.getConfiguration().multiCursorModifier),n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._register(n._editor.onDidChangeConfiguration(function(e){if(e.multiCursorModifier){var t=SE(n._editor.getConfiguration().multiCursorModifier);if(n._opts.equals(t))return;n._opts=t,n.lastMouseMoveEvent=null,n.hasTriggerKeyOnMouseDown=!1,n._onCancel.fire()}})),n._register(n._editor.onMouseMove(function(e){return n.onEditorMouseMove(new LE(e,n._opts))})),n._register(n._editor.onMouseDown(function(e){return n.onEditorMouseDown(new LE(e,n._opts))})),n._register(n._editor.onMouseUp(function(e){return n.onEditorMouseUp(new LE(e,n._opts))})),n._register(n._editor.onKeyDown(function(e){return n.onEditorKeyDown(new NE(e,n._opts))})),n._register(n._editor.onKeyUp(function(e){return n.onEditorKeyUp(new NE(e,n._opts))})),n._register(n._editor.onMouseDrag(function(){return n.resetHandler()})),n._register(n._editor.onDidChangeCursorSelection(function(e){return n.onDidChangeCursorSelection(e)})),n._register(n._editor.onDidChangeModel(function(e){return n.resetHandler()})),n._register(n._editor.onDidChangeModelContent(function(){return n.resetHandler()})),n._register(n._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&n.resetHandler()})),n}return Object(a.c)(t,e),t.prototype.onDidChangeCursorSelection=function(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this.resetHandler()},t.prototype.onEditorMouseMove=function(e){this.lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])},t.prototype.onEditorMouseDown=function(e){this.hasTriggerKeyOnMouseDown=e.hasTriggerModifier},t.prototype.onEditorMouseUp=function(e){this.hasTriggerKeyOnMouseDown&&this._onExecute.fire(e)},t.prototype.onEditorKeyDown=function(e){this.lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this.lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()},t.prototype.onEditorKeyUp=function(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()},t.prototype.resetHandler=function(){this.lastMouseMoveEvent=null,this.hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()},t}(Ct);eg(function(){function e(e,t,n){var i=this;this.textModelResolverService=t,this.modeService=n,this.toUnhook=[],this.decorations=[],this.editor=e,this.throttler=new ps;var o=new xE(e);this.toUnhook.push(o),this.toUnhook.push(o.onMouseMoveOrRelevantKeyDown(function(e){i.startFindDefinition(e[0],e[1])})),this.toUnhook.push(o.onExecute(function(e){i.isEnabled(e)&&i.gotoDefinition(e.target,e.hasSideBySideModifier).done(function(){i.removeDecorations()},function(e){i.removeDecorations(),xt(e)})})),this.toUnhook.push(o.onCancel(function(){i.removeDecorations(),i.currentWordUnderMouse=null}))}return e.prototype.startFindDefinition=function(t,n){var i=this;if(!this.isEnabled(t,n))return this.currentWordUnderMouse=null,void this.removeDecorations();var o=t.target.position,r=o?this.editor.getModel().getWordAtPosition(o):null;if(!r)return this.currentWordUnderMouse=null,void this.removeDecorations();if(!this.currentWordUnderMouse||this.currentWordUnderMouse.startColumn!==r.startColumn||this.currentWordUnderMouse.endColumn!==r.endColumn||this.currentWordUnderMouse.word!==r.word){this.currentWordUnderMouse=r;var s=new eT(this.editor,15);this.throttler.queue(function(){return s.validate(i.editor)?i.findDefinition(t.target):Nt.b.wrap(null)}).then(function(t){if(t&&t.length&&s.validate(i.editor))if(t.length>1)i.addDecoration(new sn(o.lineNumber,r.startColumn,o.lineNumber,r.endColumn),(new qw).appendText(Yo("multipleResults","Click to show {0} definitions.",t.length)));else{var n=t[0];if(!n.uri)return;i.textModelResolverService.createModelReference(n.uri).then(function(t){if(t.object&&t.object.textEditorModel){var s=t.object.textEditorModel,a=n.range.startLineNumber;if(0!==s.getLineMaxColumn(a)){for(var u=s.getLineFirstNonWhitespaceColumn(a),l=Math.min(s.getLineCount(),a+e.MAX_SOURCE_PREVIEW_LINES),c=a+1,d=u;c0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},e.prototype.isEnabled=function(e,t){return this.editor.getModel()&&e.isNoneOrSingleMouseDown&&e.target.type===Hn.CONTENT_TEXT&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey)&&Nl.has(this.editor.getModel())},e.prototype.findDefinition=function(e){return this.editor.getModel()?uT(this.editor.getModel(),e.position):Nt.b.as(null)},e.prototype.gotoDefinition=function(e,t){var n=this;this.editor.setPosition(e.position);var i=new hE(new dE(t,!1,!0,!1),{alias:void 0,label:void 0,id:void 0,precondition:void 0});return this.editor.invokeWithinContext(function(e){return i.run(e,n.editor)})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this.toUnhook=_t(this.toUnhook)},e.ID="editor.contrib.gotodefinitionwithmouse",e.MAX_SOURCE_PREVIEW_LINES=8,e=Object(a.b)([Object(a.d)(1,hN),Object(a.d)(2,Fw)],e)}()),wm(function(e,t){var n=e.getColor(Qf);n&&t.addRule(".monaco-editor .goto-definition-link { color: "+n+" !important; }")}),n("NfGl");var DE=function(){function e(e,t,n){var i=this;this.lines=0,this.longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=[],this._editor=t;var o=document.createElement("div");o.className="descriptioncontainer",o.setAttribute("aria-live","assertive"),o.setAttribute("role","alert"),this._messageBlock=document.createElement("span"),o.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),o.appendChild(this._relatedBlock),this._disposables.push(ra(this._relatedBlock,"click",function(e){e.preventDefault();var t=i._relatedDiagnostics.get(e.target);t&&n(t)})),this._scrollable=new Db(o,{horizontal:Uc.Auto,vertical:Uc.Hidden,useShadows:!1,horizontalScrollbarSize:3}),ea(this._scrollable.getDomNode(),"block"),e.appendChild(this._scrollable.getDomNode()),this._disposables.push(this._scrollable.onScroll(function(e){return o.style.left="-"+e.scrollLeft+"px"})),this._disposables.push(this._scrollable)}return e.prototype.dispose=function(){_t(this._disposables)},e.prototype.update=function(e){var t=e.source,n=e.message,i=e.relatedInformation;if(t){this.lines=0,this.longestLineLength=0;for(var o=new Array(t.length+3+1).join(" "),r=n.split(/\r\n|\r|\n/g),s=0;s=0?this._markers[this._nextIdx]:void 0;this._markers=e||[],this._markers.sort(FE.compareMarker),this._nextIdx=t?Math.max(-1,rr(this._markers,t,FE.compareMarker)):-1,this._onMarkerSetChanged.fire(this)},e.prototype.withoutWatchingEditorPosition=function(e){this._ignoreSelectionChange=!0;try{e()}finally{this._ignoreSelectionChange=!1}},e.prototype._initIdx=function(e){for(var t=!1,n=this._editor.getPosition(),i=0;i0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:i=!0),n!==this._nextIdx&&this._onCurrentMarkerChanged.fire(this._markers[this._nextIdx]),i},e.prototype.canNavigate=function(){return this._markers.length>0},e.prototype.findMarkerAtPosition=function(e){for(var t=0,n=this._markers;t0&&(n[o]=e)},function(e){Dt(e)})});return Nt.b.join(i).then(function(){return(e=n)?e.filter(function(e){return!!e}):e;var e})}qp(new(Qp.bindToContribution(WE.get))({id:"closeMarkersNavigation",precondition:VE,handler:function(e){return e.closeMarkersNavigation()},kbOpts:{weight:qa.WEIGHT.editorContrib(50),kbExpr:wp.focus,primary:9,secondary:[1033]}})),n("o37+"),Jp("_executeHoverProvider",YE);var ZE=function(){function e(e,t,n,i){var o=this;this._computer=e,this._state=0,this._firstWaitScheduler=new _s(function(){return o._triggerAsyncComputation()},this._getHoverTimeMillis()/2),this._secondWaitScheduler=new _s(function(){return o._triggerSyncComputation()},this._getHoverTimeMillis()/2),this._loadingMessageScheduler=new _s(function(){return o._showLoadingMessage()},3*this._getHoverTimeMillis()),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=t,this._errorCallback=n,this._progressCallback=i}return 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(t){return e._onError(t)})):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):xt(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.HOVER_TIME=300,e}(),UE=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 Eb(i._domNode,{}),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 Object(a.c)(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,na(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 rn(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:[Wn.ABOVE,Wn.BELOW]}:null},t.prototype.dispose=function(){this._editor.removeContentWidget(this),this.disposables=_t(this.disposables),e.prototype.dispose.call(this)},t.prototype.updateFont=function(){var e=this;Array.prototype.slice.call(this._domNode.getElementsByClassName("code")).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.onContentsChange()},t.prototype.onContentsChange=function(){this.scrollbar.scanDomNode()},t.prototype.updateMaxHeight=function(){var e=Math.max(this._editor.getLayoutInfo().height/4,250),t=this._editor.getConfiguration().fontInfo,n=t.lineHeight;this._domNode.style.fontSize=t.fontSize+"px",this._domNode.style.lineHeight=n+"px",this._domNode.style.maxHeight=e+"px"},t}(bb),GE=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 Object(a.c)(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this._isVisible=e,na(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=n-i-(this._domNode.clientHeight-o)/2;this._domNode.style.left=t.glyphMarginLeft+t.glyphMarginWidth+"px",this._domNode.style.top=Math.max(Math.round(r),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}(bb),QE=function(){function e(e,t,n){this.presentationIndex=n,this._onColorFlushed=new zt,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new zt,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new zt,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}return Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentation",{get:function(){return this.colorPresentations[this.presentationIndex]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"colorPresentations",{get:function(){return this._colorPresentations},set:function(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),e.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},e.prototype.guessColorPresentation=function(e,t){for(var n=0;nthis._editor.getModel().getLineCount())return[];var n=AS.get(this._editor),i=this._editor.getModel().getLineMaxColumn(t),o=!1;return this._editor.getLineDecorations(t).map(function(r){var s=r.range.startLineNumber===t?r.range.startColumn:1,a=r.range.endLineNumber===t?r.range.endColumn:i;if(s>e._range.startColumn||e._range.endColumn>a)return null;var u=new sn(e._range.startLineNumber,s,e._range.startLineNumber,a),l=n.getColorData(r.range.getStartPosition());if(!o&&l){o=!0;var c=l.colorInfo;return new ok(c.range,c.color,l.provider)}if($w(r.options.hoverMessage))return null;var d=void 0;return r.options.hoverMessage&&(d=Array.isArray(r.options.hoverMessage)?r.options.hoverMessage.slice():[r.options.hoverMessage]),{contents:d,range:u}}).filter(function(e){return!!e})},e.prototype.onResult=function(e,t){this._result=t?e.concat(this._result.sort(function(e,t){return e instanceof ok?-1:t instanceof ok?1:0})):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:[(new qw).appendText(Yo("modesContentHover.loading","Loading..."))]}},e}(),sk=function(e){function t(n,i,o){var r=e.call(this,t.ID,n)||this;return r._themeService=o,r.renderDisposable=bt,r.toDispose=[],r._computer=new rk(r._editor),r._highlightDecorations=[],r._isChangingDecorations=!1,r._markdownRenderer=i,i.onDidRenderCodeBlock(r.onContentsChange,r,r.toDispose),r._hoverOperation=new ZE(r._computer,function(e){return r._withResult(e,!0)},null,function(e){return r._withResult(e,!1)}),r.toDispose.push(ra(r.getDomNode(),za.FOCUS,function(){r._colorPicker&&ea(r.getDomNode(),"colorpicker-hover")})),r.toDispose.push(ra(r.getDomNode(),za.BLUR,function(){ta(r.getDomNode(),"colorpicker-hover")})),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this.renderDisposable.dispose(),this.renderDisposable=bt,this._hoverOperation.cancel(),this.toDispose=_t(this.toDispose),e.prototype.dispose.call(this)},t.prototype.onModelDecorationsChanged=function(){this._isChangingDecorations||this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||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)}if(n.length>0){if(function(e,t){if(!e&&t||e&&!t||e.length!==t.length)return!1;for(var n=0;n0?this._renderMessages(this._lastRange,this._messages):t&&this.hide()},t.prototype._renderMessages=function(e,n){var i=this;this.renderDisposable.dispose(),this._colorPicker=null;var o,r=Number.MAX_VALUE,s=n[0].range,a=document.createDocumentFragment(),u=!0,l=!1;n.forEach(function(t){if(t.range)if(r=Math.min(r,t.range.startColumn),s=sn.plusRange(s,t.range),t instanceof ok){l=!0;var n=t.color,c=new up(255*n.red,255*n.green,255*n.blue,n.alpha),d=new dp(c),h=i._editor.getModel(),p=new sn(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn),g={range:t.range,color:t.color},f=new QE(d,[],0),m=new nk(a,f,i._editor.getConfiguration().pixelRatio,i._themeService);jS(h,g,t.provider).then(function(n){f.colorPresentations=n;var s=i._editor.getModel().getValueInRange(t.range);f.guessColorPresentation(d,s);var u=function(){var e,t;f.presentation.textEdit?(e=[f.presentation.textEdit],t=(t=new sn(f.presentation.textEdit.range.startLineNumber,f.presentation.textEdit.range.startColumn,f.presentation.textEdit.range.endLineNumber,f.presentation.textEdit.range.endColumn)).setEndPosition(t.endLineNumber,t.startColumn+f.presentation.textEdit.text.length)):(e=[{identifier:null,range:p,text:f.presentation.label,forceMoveMarkers:!1}],t=p.setEndPosition(p.endLineNumber,p.startColumn+f.presentation.label.length)),h.pushEditOperations([],e,function(){return[]}),f.presentation.additionalTextEdits&&(e=f.presentation.additionalTextEdits.slice(),h.pushEditOperations([],e,function(){return[]}),i.hide()),i._editor.pushUndoStop(),p=t},l=function(e){return jS(h,{range:p,color:{red:e.rgba.r/255,green:e.rgba.g/255,blue:e.rgba.b/255,alpha:e.rgba.a}},t.provider).then(function(e){f.colorPresentations=e})},c=f.onColorFlushed(function(e){l(e).then(u)}),g=f.onDidChangeColor(l);i._colorPicker=m,i.showAt(new rn(e.startLineNumber,r),i._shouldFocus),i.updateContents(a),i._colorPicker.layout(),i.renderDisposable=Mt([c,g,m,o])})}else t.contents.filter(function(e){return!$w(e)}).forEach(function(e){var t=i._markdownRenderer.render(e);o=t,a.appendChild(ik("div.hover-row",null,t.element)),u=!1})}),l||u||(this.showAt(new rn(e.startLineNumber,r),this._shouldFocus),this.updateContents(a)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[{range:s,options:t._DECORATION_OPTIONS}]),this._isChangingDecorations=!1},t.ID="editor.contrib.modesContentHoverWidget",t._DECORATION_OPTIONS=ph.register({className:"hoverHighlight"}),t}(UE),ak=function(){function e(e){this._editor=e,this._lineNumber=-1}return e.prototype.setLineNumber=function(e){this._lineNumber=e,this._result=[]},e.prototype.clearResult=function(){this._result=[]},e.prototype.computeSync=function(){for(var e=function(e){return{value:e}},t=this._editor.getLineDecorations(this._lineNumber),n=[],i=0,o=t.length;i0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},t.prototype._renderMessages=function(e,t){var n=this;_t(this._renderDisposeables),this._renderDisposeables=[];var i=document.createDocumentFragment();t.forEach(function(e){var t=n._markdownRenderer.render(e.value);n._renderDisposeables.push(t),i.appendChild(Za("div.hover-row",null,t.element))}),this.updateContents(i),this.showAt(e)},t.ID="editor.contrib.modesGlyphHoverWidget",t}(GE),lk=function(){function e(e,t,n){void 0===n&&(n=sN),this._editor=e,this._modeService=t,this._openerService=n,this._onDidRenderCodeBlock=new zt,this.onDidRenderCodeBlock=this._onDidRenderCodeBlock.event}return e.prototype.getOptions=function(e){var t=this;return{codeBlockRenderer:function(e,n){var i=e?t._modeService.getModeIdForLanguageName(e):t._editor.getModel().getLanguageIdentifier().language;return t._modeService.getOrCreateMode(i).then(function(e){return function(e,t){for(var n='
    ',i=e.split(/\r\n|\r|\n/),o=t.getInitialState(),r=0,s=i.length;r0&&(n+="
    ");var u=t.tokenize2(a,o,0);Vc.convertToEndOffset(u.tokens,a.length);for(var l=new Vc(u.tokens,a).inflate(),c=0,d=0,h=l.getCount();d'+Ii(a.substring(c,g))+"",c=g}o=u.endState}return n+"
    "}(n,Pl.get(i)||{getInitialState:function(){return gc},tokenize:void 0,tokenize2:function(e,t,n){return yc(0,0,t,n)}})}).then(function(e){return''+e+""})},codeBlockRenderCallback:function(){return t._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(e){t._openerService.open(Tn.parse(e)).then(void 0,xt)},disposeables:e}}},e.prototype.render=function(e){var t=[];return{element:e?function(e,t){void 0===t&&(t={});var n,i=vx(t),o=new Promise(function(e){return n=e}),r=new yx.Renderer;return r.image=function(e,t,n){var i=[];if(e){var o=e.split("|").map(function(e){return e.trim()});e=o[0];var r=o[1];if(r){var s=/height=(\d+)/.exec(r),a=/width=(\d+)/.exec(r),u=s&&s[1],l=a&&a[1],c=isFinite(parseInt(l)),d=isFinite(parseInt(u));c&&i.push('width="'+l+'"'),d&&i.push('height="'+u+'"')}}var h=[];return e&&h.push('src="'+e+'"'),n&&h.push('alt="'+n+'"'),t&&h.push('title="'+t+'"'),i.length&&(h=h.concat(i)),""},r.link=function(t,n,i){return t===i&&(i=nC(i)),n=nC(n),!(t=nC(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted?i:''+i+""},r.paragraph=function(e){return"

    "+e+"

    "},t.codeBlockRenderer&&(r.code=function(e,n){var r=t.codeBlockRenderer(n,e),s=mx.nextId(),a=Promise.all([r,o]).then(function(e){var t=e[0],n=i.querySelector('div[data-code="'+s+'"]');n&&(n.innerHTML=t)}).catch(function(e){});return t.codeBlockRenderCallback&&a.then(t.codeBlockRenderCallback),'
    '+Ii(e)+"
    "}),t.actionHandler&&t.actionHandler.disposeables.push(ra(i,"click",function(e){var n=e.target;if("A"===n.tagName||(n=n.parentElement)&&"A"===n.tagName){var i=n.dataset.href;i&&t.actionHandler.callback(i,e)}})),i.innerHTML=yx(e.value,{sanitize:!0,renderer:r}),n(),i}(e,this.getOptions(t)):document.createElement("span"),dispose:function(){return _t(t)}}},Object(a.b)([Object(a.d)(1,Fw),Object(a.d)(2,Xn(rN))],e)}(),ck=function(){function e(e,t,n,i){var o=this;this._openerService=t,this._modeService=n,this._themeService=i,this._editor=e,this._toUnhook=[],this._isMouseDown=!1,e.getConfiguration().contribInfo.hover&&(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.onMouseLeave(function(e){return o._hideWidgets()})),this._toUnhook.push(this._editor.onKeyDown(function(e){return o._onKeyDown(e)})),this._toUnhook.push(this._editor.onDidChangeModel(function(){return o._hideWidgets()})),this._toUnhook.push(this._editor.onDidChangeModelDecorations(function(){return o._onModelDecorationsChanged()})),this._toUnhook.push(this._editor.onDidScrollChange(function(e){(e.scrollTopChanged||e.scrollLeftChanged)&&o._hideWidgets()})))}return Object.defineProperty(e.prototype,"contentWidget",{get:function(){return this._contentWidget||this._createHoverWidget(),this._contentWidget},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"glyphWidget",{get:function(){return this._glyphWidget||this._createHoverWidget(),this._glyphWidget},enumerable:!0,configurable:!0}),e.get=function(t){return t.getContribution(e.ID)},e.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},e.prototype._onEditorMouseDown=function(e){this._isMouseDown=!0;var t=e.target.type;t!==Hn.CONTENT_WIDGET||e.target.detail!==sk.ID?t===Hn.OVERLAY_WIDGET&&e.target.detail===uk.ID||(t!==Hn.OVERLAY_WIDGET&&e.target.detail!==uk.ID&&(this._hoverClicked=!1),this._hideWidgets()):this._hoverClicked=!0},e.prototype._onEditorMouseUp=function(e){this._isMouseDown=!1},e.prototype._onEditorMouseMove=function(e){var t=e.target.type,n=mn.d?"metaKey":"ctrlKey";this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible()||(t!==Hn.CONTENT_WIDGET||e.target.detail!==sk.ID||e.event[n])&&(t!==Hn.OVERLAY_WIDGET||e.target.detail!==uk.ID||e.event[n])&&(this._editor.getConfiguration().contribInfo.hover&&t===Hn.CONTENT_TEXT?(this.glyphWidget.hide(),this.contentWidget.startShowingAt(e.target.range,!1)):t===Hn.GUTTER_GLYPH_MARGIN?(this.contentWidget.hide(),this.glyphWidget.startShowingAt(e.target.position.lineNumber)):this._hideWidgets())},e.prototype._onKeyDown=function(e){5!==e.keyCode&&6!==e.keyCode&&57!==e.keyCode&&this._hideWidgets()},e.prototype._hideWidgets=function(){!this._contentWidget||this._isMouseDown&&this._hoverClicked&&this._contentWidget.isColorPickerVisible()||(this._glyphWidget.hide(),this._contentWidget.hide())},e.prototype._createHoverWidget=function(){var e=new lk(this._editor,this._modeService,this._openerService);this._contentWidget=new sk(this._editor,e,this._themeService),this._glyphWidget=new uk(this._editor,e)},e.prototype.showContentHover=function(e,t){this.contentWidget.startShowingAt(e,t)},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._toUnhook=_t(this._toUnhook),this._glyphWidget&&(this._glyphWidget.dispose(),this._glyphWidget=null),this._contentWidget&&(this._contentWidget.dispose(),this._contentWidget=null)},e.ID="editor.contrib.hover",e=Object(a.b)([Object(a.d)(1,rN),Object(a.d)(2,Fw),Object(a.d)(3,mm)],e)}(),dk=function(e){function t(){return e.call(this,{id:"editor.action.showHover",label:Yo("showHover","Show Hover"),alias:"Show Hover",precondition:null,kbOpts:{kbExpr:wp.editorTextFocus,primary:qt(2089,2087)}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=ck.get(t);if(n){var i=t.getPosition(),o=new sn(i.lineNumber,i.column,i.lineNumber,i.column);n.showContentHover(o,!0)}},t}(Xp);eg(ck),$p(dk),wm(function(e,t){var n=e.getColor(Zf);n&&t.addRule(".monaco-editor .hoverHighlight { background-color: "+n+"; }");var i=e.getColor(Uf);i&&t.addRule(".monaco-editor .monaco-editor-hover { background-color: "+i+"; }");var o=e.getColor(Gf);o&&(t.addRule(".monaco-editor .monaco-editor-hover { border: 1px solid "+o+"; }"),t.addRule(".monaco-editor .monaco-editor-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid "+o.transparent(.5)+"; }"));var r=e.getColor(Qg);r&&t.addRule(".monaco-editor .monaco-editor-hover a { color: "+r+"; }");var s=e.getColor(Xg);s&&t.addRule(".monaco-editor .monaco-editor-hover code { background-color: "+s+"; }")});var hk=function(){function e(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}return e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._editRange,this._text)},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new ln(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new ln(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)},e}(),pk=function(){function e(e,t){this.editor=e,this.editorWorkerService=t,this.currentRequest=Nt.b.as(null),this.decorationRemover=Nt.b.as(null),this.decorationIds=[]}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.prototype.run=function(t,n){var i=this;this.currentRequest.cancel();var o=this.editor.getSelection(),r=this.editor.getModel().uri;if(o.startLineNumber!==o.endLineNumber)return null;var s=new eT(this.editor,5);return this.editorWorkerService.canNavigateValueSet(r)?(this.currentRequest=this.editorWorkerService.navigateValueSet(r,o,n),this.currentRequest=this.currentRequest.then(function(e){return e&&e.range&&e.value?e:null})):this.currentRequest=Nt.b.as(null),this.currentRequest.then(function(n){if(n&&n.range&&n.value&&s.validate(i.editor)){var r=sn.lift(n.range),a=n.range,u=n.value.length-(o.endColumn-o.startColumn);a={startLineNumber:a.startLineNumber,startColumn:a.startColumn,endLineNumber:a.endLineNumber,endColumn:a.startColumn+n.value.length},u>1&&(o=new ln(o.startLineNumber,o.startColumn,o.endLineNumber,o.endColumn+u-1));var l=new hk(r,o,n.value);i.editor.pushUndoStop(),i.editor.executeCommand(t,l),i.editor.pushUndoStop(),i.decorationIds=i.editor.deltaDecorations(i.decorationIds,[{range:a,options:e.DECORATION}]),i.decorationRemover.cancel(),i.decorationRemover=Nt.b.timeout(350),i.decorationRemover.then(function(){i.editor.changeDecorations(function(e){i.decorationIds=e.deltaDecorations(i.decorationIds,[])})})}})},e.ID="editor.contrib.inPlaceReplaceController",e.DECORATION=ph.register({className:"valueSetReplacement"}),e=Object(a.b)([Object(a.d)(1,Vo)],e)}(),gk=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.up",label:Yo("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:3154}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=pk.get(t);if(n)return n.run(this.id,!0)},t}(Xp),fk=function(e){function t(){return e.call(this,{id:"editor.action.inPlaceReplace.down",label:Yo("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:wp.writable,kbOpts:{kbExpr:wp.editorTextFocus,primary:3156}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=pk.get(t);if(n)return n.run(this.id,!1)},t}(Xp);eg(pk),$p(gk),$p(fk),wm(function(e,t){var n=e.getColor(Rm);n&&t.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+n+"; }")});var mk=function(){function e(e,t){this.selection=e,this.descending=t}return e.prototype.getEditOperations=function(e,t){var n=function(e,t,n){var i=yk(e,t,n);return i?iC.replace(new sn(i.startLineNumber,1,i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),i.after.join("\n")):null}(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=yk(e,t,n);if(!i)return!1;for(var o=0,r=i.before.length;o=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())}),!0===n&&(a=a.reverse()),{startLineNumber:i,endLineNumber:o,before:r,after:a}}var vk=function(){function e(e,t){this.selection=e,this.cursors=t}return e.prototype.getEditOperations=function(e,t){for(var n=function(e,t){t.sort(function(e,t){return e.lineNumber===t.lineNumber?e.column-t.column:e.lineNumber-t.lineNumber});for(var n=t.length-2;n>=0;n--)t[n].lineNumber===t[n+1].lineNumber&&t.splice(n,1);for(var i=[],o=0,r=0,s=t.length,a=1,u=e.getLineCount();a<=u;a++){var l=e.getLineContent(a),c=l.length+1,d=0;if(!(r1&&(o=e.getLineMaxColumn(n-=1)),t.addTrackedEditOperation(new sn(n,o,i,r),null)}},e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations()[0].range;return new ln(n.endLineNumber,this.restoreCursorToColumn,n.endLineNumber,this.restoreCursorToColumn)},e}();function Mk(e,t){for(var n=0,i=0;i=i.startLineNumber+1&&t<=i.endLineNumber+1?t-1:t)};var y=Bc.getGoodIndentForLine(a,e.getLanguageIdAtPosition(c,1),i.startLineNumber+1,s);null!==y&&(m=Ui(e.getLineContent(i.startLineNumber)),(_=Mk(y,o))!==(M=Mk(m,o))&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,_-M))}}else t.addEditOperation(new sn(i.startLineNumber,1,i.startLineNumber,1),h+"\n")}else{var v;if(d=e.getLineContent(c=i.startLineNumber-1),t.addEditOperation(new sn(c,1,c+1,1),null),t.addEditOperation(new sn(i.endLineNumber,e.getLineMaxColumn(i.endLineNumber),i.endLineNumber,e.getLineMaxColumn(i.endLineNumber)),"\n"+d),this.shouldAutoIndent(e,i))if(a.getLineContent=function(t){return e.getLineContent(t===c?i.startLineNumber:t)},null!==(v=this.matchEnterRule(e,s,o,i.startLineNumber,i.startLineNumber-2)))0!==v&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,v);else{var b=Bc.getGoodIndentForLine(a,e.getLanguageIdAtPosition(i.startLineNumber,1),c,s);if(null!==b){var _,M,w=Ui(e.getLineContent(i.startLineNumber));(_=Mk(b,o))!==(M=Mk(w,o))&&this.getIndentEditsOfMovingBlock(e,t,i,o,r,_-M)}}}}this._selectionId=t.trackSelection(i)}},e.prototype.buildIndentConverter=function(e){return{shiftIndent:function(t){for(var n=Ah.shiftIndentCount(t,t.length+1,e),i="",o=0;o=1&&!(Gi(s===o&&void 0!==r?r:e.getLineContent(s))>=0);)s--;if(s<1||i>e.getLineCount())return null;var a=e.getLineMaxColumn(s),u=Bc.getEnterAction(e,new sn(s,a,s,a));if(u){var l=u.indentation,c=u.enterAction;c.indentAction===xc.None?l=u.indentation+c.appendText:c.indentAction===xc.Indent?l=u.indentation+c.appendText:c.indentAction===xc.IndentOutdent?l=u.indentation:c.indentAction===xc.Outdent&&(l=t.unshiftIndent(u.indentation)+c.appendText);var d=e.getLineContent(i);if(this.trimLeft(d).indexOf(this.trimLeft(l))>=0){var h=Ui(e.getLineContent(i)),p=Ui(l);return 2&Bc.getIndentMetadata(e,i)&&(p=t.unshiftIndent(p)),Mk(p,n)-Mk(h,n)}}return null},e.prototype.trimLeft=function(e){return e.replace(/^\s+/,"")},e.prototype.shouldAutoIndent=function(e,t){if(!this._autoIndent)return!1;if(!e.isCheapToTokenize(t.startLineNumber))return!1;var n=e.getLanguageIdAtPosition(t.startLineNumber,1);return n===e.getLanguageIdAtPosition(t.endLineNumber,1)&&null!==Bc.getIndentRulesSupport(n)},e.prototype.getIndentEditsOfMovingBlock=function(e,t,n,i,o,r){for(var s=n.startLineNumber;s<=n.endLineNumber;s++){var a=Ui(e.getLineContent(s)),u=wk(Mk(a,i)+r,i,o);u!==a&&(t.addEditOperation(new sn(s,1,s,a.length+1),u),s===n.endLineNumber&&n.endColumn<=a.length+1&&""===u&&(this._moveEndLineSelectionShrink=!0))}},e.prototype.computeCursorState=function(e,t){var n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumbere.endLineNumber+1?(o.push(e),t):new ln(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn):t.startLineNumber>e.endLineNumber?(o.push(e),t):new ln(e.startLineNumber,e.startColumn,t.endLineNumber,t.endColumn)});o.push(r);for(var s=t.getModel(),a=[],u=[],l=i,c=0,d=0,h=o.length;d=1){var L=!0;""===_&&(L=!1),!L||" "!==_.charAt(_.length-1)&&"\t"!==_.charAt(_.length-1)||(L=!1,_=_.replace(/[\s\uFEFF\xA0]+$/g," "));var N=w.substr(C-1);_+=(L?" ":"")+N,y=L?N.length+1:N.length}else y=0}var I=new sn(g,1,f,m);if(!I.isEmpty()){var S=void 0;p.isEmpty()?(a.push(iC.replace(I,_)),S=new ln(I.startLineNumber-c,_.length-y+1,g-c,_.length-y+1)):p.startLineNumber===p.endLineNumber?(a.push(iC.replace(I,_)),S=new ln(p.startLineNumber-c,p.startColumn,p.endLineNumber-c,p.endColumn)):(a.push(iC.replace(I,_)),S=new ln(p.startLineNumber-c,p.startColumn,p.startLineNumber-c,_.length-v)),null!==sn.intersectRanges(I,i)?l=S:u.push(S)}c+=I.endLineNumber-I.startLineNumber}u.unshift(l),t.pushUndoStop(),t.executeEdits(this.id,a,u),t.pushUndoStop()},t}(Xp),Vk=function(e){function t(){return e.call(this,{id:"editor.action.transpose",label:Yo("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:wp.writable})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){for(var n=t.getSelections(),i=t.getModel(),o=[],r=0,s=n.length;r=l){if(u.lineNumber===i.getLineCount())continue;var c=new sn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d=i.getValueInRange(c).split("").reverse().join("");o.push(new Sh(new ln(u.lineNumber,Math.max(1,u.column-1),u.lineNumber+1,1),d))}else c=new sn(u.lineNumber,Math.max(1,u.column-1),u.lineNumber,u.column+1),d=i.getValueInRange(c).split("").reverse().join(""),o.push(new Th(c,d,new ln(u.lineNumber,u.column+1,u.lineNumber,u.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()},t}(Xp),Yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(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 ln(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)),i},t.prototype.run=function(e,t){var n=this,i=t.getSelections().map(function(e){return n.getCursorsForSelection(e,t)}).reduce(function(e,t){return e.concat(t)});i.length>0&&t.setSelections(i)},t}(Xp),sj=function(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n},aj=function(){function e(e,t,n,i,o,r,s){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=i,this.wholeWord=o,this.matchCase=r,this.currentMatch=s}return e.create=function(t,n){var i=n.getState();if(!t.isFocused()&&i.isRevealed&&i.searchString.length>0)return new e(t,n,!1,i.searchString,i.wholeWord,i.matchCase,null);var o,r,s=!1,a=t.getSelections();1===a.length&&a[0].isEmpty()?(s=!0,o=!0,r=!0):(o=i.wholeWord,r=i.matchCase);var u,l=t.getSelection(),c=null;if(l.isEmpty()){var d=t.getModel().getWordAtPosition(l.getStartPosition());if(!d)return null;u=d.word,c=new ln(l.startLineNumber,d.startColumn,l.startLineNumber,d.endColumn)}else u=t.getModel().getValueInRange(l).replace(/\r\n/g,"\n");return new e(t,n,s,u,o,r,c)},e.prototype.addSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.concat(e),e,0)},e.prototype.moveSelectionToNextFindMatch=function(){var e=this._getNextMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getNextMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findNextMatch(this.searchText,n.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new ln(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.addSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.concat(e),e,0)},e.prototype.moveSelectionToPreviousFindMatch=function(){var e=this._getPreviousMatch();if(!e)return null;var t=this._editor.getSelections();return new sj(t.slice(0,t.length-1).concat(e),e,0)},e.prototype._getPreviousMatch=function(){if(this.currentMatch){var e=this.currentMatch;return this.currentMatch=null,e}this.findController.highlightFindOptions();var t=this._editor.getSelections(),n=t[t.length-1],i=this._editor.getModel().findPreviousMatch(this.searchText,n.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);return i?new ln(i.range.startLineNumber,i.range.startColumn,i.range.endLineNumber,i.range.endColumn):null},e.prototype.selectAll=function(){return this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824)},e}(),uj=function(e){function t(t){var n=e.call(this)||this;return n._editor=t,n._ignoreSelectionChange=!1,n._session=null,n._sessionDispose=[],n}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.dispose=function(){this._endSession(),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t.ID},t.prototype._beginSessionIfNeeded=function(e){var t=this;if(!this._session){var n=aj.create(this._editor,e);if(!n)return;this._session=n;var i={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(i.wholeWordOverride=1,i.matchCaseOverride=1,i.isRegexOverride=2),e.getState().change(i,!1),this._sessionDispose=[this._editor.onDidChangeCursorSelection(function(e){t._ignoreSelectionChange||t._endSession()}),this._editor.onDidBlurEditorText(function(){t._endSession()}),e.getState().onFindReplaceStateChange(function(e){(e.matchCase||e.wholeWord)&&t._endSession()})]}},t.prototype._endSession=function(){this._sessionDispose=_t(this._sessionDispose),this._session&&this._session.isDisconnectedFromFindController&&this._session.findController.getState().change({wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0},!1),this._session=null},t.prototype._setSelections=function(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1},t.prototype._expandEmptyToWord=function(e,t){if(!t.isEmpty())return t;var n=e.getWordAtPosition(t.getStartPosition());return n?new ln(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t},t.prototype._applySessionResult=function(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))},t.prototype.getSession=function(e){return this._session},t.prototype.addSelectionToNextFindMatch=function(e){if(!this._session){var t=this._editor.getSelections();if(t.length>1){var n=e.getState().matchCase;if(!vj(this._editor.getModel(),t,n)){for(var i=this._editor.getModel(),o=[],r=0,s=t.length;r0&&n.isRegex)t=this._editor.getModel().findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1,1073741824);else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll()}if(t.length>0){for(var i=this._editor.getSelection(),o=0,r=t.length;o1){var u=r.getState().matchCase;if(!vj(t.getModel(),a,u))return null}s=aj.create(t,r)}if(!s)return null;var l=null,c=Ll.has(n);if(s.currentMatch){if(c)return null;if(!t.getConfiguration().contribInfo.occurrencesHighlight)return null;l=s.currentMatch}if(/^[ \t]+$/.test(s.searchText))return null;if(s.searchText.length>200)return null;var d=r.getState(),h=d.matchCase;if(d.isRevealed){var p=d.searchString;h||(p=p.toLowerCase());var g=s.searchText;if(h||(g=g.toLowerCase()),p===g&&s.matchCase===d.matchCase&&s.wholeWord===d.wholeWord&&!d.isRegex)return null}return new mj(l,s.searchText,s.matchCase,s.wholeWord?t.getConfiguration().wordSeparators:null)},t.prototype._setState=function(e){if(mj.softEquals(this.state,e))this.state=e;else if(this.state=e,this.state){var n=this.editor.getModel();if(!n.isTooLargeForTokenization()){var i=Ll.has(n),o=n.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(e){return e.range});o.sort(sn.compareRangesUsingStarts);var r=this.editor.getSelections();r.sort(sn.compareRangesUsingStarts);for(var s=[],a=0,u=0,l=o.length,c=r.length;a=c)s.push(d),a++;else{var h=sn.compareRangesUsingStarts(d,r[u]);h<0?(s.push(d),a++):h>0?u++:(a++,u++)}}var p=s.map(function(e){return{range:e,options:i?t._SELECTION_HIGHLIGHT:t._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,p)}}else this.decorations.length>0&&(this.decorations=this.editor.deltaDecorations(this.decorations,[]))},t.prototype.dispose=function(){this._setState(null),e.prototype.dispose.call(this)},t.ID="editor.contrib.selectionHighlighter",t._SELECTION_HIGHLIGHT_OVERVIEW=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight",overviewRuler:{color:ym(cm),darkColor:ym(cm),position:xu.Center}}),t._SELECTION_HIGHLIGHT=ph.register({stickiness:Au.NeverGrowsWhenTypingAtEdges,className:"selectionHighlight"}),t}(Ct);function vj(e,t,n){for(var i=bj(e,t[0],!n),o=1,r=t.length;o1;na(this.element,"multiple",e),this.keyMultipleSignatures.set(e),this.signature.innerHTML="",this.docs.innerHTML="";var t=this.hints.signatures[this.currentSignature];if(t){var n=Ba(this.signature,wj(".code")),i=t.parameters.length>0,o=this.editor.getConfiguration().fontInfo;n.style.fontSize=o.fontSize+"px",n.style.fontFamily=o.fontFamily,i?this.renderParameters(n,t,this.hints.activeParameter):Ba(n,wj("span")).textContent=t.label,_t(this.renderDisposeables),this.renderDisposeables=[];var r=t.parameters[this.hints.activeParameter];if(r&&r.documentation){var s=wj("span.documentation");if("string"==typeof r.documentation)ta(this.docs,"markdown-docs"),s.textContent=r.documentation;else{ea(this.docs,"markdown-docs");var a=this.markdownRenderer.render(r.documentation);this.renderDisposeables.push(a),s.appendChild(a.element)}Ba(this.docs,wj("p",null,s))}na(this.signature,"has-docs",!!t.documentation),"string"==typeof t.documentation?Ba(this.docs,wj("p",null,t.documentation)):(a=this.markdownRenderer.render(t.documentation),this.renderDisposeables.push(a),Ba(this.docs,a.element));var u=String(this.currentSignature+1);if(this.hints.signatures.length<10&&(u+="/"+this.hints.signatures.length),this.overloads.textContent=u,r){var l=r.label;this.announcedLabel!==l&&(CM(Yo("hint","{0}, hint",l)),this.announcedLabel=l)}this.editor.layoutContentWidget(this),this.scrollbar.scanDomNode()}},e.prototype.renderParameters=function(e,t,n){for(var i,o=t.label.length,r=0,s=t.parameters.length-1;s>=0;s--){var a=t.parameters[s],u=0,l=0;(r=t.label.lastIndexOf(a.label,o-1))>=0&&(u=r,l=r+a.label.length),(i=document.createElement("span")).textContent=t.label.substring(l,o),Va(e,i),(i=document.createElement("span")).className="parameter "+(s===n?"active":""),i.textContent=t.label.substring(u,l),Va(e,i),o=u}(i=document.createElement("span")).textContent=t.label.substring(0,o),Va(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=_t(this.disposables),this.renderDisposeables=_t(this.renderDisposeables),this.model&&(this.model.dispose(),this.model=null)},e.ID="editor.widget.parameterHintsWidget",e=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,rN),Object(a.d)(3,Fw)],e)}();wm(function(e,t){var n=e.getColor(Gf);n&&(t.addRule(".monaco-editor .parameter-hints-widget { border: "+(e.type===bm?2:1)+"px solid "+n+"; }"),t.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+n.transparent(.5)+"; }"),t.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+n.transparent(.5)+"; }"));var i=e.getColor(Uf);i&&t.addRule(".monaco-editor .parameter-hints-widget { background-color: "+i+"; }");var o=e.getColor(Qg);o&&t.addRule(".monaco-editor .parameter-hints-widget a { color: "+o+"; }");var r=e.getColor(Xg);r&&t.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+r+"; }")});var Nj=function(){function e(e,t){this.editor=e,this.widget=t.createInstance(Lj,this.editor)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.getId=function(){return e.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=_t(this.widget)},e.ID="editor.controller.parameterHints",e=Object(a.b)([Object(a.d)(1,Un)],e)}(),Ij=function(e){function t(){return e.call(this,{id:"editor.action.triggerParameterHints",label:Yo("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:wp.hasSignatureHelpProvider,kbOpts:{kbExpr:wp.editorTextFocus,primary:3082}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=Nj.get(t);n&&n.trigger()},t}(Xp);eg(Nj),$p(Ij);var Sj=qa.WEIGHT.editorContrib(75),xj=Qp.bindToContribution(Nj.get);qp(new xj({id:"closeParameterHints",precondition:_j.Visible,handler:function(e){return e.cancel()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:9,secondary:[1033]}})),qp(new xj({id:"showPrevParameterHint",precondition:To.and(_j.Visible,_j.MultipleSignatures),handler:function(e){return e.previous()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}})),qp(new xj({id:"showNextParameterHint",precondition:To.and(_j.Visible,_j.MultipleSignatures),handler:function(e){return e.next()},kbOpts:{weight:Sj,kbExpr:wp.editorTextFocus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}));var Dj=function(){function e(e,t,n){this._editor=e,this._contextMenuService=t,this._onApplyCodeAction=n,this._onDidExecuteCodeAction=new zt,this.onDidExecuteCodeAction=this._onDidExecuteCodeAction.event}return e.prototype.show=function(e,t){var n=this,i=e.then(function(e){return e.map(function(e){return new eu(e.command?e.command.id:e.title,e.title,void 0,!0,function(){return ms(n._onApplyCodeAction(e),function(){return n._onDidExecuteCodeAction.fire(void 0)})})})});this._contextMenuService.showContextMenu({getAnchor:function(){return rn.isIPosition(t)&&(t=n._toCoords(t)),t},getActions:function(){return i},onHide:function(){n._visible=!1},autoSelectFirstItem:!0})},Object.defineProperty(e.prototype,"isVisible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),e.prototype._toCoords=function(e){this._editor.revealPosition(e,1),this._editor.render();var t=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),n=Na(this._editor.getDomNode());return{x:n.left+t.left,y:n.top+t.top+t.height}},e}(),Tj=(n("JcY2"),function(){function e(e){var t=this;this._disposables=[],this._onClick=new zt,this.onClick=this._onClick.event,this._futureFixes=new hn,this._domNode=document.createElement("div"),this._domNode.className="lightbulb-glyph",this._editor=e,this._editor.addContentWidget(this),this._disposables.push(this._editor.onDidChangeModel(function(e){return t._futureFixes.cancel()})),this._disposables.push(this._editor.onDidChangeModelLanguage(function(e){return t._futureFixes.cancel()})),this._disposables.push(this._editor.onDidChangeModelContent(function(e){t._model&&t.model.position.lineNumber>=t._editor.getModel().getLineCount()&&t._futureFixes.cancel()})),this._disposables.push(ra(this._domNode,"click",function(e){t._editor.focus();var n=Na(t._domNode),i=n.top,o=n.height,r=t._editor.getConfiguration().lineHeight,s=Math.floor(r/3);t._position.position.lineNumber0?t._show():t.hide()},function(e){t.hide()})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._domNode.title},set:function(e){this._domNode.title=e},enumerable:!0,configurable:!0}),e.prototype._show=function(){var t=this._editor.getConfiguration();if(t.contribInfo.lightbulbEnabled){var n=this._model.position.lineNumber,i=this._editor.getModel(),o=i.getOptions().tabSize,r=i.getLineContent(n),s=uh.computeIndentLevel(r,o),a=n;t.fontInfo.spaceWidth*s>22||(n>1?a-=1:a+=1),this._position={position:{lineNumber:a,column:1},preference:e._posPref},this._editor.layoutContentWidget(this)}},e.prototype.hide=function(){this._position=null,this._model=null,this._futureFixes.cancel(),this._editor.layoutContentWidget(this)},e._posPref=[Wn.EXACT],e}());function Ej(e,t,n){var i=[],o=Dl.all(e).map(function(o){return hs(function(i){return o.provideCodeActions(e,t,{only:n?n.value:void 0},i)}).then(function(e){if(Array.isArray(e))for(var t=0,o=e;t0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0&&(this._edits=this._edits.map(function(e,t){return{value:e,index:t}}).sort(function(e,t){var n=sn.compareRangesUsingStarts(e.value.range,t.value.range);return 0===n&&(n=e.index-t.index),n}).map(function(e){return e.value}),this._initialSelections=this._getInitialSelections(),this._model.pushStackElement(),this._model.pushEditOperations(this._initialSelections,this._edits,function(t){return e._getEndCursorSelections(t)}),this._model.pushStackElement()),void 0!==this._newEol&&(this._model.pushStackElement(),this._model.setEOL(this._newEol),this._model.pushStackElement())},e.prototype._getInitialSelections=function(){var e=this._edits[0].range;return[new ln(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn)]},e.prototype._getEndCursorSelections=function(e){for(var t=0,n=0;n1&&t>1?Yo("summary.nm","Made {0} text edits in {1} files",e,t):Yo("summary.n0","Made {0} text edits in one file",e,t)},e.prototype.perform=function(){return Rj(this,void 0,Nt.b,function(){var e,t,n,i,o,r,s,a,u,l,c,d,h=this;return zj(this,function(p){switch(p.label){case 0:for(e=new Set,t=0,n=[],o=0,r=this._edits;o0)throw i.dispose(),new Error(Yo("conflict","These files have changed in the meantime: {0}",o.join(", ")));return[4,i.apply()];case 2:return r=s.sent(),i.dispose(),[2,r]}})})},e=Object(a.b)([Object(a.d)(2,hN),Object(a.d)(3,Xn(Cr))],e)}(),Yj=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},Zj=this&&this.__generator||function(e,t){var n,i,o,r,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=i[2&r[0]?"return":r[0]?"throw":"next"])&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[0,o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]1&&Yo("meta.titleReference"," \u2013 {0} references",e.references.length)}},qj=function(){function e(e,t){e instanceof _T&&gT.inPeekEditor.bindTo(t)}return e.prototype.dispose=function(){},e.prototype.getId=function(){return e.ID},e.ID="editor.contrib.referenceController",e=Object(a.b)([Object(a.d)(1,Wo)],e)}(),$j=function(e){function t(){return e.call(this,{id:"editor.action.referenceSearch.trigger",label:Yo("references.action.label","Find All References"),alias:"Find All References",precondition:To.and(wp.hasReferenceProvider,gT.notInPeekEditor,wp.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:wp.editorTextFocus,primary:1094},menuOpts:{group:"navigation",order:1.5}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=uE.get(t);if(n){var i=t.getSelection(),o=nA(t.getModel(),i.getStartPosition()).then(function(e){return new kT(e)});n.toggleWidget(i,o,Jj)}},t}(Xp);function eA(e,t){tA(e,function(e){return e.closeWidget()})}function tA(e,t){var n=function(e){var t=e.get(Fo).getFocusedCodeEditor();return t instanceof _T?t.getParentEditor():t}(e);if(n){var i=uE.get(n);i&&t(i)}}function nA(e,t){var n=vl.ordered(e).map(function(n){return hs(function(i){return n.provideReferences(e,t,{includeDeclaration:!0},i)}).then(function(e){if(Array.isArray(e))return e},function(e){Dt(e)})});return Nt.b.join(n).then(function(e){for(var t=[],n=0,i=e;n0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]0},e.prototype.resolveRenameLocation=function(){return oA(this,void 0,Nt.b,function(){var e,t,n,i=this;return rA(this,function(o){switch(o.label){case 0:return(e=this._provider[0]).resolveRenameLocation?[4,hs(function(t){return e.resolveRenameLocation(i.model,i.position,t)})]:[3,2];case 1:t=o.sent(),o.label=2;case 2:return t||(n=this.model.getWordAtPosition(this.position))&&(t=new sn(this.position.lineNumber,n.startColumn,this.position.lineNumber,n.endColumn)),[2,t]}})})},e.prototype.provideRenameEdits=function(e,t,n,i){return void 0===t&&(t=0),void 0===n&&(n=[]),void 0===i&&(i=this.position),oA(this,void 0,Nt.b,function(){var i,o,r=this;return rA(this,function(s){switch(s.label){case 0:return t>=this._provider.length?[2,{edits:void 0,rejectReason:n.join("\n")}]:(i=this._provider[t],[4,hs(function(t){return i.provideRenameEdits(r.model,r.position,e,t)})]);case 1:return(o=s.sent())?o.rejectReason?[2,this.provideRenameEdits(e,t+1,n.concat(o.rejectReason))]:[2,o]:[2,this.provideRenameEdits(e,t+1,n.concat(Yo("no result","No result.")))]}})})},e}(),aA=new zo("renameInputVisible",!1),uA=function(){function e(e,t,n,i,o,r,s){this.editor=e,this._notificationService=t,this._textModelResolverService=n,this._progressService=i,this._fileService=s,this._renameInputField=new iA(e,r),this._renameInputVisible=aA.bindTo(o)}return e.get=function(t){return t.getContribution(e.ID)},e.prototype.dispose=function(){this._renameInputField.dispose()},e.prototype.getId=function(){return e.ID},e.prototype.run=function(){return oA(this,void 0,Nt.b,function(){var e,t,n,i,o,r,s,a,u=this;return rA(this,function(l){switch(l.label){case 0:e=this.editor.getPosition(),t=new sA(this.editor.getModel(),e),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,t.resolveRenameLocation()];case 2:return n=l.sent(),[3,4];case 3:return i=l.sent(),lE.get(this.editor).showMessage(i,e),[2,void 0];case 4:return o=this.editor.getModel().getValueInRange(n),r=this.editor.getSelection(),s=0,a=o.length,r.isEmpty()||r.startLineNumber!==r.endLineNumber||(s=Math.max(0,r.startColumn-n.startColumn),a=Math.min(n.endColumn,r.endColumn)-n.startColumn),this._renameInputVisible.set(!0),[2,this._renameInputField.getInput(sn.lift(n),o,s,a).then(function(e){if(u._renameInputVisible.reset(),"boolean"!=typeof e){u.editor.focus();var i=new Vj(u.editor,null,u._textModelResolverService,u._fileService),r=new eT(u.editor,15),s=t.provideRenameEdits(e,0,[],sn.lift(n).getStartPosition()).then(function(t){if(!t.rejectReason)return i.add(t.edits),i.perform().then(function(t){t&&u.editor.setSelection(t),CM(Yo("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",o,e,i.ariaMessage()))});r.validate(u.editor)?lE.get(u.editor).showMessage(t.rejectReason,u.editor.getPosition()):u._notificationService.info(t.rejectReason)},function(e){return u._notificationService.error(Yo("rename.failed","Rename failed to execute.")),Nt.b.wrapError(e)});return u._progressService.showWhile(s,250),s}e&&u.editor.focus()},function(e){return u._renameInputVisible.reset(),Nt.b.wrapError(e)})]}})})},e.prototype.acceptRenameInput=function(){this._renameInputField.acceptInput()},e.prototype.cancelRenameInput=function(){this._renameInputField.cancelInput(!0)},e.ID="editor.contrib.renameController",e=Object(a.b)([Object(a.d)(1,lu),Object(a.d)(2,hN),Object(a.d)(3,qM),Object(a.d)(4,Wo),Object(a.d)(5,mm),Object(a.d)(6,Xn(Cr))],e)}(),lA=function(e){function t(){return e.call(this,{id:"editor.action.rename",label:Yo("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:To.and(wp.writable,wp.hasRenameProvider),kbOpts:{kbExpr:wp.editorTextFocus,primary:60},menuOpts:{group:"1_modification",order:1.1}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=uA.get(t);if(n)return n.run()},t}(Xp);eg(uA),$p(lA);var cA=Qp.bindToContribution(uA.get);qp(new cA({id:"acceptRenameInput",precondition:aA,handler:function(e){return e.acceptRenameInput()},kbOpts:{weight:qa.WEIGHT.editorContrib(99),kbExpr:wp.focus,primary:3}})),qp(new cA({id:"cancelRenameInput",precondition:aA,handler:function(e){return e.cancelRenameInput()},kbOpts:{weight:qa.WEIGHT.editorContrib(99),kbExpr:wp.focus,primary:9,secondary:[1033]}})),Jp("_executeDocumentRenameProvider",function(e,t,n){var i=n.newName;if("string"!=typeof i)throw jt("newName");return function(e,t,n){return oA(this,void 0,Nt.b,function(){return rA(this,function(i){return[2,new sA(e,t).provideRenameEdits(n)]})})}(e,t,i)});var dA=function(){function e(){}return Object.defineProperty(e.prototype,"range",{get:function(){return new sn(this.start.lineNumber,this.start.column,this.end.lineNumber,this.end.column)},enumerable:!0,configurable:!0}),e}(),hA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"start",{get:function(){return this.hasChildren?this.children[0].start:this.parent.start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this.hasChildren?this.children[this.children.length-1].end:this.parent.end},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasChildren",{get:function(){return this.children&&this.children.length>0},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}(dA),pA=function(e){function t(){var t=e.call(this)||this;return t.elements=new hA,t.elements.parent=t,t}return Object(a.c)(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}(dA),gA=function(e,t,n){this.range=e,this.bracket=t,this.bracketType=n};function fA(e){var t=new dA;return t.start=e.range.getStartPosition(),t.end=e.range.getEndPosition(),t}var mA,yA=function(){function e(e){this._model=e,this._lineCount=this._model.getLineCount(),this._versionId=this._model.getVersionId(),this._lineNumber=0,this._tokenIndex=0,this._lineTokens=null,this._advance()}return e.prototype._advance=function(){for(this._lineTokens&&(this._tokenIndex++,this._tokenIndex>=this._lineTokens.getCount()&&(this._lineTokens=null));this._lineNumber0)return this._nextBuff.shift();var e=this._rawTokenScanner.next();if(!e)return null;var t=e.lineNumber,n=e.lineText,i=e.type,o=e.startOffset,r=e.endOffset;this._cachedLanguageId!==e.languageId&&(this._cachedLanguageId=e.languageId,this._cachedLanguageBrackets=Bc.getBracketsSupport(this._cachedLanguageId));var s,a=this._cachedLanguageBrackets;if(!a||_c(i))return new gA(new sn(t,o+1,t,r+1),0,null);do{if(s=kc.findNextBracketInToken(a.forwardRegex,t,n,o,r)){var u=s.startColumn-1,l=s.endColumn-1;o=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:mA.EOF,pos:this.pos,len:0};var t,n=this.pos,i=0,o=this.value.charCodeAt(n);if("number"==typeof(t=e._table[o]))return this.pos+=1,{type:t,pos:n,len:1};if(e.isDigitCharacter(o)){t=mA.Int;do{o=this.value.charCodeAt(n+(i+=1))}while(e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}if(e.isVariableCharacter(o)){t=mA.VariableName;do{o=this.value.charCodeAt(n+ ++i)}while(e.isVariableCharacter(o)||e.isDigitCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}}t=mA.Format;do{o=this.value.charCodeAt(n+(i+=1))}while(!isNaN(o)&&"undefined"==typeof e._table[o]&&!e.isDigitCharacter(o)&&!e.isVariableCharacter(o));return this.pos+=i,{type:t,pos:n,len:i}},e._table=((RA={})[36]=mA.Dollar,RA[58]=mA.Colon,RA[44]=mA.Comma,RA[123]=mA.CurlyOpen,RA[125]=mA.CurlyClose,RA[92]=mA.Backslash,RA[47]=mA.Forwardslash,RA[124]=mA.Pipe,RA[43]=mA.Plus,RA[45]=mA.Dash,RA[63]=mA.QuestionMark,RA),e}(),DA=function(){function e(){this._children=[]}return e.prototype.appendChild=function(e){return e instanceof TA&&this._children[this._children.length-1]instanceof TA?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this},e.prototype.replace=function(e,t){var n=e.parent,i=n.children.indexOf(e),o=n.children.slice(0);o.splice.apply(o,[i,1].concat(t)),n._children=o,t.forEach(function(e){return e.parent=n})},Object.defineProperty(e.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"snippet",{get:function(){for(var e=this;;){if(!e)return;if(e instanceof FA)return e;e=e.parent}},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.children.reduce(function(e,t){return e+t.toString()},"")},e.prototype.len=function(){return 0},e}(),TA=function(e){function t(t){var n=e.call(this)||this;return n.value=t,n}return Object(a.c)(t,e),t.escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},t.prototype.toString=function(){return this.value},t.prototype.toTextmateString=function(){return t.escape(this.value)},t.prototype.len=function(){return this.value.length},t.prototype.clone=function(){return new t(this.value)},t}(DA),EA=function(e){function t(t){var n=e.call(this)||this;return n.index=t,n}return Object(a.c)(t,e),t.compareByIndex=function(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop?-1:e.indext.index?1:0},Object.defineProperty(t.prototype,"isFinalTabstop",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choice",{get:function(){return 1===this._children.length&&this._children[0]instanceof kA?this._children[0]:void 0},enumerable:!0,configurable:!0}),t.prototype.toTextmateString=function(){return 0===this.children.length?"$"+this.index:this.choice?"${"+this.index+"|"+this.choice.toTextmateString()+"|}":"${"+this.index+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+"}"},t.prototype.clone=function(){var e=new t(this.index);return e._children=this.children.map(function(e){return e.clone()}),e},t}(DA),kA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=[],t}return Object(a.c)(t,e),t.prototype.appendChild=function(e){return e instanceof TA&&(e.parent=this,this.options.push(e)),this},t.prototype.toString=function(){return this.options[0].value},t.prototype.toTextmateString=function(){return this.options.map(function(e){return e.value.replace(/\||,/g,"\\$&")}).join(",")},t.prototype.len=function(){return this.options[0].len()},t.prototype.clone=function(){var e=new t;return this.options.forEach(e.appendChild,e),e},t}(DA),jA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.resolve=function(e){var t=this;return e.replace(this.regexp,function(){for(var e="",n=0,i=t._children;no.index?arguments[o.index]:"";e+=r=o.resolve(r)}else e+=o.toString()}return e})},t.prototype.toString=function(){return""},t.prototype.toTextmateString=function(){return"/"+TA.escape(this.regexp.source)+"/"+this.children.map(function(e){return e.toTextmateString()})+"/"+(this.regexp.ignoreCase?"i":"")},t.prototype.clone=function(){var e=new t;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(function(e){return e.clone()}),e},t}(DA),AA=function(e){function t(t,n,i,o){var r=e.call(this)||this;return r.index=t,r.shorthandName=n,r.ifValue=i,r.elseValue=o,r}return Object(a.c)(t,e),t.prototype.resolve=function(e){return"upcase"===this.shorthandName?e?e.toLocaleUpperCase():"":"downcase"===this.shorthandName?e?e.toLocaleLowerCase():"":"capitalize"===this.shorthandName?e?e[0].toLocaleUpperCase()+e.substr(1):"":Boolean(e)&&"string"==typeof this.ifValue?this.ifValue:Boolean(e)||"string"!=typeof this.elseValue?e||"":this.elseValue},t.prototype.toTextmateString=function(){var e="${";return e+=this.index,this.shorthandName?e+=":/"+this.shorthandName:this.ifValue&&this.elseValue?e+=":?"+this.ifValue+":"+this.elseValue:this.ifValue?e+=":+"+this.ifValue:this.elseValue&&(e+=":-"+this.elseValue),e+"}"},t.prototype.clone=function(){return new t(this.index,this.shorthandName,this.ifValue,this.elseValue)},t}(DA),OA=function(e){function t(t){var n=e.call(this)||this;return n.name=t,n}return Object(a.c)(t,e),t.prototype.resolve=function(e){var t=e.resolve(this),n=this._children[0];return n instanceof jA&&1===this._children.length&&(t=n.resolve(t||"")),void 0!==t&&(this._children=[new TA(t)],!0)},t.prototype.toTextmateString=function(){return 0===this.children.length?"${"+this.name+"}":"${"+this.name+":"+this.children.map(function(e){return e.toTextmateString()}).join("")+"}"},t.prototype.clone=function(){var e=new t(this.name);return e._children=this.children.map(function(e){return e.clone()}),e},t}(DA);function PA(e,t){for(var n=e.slice();n.length>0;){var i=n.shift();if(!t(i))break;n.unshift.apply(n,i.children)}}var RA,zA,WA,FA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),Object.defineProperty(t.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var e,t=[];this.walk(function(n){return n instanceof EA&&(t.push(n),e=!e||e.index0?o.set(e.index,e.children):r.push(e)),!0});for(var a=0,u=r;a0&&t),!o.has(0)&&n&&i.appendChild(new EA(0)),i},e.prototype._accept=function(e,t){if(void 0===e||this._token.type===e){var n=!t||this._scanner.tokenText(this._token);return this._token=this._scanner.next(),n}return!1},e.prototype._backTo=function(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1},e.prototype._until=function(e){if(this._token.type===mA.EOF)return!1;for(var t=this._token;this._token.type!==e;)this._token=this._scanner.next();var n=this._scanner.value.substring(t.pos,this._token.pos);return this._token=this._scanner.next(),n},e.prototype._parse=function(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)},e.prototype._parseEscaped=function(e){var t;return!!(t=this._accept(mA.Backslash,!0))&&(t=this._accept(mA.Dollar,!0)||this._accept(mA.CurlyClose,!0)||this._accept(mA.Backslash,!0)||t,e.appendChild(new TA(t)),!0)},e.prototype._parseTabstopOrVariableName=function(e){var t,n=this._token;return this._accept(mA.Dollar)&&(t=this._accept(mA.VariableName,!0)||this._accept(mA.Int,!0))?(e.appendChild(/^\d+$/.test(t)?new EA(Number(t)):new OA(t)),!0):this._backTo(n)},e.prototype._parseComplexPlaceholder=function(e){var t,n=this._token;if(!(this._accept(mA.Dollar)&&this._accept(mA.CurlyOpen)&&(t=this._accept(mA.Int,!0))))return this._backTo(n);var i=new EA(Number(t));if(this._accept(mA.Colon))for(;;){if(this._accept(mA.CurlyClose))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new TA("${"+t+":")),i.children.forEach(e.appendChild,e),!0}else{if(!(i.index>0&&this._accept(mA.Pipe)))return this._accept(mA.CurlyClose)?(e.appendChild(i),!0):this._backTo(n);for(var o=new kA;;){if(this._parseChoiceElement(o)){if(this._accept(mA.Comma))continue;if(this._accept(mA.Pipe)&&this._accept(mA.CurlyClose))return i.appendChild(o),e.appendChild(i),!0}return this._backTo(n),!1}}},e.prototype._parseChoiceElement=function(e){for(var t=this._token,n=[];this._token.type!==mA.Comma&&this._token.type!==mA.Pipe;){var i=void 0;if(!(i=(i=this._accept(mA.Backslash,!0))?this._accept(mA.Comma,!0)||this._accept(mA.Pipe,!0)||i:this._accept(void 0,!0)))return this._backTo(t),!1;n.push(i)}return 0===n.length?(this._backTo(t),!1):(e.appendChild(new TA(n.join(""))),!0)},e.prototype._parseComplexVariable=function(e){var t,n=this._token;if(!(this._accept(mA.Dollar)&&this._accept(mA.CurlyOpen)&&(t=this._accept(mA.VariableName,!0))))return this._backTo(n);var i=new OA(t);if(!this._accept(mA.Colon))return this._accept(mA.Forwardslash)?this._parseTransform(i)?(e.appendChild(i),!0):(this._backTo(n),!1):this._accept(mA.CurlyClose)?(e.appendChild(i),!0):this._backTo(n);for(;;){if(this._accept(mA.CurlyClose))return e.appendChild(i),!0;if(!this._parse(i))return e.appendChild(new TA("${"+t+":")),i.children.forEach(e.appendChild,e),!0}},e.prototype._parseTransform=function(e){for(var t=new jA,n="",i="";!this._accept(mA.Forwardslash);){var o=void 0;if(o=this._accept(mA.Backslash,!0))n+=o=this._accept(mA.Forwardslash,!0)||o;else{if(this._token.type===mA.EOF)return!1;n+=this._accept(void 0,!0)}}for(;!this._accept(mA.Forwardslash);)if(o=void 0,o=this._accept(mA.Backslash,!0))o=this._accept(mA.Forwardslash,!0)||o,t.appendChild(new TA(o));else if(!this._parseFormatString(t)&&!this._parseAnything(t))return!1;for(;!this._accept(mA.CurlyClose);){if(this._token.type===mA.EOF)return!1;i+=this._accept(void 0,!0)}try{t.regexp=new RegExp(n,i)}catch(e){return!1}return e.appendChild(t),!0},e.prototype._parseFormatString=function(e){var t=this._token;if(!this._accept(mA.Dollar))return!1;var n=!1;this._accept(mA.CurlyOpen)&&(n=!0);var i=this._accept(mA.Int,!0);if(!i)return this._backTo(t),!1;if(!n)return e.appendChild(new AA(Number(i))),!0;if(this._accept(mA.CurlyClose))return e.appendChild(new AA(Number(i))),!0;if(!this._accept(mA.Colon))return this._backTo(t),!1;if(this._accept(mA.Forwardslash)){var o=this._accept(mA.VariableName,!0);return o&&this._accept(mA.CurlyClose)?(e.appendChild(new AA(Number(i),o)),!0):(this._backTo(t),!1)}if(this._accept(mA.Plus)){if(r=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,r,void 0)),!0}else if(this._accept(mA.Dash)){if(s=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,void 0,s)),!0}else if(this._accept(mA.QuestionMark)){var r;if((r=this._until(mA.Colon))&&(s=this._until(mA.CurlyClose)))return e.appendChild(new AA(Number(i),void 0,r,s)),!0}else{var s;if(s=this._until(mA.CurlyClose))return e.appendChild(new AA(Number(i),void 0,void 0,s)),!0}return this._backTo(t),!1},e.prototype._parseAnything=function(e){return this._token.type!==mA.EOF&&(e.appendChild(new TA(this._scanner.tokenText(this._token))),this._accept(void 0),!0)},e}(),BA=(Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0}),function(){function e(e){this._delegates=e}return e.prototype.resolve=function(e){for(var t=0,n=this._delegates;t0&&(this._placeholderGroupsIdx-=1),this._editor.getModel().changeDecorations(function(t){for(var i=new Set,o=[],r=0,s=n._placeholderGroups[n._placeholderGroupsIdx];r0},enumerable:!0,configurable:!0}),e.prototype.computePossibleSelections=function(){for(var e=new Map,t=0,n=this._placeholderGroups;t ")+'"'},e.prototype.insert=function(){var t=this,n=this._editor.getModel(),i=e.createEditsAndSnippets(this._editor,this._template,this._overwriteBefore,this._overwriteAfter,!1),o=i.edits;this._snippets=i.snippets,this._editor.setSelections(n.pushEditOperations(this._editor.getSelections(),o,function(e){return t._snippets[0].hasPlaceholder?t._move(!0):e.map(function(e){return ln.fromPositions(e.range.getEndPosition())})}))},e.prototype.merge=function(t,n,i){var o=this;void 0===n&&(n=0),void 0===i&&(i=0),this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,t]);var r=e.createEditsAndSnippets(this._editor,t,n,i,!0),s=r.edits,a=r.snippets;this._editor.setSelections(this._editor.getModel().pushEditOperations(this._editor.getSelections(),s,function(e){for(var t=0,n=o._snippets;t0},e}(),XA={Visible:new zo("suggestWidgetVisible",!1),MultipleSuggestions:new zo("suggestWidgetMultipleSuggestions",!1),MakesTextEdit:new zo("suggestionMakesTextEdit",!0),AcceptOnKey:new zo("suggestionSupportsAcceptOnKey",!0),AcceptSuggestionsOnEnter:new zo("acceptSuggestionOnEnter",!0)};function KA(e,t,n,i,o){void 0===n&&(n="bottom");var r=[],s=function(e){return"none"===e?function(e){return"snippet"!==e.type}:function(){return!0}}(n);t=t.clone();var a=_l.orderedGroups(e);"none"!==n&&zA&&a.unshift([zA]);var u=o||{triggerKind:hl.Invoke},l=!1;return ys(a.map(function(n){return function(){if(!l)return Nt.b.join(n.map(function(n){if(ur(i)||!(i.indexOf(n)<0))return hs(function(i){return n.provideCompletionItems(e,t,u,i)}).then(function(i){var o=r.length;if(i&&!ur(i.suggestions))for(var a=0,u=i.suggestions;a")}},e.prototype._doInsert=function(e,t,n,i,o){var r=this;void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=!0),void 0===o&&(o=!0),this._snippetListener=_t(this._snippetListener),i&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(e,t,n):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new QA(this._editor,e,t,n),this._session.insert()),o&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener=[this._editor.onDidChangeModelContent(function(e){return e.isFlush&&r.cancel()}),this._editor.onDidChangeModel(function(){return r.cancel()}),this._editor.onDidChangeCursorSelection(function(){return r._updateState()})]},e.prototype._updateState=function(){if(this._session){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}},e.prototype._handleChoice=function(){var e,t,n=this._session.choice;if(n){if(this._currentChoice!==n){this._currentChoice=n,this._editor.setSelections(this._editor.getSelections().map(function(e){return ln.fromPositions(e.getStartPosition())}));var i=n.options[0];e=this._editor,t=n.options.map(function(e,t){return{type:"value",label:e.value,insertText:e.value,sortText:So("a",t),overwriteAfter:i.value.length}}),setTimeout(function(){WA=t,e.getContribution("editor.contrib.suggestController").triggerSuggest([iO]),WA=void 0},0)}}else this._currentChoice=void 0},e.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},e.prototype.cancel=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),_t(this._snippetListener),_t(this._session),this._session=void 0,this._modelVersionId=-1},e.prototype.prev=function(){this._session.prev(),this._updateState()},e.prototype.next=function(){this._session.next(),this._updateState()},e.InSnippetMode=new zo("inSnippetMode",!1),e.HasNextTabstop=new zo("hasNextTabstop",!1),e.HasPrevTabstop=new zo("hasPrevTabstop",!1),e=Object(a.b)([Object(a.d)(1,OM),Object(a.d)(2,Wo)],e)}();eg(oO);var rO=Qp.bindToContribution(oO.get);function sO(){for(var e=[],t=0;t0?[{start:0,end:t.length}]:[]:null}function lO(e){return 97<=e&&e<=122}function cO(e){return 65<=e&&e<=90}function dO(e){return 48<=e&&e<=57}function hO(e){return 32===e||9===e||10===e||13===e}function pO(e){return lO(e)||cO(e)||dO(e)}function gO(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}function fO(e,t){for(var n=t;n0&&!pO(e.charCodeAt(n-1)))return n}return e.length}function mO(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=mO(e,t,n+1,i+1);!o&&(r=fO(t,r))60)return null;var n=function(e){for(var t=0,n=0,i=0,o=0,r=0,s=0;s.2&&e.upperPercent<.8&&e.alphaPercent>.6&&e.numericPercent<.2}(n)){if(!function(e){return 0===e.lowerPercent&&e.upperPercent>.6}(n))return null;t=t.toLowerCase()}for(var i=null,o=0;o=0&&(i.push(s),o=s+1)}return[i.length,i]}function CO(){for(var e=[],t=[0],n=1;n<=100;n++)t.push(-n);for(n=0;n<=100;n++){var i=t.slice(0);i[0]=-n,e.push(i)}return e}var LO=CO(),NO=CO(),IO=CO(),SO=!1;function xO(e,t,n,i,o){function r(e,t,n){for(void 0===n&&(n=" ");e.length=e.length)return!1;switch(e.charCodeAt(t)){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:return!0;default:return!1}}function TO(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function EO(e,t,n){var i=e.length>100?100:e.length,o=t.length>100?100:t.length,r=0;for(void 0===n&&(n=i);ro)){for(var s=e.toLowerCase(),a=t.toLowerCase(),u=r,l=0;u1?1:c),p=LO[u-1][l]+-1,g=LO[u][l-1]+-1;g>=p?g>h?(LO[u][l]=g,IO[u][l]=4):g===h?(LO[u][l]=g,IO[u][l]=6):(LO[u][l]=h,IO[u][l]=2):p>h?(LO[u][l]=p,IO[u][l]=1):p===h?(LO[u][l]=p,IO[u][l]=3):(LO[u][l]=h,IO[u][l]=2)}if(SO&&(console.log(xO(LO,e,i,t,o)),console.log(xO(IO,e,i,t,o)),console.log(xO(NO,e,i,t,o))),jO=0,AO=-100,OO=r,function e(t,n,i,o,r){if(!(jO>=10||i<-25)){for(var s=0;t>OO&&n>0;){var a=NO[t][n],u=IO[t][n];if(4===u)n-=1,r?i-=5:o.isEmpty()||(i-=1),r=!1,s=0;else{if(!(2&u))return;if(4&u&&e(t,n-1,o.isEmpty()?i:i-1,o.slice(),r),i+=a,t-=1,o.unshift(n-=1),r=!0,1===a){if(s+=1,t===OO)return}else i+=1+s*(a-1),s=0}}jO+=1,(i-=n>=3?9:3*n)>AO&&(AO=i,kO=o)}}(i,o,i===o?1:0,new PO,!1),0!==jO)return[AO,kO.toArray()]}}}var kO,jO=0,AO=0,OO=0,PO=function(){function e(){}return e.prototype.isEmpty=function(){return!this._data&&(!this._parent||this._parent.isEmpty())},e.prototype.unshift=function(e){this._data?this._data.unshift(e):this._data=[e]},e.prototype.slice=function(){var t=new e;return t._parent=this,t._parentLen=this._data?this._data.length:0,t},e.prototype.toArray=function(){if(!this._data)return this._parent.toArray();for(var e=[],t=this;t;)t._parent&&t._parent._data&&e.push(t._parent._data.slice(t._parent._data.length-t._parentLen)),t=t._parent;return Array.prototype.concat.apply(this._data,e)},e}();function RO(e,t,n){return function(e,t,n,i){var o=EO(e,t,i);if(e.length>=3)for(var r=Math.min(7,e.length-1),s=1;so[0])&&(o=u))}}return o}(e,t,0,n)}function zO(e,t){if(!(t+1>=e.length)){var n=e[t],i=e[t+1];if(n!==i)return e.slice(0,t)+i+n+e.slice(t+2)}}var WO=function(){function e(t,n,i,o){this._snippetCompareFn=e._compareCompletionItems,this._items=t,this._column=n,this._refilterKind=1,this._lineContext=i,"top"===o?this._snippetCompareFn=e._compareCompletionItemsSnippetsUp:"bottom"===o&&(this._snippetCompareFn=e._compareCompletionItemsSnippetsDown)}return e.prototype.dispose=function(){for(var e,t=new Set,n=0,i=this._items;n2e3?EO:RO,a=0;at.score?-1:e.scoret.idx?1:0},e._compareCompletionItemsSnippetsDown=function(t,n){if(t.suggestion.type!==n.suggestion.type){if("snippet"===t.suggestion.type)return 1;if("snippet"===n.suggestion.type)return-1}return e._compareCompletionItems(t,n)},e._compareCompletionItemsSnippetsUp=function(t,n){if(t.suggestion.type!==n.suggestion.type){if("snippet"===t.suggestion.type)return-1;if("snippet"===n.suggestion.type)return 1}return e._compareCompletionItems(t,n)},e}(),FO=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();t.tokenizeIfCheap(n.lineNumber);var i=t.getWordAtPosition(n);return!!i&&i.endColumn===n.column&&!!isNaN(Number(i.word))},e}(),HO=function(){function e(e){var t=this;this._toDispose=[],this._triggerRefilter=new vs,this._onDidCancel=new zt,this._onDidTrigger=new zt,this._onDidSuggest=new zt,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._editor=e,this._state=0,this._triggerAutoSuggestPromise=null,this._requestPromise=null,this._completionModel=null,this._context=null,this._currentSelection=this._editor.getSelection()||new ln(1,1,1,1),this._toDispose.push(this._editor.onDidChangeModel(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeModelLanguage(function(){t._updateTriggerCharacters(),t.cancel()})),this._toDispose.push(this._editor.onDidChangeConfiguration(function(){t._updateTriggerCharacters(),t._updateQuickSuggest()})),this._toDispose.push(_l.onDidChange(function(){t._updateTriggerCharacters(),t._updateActiveSuggestSession()})),this._toDispose.push(this._editor.onDidChangeCursorSelection(function(e){t._onCursorChange(e)})),this._toDispose.push(this._editor.onDidChangeModelContent(function(e){t._refilterCompletionItems()})),this._updateTriggerCharacters(),this._updateQuickSuggest()}return e.prototype.dispose=function(){_t([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerCharacterListener,this._triggerRefilter]),this._toDispose=_t(this._toDispose),_t(this._completionModel),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(_t(this._triggerCharacterListener),!this._editor.getConfiguration().readOnly&&this._editor.getModel()&&this._editor.getConfiguration().contribInfo.suggestOnTriggerCharacters){for(var t=Object.create(null),n=0,i=_l.all(this._editor.getModel());nthis._context.column&&this._completionModel.incomplete&&0!==e.leadingWord.word.length){var t=this._completionModel.resolveIncompleteInfo();this.trigger({auto:2===this._state},!0,t.incomplete,t.complete)}else{var n=this._completionModel.lineContext,i=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},0===this._completionModel.items.length){if(FO.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0)&&0===e.leadingWord.word.length)return void this.cancel()}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,isFrozen:i})}}else this.cancel()},e}(),BO=(n("YUwp"),this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n1),r)this.setState(i?0:2),this.completionModel=null;else{var s=this.completionModel.stats;s.wasAutomaticallyTriggered=!!i,this.telemetryService.publicLog("suggestWidget",BO({},s,this.editor.getTelemetryData())),this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),this.setState(n?4:3),this.list.reveal(t,t),this.list.setFocus([t]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}}},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 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},e.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!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 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},e.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},e.prototype.getFocusedItem=function(){if(0!==this.state&&2!==this.state&&1!==this.state)return{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}},e.prototype.toggleDetailsFocus=function(){5===this.state?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):3===this.state&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog("suggestWidget:toggleDetailsFocus",this.editor.getTelemetryData())},e.prototype.toggleDetails=function(){if(JO(this.list.getFocusedElements()[0]))if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Ga(this.details.element),ta(this.element,"docs-side"),ta(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.telemetryService.publicLog("suggestWidget:collapseDetails",this.editor.getTelemetryData());else{if(3!==this.state&&5!==this.state)return;this.updateExpandDocsSetting(!0),this.showDetails(),this.telemetryService.publicLog("suggestWidget:expandDetails",this.editor.getTelemetryData())}},e.prototype.showDetails=function(){this.expandSideOrBelow(),Ua(this.details.element),this.details.render(this.list.getFocusedElements()[0]),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus(),this._ariaAlert(this.details.getAriaLabel())},e.prototype.show=function(){var e=this,t=this.updateListHeight();t!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=t),this.suggestWidgetVisible.set(!0),this.showTimeout=Nt.b.timeout(100).then(function(){ea(e.element,"visible"),e.onDidShowEmitter.fire(e)})},e.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),ta(this.element,"visible")},e.prototype.hideWidget=function(){clearTimeout(this.loadingTimeout),this.setState(0),this.onDidHideEmitter.fire(this)},e.prototype.getPosition=function(){return 0===this.state?null:{position:this.editor.getPosition(),preference:[Wn.BELOW,Wn.ABOVE]}},e.prototype.getDomNode=function(){return this.element},e.prototype.getId=function(){return e.ID},e.prototype.updateListHeight=function(){var e;return e=2===this.state||1===this.state?this.unfocusedHeight:Math.min(this.list.contentHeight/this.unfocusedHeight,12)*this.unfocusedHeight,this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=e+"px",this.list.layout(e),e},e.prototype.adjustDocsPosition=function(){var e=this.editor.getConfiguration().fontInfo.lineHeight,t=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),n=Na(this.editor.getDomNode()),i=n.left+t.left,o=n.top+t.top+t.height,r=Na(this.element),s=r.top;r.lefts&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},e.prototype.expandSideOrBelow=function(){var e=this.element.style.maxWidth.match(/(\d+)px/);!e||Number(e[1])o&&u.type===s.type&&(o=u.touch,i=r)}return i},t.prototype.toJSON=function(){var e=[];return this._cache.forEach(function(t,n){e.push([n,t])}),e},t.prototype.fromJSON=function(e){this._cache.clear();for(var t=0,n=e;t0){this._seq=e[0][1].touch+1;for(var t=0,n=e;t0&&this._activeAcceptCharacters.add(i[0])}}else this.reset()},e.prototype.reset=function(){this._activeItem=void 0},e.prototype.dispose=function(){_t(this._disposables)},e}(),aP=function(){function e(e,t,n,i){var o=this;this._editor=e,this._commandService=t,this._contextKeyService=n,this._instantiationService=i,this._toDispose=[],this._model=new HO(this._editor),this._memory=i.createInstance(rP,this._editor.getConfiguration().contribInfo.suggestSelection),this._toDispose.push(this._model.onDidTrigger(function(e){o._widget||o._createSuggestWidget(),o._widget.showTriggered(e.auto)})),this._toDispose.push(this._model.onDidSuggest(function(e){var t=o._memory.select(o._editor.getModel(),o._editor.getPosition(),e.completionModel.items);o._widget.showSuggestions(e.completionModel,t,e.isFrozen,e.auto)})),this._toDispose.push(this._model.onDidCancel(function(e){o._widget&&!e.retrigger&&o._widget.hideWidget()}));var r=XA.AcceptSuggestionsOnEnter.bindTo(n),s=function(){var e=o._editor.getConfiguration().contribInfo,t=e.acceptSuggestionOnEnter,n=e.suggestSelection;r.set("on"===t||"smart"===t),o._memory.setMode(n)};this._toDispose.push(this._editor.onDidChangeConfiguration(function(e){return s()})),s()}return e.get=function(t){return t.getContribution(e.ID)},e.prototype._createSuggestWidget=function(){var e=this;this._widget=this._instantiationService.createInstance(eP,this._editor),this._toDispose.push(this._widget.onDidSelect(this._onDidSelectItem,this));var t=new sP(this._editor,this._widget,function(t){return e._onDidSelectItem(t)});this._toDispose.push(t,this._model.onDidSuggest(function(e){0===e.completionModel.items.length&&t.reset()}));var n=XA.MakesTextEdit.bindTo(this._contextKeyService);this._toDispose.push(this._widget.onDidFocus(function(t){var i=t.item,o=e._editor.getPosition(),r=i.position.column-i.suggestion.overwriteBefore,s=o.column,a=!0;"smart"!==e._editor.getConfiguration().contribInfo.acceptSuggestionOnEnter||2!==e._model.state||i.suggestion.command||i.suggestion.additionalTextEdits||"textmate"===i.suggestion.snippetType||s-r!==i.suggestion.insertText.length||(a=e._editor.getModel().getValueInRange({startLineNumber:o.lineNumber,startColumn:r,endLineNumber:o.lineNumber,endColumn:s})!==i.suggestion.insertText),n.set(a)})),this._toDispose.push({dispose:function(){n.reset()}})},e.prototype.getId=function(){return e.ID},e.prototype.dispose=function(){this._toDispose=_t(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&&e.item){var t=e.item,n=t.suggestion,i=t.position,o=this._editor.getPosition().column-i.column;Array.isArray(n.additionalTextEdits)&&(this._editor.pushUndoStop(),this._editor.executeEdits("suggestController.additionalTextEdits",n.additionalTextEdits.map(function(e){return iC.replace(sn.lift(e.range),e.text)})),this._editor.pushUndoStop()),this._memory.memorize(this._editor.getModel(),this._editor.getPosition(),e.item);var r,s=n.insertText;"textmate"!==n.snippetType&&(s=HA.escape(s)),oO.get(this._editor).insert(s,n.overwriteBefore+o,n.overwriteAfter),n.command?n.command.id===uP.id?this._model.trigger({auto:!0},!0):((r=this._commandService).executeCommand.apply(r,[n.command.id].concat(n.command.arguments)).done(void 0,xt),this._model.cancel()):this._model.cancel(),this._alertCompletionItem(e.item)}else this._model.cancel()},e.prototype._alertCompletionItem=function(e){var t=e.suggestion;CM(Yo("arai.alert.snippet","Accepting '{0}' did insert the following text: {1}",t.label,t.insertText))},e.prototype.triggerSuggest=function(e){this._model.trigger({auto:!1},!1,e),this._editor.revealLine(this._editor.getPosition().lineNumber,0),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.hideWidget())},e.prototype.selectNextSuggestion=function(){this._widget&&this._widget.selectNext()},e.prototype.selectNextPageSuggestion=function(){this._widget&&this._widget.selectNextPage()},e.prototype.selectLastSuggestion=function(){this._widget&&this._widget.selectLast()},e.prototype.selectPrevSuggestion=function(){this._widget&&this._widget.selectPrevious()},e.prototype.selectPrevPageSuggestion=function(){this._widget&&this._widget.selectPreviousPage()},e.prototype.selectFirstSuggestion=function(){this._widget&&this._widget.selectFirst()},e.prototype.toggleSuggestionDetails=function(){this._widget&&this._widget.toggleDetails()},e.prototype.toggleSuggestionFocus=function(){this._widget&&this._widget.toggleDetailsFocus()},e.ID="editor.contrib.suggestController",e=Object(a.b)([Object(a.d)(1,di),Object(a.d)(2,Wo),Object(a.d)(3,Un)],e)}(),uP=function(e){function t(){return e.call(this,{id:t.id,label:Yo("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:To.and(wp.writable,wp.hasCompletionItemProvider),kbOpts:{kbExpr:wp.textInputFocus,primary:2058,mac:{primary:266}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=aP.get(t);n&&n.triggerSuggest()},t.id="editor.action.triggerSuggest",t}(Xp);eg(aP),$p(uP);var lP=qa.WEIGHT.editorContrib(90),cP=Qp.bindToContribution(aP.get);qp(new cP({id:"acceptSelectedSuggestion",precondition:XA.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2}})),qp(new cP({id:"acceptSelectedSuggestionOnEnter",precondition:XA.Visible,handler:function(e){return e.acceptSelectedSuggestion()},kbOpts:{weight:lP,kbExpr:To.and(wp.textInputFocus,XA.AcceptSuggestionsOnEnter,XA.MakesTextEdit),primary:3}})),qp(new cP({id:"hideSuggestWidget",precondition:XA.Visible,handler:function(e){return e.cancelSuggestWidget()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:9,secondary:[1033]}})),qp(new cP({id:"selectNextSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectNextSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})),qp(new cP({id:"selectNextPageSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectNextPageSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:12,secondary:[2060]}})),qp(new cP({id:"selectLastSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectLastSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:13}})),qp(new cP({id:"selectPrevSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectPrevSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})),qp(new cP({id:"selectPrevPageSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectPrevPageSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:11,secondary:[2059]}})),qp(new cP({id:"selectFirstSuggestion",precondition:To.and(XA.Visible,XA.MultipleSuggestions),handler:function(e){return e.selectFirstSuggestion()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:14}})),qp(new cP({id:"toggleSuggestionDetails",precondition:XA.Visible,handler:function(e){return e.toggleSuggestionDetails()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2058,mac:{primary:266}}})),qp(new cP({id:"toggleSuggestionFocus",precondition:XA.Visible,handler:function(e){return e.toggleSuggestionFocus()},kbOpts:{weight:lP,kbExpr:wp.textInputFocus,primary:2570,mac:{primary:778}}}));var dP=function(e){function t(){return e.call(this,{id:t.ID,label:Yo({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:null,kbOpts:{kbExpr:null,primary:2091,mac:{primary:1323}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=gg.getTabFocusMode();gg.setTabFocusMode(!n)},t.ID="editor.action.toggleTabFocusMode",t}(Xp);$p(dP);var hP=Hg("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},Yo("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque to not hide underlying decorations."),!0),pP=Hg("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},Yo("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque to not hide underlying decorations."),!0),gP=Hg("editor.wordHighlightBorder",{light:null,dark:null,hc:Gg},Yo("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),fP=Hg("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:Gg},Yo("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),mP=Hg("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},Yo("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),yP=Hg("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},Yo("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque to not hide underlying decorations."),!0),vP=new zo("hasWordHighlights",!1);function bP(e,t){var n=!1;return ys(Ll.ordered(e).map(function(i){return function(){if(!n)return hs(function(n){return i.provideDocumentHighlights(e,t,n)}).then(function(e){if(Array.isArray(e)&&e.length>0)return n=!0,e},function(e){Dt(e)})}})).then(function(e){return e[0]})}Jp("_executeDocumentHighlights",bP);var _P=function(){function e(e,t){var n=this;this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this._hasWordHighlights=vP.bindTo(t),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getConfiguration().contribInfo.occurrencesHighlight,this.model=this.editor.getModel(),this.toUnhook=[],this.toUnhook.push(e.onDidChangeCursorPosition(function(e){n._ignorePositionChangeEvent||n.occurrencesHighlight&&n._onPositionChanged(e)})),this.toUnhook.push(e.onDidChangeModel(function(e){n._stopAll(),n.model=n.editor.getModel()})),this.toUnhook.push(e.onDidChangeModelContent(function(e){n._stopAll()})),this.toUnhook.push(e.onDidChangeConfiguration(function(e){var t=n.editor.getConfiguration().contribInfo.occurrencesHighlight;n.occurrencesHighlight!==t&&(n.occurrencesHighlight=t,n._stopAll())})),this._lastWordRange=null,this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return e.prototype.hasDecorations=function(){return this._decorationIds.length>0},e.prototype.restore=function(){this.occurrencesHighlight&&this._run()},e.prototype._getSortedHighlights=function(){var e=this;return this._decorationIds.map(function(t){return e.model.getDecorationRange(t)}).sort(sn.compareRangesUsingStarts)},e.prototype.moveNext=function(){var e=this,t=this._getSortedHighlights(),n=t[(lr(t,function(t){return t.containsPosition(e.editor.getPosition())})+1)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype.moveBack=function(){var e=this,t=this._getSortedHighlights(),n=t[(lr(t,function(t){return t.containsPosition(e.editor.getPosition())})-1+t.length)%t.length];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n)}finally{this._ignorePositionChangeEvent=!1}},e.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},e.prototype._stopAll=function(){this._lastWordRange=null,this._removeDecorations(),-1!==this.renderDecorationsTimer&&(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){this.occurrencesHighlight&&e.reason===mh.Explicit?this._run():this._stopAll()},e.prototype._run=function(){var e=this;if(Ll.has(this.model)){var t=this.editor.getSelection();if(t.startLineNumber===t.endLineNumber){var n=t.startLineNumber,i=t.startColumn,o=t.endColumn,r=this.model.getWordAtPosition({lineNumber:n,column:i});if(!r||r.startColumn>i||r.endColumn=o&&(a=!0)}if(this.lastCursorPositionChangeTime=(new Date).getTime(),a)this.workerRequestCompleted&&-1!==this.renderDecorationsTimer&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1,this._beginRenderDecorations());else{this._stopAll();var d=++this.workerRequestTokenId;this.workerRequestCompleted=!1,this.workerRequest=bP(this.model,this.editor.getPosition()),this.workerRequest.then(function(t){d===e.workerRequestTokenId&&(e.workerRequestCompleted=!0,e.workerRequestValue=t||[],e._beginRenderDecorations())}).done()}this._lastWordRange=s}}else this._stopAll()}else this._stopAll()},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 t=[],n=0,i=this.workerRequestValue.length;n0?Ni(tR,e.length):null:JP}(t,n);switch(o+=e.wrappingInfo.inDiffEditor?e.readOnly?Yo("readonlyDiffEditor"," in a read-only pane of a diff editor."):Yo("editableDiffEditor"," in a pane of a diff editor."):e.readOnly?Yo("readonlyEditor"," in a read-only code editor"):Yo("editableEditor"," in a code editor"),e.accessibilitySupport){case 0:var r=mn.d?Yo("changeConfigToOnMac","To configure the editor to be optimized for usage with a Screen Reader press Command+E now."):Yo("changeConfigToOnWinLinux","To configure the editor to be optimized for usage with a Screen Reader press Control+E now.");o+="\n\n - "+r;break;case 2:o+="\n\n - "+Yo("auto_on","The editor is configured to be optimized for usage with a Screen Reader.");break;case 1:o+="\n\n - "+Yo("auto_off","The editor is configured to never be optimized for usage with a Screen Reader, which is not the case at this time."),o+=" "+r}var s=Yo("tabFocusModeOnMsg","Pressing Tab in the current editor will move focus to the next focusable element. Toggle this behavior by pressing {0}."),a=Yo("tabFocusModeOnMsgNoKb","Pressing Tab in the current editor will move focus to the next focusable element. The command {0} is currently not triggerable by a keybinding."),u=Yo("tabFocusModeOffMsg","Pressing Tab in the current editor will insert the tab character. Toggle this behavior by pressing {0}."),l=Yo("tabFocusModeOffMsgNoKb","Pressing Tab in the current editor will insert the tab character. The command {0} is currently not triggerable by a keybinding.");o+=e.tabFocusMode?"\n\n - "+this._descriptionForCommand(dP.ID,s,a):"\n\n - "+this._descriptionForCommand(dP.ID,u,l),o+="\n\n - "+(mn.d?Yo("openDocMac","Press Command+H now to open a browser window with more information related to editor accessibility."):Yo("openDocWinLinux","Press Control+H now to open a browser window with more information related to editor accessibility.")),o+="\n\n"+Yo("outroMsg","You can dismiss this tooltip and return to the editor by pressing Escape or Shift+Escape."),this._contentDomNode.domNode.appendChild(bx(o)),this._contentDomNode.domNode.setAttribute("aria-label",o)},t.prototype.hide=function(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,Xs(this._contentDomNode.domNode),this._editor.focus())},t.prototype._layout=function(){var e=this._editor.getLayoutInfo(),n=Math.max(5,Math.min(t.WIDTH,e.width-40)),i=Math.max(5,Math.min(t.HEIGHT,e.height-40));this._domNode.setWidth(n),this._domNode.setHeight(i);var o=Math.round((e.height-i)/2);this._domNode.setTop(o);var r=Math.round((e.width-n)/2);this._domNode.setLeft(r)},t.ID="editor.contrib.accessibilityHelpWidget",t.WIDTH=500,t.HEIGHT=300,t=Object(a.b)([Object(a.d)(1,Wo),Object(a.d)(2,pi),Object(a.d)(3,rN)],t)}(bb),iR=function(e){function t(){return e.call(this,{id:"editor.action.showAccessibilityHelp",label:Yo("ShowAccessibilityHelpAction","Show Accessibility Help"),alias:"Show Accessibility Help",precondition:null,kbOpts:{kbExpr:wp.focus,primary:Is?2107:571}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=KP.get(t);n&&n.show()},t}(Xp);eg(KP),$p(iR),qp(new(Qp.bindToContribution(KP.get))({id:"closeAccessibilityHelp",precondition:XP,handler:function(e){return e.hide()},kbOpts:{weight:qa.WEIGHT.editorContrib(100),kbExpr:wp.focus,primary:9,secondary:[1033]}})),wm(function(e,t){var n=e.getColor(kf);n&&t.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+n+"; }");var i=e.getColor(Kg);i&&t.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(Ug);o&&t.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+o+"; }")}),n("tVlf");var oR=function(e){function t(t,n,i){var o=e.call(this)||this;return o._editor=t,o._standaloneThemeService=n,o._modeService=i,o._widget=null,o._register(o._editor.onDidChangeModel(function(e){return o.stop()})),o._register(o._editor.onDidChangeModelLanguage(function(e){return o.stop()})),o._register(Pl.onDidChange(function(e){return o.stop()})),o}return Object(a.c)(t,e),t.get=function(e){return e.getContribution(t.ID)},t.prototype.getId=function(){return t.ID},t.prototype.dispose=function(){this.stop(),e.prototype.dispose.call(this)},t.prototype.launch=function(){this._widget||this._editor.getModel()&&(this._widget=new sR(this._editor,this._standaloneThemeService,this._modeService))},t.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},t.ID="editor.contrib.inspectTokens",t=Object(a.b)([Object(a.d)(1,wM),Object(a.d)(2,Fw)],t)}(Ct),rR=function(e){function t(){return e.call(this,{id:"editor.action.inspectTokens",label:Yo("inspectTokens","Developer: Inspect Tokens"),alias:"Developer: Inspect Tokens",precondition:null})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=oR.get(t);n&&n.launch()},t}(Xp),sR=function(e){function t(t,n,i){var o,r=e.call(this)||this;return r.allowEditorOverflow=!0,r._editor=t,r._modeService=i,r._model=r._editor.getModel(),r._domNode=document.createElement("div"),r._domNode.className="tokens-inspect-widget",r._tokenizationSupport=(o=r._model.getLanguageIdentifier(),Pl.get(o.language)||{getInitialState:function(){return gc},tokenize:function(e,t,n){return mc(o.language,0,t,n)},tokenize2:function(e,t,n){return yc(o.id,0,t,n)}}),r._compute(r._editor.getPosition()),r._register(r._editor.onDidChangeCursorPosition(function(e){return r._compute(r._editor.getPosition())})),r._editor.addContentWidget(r),r}return Object(a.c)(t,e),t.prototype.dispose=function(){this._editor.removeContentWidget(this),e.prototype.dispose.call(this)},t.prototype.getId=function(){return t._ID},t.prototype._compute=function(e){for(var t=this._getTokensAtLine(e.lineNumber),n=0,i=t.tokens1.length-1;i>=0;i--)if(e.column-1>=t.tokens1[i].offset){n=i;break}var o=0;for(i=t.tokens2.length>>>1;i>=0;i--)if(e.column-1>=t.tokens2[i<<1]){o=i;break}var r="",s=this._model.getLineContent(e.lineNumber),a="";n'+function(e){for(var t="",n=0,i=e.length;n('+a.length+" "+(1===a.length?"char":"chars")+")",r+='
    ';var u=this._decodeMetadata(t.tokens2[1+(o<<1)]);r+='',r+='",r+='",r+='",r+='",r+='",r+="",r+='
    ',n'+Ii(t.tokens1[n].type)+""),this._domNode.innerHTML=r,this._editor.layoutContentWidget(this)},t.prototype._decodeMetadata=function(e){var t=Pl.getColorMap(),n=dl.getLanguageId(e),i=dl.getTokenType(e),o=dl.getFontStyle(e),r=dl.getForeground(e),s=dl.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;n0?n.actionBar.push(e,{icon:!0,label:!1}):n.actionBar.isEmpty()||e&&0!==e.length||n.actionBar.clear()}),e instanceof pR&&e.getGroupLabel()?ea(n.container,"has-group-label"):ta(n.container,"has-group-label"),e instanceof pR){var o=e,r=n;o.showBorder()?(ea(r.container,"results-group-separator"),r.container.style.borderTopColor=i.pickerGroupBorder.toString()):(ta(r.container,"results-group-separator"),r.container.style.borderTopColor=null);var s=o.getGroupLabel()||"";r.group.textContent=s,r.group.style.color=i.pickerGroupForeground.toString()}if(e instanceof hR){var a=e.getHighlights(),u=a[0],l=a[1],c=a[2],d=e.getIcon()?"quick-open-entry-icon "+e.getIcon():"";n.icon.className=d;var h=e.getLabelOptions()||Object.create(null);h.matches=u||[],h.title=e.getTooltip(),h.descriptionTitle=e.getDescriptionTooltip()||e.getDescription(),h.descriptionMatches=l||[],n.label.setValue(e.getLabel(),e.getDescription(),h),n.detail.set(e.getDetail(),c),n.keybinding.set(e.getKeybinding(),null)}},e.prototype.disposeTemplate=function(e,t){var n=t;n.actionBar.dispose(),n.actionBar=null,n.container=null,n.entry=null,n.keybinding.dispose(),n.keybinding=null,n.detail.dispose(),n.detail=null,n.group=null,n.icon=null,n.label.dispose(),n.label=null},e}(),mR=function(){function e(e,t){void 0===e&&(e=[]),void 0===t&&(t=new gR),this._entries=e,this._dataSource=this,this._renderer=new fR(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){$n(e)&&(this._entries=this._entries.concat(e))},e.prototype.setEntries=function(e){$n(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){return e.getAriaLabel()?Yo("quickOpenAriaLabelEntry","{0}, picker",e.getAriaLabel()):Yo("quickOpenAriaLabel","picker")},e.prototype.isVisible=function(e){return!e.isHidden()},e.prototype.run=function(e,t,n){return e.run(t,n)},e}(),yR=function(e){return e[e.PREVIEW=0]="PREVIEW",e[e.OPEN=1]="OPEN",e[e.OPEN_IN_BACKGROUND=2]="OPEN_IN_BACKGROUND",e}({}),vR=(n("2ZBE"),function(){function e(e){this.modelProvider=ui(e.getModel)?e:{getModel:function(){return e}}}return e.prototype.getId=function(e,t){if(!t)return null;var n=this.modelProvider.getModel();return n===t?"__root__":n.dataSource.getId(t)},e.prototype.hasChildren=function(e,t){var n=this.modelProvider.getModel();return n&&n===t&&n.entries.length>0},e.prototype.getChildren=function(e,t){var n=this.modelProvider.getModel();return Nt.b.as(n===t?n.entries:[])},e.prototype.getParent=function(e,t){return Nt.b.as(null)},e}()),bR=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.prototype.getPosInSet=function(e,t){var n=this.modelProvider.getModel();return String(n.entries.indexOf(t)+1)},e.prototype.getSetSize=function(){var e=this.modelProvider.getModel();return String(e.entries.length)},e}(),_R=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}(),MR=function(){function e(e,t){this.modelProvider=e,this.styles=t}return e.prototype.updateStyles=function(e){this.styles=e},e.prototype.getHeight=function(e,t){return this.modelProvider.getModel().renderer.getHeight(t)},e.prototype.getTemplateId=function(e,t){return this.modelProvider.getModel().renderer.getTemplateId(t)},e.prototype.renderTemplate=function(e,t,n){return this.modelProvider.getModel().renderer.renderTemplate(t,n,this.styles)},e.prototype.renderElement=function(e,t,n,i){this.modelProvider.getModel().renderer.renderElement(t,n,i,this.styles)},e.prototype.disposeTemplate=function(e,t,n){this.modelProvider.getModel().renderer.disposeTemplate(t,n)},e}(),wR=(n("1O6n"),{progressBarBackground:dp.fromHex("#0E70C0")}),CR=function(){function e(e,t){this.options=t||Object.create(null),Or(this.options,wR,!1),this.toUnbind=[],this.workedVal=0,this.progressBarBackground=this.options.progressBarBackground,this.create(e)}return e.prototype.create=function(e){var t=this;m_(e).div({class:"monaco-progress-container"},function(e){t.element=e.clone(),e.div({class:"progress-bit"}).on([za.ANIMATION_START,za.ANIMATION_END,za.ANIMATION_ITERATION],function(e){switch(e.type){case za.ANIMATION_ITERATION:t.animationStopToken&&t.animationStopToken(null)}},t.toUnbind),t.bit=e.getHTMLElement()}),this.applyStyles()},e.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",this.element.removeClass("active"),this.element.removeClass("infinite"),this.element.removeClass("discrete"),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("done"),this.element.hasClass("infinite")?(this.bit.style.opacity="0",e?Nt.b.timeout(200).then(function(){return t.off()}):this.off()):(this.bit.style.width="inherit",e?Nt.b.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("discrete"),this.element.removeClass("done"),this.element.addClass("active"),this.element.addClass("infinite"),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 Wr(!isNaN(this.totalWork),"Total work not set"),e=Number(e),Wr(!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("infinite")&&this.element.removeClass("infinite"),this.element.hasClass("done")&&this.element.removeClass("done"),this.element.hasClass("active")||this.element.addClass("active"),this.element.hasClass("discrete")||this.element.addClass("discrete"),this.bit.style.width=this.workedVal/this.totalWork*100+"%",this},e.prototype.getContainer=function(){return m_(this.element)},e.prototype.style=function(e){this.progressBarBackground=e.progressBarBackground,this.applyStyles()},e.prototype.applyStyles=function(){if(this.bit){var e=this.progressBarBackground?this.progressBarBackground.toString():null;this.bit.style.backgroundColor=e}},e.prototype.dispose=function(){this.toUnbind=_t(this.toUnbind)},e}(),LR=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.c)(t,e),t.prototype.onContextMenu=function(t,n,i){return mn.d?this.onLeftClick(t,n,i):e.prototype.onContextMenu.call(this,t,n,i)},t}(nL),NR=function(e){return e[e.ELEMENT_SELECTED=0]="ELEMENT_SELECTED",e[e.FOCUS_LOST=1]="FOCUS_LOST",e[e.CANCELED=2]="CANCELED",e}({}),IR={background:dp.fromHex("#1E1E1E"),foreground:dp.fromHex("#CCCCCC"),pickerGroupForeground:dp.fromHex("#0097FB"),pickerGroupBorder:dp.fromHex("#3F3F46"),widgetShadow:dp.fromHex("#000000"),progressBarBackground:dp.fromHex("#0E70C0")},SR=Yo("quickOpenAriaLabel","Quick picker. Type to narrow down results."),xR=function(){function e(e,t,n){this.isDisposed=!1,this.toUnbind=[],this.container=e,this.callbacks=t,this.options=n,this.styles=n||Object.create(null),Or(this.styles,IR,!1),this.model=null}return e.prototype.getElement=function(){return m_(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=m_().div(function(t){t.on(za.KEY_DOWN,function(t){9===new zs(t).keyCode&&(Wa.stop(t,!0),e.hide(NR.CANCELED))}).on(za.CONTEXT_MENU,function(e){return Wa.stop(e,!0)}).on(za.FOCUS,function(t){return e.gainingFocus()},null,!0).on(za.BLUR,function(t){return e.loosingFocus(t)},null,!0),e.progressBar=new CR(t.clone(),{progressBarBackground:e.styles.progressBarBackground}),e.progressBar.getContainer().hide(),t.div({class:"quick-open-input"},function(t){e.inputContainer=t,e.inputBox=new Nx(t.getHTMLElement(),null,{placeholder:e.options.inputPlaceHolder||"",ariaLabel:SR,inputBackground:e.styles.inputBackground,inputForeground:e.styles.inputForeground,inputBorder:e.styles.inputBorder,inputValidationInfoBackground:e.styles.inputValidationInfoBackground,inputValidationInfoBorder:e.styles.inputValidationInfoBorder,inputValidationWarningBackground:e.styles.inputValidationWarningBackground,inputValidationWarningBorder:e.styles.inputValidationWarningBorder,inputValidationErrorBackground:e.styles.inputValidationErrorBackground,inputValidationErrorBorder:e.styles.inputValidationErrorBorder}),e.inputElement=e.inputBox.inputElement,e.inputElement.setAttribute("role","combobox"),e.inputElement.setAttribute("aria-haspopup","false"),e.inputElement.setAttribute("aria-autocomplete","list"),oa(e.inputBox.inputElement,za.KEY_DOWN,function(t){var n=new zs(t),i=e.shouldOpenInBackground(n);if(2!==n.keyCode)if(18===n.keyCode||16===n.keyCode||12===n.keyCode||11===n.keyCode)Wa.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.selectionStart===e.inputBox.inputElement.selectionEnd&&(e.inputBox.inputElement.selectionStart=e.inputBox.value.length);else if(3===n.keyCode||i){Wa.stop(t,!0);var o=e.tree.getFocus();o&&e.elementSelected(o,t,i?yR.OPEN_IN_BACKGROUND:yR.OPEN)}}),oa(e.inputBox.inputElement,za.INPUT,function(t){e.onType()})}),e.treeContainer=t.div({class:"quick-open-tree"},function(t){e.tree=(e.options.treeCreator||function(e,t,n){return new AL(e,t,n)})(t.getHTMLElement(),{dataSource:new vR(e),controller:new LR({clickBehavior:$C.ON_MOUSE_UP,keyboardSupport:e.options.keyboardSupport}),renderer:e.renderer=new MR(e,e.styles),filter:new _R(e),accessibilityProvider:new bR(e)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:Uc.Visible,horizontalScrollMode:Uc.Hidden,ariaLabel:Yo("treeAriaLabel","Quick Picker"),keyboardSupport:e.options.keyboardSupport,preventRootFocus:!0}),e.treeElement=e.tree.getHTMLElement(),e.toUnbind.push(e.tree.onDidChangeFocus(function(t){e.elementFocused(t.focus,t)})),e.toUnbind.push(e.tree.onDidChangeSelection(function(t){if(t.selection&&t.selection.length>0){var n=t.payload&&t.payload.originalEvent instanceof Ys?t.payload.originalEvent:void 0,i=!!n&&e.shouldOpenInBackground(n);e.elementSelected(t.selection[0],t,i?yR.OPEN_IN_BACKGROUND:yR.OPEN)}}))}).on(za.KEY_DOWN,function(t){var n=new zs(t);e.quickNavigateConfiguration&&(18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Wa.stop(t,!0),e.navigateInTree(n.keyCode)))}).on(za.KEY_UP,function(t){var n=new zs(t),i=n.keyCode;if(e.quickNavigateConfiguration&&(3===i||e.quickNavigateConfiguration.keybindings.some(function(e){var t=e.getParts(),o=t[0];return!(t[1]||(o.shiftKey&&4===i?n.ctrlKey||n.altKey||n.metaKey:!(o.altKey&&6===i||o.ctrlKey&&5===i||o.metaKey&&57===i)))}))){var o=e.tree.getFocus();o&&e.elementSelected(o,t)}}).clone()}).addClass("monaco-quick-open-widget").build(this.container),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),oa(this.treeContainer.getHTMLElement(),za.KEY_DOWN,function(t){var n=new zs(t);e.quickNavigateConfiguration||18!==n.keyCode&&16!==n.keyCode&&12!==n.keyCode&&11!==n.keyCode||(Wa.stop(t,!0),e.navigateInTree(n.keyCode,n.shiftKey),e.inputBox.inputElement.focus())}),this.builder.getHTMLElement()},e.prototype.style=function(e){this.styles=e,this.applyStyles()},e.prototype.applyStyles=function(){if(this.builder){var e=this.styles.foreground?this.styles.foreground.toString():null,t=this.styles.background?this.styles.background.toString():null,n=this.styles.borderColor?this.styles.borderColor.toString():null,i=this.styles.widgetShadow?this.styles.widgetShadow.toString():null;this.builder.style("color",e),this.builder.style("background-color",t),this.builder.style("border-color",n),this.builder.style("border-width",n?"1px":null),this.builder.style("border-style",n?"solid":null),this.builder.style("box-shadow",i?"0 5px 8px "+i:null)}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},e.prototype.shouldOpenInBackground=function(e){if(e instanceof zs){if(17!==e.keyCode)return!1;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;var t=this.inputBox.inputElement;return t.selectionEnd===this.inputBox.value.length&&t.selectionStart===t.selectionEnd}return e.middleButton},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&&t&&(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())&&this.tree.reveal(r).done(null,xt)},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,yR.PREVIEW,n)}},e.prototype.elementSelected=function(e,t,n){var i=!0;if(this.isVisible()){var o=n||yR.OPEN,r={event:t,keymods:this.extractKeyMods(t),quickNavigateConfiguration:this.quickNavigateConfiguration};i=this.model.runner.run(e,o,r)}i&&this.hide(NR.ELEMENT_SELECTED)},e.prototype.extractKeyMods=function(e){return{ctrlCmd:e&&(e.ctrlKey||e.metaKey||e.payload&&e.payload.originalEvent&&(e.payload.originalEvent.ctrlKey||e.payload.originalEvent.metaKey)),alt:e&&(e.altKey||e.payload&&e.payload.originalEvent&&e.payload.originalEvent.altKey)}},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||ei(e)?this.helpText.hide():this.helpText.show()),ei(e)?this.doShowWithPrefix(e):this.doShowWithInput(e,t&&t.autoFocus?t.autoFocus:{}),t&&t.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(t.inputSelection),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)},xt)},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,a=s.toLowerCase(),u=0;ut.autoFocusIndex&&(this.tree.focusNth(t.autoFocusIndex),this.tree.reveal(this.tree.getFocus()).done(null,xt)):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()&&(e||(e=this.tree.getInput()),e&&(this.treeContainer.style({height:this.getHeight(e)+"px"}),this.tree.refresh().done(function(){n.tree.layout(),t&&t&&e&&e.entries.some(function(t){return n.isElementVisible(e,t)})&&n.autoFocus(e,t)},xt)))},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;l0&&0===n.indexOf(":")){var d=null,h=null,p=0;for(s=0;s0)):p++}h&&h.setGroupLabel(this.typeToLabel(d,p))}else o.length>0&&o[0].setGroupLabel(Yo("symbols","symbols ({0})",o.length));return o},t.prototype.typeToLabel=function(e,t){switch(e){case"module":return Yo("modules","modules ({0})",t);case"class":return Yo("class","classes ({0})",t);case"interface":return Yo("interface","interfaces ({0})",t);case"method":return Yo("method","methods ({0})",t);case"function":return Yo("function","functions ({0})",t);case"property":return Yo("property","properties ({0})",t);case"variable":return Yo("variable","variables ({0})",t);case"var":return Yo("variable2","variables ({0})",t);case"constructor":return Yo("_constructor","constructors ({0})",t);case"call":return Yo("call","calls ({0})",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(":".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}(ER)),n("wtJh");var OR=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 Object(a.c)(t,e),t.prototype._parseInput=function(e){var t,n,i=e.split(",").map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)});t=0===i.length?new rn(-1,-1):new rn(i[0],1===i.length?1:i[1]);var o=(n=Zn(this.editor)?this.editor.getModel():this.editor.getModel().modified).validatePosition(t).equals(t);return{position:t,isValid:o,label:o?t.column&&t.column>1?Yo("gotoLineLabelValidLineAndColumn","Go to line {0} and character {1}",t.lineNumber,t.column):Yo("gotoLineLabelValidLine","Go to line {0}",t.lineNumber,t.column):t.lineNumber<1||t.lineNumber>n.getLineCount()?Yo("gotoLineLabelEmptyWithLineLimit","Type a line number between 1 and {0} to navigate to",n.getLineCount()):Yo("gotoLineLabelEmptyWithLineAndColumnLimit","Type a character between 1 and {0} to navigate to",n.getLineMaxColumn(t.lineNumber))}},t.prototype.getLabel=function(){return this._parseResult.label},t.prototype.getAriaLabel=function(){return Yo("gotoLineAriaLabel","Go to line {0}",this._parseResult.label)},t.prototype.run=function(e,t){return e===yR.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,0),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,0),this.decorator.decorateLine(e,this.editor),!1},t.prototype.toSelection=function(){return new sn(this._parseResult.position.lineNumber,this._parseResult.position.column,this._parseResult.position.lineNumber,this._parseResult.position.column)},t}(hR);$p(function(e){function t(){return e.call(this,Yo("gotoLineActionInput","Type a line number, followed by an optional colon and a character number to navigate to"),{id:"editor.action.gotoLine",label:Yo("GotoLineAction.label","Go to Line..."),alias:"Go to Line...",precondition:null,kbOpts:{kbExpr:wp.focus,primary:2085,mac:{primary:293}}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=this;this._show(this.getController(t),{getModel:function(e){return new mR([new OR(e,t,n.getController(t))])},getAutoFocus:function(e){return{autoFocusFirstEntry:e.length>0}}})},t}(ER));var PR=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 Object(a.c)(t,e),t.prototype.getLabel=function(){return this.action.label},t.prototype.getAriaLabel=function(){return Yo("ariaLabelEntry","{0}, commands",this.getLabel())},t.prototype.getGroupLabel=function(){return this.key},t.prototype.run=function(e,t){var n=this;return e===yR.OPEN&&(Nt.b.timeout(50).done(function(){n.editor.focus();try{(n.action.run()||Nt.b.as(null)).done(null,xt)}catch(e){xt(e)}},xt),!0)},t}(pR);$p(function(e){function t(){return e.call(this,Yo("quickCommandActionInput","Type the name of an action you want to execute"),{id:"editor.action.quickCommand",label:Yo("QuickCommandAction.label","Command Palette"),alias:"Command Palette",precondition:null,kbOpts:{kbExpr:wp.focus,primary:Is?571:59},menuOpts:{}})||this}return Object(a.c)(t,e),t.prototype.run=function(e,t){var n=this,i=e.get(pi);this._show(this.getController(t),{getModel:function(e){return new mR(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(),o=[],r=0;rt&&(this.treeControlContextMenuX=t/2)}this.treeControlContextMenuY=this.treeControlContextMenuY+r,this.showContextMenu=!0,this.selectedCell=e.target.id},e.prototype.onSelect=function(e,t){var n;t.stopPropagation(),this.showContextMenu=!1,document.getElementById("comparison-table-container").style.overflowY="auto",this.appLog.add("Grid: Row selected","info"),n=e?"node-"+e.Id:t.target.id;for(var i=t.ctrlKey,o=t.shiftKey,r=document.querySelectorAll(".transparent-cell"),s=0;s-1?(this.lastSelectedRow.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)):(this.lastSelectedRow.classList.add("selected-row"),this.selectedNodes.push(o.Id))),c=document.getElementById("comparison-grid"),d=this.getSiblingElement(!1,c.firstElementChild.firstElementChild.id),h=c.firstElementChild.lastElementChild,a=n.id,o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(a.split("node-")[1],10)}),!this.oldDirection||this.oldDirection===this.direction||d!==n&&h!==n||(this.selectedNodes.indexOf(o.Id)>-1?(n.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)):(n.classList.add("selected-row"),this.selectedNodes.push(o.Id))),this.oldDirection=this.direction;u;)(t=this.getSiblingElement(l,a))&&t.classList&&t.classList.contains("grid-data-row")?(a=t.id,document.getElementById(a+"-"+i).focus(),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(a.split("node-")[1],10)}),this.selectedObject=o,-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id)):(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),t.focus(),t=this.getSiblingElement(l,a)):u=!1}}else{if(!e.shiftKey)if("action-dropdown"===i){var p=void 0;p=document.getElementById(e.target.id).firstElementChild,o=this.comparisonDataToDisplay.find(function(t){return t.Id===parseInt(e.target.id.split("node-")[1],10)});var g=p.selectedOptions[0],f=g.innerHTML;if(t=this.getSiblingElement(38===e.which,g.id)){p.selectedIndex=38===e.which?p.selectedIndex-1:p.selectedIndex+1;var m=p.selectedOptions[0].innerHTML;m!==f&&(this.gridService.sendChange(o.Id,m,f),this.getDataToDisplay(!0))}}else{this.selectedNodes=[];for(var y=document.querySelectorAll(".selected-row"),v=0;v1?this.selectedNodes.indexOf(o.Id)>-1&&(n.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1),b=!1):0!==this.selectedNodes.length&&1!==this.selectedNodes.length||(this.oldDirection=this.direction),t&&t.classList.contains("grid-data-row")||(t=n,b=!1),_=t.id,document.getElementById(_+"-"+i).focus(),_=_.split("node-")[1],o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(_,10)}),-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id),this.lastSelectedRow=t):b&&(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),this.selectedObject=o}}else if((37===e.which||39===e.which||9===e.which||e.shiftKey&&9===e.which)&&!e.ctrlKey){e.preventDefault(),e.stopPropagation(),l=!0;var M=void 0;c=void 0,d=void 0,h=void 0,c=document.getElementById("comparison-grid"),d=this.getSiblingElement(!1,c.firstElementChild.firstElementChild.id),h=c.firstElementChild.lastElementChild,(39===e.which||9===e.which&&!e.shiftKey)&&(l=!1),(t=this.getSiblingElement(l,e.target.id))?t.focus():(i=document.getElementById(e.target.id).getAttribute("data-column-type"),n===d&&"node-type"===i||n===h&&"action-dropdown"===i||(n.classList.remove("selected-row"),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(n.id.split("node-")[1],10)}),this.selectedNodes.indexOf(o.Id)>-1&&this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1),t=this.getSiblingElement(l,n.id),o=this.comparisonDataToDisplay.find(function(e){return e.Id===parseInt(t.id.split("node-")[1],10)}),this.selectedObject=o,-1===this.selectedNodes.indexOf(o.Id)?(t.classList.add("selected-row"),this.selectedNodes.push(o.Id)):(t.classList.remove("selected-row"),this.selectedNodes.splice(this.selectedNodes.indexOf(o.Id),1)),M=l?document.getElementById(t.id).lastElementChild:document.getElementById(t.id).firstElementChild,document.getElementById(M.id).focus()))}for(var w=document.querySelectorAll(".selected-row .greyed-out-cell"),C=0;C0){t.selectedObject=t.comparisonDataToDisplay[0];var o=t;t.intervalId=setInterval(function(){o.bindElements(i)},1e3)}}t.showContextMenu=!1})},e.prototype.changeOptions=function(e){for(var t,n,i=0;i0),e(t,9,0,n.comparisonDataToDisplay.length>0),e(t,12,0,n.comparisonDataToDisplay.length>0)},null)}var XR=o.T({encapsulation:0,styles:[["body[_ngcontent-%COMP%]{overflow-y:hidden}"]],data:{}});function KR(e){return o._11(0,[(e()(),o.V(0,0,null,null,1,"app-grid",[],null,[["document","mouseup"],["window","resize"]],function(e,t,n){var i=!0;return"document:mouseup"===t&&(i=!1!==o._6(e,1).onMouseUp(n)&&i),"window:resize"===t&&(i=!1!==o._6(e,1).onResize(n)&&i),i},QR,HR)),o.U(1,114688,null,0,FR,[y,f,o.s],null,null),(e()(),o._10(-1,null,["\n"]))],function(e,t){e(t,1,0)},null)}var JR=o.R("app-root",s,function(e){return o._11(0,[(e()(),o.V(0,0,null,null,1,"app-root",[],null,null,null,KR,XR)),o.U(1,49152,null,0,s,[],null,null)],null,null)},{},{},[]),qR=o.S(r,[s],function(e){return o._3([o._4(512,o.g,o.O,[[8,[JR]],[3,o.g],o.q]),o._4(5120,o.p,o._8,[[3,o.p]]),o._4(4608,I,S,[o.p,[2,N]]),o._4(4608,o.f,o.f,[]),o._4(5120,o.a,o.X,[]),o._4(5120,o.n,o._5,[]),o._4(5120,o.o,o._7,[]),o._4(4608,tt,nt,[A]),o._4(6144,o.z,null,[tt]),o._4(4608,xe,De,[]),o._4(5120,te,function(e,t,n,i,o){return[new Ie(e,t),new je(n),new Te(i,o)]},[A,o.s,A,A,xe]),o._4(4608,ne,ne,[te,o.s]),o._4(135680,re,re,[A]),o._4(4608,he,he,[ne,re]),o._4(6144,o.x,null,[he]),o._4(6144,oe,null,[re]),o._4(4608,o.C,o.C,[o.s]),o._4(4608,G,G,[A]),o._4(4608,J,J,[A]),o._4(4608,pt,pt,[]),o._4(4608,f,f,[]),o._4(4608,m,m,[]),o._4(4608,y,y,[f,m]),o._4(512,j,j,[]),o._4(1024,o.i,dt,[]),o._4(1024,o.b,function(e){return[(t=e,q("probe",ee),q("coreTokens",Object(a.a)({},$,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return ee})];var t},[[2,o.r]]),o._4(512,o.c,o.c,[[2,o.b]]),o._4(131584,o.e,o.e,[o.s,o.P,o.m,o.i,o.g,o.c]),o._4(512,o.d,o.d,[o.e]),o._4(512,ht,ht,[[3,ht]]),o._4(512,yt,yt,[]),o._4(512,vt,vt,[]),o._4(512,r,r,[])])});Object(o.I)(),ct().bootstrapModuleFactory(qR).catch(function(e){return console.log(e)})},x6VL:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("TToO"),o=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(i.c)(t,e),t}(Error)}},[0]); \ No newline at end of file diff --git a/BismNormalizer/AlmToolkit/html-resources/src/app/grid/grid.component.css b/BismNormalizer/AlmToolkit/html-resources/src/app/grid/grid.component.css index 70434ea..64fbecc 100644 --- a/BismNormalizer/AlmToolkit/html-resources/src/app/grid/grid.component.css +++ b/BismNormalizer/AlmToolkit/html-resources/src/app/grid/grid.component.css @@ -4,8 +4,12 @@ clear: both; } +html, body { + height: 100% +} + #main-container { - height: 750px; + height: 100%; } #comparison-table-container { diff --git a/BismNormalizer/AlmToolkitSetup/AlmToolkitSetup.vdproj b/BismNormalizer/AlmToolkitSetup/AlmToolkitSetup.vdproj index 99611d9..0984d6b 100644 --- a/BismNormalizer/AlmToolkitSetup/AlmToolkitSetup.vdproj +++ b/BismNormalizer/AlmToolkitSetup/AlmToolkitSetup.vdproj @@ -423,18 +423,6 @@ } "Entry" { - "MsmKey" = "8:_2FF8691D554FA07D2FB9B12FDB7C85AE" - "OwnerKey" = "8:_5A164155F3A26ADD1FBD98FBEB077513" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_2FF8691D554FA07D2FB9B12FDB7C85AE" - "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_31051673150A4B48BF86FB1343E60DEC" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -795,12 +783,6 @@ } "Entry" { - "MsmKey" = "8:_5A164155F3A26ADD1FBD98FBEB077513" - "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_5ADC3BD7F893420D9AA24B075B8B2A7C" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -1036,6 +1018,12 @@ "Entry" { "MsmKey" = "8:_7344099411A9D2DBF4A784E3DE9EA77D" + "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_7344099411A9D2DBF4A784E3DE9EA77D" "OwnerKey" = "8:_577232D49DA84949B3604BA695B35542" "MsmSig" = "8:_UNDEFINED" } @@ -1252,6 +1240,12 @@ "Entry" { "MsmKey" = "8:_82DAFE8276E3EAF6338E99A4D478878D" + "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_82DAFE8276E3EAF6338E99A4D478878D" "OwnerKey" = "8:_577232D49DA84949B3604BA695B35542" "MsmSig" = "8:_UNDEFINED" } @@ -1605,30 +1599,24 @@ } "Entry" { - "MsmKey" = "8:_A2BB30A0C7525C72A4C8B713E62E81B4" - "OwnerKey" = "8:_2FF8691D554FA07D2FB9B12FDB7C85AE" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_A2BB30A0C7525C72A4C8B713E62E81B4" - "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_A2BB30A0C7525C72A4C8B713E62E81B4" - "OwnerKey" = "8:_5A164155F3A26ADD1FBD98FBEB077513" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_A37BEE0D4FE44280AD474E431B0217E7" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" } "Entry" { + "MsmKey" = "8:_A5BA815907352422F79655A4124433EC" + "OwnerKey" = "8:_7990580A65964262A834E0D37E8ABE09" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_A5BA815907352422F79655A4124433EC" + "OwnerKey" = "8:_EA698E8642334E208E6882C8AD9B959D" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { "MsmKey" = "8:_A6D29B6B731D4334BF2E445943548E82" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -1725,18 +1713,6 @@ } "Entry" { - "MsmKey" = "8:_B260699A6CBAD54E7697F76DD213ED5D" - "OwnerKey" = "8:_FA184EDD5D2621AD89B28478565DE814" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_B260699A6CBAD54E7697F76DD213ED5D" - "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_B3013186E3054C6E8955ACEF56E5F48A" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -1954,6 +1930,18 @@ "Entry" { "MsmKey" = "8:_D03859C17E6D24BBDABA95F7EB5C42A6" + "OwnerKey" = "8:_4325F12850DE4B4D8AFE5931FC66A032" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D03859C17E6D24BBDABA95F7EB5C42A6" + "OwnerKey" = "8:_0FBBFBF06B3F464CA9AF1150458B5F77" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D03859C17E6D24BBDABA95F7EB5C42A6" "OwnerKey" = "8:_505B9CD6FBF318D5810A11D52DB3B890" "MsmSig" = "8:_UNDEFINED" } @@ -2044,6 +2032,60 @@ "Entry" { "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_EA698E8642334E208E6882C8AD9B959D" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_E2CA400A177D4496948B1A908908ECF8" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_B25F8298714748818A5C47AD281101F2" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_7990580A65964262A834E0D37E8ABE09" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_A5BA815907352422F79655A4124433EC" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_4325F12850DE4B4D8AFE5931FC66A032" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_36AE2BAEFAF249D5A38A96B93E1B57B1" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_1AC259E78F48430A97FB3A4F9B9A4E7E" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" + "OwnerKey" = "8:_0FBBFBF06B3F464CA9AF1150458B5F77" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_D6E65017D7D98E6E7C666755CCD11A9B" "OwnerKey" = "8:_505B9CD6FBF318D5810A11D52DB3B890" "MsmSig" = "8:_UNDEFINED" } @@ -2182,6 +2224,12 @@ "Entry" { "MsmKey" = "8:_E6C48E30804B563751F799BDB82D2D5F" + "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_E6C48E30804B563751F799BDB82D2D5F" "OwnerKey" = "8:_7344099411A9D2DBF4A784E3DE9EA77D" "MsmSig" = "8:_UNDEFINED" } @@ -2265,6 +2313,12 @@ } "Entry" { + "MsmKey" = "8:_EEEF3B4DA37D965DCA452A1E7B283C82" + "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { "MsmKey" = "8:_EF0C782C601F42DE8C7EF094FA4ED82E" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -2302,6 +2356,12 @@ "Entry" { "MsmKey" = "8:_F27EC43FC3B12703E1AC626345868C2F" + "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_F27EC43FC3B12703E1AC626345868C2F" "OwnerKey" = "8:_577232D49DA84949B3604BA695B35542" "MsmSig" = "8:_UNDEFINED" } @@ -2331,24 +2391,6 @@ } "Entry" { - "MsmKey" = "8:_FA184EDD5D2621AD89B28478565DE814" - "OwnerKey" = "8:_7936400E6C154464B76D26251125123A" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_FA184EDD5D2621AD89B28478565DE814" - "OwnerKey" = "8:_2FF8691D554FA07D2FB9B12FDB7C85AE" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_FA184EDD5D2621AD89B28478565DE814" - "OwnerKey" = "8:_5A164155F3A26ADD1FBD98FBEB077513" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { "MsmKey" = "8:_FB48CD08F86F4E088E6AC75108A88247" "OwnerKey" = "8:_UNDEFINED" "MsmSig" = "8:_UNDEFINED" @@ -2410,12 +2452,78 @@ "Entry" { "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_EA698E8642334E208E6882C8AD9B959D" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_E2CA400A177D4496948B1A908908ECF8" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_B401194BB81A4C83B8F18877C5DAFD65" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_B25F8298714748818A5C47AD281101F2" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_7990580A65964262A834E0D37E8ABE09" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_A5BA815907352422F79655A4124433EC" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_4325F12850DE4B4D8AFE5931FC66A032" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_40B208E090E246859C2469763F849B04" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_36AE2BAEFAF249D5A38A96B93E1B57B1" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_1F23AE629378259BAD7F2BCAB42727AD" "MsmSig" = "8:_UNDEFINED" } "Entry" { "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_1AC259E78F48430A97FB3A4F9B9A4E7E" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" + "OwnerKey" = "8:_0FBBFBF06B3F464CA9AF1150458B5F77" + "MsmSig" = "8:_UNDEFINED" + } + "Entry" + { + "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_0020EC0A2900F50F0F5DCC3E7BBE4237" "MsmSig" = "8:_UNDEFINED" } @@ -2434,36 +2542,6 @@ "Entry" { "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_5A164155F3A26ADD1FBD98FBEB077513" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_2FF8691D554FA07D2FB9B12FDB7C85AE" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_A2BB30A0C7525C72A4C8B713E62E81B4" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_FA184EDD5D2621AD89B28478565DE814" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" - "OwnerKey" = "8:_B260699A6CBAD54E7697F76DD213ED5D" - "MsmSig" = "8:_UNDEFINED" - } - "Entry" - { - "MsmKey" = "8:_UNDEFINED" "OwnerKey" = "8:_505B9CD6FBF318D5810A11D52DB3B890" "MsmSig" = "8:_UNDEFINED" } @@ -2764,7 +2842,7 @@ { "Name" = "8:.NET Framework" "Message" = "8:[VSDNETMSG]" - "FrameworkVersion" = "8:v4.6.1 " + "FrameworkVersion" = "8:v4.6.1 " "AllowLaterVersions" = "11:FALSE" "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=671728" } @@ -2776,7 +2854,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.29.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.31.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL" "ScatterAssemblies" { "_0020EC0A2900F50F0F5DCC3E7BBE4237" @@ -3232,6 +3310,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.WinForms, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" "ScatterAssemblies" { + "_0FBBFBF06B3F464CA9AF1150458B5F77" + { + "Name" = "8:CefSharp.WinForms.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\CefSharp.WinForms.dll" "TargetName" = "8:" @@ -3489,6 +3572,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.Core, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" "ScatterAssemblies" { + "_1AC259E78F48430A97FB3A4F9B9A4E7E" + { + "Name" = "8:CefSharp.Core.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\CefSharp.Core.dll" "TargetName" = "8:" @@ -3703,7 +3791,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.29.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:BismNormalizer, Version=5.0.31.0, Culture=neutral, PublicKeyToken=aa6675aad991a644, processorArchitecture=MSIL" "ScatterAssemblies" { "_1F23AE629378259BAD7F2BCAB42727AD" @@ -3910,37 +3998,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_2FF8691D554FA07D2FB9B12FDB7C85AE" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_2FF8691D554FA07D2FB9B12FDB7C85AE" - { - "Name" = "8:Microsoft.AnalysisServices.Tabular.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Microsoft.AnalysisServices.Tabular.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_CAD31D6A85364CAA9F9BFC2750F80458" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_31051673150A4B48BF86FB1343E60DEC" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\html-resources\\dist\\34.chunk.js" @@ -4028,6 +4085,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.BrowserSubprocess.Core, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86" "ScatterAssemblies" { + "_36AE2BAEFAF249D5A38A96B93E1B57B1" + { + "Name" = "8:CefSharp.BrowserSubprocess.Core.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\CefSharp.BrowserSubprocess.Core.dll" "TargetName" = "8:" @@ -4245,6 +4307,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" "ScatterAssemblies" { + "_40B208E090E246859C2469763F849B04" + { + "Name" = "8:CefSharp.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\CefSharp.dll" "TargetName" = "8:" @@ -4342,6 +4409,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.WinForms, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86" "ScatterAssemblies" { + "_4325F12850DE4B4D8AFE5931FC66A032" + { + "Name" = "8:CefSharp.WinForms.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\CefSharp.WinForms.dll" "TargetName" = "8:" @@ -4894,37 +4966,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_5A164155F3A26ADD1FBD98FBEB077513" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_5A164155F3A26ADD1FBD98FBEB077513" - { - "Name" = "8:Microsoft.AnalysisServices.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Microsoft.AnalysisServices.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_CAD31D6A85364CAA9F9BFC2750F80458" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5ADC3BD7F893420D9AA24B075B8B2A7C" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\locales\\ml.pak" @@ -5591,7 +5632,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular, Version=19.22.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" "ScatterAssemblies" { "_7344099411A9D2DBF4A784E3DE9EA77D" @@ -5776,6 +5817,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.BrowserSubprocess, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" "ScatterAssemblies" { + "_7990580A65964262A834E0D37E8ABE09" + { + "Name" = "8:CefSharp.BrowserSubprocess.exe" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\CefSharp.BrowserSubprocess.exe" "TargetName" = "8:" @@ -6121,7 +6167,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular.Json, Version=19.22.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular.Json, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" "ScatterAssemblies" { "_82DAFE8276E3EAF6338E99A4D478878D" @@ -6936,37 +6982,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A2BB30A0C7525C72A4C8B713E62E81B4" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Tabular.Json, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_A2BB30A0C7525C72A4C8B713E62E81B4" - { - "Name" = "8:Microsoft.AnalysisServices.Tabular.Json.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Microsoft.AnalysisServices.Tabular.Json.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_CAD31D6A85364CAA9F9BFC2750F80458" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A37BEE0D4FE44280AD474E431B0217E7" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\locales\\ro.pak" @@ -6987,6 +7002,37 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } + "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_A5BA815907352422F79655A4124433EC" + { + "AssemblyRegister" = "3:1" + "AssemblyIsInGAC" = "11:FALSE" + "AssemblyAsmDisplayName" = "8:CefSharp.BrowserSubprocess.Core, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" + "ScatterAssemblies" + { + "_A5BA815907352422F79655A4124433EC" + { + "Name" = "8:CefSharp.BrowserSubprocess.Core.dll" + "Attributes" = "3:512" + } + } + "SourcePath" = "8:CefSharp.BrowserSubprocess.Core.dll" + "TargetName" = "8:" + "Tag" = "8:" + "Folder" = "8:_8B6F278685F945AF8D59CF597AF590B1" + "Condition" = "8:" + "Transitive" = "11:FALSE" + "Vital" = "11:TRUE" + "ReadOnly" = "11:FALSE" + "Hidden" = "11:FALSE" + "System" = "11:FALSE" + "Permanent" = "11:FALSE" + "SharedLegacy" = "11:FALSE" + "PackageAs" = "3:1" + "Register" = "3:1" + "Exclude" = "11:FALSE" + "IsDependency" = "11:TRUE" + "IsolateTo" = "8:" + } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_A6D29B6B731D4334BF2E445943548E82" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\html-resources\\dist\\assets\\node-type-KPI.png" @@ -7294,6 +7340,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.Core, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86" "ScatterAssemblies" { + "_B25F8298714748818A5C47AD281101F2" + { + "Name" = "8:CefSharp.Core.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\CefSharp.Core.dll" "TargetName" = "8:" @@ -7313,37 +7364,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_B260699A6CBAD54E7697F76DD213ED5D" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.SPClient.Interfaces, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_B260699A6CBAD54E7697F76DD213ED5D" - { - "Name" = "8:Microsoft.AnalysisServices.SPClient.Interfaces.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Microsoft.AnalysisServices.SPClient.Interfaces.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_CAD31D6A85364CAA9F9BFC2750F80458" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_B3013186E3054C6E8955ACEF56E5F48A" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\chrome_elf.dll" @@ -7371,6 +7391,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86" "ScatterAssemblies" { + "_B401194BB81A4C83B8F18877C5DAFD65" + { + "Name" = "8:CefSharp.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\CefSharp.dll" "TargetName" = "8:" @@ -8265,6 +8290,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.BrowserSubprocess.Core, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=AMD64" "ScatterAssemblies" { + "_E2CA400A177D4496948B1A908908ECF8" + { + "Name" = "8:CefSharp.BrowserSubprocess.Core.dll" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\CefSharp.BrowserSubprocess.Core.dll" "TargetName" = "8:" @@ -8368,7 +8398,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Core, Version=19.22.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Core, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" "ScatterAssemblies" { "_E6C48E30804B563751F799BDB82D2D5F" @@ -8482,6 +8512,11 @@ "AssemblyAsmDisplayName" = "8:CefSharp.BrowserSubprocess, Version=63.0.3.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=x86" "ScatterAssemblies" { + "_EA698E8642334E208E6882C8AD9B959D" + { + "Name" = "8:CefSharp.BrowserSubprocess.exe" + "Attributes" = "3:512" + } } "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x86\\CefSharp.BrowserSubprocess.exe" "TargetName" = "8:" @@ -8585,7 +8620,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices, Version=19.22.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" "ScatterAssemblies" { "_EEEF3B4DA37D965DCA452A1E7B283C82" @@ -8716,7 +8751,7 @@ { "AssemblyRegister" = "3:1" "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.SPClient.Interfaces, Version=19.22.0.1, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" + "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.SPClient.Interfaces, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" "ScatterAssemblies" { "_F27EC43FC3B12703E1AC626345868C2F" @@ -8834,37 +8869,6 @@ "IsDependency" = "11:FALSE" "IsolateTo" = "8:" } - "{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_FA184EDD5D2621AD89B28478565DE814" - { - "AssemblyRegister" = "3:1" - "AssemblyIsInGAC" = "11:FALSE" - "AssemblyAsmDisplayName" = "8:Microsoft.AnalysisServices.Core, Version=19.39.2.2, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" - "ScatterAssemblies" - { - "_FA184EDD5D2621AD89B28478565DE814" - { - "Name" = "8:Microsoft.AnalysisServices.Core.dll" - "Attributes" = "3:512" - } - } - "SourcePath" = "8:Microsoft.AnalysisServices.Core.dll" - "TargetName" = "8:" - "Tag" = "8:" - "Folder" = "8:_CAD31D6A85364CAA9F9BFC2750F80458" - "Condition" = "8:" - "Transitive" = "11:FALSE" - "Vital" = "11:TRUE" - "ReadOnly" = "11:FALSE" - "Hidden" = "11:FALSE" - "System" = "11:FALSE" - "Permanent" = "11:FALSE" - "SharedLegacy" = "11:FALSE" - "PackageAs" = "3:1" - "Register" = "3:1" - "Exclude" = "11:FALSE" - "IsDependency" = "11:TRUE" - "IsolateTo" = "8:" - } "{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FB48CD08F86F4E088E6AC75108A88247" { "SourcePath" = "8:..\\AlmToolkit\\bin\\Release\\x64\\widevinecdmadapter.dll" @@ -9284,15 +9288,15 @@ { "Name" = "8:Microsoft Visual Studio" "ProductName" = "8:Power BI ALM Toolkit" - "ProductCode" = "8:{BB0B7276-6025-48C7-B78F-70C1A5AD13B4}" - "PackageCode" = "8:{F5907F96-8228-4FB9-814B-F9C59D026ED8}" + "ProductCode" = "8:{FDC7726C-CE6B-4CED-B829-FAFF1CE015D9}" + "PackageCode" = "8:{88420696-968D-4162-B22F-DD0F878E4A82}" "UpgradeCode" = "8:{96819CFD-6462-4AD1-ADB4-7903F30ADB92}" "AspNetVersion" = "8:4.0.30319.0" "RestartWWWService" = "11:FALSE" "RemovePreviousVersions" = "11:TRUE" "DetectNewerInstalledVersion" = "11:TRUE" "InstallAllUsers" = "11:TRUE" - "ProductVersion" = "8:5.0.31" + "ProductVersion" = "8:5.0.32" "Manufacturer" = "8:Power BI ALM Toolkit" "ARPHELPTELEPHONE" = "8:" "ARPHELPLINK" = "8:" diff --git a/BismNormalizer/BismNormalizer.CommandLine/Properties/AssemblyInfo.cs b/BismNormalizer/BismNormalizer.CommandLine/Properties/AssemblyInfo.cs index 28c8673..7d919b7 100644 --- a/BismNormalizer/BismNormalizer.CommandLine/Properties/AssemblyInfo.cs +++ b/BismNormalizer/BismNormalizer.CommandLine/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.31.0")] -[assembly: AssemblyFileVersion("5.0.31.0")] +[assembly: AssemblyVersion("5.0.32.0")] +[assembly: AssemblyFileVersion("5.0.32.0")] diff --git a/BismNormalizer/BismNormalizer.IconSetup/Properties/AssemblyInfo.cs b/BismNormalizer/BismNormalizer.IconSetup/Properties/AssemblyInfo.cs index 3688ecf..1c881be 100644 --- a/BismNormalizer/BismNormalizer.IconSetup/Properties/AssemblyInfo.cs +++ b/BismNormalizer/BismNormalizer.IconSetup/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.31.0")] -[assembly: AssemblyFileVersion("5.0.31.0")] +[assembly: AssemblyVersion("5.0.32.0")] +[assembly: AssemblyFileVersion("5.0.32.0")] diff --git a/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe b/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe index 75a9f96..f4e0be9 100644 Binary files a/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe and b/BismNormalizer/BismNormalizer/BismNormalizer.IconSetup.exe differ diff --git a/BismNormalizer/BismNormalizer/BismNormalizer.exe b/BismNormalizer/BismNormalizer/BismNormalizer.exe index 73818aa..d0ba50e 100644 Binary files a/BismNormalizer/BismNormalizer/BismNormalizer.exe and b/BismNormalizer/BismNormalizer/BismNormalizer.exe differ diff --git a/BismNormalizer/BismNormalizer/Properties/AssemblyInfo.cs b/BismNormalizer/BismNormalizer/Properties/AssemblyInfo.cs index e38bd26..e682e74 100644 --- a/BismNormalizer/BismNormalizer/Properties/AssemblyInfo.cs +++ b/BismNormalizer/BismNormalizer/Properties/AssemblyInfo.cs @@ -29,5 +29,5 @@ using System.Runtime.InteropServices; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("5.0.31.0")] -[assembly: AssemblyFileVersion("5.0.31.0")] +[assembly: AssemblyVersion("5.0.32.0")] +[assembly: AssemblyFileVersion("5.0.32.0")] diff --git a/BismNormalizer/BismNormalizer/source.extension.vsixmanifest b/BismNormalizer/BismNormalizer/source.extension.vsixmanifest index 9544e88..21510b8 100644 --- a/BismNormalizer/BismNormalizer/source.extension.vsixmanifest +++ b/BismNormalizer/BismNormalizer/source.extension.vsixmanifest @@ -1,7 +1,7 @@  - + BISM Normalizer BISM Normalizer manages Analysis Services tabular models http://bism-normalizer.com/