@rsdoctor/client 0.3.4 → 0.3.5

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.
Files changed (59) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/resource/css/{826.2794f707.css → 194.1804ae86.css} +1 -1
  3. package/dist/resource/js/194.d2040614.js +460 -0
  4. package/dist/resource/js/305.db5ffcb8.js +1 -0
  5. package/dist/resource/js/685.3bf6ad94.js +1 -0
  6. package/dist/resource/js/async/239.4c9191f2.js +1 -0
  7. package/dist/resource/js/async/432.f6d39e14.js +1 -0
  8. package/dist/resource/js/async/544.76f5144b.js +1 -0
  9. package/dist/resource/js/async/811.bb04bb18.js +1 -0
  10. package/dist/resource/js/async/849.d365c7fe.js +1 -0
  11. package/dist/resource/js/index.16d3c9d0.js +156 -0
  12. package/dist/resource/js/monaco-0.a40ddf4d.js +43 -0
  13. package/dist/resource/js/monaco-1.0676ed2b.js +1 -0
  14. package/dist/resource/js/monaco-10.7cd039ee.js +1 -0
  15. package/dist/resource/js/monaco-11.3f14898b.js +20 -0
  16. package/dist/resource/js/monaco-12.e68db2ff.js +18 -0
  17. package/dist/resource/js/monaco-13.cceae518.js +366 -0
  18. package/dist/resource/js/monaco-14.5dba9425.js +9 -0
  19. package/dist/resource/js/monaco-15.e51863e9.js +42 -0
  20. package/dist/resource/js/monaco-16.38520ce0.js +8 -0
  21. package/dist/resource/js/monaco-17.75efb769.js +1 -0
  22. package/dist/resource/js/monaco-2.1823f63a.js +14 -0
  23. package/dist/resource/js/monaco-3.6e08cdb6.js +3 -0
  24. package/dist/resource/js/monaco-4.68e498cb.js +3 -0
  25. package/dist/resource/js/monaco-5.d8235650.js +1 -0
  26. package/dist/resource/js/monaco-6.02bb134b.js +301 -0
  27. package/dist/resource/js/monaco-7.b4dff9d1.js +1 -0
  28. package/dist/resource/js/monaco-8.4a315821.js +1 -0
  29. package/dist/resource/js/monaco-9.f5f2a132.js +6 -0
  30. package/package.json +8 -7
  31. package/dist/resource/js/305.c739e0ad.js +0 -1
  32. package/dist/resource/js/685.cfc0d5a4.js +0 -1
  33. package/dist/resource/js/826.5dba3977.js +0 -460
  34. package/dist/resource/js/async/239.bd71915c.js +0 -1
  35. package/dist/resource/js/async/432.627e7428.js +0 -1
  36. package/dist/resource/js/async/544.a3528983.js +0 -1
  37. package/dist/resource/js/async/811.aeb19dcb.js +0 -1
  38. package/dist/resource/js/async/849.38fafa21.js +0 -1
  39. package/dist/resource/js/index.fdcaa546.js +0 -156
  40. package/dist/resource/js/monaco-0.92c812de.js +0 -20
  41. package/dist/resource/js/monaco-1.e42b60cc.js +0 -18
  42. package/dist/resource/js/monaco-10.4b1f76d7.js +0 -1
  43. package/dist/resource/js/monaco-11.3626543b.js +0 -3
  44. package/dist/resource/js/monaco-12.9d08b924.js +0 -4
  45. package/dist/resource/js/monaco-13.3d40eb04.js +0 -1
  46. package/dist/resource/js/monaco-14.371c9801.js +0 -43
  47. package/dist/resource/js/monaco-15.d73381b5.js +0 -366
  48. package/dist/resource/js/monaco-16.e11e3d10.js +0 -42
  49. package/dist/resource/js/monaco-17.f5db5e54.js +0 -8
  50. package/dist/resource/js/monaco-2.79f0bbbe.js +0 -1
  51. package/dist/resource/js/monaco-3.6eef79c7.js +0 -14
  52. package/dist/resource/js/monaco-4.b9b35171.js +0 -301
  53. package/dist/resource/js/monaco-5.0a6c00b3.js +0 -9
  54. package/dist/resource/js/monaco-6.042b95c8.js +0 -3
  55. package/dist/resource/js/monaco-7.69f7178e.js +0 -3
  56. package/dist/resource/js/monaco-8.480cca31.js +0 -1
  57. package/dist/resource/js/monaco-9.d55eba30.js +0 -1
  58. /package/dist/resource/css/{index.be7fc0b3.css → index.39e8e144.css} +0 -0
  59. /package/dist/resource/font/{codicon.44bc17fa.ttf → codicon.81ea7998.ttf} +0 -0
@@ -0,0 +1,366 @@
1
+ "use strict";(self.webpackChunk_rsdoctor_client=self.webpackChunk_rsdoctor_client||[]).push([["606"],{56077:function(){},90925:function(){},36183:function(){},57713:function(){},44172:function(){},4648:function(){},22015:function(){},69868:function(){},57792:function(){},98152:function(){},94111:function(){},82855:function(){},24114:function(){},56184:function(){},56647:function(){},40013:function(e,t,i){i.d(t,{X:function(){return o},Z:function(){return n}});class n{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){let t=r(e);if(this._maxWidth!==t)this._maxWidth=t,this.domNode.style.maxWidth=this._maxWidth}setWidth(e){let t=r(e);if(this._width!==t)this._width=t,this.domNode.style.width=this._width}setHeight(e){let t=r(e);if(this._height!==t)this._height=t,this.domNode.style.height=this._height}setTop(e){let t=r(e);if(this._top!==t)this._top=t,this.domNode.style.top=this._top}setLeft(e){let t=r(e);if(this._left!==t)this._left=t,this.domNode.style.left=this._left}setBottom(e){let t=r(e);if(this._bottom!==t)this._bottom=t,this.domNode.style.bottom=this._bottom}setRight(e){let t=r(e);if(this._right!==t)this._right=t,this.domNode.style.right=this._right}setPaddingLeft(e){let t=r(e);if(this._paddingLeft!==t)this._paddingLeft=t,this.domNode.style.paddingLeft=this._paddingLeft}setFontFamily(e){if(this._fontFamily!==e)this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily}setFontWeight(e){if(this._fontWeight!==e)this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight}setFontSize(e){let t=r(e);if(this._fontSize!==t)this._fontSize=t,this.domNode.style.fontSize=this._fontSize}setFontStyle(e){if(this._fontStyle!==e)this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle}setFontFeatureSettings(e){if(this._fontFeatureSettings!==e)this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings}setFontVariationSettings(e){if(this._fontVariationSettings!==e)this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings}setTextDecoration(e){if(this._textDecoration!==e)this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration}setLineHeight(e){let t=r(e);if(this._lineHeight!==t)this._lineHeight=t,this.domNode.style.lineHeight=this._lineHeight}setLetterSpacing(e){let t=r(e);if(this._letterSpacing!==t)this._letterSpacing=t,this.domNode.style.letterSpacing=this._letterSpacing}setClassName(e){if(this._className!==e)this._className=e,this.domNode.className=this._className}toggleClassName(e,t){this.domNode.classList.toggle(e,t),this._className=this.domNode.className}setDisplay(e){if(this._display!==e)this._display=e,this.domNode.style.display=this._display}setPosition(e){if(this._position!==e)this._position=e,this.domNode.style.position=this._position}setVisibility(e){if(this._visibility!==e)this._visibility=e,this.domNode.style.visibility=this._visibility}setColor(e){if(this._color!==e)this._color=e,this.domNode.style.color=this._color}setBackgroundColor(e){if(this._backgroundColor!==e)this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor}setLayerHinting(e){if(this._layerHint!==e)this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":""}setBoxShadow(e){if(this._boxShadow!==e)this._boxShadow=e,this.domNode.style.boxShadow=e}setContain(e){if(this._contain!==e)this._contain=e,this.domNode.style.contain=this._contain}setAttribute(e,t){this.domNode.setAttribute(e,t)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function r(e){return"number"==typeof e?`${e}px`:e}function o(e){return new n(e)}},73085:function(e,t,i){i.d(t,{E:function(){return r}});let n=new WeakMap;class r{static getSameOriginWindowChain(e){let t=n.get(e);if(!t){let i;t=[],n.set(e,t);let r=e;do(i=function(e){if(!e.parent||e.parent===e)return null;try{let t=e.location,i=e.parent.location;if("null"!==t.origin&&"null"!==i.origin&&t.origin!==i.origin)return null}catch(e){return null}return e.parent}(r))?t.push({window:new WeakRef(r),iframeElement:r.frameElement||null}):t.push({window:new WeakRef(r),iframeElement:null}),r=i;while(r)}return t.slice(0)}static getPositionOfChildWindowRelativeToAncestorWindow(e,t){var i,n;if(!t||e===t)return{top:0,left:0};let r=0,o=0;for(let s of this.getSameOriginWindowChain(e)){let e=s.window.deref();if(r+=null!==(i=null==e?void 0:e.scrollY)&&void 0!==i?i:0,o+=null!==(n=null==e?void 0:e.scrollX)&&void 0!==n?n:0,e===t||!s.iframeElement)break;let a=s.iframeElement.getBoundingClientRect();r+=a.top,o+=a.left}return{top:r,left:o}}}},14297:function(e,t,i){i.d(t,{v2:function(){return L}});var n,r,o,s,a=i(5623),l=i(19711),h=i(55952),d=i(12084),c=i(67095),u=i(8614),g=i(40817),m=i(64649),p=i(99557),f=i(16234),_=i(1966),b=i(76115),C=i(29540),v=i(34308),w=i(67296),y=i(37764),S=i(97147),x=i(71482);let N=/\(&([^\s&])\)|(^|[^&])&([^\s&])/,k=/(&)?(&)([^\s&])/g;(n=o||(o={}))[n.Right=0]="Right",n[n.Left=1]="Left",(r=s||(s={}))[r.Above=0]="Above",r[r.Below=1]="Below";class L extends u.o{constructor(e,t,i,n){e.classList.add("monaco-menu-container"),e.setAttribute("role","presentation");let r=document.createElement("div");r.classList.add("monaco-menu"),r.setAttribute("role","presentation"),super(r,{orientation:1,actionViewItemProvider:e=>this.doGetActionViewItem(e,i,o),context:i.context,actionRunner:i.actionRunner,ariaLabel:i.ariaLabel,ariaRole:"menu",focusOnlyEnabledItems:!0,triggerKeys:{keys:[3,...S.dz||S.IJ?[10]:[]],keyDown:!0}}),this.menuStyles=n,this.menuElement=r,this.actionsList.tabIndex=0,this.initializeOrUpdateStyleSheet(e,n),this._register(l.o.addTarget(r)),this._register((0,h.nm)(r,h.tw.KEY_DOWN,e=>{new d.y(e).equals(2)&&e.preventDefault()})),i.enableMnemonics&&this._register((0,h.nm)(r,h.tw.KEY_DOWN,e=>{let t=e.key.toLocaleLowerCase();if(this.mnemonics.has(t)){h.zB.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)}}})),S.IJ&&this._register((0,h.nm)(r,h.tw.KEY_DOWN,e=>{let t=new d.y(e);t.equals(14)||t.equals(11)?(this.focusedItem=this.viewItems.length-1,this.focusNext(),h.zB.stop(e,!0)):(t.equals(13)||t.equals(12))&&(this.focusedItem=0,this.focusPrevious(),h.zB.stop(e,!0))})),this._register((0,h.nm)(this.domNode,h.tw.MOUSE_OUT,e=>{let t=e.relatedTarget;!(0,h.jg)(t,this.domNode)&&(this.focusedItem=void 0,this.updateFocus(),e.stopPropagation())})),this._register((0,h.nm)(this.actionsList,h.tw.MOUSE_OVER,e=>{let t=e.target;if(!!t&&!!(0,h.jg)(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(l.o.addTarget(this.actionsList)),this._register((0,h.nm)(this.actionsList,l.t.Tap,e=>{let t=e.initialTarget;if(!!t&&!!(0,h.jg)(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 o={parent:this};this.mnemonics=new Map,this.scrollableElement=this._register(new p.s$(r,{alwaysConsumeMouseWheel:!0,horizontal:2,vertical:3,verticalScrollbarSize:7,handleMouseWheel:!0,useShadows:!0}));let s=this.scrollableElement.getDomNode();s.style.position="",this.styleScrollElement(s,n),this._register((0,h.nm)(r,l.t.Change,e=>{h.zB.stop(e,!0);let t=this.scrollableElement.getScrollPosition().scrollTop;this.scrollableElement.setScrollPosition({scrollTop:t-e.translationY})})),this._register((0,h.nm)(s,h.tw.MOUSE_UP,e=>{e.preventDefault()}));let a=(0,h.Jj)(e);r.style.maxHeight=`${Math.max(10,a.innerHeight-e.getBoundingClientRect().top-35)}px`,t=t.filter((e,n)=>{var r;return(null===(r=i.submenuIds)||void 0===r?void 0:r.has(e.id))?(console.warn(`Found submenu cycle: ${e.id}`),!1):(!(e instanceof f.Z0)||n!==t.length-1&&0!==n&&!(t[n-1]instanceof f.Z0))&&!0}),this.push(t,{icon:!0,label:!0,isMenu:!0}),e.appendChild(this.scrollableElement.getDomNode()),this.scrollableElement.scanDomNode(),this.viewItems.filter(e=>!(e instanceof A)).forEach((e,t,i)=>{e.updatePositionInSet(t+1,i.length)})}initializeOrUpdateStyleSheet(e,t){!this.styleSheet&&((0,h.OO)(e)?this.styleSheet=(0,h.dS)(e):(!L.globalStyleSheet&&(L.globalStyleSheet=(0,h.dS)()),this.styleSheet=L.globalStyleSheet)),this.styleSheet.textContent=function(e,t){let i=`
2
+ .monaco-menu {
3
+ font-size: 13px;
4
+ border-radius: 5px;
5
+ min-width: 160px;
6
+ }
7
+
8
+ ${E(b.l.menuSelection)}
9
+ ${E(b.l.menuSubmenu)}
10
+
11
+ .monaco-menu .monaco-action-bar {
12
+ text-align: right;
13
+ overflow: hidden;
14
+ white-space: nowrap;
15
+ }
16
+
17
+ .monaco-menu .monaco-action-bar .actions-container {
18
+ display: flex;
19
+ margin: 0 auto;
20
+ padding: 0;
21
+ width: 100%;
22
+ justify-content: flex-end;
23
+ }
24
+
25
+ .monaco-menu .monaco-action-bar.vertical .actions-container {
26
+ display: inline-block;
27
+ }
28
+
29
+ .monaco-menu .monaco-action-bar.reverse .actions-container {
30
+ flex-direction: row-reverse;
31
+ }
32
+
33
+ .monaco-menu .monaco-action-bar .action-item {
34
+ cursor: pointer;
35
+ display: inline-block;
36
+ transition: transform 50ms ease;
37
+ position: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */
38
+ }
39
+
40
+ .monaco-menu .monaco-action-bar .action-item.disabled {
41
+ cursor: default;
42
+ }
43
+
44
+ .monaco-menu .monaco-action-bar .action-item .icon,
45
+ .monaco-menu .monaco-action-bar .action-item .codicon {
46
+ display: inline-block;
47
+ }
48
+
49
+ .monaco-menu .monaco-action-bar .action-item .codicon {
50
+ display: flex;
51
+ align-items: center;
52
+ }
53
+
54
+ .monaco-menu .monaco-action-bar .action-label {
55
+ font-size: 11px;
56
+ margin-right: 4px;
57
+ }
58
+
59
+ .monaco-menu .monaco-action-bar .action-item.disabled .action-label,
60
+ .monaco-menu .monaco-action-bar .action-item.disabled .action-label:hover {
61
+ color: var(--vscode-disabledForeground);
62
+ }
63
+
64
+ /* Vertical actions */
65
+
66
+ .monaco-menu .monaco-action-bar.vertical {
67
+ text-align: left;
68
+ }
69
+
70
+ .monaco-menu .monaco-action-bar.vertical .action-item {
71
+ display: block;
72
+ }
73
+
74
+ .monaco-menu .monaco-action-bar.vertical .action-label.separator {
75
+ display: block;
76
+ border-bottom: 1px solid var(--vscode-menu-separatorBackground);
77
+ padding-top: 1px;
78
+ padding: 30px;
79
+ }
80
+
81
+ .monaco-menu .secondary-actions .monaco-action-bar .action-label {
82
+ margin-left: 6px;
83
+ }
84
+
85
+ /* Action Items */
86
+ .monaco-menu .monaco-action-bar .action-item.select-container {
87
+ overflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */
88
+ flex: 1;
89
+ max-width: 170px;
90
+ min-width: 60px;
91
+ display: flex;
92
+ align-items: center;
93
+ justify-content: center;
94
+ margin-right: 10px;
95
+ }
96
+
97
+ .monaco-menu .monaco-action-bar.vertical {
98
+ margin-left: 0;
99
+ overflow: visible;
100
+ }
101
+
102
+ .monaco-menu .monaco-action-bar.vertical .actions-container {
103
+ display: block;
104
+ }
105
+
106
+ .monaco-menu .monaco-action-bar.vertical .action-item {
107
+ padding: 0;
108
+ transform: none;
109
+ display: flex;
110
+ }
111
+
112
+ .monaco-menu .monaco-action-bar.vertical .action-item.active {
113
+ transform: none;
114
+ }
115
+
116
+ .monaco-menu .monaco-action-bar.vertical .action-menu-item {
117
+ flex: 1 1 auto;
118
+ display: flex;
119
+ height: 2em;
120
+ align-items: center;
121
+ position: relative;
122
+ margin: 0 4px;
123
+ border-radius: 4px;
124
+ }
125
+
126
+ .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .keybinding,
127
+ .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .keybinding {
128
+ opacity: unset;
129
+ }
130
+
131
+ .monaco-menu .monaco-action-bar.vertical .action-label {
132
+ flex: 1 1 auto;
133
+ text-decoration: none;
134
+ padding: 0 1em;
135
+ background: none;
136
+ font-size: 12px;
137
+ line-height: 1;
138
+ }
139
+
140
+ .monaco-menu .monaco-action-bar.vertical .keybinding,
141
+ .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
142
+ display: inline-block;
143
+ flex: 2 1 auto;
144
+ padding: 0 1em;
145
+ text-align: right;
146
+ font-size: 12px;
147
+ line-height: 1;
148
+ }
149
+
150
+ .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
151
+ height: 100%;
152
+ }
153
+
154
+ .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon {
155
+ font-size: 16px !important;
156
+ display: flex;
157
+ align-items: center;
158
+ }
159
+
160
+ .monaco-menu .monaco-action-bar.vertical .submenu-indicator.codicon::before {
161
+ margin-left: auto;
162
+ margin-right: -20px;
163
+ }
164
+
165
+ .monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,
166
+ .monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {
167
+ opacity: 0.4;
168
+ }
169
+
170
+ .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {
171
+ display: inline-block;
172
+ box-sizing: border-box;
173
+ margin: 0;
174
+ }
175
+
176
+ .monaco-menu .monaco-action-bar.vertical .action-item {
177
+ position: static;
178
+ overflow: visible;
179
+ }
180
+
181
+ .monaco-menu .monaco-action-bar.vertical .action-item .monaco-submenu {
182
+ position: absolute;
183
+ }
184
+
185
+ .monaco-menu .monaco-action-bar.vertical .action-label.separator {
186
+ width: 100%;
187
+ height: 0px !important;
188
+ opacity: 1;
189
+ }
190
+
191
+ .monaco-menu .monaco-action-bar.vertical .action-label.separator.text {
192
+ padding: 0.7em 1em 0.1em 1em;
193
+ font-weight: bold;
194
+ opacity: 1;
195
+ }
196
+
197
+ .monaco-menu .monaco-action-bar.vertical .action-label:hover {
198
+ color: inherit;
199
+ }
200
+
201
+ .monaco-menu .monaco-action-bar.vertical .menu-item-check {
202
+ position: absolute;
203
+ visibility: hidden;
204
+ width: 1em;
205
+ height: 100%;
206
+ }
207
+
208
+ .monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {
209
+ visibility: visible;
210
+ display: flex;
211
+ align-items: center;
212
+ justify-content: center;
213
+ }
214
+
215
+ /* Context Menu */
216
+
217
+ .context-view.monaco-menu-container {
218
+ outline: 0;
219
+ border: none;
220
+ animation: fadeIn 0.083s linear;
221
+ -webkit-app-region: no-drag;
222
+ }
223
+
224
+ .context-view.monaco-menu-container :focus,
225
+ .context-view.monaco-menu-container .monaco-action-bar.vertical:focus,
226
+ .context-view.monaco-menu-container .monaco-action-bar.vertical :focus {
227
+ outline: 0;
228
+ }
229
+
230
+ .hc-black .context-view.monaco-menu-container,
231
+ .hc-light .context-view.monaco-menu-container,
232
+ :host-context(.hc-black) .context-view.monaco-menu-container,
233
+ :host-context(.hc-light) .context-view.monaco-menu-container {
234
+ box-shadow: none;
235
+ }
236
+
237
+ .hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused,
238
+ .hc-light .monaco-menu .monaco-action-bar.vertical .action-item.focused,
239
+ :host-context(.hc-black) .monaco-menu .monaco-action-bar.vertical .action-item.focused,
240
+ :host-context(.hc-light) .monaco-menu .monaco-action-bar.vertical .action-item.focused {
241
+ background: none;
242
+ }
243
+
244
+ /* Vertical Action Bar Styles */
245
+
246
+ .monaco-menu .monaco-action-bar.vertical {
247
+ padding: 4px 0;
248
+ }
249
+
250
+ .monaco-menu .monaco-action-bar.vertical .action-menu-item {
251
+ height: 2em;
252
+ }
253
+
254
+ .monaco-menu .monaco-action-bar.vertical .action-label:not(.separator),
255
+ .monaco-menu .monaco-action-bar.vertical .keybinding {
256
+ font-size: inherit;
257
+ padding: 0 2em;
258
+ max-height: 100%;
259
+ }
260
+
261
+ .monaco-menu .monaco-action-bar.vertical .menu-item-check {
262
+ font-size: inherit;
263
+ width: 2em;
264
+ }
265
+
266
+ .monaco-menu .monaco-action-bar.vertical .action-label.separator {
267
+ font-size: inherit;
268
+ margin: 5px 0 !important;
269
+ padding: 0;
270
+ border-radius: 0;
271
+ }
272
+
273
+ .linux .monaco-menu .monaco-action-bar.vertical .action-label.separator,
274
+ :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .action-label.separator {
275
+ margin-left: 0;
276
+ margin-right: 0;
277
+ }
278
+
279
+ .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
280
+ font-size: 60%;
281
+ padding: 0 1.8em;
282
+ }
283
+
284
+ .linux .monaco-menu .monaco-action-bar.vertical .submenu-indicator,
285
+ :host-context(.linux) .monaco-menu .monaco-action-bar.vertical .submenu-indicator {
286
+ height: 100%;
287
+ mask-size: 10px 10px;
288
+ -webkit-mask-size: 10px 10px;
289
+ }
290
+
291
+ .monaco-menu .action-item {
292
+ cursor: default;
293
+ }`;if(t){i+=`
294
+ /* Arrows */
295
+ .monaco-scrollable-element > .scrollbar > .scra {
296
+ cursor: pointer;
297
+ font-size: 11px !important;
298
+ }
299
+
300
+ .monaco-scrollable-element > .visible {
301
+ opacity: 1;
302
+
303
+ /* Background rule added for IE9 - to allow clicks on dom node */
304
+ background:rgba(0,0,0,0);
305
+
306
+ transition: opacity 100ms linear;
307
+ }
308
+ .monaco-scrollable-element > .invisible {
309
+ opacity: 0;
310
+ pointer-events: none;
311
+ }
312
+ .monaco-scrollable-element > .invisible.fade {
313
+ transition: opacity 800ms linear;
314
+ }
315
+
316
+ /* Scrollable Content Inset Shadow */
317
+ .monaco-scrollable-element > .shadow {
318
+ position: absolute;
319
+ display: none;
320
+ }
321
+ .monaco-scrollable-element > .shadow.top {
322
+ display: block;
323
+ top: 0;
324
+ left: 3px;
325
+ height: 3px;
326
+ width: 100%;
327
+ }
328
+ .monaco-scrollable-element > .shadow.left {
329
+ display: block;
330
+ top: 3px;
331
+ left: 0;
332
+ height: 100%;
333
+ width: 3px;
334
+ }
335
+ .monaco-scrollable-element > .shadow.top-left-corner {
336
+ display: block;
337
+ top: 0;
338
+ left: 0;
339
+ height: 3px;
340
+ width: 3px;
341
+ }
342
+ `;let t=e.scrollbarShadow;t&&(i+=`
343
+ .monaco-scrollable-element > .shadow.top {
344
+ box-shadow: ${t} 0 6px 6px -6px inset;
345
+ }
346
+
347
+ .monaco-scrollable-element > .shadow.left {
348
+ box-shadow: ${t} 6px 0 6px -6px inset;
349
+ }
350
+
351
+ .monaco-scrollable-element > .shadow.top.left {
352
+ box-shadow: ${t} 6px 6px 6px -6px inset;
353
+ }
354
+ `);let n=e.scrollbarSliderBackground;n&&(i+=`
355
+ .monaco-scrollable-element > .scrollbar > .slider {
356
+ background: ${n};
357
+ }
358
+ `);let r=e.scrollbarSliderHoverBackground;r&&(i+=`
359
+ .monaco-scrollable-element > .scrollbar > .slider:hover {
360
+ background: ${r};
361
+ }
362
+ `);let o=e.scrollbarSliderActiveBackground;o&&(i+=`
363
+ .monaco-scrollable-element > .scrollbar > .slider.active {
364
+ background: ${o};
365
+ }
366
+ `)}return i}(t,(0,h.OO)(e))}styleScrollElement(e,t){var i,n;let r=null!==(i=t.foregroundColor)&&void 0!==i?i:"",o=null!==(n=t.backgroundColor)&&void 0!==n?n:"",s=t.borderColor?`1px solid ${t.borderColor}`:"",a=t.shadowColor?`0 2px 8px ${t.shadowColor}`:"";e.style.outline=s,e.style.borderRadius="5px",e.style.color=r,e.style.backgroundColor=o,e.style.boxShadow=a}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 f.Z0)return new A(t.context,e,{icon:!0},this.menuStyles);if(e instanceof f.wY){let n=new I(e,e.actions,i,{...t,submenuIds:new Set([...t.submenuIds||[],e.id])},this.menuStyles);if(t.enableMnemonics){let e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}{let i={enableMnemonics:t.enableMnemonics,useEventAsContext:t.useEventAsContext};if(t.getKeyBinding){let n=t.getKeyBinding(e);if(n){let e=n.getLabel();e&&(i.keybinding=e)}}let n=new D(t.context,e,i,this.menuStyles);if(t.enableMnemonics){let e=n.getMnemonic();if(e&&n.isEnabled()){let t=[];this.mnemonics.has(e)&&(t=this.mnemonics.get(e)),t.push(n),this.mnemonics.set(e,t)}}return n}}}class D extends g.YH{constructor(e,t,i,n){if(i.isMenu=!0,super(t,t,i),this.menuStyle=n,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.action.label;if(e){let t=N.exec(e);t&&(this.mnemonic=(t[1]?t[1]:t[3]).toLocaleLowerCase())}}this.runOnceToEnableMouseUp=new _.pY(()=>{if(!!this.element)this._register((0,h.nm)(this.element,h.tw.MOUSE_UP,e=>{if(h.zB.stop(e,!0),a.vU){if(!new c.n((0,h.Jj)(this.element),e).rightButton)this.onClick(e)}else setTimeout(()=>{this.onClick(e)},0)})),this._register((0,h.nm)(this.element,h.tw.CONTEXT_MENU,e=>{h.zB.stop(e,!0)}))},100),this._register(this.runOnceToEnableMouseUp)}render(e){if(super.render(e),!!this.element)this.container=e,this.item=(0,h.R3)(this.element,(0,h.$)("a.action-menu-item")),this._action.id===f.Z0.ID?this.item.setAttribute("role","presentation"):(this.item.setAttribute("role","menuitem"),this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",`${this.mnemonic}`)),this.check=(0,h.R3)(this.item,(0,h.$)("span.menu-item-check"+v.k.asCSSSelector(b.l.menuSelection))),this.check.setAttribute("role","none"),this.label=(0,h.R3)(this.item,(0,h.$)("span.action-label")),this.options.label&&this.options.keybinding&&((0,h.R3)(this.item,(0,h.$)("span.keybinding")).textContent=this.options.keybinding),this.runOnceToEnableMouseUp.schedule(),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked(),this.applyStyle()}blur(){super.blur(),this.applyStyle()}focus(){var e;super.focus(),null===(e=this.item)||void 0===e||e.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){if(this.options.label){(0,h.PO)(this.label);let t=(0,w.x$)(this.action.label);if(t){let i=function(e){let t=N.exec(e);if(!t)return e;let i=!t[1];return e.replace(N,i?"$2$3":"").trim()}(t);!this.options.enableMnemonics&&(t=i),this.label.setAttribute("aria-label",i.replace(/&&/g,"&"));let n=N.exec(t);if(n){t=x.YU(t),k.lastIndex=0;let i=k.exec(t);for(;i&&i[1];)i=k.exec(t);let r=e=>e.replace(/&amp;&amp;/g,"&amp;");i?this.label.append(x.j3(r(t.substr(0,i.index))," "),(0,h.$)("u",{"aria-hidden":"true"},i[3]),x.oL(r(t.substr(i.index+i[0].length))," ")):this.label.innerText=r(t).trim(),null===(e=this.item)||void 0===e||e.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[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.action.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.action.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.action.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(){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,n=e&&this.menuStyle.selectionBorderColor?`1px solid ${this.menuStyle.selectionBorderColor}`:"",r=e&&this.menuStyle.selectionBorderColor?"-1px":"";this.item&&(this.item.style.color=null!=t?t:"",this.item.style.backgroundColor=null!=i?i:"",this.item.style.outline=n,this.item.style.outlineOffset=r),this.check&&(this.check.style.color=null!=t?t:"")}}class I extends D{constructor(e,t,i,n,r){super(e,e,n,r),this.submenuActions=t,this.parentData=i,this.submenuOptions=n,this.mysubmenu=null,this.submenuDisposables=this._register(new y.SL),this.mouseOver=!1,this.expandDirection=n&&void 0!==n.expandDirection?n.expandDirection:{horizontal:o.Right,vertical:s.Below},this.showScheduler=new _.pY(()=>{this.mouseOver&&(this.cleanupExistingSubmenu(!1),this.createSubmenu(!1))},250),this.hideScheduler=new _.pY(()=>{this.element&&!(0,h.jg)((0,h.vY)(),this.element)&&this.parentData.submenu===this.mysubmenu&&(this.parentData.parent.focus(!1),this.cleanupExistingSubmenu(!0))},750)}render(e){if(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,h.R3)(this.item,(0,h.$)("span.submenu-indicator"+v.k.asCSSSelector(b.l.menuSubmenu))),this.submenuIndicator.setAttribute("aria-hidden","true")),this._register((0,h.nm)(this.element,h.tw.KEY_UP,e=>{let t=new d.y(e);(t.equals(17)||t.equals(3))&&(h.zB.stop(e,!0),this.createSubmenu(!0))})),this._register((0,h.nm)(this.element,h.tw.KEY_DOWN,e=>{let t=new d.y(e);(0,h.vY)()===this.item&&(t.equals(17)||t.equals(3))&&h.zB.stop(e,!0)})),this._register((0,h.nm)(this.element,h.tw.MOUSE_OVER,e=>{!this.mouseOver&&(this.mouseOver=!0,this.showScheduler.schedule())})),this._register((0,h.nm)(this.element,h.tw.MOUSE_LEAVE,e=>{this.mouseOver=!1})),this._register((0,h.nm)(this.element,h.tw.FOCUS_OUT,e=>{this.element&&!(0,h.jg)((0,h.vY)(),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){h.zB.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,n){let r={top:0,left:0};return r.left=(0,m.bK)(e.width,t.width,{position:n.horizontal===o.Right?0:1,offset:i.left,size:i.width}),r.left>=i.left&&r.left<i.left+i.width&&(i.left+10+t.width<=e.width&&(r.left=i.left+10),i.top+=10,i.height=0),r.top=(0,m.bK)(e.height,t.height,{position:0,offset:i.top,size:0}),r.top+t.height===i.top&&r.top+i.height+t.height<=e.height&&(r.top+=i.height),r}createSubmenu(e=!0){if(!!this.element)if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.updateAriaExpanded("true"),this.submenuContainer=(0,h.R3)(this.element,(0,h.$)("div.monaco-submenu")),this.submenuContainer.classList.add("menubar-menu-items-holder","context-view");let t=parseFloat((0,h.Jj)(this.parentData.parent.domNode).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 L(this.submenuContainer,this.submenuActions.length?this.submenuActions:[new f.eZ],this.submenuOptions,this.menuStyle);let i=this.element.getBoundingClientRect(),n={top:i.top-t,left:i.left,height:i.height+2*t,width:i.width},r=this.submenuContainer.getBoundingClientRect(),o=(0,h.Jj)(this.element),{top:s,left:a}=this.calculateSubmenuMenuLayout(new h.Ro(o.innerWidth,o.innerHeight),h.Ro.lift(r),n,this.expandDirection);this.submenuContainer.style.left=`${a-r.left}px`,this.submenuContainer.style.top=`${s-r.top}px`,this.submenuDisposables.add((0,h.nm)(this.submenuContainer,h.tw.KEY_UP,e=>{new d.y(e).equals(15)&&(h.zB.stop(e,!0),this.parentData.parent.focus(),this.cleanupExistingSubmenu(!0))})),this.submenuDisposables.add((0,h.nm)(this.submenuContainer,h.tw.KEY_DOWN,e=>{new d.y(e).equals(15)&&h.zB.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(){super.applyStyle();let e=this.element&&this.element.classList.contains("focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator&&(this.submenuIndicator.style.color=null!=e?e:"")}dispose(){super.dispose(),this.hideScheduler.dispose(),this.mysubmenu&&(this.mysubmenu.dispose(),this.mysubmenu=null),this.submenuContainer&&(this.submenuContainer=void 0)}}class A extends g.gU{constructor(e,t,i,n){super(e,t,i),this.menuStyles=n}render(e){super.render(e),this.label&&(this.label.style.borderBottomColor=this.menuStyles.separatorColor?`${this.menuStyles.separatorColor}`:"")}}function E(e){let t=(0,C.u)()[e.id];return`.codicon-${e.id}:before { content: '\\${t.toString(16)}'; }`}},32753:function(e,t,i){i.d(t,{S:function(){return n}}),i(43881);let n="monaco-mouse-cursor-text"},67233:function(e,t,i){i.d(t,{f:function(){return a}});var n=i(55952),r=i(475),o=i(98212),s=i(37764);class a{constructor(){let e;this._onDidWillResize=new o.Q5,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new o.Q5,this.onDidResize=this._onDidResize.event,this._sashListener=new s.SL,this._size=new n.Ro(0,0),this._minSize=new n.Ro(0,0),this._maxSize=new n.Ro(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new r.g(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new r.g(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new r.g(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:r.l.North}),this._southSash=new r.g(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:r.l.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let t=0,i=0;this._sashListener.add(o.ju.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{void 0===e&&(this._onDidWillResize.fire(),e=this._size,t=0,i=0)})),this._sashListener.add(o.ju.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{void 0!==e&&(e=void 0,t=0,i=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(i=n.currentX-n.startX,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(i=-(n.currentX-n.startX),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+i),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(o.ju.any(this._eastSash.onDidReset,this._westSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(o.ju.any(this._northSash.onDidReset,this._southSash.onDidReset)(e=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,i,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=i?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){let{height:i,width:r}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(i,Math.min(o,e)),t=Math.max(r,Math.min(s,t));let a=new n.Ro(t,e);!n.Ro.equals(a,this._size)&&(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}},98927:function(e,t,i){i.d(t,{X:function(){return g},aG:function(){return c},gB:function(){return d}});var n=i(95173),r=i(47983),o=i(1966),s=i(42785),a=i(16168),l=i(98212),h=i(55278);function d(e){return"object"==typeof e&&"visibility"in e&&"data"in e}function c(e){switch(e){case!0:return 1;case!1:return 0;default:return e}}function u(e){return"boolean"==typeof e.collapsible}class g{constructor(e,t,i,n={}){var r;this.user=e,this.list=t,this.rootRef=[],this.eventBufferer=new l.E7,this._onDidChangeCollapseState=new l.Q5,this.onDidChangeCollapseState=this.eventBufferer.wrapEvent(this._onDidChangeCollapseState.event),this._onDidChangeRenderNodeCount=new l.Q5,this.onDidChangeRenderNodeCount=this.eventBufferer.wrapEvent(this._onDidChangeRenderNodeCount.event),this._onDidSplice=new l.Q5,this.onDidSplice=this._onDidSplice.event,this.refilterDelayer=new o.vp(s.n),this.collapseByDefault=void 0!==n.collapseByDefault&&n.collapseByDefault,this.allowNonCollapsibleParents=null!==(r=n.allowNonCollapsibleParents)&&void 0!==r&&r,this.filter=n.filter,this.autoExpandSingleChildren=void 0!==n.autoExpandSingleChildren&&n.autoExpandSingleChildren,this.root={parent:void 0,element:i,children:[],depth:0,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:!1,collapsed:!1,renderNodeCount:0,visibility:1,visible:!0,filterData:void 0}}splice(e,t,i=h.$.empty(),r={}){if(0===e.length)throw new n.ac(this.user,"Invalid tree location");r.diffIdentityProvider?this.spliceSmart(r.diffIdentityProvider,e,t,i,r):this.spliceSimple(e,t,i,r)}spliceSmart(e,t,i,n,r,o){var s;void 0===n&&(n=h.$.empty()),void 0===o&&(o=null!==(s=r.diffDepth)&&void 0!==s?s:0);let{parentNode:l}=this.getParentNodeWithListIndex(t);if(!l.lastDiffIds)return this.spliceSimple(t,i,n,r);let d=[...n],c=t[t.length-1],u=new a.Hs({getElements:()=>l.lastDiffIds},{getElements:()=>[...l.children.slice(0,c),...d,...l.children.slice(c+i)].map(t=>e.getId(t.element).toString())}).ComputeDiff(!1);if(u.quitEarly)return l.lastDiffIds=void 0,this.spliceSimple(t,i,d,r);let g=t.slice(0,-1),m=(t,i,n)=>{if(o>0)for(let s=0;s<n;s++)t--,i--,this.spliceSmart(e,[...g,t,0],Number.MAX_SAFE_INTEGER,d[i].children,r,o-1)},p=Math.min(l.children.length,c+i),f=d.length;for(let e of u.changes.sort((e,t)=>t.originalStart-e.originalStart))m(p,f,p-(e.originalStart+e.originalLength)),p=e.originalStart,f=e.modifiedStart-c,this.spliceSimple([...g,p],e.originalLength,h.$.slice(d,f,f+e.modifiedLength),r);m(p,f,p)}spliceSimple(e,t,i=h.$.empty(),{onDidCreateNode:n,onDidDeleteNode:o,diffIdentityProvider:s}){let{parentNode:a,listIndex:l,revealed:d,visible:c}=this.getParentNodeWithListIndex(e),u=[],g=h.$.map(i,e=>this.createTreeNode(e,a,a.visible?1:0,d,u,n)),m=e[e.length-1],p=0;for(let e=m;e>=0&&e<a.children.length;e--){let t=a.children[e];if(t.visible){p=t.visibleChildIndex;break}}let f=[],_=0,b=0;for(let e of g)f.push(e),b+=e.renderNodeCount,e.visible&&(e.visibleChildIndex=p+_++);let C=(0,r.db)(a.children,m,t,f);s?a.lastDiffIds?(0,r.db)(a.lastDiffIds,m,t,f.map(e=>s.getId(e.element).toString())):a.lastDiffIds=a.children.map(e=>s.getId(e.element).toString()):a.lastDiffIds=void 0;let v=0;for(let e of C)e.visible&&v++;if(0!==v)for(let e=m+f.length;e<a.children.length;e++){let t=a.children[e];t.visible&&(t.visibleChildIndex-=v)}if(a.visibleChildrenCount+=_-v,d&&c){let e=C.reduce((e,t)=>e+(t.visible?t.renderNodeCount:0),0);this._updateAncestorsRenderNodeCount(a,b-e),this.list.splice(l,e,u)}if(C.length>0&&o){let e=t=>{o(t),t.children.forEach(e)};C.forEach(e)}this._onDidSplice.fire({insertedNodes:f,deletedNodes:C});let w=a;for(;w;){if(2===w.visibility){this.refilterDelayer.trigger(()=>this.refilter());break}w=w.parent}}rerender(e){if(0===e.length)throw new n.ac(this.user,"Invalid tree location");let{node:t,listIndex:i,revealed:r}=this.getTreeNodeWithListIndex(e);t.visible&&r&&this.list.splice(i,1,[t])}has(e){return this.hasTreeNode(e)}getListIndex(e){let{listIndex:t,visible:i,revealed:n}=this.getTreeNodeWithListIndex(e);return i&&n?t:-1}getListRenderCount(e){return this.getTreeNode(e).renderNodeCount}isCollapsible(e){return this.getTreeNode(e).collapsible}setCollapsible(e,t){let i=this.getTreeNode(e);void 0===t&&(t=!i.collapsible);let n={collapsible:t};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,n))}isCollapsed(e){return this.getTreeNode(e).collapsed}setCollapsed(e,t,i){let n=this.getTreeNode(e);void 0===t&&(t=!n.collapsed);let r={collapsed:t,recursive:i||!1};return this.eventBufferer.bufferEvents(()=>this._setCollapseState(e,r))}_setCollapseState(e,t){let{node:i,listIndex:n,revealed:r}=this.getTreeNodeWithListIndex(e),o=this._setListNodeCollapseState(i,n,r,t);if(i!==this.root&&this.autoExpandSingleChildren&&o&&!u(t)&&i.collapsible&&!i.collapsed&&!t.recursive){let n=-1;for(let e=0;e<i.children.length;e++)if(i.children[e].visible){if(n>-1){n=-1;break}n=e}n>-1&&this._setCollapseState([...e,n],t)}return o}_setListNodeCollapseState(e,t,i,n){let r=this._setNodeCollapseState(e,n,!1);if(!i||!e.visible||!r)return r;let o=e.renderNodeCount,s=this.updateNodeAfterCollapseChange(e);return this.list.splice(t+1,o-(-1===t?0:1),s.slice(1)),r}_setNodeCollapseState(e,t,i){let n;if(e===this.root?n=!1:(u(t)?(n=e.collapsible!==t.collapsible,e.collapsible=t.collapsible):e.collapsible?(n=e.collapsed!==t.collapsed,e.collapsed=t.collapsed):n=!1,n&&this._onDidChangeCollapseState.fire({node:e,deep:i})),!u(t)&&t.recursive)for(let i of e.children)n=this._setNodeCollapseState(i,t,!0)||n;return n}expandTo(e){this.eventBufferer.bufferEvents(()=>{let t=this.getTreeNode(e);for(;t.parent;)t=t.parent,e=e.slice(0,e.length-1),t.collapsed&&this._setCollapseState(e,{collapsed:!1,recursive:!1})})}refilter(){let e=this.root.renderNodeCount,t=this.updateNodeAfterFilterChange(this.root);this.list.splice(0,e,t),this.refilterDelayer.cancel()}createTreeNode(e,t,i,n,r,o){let s={parent:t,element:e.element,children:[],depth:t.depth+1,visibleChildrenCount:0,visibleChildIndex:-1,collapsible:"boolean"==typeof e.collapsible?e.collapsible:void 0!==e.collapsed,collapsed:void 0===e.collapsed?this.collapseByDefault:e.collapsed,renderNodeCount:1,visibility:1,visible:!0,filterData:void 0},a=this._filterNode(s,i);s.visibility=a,n&&r.push(s);let l=e.children||h.$.empty(),d=n&&0!==a&&!s.collapsed,c=0,u=1;for(let e of l){let t=this.createTreeNode(e,s,a,d,r,o);s.children.push(t),u+=t.renderNodeCount,t.visible&&(t.visibleChildIndex=c++)}return!this.allowNonCollapsibleParents&&(s.collapsible=s.collapsible||s.children.length>0),s.visibleChildrenCount=c,s.visible=2===a?c>0:1===a,s.visible?!s.collapsed&&(s.renderNodeCount=u):(s.renderNodeCount=0,n&&r.pop()),null==o||o(s),s}updateNodeAfterCollapseChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterCollapseChange(e,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterCollapseChange(e,t){if(!1===e.visible)return 0;if(t.push(e),e.renderNodeCount=1,!e.collapsed)for(let i of e.children)e.renderNodeCount+=this._updateNodeAfterCollapseChange(i,t);return this._onDidChangeRenderNodeCount.fire(e),e.renderNodeCount}updateNodeAfterFilterChange(e){let t=e.renderNodeCount,i=[];return this._updateNodeAfterFilterChange(e,e.visible?1:0,i),this._updateAncestorsRenderNodeCount(e.parent,i.length-t),i}_updateNodeAfterFilterChange(e,t,i,n=!0){let r;if(e!==this.root){if(0===(r=this._filterNode(e,t)))return e.visible=!1,e.renderNodeCount=0,!1;n&&i.push(e)}let o=i.length;e.renderNodeCount=e===this.root?0:1;let s=!1;if(e.collapsed&&0===r)e.visibleChildrenCount=0;else{let t=0;for(let o of e.children)s=this._updateNodeAfterFilterChange(o,r,i,n&&!e.collapsed)||s,o.visible&&(o.visibleChildIndex=t++);e.visibleChildrenCount=t}return e!==this.root&&(e.visible=2===r?s:1===r,e.visibility=r),e.visible?!e.collapsed&&(e.renderNodeCount+=i.length-o):(e.renderNodeCount=0,n&&i.pop()),this._onDidChangeRenderNodeCount.fire(e),e.visible}_updateAncestorsRenderNodeCount(e,t){if(0!==t)for(;e;)e.renderNodeCount+=t,this._onDidChangeRenderNodeCount.fire(e),e=e.parent}_filterNode(e,t){let i=this.filter?this.filter.filter(e.element,t):1;return"boolean"==typeof i?(e.filterData=void 0,i?1:0):d(i)?(e.filterData=i.data,c(i.visibility)):(e.filterData=void 0,c(i))}hasTreeNode(e,t=this.root){if(!e||0===e.length)return!0;let[i,...n]=e;return!(i<0)&&!(i>t.children.length)&&this.hasTreeNode(n,t.children[i])}getTreeNode(e,t=this.root){if(!e||0===e.length)return t;let[i,...r]=e;if(i<0||i>t.children.length)throw new n.ac(this.user,"Invalid tree location");return this.getTreeNode(r,t.children[i])}getTreeNodeWithListIndex(e){if(0===e.length)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};let{parentNode:t,listIndex:i,revealed:r,visible:o}=this.getParentNodeWithListIndex(e),s=e[e.length-1];if(s<0||s>t.children.length)throw new n.ac(this.user,"Invalid tree location");let a=t.children[s];return{node:a,listIndex:i,revealed:r,visible:o&&a.visible}}getParentNodeWithListIndex(e,t=this.root,i=0,r=!0,o=!0){let[s,...a]=e;if(s<0||s>t.children.length)throw new n.ac(this.user,"Invalid tree location");for(let e=0;e<s;e++)i+=t.children[e].renderNodeCount;return(r=r&&!t.collapsed,o=o&&t.visible,0===a.length)?{parentNode:t,listIndex:i,revealed:r,visible:o}:this.getParentNodeWithListIndex(a,t.children[s],i+1,r,o)}getNode(e=[]){return this.getTreeNode(e)}getNodeLocation(e){let t=[],i=e;for(;i.parent;)t.push(i.parent.children.indexOf(i)),i=i.parent;return t.reverse()}getParentNodeLocation(e){return 0===e.length?void 0:1===e.length?[]:(0,r.JH)(e)[0]}getFirstElementChild(e){let t=this.getTreeNode(e);if(0!==t.children.length)return t.children[0].element}}},47983:function(e,t,i){var n,r;function o(e,t=0){return e[e.length-(1+t)]}function s(e){if(0===e.length)throw Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function a(e,t,i=(e,t)=>e===t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(!i(e[n],t[n]))return!1;return!0}function l(e,t){let i=e.length-1;t<i&&(e[t]=e[i]),e.pop()}function h(e,t,i){return function(e,t){let i=0,n=e-1;for(;i<=n;){let e=(i+n)/2|0,r=t(e);if(r<0)i=e+1;else{if(!(r>0))return e;n=e-1}}return-(i+1)}(e.length,n=>i(e[n],t))}i.d(t,{BV:function(){return R},EB:function(){return b},Gb:function(){return o},H9:function(){return M},HW:function(){return function e(t,i,n){if((t|=0)>=i.length)throw TypeError("invalid index");let r=i[Math.floor(i.length*Math.random())],o=[],s=[],a=[];for(let e of i){let t=n(e,r);t<0?o.push(e):t>0?s.push(e):a.push(e)}return t<o.length?e(t,o,n):t<o.length+a.length?a[0]:e(t-(o.length+a.length),s,n)}},JH:function(){return s},KO:function(){return g},LS:function(){return l},Of:function(){return _},Rs:function(){return p},W$:function(){return T},XY:function(){return f},Xh:function(){return C},Zv:function(){return w},_2:function(){return N},_i:function(){return O},al:function(){return S},db:function(){return k},fS:function(){return a},f_:function(){return I},fv:function(){return A},kX:function(){return m},mw:function(){return c},nW:function(){return E},ry:function(){return h},tT:function(){return D},vA:function(){return x},vM:function(){return d},w6:function(){return v},zI:function(){return y},zy:function(){return u}});function d(e,t){let i,n=[];for(let r of e.slice(0).sort(t))i&&0===t(i[0],r)?i.push(r):(i=[r],n.push(i));return n}function*c(e,t){let i,n;for(let r of e)void 0!==n&&t(n,r)?i.push(r):(i&&(yield i),i=[r]),n=r;i&&(yield i)}function u(e,t){for(let i=0;i<=e.length;i++)t(0===i?void 0:e[i-1],i===e.length?void 0:e[i])}function g(e,t){for(let i=0;i<e.length;i++)t(0===i?void 0:e[i-1],e[i],i+1===e.length?void 0:e[i+1])}function m(e){return e.filter(e=>!!e)}function p(e){let t=0;for(let i=0;i<e.length;i++)e[i]&&(e[t]=e[i],t+=1);e.length=t}function f(e){return!Array.isArray(e)||0===e.length}function _(e){return Array.isArray(e)&&e.length>0}function b(e,t=e=>e){let i=new Set;return e.filter(e=>{let n=t(e);return!i.has(n)&&(i.add(n),!0)})}function C(e,t){return e.length>0?e[0]:t}function v(e,t){let i="number"==typeof t?e:0;"number"==typeof t?i=e:(i=0,t=e);let n=[];if(i<=t)for(let e=i;e<t;e++)n.push(e);else for(let e=i;e>t;e--)n.push(e);return n}function w(e,t,i){let n=e.slice(0,t),r=e.slice(t);return n.concat(i,r)}function y(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.unshift(t))}function S(e,t){let i=e.indexOf(t);i>-1&&(e.splice(i,1),e.push(t))}function x(e,t){for(let i of t)e.push(i)}function N(e){return Array.isArray(e)?e:[e]}function k(e,t,i,n){let r=L(e,t),o=e.splice(r,i);return void 0===o&&(o=[]),!function(e,t,i){let n=L(e,t),r=e.length,o=i.length;e.length=r+o;for(let t=r-1;t>=n;t--)e[t+o]=e[t];for(let t=0;t<o;t++)e[t+n]=i[t]}(e,r,n),o}function L(e,t){return t<0?Math.max(t+e.length,0):Math.min(t,e.length)}function D(e,t){return(i,n)=>t(e(i),e(n))}function I(...e){return(t,i)=>{for(let r of e){let e=r(t,i);if(!n.isNeitherLessOrGreaterThan(e))return e}return n.neitherLessOrGreaterThan}}(r=n||(n={})).isLessThan=function(e){return e<0},r.isLessThanOrEqual=function(e){return e<=0},r.isGreaterThan=function(e){return e>0},r.isNeitherLessOrGreaterThan=function(e){return 0===e},r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0;let A=(e,t)=>e-t,E=(e,t)=>A(e?1:0,t?1:0);function R(e){return(t,i)=>-e(t,i)}class M{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t<this.items.length&&e(this.items[t]);)t++;let i=t===this.firstIdx?null:this.items.slice(this.firstIdx,t);return this.firstIdx=t,i}takeFromEndWhile(e){let t=this.lastIdx;for(;t>=0&&e(this.items[t]);)t--;let i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(0!==this.length)return this.items[this.firstIdx]}dequeue(){let e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){let t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}class T{constructor(e){this.iterate=e}toArray(){let e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new T(t=>this.iterate(i=>!e(i)||t(i)))}map(e){return new T(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t;let i=!0;return this.iterate(r=>((i||n.isGreaterThan(e(r,t)))&&(i=!1,t=r),!0)),t}}T.empty=new T(e=>{});class O{constructor(e){this._indexMap=e}static createSortPermutation(e,t){return new O(Array.from(e.keys()).sort((i,n)=>t(e[i],e[n])))}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){let e=this._indexMap.slice();for(let t=0;t<this._indexMap.length;t++)e[this._indexMap[t]]=t;return new O(e)}}},52640:function(e,t,i){var n,r;let o,s;function a(e,t){let i=Math.pow(10,t);return Math.round(e*i)/i}i.d(t,{Il:function(){return c},Oz:function(){return h},VS:function(){return l},tx:function(){return d}});class l{constructor(e,t,i,n=1){this._rgbaBrand=void 0,this.r=0|Math.min(255,Math.max(0,e)),this.g=0|Math.min(255,Math.max(0,t)),this.b=0|Math.min(255,Math.max(0,i)),this.a=a(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a}}class h{constructor(e,t,i,n){this._hslaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=a(Math.max(Math.min(1,t),0),3),this.l=a(Math.max(Math.min(1,i),0),3),this.a=a(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a}static fromRGBA(e){let t=e.r/255,i=e.g/255,n=e.b/255,r=e.a,o=Math.max(t,i,n),s=Math.min(t,i,n),a=0,l=0,d=(s+o)/2,c=o-s;if(c>0){switch(l=Math.min(d<=.5?c/(2*d):c/(2-2*d),1),o){case t:a=(i-n)/c+(i<n?6:0);break;case i:a=(n-t)/c+2;break;case n:a=(t-i)/c+4}a*=60,a=Math.round(a)}return new h(a,l,d,r)}static _hue2rgb(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}static toRGBA(e){let t,i,n;let r=e.h/360,{s:o,l:s,a}=e;if(0===o)t=i=n=s;else{let e=s<.5?s*(1+o):s+o-s*o,a=2*s-e;t=h._hue2rgb(a,e,r+1/3),i=h._hue2rgb(a,e,r),n=h._hue2rgb(a,e,r-1/3)}return new l(Math.round(255*t),Math.round(255*i),Math.round(255*n),a)}}class d{constructor(e,t,i,n){this._hsvaBrand=void 0,this.h=0|Math.max(Math.min(360,e),0),this.s=a(Math.max(Math.min(1,t),0),3),this.v=a(Math.max(Math.min(1,i),0),3),this.a=a(Math.max(Math.min(1,n),0),3)}static equals(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a}static fromRGBA(e){let t;let i=e.r/255,n=e.g/255,r=e.b/255,o=Math.max(i,n,r),s=o-Math.min(i,n,r);return new d(Math.round(60*(t=0===s?0:o===i?((n-r)/s%6+6)%6:o===n?(r-i)/s+2:(i-n)/s+4)),0===o?0:s/o,o,e.a)}static toRGBA(e){let{h:t,s:i,v:n,a:r}=e,o=n*i,s=o*(1-Math.abs(t/60%2-1)),a=n-o,[h,d,c]=[0,0,0];return t<60?(h=o,d=s):t<120?(h=s,d=o):t<180?(d=o,c=s):t<240?(d=s,c=o):t<300?(h=s,c=o):t<=360&&(h=o,c=s),new l(h=Math.round((h+a)*255),d=Math.round((d+a)*255),c=Math.round((c+a)*255),r)}}class c{static fromHex(e){return c.Format.CSS.parseHex(e)||c.red}static equals(e,t){return!e&&!t||!!e&&!!t&&e.equals(t)}get hsla(){return this._hsla?this._hsla:h.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:d.fromRGBA(this.rgba)}constructor(e){if(e){if(e instanceof l)this.rgba=e;else if(e instanceof h)this._hsla=e,this.rgba=h.toRGBA(e);else if(e instanceof d)this._hsva=e,this.rgba=d.toRGBA(e);else throw Error("Invalid color ctor argument")}else throw Error("Color needs a value")}equals(e){return!!e&&l.equals(this.rgba,e.rgba)&&h.equals(this.hsla,e.hsla)&&d.equals(this.hsva,e.hsva)}getRelativeLuminance(){let e=c._relativeLuminanceForComponent(this.rgba.r),t=c._relativeLuminanceForComponent(this.rgba.g),i=c._relativeLuminanceForComponent(this.rgba.b);return a(.2126*e+.7152*t+.0722*i,4)}static _relativeLuminanceForComponent(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}isLighter(){return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128}isLighterThan(e){let t=this.getRelativeLuminance();return t>e.getRelativeLuminance()}isDarkerThan(e){let t=this.getRelativeLuminance();return t<e.getRelativeLuminance()}lighten(e){return new c(new h(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*e,this.hsla.a))}darken(e){return new c(new h(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*e,this.hsla.a))}transparent(e){let{r:t,g:i,b:n,a:r}=this.rgba;return new c(new l(t,i,n,r*e))}isTransparent(){return 0===this.rgba.a}isOpaque(){return 1===this.rgba.a}opposite(){return new c(new l(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(e){if(this.isOpaque()||1!==e.rgba.a)return this;let{r:t,g:i,b:n,a:r}=this.rgba;return new c(new l(e.rgba.r-r*(e.rgba.r-t),e.rgba.g-r*(e.rgba.g-i),e.rgba.b-r*(e.rgba.b-n),1))}toString(){return!this._toString&&(this._toString=c.Format.CSS.format(this)),this._toString}static getLighterColor(e,t,i){if(e.isLighterThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),r=t.getRelativeLuminance();return i=i*(r-n)/r,e.lighten(i)}static getDarkerColor(e,t,i){if(e.isDarkerThan(t))return e;i=i||.5;let n=e.getRelativeLuminance(),r=t.getRelativeLuminance();return i=i*(n-r)/n,e.darken(i)}}c.white=new c(new l(255,255,255,1)),c.black=new c(new l(0,0,0,1)),c.red=new c(new l(255,0,0,1)),c.blue=new c(new l(0,0,255,1)),c.green=new c(new l(0,255,0,1)),c.cyan=new c(new l(0,255,255,1)),c.lightgrey=new c(new l(211,211,211,1)),c.transparent=new c(new l(0,0,0,0));!function(e){e.formatRGB=function(e){return 1===e.rgba.a?`rgb(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b})`:n.Format.CSS.formatRGBA(e)};e.formatRGBA=function(e){return`rgba(${e.rgba.r}, ${e.rgba.g}, ${e.rgba.b}, ${+e.rgba.a.toFixed(2)})`};e.formatHSL=function(e){return 1===e.hsla.a?`hsl(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%)`:n.Format.CSS.formatHSLA(e)};function t(e){let t=e.toString(16);return 2!==t.length?"0"+t:t}e.formatHSLA=function(e){return`hsla(${e.hsla.h}, ${(100*e.hsla.s).toFixed(2)}%, ${(100*e.hsla.l).toFixed(2)}%, ${e.hsla.a.toFixed(2)})`};e.formatHex=function(e){return`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}`};e.formatHexA=function(e,i=!1){return i&&1===e.rgba.a?n.Format.CSS.formatHex(e):`#${t(e.rgba.r)}${t(e.rgba.g)}${t(e.rgba.b)}${t(Math.round(255*e.rgba.a))}`};e.format=function(e){return e.isOpaque()?n.Format.CSS.formatHex(e):n.Format.CSS.formatRGBA(e)};function i(e){switch(e){case 48:break;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}e.parseHex=function(e){let t=e.length;if(0===t||35!==e.charCodeAt(0))return null;if(7===t){let t=16*i(e.charCodeAt(1))+i(e.charCodeAt(2)),r=16*i(e.charCodeAt(3))+i(e.charCodeAt(4));return new n(new l(t,r,16*i(e.charCodeAt(5))+i(e.charCodeAt(6)),1))}if(9===t){let t=16*i(e.charCodeAt(1))+i(e.charCodeAt(2)),r=16*i(e.charCodeAt(3))+i(e.charCodeAt(4)),o=16*i(e.charCodeAt(5))+i(e.charCodeAt(6));return new n(new l(t,r,o,(16*i(e.charCodeAt(7))+i(e.charCodeAt(8)))/255))}if(4===t){let t=i(e.charCodeAt(1)),r=i(e.charCodeAt(2)),o=i(e.charCodeAt(3));return new n(new l(16*t+t,16*r+r,16*o+o))}if(5===t){let t=i(e.charCodeAt(1)),r=i(e.charCodeAt(2)),o=i(e.charCodeAt(3)),s=i(e.charCodeAt(4));return new n(new l(16*t+t,16*r+r,16*o+o,(16*s+s)/255))}return null}}((r=(n=c||(c={})).Format||(n.Format={})).CSS||(r.CSS={}))},81930:function(e,t,i){i.d(t,{LE:function(){return o}});var n=i(71461);let r=new n.o(()=>{let e=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"});return{collator:e,collatorIsNumeric:e.resolvedOptions().numeric}});new n.o(()=>({collator:new Intl.Collator(void 0,{numeric:!0})})),new n.o(()=>({collator:new Intl.Collator(void 0,{numeric:!0,sensitivity:"accent"})}));function o(e,t,i){let n=e.toLowerCase(),o=t.toLowerCase(),s=function(e,t,i){let n=e.toLowerCase(),r=t.toLowerCase(),o=n.startsWith(i),s=r.startsWith(i);if(o!==s)return o?-1:1;if(o&&s){if(n.length<r.length)return -1;if(n.length>r.length)return 1}return 0}(e,t,i);if(s)return s;let a=n.endsWith(i);if(a!==o.endsWith(i))return a?-1:1;let l=function(e,t,i=!1){let n=e||"",o=t||"",s=r.value.collator.compare(n,o);return r.value.collatorIsNumeric&&0===s&&n!==o?n<o?-1:1:s}(n,o);return 0!==l?l:n.localeCompare(o)}},57341:function(e,t,i){i.d(t,{$h:function(){return s},Tx:function(){return a},ZC:function(){return o},ht:function(){return r}});var n=i(47983);let r=(e,t)=>e===t;function o(e=r){return(t,i)=>n.fS(t,i,e)}function s(){return(e,t)=>e.equals(t)}function a(e,t,i){return e&&t?i(e,t):e===t}new WeakMap},74927:function(e,t,i){i.d(t,{M:function(){return n}});function n(e,t){let i;let n=this,r=!1;return function(){if(r)return i;if(r=!0,t)try{i=e.apply(n,arguments)}finally{t()}else i=e.apply(n,arguments);return i}}},37764:function(e,t,i){i.d(t,{B9:function(){return b},F8:function(){return C},JT:function(){return y},Jz:function(){return N},L6:function(){return x},Nq:function(){return m},OF:function(){return v},SL:function(){return w},Wf:function(){return _},XK:function(){return S},b2:function(){return k},dk:function(){return f},wi:function(){return g}});var n,r,o,s,a,l,h,d=i(74927),c=i(55278);let u=null;function g(e){return null==u||u.trackDisposable(e),e}function m(e){null==u||u.markAsDisposed(e)}function p(e,t){null==u||u.setParent(e,t)}function f(e){return null==u||u.markAsSingleton(e),e}function _(e){return"object"==typeof e&&null!==e&&"function"==typeof e.dispose&&0===e.dispose.length}function b(e){if(c.$.is(e)){let t=[];for(let i of e)if(i)try{i.dispose()}catch(e){t.push(e)}if(1===t.length)throw t[0];if(t.length>1)throw AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}if(e)return e.dispose(),e}function C(...e){let t=v(()=>b(e));return!function(e,t){if(!!u)for(let i of e)u.setParent(i,t)}(e,t),t}function v(e){let t=g({dispose:(0,d.M)(()=>{m(t),e()})});return t}class w{constructor(){this._toDispose=new Set,this._isDisposed=!1,g(this)}dispose(){if(!this._isDisposed)m(this),this._isDisposed=!0,this.clear()}get isDisposed(){return this._isDisposed}clear(){if(0!==this._toDispose.size)try{b(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw Error("Cannot register a disposable on itself!");return p(e,this),this._isDisposed?!w.DISABLE_DISPOSED_WARNING&&console.warn(Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}deleteAndLeak(e){if(!!e)this._toDispose.has(e)&&(this._toDispose.delete(e),p(e,null))}}w.DISABLE_DISPOSED_WARNING=!1;class y{constructor(){this._store=new w,g(this),p(this._store,this)}dispose(){m(this),this._store.dispose()}_register(e){if(e===this)throw Error("Cannot register a disposable on itself!");return this._store.add(e)}}y.None=Object.freeze({dispose(){}});class S{constructor(){this._isDisposed=!1,g(this)}get value(){return this._isDisposed?void 0:this._value}set value(e){var t;if(!this._isDisposed&&e!==this._value)null===(t=this._value)||void 0===t||t.dispose(),e&&p(e,this),this._value=e}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,m(this),null===(e=this._value)||void 0===e||e.dispose(),this._value=void 0}}class x{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return 0==--this._counter&&this._disposable.dispose(),this}}class N{constructor(e){this.object=e}dispose(){}}class k{constructor(){this._store=new Map,this._isDisposed=!1,g(this)}dispose(){m(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(!!this._store.size)try{b(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,t,i=!1){var n;this._isDisposed&&console.warn(Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),!i&&(null===(n=this._store.get(e))||void 0===n||n.dispose()),this._store.set(e,t)}deleteAndDispose(e){var t;null===(t=this._store.get(e))||void 0===t||t.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}},42785:function(e,t,i){i.d(t,{n:function(){return n}});let n=Symbol("MicrotaskDelay")},34308:function(e,t,i){i.d(t,{k:function(){return r}});var n,r,o=i(76115);(n||(n={})).isThemeColor=function(e){return e&&"object"==typeof e&&"string"==typeof e.id},!function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9-]+",e.iconModifierExpression="~[A-Za-z]+",e.iconNameCharacter="[A-Za-z0-9~-]";let t=RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function i(e){let n=t.exec(e.id);if(!n)return i(o.l.error);let[,r,s]=n,a=["codicon","codicon-"+r];return s&&a.push("codicon-modifier-"+s.substring(1)),a}e.asClassNameArray=i;e.asClassName=function(e){return i(e).join(" ")};e.asCSSSelector=function(e){return"."+i(e).join(".")};e.isThemeIcon=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(void 0===e.color||n.isThemeColor(e.color))};let r=RegExp(`^\\$\\((${e.iconNameExpression}(?:${e.iconModifierExpression})?)\\)$`);e.fromString=function(e){let t=r.exec(e);if(!t)return;let[,i]=t;return{id:i}};e.fromId=function(e){return{id:e}};e.modify=function(e,t){let i=e.id,n=i.lastIndexOf("~");return -1!==n&&(i=i.substring(0,n)),t&&(i=`${i}~${t}`),{id:i}};e.getModifier=function(e){let t=e.id.lastIndexOf("~");if(-1!==t)return e.id.substring(t+1)};e.isEqual=function(e,t){var i,n;return e.id===t.id&&(null===(i=e.color)||void 0===i?void 0:i.id)===(null===(n=t.color)||void 0===n?void 0:n.id)}}(r||(r={}))},8006:function(e,t,i){i.d(t,{HZ:function(){return d},PB:function(){return _}});var n=i(45802),r=i(98212),o=i(37764),s=i(79221),a=i(97147),l=i(71482);let h=!1;function d(e){if(!!a.$L)!h&&(h=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(e.message)}class c{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.method=i,this.args=n,this.type=0}}class u{constructor(e,t,i,n){this.vsWorker=e,this.seq=t,this.res=i,this.err=n,this.type=1}}class g{constructor(e,t,i,n){this.vsWorker=e,this.req=t,this.eventName=i,this.arg=n,this.type=2}}class m{constructor(e,t,i){this.vsWorker=e,this.req=t,this.event=i,this.type=3}}class p{constructor(e,t){this.vsWorker=e,this.req=t,this.type=4}}class f{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,t){let i=String(++this._lastSentReq);return new Promise((n,r)=>{this._pendingReplies[i]={resolve:n,reject:r},this._send(new c(this._workerId,i,e,t))})}listen(e,t){let i=null,n=new r.Q5({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,n),this._send(new g(this._workerId,i,e,t))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new p(this._workerId,i)),i=null}});return n.event}handleMessage(e){if(!!e&&!!e.vsWorker&&(-1===this._workerId||e.vsWorker===this._workerId))this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}let t=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let i=e.err;e.err.$isError&&((i=Error()).name=e.err.name,i.message=e.err.message,i.stack=e.err.stack),t.reject(i);return}t.resolve(e.res)}_handleRequestMessage(e){let t=e.req;this._handler.handleMessage(e.method,e.args).then(e=>{this._send(new u(this._workerId,t,e,void 0))},e=>{e.detail instanceof Error&&(e.detail=(0,n.ri)(e.detail)),this._send(new u(this._workerId,t,void 0,(0,n.ri)(e)))})}_handleSubscribeEventMessage(e){let t=e.req,i=this._handler.handleEvent(e.eventName,e.arg)(e=>{this._send(new m(this._workerId,t,e))});this._pendingEvents.set(t,i)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){let t=[];if(0===e.type)for(let i=0;i<e.args.length;i++)e.args[i]instanceof ArrayBuffer&&t.push(e.args[i]);else 1===e.type&&e.res instanceof ArrayBuffer&&t.push(e.res);this._handler.sendMessage(e,t)}}class _ extends o.JT{constructor(e,t,i){super();let n=null;this._worker=this._register(e.create("vs/base/common/worker/simpleWorker",e=>{this._protocol.handleMessage(e)},e=>{null==n||n(e)})),this._protocol=new f({sendMessage:(e,t)=>{this._worker.postMessage(e,t)},handleMessage:(e,t)=>{if("function"!=typeof i[e])return Promise.reject(Error("Missing method "+e+" on main thread host."));try{return Promise.resolve(i[e].apply(i,t))}catch(e){return Promise.reject(e)}},handleEvent:(e,t)=>{if(C(e)){let n=i[e].call(i,t);if("function"!=typeof n)throw Error(`Missing dynamic event ${e} on main thread host.`);return n}if(b(e)){let t=i[e];if("function"!=typeof t)throw Error(`Missing event ${e} on main thread host.`);return t}throw Error(`Malformed event name ${e}`)}}),this._protocol.setWorkerId(this._worker.getId());let r=null,o=globalThis.require;void 0!==o&&"function"==typeof o.getConfig?r=o.getConfig():void 0!==globalThis.requirejs&&(r=globalThis.requirejs.s.contexts._.config);let a=(0,s.$E)(i);this._onModuleLoaded=this._protocol.sendMessage("$initialize",[this._worker.getId(),JSON.parse(JSON.stringify(r)),t,a]);let l=(e,t)=>this._request(e,t),h=(e,t)=>this._protocol.listen(e,t);this._lazyProxy=new Promise((e,i)=>{n=i,this._onModuleLoaded.then(t=>{e(function(e,t,i){let n=e=>function(){let i=Array.prototype.slice.call(arguments,0);return t(e,i)},r=e=>function(t){return i(e,t)},o={};for(let t of e){if(C(t)){o[t]=r(t);continue}if(b(t)){o[t]=i(t,void 0);continue}o[t]=n(t)}return o}(t,l,h))},e=>{i(e),this._onError("Worker failed to load "+t,e)})})}getProxyObject(){return this._lazyProxy}_request(e,t){return new Promise((i,n)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,t).then(i,n)},n)})}_onError(e,t){console.error(e),console.info(t)}}function b(e){return"o"===e[0]&&"n"===e[1]&&l.df(e.charCodeAt(2))}function C(e){return/^onDynamic/.test(e)&&l.df(e.charCodeAt(9))}},19900:function(e,t,i){(0,i(88814).H)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,38960))})},78653:function(e,t,i){i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"'",close:"'",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],folding:{markers:{start:RegExp("^\\s*#region\\b"),end:RegExp("^\\s*#endregion\\b")}}},r={defaultToken:"",tokenPostfix:".cs",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],keywords:["extern","alias","using","bool","decimal","sbyte","byte","short","ushort","int","uint","long","ulong","char","float","double","object","dynamic","string","assembly","is","as","ref","out","this","base","new","typeof","void","checked","unchecked","default","delegate","var","const","if","else","switch","case","while","do","for","foreach","in","break","continue","goto","return","throw","try","catch","finally","lock","yield","from","let","where","join","on","equals","into","orderby","ascending","descending","select","group","by","namespace","partial","class","field","event","method","param","public","protected","internal","private","abstract","sealed","static","struct","readonly","volatile","virtual","override","params","get","set","add","remove","operator","true","false","implicit","explicit","interface","enum","null","async","await","fixed","sizeof","stackalloc","unsafe","nameof","when"],namespaceFollows:["namespace","using"],parenFollows:["if","for","while","switch","foreach","using","catch","when"],operators:["=","??","||","&&","|","^","&","==","!=","<=",">=","<<","+","-","*","/","%","!","~","++","--","+=","-=","*=","/=","%=","&=","|=","^=","<<=",">>=",">>","=>"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,tokenizer:{root:[[/\@?[a-zA-Z_]\w*/,{cases:{"@namespaceFollows":{token:"keyword.$0",next:"@namespace"},"@keywords":{token:"keyword.$0",next:"@qualified"},"@default":{token:"identifier",next:"@qualified"}}}],{include:"@whitespace"},[/}/,{cases:{"$S2==interpolatedstring":{token:"string.quote",next:"@pop"},"$S2==litinterpstring":{token:"string.quote",next:"@pop"},"@default":"@brackets"}}],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/[0-9_]*\.[0-9_]+([eE][\-+]?\d+)?[fFdD]?/,"number.float"],[/0[xX][0-9a-fA-F_]+/,"number.hex"],[/0[bB][01_]+/,"number.hex"],[/[0-9_]+/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"/,{token:"string.quote",next:"@string"}],[/\$\@"/,{token:"string.quote",next:"@litinterpstring"}],[/\@"/,{token:"string.quote",next:"@litstring"}],[/\$"/,{token:"string.quote",next:"@interpolatedstring"}],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],qualified:[[/[a-zA-Z_][\w]*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],[/\./,"delimiter"],["","","@pop"]],namespace:[{include:"@whitespace"},[/[A-Z]\w*/,"namespace"],[/[\.=]/,"delimiter"],["","","@pop"]],comment:[[/[^\/*]+/,"comment"],["\\*/","comment","@pop"],[/[\/*]/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,{token:"string.quote",next:"@pop"}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]],litinterpstring:[[/[^"{]+/,"string"],[/""/,"string.escape"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.litinterpstring"}],[/"/,{token:"string.quote",next:"@pop"}]],interpolatedstring:[[/[^\\"{]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/{{/,"string.escape"],[/}}/,"string.escape"],[/{/,{token:"string.quote",next:"root.interpolatedstring"}],[/"/,{token:"string.quote",next:"@pop"}]],whitespace:[[/^[ \t\v\f]*#((r)|(load))(?=\s)/,"directive.csx"],[/^[ \t\v\f]*#\w.*$/,"namespace.cpp"],[/[ \t\v\f\r\n]+/,""],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]]}}},10950:function(e,t,i){(0,i(88814).H)({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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,21649))})},71052:function(e,t,i){i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:RegExp("^\\s*//\\s*#region\\b|^\\s*\\(\\*\\s*#region(.*)\\*\\)"),end:RegExp("^\\s*//\\s*#endregion\\b|^\\s*\\(\\*\\s*#endregion\\s*\\*\\)")}}},r={defaultToken:"",tokenPostfix:".fs",keywords:["abstract","and","atomic","as","assert","asr","base","begin","break","checked","component","const","constraint","constructor","continue","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","eager","event","external","extern","false","finally","for","fun","function","fixed","functor","global","if","in","include","inherit","inline","interface","internal","land","lor","lsl","lsr","lxor","lazy","let","match","member","mod","module","mutable","namespace","method","mixin","new","not","null","of","open","or","object","override","private","parallel","process","protected","pure","public","rec","return","static","sealed","struct","sig","then","to","true","tailcall","trait","try","type","upcast","use","val","void","virtual","volatile","when","while","with","yield"],symbols:/[=><!~?:&|+\-*\^%;\.,\/]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,integersuffix:/[uU]?[yslnLI]?/,floatsuffix:/[fFmM]?/,tokenizer:{root:[[/[a-zA-Z_]\w*/,{cases:{"@keywords":{token:"keyword.$0"},"@default":"identifier"}}],{include:"@whitespace"},[/\[<.*>\]/,"annotation"],[/^#(if|else|endif)/,"keyword"],[/[{}()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/@symbols/,"delimiter"],[/\d*\d+[eE]([\-+]?\d+)?(@floatsuffix)/,"number.float"],[/\d*\.\d+([eE][\-+]?\d+)?(@floatsuffix)/,"number.float"],[/0x[0-9a-fA-F]+LF/,"number.float"],[/0x[0-9a-fA-F]+(@integersuffix)/,"number.hex"],[/0b[0-1]+(@integersuffix)/,"number.bin"],[/\d+(@integersuffix)/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/"""/,"string",'@string."""'],[/"/,"string",'@string."'],[/\@"/,{token:"string.quote",next:"@litstring"}],[/'[^\\']'B?/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\(\*(?!\))/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^*(]+/,"comment"],[/\*\)/,"comment","@pop"],[/\*/,"comment"],[/\(\*\)/,"comment"],[/\(/,"comment"]],string:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/("""|"B?)/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]],litstring:[[/[^"]+/,"string"],[/""/,"string.escape"],[/"/,{token:"string.quote",next:"@pop"}]]}}},31354:function(e,t,i){(0,i(88814).H)({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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,26466))})},82024:function(e,t,i){i.r(t),i.d(t,{conf:function(){return n},language:function(){return r}});var n={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["string"]}],surroundingPairs:[{open:"(",close:")"},{open:"[",close:"]"},{open:"`",close:"`"}],folding:{markers:{start:RegExp("^\\s*\x3c!--\\s*#?region\\b.*--\x3e"),end:RegExp("^\\s*\x3c!--\\s*#?endregion\\b.*--\x3e")}}},r={defaultToken:"",tokenPostfix:".md",control:/[\\`*_\[\]{}()#+\-\.!]/,noncontrol:/[^\\`*_\[\]{}()#+\-\.!]/,escapes:/\\(?:@control)/,jsescapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,empty:["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param"],tokenizer:{root:[[/^\s*\|/,"@rematch","@table_header"],[/^(\s{0,3})(#+)((?:[^\\#]|@escapes)+)((?:#+)?)/,["white","keyword","keyword","keyword"]],[/^\s*(=+|\-+)\s*$/,"keyword"],[/^\s*((\*[ ]?)+)\s*$/,"meta.separator"],[/^\s*>+/,"comment"],[/^\s*([\*\-+:]|\d+\.)\s/,"keyword"],[/^(\t|[ ]{4})[^ ].*$/,"string"],[/^\s*~~~\s*((?:\w|[\/\-#])+)?\s*$/,{token:"string",next:"@codeblock"}],[/^\s*```\s*((?:\w|[\/\-#])+).*$/,{token:"string",next:"@codeblockgh",nextEmbedded:"$1"}],[/^\s*```\s*$/,{token:"string",next:"@codeblock"}],{include:"@linecontent"}],table_header:[{include:"@table_common"},[/[^\|]+/,"keyword.table.header"]],table_body:[{include:"@table_common"},{include:"@linecontent"}],table_common:[[/\s*[\-:]+\s*/,{token:"keyword",switchTo:"table_body"}],[/^\s*\|/,"keyword.table.left"],[/^\s*[^\|]/,"@rematch","@pop"],[/^\s*$/,"@rematch","@pop"],[/\|/,{cases:{"@eos":"keyword.table.right","@default":"keyword.table.middle"}}]],codeblock:[[/^\s*~~~\s*$/,{token:"string",next:"@pop"}],[/^\s*```\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblockgh:[[/```\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/[^`]+/,"variable.source"]],linecontent:[[/&\w+;/,"string.escape"],[/@escapes/,"escape"],[/\b__([^\\_]|@escapes|_(?!_))+__\b/,"strong"],[/\*\*([^\\*]|@escapes|\*(?!\*))+\*\*/,"strong"],[/\b_[^_]+_\b/,"emphasis"],[/\*([^\\*]|@escapes)+\*/,"emphasis"],[/`([^\\`]|@escapes)+`/,"variable"],[/\{+[^}]+\}+/,"string.target"],[/(!?\[)((?:[^\]\\]|@escapes)*)(\]\([^\)]+\))/,["string.link","","string.link"]],[/(!?\[)((?:[^\]\\]|@escapes)*)(\])/,"string.link"],{include:"html"}],html:[[/<(\w+)\/>/,"tag"],[/<(\w+)(\-|\w)*/,{cases:{"@empty":{token:"tag",next:"@tag.$1"},"@default":{token:"tag",next:"@tag.$1"}}}],[/<\/(\w+)(\-|\w)*\s*>/,{token:"tag"}],[/<!--/,"comment","@comment"]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,"comment","@pop"],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]],tag:[[/[ \t\r\n]+/,"white"],[/(type)(\s*=\s*)(")([^"]+)(")/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(type)(\s*=\s*)(')([^']+)(')/,["attribute.name.html","delimiter.html","string.html",{token:"string.html",switchTo:"@tag.$S2.$4"},"string.html"]],[/(\w+)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name.html","delimiter.html","string.html"]],[/\w+/,"attribute.name.html"],[/\/>/,"tag","@pop"],[/>/,{cases:{"$S2==style":{token:"tag",switchTo:"embeddedStyle",nextEmbedded:"text/css"},"$S2==script":{cases:{$S3:{token:"tag",switchTo:"embeddedScript",nextEmbedded:"$S3"},"@default":{token:"tag",switchTo:"embeddedScript",nextEmbedded:"text/javascript"}}},"@default":{token:"tag",next:"@pop"}}}]],embeddedStyle:[[/[^<]+/,""],[/<\/style\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]],embeddedScript:[[/[^<]+/,""],[/<\/script\s*>/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}],[/</,""]]}}},71737:function(e,t,i){(0,i(88814).H)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,85255))})},23523:function(e,t,i){(0,i(88814).H)({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,95732))})},77112:function(e,t,i){(0,i(88814).H)({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],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"),i.e("471"),i.e("389"),i.e("374")]).then(i.bind(i,6200))})},42436:function(e,t,i){i.d(t,{k:function(){return a}});var n=i(66735),r=i(4157),o=i(67414),s=i(94479);class a{constructor(e,t,i){this.hoverDelegate=e,this.target=t,this.fadeInAnimation=i}async update(e,t,i){var r;let a;if(this._cancellationTokenSource&&(this._cancellationTokenSource.dispose(!0),this._cancellationTokenSource=void 0),!this.isDisposed){if(void 0===e||(0,o.HD)(e)||e instanceof HTMLElement)a=e;else if((0,o.mf)(e.markdown)){!this._hoverWidget&&this.show((0,s.NC)("iconLabel.loading","Loading..."),t),this._cancellationTokenSource=new n.AU;let i=this._cancellationTokenSource.token;if(void 0===(a=await e.markdown(i))&&(a=e.markdownNotSupportedFallback),this.isDisposed||i.isCancellationRequested)return}else a=null!==(r=e.markdown)&&void 0!==r?r:e.markdownNotSupportedFallback;this.show(a,t,i)}}show(e,t,i){let n=this._hoverWidget;if(this.hasContent(e)){let r={content:e,target:this.target,appearance:{showPointer:"element"===this.hoverDelegate.placement,skipFadeInAnimation:!this.fadeInAnimation||!!n},position:{hoverPosition:2},...i};this._hoverWidget=this.hoverDelegate.showHover(r,t)}null==n||n.dispose()}hasContent(e){return!!e&&(!(0,r.Fr)(e)||!!e.value)}get isDisposed(){var e;return null===(e=this._hoverWidget)||void 0===e?void 0:e.isDisposed}dispose(){var e,t;null===(e=this._hoverWidget)||void 0===e||e.dispose(),null===(t=this._cancellationTokenSource)||void 0===t||t.dispose(!0),this._cancellationTokenSource=void 0}}},6355:function(e,t,i){i.d(t,{B:function(){return v}});var n=i(55952),r=i(91867),o=i(66735),s=i(71362),a=i(7005),l=i(49062),h=i(6438),d=i(59571),c=i(98084),u=i(87294),g=i(249),m=i(50454),p=i(19309),f=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},_=function(e,t){return function(i,n){t(i,n,e)}};let b=class{constructor(e){this._commandService=e}async open(e,t){if(!(0,h.xn)(e,h.lg.command))return!1;if(!(null==t?void 0:t.allowCommands))return!0;if("string"==typeof e&&(e=c.o.parse(e)),Array.isArray(t.allowCommands)&&!t.allowCommands.includes(e.path))return!0;let i=[];try{i=(0,l.Qc)(decodeURIComponent(e.query))}catch(t){try{i=(0,l.Qc)(e.query)}catch(e){}}return!Array.isArray(i)&&(i=[i]),await this._commandService.executeCommand(e.path,...i),!0}};b=f([_(0,g.H)],b);let C=class{constructor(e){this._editorService=e}async open(e,t){"string"==typeof e&&(e=c.o.parse(e));let{selection:i,uri:n}=(0,p.x)(e);return(e=n).scheme===h.lg.file&&(e=(0,d.AH)(e)),await this._editorService.openCodeEditor({resource:e,options:{selection:i,source:(null==t?void 0:t.fromUserGesture)?m.v.USER:m.v.API,...null==t?void 0:t.editorOptions}},this._editorService.getFocusedCodeEditor(),null==t?void 0:t.openToSide),!0}};C=f([_(0,u.$)],C);let v=class{constructor(e,t){this._openers=new s.S,this._validators=new s.S,this._resolvers=new s.S,this._resolvedUriTargets=new a.Y9(e=>e.with({path:null,fragment:null,query:null}).toString()),this._externalOpeners=new s.S,this._defaultExternalOpener={openExternal:async e=>((0,h.Gs)(e,h.lg.http,h.lg.https)?n.V3(e):r.E.location.href=e,!0)},this._openers.push({open:async(e,t)=>!!((null==t?void 0:t.openExternal)||(0,h.Gs)(e,h.lg.mailto,h.lg.http,h.lg.https,h.lg.vsls))&&(await this._doOpenExternal(e,t),!0)}),this._openers.push(new b(t)),this._openers.push(new C(e))}registerOpener(e){return{dispose:this._openers.unshift(e)}}async open(e,t){var i;let n="string"==typeof e?c.o.parse(e):e,r=null!==(i=this._resolvedUriTargets.get(n))&&void 0!==i?i:e;for(let e of this._validators)if(!await e.shouldOpen(r,t))return!1;for(let i of this._openers)if(await i.open(e,t))return!0;return!1}async resolveExternalUri(e,t){for(let i of this._resolvers)try{let n=await i.resolveExternalUri(e,t);if(n)return!this._resolvedUriTargets.has(n.resolved)&&this._resolvedUriTargets.set(n.resolved,e),n}catch(e){}throw Error("Could not resolve external URI: "+e.toString())}async _doOpenExternal(e,t){let i,n;let r="string"==typeof e?c.o.parse(e):e;try{i=(await this.resolveExternalUri(r,t)).resolved}catch(e){i=r}if(n="string"==typeof e&&r.toString()===i.toString()?e:encodeURI(i.toString(!0)),null==t?void 0:t.allowContributedOpeners){let e="string"==typeof(null==t?void 0:t.allowContributedOpeners)?null==t?void 0:t.allowContributedOpeners:void 0;for(let t of this._externalOpeners)if(await t.openExternal(n,{sourceUri:r,preferredOpenerId:e},o.Ts.None))return!0}return this._defaultExternalOpener.openExternal(n,{sourceUri:r},o.Ts.None)}dispose(){this._validators.clear()}};v=f([_(0,u.$),_(1,g.H)],v)},1030:function(e,t,i){i.d(t,{C:function(){return c}});var n=i(53753),r=i(71482),o=i(67414),s=i(7374),a=i(34086),l=i(37699),h=i(12680);let d=(0,n.Z)("domLineBreaksComputer",{createHTML:e=>e});class c{static create(e){return new c(new WeakRef(e))}constructor(e){this.targetWindow=e}createLineBreaksComputer(e,t,i,n,c){let g=[],m=[];return{addRequest:(e,t,i)=>{g.push(e),m.push(t)},finalize:()=>(function(e,t,i,n,o,c,g,m){var p;function f(e){let i=m[e];if(!i)return null;{let n=h.gk.applyInjectedText(t[e],i),r=i.map(e=>e.options),o=i.map(e=>e.column-1);return new l.gD(o,r,[n.length],[],0)}}if(-1===o){let e=[];for(let i=0,n=t.length;i<n;i++)e[i]=f(i);return e}let _=Math.round(o*i.typicalHalfwidthCharacterWidth),b=Math.round(n*(3===c?2:2===c?1:0)),C=Math.ceil(i.spaceWidth*b),v=document.createElement("div");(0,s.N)(v,i);let w=new a.HT(1e4),y=[],S=[],x=[],N=[],k=[];for(let e=0;e<t.length;e++){let o=h.gk.applyInjectedText(t[e],m[e]),s=0,a=0,l=_;if(0!==c){if(-1===(s=r.LC(o)))s=0;else{for(let e=0;e<s;e++){let t=9===o.charCodeAt(e)?n-a%n:1;a+=t}let e=Math.ceil(i.spaceWidth*a);e+i.typicalFullwidthCharacterWidth>_?(s=0,a=0):l=_-e}}let d=o.substr(s),u=function(e,t,i,n,o,s){if(0!==s){let e=String(s);o.appendString('<div style="text-indent: -'),o.appendString(e),o.appendString("px; padding-left: "),o.appendString(e),o.appendString("px; box-sizing: border-box; width:")}else o.appendString('<div style="width:');o.appendString(String(n)),o.appendString('px;">');let a=e.length,l=t,h=0,d=[],c=[],u=0<a?e.charCodeAt(0):0;o.appendString("<span>");for(let t=0;t<a;t++){0!==t&&t%16384==0&&o.appendString("</span><span>"),d[t]=h,c[t]=l;let n=u;u=t+1<a?e.charCodeAt(t+1):0;let s=1,g=1;switch(n){case 9:g=s=i-l%i;for(let e=1;e<=s;e++)e<s?o.appendCharCode(160):o.appendASCIICharCode(32);break;case 32:32===u?o.appendCharCode(160):o.appendASCIICharCode(32);break;case 60:o.appendString("&lt;");break;case 62:o.appendString("&gt;");break;case 38:o.appendString("&amp;");break;case 0:o.appendString("&#00;");break;case 65279:case 8232:case 8233:case 133:o.appendCharCode(65533);break;default:r.K7(n)&&g++,n<32?o.appendCharCode(9216+n):o.appendCharCode(n)}h+=s,l+=g}return o.appendString("</span>"),d[e.length]=h,c[e.length]=l,o.appendString("</div>"),[d,c]}(d,a,n,l,w,C);y[e]=s,S[e]=a,x[e]=d,N[e]=u[0],k[e]=u[1]}let L=w.build(),D=null!==(p=null==d?void 0:d.createHTML(L))&&void 0!==p?p:L;v.innerHTML=D,v.style.position="absolute",v.style.top="10000","keepAll"===g?(v.style.wordBreak="keep-all",v.style.overflowWrap="anywhere"):(v.style.wordBreak="inherit",v.style.overflowWrap="break-word"),e.document.body.appendChild(v);let I=document.createRange(),A=Array.prototype.slice.call(v.children,0),E=[];for(let e=0;e<t.length;e++){let t,i;let n=function(e,t,i,n){if(i.length<=1)return null;let r=Array.prototype.slice.call(t.children,0),o=[];try{(function e(t,i,n,r,o,s,a,l){if(r===s)return;if(o=o||u(t,i,n[r],n[r+1]),a=a||u(t,i,n[s],n[s+1]),.1>=Math.abs(o[0].top-a[0].top))return;if(r+1===s){l.push(s);return}let h=r+(s-r)/2|0,d=u(t,i,n[h],n[h+1]);e(t,i,n,r,o,h,d,l),e(t,i,n,h,d,s,a,l)})(e,r,n,0,null,i.length-1,null,o)}catch(e){return console.log(e),null}return 0===o.length?null:(o.push(i.length),o)}(I,A[e],x[e],N[e]);if(null===n){E[e]=f(e);continue}let r=y[e],o=S[e]+b,s=k[e],a=[];for(let e=0,t=n.length;e<t;e++)a[e]=s[n[e]];if(0!==r)for(let e=0,t=n.length;e<t;e++)n[e]+=r;let h=m[e];h?(t=h.map(e=>e.options),i=h.map(e=>e.column-1)):(t=null,i=null),E[e]=new l.gD(i,t,n,a,o)}return e.document.body.removeChild(v),E})((0,o.cW)(this.targetWindow.deref()),g,e,t,i,n,c,m)}}}function u(e,t,i,n){return e.setStart(t[i/16384|0].firstChild,i%16384),e.setEnd(t[n/16384|0].firstChild,n%16384),e.getClientRects()}},90107:function(e,t,i){i.d(t,{h:function(){return r}});var n=i(55103);class r{static _createRange(){return!this._handyReadyRange&&(this._handyReadyRange=document.createRange()),this._handyReadyRange}static _detachRange(e,t){e.selectNodeContents(t)}static _readClientRects(e,t,i,n,r){let o=this._createRange();try{return o.setStart(e,t),o.setEnd(i,n),o.getClientRects()}catch(e){return null}finally{this._detachRange(o,r)}}static _mergeAdjacentRanges(e){if(1===e.length)return e;e.sort(n.CR.compare);let t=[],i=0,r=e[0];for(let n=1,o=e.length;n<o;n++){let o=e[n];r.left+r.width+.9>=o.left?r.width=Math.max(r.width,o.left+o.width-r.left):(t[i++]=r,r=o)}return t[i++]=r,t}static _createHorizontalRangesFromClientRects(e,t,i){if(!e||0===e.length)return null;let r=[];for(let o=0,s=e.length;o<s;o++){let s=e[o];r[o]=new n.CR(Math.max(0,(s.left-t)/i),s.width/i)}return this._mergeAdjacentRanges(r)}static readHorizontalRanges(e,t,i,n,r,o){let s=e.children.length-1;if(0>s)return null;if((t=Math.min(s,Math.max(0,t)))===(n=Math.min(s,Math.max(0,n)))&&i===r&&0===i&&!e.children[t].firstChild){let i=e.children[t].getClientRects();return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(i,o.clientRectDeltaLeft,o.clientRectScale)}t!==n&&n>0&&0===r&&(n--,r=1073741824);let a=e.children[t].firstChild,l=e.children[n].firstChild;if((!a||!l)&&(!a&&0===i&&t>0&&(a=e.children[t-1].firstChild,i=1073741824),!l&&0===r&&n>0&&(l=e.children[n-1].firstChild,r=1073741824)),!a||!l)return null;i=Math.min(a.textContent.length,Math.max(0,i)),r=Math.min(l.textContent.length,Math.max(0,r));let h=this._readClientRects(a,i,l,r,o.endNode);return o.markDidDomLayout(),this._createHorizontalRangesFromClientRects(h,o.clientRectDeltaLeft,o.clientRectScale)}}},26456:function(e,t,i){i.d(t,{o:function(){return u}}),i(40286);var n=i(40013),r=i(1966),o=i(55497),s=i(58437),a=i(97295),l=i(85351),h=i(29149),d=i(91989),c=i(55952);class u extends o.E{constructor(e){super(e);let t=this._context.configuration.options;this._readOnly=t.get(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),this._selectionIsEmpty=!0,this._isComposingInput=!1,this._isVisible=!1,this._primaryCursor=new s.n(this._context,s.p.Single),this._secondaryCursors=[],this._renderData=[],this._domNode=(0,n.X)(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 r._F,this._cursorFlatBlinkInterval=new c.ne,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(91),this._cursorBlinking=t.get(26),this._cursorStyle=t.get(28),this._cursorSmoothCaretAnimation=t.get(27),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,i){let n=this._secondaryCursors.length!==t.length||"explicit"===this._cursorSmoothCaretAnimation&&3!==i;if(this._primaryCursor.setPlurality(t.length?s.p.MultiPrimary:s.p.Single),this._primaryCursor.onCursorPositionChanged(e,n),this._updateBlinking(),this._secondaryCursors.length<t.length){let e=t.length-this._secondaryCursors.length;for(let t=0;t<e;t++){let e=new s.n(this._context,s.p.MultiSecondary);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],n)}onCursorStateChanged(e){let t=[];for(let i=0,n=e.selections.length;i<n;i++)t[i]=e.selections[i].getPosition();this._onCursorPositionChanged(t[0],t.slice(1),e.reason);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,n=e.ranges.length;i<n;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()},u.BLINK_INTERVAL,(0,c.Jj)(this._domNode.domNode)):this._startCursorBlinkAnimation.setIfNotSet(()=>{this._blinkingEnabled=!0,this._updateDomClassName()},u.BLINK_INTERVAL))}_updateDomClassName(){this._domNode.setClassName(this._getClassName())}_getClassName(){let e="cursors-layer";switch(!this._selectionIsEmpty&&(e+=" has-selection"),this._cursorStyle){case a.d2.Line:e+=" cursor-line-style";break;case a.d2.Block:e+=" cursor-block-style";break;case a.d2.Underline:e+=" cursor-underline-style";break;case a.d2.LineThin:e+=" cursor-line-thin-style";break;case a.d2.BlockOutline:e+=" cursor-block-outline-style";break;case a.d2.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("on"===this._cursorSmoothCaretAnimation||"explicit"===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,n=this._primaryCursor.render(e);n&&(t[i++]=n);for(let n=0,r=this._secondaryCursors.length;n<r;n++){let r=this._secondaryCursors[n].render(e);r&&(t[i++]=r)}this._renderData=t}getLastRenderData(){return this._renderData}}u.BLINK_INTERVAL=500,(0,h.Ic)((e,t)=>{for(let i of[{class:".cursor",foreground:l.n0,background:l.fY},{class:".cursor-primary",foreground:l.jD,background:l.s2},{class:".cursor-secondary",foreground:l.x_,background:l.P0}]){let n=e.getColor(i.foreground);if(n){let r=e.getColor(i.background);!r&&(r=n.opposite()),t.addRule(`.monaco-editor .cursors-layer ${i.class} { background-color: ${n}; border-color: ${n}; color: ${r}; }`),(0,d.c3)(e.type)&&t.addRule(`.monaco-editor .cursors-layer.has-selection ${i.class} { border-left: 1px solid ${r}; border-right: 1px solid ${r}; }`)}}})},6520:function(e,t,i){i.d(t,{Q:function(){return p}});var n=i(55952),r=i(8614),o=i(16234),s=i(47983),a=i(65910),l=i(76115),h=i(37764),d=i(56136),c=i(34308),u=i(68919),g=i(17202),m=i(94479);class p extends h.JT{constructor(e,t,i,n,r){super(),this._rootElement=e,this._diffModel=t,this._originalEditorLayoutInfo=i,this._modifiedEditorLayoutInfo=n,this._editors=r,this._originalScrollTop=(0,d.rD)(this._editors.original.onDidScrollChange,()=>this._editors.original.getScrollTop()),this._modifiedScrollTop=(0,d.rD)(this._editors.modified.onDidScrollChange,()=>this._editors.modified.getScrollTop()),this._viewZonesChanged=(0,d.aq)("onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this.width=(0,d.uh)(this,0),this._modifiedViewZonesChangedSignal=(0,d.aq)("modified.onDidChangeViewZones",this._editors.modified.onDidChangeViewZones),this._originalViewZonesChangedSignal=(0,d.aq)("original.onDidChangeViewZones",this._editors.original.onDidChangeViewZones),this._state=(0,d.Be)(this,(e,t)=>{var i;this._element.replaceChildren();let n=this._diffModel.read(e),r=null===(i=null==n?void 0:n.diff.read(e))||void 0===i?void 0:i.movedTexts;if(!r||0===r.length){this.width.set(0,void 0);return}this._viewZonesChanged.read(e);let o=this._originalEditorLayoutInfo.read(e),a=this._modifiedEditorLayoutInfo.read(e);if(!o||!a){this.width.set(0,void 0);return}this._modifiedViewZonesChangedSignal.read(e),this._originalViewZonesChangedSignal.read(e);let l=r.map(t=>{function i(e,t){let i=t.getTopForLineNumber(e.startLineNumber,!0);return(i+t.getTopForLineNumber(e.endLineNumberExclusive,!0))/2}let n=i(t.lineRangeMapping.original,this._editors.original),r=this._originalScrollTop.read(e),o=i(t.lineRangeMapping.modified,this._editors.modified),s=this._modifiedScrollTop.read(e),a=n-r,l=o-s,h=Math.min(n,o),d=Math.max(n,o);return{range:new g.q(h,d),from:a,to:l,fromWithoutScroll:n,toWithoutScroll:o,move:t}});l.sort((0,s.f_)((0,s.tT)(e=>e.fromWithoutScroll>e.toWithoutScroll,s.nW),(0,s.tT)(e=>e.fromWithoutScroll>e.toWithoutScroll?e.fromWithoutScroll:-e.toWithoutScroll,s.fv)));let h=f.compute(l.map(e=>e.range)),c=o.verticalScrollbarWidth,u=(h.getTrackCount()-1)*10+20,m=c+u+(a.contentLeft-p.movedCodeBlockPadding),_=0;for(let e of l){let i=c+10+10*h.getTrack(_),r=a.glyphMarginWidth+a.lineNumbersWidth,o=document.createElementNS("http://www.w3.org/2000/svg","rect");o.classList.add("arrow-rectangle"),o.setAttribute("x",`${m-r}`),o.setAttribute("y",`${e.to-9}`),o.setAttribute("width",`${r}`),o.setAttribute("height","18"),this._element.appendChild(o);let s=document.createElementNS("http://www.w3.org/2000/svg","g"),l=document.createElementNS("http://www.w3.org/2000/svg","path");l.setAttribute("d",`M 0 ${e.from} L ${i} ${e.from} L ${i} ${e.to} L ${m-15} ${e.to}`),l.setAttribute("fill","none"),s.appendChild(l);let u=document.createElementNS("http://www.w3.org/2000/svg","polygon");u.classList.add("arrow"),t.add((0,d.EH)(t=>{l.classList.toggle("currentMove",e.move===n.activeMovedText.read(t)),u.classList.toggle("currentMove",e.move===n.activeMovedText.read(t))})),u.setAttribute("points",`${m-15},${e.to-7.5} ${m},${e.to} ${m-15},${e.to+7.5}`),s.appendChild(u),this._element.appendChild(s),_++}this.width.set(u,void 0)}),this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("class","moved-blocks-lines"),this._rootElement.appendChild(this._element),this._register((0,h.OF)(()=>this._element.remove())),this._register((0,d.EH)(e=>{let t=this._originalEditorLayoutInfo.read(e),i=this._modifiedEditorLayoutInfo.read(e);if(!!t&&!!i)this._element.style.left=`${t.width-t.verticalScrollbarWidth}px`,this._element.style.height=`${t.height}px`,this._element.style.width=`${t.verticalScrollbarWidth+t.contentLeft-p.movedCodeBlockPadding+this.width.read(e)}px`})),this._register((0,d.jx)(this._state));let o=(0,d.nK)(e=>{let t=this._diffModel.read(e),i=null==t?void 0:t.diff.read(e);return i?i.movedTexts.map(e=>({move:e,original:new u.GD((0,d.Dz)(e.lineRangeMapping.original.startLineNumber-1),18),modified:new u.GD((0,d.Dz)(e.lineRangeMapping.modified.startLineNumber-1),18)})):[]});this._register((0,u.Sv)(this._editors.original,o.map(e=>e.map(e=>e.original)))),this._register((0,u.Sv)(this._editors.modified,o.map(e=>e.map(e=>e.modified)))),this._register((0,d.gp)((e,t)=>{for(let i of o.read(e))t.add(new _(this._editors.original,i.original,i.move,"original",this._diffModel.get())),t.add(new _(this._editors.modified,i.modified,i.move,"modified",this._diffModel.get()))}));let a=(0,d.aq)("original.onDidFocusEditorWidget",e=>this._editors.original.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),l=(0,d.aq)("modified.onDidFocusEditorWidget",e=>this._editors.modified.onDidFocusEditorWidget(()=>setTimeout(()=>e(void 0),0))),c="modified";this._register((0,d.nJ)({createEmptyChangeSummary:()=>void 0,handleChange:(e,t)=>(e.didChange(a)&&(c="original"),e.didChange(l)&&(c="modified"),!0)},e=>{let t;a.read(e),l.read(e);let i=this._diffModel.read(e);if(!i)return;let n=i.diff.read(e);if(n&&"original"===c){let i=this._editors.originalCursor.read(e);i&&(t=n.movedTexts.find(e=>e.lineRangeMapping.original.contains(i.lineNumber)))}if(n&&"modified"===c){let i=this._editors.modifiedCursor.read(e);i&&(t=n.movedTexts.find(e=>e.lineRangeMapping.modified.contains(i.lineNumber)))}t!==i.movedTextToCompare.get()&&i.movedTextToCompare.set(void 0,void 0),i.setActiveMovedText(t)}))}}p.movedCodeBlockPadding=4;class f{static compute(e){let t=[],i=[];for(let n of e){let e=t.findIndex(e=>!e.intersectsStrict(n));-1===e&&(t.length>=6?e=(0,a.Y0)(t,(0,s.tT)(e=>e.intersectWithRangeLength(n),s.fv)):(e=t.length,t.push(new g.M))),t[e].addRange(n),i.push(e)}return new f(t.length,i)}constructor(e,t){this._trackCount=e,this.trackPerLineIdx=t}getTrack(e){return this.trackPerLineIdx[e]}getTrackCount(){return this._trackCount}}class _ extends u.N9{constructor(e,t,i,s,a){let h;let g=(0,n.h)("div.diff-hidden-lines-widget");super(e,t,g.root),this._editor=e,this._move=i,this._kind=s,this._diffModel=a,this._nodes=(0,n.h)("div.diff-moved-code-block",{style:{marginRight:"4px"}},[(0,n.h)("div.text-content@textContent"),(0,n.h)("div.action-bar@actionBar")]),g.root.appendChild(this._nodes.root);let p=(0,d.rD)(this._editor.onDidLayoutChange,()=>this._editor.getLayoutInfo());this._register((0,u.bg)(this._nodes.root,{paddingRight:p.map(e=>e.verticalScrollbarWidth)})),h=i.changes.length>0?"original"===this._kind?(0,m.NC)("codeMovedToWithChanges","Code moved with changes to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,m.NC)("codeMovedFromWithChanges","Code moved with changes from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1):"original"===this._kind?(0,m.NC)("codeMovedTo","Code moved to line {0}-{1}",this._move.lineRangeMapping.modified.startLineNumber,this._move.lineRangeMapping.modified.endLineNumberExclusive-1):(0,m.NC)("codeMovedFrom","Code moved from line {0}-{1}",this._move.lineRangeMapping.original.startLineNumber,this._move.lineRangeMapping.original.endLineNumberExclusive-1);let f=this._register(new r.o(this._nodes.actionBar,{highlightToggledItems:!0})),_=new o.aU("",h,"",!1);f.push(_,{icon:!1,label:!0});let b=new o.aU("","Compare",c.k.asClassName(l.l.compareChanges),!0,()=>{this._editor.focus(),this._diffModel.movedTextToCompare.set(this._diffModel.movedTextToCompare.get()===i?void 0:this._move,void 0)});this._register((0,d.EH)(e=>{let t=this._diffModel.movedTextToCompare.read(e)===i;b.checked=t})),f.push(b,{icon:!1,label:!0})}}},68919:function(e,t,i){i.d(t,{Ap:function(){return u},DU:function(){return f},GD:function(){return C},GU:function(){return k},N9:function(){return b},NW:function(){return y},RL:function(){return p},RP:function(){return g},Sv:function(){return S},Vm:function(){return _},W7:function(){return L},bg:function(){return w},cV:function(){return N},t2:function(){return x},xx:function(){return m}});var n=i(65910),r=i(66735),o=i(63950),s=i(37764),a=i(56136),l=i(93989),h=i(70668),d=i(83112),c=i(2945);function u(e,t,i,n){if(0===e.length)return t;if(0===t.length)return e;let r=[],o=0,s=0;for(;o<e.length&&s<t.length;){let a=e[o],l=t[s],h=i(a),d=i(l);h<d?(r.push(a),o++):(h>d?r.push(l):(r.push(n(a,l)),o++),s++)}for(;o<e.length;)r.push(e[o]),o++;for(;s<t.length;)r.push(t[s]),s++;return r}function g(e,t){let i=new s.SL,n=e.createDecorationsCollection();return i.add((0,a.UV)({debugName:()=>`Apply decorations from ${t.debugName}`},e=>{let i=t.read(e);n.set(i)})),i.add({dispose:()=>{n.clear()}}),i}function m(e,t){return e.appendChild(t),(0,s.OF)(()=>{e.removeChild(t)})}function p(e,t){return e.prepend(t),(0,s.OF)(()=>{e.removeChild(t)})}class f extends s.JT{get width(){return this._width}get height(){return this._height}constructor(e,t){super(),this.elementSizeObserver=this._register(new l.I(e,t)),this._width=(0,a.uh)(this,this.elementSizeObserver.getWidth()),this._height=(0,a.uh)(this,this.elementSizeObserver.getHeight()),this._register(this.elementSizeObserver.onDidChange(e=>(0,a.PS)(e=>{this._width.set(this.elementSizeObserver.getWidth(),e),this._height.set(this.elementSizeObserver.getHeight(),e)})))}observe(e){this.elementSizeObserver.observe(e)}setAutomaticLayout(e){e?this.elementSizeObserver.startObserving():this.elementSizeObserver.stopObserving()}}function _(e,t,i){let n,r=t.get(),o=r,s=r,l=(0,a.uh)("animatedValue",r),h=-1;return i.add((0,a.nJ)({createEmptyChangeSummary:()=>({animate:!1}),handleChange:(e,i)=>(e.didChange(t)&&(i.animate=i.animate||e.change),!0)},(i,a)=>{void 0!==n&&(e.cancelAnimationFrame(n),n=void 0),o=s,r=t.read(i),h=Date.now()-(a.animate?0:300),function t(){let i=Date.now()-h;s=Math.floor(function(e,t,i,n){return e===n?t+i:i*(-Math.pow(2,-10*e/n)+1)+t}(i,o,r-o,300)),i<300?n=e.requestAnimationFrame(t):s=r,l.set(s,void 0)}()})),l}class b extends s.JT{constructor(e,t,i){super(),this._register(new v(e,i)),this._register(w(i,{height:t.actualHeight,top:t.actualTop}))}}class C{get afterLineNumber(){return this._afterLineNumber.get()}constructor(e,t){this._afterLineNumber=e,this.heightInPx=t,this.domNode=document.createElement("div"),this._actualTop=(0,a.uh)(this,void 0),this._actualHeight=(0,a.uh)(this,void 0),this.actualTop=this._actualTop,this.actualHeight=this._actualHeight,this.showInHiddenAreas=!0,this.onChange=this._afterLineNumber,this.onDomNodeTop=e=>{this._actualTop.set(e,void 0)},this.onComputedHeight=e=>{this._actualHeight.set(e,void 0)}}}class v{constructor(e,t){this._editor=e,this._domElement=t,this._overlayWidgetId=`managedOverlayWidget-${v._counter++}`,this._overlayWidget={getId:()=>this._overlayWidgetId,getDomNode:()=>this._domElement,getPosition:()=>null},this._editor.addOverlayWidget(this._overlayWidget)}dispose(){this._editor.removeOverlayWidget(this._overlayWidget)}}function w(e,t){return(0,a.EH)(i=>{for(let[n,r]of Object.entries(t))r&&"object"==typeof r&&"read"in r&&(r=r.read(i)),"number"==typeof r&&(r=`${r}px`),n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()),e.style[n]=r})}function y(e,t){return function(e,t){(0,o.H)()&&(0,a.aq)("reload",t=>(0,o.E)(({oldExports:i})=>{if(!![...Object.values(i)].some(t=>e.includes(t)))return e=>(t(void 0),!0)})).read(t)}([e],t),e}v._counter=0;function S(e,t,i,n){let r=new s.SL,o=[];return r.add((0,a.gp)((r,s)=>{let l=t.read(r),h=new Map,d=new Map;i&&i(!0),e.changeViewZones(e=>{for(let t of o)e.removeZone(t),null==n||n.delete(t);for(let t of(o.length=0,l)){let i=e.addZone(t);t.setZoneId&&t.setZoneId(i),o.push(i),null==n||n.add(i),h.set(t,i)}}),i&&i(!1),s.add((0,a.nJ)({createEmptyChangeSummary:()=>({zoneIds:[]}),handleChange(e,t){let i=d.get(e.changedObservable);return void 0!==i&&t.zoneIds.push(i),!0}},(t,n)=>{for(let e of l)e.onChange&&(d.set(e.onChange,h.get(e)),e.onChange.read(t));i&&i(!0),e.changeViewZones(e=>{for(let t of n.zoneIds)e.layoutZone(t)}),i&&i(!1)}))})),r.add({dispose(){i&&i(!0),e.changeViewZones(e=>{for(let t of o)e.removeZone(t)}),null==n||n.clear(),i&&i(!1)}}),r}class x extends r.AU{dispose(){super.dispose(!0)}}function N(e,t){let i=(0,n.dF)(t,t=>t.original.startLineNumber<=e.lineNumber);if(!i)return d.e.fromPositions(e);if(i.original.endLineNumberExclusive<=e.lineNumber){let t=e.lineNumber-i.original.endLineNumberExclusive+i.modified.endLineNumberExclusive;return d.e.fromPositions(new h.L(t,e.column))}if(!i.innerChanges)return d.e.fromPositions(new h.L(i.modified.startLineNumber,1));let r=(0,n.dF)(i.innerChanges,t=>t.originalRange.getStartPosition().isBeforeOrEqual(e));if(!r){let t=e.lineNumber-i.original.startLineNumber+i.modified.startLineNumber;return d.e.fromPositions(new h.L(t,e.column))}if(r.originalRange.containsPosition(e))return r.modifiedRange;{let t=function(e,t){return e.lineNumber===t.lineNumber?new c.A(0,t.column-e.column):new c.A(t.lineNumber-e.lineNumber,t.column-1)}(r.originalRange.getEndPosition(),e);return d.e.fromPositions(t.addToPosition(r.modifiedRange.getEndPosition()))}}function k(e,t,i){let n=e.bindTo(t);return(0,a.UV)({debugName:()=>`Set Context Key "${e.key}"`},e=>{n.set(i(e))})}function L(e,t){let i;return e.filter(e=>{let n=t(e,i);return i=e,n})}},20407:function(e,t,i){i.d(t,{L:function(){return n}});class n{constructor(e){this._create=e,this._unused=new Set,this._used=new Set,this._itemData=new Map}getUnusedObj(e){var t;let i;if(0===this._unused.size)i=this._create(e),this._itemData.set(i,e);else{let n=[...this._unused.values()];i=null!==(t=n.find(t=>this._itemData.get(t).getId()===e.getId()))&&void 0!==t?t:n[0],this._unused.delete(i),this._itemData.set(i,e),i.setData(e)}return this._used.add(i),{object:i,dispose:()=>{this._used.delete(i),this._unused.size>5?i.dispose():this._unused.add(i)}}}dispose(){for(let e of this._used)e.dispose();for(let e of this._unused)e.dispose();this._used.clear(),this._unused.clear()}}},70668:function(e,t,i){i.d(t,{L:function(){return n}});class n{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 n(e,t)}delta(e=0,t=0){return this.with(this.lineNumber+e,this.column+t)}equals(e){return n.equals(this,e)}static equals(e,t){return!e&&!t||!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column}isBefore(e){return n.isBefore(this,e)}static isBefore(e,t){return!!(e.lineNumber<t.lineNumber)||!(t.lineNumber<e.lineNumber)&&e.column<t.column}isBeforeOrEqual(e){return n.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,n=0|t.lineNumber;if(i===n){let i=0|e.column;return i-(0|t.column)}return i-n}clone(){return new n(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(e){return new n(e.lineNumber,e.column)}static isIPosition(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}}},56810:function(e,t,i){i.d(t,{Af:function(){return s},eq:function(){return a},t2:function(){return function e(t,i,r,o,s){if(i=a(i),!s&&(s=n.$.first(l)),r.length>s.maxLen){let n=t-s.maxLen/2;return n<0?n=0:o+=n,r=r.substring(n,t+s.maxLen/2),e(t,i,r,o,s)}let h=Date.now(),d=t-1-o,c=-1,u=null;for(let e=1;!(Date.now()-h>=s.timeBudget);e++){;let t=d-s.windowSize*e;i.lastIndex=Math.max(0,t);let n=function(e,t,i,n){let r;for(;r=e.exec(t);){let t=r.index||0;if(t<=i&&e.lastIndex>=i)return r;if(n>0&&t>n)break}return null}(i,r,d,c);if(!n&&u)break;if(u=n,t<=0)break;c=t}if(u){let e={word:u[0],startColumn:o+1+u.index,endColumn:o+1+u.index+u[0].length};return i.lastIndex=0,e}return null}},vu:function(){return o}});var n=i(55278),r=i(71362);let o="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",s=function(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let i of o){if(!(e.indexOf(i)>=0))t+="\\"+i}return RegExp(t+="\\s]+)","g")}();function a(e){let t=s;if(e&&e instanceof RegExp){if(e.global)t=e;else{let i="g";e.ignoreCase&&(i+="i"),e.multiline&&(i+="m"),e.unicode&&(i+="u"),t=new RegExp(e.source,i)}}return t.lastIndex=0,t}let l=new r.S;l.unshift({maxLen:1e3,windowSize:15,timeBudget:150})},58106:function(e,t,i){i.d(t,{$9:function(){return d},UF:function(){return h},n8:function(){return l},r7:function(){return a},tI:function(){return c}});var n=i(71482),r=i(73071),o=i(55892),s=i(38386);function a(e,t,i,o=!0,s){if(e<4)return null;let a=s.getLanguageConfiguration(t.tokenization.getLanguageId()).indentRulesSupport;if(!a)return null;if(i<=1)return{indentation:"",action:null};for(let e=i-1;e>0&&""===t.getLineContent(e);e--){;if(1===e)return{indentation:"",action:null}}let l=function(e,t,i){let n=e.tokenization.getLanguageIdAtPosition(t,0);if(t>1){let r;let o=-1;for(r=t-1;r>=1;r--){if(e.tokenization.getLanguageIdAtPosition(r,0)!==n)return o;let t=e.getLineContent(r);if(i.shouldIgnore(t)||/^\s+$/.test(t)||""===t){o=r;continue}return r}}return -1}(t,i,a);if(l<0)return null;if(l<1)return{indentation:"",action:null};let h=t.getLineContent(l);if(a.shouldIncrease(h)||a.shouldIndentNextLine(h))return{indentation:n.V8(h),action:r.wU.Indent,line:l};if(a.shouldDecrease(h))return{indentation:n.V8(h),action:null,line:l};{if(1===l)return{indentation:n.V8(t.getLineContent(l)),action:null,line:l};let e=l-1,i=a.getIndentMetadata(t.getLineContent(e));if(!(3&i)&&4&i){let i=0;for(let n=e-1;n>0;n--){if(!a.shouldIndentNextLine(t.getLineContent(n))){i=n;break}}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}if(o)return{indentation:n.V8(t.getLineContent(l)),action:null,line:l};for(let e=l;e>0;e--){let i=t.getLineContent(e);if(a.shouldIncrease(i))return{indentation:n.V8(i),action:r.wU.Indent,line:e};if(a.shouldIndentNextLine(i)){let i=0;for(let n=e-1;n>0;n--){if(!a.shouldIndentNextLine(t.getLineContent(e))){i=n;break}}return{indentation:n.V8(t.getLineContent(i+1)),action:null,line:i+1}}else if(a.shouldDecrease(i))return{indentation:n.V8(i),action:null,line:e}}return{indentation:n.V8(t.getLineContent(1)),action:null,line:1}}}function l(e,t,i,o,s,l){if(e<4)return null;let h=l.getLanguageConfiguration(i);if(!h)return null;let d=l.getLanguageConfiguration(i).indentRulesSupport;if(!d)return null;let c=a(e,t,o,void 0,l),u=t.getLineContent(o);if(c){let i=c.line;if(void 0!==i){let a=!0;for(let e=i;e<o-1;e++)if(!/^\s*$/.test(t.getLineContent(e))){a=!1;break}if(a){let o=h.onEnter(e,"",t.getLineContent(i),"");if(o){let e=n.V8(t.getLineContent(i));return o.removeText&&(e=e.substring(0,e.length-o.removeText)),o.indentAction===r.wU.Indent||o.indentAction===r.wU.IndentOutdent?e=s.shiftIndent(e):o.indentAction===r.wU.Outdent&&(e=s.unshiftIndent(e)),d.shouldDecrease(u)&&(e=s.unshiftIndent(e)),o.appendText&&(e+=o.appendText),n.V8(e)}}}if(d.shouldDecrease(u))return c.action===r.wU.Indent?c.indentation:s.unshiftIndent(c.indentation);return c.action===r.wU.Indent?s.shiftIndent(c.indentation):c.indentation}return null}function h(e,t,i,l,h){let d,c;if(e<4)return null;t.tokenization.forceTokenization(i.startLineNumber);let u=t.tokenization.getLineTokens(i.startLineNumber),g=(0,o.wH)(u,i.startColumn-1),m=g.getLineContent(),p=!1;g.firstCharOffset>0&&u.getLanguageId(0)!==g.languageId?(p=!0,d=m.substr(0,i.startColumn-1-g.firstCharOffset)):d=u.getLineContent().substring(0,i.startColumn-1),c=i.isEmpty()?m.substr(i.startColumn-1-g.firstCharOffset):(0,s.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-g.firstCharOffset);let f=h.getLanguageConfiguration(g.languageId).indentRulesSupport;if(!f)return null;let _=d,b=n.V8(d),C=n.V8(u.getLineContent()),v=a(e,{tokenization:{getLineTokens:e=>t.tokenization.getLineTokens(e),getLanguageId:()=>t.getLanguageId(),getLanguageIdAtPosition:(e,i)=>t.getLanguageIdAtPosition(e,i)},getLineContent:e=>e===i.startLineNumber?_:t.getLineContent(e)},i.startLineNumber+1,void 0,h);if(!v){let e=p?C:b;return{beforeEnter:e,afterEnter:e}}let w=p?C:v.indentation;return v.action===r.wU.Indent&&(w=l.shiftIndent(w)),f.shouldDecrease(c)&&(w=l.unshiftIndent(w)),{beforeEnter:p?C:b,afterEnter:w}}function d(e,t,i,n,o,l){let h;if(e<4)return null;let d=(0,s.n2)(t,i.startLineNumber,i.startColumn);if(d.firstCharOffset)return null;let c=l.getLanguageConfiguration(d.languageId).indentRulesSupport;if(!c)return null;let u=d.getLineContent(),g=u.substr(0,i.startColumn-1-d.firstCharOffset);if(h=i.isEmpty()?u.substr(i.startColumn-1-d.firstCharOffset):(0,s.n2)(t,i.endLineNumber,i.endColumn).getLineContent().substr(i.endColumn-1-d.firstCharOffset),!c.shouldDecrease(g+h)&&c.shouldDecrease(g+n+h)){let n=a(e,t,i.startLineNumber,!1,l);if(!n)return null;let s=n.indentation;return n.action!==r.wU.Indent&&(s=o.unshiftIndent(s)),s}return null}function c(e,t,i){let n=i.getLanguageConfiguration(e.getLanguageId()).indentRulesSupport;return!n||t<1||t>e.getLineCount()?null:n.getIndentMetadata(e.getLineContent(t))}},73071:function(e,t,i){var n,r;i.d(t,{V6:function(){return o},c$:function(){return s},wU:function(){return n}}),(r=n||(n={}))[r.None=0]="None",r[r.Indent=1]="Indent",r[r.IndentOutdent=2]="IndentOutdent",r[r.Outdent=3]="Outdent";class o{constructor(e){if(this._neutralCharacter=null,this._neutralCharacterSearched=!1,this.open=e.open,this.close=e.close,this._inString=!0,this._inComment=!0,this._inRegEx=!0,Array.isArray(e.notIn))for(let t=0,i=e.notIn.length;t<i;t++)switch(e.notIn[t]){case"string":this._inString=!1;break;case"comment":this._inComment=!1;break;case"regex":this._inRegEx=!1}}isOK(e){switch(e){case 0:return!0;case 1:return this._inComment;case 2:return this._inString;case 3:return this._inRegEx}}shouldAutoClose(e,t){if(0===e.getTokenCount())return!0;let i=e.findTokenIndexAtOffset(t-2),n=e.getStandardTokenType(i);return this.isOK(n)}_findNeutralCharacterInRange(e,t){for(let i=e;i<=t;i++){let e=String.fromCharCode(i);if(!this.open.includes(e)&&!this.close.includes(e))return e}return null}findNeutralCharacter(){return!this._neutralCharacterSearched&&(this._neutralCharacterSearched=!0,!this._neutralCharacter&&(this._neutralCharacter=this._findNeutralCharacterInRange(48,57)),!this._neutralCharacter&&(this._neutralCharacter=this._findNeutralCharacterInRange(97,122)),!this._neutralCharacter&&(this._neutralCharacter=this._findNeutralCharacterInRange(65,90))),this._neutralCharacter}}class s{constructor(e){for(let t of(this.autoClosingPairsOpenByStart=new Map,this.autoClosingPairsOpenByEnd=new Map,this.autoClosingPairsCloseByStart=new Map,this.autoClosingPairsCloseByEnd=new Map,this.autoClosingPairsCloseSingleChar=new Map,e))a(this.autoClosingPairsOpenByStart,t.open.charAt(0),t),a(this.autoClosingPairsOpenByEnd,t.open.charAt(t.open.length-1),t),a(this.autoClosingPairsCloseByStart,t.close.charAt(0),t),a(this.autoClosingPairsCloseByEnd,t.close.charAt(t.close.length-1),t),1===t.close.length&&1===t.open.length&&a(this.autoClosingPairsCloseSingleChar,t.close,t)}}function a(e,t,i){e.has(t)?e.get(t).push(i):e.set(t,[i])}},52740:function(e,t,i){i.d(t,{Ck:function(){return s},oQ:function(){return o}});var n=i(47983),r=i(7480);class o{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,t){e=(0,r.A)(e);let i=this.values,n=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(i.length+o),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e),e+o),this.values.set(t,e),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,t){return e=(0,r.A)(e),t=(0,r.A)(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)}removeValues(e,t){e=(0,r.A)(e),t=(0,r.A)(t);let i=this.values,n=this.prefixSum;if(e>=i.length)return!1;let o=i.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(i.length-t),this.values.set(i.subarray(0,e),0),this.values.set(i.subarray(e+t),e),this.prefixSum=new Uint32Array(this.values.length),e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(n.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return 0===this.values.length?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=(0,r.A)(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let t=this.prefixSumValidIndex[0]+1;0===t&&(this.prefixSum[0]=this.values[0],t++),e>=this.values.length&&(e=this.values.length-1);for(let i=t;i<=e;i++)this.prefixSum[i]=this.prefixSum[i-1]+this.values[i];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let t=0,i=this.values.length-1,n=0,r=0,o=0;for(;t<=i;)if(n=t+(i-t)/2|0,o=(r=this.prefixSum[n])-this.values[n],e<o)i=n-1;else if(e>=r)t=n+1;else break;return new a(n,e-o)}}class s{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return(this._ensureValid(),0===e)?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();let t=this._indexBySum[e],i=t>0?this._prefixSum[t-1]:0;return new a(t,e-i)}removeValues(e,t){this._values.splice(e,t),this._invalidate(e)}insertValues(e,t){this._values=(0,n.Zv)(this._values,e,t),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,t=this._values.length;e<t;e++){let t=this._values[e],i=e>0?this._prefixSum[e-1]:0;this._prefixSum[e]=i+t;for(let n=0;n<t;n++)this._indexBySum[i+n]=e}this._prefixSum.length=this._values.length,this._indexBySum.length=this._prefixSum[this._prefixSum.length-1],this._isValid=!0,this._validEndIndex=this._values.length-1}}setValue(e,t){if(this._values[e]!==t)this._values[e]=t,this._invalidate(e)}}class a{constructor(e,t){this.index=e,this.remainder=t,this._prefixSumIndexOfResultBrand=void 0,this.index=e,this.remainder=t}}},76865:function(e,t,i){i.d(t,{M$:function(){return n},YA:function(){return o}});class n{constructor(e,t,i,n){this.range=e,this.nestingLevel=t,this.nestingLevelOfEqualBracketType=i,this.isInvalid=n}}class r{constructor(e,t,i,n,r,o){this.range=e,this.openingBracketRange=t,this.closingBracketRange=i,this.nestingLevel=n,this.nestingLevelOfEqualBracketType=r,this.bracketPairNode=o}get openingBracketInfo(){return this.bracketPairNode.openingBracket.bracketInfo}}class o extends r{constructor(e,t,i,n,r,o,s){super(e,t,i,n,r,o),this.minVisibleColumnIndentation=s}}},43711:function(e,t,i){i.d(t,{E7:function(){return f},Eb:function(){return b},Hv:function(){return w},S5:function(){return y},VQ:function(){return C},dW:function(){return _},o$:function(){return v}});var n=i(22712),r=i(71482),o=i(36809),s=i(8109),a=i(31843),l=i(94479),h=i(77667),d=i(13105),c=i(37797),u=i(37662);function g(e){return h.Ao.regex(u.fj.keys()[0],RegExp("(\\s|^)"+(0,r.ec)(e.value)+"\\b"))}let m={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:l.NC("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:l.NC("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[l.NC("args.schema.apply.first","Always apply the first returned code action."),l.NC("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),l.NC("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:l.NC("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};function p(e,t,i,n,r=d.aQ.Default){if(e.hasModel()){let o=c.G.get(e);null==o||o.manualTriggerAtCurrentPosition(t,r,i,n)}}class f extends o.R6{constructor(){super({id:a.cz,label:l.NC("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:h.Ao.and(s.u.writable,s.u.hasCodeActionsProvider),kbOpts:{kbExpr:s.u.textInputFocus,primary:2137,weight:100}})}run(e,t){return p(t,l.NC("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,d.aQ.QuickFix)}}class _ extends o._l{constructor(){super({id:a.RB,precondition:h.Ao.and(s.u.writable,s.u.hasCodeActionsProvider),metadata:{description:"Trigger a code action",args:[{name:"args",schema:m}]}})}runEditorCommand(e,t,i){let r=d.wZ.fromUser(i,{kind:n.o.Empty,apply:"ifSingle"});return p(t,"string"==typeof(null==i?void 0:i.kind)?r.preferred?l.NC("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",i.kind):l.NC("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",i.kind):r.preferred?l.NC("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):l.NC("editor.action.codeAction.noneMessage","No code actions available"),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}}class b extends o.R6{constructor(){super({id:a.Bb,label:l.NC("refactor.label","Refactor..."),alias:"Refactor...",precondition:h.Ao.and(s.u.writable,s.u.hasCodeActionsProvider),kbOpts:{kbExpr:s.u.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:h.Ao.and(s.u.writable,g(d.yN.Refactor))},metadata:{description:"Refactor...",args:[{name:"args",schema:m}]}})}run(e,t,i){let r=d.wZ.fromUser(i,{kind:d.yN.Refactor,apply:"never"});return p(t,"string"==typeof(null==i?void 0:i.kind)?r.preferred?l.NC("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",i.kind):l.NC("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",i.kind):r.preferred?l.NC("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):l.NC("editor.action.refactor.noneMessage","No refactorings available"),{include:d.yN.Refactor.contains(r.kind)?r.kind:n.o.None,onlyIncludePreferredActions:r.preferred},r.apply,d.aQ.Refactor)}}class C extends o.R6{constructor(){super({id:a.MN,label:l.NC("source.label","Source Action..."),alias:"Source Action...",precondition:h.Ao.and(s.u.writable,s.u.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:h.Ao.and(s.u.writable,g(d.yN.Source))},metadata:{description:"Source Action...",args:[{name:"args",schema:m}]}})}run(e,t,i){let r=d.wZ.fromUser(i,{kind:d.yN.Source,apply:"never"});return p(t,"string"==typeof(null==i?void 0:i.kind)?r.preferred?l.NC("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",i.kind):l.NC("editor.action.source.noneMessage.kind","No source actions for '{0}' available",i.kind):r.preferred?l.NC("editor.action.source.noneMessage.preferred","No preferred source actions available"):l.NC("editor.action.source.noneMessage","No source actions available"),{include:d.yN.Source.contains(r.kind)?r.kind:n.o.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply,d.aQ.SourceAction)}}class v extends o.R6{constructor(){super({id:a.uH,label:l.NC("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:h.Ao.and(s.u.writable,g(d.yN.SourceOrganizeImports)),kbOpts:{kbExpr:s.u.textInputFocus,primary:1581,weight:100}})}run(e,t){return p(t,l.NC("editor.action.organize.noneMessage","No organize imports action available"),{include:d.yN.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",d.aQ.OrganizeImports)}}class w extends o.R6{constructor(){super({id:a.TM,label:l.NC("fixAll.label","Fix All"),alias:"Fix All",precondition:h.Ao.and(s.u.writable,g(d.yN.SourceFixAll))})}run(e,t){return p(t,l.NC("fixAll.noneMessage","No fix all action available"),{include:d.yN.SourceFixAll,includeSourceActions:!0},"ifSingle",d.aQ.FixAll)}}class y extends o.R6{constructor(){super({id:a.pZ,label:l.NC("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:h.Ao.and(s.u.writable,g(d.yN.QuickFix)),kbOpts:{kbExpr:s.u.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return p(t,l.NC("editor.action.autoFix.noneMessage","No auto fixes available"),{include:d.yN.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",d.aQ.AutoFix)}}},48872:function(e,t,i){var n=i(1966),r=i(45802),o=i(37764),s=i(46785),a=i(36809),l=i(97295),h=i(8109),d=i(88282),c=i(55254),u=i(89631),g=i(94479),m=i(249),p=i(97717),f=i(84587),_=i(93804),b=i(76891),C=function(e,t){return function(i,n){t(i,n,e)}};let v=class{constructor(e,t,i,r,s,a){this._editor=e,this._languageFeaturesService=t,this._commandService=r,this._notificationService=s,this._codeLensCache=a,this._disposables=new o.SL,this._localToDispose=new o.SL,this._lenses=[],this._oldCodeLensModels=new o.SL,this._provideCodeLensDebounce=i.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=i.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new n.pY(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(e=>{(e.hasChanged(50)||e.hasChanged(19)||e.hasChanged(18))&&this._updateLensStyle(),e.hasChanged(17)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),null===(e=this._currentCodeLensModel)||void 0===e||e.dispose()}_getLayoutInfo(){let e=Math.max(1.3,this._editor.getOption(67)/this._editor.getOption(52)),t=this._editor.getOption(19);return(!t||t<5)&&(t=.9*this._editor.getOption(52)|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),i=this._editor.getOption(18),n=this._editor.getOption(50),{style:r}=this._editor.getContainerDomNode();r.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),r.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),r.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),i&&(r.setProperty("--vscode-editorCodeLens-fontFamily",i),r.setProperty("--vscode-editorCodeLens-fontFamilyDefault",l.hL.fontFamily)),this._editor.changeViewZones(t=>{for(let i of this._lenses)i.updateHeight(e,t)})}_localDispose(){var e,t,i;null===(e=this._getCodeLensModelPromise)||void 0===e||e.cancel(),this._getCodeLensModelPromise=void 0,null===(t=this._resolveCodeLensesPromise)||void 0===t||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),null===(i=this._currentCodeLensModel)||void 0===i||i.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(17)||e.isTooLargeForTokenization())return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&(0,n.Vg)(()=>{t===this._codeLensCache.get(e)&&(this._codeLensCache.delete(e),this._onModelChange())},3e4,this._localToDispose);return}for(let t of this._languageFeaturesService.codeLensProvider.all(e))if("function"==typeof t.onDidChange){let e=t.onDidChange(()=>i.schedule());this._localToDispose.add(e)}let i=new n.pY(()=>{var t;let o=Date.now();null===(t=this._getCodeLensModelPromise)||void 0===t||t.cancel(),this._getCodeLensModelPromise=(0,n.PG)(t=>(0,d.f)(this._languageFeaturesService.codeLensProvider,e,t)),this._getCodeLensModelPromise.then(t=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=t,this._codeLensCache.put(e,t);let n=this._provideCodeLensDebounce.update(e,Date.now()-o);i.delay=n,this._renderCodeLensSymbols(t),this._resolveCodeLensesInViewportSoon()},r.dL)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(i),this._localToDispose.add((0,o.OF)(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var e;this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let i=[],n=-1;this._lenses.forEach(e=>{e.isValid()&&n!==e.getLineNumber()?(e.update(t),n=e.getLineNumber()):i.push(e)});let r=new u.i;i.forEach(e=>{e.dispose(r,t),this._lenses.splice(this._lenses.indexOf(e),1)}),r.commit(e)})}),i.schedule(),this._resolveCodeLensesScheduler.cancel(),null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{i.schedule()})),this._localToDispose.add(this._editor.onDidBlurEditorText(()=>{i.cancel()})),this._localToDispose.add(this._editor.onDidScrollChange(e=>{e.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add((0,o.OF)(()=>{if(this._editor.getModel()){let e=s.Z.capture(this._editor);this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{this._disposeAllLenses(e,t)})}),e.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(e=>{if(9!==e.target.type)return;let t=e.target.element;if((null==t?void 0:t.tagName)==="SPAN"&&(t=t.parentElement),(null==t?void 0:t.tagName)==="A")for(let e of this._lenses){let i=e.getCommand(t);if(i){this._commandService.executeCommand(i.id,...i.arguments||[]).catch(e=>this._notificationService.error(e));break}}})),i.schedule()}_disposeAllLenses(e,t){let i=new u.i;for(let e of this._lenses)e.dispose(i,t);e&&i.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){let t;if(!this._editor.hasModel())return;let i=this._editor.getModel().getLineCount(),n=[];for(let r of e.lenses){let e=r.symbol.range.startLineNumber;if(!(e<1)&&!(e>i))t&&t[t.length-1].symbol.range.startLineNumber===e?t.push(r):(t=[r],n.push(t))}if(!n.length&&!this._lenses.length)return;let r=s.Z.capture(this._editor),o=this._getLayoutInfo();this._editor.changeDecorations(e=>{this._editor.changeViewZones(t=>{let i=new u.i,r=0,s=0;for(;s<n.length&&r<this._lenses.length;){let e=n[s][0].symbol.range.startLineNumber,a=this._lenses[r].getLineNumber();a<e?(this._lenses[r].dispose(i,t),this._lenses.splice(r,1)):a===e?(this._lenses[r].updateCodeLensSymbols(n[s],i),s++,r++):(this._lenses.splice(r,0,new u.T(n[s],this._editor,i,t,o.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),r++,s++)}for(;r<this._lenses.length;)this._lenses[r].dispose(i,t),this._lenses.splice(r,1);for(;s<n.length;)this._lenses.push(new u.T(n[s],this._editor,i,t,o.codeLensHeight,()=>this._resolveCodeLensesInViewportSoon())),s++;i.commit(e)})}),r.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;null===(e=this._resolveCodeLensesPromise)||void 0===e||e.cancel(),this._resolveCodeLensesPromise=void 0;let t=this._editor.getModel();if(!t)return;let i=[],o=[];if(this._lenses.forEach(e=>{let n=e.computeIfNecessary(t);n&&(i.push(n),o.push(e))}),0===i.length)return;let s=Date.now(),a=(0,n.PG)(e=>Promise.all(i.map((i,n)=>{let s=Array(i.length);return Promise.all(i.map((i,n)=>i.symbol.command||"function"!=typeof i.provider.resolveCodeLens?(s[n]=i.symbol,Promise.resolve(void 0)):Promise.resolve(i.provider.resolveCodeLens(t,i.symbol,e)).then(e=>{s[n]=e},r.Cp))).then(()=>{!e.isCancellationRequested&&!o[n].isDisposed()&&o[n].updateCommands(s)})})));this._resolveCodeLensesPromise=a,this._resolveCodeLensesPromise.then(()=>{let e=this._resolveCodeLensesDebounce.update(t,Date.now()-s);this._resolveCodeLensesScheduler.delay=e,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},e=>{(0,r.dL)(e),a===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}async getModel(){var e;return await this._getCodeLensModelPromise,await this._resolveCodeLensesPromise,(null===(e=this._currentCodeLensModel)||void 0===e?void 0:e.isDisposed)?void 0:this._currentCodeLensModel}};v.ID="css.editor.codeLens",v=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([C(1,b.p),C(2,_.A),C(3,m.H),C(4,p.lT),C(5,c.j)],v),(0,a._K)(v.ID,v,1),(0,a.Qr)(class extends a.R6{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:h.u.hasCodeLensProvider,label:(0,g.NC)("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}async run(e,t){if(!t.hasModel())return;let i=e.get(f.eJ),n=e.get(m.H),r=e.get(p.lT),o=t.getSelection().positionLineNumber,s=t.getContribution(v.ID);if(!s)return;let a=await s.getModel();if(!a)return;let l=[];for(let e of a.lenses)e.symbol.command&&e.symbol.range.startLineNumber===o&&l.push({label:e.symbol.command.title,command:e.symbol.command});if(0===l.length)return;let h=await i.pick(l,{canPickMany:!1,placeHolder:(0,g.NC)("placeHolder","Select a command")});if(!h)return;let d=h.command;if(a.isDisposed){let e=await s.getModel(),t=null==e?void 0:e.lenses.find(e=>{var t;return e.symbol.range.startLineNumber===o&&(null===(t=e.symbol.command)||void 0===t?void 0:t.title)===d.title});if(!t||!t.symbol.command)return;d=t.symbol.command}try{await n.executeCommand(d.id,...d.arguments||[])}catch(e){r.error(e)}}})},78947:function(e,t,i){var n=i(66735),r=i(67414),o=i(98084),s=i(51413),a=i(92654);i(249).P.registerCommand("_executeDocumentSymbolProvider",async function(e,...t){let[i]=t;(0,r.p_)(o.o.isUri(i));let l=e.get(a.Je),h=e.get(s.S),d=await h.createModelReference(i);try{return(await l.getOrCreate(d.object.textEditorModel,n.Ts.None)).getTopLevelSymbols()}finally{d.dispose()}})},96080:function(e,t,i){i.d(t,{N0:function(){return k},jR:function(){return N},kZ:function(){return L},n6:function(){return x}});var n,r=i(47983),o=i(1966),s=i(85471),a=i(22712),l=i(37764),h=i(645),d=i(83112),c=i(76891),u=i(22164),g=i(91119),m=i(61791),p=i(52929),f=i(94479),_=i(756),b=i(77667),C=i(15467),v=i(95449),w=i(42134),y=i(581),S=function(e,t){return function(i,n){t(i,n,e)}};let x="editor.experimental.dropIntoEditor.defaultProvider",N="editor.changeDropType",k=new b.uy("dropWidgetVisible",!1,(0,f.NC)("dropWidgetVisible","Whether the drop widget is showing")),L=n=class extends l.JT{static get(e){return e.getContribution(n.ID)}constructor(e,t,i,n,r){super(),this._configService=i,this._languageFeaturesService=n,this._treeViewsDragAndDropService=r,this.treeItemsTransfer=C.Ej.getInstance(),this._dropProgressManager=this._register(t.createInstance(p.r,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(y.p,"dropIntoEditor",e,k,{id:N,label:(0,f.NC)("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(t=>this.onDropIntoEditor(e,t.position,t.event)))}clearWidgets(){this._postDropWidgetManager.clear()}changeDropType(){this._postDropWidgetManager.tryShowSelector()}async onDropIntoEditor(e,t,i){var n;if(!i.dataTransfer||!e.hasModel())return;null===(n=this._currentOperation)||void 0===n||n.cancel(),e.focus(),e.setPosition(t);let r=(0,o.PG)(async n=>{let o=new m.Dl(e,1,void 0,n);try{let r=await this.extractDataTransferData(i);if(0===r.size||o.token.isCancellationRequested)return;let s=e.getModel();if(!s)return;let a=this._languageFeaturesService.documentDropEditProvider.ordered(s).filter(e=>!e.dropMimeTypes||e.dropMimeTypes.some(e=>r.matches(e))),l=await this.getDropEdits(a,s,t,r,o);if(o.token.isCancellationRequested)return;if(l.length){let i=this.getInitialActiveEditIndex(s,l),r="afterDrop"===e.getOption(36).showDropSelector;await this._postDropWidgetManager.applyEditAndShowIfNeeded([d.e.fromPositions(t)],{activeEditIndex:i,allEdits:l},r,async e=>e,n)}}finally{o.dispose(),this._currentOperation===r&&(this._currentOperation=void 0)}});this._dropProgressManager.showWhile(t,(0,f.NC)("dropIntoEditorProgress","Running drop handlers. Click to cancel"),r),this._currentOperation=r}async getDropEdits(e,t,i,n,s){let a=await (0,o.eP)(Promise.all(e.map(async e=>{try{let r=await e.provideDocumentDropEdits(t,i,n,s.token);return null==r?void 0:r.map(t=>({...t,providerId:e.id}))}catch(e){console.error(e)}})),s.token),l=(0,r.kX)(null!=a?a:[]).flat();return(0,w.C)(l)}getInitialActiveEditIndex(e,t){for(let[i,n]of Object.entries(this._configService.getValue(x,{resource:e.uri}))){let e=new a.o(n),r=t.findIndex(t=>e.value===t.providerId&&t.handledMimeType&&(0,s.SN)(i,[t.handledMimeType]));if(r>=0)return r}return 0}async extractDataTransferData(e){if(!e.dataTransfer)return new s.Hl;let t=(0,h.L)(e.dataTransfer);if(this.treeItemsTransfer.hasData(u.f.prototype)){let e=this.treeItemsTransfer.getData(u.f.prototype);if(Array.isArray(e))for(let i of e){let e=await this._treeViewsDragAndDropService.removeDragOperationTransfer(i.identifier);if(e)for(let[i,n]of e)t.replace(i,n)}}return t}};L.ID="editor.contrib.dropIntoEditorController",L=n=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([S(1,v.TG),S(2,_.Ui),S(3,c.p),S(4,g.m)],L)},6956:function(e,t,i){i.d(t,{t:function(){return l}});var n=i(83112),r=i(42733),o=i(84144),s=i(94590),a=i(29149);class l{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(e=>this._editor.getModel().getDecorationRange(e)).filter(e=>!!e);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e<this._decorations.length?this._decorations[e]:null;return t?this._editor.getModel().getDecorationRange(t):null}getCurrentMatchesPosition(e){for(let t of this._editor.getModel().getDecorationsInRange(e)){let e=t.options;if(e===l._FIND_MATCH_DECORATION||e===l._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(t.id)}return 0}setCurrentFindMatch(e){let t=null,i=0;if(e)for(let n=0,r=this._decorations.length;n<r;n++){let r=this._editor.getModel().getDecorationRange(this._decorations[n]);if(e.equalsRange(r)){t=this._decorations[n],i=n+1;break}}return(null!==this._highlightedDecorationId||null!==t)&&this._editor.changeDecorations(e=>{if(null!==this._highlightedDecorationId&&(e.changeDecorationOptions(this._highlightedDecorationId,l._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),null!==t&&(this._highlightedDecorationId=t,e.changeDecorationOptions(this._highlightedDecorationId,l._CURRENT_FIND_MATCH_DECORATION)),null!==this._rangeHighlightDecorationId&&(e.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),null!==t){let i=this._editor.getModel().getDecorationRange(t);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){let e=i.endLineNumber-1,t=this._editor.getModel().getLineMaxColumn(e);i=new n.e(i.startLineNumber,i.startColumn,e,t)}this._rangeHighlightDecorationId=e.addDecoration(i,l._RANGE_HIGHLIGHT_DECORATION)}}),i}set(e,t){this._editor.changeDecorations(i=>{let r=l._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){r=l._FIND_MATCH_NO_OVERVIEW_DECORATION;let t=this._editor.getModel().getLineCount(),i=this._editor.getLayoutInfo().height,s=Math.max(2,Math.ceil(3/(i/t))),a=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let t=1,i=e.length;t<i;t++){let i=e[t].range;h+s>=i.startLineNumber?i.endLineNumber>h&&(h=i.endLineNumber):(o.push({range:new n.e(a,1,h,1),options:l._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),a=i.startLineNumber,h=i.endLineNumber)}o.push({range:new n.e(a,1,h,1),options:l._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let s=Array(e.length);for(let t=0,i=e.length;t<i;t++)s[t]={range:e[t].range,options:r};this._decorations=i.deltaDecorations(this._decorations,s),this._overviewRulerApproximateDecorations=i.deltaDecorations(this._overviewRulerApproximateDecorations,o),this._rangeHighlightDecorationId&&(i.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),this._findScopeDecorationIds.length&&(this._findScopeDecorationIds.forEach(e=>i.removeDecoration(e)),this._findScopeDecorationIds=[]),(null==t?void 0:t.length)&&(this._findScopeDecorationIds=t.map(e=>i.addDecoration(e,l._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(0===this._decorations.length)return null;for(let t=this._decorations.length-1;t>=0;t--){let i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!n||n.endLineNumber>e.lineNumber)continue;if(n.endLineNumber<e.lineNumber)return n;if(!(n.endColumn>e.column))return n}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(0===this._decorations.length)return null;for(let t=0,i=this._decorations.length;t<i;t++){let i=this._decorations[t],n=this._editor.getModel().getDecorationRange(i);if(!n||n.startLineNumber<e.lineNumber)continue;if(n.startLineNumber>e.lineNumber)return n;if(!(n.startColumn<e.column))return n}return this._editor.getModel().getDecorationRange(this._decorations[0])}_allDecorations(){let e=[];return e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations),this._findScopeDecorationIds.length&&e.push(...this._findScopeDecorationIds),this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId),e}}l._CURRENT_FIND_MATCH_DECORATION=o.qx.register({description:"current-find-match",stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:(0,a.EN)(s.Fm_),position:r.sh.Center},minimap:{color:(0,a.EN)(s.SUY),position:1}}),l._FIND_MATCH_DECORATION=o.qx.register({description:"find-match",stickiness:1,zIndex:10,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:(0,a.EN)(s.Fm_),position:r.sh.Center},minimap:{color:(0,a.EN)(s.SUY),position:1}}),l._FIND_MATCH_NO_OVERVIEW_DECORATION=o.qx.register({description:"find-match-no-overview",stickiness:1,className:"findMatch",showIfCollapsed:!0}),l._FIND_MATCH_ONLY_OVERVIEW_DECORATION=o.qx.register({description:"find-match-only-overview",stickiness:1,overviewRuler:{color:(0,a.EN)(s.Fm_),position:r.sh.Center}}),l._RANGE_HIGHLIGHT_DECORATION=o.qx.register({description:"find-range-highlight",stickiness:1,className:"rangeHighlight",isWholeLine:!0}),l._FIND_SCOPE_DECORATION=o.qx.register({description:"find-scope",className:"findScope",isWholeLine:!0})},95100:function(e,t,i){i.d(t,{D:function(){return d}});var n=i(55952);i(15774);var r=i(42541),o=i(73866),s=i(1966),a=i(52305),l=i(94590),h=i(94260);class d extends o.${constructor(e,t,i){super(),this._hideSoon=this._register(new s.pY(()=>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.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let o={inputActiveOptionBorder:(0,l.n_1)(l.PRb),inputActiveOptionForeground:(0,l.n_1)(l.Pvw),inputActiveOptionBackground:(0,l.n_1)(l.XEs)},d=this._register((0,h.p0)());this.caseSensitive=this._register(new r.rk({appendTitle:this._keybindingLabelFor(a.kR.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase,hoverDelegate:d,...o})),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new r.Qx({appendTitle:this._keybindingLabelFor(a.kR.ToggleWholeWordCommand),isChecked:this._state.wholeWord,hoverDelegate:d,...o})),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new r.eH({appendTitle:this._keybindingLabelFor(a.kR.ToggleRegexCommand),isChecked:this._state.isRegex,hoverDelegate:d,...o})),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(n.nm(this._domNode,n.tw.MOUSE_LEAVE,e=>this._onMouseLeave())),this._register(n.nm(this._domNode,"mouseover",e=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return d.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(){if(!this._isVisible)this._isVisible=!0,this._domNode.style.display="block"}_hide(){if(!!this._isVisible)this._isVisible=!1,this._domNode.style.display="none"}}d.ID="editor.contrib.findOptionsWidget"},36959:function(e,t,i){i.d(t,{Iy:function(){return c},f5:function(){return u},fF:function(){return b}});var n=i(76115),r=i(84144),o=i(94479),s=i(94590),a=i(16445),l=i(29149),h=i(34308);let d=(0,s.P6G)("editor.foldBackground",{light:(0,s.ZnX)(s.hEj,.3),dark:(0,s.ZnX)(s.hEj,.3),hcDark:null,hcLight:null},(0,o.NC)("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);(0,s.P6G)("editorGutter.foldingControlForeground",{dark:s.XZx,light:s.XZx,hcDark:s.XZx,hcLight:s.XZx},(0,o.NC)("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));let c=(0,a.q5)("folding-expanded",n.l.chevronDown,(0,o.NC)("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),u=(0,a.q5)("folding-collapsed",n.l.chevronRight,(0,o.NC)("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),g=(0,a.q5)("folding-manual-collapsed",u,(0,o.NC)("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),m=(0,a.q5)("folding-manual-expanded",c,(0,o.NC)("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),p={color:(0,l.EN)(d),position:1},f=(0,o.NC)("linesCollapsed","Click to expand the range."),_=(0,o.NC)("linesExpanded","Click to collapse the range.");class b{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,i){if(t)return b.HIDDEN_RANGE_DECORATION;if("never"===this.showFoldingControls)return e?this.showFoldingHighlights?b.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:b.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:b.NO_CONTROLS_EXPANDED_RANGE_DECORATION;return e?i?this.showFoldingHighlights?b.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:b.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?b.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:b.COLLAPSED_VISUAL_DECORATION:"mouseover"===this.showFoldingControls?i?b.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:b.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i?b.MANUALLY_EXPANDED_VISUAL_DECORATION:b.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}}b.COLLAPSED_VISUAL_DECORATION=r.qx.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:h.k.asClassName(u)}),b.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=r.qx.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:p,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:h.k.asClassName(u)}),b.MANUALLY_COLLAPSED_VISUAL_DECORATION=r.qx.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:h.k.asClassName(g)}),b.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=r.qx.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:p,isWholeLine:!0,linesDecorationsTooltip:f,firstLineDecorationClassName:h.k.asClassName(g)}),b.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=r.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,linesDecorationsTooltip:f}),b.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=r.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:p,isWholeLine:!0,linesDecorationsTooltip:f}),b.EXPANDED_VISUAL_DECORATION=r.qx.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+h.k.asClassName(c),linesDecorationsTooltip:_}),b.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=r.qx.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:h.k.asClassName(c),linesDecorationsTooltip:_}),b.MANUALLY_EXPANDED_VISUAL_DECORATION=r.qx.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+h.k.asClassName(m),linesDecorationsTooltip:_}),b.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=r.qx.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:h.k.asClassName(m),linesDecorationsTooltip:_}),b.NO_CONTROLS_EXPANDED_RANGE_DECORATION=r.qx.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0}),b.HIDDEN_RANGE_DECORATION=r.qx.register({description:"folding-hidden-range-decoration",stickiness:1})},10702:function(e,t,i){i.d(t,{MN:function(){return s},Xl:function(){return r}});let n={0:" ",1:"u",2:"r"},r=16777215;class o{constructor(e){let t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){return(this._states[e/32|0]&1<<e%32)!=0}set(e,t){let i=e/32|0,n=e%32,r=this._states[i];t?this._states[i]=r|1<<n:this._states[i]=r&~(1<<n)}}class s{constructor(e,t,i){if(e.length!==t.length||e.length>65535)throw Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new o(e.length),this._userDefinedStates=new o(e.length),this._recoveredStates=new o(e.length),this._types=i,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(t,i)=>{let n=e[e.length-1];return this.getStartLineNumber(n)<=t&&this.getEndLineNumber(n)>=i};for(let i=0,n=this._startIndexes.length;i<n;i++){let n=this._startIndexes[i],o=this._endIndexes[i];if(n>r||o>r)throw Error("startLineNumber or endLineNumber must not exceed "+r);for(;e.length>0&&!t(n,o);)e.pop();let s=e.length>0?e[e.length-1]:-1;e.push(i),this._startIndexes[i]=n+((255&s)<<24),this._endIndexes[i]=o+((65280&s)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&r}getEndLineNumber(e){return this._endIndexes[e]&r}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){1===t?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):2===t?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let i=!1;if(this._types)for(let n=0;n<this._types.length;n++)this._types[n]===e&&(this.setCollapsed(n,t),i=!0);return i}toRegion(e){return new a(this,e)}getParentIndex(e){this.ensureParentIndices();let t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);return 65535===t?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,i=this._startIndexes.length;if(0===i)return -1;for(;t<i;){let n=Math.floor((t+i)/2);e<this.getStartLineNumber(n)?i=n:t=n+1}return t-1}findRange(e){let t=this.findIndex(e);if(t>=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return -1}toString(){let e=[];for(let t=0;t<this.length;t++)e[t]=`[${n[this.getSource(t)]}${this.isCollapsed(t)?"+":"-"}] ${this.getStartLineNumber(t)}/${this.getEndLineNumber(t)}`;return e.join(", ")}toFoldRange(e){return{startLineNumber:this._startIndexes[e]&r,endLineNumber:this._endIndexes[e]&r,type:this._types?this._types[e]:void 0,isCollapsed:this.isCollapsed(e),source:this.getSource(e)}}static fromFoldRanges(e){let t=e.length,i=new Uint32Array(t),n=new Uint32Array(t),r=[],o=!1;for(let s=0;s<t;s++){let t=e[s];i[s]=t.startLineNumber,n[s]=t.endLineNumber,r.push(t.type),t.type&&(o=!0)}!o&&(r=void 0);let a=new s(i,n,r);for(let i=0;i<t;i++)e[i].isCollapsed&&a.setCollapsed(i,!0),a.setSource(i,e[i].source);return a}static sanitizeAndMerge(e,t,i){let n;i=null!=i?i:Number.MAX_VALUE;let r=(e,t)=>Array.isArray(e)?i=>i<t?e[i]:void 0:i=>i<t?e.toFoldRange(i):void 0,o=r(e,e.length),s=r(t,t.length),a=0,l=0,h=o(0),d=s(0),c=[],u=0,g=[];for(;h||d;){let e;if(d&&(!h||h.startLineNumber>=d.startLineNumber))h&&h.startLineNumber===d.startLineNumber?(1===d.source?e=d:((e=h).isCollapsed=d.isCollapsed&&h.endLineNumber===d.endLineNumber,e.source=0),h=o(++a)):(e=d,d.isCollapsed&&0===d.source&&(e.source=2)),d=s(++l);else{let t=l,i=d;for(;;){if(!i||i.startLineNumber>h.endLineNumber){e=h;break}if(1===i.source&&i.endLineNumber>h.endLineNumber)break;i=s(++t)}h=o(++a)}if(e){for(;n&&n.endLineNumber<e.startLineNumber;)n=c.pop();e.endLineNumber>e.startLineNumber&&e.startLineNumber>u&&e.endLineNumber<=i&&(!n||n.endLineNumber>=e.endLineNumber)&&(g.push(e),u=e.startLineNumber,n&&c.push(n),n=e)}}return g}}class a{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}},23754:function(e,t,i){i.d(t,{w:function(){return L}});var n,r=i(55952),o=i(99557),s=i(47983),a=i(52640),l=i(98212),h=i(37764),d=i(59571),c=i(71482);i(74875);var u=i(83112),g=i(24806),m=i(94479),p=i(43236),f=i(95316),_=i(77667),b=i(95449),C=i(82376),v=i(88799),w=i(19309),y=i(75889),S=i(94590),x=i(29149),N=function(e,t){return function(i,n){t(i,n,e)}};class k{constructor(e,t,i,n,s){this._openerService=n,this._labelService=s,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new h.SL,this._editor=t;let a=document.createElement("div");a.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),a.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),a.appendChild(this._relatedBlock),this._disposables.add(r.mu(this._relatedBlock,"click",e=>{e.preventDefault();let t=this._relatedDiagnostics.get(e.target);t&&i(t)})),this._scrollable=new o.NB(a,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(e=>{a.style.left=`-${e.scrollLeft}px`,a.style.top=`-${e.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){(0,h.B9)(this._disposables)}update(e){let{source:t,message:i,relatedInformation:n,code:o}=e,a=((null==t?void 0:t.length)||0)+2;o&&("string"==typeof o?a+=o.length:a+=o.value.length);let l=(0,c.uq)(i);for(let e of(this._lines=l.length,this._longestLineLength=0,l))this._longestLineLength=Math.max(e.length+a,this._longestLineLength);r.PO(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let h=this._messageBlock;for(let e of l)(h=document.createElement("div")).innerText=e,""===e&&(h.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(h);if(t||o){let e=document.createElement("span");if(e.classList.add("details"),h.appendChild(e),t){let i=document.createElement("span");i.innerText=t,i.classList.add("source"),e.appendChild(i)}if(o){if("string"==typeof o){let t=document.createElement("span");t.innerText=`(${o})`,t.classList.add("code"),e.appendChild(t)}else this._codeLink=r.$("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=e=>{this._openerService.open(o.target,{allowCommands:!0}),e.preventDefault(),e.stopPropagation()},r.R3(this._codeLink,r.$("span")).innerText=o.value,e.appendChild(this._codeLink)}}if(r.PO(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),(0,s.Of)(n)){let e=this._relatedBlock.appendChild(document.createElement("div"));for(let t of(e.style.paddingTop=`${Math.floor(.66*this._editor.getOption(67))}px`,this._lines+=1,n)){let i=document.createElement("div"),n=document.createElement("a");n.classList.add("filename"),n.innerText=`${this._labelService.getUriBasenameLabel(t.resource)}(${t.startLineNumber}, ${t.startColumn}): `,n.title=this._labelService.getUriLabel(t.resource),this._relatedDiagnostics.set(n,t);let r=document.createElement("span");r.innerText=t.message,i.appendChild(n),i.appendChild(r),this._lines+=1,e.appendChild(i)}}let d=this._editor.getOption(50),u=Math.ceil(d.typicalFullwidthCharacterWidth*this._longestLineLength*.75),g=d.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:u,scrollHeight:g})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case v.ZL.Error:t=m.NC("Error","Error");break;case v.ZL.Warning:t=m.NC("Warning","Warning");break;case v.ZL.Info:t=m.NC("Info","Info");break;case v.ZL.Hint:t=m.NC("Hint","Hint")}let i=m.NC("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),n=this._editor.getModel();if(n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1){let t=n.getLineContent(e.startLineNumber);i=`${t}, ${i}`}return i}}let L=n=class extends g.vk{constructor(e,t,i,n,r,o,s){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},r),this._themeService=t,this._openerService=i,this._menuService=n,this._contextKeyService=o,this._labelService=s,this._callOnDispose=new h.SL,this._onDidSelectRelatedInformation=new l.Q5,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=v.ZL.Warning,this._backgroundColor=a.Il.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(F);let t=E,i=R;this._severity===v.ZL.Warning?(t=M,i=T):this._severity===v.ZL.Info&&(t=O,i=P);let n=e.getColor(t),r=e.getColor(i);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:r,primaryHeadingColor:e.getColor(g.IH),secondaryHeadingColor:e.getColor(g.R7)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(e=>this.editor.focus()));let t=[],i=this._menuService.createMenu(n.TitleMenu,this._contextKeyService);(0,p.vr)(i,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),i.dispose()}_fillTitleIcon(e){this._icon=r.R3(e,r.$(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new k(this._container,this.editor,e=>this._onDidSelectRelatedInformation.fire(e),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw Error("call showAtMarker")}showAtMarker(e,t,i){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let n=u.e.lift(e),r=this.editor.getPosition(),o=r&&n.containsPosition(r)?r:n.getStartPosition();super.show(o,this.computeRequiredHeight());let s=this.editor.getModel();if(s){let e=i>1?m.NC("problems","{0} of {1} problems",t,i):m.NC("change","{0} of {1} problem",t,i);this.setTitle((0,d.EZ)(s.uri),e)}this._icon.className=`codicon ${y.j.className(v.ZL.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(o,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};L.TitleMenu=new f.eH("gotoErrorTitleMenu"),L=n=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([N(1,x.XE),N(2,w.v),N(3,f.co),N(4,b.TG),N(5,_.i6),N(6,C.e)],L);let D=(0,S.kwl)(S.lXJ,S.b6y),I=(0,S.kwl)(S.uoC,S.pW3),A=(0,S.kwl)(S.c63,S.T83),E=(0,S.P6G)("editorMarkerNavigationError.background",{dark:D,light:D,hcDark:S.lRK,hcLight:S.lRK},m.NC("editorMarkerNavigationError","Editor marker navigation widget error color.")),R=(0,S.P6G)("editorMarkerNavigationError.headerBackground",{dark:(0,S.ZnX)(E,.1),light:(0,S.ZnX)(E,.1),hcDark:null,hcLight:null},m.NC("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),M=(0,S.P6G)("editorMarkerNavigationWarning.background",{dark:I,light:I,hcDark:S.lRK,hcLight:S.lRK},m.NC("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),T=(0,S.P6G)("editorMarkerNavigationWarning.headerBackground",{dark:(0,S.ZnX)(M,.1),light:(0,S.ZnX)(M,.1),hcDark:"#0C141F",hcLight:(0,S.ZnX)(M,.2)},m.NC("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),O=(0,S.P6G)("editorMarkerNavigationInfo.background",{dark:A,light:A,hcDark:S.lRK,hcLight:S.lRK},m.NC("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),P=(0,S.P6G)("editorMarkerNavigationInfo.headerBackground",{dark:(0,S.ZnX)(O,.1),light:(0,S.ZnX)(O,.1),hcDark:null,hcLight:null},m.NC("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),F=(0,S.P6G)("editorMarkerNavigation.background",{dark:S.cvW,light:S.cvW,hcDark:S.cvW,hcLight:S.cvW},m.NC("editorMarkerNavigationBackground","Editor marker navigation widget background."))},32681:function(e,t,i){i.d(t,{F2:function(){return m},WX:function(){return u},oQ:function(){return p}});var n=i(45802),r=i(98212),o=i(26906),s=i(37764),a=i(7005),l=i(59571),h=i(71482),d=i(83112),c=i(94479);class u{constructor(e,t,i,n){this.isProviderFirst=e,this.parent=t,this.link=i,this._rangeCallback=n,this.id=o.a.nextId()}get uri(){return this.link.uri}get range(){var e,t;return null!==(t=null!==(e=this._range)&&void 0!==e?e:this.link.targetSelectionRange)&&void 0!==t?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;let t=null===(e=this.parent.getPreview(this))||void 0===e?void 0:e.preview(this.range);return t?(0,c.NC)({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn):(0,c.NC)("aria.oneReference","in {0} on line {1} at column {2}",(0,l.EZ)(this.uri),this.range.startLineNumber,this.range.startColumn)}}class g{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let i=this._modelReference.object.textEditorModel;if(!i)return;let{startLineNumber:n,startColumn:r,endLineNumber:o,endColumn:s}=e,a=i.getWordUntilPosition({lineNumber:n,column:r-t}),l=new d.e(n,a.startColumn,n,r),h=new d.e(o,s,o,1073741824),c=i.getValueInRange(l).replace(/^\s+/,""),u=i.getValueInRange(e);return{value:c+u+i.getValueInRange(h).replace(/\s+$/,""),highlight:{start:c.length,end:c.length+u.length}}}}class m{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new a.Y9}dispose(){(0,s.B9)(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return 1===e?(0,c.NC)("aria.fileReferences.1","1 symbol in {0}, full path {1}",(0,l.EZ)(this.uri),this.uri.fsPath):(0,c.NC)("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,(0,l.EZ)(this.uri),this.uri.fsPath)}async resolve(e){if(0!==this._previews.size)return this;for(let t of this.children){if(!this._previews.has(t.uri))try{let i=await e.createModelReference(t.uri);this._previews.set(t.uri,new g(i))}catch(e){(0,n.dL)(e)}}return this}}class p{constructor(e,t){let i;this.groups=[],this.references=[],this._onDidChangeReferenceRange=new r.Q5,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[n]=e;for(let t of(e.sort(p._compareReferences),e))if((!i||!l.SF.isEqual(i.uri,t.uri,!0))&&(i=new m(this,t.uri),this.groups.push(i)),0===i.children.length||0!==p._compareReferences(t,i.children[i.children.length-1])){let e=new u(n===t,i,t,e=>this._onDidChangeReferenceRange.fire(e));this.references.push(e),i.children.push(e)}}dispose(){(0,s.B9)(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new p(this._links,this._title)}get title(){return this._title}get isEmpty(){return 0===this.groups.length}get ariaMessage(){if(this.isEmpty)return(0,c.NC)("aria.result.0","No results found");if(1===this.references.length)return(0,c.NC)("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath);if(1===this.groups.length)return(0,c.NC)("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath);else return(0,c.NC)("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:i}=e,n=i.children.indexOf(e),r=i.children.length,o=i.parent.groups.length;return 1===o||t&&n+1<r||!t&&n>0?(n=t?(n+1)%r:(n+r-1)%r,i.children[n]):(n=i.parent.groups.indexOf(i),t)?(n=(n+1)%o,i.parent.groups[n].children[0]):(n=(n+o-1)%o,i.parent.groups[n].children[i.parent.groups[n].children.length-1])}nearestReference(e,t){let i=this.references.map((i,n)=>({idx:n,prefixLen:h.Mh(i.uri.toString(),e.toString()),offsetDist:100*Math.abs(i.range.startLineNumber-t.lineNumber)+Math.abs(i.range.startColumn-t.column)})).sort((e,t)=>{if(e.prefixLen>t.prefixLen)return -1;if(e.prefixLen<t.prefixLen)return 1;if(e.offsetDist<t.offsetDist)return -1;else if(e.offsetDist>t.offsetDist)return 1;else return 0})[0];if(i)return this.references[i.idx]}referenceAt(e,t){for(let i of this.references)if(i.uri.toString()===e.toString()&&d.e.containsPosition(i.range,t))return i}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return l.SF.compare(e.uri,t.uri)||d.e.compareRangesUsingStarts(e.range,t.range)}}},81833:function(e,t,i){i.d(t,{q:function(){return o}});var n=i(47983),r=i(1966);class o{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(1!==t.type&&!t.supportsMarkerHover)return[];let i=e.getModel(),n=t.range.startLineNumber;if(n>i.getLineCount())return[];let r=i.getLineMaxColumn(n);return e.getLineDecorations(n).filter(e=>{if(e.options.isWholeLine)return!0;let i=e.range.startLineNumber===n?e.range.startColumn:1,o=e.range.endLineNumber===n?e.range.endColumn:r;if(e.options.showIfCollapsed){if(i>t.range.startColumn+1||t.range.endColumn-1>o)return!1}else if(i>t.range.startColumn||t.range.endColumn>o)return!1;return!0})}computeAsync(e){let t=this._anchor;if(!this._editor.hasModel()||!t)return r.Aq.EMPTY;let i=o._getLineDecorations(this._editor,t);return r.Aq.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,i,e):r.Aq.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];let e=o._getLineDecorations(this._editor,this._anchor),t=[];for(let i of this._participants)t=t.concat(i.computeSync(this._anchor,e));return(0,n.kX)(t)}}},85242:function(e,t,i){i.d(t,{d:function(){return a}});var n=i(67233),r=i(37764),o=i(70668),s=i(55952);class a extends r.JT{constructor(e,t=new s.Ro(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new n.f),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=s.Ro.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(e=>{this._resize(new s.Ro(e.dimension.width,e.dimension.height)),e.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return(null===(e=this._contentPosition)||void 0===e?void 0:e.position)?o.L.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){let t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!!t&&!!i)return s.i(t).top+i.top-30}_availableVerticalSpaceBelow(e){let t=this._editor.getDomNode(),i=this._editor.getScrolledVisiblePosition(e);if(!t||!i)return;let n=s.i(t),r=s.D6(t.ownerDocument.body),o=n.top+i.top+i.height;return r.height-o-24}_findPositionPreference(e,t){var i,n;let r;let o=Math.min(null!==(i=this._availableVerticalSpaceBelow(t))&&void 0!==i?i:1/0,e),s=Math.min(null!==(n=this._availableVerticalSpaceAbove(t))&&void 0!==n?n:1/0,e),a=Math.min(Math.max(s,o),e),l=Math.min(e,a);return 1==(r=this._editor.getOption(60).above?l<=s?1:2:l<=o?2:1)?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),r}_resize(e){this._resizableNode.layout(e.height,e.width)}}},14986:function(e,t,i){i.d(t,{G:function(){return x}});var n=i(1966),r=i(4157),o=i(70668),s=i(84144),a=i(60327),l=i(51405),h=i(51413),d=i(52415),c=i(28756),u=i(70609),g=i(756),m=i(19309),p=i(76891),f=i(94479),_=i(97147),b=i(96826),C=i(47983),v=i(81171),w=i(59955),y=function(e,t){return function(i,n){t(i,n,e)}};class S extends a.YM{constructor(e,t,i,n){super(10,t,e.item.anchor.range,i,n,!0),this.part=e}}let x=class extends c.D5{constructor(e,t,i,n,r,o,s,a){super(e,t,i,o,a,n,r),this._resolverService=s,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!u.K.get(this._editor)||6!==e.target.type)return null;let i=null===(t=e.target.detail.injectedText)||void 0===t?void 0:t.options;return i instanceof s.HS&&i.attachedData instanceof u.f?new S(i.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,i){return e instanceof S?new n.Aq(async t=>{let n,o;let{part:s}=e;if(await s.item.resolve(i),!i.isCancellationRequested){if("string"==typeof s.item.hint.tooltip?n=new r.W5().appendText(s.item.hint.tooltip):s.item.hint.tooltip&&(n=s.item.hint.tooltip),n&&t.emitOne(new c.hU(this,e.range,[n],!1,0)),(0,C.Of)(s.item.hint.textEdits)&&t.emitOne(new c.hU(this,e.range,[new r.W5().appendText((0,f.NC)("hint.dbl","Double-click to insert"))],!1,10001)),"string"==typeof s.part.tooltip?o=new r.W5().appendText(s.part.tooltip):s.part.tooltip&&(o=s.part.tooltip),o&&t.emitOne(new c.hU(this,e.range,[o],!1,1)),s.part.location||s.part.command){let i;let n="altKey"===this._editor.getOption(78)?_.dz?(0,f.NC)("links.navigate.kb.meta.mac","cmd + click"):(0,f.NC)("links.navigate.kb.meta","ctrl + click"):_.dz?(0,f.NC)("links.navigate.kb.alt.mac","option + click"):(0,f.NC)("links.navigate.kb.alt","alt + click");s.part.location&&s.part.command?i=new r.W5().appendText((0,f.NC)("hint.defAndCommand","Go to Definition ({0}), right click for more",n)):s.part.location?i=new r.W5().appendText((0,f.NC)("hint.def","Go to Definition ({0})",n)):s.part.command&&(i=new r.W5(`[${(0,f.NC)("hint.cmd","Execute Command")}](${(0,b._I)(s.part.command)} "${s.part.command.title}") (${n})`,{isTrusted:!0})),i&&t.emitOne(new c.hU(this,e.range,[i],!1,1e4))}for await(let e of(await this._resolveInlayHintLabelPartHover(s,i)))t.emitOne(e)}}):n.Aq.EMPTY}async _resolveInlayHintLabelPartHover(e,t){if(!e.part.location)return n.Aq.EMPTY;let{uri:i,range:s}=e.part.location,a=await this._resolverService.createModelReference(i);try{let i=a.object.textEditorModel;if(!this._languageFeaturesService.hoverProvider.has(i))return n.Aq.EMPTY;return(0,d.OP)(this._languageFeaturesService.hoverProvider,i,new o.L(s.startLineNumber,s.startColumn),t).filter(e=>!(0,r.CP)(e.hover.contents)).map(t=>new c.hU(this,e.item.anchor.range,t.hover.contents,!1,2+t.ordinal))}finally{a.dispose()}}};x=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([y(1,l.O),y(2,m.v),y(3,v.d),y(4,w.Bs),y(5,g.Ui),y(6,h.S),y(7,p.p)],x)},48012:function(e,t,i){var n=i(36809),r=i(60327),o=i(13020),s=i(85966),a=i(74282),l=i(95316);(0,n._K)(a.D.ID,a.D,3),(0,n.Qr)(o.i3),(0,n.Qr)(o.L8),(0,n.Qr)(o.a5),(0,n.Qr)(o.y),(0,n.Qr)(o.md),(0,n.Qr)(o.SG),(0,n.Qr)(o.VY),(0,l.r1)(o.FO),r.Ae.register(s.l)},46665:function(e,t,i){i.d(t,{F:function(){return s}});var n=i(47983),r=i(37764),o=i(33037);class s{constructor(e,t,i,n){this._disposables=new r.SL,this._disposables.add(i.onDidSuggest(e=>{0===e.completionModel.items.length&&this.reset()})),this._disposables.add(i.onDidCancel(e=>{this.reset()})),this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(r=>{if(this._active&&!t.isFrozen()&&0!==i.state){let t=r.charCodeAt(r.length-1);this._active.acceptCharacters.has(t)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!(0,n.Of)(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;let t=new o.q;for(let i of e.item.completion.commitCharacters)i.length>0&&t.add(i.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}},87546:function(e,t,i){var n=i(1966),r=i(76115),o=i(4157),s=i(37764),a=i(97147),l=i(71482);i(97466);var h=i(36809),d=i(97295),c=i(84144),u=i(63483),g=i(24370),m=i(51405),p=i(99056),f=i(60327),_=i(28756),b=i(21177),C=i(94479),v=i(756),w=i(95449),y=i(19309),S=i(84587),x=i(16445),N=i(32518),k=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},L=function(e,t){return function(i,n){t(i,n,e)}};let D=(0,x.q5)("extensions-warning-message",r.l.warning,C.NC("warningIcon","Icon shown with a warning message in the extensions editor.")),I=class extends s.JT{constructor(e,t,i,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=i,this._highlighter=null,this._bannerClosed=!1,this._updateState=e=>{if(e&&e.hasMore){let t;if(this._bannerClosed)return;let i=Math.max(e.ambiguousCharacterCount,e.nonBasicAsciiCharacterCount,e.invisibleCharacterCount);if(e.nonBasicAsciiCharacterCount>=i)t={message:C.NC("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new z};else if(e.ambiguousCharacterCount>=i)t={message:C.NC("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new W};else if(e.invisibleCharacterCount>=i)t={message:C.NC("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new $};else throw Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:t.message,icon:D,actions:[{label:t.command.shortLabel,href:`command:${t.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(b.Q,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(125),this._register(i.onDidChangeTrust(e=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(125)&&(this._options=e.getOption(125),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let e=function(e,t){return{nonBasicASCII:t.nonBasicASCII===d.Av?!e:t.nonBasicASCII,ambiguousCharacters:t.ambiguousCharacters,invisibleCharacters:t.invisibleCharacters,includeComments:t.includeComments===d.Av?!e:t.includeComments,includeStrings:t.includeStrings===d.Av?!e:t.includeStrings,allowedCharacters:t.allowedCharacters,allowedLocales:t.allowedLocales}}(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(e=>!1===e))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(e=>e.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(e=>"_os"===e?new Intl.NumberFormat().resolvedOptions().locale:"_vscode"===e?a.dK:e)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new A(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new E(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};I.ID="editor.contrib.unicodeHighlighter",I=k([L(1,g.p),L(2,N.Y),L(3,w.TG)],I);let A=class extends s.JT{constructor(e,t,i,r){super(),this._editor=e,this._options=t,this._updateState=i,this._editorWorkerService=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let i=[];if(!t.hasMore)for(let e of t.ranges)i.push({range:e,options:F.instance.getDecorationFromOptions(this._options)});this._decorations.set(i)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();return(0,p.Fd)(t,e)?{reason:P(t.getValueInRange(e.range),this._options),inComment:(0,p.$t)(t,e),inString:(0,p.zg)(t,e)}:null}};A=k([L(3,g.p)],A);class E extends s.JT{constructor(e,t,i){super(),this._editor=e,this._options=t,this._updateState=i,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new n.pY(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],i={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let t of e){let e=u.a.computeUnicodeHighlights(this._model,this._options,t);for(let t of e.ranges)i.ranges.push(t);i.ambiguousCharacterCount+=i.ambiguousCharacterCount,i.invisibleCharacterCount+=i.invisibleCharacterCount,i.nonBasicAsciiCharacterCount+=i.nonBasicAsciiCharacterCount,i.hasMore=i.hasMore||e.hasMore}if(!i.hasMore)for(let e of i.ranges)t.push({range:e,options:F.instance.getDecorationFromOptions(this._options)});this._updateState(i),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),i=t.getValueInRange(e.range);return(0,p.Fd)(t,e)?{reason:P(i,this._options),inComment:(0,p.$t)(t,e),inString:(0,p.zg)(t,e)}:null}}let R=C.NC("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options"),M=class{constructor(e,t,i){this._editor=e,this._languageService=t,this._openerService=i,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||1!==e.type)return[];let i=this._editor.getModel(),n=this._editor.getContribution(I.ID);if(!n)return[];let r=[],s=new Set,a=300;for(let e of t){let t;let h=n.getDecorationInfo(e);if(!h)continue;let d=i.getValueInRange(e.range).codePointAt(0),c=O(d);switch(h.reason.kind){case 0:t=(0,l.$i)(h.reason.confusableWith)?C.NC("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",c,O(h.reason.confusableWith.codePointAt(0))):C.NC("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",c,O(h.reason.confusableWith.codePointAt(0)));break;case 1:t=C.NC("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",c);break;case 2:t=C.NC("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",c)}if(s.has(t))continue;s.add(t);let u={codePoint:d,reason:h.reason,inComment:h.inComment,inString:h.inString},g=C.NC("unicodeHighlight.adjustSettings","Adjust settings"),m=`command:${q.ID}?${encodeURIComponent(JSON.stringify(u))}`,p=new o.W5("",!0).appendMarkdown(t).appendText(" ").appendLink(m,g,R);r.push(new _.hU(this,e.range,[p],!1,a++))}return r}renderHoverParts(e,t){return(0,_.c)(e,t,this._editor,this._languageService,this._openerService)}};function T(e){return`U+${e.toString(16).padStart(4,"0")}`}function O(e){let t=`\`${T(e)}\``;return!l.vU.isInvisibleCharacter(e)&&(t+=` "${function(e){return 96===e?"`` ` ``":"`"+String.fromCodePoint(e)+"`"}(e)}"`),t}M=k([L(1,m.O),L(2,y.v)],M);function P(e,t){return u.a.computeUnicodeHighlightReason(e,t)}class F{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let i=`${e}${t}`,n=this.map.get(i);return!n&&(n=c.qx.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(i,n)),n}}F.instance=new F;class H extends h.R6{constructor(){super({id:W.ID,label:C.NC("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=C.NC("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}async run(e,t,i){let n=null==e?void 0:e.get(v.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(d.qt.includeComments,!1,2)}}class B extends h.R6{constructor(){super({id:W.ID,label:C.NC("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=C.NC("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}async run(e,t,i){let n=null==e?void 0:e.get(v.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(d.qt.includeStrings,!1,2)}}class W extends h.R6{constructor(){super({id:W.ID,label:C.NC("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=C.NC("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}async run(e,t,i){let n=null==e?void 0:e.get(v.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(d.qt.ambiguousCharacters,!1,2)}}W.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";class $ extends h.R6{constructor(){super({id:$.ID,label:C.NC("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=C.NC("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}async run(e,t,i){let n=null==e?void 0:e.get(v.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(d.qt.invisibleCharacters,!1,2)}}$.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";class z extends h.R6{constructor(){super({id:z.ID,label:C.NC("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=C.NC("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}async run(e,t,i){let n=null==e?void 0:e.get(v.Ui);n&&this.runAction(n)}async runAction(e){await e.updateValue(d.qt.nonBasicASCII,!1,2)}}z.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";class q extends h.R6{constructor(){super({id:q.ID,label:C.NC("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}async run(e,t,i){var n;let{codePoint:r,reason:o,inString:s,inComment:a}=i,h=String.fromCodePoint(r),d=e.get(S.eJ),c=e.get(v.Ui),u=[];if(0===o.kind)for(let e of o.notAmbiguousInLocales)u.push({label:C.NC("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',e),run:async()=>{U(c,[e])}});if(u.push({label:(n=r,l.vU.isInvisibleCharacter(n)?C.NC("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",T(n)):C.NC("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${T(n)} "${h}"`)),run:()=>V(c,[r])}),a){let e=new H;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(s){let e=new B;u.push({label:e.label,run:async()=>e.runAction(c)})}if(0===o.kind){let e=new W;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(1===o.kind){let e=new $;u.push({label:e.label,run:async()=>e.runAction(c)})}else if(2===o.kind){let e=new z;u.push({label:e.label,run:async()=>e.runAction(c)})}else(function(e){throw Error(`Unexpected value: ${e}`)})(o);let g=await d.pick(u,{title:R});g&&await g.run()}}async function V(e,t){let i;let n=e.getValue(d.qt.allowedCharacters);for(let e of(i="object"==typeof n&&n?n:{},t))i[String.fromCodePoint(e)]=!0;await e.updateValue(d.qt.allowedCharacters,i,2)}async function U(e,t){var i;let n;let r=null===(i=e.inspect(d.qt.allowedLocales).user)||void 0===i?void 0:i.value;for(let e of(n="object"==typeof r&&r?Object.assign({},r):{},t))n[e]=!0;await e.updateValue(d.qt.allowedLocales,n,2)}q.ID="editor.action.unicodeHighlight.showExcludeOptions";(0,h.Qr)(W),(0,h.Qr)($),(0,h.Qr)(z),(0,h.Qr)(q),(0,h._K)(I.ID,I,1),f.Ae.register(M)},72755:function(e,t,i){i.d(t,{G:function(){return C},w:function(){return v}}),i(11516);var n=i(42733),r=i(84144),o=i(64141),s=i(94479),a=i(94590),l=i(29149);let h=(0,a.P6G)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},s.NC("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);(0,a.P6G)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},s.NC("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),(0,a.P6G)("editor.wordHighlightTextBackground",{light:h,dark:h,hcDark:h,hcLight:h},s.NC("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);let d=(0,a.P6G)("editor.wordHighlightBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},s.NC("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));(0,a.P6G)("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:a.xL1,hcLight:a.xL1},s.NC("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),(0,a.P6G)("editor.wordHighlightTextBorder",{light:d,dark:d,hcDark:d,hcLight:d},s.NC("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));let c=(0,a.P6G)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},s.NC("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),u=(0,a.P6G)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},s.NC("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),g=(0,a.P6G)("editorOverviewRuler.wordHighlightTextForeground",{dark:a.SPM,light:a.SPM,hcDark:a.SPM,hcLight:a.SPM},s.NC("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),m=r.qx.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:(0,l.EN)(u),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),p=r.qx.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:(0,l.EN)(g),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),f=r.qx.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:(0,l.EN)(a.SPM),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}}),_=r.qx.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),b=r.qx.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:(0,l.EN)(c),position:n.sh.Center},minimap:{color:(0,l.EN)(a.IYc),position:1}});function C(e){return e===o.MY.Write?m:e===o.MY.Text?p:b}function v(e){return e?_:f}(0,l.Ic)((e,t)=>{let i=e.getColor(a.Rzx);i&&t.addRule(`.monaco-editor .selectionHighlight { background-color: ${i.transparent(.5)}; }`)})},41242:function(e,t,i){i(16046),i(95482);var n=i(80901),r=i(88928),o=i(91278),s=i(87294),a=i(30410),l=i(98212),h=i(36809),d=i(8109),c=i(84587),u=i(92654),g=i(76891),m=function(e,t){return function(i,n){t(i,n,e)}};let p=class extends n.S{constructor(e,t,i){super(t,i),this.editorService=e,this.onDidActiveTextEditorControlChange=l.ju.None}get activeTextEditorControl(){var e;return null!==(e=this.editorService.getFocusedCodeEditor())&&void 0!==e?e:void 0}};p=function(e,t,i,n){var r,o=arguments.length,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,i,s):r(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s}([m(0,s.$),m(1,g.p),m(2,u.Je)],p);class f extends h.R6{constructor(){super({id:f.ID,label:a.aq.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:d.u.hasDocumentSymbolProvider,kbOpts:{kbExpr:d.u.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(c.eJ).quickAccess.show(n.S.PREFIX,{itemActivation:c.jG.NONE})}}f.ID="editor.action.quickOutline",(0,h.Qr)(f),r.B.as(o.IP.Quickaccess).registerQuickAccessProvider({ctor:p,prefix:n.S.PREFIX,helpEntries:[{description:a.aq.quickOutlineActionLabel,prefix:n.S.PREFIX,commandId:f.ID},{description:a.aq.quickOutlineByCategoryActionLabel,prefix:n.S.PREFIX_BY_CATEGORY}]})},15857:function(e,t,i){i.d(t,{S:function(){return n}});let n=(0,i(95449).yh)("dialogService")},88799:function(e,t,i){i.d(t,{H0:function(){return o},ZL:function(){return r},lT:function(){return h}});var n,r,o,s=i(64138),a=i(94479),l=i(95449);(n=r||(r={}))[n.Hint=1]="Hint",n[n.Info=2]="Info",n[n.Warning=4]="Warning",n[n.Error=8]="Error",!function(e){e.compare=function(e,t){return t-e};let t=Object.create(null);t[e.Error]=(0,a.NC)("sev.error","Error"),t[e.Warning]=(0,a.NC)("sev.warning","Warning"),t[e.Info]=(0,a.NC)("sev.info","Info");e.toString=function(e){return t[e]||""};e.fromSeverity=function(t){switch(t){case s.Z.Error:return e.Error;case s.Z.Warning:return e.Warning;case s.Z.Info:return e.Info;case s.Z.Ignore:return e.Hint}};e.toSeverity=function(t){switch(t){case e.Error:return s.Z.Error;case e.Warning:return s.Z.Warning;case e.Info:return s.Z.Info;case e.Hint:return s.Z.Ignore}}}(r||(r={})),!function(e){function t(e,t){let i=[""];return e.source?i.push(e.source.replace("\xa6","\\\xa6")):i.push(""),e.code?"string"==typeof e.code?i.push(e.code.replace("\xa6","\\\xa6")):i.push(e.code.value.replace("\xa6","\\\xa6")):i.push(""),void 0!==e.severity&&null!==e.severity?i.push(r.toString(e.severity)):i.push(""),e.message&&t?i.push(e.message.replace("\xa6","\\\xa6")):i.push(""),void 0!==e.startLineNumber&&null!==e.startLineNumber?i.push(e.startLineNumber.toString()):i.push(""),void 0!==e.startColumn&&null!==e.startColumn?i.push(e.startColumn.toString()):i.push(""),void 0!==e.endLineNumber&&null!==e.endLineNumber?i.push(e.endLineNumber.toString()):i.push(""),void 0!==e.endColumn&&null!==e.endColumn?i.push(e.endColumn.toString()):i.push(""),i.push(""),i.join("\xa6")}e.makeKey=function(e){return t(e,!0)},e.makeKeyOptionalMessage=t}(o||(o={}));let h=(0,l.yh)("markerService")},45570:function(e,t,i){i.d(t,{R8:function(){return l},XZ:function(){return a},dR:function(){return s},lR:function(){return h},ur:function(){return c},xL:function(){return d}});var n=i(94479),r=i(52640),o=i(19957);let s=(0,o.P6)("foreground",{dark:"#CCCCCC",light:"#616161",hcDark:"#FFFFFF",hcLight:"#292929"},n.NC("foreground","Overall foreground color. This color is only used if not overridden by a component."));(0,o.P6)("disabledForeground",{dark:"#CCCCCC80",light:"#61616180",hcDark:"#A5A5A5",hcLight:"#7F7F7F"},n.NC("disabledForeground","Overall foreground for disabled elements. This color is only used if not overridden by a component.")),(0,o.P6)("errorForeground",{dark:"#F48771",light:"#A1260D",hcDark:"#F48771",hcLight:"#B5200D"},n.NC("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),(0,o.P6)("descriptionForeground",{light:"#717171",dark:(0,o.Zn)(s,.7),hcDark:(0,o.Zn)(s,.7),hcLight:(0,o.Zn)(s,.7)},n.NC("descriptionForeground","Foreground color for description text providing additional information, for example for a label."));let a=(0,o.P6)("icon.foreground",{dark:"#C5C5C5",light:"#424242",hcDark:"#FFFFFF",hcLight:"#292929"},n.NC("iconForeground","The default color for icons in the workbench.")),l=(0,o.P6)("focusBorder",{dark:"#007FD4",light:"#0090F1",hcDark:"#F38518",hcLight:"#006BBD"},n.NC("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),h=(0,o.P6)("contrastBorder",{light:null,dark:null,hcDark:"#6FC3DF",hcLight:"#0F4A85"},n.NC("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),d=(0,o.P6)("contrastActiveBorder",{light:null,dark:null,hcDark:l,hcLight:l},n.NC("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));(0,o.P6)("selection.background",{light:null,dark:null,hcDark:null,hcLight:null},n.NC("selectionBackground","The background color of text selections in the workbench (e.g. for input fields or text areas). Note that this does not apply to selections within the editor."));let c=(0,o.P6)("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.NC("textLinkForeground","Foreground color for links in text."));(0,o.P6)("textLink.activeForeground",{light:"#006AB1",dark:"#3794FF",hcDark:"#21A6FF",hcLight:"#0F4A85"},n.NC("textLinkActiveForeground","Foreground color for links in text when clicked on and on mouse hover.")),(0,o.P6)("textSeparator.foreground",{light:"#0000002e",dark:"#ffffff2e",hcDark:r.Il.black,hcLight:"#292929"},n.NC("textSeparatorForeground","Color for text separators.")),(0,o.P6)("textPreformat.foreground",{light:"#A31515",dark:"#D7BA7D",hcDark:"#000000",hcLight:"#FFFFFF"},n.NC("textPreformatForeground","Foreground color for preformatted text segments.")),(0,o.P6)("textPreformat.background",{light:"#0000001A",dark:"#FFFFFF1A",hcDark:"#FFFFFF",hcLight:"#09345f"},n.NC("textPreformatBackground","Background color for preformatted text segments.")),(0,o.P6)("textBlockQuote.background",{light:"#f2f2f2",dark:"#222222",hcDark:null,hcLight:"#F2F2F2"},n.NC("textBlockQuoteBackground","Background color for block quotes in text.")),(0,o.P6)("textBlockQuote.border",{light:"#007acc80",dark:"#007acc80",hcDark:r.Il.white,hcLight:"#292929"},n.NC("textBlockQuoteBorder","Border color for block quotes in text.")),(0,o.P6)("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hcDark:r.Il.black,hcLight:"#F2F2F2"},n.NC("textCodeBlockBackground","Background color for code blocks in text."))},93151:function(e,t,i){i.d(t,{$D:function(){return u},Cd:function(){return l},DE:function(){return h},E3:function(){return g},Hz:function(){return d},ZG:function(){return m},jb:function(){return c}});var n=i(94479),r=i(19957),o=i(45570),s=i(91346),a=i(81229);let l=(0,r.P6)("menu.border",{dark:null,light:null,hcDark:o.lR,hcLight:o.lR},n.NC("menuBorder","Border color of menus.")),h=(0,r.P6)("menu.foreground",{dark:s._g,light:s._g,hcDark:s._g,hcLight:s._g},n.NC("menuForeground","Foreground color of menu items.")),d=(0,r.P6)("menu.background",{dark:s.XV,light:s.XV,hcDark:s.XV,hcLight:s.XV},n.NC("menuBackground","Background color of menu items.")),c=(0,r.P6)("menu.selectionForeground",{dark:a.M6,light:a.M6,hcDark:a.M6,hcLight:a.M6},n.NC("menuSelectionForeground","Foreground color of the selected menu item in menus.")),u=(0,r.P6)("menu.selectionBackground",{dark:a.dC,light:a.dC,hcDark:a.dC,hcLight:a.dC},n.NC("menuSelectionBackground","Background color of the selected menu item in menus.")),g=(0,r.P6)("menu.selectionBorder",{dark:null,light:null,hcDark:o.xL,hcLight:o.xL},n.NC("menuSelectionBorder","Border color of the selected menu item in menus.")),m=(0,r.P6)("menu.separatorBackground",{dark:"#606060",light:"#D4D4D4",hcDark:o.lR,hcLight:o.lR},n.NC("menuSeparatorBackground","Color of a separator menu item in menus."))},29149:function(e,t,i){i.d(t,{EN:function(){return h},IP:function(){return c},Ic:function(){return g},XE:function(){return l},bB:function(){return m},m6:function(){return d}});var n=i(98212),r=i(37764),o=i(95449),s=i(88928),a=i(91989);let l=(0,o.yh)("themeService");function h(e){return{id:e}}function d(e){switch(e){case a.eL.DARK:return"vs-dark";case a.eL.HIGH_CONTRAST_DARK:return"hc-black";case a.eL.HIGH_CONTRAST_LIGHT:return"hc-light";default:return"vs"}}let c={ThemingContribution:"base.contributions.theming"},u=new class e{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new n.Q5}onColorThemeChange(e){return this.themingParticipants.push(e),this.onThemingParticipantAddedEmitter.fire(e),(0,r.OF)(()=>{let t=this.themingParticipants.indexOf(e);this.themingParticipants.splice(t,1)})}getThemingParticipants(){return this.themingParticipants}};function g(e){return u.onColorThemeChange(e)}s.B.add(c.ThemingContribution,u);class m extends r.JT{constructor(e){super(),this.themeService=e,this.theme=e.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(e=>this.onThemeChange(e)))}onThemeChange(e){this.theme=e,this.updateStyles()}updateStyles(){}}},94215:function(e,t,i){i.d(t,{Xt:function(){return o},YO:function(){return r},gJ:function(){return s},tJ:function(){return n}});let n=(0,i(95449).yh)("undoRedoService");class r{constructor(e,t){this.resource=e,this.elements=t}}class o{constructor(){this.id=o._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}o._ID=0,o.None=new o;class s{constructor(){this.id=s._ID++,this.order=1}nextOrder(){return 0===this.id?0:this.order++}}s._ID=0,s.None=new s}}]);