@rsdoctor/client 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/resource/css/{index.e0959e33.css → index.fb881e51.css} +1 -1
- package/dist/resource/css/monaco-0.535483b8.css +1 -0
- package/dist/resource/css/monaco-1.19b5ab97.css +1 -0
- package/dist/resource/css/monaco-10.9ae50643.css +1 -0
- package/dist/resource/css/monaco-11.2416f84b.css +1 -0
- package/dist/resource/css/monaco-12.d38f1964.css +1 -0
- package/dist/resource/css/monaco-13.86c79c6e.css +1 -0
- package/dist/resource/css/monaco-14.f69f0e8c.css +1 -0
- package/dist/resource/css/monaco-2.bc87f9b2.css +1 -0
- package/dist/resource/css/monaco-3.37d5626c.css +1 -0
- package/dist/resource/css/monaco-4.b782cd98.css +1 -0
- package/dist/resource/css/monaco-5.3f11493c.css +1 -0
- package/dist/resource/css/monaco-6.25aae788.css +1 -0
- package/dist/resource/css/monaco-7.681f0305.css +1 -0
- package/dist/resource/css/monaco-8.29ff9088.css +1 -0
- package/dist/resource/css/monaco-9.e09f4a76.css +1 -0
- package/dist/resource/font/codicon.f866ab84.ttf +0 -0
- package/dist/resource/js/117.510490e1.js +461 -0
- package/dist/resource/js/{226.64d4cab7.js.LICENSE.txt → 117.510490e1.js.LICENSE.txt} +8201 -8145
- package/dist/resource/js/index.93b99658.js +157 -0
- package/dist/resource/js/{index.44e5cd50.js.LICENSE.txt → index.93b99658.js.LICENSE.txt} +975 -863
- package/dist/resource/js/monaco-0.a466c0d5.js +3 -0
- package/dist/resource/js/monaco-0.a466c0d5.js.LICENSE.txt +420 -0
- package/dist/resource/js/monaco-1.6a6d9fbd.js +5 -0
- package/dist/resource/js/monaco-1.6a6d9fbd.js.LICENSE.txt +684 -0
- package/dist/resource/js/monaco-10.6f5b38ef.js +2 -0
- package/dist/resource/js/monaco-10.6f5b38ef.js.LICENSE.txt +545 -0
- package/dist/resource/js/monaco-11.81ae21be.js +2 -0
- package/dist/resource/js/monaco-11.81ae21be.js.LICENSE.txt +633 -0
- package/dist/resource/js/monaco-12.6dc645fd.js +23 -0
- package/dist/resource/js/monaco-12.6dc645fd.js.LICENSE.txt +512 -0
- package/dist/resource/js/monaco-13.dd2ff536.js +6 -0
- package/dist/resource/js/monaco-13.dd2ff536.js.LICENSE.txt +600 -0
- package/dist/resource/js/monaco-14.2fef89fc.js +2 -0
- package/dist/resource/js/monaco-14.2fef89fc.js.LICENSE.txt +534 -0
- package/dist/resource/js/monaco-2.89e3d3e1.js +4 -0
- package/dist/resource/js/monaco-2.89e3d3e1.js.LICENSE.txt +513 -0
- package/dist/resource/js/monaco-3.ae0e86c1.js +26 -0
- package/dist/resource/js/monaco-3.ae0e86c1.js.LICENSE.txt +668 -0
- package/dist/resource/js/monaco-4.afbf6d73.js +2 -0
- package/dist/resource/js/monaco-4.afbf6d73.js.LICENSE.txt +635 -0
- package/dist/resource/js/monaco-5.521603f3.js +22 -0
- package/dist/resource/js/monaco-5.521603f3.js.LICENSE.txt +515 -0
- package/dist/resource/js/monaco-6.72f2d298.js +30 -0
- package/dist/resource/js/monaco-6.72f2d298.js.LICENSE.txt +991 -0
- package/dist/resource/js/monaco-7.8e6e32f9.js +25 -0
- package/dist/resource/js/monaco-7.8e6e32f9.js.LICENSE.txt +627 -0
- package/dist/resource/js/monaco-8.e8d2f2de.js +395 -0
- package/dist/resource/js/monaco-8.e8d2f2de.js.LICENSE.txt +562 -0
- package/dist/resource/js/monaco-9.d66d09e1.js +71 -0
- package/dist/resource/js/monaco-9.d66d09e1.js.LICENSE.txt +800 -0
- package/package.json +3 -3
- package/dist/resource/js/226.64d4cab7.js +0 -461
- package/dist/resource/js/index.44e5cd50.js +0 -150
- /package/dist/resource/css/{226.75ade4fc.css → 117.75ade4fc.css} +0 -0
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
/*! For license information please see monaco-8.e8d2f2de.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["790"],{972646:function(e,t,i){"use strict";i.r(t),i.d(t,{BrowserFeatures:function(){return s}});var o=i("259527"),n=i("207875");let s={clipboard:{writeText:n.isNative||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:n.isNative||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:n.isNative||o.isStandalone()?0:navigator.keyboard||o.isSafari?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)}},794861:function(e,t,i){"use strict";i.r(t),i.d(t,{HighlightedLabel:function(){return r}});var o=i("409737"),n=i("572740"),s=i("500777");class r{constructor(e,t){var i;this.text="",this.title="",this.highlights=[],this.didEverRender=!1,this.supportIcons=null!==(i=null==t?void 0:t.supportIcons)&&void 0!==i&&i,this.domNode=o.append(e,o.$("span.monaco-highlighted-label"))}get element(){return this.domNode}set(e,t=[],i="",o){!e&&(e=""),o&&(e=r.escapeNewLines(e,t)),!(this.didEverRender&&this.text===e&&this.title===i&&s.equals(this.highlights,t))&&(this.text=e,this.title=i,this.highlights=t,this.render())}render(){let e=[],t=0;for(let i of this.highlights){if(i.end===i.start)continue;if(t<i.start){let s=this.text.substring(t,i.start);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(s):[s])),t=i.end}let s=this.text.substring(i.start,i.end),r=o.$("span.highlight",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(s):[s]);i.extraClasses&&r.classList.add(...i.extraClasses),e.push(r),t=i.end}if(t<this.text.length){let i=this.text.substring(t);e.push(o.$("span",void 0,...this.supportIcons?(0,n.renderLabelWithIcons)(i):[i]))}o.reset(this.domNode,...e),this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0}static escapeNewLines(e,t){let i=0,o=0;return e.replace(/\r\n|\r|\n/g,(e,n)=>{for(let s of(o="\r\n"===e?-1:0,n+=i,t))!(s.end<=n)&&(s.start>=n&&(s.start+=o),s.end>=n&&(s.end+=o));return i+=o,"\u23CE"})}}},392924:function(e,t,i){"use strict";i.r(t),i.d(t,{Menu:function(){return k}});var o,n,s=i("259527"),r=i("266569"),a=i("409737"),l=i("85763"),c=i("919219"),u=i("362880"),d=i("268587"),h=i("297617"),m=i("98153"),g=i("842401"),p=i("431453"),f=i("467518"),b=i("871628"),_=i("947578"),y=i("919527"),C=i("207875"),v=i("266763");let S=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,w=/(&)?(&)([^\s&])/g;(o=n||(n={}))[o.Right=0]="Right",o[o.Left=1]="Left";class k extends u.ActionBar{constructor(e,t,i={}){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");let o=document.createElement("div");o.classList.add("monaco-menu"),o.setAttribute("role","presentation"),super(o,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,n),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...C.isMacintosh||C.isLinux?[10]:[]],keyDown:!0}}),this.menuElement=o,this.actionsList.tabIndex=0,this.menuDisposables=this._register(new y.DisposableStore),this.initializeOrUpdateStyleSheet(e,{}),this._register(r.Gesture.addTarget(o)),(0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{new l.StandardKeyboardEvent(e).equals(2)&&e.preventDefault()}),i.enableMnemonics&&this.menuDisposables.add((0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{let t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){a.EventHelper.stop(e,!0);let i=this.mnemonics.get(t);if(1===i.length&&(i[0]instanceof I&&i[0].container&&this.focusItemByElement(i[0].container),i[0].onClick(e)),i.length>1){let e=i.shift();e&&e.container&&(this.focusItemByElement(e.container),i.push(e)),this.mnemonics.set(t,i)}}})),C.isLinux&&this._register((0,a.addDisposableListener)(o,a.EventType.KEY_DOWN,e=>{let t=new l.StandardKeyboardEvent(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),a.EventHelper.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),a.EventHelper.stop(e,!0))})),this._register((0,a.addDisposableListener)(this.domNode,a.EventType.MOUSE_OUT,e=>{let t=e.relatedTarget;!(0,a.isAncestor)(t,this.domNode)&&(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register((0,a.addDisposableListener)(this.actionsList,a.EventType.MOUSE_OVER,e=>{let t=e.target;if(t&&(0,a.isAncestor)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}})),this._register(r.Gesture.addTarget(this.actionsList)),this._register((0,a.addDisposableListener)(this.actionsList,r.EventType.Tap,e=>{let t=e.initialTarget;if(t&&(0,a.isAncestor)(t,this.actionsList)&&t!==this.actionsList){for(;t.parentElement!==this.actionsList&&null!==t.parentElement;)t=t.parentElement;if(t.classList.contains("action-item")){let e=this.focusedItem;this.setFocusedItem(t),e!==this.focusedItem&&this.updateFocus()}}}));let n={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new g.DomScrollableElement(o,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let s=this.scrollableElement.getDomNode();s.style.position="",this._register((0,a.addDisposableListener)(o,r.EventType.Change,e=>{a.EventHelper.stop(e,!0);let t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register((0,a.addDisposableListener)(s,a.EventType.MOUSE_UP,e=>{e.preventDefault()})),o.style.maxHeight=`${Math.max(10,window.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter(e=>{var t;return(null===(t=i.submenuIds)||void 0===t?!void 0:!t.has(e.id))||(console.warn(`Found submenu cycle: ${e.id}`),!1)}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof L)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeOrUpdateStyleSheet(e,t){!this.styleSheet&&((0,a.isInShadowDOM)(e)?this.styleSheet=(0,a.createStyleSheet)(e):(!k.globalStyleSheet&&(k.globalStyleSheet=(0,a.createStyleSheet)()),this.styleSheet=k.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`
|
|
3
|
+
.monaco-menu {
|
|
4
|
+
font-size: 13px;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
min-width: 160px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
${(0,h.formatRule)(b.Codicon.menuSelection)}
|
|
10
|
+
${(0,h.formatRule)(b.Codicon.menuSubmenu)}
|
|
11
|
+
|
|
12
|
+
.monaco-menu .monaco-action-bar {
|
|
13
|
+
text-align: right;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
white-space: nowrap;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.monaco-menu .monaco-action-bar .actions-container {
|
|
19
|
+
display: flex;
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
padding: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
justify-content: flex-end;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.monaco-menu .monaco-action-bar.vertical .actions-container {
|
|
27
|
+
display: inline-block;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.monaco-menu .monaco-action-bar.reverse .actions-container {
|
|
31
|
+
flex-direction: row-reverse;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.monaco-menu .monaco-action-bar .action-item {
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
display: inline-block;
|
|
37
|
+
transition: transform 50ms ease;
|
|
38
|
+
position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.monaco-menu .monaco-action-bar .action-item.disabled {
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.monaco-menu .monaco-action-bar.animated .action-item.active {
|
|
46
|
+
transform: scale(1.272019649, 1.272019649); /* 1.272019649 = \u{221A}\u{3C6} */
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.monaco-menu .monaco-action-bar .action-item .icon,
|
|
50
|
+
.monaco-menu .monaco-action-bar .action-item .codicon {
|
|
51
|
+
display: inline-block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.monaco-menu .monaco-action-bar .action-item .codicon {
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.monaco-menu .monaco-action-bar .action-label {
|
|
60
|
+
font-size: 11px;
|
|
61
|
+
margin-right: 4px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.monaco-menu .monaco-action-bar .action-item.disabled .action-label,
|
|
65
|
+
.monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
|
|
66
|
+
color: var(--vscode-disabledForeground);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Vertical actions */
|
|
70
|
+
|
|
71
|
+
.monaco-menu .monaco-action-bar.vertical {
|
|
72
|
+
text-align: left;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.monaco-menu .monaco-action-bar.vertical .action-item {
|
|
76
|
+
display: block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
|
80
|
+
display: block;
|
|
81
|
+
border-bottom: 1px solid var(--vscode-menu-separatorBackground);
|
|
82
|
+
padding-top: 1px;
|
|
83
|
+
padding: 30px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.monaco-menu .secondary-actions .monaco-action-bar .action-label {
|
|
87
|
+
margin-left: 6px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* Action Items */
|
|
91
|
+
.monaco-menu .monaco-action-bar .action-item.select-container {
|
|
92
|
+
overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
|
|
93
|
+
flex: 1;
|
|
94
|
+
max-width: 170px;
|
|
95
|
+
min-width: 60px;
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
margin-right: 10px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.monaco-menu .monaco-action-bar.vertical {
|
|
103
|
+
margin-left: 0;
|
|
104
|
+
overflow: visible;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.monaco-menu .monaco-action-bar.vertical .actions-container {
|
|
108
|
+
display: block;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.monaco-menu .monaco-action-bar.vertical .action-item {
|
|
112
|
+
padding: 0;
|
|
113
|
+
transform: none;
|
|
114
|
+
display: flex;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.monaco-menu .monaco-action-bar.vertical .action-item.active {
|
|
118
|
+
transform: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
|
|
122
|
+
flex: 1 1 auto;
|
|
123
|
+
display: flex;
|
|
124
|
+
height: 2em;
|
|
125
|
+
align-items: center;
|
|
126
|
+
position: relative;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
|
|
130
|
+
.monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
|
|
131
|
+
opacity: unset;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.monaco-menu .monaco-action-bar.vertical .action-label {
|
|
135
|
+
flex: 1 1 auto;
|
|
136
|
+
text-decoration: none;
|
|
137
|
+
padding: 0 1em;
|
|
138
|
+
background: none;
|
|
139
|
+
font-size: 12px;
|
|
140
|
+
line-height: 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.monaco-menu .monaco-action-bar.vertical .keybinding,
|
|
144
|
+
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
|
145
|
+
display: inline-block;
|
|
146
|
+
flex: 2 1 auto;
|
|
147
|
+
padding: 0 1em;
|
|
148
|
+
text-align: right;
|
|
149
|
+
font-size: 12px;
|
|
150
|
+
line-height: 1;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
|
154
|
+
height: 100%;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
|
|
158
|
+
font-size: 16px !important;
|
|
159
|
+
display: flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
|
|
164
|
+
margin-left: auto;
|
|
165
|
+
margin-right: -20px;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
|
|
169
|
+
.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
|
|
170
|
+
opacity: 0.4;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
|
|
174
|
+
display: inline-block;
|
|
175
|
+
box-sizing: border-box;
|
|
176
|
+
margin: 0;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.monaco-menu .monaco-action-bar.vertical .action-item {
|
|
180
|
+
position: static;
|
|
181
|
+
overflow: visible;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
|
|
185
|
+
position: absolute;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
|
189
|
+
width: 100%;
|
|
190
|
+
height: 0px !important;
|
|
191
|
+
opacity: 1;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
|
|
195
|
+
padding: 0.7em 1em 0.1em 1em;
|
|
196
|
+
font-weight: bold;
|
|
197
|
+
opacity: 1;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.monaco-menu .monaco-action-bar.vertical .action-label:hover {
|
|
201
|
+
color: inherit;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
|
|
205
|
+
position: absolute;
|
|
206
|
+
visibility: hidden;
|
|
207
|
+
width: 1em;
|
|
208
|
+
height: 100%;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
|
|
212
|
+
visibility: visible;
|
|
213
|
+
display: flex;
|
|
214
|
+
align-items: center;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* Context Menu */
|
|
219
|
+
|
|
220
|
+
.context-view.monaco-menu-container {
|
|
221
|
+
outline: 0;
|
|
222
|
+
border: none;
|
|
223
|
+
animation: fadeIn 0.083s linear;
|
|
224
|
+
-webkit-app-region: no-drag;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.context-view.monaco-menu-container :focus,
|
|
228
|
+
.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
|
|
229
|
+
.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
|
|
230
|
+
outline: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.hc-black .context-view.monaco-menu-container,
|
|
234
|
+
.hc-light .context-view.monaco-menu-container,
|
|
235
|
+
:host-context(.hc-black) .context-view.monaco-menu-container,
|
|
236
|
+
:host-context(.hc-light) .context-view.monaco-menu-container {
|
|
237
|
+
box-shadow: none;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
|
241
|
+
.hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
|
242
|
+
:host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
|
|
243
|
+
:host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
|
|
244
|
+
background: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Vertical Action Bar Styles */
|
|
248
|
+
|
|
249
|
+
.monaco-menu .monaco-action-bar.vertical {
|
|
250
|
+
padding: .6em 0;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.monaco-menu .monaco-action-bar.vertical .action-menu-item {
|
|
254
|
+
height: 2em;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
|
|
258
|
+
.monaco-menu .monaco-action-bar.vertical .keybinding {
|
|
259
|
+
font-size: inherit;
|
|
260
|
+
padding: 0 2em;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.monaco-menu .monaco-action-bar.vertical .menu-item-check {
|
|
264
|
+
font-size: inherit;
|
|
265
|
+
width: 2em;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
|
269
|
+
font-size: inherit;
|
|
270
|
+
margin: 5px 0 !important;
|
|
271
|
+
padding: 0;
|
|
272
|
+
border-radius: 0;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
|
|
276
|
+
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
|
|
277
|
+
margin-left: 0;
|
|
278
|
+
margin-right: 0;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
|
282
|
+
font-size: 60%;
|
|
283
|
+
padding: 0 1.8em;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
|
287
|
+
:host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
|
|
288
|
+
height: 100%;
|
|
289
|
+
mask-size: 10px 10px;
|
|
290
|
+
-webkit-mask-size: 10px 10px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.monaco-menu .action-item {
|
|
294
|
+
cursor: default;
|
|
295
|
+
}`;if(t){i+=`
|
|
296
|
+
/* Arrows */
|
|
297
|
+
.monaco-scrollable-element > .scrollbar > .scra {
|
|
298
|
+
cursor: pointer;
|
|
299
|
+
font-size: 11px !important;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.monaco-scrollable-element > .visible {
|
|
303
|
+
opacity: 1;
|
|
304
|
+
|
|
305
|
+
/* Background rule added for IE9 - to allow clicks on dom node */
|
|
306
|
+
background:rgba(0,0,0,0);
|
|
307
|
+
|
|
308
|
+
transition: opacity 100ms linear;
|
|
309
|
+
}
|
|
310
|
+
.monaco-scrollable-element > .invisible {
|
|
311
|
+
opacity: 0;
|
|
312
|
+
pointer-events: none;
|
|
313
|
+
}
|
|
314
|
+
.monaco-scrollable-element > .invisible.fade {
|
|
315
|
+
transition: opacity 800ms linear;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Scrollable Content Inset Shadow */
|
|
319
|
+
.monaco-scrollable-element > .shadow {
|
|
320
|
+
position: absolute;
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
.monaco-scrollable-element > .shadow.top {
|
|
324
|
+
display: block;
|
|
325
|
+
top: 0;
|
|
326
|
+
left: 3px;
|
|
327
|
+
height: 3px;
|
|
328
|
+
width: 100%;
|
|
329
|
+
}
|
|
330
|
+
.monaco-scrollable-element > .shadow.left {
|
|
331
|
+
display: block;
|
|
332
|
+
top: 3px;
|
|
333
|
+
left: 0;
|
|
334
|
+
height: 100%;
|
|
335
|
+
width: 3px;
|
|
336
|
+
}
|
|
337
|
+
.monaco-scrollable-element > .shadow.top-left-corner {
|
|
338
|
+
display: block;
|
|
339
|
+
top: 0;
|
|
340
|
+
left: 0;
|
|
341
|
+
height: 3px;
|
|
342
|
+
width: 3px;
|
|
343
|
+
}
|
|
344
|
+
`;let t=e.scrollbarShadow;t&&(i+=`
|
|
345
|
+
.monaco-scrollable-element > .shadow.top {
|
|
346
|
+
box-shadow: ${t} 0 6px 6px -6px inset;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.monaco-scrollable-element > .shadow.left {
|
|
350
|
+
box-shadow: ${t} 6px 0 6px -6px inset;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.monaco-scrollable-element > .shadow.top.left {
|
|
354
|
+
box-shadow: ${t} 6px 6px 6px -6px inset;
|
|
355
|
+
}
|
|
356
|
+
`);let o=e.scrollbarSliderBackground;o&&(i+=`
|
|
357
|
+
.monaco-scrollable-element > .scrollbar > .slider {
|
|
358
|
+
background: ${o};
|
|
359
|
+
}
|
|
360
|
+
`);let n=e.scrollbarSliderHoverBackground;n&&(i+=`
|
|
361
|
+
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
|
362
|
+
background: ${n};
|
|
363
|
+
}
|
|
364
|
+
`);let s=e.scrollbarSliderActiveBackground;s&&(i+=`
|
|
365
|
+
.monaco-scrollable-element > .scrollbar > .slider.active {
|
|
366
|
+
background: ${s};
|
|
367
|
+
}
|
|
368
|
+
`)}return i}(t,(0,a.isInShadowDOM)(e))}style(e){let t=this.getContainer();this.initializeOrUpdateStyleSheet(t,e);let i=e.foregroundColor?`${e.foregroundColor}`:"",o=e.backgroundColor?`${e.backgroundColor}`:"",n=e.borderColor?`1px solid ${e.borderColor}`:"",s=e.shadowColor?`0 2px 8px ${e.shadowColor}`:"";t.style.outline=n,t.style.borderRadius="5px",t.style.color=i,t.style.backgroundColor=o,t.style.boxShadow=s,this.viewItems&&this.viewItems.forEach(t=>{(t instanceof E||t instanceof L)&&t.style(e)})}getContainer(){return this.scrollableElement.getDomNode()}get onScroll(){return this.scrollableElement.onScroll}focusItemByElement(e){let t=this.focusedItem;this.setFocusedItem(e),t!==this.focusedItem&&this.updateFocus()}setFocusedItem(e){for(let t=0;t<this.actionsList.children.length;t++)if(e===this.actionsList.children[t]){this.focusedItem=t;break}}updateFocus(e){super.updateFocus(e,!0,!0),void 0!==this.focusedItem&&this.scrollableElement.setScrollPosition({scrollTop:Math.round(this.menuElement.scrollTop)})}doGetActionViewItem(e,t,i){if(e instanceof p.Separator)return new L(t.context,e,{icon:!0});if(e instanceof p.SubmenuAction){let o=new I(e,e.actions,i,Object.assign(Object.assign({},t),{submenuIds:new Set([...t.submenuIds||[],e.id])}));if(t.enableMnemonics){let e=o.getMnemonic();if(e&&o.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(o),this.mnemonics.set(e,t)}}return o}{let i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){let o=t.getKeyBinding(e);if(o){let e=o.getLabel();e&&(i.keybinding=e)}}let o=new E(t.context,e,i);if(t.enableMnemonics){let e=o.getMnemonic();if(e&&o.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(o),this.mnemonics.set(e,t)}}return o}}}class E extends d.BaseActionViewItem{constructor(e,t,i={}){if(i.isMenu=!0,super(t,t,i),this.options=i,this.options.icon=void 0!==i.icon&&i.icon,this.options.label=void 0===i.label||i.label,this.cssClass="",this.options.label&&i.enableMnemonics){let e=this.getAction().label;if(e){let t=S.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new f.RunOnceScheduler(()=>{this.element&&(this._register((0,a.addDisposableListener)(this.element,a.EventType.MOUSE_UP,e=>{if(a.EventHelper.stop(e,!0),s.isFirefox){if(!new c.StandardMouseEvent(e).rightButton)this.onClick(e)}else setTimeout(()=>{this.onClick(e)},0)})),this._register((0,a.addDisposableListener)(this.element,a.EventType.CONTEXT_MENU,e=>{a.EventHelper.stop(e,!0)})))},100),this._register(this.runOnceToEnableMouseUp)}render(e){super.render(e),this.element&&(this.container=e,this.item=(0,a.append)(this.element,(0,a.$)("a.action-menu-item")),this._action.id===p.Separator.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,a.append)(this.item,(0,a.$)("span.menu-item-check"+b.Codicon.menuSelection.cssSelector)),this.check.setAttribute("role","none"),this.label=(0,a.append)(this.item,(0,a.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,a.append)(this.item,(0,a.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked())}blur(){super.blur(),this.applyStyle()}focus(){super.focus(),this.item&&this.item.focus(),this.applyStyle()}updatePositionInSet(e,t){this.item&&(this.item.setAttribute("aria-posinset",`${e}`),this.item.setAttribute("aria-setsize",`${t}`))}updateLabel(){var e;if(this.label&&this.options.label){(0,a.clearNode)(this.label);let t=(0,_.stripIcons)(this.getAction().label);if(t){let i=function(e){let t=S.exec(e);if(!t)return e;let i=!t[1];return e.replace(S,i?"$2$3":"").trim()}(t);!this.options.enableMnemonics&&(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));let o=S.exec(t);if(o){t=v.escape(t),w.lastIndex=0;let i=w.exec(t);for(;i&&i[1];)i=w.exec(t);let n=e=>e.replace(/&&/g,"&");i?this.label.append(v.ltrim(n(t.substr(0,i.index))," "),(0,a.$)("u",{"aria-hidden":"true"},i[3]),v.rtrim(n(t.substr(i.index+i[0].length))," ")):this.label.innerText=n(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(o[1]?o[1]:o[3]).toLocaleLowerCase())}else this.label.innerText=t.replace(/&&/g,"&").trim()}}}updateTooltip(){}updateClass(){this.cssClass&&this.item&&this.item.classList.remove(...this.cssClass.split(" ")),this.options.icon&&this.label?(this.cssClass=this.getAction().class||"",this.label.classList.add("icon"),this.cssClass&&this.label.classList.add(...this.cssClass.split(" ")),this.updateEnabled()):this.label&&this.label.classList.remove("icon")}updateEnabled(){this.getAction().enabled?(this.element&&(this.element.classList.remove("disabled"),this.element.removeAttribute("aria-disabled")),this.item&&(this.item.classList.remove("disabled"),this.item.removeAttribute("aria-disabled"),this.item.tabIndex=0)):(this.element&&(this.element.classList.add("disabled"),this.element.setAttribute("aria-disabled","true")),this.item&&(this.item.classList.add("disabled"),this.item.setAttribute("aria-disabled","true")))}updateChecked(){if(!this.item)return;let e=this.getAction().checked;this.item.classList.toggle("checked",!!e),void 0!==e?(this.item.setAttribute("role","menuitemcheckbox"),this.item.setAttribute("aria-checked",e?"true":"false")):(this.item.setAttribute("role","menuitem"),this.item.setAttribute("aria-checked",""))}getMnemonic(){return this.mnemonic}applyStyle(){if(!this.menuStyle)return;let e=this.element&&this.element.classList.contains("focused"),t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor,i=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:void 0,o=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",n=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=t?t.toString():"",this.item.style.backgroundColor=i?i.toString():"",this.item.style.outline=o,this.item.style.outlineOffset=n),this.check&&(this.check.style.color=t?t.toString():"")}style(e){this.menuStyle=e,this.applyStyle()}}class I extends E{constructor(e,t,i,o){super(e,e,o),this.submenuActions=t,this.parentData=i,this.submenuOptions=o,this.mysubmenu=null,this.submenuDisposables=this._register(new y.DisposableStore),this.mouseOver=!1,this.expandDirection=o&&void 0!==o.expandDirection?o.expandDirection:n.Right,this.showScheduler=new f.RunOnceScheduler(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new f.RunOnceScheduler(()=>{this.element&&!(0,a.isAncestor)((0,a.getActiveElement)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){super.render(e),this.element&&(this.item&&(this.item.classList.add("monaco-submenu-item"),this.item.tabIndex=0,this.item.setAttribute("aria-haspopup","true"),this.updateAriaExpanded("false"),this.submenuIndicator=(0,a.append)(this.item,(0,a.$)("span.submenu-indicator"+b.Codicon.menuSubmenu.cssSelector)),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,a.addDisposableListener)(this.element,a.EventType.KEY_UP,e=>{let t=new l.StandardKeyboardEvent(e);(t.equals(17)||t.equals(3))&&(a.EventHelper.stop(e,!0),this.createSubmenu(!0))})),this._register((0,a.addDisposableListener)(this.element,a.EventType.KEY_DOWN,e=>{let t=new l.StandardKeyboardEvent(e);(0,a.getActiveElement)()===this.item&&(t.equals(17)||t.equals(3))&&a.EventHelper.stop(e,!0)})),this._register((0,a.addDisposableListener)(this.element,a.EventType.MOUSE_OVER,e=>{!this.mouseOver&&(this.mouseOver=!0,this.showScheduler.schedule())})),this._register((0,a.addDisposableListener)(this.element,a.EventType.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register((0,a.addDisposableListener)(this.element,a.EventType.FOCUS_OUT,e=>{this.element&&!(0,a.isAncestor)((0,a.getActiveElement)(),this.element)&&this.hideScheduler.schedule()})),this._register(this.parentData.parent.onScroll(()=>{this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))})))}updateEnabled(){}onClick(e){a.EventHelper.stop(e,!0),this.cleanupExistingSubmenu(!1),this.createSubmenu(!0)}cleanupExistingSubmenu(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){try{this.parentData.submenu.dispose()}catch(e){}this.parentData.submenu=void 0,this.updateAriaExpanded("false"),this.submenuContainer&&(this.submenuDisposables.clear(),this.submenuContainer=void 0)}}calculateSubmenuMenuLayout(e,t,i,o){let s={top:0,left:0};return s.left=(0,m.layout)(e.width,t.width,{position:o===n.Right?0:1,offset:i.left,size:i.width}),s.left>=i.left&&s.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(s.left=i.left+10),i.top+=10,i.height=0),s.top=(0,m.layout)(e.height,t.height,{position:0,offset:i.top,size:0}),s.top+t.height===i.top&&s.top+i.height+t.height<=e.height&&(s.top+=i.height),s}createSubmenu(e=!0){if(this.element){if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,a.append)(this.element,(0,a.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");let t=parseFloat(getComputedStyle(this.parentData.parent.domNode).paddingTop||"0")||0;this.submenuContainer.style.zIndex="1",this.submenuContainer.style.position="fixed",this.submenuContainer.style.top="0",this.submenuContainer.style.left="0",this.parentData.submenu=new k(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new p.EmptySubmenuAction],this.submenuOptions),this.menuStyle&&this.parentData.submenu.style(this.menuStyle);let i=this.element.getBoundingClientRect(),o={top:i.top-t,left:i.left,height:i.height+2*t,width:i.width},n=this.submenuContainer.getBoundingClientRect(),{top:s,left:r}=this.calculateSubmenuMenuLayout(new a.Dimension(window.innerWidth,window.innerHeight),a.Dimension.lift(n),o,this.expandDirection);this.submenuContainer.style.left=`${r-n.left}px`,this.submenuContainer.style.top=`${s-n.top}px`,this.submenuDisposables.add((0,a.addDisposableListener)(this.submenuContainer,a.EventType.KEY_UP,e=>{new l.StandardKeyboardEvent(e).equals(15)&&(a.EventHelper.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add((0,a.addDisposableListener)(this.submenuContainer,a.EventType.KEY_DOWN,e=>{new l.StandardKeyboardEvent(e).equals(15)&&a.EventHelper.stop(e,!0)})),this.submenuDisposables.add(this.parentData.submenu.onDidCancel(()=>{this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0)})),this.parentData.submenu.focus(e),this.mysubmenu=this.parentData.submenu}}}updateAriaExpanded(e){var t;this.item&&(null===(t=this.item)||void 0===t||t.setAttribute("aria-expanded",e))}applyStyle(){var e;if(super.applyStyle(),!this.menuStyle)return;let t=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=t?`${t}`:""),null===(e=this.parentData.submenu)||void 0===e||e.style(this.menuStyle)}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class L extends d.ActionViewItem{style(e){this.label&&(this.label.style.borderBottomColor=e.separatorColor?`${e.separatorColor}`:"")}}},547185:function(e,t,i){"use strict";i.r(t),i.d(t,{Toggle:function(){return l}});var o=i("795832"),n=i("871628"),s=i("835271"),r=i("916904");i("9450");let a={inputActiveOptionBorder:s.Color.fromHex("#007ACC00"),inputActiveOptionForeground:s.Color.fromHex("#FFFFFF"),inputActiveOptionBackground:s.Color.fromHex("#0E639C50")};class l extends o.Widget{constructor(e){super(),this._onChange=this._register(new r.Emitter),this.onChange=this._onChange.event,this._onKeyDown=this._register(new r.Emitter),this.onKeyDown=this._onKeyDown.event,this._opts=Object.assign(Object.assign({},a),e),this._checked=this._opts.isChecked;let t=["monaco-custom-toggle"];this._opts.icon&&(this._icon=this._opts.icon,t.push(...n.CSSIcon.asClassNameArray(this._icon))),this._opts.actionClassName&&t.push(...this._opts.actionClassName.split(" ")),this._checked&&t.push("checked"),this.domNode=document.createElement("div"),this.domNode.title=this._opts.title,this.domNode.classList.add(...t),!this._opts.notFocusable&&(this.domNode.tabIndex=0),this.domNode.setAttribute("role","checkbox"),this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.setAttribute("aria-label",this._opts.title),this.applyStyles(),this.onclick(this.domNode,e=>{this.enabled&&(this.checked=!this._checked,this._onChange.fire(!1),e.preventDefault())}),this.ignoreGesture(this.domNode),this.onkeydown(this.domNode,e=>{if(10===e.keyCode||3===e.keyCode){this.checked=!this._checked,this._onChange.fire(!0),e.preventDefault(),e.stopPropagation();return}this._onKeyDown.fire(e)})}get enabled(){return"true"!==this.domNode.getAttribute("aria-disabled")}focus(){this.domNode.focus()}get checked(){return this._checked}set checked(e){this._checked=e,this.domNode.setAttribute("aria-checked",String(this._checked)),this.domNode.classList.toggle("checked",this._checked),this.applyStyles()}width(){return 22}style(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder),e.inputActiveOptionForeground&&(this._opts.inputActiveOptionForeground=e.inputActiveOptionForeground),e.inputActiveOptionBackground&&(this._opts.inputActiveOptionBackground=e.inputActiveOptionBackground),this.applyStyles()}applyStyles(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"",this.domNode.style.color=this._checked&&this._opts.inputActiveOptionForeground?this._opts.inputActiveOptionForeground.toString():"inherit",this.domNode.style.backgroundColor=this._checked&&this._opts.inputActiveOptionBackground?this._opts.inputActiveOptionBackground.toString():"")}enable(){this.domNode.setAttribute("aria-disabled",String(!1))}disable(){this.domNode.setAttribute("aria-disabled",String(!0))}}},788980:function(e,t,i){"use strict";var o,n;i.r(t),i.d(t,{EVENT_KEY_CODE_MAP:function(){return c},IMMUTABLE_CODE_TO_KEY_CODE:function(){return g},KeyChord:function(){return f},KeyCodeUtils:function(){return o}});class s{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,t){this._keyCodeToStr[e]=t,this._strToKeyCode[t.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}let r=new s,a=new s,l=new s,c=Array(230),u={},d=[],h=Object.create(null),m=Object.create(null),g=[],p=[];for(let e=0;e<=193;e++)g[e]=-1;for(let e=0;e<=127;e++)p[e]=-1;function f(e,t){return(e|(65535&t)<<16>>>0)>>>0}!function(){let e=[],t=[];for(let i of[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[0,1,1,"Hyper",0,"",0,"","",""],[0,1,2,"Super",0,"",0,"","",""],[0,1,3,"Fn",0,"",0,"","",""],[0,1,4,"FnLock",0,"",0,"","",""],[0,1,5,"Suspend",0,"",0,"","",""],[0,1,6,"Resume",0,"",0,"","",""],[0,1,7,"Turbo",0,"",0,"","",""],[0,1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[0,1,9,"WakeUp",0,"",0,"","",""],[31,0,10,"KeyA",31,"A",65,"VK_A","",""],[32,0,11,"KeyB",32,"B",66,"VK_B","",""],[33,0,12,"KeyC",33,"C",67,"VK_C","",""],[34,0,13,"KeyD",34,"D",68,"VK_D","",""],[35,0,14,"KeyE",35,"E",69,"VK_E","",""],[36,0,15,"KeyF",36,"F",70,"VK_F","",""],[37,0,16,"KeyG",37,"G",71,"VK_G","",""],[38,0,17,"KeyH",38,"H",72,"VK_H","",""],[39,0,18,"KeyI",39,"I",73,"VK_I","",""],[40,0,19,"KeyJ",40,"J",74,"VK_J","",""],[41,0,20,"KeyK",41,"K",75,"VK_K","",""],[42,0,21,"KeyL",42,"L",76,"VK_L","",""],[43,0,22,"KeyM",43,"M",77,"VK_M","",""],[44,0,23,"KeyN",44,"N",78,"VK_N","",""],[45,0,24,"KeyO",45,"O",79,"VK_O","",""],[46,0,25,"KeyP",46,"P",80,"VK_P","",""],[47,0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[48,0,27,"KeyR",48,"R",82,"VK_R","",""],[49,0,28,"KeyS",49,"S",83,"VK_S","",""],[50,0,29,"KeyT",50,"T",84,"VK_T","",""],[51,0,30,"KeyU",51,"U",85,"VK_U","",""],[52,0,31,"KeyV",52,"V",86,"VK_V","",""],[53,0,32,"KeyW",53,"W",87,"VK_W","",""],[54,0,33,"KeyX",54,"X",88,"VK_X","",""],[55,0,34,"KeyY",55,"Y",89,"VK_Y","",""],[56,0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[22,0,36,"Digit1",22,"1",49,"VK_1","",""],[23,0,37,"Digit2",23,"2",50,"VK_2","",""],[24,0,38,"Digit3",24,"3",51,"VK_3","",""],[25,0,39,"Digit4",25,"4",52,"VK_4","",""],[26,0,40,"Digit5",26,"5",53,"VK_5","",""],[27,0,41,"Digit6",27,"6",54,"VK_6","",""],[28,0,42,"Digit7",28,"7",55,"VK_7","",""],[29,0,43,"Digit8",29,"8",56,"VK_8","",""],[30,0,44,"Digit9",30,"9",57,"VK_9","",""],[21,0,45,"Digit0",21,"0",48,"VK_0","",""],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[2,1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[10,1,50,"Space",10,"Space",32,"VK_SPACE","",""],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,"",0,"","",""],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[59,1,64,"F1",59,"F1",112,"VK_F1","",""],[60,1,65,"F2",60,"F2",113,"VK_F2","",""],[61,1,66,"F3",61,"F3",114,"VK_F3","",""],[62,1,67,"F4",62,"F4",115,"VK_F4","",""],[63,1,68,"F5",63,"F5",116,"VK_F5","",""],[64,1,69,"F6",64,"F6",117,"VK_F6","",""],[65,1,70,"F7",65,"F7",118,"VK_F7","",""],[66,1,71,"F8",66,"F8",119,"VK_F8","",""],[67,1,72,"F9",67,"F9",120,"VK_F9","",""],[68,1,73,"F10",68,"F10",121,"VK_F10","",""],[69,1,74,"F11",69,"F11",122,"VK_F11","",""],[70,1,75,"F12",70,"F12",123,"VK_F12","",""],[0,1,76,"PrintScreen",0,"",0,"","",""],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL","",""],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[14,1,80,"Home",14,"Home",36,"VK_HOME","",""],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[13,1,83,"End",13,"End",35,"VK_END","",""],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK","",""],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE","",""],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD","",""],[3,1,94,"NumpadEnter",3,"",0,"","",""],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1","",""],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2","",""],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3","",""],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4","",""],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5","",""],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6","",""],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7","",""],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8","",""],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9","",""],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0","",""],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL","",""],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102","",""],[58,1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[0,1,108,"Power",0,"",0,"","",""],[0,1,109,"NumpadEqual",0,"",0,"","",""],[71,1,110,"F13",71,"F13",124,"VK_F13","",""],[72,1,111,"F14",72,"F14",125,"VK_F14","",""],[73,1,112,"F15",73,"F15",126,"VK_F15","",""],[74,1,113,"F16",74,"F16",127,"VK_F16","",""],[75,1,114,"F17",75,"F17",128,"VK_F17","",""],[76,1,115,"F18",76,"F18",129,"VK_F18","",""],[77,1,116,"F19",77,"F19",130,"VK_F19","",""],[0,1,117,"F20",0,"",0,"VK_F20","",""],[0,1,118,"F21",0,"",0,"VK_F21","",""],[0,1,119,"F22",0,"",0,"VK_F22","",""],[0,1,120,"F23",0,"",0,"VK_F23","",""],[0,1,121,"F24",0,"",0,"VK_F24","",""],[0,1,122,"Open",0,"",0,"","",""],[0,1,123,"Help",0,"",0,"","",""],[0,1,124,"Select",0,"",0,"","",""],[0,1,125,"Again",0,"",0,"","",""],[0,1,126,"Undo",0,"",0,"","",""],[0,1,127,"Cut",0,"",0,"","",""],[0,1,128,"Copy",0,"",0,"","",""],[0,1,129,"Paste",0,"",0,"","",""],[0,1,130,"Find",0,"",0,"","",""],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR","",""],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1","",""],[0,1,136,"KanaMode",0,"",0,"","",""],[0,0,137,"IntlYen",0,"",0,"","",""],[0,1,138,"Convert",0,"",0,"","",""],[0,1,139,"NonConvert",0,"",0,"","",""],[0,1,140,"Lang1",0,"",0,"","",""],[0,1,141,"Lang2",0,"",0,"","",""],[0,1,142,"Lang3",0,"",0,"","",""],[0,1,143,"Lang4",0,"",0,"","",""],[0,1,144,"Lang5",0,"",0,"","",""],[0,1,145,"Abort",0,"",0,"","",""],[0,1,146,"Props",0,"",0,"","",""],[0,1,147,"NumpadParenLeft",0,"",0,"","",""],[0,1,148,"NumpadParenRight",0,"",0,"","",""],[0,1,149,"NumpadBackspace",0,"",0,"","",""],[0,1,150,"NumpadMemoryStore",0,"",0,"","",""],[0,1,151,"NumpadMemoryRecall",0,"",0,"","",""],[0,1,152,"NumpadMemoryClear",0,"",0,"","",""],[0,1,153,"NumpadMemoryAdd",0,"",0,"","",""],[0,1,154,"NumpadMemorySubtract",0,"",0,"","",""],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR","",""],[0,1,156,"NumpadClearEntry",0,"",0,"","",""],[5,1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[4,1,0,"",4,"Shift",16,"VK_SHIFT","",""],[6,1,0,"",6,"Alt",18,"VK_MENU","",""],[57,1,0,"",57,"Meta",0,"VK_COMMAND","",""],[5,1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[4,1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[6,1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[57,1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[5,1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[4,1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[6,1,163,"AltRight",6,"",0,"VK_RMENU","",""],[57,1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[0,1,165,"BrightnessUp",0,"",0,"","",""],[0,1,166,"BrightnessDown",0,"",0,"","",""],[0,1,167,"MediaPlay",0,"",0,"","",""],[0,1,168,"MediaRecord",0,"",0,"","",""],[0,1,169,"MediaFastForward",0,"",0,"","",""],[0,1,170,"MediaRewind",0,"",0,"","",""],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP","",""],[0,1,174,"Eject",0,"",0,"","",""],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[0,1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[0,1,180,"SelectTask",0,"",0,"","",""],[0,1,181,"LaunchScreenSaver",0,"",0,"","",""],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME","",""],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK","",""],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[0,1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[0,1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[0,1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[0,1,189,"ZoomToggle",0,"",0,"","",""],[0,1,190,"MailReply",0,"",0,"","",""],[0,1,191,"MailForward",0,"",0,"","",""],[0,1,192,"MailSend",0,"",0,"","",""],[109,1,0,"",109,"KeyInComposition",229,"","",""],[111,1,0,"",111,"ABNT_C2",194,"VK_ABNT_C2","",""],[91,1,0,"",91,"OEM_8",223,"VK_OEM_8","",""],[0,1,0,"",0,"",0,"VK_KANA","",""],[0,1,0,"",0,"",0,"VK_HANGUL","",""],[0,1,0,"",0,"",0,"VK_JUNJA","",""],[0,1,0,"",0,"",0,"VK_FINAL","",""],[0,1,0,"",0,"",0,"VK_HANJA","",""],[0,1,0,"",0,"",0,"VK_KANJI","",""],[0,1,0,"",0,"",0,"VK_CONVERT","",""],[0,1,0,"",0,"",0,"VK_NONCONVERT","",""],[0,1,0,"",0,"",0,"VK_ACCEPT","",""],[0,1,0,"",0,"",0,"VK_MODECHANGE","",""],[0,1,0,"",0,"",0,"VK_SELECT","",""],[0,1,0,"",0,"",0,"VK_PRINT","",""],[0,1,0,"",0,"",0,"VK_EXECUTE","",""],[0,1,0,"",0,"",0,"VK_SNAPSHOT","",""],[0,1,0,"",0,"",0,"VK_HELP","",""],[0,1,0,"",0,"",0,"VK_APPS","",""],[0,1,0,"",0,"",0,"VK_PROCESSKEY","",""],[0,1,0,"",0,"",0,"VK_PACKET","",""],[0,1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[0,1,0,"",0,"",0,"VK_ATTN","",""],[0,1,0,"",0,"",0,"VK_CRSEL","",""],[0,1,0,"",0,"",0,"VK_EXSEL","",""],[0,1,0,"",0,"",0,"VK_EREOF","",""],[0,1,0,"",0,"",0,"VK_PLAY","",""],[0,1,0,"",0,"",0,"VK_ZOOM","",""],[0,1,0,"",0,"",0,"VK_NONAME","",""],[0,1,0,"",0,"",0,"VK_PA1","",""],[0,1,0,"",0,"",0,"VK_OEM_CLEAR","",""]]){let[o,n,s,f,b,_,y,C,v,S]=i;if(!t[s]&&(t[s]=!0,d[s]=f,h[f]=s,m[f.toLowerCase()]=s,n&&(g[s]=b,0!==b&&3!==b&&5!==b&&4!==b&&6!==b&&57!==b&&(p[b]=s))),!e[b]){if(e[b]=!0,!_)throw Error(`String representation missing for key code ${b} around scan code ${f}`);r.define(b,_),a.define(b,v||_),l.define(b,S||v||_)}y&&(c[y]=b),C&&(u[C]=b)}p[3]=46}(),(n=o||(o={})).toString=function(e){return r.keyCodeToStr(e)},n.fromString=function(e){return r.strToKeyCode(e)},n.toUserSettingsUS=function(e){return a.keyCodeToStr(e)},n.toUserSettingsGeneral=function(e){return l.keyCodeToStr(e)},n.fromUserSettings=function(e){return a.strToKeyCode(e)||l.strToKeyCode(e)},n.toElectronAccelerator=function(e){if(e>=93&&e<=108)return null;switch(e){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return r.keyCodeToStr(e)}},210109:function(e,t,i){"use strict";i.r(t),i.d(t,{ChordKeybinding:function(){return a},ResolvedKeybinding:function(){return c},ResolvedKeybindingPart:function(){return l},SimpleKeybinding:function(){return r},createKeybinding:function(){return n}});var o=i("161111");function n(e,t){if(0===e)return null;let i=(65535&e)>>>0,o=(4294901760&e)>>>16;return 0!==o?new a([s(i,t),s(o,t)]):new a([s(i,t)])}function s(e,t){let i=!!(2048&e),o=!!(256&e),n=2===t?o:i,s=2===t?i:o;return new r(n,!!(1024&e),!!(512&e),s,255&e)}class r{constructor(e,t,i,o,n){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=o,this.keyCode=n}equals(e){return this.ctrlKey===e.ctrlKey&&this.shiftKey===e.shiftKey&&this.altKey===e.altKey&&this.metaKey===e.metaKey&&this.keyCode===e.keyCode}isModifierKey(){return 0===this.keyCode||5===this.keyCode||57===this.keyCode||6===this.keyCode||4===this.keyCode}toChord(){return new a([this])}isDuplicateModifierCase(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode}}class a{constructor(e){if(0===e.length)throw(0,o.illegalArgument)("parts");this.parts=e}}class l{constructor(e,t,i,o,n,s){this.ctrlKey=e,this.shiftKey=t,this.altKey=i,this.metaKey=o,this.keyLabel=n,this.keyAriaLabel=s}}class c{}},135262:function(e,t,i){"use strict";i.r(t),i.d(t,{normalizeDriveLetter:function(){return s}});var o=i("122000"),n=i("207875");function s(e,t=n.isWindows){return(0,o.hasDriveLetter)(e,t)?e.charAt(0).toUpperCase()+e.slice(1):e}Object.create(null)},405019:function(e,t,i){"use strict";i.r(t),i.d(t,{generateUuid:function(){return o}});let o=function(){let e;if("object"==typeof crypto&&"function"==typeof crypto.randomUUID)return crypto.randomUUID.bind(crypto);e="object"==typeof crypto&&"function"==typeof crypto.getRandomValues?crypto.getRandomValues.bind(crypto):function(e){for(let t=0;t<e.length;t++)e[t]=Math.floor(256*Math.random());return e};let t=new Uint8Array(16),i=[];for(let e=0;e<256;e++)i.push(e.toString(16).padStart(2,"0"));return function(){e(t),t[6]=15&t[6]|64,t[8]=63&t[8]|128;let o=0,n="";return n+=i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+"-"+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]+i[t[o++]]}}()},293017:function(e,t,i){"use strict";i.r(t),i.d(t,{QuickInputController:function(){return D}});var o=i("409737"),n=i("85763"),s=i("362880"),r=i("942072"),a=i("47975"),l=i("572740"),c=i("413876"),u=i("431453"),d=i("603868"),h=i("467518"),m=i("500862"),g=i("871628"),p=i("916904"),f=i("919527"),b=i("207875"),_=i("596608"),y=i("744138"),C=i("686329"),v=i("843130");i("664014");var S=i("708339"),w=i("515015"),k=i("963368"),E=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let I=o.$,L={iconClass:g.Codicon.quickInputBack.classNames,tooltip:(0,S.localize)("quickInput.back","Back"),handle:-1};class x extends f.Disposable{constructor(e){super(),this.ui=e,this.visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!1,this._buttons=[],this.noValidationMessage=x.noPromptMessage,this._severity=_.default.Ignore,this.buttonsUpdated=!1,this.onDidTriggerButtonEmitter=this._register(new p.Emitter),this.onDidHideEmitter=this._register(new p.Emitter),this.onDisposeEmitter=this._register(new p.Emitter),this.visibleDisposables=this._register(new f.DisposableStore),this.onDidHide=this.onDidHideEmitter.event}get title(){return this._title}set title(e){this._title=e,this.update()}get description(){return this._description}set description(e){this._description=e,this.update()}get step(){return this._steps}set step(e){this._steps=e,this.update()}get totalSteps(){return this._totalSteps}set totalSteps(e){this._totalSteps=e,this.update()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.update()}get contextKey(){return this._contextKey}set contextKey(e){this._contextKey=e,this.update()}get busy(){return this._busy}set busy(e){this._busy=e,this.update()}get ignoreFocusOut(){return this._ignoreFocusOut}set ignoreFocusOut(e){let t=this._ignoreFocusOut!==e&&!b.isIOS;this._ignoreFocusOut=e&&!b.isIOS,t&&this.update()}get buttons(){return this._buttons}set buttons(e){this._buttons=e,this.buttonsUpdated=!0,this.update()}get validationMessage(){return this._validationMessage}set validationMessage(e){this._validationMessage=e,this.update()}get severity(){return this._severity}set severity(e){this._severity=e,this.update()}show(){!this.visible&&(this.visibleDisposables.add(this.ui.onDidTriggerButton(e=>{-1!==this.buttons.indexOf(e)&&this.onDidTriggerButtonEmitter.fire(e)})),this.ui.show(this),this.visible=!0,this._lastValidationMessage=void 0,this._lastSeverity=void 0,this.buttons.length&&(this.buttonsUpdated=!0),this.update())}hide(){this.visible&&this.ui.hide()}didHide(e=v.QuickInputHideReason.Other){this.visible=!1,this.visibleDisposables.clear(),this.onDidHideEmitter.fire({reason:e})}update(){if(!this.visible)return;let e=this.getTitle();e&&this.ui.title.textContent!==e?this.ui.title.textContent=e:!e&&" "!==this.ui.title.innerHTML&&(this.ui.title.innerText="\xa0");let t=this.getDescription();if(this.ui.description1.textContent!==t&&(this.ui.description1.textContent=t),this.ui.description2.textContent!==t&&(this.ui.description2.textContent=t),this.busy&&!this.busyDelay&&(this.busyDelay=new h.TimeoutTimer,this.busyDelay.setIfNotSet(()=>{this.visible&&this.ui.progressBar.infinite()},800)),!this.busy&&this.busyDelay&&(this.ui.progressBar.stop(),this.busyDelay.cancel(),this.busyDelay=void 0),this.buttonsUpdated){this.buttonsUpdated=!1,this.ui.leftActionBar.clear();let e=this.buttons.filter(e=>e===L);this.ui.leftActionBar.push(e.map((e,t)=>{let i=new u.Action(`id-${t}`,"",e.iconClass||(0,C.getIconClass)(e.iconPath),!0,()=>E(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1}),this.ui.rightActionBar.clear();let t=this.buttons.filter(e=>e!==L);this.ui.rightActionBar.push(t.map((e,t)=>{let i=new u.Action(`id-${t}`,"",e.iconClass||(0,C.getIconClass)(e.iconPath),!0,()=>E(this,void 0,void 0,function*(){this.onDidTriggerButtonEmitter.fire(e)}));return i.tooltip=e.tooltip||"",i}),{icon:!0,label:!1})}this.ui.ignoreFocusOut=this.ignoreFocusOut,this.ui.setEnabled(this.enabled),this.ui.setContextKey(this.contextKey);let i=this.validationMessage||this.noValidationMessage;this._lastValidationMessage!==i&&(this._lastValidationMessage=i,o.reset(this.ui.message,...(0,l.renderLabelWithIcons)(i))),this._lastSeverity!==this.severity&&(this._lastSeverity=this.severity,this.showMessageDecoration(this.severity))}getTitle(){return this.title&&this.step?`${this.title} (${this.getSteps()})`:this.title?this.title:this.step?this.getSteps():""}getDescription(){return this.description||""}getSteps(){return this.step&&this.totalSteps?(0,S.localize)("quickInput.steps","{0}/{1}",this.step,this.totalSteps):this.step?String(this.step):""}showMessageDecoration(e){if(this.ui.inputBox.showDecoration(e),e!==_.default.Ignore){let t=this.ui.inputBox.stylesForType(e);this.ui.message.style.color=t.foreground?`${t.foreground}`:"",this.ui.message.style.backgroundColor=t.background?`${t.background}`:"",this.ui.message.style.border=t.border?`1px solid ${t.border}`:"",this.ui.message.style.marginBottom="-2px"}else this.ui.message.style.color="",this.ui.message.style.backgroundColor="",this.ui.message.style.border="",this.ui.message.style.marginBottom=""}dispose(){this.hide(),this.onDisposeEmitter.fire(),super.dispose()}}x.noPromptMessage=(0,S.localize)("inputModeEntry","Press 'Enter' to confirm your input or 'Escape' to cancel");class T extends x{constructor(){super(...arguments),this._value="",this.onDidChangeValueEmitter=this._register(new p.Emitter),this.onWillAcceptEmitter=this._register(new p.Emitter),this.onDidAcceptEmitter=this._register(new p.Emitter),this.onDidCustomEmitter=this._register(new p.Emitter),this._items=[],this.itemsUpdated=!1,this._canSelectMany=!1,this._canAcceptInBackground=!1,this._matchOnDescription=!1,this._matchOnDetail=!1,this._matchOnLabel=!0,this._matchOnLabelMode="fuzzy",this._sortByLabel=!0,this._autoFocusOnList=!0,this._keepScrollPosition=!1,this._itemActivation=this.ui.isScreenReaderOptimized()?v.ItemActivation.NONE:v.ItemActivation.FIRST,this._activeItems=[],this.activeItemsUpdated=!1,this.activeItemsToConfirm=[],this.onDidChangeActiveEmitter=this._register(new p.Emitter),this._selectedItems=[],this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=[],this.onDidChangeSelectionEmitter=this._register(new p.Emitter),this.onDidTriggerItemButtonEmitter=this._register(new p.Emitter),this.valueSelectionUpdated=!0,this._ok="default",this._customButton=!1,this.filterValue=e=>e,this.onDidChangeValue=this.onDidChangeValueEmitter.event,this.onWillAccept=this.onWillAcceptEmitter.event,this.onDidAccept=this.onDidAcceptEmitter.event,this.onDidChangeActive=this.onDidChangeActiveEmitter.event,this.onDidChangeSelection=this.onDidChangeSelectionEmitter.event,this.onDidTriggerItemButton=this.onDidTriggerItemButtonEmitter.event}get quickNavigate(){return this._quickNavigate}set quickNavigate(e){this._quickNavigate=e,this.update()}get value(){return this._value}set value(e){this.doSetValue(e)}doSetValue(e,t){this._value!==e&&(this._value=e,!t&&this.update(),this.visible&&this.ui.list.filter(this.filterValue(this._value))&&this.trySelectFirst(),this.onDidChangeValueEmitter.fire(this._value))}set ariaLabel(e){this._ariaLabel=e,this.update()}get ariaLabel(){return this._ariaLabel}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.update()}get items(){return this._items}get scrollTop(){return this.ui.list.scrollTop}set scrollTop(e){this.ui.list.scrollTop=e}set items(e){this._items=e,this.itemsUpdated=!0,this.update()}get canSelectMany(){return this._canSelectMany}set canSelectMany(e){this._canSelectMany=e,this.update()}get canAcceptInBackground(){return this._canAcceptInBackground}set canAcceptInBackground(e){this._canAcceptInBackground=e}get matchOnDescription(){return this._matchOnDescription}set matchOnDescription(e){this._matchOnDescription=e,this.update()}get matchOnDetail(){return this._matchOnDetail}set matchOnDetail(e){this._matchOnDetail=e,this.update()}get matchOnLabel(){return this._matchOnLabel}set matchOnLabel(e){this._matchOnLabel=e,this.update()}get matchOnLabelMode(){return this._matchOnLabelMode}set matchOnLabelMode(e){this._matchOnLabelMode=e,this.update()}get sortByLabel(){return this._sortByLabel}set sortByLabel(e){this._sortByLabel=e,this.update()}get autoFocusOnList(){return this._autoFocusOnList}set autoFocusOnList(e){this._autoFocusOnList=e,this.update()}get keepScrollPosition(){return this._keepScrollPosition}set keepScrollPosition(e){this._keepScrollPosition=e}get itemActivation(){return this._itemActivation}set itemActivation(e){this._itemActivation=e}get activeItems(){return this._activeItems}set activeItems(e){this._activeItems=e,this.activeItemsUpdated=!0,this.update()}get selectedItems(){return this._selectedItems}set selectedItems(e){this._selectedItems=e,this.selectedItemsUpdated=!0,this.update()}get keyMods(){return this._quickNavigate?v.NO_KEY_MODS:this.ui.keyMods}set valueSelection(e){this._valueSelection=e,this.valueSelectionUpdated=!0,this.update()}get customButton(){return this._customButton}set customButton(e){this._customButton=e,this.update()}get customLabel(){return this._customButtonLabel}set customLabel(e){this._customButtonLabel=e,this.update()}get customHover(){return this._customButtonHover}set customHover(e){this._customButtonHover=e,this.update()}get ok(){return this._ok}set ok(e){this._ok=e,this.update()}get hideInput(){return!!this._hideInput}set hideInput(e){this._hideInput=e,this.update()}trySelectFirst(){this.autoFocusOnList&&!this.canSelectMany&&this.ui.list.focus(k.QuickInputListFocus.First)}show(){!this.visible&&(this.visibleDisposables.add(this.ui.inputBox.onDidChange(e=>{this.doSetValue(e,!0)})),this.visibleDisposables.add(this.ui.inputBox.onMouseDown(e=>{!this.autoFocusOnList&&this.ui.list.clearFocus()})),this.visibleDisposables.add((this._hideInput?this.ui.list:this.ui.inputBox).onKeyDown(e=>{switch(e.keyCode){case 18:this.ui.list.focus(k.QuickInputListFocus.Next),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 16:this.ui.list.getFocusedElements().length?this.ui.list.focus(k.QuickInputListFocus.Previous):this.ui.list.focus(k.QuickInputListFocus.Last),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 12:this.ui.list.focus(k.QuickInputListFocus.NextPage),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 11:this.ui.list.focus(k.QuickInputListFocus.PreviousPage),this.canSelectMany&&this.ui.list.domFocus(),o.EventHelper.stop(e,!0);break;case 17:if(!this._canAcceptInBackground||!this.ui.inputBox.isSelectionAtEnd())return;this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!0));break;case 14:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(k.QuickInputListFocus.First),o.EventHelper.stop(e,!0));break;case 13:(e.ctrlKey||e.metaKey)&&!e.shiftKey&&!e.altKey&&(this.ui.list.focus(k.QuickInputListFocus.Last),o.EventHelper.stop(e,!0))}})),this.visibleDisposables.add(this.ui.onDidAccept(()=>{this.canSelectMany?!this.ui.list.getCheckedElements().length&&(this._selectedItems=[],this.onDidChangeSelectionEmitter.fire(this.selectedItems)):this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems)),this.handleAccept(!1)})),this.visibleDisposables.add(this.ui.onDidCustom(()=>{this.onDidCustomEmitter.fire()})),this.visibleDisposables.add(this.ui.list.onDidChangeFocus(e=>{if(!this.activeItemsUpdated)!(this.activeItemsToConfirm!==this._activeItems&&(0,d.equals)(e,this._activeItems,(e,t)=>e===t))&&(this._activeItems=e,this.onDidChangeActiveEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onDidChangeSelection(({items:e,event:t})=>{if(this.canSelectMany){e.length&&this.ui.list.setSelectedElements([]);return}!(this.selectedItemsToConfirm!==this._selectedItems&&(0,d.equals)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e),e.length&&this.handleAccept(t instanceof MouseEvent&&1===t.button))})),this.visibleDisposables.add(this.ui.list.onChangedCheckedElements(e=>{if(!!this.canSelectMany)!(this.selectedItemsToConfirm!==this._selectedItems&&(0,d.equals)(e,this._selectedItems,(e,t)=>e===t))&&(this._selectedItems=e,this.onDidChangeSelectionEmitter.fire(e))})),this.visibleDisposables.add(this.ui.list.onButtonTriggered(e=>this.onDidTriggerItemButtonEmitter.fire(e))),this.visibleDisposables.add(this.registerQuickNavigation()),this.valueSelectionUpdated=!0),super.show()}handleAccept(e){let t=!1;this.onWillAcceptEmitter.fire({veto:()=>t=!0}),!t&&this.onDidAcceptEmitter.fire({inBackground:e})}registerQuickNavigation(){return o.addDisposableListener(this.ui.container,o.EventType.KEY_UP,e=>{if(this.canSelectMany||!this._quickNavigate)return;let t=new n.StandardKeyboardEvent(e),i=t.keyCode;this._quickNavigate.keybindings.some(e=>{let[o,n]=e.getParts();if(n)return!1;if(o.shiftKey&&4===i)return!t.ctrlKey&&!t.altKey&&!t.metaKey&&!0;return!!o.altKey&&6===i||!!o.ctrlKey&&5===i||!!o.metaKey&&57===i||!1})&&(this.activeItems[0]&&(this._selectedItems=[this.activeItems[0]],this.onDidChangeSelectionEmitter.fire(this.selectedItems),this.handleAccept(!1)),this._quickNavigate=void 0)})}update(){if(!this.visible)return;let e=this.keepScrollPosition?this.scrollTop:0,t=!!this._hideInput&&this._items.length>0;this.ui.container.classList.toggle("hidden-input",t&&!this.description);let i={title:!!this.title||!!this.step||!!this.buttons.length,description:!!this.description,checkAll:this.canSelectMany&&!this._hideCheckAll,checkBox:this.canSelectMany,inputBox:!t,progressBar:!t,visibleCount:!0,count:this.canSelectMany,ok:"default"===this.ok?this.canSelectMany:this.ok,list:!0,message:!!this.validationMessage,customButton:this.customButton};this.ui.setVisibilities(i),super.update(),this.ui.inputBox.value!==this.value&&(this.ui.inputBox.value=this.value),this.valueSelectionUpdated&&(this.valueSelectionUpdated=!1,this.ui.inputBox.select(this._valueSelection&&{start:this._valueSelection[0],end:this._valueSelection[1]})),this.ui.inputBox.placeholder!==(this.placeholder||"")&&(this.ui.inputBox.placeholder=this.placeholder||"");let o=this.ariaLabel;if(!o&&(o=this.placeholder||T.DEFAULT_ARIA_LABEL,this.title&&(o+=` - ${this.title}`)),this.ui.inputBox.ariaLabel!==o&&(this.ui.inputBox.ariaLabel=o),this.ui.list.matchOnDescription=this.matchOnDescription,this.ui.list.matchOnDetail=this.matchOnDetail,this.ui.list.matchOnLabel=this.matchOnLabel,this.ui.list.matchOnLabelMode=this.matchOnLabelMode,this.ui.list.sortByLabel=this.sortByLabel,this.itemsUpdated)switch(this.itemsUpdated=!1,this.ui.list.setElements(this.items),this.ui.list.filter(this.filterValue(this.ui.inputBox.value)),this.ui.checkAll.checked=this.ui.list.getAllVisibleChecked(),this.ui.visibleCount.setCount(this.ui.list.getVisibleCount()),this.ui.count.setCount(this.ui.list.getCheckedCount()),this._itemActivation){case v.ItemActivation.NONE:this._itemActivation=v.ItemActivation.FIRST;break;case v.ItemActivation.SECOND:this.ui.list.focus(k.QuickInputListFocus.Second),this._itemActivation=v.ItemActivation.FIRST;break;case v.ItemActivation.LAST:this.ui.list.focus(k.QuickInputListFocus.Last),this._itemActivation=v.ItemActivation.FIRST;break;default:this.trySelectFirst()}this.ui.container.classList.contains("show-checkboxes")!==!!this.canSelectMany&&(this.canSelectMany?this.ui.list.clearFocus():this.trySelectFirst()),this.activeItemsUpdated&&(this.activeItemsUpdated=!1,this.activeItemsToConfirm=this._activeItems,this.ui.list.setFocusedElements(this.activeItems),this.activeItemsToConfirm===this._activeItems&&(this.activeItemsToConfirm=null)),this.selectedItemsUpdated&&(this.selectedItemsUpdated=!1,this.selectedItemsToConfirm=this._selectedItems,this.canSelectMany?this.ui.list.setCheckedElements(this.selectedItems):this.ui.list.setSelectedElements(this.selectedItems),this.selectedItemsToConfirm===this._selectedItems&&(this.selectedItemsToConfirm=null)),this.ui.customButton.label=this.customLabel||"",this.ui.customButton.element.title=this.customHover||"",this.ui.setComboboxAccessibility(!0),!i.inputBox&&(this.ui.list.domFocus(),this.canSelectMany&&this.ui.list.focus(k.QuickInputListFocus.First)),this.keepScrollPosition&&(this.scrollTop=e)}}T.DEFAULT_ARIA_LABEL=(0,S.localize)("quickInputBox.ariaLabel","Type to narrow down results.");class D extends f.Disposable{constructor(e){super(),this.options=e,this.comboboxAccessibility=!1,this.enabled=!0,this.onDidAcceptEmitter=this._register(new p.Emitter),this.onDidCustomEmitter=this._register(new p.Emitter),this.onDidTriggerButtonEmitter=this._register(new p.Emitter),this.keyMods={ctrlCmd:!1,alt:!1},this.controller=null,this.onShowEmitter=this._register(new p.Emitter),this.onShow=this.onShowEmitter.event,this.onHideEmitter=this._register(new p.Emitter),this.onHide=this.onHideEmitter.event,this.idPrefix=e.idPrefix,this.parentElement=e.container,this.styles=e.styles,this.registerKeyModsListeners()}registerKeyModsListeners(){let e=e=>{this.keyMods.ctrlCmd=e.ctrlKey||e.metaKey,this.keyMods.alt=e.altKey};this._register(o.addDisposableListener(window,o.EventType.KEY_DOWN,e,!0)),this._register(o.addDisposableListener(window,o.EventType.KEY_UP,e,!0)),this._register(o.addDisposableListener(window,o.EventType.MOUSE_DOWN,e,!0))}getUI(){if(this.ui)return this.ui;let e=o.append(this.parentElement,I(".quick-input-widget.show-file-icons"));e.tabIndex=-1,e.style.display="none";let t=o.createStyleSheet(e),i=o.append(e,I(".quick-input-titlebar")),l=this._register(new s.ActionBar(i));l.domNode.classList.add("quick-input-left-action-bar");let u=o.append(i,I(".quick-input-title")),d=this._register(new s.ActionBar(i));d.domNode.classList.add("quick-input-right-action-bar");let h=o.append(e,I(".quick-input-description")),m=o.append(e,I(".quick-input-header")),g=o.append(m,I("input.quick-input-check-all"));g.type="checkbox",g.setAttribute("aria-label",(0,S.localize)("quickInput.checkAll","Toggle all checkboxes")),this._register(o.addStandardDisposableListener(g,o.EventType.CHANGE,e=>{let t=g.checked;O.setAllVisibleChecked(t)})),this._register(o.addDisposableListener(g,o.EventType.CLICK,e=>{(e.x||e.y)&&_.setFocus()}));let p=o.append(m,I(".quick-input-description")),f=o.append(m,I(".quick-input-and-message")),b=o.append(f,I(".quick-input-filter")),_=this._register(new w.QuickInputBox(b));_.setAttribute("aria-describedby",`${this.idPrefix}message`);let y=o.append(b,I(".quick-input-visible-count"));y.setAttribute("aria-live","polite"),y.setAttribute("aria-atomic","true");let C=new a.CountBadge(y,{countFormat:(0,S.localize)({key:"quickInput.visibleCount",comment:["This tells the user how many items are shown in a list of items to select from. The items can be anything. Currently not visible, but read by screen readers."]},"{0} Results")}),E=o.append(b,I(".quick-input-count"));E.setAttribute("aria-live","polite");let L=new a.CountBadge(E,{countFormat:(0,S.localize)({key:"quickInput.countSelected",comment:["This tells the user how many items are selected in a list of items to select from. The items can be anything."]},"{0} Selected")}),x=o.append(m,I(".quick-input-action")),D=new r.Button(x);D.label=(0,S.localize)("ok","OK"),this._register(D.onDidClick(e=>{this.onDidAcceptEmitter.fire()}));let N=o.append(m,I(".quick-input-action")),A=new r.Button(N);A.label=(0,S.localize)("custom","Custom"),this._register(A.onDidClick(e=>{this.onDidCustomEmitter.fire()}));let M=o.append(f,I(`#${this.idPrefix}message.quick-input-message`)),O=this._register(new k.QuickInputList(e,this.idPrefix+"list",this.options));this._register(O.onChangedAllVisibleChecked(e=>{g.checked=e})),this._register(O.onChangedVisibleCount(e=>{C.setCount(e)})),this._register(O.onChangedCheckedCount(e=>{L.setCount(e)})),this._register(O.onLeave(()=>{setTimeout(()=>{_.setFocus(),this.controller instanceof T&&this.controller.canSelectMany&&O.clearFocus()},0)})),this._register(O.onDidChangeFocus(()=>{this.comboboxAccessibility&&this.getUI().inputBox.setAttribute("aria-activedescendant",this.getUI().list.getActiveDescendant()||"")}));let R=new c.ProgressBar(e);R.getContainer().classList.add("quick-input-progress");let P=o.trackFocus(e);return this._register(P),this._register(o.addDisposableListener(e,o.EventType.FOCUS,e=>{this.previousFocusElement=e.relatedTarget instanceof HTMLElement?e.relatedTarget:void 0},!0)),this._register(P.onDidBlur(()=>{!this.getUI().ignoreFocusOut&&!this.options.ignoreFocusOut()&&this.hide(v.QuickInputHideReason.Blur),this.previousFocusElement=void 0})),this._register(o.addDisposableListener(e,o.EventType.FOCUS,e=>{_.setFocus()})),this._register(o.addDisposableListener(e,o.EventType.KEY_DOWN,t=>{let i=new n.StandardKeyboardEvent(t);switch(i.keyCode){case 3:o.EventHelper.stop(t,!0),this.onDidAcceptEmitter.fire();break;case 9:o.EventHelper.stop(t,!0),this.hide(v.QuickInputHideReason.Gesture);break;case 2:if(!i.altKey&&!i.ctrlKey&&!i.metaKey){let n=[".action-label.codicon"];e.classList.contains("show-checkboxes")?n.push("input"):n.push("input[type=text]"),this.getUI().list.isDisplayed()&&n.push(".monaco-list");let s=e.querySelectorAll(n.join(", "));i.shiftKey&&i.target===s[0]?(o.EventHelper.stop(t,!0),s[s.length-1].focus()):!i.shiftKey&&i.target===s[s.length-1]&&(o.EventHelper.stop(t,!0),s[0].focus())}}})),this.ui={container:e,styleSheet:t,leftActionBar:l,titleBar:i,title:u,description1:h,description2:p,rightActionBar:d,checkAll:g,filterContainer:b,inputBox:_,visibleCountContainer:y,visibleCount:C,countContainer:E,count:L,okContainer:x,ok:D,message:M,customButtonContainer:N,customButton:A,list:O,progressBar:R,onDidAccept:this.onDidAcceptEmitter.event,onDidCustom:this.onDidCustomEmitter.event,onDidTriggerButton:this.onDidTriggerButtonEmitter.event,ignoreFocusOut:!1,keyMods:this.keyMods,isScreenReaderOptimized:()=>this.options.isScreenReaderOptimized(),show:e=>this.show(e),hide:()=>this.hide(),setVisibilities:e=>this.setVisibilities(e),setComboboxAccessibility:e=>this.setComboboxAccessibility(e),setEnabled:e=>this.setEnabled(e),setContextKey:e=>this.options.setContextKey(e)},this.updateStyles(),this.ui}pick(e,t={},i=m.CancellationToken.None){return new Promise((o,n)=>{let s,r=e=>{var i;r=o,null===(i=t.onKeyMods)||void 0===i||i.call(t,a.keyMods),o(e)};if(i.isCancellationRequested){r(void 0);return}let a=this.createQuickPick(),l=[a,a.onDidAccept(()=>{if(a.canSelectMany)r(a.selectedItems.slice()),a.hide();else{let e=a.activeItems[0];e&&(r(e),a.hide())}}),a.onDidChangeActive(e=>{let i=e[0];i&&t.onDidFocus&&t.onDidFocus(i)}),a.onDidChangeSelection(e=>{if(!a.canSelectMany){let t=e[0];t&&(r(t),a.hide())}}),a.onDidTriggerItemButton(e=>t.onDidTriggerItemButton&&t.onDidTriggerItemButton(Object.assign(Object.assign({},e),{removeItem:()=>{let t=a.items.indexOf(e.item);if(-1!==t){let e=a.items.slice(),i=e.splice(t,1),o=a.activeItems.filter(e=>e!==i[0]),n=a.keepScrollPosition;a.keepScrollPosition=!0,a.items=e,o&&(a.activeItems=o),a.keepScrollPosition=n}}}))),a.onDidChangeValue(e=>{s&&!e&&(1!==a.activeItems.length||a.activeItems[0]!==s)&&(a.activeItems=[s])}),i.onCancellationRequested(()=>{a.hide()}),a.onDidHide(()=>{(0,f.dispose)(l),r(void 0)})];a.title=t.title,a.canSelectMany=!!t.canPickMany,a.placeholder=t.placeHolder,a.ignoreFocusOut=!!t.ignoreFocusLost,a.matchOnDescription=!!t.matchOnDescription,a.matchOnDetail=!!t.matchOnDetail,a.matchOnLabel=void 0===t.matchOnLabel||t.matchOnLabel,a.autoFocusOnList=void 0===t.autoFocusOnList||t.autoFocusOnList,a.quickNavigate=t.quickNavigate,a.hideInput=!!t.hideInput,a.contextKey=t.contextKey,a.busy=!0,Promise.all([e,t.activeItem]).then(([e,t])=>{s=t,a.busy=!1,a.items=e,a.canSelectMany&&(a.selectedItems=e.filter(e=>"separator"!==e.type&&e.picked)),s&&(a.activeItems=[s])}),a.show(),Promise.resolve(e).then(void 0,e=>{n(e),a.hide()})})}createQuickPick(){return new T(this.getUI())}show(e){let t=this.getUI();this.onShowEmitter.fire();let i=this.controller;this.controller=e,i&&i.didHide(),this.setEnabled(!0),t.leftActionBar.clear(),t.title.textContent="",t.description1.textContent="",t.description2.textContent="",t.rightActionBar.clear(),t.checkAll.checked=!1,t.inputBox.placeholder="",t.inputBox.password=!1,t.inputBox.showDecoration(_.default.Ignore),t.visibleCount.setCount(0),t.count.setCount(0),o.reset(t.message),t.progressBar.stop(),t.list.setElements([]),t.list.matchOnDescription=!1,t.list.matchOnDetail=!1,t.list.matchOnLabel=!0,t.list.sortByLabel=!0,t.ignoreFocusOut=!1,this.setComboboxAccessibility(!1),t.inputBox.ariaLabel="";let n=this.options.backKeybindingLabel();L.tooltip=n?(0,S.localize)("quickInput.backWithKeybinding","Back ({0})",n):(0,S.localize)("quickInput.back","Back"),t.container.style.display="",this.updateLayout(),t.inputBox.setFocus()}setVisibilities(e){let t=this.getUI();t.title.style.display=e.title?"":"none",t.description1.style.display=e.description&&(e.inputBox||e.checkAll)?"":"none",t.description2.style.display=e.description&&!(e.inputBox||e.checkAll)?"":"none",t.checkAll.style.display=e.checkAll?"":"none",t.filterContainer.style.display=e.inputBox?"":"none",t.visibleCountContainer.style.display=e.visibleCount?"":"none",t.countContainer.style.display=e.count?"":"none",t.okContainer.style.display=e.ok?"":"none",t.customButtonContainer.style.display=e.customButton?"":"none",t.message.style.display=e.message?"":"none",t.progressBar.getContainer().style.display=e.progressBar?"":"none",t.list.display(!!e.list),t.container.classList[e.checkBox?"add":"remove"]("show-checkboxes"),this.updateLayout()}setComboboxAccessibility(e){if(e!==this.comboboxAccessibility){let t=this.getUI();this.comboboxAccessibility=e,this.comboboxAccessibility?(t.inputBox.setAttribute("role","combobox"),t.inputBox.setAttribute("aria-haspopup","true"),t.inputBox.setAttribute("aria-autocomplete","list"),t.inputBox.setAttribute("aria-activedescendant",t.list.getActiveDescendant()||"")):(t.inputBox.removeAttribute("role"),t.inputBox.removeAttribute("aria-haspopup"),t.inputBox.removeAttribute("aria-autocomplete"),t.inputBox.removeAttribute("aria-activedescendant"))}}setEnabled(e){if(e!==this.enabled){for(let t of(this.enabled=e,this.getUI().leftActionBar.viewItems))t.getAction().enabled=e;for(let t of this.getUI().rightActionBar.viewItems)t.getAction().enabled=e;this.getUI().checkAll.disabled=!e,this.getUI().ok.enabled=e,this.getUI().list.enabled=e}}hide(e){var t;let i=this.controller;if(i){let o=!(null===(t=this.ui)||void 0===t?void 0:t.container.contains(document.activeElement));if(this.controller=null,this.onHideEmitter.fire(),this.getUI().container.style.display="none",!o){let e=this.previousFocusElement;for(;e&&!e.offsetParent;)e=(0,y.withNullAsUndefined)(e.parentElement);(null==e?void 0:e.offsetParent)?(e.focus(),this.previousFocusElement=void 0):this.options.returnFocus()}i.didHide(e)}}layout(e,t){this.dimension=e,this.titleBarOffset=t,this.updateLayout()}updateLayout(){if(this.ui){this.ui.container.style.top=`${this.titleBarOffset}px`;let e=this.ui.container.style,t=Math.min(.62*this.dimension.width,D.MAX_WIDTH);e.width=t+"px",e.marginLeft="-"+t/2+"px",this.ui.inputBox.layout(),this.ui.list.layout(this.dimension&&.4*this.dimension.height)}}applyStyles(e){this.styles=e,this.updateStyles()}updateStyles(){if(this.ui){let{quickInputTitleBackground:e,quickInputBackground:t,quickInputForeground:i,contrastBorder:o,widgetShadow:n}=this.styles.widget;this.ui.titleBar.style.backgroundColor=e?e.toString():"",this.ui.container.style.backgroundColor=t?t.toString():"",this.ui.container.style.color=i?i.toString():"",this.ui.container.style.border=o?`1px solid ${o}`:"",this.ui.container.style.boxShadow=n?`0 0 8px 2px ${n}`:"",this.ui.inputBox.style(this.styles.inputBox),this.ui.count.style(this.styles.countBadge),this.ui.ok.style(this.styles.button),this.ui.customButton.style(this.styles.button),this.ui.progressBar.style(this.styles.progressBar),this.ui.list.style(this.styles.list);let s=[];this.styles.list.pickerGroupBorder&&s.push(`.quick-input-list .quick-input-list-entry { border-top-color: ${this.styles.list.pickerGroupBorder}; }`),this.styles.list.pickerGroupForeground&&s.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`),(this.styles.keybindingLabel.keybindingLabelBackground||this.styles.keybindingLabel.keybindingLabelBorder||this.styles.keybindingLabel.keybindingLabelBottomBorder||this.styles.keybindingLabel.keybindingLabelShadow||this.styles.keybindingLabel.keybindingLabelForeground)&&(s.push(".quick-input-list .monaco-keybinding > .monaco-keybinding-key {"),this.styles.keybindingLabel.keybindingLabelBackground&&s.push(`background-color: ${this.styles.keybindingLabel.keybindingLabelBackground};`),this.styles.keybindingLabel.keybindingLabelBorder&&s.push(`border-color: ${this.styles.keybindingLabel.keybindingLabelBorder};`),this.styles.keybindingLabel.keybindingLabelBottomBorder&&s.push(`border-bottom-color: ${this.styles.keybindingLabel.keybindingLabelBottomBorder};`),this.styles.keybindingLabel.keybindingLabelShadow&&s.push(`box-shadow: inset 0 -1px 0 ${this.styles.keybindingLabel.keybindingLabelShadow};`),this.styles.keybindingLabel.keybindingLabelForeground&&s.push(`color: ${this.styles.keybindingLabel.keybindingLabelForeground};`),s.push("}"));let r=s.join("\n");r!==this.ui.styleSheet.textContent&&(this.ui.styleSheet.textContent=r)}}}D.MAX_WIDTH=600},381943:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return n}});var o={comments:{lineComment:";;"},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}],surroundingPairs:[{open:"[",close:"]"},{open:'"',close:'"'},{open:"(",close:")"},{open:"{",close:"}"}]},n={defaultToken:"",ignoreCase:!0,tokenPostfix:".clj",brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"{",close:"}",token:"delimiter.curly"}],constants:["true","false","nil"],numbers:/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,characters:/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,escapes:/^\\(?:["'\\bfnrt]|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,qualifiedSymbols:/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/,specialForms:[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],coreSymbols:["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],tokenizer:{root:[{include:"@whitespace"},[/@numbers/,"number"],[/@characters/,"string"],{include:"@string"},[/[()\[\]{}]/,"@brackets"],[/\/#"(?:\.|(?:")|[^"\n])*"\/g/,"regexp"],[/[#'@^`~]/,"meta"],[/@qualifiedSymbols/,{cases:{"^:.+$":"constant","@specialForms":"keyword","@coreSymbols":"keyword","@constants":"constant","@default":"identifier"}}]],whitespace:[[/[\s,]+/,"white"],[/;.*$/,"comment"],[/\(comment\b/,"comment","@comment"]],comment:[[/\(/,"comment","@push"],[/\)/,"comment","@pop"],[/[^()]/,"comment"]],string:[[/"/,"string","@multiLineString"]],multiLineString:[[/"/,"string","@popall"],[/@escapes/,"string.escape"],[/./,"string"]]}}},30527:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"828814"))})},819964:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"910288"))})},889586:function(e,t,i){"use strict";i.r(t),i.d(t,{conf:function(){return o},language:function(){return n}});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),end:RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")}}},n={defaultToken:"",tokenPostfix:".java",keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false","yield","record","sealed","non-sealed","permits"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,tokenizer:{root:[["non-sealed","keyword.non-sealed"],[/[a-zA-Z_$][\w$]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/0[xX](@hexdigits)[Ll]?/,"number.hex"],[/0(@octaldigits)[Ll]?/,"number.octal"],[/0[bB](@binarydigits)[Ll]?/,"number.binary"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string","@multistring"],[/"/,"string","@string"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@javadoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],javadoc:[[/[^\/*]+/,"comment.doc"],[/\/\*/,"comment.doc.invalid"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],multistring:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"""/,"string","@pop"],[/./,"string"]]}}},173490:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"489218"))})},295304:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"174013"))})},450422:function(e,t,i){"use strict";i.r(t),(0,i("354606").registerLanguage)({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Promise.all([i.e("670"),i.e("624"),i.e("889"),i.e("786"),i.e("531"),i.e("242"),i.e("159"),i.e("86"),i.e("790"),i.e("387"),i.e("488"),i.e("25"),i.e("297"),i.e("606"),i.e("310")]).then(i.bind(i,"588187"))})},637711:function(e,t,i){"use strict";i.r(t),i.d(t,{createWebWorker:function(){return s}});var o=i("281099"),n=i("744138");function s(e,t,i){return new r(e,t,i)}class r extends o.EditorWorkerClient{constructor(e,t,i){super(e,i.keepIdleModels||!1,i.label,t),this._foreignModuleId=i.moduleId,this._foreignModuleCreateData=i.createData||null,this._foreignModuleHost=i.host||null,this._foreignProxy=null}fhr(e,t){if(!this._foreignModuleHost||"function"!=typeof this._foreignModuleHost[e])return Promise.reject(Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,t))}catch(e){return Promise.reject(e)}}_getForeignProxy(){return!this._foreignProxy&&(this._foreignProxy=this._getProxy().then(e=>{let t=this._foreignModuleHost?n.getAllMethodNames(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,t).then(t=>{this._foreignModuleCreateData=null;let i=(t,i)=>e.fmr(t,i),o=(e,t)=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},n={};for(let e of t)n[e]=o(e,i);return n})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(e=>this.getProxy())}}},481468:function(e,t,i){"use strict";i.r(t),i.d(t,{FloatHorizontalRange:function(){return a},HorizontalPosition:function(){return l},HorizontalRange:function(){return r},LineVisibleRanges:function(){return s},RenderingContext:function(){return n},VisibleRanges:function(){return c}});class o{constructor(e,t){this._restrictedRenderingContextBrand=void 0,this._viewLayout=e,this.viewportData=t,this.scrollWidth=this._viewLayout.getScrollWidth(),this.scrollHeight=this._viewLayout.getScrollHeight(),this.visibleRange=this.viewportData.visibleRange,this.bigNumbersDelta=this.viewportData.bigNumbersDelta;let i=this._viewLayout.getCurrentViewport();this.scrollTop=i.top,this.scrollLeft=i.left,this.viewportWidth=i.width,this.viewportHeight=i.height}getScrolledTopFromAbsoluteTop(e){return e-this.scrollTop}getVerticalOffsetForLineNumber(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)}getDecorationsInViewport(){return this.viewportData.getDecorationsInViewport()}}class n extends o{constructor(e,t,i){super(e,t),this._renderingContextBrand=void 0,this._viewLines=i}linesVisibleRangesForRange(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)}visibleRangeForPosition(e){return this._viewLines.visibleRangeForPosition(e)}}class s{constructor(e,t,i){this.outsideRenderedLine=e,this.lineNumber=t,this.ranges=i}}class r{constructor(e,t){this._horizontalRangeBrand=void 0,this.left=Math.round(e),this.width=Math.round(t)}static from(e){let t=Array(e.length);for(let i=0,o=e.length;i<o;i++){let o=e[i];t[i]=new r(o.left,o.width)}return t}toString(){return`[${this.left},${this.width}]`}}class a{constructor(e,t){this._floatHorizontalRangeBrand=void 0,this.left=e,this.width=t}toString(){return`[${this.left},${this.width}]`}static compare(e,t){return e.left-t.left}}class l{constructor(e,t){this.outsideRenderedLine=e,this.originalLeft=t,this.left=Math.round(this.originalLeft)}}class c{constructor(e,t){this.outsideRenderedLine=e,this.ranges=t}}},531382:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorScrollbar:function(){return c}});var o=i("409737"),n=i("670758"),s=i("842401"),r=i("71956"),a=i("439703"),l=i("897085");class c extends r.ViewPart{constructor(e,t,i,l){super(e);let c=this._context.configuration.options,u=c.get(94),d=c.get(69),h=c.get(36),m=c.get(97),g={listenOnDomNode:i.domNode,className:"editor-scrollable "+(0,a.getThemeTypeSelector)(e.theme.type),useShadows:!1,lazyRender:!0,vertical:u.vertical,horizontal:u.horizontal,verticalHasArrows:u.verticalHasArrows,horizontalHasArrows:u.horizontalHasArrows,verticalScrollbarSize:u.verticalScrollbarSize,verticalSliderSize:u.verticalSliderSize,horizontalScrollbarSize:u.horizontalScrollbarSize,horizontalSliderSize:u.horizontalSliderSize,handleMouseWheel:u.handleMouseWheel,alwaysConsumeMouseWheel:u.alwaysConsumeMouseWheel,arrowSize:u.arrowSize,mouseWheelScrollSensitivity:d,fastScrollSensitivity:h,scrollPredominantAxis:m,scrollByPage:u.scrollByPage};this.scrollbar=this._register(new s.SmoothScrollableElement(t.domNode,g,this._context.viewLayout.getScrollable())),r.PartFingerprints.write(this.scrollbar.getDomNode(),5),this.scrollbarDomNode=(0,n.createFastDomNode)(this.scrollbar.getDomNode()),this.scrollbarDomNode.setPosition("absolute"),this._setLayout();let p=(e,t,i)=>{let o={};if(t){let t=e.scrollTop;t&&(o.scrollTop=this._context.viewLayout.getCurrentScrollTop()+t,e.scrollTop=0)}if(i){let t=e.scrollLeft;t&&(o.scrollLeft=this._context.viewLayout.getCurrentScrollLeft()+t,e.scrollLeft=0)}this._context.viewModel.viewLayout.setScrollPosition(o,1)};this._register(o.addDisposableListener(i.domNode,"scroll",e=>p(i.domNode,!0,!0))),this._register(o.addDisposableListener(t.domNode,"scroll",e=>p(t.domNode,!0,!1))),this._register(o.addDisposableListener(l.domNode,"scroll",e=>p(l.domNode,!0,!1))),this._register(o.addDisposableListener(this.scrollbarDomNode.domNode,"scroll",e=>p(this.scrollbarDomNode.domNode,!0,!1)))}dispose(){super.dispose()}_setLayout(){let e=this._context.configuration.options,t=e.get(133);this.scrollbarDomNode.setLeft(t.contentLeft),"right"===e.get(67).side?this.scrollbarDomNode.setWidth(t.contentWidth+t.minimap.minimapWidth):this.scrollbarDomNode.setWidth(t.contentWidth),this.scrollbarDomNode.setHeight(t.height)}getOverviewRulerLayoutInfo(){return this.scrollbar.getOverviewRulerLayoutInfo()}getDomNode(){return this.scrollbarDomNode}delegateVerticalScrollbarPointerDown(e){this.scrollbar.delegateVerticalScrollbarPointerDown(e)}onConfigurationChanged(e){if(e.hasChanged(94)||e.hasChanged(69)||e.hasChanged(36)){let e=this._context.configuration.options,t=e.get(94),i=e.get(69),o=e.get(36),n=e.get(97),s={vertical:t.vertical,horizontal:t.horizontal,verticalScrollbarSize:t.verticalScrollbarSize,horizontalScrollbarSize:t.horizontalScrollbarSize,scrollByPage:t.scrollByPage,handleMouseWheel:t.handleMouseWheel,mouseWheelScrollSensitivity:i,fastScrollSensitivity:o,scrollPredominantAxis:n};this.scrollbar.updateOptions(s)}return e.hasChanged(133)&&this._setLayout(),!0}onScrollChanged(e){return!0}onThemeChanged(e){return this.scrollbar.updateClassName("editor-scrollable "+(0,a.getThemeTypeSelector)(this._context.theme.type)),!0}prepareRender(e){}render(e){this.scrollbar.renderNow()}}(0,a.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.scrollbarShadow);i&&t.addRule(`
|
|
369
|
+
.monaco-scrollable-element > .shadow.top {
|
|
370
|
+
box-shadow: ${i} 0 6px 6px -6px inset;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.monaco-scrollable-element > .shadow.left {
|
|
374
|
+
box-shadow: ${i} 6px 0 6px -6px inset;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.monaco-scrollable-element > .shadow.top.left {
|
|
378
|
+
box-shadow: ${i} 6px 6px 6px -6px inset;
|
|
379
|
+
}
|
|
380
|
+
`);let o=e.getColor(l.scrollbarSliderBackground);o&&t.addRule(`
|
|
381
|
+
.monaco-scrollable-element > .scrollbar > .slider {
|
|
382
|
+
background: ${o};
|
|
383
|
+
}
|
|
384
|
+
`);let n=e.getColor(l.scrollbarSliderHoverBackground);n&&t.addRule(`
|
|
385
|
+
.monaco-scrollable-element > .scrollbar > .slider:hover {
|
|
386
|
+
background: ${n};
|
|
387
|
+
}
|
|
388
|
+
`);let s=e.getColor(l.scrollbarSliderActiveBackground);s&&t.addRule(`
|
|
389
|
+
.monaco-scrollable-element > .scrollbar > .slider.active {
|
|
390
|
+
background: ${s};
|
|
391
|
+
}
|
|
392
|
+
`)})},60075:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRuler:function(){return r}});var o=i("670758"),n=i("780801"),s=i("448331");class r extends s.ViewEventHandler{constructor(e,t){super(),this._context=e;let i=this._context.configuration.options;this._domNode=(0,o.createFastDomNode)(document.createElement("canvas")),this._domNode.setClassName(t),this._domNode.setPosition("absolute"),this._domNode.setLayerHinting(!0),this._domNode.setContain("strict"),this._zoneManager=new n.OverviewZoneManager(e=>this._context.viewLayout.getVerticalOffsetForLineNumber(e)),this._zoneManager.setDOMWidth(0),this._zoneManager.setDOMHeight(0),this._zoneManager.setOuterHeight(this._context.viewLayout.getScrollHeight()),this._zoneManager.setLineHeight(i.get(61)),this._zoneManager.setPixelRatio(i.get(131)),this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return e.hasChanged(61)&&(this._zoneManager.setLineHeight(t.get(61)),this._render()),e.hasChanged(131)&&(this._zoneManager.setPixelRatio(t.get(131)),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}onFlushed(e){return this._render(),!0}onScrollChanged(e){return e.scrollHeightChanged&&(this._zoneManager.setOuterHeight(e.scrollHeight),this._render()),!0}onZonesChanged(e){return this._render(),!0}getDomNode(){return this._domNode.domNode}setLayout(e){this._domNode.setTop(e.top),this._domNode.setRight(e.right);let 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())}setZones(e){this._zoneManager.setZones(e),this._render()}_render(){if(0===this._zoneManager.getOuterHeight())return!1;let e=this._zoneManager.getCanvasWidth(),t=this._zoneManager.getCanvasHeight(),i=this._zoneManager.resolveColorZones(),o=this._zoneManager.getId2Color(),n=this._domNode.domNode.getContext("2d");return n.clearRect(0,0,e,t),i.length>0&&this._renderOneLane(n,i,o,e),!0}_renderOneLane(e,t,i,o){let n=0,s=0,r=0;for(let a of t){let t=a.colorId,l=a.from,c=a.to;t!==n?(e.fillRect(0,s,o,r-s),n=t,e.fillStyle=i[n],s=l,r=c):r>=l?r=Math.max(r,c):(e.fillRect(0,s,o,r-s),s=l,r=c)}e.fillRect(0,s,o,r-s)}}},412880:function(e,t,i){"use strict";i.r(t),i.d(t,{SelectionsOverlay:function(){return u}}),i("915745");var o=i("707202"),n=i("897085"),s=i("439703");class r{constructor(e){this.left=e.left,this.width=e.width,this.startStyle=null,this.endStyle=null}}class a{constructor(e,t){this.lineNumber=e,this.ranges=t}}function l(e){return new r(e)}function c(e){return new a(e.lineNumber,e.ranges.map(l))}class u extends o.DynamicViewOverlay{constructor(e){super(),this._previousFrameVisibleRangesWithStyle=[],this._context=e;let t=this._context.configuration.options;this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,this._selections=[],this._renderResult=null,this._context.addEventHandler(this)}dispose(){this._context.removeEventHandler(this),this._renderResult=null,super.dispose()}onConfigurationChanged(e){let t=this._context.configuration.options;return this._lineHeight=t.get(61),this._roundedSelection=t.get(92),this._typicalHalfwidthCharacterWidth=t.get(46).typicalHalfwidthCharacterWidth,!0}onCursorStateChanged(e){return this._selections=e.selections.slice(0),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return e.scrollTopChanged}onZonesChanged(e){return!0}_visibleRangesHaveGaps(e){for(let t=0,i=e.length;t<i;t++)if(e[t].ranges.length>1)return!0;return!1}_enrichVisibleRangesWithStyle(e,t,i){let o=this._typicalHalfwidthCharacterWidth/4,n=null,s=null;if(i&&i.length>0&&t.length>0){let o=t[0].lineNumber;if(o===e.startLineNumber)for(let e=0;!n&&e<i.length;e++)i[e].lineNumber===o&&(n=i[e].ranges[0]);let r=t[t.length-1].lineNumber;if(r===e.endLineNumber)for(let e=i.length-1;!s&&e>=0;e--)i[e].lineNumber===r&&(s=i[e].ranges[0]);n&&!n.startStyle&&(n=null),s&&!s.startStyle&&(s=null)}for(let e=0,i=t.length;e<i;e++){let r=t[e].ranges[0],a=r.left,l=r.left+r.width,c={top:0,bottom:0},u={top:0,bottom:0};if(e>0){let i=t[e-1].ranges[0].left,n=t[e-1].ranges[0].left+t[e-1].ranges[0].width;d(a-i)<o?c.top=2:a>i&&(c.top=1),d(l-n)<o?u.top=2:i<l&&l<n&&(u.top=1)}else n&&(c.top=n.startStyle.top,u.top=n.endStyle.top);if(e+1<i){let i=t[e+1].ranges[0].left,n=t[e+1].ranges[0].left+t[e+1].ranges[0].width;d(a-i)<o?c.bottom=2:i<a&&a<n&&(c.bottom=1),d(l-n)<o?u.bottom=2:l<n&&(u.bottom=1)}else s&&(c.bottom=s.startStyle.bottom,u.bottom=s.endStyle.bottom);r.startStyle=c,r.endStyle=u}}_getVisibleRangesWithStyle(e,t,i){let o=(t.linesVisibleRangesForRange(e,!0)||[]).map(c);return!this._visibleRangesHaveGaps(o)&&this._roundedSelection&&this._enrichVisibleRangesWithStyle(t.visibleRange,o,i),o}_createSelectionPiece(e,t,i,o,n){return'<div class="cslr '+i+'" style="top:'+e.toString()+"px;left:"+o.toString()+"px;width:"+n.toString()+"px;height:"+t+'px;"></div>'}_actualRenderOneSelection(e,t,i,o){if(0===o.length)return;let n=!!o[0].ranges[0].startStyle,s=this._lineHeight.toString(),r=(this._lineHeight-1).toString(),a=o[0].lineNumber,l=o[o.length-1].lineNumber;for(let c=0,d=o.length;c<d;c++){let d=o[c],h=d.lineNumber,m=h-t,g=i&&(h===l||h===a)?r:s,p=i&&h===a?1:0,f="",b="";for(let e=0,t=d.ranges.length;e<t;e++){let t=d.ranges[e];if(n){let e=t.startStyle,i=t.endStyle;if(1===e.top||1===e.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH);let i=u.EDITOR_BACKGROUND_CLASS_NAME;1===e.top&&(i+=" "+u.SELECTION_TOP_RIGHT),1===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT),f+=this._createSelectionPiece(p,g,i,t.left-u.ROUNDED_PIECE_WIDTH,u.ROUNDED_PIECE_WIDTH)}if(1===i.top||1===i.bottom){f+=this._createSelectionPiece(p,g,u.SELECTION_CLASS_NAME,t.left+t.width,u.ROUNDED_PIECE_WIDTH);let e=u.EDITOR_BACKGROUND_CLASS_NAME;1===i.top&&(e+=" "+u.SELECTION_TOP_LEFT),1===i.bottom&&(e+=" "+u.SELECTION_BOTTOM_LEFT),f+=this._createSelectionPiece(p,g,e,t.left+t.width,u.ROUNDED_PIECE_WIDTH)}}let i=u.SELECTION_CLASS_NAME;if(n){let e=t.startStyle,o=t.endStyle;0===e.top&&(i+=" "+u.SELECTION_TOP_LEFT),0===e.bottom&&(i+=" "+u.SELECTION_BOTTOM_LEFT),0===o.top&&(i+=" "+u.SELECTION_TOP_RIGHT),0===o.bottom&&(i+=" "+u.SELECTION_BOTTOM_RIGHT)}b+=this._createSelectionPiece(p,g,i,t.left,t.width)}e[m][0]+=f,e[m][1]+=b}}prepareRender(e){let t=[],i=e.visibleRange.startLineNumber,o=e.visibleRange.endLineNumber;for(let e=i;e<=o;e++)t[e-i]=["",""];let n=[];for(let o=0,s=this._selections.length;o<s;o++){let s=this._selections[o];if(s.isEmpty()){n[o]=null;continue}let r=this._getVisibleRangesWithStyle(s,e,this._previousFrameVisibleRangesWithStyle[o]);n[o]=r,this._actualRenderOneSelection(t,i,this._selections.length>1,r)}this._previousFrameVisibleRangesWithStyle=n,this._renderResult=t.map(([e,t])=>e+t)}render(e,t){if(!this._renderResult)return"";let i=t-e;return i<0||i>=this._renderResult.length?"":this._renderResult[i]}}function d(e){return e<0?-e:e}u.SELECTION_CLASS_NAME="selected-text",u.SELECTION_TOP_LEFT="top-left-radius",u.SELECTION_BOTTOM_LEFT="bottom-left-radius",u.SELECTION_TOP_RIGHT="top-right-radius",u.SELECTION_BOTTOM_RIGHT="bottom-right-radius",u.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",u.ROUNDED_PIECE_WIDTH=10,(0,s.registerThemingParticipant)((e,t)=>{let i=e.getColor(n.editorSelectionBackground);i&&t.addRule(`.monaco-editor .focused .selected-text { background-color: ${i}; }`);let o=e.getColor(n.editorInactiveSelection);o&&t.addRule(`.monaco-editor .selected-text { background-color: ${o}; }`);let s=e.getColor(n.editorSelectionForeground);s&&!s.isTransparent()&&t.addRule(`.monaco-editor .view-line span.inline-selected-text { color: ${s}; }`)})},694614:function(e,t,i){"use strict";i.r(t),i.d(t,{ViewCursors:function(){return d}}),i("432036");var o=i("670758"),n=i("467518"),s=i("71956"),r=i("20801"),a=i("416637"),l=i("126939"),c=i("439703"),u=i("774697");class d extends s.ViewPart{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new r.ViewCursor(this._context),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,o.createFastDomNode)(document.createElement("div")),this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true"),this._updateDomClassName(),this._domNode.appendChild(this._primaryCursor.getDomNode()),this._startCursorBlinkAnimation=new n.TimeoutTimer,this._cursorFlatBlinkInterval=new n.IntervalTimer,this._blinkingEnabled=!1,this._editorHasFocus=!1,this._updateBlinking()}dispose(){super.dispose(),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()}getDomNode(){return this._domNode}onCompositionStart(e){return this._isComposingInput=!0,this._updateBlinking(),!0}onCompositionEnd(e){return this._isComposingInput=!1,this._updateBlinking(),!0}onConfigurationChanged(e){let t=this._context.configuration.options;this._readOnly=t.get(83),this._cursorBlinking=t.get(22),this._cursorStyle=t.get(24),this._cursorSmoothCaretAnimation=t.get(23),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0}_onCursorPositionChanged(e,t){if(this._primaryCursor.onCursorPositionChanged(e),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new r.ViewCursor(this._context);this._domNode.domNode.insertBefore(e.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling),this._secondaryCursors.push(e)}}else if(this._secondaryCursors.length>t.length){let e=this._secondaryCursors.length-t.length;for(let t=0;t<e;t++)this._domNode.removeChild(this._secondaryCursors[0].getDomNode()),this._secondaryCursors.splice(0,1)}for(let e=0;e<t.length;e++)this._secondaryCursors[e].onCursorPositionChanged(t[e])}onCursorStateChanged(e){let t=[];for(let i=0,o=e.selections.length;i<o;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));let i=e.selections[0].isEmpty();return this._selectionIsEmpty!==i&&(this._selectionIsEmpty=i,this._updateDomClassName()),!0}onDecorationsChanged(e){return!0}onFlushed(e){return!0}onFocusChanged(e){return this._editorHasFocus=e.isFocused,this._updateBlinking(),!1}onLinesChanged(e){return!0}onLinesDeleted(e){return!0}onLinesInserted(e){return!0}onScrollChanged(e){return!0}onTokensChanged(e){let t=t=>{for(let i=0,o=e.ranges.length;i<o;i++)if(e.ranges[i].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[i].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(let e of this._secondaryCursors)if(t(e.getPosition()))return!0;return!1}onZonesChanged(e){return!0}_getCursorBlinking(){return this._isComposingInput||!this._editorHasFocus?0:this._readOnly?5:this._cursorBlinking}_updateBlinking(){this._startCursorBlinkAnimation.cancel(),this._cursorFlatBlinkInterval.cancel();let e=this._getCursorBlinking(),t=0===e;t?this._hide():this._show(),this._blinkingEnabled=!1,this._updateDomClassName(),!t&&5!==e&&(1===e?this._cursorFlatBlinkInterval.cancelAndSet(()=>{this._isVisible?this._hide():this._show()},d.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},d.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.TextEditorCursorStyle.Line:e+=" cursor-line-style";break;case a.TextEditorCursorStyle.Block:e+=" cursor-block-style";break;case a.TextEditorCursorStyle.Underline:e+=" cursor-underline-style";break;case a.TextEditorCursorStyle.LineThin:e+=" cursor-line-thin-style";break;case a.TextEditorCursorStyle.BlockOutline:e+=" cursor-block-outline-style";break;case a.TextEditorCursorStyle.UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return this._cursorSmoothCaretAnimation&&(e+=" cursor-smooth-caret-animation"),e}_show(){this._primaryCursor.show();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0}_hide(){this._primaryCursor.hide();for(let e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1}prepareRender(e){this._primaryCursor.prepareRender(e);for(let t=0,i=this._secondaryCursors.length;t<i;t++)this._secondaryCursors[t].prepareRender(e)}render(e){let t=[],i=0,o=this._primaryCursor.render(e);o&&(t[i++]=o);for(let o=0,n=this._secondaryCursors.length;o<n;o++){let n=this._secondaryCursors[o].render(e);n&&(t[i++]=n)}this._renderData=t}getLastRenderData(){return this._renderData}}d.BLINK_INTERVAL=500,(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorCursorForeground);if(i){let o=e.getColor(l.editorCursorBackground);!o&&(o=i.opposite()),t.addRule(`.monaco-editor .inputarea.ime-input { caret-color: ${i}; }`),t.addRule(`.monaco-editor .cursors-layer .cursor { background-color: ${i}; border-color: ${i}; color: ${o}; }`),(0,u.isHighContrast)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid ${o}; border-right: 1px solid ${o}; }`)}})},175323:function(e,t,i){"use strict";i.r(t),i.d(t,{BareFontInfo:function(){return a},FontInfo:function(){return l}});var o=i("207875"),n=i("416637"),s=i("183140");let r=o.isMacintosh?1.5:1.35;class a{constructor(e){this._bareFontInfoBrand=void 0,this.pixelRatio=e.pixelRatio,this.fontFamily=String(e.fontFamily),this.fontWeight=String(e.fontWeight),this.fontSize=e.fontSize,this.fontFeatureSettings=e.fontFeatureSettings,this.lineHeight=0|e.lineHeight,this.letterSpacing=e.letterSpacing}static createFromValidatedSettings(e,t,i){let o=e.get(45),n=e.get(49),s=e.get(48),r=e.get(47),l=e.get(61),c=e.get(58);return a._create(o,n,s,r,l,c,t,i)}static _create(e,t,i,o,n,l,c,u){0===n?n=r*i:n<8&&(n*=i),(n=Math.round(n))<8&&(n=8);let d=1+(u?0:.1*s.EditorZoom.getZoomLevel());return i*=d,n*=d,new a({pixelRatio:c,fontFamily:e,fontWeight:t,fontSize:i,fontFeatureSettings:o,lineHeight:n,letterSpacing:l})}getId(){return`${this.pixelRatio}-${this.fontFamily}-${this.fontWeight}-${this.fontSize}-${this.fontFeatureSettings}-${this.lineHeight}-${this.letterSpacing}`}getMassagedFontFamily(){let e=n.EDITOR_FONT_DEFAULTS.fontFamily,t=a._wrapInQuotes(this.fontFamily);return e&&this.fontFamily!==e?`${t}, ${e}`:t}static _wrapInQuotes(e){return/[,"']/.test(e)?e:/[+ ]/.test(e)?`"${e}"`:e}}class l extends a{constructor(e,t){super(e),this._editorStylingBrand=void 0,this.version=1,this.isTrusted=t,this.isMonospace=e.isMonospace,this.typicalHalfwidthCharacterWidth=e.typicalHalfwidthCharacterWidth,this.typicalFullwidthCharacterWidth=e.typicalFullwidthCharacterWidth,this.canUseHalfwidthRightwardsArrow=e.canUseHalfwidthRightwardsArrow,this.spaceWidth=e.spaceWidth,this.middotWidth=e.middotWidth,this.wsmiddotWidth=e.wsmiddotWidth,this.maxDigitWidth=e.maxDigitWidth}equals(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.fontFeatureSettings===e.fontFeatureSettings&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.middotWidth===e.middotWidth&&this.wsmiddotWidth===e.wsmiddotWidth&&this.maxDigitWidth===e.maxDigitWidth}}},457938:function(e,t,i){"use strict";i.r(t),i.d(t,{Position:function(){return o}});class o{constructor(e,t){this.lineNumber=e,this.column=t}with(e=this.lineNumber,t=this.column){return e===this.lineNumber&&t===this.column?this:new o(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return o.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return o.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return o.isBeforeOrEqual(this,e)}static isBeforeOrEqual(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<=t.column}static compare(e,t){let i=0|e.lineNumber,o=0|t.lineNumber;if(i===o){let i=0|e.column;return i-(0|t.column)}return i-o}clone(){return new o(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new o(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}}},861065:function(e,t,i){"use strict";i.r(t),i.d(t,{Selection:function(){return s}});var o=i("457938"),n=i("761045");class s extends n.Range{constructor(e,t,i,o){super(e,t,i,o),this.selectionStartLineNumber=e,this.selectionStartColumn=t,this.positionLineNumber=i,this.positionColumn=o}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return s.selectionsEqual(this,e)}static selectionsEqual(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,t){return 0===this.getDirection()?new s(this.startLineNumber,this.startColumn,e,t):new s(e,t,this.startLineNumber,this.startColumn)}getPosition(){return new o.Position(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new o.Position(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,t){return 0===this.getDirection()?new s(e,t,this.endLineNumber,this.endColumn):new s(this.endLineNumber,this.endColumn,e,t)}static fromPositions(e,t=e){return new s(e.lineNumber,e.column,t.lineNumber,t.column)}static fromRange(e,t){return 0===t?new s(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new s(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new s(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(let i=0,o=e.length;i<o;i++)if(!this.selectionsEqual(e[i],t[i]))return!1;return!0}static isISelection(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn}static createWithDirection(e,t,i,o,n){return 0===n?new s(e,t,i,o):new s(i,o,e,t)}}},812315:function(e,t,i){"use strict";i.r(t),i.d(t,{WordOperations:function(){return c},WordPartOperations:function(){return u}});var o=i("266763"),n=i("607910"),s=i("452862"),r=i("840890"),a=i("457938"),l=i("761045");class c{static _createWord(e,t,i,o,n){return{start:o,end:n,wordType:t,nextCharClass:i}}static _findPreviousWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindPreviousWordOnLine(o,e,i)}static _doFindPreviousWordOnLine(e,t,i){let o=0;for(let n=i.column-2;n>=0;n--){let i=e.charCodeAt(n),s=t.get(i);if(0===s){if(2===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=1}else if(2===s){if(1===o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1));o=2}else if(1===s&&0!==o)return this._createWord(e,o,s,n+1,this._findEndOfWord(e,t,o,n+1))}return 0!==o?this._createWord(e,o,1,0,this._findEndOfWord(e,t,o,0)):null}static _findEndOfWord(e,t,i,o){let n=e.length;for(let s=o;s<n;s++){let o=e.charCodeAt(s),n=t.get(o);if(1===n||1===i&&2===n||2===i&&0===n)return s}return n}static _findNextWordOnLine(e,t,i){let o=t.getLineContent(i.lineNumber);return this._doFindNextWordOnLine(o,e,i)}static _doFindNextWordOnLine(e,t,i){let o=0,n=e.length;for(let s=i.column-1;s<n;s++){let i=e.charCodeAt(s),n=t.get(i);if(0===n){if(2===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=1}else if(2===n){if(1===o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s);o=2}else if(1===n&&0!==o)return this._createWord(e,o,n,this._findStartOfWord(e,t,o,s-1),s)}return 0!==o?this._createWord(e,o,1,this._findStartOfWord(e,t,o,n-1),n):null}static _findStartOfWord(e,t,i,o){for(let n=o;n>=0;n--){let o=e.charCodeAt(n),s=t.get(o);if(1===s||1===i&&2===s||2===i&&0===s)return n+1}return 0}static moveWordLeft(e,t,i,o){let n=i.lineNumber,s=i.column;1===s&&n>1&&(n-=1,s=t.getLineMaxColumn(n));let r=c._findPreviousWordOnLine(e,t,new a.Position(n,s));if(0===o)return new a.Position(n,r?r.start+1:1);if(1===o)return r&&2===r.wordType&&r.end-r.start==1&&0===r.nextCharClass&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.start+1:1);if(3===o){for(;r&&2===r.wordType;)r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1));return new a.Position(n,r?r.start+1:1)}return r&&s<=r.end+1&&(r=c._findPreviousWordOnLine(e,t,new a.Position(n,r.start+1))),new a.Position(n,r?r.end+1:1)}static _moveWordPartLeft(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(1===t.column)return i>1?new a.Position(i-1,e.getLineMaxColumn(i-1)):t;let s=e.getLineContent(i);for(let e=t.column-1;e>1;e--){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95===t&&95!==r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,1)}static moveWordRight(e,t,i,o){let n=i.lineNumber,s=i.column,r=!1;s===t.getLineMaxColumn(n)&&n<t.getLineCount()&&(r=!0,n+=1,s=1);let l=c._findNextWordOnLine(e,t,new a.Position(n,s));if(2===o)l&&2===l.wordType&&l.end-l.start==1&&0===l.nextCharClass&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.end+1:t.getLineMaxColumn(n);else if(3===o){for(r&&(s=0);l&&(2===l.wordType||l.start+1<=s);)l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1));s=l?l.start+1:t.getLineMaxColumn(n)}else l&&!r&&s>=l.start+1&&(l=c._findNextWordOnLine(e,t,new a.Position(n,l.end+1))),s=l?l.start+1:t.getLineMaxColumn(n);return new a.Position(n,s)}static _moveWordPartRight(e,t){let i=t.lineNumber,n=e.getLineMaxColumn(i);if(t.column===n)return i<e.getLineCount()?new a.Position(i+1,1):t;let s=e.getLineContent(i);for(let e=t.column+1;e<n;e++){let t=s.charCodeAt(e-2),r=s.charCodeAt(e-1);if(95!==t&&95===r||(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))&&o.isUpperAsciiLetter(r))return new a.Position(i,e);if(o.isUpperAsciiLetter(t)&&o.isUpperAsciiLetter(r)&&e+1<n){let t=s.charCodeAt(e);if(o.isLowerAsciiLetter(t)||o.isAsciiDigit(t))return new a.Position(i,e)}}return new a.Position(i,n)}static _deleteWordLeftWhitespace(e,t){let i=e.getLineContent(t.lineNumber),n=t.column-2,s=o.lastNonWhitespaceIndex(i,n);return s+1<n?new l.Range(t.lineNumber,s+2,t.lineNumber,t.column):null}static deleteWordLeft(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,r=e.whitespaceHeuristics;if(!n.isEmpty())return n;if(s.DeleteOperations.isAutoClosingPairDelete(e.autoClosingDelete,e.autoClosingBrackets,e.autoClosingQuotes,e.autoClosingPairs.autoClosingPairsOpenByEnd,e.model,[e.selection],e.autoClosedCharacters)){let t=e.selection.getPosition();return new l.Range(t.lineNumber,t.column-1,t.lineNumber,t.column+1)}let u=new a.Position(n.positionLineNumber,n.positionColumn),d=u.lineNumber,h=u.column;if(1===d&&1===h)return null;if(r){let e=this._deleteWordLeftWhitespace(o,u);if(e)return e}let m=c._findPreviousWordOnLine(i,o,u);return 0===t?m?h=m.start+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d)):(m&&h<=m.end+1&&(m=c._findPreviousWordOnLine(i,o,new a.Position(d,m.start+1))),m?h=m.end+1:h>1?h=1:(d--,h=o.getLineMaxColumn(d))),new l.Range(d,h,u.lineNumber,u.column)}static deleteInsideWord(e,t,i){if(!i.isEmpty())return i;let o=new a.Position(i.positionLineNumber,i.positionColumn),n=this._deleteInsideWordWhitespace(t,o);return n?n:this._deleteInsideWordDetermineDeleteRange(e,t,o)}static _charAtIsWhitespace(e,t){let i=e.charCodeAt(t);return 32===i||9===i}static _deleteInsideWordWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=i.length;if(0===o)return null;let n=Math.max(t.column-2,0);if(!this._charAtIsWhitespace(i,n))return null;let s=Math.min(t.column-1,o-1);if(!this._charAtIsWhitespace(i,s))return null;for(;n>0&&this._charAtIsWhitespace(i,n-1);)n--;for(;s+1<o&&this._charAtIsWhitespace(i,s+1);)s++;return new l.Range(t.lineNumber,n+1,t.lineNumber,s+2)}static _deleteInsideWordDetermineDeleteRange(e,t,i){let o,n,s=t.getLineContent(i.lineNumber),r=s.length;if(0===r)return i.lineNumber>1?new l.Range(i.lineNumber-1,t.getLineMaxColumn(i.lineNumber-1),i.lineNumber,1):i.lineNumber<t.getLineCount()?new l.Range(i.lineNumber,1,i.lineNumber+1,1):new l.Range(i.lineNumber,1,i.lineNumber,1);let a=(e,t)=>(e=Math.min(e,i.column),t=Math.max(t,i.column),new l.Range(i.lineNumber,e,i.lineNumber,t)),u=e=>{let t=e.start+1,i=e.end+1,o=!1;for(;i-1<r&&this._charAtIsWhitespace(s,i-1);)o=!0,i++;if(!o)for(;t>1&&this._charAtIsWhitespace(s,t-2);)t--;return a(t,i)},d=c._findPreviousWordOnLine(e,t,i);if(d&&(o=d).start+1<=i.column&&i.column<=o.end+1)return u(d);let h=c._findNextWordOnLine(e,t,i);return h&&(n=h).start+1<=i.column&&i.column<=n.end+1?u(h):d&&h?a(d.end+1,h.start+1):d?a(d.start+1,d.end+1):h?a(h.start+1,h.end+1):a(1,r+1)}static _deleteWordPartLeft(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartLeft(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _findFirstNonWhitespaceChar(e,t){let i=e.length;for(let o=t;o<i;o++){let t=e.charAt(o);if(" "!==t&&" "!==t)return o}return i}static _deleteWordRightWhitespace(e,t){let i=e.getLineContent(t.lineNumber),o=t.column-1,n=this._findFirstNonWhitespaceChar(i,o);return o+1<n?new l.Range(t.lineNumber,t.column,t.lineNumber,n+1):null}static deleteWordRight(e,t){let i=e.wordSeparators,o=e.model,n=e.selection,s=e.whitespaceHeuristics;if(!n.isEmpty())return n;let r=new a.Position(n.positionLineNumber,n.positionColumn),u=r.lineNumber,d=r.column,h=o.getLineCount(),m=o.getLineMaxColumn(u);if(u===h&&d===m)return null;if(s){let e=this._deleteWordRightWhitespace(o,r);if(e)return e}let g=c._findNextWordOnLine(i,o,r);return 2===t?g?d=g.end+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u)):(g&&d>=g.start+1&&(g=c._findNextWordOnLine(i,o,new a.Position(u,g.end+1))),g?d=g.start+1:d<m||u===h?d=m:(u++,d=(g=c._findNextWordOnLine(i,o,new a.Position(u,1)))?g.start+1:o.getLineMaxColumn(u))),new l.Range(u,d,r.lineNumber,r.column)}static _deleteWordPartRight(e,t){if(!t.isEmpty())return t;let i=t.getPosition(),o=c._moveWordPartRight(e,i);return new l.Range(i.lineNumber,i.column,o.lineNumber,o.column)}static _createWordAtPosition(e,t,i){let o=new l.Range(t,i.start+1,t,i.end+1);return{word:e.getValueInRange(o),startColumn:o.startColumn,endColumn:o.endColumn}}static getWordAtPosition(e,t,i){let o=(0,r.getMapForWordSeparators)(t),n=c._findPreviousWordOnLine(o,e,i);if(n&&1===n.wordType&&n.start<=i.column-1&&i.column-1<=n.end)return c._createWordAtPosition(e,i.lineNumber,n);let s=c._findNextWordOnLine(o,e,i);return s&&1===s.wordType&&s.start<=i.column-1&&i.column-1<=s.end?c._createWordAtPosition(e,i.lineNumber,s):null}static word(e,t,i,o,s){let u,d,h;let m=(0,r.getMapForWordSeparators)(e.wordSeparators),g=c._findPreviousWordOnLine(m,t,s),p=c._findNextWordOnLine(m,t,s);if(!o){let e,i;return g&&1===g.wordType&&g.start<=s.column-1&&s.column-1<=g.end?(e=g.start+1,i=g.end+1):p&&1===p.wordType&&p.start<=s.column-1&&s.column-1<=p.end?(e=p.start+1,i=p.end+1):(e=g?g.end+1:1,i=p?p.start+1:t.getLineMaxColumn(s.lineNumber)),new n.SingleCursorState(new l.Range(s.lineNumber,e,s.lineNumber,i),0,new a.Position(s.lineNumber,i),0)}g&&1===g.wordType&&g.start<s.column-1&&s.column-1<g.end?(u=g.start+1,d=g.end+1):p&&1===p.wordType&&p.start<s.column-1&&s.column-1<p.end?(u=p.start+1,d=p.end+1):(u=s.column,d=s.column);let f=s.lineNumber;if(i.selectionStart.containsPosition(s))h=i.selectionStart.endColumn;else if(s.isBeforeOrEqual(i.selectionStart.getStartPosition())){h=u;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.endColumn)}else{h=d;let e=new a.Position(f,h);i.selectionStart.containsPosition(e)&&(h=i.selectionStart.startColumn)}return i.move(!0,f,h,0)}}class u extends c{static deleteWordPartLeft(e){let t=d([c.deleteWordLeft(e,0),c.deleteWordLeft(e,2),c._deleteWordPartLeft(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingEnds),t[2]}static deleteWordPartRight(e){let t=d([c.deleteWordRight(e,0),c.deleteWordRight(e,2),c._deleteWordPartRight(e.model,e.selection)]);return t.sort(l.Range.compareRangesUsingStarts),t[0]}static moveWordPartLeft(e,t,i){let o=d([c.moveWordLeft(e,t,i,0),c.moveWordLeft(e,t,i,2),c._moveWordPartLeft(t,i)]);return o.sort(a.Position.compare),o[2]}static moveWordPartRight(e,t,i){let o=d([c.moveWordRight(e,t,i,0),c.moveWordRight(e,t,i,2),c._moveWordPartRight(t,i)]);return o.sort(a.Position.compare),o[0]}}function d(e){return e.filter(e=>!!e)}},343349:function(e,t,i){"use strict";i.r(t),i.d(t,{DiffComputer:function(){return u}});var o=i("160012"),n=i("266763");function s(e,t,i,n){return new o.LcsDiff(e,t,i).ComputeDiff(n)}class r{constructor(e){let t=[],i=[];for(let o=0,n=e.length;o<n;o++)t[o]=d(e[o],1),i[o]=h(e[o],1);this.lines=e,this._startColumns=t,this._endColumns=i}getElements(){let e=[];for(let t=0,i=this.lines.length;t<i;t++)e[t]=this.lines[t].substring(this._startColumns[t]-1,this._endColumns[t]-1);return e}getStrictElement(e){return this.lines[e]}getStartLineNumber(e){return e+1}getEndLineNumber(e){return e+1}createCharSequence(e,t,i){let o=[],n=[],s=[],r=0;for(let a=t;a<=i;a++){let t=this.lines[a],l=e?this._startColumns[a]:1,c=e?this._endColumns[a]:t.length+1;for(let e=l;e<c;e++)o[r]=t.charCodeAt(e-1),n[r]=a+1,s[r]=e,r++;!e&&a<i&&(o[r]=10,n[r]=a+1,s[r]=t.length+1,r++)}return new a(o,n,s)}}class a{constructor(e,t,i){this._charCodes=e,this._lineNumbers=t,this._columns=i}toString(){return"["+this._charCodes.map((e,t)=>(10===e?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[t]},${this._columns[t]})`).join(", ")+"]"}_assertIndex(e,t){if(e<0||e>=t.length)throw Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return -1===e?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),10===this._charCodes[e])?this._lineNumbers[e]+1:this._lineNumbers[e]}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return -1===e?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),10===this._charCodes[e])?1:this._columns[e]+1}}class l{constructor(e,t,i,o,n,s,r,a){this.originalStartLineNumber=e,this.originalStartColumn=t,this.originalEndLineNumber=i,this.originalEndColumn=o,this.modifiedStartLineNumber=n,this.modifiedStartColumn=s,this.modifiedEndLineNumber=r,this.modifiedEndColumn=a}static createFromDiffChange(e,t,i){let o=t.getStartLineNumber(e.originalStart),n=t.getStartColumn(e.originalStart),s=t.getEndLineNumber(e.originalStart+e.originalLength-1),r=t.getEndColumn(e.originalStart+e.originalLength-1),a=i.getStartLineNumber(e.modifiedStart),c=i.getStartColumn(e.modifiedStart),u=i.getEndLineNumber(e.modifiedStart+e.modifiedLength-1);return new l(o,n,s,r,a,c,u,i.getEndColumn(e.modifiedStart+e.modifiedLength-1))}}class c{constructor(e,t,i,o,n){this.originalStartLineNumber=e,this.originalEndLineNumber=t,this.modifiedStartLineNumber=i,this.modifiedEndLineNumber=o,this.charChanges=n}static createFromDiffResult(e,t,i,o,n,r,a){let u,d,h,m,g;if(0===t.originalLength?(u=i.getStartLineNumber(t.originalStart)-1,d=0):(u=i.getStartLineNumber(t.originalStart),d=i.getEndLineNumber(t.originalStart+t.originalLength-1)),0===t.modifiedLength?(h=o.getStartLineNumber(t.modifiedStart)-1,m=0):(h=o.getStartLineNumber(t.modifiedStart),m=o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1)),r&&t.originalLength>0&&t.originalLength<20&&t.modifiedLength>0&&t.modifiedLength<20&&n()){let r=i.createCharSequence(e,t.originalStart,t.originalStart+t.originalLength-1),c=o.createCharSequence(e,t.modifiedStart,t.modifiedStart+t.modifiedLength-1);if(r.getElements().length>0&&c.getElements().length>0){let e=s(r,c,n,!0).changes;a&&(e=function(e){if(e.length<=1)return e;let t=[e[0]],i=t[0];for(let o=1,n=e.length;o<n;o++){let n=e[o],s=n.originalStart-(i.originalStart+i.originalLength);3>Math.min(s,n.modifiedStart-(i.modifiedStart+i.modifiedLength))?(i.originalLength=n.originalStart+n.originalLength-i.originalStart,i.modifiedLength=n.modifiedStart+n.modifiedLength-i.modifiedStart):(t.push(n),i=n)}return t}(e)),g=[];for(let t=0,i=e.length;t<i;t++)g.push(l.createFromDiffChange(e[t],r,c))}}return new c(u,d,h,m,g)}}class u{constructor(e,t,i){this.shouldComputeCharChanges=i.shouldComputeCharChanges,this.shouldPostProcessCharChanges=i.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=i.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=i.shouldMakePrettyDiff,this.originalLines=e,this.modifiedLines=t,this.original=new r(e),this.modified=new r(t),this.continueLineDiff=m(i.maxComputationTime),this.continueCharDiff=m(0===i.maxComputationTime?0:Math.min(i.maxComputationTime,5e3))}computeDiff(){if(1===this.original.lines.length&&0===this.original.lines[0].length)return 1===this.modified.lines.length&&0===this.modified.lines[0].length?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};if(1===this.modified.lines.length&&0===this.modified.lines[0].length)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:[{modifiedEndColumn:0,modifiedEndLineNumber:0,modifiedStartColumn:0,modifiedStartLineNumber:0,originalEndColumn:0,originalEndLineNumber:0,originalStartColumn:0,originalStartLineNumber:0}]}]};let e=s(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),t=e.changes,i=e.quitEarly;if(this.shouldIgnoreTrimWhitespace){let e=[];for(let i=0,o=t.length;i<o;i++)e.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,t[i],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:i,changes:e}}let o=[],n=0,r=0;for(let e=-1,i=t.length;e<i;e++){let s=e+1<i?t[e+1]:null,a=s?s.originalStart:this.originalLines.length,l=s?s.modifiedStart:this.modifiedLines.length;for(;n<a&&r<l;){let e=this.originalLines[n],t=this.modifiedLines[r];if(e!==t){{let i=d(e,1),s=d(t,1);for(;i>1&&s>1;){let o=e.charCodeAt(i-2);if(o!==t.charCodeAt(s-2))break;i--,s--}(i>1||s>1)&&this._pushTrimWhitespaceCharChange(o,n+1,1,i,r+1,1,s)}{let i=h(e,1),s=h(t,1),a=e.length+1,l=t.length+1;for(;i<a&&s<l;){let t=e.charCodeAt(i-1);if(t!==e.charCodeAt(s-1))break;i++,s++}(i<a||s<l)&&this._pushTrimWhitespaceCharChange(o,n+1,i,a,r+1,s,l)}}n++,r++}s&&(o.push(c.createFromDiffResult(this.shouldIgnoreTrimWhitespace,s,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),n+=s.originalLength,r+=s.modifiedLength)}return{quitEarly:i,changes:o}}_pushTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a;if(!this._mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r))this.shouldComputeCharChanges&&(a=[new l(t,i,t,o,n,s,n,r)]),e.push(new c(t,t,n,n,a))}_mergeTrimWhitespaceCharChange(e,t,i,o,n,s,r){let a=e.length;if(0===a)return!1;let c=e[a-1];return 0!==c.originalEndLineNumber&&0!==c.modifiedEndLineNumber&&c.originalEndLineNumber+1===t&&c.modifiedEndLineNumber+1===n&&(c.originalEndLineNumber=t,c.modifiedEndLineNumber=n,this.shouldComputeCharChanges&&c.charChanges&&c.charChanges.push(new l(t,i,t,o,n,s,n,r)),!0)}}function d(e,t){let i=n.firstNonWhitespaceIndex(e);return -1===i?t:i+1}function h(e,t){let i=n.lastNonWhitespaceIndex(e);return -1===i?t:i+2}function m(e){if(0===e)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}},310067:function(e,t,i){"use strict";i.r(t),i.d(t,{score:function(){return function e(t,i,s,r,a,l){if(Array.isArray(t)){let o=0;for(let n of t){let t=e(n,i,s,r,a,l);if(10===t)return t;t>o&&(o=t)}return o}if("string"==typeof t)return r?"*"===t?5:t===s?10:0:0;if(!t)return 0;else{let{language:e,pattern:c,scheme:u,hasAccessToAllModels:d,notebookType:h}=t;if(!r&&!d)return 0;h&&a&&(i=a);let m=0;if(u){if(u===i.scheme)m=10;else{if("*"!==u)return 0;m=5}}if(e){if(e===s)m=10;else{if("*"!==e)return 0;m=Math.max(m,5)}}if(h){if(h===l)m=10;else{if("*"!==h||void 0===l)return 0;m=Math.max(m,5)}}if(c){let e;if(!((e="string"==typeof c?c:Object.assign(Object.assign({},c),{base:(0,n.normalize)(c.base)}))===i.fsPath||(0,o.match)(e,i.fsPath)))return 0;m=10}return m}}}});var o=i("379462"),n=i("555410")},464587:function(e,t,i){"use strict";i.r(t),i.d(t,{concat23Trees:function(){return n},concat23TreesOfSameHeight:function(){return s}});var o=i("992296");function n(e){if(0===e.length)return null;if(1===e.length)return e[0];let t=0;function i(){if(t>=e.length)return null;let i=t,o=e[i].listHeight;for(t++;t<e.length&&e[t].listHeight===o;)t++;return t-i>=2?s(0===i&&t===e.length?e:e.slice(i,t),!1):e[i]}let o=i(),n=i();if(!n)return o;for(let e=i();e;e=i())r(o,n)<=r(n,e)?(o=a(o,n),n=e):n=a(n,e);return a(o,n)}function s(e,t=!1){if(0===e.length)return null;if(1===e.length)return e[0];let i=e.length;for(;i>3;){let n=i>>1;for(let s=0;s<n;s++){let n=s<<1;e[s]=o.ListAstNode.create23(e[n],e[n+1],n+3===i?e[n+2]:null,t)}i=n}return o.ListAstNode.create23(e[0],e[1],i>=3?e[2]:null,t)}function r(e,t){return Math.abs(e.listHeight-t.listHeight)}function a(e,t){return e.listHeight===t.listHeight?o.ListAstNode.create23(e,t,null,!1):e.listHeight>t.listHeight?function(e,t){let i;let n=e=e.toMutable(),s=[];for(;;){if(t.listHeight===n.listHeight){i=t;break}if(4!==n.kind)throw Error("unexpected");s.push(n),n=n.makeLastElementMutable()}for(let e=s.length-1;e>=0;e--){let t=s[e];i?t.childrenLength>=3?i=o.ListAstNode.create23(t.unappendChild(),i,null,!1):(t.appendChildOfSameHeight(i),i=void 0):t.handleChildrenChanged()}return i?o.ListAstNode.create23(e,i,null,!1):e}(e,t):function(e,t){let i=e=e.toMutable(),n=[];for(;t.listHeight!==i.listHeight;){if(4!==i.kind)throw Error("unexpected");n.push(i),i=i.makeFirstElementMutable()}let s=t;for(let e=n.length-1;e>=0;e--){let t=n[e];s?t.childrenLength>=3?s=o.ListAstNode.create23(s,t.unprependChild(),null,!1):(t.prependChildOfSameHeight(s),s=void 0):t.handleChildrenChanged()}return s?o.ListAstNode.create23(s,e,null,!1):e}(t,e)}},276345:function(e,t,i){"use strict";i.r(t),i.d(t,{ColorizedBracketPairsDecorationProvider:function(){return l}});var o=i("916904"),n=i("919527"),s=i("761045"),r=i("126939"),a=i("439703");class l extends n.Disposable{constructor(e){super(),this.textModel=e,this.colorProvider=new c,this.onDidChangeEmitter=new o.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.colorizationOptions=e.getOptions().bracketPairColorizationOptions,this._register(e.bracketPairs.onDidChange(e=>{this.onDidChangeEmitter.fire()}))}handleDidChangeOptions(e){this.colorizationOptions=this.textModel.getOptions().bracketPairColorizationOptions}getDecorationsInRange(e,t,i){if(void 0===t||!this.colorizationOptions.enabled)return[];let o=[];for(let t of this.textModel.bracketPairs.getBracketsInRange(e))o.push({id:`bracket${t.range.toString()}-${t.nestingLevel}`,options:{description:"BracketPairColorization",inlineClassName:this.colorProvider.getInlineClassName(t,this.colorizationOptions.independentColorPoolPerBracketType)},ownerId:0,range:t.range});return o}getAllDecorations(e,t){return void 0!==e&&this.colorizationOptions.enabled?this.getDecorationsInRange(new s.Range(1,1,this.textModel.getLineCount(),1),e,t):[]}}class c{constructor(){this.unexpectedClosingBracketClassName="unexpected-closing-bracket"}getInlineClassName(e,t){return e.isInvalid?this.unexpectedClosingBracketClassName:this.getInlineClassNameOfLevel(t?e.nestingLevelOfEqualBracketType:e.nestingLevel)}getInlineClassNameOfLevel(e){return`bracket-highlighting-${e%30}`}}(0,a.registerThemingParticipant)((e,t)=>{let i=[r.editorBracketHighlightingForeground1,r.editorBracketHighlightingForeground2,r.editorBracketHighlightingForeground3,r.editorBracketHighlightingForeground4,r.editorBracketHighlightingForeground5,r.editorBracketHighlightingForeground6],o=new c;t.addRule(`.monaco-editor .${o.unexpectedClosingBracketClassName} { color: ${e.getColor(r.editorBracketHighlightingUnexpectedBracketForeground)}; }`);let n=i.map(t=>e.getColor(t)).filter(e=>!!e).filter(e=>!e.isTransparent());for(let e=0;e<30;e++){let i=n[e%n.length];t.addRule(`.monaco-editor .${o.getInlineClassNameOfLevel(e)} { color: ${i}; }`)}})},780801:function(e,t,i){"use strict";i.r(t),i.d(t,{OverviewRulerZone:function(){return n},OverviewZoneManager:function(){return s}});class o{constructor(e,t,i){this._colorZoneBrand=void 0,this.from=0|e,this.to=0|t,this.colorId=0|i}static compare(e,t){if(e.colorId===t.colorId)return e.from===t.from?e.to-t.to:e.from-t.from;return e.colorId-t.colorId}}class n{constructor(e,t,i,o){this._overviewRulerZoneBrand=void 0,this.startLineNumber=e,this.endLineNumber=t,this.heightInLines=i,this.color=o,this._colorZone=null}static compare(e,t){if(e.color===t.color){if(e.startLineNumber===t.startLineNumber)return e.heightInLines===t.heightInLines?e.endLineNumber-t.endLineNumber:e.heightInLines-t.heightInLines;return e.startLineNumber-t.startLineNumber}return e.color<t.color?-1:1}setColorZone(e){this._colorZone=e}getColorZones(){return this._colorZone}}class s{constructor(e){this._getVerticalOffsetForLine=e,this._zones=[],this._colorZonesInvalid=!1,this._lineHeight=0,this._domWidth=0,this._domHeight=0,this._outerHeight=0,this._pixelRatio=1,this._lastAssignedId=0,this._color2Id=Object.create(null),this._id2Color=[]}getId2Color(){return this._id2Color}setZones(e){this._zones=e,this._zones.sort(n.compare)}setLineHeight(e){return this._lineHeight!==e&&(this._lineHeight=e,this._colorZonesInvalid=!0,!0)}setPixelRatio(e){this._pixelRatio=e,this._colorZonesInvalid=!0}getDOMWidth(){return this._domWidth}getCanvasWidth(){return this._domWidth*this._pixelRatio}setDOMWidth(e){return this._domWidth!==e&&(this._domWidth=e,this._colorZonesInvalid=!0,!0)}getDOMHeight(){return this._domHeight}getCanvasHeight(){return this._domHeight*this._pixelRatio}setDOMHeight(e){return this._domHeight!==e&&(this._domHeight=e,this._colorZonesInvalid=!0,!0)}getOuterHeight(){return this._outerHeight}setOuterHeight(e){return this._outerHeight!==e&&(this._outerHeight=e,this._colorZonesInvalid=!0,!0)}resolveColorZones(){let e=this._colorZonesInvalid,t=Math.floor(this._lineHeight),i=Math.floor(this.getCanvasHeight()),n=i/Math.floor(this._outerHeight),s=Math.floor(4*this._pixelRatio/2),r=[];for(let a=0,l=this._zones.length;a<l;a++){let l=this._zones[a];if(!e){let e=l.getColorZones();if(e){r.push(e);continue}}let c=this._getVerticalOffsetForLine(l.startLineNumber),u=0===l.heightInLines?this._getVerticalOffsetForLine(l.endLineNumber)+t:c+l.heightInLines*t,d=Math.floor(n*c),h=Math.floor(n*u),m=Math.floor((d+h)/2),g=h-m;g<s&&(g=s),m-g<0&&(m=g),m+g>i&&(m=i-g);let p=l.color,f=this._color2Id[p];!f&&(f=++this._lastAssignedId,this._color2Id[p]=f,this._id2Color[f]=p);let b=new o(m-g,m+g,f);l.setColorZone(b),r.push(b)}return this._colorZonesInvalid=!1,r.sort(o.compare),r}}},243017:function(e,t,i){"use strict";i.r(t),i.d(t,{FindOptionsWidget:function(){return u}});var o=i("409737"),n=i("25806"),s=i("795832"),r=i("467518"),a=i("399742"),l=i("897085"),c=i("439703");class u extends s.Widget{constructor(e,t,i,s){super(),this._hideSoon=this._register(new r.RunOnceScheduler(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=i,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let c=s.getColorTheme().getColor(l.inputActiveOptionBorder),u=s.getColorTheme().getColor(l.inputActiveOptionForeground),d=s.getColorTheme().getColor(l.inputActiveOptionBackground);this.caseSensitive=this._register(new n.CaseSensitiveToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new n.WholeWordsToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleWholeWordCommand),isChecked:this._state.wholeWord,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new n.RegexToggle({appendTitle:this._keybindingLabelFor(a.FIND_IDS.ToggleRegexCommand),isChecked:this._state.isRegex,inputActiveOptionBorder:c,inputActiveOptionForeground:u,inputActiveOptionBackground:d})),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(e=>{let t=!1;e.isRegex&&(this.regex.checked=this._state.isRegex,t=!0),e.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,t=!0),e.matchCase&&(this.caseSensitive.checked=this._state.matchCase,t=!0),!this._state.isRevealed&&t&&this._revealTemporarily()})),this._register(o.addDisposableListener(this._domNode,o.EventType.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(o.addDisposableListener(this._domNode,"mouseover",e=>this._onMouseOver())),this._applyTheme(s.getColorTheme()),this._register(s.onDidColorThemeChange(this._applyTheme.bind(this)))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return u.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){!this._isVisible&&(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}_applyTheme(e){let t={inputActiveOptionBorder:e.getColor(l.inputActiveOptionBorder),inputActiveOptionForeground:e.getColor(l.inputActiveOptionForeground),inputActiveOptionBackground:e.getColor(l.inputActiveOptionBackground)};this.caseSensitive.style(t),this.wholeWords.style(t),this.regex.style(t)}}u.ID="editor.contrib.findOptionsWidget",(0,c.registerThemingParticipant)((e,t)=>{let i=e.getColor(l.editorWidgetBackground);i&&t.addRule(`.monaco-editor .findOptionsWidget { background-color: ${i}; }`);let o=e.getColor(l.editorWidgetForeground);o&&t.addRule(`.monaco-editor .findOptionsWidget { color: ${o}; }`);let n=e.getColor(l.widgetShadow);n&&t.addRule(`.monaco-editor .findOptionsWidget { box-shadow: 0 0 8px 2px ${n}; }`);let s=e.getColor(l.contrastBorder);s&&t.addRule(`.monaco-editor .findOptionsWidget { border: 2px solid ${s}; }`)})},457553:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("183140"),s=i("708339");class r extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomIn",label:s.localize("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()+1)}}class a extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomOut",label:s.localize("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(n.EditorZoom.getZoomLevel()-1)}}class l extends o.EditorAction{constructor(){super({id:"editor.action.fontZoomReset",label:s.localize("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){n.EditorZoom.setZoomLevel(0)}}(0,o.registerEditorAction)(r),(0,o.registerEditorAction)(a),(0,o.registerEditorAction)(l)},445281:function(e,t,i){"use strict";i.r(t);var o=i("159923"),n=i("88936"),s=i("668383"),r=i("40172");(0,o.registerEditorContribution)(s.InlayHintsController.ID,s.InlayHintsController),n.HoverParticipantRegistry.register(r.InlayHintsHover)},49429:function(e,t,i){"use strict";i.r(t),i.d(t,{GhostTextController:function(){return b},ShowNextInlineSuggestionAction:function(){return C},ShowPreviousInlineSuggestionAction:function(){return v},TriggerInlineSuggestionAction:function(){return S}});var o=i("916904"),n=i("919527"),s=i("266763"),r=i("159923"),a=i("394798"),l=i("976617"),c=i("953938"),u=i("981849"),d=i("708339"),h=i("549436"),m=i("706301"),g=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},p=function(e,t){return function(i,o){t(i,o,e)}},f=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let b=class e extends n.Disposable{constructor(e,t){super(),this.editor=e,this.instantiationService=t,this.triggeredExplicitly=!1,this.activeController=this._register(new n.MutableDisposable),this.activeModelDidChangeEmitter=this._register(new o.Emitter),this._register(this.editor.onDidChangeModel(()=>{this.updateModelController()})),this._register(this.editor.onDidChangeConfiguration(e=>{e.hasChanged(108)&&this.updateModelController(),e.hasChanged(57)&&this.updateModelController()})),this.updateModelController()}static get(t){return t.getContribution(e.ID)}get activeModel(){var e;return null===(e=this.activeController.value)||void 0===e?void 0:e.model}updateModelController(){let e=this.editor.getOption(108),t=this.editor.getOption(57);this.activeController.value=void 0,this.activeController.value=this.editor.hasModel()&&(e.preview||t.enabled||this.triggeredExplicitly)?this.instantiationService.createInstance(y,this.editor):void 0,this.activeModelDidChangeEmitter.fire()}shouldShowHoverAt(e){var t;return(null===(t=this.activeModel)||void 0===t?void 0:t.shouldShowHoverAt(e))||!1}shouldShowHoverAtViewZone(e){var t,i;return(null===(i=null===(t=this.activeController.value)||void 0===t?void 0:t.widget)||void 0===i?void 0:i.shouldShowHoverAtViewZone(e))||!1}trigger(){var e;this.triggeredExplicitly=!0,!this.activeController.value&&this.updateModelController(),null===(e=this.activeModel)||void 0===e||e.triggerInlineCompletion()}commit(){var e;null===(e=this.activeModel)||void 0===e||e.commitInlineCompletion()}hide(){var e;null===(e=this.activeModel)||void 0===e||e.hideInlineCompletion()}showNextInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showNextInlineCompletion()}showPreviousInlineCompletion(){var e;null===(e=this.activeModel)||void 0===e||e.showPreviousInlineCompletion()}hasMultipleInlineCompletions(){var e;return f(this,void 0,void 0,function*(){let t=yield null===(e=this.activeModel)||void 0===e?void 0:e.hasMultipleInlineCompletions();return void 0!==t&&t})}};b.inlineSuggestionVisible=new h.RawContextKey("inlineSuggestionVisible",!1,d.localize("inlineSuggestionVisible","Whether an inline suggestion is visible")),b.inlineSuggestionHasIndentation=new h.RawContextKey("inlineSuggestionHasIndentation",!1,d.localize("inlineSuggestionHasIndentation","Whether the inline suggestion starts with whitespace")),b.inlineSuggestionHasIndentationLessThanTabSize=new h.RawContextKey("inlineSuggestionHasIndentationLessThanTabSize",!0,d.localize("inlineSuggestionHasIndentationLessThanTabSize","Whether the inline suggestion starts with whitespace that is less than what would be inserted by tab")),b.ID="editor.contrib.ghostTextController",b=g([p(1,m.IInstantiationService)],b);class _{constructor(e){this.contextKeyService=e,this.inlineCompletionVisible=b.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=b.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=b.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService)}}let y=class extends n.Disposable{constructor(e,t,i){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=i,this.contextKeys=new _(this.contextKeyService),this.model=this._register(this.instantiationService.createInstance(c.GhostTextModel,this.editor)),this.widget=this._register(this.instantiationService.createInstance(u.GhostTextWidget,this.editor,this.model)),this._register((0,n.toDisposable)(()=>{this.contextKeys.inlineCompletionVisible.set(!1),this.contextKeys.inlineCompletionSuggestsIndentation.set(!1),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(!0)})),this._register(this.model.onDidChange(()=>{this.updateContextKeys()})),this.updateContextKeys()}updateContextKeys(){var e;this.contextKeys.inlineCompletionVisible.set((null===(e=this.model.activeInlineCompletionsModel)||void 0===e?void 0:e.ghostText)!==void 0);let t=!1,i=!0,o=this.model.inlineCompletionsModel.ghostText;if(this.model.activeInlineCompletionsModel&&o&&o.parts.length>0){let{column:e,lines:n}=o.parts[0],r=n[0],l=this.editor.getModel().getLineIndentColumn(o.lineNumber);if(e<=l){let e=(0,s.firstNonWhitespaceIndex)(r);-1===e&&(e=r.length-1),t=e>0;let o=this.editor.getModel().getOptions().tabSize;i=a.CursorColumns.visibleColumnFromColumn(r,e+1,o)<o}}this.contextKeys.inlineCompletionSuggestsIndentation.set(t),this.contextKeys.inlineCompletionSuggestsIndentationLessThanTabSize.set(i)}};y=g([p(1,m.IInstantiationService),p(2,h.IContextKeyService)],y);class C extends r.EditorAction{constructor(){super({id:C.ID,label:d.localize("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:601}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showNextInlineCompletion(),t.focus())})}}C.ID="editor.action.inlineSuggest.showNext";class v extends r.EditorAction{constructor(){super({id:v.ID,label:d.localize("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:h.ContextKeyExpr.and(l.EditorContextKeys.writable,b.inlineSuggestionVisible),kbOpts:{weight:100,primary:599}})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&(e.showPreviousInlineCompletion(),t.focus())})}}v.ID="editor.action.inlineSuggest.showPrevious";class S extends r.EditorAction{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:d.localize("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:l.EditorContextKeys.writable})}run(e,t){return f(this,void 0,void 0,function*(){let e=b.get(t);e&&e.trigger()})}}},265628:function(e,t,i){"use strict";i.r(t),i.d(t,{SuggestWidgetInlineCompletionProvider:function(){return m}});var o=i("603868"),n=i("467518"),s=i("916904"),r=i("919527"),a=i("457938"),l=i("761045"),c=i("259842"),u=i("718628"),d=i("258156"),h=i("211962");class m extends r.Disposable{constructor(e,t){super(),this.editor=e,this.suggestControllerPreselector=t,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this.onDidChangeEmitter=new s.Emitter,this.onDidChange=this.onDidChangeEmitter.event,this.setInactiveDelayed=this._register(new n.RunOnceScheduler(()=>{!this.isSuggestWidgetVisible&&this._isActive&&(this._isActive=!1,this.onDidChangeEmitter.fire())},100)),this._register(e.onKeyDown(e=>{e.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(e=>{e.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let i=d.SuggestController.get(this.editor);if(i){this._register(i.registerSelector({priority:100,select:(e,t,n)=>{let s=this.editor.getModel(),r=(0,h.minimizeInlineCompletion)(s,this.suggestControllerPreselector());if(!r)return -1;let l=a.Position.lift(t),c=n.map((e,t)=>{let o=g(i,l,e,this.isShiftKeyPressed),n=(0,h.minimizeInlineCompletion)(s,null==o?void 0:o.normalizedInlineCompletion);if(!!n)return{index:t,valid:function(e,t){return t.startLineNumber===e.startLineNumber&&t.startColumn===e.startColumn&&(t.endLineNumber<e.endLineNumber||t.endLineNumber===e.endLineNumber&&t.endColumn<=e.endColumn)}(r.range,n.range)&&r.insertText.startsWith(n.insertText),prefixLength:n.insertText.length,suggestItem:e}}).filter(e=>e&&e.valid),u=(0,o.findMaxBy)(c,(0,o.compareBy)(e=>e.prefixLength,o.numberComparator));return u?u.index:-1}}));let e=!1,t=()=>{!e&&(e=!0,this._register(i.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(i.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.setInactiveDelayed.schedule(),this.update(this._isActive)})),this._register(i.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(s.Event.once(i.model.onDidTrigger)(e=>{t()}))}this.update(this._isActive)}get state(){if(this._isActive)return{selectedItem:this._currentSuggestItemInfo}}update(e){let t=this.getSuggestItemInfo(),i=!1;!function(e,t){return e===t||!!e&&!!t&&e.completionItemKind===t.completionItemKind&&e.isSnippetText===t.isSnippetText&&(0,h.normalizedInlineCompletionsEquals)(e.normalizedInlineCompletion,t.normalizedInlineCompletion)}(this._currentSuggestItemInfo,t)&&(this._currentSuggestItemInfo=t,i=!0),this._isActive!==e&&(this._isActive=e,i=!0),i&&this.onDidChangeEmitter.fire()}getSuggestItemInfo(){let e=d.SuggestController.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem();if(t)return g(e,this.editor.getPosition(),t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.stopForceRenderingAbove()}forceRenderingAbove(){let e=d.SuggestController.get(this.editor);e&&e.forceRenderingAbove()}}function g(e,t,i,o){if(Array.isArray(i.completion.additionalTextEdits)&&i.completion.additionalTextEdits.length>0)return{completionItemKind:i.completion.kind,isSnippetText:!1,normalizedInlineCompletion:{range:l.Range.fromPositions(t,t),insertText:"",filterText:"",snippetInfo:void 0,additionalTextEdits:[]}};let{insertText:n}=i.completion,s=!1;if(4&i.completion.insertTextRules){let i=new c.SnippetParser().parse(n),o=e.editor.getModel();if(i.children.length>100)return;u.SnippetSession.adjustWhitespace(o,t,i,!0,!0),n=i.toString(),s=!0}let r=e.getOverwriteInfo(i,o);return{isSnippetText:s,completionItemKind:i.completion.kind,normalizedInlineCompletion:{insertText:n,filterText:n,range:l.Range.fromPositions(t.delta(0,-r.overwriteBefore),t.delta(0,Math.max(r.overwriteAfter,0))),snippetInfo:void 0,additionalTextEdits:[]}}}},209882:function(e,t,i){"use strict";i.r(t),i.d(t,{getLinks:function(){return f}});var o=i("603868"),n=i("500862"),s=i("161111"),r=i("919527"),a=i("744138"),l=i("938505"),c=i("761045"),u=i("357233"),d=i("326896"),h=i("678540"),m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};class g{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return m(this,void 0,void 0,function*(){return this._link.url?this._link.url:"function"==typeof this._provider.resolveLink?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url)?this.resolve(e):Promise.reject(Error("missing"))):Promise.reject(Error("missing"))})}}class p{constructor(e){this._disposables=new r.DisposableStore;let t=[];for(let[i,o]of e){let e=i.links.map(e=>new g(e,o));t=p._union(t,e),(0,r.isDisposable)(i)&&this._disposables.add(i)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let i,o,n,s;let r=[];for(i=0,n=0,o=e.length,s=t.length;i<o&&n<s;){let o=e[i],s=t[n];if(c.Range.areIntersectingOrTouching(o.range,s.range)){i++;continue}0>c.Range.compareRangesUsingStarts(o.range,s.range)?(r.push(o),i++):(r.push(s),n++)}for(;i<o;i++)r.push(e[i]);for(;n<s;n++)r.push(t[n]);return r}}function f(e,t,i){let n=[];return Promise.all(e.ordered(t).reverse().map((e,o)=>Promise.resolve(e.provideLinks(t,i)).then(t=>{t&&(n[o]=[t,e])},s.onUnexpectedExternalError))).then(()=>{let e=new p((0,o.coalesce)(n));return i.isCancellationRequested?(e.dispose(),new p([])):e})}d.CommandsRegistry.registerCommand("_executeLinkProvider",(e,...t)=>m(void 0,void 0,void 0,function*(){let[i,o]=t;(0,a.assertType)(i instanceof l.URI),"number"!=typeof o&&(o=0);let{linkProvider:s}=e.get(h.ILanguageFeaturesService),r=e.get(u.IModelService).getModel(i);if(!r)return[];let c=yield f(s,r,n.CancellationToken.None);if(!c)return[];for(let e=0;e<Math.min(o,c.links.length);e++)yield c.links[e].resolve(n.CancellationToken.None);let d=c.links.slice(0);return c.dispose(),d}))},402304:function(e,t,i){"use strict";i.r(t),i.d(t,{MessageController:function(){return h}});var o,n,s=i("794555"),r=i("467518"),a=i("919527");i("178697");var l=i("159923"),c=i("761045"),u=i("708339"),d=i("549436");let h=class e{constructor(t,i){this._messageWidget=new a.MutableDisposable,this._messageListeners=new a.DisposableStore,this._editor=t,this._visible=e.MESSAGE_VISIBLE.bindTo(i)}static get(t){return t.getContribution(e.ID)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){let i;(0,s.alert)(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new g(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new r.TimeoutTimer(()=>this.closeMessage(),3e3)),this._messageListeners.add(this._editor.onMouseMove(e=>{e.target.position&&(i?!i.containsPosition(e.target.position)&&this.closeMessage():i=new c.Range(t.lineNumber-3,1,e.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(g.fadeOut(this._messageWidget.value))}};h.ID="editor.contrib.messageController",h.MESSAGE_VISIBLE=new d.RawContextKey("messageVisible",!1,u.localize("messageVisible","Whether the editor is currently showing an inline message")),h=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(o=1,n=d.IContextKeyService,function(e,t){n(e,t,1)})],h);let m=l.EditorCommand.bindToContribution(h.get);(0,l.registerEditorCommand)(new m({id:"leaveEditorMessage",precondition:h.MESSAGE_VISIBLE,handler:e=>e.closeMessage(),kbOpts:{weight:130,primary:9}}));class g{constructor(e,{lineNumber:t,column:i},o){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let n=document.createElement("div");n.classList.add("anchor","top"),this._domNode.appendChild(n);let s=document.createElement("div");s.classList.add("message"),s.textContent=o,this._domNode.appendChild(s);let r=document.createElement("div");r.classList.add("anchor","below"),this._domNode.appendChild(r),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",2===e)}}(0,l.registerEditorContribution)(h.ID,h)},195635:function(e,t,i){"use strict";i.r(t);var o=i("871628"),n=i("708339"),s=i("897085"),r=i("439703");let a=(0,s.registerColor)("symbolIcon.arrayForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=(0,s.registerColor)("symbolIcon.booleanForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=(0,s.registerColor)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=(0,s.registerColor)("symbolIcon.colorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=(0,s.registerColor)("symbolIcon.constantForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),h=(0,s.registerColor)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=(0,s.registerColor)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),g=(0,s.registerColor)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=(0,s.registerColor)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},(0,n.localize)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=(0,s.registerColor)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),b=(0,s.registerColor)("symbolIcon.fileForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=(0,s.registerColor)("symbolIcon.folderForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=(0,s.registerColor)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),C=(0,s.registerColor)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=(0,s.registerColor)("symbolIcon.keyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),S=(0,s.registerColor)("symbolIcon.keywordForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=(0,s.registerColor)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},(0,n.localize)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=(0,s.registerColor)("symbolIcon.moduleForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=(0,s.registerColor)("symbolIcon.namespaceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),I=(0,s.registerColor)("symbolIcon.nullForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=(0,s.registerColor)("symbolIcon.numberForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=(0,s.registerColor)("symbolIcon.objectForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),T=(0,s.registerColor)("symbolIcon.operatorForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),D=(0,s.registerColor)("symbolIcon.packageForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),N=(0,s.registerColor)("symbolIcon.propertyForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=(0,s.registerColor)("symbolIcon.referenceForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),M=(0,s.registerColor)("symbolIcon.snippetForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),O=(0,s.registerColor)("symbolIcon.stringForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=(0,s.registerColor)("symbolIcon.structForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),P=(0,s.registerColor)("symbolIcon.textForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),F=(0,s.registerColor)("symbolIcon.typeParameterForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),K=(0,s.registerColor)("symbolIcon.unitForeground",{dark:s.foreground,light:s.foreground,hcDark:s.foreground,hcLight:s.foreground},(0,n.localize)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=(0,s.registerColor)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},(0,n.localize)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));(0,r.registerThemingParticipant)((e,t)=>{let i=e.getColor(a);i&&t.addRule(`${o.Codicon.symbolArray.cssSelector} { color: ${i}; }`);let n=e.getColor(l);n&&t.addRule(`${o.Codicon.symbolBoolean.cssSelector} { color: ${n}; }`);let s=e.getColor(c);s&&t.addRule(`${o.Codicon.symbolClass.cssSelector} { color: ${s}; }`);let r=e.getColor(w);r&&t.addRule(`${o.Codicon.symbolMethod.cssSelector} { color: ${r}; }`);let V=e.getColor(u);V&&t.addRule(`${o.Codicon.symbolColor.cssSelector} { color: ${V}; }`);let W=e.getColor(d);W&&t.addRule(`${o.Codicon.symbolConstant.cssSelector} { color: ${W}; }`);let U=e.getColor(h);U&&t.addRule(`${o.Codicon.symbolConstructor.cssSelector} { color: ${U}; }`);let H=e.getColor(m);H&&t.addRule(`
|
|
393
|
+
${o.Codicon.symbolValue.cssSelector},${o.Codicon.symbolEnum.cssSelector} { color: ${H}; }`);let z=e.getColor(g);z&&t.addRule(`${o.Codicon.symbolEnumMember.cssSelector} { color: ${z}; }`);let $=e.getColor(p);$&&t.addRule(`${o.Codicon.symbolEvent.cssSelector} { color: ${$}; }`);let q=e.getColor(f);q&&t.addRule(`${o.Codicon.symbolField.cssSelector} { color: ${q}; }`);let j=e.getColor(b);j&&t.addRule(`${o.Codicon.symbolFile.cssSelector} { color: ${j}; }`);let G=e.getColor(_);G&&t.addRule(`${o.Codicon.symbolFolder.cssSelector} { color: ${G}; }`);let Z=e.getColor(y);Z&&t.addRule(`${o.Codicon.symbolFunction.cssSelector} { color: ${Z}; }`);let Q=e.getColor(C);Q&&t.addRule(`${o.Codicon.symbolInterface.cssSelector} { color: ${Q}; }`);let Y=e.getColor(v);Y&&t.addRule(`${o.Codicon.symbolKey.cssSelector} { color: ${Y}; }`);let X=e.getColor(S);X&&t.addRule(`${o.Codicon.symbolKeyword.cssSelector} { color: ${X}; }`);let J=e.getColor(k);J&&t.addRule(`${o.Codicon.symbolModule.cssSelector} { color: ${J}; }`);let ee=e.getColor(E);ee&&t.addRule(`${o.Codicon.symbolNamespace.cssSelector} { color: ${ee}; }`);let et=e.getColor(I);et&&t.addRule(`${o.Codicon.symbolNull.cssSelector} { color: ${et}; }`);let ei=e.getColor(L);ei&&t.addRule(`${o.Codicon.symbolNumber.cssSelector} { color: ${ei}; }`);let eo=e.getColor(x);eo&&t.addRule(`${o.Codicon.symbolObject.cssSelector} { color: ${eo}; }`);let en=e.getColor(T);en&&t.addRule(`${o.Codicon.symbolOperator.cssSelector} { color: ${en}; }`);let es=e.getColor(D);es&&t.addRule(`${o.Codicon.symbolPackage.cssSelector} { color: ${es}; }`);let er=e.getColor(N);er&&t.addRule(`${o.Codicon.symbolProperty.cssSelector} { color: ${er}; }`);let ea=e.getColor(A);ea&&t.addRule(`${o.Codicon.symbolReference.cssSelector} { color: ${ea}; }`);let el=e.getColor(M);el&&t.addRule(`${o.Codicon.symbolSnippet.cssSelector} { color: ${el}; }`);let ec=e.getColor(O);ec&&t.addRule(`${o.Codicon.symbolString.cssSelector} { color: ${ec}; }`);let eu=e.getColor(R);eu&&t.addRule(`${o.Codicon.symbolStruct.cssSelector} { color: ${eu}; }`);let ed=e.getColor(P);ed&&t.addRule(`${o.Codicon.symbolText.cssSelector} { color: ${ed}; }`);let eh=e.getColor(F);eh&&t.addRule(`${o.Codicon.symbolTypeParameter.cssSelector} { color: ${eh}; }`);let em=e.getColor(K);em&&t.addRule(`${o.Codicon.symbolUnit.cssSelector} { color: ${em}; }`);let eg=e.getColor(B);eg&&t.addRule(`${o.Codicon.symbolVariable.cssSelector} { color: ${eg}; }`)})},196444:function(e,t,i){"use strict";i.r(t);var o=i("919527"),n=i("437454"),s=i("159923"),r=i("583368"),a=i("708339"),l=i("664641"),c=function(e,t){return function(i,o){t(i,o,e)}};let u="ignoreUnusualLineTerminators",d=class extends o.Disposable{constructor(e,t,i){super(),this._editor=e,this._dialogService=t,this._codeEditorService=i,this._config=this._editor.getOption(116),this._register(this._editor.onDidChangeConfiguration(e=>{e.hasChanged(116)&&(this._config=this._editor.getOption(116),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(e=>{!e.isUndoing&&this._checkForUnusualLineTerminators()}))}_checkForUnusualLineTerminators(){var e,t,i,o;return e=this,t=void 0,i=void 0,o=function*(){var e,t;if("off"===this._config||!this._editor.hasModel())return;let i=this._editor.getModel();if(!i.mightContainUnusualLineTerminators())return;if(!(!0===(e=this._codeEditorService,t=i,e.getModelProperty(t.uri,u))||this._editor.getOption(83))){if("auto"===this._config){i.removeUnusualLineTerminators(this._editor.getSelections());return}if(!(yield this._dialogService.confirm({title:a.localize("unusualLineTerminators.title","Unusual Line Terminators"),message:a.localize("unusualLineTerminators.message","Detected unusual line terminators"),detail:a.localize("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",(0,n.basename)(i.uri)),primaryButton:a.localize("unusualLineTerminators.fix","Remove Unusual Line Terminators"),secondaryButton:a.localize("unusualLineTerminators.ignore","Ignore")})).confirmed){!function(e,t,i){e.setModelProperty(t.uri,u,i)}(this._codeEditorService,i,!0);return}i.removeUnusualLineTerminators(this._editor.getSelections())}},new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})}};d.ID="editor.contrib.unusualLineTerminatorsDetector",d=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([c(1,l.IDialogService),c(2,r.ICodeEditorService)],d),(0,s.registerEditorContribution)(d.ID,d)},911465:function(e,t,i){"use strict";i.r(t);var o,n,s=i("432682"),r=i("112721"),a=i("507194"),l=i("583368"),c=i("744138"),u=i("782272"),d=i("916904"),h=i("159923"),m=i("976617"),g=i("479895");let p=class extends s.AbstractGotoLineQuickAccessProvider{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=d.Event.None}get activeTextEditorControl(){return(0,c.withNullAsUndefined)(this.editorService.getFocusedCodeEditor())}};p=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([(o=0,n=l.ICodeEditorService,function(e,t){n(e,t,0)})],p);class f extends h.EditorAction{constructor(){super({id:f.ID,label:u.GoToLineNLS.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:m.EditorContextKeys.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(g.IQuickInputService).quickAccess.show(p.PREFIX)}}f.ID="editor.action.gotoLine",(0,h.registerEditorAction)(f),r.Registry.as(a.Extensions.Quickaccess).registerQuickAccessProvider({ctor:p,prefix:p.PREFIX,helpEntries:[{description:u.GoToLineNLS.gotoLineActionLabel,commandId:f.ID}]})},747562:function(e,t,i){"use strict";i.r(t),i.d(t,{EditorScopedLayoutService:function(){return d}});var o=i("409737"),n=i("916904"),s=i("280655"),r=i("583368"),a=i("772243"),l=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},c=function(e,t){return function(i,o){t(i,o,e)}};let u=class{constructor(e){this._codeEditorService=e,this.onDidLayout=n.Event.None,this.offset={top:0,quickPickTop:0}}get dimension(){return!this._dimension&&(this._dimension=o.getClientArea(window.document.body)),this._dimension}get hasContainer(){return!1}get container(){throw Error("ILayoutService.container is not available in the standalone editor!")}focus(){var e;null===(e=this._codeEditorService.getFocusedCodeEditor())||void 0===e||e.focus()}};u=l([c(0,r.ICodeEditorService)],u);let d=class extends u{constructor(e,t){super(t),this._container=e}get hasContainer(){return!1}get container(){return this._container}};d=l([c(1,r.ICodeEditorService)],d),(0,a.registerSingleton)(s.ILayoutService,u)},175526:function(e,t,i){"use strict";i.r(t),i.d(t,{HC_BLACK_THEME_NAME:function(){return y},HC_LIGHT_THEME_NAME:function(){return C},StandaloneThemeService:function(){return L},VS_DARK_THEME_NAME:function(){return _},VS_LIGHT_THEME_NAME:function(){return b}});var o=i("409737"),n=i("259527"),s=i("835271"),r=i("916904"),a=i("274854"),l=i("755699"),c=i("464618"),u=i("168658"),d=i("112721"),h=i("897085"),m=i("439703"),g=i("919527"),p=i("774697"),f=i("791563");let b="vs",_="vs-dark",y="hc-black",C="hc-light",v=d.Registry.as(h.Extensions.ColorContribution),S=d.Registry.as(m.Extensions.ThemingContribution);class w{constructor(e,t){this.semanticHighlighting=!1,this.themeData=t;let i=t.base;e.length>0?(k(e)?this.id=e:this.id=i+" "+e,this.themeName=e):(this.id=i,this.themeName=i),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}get base(){return this.themeData.base}notifyBaseUpdated(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)}getColors(){if(!this.colors){let e=new Map;for(let t in this.themeData.colors)e.set(t,s.Color.fromHex(this.themeData.colors[t]));if(this.themeData.inherit){let t=E(this.themeData.base);for(let i in t.colors)!e.has(i)&&e.set(i,s.Color.fromHex(t.colors[i]))}this.colors=e}return this.colors}getColor(e,t){let i=this.getColors().get(e);return i?i:!1!==t?this.getDefault(e):void 0}getDefault(e){let t=this.defaultColors[e];return t?t:(t=v.resolveDefaultColor(e,this),this.defaultColors[e]=t,t)}defines(e){return Object.prototype.hasOwnProperty.call(this.getColors(),e)}get type(){switch(this.base){case b:return p.ColorScheme.LIGHT;case y:return p.ColorScheme.HIGH_CONTRAST_DARK;case C:return p.ColorScheme.HIGH_CONTRAST_LIGHT;default:return p.ColorScheme.DARK}}get tokenTheme(){if(!this._tokenTheme){let e=[],t=[];if(this.themeData.inherit){let i=E(this.themeData.base);e=i.rules,i.encodedTokensColors&&(t=i.encodedTokensColors)}let i=this.themeData.colors["editor.foreground"],o=this.themeData.colors["editor.background"];if(i||o){let t={token:""};i&&(t.foreground=i),o&&(t.background=o),e.push(t)}e=e.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors),this._tokenTheme=c.TokenTheme.createFromRawTokenTheme(e,t)}return this._tokenTheme}getTokenStyleMetadata(e,t,i){let o=this.tokenTheme._match([e].concat(t).join(".")).metadata,n=l.TokenMetadata.getForeground(o),s=l.TokenMetadata.getFontStyle(o);return{foreground:n,italic:!!(1&s),bold:!!(2&s),underline:!!(4&s),strikethrough:!!(8&s)}}}function k(e){return e===b||e===_||e===y||e===C}function E(e){switch(e){case b:return u.vs;case _:return u.vs_dark;case y:return u.hc_black;case C:return u.hc_light}}function I(e){let t=E(e);return new w(e,t)}class L extends g.Disposable{constructor(){super(),this._onColorThemeChange=this._register(new r.Emitter),this.onDidColorThemeChange=this._onColorThemeChange.event,this._onProductIconThemeChange=this._register(new r.Emitter),this.onDidProductIconThemeChange=this._onProductIconThemeChange.event,this._environment=Object.create(null),this._builtInProductIconTheme=new f.UnthemedProductIconTheme,this._autoDetectHighContrast=!0,this._knownThemes=new Map,this._knownThemes.set(b,I(b)),this._knownThemes.set(_,I(_)),this._knownThemes.set(y,I(y)),this._knownThemes.set(C,I(C));let e=(0,f.getIconsStyleSheet)(this);this._codiconCSS=e.getCSS(),this._themeCSS="",this._allCSS=`${this._codiconCSS}
|
|
394
|
+
${this._themeCSS}`,this._globalStyleElement=null,this._styleElements=[],this._colorMapOverride=null,this.setTheme(b),this._onOSSchemeChanged(),e.onDidChange(()=>{this._codiconCSS=e.getCSS(),this._updateCSS()}),(0,n.addMatchMediaChangeListener)("(forced-colors: active)",()=>{this._onOSSchemeChanged()})}registerEditorContainer(e){return o.isInShadowDOM(e)?this._registerShadowDomContainer(e):this._registerRegularEditorContainer()}_registerRegularEditorContainer(){return!this._globalStyleElement&&(this._globalStyleElement=o.createStyleSheet(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.textContent=this._allCSS,this._styleElements.push(this._globalStyleElement)),g.Disposable.None}_registerShadowDomContainer(e){let t=o.createStyleSheet(e);return t.className="monaco-colors",t.textContent=this._allCSS,this._styleElements.push(t),{dispose:()=>{for(let e=0;e<this._styleElements.length;e++)if(this._styleElements[e]===t){this._styleElements.splice(e,1);return}}}}defineTheme(e,t){if(!/^[a-z0-9\-]+$/i.test(e))throw Error("Illegal theme name!");if(!k(t.base)&&!k(e))throw Error("Illegal theme base!");this._knownThemes.set(e,new w(e,t)),k(e)&&this._knownThemes.forEach(t=>{t.base===e&&t.notifyBaseUpdated()}),this._theme.themeName===e&&this.setTheme(e)}getColorTheme(){return this._theme}setColorMapOverride(e){this._colorMapOverride=e,this._updateThemeOrColorMap()}setTheme(e){let t;t=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(b),this._updateActualTheme(t)}_updateActualTheme(e){e&&this._theme!==e&&(this._theme=e,this._updateThemeOrColorMap())}_onOSSchemeChanged(){if(this._autoDetectHighContrast){let e=window.matchMedia("(forced-colors: active)").matches;if(e!==(0,p.isHighContrast)(this._theme.type)){let t;t=(0,p.isDark)(this._theme.type)?e?y:_:e?C:b,this._updateActualTheme(this._knownThemes.get(t))}}}setAutoDetectHighContrast(e){this._autoDetectHighContrast=e,this._onOSSchemeChanged()}_updateThemeOrColorMap(){let e=[],t={},i={addRule:i=>{!t[i]&&(e.push(i),t[i]=!0)}};S.getThemingParticipants().forEach(e=>e(this._theme,i,this._environment));let o=[];for(let e of v.getColors()){let t=this._theme.getColor(e.id,!0);t&&o.push(`${(0,h.asCssVariableName)(e.id)}: ${t.toString()};`)}i.addRule(`.monaco-editor { ${o.join("\n")} }`);let n=this._colorMapOverride||this._theme.tokenTheme.getColorMap();i.addRule((0,c.generateTokensCSSForColorMap)(n)),this._themeCSS=e.join("\n"),this._updateCSS(),a.TokenizationRegistry.setColorMap(n),this._onColorThemeChange.fire(this._theme)}_updateCSS(){this._allCSS=`${this._codiconCSS}
|
|
395
|
+
${this._themeCSS}`,this._styleElements.forEach(e=>e.textContent=this._allCSS)}getFileIconTheme(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}}getProductIconTheme(){return this._builtInProductIconTheme}}},182498:function(e,t,i){"use strict";i.r(t),i.d(t,{MenuEntryActionViewItem:function(){return I},createActionViewItem:function(){return T},createAndFillInActionBarActions:function(){return E}});var o=i("409737"),n=i("85763"),s=i("268587"),r=i("998200"),a=i("431453"),l=i("102881"),c=i("919527"),u=i("207875");i("519625");var d=i("708339"),h=i("351553"),m=i("549436"),g=i("158935"),p=i("706301"),f=i("534752"),b=i("297669"),_=i("243692"),y=i("439703"),C=i("774697"),v=i("744138"),S=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r},w=function(e,t){return function(i,o){t(i,o,e)}},k=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function E(e,t,i,o,n,s,r){let l=e.getActions(t);return function(e,t,i,o=e=>"navigation"===e,n=Number.MAX_SAFE_INTEGER,s=()=>!1,r=!1){let l,c;Array.isArray(t)?(l=t,c=t):(l=t.primary,c=t.secondary);let u=new Set;for(let[t,n]of e){let e;for(let s of(o(t)?(e=l).length>0&&r&&e.push(new a.Separator):(e=c).length>0&&e.push(new a.Separator),n)){i&&(s=s instanceof h.MenuItemAction&&s.alt?s.alt:s);let o=e.push(s);s instanceof a.SubmenuAction&&u.add({group:t,action:s,index:o-1})}}for(let{group:e,action:t,index:i}of u){let r=o(e)?l:c,a=t.actions;(a.length<=1||r.length+a.length-2<=n)&&s(t,e,r.length)&&r.splice(i,1,...a)}if(l!==c&&l.length>n){let e=l.splice(n,l.length-n);c.unshift(...e,new a.Separator)}}(l,i,!1,"string"==typeof o?e=>e===o:o,n,s,r),function(e){let t=new c.DisposableStore;for(let[,i]of e)for(let e of i)t.add(e);return t}(l)}let I=class extends s.ActionViewItem{constructor(e,t,i,n,s,r,a){super(void 0,e,{icon:!!(e.class||e.item.icon),label:!e.class&&!e.item.icon,draggable:null==t?void 0:t.draggable,keybinding:null==t?void 0:t.keybinding,hoverDelegate:null==t?void 0:t.hoverDelegate}),this._keybindingService=i,this._notificationService=n,this._contextKeyService=s,this._themeService=r,this._contextMenuService=a,this._wantsAltCommand=!1,this._itemClassDispose=this._register(new c.MutableDisposable),this._altKey=o.ModifierKeyEmitter.getInstance()}get _menuItemAction(){return this._action}get _commandAction(){return this._wantsAltCommand&&this._menuItemAction.alt||this._menuItemAction}onClick(e){return k(this,void 0,void 0,function*(){e.preventDefault(),e.stopPropagation();try{yield this.actionRunner.run(this._commandAction,this._context)}catch(e){this._notificationService.error(e)}})}render(e){super.render(e),e.classList.add("menu-entry"),this._updateItemClass(this._menuItemAction.item);let t=!1,i=this._altKey.keyStatus.altKey||(u.isWindows||u.isLinux)&&this._altKey.keyStatus.shiftKey,n=()=>{var e;let o=t&&i&&!!(null===(e=this._commandAction.alt)||void 0===e?void 0:e.enabled);o!==this._wantsAltCommand&&(this._wantsAltCommand=o,this.updateLabel(),this.updateTooltip(),this.updateClass())};this._menuItemAction.alt&&this._register(this._altKey.event(e=>{i=e.altKey||(u.isWindows||u.isLinux)&&e.shiftKey,n()})),this._register((0,o.addDisposableListener)(e,"mouseleave",e=>{t=!1,n()})),this._register((0,o.addDisposableListener)(e,"mouseenter",e=>{t=!0,n()}))}updateLabel(){this.options.label&&this.label&&(this.label.textContent=this._commandAction.label)}getTooltip(){var e;let t=this._keybindingService.lookupKeybinding(this._commandAction.id,this._contextKeyService),i=t&&t.getLabel(),o=this._commandAction.tooltip||this._commandAction.label,n=i?(0,d.localize)("titleAndKb","{0} ({1})",o,i):o;if(!this._wantsAltCommand&&(null===(e=this._menuItemAction.alt)||void 0===e?void 0:e.enabled)){let e=this._menuItemAction.alt.tooltip||this._menuItemAction.alt.label,t=this._keybindingService.lookupKeybinding(this._menuItemAction.alt.id,this._contextKeyService),i=t&&t.getLabel(),o=i?(0,d.localize)("titleAndKb","{0} ({1})",e,i):e;n=(0,d.localize)("titleAndKbAndAlt","{0}\n[{1}] {2}",n,l.UILabelProvider.modifierLabels[u.OS].altKey,o)}return n}updateClass(){this.options.icon&&(this._commandAction!==this._menuItemAction?this._menuItemAction.alt&&this._updateItemClass(this._menuItemAction.alt.item):this._updateItemClass(this._menuItemAction.item))}_updateItemClass(e){var t;this._itemClassDispose.value=void 0;let{element:i,label:n}=this;if(!i||!n)return;let s=this._commandAction.checked&&(null===(t=e.toggled)||void 0===t?void 0:t.icon)?e.toggled.icon:e.icon;if(s){if(y.ThemeIcon.isThemeIcon(s)){let e=y.ThemeIcon.asClassNameArray(s);n.classList.add(...e),this._itemClassDispose.value=(0,c.toDisposable)(()=>{n.classList.remove(...e)})}else n.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(s.dark):(0,o.asCSSUrl)(s.light),n.classList.add("icon"),this._itemClassDispose.value=(0,c.combinedDisposable)((0,c.toDisposable)(()=>{n.style.backgroundImage="",n.classList.remove("icon")}),this._themeService.onDidColorThemeChange(()=>{this.updateClass()}))}}};I=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,m.IContextKeyService),w(5,y.IThemeService),w(6,g.IContextMenuService)],I);let L=class extends r.DropdownMenuActionViewItem{constructor(e,t,i,o){var n,s;super(e,{getActions:()=>e.actions},i,Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null!==(n=null==t?void 0:t.menuAsChild)&&void 0!==n&&n,classNames:null!==(s=null==t?void 0:t.classNames)&&void 0!==s?s:y.ThemeIcon.isThemeIcon(e.item.icon)?y.ThemeIcon.asClassName(e.item.icon):void 0})),this._contextMenuService=i,this._themeService=o}render(e){super.render(e),(0,v.assertType)(this.element),e.classList.add("menu-entry");let{icon:t}=this._action.item;if(t&&!y.ThemeIcon.isThemeIcon(t)){this.element.classList.add("icon");let e=()=>{this.element&&(this.element.style.backgroundImage=(0,C.isDark)(this._themeService.getColorTheme().type)?(0,o.asCSSUrl)(t.dark):(0,o.asCSSUrl)(t.light))};e(),this._register(this._themeService.onDidColorThemeChange(()=>{e()}))}}};L=S([w(2,g.IContextMenuService),w(3,y.IThemeService)],L);let x=class extends s.BaseActionViewItem{constructor(e,t,i,o,n,s,l,c){var u,d,m;let g;super(null,e),this._keybindingService=i,this._notificationService=o,this._contextMenuService=n,this._menuService=s,this._instaService=l,this._storageService=c,this._container=null,this._options=t,this._storageKey=`${e.item.submenu.id}_lastActionId`;let p=c.get(this._storageKey,1);p&&(g=e.actions.find(e=>p===e.id)),!g&&(g=e.actions[0]),this._defaultAction=this._instaService.createInstance(I,g,{keybinding:this._getDefaultActionKeybindingLabel(g)});let f=Object.assign({},null!=t?t:Object.create(null),{menuAsChild:null===(u=null==t?void 0:t.menuAsChild)||void 0===u||u,classNames:null!==(d=null==t?void 0:t.classNames)&&void 0!==d?d:["codicon","codicon-chevron-down"],actionRunner:null!==(m=null==t?void 0:t.actionRunner)&&void 0!==m?m:new a.ActionRunner});this._dropdown=new r.DropdownMenuActionViewItem(e,e.actions,this._contextMenuService,f),this._dropdown.actionRunner.onDidRun(e=>{e.action instanceof h.MenuItemAction&&this.update(e.action)})}update(e){this._storageService.store(this._storageKey,e.id,1,0),this._defaultAction.dispose(),this._defaultAction=this._instaService.createInstance(I,e,{keybinding:this._getDefaultActionKeybindingLabel(e)}),this._defaultAction.actionRunner=new class extends a.ActionRunner{runAction(e,t){return k(this,void 0,void 0,function*(){yield e.run(void 0)})}},this._container&&this._defaultAction.render((0,o.prepend)(this._container,(0,o.$)(".action-container")))}_getDefaultActionKeybindingLabel(e){var t;let i;if(null===(t=this._options)||void 0===t?void 0:t.renderKeybindingWithDefaultActionLabel){let t=this._keybindingService.lookupKeybinding(e.id);t&&(i=`(${t.getLabel()})`)}return i}setActionContext(e){super.setActionContext(e),this._defaultAction.setActionContext(e),this._dropdown.setActionContext(e)}render(e){this._container=e,super.render(this._container),this._container.classList.add("monaco-dropdown-with-default");let t=(0,o.$)(".action-container");this._defaultAction.render((0,o.append)(this._container,t)),this._register((0,o.addDisposableListener)(t,o.EventType.KEY_DOWN,e=>{let t=new n.StandardKeyboardEvent(e);t.equals(17)&&(this._defaultAction.element.tabIndex=-1,this._dropdown.focus(),t.stopPropagation())}));let i=(0,o.$)(".dropdown-action-container");this._dropdown.render((0,o.append)(this._container,i)),this._register((0,o.addDisposableListener)(i,o.EventType.KEY_DOWN,e=>{var t;let i=new n.StandardKeyboardEvent(e);i.equals(15)&&(this._defaultAction.element.tabIndex=0,this._dropdown.setFocusable(!1),null===(t=this._defaultAction.element)||void 0===t||t.focus(),i.stopPropagation())}))}focus(e){e?this._dropdown.focus():(this._defaultAction.element.tabIndex=0,this._defaultAction.element.focus())}blur(){this._defaultAction.element.tabIndex=-1,this._dropdown.blur(),this._container.blur()}setFocusable(e){e?this._defaultAction.element.tabIndex=0:(this._defaultAction.element.tabIndex=-1,this._dropdown.setFocusable(!1))}dispose(){this._defaultAction.dispose(),this._dropdown.dispose(),super.dispose()}};function T(e,t,i){if(t instanceof h.MenuItemAction)return e.createInstance(I,t,i);if(t instanceof h.SubmenuItemAction)return t.item.rememberDefaultAction?e.createInstance(x,t,i):e.createInstance(L,t,i)}x=S([w(2,f.IKeybindingService),w(3,b.INotificationService),w(4,g.IContextMenuService),w(5,h.IMenuService),w(6,p.IInstantiationService),w(7,_.IStorageService)],x)},351553:function(e,t,i){"use strict";i.r(t),i.d(t,{IMenuService:function(){return f},MenuId:function(){return p},MenuItemAction:function(){return y},MenuRegistry:function(){return b},SubmenuItemAction:function(){return _},isIMenuItem:function(){return g}});var o=i("431453"),n=i("871628"),s=i("916904"),r=i("780189"),a=i("919527"),l=i("662300"),c=i("326896"),u=i("549436"),d=i("706301"),h=i("439703"),m=function(e,t){return function(i,o){t(i,o,e)}};function g(e){return void 0!==e.command}class p{constructor(e){if(p._instances.has(e))throw TypeError(`MenuId with identifier '${e}' already exists. Use MenuId.for(ident) or a unique identifier`);p._instances.set(e,this),this.id=e}}p._instances=new Map,p.CommandPalette=new p("CommandPalette"),p.DebugBreakpointsContext=new p("DebugBreakpointsContext"),p.DebugCallStackContext=new p("DebugCallStackContext"),p.DebugConsoleContext=new p("DebugConsoleContext"),p.DebugVariablesContext=new p("DebugVariablesContext"),p.DebugWatchContext=new p("DebugWatchContext"),p.DebugToolBar=new p("DebugToolBar"),p.DebugToolBarStop=new p("DebugToolBarStop"),p.EditorContext=new p("EditorContext"),p.SimpleEditorContext=new p("SimpleEditorContext"),p.EditorContextCopy=new p("EditorContextCopy"),p.EditorContextPeek=new p("EditorContextPeek"),p.EditorContextShare=new p("EditorContextShare"),p.EditorTitle=new p("EditorTitle"),p.EditorTitleRun=new p("EditorTitleRun"),p.EditorTitleContext=new p("EditorTitleContext"),p.EmptyEditorGroup=new p("EmptyEditorGroup"),p.EmptyEditorGroupContext=new p("EmptyEditorGroupContext"),p.ExplorerContext=new p("ExplorerContext"),p.ExtensionContext=new p("ExtensionContext"),p.GlobalActivity=new p("GlobalActivity"),p.CommandCenter=new p("CommandCenter"),p.LayoutControlMenuSubmenu=new p("LayoutControlMenuSubmenu"),p.LayoutControlMenu=new p("LayoutControlMenu"),p.MenubarMainMenu=new p("MenubarMainMenu"),p.MenubarAppearanceMenu=new p("MenubarAppearanceMenu"),p.MenubarDebugMenu=new p("MenubarDebugMenu"),p.MenubarEditMenu=new p("MenubarEditMenu"),p.MenubarCopy=new p("MenubarCopy"),p.MenubarFileMenu=new p("MenubarFileMenu"),p.MenubarGoMenu=new p("MenubarGoMenu"),p.MenubarHelpMenu=new p("MenubarHelpMenu"),p.MenubarLayoutMenu=new p("MenubarLayoutMenu"),p.MenubarNewBreakpointMenu=new p("MenubarNewBreakpointMenu"),p.MenubarPanelAlignmentMenu=new p("MenubarPanelAlignmentMenu"),p.MenubarPanelPositionMenu=new p("MenubarPanelPositionMenu"),p.MenubarPreferencesMenu=new p("MenubarPreferencesMenu"),p.MenubarRecentMenu=new p("MenubarRecentMenu"),p.MenubarSelectionMenu=new p("MenubarSelectionMenu"),p.MenubarShare=new p("MenubarShare"),p.MenubarSwitchEditorMenu=new p("MenubarSwitchEditorMenu"),p.MenubarSwitchGroupMenu=new p("MenubarSwitchGroupMenu"),p.MenubarTerminalMenu=new p("MenubarTerminalMenu"),p.MenubarViewMenu=new p("MenubarViewMenu"),p.MenubarHomeMenu=new p("MenubarHomeMenu"),p.OpenEditorsContext=new p("OpenEditorsContext"),p.ProblemsPanelContext=new p("ProblemsPanelContext"),p.SCMChangeContext=new p("SCMChangeContext"),p.SCMResourceContext=new p("SCMResourceContext"),p.SCMResourceFolderContext=new p("SCMResourceFolderContext"),p.SCMResourceGroupContext=new p("SCMResourceGroupContext"),p.SCMSourceControl=new p("SCMSourceControl"),p.SCMTitle=new p("SCMTitle"),p.SearchContext=new p("SearchContext"),p.StatusBarWindowIndicatorMenu=new p("StatusBarWindowIndicatorMenu"),p.StatusBarRemoteIndicatorMenu=new p("StatusBarRemoteIndicatorMenu"),p.TestItem=new p("TestItem"),p.TestItemGutter=new p("TestItemGutter"),p.TestPeekElement=new p("TestPeekElement"),p.TestPeekTitle=new p("TestPeekTitle"),p.TouchBarContext=new p("TouchBarContext"),p.TitleBarContext=new p("TitleBarContext"),p.TitleBarTitleContext=new p("TitleBarTitleContext"),p.TunnelContext=new p("TunnelContext"),p.TunnelPrivacy=new p("TunnelPrivacy"),p.TunnelProtocol=new p("TunnelProtocol"),p.TunnelPortInline=new p("TunnelInline"),p.TunnelTitle=new p("TunnelTitle"),p.TunnelLocalAddressInline=new p("TunnelLocalAddressInline"),p.TunnelOriginInline=new p("TunnelOriginInline"),p.ViewItemContext=new p("ViewItemContext"),p.ViewContainerTitle=new p("ViewContainerTitle"),p.ViewContainerTitleContext=new p("ViewContainerTitleContext"),p.ViewTitle=new p("ViewTitle"),p.ViewTitleContext=new p("ViewTitleContext"),p.CommentThreadTitle=new p("CommentThreadTitle"),p.CommentThreadActions=new p("CommentThreadActions"),p.CommentTitle=new p("CommentTitle"),p.CommentActions=new p("CommentActions"),p.InteractiveToolbar=new p("InteractiveToolbar"),p.InteractiveCellTitle=new p("InteractiveCellTitle"),p.InteractiveCellDelete=new p("InteractiveCellDelete"),p.InteractiveCellExecute=new p("InteractiveCellExecute"),p.InteractiveInputExecute=new p("InteractiveInputExecute"),p.NotebookToolbar=new p("NotebookToolbar"),p.NotebookCellTitle=new p("NotebookCellTitle"),p.NotebookCellDelete=new p("NotebookCellDelete"),p.NotebookCellInsert=new p("NotebookCellInsert"),p.NotebookCellBetween=new p("NotebookCellBetween"),p.NotebookCellListTop=new p("NotebookCellTop"),p.NotebookCellExecute=new p("NotebookCellExecute"),p.NotebookCellExecutePrimary=new p("NotebookCellExecutePrimary"),p.NotebookDiffCellInputTitle=new p("NotebookDiffCellInputTitle"),p.NotebookDiffCellMetadataTitle=new p("NotebookDiffCellMetadataTitle"),p.NotebookDiffCellOutputsTitle=new p("NotebookDiffCellOutputsTitle"),p.NotebookOutputToolbar=new p("NotebookOutputToolbar"),p.NotebookEditorLayoutConfigure=new p("NotebookEditorLayoutConfigure"),p.NotebookKernelSource=new p("NotebookKernelSource"),p.BulkEditTitle=new p("BulkEditTitle"),p.BulkEditContext=new p("BulkEditContext"),p.TimelineItemContext=new p("TimelineItemContext"),p.TimelineTitle=new p("TimelineTitle"),p.TimelineTitleContext=new p("TimelineTitleContext"),p.TimelineFilterSubMenu=new p("TimelineFilterSubMenu"),p.AccountsContext=new p("AccountsContext"),p.PanelTitle=new p("PanelTitle"),p.AuxiliaryBarTitle=new p("AuxiliaryBarTitle"),p.TerminalInstanceContext=new p("TerminalInstanceContext"),p.TerminalEditorInstanceContext=new p("TerminalEditorInstanceContext"),p.TerminalNewDropdownContext=new p("TerminalNewDropdownContext"),p.TerminalTabContext=new p("TerminalTabContext"),p.TerminalTabEmptyAreaContext=new p("TerminalTabEmptyAreaContext"),p.TerminalInlineTabContext=new p("TerminalInlineTabContext"),p.WebviewContext=new p("WebviewContext"),p.InlineCompletionsActions=new p("InlineCompletionsActions"),p.NewFile=new p("NewFile"),p.MergeToolbar=new p("MergeToolbar"),p.MergeInput1Toolbar=new p("MergeToolbar1Toolbar"),p.MergeInput2Toolbar=new p("MergeToolbar2Toolbar");let f=(0,d.createDecorator)("menuService"),b=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new s.Emitter,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:e=>e===p.CommandPalette}}addCommand(e){return this.addCommands(r.Iterable.single(e))}addCommands(e){for(let t of e)this._commands.set(t.id,t);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,a.toDisposable)(()=>{let t=!1;for(let i of e)t=this._commands.delete(i.id)||t;t&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;return this._commands.forEach((t,i)=>e.set(i,t)),e}appendMenuItem(e,t){return this.appendMenuItems(r.Iterable.single({id:e,item:t}))}appendMenuItems(e){let t=new Set,i=new l.LinkedList;for(let{id:o,item:n}of e){let e=this._menuItems.get(o);!e&&(e=new l.LinkedList,this._menuItems.set(o,e)),i.push(e.push(n)),t.add(o)}return this._onDidChangeMenu.fire(t),(0,a.toDisposable)(()=>{if(i.size>0){for(let e of i)e();this._onDidChangeMenu.fire(t),i.clear()}})}getMenuItems(e){let t;return t=this._menuItems.has(e)?[...this._menuItems.get(e)]:[],e===p.CommandPalette&&this._appendImplicitItems(t),t}_appendImplicitItems(e){let t=new Set;for(let i of e)g(i)&&(t.add(i.command.id),i.alt&&t.add(i.alt.id));this._commands.forEach((i,o)=>{!t.has(o)&&e.push({command:i})})}};class _ extends o.SubmenuAction{constructor(e,t,i,o){super(`submenuitem.${e.submenu.id}`,"string"==typeof e.title?e.title:e.title.value,[],"submenu"),this.item=e,this._menuService=t,this._contextKeyService=i,this._options=o}get actions(){let e=[],t=this._menuService.createMenu(this.item.submenu,this._contextKeyService),i=t.getActions(this._options);for(let[,n]of(t.dispose(),i))n.length>0&&(e.push(...n),e.push(new o.Separator));return e.length&&e.pop(),e}}let y=class e{constructor(t,i,o,s,r,a){var l,c;if(this.hideActions=s,this._commandService=a,this.id=t.id,this.label=(null==o?void 0:o.renderShortTitle)&&t.shortTitle?"string"==typeof t.shortTitle?t.shortTitle:t.shortTitle.value:"string"==typeof t.title?t.title:t.title.value,this.tooltip=null!==(c="string"==typeof t.tooltip?t.tooltip:null===(l=t.tooltip)||void 0===l?void 0:l.value)&&void 0!==c?c:"",this.enabled=!t.precondition||r.contextMatchesRules(t.precondition),this.checked=void 0,t.toggled){let e=t.toggled.condition?t.toggled:{condition:t.toggled};this.checked=r.contextMatchesRules(e.condition),this.checked&&e.tooltip&&(this.tooltip="string"==typeof e.tooltip?e.tooltip:e.tooltip.value),e.title&&(this.label="string"==typeof e.title?e.title:e.title.value)}this.item=t,this.alt=i?new e(i,void 0,o,s,r,a):void 0,this._options=o,h.ThemeIcon.isThemeIcon(t.icon)&&(this.class=n.CSSIcon.asClassName(t.icon))}dispose(){}run(...e){var t,i;let o=[];return(null===(t=this._options)||void 0===t?void 0:t.arg)&&(o=[...o,this._options.arg]),(null===(i=this._options)||void 0===i?void 0:i.shouldForwardArgs)&&(o=[...o,...e]),this._commandService.executeCommand(this.id,...o)}};y=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([m(4,u.IContextKeyService),m(5,c.ICommandService)],y)},691125:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return u},OVERRIDE_PROPERTY_REGEX:function(){return S},overrideIdentifiersFromKey:function(){return w}});var o=i("603868"),n=i("916904"),s=i("744138"),r=i("708339"),a=i("753861"),l=i("629711"),c=i("112721");let u={Configuration:"base.contributions.configuration"},d={properties:{},patternProperties:{}},h={properties:{},patternProperties:{}},m={properties:{},patternProperties:{}},g={properties:{},patternProperties:{}},p={properties:{},patternProperties:{}},f={properties:{},patternProperties:{}},b="vscode://schemas/settings/resourceLanguage",_=c.Registry.as(l.Extensions.JSONContribution),y="\\[([^\\]]+)\\]",C=RegExp(y,"g"),v=`^(${y})+$`,S=new RegExp(v);function w(e){let t=[];if(S.test(e)){let i=C.exec(e);for(;null==i?void 0:i.length;){let o=i[1].trim();o&&t.push(o),i=C.exec(e)}}return(0,o.distinct)(t)}let k=new class e{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new n.Emitter,this._onDidUpdateConfiguration=new n.Emitter,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:r.localize("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting",allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},_.registerSchema(b,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,t=!0){this.registerConfigurations([e],t)}registerConfigurations(e,t=!0){let i=this.doRegisterConfigurations(e,t);_.registerSchema(b,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i})}registerDefaultConfigurations(e){var t;let i=[],o=[];for(let{overrides:n,source:l}of e)for(let e in n)if(i.push(e),S.test(e)){let i=this.configurationDefaultsOverrides.get(e),c=null!==(t=null==i?void 0:i.valuesSources)&&void 0!==t?t:new Map;if(l)for(let t of Object.keys(n[e]))c.set(t,l);let u=Object.assign(Object.assign({},(null==i?void 0:i.value)||{}),n[e]);this.configurationDefaultsOverrides.set(e,{source:l,value:u,valuesSources:c});let d=(0,a.getLanguageTagSettingPlainKey)(e),h={type:"object",default:u,description:r.localize("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",d),$ref:b,defaultDefaultValue:u,source:s.isString(l)?void 0:l,defaultValueSource:l};o.push(...w(e)),this.configurationProperties[e]=h,this.defaultLanguageConfigurationOverridesNode.properties[e]=h}else{this.configurationDefaultsOverrides.set(e,{value:n[e],source:l});let t=this.configurationProperties[e];t&&(this.updatePropertyDefaultValue(e,t),this.updateSchema(e,t))}this.registerOverrideIdentifiers(o),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}registerOverrideIdentifiers(e){for(let t of e)this.overrideIdentifiers.add(t);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,t){let i=[];return e.forEach(e=>{i.push(...this.validateAndRegisterProperties(e,t,e.extensionInfo,e.restrictedProperties)),this.configurationContributors.push(e),this.registerJSONConfiguration(e)}),i}validateAndRegisterProperties(e,t=!0,i,o,n=3){var a;n=s.isUndefinedOrNull(e.scope)?n:e.scope;let l=[],c=e.properties;if(c)for(let e in c){let u=c[e];if(t&&function(e,t){var i,o,n,s;return e.trim()?S.test(e)?r.localize("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e):void 0!==k.getConfigurationProperties()[e]?r.localize("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e):(null===(i=t.policy)||void 0===i?void 0:i.name)&&void 0!==k.getPolicyConfigurations().get(null===(o=t.policy)||void 0===o?void 0:o.name)?r.localize("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",e,null===(n=t.policy)||void 0===n?void 0:n.name,k.getPolicyConfigurations().get(null===(s=t.policy)||void 0===s?void 0:s.name)):null:r.localize("config.property.empty","Cannot register an empty property")}(e,u)){delete c[e];continue}if(u.source=i,u.defaultDefaultValue=c[e].default,this.updatePropertyDefaultValue(e,u),S.test(e)?u.scope=void 0:(u.scope=s.isUndefinedOrNull(u.scope)?n:u.scope,u.restricted=s.isUndefinedOrNull(u.restricted)?!!(null==o?void 0:o.includes(e)):u.restricted),c[e].hasOwnProperty("included")&&!c[e].included){this.excludedConfigurationProperties[e]=c[e],delete c[e];continue}this.configurationProperties[e]=c[e],(null===(a=c[e].policy)||void 0===a?void 0:a.name)&&this.policyConfigurations.set(c[e].policy.name,e);!c[e].deprecationMessage&&c[e].markdownDeprecationMessage&&(c[e].deprecationMessage=c[e].markdownDeprecationMessage),l.push(e)}let u=e.allOf;if(u)for(let e of u)l.push(...this.validateAndRegisterProperties(e,t,i,o,n));return l}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){let t=e=>{let i=e.properties;if(i)for(let e in i)this.updateSchema(e,i[e]);let o=e.allOf;null==o||o.forEach(t)};t(e)}updateSchema(e,t){switch(d.properties[e]=t,t.scope){case 1:h.properties[e]=t;break;case 2:m.properties[e]=t;break;case 6:g.properties[e]=t;break;case 3:p.properties[e]=t;break;case 4:f.properties[e]=t;break;case 5:f.properties[e]=t,this.resourceLanguageSettingsSchema.properties[e]=t}}updateOverridePropertyPatternKey(){for(let e of this.overrideIdentifiers.values()){let t=`[${e}]`,i={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};this.updatePropertyDefaultValue(t,i),d.properties[t]=i,h.properties[t]=i,m.properties[t]=i,g.properties[t]=i,p.properties[t]=i,f.properties[t]=i}this._onDidSchemaChange.fire()}registerOverridePropertyPatternKey(){let e={type:"object",description:r.localize("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:r.localize("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:b};d.patternProperties[v]=e,h.patternProperties[v]=e,m.patternProperties[v]=e,g.patternProperties[v]=e,p.patternProperties[v]=e,f.patternProperties[v]=e,this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,t){let i=this.configurationDefaultsOverrides.get(e),o=null==i?void 0:i.value,n=null==i?void 0:i.source;s.isUndefined(o)&&(o=t.defaultDefaultValue,n=void 0),s.isUndefined(o)&&(o=function(e){switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}(t.type)),t.default=o,t.defaultValueSource=n}};c.Registry.add(u.Configuration,k)},629711:function(e,t,i){"use strict";i.r(t),i.d(t,{Extensions:function(){return s}});var o=i("916904"),n=i("112721");let s={JSONContribution:"base.contributions.json"},r=new class e{constructor(){this._onDidChangeSchema=new o.Emitter,this.schemasById={}}registerSchema(e,t){var i;this.schemasById[(i=e).length>0&&"#"===i.charAt(i.length-1)?i.substring(0,i.length-1):i]=t,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}};n.Registry.add(s.JSONContribution,r)},568031:function(e,t,i){"use strict";i.r(t),i.d(t,{ILabelService:function(){return o}});let o=(0,i("706301").createDecorator)("labelService")},180204:function(e,t,i){"use strict";i.r(t),i.d(t,{IOpenerService:function(){return l},NullOpenerService:function(){return c},extractSelection:function(){return h},matchesScheme:function(){return u},matchesSomeScheme:function(){return d}});var o=i("919527"),n=i("266763"),s=i("938505"),r=i("706301"),a=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};let l=(0,r.createDecorator)("openerService"),c=Object.freeze({_serviceBrand:void 0,registerOpener:()=>o.Disposable.None,registerValidator:()=>o.Disposable.None,registerExternalUriResolver:()=>o.Disposable.None,setDefaultExternalOpener(){},registerExternalOpener:()=>o.Disposable.None,open(){return a(this,void 0,void 0,function*(){return!1})},resolveExternalUri(e){return a(this,void 0,void 0,function*(){return{resolved:e,dispose(){}}})}});function u(e,t){return s.URI.isUri(e)?(0,n.equalsIgnoreCase)(e.scheme,t):(0,n.startsWithIgnoreCase)(e,t+":")}function d(e,...t){return t.some(t=>u(e,t))}function h(e){let t;let i=/^L?(\d+)(?:,(\d+))?(-L?(\d+)(?:,(\d+))?)?/.exec(e.fragment);return i&&(t={startLineNumber:parseInt(i[1]),startColumn:i[2]?parseInt(i[2]):1,endLineNumber:i[4]?parseInt(i[4]):void 0,endColumn:i[4]?i[5]?parseInt(i[5]):1:void 0},e=e.with({fragment:""})),{selection:t,uri:e}}},795827:function(e,t,i){"use strict";i.r(t);var o=i("161111"),n=i("919527"),s=i("24342"),r=i("596608"),a=i("708339"),l=i("664641"),c=i("772243"),u=i("297669"),d=i("852365"),h=function(e,t){return function(i,o){t(i,o,e)}},m=function(e,t,i,o){return new(i||(i=Promise))(function(n,s){function r(e){try{l(o.next(e))}catch(e){s(e)}}function a(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(r,a)}l((o=o.apply(e,t||[])).next())})};function g(e){return e.scheme===s.Schemas.file?e.fsPath:e.path}let p=0;class f{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=0,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabel=t,this.strResource=i,this.resourceLabels=[this.resourceLabel],this.strResources=[this.strResource],this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.isValid=!0}setValid(e){this.isValid=e}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.isValid?" VALID":"INVALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class b{constructor(e,t){this.resourceLabel=e,this.reason=t}}class _{constructor(){this.elements=new Map}createMessage(){let e=[],t=[];for(let[,i]of this.elements)(0===i.reason?e:t).push(i.resourceLabel);let i=[];return e.length>0&&i.push(a.localize({key:"externalRemoval",comment:["{0} is a list of filenames"]},"The following files have been closed and modified on disk: {0}.",e.join(", "))),t.length>0&&i.push(a.localize({key:"noParallelUniverses",comment:["{0} is a list of filenames"]},"The following files have been modified in an incompatible way: {0}.",t.join(", "))),i.join("\n")}get size(){return this.elements.size}has(e){return this.elements.has(e)}set(e,t){this.elements.set(e,t)}delete(e){return this.elements.delete(e)}}class y{constructor(e,t,i,o,n,s,r){this.id=++p,this.type=1,this.actual=e,this.label=e.label,this.confirmBeforeUndo=e.confirmBeforeUndo||!1,this.resourceLabels=t,this.strResources=i,this.groupId=o,this.groupOrder=n,this.sourceId=s,this.sourceOrder=r,this.removedResources=null,this.invalidatedResources=null}canSplit(){return"function"==typeof this.actual.split}removeResource(e,t,i){!this.removedResources&&(this.removedResources=new _),!this.removedResources.has(t)&&this.removedResources.set(t,new b(e,i))}setValid(e,t,i){i?this.invalidatedResources&&(this.invalidatedResources.delete(t),0===this.invalidatedResources.size&&(this.invalidatedResources=null)):(!this.invalidatedResources&&(this.invalidatedResources=new _),!this.invalidatedResources.has(t)&&this.invalidatedResources.set(t,new b(e,0)))}toString(){return`[id:${this.id}] [group:${this.groupId}] [${this.invalidatedResources?"INVALID":" VALID"}] ${this.actual.constructor.name} - ${this.actual}`}}class C{constructor(e,t){this.resourceLabel=e,this.strResource=t,this._past=[],this._future=[],this.locked=!1,this.versionId=1}dispose(){for(let e of this._past)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,0);this.versionId++}toString(){let e=[];e.push(`* ${this.strResource}:`);for(let t=0;t<this._past.length;t++)e.push(` * [UNDO] ${this._past[t]}`);for(let t=this._future.length-1;t>=0;t--)e.push(` * [REDO] ${this._future[t]}`);return e.join("\n")}flushAllElements(){this._past=[],this._future=[],this.versionId++}_setElementValidFlag(e,t){1===e.type?e.setValid(this.resourceLabel,this.strResource,t):e.setValid(t)}setElementsValidFlag(e,t){for(let i of this._past)t(i.actual)&&this._setElementValidFlag(i,e);for(let i of this._future)t(i.actual)&&this._setElementValidFlag(i,e)}pushElement(e){for(let e of this._future)1===e.type&&e.removeResource(this.resourceLabel,this.strResource,1);this._future=[],this._past.push(e),this.versionId++}createSnapshot(e){let t=[];for(let e=0,i=this._past.length;e<i;e++)t.push(this._past[e].id);for(let e=this._future.length-1;e>=0;e--)t.push(this._future[e].id);return new d.ResourceEditStackSnapshot(e,t)}restoreSnapshot(e){let t=e.elements.length,i=!0,o=0,n=-1;for(let s=0,r=this._past.length;s<r;s++,o++){let r=this._past[s];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,n=0),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}let s=-1;for(let n=this._future.length-1;n>=0;n--,o++){let r=this._future[n];i&&(o>=t||r.id!==e.elements[o])&&(i=!1,s=n),!i&&1===r.type&&r.removeResource(this.resourceLabel,this.strResource,0)}-1!==n&&(this._past=this._past.slice(0,n)),-1!==s&&(this._future=this._future.slice(s+1)),this.versionId++}getElements(){let e=[],t=[];for(let t of this._past)e.push(t.actual);for(let e of this._future)t.push(e.actual);return{past:e,future:t}}getClosestPastElement(){return 0===this._past.length?null:this._past[this._past.length-1]}getSecondClosestPastElement(){return this._past.length<2?null:this._past[this._past.length-2]}getClosestFutureElement(){return 0===this._future.length?null:this._future[this._future.length-1]}hasPastElements(){return this._past.length>0}hasFutureElements(){return this._future.length>0}splitPastWorkspaceElement(e,t){for(let i=this._past.length-1;i>=0;i--)if(this._past[i]===e){t.has(this.strResource)?this._past[i]=t.get(this.strResource):this._past.splice(i,1);break}this.versionId++}splitFutureWorkspaceElement(e,t){for(let i=this._future.length-1;i>=0;i--)if(this._future[i]===e){t.has(this.strResource)?this._future[i]=t.get(this.strResource):this._future.splice(i,1);break}this.versionId++}moveBackward(e){this._past.pop(),this._future.push(e),this.versionId++}moveForward(e){this._future.pop(),this._past.push(e),this.versionId++}}class v{constructor(e){this.editStacks=e,this._versionIds=[];for(let e=0,t=this.editStacks.length;e<t;e++)this._versionIds[e]=this.editStacks[e].versionId}isValid(){for(let e=0,t=this.editStacks.length;e<t;e++)if(this._versionIds[e]!==this.editStacks[e].versionId)return!1;return!0}}let S=new C("","");S.locked=!0;let w=class{constructor(e,t){this._dialogService=e,this._notificationService=t,this._editStacks=new Map,this._uriComparisonKeyComputers=[]}getUriComparisonKey(e){for(let t of this._uriComparisonKeyComputers)if(t[0]===e.scheme)return t[1].getComparisonKey(e);return e.toString()}_print(e){console.log("------------------------------------"),console.log(`AFTER ${e}: `);let t=[];for(let e of this._editStacks)t.push(e[1].toString());console.log(t.join("\n"))}pushElement(e,t=d.UndoRedoGroup.None,i=d.UndoRedoSource.None){if(0===e.type){let o=g(e.resource),n=this.getUriComparisonKey(e.resource);this._pushElement(new f(e,o,n,t.id,t.nextOrder(),i.id,i.nextOrder()))}else{let o=new Set,n=[],s=[];for(let t of e.resources){let e=g(t),i=this.getUriComparisonKey(t);!o.has(i)&&(o.add(i),n.push(e),s.push(i))}1===n.length?this._pushElement(new f(e,n[0],s[0],t.id,t.nextOrder(),i.id,i.nextOrder())):this._pushElement(new y(e,n,s,t.id,t.nextOrder(),i.id,i.nextOrder()))}}_pushElement(e){for(let t=0,i=e.strResources.length;t<i;t++){let i;let o=e.resourceLabels[t],n=e.strResources[t];this._editStacks.has(n)?i=this._editStacks.get(n):(i=new C(o,n),this._editStacks.set(n,i)),i.pushElement(e)}}getLastElement(e){let t=this.getUriComparisonKey(e);if(this._editStacks.has(t)){let e=this._editStacks.get(t);if(e.hasFutureElements())return null;let i=e.getClosestPastElement();return i?i.actual:null}return null}_splitPastWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitPastWorkspaceElement(e,o)}}_splitFutureWorkspaceElement(e,t){let i=e.actual.split(),o=new Map;for(let e of i){let t=g(e.resource),i=this.getUriComparisonKey(e.resource),n=new f(e,t,i,0,0,0,0);o.set(n.strResource,n)}for(let i of e.strResources){if(!(t&&t.has(i)))this._editStacks.get(i).splitFutureWorkspaceElement(e,o)}}removeElements(e){let t="string"==typeof e?e:this.getUriComparisonKey(e);this._editStacks.has(t)&&(this._editStacks.get(t).dispose(),this._editStacks.delete(t))}setElementsValidFlag(e,t,i){let o=this.getUriComparisonKey(e);this._editStacks.has(o)&&this._editStacks.get(o).setElementsValidFlag(t,i)}createSnapshot(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).createSnapshot(e):new d.ResourceEditStackSnapshot(e,[])}restoreSnapshot(e){let t=this.getUriComparisonKey(e.resource);if(this._editStacks.has(t)){let i=this._editStacks.get(t);i.restoreSnapshot(e),!i.hasPastElements()&&!i.hasFutureElements()&&(i.dispose(),this._editStacks.delete(t))}}getElements(e){let t=this.getUriComparisonKey(e);return this._editStacks.has(t)?this._editStacks.get(t).getElements():{past:[],future:[]}}_findClosestUndoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.sourceId===e&&(!t||s.sourceOrder>t.sourceOrder)&&(t=s,i=o)}return[t,i]}canUndo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasPastElements()}_onError(e,t){for(let i of((0,o.onUnexpectedError)(e),t.strResources))this.removeElements(i);this._notificationService.error(e)}_acquireLocks(e){for(let t of e.editStacks)if(t.locked)throw Error("Cannot acquire edit stack lock");for(let t of e.editStacks)t.locked=!0;return()=>{for(let t of e.editStacks)t.locked=!1}}_safeInvokeWithLocks(e,t,i,o,n){let s;let r=this._acquireLocks(i);try{s=t()}catch(t){return r(),o.dispose(),this._onError(t,e)}return s?s.then(()=>(r(),o.dispose(),n()),t=>(r(),o.dispose(),this._onError(t,e))):(r(),o.dispose(),n())}_invokeWorkspacePrepare(e){return m(this,void 0,void 0,function*(){if(void 0===e.actual.prepareUndoRedo)return n.Disposable.None;let t=e.actual.prepareUndoRedo();return void 0===t?n.Disposable.None:t})}_invokeResourcePrepare(e,t){if(1!==e.actual.type||void 0===e.actual.prepareUndoRedo)return t(n.Disposable.None);let i=e.actual.prepareUndoRedo();return i?(0,n.isDisposable)(i)?t(i):i.then(e=>t(e)):t(n.Disposable.None)}_getAffectedEditStacks(e){let t=[];for(let i of e.strResources)t.push(this._editStacks.get(i)||S);return new v(t)}_tryToSplitAndUndo(e,t,i,o){if(t.canSplit())return this._splitPastWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._undo(e,0,!0));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceUndo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndUndo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndUndo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceUndo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not undo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestPastElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndUndo(e,t,null,a.localize({key:"cannotWorkspaceUndoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not undo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceUndo(e,t,i){let o=this._getAffectedEditStacks(t),n=this._checkWorkspaceUndo(e,t,o,!1);return n?n.returnValue:this._confirmAndExecuteWorkspaceUndo(e,t,o,i)}_isPartOfUndoGroup(e){if(!e.groupId)return!1;for(let[,t]of this._editStacks){let i=t.getClosestPastElement();if(i){if(i===e){let i=t.getSecondClosestPastElement();if(i&&i.groupId===e.groupId)return!0}if(i.groupId===e.groupId)return!0}}return!1}_confirmAndExecuteWorkspaceUndo(e,t,i,o){return m(this,void 0,void 0,function*(){let n;if(t.canSplit()&&!this._isPartOfUndoGroup(t)){let n=yield this._dialogService.show(r.default.Info,a.localize("confirmWorkspace","Would you like to undo '{0}' across all files?",t.label),[a.localize({key:"ok",comment:["{0} denotes a number that is > 1"]},"Undo in {0} Files",i.editStacks.length),a.localize("nok","Undo this File"),a.localize("cancel","Cancel")],{cancelId:2});if(2===n.choice)return;if(1===n.choice)return this._splitPastWorkspaceElement(t,null),this._undo(e,0,!0);let s=this._checkWorkspaceUndo(e,t,i,!1);if(s)return s.returnValue;o=!0}try{n=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let s=this._checkWorkspaceUndo(e,t,i,!0);if(s)return n.dispose(),s.returnValue;for(let e of i.editStacks)e.moveBackward(t);return this._safeInvokeWithLocks(t,()=>t.actual.undo(),i,n,()=>this._continueUndoInGroup(t.groupId,o))})}_resourceUndo(e,t,i){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceUndoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not undo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,o=>(e.moveBackward(t),this._safeInvokeWithLocks(t,()=>t.actual.undo(),new v([e]),o,()=>this._continueUndoInGroup(t.groupId,i))))}_findClosestUndoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestPastElement();s&&s.groupId===e&&(!t||s.groupOrder>t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueUndoInGroup(e,t){if(!e)return;let[,i]=this._findClosestUndoElementInGroup(e);if(i)return this._undo(i,0,t)}undo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestUndoElementWithSource(e.id);return t?this._undo(t,e.id,!1):void 0}return"string"==typeof e?this._undo(e,0,!1):this._undo(this.getUriComparisonKey(e),0,!1)}_undo(e,t=0,i){if(!this._editStacks.has(e))return;let o=this._editStacks.get(e),n=o.getClosestPastElement();if(!!n){if(n.groupId){let[e,o]=this._findClosestUndoElementInGroup(n.groupId);if(n!==e&&o)return this._undo(o,t,i)}if((n.sourceId!==t||n.confirmBeforeUndo)&&!i)return this._confirmAndContinueUndo(e,t,n);if(1===n.type)return this._workspaceUndo(e,n,i);return this._resourceUndo(o,n,i)}}_confirmAndContinueUndo(e,t,i){return m(this,void 0,void 0,function*(){if(1!==(yield this._dialogService.show(r.default.Info,a.localize("confirmDifferentSource","Would you like to undo '{0}'?",i.label),[a.localize("confirmDifferentSource.yes","Yes"),a.localize("confirmDifferentSource.no","No")],{cancelId:1})).choice)return this._undo(e,t,!0)})}_findClosestRedoElementWithSource(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.sourceId===e&&(!t||s.sourceOrder<t.sourceOrder)&&(t=s,i=o)}return[t,i]}canRedo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return!!t}let t=this.getUriComparisonKey(e);return!!this._editStacks.has(t)&&this._editStacks.get(t).hasFutureElements()}_tryToSplitAndRedo(e,t,i,o){if(t.canSplit())return this._splitFutureWorkspaceElement(t,i),this._notificationService.warn(o),new k(this._redo(e));for(let e of t.strResources)this.removeElements(e);return this._notificationService.warn(o),new k}_checkWorkspaceRedo(e,t,i,o){if(t.removedResources)return this._tryToSplitAndRedo(e,t,t.removedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.removedResources.createMessage()));if(o&&t.invalidatedResources)return this._tryToSplitAndRedo(e,t,t.invalidatedResources,a.localize({key:"cannotWorkspaceRedo",comment:["{0} is a label for an operation. {1} is another message."]},"Could not redo '{0}' across all files. {1}",t.label,t.invalidatedResources.createMessage()));let n=[];for(let e of i.editStacks)e.getClosestFutureElement()!==t&&n.push(e.resourceLabel);if(n.length>0)return this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToChanges",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because changes were made to {1}",t.label,n.join(", ")));let s=[];for(let e of i.editStacks)e.locked&&s.push(e.resourceLabel);return s.length>0?this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because there is already an undo or redo operation running on {1}",t.label,s.join(", "))):i.isValid()?null:this._tryToSplitAndRedo(e,t,null,a.localize({key:"cannotWorkspaceRedoDueToInMeantimeUndoRedo",comment:["{0} is a label for an operation. {1} is a list of filenames."]},"Could not redo '{0}' across all files because an undo or redo operation occurred in the meantime",t.label))}_workspaceRedo(e,t){let i=this._getAffectedEditStacks(t),o=this._checkWorkspaceRedo(e,t,i,!1);return o?o.returnValue:this._executeWorkspaceRedo(e,t,i)}_executeWorkspaceRedo(e,t,i){return m(this,void 0,void 0,function*(){let o;try{o=yield this._invokeWorkspacePrepare(t)}catch(e){return this._onError(e,t)}let n=this._checkWorkspaceRedo(e,t,i,!0);if(n)return o.dispose(),n.returnValue;for(let e of i.editStacks)e.moveForward(t);return this._safeInvokeWithLocks(t,()=>t.actual.redo(),i,o,()=>this._continueRedoInGroup(t.groupId))})}_resourceRedo(e,t){if(!t.isValid){e.flushAllElements();return}if(e.locked){let e=a.localize({key:"cannotResourceRedoDueToInProgressUndoRedo",comment:["{0} is a label for an operation."]},"Could not redo '{0}' because there is already an undo or redo operation running.",t.label);this._notificationService.warn(e);return}return this._invokeResourcePrepare(t,i=>(e.moveForward(t),this._safeInvokeWithLocks(t,()=>t.actual.redo(),new v([e]),i,()=>this._continueRedoInGroup(t.groupId))))}_findClosestRedoElementInGroup(e){if(!e)return[null,null];let t=null,i=null;for(let[o,n]of this._editStacks){let s=n.getClosestFutureElement();s&&s.groupId===e&&(!t||s.groupOrder<t.groupOrder)&&(t=s,i=o)}return[t,i]}_continueRedoInGroup(e){if(!e)return;let[,t]=this._findClosestRedoElementInGroup(e);if(t)return this._redo(t)}redo(e){if(e instanceof d.UndoRedoSource){let[,t]=this._findClosestRedoElementWithSource(e.id);return t?this._redo(t):void 0}return"string"==typeof e?this._redo(e):this._redo(this.getUriComparisonKey(e))}_redo(e){if(!this._editStacks.has(e))return;let t=this._editStacks.get(e),i=t.getClosestFutureElement();if(i){if(i.groupId){let[e,t]=this._findClosestRedoElementInGroup(i.groupId);if(i!==e&&t)return this._redo(t)}if(1===i.type)return this._workspaceRedo(e,i);return this._resourceRedo(t,i)}}};w=function(e,t,i,o){var n,s=arguments.length,r=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,o);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(r=(s<3?n(r):s>3?n(t,i,r):n(t,i))||r);return s>3&&r&&Object.defineProperty(t,i,r),r}([h(0,l.IDialogService),h(1,u.INotificationService)],w);class k{constructor(e){this.returnValue=e}}(0,c.registerSingleton)(d.IUndoRedoService,w)},507307:function(e,t,i){"use strict";i.r(t),i.d(t,{IWorkspaceContextService:function(){return s},WORKSPACE_EXTENSION:function(){return c},WorkspaceFolder:function(){return l},isSingleFolderWorkspaceIdentifier:function(){return r},toWorkspaceIdentifier:function(){return a}});var o=i("708339");i("834289");var n=i("938505");let s=(0,i("706301").createDecorator)("contextService");function r(e){return"string"==typeof(null==e?void 0:e.id)&&n.URI.isUri(e.uri)}function a(e){return e.configuration?{id:e.id,configPath:e.configuration}:1===e.folders.length?{id:e.id,uri:e.folders[0].uri}:void 0}class l{constructor(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}toJSON(){return{uri:this.uri,name:this.name,index:this.index}}}let c="code-workspace";(0,o.localize)("codeWorkspace","Code Workspace")},631412:function(e){},403905:function(e){},466599:function(e){},671651:function(e){},240091:function(e){},392444:function(e){},105088:function(e){},867831:function(e){},610049:function(e){}}]);
|